/* Radio, about, and sign-in pages use the same calm, readable card language. */
.radio-view .page-intro,
.about-view .page-intro,
.login-view .page-intro { padding-bottom: 24px; }

.radio-view .radio-overview {
  grid-template-columns: minmax(0, 1.22fr) minmax(255px, .78fr);
  gap: 15px;
  margin-bottom: 34px;
}
.radio-station-card,
.radio-now {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
  box-shadow: 0 5px 18px rgba(56,46,31,.035);
}
.radio-station-card { align-self: stretch; padding: 23px; }
.radio-station-card .module-label { color: var(--brown); font-size: .76rem; letter-spacing: .05em; }
.radio-station-card .station-title-row { margin-top: 14px; }
.radio-station-card .station-title-row h2 {
  color: var(--ink);
  font: 600 clamp(1.8rem, 3.1vw, 2.3rem)/1.2 var(--callsign);
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.radio-station-card .state-chip {
  min-height: 32px;
  padding: 5px 10px;
  color: #805443;
  border-color: #e0d1c7;
  background: var(--brown-wash);
  font-size: .82rem;
  line-height: 1.35;
  white-space: normal;
}
.radio-station-card .state-chip i { flex: 0 0 auto; background: var(--brown); }
.radio-station-card .panel-lead { margin: 8px 0 19px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.radio-station-card .station-details { border-top-color: var(--line); }
.radio-station-card .station-details div {
  grid-template-columns: minmax(78px, 92px) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e9e0d7;
  font-size: .9rem;
  line-height: 1.55;
}
.radio-station-card .station-details span { color: var(--muted); }
.radio-station-card .station-details b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.radio-station-card .station-details div:first-child b { color: var(--brown); font: 700 .96rem/1.5 var(--sans); }
.radio-now {
  position: relative;
  isolation: isolate;
  align-self: center;
  display: flex;
  min-height: 0;
  max-width: none;
  flex-direction: column;
  overflow: visible;
  padding: 30px 25px 22px;
  border-color: #d7c5b5;
  border-radius: 13px;
  background:
    repeating-linear-gradient(0deg, rgba(105, 59, 44, .014) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #f2e8dc, var(--paper-light) 85%);
  box-shadow: 0 2px 0 #e6ded1, 0 4px 0 -1px #cfc2b1, 0 10px 22px rgba(105, 59, 44, .065), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.radio-now::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -11px;
  left: calc(50% - 36px);
  width: 72px;
  height: 23px;
  pointer-events: none;
  transform: rotate(-4deg);
  clip-path: polygon(2% 0, 98% 2%, 100% 20%, 98% 40%, 100% 60%, 98% 80%, 99% 100%, 1% 98%, 3% 78%, 0 58%, 2% 38%, 0 18%);
  background: linear-gradient(100deg, rgba(206, 175, 128, .4), rgba(225, 202, 163, .7), rgba(206, 175, 128, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(105, 59, 44, .1);
}
.radio-now .module-label {
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid #ded0bf;
  border-radius: 5px;
  color: #705342;
  background: var(--paper-light);
  box-shadow: 0 2px 0 rgba(138, 78, 55, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
  font-size: .74rem;
  letter-spacing: .035em;
}
.radio-now strong { margin: 16px 0 5px; color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; overflow-wrap: anywhere; }
.radio-now p { margin: 5px 0 0; color: #6d6258; font-size: .93rem; line-height: 1.8; overflow-wrap: anywhere; }
.radio-now .note-sign { display: block; margin-top: 21px; padding-top: 13px; border-top: 1px dashed #d7c5b5; color: var(--brown); font: 600 .86rem/1.5 var(--sans); text-align: right; }

.qsl-entry {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 27px;
  margin: 0 0 36px;
  padding: 23px 25px;
  border-color: #e2d8cf;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--brown-wash), var(--paper-light) 70%);
  box-shadow: 0 5px 17px rgba(56,46,31,.035);
}
.qsl-entry .eyebrow { color: var(--brown); font-size: .78rem; letter-spacing: .05em; }
.qsl-entry h2 { margin: 8px 0 7px; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.35; }
.qsl-entry p { max-width: 620px; margin: 0; color: #6d6258; font-size: .93rem; line-height: 1.75; }
.qsl-entry .qsl-actions { max-width: 315px; gap: 9px 13px; }
.qsl-entry .qsl-actions .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--brown);
  border-radius: 11px;
  color: #fff;
  background: var(--brown);
  box-shadow: none;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.qsl-entry .qsl-actions .button:hover { border-color: #693b2c; background: #693b2c; }
.qsl-entry .qsl-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .84rem; }
.qsl-entry > small { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.exchange-section { margin-bottom: 35px; }
.exchange-section .section-heading { display: flex; align-items: flex-end; }
.exchange-section .section-heading p,
.qsl-records-section .section-heading p,
.logbook-block .section-heading p { max-width: 650px; margin: 9px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.exchange-section .section-heading h2,
.qsl-records-section .section-heading h2,
.logbook-block .section-heading h2 { color: var(--ink); }
.exchange-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 14px; }
.exchange-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-light);
  box-shadow: 0 4px 15px rgba(56,46,31,.03);
}
.exchange-card-head { align-items: center; gap: 13px; }
.exchange-card-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e2d8ce;
  border-radius: 11px;
  color: var(--brown);
  background: var(--brown-wash);
  font: 700 .84rem/1 var(--sans);
}
.exchange-card .module-label { color: var(--brown); font-size: .74rem; letter-spacing: .04em; }
.exchange-card h3 { margin: 4px 0 0; color: var(--ink); font-size: 1.27rem; line-height: 1.4; }
.exchange-card > p { margin: 17px 0 13px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.exchange-card address {
  display: grid;
  gap: 5px;
  padding: 16px 17px;
  border: 1px solid #e5dacf;
  border-radius: 12px;
  color: #665e55;
  background: #f5f2ec;
  font: normal .9rem/1.6 var(--sans);
  overflow-wrap: anywhere;
}
.exchange-card address strong { color: var(--ink); font: 700 .95rem/1.55 var(--sans); overflow-wrap: anywhere; }
.exchange-card address i { width: 44px; margin: 6px 0 4px; border-top: 1px solid #d7c8bb; }
.exchange-guide ol { gap: 0; margin: 17px 0 0; }
.exchange-guide li { gap: 3px; padding: 12px 0 12px 34px; border-top-color: var(--line); }
.exchange-guide li::before { top: 13px; color: var(--brown); font: 600 .75rem/1.3 var(--sans); }
.exchange-guide li b { color: var(--ink); font: 600 .9rem/1.5 var(--sans); }
.exchange-guide li span { color: var(--muted); font-size: .86rem; line-height: 1.65; overflow-wrap: anywhere; }
.exchange-links { gap: 8px 14px; margin-top: 13px; }
.exchange-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--brown); border-bottom: 1px solid currentColor; font-size: .84rem; font-weight: 600; overflow-wrap: anywhere; }
.exchange-links a:hover { color: var(--brown-dark); }
.qsl-records-section { margin-bottom: 30px; }
.qsl-records-section .section-heading { display: flex; align-items: flex-end; }
.qsl-record-head,
.qsl-record-list > div:not(.qsl-record-head) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .65fr) minmax(0, .65fr);
  gap: 12px;
}
.qsl-record-list { border-color: var(--line); border-radius: 13px; background: var(--paper-light); }
.qsl-record-head { color: #756b61; background: #f1ebe3; font: 600 .78rem/1.45 var(--sans); }
.qsl-record-list > div:not(.qsl-record-head) { color: #6d6258; font-size: .86rem; line-height: 1.5; }
.qsl-record-list > div:not(.qsl-record-head) > * { min-width: 0; overflow-wrap: anywhere; }
.qsl-record-list strong { color: var(--ink); font: 700 .88rem/1.5 var(--sans); }
.qsl-record-list time { font: 500 .82rem/1.5 var(--sans); }
.qsl-record-state {
  padding: 23px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: var(--paper-light);
  font-size: .92rem;
  line-height: 1.65;
  text-align: center;
}
.qsl-form-modal > p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.qsl-form-grid label > span { color: #6f645b; font-size: .84rem; line-height: 1.45; }
.qsl-form-grid input,
.qsl-form-grid textarea { min-height: 46px; font-size: 16px; }
.qsl-form-grid textarea { min-height: 100px; }
.qsl-confirm { color: #6d6258; font-size: .84rem; line-height: 1.55; }
.qsl-form-error { font-size: .84rem; line-height: 1.5; }
.qsl-form-actions .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: .88rem; }
.qsl-form-actions .button-primary { border: 1px solid var(--brown); color: #fff; background: var(--brown); box-shadow: none; }
.qsl-form-actions .button-primary:hover { border-color: #693b2c; background: #693b2c; }
.qsl-confirmation-id { color: #693b2c; background: var(--brown-wash); font: 600 .84rem/1.4 var(--sans); overflow-wrap: anywhere; }
.qrz-embed { border: 1px solid var(--line); border-radius: 15px; background: var(--paper-light); }
.qrz-embed-head span, .qrz-embed-head small { font: 500 .76rem/1.5 var(--sans); letter-spacing: .035em; }
.timeline time { font: 500 .78rem/1.5 var(--sans); }
.qrz-frame-shell { width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.qrz-logbook-frame { min-width: 640px; }
.radio-view .content-section .section-heading { display: flex; align-items: flex-end; }
.radio-view .content-section .module-link,
.radio-view .content-section .qsl-inline-button { min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 5px 8px; font-size: .84rem; }

.about-dashboard { grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); gap: 15px; margin-bottom: 32px; }
.about-profile {
  min-width: 0;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 33px);
  border-color: #e1d5ca;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--brown-wash), var(--paper-light) 78%);
  box-shadow: 0 5px 18px rgba(56,46,31,.035);
}
.about-profile .module-label { color: var(--brown); font-size: .76rem; letter-spacing: .05em; }
.about-profile-top { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.about-maintenance { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #c8d0c6; border-radius: 999px; color: #5f7265; background: rgba(248, 246, 240, .7); font: 500 .75rem/1.5 var(--sans); white-space: nowrap; }
.about-maintenance i { width: 7px; height: 7px; border-radius: 50%; background: #63786c; }
.about-profile h2 { margin: 8px 0 0; color: var(--ink); font: 600 clamp(2.1rem, 3.7vw, 3rem)/1.12 var(--callsign); letter-spacing: .01em; overflow-wrap: anywhere; }
.about-statement { max-width: 590px; margin: 18px 0 0; color: #6f645b; font-size: .98rem; line-height: 1.85; }
.about-statement p { margin: 0; }
.about-statement p + p { margin-top: 3px; }
.about-profile .about-tags { gap: 7px; margin-top: 20px; }
.about-profile .about-tags span { padding: 5px 10px; border-color: #e0d1c4; color: #745d50; background: #f4ece3; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); font: 500 .78rem/1.5 var(--sans); }
.about-contact-row { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 12px; border-top: 1px dotted #d8c9bb; color: #706357; font: 500 .84rem/1.5 var(--sans); overflow-wrap: anywhere; }
.about-contact-row a { display: inline-flex; min-height: 44px; align-items: center; color: var(--brown); }
.about-contact-row a:hover { color: var(--brown-dark); text-decoration: underline; text-underline-offset: 4px; }
.about-index {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-light);
  box-shadow: 0 4px 15px rgba(56,46,31,.03);
}
.about-index > .module-label { margin-bottom: 7px; color: var(--brown); font-size: .75rem; letter-spacing: .05em; }
.about-index > a {
  min-height: 64px;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: 10px;
  margin: 5px 0;
  padding: 10px 12px;
  border: 1px solid #e8ded4;
  border-radius: 14px;
  background: #f7f2eb;
  box-shadow: 0 2px 0 rgba(128, 84, 67, .055), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.about-index > a:hover { transform: none; border-color: #d7c8bb; color: var(--brown); background: #f4eee7; }
.about-index > a:focus-visible,
.friend-card:focus-visible { outline: 3px solid rgba(138,78,55,.3); outline-offset: 3px; }
.about-index > a > span { color: var(--brown); font: 600 .78rem/1.4 var(--sans); }
.about-index b { color: var(--ink); font-size: .94rem; line-height: 1.4; }
.about-index small { margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.about-index i { color: var(--brown); font-size: 1.05rem; font-style: normal; text-align: center; }
.friends-section { padding-bottom: 34px; }
.about-view .friends-section .section-heading { display: flex; align-items: flex-end; }
.about-view .friends-section .section-heading h2 { color: var(--ink); }
.friends-caption { color: var(--muted); font-size: .84rem; }
.friend-grid { gap: 11px; }
.friend-card {
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border-color: var(--line);
  border-radius: 14px;
  background: var(--paper-light);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.friend-card:hover { transform: translateY(-2px); border-color: #d5c6b8; background: #fffdf8; box-shadow: 0 8px 20px rgba(56,46,31,.06); }
.friend-mark { width: 44px; height: 44px; border: 1px solid #e2d6ca; border-radius: 12px; color: #fff; background: var(--brown); font: 700 .9rem/1 var(--sans); }
.friend-mark img { background: var(--brown-wash); }
.friend-card > div { min-width: 0; }
.friend-card b { color: var(--ink); font-size: .94rem; line-height: 1.4; overflow-wrap: anywhere; }
.friend-card p { margin: 4px 0 7px; color: var(--muted); font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.friend-card small { color: var(--brown); font: 600 .78rem/1.45 var(--sans); overflow-wrap: anywhere; }
.friend-invite { border-style: solid; border-color: #e1d6ca; background: #f4eee7; }
.friend-invite .friend-mark { border-color: #e3d7cb; color: var(--brown); background: var(--brown-wash); font-size: 1.15rem; }
.compact-contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6%; padding: 32px 0 42px; border-top-color: var(--line); }
.compact-contact h2 { color: var(--ink); font-size: clamp(1.65rem, 3vw, 2rem); }
.compact-contact p { margin: 8px 0 12px; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.compact-contact .email-callout { min-height: 44px; display: inline-flex; align-items: center; color: var(--brown); font: 600 .9rem/1.5 var(--sans); overflow-wrap: anywhere; }
.compact-contact .email-callout:hover { color: var(--brown-dark); }

.login-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); gap: 15px; align-items: stretch; }
.login-intro,
.login-card { min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: 16px; }
.login-intro {
  border: 1px solid #e1d5ca;
  background: linear-gradient(140deg, var(--brown-wash), var(--paper-light) 76%);
  box-shadow: 0 5px 18px rgba(56,46,31,.035);
}
.login-intro .module-label,
.login-card > .module-label { color: var(--brown); font-size: .76rem; letter-spacing: .05em; }
.login-intro h2 { max-width: 520px; margin: 15px 0 10px; color: var(--ink); font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.35; overflow-wrap: anywhere; }
.login-intro > p { max-width: 580px; margin: 0; color: #6f645b; font-size: .94rem; line-height: 1.8; overflow-wrap: anywhere; }
.login-scope { gap: 7px; margin: 19px 0 24px; }
.login-scope span { padding: 6px 10px; border-color: #e3d7cb; border-radius: 999px; color: #755443; background: rgba(255,255,255,.48); font-size: .81rem; line-height: 1.4; }
.login-security-list { gap: 8px; margin: 0 0 20px; }
.login-security-list span { gap: 10px; color: #6f645b; font-size: .88rem; line-height: 1.5; }
.login-security-list i {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid #e2d8cf;
  border-radius: 9px;
  color: var(--brown);
  background: rgba(255,255,255,.45);
  font: 600 .72rem/1 var(--sans);
}
.login-intro .module-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .86rem; }
.login-card { border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 9px 24px rgba(56,46,31,.06); }
.login-method-heading { margin: 12px 0 18px; }
.login-method-heading h2 { margin: 0 0 5px; color: var(--ink); font-size: 1.3rem; line-height: 1.4; }
.login-method-heading p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.login-method-label { min-height: 42px; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.login-method-label span { color: var(--ink); font-size: .9rem; font-weight: 600; }
.login-method-label small { color: var(--muted); font-size: .78rem; }
.github-login-button {
  min-height: 58px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 9px 12px;
  border-color: #e1d6ca;
  border-radius: 12px;
  color: var(--ink);
  background: #f4eee7;
}
.github-login-button:not(.disabled):hover { transform: translateY(-1px); border-color: #d4c6b9; background: #f2ebe4; }
.github-login-mark { width: 40px; height: 40px; border: 1px solid #e8ded4; border-radius: 11px; color: #755443; background: #fff; font: 700 .76rem/1 var(--sans); }
.github-login-button b { color: var(--ink); font-size: .9rem; line-height: 1.4; }
.github-login-button small { color: var(--muted); font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.github-login-button i { color: var(--brown); font: normal .95rem/1 var(--sans); }
.login-divider { margin: 18px 0; color: var(--muted); font-size: .8rem; }
.login-card form,
.login-card label { display: grid; gap: 8px; }
.login-card form { gap: 15px; }
.login-card label > span { color: #6f645b; font-size: .86rem; line-height: 1.45; }
.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9d0c6;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fffdf8;
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.login-card input:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(138,78,55,.12); }
.login-card input:focus-visible,
.login-card a:focus-visible,
.login-card button:focus-visible,
.login-intro a:focus-visible,
.qsl-entry a:focus-visible,
.qsl-entry button:focus-visible,
.exchange-links a:focus-visible,
.compact-contact a:focus-visible { outline: 3px solid rgba(138,78,55,.32); outline-offset: 3px; }
.login-challenge { gap: 10px; padding: 12px; border-color: #e5dbd1; border-radius: 12px; background: #f2ece5; }
.login-challenge > div:first-child { gap: 3px; }
.login-challenge b { color: var(--ink); font-size: .86rem; }
.login-challenge span { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.login-turnstile { min-height: 65px; overflow-x: auto; }
.login-submit {
  min-height: 48px;
  width: 100%;
  margin-top: 3px;
  border: 1px solid var(--brown);
  border-radius: 11px;
  color: #fff;
  background: var(--brown);
  box-shadow: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
}
.login-submit:hover { border-color: #693b2c; background: #693b2c; }
.login-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.login-message { min-height: 1.5em; margin: 0; color: #6d6258; font-size: .84rem; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
.login-footnote { margin: 11px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; text-align: left; }
.login-session-state { gap: 14px; margin-top: 20px; }
.login-session-state .state-chip { width: fit-content; min-height: 32px; margin: 0; color: #693b2c; border-color: #e0d1c7; background: var(--brown-wash); font-size: .84rem; }
.login-session-state .state-chip i { background: var(--brown); }
.login-session-state h2 { margin: 3px 0 0; color: var(--ink); font-size: 1.55rem; line-height: 1.4; }
.login-session-state > p:not(.login-message) { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.login-session-state .button:not(.button-primary) { min-height: 46px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font-size: .88rem; }

@media (max-width: 930px) {
  .radio-view .radio-overview { grid-template-columns: 1fr; }
  .radio-now { min-height: 0; }
  .about-dashboard { grid-template-columns: 1fr; }
  .about-profile { min-height: 0; }
  .login-layout { grid-template-columns: 1fr; }
  .login-card { order: -1; }
}

@media (max-width: 760px) {
  .exchange-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .radio-view .page-intro,
  .about-view .page-intro,
  .login-view .page-intro { padding-top: 28px; padding-bottom: 19px; }
  .radio-view .radio-overview { gap: 11px; margin-bottom: 26px; }
  .radio-station-card { padding: 19px; }
  .radio-now { margin-top: 12px; padding: 25px 19px 19px; }
  .radio-station-card .station-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
  .radio-station-card .state-chip { margin-top: 0; }
  .radio-station-card .station-details div { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; padding: 9px 0; }
  .qsl-entry { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-bottom: 28px; padding: 18px; }
  .qsl-entry .qsl-actions { max-width: none; justify-content: flex-start; }
  .qsl-entry .qsl-actions .button { width: 100%; }
  .qsl-entry .qsl-actions .text-link { font-size: .82rem; }
  .exchange-section { margin-bottom: 27px; }
  .radio-view .content-section .section-heading,
  .about-view .friends-section .section-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
  .radio-view .content-section .module-link,
  .radio-view .content-section .qsl-inline-button { min-height: 44px; align-self: flex-start; margin-top: 0; }
  .qsl-record-head { font-size: .72rem; }
  .qsl-record-head,
  .qsl-record-list > div:not(.qsl-record-head) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(42px, .7fr) minmax(42px, .7fr); gap: 6px; padding-right: 9px; padding-left: 9px; }
  .qsl-record-list > div:not(.qsl-record-head) { font-size: .76rem; }
  .qsl-record-list strong { font-size: .78rem; }
  .qsl-record-list time { font-size: .72rem; }
  .qsl-record-state { padding: 18px 13px; }
  .about-dashboard { gap: 11px; margin-bottom: 26px; }
  .about-profile,
  .about-index { padding: 19px; }
  .about-statement { margin-top: 15px; font-size: .94rem; }
  .about-contact-row { margin-top: 16px; }
  .friend-card { min-height: 88px; padding: 14px; }
  .compact-contact { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 26px 0 32px; }
  .compact-contact > div:last-child { margin-top: 10px; }
  .login-layout { gap: 11px; padding-bottom: 38px; }
  .login-intro,
  .login-card { padding: 19px; }
  .login-scope { margin: 16px 0 20px; }
  .login-card input,
  .qsl-form-grid input,
  .qsl-form-grid textarea { min-height: 46px; padding: 10px 12px; font-size: 16px; }
  .login-card form { gap: 13px; }
  .login-challenge { padding: 10px; }
  .login-turnstile { min-height: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  .github-login-button:hover { transform: none; }
  .about-index > a,
  .friend-card,
  .login-submit { transition: none; }
}
