/* ==========================================================================
   BA4UHI — light pink QSL log
   A quiet, single-page station log: station details first, QSL table after.
   ========================================================================== */

:root {
  --bg: #fbe7f0;
  --bg-deep: #f7d8e5;
  --card: #fffafc;
  --ink: #3b2835;
  --ink-soft: #5e4655;
  --muted: #907483;
  --line: #efd8e3;
  --line-strong: #e4c4d4;
  --accent: #cf5d91;
  --accent-dark: #ad3f72;
  --accent-pale: #fff3f8;
  --pink: #ffd7e5;
  --lilac: #efdaf1;
  --white: #fffdfd;
  --radius: 26px;
  --shadow: 0 18px 48px rgba(136, 69, 99, 0.09);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.8), transparent 22rem),
    radial-gradient(circle at 96% 8%, rgba(255, 197, 222, 0.62), transparent 30rem),
    linear-gradient(180deg, #fff9fc 0%, var(--bg) 24%, #f8dbe8 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(150, 92, 116, 0.22) 0.55px, transparent 0.55px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(232, 137, 177, 0.32);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(1120px, calc(100% - 56px));
  margin-inline: auto;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(228, 196, 212, 0.6);
  background: rgba(251, 231, 240, 0.87);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  color: var(--accent);
}

.brand-mark circle,
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.brand-name {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav > a:not(.nav-button):hover {
  color: var(--accent);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.nav-button svg {
  width: 14px;
  height: 14px;
}

.nav-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* Station introduction ---------------------------------------------------- */

main {
  padding-top: 28px;
}

.station-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  grid-template-areas:
    "copy qr"
    "facts facts";
  column-gap: 46px;
  overflow: hidden;
  padding: 42px 46px 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: linear-gradient(125deg, #ffd5e3 0%, #f1d8ef 53%, #ffedf4 100%);
  box-shadow: 0 20px 55px rgba(157, 79, 112, 0.12);
}

.station-card::after {
  content: "";
  position: absolute;
  right: -132px;
  bottom: -250px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.station-copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  min-width: 0;
}

.kicker {
  margin: 0;
  color: #8b5b71;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.station-copy h1 {
  margin: 10px 0 13px;
  color: #3a2633;
  font-family: var(--display);
  font-size: clamp(66px, 8vw, 86px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.tagline {
  margin: 0;
  color: #4d3343;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.intro {
  max-width: 540px;
  margin: 15px 0 0;
  color: #6f5261;
  font-size: 12.5px;
  line-height: 1.85;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 650;
  text-decoration: none;
}

.intro-link span {
  transition: transform 160ms ease;
}

.intro-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-link:hover span {
  transform: translateY(2px);
}

.qr-card {
  position: relative;
  z-index: 1;
  grid-area: qr;
  align-self: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 250, 252, 0.75);
  box-shadow: 0 8px 22px rgba(120, 58, 86, 0.07);
  text-align: center;
}

.qr-card img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  background: #fff;
  image-rendering: crisp-edges;
}

.qr-card p {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.qr-card a {
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 650;
  text-decoration: none;
}

.qr-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.station-facts {
  position: relative;
  z-index: 1;
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(113, 59, 83, 0.16);
}

.station-facts div {
  min-width: 0;
}

.station-facts dt {
  margin-bottom: 5px;
  color: #8c6274;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.station-facts dd {
  margin: 0;
  color: #412c39;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
}

/* QSL log ----------------------------------------------------------------- */

#log {
  scroll-margin-top: 92px;
}

.log-panel {
  margin-top: 26px;
  padding: 36px 38px 24px;
  border: 1px solid rgba(238, 214, 226, 0.92);
  border-radius: 28px;
  background: rgba(255, 252, 253, 0.94);
  box-shadow: var(--shadow);
}

.log-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.log-heading {
  min-width: 0;
}

.log-heading h2 {
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.log-intro {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.log-summary {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3px;
}

.log-summary span {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 88px;
  padding: 0 17px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
  white-space: nowrap;
}

.log-summary span:first-child {
  padding-left: 0;
  border-left: 0;
}

.log-summary strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
}

.log-summary time {
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff7fb;
}

.search-field {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 8px;
  max-width: 340px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: #dca3bf;
  box-shadow: 0 0 0 3px rgba(207, 93, 145, 0.09);
}

.search-field svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #b28d9f;
}

.search-field svg circle,
.search-field svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-field input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}

.search-field input::placeholder {
  color: #ab91a0;
}

.select-field {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.select-field > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.select-field select {
  min-width: 74px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button-quiet {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.button-quiet:hover {
  border-color: #dea9c1;
  background: var(--accent-pale);
  color: var(--accent-dark);
}

.button-export {
  margin-left: auto;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-export:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-export svg {
  width: 14px;
  height: 14px;
}

.button-export svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 13px 2px 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.result-line p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-color: #ddb9ca transparent;
  scrollbar-width: thin;
}

.log-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-table th {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  color: #987988;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.log-table th span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.log-table td {
  padding: 12px 9px;
  border-bottom: 1px solid #f7e6ee;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  vertical-align: top;
}

.log-table tbody tr {
  transition: background 140ms ease;
}

.log-table tbody tr:hover {
  background: #fff7fb;
}

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

.log-table .col-date {
  width: 11.5%;
}

.log-table .col-call {
  width: 12%;
}

.log-table .col-freq {
  width: 12.5%;
}

.log-table .col-mode {
  width: 7%;
}

.log-table .col-rst {
  width: 8%;
}

.log-table .col-qth {
  width: 21%;
}

.log-table .col-rig {
  width: 18%;
}

.log-table .col-note {
  width: 10%;
}

.cell-date span {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.cell-date small,
.cell-freq small,
.cell-rig small {
  display: block;
  margin-top: 2px;
  color: #a38796;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
}

.cell-call a {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid #e4b7cb;
}

.cell-call a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.mobile-meta {
  display: none;
  margin-top: 4px;
  color: #9b7c8d;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.5;
}

.cell-freq strong {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 7px;
  border: 1px solid #ebc3d5;
  border-radius: 999px;
  background: #fff5f9;
  color: #a43c6d;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.5;
}

.cell-rst {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-qth {
  color: var(--ink-soft);
  font-size: 11px;
}

.cell-rig > span {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-note {
  overflow: hidden;
  color: #a18493;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  padding: 58px 20px 64px;
  text-align: center;
}

.empty-mark {
  margin: 0;
  color: #e7b5cb;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}

.empty-state h3 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.empty-state > p:not(.empty-mark) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11.5px;
}

.log-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #a88b9a;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* QSL card preview -------------------------------------------------------- */

#cards {
  scroll-margin-top: 92px;
}

.card-gallery {
  margin-top: 26px;
  padding: 34px 38px 30px;
  border: 1px solid rgba(238, 214, 226, 0.92);
  border-radius: 28px;
  background: rgba(255, 250, 252, 0.94);
  box-shadow: var(--shadow);
}

.card-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.card-gallery h2 {
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card-gallery-intro {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.back-to-log {
  flex: 0 0 auto;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.back-to-log:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
  margin-top: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 60%),
    linear-gradient(145deg, #fff8fb, #f7e3ed);
  cursor: zoom-in;
}

.card-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(104, 52, 75, 0.18);
  transition: transform 220ms ease;
}

.card-stage:hover img {
  transform: scale(1.012);
}

.card-stage-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(228, 196, 212, 0.9);
  border-radius: 6px;
  background: rgba(255, 250, 252, 0.92);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.card-thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.card-thumb {
  height: 74px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f4dce8;
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb:hover {
  opacity: 1;
}

.card-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(207, 93, 145, 0.12);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 24px;
  margin-top: 26px;
  padding: 26px 4px 42px;
  border-top: 1px solid rgba(228, 196, 212, 0.7);
}

.footer-call {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer-call span {
  margin: 0 6px;
  color: #c9a5b5;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #ae93a0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
  box-shadow: var(--shadow);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 980px) {
  .page-width {
    width: min(1120px, calc(100% - 40px));
  }

  .station-card {
    grid-template-columns: minmax(0, 1fr) 146px;
    column-gap: 32px;
    padding: 36px 36px 28px;
  }

  .station-copy h1 {
    font-size: 72px;
  }

  .station-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
  }

  .log-panel {
    padding: 30px 28px 22px;
  }

  .log-table {
    min-width: 720px;
  }

  .log-table .col-note,
  .log-table .cell-note {
    display: none;
  }

  .card-stage {
    height: 500px;
  }
}

@media (max-width: 860px) {
  .log-table {
    min-width: 0;
  }

  .log-table .col-qth,
  .log-table .cell-qth {
    display: none;
  }

  .log-table .col-rig {
    width: 25%;
  }

  .mobile-meta {
    display: block;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav > a:not(.nav-button) {
    display: none;
  }

  .station-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "qr"
      "facts";
    padding: 28px 24px 24px;
    border-radius: 24px;
  }

  .station-copy h1 {
    font-size: 62px;
  }

  .tagline {
    font-size: 16px;
  }

  .qr-card {
    display: none;
  }

  .station-facts {
    margin-top: 22px;
    padding-top: 18px;
  }

  #log,
  #cards {
    scroll-margin-top: 18px;
  }

  .log-panel {
    margin-top: 18px;
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .card-gallery {
    margin-top: 18px;
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .card-gallery-header {
    display: block;
  }

  .card-gallery h2 {
    font-size: 30px;
  }

  .back-to-log {
    display: inline-block;
    margin-top: 10px;
  }

  .card-stage {
    height: 470px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
  }

  .log-header {
    display: block;
  }

  .log-heading h2 {
    font-size: 30px;
  }

  .log-summary {
    margin-top: 18px;
  }

  .log-summary span {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
  }

  .log-summary span:first-child {
    padding-left: 0;
  }

  .log-summary span:last-child {
    padding-right: 0;
  }

  .log-summary strong {
    font-size: 22px;
  }

  .log-summary time {
    font-size: 13px;
  }

  .toolbar {
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .search-field {
    flex-basis: 100%;
    max-width: none;
  }

  .select-field {
    flex: 1;
    justify-content: space-between;
  }

  .button-export {
    margin-left: 0;
  }

  .site-footer {
    padding-bottom: 32px;
  }
}

@media (max-width: 560px) {
  .page-width {
    width: calc(100% - 24px);
  }

  main {
    padding-top: 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav-button {
    padding: 8px 13px;
    font-size: 11px;
  }

  .station-card {
    padding: 24px 18px 20px;
  }

  .station-copy h1 {
    font-size: 56px;
  }

  .intro {
    font-size: 12px;
  }

  .station-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .log-panel {
    padding: 22px 14px 16px;
  }

  .card-gallery {
    padding: 22px 14px 16px;
  }

  .card-gallery h2 {
    font-size: 27px;
  }

  .card-gallery-intro {
    font-size: 11px;
  }

  .card-stage {
    height: auto;
    padding: 12px;
  }

  .card-stage img {
    max-height: 430px;
  }

  .card-stage-label {
    left: 10px;
    bottom: 10px;
    font-size: 8px;
  }

  .card-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .card-thumb {
    height: 58px;
  }

  .log-heading h2 {
    font-size: 27px;
  }

  .log-intro {
    font-size: 11px;
  }

  .log-summary span {
    padding: 0 9px;
    font-size: 8.5px;
  }

  .log-summary strong {
    font-size: 20px;
  }

  .log-summary time {
    font-size: 12px;
  }

  .toolbar {
    padding: 9px;
  }

  .select-field {
    flex: 1 1 96px;
  }

  .select-field > span {
    display: none;
  }

  .button {
    padding: 0 11px;
  }

  .button-export {
    flex: 0 0 auto;
  }

  .log-table .col-mode,
  .log-table .cell-mode,
  .log-table .col-rig,
  .log-table .cell-rig {
    display: none;
  }

  .log-table .col-date {
    width: 23%;
  }

  .log-table .col-call {
    width: 31%;
  }

  .log-table .col-freq {
    width: 28%;
  }

  .log-table .col-rst {
    width: 18%;
  }

  .log-table th {
    padding: 10px 5px;
    font-size: 8.5px;
  }

  .log-table td {
    padding: 10px 5px;
  }

  .log-table th span {
    display: none;
  }

  .cell-date span {
    font-size: 10.5px;
  }

  .cell-date small,
  .cell-freq small {
    font-size: 8px;
  }

  .cell-call a {
    font-size: 11.5px;
  }

  .cell-freq strong {
    font-size: 10.5px;
  }

  .cell-rst {
    font-size: 9.5px;
  }

  .mobile-meta {
    font-size: 8.5px;
  }

  .log-footer {
    gap: 8px;
    font-size: 7.5px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
    padding: 22px 4px 30px;
  }

  .site-footer nav {
    grid-row: 2;
  }

  .copyright {
    grid-row: 3;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .toolbar,
  .qr-card,
  .card-gallery,
  .site-footer {
    display: none !important;
  }

  .page-width {
    width: 100%;
  }

  main {
    padding: 0;
  }

  .station-card,
  .log-panel {
    box-shadow: none;
  }

  .station-card {
    background: #fff;
    padding: 0 0 16px;
    border: 0;
  }

  .log-panel {
    border: 0;
    padding: 18px 0 0;
  }

  .log-table {
    min-width: 0;
  }

  .log-table .col-note,
  .log-table .cell-note {
    display: none;
  }
}
