/* Accounts: sign in / sign up, account settings and the personal home page. */
.auth-sec { padding-block: clamp(28px, 6vw, 72px); }
.auth-card { max-width: 460px; margin: 0 auto; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.auth-hd { text-align: center; display: grid; gap: 6px; justify-items: center; }
.auth-hd h1 { font: 800 1.7rem/1.15 var(--f-ui); letter-spacing: -.02em; margin: 6px 0 0; }
.auth-hd p { margin: 0; font-size: .94rem; }
.auth-google { width: 100%; justify-content: center; gap: 10px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.a-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-img { min-width: min(100%, 360px); min-height: 120px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--ice-3); display: grid; place-items: center; color: var(--muted); font-size: .8rem; overflow: hidden; }
.captcha-img svg { display: block; width: 100%; max-width: 360px; height: auto; }
.form .err:not([hidden]), .form .ok:not([hidden]) { display: block; padding: 10px 12px; border-radius: 10px; font-size: .86rem; }
.form .err:not([hidden]) { background: var(--high-bg); color: var(--high-fg); }
.ok, .form .ok { color: #1c6b4a; font-size: .86rem; font-weight: 650; }
.form .ok:not([hidden]) { background: var(--none-bg); }
.err[hidden], .ok[hidden] { display: none; }

.acct-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.acct-nav a { padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.acct-nav a:hover { background: var(--ice-3); color: var(--cobalt); }
.acct-main > .card { scroll-margin-top: 96px; }
.acct-main .h-section { margin: 0 0 8px; font-size: 1.3rem; }
.acct-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.acct-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.acct-list .grow { flex: 1; min-width: 160px; }
.acct-list .btn[disabled] { opacity: .35; }
@media (max-width: 820px) { .acct-grid { grid-template-columns: 1fr; } .acct-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .acct-nav a { white-space: nowrap; } }

.hdr-acct, .hdr-acct-join, .hdr-acct-gear { white-space: nowrap; }
.hdr-acct svg { width: 16px; height: 16px; }
@media (max-width: 1100px) { .hdr-acct-gear, .hdr-acct span { display: none; } }
@media (max-width: 640px) { .hdr-acct-gear { display: none; } .hdr-acct, .hdr-acct-join { padding: 0 10px; font-size: .82rem; } .hdr-acct-join { display: inline-flex; } }
.hdr-acct-join { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice) 55%, transparent); font-weight: 800; }
.signup-banner { background: linear-gradient(100deg, var(--navy, #0f2a44), var(--brand)); color: #fff; padding: 18px 0; }
.signup-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.signup-banner b { font-size: 1.15rem; display: block; }
.signup-banner span.s { opacity: .85; }
.signup-banner .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.my-compact .section { padding-block: 14px; }

.my-wh { margin-bottom: 14px; align-items: end; }
.my-wh .h-section { margin: 2px 0 0; }
.my-place { display: grid; gap: 14px; }
.my-place h3 { margin: 0; font-size: 1.2rem; }
.my-now { display: flex; align-items: center; gap: 8px; font-size: 1.7rem; }
.my-now svg { width: 36px; height: 36px; }
.my-days { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.my-day { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--surface-2); text-align: center; font-size: .9rem; }
.my-day svg { width: 28px; height: 28px; }
.my-day .dn { font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.my-day small { font-size: .72rem; }
.my-reg .pin-chip { display: none; }
@media (max-width: 520px) { .my-days { grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); } }

/* Readability: stronger text contrast across light and dark themes */
:root { --muted: #44566a; --faint: #5f7080; --cobalt: #174f8c; }
[data-theme='dark'] { --muted: #b4c4d1; --faint: #94a8b8; --ink-2: #dbe5ec; --cobalt: #8fc2f5; }
.chart text { fill: var(--muted); }
.hint, .field .hint { color: var(--muted); }
.ok, .form .ok { color: #14583c; }
[data-theme='dark'] .ok, [data-theme='dark'] .form .ok { color: #8fe0b8; }
[data-theme='dark'] .form .ok:not([hidden]) { background: #10322a; }
.page-hero .lede, .page-hero .muted, .page-hero p { color: var(--ink-2); }
.page-hero .eyebrow { color: var(--cobalt); }
[data-theme='dark'] .page-hero .lede, [data-theme='dark'] .page-hero .muted, [data-theme='dark'] .page-hero p { color: #dbe5ec; }
[data-theme='dark'] .page-hero .eyebrow { color: #8fc2f5; }
.signup-banner span.s { opacity: 1; color: #e3eefa; }
.signup-banner .btn-ghost { color: var(--navy); }
[data-theme='dark'] .signup-banner .btn-ghost { color: #e8eff4; }
a.card[style*='background:var(--navy)'] .muted, a.card[style*='background:var(--navy)'] .small { color: rgba(255, 255, 255, .88) !important; }
.chip[aria-pressed='true'] { color: var(--navy) !important; }
[data-theme='dark'] .chip[aria-pressed='true'] { background: var(--ice-2) !important; color: #e8eff4 !important; }
.my-day .dn { color: var(--muted); }
.my-chart { margin-top: 4px; }
.my-chart .eyebrow { display: block; margin-bottom: 6px; }
.fs { border: 0; padding: 0; margin: 14px 0 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--cobalt); }

/* ---------- Readability pass: heavier body text, darker secondary text ---------- */
:root { --ink: #08192a; --ink-2: #1f3447; --muted: #3b4e61; --faint: #52667a; }
[data-theme='dark'] { --ink: #f2f7fb; --ink-2: #e0eaf2; --muted: #c0cfdb; --faint: #a3b6c6; }
body { font-weight: 500; }
p, li, label, td, th, small, .muted, .small { font-weight: 500; }
.muted, .small, small { color: var(--muted); }
.card .muted, .card small { opacity: 1; }
.input, .select, .textarea { color: var(--ink); background: var(--surface); border-color: var(--faint); }
.input::placeholder, .textarea::placeholder { color: var(--faint); opacity: 1; }
a:not(.btn):not(.nav-link) { text-underline-offset: 2px; }

/* ---------- First-time setup wizard ---------- */
.wz-sec { padding-top: 28px; }
.wz { max-width: 820px; margin: 0 auto; padding: clamp(18px, 4vw, 38px); }
.wz-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; }
.wz-steps li { flex: 1; display: grid; justify-items: center; gap: 6px; position: relative; font-size: .78rem; font-weight: 700; color: var(--muted); }
.wz-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.wz-steps li:first-child::before { display: none; }
.wz-steps li.done::before, .wz-steps li.now::before { background: var(--cobalt); }
.wz-steps span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); font-weight: 800; }
.wz-steps span svg { width: 16px; height: 16px; }
.wz-steps li.done span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.wz-steps li.now span { border-color: var(--cobalt); color: var(--cobalt); box-shadow: 0 0 0 4px var(--ice-2); }
.wz-steps li.now { color: var(--ink); }
.wz-steps em { font-style: normal; }
@media (max-width: 560px) { .wz-steps em { display: none; } }
.wz-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.wz-lede { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 20px; }
.wz-sub { font-size: 1rem; font-weight: 800; margin: 20px 0 8px; }
.wz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.wz-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.wz-list svg { width: 22px; height: 22px; flex: none; color: var(--cobalt); margin-top: 2px; }
.wz-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.wz-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.wz-tabs button.on { background: var(--cobalt); color: #fff; }
.wz-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wz-region { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.wz-region svg { width: 20px; height: 20px; color: var(--cobalt); flex: none; }
.wz-region.on { border-color: var(--cobalt); background: var(--ice-3); }
.wz-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.wz-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--ice-2); color: var(--ink); font-weight: 700; }
.wz-chip svg { width: 15px; height: 15px; }
.wz-chip button { border: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.wz-empty { color: var(--muted); margin: 0; }
.wz-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wz-preset { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.wz-preset:hover, .wz-preset:focus-visible { border-color: var(--cobalt); }
.wz-preset span { color: var(--muted); font-size: .86rem; }
.wz-accents { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wz-accent input { position: absolute; opacity: 0; }
.wz-accent span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; cursor: pointer; background: var(--surface); }
.wz-accent i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.wz-accent input:checked + span { border-color: var(--cobalt); background: var(--ice-3); }
.wz-accent input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.wz-choice { display: grid; gap: 12px; }
.wz-opt input { position: absolute; opacity: 0; }
.wz-opt > span { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.wz-opt svg { grid-row: span 2; width: 24px; height: 24px; color: var(--cobalt); }
.wz-opt small { color: var(--muted); }
.wz-opt input:checked + span { border-color: var(--cobalt); background: var(--ice-3); }
.wz-opt input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.wz-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.wz-foot .grow { flex: 1; }

/* ---- Mobile header: keep brand, search, account buttons and menu on one row without overlap ---- */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; }
@media (max-width: 1000px) {
  .hdr { gap: 8px; }
  .hdr-right { gap: 6px; min-width: 0; flex-shrink: 0; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; }
  .search-trigger span { display: none; }
}
@media (max-width: 640px) {
  .hdr-right > #hdr-account { display: inline-flex; align-items: center; gap: 6px; }
  .hdr-acct[href="/login"] { display: none; }
  .hdr-acct-join { padding: 0 12px; height: 34px; box-shadow: none; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 32px; height: 32px; }
  .brand-name b { font-size: 1.02rem; }
}
@media (max-width: 380px) {
  .hdr .wrap, .hdr { gap: 6px; }
  .brand-name { display: none; }
}

/* ---- Header account buttons: always one row, never stacked or overlapping ---- */
.hdr-right { flex-wrap: nowrap; }
#hdr-account { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
@media (max-width: 820px) {
  #hdr-account .hdr-acct[href="/login"] { display: none; }
  #hdr-account .hdr-acct-join { padding: 0 12px; height: 34px; font-size: .8rem; box-shadow: none; }
  .hdr-right { gap: 6px; }
}
.page-hero .hero-meta .chip { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.page-hero .hero-meta .chip b { color: var(--ink); }

/* Glass buttons in the (light) page hero need dark text to be readable. */
.page-hero .hero-meta .btn-glass { background: var(--surface); color: var(--ink); border-color: var(--line); }
.page-hero .hero-meta .btn-glass:hover { background: var(--surface-2, var(--surface)); color: var(--ink); }

/* Header account buttons sit on a light header: glass (white text) is unreadable there. */
.site-header .btn-glass, .hdr-acct.btn-glass { background: var(--surface); color: var(--ink); border-color: var(--line); }
.site-header .btn-glass:hover, .hdr-acct.btn-glass:hover { background: var(--surface-2); color: var(--cobalt); border-color: var(--cobalt); }
.site-header .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
/* Buttons in the sky-blue public home hero */
.home-hero .btn-ghost, .home-hero .hero-strip-foot .btn { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* ---------- Forecast day picker ---------- */
.days-ctl { margin: 0 0 14px; }
.days-ctl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.days-ctl-l { font: 800 .72rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.days-ctl-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.dpick { position: relative; min-width: 42px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 800 .95rem var(--f-ui); cursor: pointer; text-decoration: none; }
.dpick:hover { border-color: var(--cobalt); color: var(--cobalt); }
.dpick.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.dpick.locked { color: var(--muted); background: var(--surface-2); border-style: dashed; }
.dpick-lock { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.days-join { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.days-join a { color: var(--cobalt); text-decoration: underline; }

/* ---------- Private forecasts: home card, list, detail ---------- */
.rq-card { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-decoration: none; box-shadow: 0 8px 28px rgba(14, 42, 66, .10); max-width: 640px; transition: transform .15s, box-shadow .15s; }
.rq-card:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(14, 42, 66, .16); }
.rq-card-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rq-card-t b { font-size: 1.05rem; }
.rq-card-t span { color: var(--muted); font-size: .88rem; }
.rq-card-n { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); font: 800 .78rem var(--f-ui); white-space: nowrap; }
.rq-card-n.ready { background: #16a34a; border-color: #16a34a; color: #fff; }
.rq-card > svg { flex: none; width: 20px; height: 20px; color: var(--cobalt); }
.rq-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rq-tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rq-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font: 800 .92rem var(--f-ui); color: var(--muted); cursor: pointer; }
.rq-tabs button span { margin-left: 4px; opacity: .8; }
.rq-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(14, 42, 66, .12); }
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.rq-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rq-item:hover { transform: translateY(-2px); border-color: var(--cobalt); box-shadow: 0 12px 30px rgba(14, 42, 66, .12); }
.rq-item.fresh { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.rq-item h3 { margin: 4px 0 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.rq-item-top { display: flex; gap: 6px; flex-wrap: wrap; }
.rq-meta { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.rq-meta svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.rq-foot { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; }
.rq-foot svg { width: 18px; height: 18px; color: var(--cobalt); }
.rq-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: 800 .75rem var(--f-ui); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.rq-tag svg { width: 13px; height: 13px; }
.rq-tag.fast { background: #fff4e0; color: #8a4b00; border-color: #f5cf8f; }
.rq-tag.done { background: #e3f6ea; color: #14703a; border-color: #b7e4c7; }
.rq-tag.wait { background: #e8f1fb; color: #174a80; border-color: #bcd5ee; }
.rq-tag.new { background: #16a34a; color: #fff; border-color: #16a34a; }
.rq-wrap { max-width: 900px; }
.rq-detail { padding: clamp(16px, 4vw, 32px); margin-top: 12px; }
.rq-d-hd h2 { margin: 12px 0 10px; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.rq-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.rq-facts span { display: inline-flex; gap: 6px; align-items: center; }
.rq-facts svg { width: 16px; height: 16px; }
.rq-wait { display: flex; gap: 14px; align-items: center; margin: 22px 0 10px; padding: 16px; border-radius: 16px; background: #e8f1fb; color: #123a63; }
.rq-wait p { margin: 4px 0 0; }
.rq-pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #1f62a8; box-shadow: 0 0 0 0 rgba(31, 98, 168, .5); animation: rqp 1.8s infinite; }
@keyframes rqp { 70% { box-shadow: 0 0 0 14px rgba(31, 98, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 98, 168, 0); } }
.rq-yours { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.rq-yours summary { font-weight: 800; cursor: pointer; }
.rq-yours p { overflow-wrap: anywhere; white-space: pre-wrap; }
.rq-content { margin-top: 22px; }
.rq-note { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; }
.rq-fu { margin-top: 18px; padding: clamp(16px, 4vw, 26px); }
.rq-fu h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.rq-fu h3 svg { width: 20px; height: 20px; }
.rq-fu textarea { width: 100%; margin-bottom: 6px; }
.rq-q, .rq-a { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rq-q p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-a { background: #f1f8f3; border-color: #cfe8d7; }
.rq-gate { max-width: 560px; }

/* ---------- Forecaster-built content blocks ---------- */
.bk { display: grid; gap: 18px; min-width: 0; }
.bk > * { min-width: 0; }
.bk .al-center { text-align: center; } .bk .al-right { text-align: right; }
.bk-h { margin: 6px 0 0; line-height: 1.2; overflow-wrap: anywhere; }
.bk-h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); } .bk-h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); } .bk-h3 { font-size: 1.15rem; }
.bk-text { color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }
.bk-text.sz-lg { font-size: 1.15rem; } .bk-text.sz-sm { font-size: .9rem; }
.bk-text p { margin: 0 0 .8em; } .bk-text p:last-child { margin: 0; }
.bk-text ul { margin: 0 0 .8em; padding-left: 1.3em; }
.bk-text a, .bk-call a { color: var(--cobalt); text-decoration: underline; }
.bk-img, .bk-vid, .bk-gal figure, .bk-tbl { margin: 0; }
.bk-img img, .bk-gal img { display: block; max-width: 100%; height: auto; }
.bk-img.round img, .bk-gal img { border-radius: 14px; }
.bk-img.al-center img { margin: 0 auto; } .bk-img.al-right img { margin-left: auto; }
.w-wide { max-width: 85%; } .w-medium { max-width: 60%; } .w-small { max-width: 38%; }
.bk-img.w-wide, .bk-img.w-medium, .bk-img.w-small { margin-inline: auto; }
.bk figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; text-align: center; }
.bk-gal { display: grid; gap: 12px; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); }
.bk-gal.cols-3 { --c: 3; } .bk-gal.cols-4 { --c: 4; }
.bk-gal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bk-vid-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.bk-vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bk-vid-el { width: 100%; border-radius: 14px; background: #000; }
.bk-tbl-t { margin: 0 0 8px; font-size: 1.05rem; }
.bk-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.bk-tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bk-tbl th { background: var(--navy); color: #fff; text-align: left; font-weight: 800; padding: 11px 14px; white-space: nowrap; }
.bk-tbl td { padding: 11px 14px; border-top: 1px solid var(--line-2); vertical-align: top; color: var(--ink); }
.bk-tbl td.b { font-weight: 800; }
.bk-tbl.compact th, .bk-tbl.compact td { padding: 7px 10px; font-size: .88rem; }
.bk-tbl.striped tbody tr:nth-child(even) td:not([style*="background"]) { background: var(--surface-2); }
.bk-tbl th.al-center, .bk-tbl td.al-center { text-align: center; } .bk-tbl th.al-right, .bk-tbl td.al-right { text-align: right; }
.bk-tbl th.cw-narrow { width: 90px; } .bk-tbl th.cw-wide { min-width: 220px; }
.bk-call { padding: 14px 16px; border-radius: 14px; border-left: 5px solid var(--cobalt); background: #e8f1fb; color: #123a63; }
.bk-call b { display: block; margin-bottom: 4px; } .bk-call p { margin: 0 0 .5em; } .bk-call p:last-child { margin: 0; }
.bk-call.tone-good { background: #e3f6ea; border-color: #16a34a; color: #14532d; }
.bk-call.tone-warn { background: #fff4e0; border-color: #f59e0b; color: #6b3d00; }
.bk-call.tone-danger { background: #fde8e8; border-color: #dc2626; color: #7f1d1d; }
.bk-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.bk-facts > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 2px; }
.bk-facts span { font: 800 .7rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-facts b { font-size: 1.25rem; color: var(--ink); } .bk-facts small { color: var(--muted); }
.bk-btn { margin: 0; } .bk-hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.bk-sp.sp-sm { height: 8px; } .bk-sp.sp-md { height: 24px; } .bk-sp.sp-lg { height: 48px; }
@media (max-width: 640px) {
  .w-wide, .w-medium, .w-small { max-width: 100%; }
  .bk-gal, .bk-gal.cols-3, .bk-gal.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-card { padding: 14px; } .rq-wait { align-items: flex-start; }
}

/* ---------- Guest teasers: blurred members-only days & chart hours ---------- */
.locked-wrap { position: relative; margin-top: 10px; border-radius: 18px; overflow: hidden; }
.locked-preview { filter: blur(5px) grayscale(1); opacity: .55; pointer-events: none; user-select: none; }
.locked-preview .day-row, .locked-preview .rf-day-card { cursor: default; }
.lock-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; background: linear-gradient(180deg, rgba(240,244,248,.25), rgba(240,244,248,.75)); }
[data-theme='dark'] .lock-cta { background: linear-gradient(180deg, rgba(10,20,32,.25), rgba(10,20,32,.75)); }
.lock-cta p { margin: 0; max-width: 34ch; color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.lock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; font: 800 .72rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.lock-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wtable .wt-locked > * { filter: blur(4px) grayscale(1); opacity: .5; user-select: none; }
.wtable .wt-lock-cta td { padding: 0; }
.wtable .wt-lock-cta .lock-cta { position: static; padding: 16px; background: var(--surface-2); }
.chart-lock { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 8px; border-left: 2px dashed var(--line); background: rgba(232,237,242,.72); -webkit-backdrop-filter: blur(6px) grayscale(1); backdrop-filter: blur(6px) grayscale(1); border-radius: 0 12px 12px 0; z-index: 2; }
[data-theme='dark'] .chart-lock { background: rgba(14,26,40,.72); }
.chart-lock-in { display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 280px; color: var(--ink); }
.chart-lock-in .lock-ic { width: 20px; height: 20px; color: var(--cobalt); }
.chart-lock-in b { font-size: .95rem; }
.chart-lock-in span { font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .chart-lock-in span, .chart-lock-in b { display: none; } }

/* ---------- Join banner ad ---------- */
.join-ad { padding: 22px 0; }
.join-ad-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 30px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(108,180,245,.35), transparent 55%), linear-gradient(115deg, var(--navy, #0e2d4a), var(--brand, #185a98)); box-shadow: 0 18px 44px rgba(14,42,66,.22); }
.join-ad-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font: 800 .7rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.join-ad h2 { margin: 12px 0 8px; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; color: #fff; }
.join-ad-hd p { margin: 0 0 16px; color: #dce9f6; }
.join-ad-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.join-ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.join-ad-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); }
.join-ad-list li > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #9fd0ff; }
.join-ad-list b { display: block; color: #fff; }
.join-ad-list small { color: #cfe0f1; font-size: .85rem; }
@media (max-width: 820px) { .join-ad-card { grid-template-columns: 1fr; padding: 22px 18px; } }

/* ---------- Personal hub: StormCast / SnowCast bulletins, outlook options, at-a-glance ---------- */
.cols-1 { grid-template-columns: minmax(0, 1fr); }
.hb-glance { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.hb-glance:empty { display: none; }
.hb-glance .chip { text-decoration: none; }
.hb-glance .chip.lvl { border-color: var(--c); }
.hb-for { margin: -6px 0 12px; }
.hb-card { padding: 18px; display: grid; gap: 12px; border-left: 4px solid var(--c); align-content: start; }
.hb-card h3 { margin: 2px 0 0; font-size: 1.08rem; }
.hb-top { align-items: flex-start; gap: 10px; }
.hb-when, .hb-sum { margin: 0; }
.hb-when { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.hb-when svg { width: 15px; height: 15px; }
.hb-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; font-weight: 700; }
.hb-facts:empty { display: none; }
.hb-facts span { display: inline-flex; align-items: center; gap: 6px; }
.hb-facts svg { width: 15px; height: 15px; color: var(--muted); }
.hb-bands { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-bands span { display: grid; padding: 6px 10px; border-radius: 10px; background: var(--b, var(--surface-2)); font-size: .8rem; }
.hb-bands em { font-style: normal; color: var(--muted); font-size: .72rem; }
.hb-list { gap: 8px; }
.hb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--surface); text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.hb-row:hover { border-color: var(--c); }
.hb-row .mega-ico { width: 32px; height: 32px; }
.hb-row .badge { margin-left: auto; }
.hb-grow { flex: 1; min-width: 160px; }
.hb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.hb-quiet { display: flex; gap: 12px; align-items: flex-start; }
.hb-quiet > svg { width: 22px; height: 22px; color: #10b981; flex: none; margin-top: 2px; }
.hb-pick { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.hb-pick button { border: 0; background: none; min-width: 30px; height: 30px; border-radius: 999px; font: 800 .85rem var(--f-ui); color: var(--ink-2); cursor: pointer; }
.hb-pick button.on { background: var(--cobalt); color: #fff; }
.hb-pick span { padding: 0 8px 0 2px; }

/* ---------- Setup wizard: option cards, area grid, live preview ---------- */
.wz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.wz-toggle { position: relative; display: block; cursor: pointer; }
.wz-toggle input { position: absolute; opacity: 0; }
.wz-toggle > span { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; height: 100%; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.wz-toggle > span > svg { grid-row: span 2; width: 24px; height: 24px; color: var(--cobalt); }
.wz-toggle small { color: var(--muted); }
.wz-toggle input:checked + span { border-color: var(--cobalt); background: var(--ice-3); }
.wz-toggle input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.wz-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wz-seg label { position: relative; cursor: pointer; }
.wz-seg input { position: absolute; opacity: 0; }
.wz-seg span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: .9rem; }
.wz-seg input:checked + span { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.wz-seg input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.wz-q { display: grid; gap: 8px; margin: 0 0 20px; }
.wz-q > b { font-size: .95rem; }
.wz-q > small { color: var(--muted); margin-top: -4px; }
.wz-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.wz-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.wz-preview { margin-top: 22px; padding: 16px; border-radius: 16px; border: 1px dashed var(--line); background: var(--surface-2); }
.wz-preview ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 700; }
.wz-preview ol small { font-weight: 500; color: var(--muted); }
.wz-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ice-3); margin: 0 0 18px; }
.wz-note svg { width: 20px; height: 20px; flex: none; color: var(--cobalt); margin-top: 2px; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ice-3); margin-bottom: 14px; font-size: .92rem; }
.auth-note svg { width: 20px; height: 20px; flex: none; color: var(--cobalt); }
