:root {
  --ink: #20262b;
  --line: #d5dadd;
  --tab: #e9edef;
  --accent: #245e83;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }

.site-shell { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }
.tabs { display: flex; align-items: end; gap: 4px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); }
.tab {
  appearance: none; min-width: 116px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0;
  padding: 13px 20px 12px; background: var(--tab); color: #52616d; font-size: .78rem; font-weight: 700; letter-spacing: .1em; cursor: pointer;
}
.tab:hover, .tab:focus-visible { background: #f7fafb; color: var(--accent); outline: none; }
.tab.active { background: #fff; color: var(--accent); border-top: 3px solid var(--accent); padding-top: 11px; position: relative; top: 1px; }

.page-frame { border: 1px solid var(--line); border-top: 0; background: #fff; }
.panel { flex: 1 0 auto; padding: 48px 62px 40px; }
.panel-log { display: grid; justify-items: center; gap: 2px; padding: 54px 62px 12px; }
.panel[hidden] { display: none !important; }

.biography { max-width: 850px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.04rem, 2vw, 1.18rem); line-height: 1.75; }
.biography p { margin: 0 0 25px; text-align: justify; text-justify: inter-word; }
.biography .intro { margin-bottom: 31px; text-align: center; font-weight: bold; }
.heart { display: block; width: min(210px, 65%); height: auto; margin: 35px auto 0; }

.station-gallery { display: block; width: min(100%, 910px); height: auto; margin: 0 auto; }
.clublog-frame, .qrzlog-frame { display: block; max-width: 100%; border: 0; }
.panel-rbn { min-height: 420px; padding-top: 38px; }
.rbn-board { width: min(900px, 100%); margin: 0 auto; overflow-x: auto; }
.filters-toggle { display: block; margin: 24px 0 0; padding: 7px 10px; border: 1px solid #8da6b2; border-radius: 3px; background: #eef3f5; color: #345666; font: 700 .72rem/1 Arial, Helvetica, sans-serif; letter-spacing: .04em; cursor: pointer; }
.filters-toggle:hover { background: #dfecef; }
.rbn-filters { margin: 8px 0 0; min-height: 0; padding: 18px 20px; border: 1px solid #b9c8cf; background: #f8fafb; }
.band-options { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; }
.mode-options { display: flex; gap: 18px; align-items: center; margin-top: 18px; }
.mode-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.mode-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.origin-options { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; margin-top: 18px; }
.origin-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.origin-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.speed-options { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; margin-top: 18px; }
.speed-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.speed-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.snr-options { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; margin-top: 18px; }
.snr-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.snr-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.age-options { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; margin-top: 18px; }
.age-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.age-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.refresh-options { display: flex; flex-wrap: wrap; gap: 11px 18px; align-items: center; margin-top: 18px; }
.refresh-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.refresh-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.filter-label { color: #43616f; font: 700 .72rem/1 Arial, Helvetica, sans-serif; letter-spacing: .08em; }
.band-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.band-options input { width: 15px; height: 15px; accent-color: var(--accent); }
.rbn-table { width: 100%; border-collapse: collapse; font: 0.84rem/1.25 Arial, Helvetica, sans-serif; color: #1d252b; }
.rbn-table th { padding: 10px 12px; background: #9ebbc8; border: 1px solid #7d9aa8; font-size: .7rem; letter-spacing: .08em; }
.sort-button { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.sort-button:hover { color: #174d6c; }
.sort-button span::after { content: '↕'; display: inline-block; margin-left: 4px; color: #718892; font-size: .95rem; vertical-align: -1px; }
.sort-button[data-direction="asc"], .sort-button[data-direction="desc"] { color: #075b89; font-weight: 800; }
.sort-button[data-direction="asc"] span::after { content: '↑'; color: #075b89; }
.sort-button[data-direction="desc"] span::after { content: '↓'; color: #075b89; }
.rbn-table td { padding: 8px 12px; border: 1px solid #d2dadd; white-space: nowrap; }
.dx-link { color: #1d252b; text-decoration: none; cursor: pointer; }
.dx-link:hover, .dx-link:focus { color: #1d252b; text-decoration: none; }
.rbn-table tr:nth-child(even) td { background: #f5f8f9; }
.rbn-table .rbn-message { padding: 24px; text-align: center; color: #667680; white-space: normal; }

.contact-footer { min-height: 52px; display: grid; place-items: center; padding: 12px 18px; }
.contact-footer img { display: block; max-width: 100%; height: auto; }

@media (max-width: 680px) {
  .site-shell { width: 100%; }.tabs { padding-left: 5px; padding-right: 5px; gap: 2px; }.tab { min-width: 0; flex: 1; padding-left: 4px; padding-right: 4px; font-size: .63rem; }
  .page-frame { border-left: 0; border-right: 0; }.panel { padding: 31px 19px; }.panel-log { padding: 35px 19px 8px; }.panel-rbn { min-height: 320px; padding-top: 31px; }.clublog-frame { width: 100%; height: 410px; }.rbn-filters { padding: 14px; }.band-options { gap: 10px 14px; }
}
