/* Weather hub and month pages (templates/weather/).
   Type scale: body 18px, lead 21px, labels and small print never below 16px.
   Season colours follow the band from backend/weather/months.py. */
.wx-page{--wx-mild:#e1ebe1;--wx-warm:#f3ead2;--wx-hot_days:#f5dfc6;--wx-hot:#f3d0b6;--wx-extreme:#efc0aa;--wx-label:16px;--wx-body:18px}
/* Muted text uses the site-wide --dg-muted from discovery.css. Labels on season tones use #44505d (4.8:1 on the hottest tone). */
.wx-band-mild{--wx-tone:var(--wx-mild)}.wx-band-warm{--wx-tone:var(--wx-warm)}.wx-band-hot_days{--wx-tone:var(--wx-hot_days)}.wx-band-hot{--wx-tone:var(--wx-hot)}.wx-band-extreme{--wx-tone:var(--wx-extreme)}
.wx-page h2{font-size:clamp(26px,2.8vw,34px)}.wx-page h3{font-family:var(--font-body);font-size:19px;font-weight:600;margin-top:28px}
.wx-page p,.wx-page li{font-size:var(--wx-body);line-height:1.65}
.wx-page .wx-intro{font-size:21px;line-height:1.6;margin-top:22px;max-width:640px}
/* Shared discovery pieces at this page's minimum size */
.wx-page .dg-breadcrumbs{font-size:var(--wx-label)}
.wx-page .dg-kicker{font-size:var(--wx-label);letter-spacing:.03em}
.wx-page .dg-place h3{font-size:20px}.wx-page .dg-card-link,.wx-page .dg-status,.wx-page .dg-card-description{font-size:var(--wx-label)}
.wx-page .trip-card-actions a{font-size:var(--wx-label)}
.wx-page .dg-tip{font-size:var(--wx-body)}

/* Hero */
.wx-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:start}
.wx-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:540px;list-style:none;margin:24px 0 0;padding:0}
.wx-page .wx-highlight{display:inline-flex;align-items:center;gap:10px;margin:0;padding:8px 16px 8px 8px;border-radius:999px;background:#fff;border:1px solid var(--dg-line);font-size:var(--wx-label);font-weight:500;line-height:1.3}
.wx-highlight-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--wx-tone);color:var(--dg-ink);flex-shrink:0}
.wx-icon{width:20px;height:20px}
.wx-facts-card{background:var(--wx-tone);border-radius:20px;padding:26px 28px}
.wx-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px;margin:0}
.wx-fact dt{font-size:var(--wx-label);color:#44505d}.wx-fact dd{margin:6px 0 0;font-size:22px;font-weight:500;line-height:1.3;white-space:nowrap}
.wx-fact-day dd{font-size:34px;line-height:1.15}.wx-f{display:block;margin-top:2px;font-size:var(--wx-label);font-weight:400;color:#44505d}.wx-fact-warn,.wx-fact-wide{grid-column:1/-1}.wx-fact-words dd{white-space:normal}.wx-fact-warn dd{color:#8a3b1f}
.wx-page .wx-note{font-size:var(--wx-label);color:#44505d;margin-top:20px;line-height:1.5}

/* Year strip: bars of the daytime maximum, current month outlined; scrolls sideways on phones. */
.wx-page .wx-strip-title{font-family:var(--font-body);font-size:19px;font-weight:600;margin-bottom:16px}
.wx-strip-scroll{overflow-x:auto;padding:4px 2px 6px}
.wx-strip ol{display:grid;grid-template-columns:repeat(12,minmax(52px,1fr));gap:6px;list-style:none;margin:0;padding:0;align-items:end}
.wx-strip li{margin:0}
.wx-strip a{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:44px;text-decoration:none;color:inherit}
.wx-bar{display:block;width:100%;height:calc(var(--h) * 0.9px + 12px);background:var(--wx-tone);border-radius:8px 8px 3px 3px}
.wx-bar-value,.wx-bar-label{font-size:var(--wx-label);line-height:1.2}.wx-bar-value{font-weight:600}.wx-bar-label{color:#44505d}
.wx-strip a:hover .wx-bar{filter:brightness(.94)}.wx-strip .is-current .wx-bar{outline:2px solid var(--dg-ink);outline-offset:2px}.wx-strip .is-current .wx-bar-label{color:var(--dg-ink);font-weight:600}

/* Verdict */
.wx-verdict{background:#fff;border:1px solid var(--dg-line);border-radius:16px;padding:30px}.wx-verdict p{max-width:820px;margin-top:14px}
.wx-rating{display:flex;align-items:center;gap:14px;margin-bottom:16px}.wx-rating-label{font-size:var(--wx-label);color:#44505d}
.wx-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.wx-dots{display:flex;gap:6px}.wx-dots span{width:14px;height:14px;border-radius:50%;background:#e3e6e6}.wx-dots .is-on{background:var(--dg-ink)}

/* Content columns */
.wx-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:48px}.wx-columns p{margin-top:14px}
.wx-list{margin:14px 0 0;padding:0;list-style:none}.wx-list li{position:relative;margin:10px 0;padding-inline-start:24px}.wx-list li::before{content:'';position:absolute;inset-inline-start:4px;top:.68em;width:8px;height:8px;border-radius:50%;background:#c9a353}
.wx-panel{background:#fff;border-radius:16px;padding:24px 26px}.wx-panel h3{margin-top:0}
.wx-ramadan{background:#f3eee2}
.wx-views p{max-width:820px;margin-top:14px}
.wx-text-link{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;font-size:var(--wx-body);text-decoration:underline;text-underline-offset:4px}
.wx-page .wx-cards{grid-template-columns:repeat(3,minmax(0,1fr))}

/* FAQ */
.wx-faq{max-width:880px}.wx-faq h2{margin-bottom:14px}.wx-question{border-bottom:1px solid var(--dg-line)}
.wx-question summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:8px 0;cursor:pointer;list-style:none}
.wx-question summary::-webkit-details-marker{display:none}.wx-question summary::after{content:'+';font-size:24px;color:#44505d}.wx-question[open] summary::after{content:'−'}
.wx-question .question__label{font-size:19px;font-weight:500;line-height:1.4;cursor:pointer}.wx-question p{margin:0 0 20px;color:#38485c}

/* Pager and onward links */
.wx-pager{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;border-top:1px solid var(--dg-line);padding-top:26px}
.wx-pager-link{display:flex;flex-direction:column;gap:4px;min-height:44px}.wx-pager-link span{font-size:var(--wx-label);color:#44505d}.wx-pager-link strong{font-size:21px;font-weight:500}
.wx-pager-next{text-align:end;align-items:flex-end}.wx-pager-hub{font-size:var(--wx-body);text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
.wx-page .wx-siblings{font-size:var(--wx-body);color:#44505d;margin-top:18px}.wx-siblings a{color:var(--dg-ink);text-decoration:underline;text-underline-offset:3px}
.wx-plan{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wx-plan .dg-tip{min-height:60px}

/* Hub */
.wx-hub-hero{max-width:780px}
.wx-table-wrap{overflow-x:auto;margin-top:20px}.wx-table{width:100%;border-collapse:collapse;font-size:var(--wx-body);min-width:720px}
.wx-table th,.wx-table td{text-align:start;padding:14px;border-bottom:1px solid var(--dg-line);white-space:nowrap}
.wx-table thead th{font-size:var(--wx-label);font-weight:600;color:#44505d}.wx-table tbody th a{text-decoration:underline;text-underline-offset:3px;font-weight:500}
.wx-table .is-current{background:#fff}.wx-chip{display:inline-block;padding:4px 12px;border-radius:8px;background:var(--wx-tone);font-size:var(--wx-label)}
.wx-best,.wx-seasons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.wx-season{background:var(--wx-tone);border-radius:16px;padding:22px 24px}.wx-season h3{margin-top:0}.wx-seasons{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.wx-month-links{display:flex;flex-wrap:wrap;gap:8px}.wx-page .wx-month-links a{display:inline-flex;align-items:center;min-height:44px;padding:4px 14px;border-radius:22px;background:rgba(255,255,255,.75);border:1px solid var(--dg-line);font-size:var(--wx-label)}

@media(max-width:900px){.wx-hero,.wx-columns{grid-template-columns:minmax(0,1fr);gap:28px}.wx-page .wx-cards,.wx-best{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.wx-page .wx-intro{font-size:19px}.wx-highlights{gap:8px}.wx-page .wx-highlight{padding:6px 10px 6px 6px;gap:8px;border-radius:14px}.wx-highlight-icon{width:30px;height:30px}.wx-facts{gap:18px 16px}.wx-fact dd{font-size:20px}.wx-fact-day dd{font-size:28px}.wx-facts-card{padding:22px}
  .wx-page .wx-cards,.wx-best,.wx-plan{grid-template-columns:minmax(0,1fr)}.wx-pager{grid-template-columns:1fr 1fr}.wx-pager-hub{grid-column:1/-1;grid-row:2;justify-self:center}.wx-verdict{padding:22px}}

/* Teaser and hub: the H1 / section heading already names the strip, so its own title is for screen readers only. */
.wx-teaser .wx-strip{margin-top:0}.wx-teaser .wx-strip-title,.wx-hub .wx-strip-title,.wx-teaser .wx-strip-hint,.wx-hub .wx-strip-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Source note at the very end of the page: useful to check, not needed to read the page. */
.wx-page .wx-sources{margin-top:40px;padding-top:20px;border-top:1px solid var(--dg-line);max-width:880px}

/* Humidity meter, caution cards, sea card, wear checklist (month pages). */
.wx-meter{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px;font-size:var(--wx-label)}
.wx-meter-label{color:#44505d}.wx-meter strong{font-weight:600}
.wx-meter-steps{display:flex;gap:4px}.wx-meter-steps span{width:28px;height:10px;border-radius:5px;background:#e3e6e6}
.wx-meter-steps .is-on{background:#5a8fa8}.wx-meter-steps .is-on:nth-child(3){background:#3f7290}.wx-meter-steps .is-on:nth-child(4){background:#2a5672}
.wx-cautions{display:grid;gap:10px;list-style:none;margin:14px 0 0;padding:0}
.wx-page .wx-caution{display:flex;align-items:flex-start;gap:14px;margin:0;padding:14px 16px;background:#fff;border-radius:14px;line-height:1.55}
.wx-caution-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--wx-tone);color:var(--dg-ink)}
.wx-sea{position:relative;align-self:start;padding:26px 28px;border-radius:20px;background:linear-gradient(160deg,#dcecf2 0%,#eef5f6 100%)}
.wx-sea h2{font-size:clamp(22px,2.2vw,26px)}.wx-sea-icon{position:absolute;inset-inline-end:22px;top:22px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;color:#2f6f8c}
.wx-page .wx-sea-figure{margin-top:10px;font-size:40px;font-weight:600;line-height:1.1}.wx-sea-figure .wx-f{font-size:var(--wx-label);font-weight:400}
.wx-sea-chip{display:inline-block;margin-top:12px;padding:4px 12px;border-radius:14px;background:#fff;color:#2f6f8c;font-size:var(--wx-label);font-weight:600}
.wx-sea-very_warm .wx-sea-chip{color:#8a3b1f}
.wx-checklist{list-style:none;margin:14px 0 0;padding:0}
.wx-page .wx-checklist li{display:flex;align-items:flex-start;gap:12px;margin:12px 0}
.wx-check{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;margin-top:1px;border-radius:50%;background:var(--wx-tone);color:var(--dg-ink)}.wx-check .wx-icon{width:16px;height:16px}

/* Hub table: Fahrenheit (English only) as a quiet note after the Celsius figure. */
.wx-table .wx-f{display:inline;margin-inline-start:8px;font-size:var(--wx-label);color:#44505d}

/* In-text links (linkify): underlined like other text links on the site, so they read as links. */
.wx-page p:not(.wx-month-links) a,.wx-cautions a,.wx-list a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.wx-page p:not(.wx-month-links) a:hover,.wx-cautions a:hover,.wx-list a:hover{text-decoration-thickness:2px}

.wx-page .wx-strip-hint{margin:-8px 0 16px;font-size:var(--wx-label);color:#44505d}

/* Next 7 days of sunrise / sunset on the pages of the months they touch (months.week_ahead). */
.wx-week{margin-top:18px;padding:22px 24px;border-radius:18px;background:#fff;border:1px solid var(--dg-line)}
.wx-week h3{margin-top:0}.wx-page .wx-week-hint{margin:6px 0 0;font-size:var(--wx-label);color:#44505d}
.wx-page .wx-week-checked{margin:12px 0 0;font-size:var(--wx-label);color:#44505d}
.wx-week-days{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:10px;overflow-x:auto;list-style:none;margin:16px 0 0;padding:2px 2px 8px}
.wx-page .wx-week-day{display:flex;flex-direction:column;gap:8px;margin:0;padding:14px;border-radius:14px;background:var(--wx-tone)}
.wx-week-day.is-other-month{background:#f2f2ef}
.wx-week-date{font-size:var(--wx-label);font-weight:600}
.wx-week-event{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;min-height:44px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.8);text-decoration:none;color:inherit}
.wx-week-event:hover{background:#fff;box-shadow:0 0 0 2px var(--dg-ink) inset}
.wx-week-icon{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff}.wx-week-icon .wx-icon{width:18px;height:18px}
.wx-week-sunrise .wx-week-icon{color:#b9772a}.wx-week-sunset .wx-week-icon{color:#8a3b1f}
.wx-week-label{font-size:var(--wx-label);color:#44505d}.wx-week-time{font-size:20px;font-weight:600;line-height:1.2}
.wx-week-score{grid-column:1/-1;justify-self:start;margin-top:6px;padding:2px 8px;border-radius:8px;background:#e1ebe1;font-size:var(--wx-label);font-weight:600}
.wx-page .wx-week-arrive{font-size:var(--wx-label);color:#44505d}

/* Sea card: comfort label sits on the heading row (owner's review: one row less on phones). */
.wx-sea-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.wx-sea-head h2{margin:0;width:auto;flex:0 1 auto}
.wx-sea-head .wx-sea-chip{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px 6px 10px}
.wx-sea-chip .wx-icon{width:18px;height:18px}
.wx-sea .wx-sea-head + p{margin-top:12px}
@media(max-width:650px){.wx-sea{padding:22px 20px}.wx-sea-head{column-gap:8px}.wx-sea-head .wx-sea-chip{gap:5px;padding:5px 8px 5px 7px;white-space:nowrap}}
/* Chinese and Japanese: Habibi has no CJK glyphs and old-style digits («10月» read as «IO月»), so headings use the body font;
   lines break at punctuation, not inside a word. */
:lang(zh) .wx-page :is(h1,h2,h3),:lang(ja) .wx-page :is(h1,h2,h3),:lang(ko) .wx-page :is(h1,h2,h3){font-family:var(--font-body);font-weight:600;word-break:keep-all;overflow-wrap:anywhere}
