: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: 48px 0 0 14px; 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; }
.site-brand { padding: 0; display: flex; align-items: flex-end; color: #52616d; font-size: clamp(1.78rem, 3.85vw, 3.53rem); font-weight: 700; letter-spacing: .04em; transform: translate(-12px, 5px); }
.site-brand + .tab { margin-left: auto; }

.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: 46px; padding: 54px 62px 48px; }
.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; }

.photo-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(100%, 910px); margin: 0 auto; }
.photo-thumb { appearance: none; display: block; min-width: 0; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; background: #eef1f2; cursor: zoom-in; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.photo-thumb:hover img, .photo-thumb:focus-visible img { transform: scale(1.035); }
.photo-thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.photo-lightbox { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 32px; background: rgb(11 18 22 / .88); cursor: zoom-out; }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox img { display: block; max-width: min(1200px, 92vw); max-height: 88vh; width: auto; height: auto; object-fit: contain; cursor: default; box-shadow: 0 14px 48px rgb(0 0 0 / .45); }
.photo-lightbox-close { position: fixed; top: 18px; right: 24px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: #17232a; font: 2rem/1 Arial, sans-serif; cursor: pointer; }
.photo-lightbox-nav { position: fixed; top: 50%; z-index: 1; width: 50px; height: 70px; transform: translateY(-50%); border: 0; border-radius: 9px; background: rgb(255 255 255 / .92); color: #17232a; font: 3.2rem/.8 Arial, sans-serif; cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .22); }
.photo-lightbox-nav:hover, .photo-lightbox-nav:focus-visible { background: #fff; outline: 3px solid var(--accent); outline-offset: 3px; }
.photo-lightbox-prev { left: 24px; }
.photo-lightbox-next { right: 24px; }
.station-log { width: min(840px, 100%); overflow-x: auto; }
.station-log-table { width: 100%; border-collapse: collapse; table-layout: fixed; font: .84rem/1.25 Arial, Helvetica, sans-serif; color: #1d252b; }
.station-log-table th { padding: 10px 12px; background: #9ebbc8; border: 1px solid #7d9aa8; font-size: .7rem; letter-spacing: .08em; }
.station-log-table td { padding: 8px 12px; border: 1px solid #d2dadd; white-space: nowrap; }
.station-log-table td:nth-child(n+2):nth-child(-n+6) { text-align: center; }
.station-log-table tr:nth-child(even) td { background: #f5f8f9; }
.station-log-table .station-log-message { padding: 24px; text-align: center; color: #667680; white-space: normal; }
.station-log-table th:nth-child(1) { width: 12%; }.station-log-table th:nth-child(2) { width: 13%; }.station-log-table th:nth-child(3) { width: 14%; }.station-log-table th:nth-child(4) { width: 10%; }.station-log-table th:nth-child(5) { width: 10%; }.station-log-table th:nth-child(6) { width: 10%; }.station-log-table th:nth-child(7) { width: 31%; }
.station-log-table td:last-child { overflow: hidden; text-overflow: ellipsis; }
.log-total { margin: 10px 0 0; color: #4e626d; font: .92rem Arial, Helvetica, sans-serif; text-align: left; }
.log-search { width: min(840px, 100%); height: 168px; overflow: hidden; border: 1px solid #b7c9d2; padding: 22px 24px; box-sizing: border-box; font: .86rem/1.3 Arial, Helvetica, sans-serif; color: #263841; }
.log-search-form { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.log-search-form input { width: 190px; max-width: 100%; padding: 8px 10px; border: 1px solid #9bb2be; border-radius: 2px; font: inherit; text-transform: uppercase; }
.log-search-form button { padding: 8px 12px; border: 1px solid #7193a3; border-radius: 2px; background: #edf3f5; color: #31596d; font: 700 .74rem Arial, Helvetica, sans-serif; cursor: pointer; letter-spacing: .04em; text-transform: uppercase; }
.log-search-form button:hover { background: #dce9ee; }
.log-search-results { margin-top: 20px; overflow-x: auto; }
.log-search-empty { padding: 20px 0; color: #667680; font: .9rem Arial, Helvetica, sans-serif; text-align: center; }
.log-search-table { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; }
.log-search-table th { padding: 10px 4px; background: #9ebbc8; border: 1px solid #7d9aa8; color: #1d252b; font: 700 .68rem Arial, Helvetica, sans-serif; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.log-search-table td { padding: 11px 4px; border: 1px solid #d2dadd; background: #fff; color: #1d252b; font: 700 1rem Arial, Helvetica, sans-serif; text-align: center; }
.log-search-table th:last-child { width: 9%; }
.panel-rbn { min-height: 420px; padding-top: 38px; }
.rbn-board { width: min(840px, 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: grid; grid-template-columns: 72px repeat(5, max-content) minmax(82px, 1fr); grid-template-rows: repeat(2, 28px); column-gap: 18px; align-items: center; }
.band-options .filter-label { grid-column: 1; grid-row: 1; }
.band-options label:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.band-options label:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.band-options label:nth-of-type(3) { grid-column: 4; grid-row: 1; }
.band-options label:nth-of-type(4) { grid-column: 5; grid-row: 1; }
.band-options label:nth-of-type(5) { grid-column: 6; grid-row: 1; }
.band-options label:nth-of-type(6) { grid-column: 2; grid-row: 2; }
.band-options label:nth-of-type(7) { grid-column: 3; grid-row: 2; }
.band-options label:nth-of-type(8) { grid-column: 4; grid-row: 2; }
.band-options label:nth-of-type(9) { grid-column: 5; grid-row: 2; }
.band-options label:nth-of-type(10) { grid-column: 6; grid-row: 2; }
.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: grid; grid-template-columns: 72px repeat(6, max-content); column-gap: 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: grid; grid-template-columns: 72px repeat(8, max-content); column-gap: 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: grid; grid-template-columns: 72px repeat(4, max-content); column-gap: 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: grid; grid-template-columns: 72px repeat(6, max-content); column-gap: 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: grid; grid-template-columns: 72px repeat(5, max-content); column-gap: 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); }
.qso-options { display: grid; grid-template-columns: 72px repeat(4, max-content); column-gap: 18px; align-items: center; margin-top: 18px; }
.qso-options label { display: inline-flex; align-items: center; gap: 5px; color: #2e3f49; font: .84rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.qso-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); }
.bands-toggle { grid-column: 7; grid-row: 2; justify-self: start; min-width: 82px; padding: 4px 7px; border: 1px solid #8da6b2; border-radius: 3px; background: #eef3f5; color: #345666; font: 700 .67rem/1 Arial, Helvetica, sans-serif; letter-spacing: .03em; cursor: pointer; }
.bands-toggle:hover { background: #dfecef; }
.rbn-table { width: 100%; border-collapse: collapse; font: 0.84rem/1.25 Arial, Helvetica, sans-serif; color: #1d252b; }
.rbn-table th { padding: 10px 9px; 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 9px; border: 1px solid #d2dadd; white-space: nowrap; }
.rbn-table td:nth-child(n+2):nth-child(-n+5) { text-align: center; }
.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: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; color: #333; font: 14px/1 Arial, Helvetica, sans-serif; }
.footer-separator { color: #333; }

@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; }.site-brand { display: none; }.site-brand + .tab { margin-left: 0; }
  .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; }.photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.photo-lightbox { padding: 18px 66px; }.photo-lightbox-close { top: 10px; right: 12px; }.photo-lightbox-nav { width: 42px; height: 58px; font-size: 2.7rem; }.photo-lightbox-prev { left: 10px; }.photo-lightbox-next { right: 10px; }
}
