* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #1f2933;
}

header {
  flex: 0 0 auto;
  padding: 18px 24px;
  background: #26384a;
  color: white;
}

header h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

header p {
  max-width: 900px;
  margin: 0;
  line-height: 1.45;
}

main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

nav {
  flex: 0 0 190px;
  padding: 14px;
  background: #dfe5ea;
  border-right: 1px solid #bcc6ce;
}

.band-button {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  padding: 10px 9px;
  border: 1px solid #aeb8c0;
  border-radius: 4px;
  background: white;
  color: #1f2933;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.band-button:hover {
  background: #eef2f5;
}

.band-button:focus-visible {
  outline: 3px solid #517ca3;
  outline-offset: 2px;
}

.band-button.active {
  background: #26384a;
  border-color: #26384a;
  color: white;
}

#spot-panel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

#spot-count {
  color: #5b6770;
}

.table-wrapper {
  overflow-x: auto;
  background: white;
  border: 1px solid #cbd2d8;
  border-radius: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid #e1e5e8;
  text-align: left;
}

th {
  background: #edf1f4;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.skimmer {
  background: #f8f9fa;
}

.source-skimmer {
  font-style: italic;
  color: #5d6870;
}

#empty-message {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #68737c;
}

.noscript-message {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid #cbd2d8;
  border-radius: 5px;
  background: white;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  background: #26384a;
  color: white;
  font-size: 0.85rem;
}

.copyright {
  white-space: nowrap;
}

html.mobile-layout,
html.mobile-layout body {
  height: auto;
  min-height: 100%;
}

html.mobile-layout body {
  min-height: 100vh;
  overflow: auto;
}

html.mobile-layout header {
  padding: 12px 14px;
}

html.mobile-layout header h1 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

html.mobile-layout header p {
  font-size: 0.88rem;
  line-height: 1.35;
}

html.mobile-layout main {
  display: block;
  flex: none;
  min-height: auto;
  overflow: visible;
}

html.mobile-layout nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px;
  border-right: 0;
  border-bottom: 1px solid #bcc6ce;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

html.mobile-layout .band-button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 8px 9px;
  font-size: 0.85rem;
  white-space: nowrap;
}

html.mobile-layout #spot-panel {
  min-height: auto;
  padding: 10px 8px 14px;
  overflow: visible;
}

html.mobile-layout .panel-heading {
  display: block;
  margin-bottom: 8px;
}

html.mobile-layout .panel-heading h2 {
  font-size: 1.08rem;
}

html.mobile-layout #spot-count {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
}

html.mobile-layout .table-wrapper {
  -webkit-overflow-scrolling: touch;
}

html.mobile-layout table {
  font-size: 0.82rem;
}

html.mobile-layout th,
html.mobile-layout td {
  padding: 7px 6px;
}

html.mobile-layout th:last-child,
html.mobile-layout td:last-child {
  width: 1%;
  text-align: center;
}

html.mobile-layout footer {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 16px;
  padding: 9px 12px;
  line-height: 1.35;
}

html.mobile-layout .copyright {
  margin-left: auto;
}
}
