/* Pensacola Surf Report — site styles. Colors and fonts from the approved mockup 6. */
/* Fonts are self-hosted (SIL Open Font License, see /fonts). */
@font-face { font-family: 'Shrikhand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/shrikhand-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
:root {
  --teal: #1F5F6E; --teal-deep: #17505D; --brown: #3B2A1F; --brown-soft: #6B5444;
  --mustard: #E8A33D; --peach: #FBE3B8; --sky: #D6EEF2; --sky-ink: #CDEBF0; --ad: #EAF6F8; --white: #FFFFFF;
  --poor: #A9B4B9; --fair: #7CC4F2; --good: #3CC46B; --epic: #FF4FA3;
  --display: 'Shrikhand', 'Georgia', serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--brown); font-family: var(--body); font-size: 16px; line-height: 1.45; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cond { font-family: var(--cond); font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
.section-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; color: var(--brown); }
.muted { color: var(--brown-soft); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- masthead + nav ---------- */
.masthead { background: var(--white); }
.masthead .wrap { display: grid; justify-items: center; gap: 10px; padding-top: 18px; padding-bottom: 16px; }
.masthead .logo { display: block; width: 100%; max-width: 440px; }
h1.tagline { margin: 0; }
.tagline { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-soft); text-align: center; }
.mainnav { position: sticky; top: 0; z-index: 20; background: var(--white); border-top: 3px solid var(--brown); border-bottom: 1px solid var(--brown); }
.mainnav .wrap { display: flex; justify-content: center; gap: 30px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-family: var(--cond); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a { flex: 0 0 auto; text-decoration: none; padding: 10px 4px; color: var(--brown); border-bottom: 4px solid transparent; }
.mainnav a[aria-current="page"], .mainnav a.active { color: var(--teal); border-bottom-color: var(--teal); }
.mainnav a.btn-contact { align-self: center; padding: 5px 14px; margin: 4px 0; background: var(--teal); color: var(--white); border: 2px solid var(--brown); }
@media (max-width: 760px) { .mainnav .wrap { justify-content: flex-start; gap: 22px; font-size: 17px; } }

main.wrap { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 40px; }

/* ---------- ad slots: hidden until ads are switched on (body[data-ads="on"]) ---------- */
.ad { display: none; }
body[data-ads="on"] .ad { display: grid; place-items: center; width: 100%; margin: 0 auto; background: transparent; }
.ad-banner { max-width: 970px; min-height: 100px; }
.ad-box { max-width: 336px; min-height: 280px; }
.ad-tall { max-width: 300px; min-height: 600px; }
.ad-content { max-width: 970px; min-height: 250px; }
.ad-anchor { display: none !important; }
@media (max-width: 760px) {
  .ad-banner { min-height: 100px; } .ad-content { min-height: 280px; } .ad-tall { display: none !important; }
  body[data-ads="on"] .ad-anchor { display: flex !important; position: sticky; bottom: 0; z-index: 30; justify-content: center; background: var(--white); border-top: 2px solid var(--brown); min-height: 58px; padding: 4px 0 env(safe-area-inset-bottom, 0px); }
}

/* ---------- hero ---------- */
.hero-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.hero { flex: 0 1 700px; max-width: 700px; min-width: 0; background: var(--teal); color: var(--white); border: 3px solid var(--brown); border-radius: 22px; box-shadow: 6px 6px 0 var(--mustard); padding: clamp(16px, 3vw, 22px) clamp(18px, 3.5vw, 26px); display: grid; gap: 10px; align-content: start; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-main { display: grid; gap: 10px; min-width: 0; }
.hero-wind { flex: 0 0 auto; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 10px 14px; border: 2px solid var(--sky-ink); border-radius: 14px; min-width: 120px; }
.hw-label { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
.hw-arrow { width: 40px; height: 40px; }
.hw-speed { font-family: var(--cond); font-weight: 800; font-size: 34px; line-height: .95; }
.hw-speed small { font-size: 15px; font-weight: 700; }
.hw-dir { font-size: 13px; color: var(--sky-ink); }
.hw-type { font-family: var(--cond); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--peach); }
.hw-type[data-type="offshore"], .hw-type[data-type="calm"] { color: var(--good); }
.hw-type[data-type="onshore"] { color: var(--mustard); }
.hero-label { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
.hero-num { font-family: var(--cond); font-weight: 800; font-size: clamp(72px, 12vw, 104px); line-height: .85; }
.hero-num small { font-size: .37em; }
.hero-body { font-family: var(--cond); font-weight: 700; font-size: clamp(17px, 2.4vw, 21px); text-transform: uppercase; letter-spacing: .04em; color: var(--peach); margin-top: -4px; }
.meter { display: inline-grid; grid-template-columns: repeat(10, 18px); gap: 3px; }
.meter span { height: 14px; border: 2px solid var(--sky-ink); }
.meter span.on { border-color: transparent; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rating-word { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--cond); font-weight: 800; text-transform: uppercase; }
.rating-word .w { font-size: 22px; letter-spacing: .04em; }
.rating-word .n { font-size: 40px; line-height: .8; }
.rating-word .d { font-size: 16px; font-weight: 600; color: var(--sky-ink); opacity: .8; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.pill-outline { background: transparent; color: var(--peach); border: 2px solid var(--peach); border-radius: 999px; font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; padding: 1px 12px; }
.hero-desc { font-size: 16px; line-height: 1.45; max-width: 46ch; color: #E6F4F7; margin: 0; }
.hero-source { font-size: 12px; color: var(--sky-ink); }
body:not([data-ads="on"]) .hero-aside, body:not([data-ads="on"]) .cams-layout > aside { display: none; }
.hero-aside { flex: 1 1 300px; display: grid; gap: 16px; align-content: start; justify-items: center; }

/* why + feedback strip */
.why { border: 2px solid var(--brown); background: var(--white); display: flex; flex-wrap: wrap; font-size: 13px; }
.why > * { padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.why .why-score { flex: 999 1 520px; min-width: 0; border-right: 2px solid var(--brown); }
.why .why-vote { flex: 1 1 320px; background: var(--sky); gap: 6px 8px; }
.why .t { font-family: var(--cond); font-weight: 800; font-size: 15px; text-transform: uppercase; }
.why .bar { display: inline-flex; align-items: center; gap: 6px; }
.why .bar i { width: 46px; height: 7px; border: 1.5px solid var(--brown); display: inline-block; }
.why .bar i b { display: block; height: 100%; background: var(--teal); }
.why select, .why button { font: inherit; font-size: 13px; padding: 4px 8px; min-height: 36px; border: 1.5px solid var(--brown); background: var(--white); color: var(--brown); }
.why button { font-weight: 700; cursor: pointer; }
.why button[aria-pressed="true"] { background: var(--teal); color: var(--white); }
@media (max-width: 520px) {
  .hero-meta [aria-hidden="true"] { display: none; }
  .hero { padding: 14px 16px; gap: 7px; border-radius: 18px; box-shadow: 4px 4px 0 var(--mustard); }
  .hero-label { font-size: 13px; }
  .hero-num { font-size: 60px; }
  .hero-body { font-size: 15px; margin-top: -2px; }
  .meter { grid-template-columns: repeat(10, 13px); gap: 2px; }
  .meter span { height: 11px; }
  .rating-row { gap: 10px; }
  .rating-word .w { font-size: 18px; }
  .rating-word .n { font-size: 32px; }
  .rating-word .d { font-size: 14px; }
  .hero-meta { font-size: 15px; gap: 6px; }
  .pill-outline { font-size: 14px; padding: 0 10px; }
  .hero-desc { font-size: 14.5px; line-height: 1.4; }
  .hero-flag { font-size: 12px; }
  .hero-source { font-size: 11px; }
}
@media (max-width: 760px) { .why .why-score { border-right: 0; border-bottom: 2px solid var(--brown); } }

/* ---------- cards ---------- */
.card { background: var(--white); border: 3px solid var(--brown); box-shadow: 4px 4px 0 var(--brown); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.card-flat { box-shadow: none; }
.card h3 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.section { display: grid; gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile { background: var(--white); border: 3px solid var(--brown); padding: 14px; display: grid; gap: 2px; align-content: start; }
.tile .k { font-size: 17px; font-weight: 700; }
.tile .src { font-size: 12px; font-weight: 600; color: var(--brown-soft); }
.tile .v { font-family: var(--cond); font-weight: 800; font-size: 36px; color: var(--teal); line-height: 1.1; }
.tile .s { font-size: 13px; }
.note-peach { background: var(--peach); border: 3px solid var(--brown); padding: 16px 18px; display: grid; gap: 4px; }

/* map card */
.mapcard { border: 3px solid var(--brown); box-shadow: 4px 4px 0 var(--brown); background: var(--white); display: flex; flex-wrap: wrap; }
.mapcard .map { flex: 0 1 400px; min-width: 0; background: var(--sky); border-right: 3px solid var(--brown); }
.mapcard .legend { flex: 1 1 320px; min-width: 0; padding: 22px; display: grid; gap: 14px; align-content: center; }
.legend-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend-row .cond { font-size: 24px; }
.legend-row .val { font-size: 19px; color: var(--brown-soft); }
@media (max-width: 760px) { .mapcard .map { border-right: 0; border-bottom: 3px solid var(--brown); flex-basis: 100%; } }

/* gauges */
.gauge-bands { display: grid; grid-template-columns: 5fr 2fr 3fr 6fr; gap: 4px; }
.gauge-bands div { height: 20px; border: 2px solid var(--brown); }
.gauge-labels { display: grid; grid-template-columns: 5fr 2fr 3fr 6fr; gap: 4px; font-size: 12px; font-weight: 600; padding-top: 4px; }
.gauge { position: relative; padding-top: 22px; }
.gauge .marker { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--cond); font-weight: 800; font-size: 15px; white-space: nowrap; }
.split { display: grid; height: 22px; border: 2px solid var(--brown); }
.split div:first-child { background: var(--teal); }
.split div:last-child { background: var(--mustard); border-left: 2px solid var(--brown); }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.eq > div { flex: 1 1 200px; display: grid; gap: 4px; }
.eq .op { font-family: var(--cond); font-weight: 800; font-size: 40px; }

/* ---------- week ahead ---------- */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.day { background: var(--white); border: 3px solid var(--brown); box-shadow: 4px 4px 0 var(--brown); display: grid; overflow: hidden; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: var(--teal); color: var(--white); }
.day-head .d { font-family: var(--cond); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.day-head .c { font-size: 12px; font-weight: 700; color: var(--sky-ink); white-space: nowrap; }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.half { display: grid; grid-template-rows: 1fr auto; }
.half + .half { border-left: 2px solid var(--brown); }
.half .in { padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.half .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brown-soft); }
.half .ft { font-family: var(--cond); font-weight: 800; font-size: 38px; line-height: 1; }
.half .ft small { font-size: 18px; }
.half .body { font-size: 13px; font-weight: 700; color: var(--teal); }
.half .meta { font-size: 13px; }
.half .strip { border-top: 3px solid var(--brown); padding: 7px 14px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--brown); }
.half .strip .n { font-size: 30px; line-height: .8; }
.half .strip .d { font-size: 13px; opacity: .75; }
.half.past { opacity: .45; }
.half.empty .in { color: var(--brown-soft); font-size: 13px; }
.key { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.key > div { border: 3px solid var(--brown); display: grid; align-content: start; }
.key .top { border-bottom: 3px solid var(--brown); padding: 8px 12px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--cond); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.key p { margin: 0; padding: 10px 12px; font-size: 15px; line-height: 1.45; }

/* planner + tables */
.planner-scroll, .table-scroll { overflow-x: auto; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 600; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.howto { background: var(--peach); border: 2px solid var(--brown); padding: 12px 14px; font-size: 15px; line-height: 1.5; }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th { text-align: left; padding: 8px; border-bottom: 2px solid var(--sky); white-space: nowrap; }
table.t td { padding: 6px 8px; border-bottom: 1px solid var(--sky); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { padding-left: 14px; }
.tablecard { background: var(--white); border: 3px solid var(--brown); display: grid; align-content: start; overflow: hidden; }
.tablecard .head { background: var(--teal); color: var(--white); padding: 10px 14px; font-family: var(--cond); font-weight: 700; font-size: 20px; text-transform: uppercase; border-bottom: 3px solid var(--brown); }
.risk { font-family: var(--cond); font-weight: 800; font-size: 14px; padding: 2px 8px; }
.risk-High { background: var(--brown); color: var(--white); } .risk-Moderate { background: var(--mustard); color: var(--brown); } .risk-Low { background: var(--sky); color: var(--brown); }

/* surf school */
.lessons { display: grid; gap: 8px; }
.lessons details { background: var(--white); border: 3px solid var(--brown); padding: 12px 16px; }
.lessons summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.lessons p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; max-width: 72ch; }
.school-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.school-cards a { text-decoration: none; color: var(--brown); background: var(--white); border: 3px solid var(--brown); padding: 18px; display: grid; gap: 6px; }
.school-cards a:first-child { background: var(--mustard); }

/* ---------- footer ---------- */
footer { background: var(--brown); color: #F3E6D3; margin-top: 16px; }
footer .stripe { height: 6px; background: var(--mustard); }
.contact-band { background: var(--teal); border-bottom: 3px solid var(--brown); }
.contact-band .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 32px; padding-bottom: 32px; }
.contact-band .lmk { display: block; margin-top: -6px; font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--peach); }
.contact-band h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--peach); }
.contact-band p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 46ch; color: #E6F4F7; }
.contact-band form { flex: 1 1 380px; min-width: 0; display: grid; gap: 12px; }
.contact-band .intro { flex: 1 1 340px; min-width: 0; display: grid; gap: 10px; }
.contact-band label { font-size: 13px; font-weight: 700; color: var(--peach); }
.contact-band input, .contact-band textarea { font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 2px solid var(--peach); background: var(--teal-deep); color: var(--white); width: 100%; }
.contact-band textarea { resize: vertical; }
.contact-band .field { display: grid; gap: 4px; }
.contact-band .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-band button { font-family: var(--cond); font-weight: 800; font-size: 18px; text-transform: uppercase; padding: 10px 22px; min-height: 44px; background: var(--mustard); color: var(--brown); border: 2px solid var(--mustard); cursor: pointer; justify-self: start; }
.contact-band button[disabled] { opacity: .6; cursor: wait; }
.form-status { font-size: 15px; color: var(--peach); min-height: 1.4em; }
.legal .wrap { display: grid; gap: 6px; padding-top: 18px; padding-bottom: 24px; font-size: 13px; }
.legal a { color: var(--peach); }

/* cams page */
.cam { border: 3px solid var(--brown); box-shadow: 4px 4px 0 var(--brown); background: var(--white); display: grid; }
.cam .frame { position: relative; aspect-ratio: 16 / 9; background: var(--teal-deep); }
.cam iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cam .cap { padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; border-top: 3px solid var(--brown); }
.cam .cap .cond { font-size: 22px; }
.cams-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cams-layout > .main { flex: 999 1 620px; min-width: 0; display: grid; gap: 24px; }
.cams-layout > aside { flex: 1 1 300px; display: grid; gap: 16px; justify-items: center; }

/* simple text pages */
.prose { max-width: 72ch; font-size: 17px; line-height: 1.6; }
.prose h1 { font-family: var(--display); font-weight: 400; color: var(--teal); font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.prose h2 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; font-size: 24px; margin: 28px 0 6px; }

/* loading + errors */
.skeleton { color: transparent !important; background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.12), rgba(0,0,0,.06)); border-radius: 4px; }
.notice { border: 2px solid var(--brown); background: var(--peach); padding: 10px 14px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.vote-status { font-size: 13px; font-weight: 600; }
.why .why-score .item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

/* ---------- phones: scale everything down ---------- */
@media (max-width: 520px) {
  body { font-size: 15px; }
  main.wrap { gap: 22px; padding-top: 16px; padding-bottom: 28px; }
  .section { gap: 12px; }
  .section-title { font-size: 23px !important; }
  /* header + nav */
  .masthead .wrap { padding-top: 12px; padding-bottom: 10px; gap: 6px; }
  .masthead a { max-width: 290px !important; }
  .tagline { font-size: 10.5px; letter-spacing: .1em; }
  .mainnav .wrap { font-size: 15px; gap: 16px; }
  .mainnav a { padding: 8px 2px; border-bottom-width: 3px; }
  .mainnav a.btn-contact { padding: 3px 10px; }
  /* cards and tiles */
  .card, .tablecard, .mapcard, .day, .cam { box-shadow: 3px 3px 0 var(--brown); }
  .card, .tile, .key > div, .day, .tablecard, .mapcard, .lessons details, .school-cards a, .note-peach, .cam { border-width: 2px; }
  .card { padding: 12px; gap: 8px; }
  .card h3 { font-size: 17px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 9px 10px; }
  .tile .k { font-size: 14px; }
  .tile .src { font-size: 10.5px; }
  .tile .v { font-size: 24px; }
  .tile .s { font-size: 12px; }
  .note-peach { padding: 10px 12px; }
  .note-peach span:first-child { font-size: 15px !important; }
  .note-peach span:last-child { font-size: 13px !important; }
  /* map + legend */
  .mapcard .legend { padding: 12px; gap: 8px; }
  .legend-row { gap: 8px; }
  .legend-row .cond { font-size: 17px; }
  .legend-row .val { font-size: 14px; }
  .mapcard .legend p { font-size: 13.5px !important; padding-top: 8px !important; }
  #tide-now { font-size: 13px !important; }
  #tide p { font-size: 13px !important; }
  /* reading today's numbers */
  .gauge-labels { font-size: 10px; }
  #period-text, #wind-text { font-size: 13px !important; }
  #wind-compass { width: 96px; height: 96px; }
  .eq { gap: 6px; }
  .eq svg { height: 40px; }
  .eq b { font-size: 14px; }
  .eq span:not(.op) { font-size: 12.5px !important; }
  .eq .op { font-size: 26px; }
  #energy-text, #energy-split + div + span { font-size: 12.5px !important; }
  /* week ahead */
  #best-window { font-size: 14px !important; }
  .days { gap: 10px; }
  .day-head { padding: 6px 10px; }
  .day-head .d { font-size: 16px; }
  .day-head .c { font-size: 10.5px; }
  .half .in { padding: 8px 10px; }
  .half .lbl { font-size: 10.5px; }
  .half .ft { font-size: 28px; }
  .half .ft small { font-size: 14px; }
  .half .body, .half .meta { font-size: 12px; }
  .half .strip { padding: 4px 10px; font-size: 14px; border-top-width: 2px; }
  .half .strip .n { font-size: 22px; }
  .half .strip .d { font-size: 11px; }
  .half + .half { border-left-width: 2px; }
  .key { gap: 8px; }
  .key .top { padding: 5px 10px; font-size: 15px; border-bottom-width: 2px; }
  .key p { padding: 7px 10px; font-size: 13px; }
  #rating-scale > span { font-size: 12.5px !important; }
  /* planner + tables */
  .legend-inline { font-size: 11.5px; gap: 6px 12px; }
  .howto { font-size: 13px; padding: 10px 12px; }
  #planner-title { font-size: 21px !important; }
  table.t { font-size: 12.5px; }
  table.t th, table.t td { padding: 5px 6px; }
  .tablecard .head { font-size: 16px; padding: 7px 12px; }
  /* surf school */
  .school-cards { gap: 8px; }
  .school-cards a { padding: 12px; gap: 3px; font-size: 13.5px; }
  .school-cards b.cond { font-size: 17px !important; }
  .lessons { gap: 6px; }
  .lessons details { padding: 9px 12px; }
  .lessons summary { font-size: 14.5px; }
  .lessons p { font-size: 13.5px; }
  /* footer + contact */
  .contact-band .wrap { padding-top: 22px; padding-bottom: 22px; gap: 18px; }
  .contact-band h2, .contact-band .lmk { font-size: 26px; }
  .contact-band p { font-size: 14.5px; }
  .contact-band input, .contact-band textarea { font-size: 16px; padding: 8px 10px; min-height: 42px; }
  .contact-band button { font-size: 16px; padding: 8px 18px; }
  .legal .wrap { font-size: 12px; padding-top: 14px; padding-bottom: 18px; }
  /* other pages */
  .prose { font-size: 15px; }
  .prose h2 { font-size: 19px; }
  .cam .cap { padding: 8px 12px; }
  .cam .cap .cond { font-size: 17px; }
  .cam .cap .muted { font-size: 13px; }
}

/* ---------- phones: a further step down ---------- */
@media (max-width: 520px) {
  body { font-size: 14px; }
  main.wrap { gap: 18px; }
  .section-title { font-size: 20px !important; }
  .masthead a { max-width: 250px !important; }
  .tagline { font-size: 9.5px; }
  .mainnav .wrap { font-size: 14px; gap: 14px; }
  /* hero */
  .hero { padding: 12px 14px; gap: 6px; }
  .hero-main { gap: 4px; }
  .hero-label { font-size: 11.5px; }
  .hero-num { font-size: 50px; }
  .hero-body { font-size: 13.5px; }
  .meter { grid-template-columns: repeat(10, 11px); }
  .meter span { height: 9px; }
  .rating-word .w { font-size: 16px; }
  .rating-word .n { font-size: 28px; }
  .rating-word .d { font-size: 12px; }
  .hero-meta { font-size: 13.5px; }
  .pill-outline { font-size: 12.5px; }
  .hero-desc { font-size: 13px; }
  .hero-source { font-size: 10.5px; }
  .hero-wind { min-width: 92px; padding: 6px 8px; border-radius: 10px; }
  .hw-label { font-size: 10.5px; }
  .hw-arrow { width: 28px; height: 28px; }
  .hw-speed { font-size: 24px; }
  .hw-speed small { font-size: 12px; }
  .hw-dir { font-size: 10.5px; }
  .hw-type { font-size: 11.5px; }
  .why { font-size: 12px; }
  .why .t { font-size: 13px; }
  /* boxes */
  .card { padding: 10px; }
  .card h3 { font-size: 15px; }
  .tile { padding: 7px 9px; }
  .tile .k { font-size: 13px; }
  .tile .v { font-size: 21px; }
  .tile .s { font-size: 11px; }
  .note-peach span:first-child { font-size: 14px !important; }
  .note-peach span:last-child { font-size: 12px !important; }
  .legend-row .cond { font-size: 15px; }
  .legend-row .val { font-size: 13px; }
  .mapcard .legend p, #tide p, #tide-now { font-size: 12.5px !important; }
  #period-text, #wind-text { font-size: 12.5px !important; }
  #wind-compass { width: 80px; height: 80px; }
  /* week */
  .day-head .d { font-size: 14.5px; }
  .half .in { padding: 6px 9px; }
  .half .ft { font-size: 24px; }
  .half .ft small { font-size: 12px; }
  .half .body, .half .meta { font-size: 11px; }
  .half .strip { font-size: 12.5px; padding: 3px 9px; }
  .half .strip .n { font-size: 19px; }
  .key .top { font-size: 13.5px; }
  .key p { font-size: 12px; }
  /* lower sections */
  #planner-title { font-size: 18px !important; }
  .howto { font-size: 12px; }
  table.t { font-size: 11.5px; }
  .tablecard .head { font-size: 14.5px; }
  .school-cards b.cond { font-size: 15px !important; }
  .school-cards a { font-size: 12.5px; padding: 10px; }
  .lessons summary { font-size: 13.5px; }
  .lessons p { font-size: 12.5px; }
  .contact-band h2, .contact-band .lmk { font-size: 22px; }
  .contact-band p { font-size: 13.5px; }
  .contact-band label { font-size: 12px; }
  .legal .wrap { font-size: 11px; }
  .prose { font-size: 14px; }
}

/* ---------- week ahead: compact boxes ---------- */
.days { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.day { box-shadow: 3px 3px 0 var(--brown); border-width: 2px; }
.day-head { padding: 6px 10px; }
.day-head .d { font-size: 16px; }
.day-head .c { font-size: 10.5px; }
.half .in { padding: 7px 10px; gap: 1px; }
.half .lbl { font-size: 10.5px; }
.half .ft { font-size: 27px; }
.half .ft small { font-size: 13px; }
.half .body { font-size: 12px; }
.half .meta { font-size: 11.5px; }
.half .strip { padding: 3px 10px; font-size: 13px; border-top-width: 2px; }
.half .strip .n { font-size: 20px; }
.half .strip .d { font-size: 10.5px; }
.half + .half { border-left-width: 2px; }
.half.empty .in { font-size: 11.5px; }
@media (max-width: 520px) {
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .day { box-shadow: 2px 2px 0 var(--brown); }
  .day-head { padding: 4px 7px; flex-wrap: wrap; gap: 0 6px; }
  .day-head .d { font-size: 13px; }
  .day-head .c { font-size: 9px; }
  .half .in { padding: 5px 6px; }
  .half .lbl { font-size: 9px; letter-spacing: .04em; }
  .half .ft { font-size: 19px; }
  .half .ft small { font-size: 10px; }
  .half .body { font-size: 9.5px; line-height: 1.2; }
  .half .meta { font-size: 9.5px; }
  .half .strip { padding: 2px 6px; font-size: 10px; }
  .half .strip .n { font-size: 15px; }
  .half .strip .d { font-size: 8.5px; }
  .half.empty .in { font-size: 9.5px; }
}

/* ---------- ratings key: compact ---------- */
.key { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.key > div { border-width: 2px; }
.key .top { padding: 4px 9px; font-size: 14px; border-bottom-width: 2px; }
.key p { padding: 6px 9px; font-size: 12.5px; line-height: 1.35; }
#rating-scale { gap: 6px !important; }
#rating-scale h3 { font-size: 15px !important; }
#rating-scale > span { font-size: 12px !important; }
@media (max-width: 760px) { .key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .key { gap: 6px; }
  .key .top { padding: 3px 7px; font-size: 12px; }
  .key p { padding: 4px 7px; font-size: 10.5px; line-height: 1.3; }
  #rating-scale h3 { font-size: 13px !important; }
  #rating-scale > span { font-size: 10.5px !important; }
}

/* ---------- phones: compact map card and "what makes up" ---------- */
@media (max-width: 520px) {
  #map-svg { height: 170px; }
  .mapcard .map { border-bottom-width: 2px; }
  .mapcard .legend { padding: 8px 10px 10px; gap: 4px; }
  .legend-row { gap: 6px; flex-wrap: nowrap; }
  .legend-row svg { width: 16px; height: 16px; flex: 0 0 auto; }
  .legend-row .cond { font-size: 13px; white-space: nowrap; }
  .legend-row .val { font-size: 11.5px; }
  .mapcard .legend p { font-size: 11.5px !important; line-height: 1.4 !important; padding-top: 6px !important; }

  .eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 4px; }
  .eq > div { gap: 2px; }
  .eq svg { height: 22px; }
  .eq b { font-size: 11px; line-height: 1.2; }
  .eq span:not(.op) { font-size: 9.5px !important; line-height: 1.3; }
  .eq .op { font-size: 16px; padding-top: 2px; }
  #makeup-title { font-size: 14px !important; }
  #makeup-title + span { font-size: 11px; }
  .split { height: 14px; }
  #energy-text { font-size: 11px !important; }
  #energy-text + span { font-size: 10.5px !important; }
}

/* ---------- map card: cropped to the island, map beside the text ---------- */
#map-svg { height: auto; }
.mapcard { align-items: stretch; }
.mapcard .map { flex: 0 1 440px; display: flex; align-items: center; }
.mapcard .legend { padding: 14px 18px; gap: 8px; }
.legend-row .cond { font-size: 19px; }
.legend-row .val { font-size: 15px; }
.mapcard .legend p { font-size: 14px !important; padding-top: 8px !important; }
@media (max-width: 520px) {
  #map-svg { height: auto; }
  .mapcard .legend { padding: 8px 10px 10px; gap: 4px; }
  .legend-row .cond { font-size: 13px; }
  .legend-row .val { font-size: 11.5px; }
  .mapcard .legend p { font-size: 11.5px !important; }
}

.seo-intro p { margin: 0; max-width: 80ch; font-size: 14px; line-height: 1.6; color: var(--brown-soft); }
@media (max-width: 520px) { .seo-intro p { font-size: 12px; } }

/* ---------- Session Planner: compact on phones ---------- */
.planner-svg { min-width: 900px; }
.howto summary { cursor: pointer; display: inline; }
.howto[open] summary::after { content: ':'; }
.howto summary::-webkit-details-marker { display: none; }
@media (max-width: 520px) {
  .planner-card { padding: 10px !important; gap: 6px; }
  .planner-sub { font-size: 10.5px !important; }
  .planner-card .legend-inline { font-size: 9.5px; gap: 2px 10px; }
  .planner-card .legend-inline i { transform: scale(.75); }
  .planner-svg { min-width: 620px; }
  .howto { font-size: 11px; padding: 6px 10px; }
  .howto:not([open]) summary::after { content: ' ▸'; }
}

[hidden] { display: none !important; }

.hw-head { display: inline-flex; align-items: center; gap: 6px; }
.hw-compass { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1; color: var(--peach); }
@media (max-width: 520px) { .hw-compass { font-size: 18px; } .hw-head { gap: 4px; } }

/* hero: wind + water boxes */
.hero-side { display: flex; gap: 10px; align-items: stretch; flex: 0 0 auto; }
.hero-water .hw-type { color: var(--peach); }
@media (max-width: 520px) {
  .hero-side { gap: 6px; }
  .hero-side .hero-wind { min-width: 74px; padding: 6px 6px; }
  .hero-side .hw-speed { font-size: 22px; }
  .hero-side .hw-type { font-size: 10px; }
  .hero-side .hw-compass { font-size: 16px; }
}

/* week ahead: best window badge (matches the AM/PM rating strips) */
.best-window { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 700; }
.best-badge { display: inline-flex; align-items: baseline; gap: 10px; padding: 3px 10px; border: 2px solid var(--brown); font-family: var(--cond); font-weight: 800; font-size: 15px; text-transform: uppercase; color: var(--brown); }
.best-badge .n { font-size: 26px; line-height: .8; }
.best-badge .d { font-size: 12px; opacity: .75; }
@media (max-width: 520px) {
  .best-window { font-size: 13px !important; gap: 8px; }
  .best-badge { font-size: 12px; padding: 2px 8px; gap: 8px; }
  .best-badge .n { font-size: 20px; }
  .best-badge .d { font-size: 10px; }
}

/* hero: smaller wind + water boxes */
.hero-side { gap: 8px; }
.hero-side .hero-wind { min-width: 88px; padding: 6px 10px; gap: 1px; border-radius: 12px; }
.hero-side .hw-label { font-size: 11px; }
.hero-side .hw-arrow { width: 26px; height: 26px; }
.hero-side .hw-compass { font-size: 19px; }
.hero-side .hw-speed { font-size: 24px; }
.hero-side .hw-speed small { font-size: 12px; }
.hero-side .hw-type { font-size: 11px; }
@media (max-width: 520px) {
  .hero-side { gap: 5px; }
  .hero-side .hero-wind { min-width: 60px; padding: 4px 5px; border-radius: 9px; border-width: 1.5px; }
  .hero-side .hw-label { font-size: 9px; }
  .hero-side .hw-arrow { width: 18px; height: 18px; }
  .hero-side .hw-compass { font-size: 13px; }
  .hero-side .hw-speed { font-size: 17px; }
  .hero-side .hw-speed small { font-size: 9.5px; }
  .hero-side .hw-type { font-size: 8.5px; }
}

/* hero boxes: a little bigger on desktop (phones keep their compact size) */
@media (min-width: 521px) {
  .hero-side { gap: 10px; }
  .hero-side .hero-wind { min-width: 104px; padding: 8px 12px; gap: 2px; }
  .hero-side .hw-label { font-size: 12px; }
  .hero-side .hw-arrow { width: 32px; height: 32px; }
  .hero-side .hw-compass { font-size: 22px; }
  .hero-side .hw-speed { font-size: 29px; }
  .hero-side .hw-speed small { font-size: 13px; }
  .hero-side .hw-type { font-size: 12px; }
}

/* ---------- Surf Report 101: home teaser + its own page ---------- */
.learn-teaser { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; background: var(--sky); border: 3px solid var(--brown); padding: 18px; }
.learn-teaser .lt-text { flex: 1 1 280px; display: grid; gap: 8px; align-content: center; }
.learn-teaser p { margin: 0; font-size: 15px; line-height: 1.5; }
.learn-teaser .school-cards { flex: 2 1 480px; }
.school-cards b.cond { font-size: 18px; }
.lt-btn { justify-self: start; display: inline-block; background: var(--teal); color: var(--white); border: 2px solid var(--brown); padding: 7px 14px; font-family: var(--cond); font-weight: 800; font-size: 16px; text-transform: uppercase; text-decoration: none; }
.lt-btn:hover { color: var(--peach); }
.learn-hero { display: grid; gap: 6px; }
.learn-hero p { margin: 0; font-size: 17px; max-width: 80ch; }
.learn-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.learn-toc { position: sticky; top: 64px; border: 3px solid var(--brown); background: var(--white); padding: 12px 14px; display: grid; gap: 6px; }
.learn-toc .cond { font-size: 16px; }
.learn-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.learn-toc a { color: var(--brown); text-decoration: none; }
.learn-toc a:hover { color: var(--teal); text-decoration: underline; }
.learn-lessons { display: grid; gap: 14px; }
.lesson { display: grid; grid-template-columns: auto 1fr; gap: 14px; background: var(--white); border: 3px solid var(--brown); box-shadow: 4px 4px 0 var(--brown); padding: 16px 18px; scroll-margin-top: 70px; }
.lesson-num { width: 40px; height: 40px; display: grid; place-items: center; background: var(--mustard); border: 2px solid var(--brown); font-family: var(--cond); font-weight: 800; font-size: 22px; }
.lesson h2 { margin: 0 0 6px; font-family: var(--cond); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.lesson p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; max-width: 68ch; }
.lesson-link { font-weight: 700; font-size: 14px; }
.learn-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--peach); border: 3px solid var(--brown); padding: 14px 18px; font-size: 17px; }
@media (max-width: 760px) {
  .learn-layout { grid-template-columns: 1fr; }
  .learn-toc { position: static; }
  .learn-toc ol { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}
@media (max-width: 520px) {
  .learn-teaser { padding: 12px; gap: 10px; border-width: 2px; }
  .learn-teaser p { font-size: 13px; }
  .lt-btn { font-size: 13px; padding: 5px 10px; }
  .learn-hero p { font-size: 14px; }
  .learn-toc { padding: 8px 10px; border-width: 2px; }
  .learn-toc ol { font-size: 11.5px; grid-template-columns: 1fr; }
  .lesson { padding: 10px 12px; gap: 10px; border-width: 2px; box-shadow: 3px 3px 0 var(--brown); }
  .lesson-num { width: 30px; height: 30px; font-size: 17px; }
  .lesson h2 { font-size: 16px; }
  .lesson p { font-size: 13.5px; }
  .lesson-link { font-size: 12px; }
  .learn-cta { font-size: 14px; padding: 10px 12px; }
}
.learn-teaser .school-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.learn-teaser .school-cards a { padding: 12px; gap: 4px; font-size: 14px; }
@media (max-width: 760px) { .learn-teaser .school-cards { grid-template-columns: 1fr; } }

.learn-kicker { font-size: 15px; letter-spacing: .1em; color: var(--brown-soft); }
@media (max-width: 520px) { .learn-kicker { font-size: 12px; } }

/* ---------- accessibility: contrast fixes (WCAG 2.1 AA) ---------- */
.hw-type[data-type="offshore"], .hw-type[data-type="calm"] { color: #7DE89A; }
.hw-type[data-type="onshore"] { color: #F7D36A; }
.rating-word .d { opacity: 1; color: var(--sky-ink); }
.half .strip, .best-badge, .key .top { color: #24180F; }
.half .strip .d, .best-badge .d { opacity: 1; }

/* ---------- sticky menu: mini logo that returns to the top ---------- */
.mainnav { display: flex; align-items: stretch; }
.mainnav > .wrap { flex: 1 1 auto; min-width: 0; }
.nav-home { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%) scale(.6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; display: block; width: 38px; height: 38px; z-index: 2; }
.nav-home svg { width: 100%; height: 100%; display: block; }
.mainnav.scrolled .nav-home { opacity: 1; transform: translateY(-50%) scale(1); pointer-events: auto; }
@media (max-width: 1320px) { .mainnav.scrolled > .wrap { padding-left: 62px; } }
@media (max-width: 520px) { .nav-home { width: 32px; height: 32px; } .mainnav.scrolled > .wrap { padding-left: 52px; } }
@media (prefers-reduced-motion: reduce) { .nav-home { transition: none; } }
.mainnav a.nav-home { padding: 0; border: 0; }

/* ---------- hero v2: surf box + conditions box (+ ad on wide screens) ---------- */
.hero-row { display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 18px; align-items: stretch; }
.hero-row > .hero { flex: none; max-width: none; gap: 9px; align-content: start; }
.hero-row > .hero .hero-desc { max-width: 38ch; }
.condbox { background: var(--teal-deep); border: 3px solid var(--brown); border-radius: 22px; box-shadow: 6px 6px 0 var(--mustard); padding: 14px; display: grid; grid-template-columns: 150px 112px; grid-template-rows: 1fr 1fr; gap: 8px; color: var(--white); }
.ct { display: grid; justify-items: center; align-content: center; text-align: center; gap: 2px; border: 2px solid var(--sky-ink); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.ct-safety { grid-column: 1; grid-row: 1 / span 2; }
.ct-wind { grid-column: 2; grid-row: 1; }
.ct-water { grid-column: 2; grid-row: 2; }
.ct-label { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
.ct-head { display: inline-flex; align-items: center; gap: 6px; }
.ct-icon { width: 30px; height: 30px; }
.ct-icon-lg { width: 40px; height: 40px; }
.ct-compass { font-family: var(--cond); font-weight: 800; font-size: 20px; color: var(--peach); }
.ct-big { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1; }
.ct-big small { font-size: 13px; font-weight: 700; }
.ct-risk { font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.ct-risk[data-risk="High"] { color: #FF9A92; } .ct-risk[data-risk="Moderate"] { color: #F7D36A; } .ct-risk[data-risk="Low"] { color: #7DE89A; }
.ct-note { font-family: var(--cond); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--sky-ink); min-height: 0; }
.ct-note:empty { display: none; }
.ct-plain { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 11px; }
.hero-row > .hero-aside { display: none; }
@media (min-width: 1100px) { body[data-ads="on"] .hero-row { grid-template-columns: max-content max-content max-content; } body[data-ads="on"] .hero-row > .hero-aside { display: grid; align-content: center; } }
@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-row > .hero .hero-desc { max-width: none; }
  .condbox { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; padding: 8px; gap: 6px; border-radius: 18px; box-shadow: 4px 4px 0 var(--brown); }
  .ct-wind { grid-column: 1; grid-row: 1; } .ct-water { grid-column: 2; grid-row: 1; } .ct-safety { grid-column: 3; grid-row: 1; }
  .ct { padding: 6px 5px; border-radius: 10px; }
  .ct-label { font-size: 9.5px; letter-spacing: .06em; }
  .ct-icon { width: 20px; height: 20px; } .ct-icon-lg { width: 22px; height: 22px; }
  .ct-compass { font-size: 14px; } .ct-big { font-size: 18px; } .ct-big small { font-size: 10px; } .ct-risk { font-size: 14px; }
  .ct-note { font-size: 9px; } .ct-plain { font-size: 8.5px; }
}

/* hero v2: flag tile on the right of wind + water */
.condbox { grid-template-columns: 112px 150px; }
.ct-wind { grid-column: 1; grid-row: 1; } .ct-water { grid-column: 1; grid-row: 2; }
.ct-flag { grid-column: 2; grid-row: 1 / span 2; color: var(--white); text-decoration: none; }
.ct-flag:hover { border-color: var(--peach); }
.ct-flagicon svg { width: 40px; height: 40px; display: block; }
.ct-flagname { font-family: var(--cond); font-weight: 800; font-size: 19px; line-height: 1.05; text-transform: uppercase; }
@media (max-width: 760px) {
  .condbox { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-wind { grid-column: 1; grid-row: 1; } .ct-water { grid-column: 2; grid-row: 1; } .ct-flag { grid-column: 3; grid-row: 1; }
  .ct-flagicon svg { width: 22px; height: 22px; } .ct-flagname { font-size: 13px; }
}
/* past AM/PM halves: muted without failing contrast */
.half.past { opacity: 1; background: #F1F4F5; }
.half.past .in, .half.past .ft, .half.past .body, .half.past .meta { color: #5E5149; }
.half.past .strip { filter: saturate(.35); }
