/* GlenMate My City — daily brief. Today, 60-second dive, Topics. Image-led cards, deep-teal brand band. */
:root {
  --bg: #e9efee;
  --bg-2: #f6f9f8;
  --surface: #ffffff;
  --surface-2: #f2f6f5;
  --ink: #0d1c1a;
  --ink-2: #41504d;
  --ink-3: #66726f;
  --line: #d6dfdd;
  --accent: #134e4a;
  --accent-ink: #ffffff;
  --accent-soft: #d8eeea;
  --warn: #9a3f10;
  --shadow-sm: 0 1px 2px rgba(13,28,26,.06), 0 2px 8px rgba(13,28,26,.05);
  --shadow: 0 2px 4px rgba(13,28,26,.06), 0 12px 32px rgba(13,28,26,.12);
  --band-a: #0b3532;
  --band-b: #14625b;
  --band-glow: rgba(120, 224, 205, .35);
  --glass: rgba(255,255,255,.82);
  --c-local: #0f766e;
  --c-news: #1e4f8a;
  --c-tech: #0b7285;
  --c-well: #2f7d3b;
  --c-pop: #b4501a;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 600px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061110; --bg-2: #0a1816; --surface: #0f1f1d; --surface-2: #152826;
    --ink: #eaf4f2; --ink-2: #b6c7c4; --ink-3: #8aa0a0; --line: #223836;
    --accent: #5ccfc0; --accent-ink: #052321; --accent-soft: #123430; --warn: #f3a56f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow: 0 2px 4px rgba(0,0,0,.5), 0 14px 34px rgba(0,0,0,.45);
    --band-a: #072624; --band-b: #0f4a45; --band-glow: rgba(92, 207, 192, .22);
    --glass: rgba(15,31,29,.82);
    --c-local: #5ccfc0; --c-news: #86b6f2; --c-tech: #62d3e8; --c-well: #86d391; --c-pop: #f3a56f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061110; --bg-2: #0a1816; --surface: #0f1f1d; --surface-2: #152826;
  --ink: #eaf4f2; --ink-2: #b6c7c4; --ink-3: #8aa0a0; --line: #223836;
  --accent: #5ccfc0; --accent-ink: #052321; --accent-soft: #123430; --warn: #f3a56f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 2px 4px rgba(0,0,0,.5), 0 14px 34px rgba(0,0,0,.45);
  --band-a: #072624; --band-b: #0f4a45; --band-glow: rgba(92, 207, 192, .22);
  --glass: rgba(15,31,29,.82);
  --c-local: #5ccfc0; --c-news: #86b6f2; --c-tech: #62d3e8; --c-well: #86d391; --c-pop: #f3a56f;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@media (min-width: 768px) { html { font-size: 18px; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body);
  background-image: radial-gradient(900px 420px at 50% -120px, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
body[data-size="s"] { font-size: .92em; }
body[data-size="l"] { font-size: 1.14em; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + var(--safe-t)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand svg { flex: none; }
.brand-name { font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-badge { font-size: .68em; font-weight: 700; letter-spacing: .09em; color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.city-chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; min-height: 40px;
  font-size: .84em; font-weight: 600; color: var(--ink-2); text-decoration: none; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.screen { width: 100%; max-width: var(--col); margin-inline: auto; outline: none; }
@media (min-width: 820px) { :root { --col: 940px; } }
.view {
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px));
  animation: rise .3s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view, .card { animation: none !important; } * { transition: none !important; scroll-behavior: auto !important; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); height: calc(var(--tab-h) + var(--safe-b));
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; color: var(--ink-3); text-decoration: none; position: relative; }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
.tab svg { width: 25px; height: 25px; }

/* ---------- topic colors ---------- */
[data-cat="local"] { --cc: var(--c-local); --cc-2: #14b8a6; }
[data-cat="news"] { --cc: var(--c-news); --cc-2: #3b82f6; }
[data-cat="tech"] { --cc: var(--c-tech); --cc-2: #06b6d4; }
[data-cat="well"] { --cc: var(--c-well); --cc-2: #22c55e; }
[data-cat="pop"] { --cc: var(--c-pop); --cc-2: #f97316; }

/* media block: photo with a topic-gradient fallback and glyph */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cc, #134e4a), var(--cc-2, #14b8a6)); isolation: isolate; }
.media .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.28); z-index: 0; }
.media .glyph svg { width: 44%; max-width: 120px; height: auto; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s ease; }
.media.noimg img { display: none; }
.media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.72) 100%); opacity: 0; }

/* ---------- Today ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 18px; color: #fff;
  background: radial-gradient(520px 220px at 88% -20%, var(--band-glow), transparent 60%), linear-gradient(140deg, var(--band-a), var(--band-b));
  box-shadow: var(--shadow);
}
.band::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); }
.band-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.band .eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
h1.hello { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.08; margin: 8px 0 8px; text-wrap: balance; letter-spacing: -.015em; color: #fff; }
.band .sub { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.45; margin: 0; max-width: 34ch; }
.ring { flex: none; position: relative; width: 58px; height: 58px; margin-top: 2px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: rgba(255,255,255,.2); }
.ring .val { stroke: #7ef0d9; transition: stroke-dasharray .5s ease; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .95rem; font-variant-numeric: tabular-nums; }
.progress-label { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.85); font-weight: 600; margin-top: 18px; }
.progress { position: relative; z-index: 1; display: flex; gap: 6px; margin: 8px 0 0; }
.progress i { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); }
.progress i.done { background: #7ef0d9; }

.sect { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.sect h2 { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.sect span { font-size: .8rem; color: var(--ink-3); }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  --cc: var(--c-local);
  position: relative; display: block; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: pop .45s ease both; animation-delay: calc(var(--i, 0) * 70ms);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cc) 55%, var(--line)); }
.card:hover .media img { transform: scale(1.04); }
.card:active { transform: scale(.995); }
.card.read { opacity: .88; }
.card.read .card-title { color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); padding: 4px 10px; border-radius: 999px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc); }
.meta { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.card-title { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.velocity { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.velocity .vl { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.vbar { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--cc) 14%, var(--line)); overflow: hidden; }
.vbar > b { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--cc), var(--cc-2, var(--cc))); }
.vnum { font-size: .86rem; font-weight: 800; color: var(--cc); font-variant-numeric: tabular-nums; }
.go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .84rem; color: var(--ink); }
.card.read .go { color: var(--ink-3); }

/* hero card */
.card.hero { color: #fff; border: 0; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; background: #0b1f1d; }
.card.hero .media { position: absolute; inset: 0; }
.card.hero .media::after { opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.05) 28%, rgba(4,16,15,.9) 100%); }
.card.hero .body { position: relative; z-index: 3; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.card.hero .pill { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); align-self: flex-start; }
.card.hero .pill::before { background: #fff; }
.card.hero .card-title { font-size: 1.6rem; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.card.hero.read .card-title { color: #fff; }
.card.hero .teaser { margin: 0; font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.hero .vl, .card.hero .meta { color: rgba(255,255,255,.72); }
.card.hero .vbar { background: rgba(255,255,255,.22); }
.card.hero .vbar > b { background: linear-gradient(90deg, #7ef0d9, #b8fff1); }
.card.hero .vnum { color: #b8fff1; }
.card.hero .go { color: #fff; }
.card.hero .foot { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: rgba(255,255,255,.8); font-weight: 600; }
.top-tag { position: absolute; z-index: 3; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0b3532; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.top-tag svg { width: 14px; height: 14px; }

/* compact card: thumbnail left */
.card.compact { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
.card.compact .media { min-height: 100%; }
.card.compact .media::after { opacity: 0; }
.card.compact .body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card.compact .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card.compact .card-title { font-size: 1.1rem; }
.card.compact .foot { display: flex; align-items: center; justify-content: space-between; }
.card.compact .foot .meta { font-size: .78rem; }
.card.compact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--cc), var(--cc-2, var(--cc))); z-index: 3; }

@media (min-width: 820px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card.hero { grid-column: 1 / -1; min-height: 420px; }
  .card.hero .card-title { font-size: 2.1rem; max-width: 24ch; }
  .card.hero .teaser { max-width: 62ch; font-size: 1.02rem; }
  .card.compact { grid-template-columns: 132px minmax(0, 1fr); }
  .band { padding: 28px 28px 22px; }
  h1.hello { font-size: 2.3rem; }
}

.caught { margin-top: 16px; padding: 20px; border-radius: var(--r); background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); display: flex; gap: 14px; align-items: center; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.caught svg { flex: none; width: 38px; height: 38px; color: var(--accent); }
.caught b { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 1.15rem; }
.caught span { font-size: .9rem; color: var(--ink-2); }
.foot-note { margin: 22px 2px 0; font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.banner { margin: 14px 0 0; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); font-size: .86rem; color: var(--ink-2); line-height: 1.4; }

.state { margin-top: 22px; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.state h2 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 6px; }
.state p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.5; font-size: .95rem; }
.state .row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.skeleton { display: grid; gap: 14px; margin-top: 16px; }
.skeleton i { display: block; height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sheen 1.3s linear infinite; }
.skeleton i:first-child { height: 300px; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- 60-second dive ---------- */
.view.dive { padding: 0 0 36px; }
.dive-hero { min-height: 300px; padding-top: 110px; display: flex; align-items: flex-end; color: #fff; margin-inline: 0; border-radius: 0 0 28px 28px; }
.dive-hero.media::after { opacity: 1; }
.dive-hero .inner { position: relative; z-index: 3; width: 100%; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 52px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; }
.dive-hero .pill { background: rgba(255,255,255,.2); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); align-self: flex-start; }
.dive-hero .pill::before { background: #fff; }
h1.dive-title { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.14; margin: 0; letter-spacing: -.012em; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.back { position: absolute; z-index: 4; top: 12px; left: max(12px, env(safe-area-inset-left, 0px)); display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 10px; min-height: 40px; font-weight: 700; font-size: .9rem; color: #fff; text-decoration: none; border-radius: 999px; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dive-wrap { position: relative; }
.dive-body { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: -34px; position: relative; z-index: 5; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.stat { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 10px; box-shadow: var(--shadow); text-align: left; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.stat.grow b { color: var(--cc); }
.stat span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 14px 14px 10px; box-shadow: var(--shadow-sm); margin-top: 16px; }
.panel h3 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.chart { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--body); font-size: 11px; fill: var(--ink-3); }
.chart text.now { fill: var(--cc); font-weight: 700; }
h2.sec { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 28px 2px 12px; }
.points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: p; }
.points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); }
.points .dot { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, var(--cc), var(--cc-2, var(--cc))); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
.points strong { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; overflow-wrap: anywhere; }
.points p { margin: 0; font-size: 1.02rem; line-height: 1.5; max-width: 62ch; overflow-wrap: anywhere; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.proof-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.proof-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cc) 55%, var(--line)); }
.pc-media { aspect-ratio: 16 / 9; width: 100%; }
.pc-media::after { opacity: 0; }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pc-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--cc), var(--cc-2, var(--cc))); font-size: .8rem; }
.pc-meta .o { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-meta .t { margin-left: auto; flex: none; font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.pc-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.pc-summary { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 8px 14px; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); }
.pc-link.muted { color: var(--ink-3); background: var(--surface-2); }
@media (min-width: 560px) {
  .proof-card { grid-template-columns: 200px minmax(0, 1fr); }
  .pc-media { aspect-ratio: auto; min-height: 100%; }
}
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
.btn { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 13px 16px; font-weight: 700; font-size: .96rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.primary { background: linear-gradient(135deg, var(--band-a), var(--band-b)); color: #fff; border-color: transparent; }
@media (min-width: 820px) {
  .dive-hero { min-height: 380px; padding-top: 140px; border-radius: 0 0 32px 32px; }
  h1.dive-title { font-size: 2.3rem; max-width: 26ch; }
  .stats, .dive-body { max-width: 760px; margin-inline: auto; padding-inline: 0; }
  .dive-body { padding-top: 18px; }
  .stats { width: calc(100% - 32px); }
  .actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- Topics ---------- */
.page-head .eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.page-head h1.hello { color: var(--ink); font-size: 2rem; margin: 6px 0 6px; }
.page-head .sub { color: var(--ink-2); font-size: .95rem; line-height: 1.45; margin: 0; max-width: 52ch; }
.rows { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--cc), var(--cc-2, var(--cc))); box-shadow: 0 6px 14px color-mix(in srgb, var(--cc) 35%, transparent); }
.tile svg { width: 24px; height: 24px; }
.row .name { font-weight: 800; font-size: 1.02rem; }
.row .desc { margin: 3px 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
.row.off .tile { filter: grayscale(1); opacity: .45; box-shadow: none; }
.switch { width: 54px; height: 32px; border-radius: 32px; border: 0; background: var(--line); position: relative; flex: none; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--cc, var(--accent)); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.setting { padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; }
.setting + .setting { border-top: 1px solid var(--line); }
.setting label, .setting .lab { font-weight: 800; font-size: 1.02rem; }
.setting .hint { font-size: .86rem; color: var(--ink-2); margin: -4px 0 0; }
select { width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 12px; min-height: 48px; font-size: 1rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 10px 6px; min-height: 44px; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.warn { margin: 10px 2px 0; font-size: .86rem; color: var(--warn); font-weight: 600; min-height: 1.3em; }
.change-note { margin: 16px 0 0; padding: 12px 14px; background: var(--accent-soft); border-radius: 16px; font-size: .88rem; line-height: 1.45; }
.legal { margin: 18px 2px 0; font-size: .84rem; color: var(--ink-3); line-height: 1.6; }
.legal a { color: var(--accent); font-weight: 700; }
.btn:focus-visible, .card:focus-visible { outline-offset: 3px; }

/* ---------- category page ---------- */
.topic-band {
  background:
    radial-gradient(520px 220px at 88% -20%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(140deg, color-mix(in srgb, var(--cc) 78%, #031211), var(--cc-2, var(--cc)));
}
.band-back {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 12px -6px;
  padding: 8px 14px 8px 8px; min-height: 40px; border-radius: 999px; background: rgba(0,0,0,.22);
  color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.band-tile { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.2); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.band-tile svg { width: 30px; height: 30px; }
.topic-cards { margin-top: 18px; }
.sect + .cards { margin-top: 0; }

/* ---------- latest feed under a category page ---------- */
.latest { margin-top: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: .9rem; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.chip[aria-pressed="true"] { background: var(--cc); border-color: var(--cc); color: #fff; }
.feed-list { margin-top: 2px; }
.load-more { width: 100%; margin-top: 16px; }
.load-more[disabled] { opacity: .6; cursor: default; }
@media (min-width: 820px) { .feed-list { grid-template-columns: 1fr 1fr; } .feed-list .proof-card { grid-template-columns: 1fr; height: 100%; } .feed-list .pc-media { aspect-ratio: 16 / 9; min-height: 0; } }

/* ---------- article page ---------- */
.stat b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.story-card p { margin: 0; font-size: 1.05rem; line-height: 1.62; color: var(--ink); max-width: 62ch; overflow-wrap: anywhere; }
.story-card .btn { width: 100%; }
.badge-same { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); padding: 3px 8px; border-radius: 999px; }
.empty-note { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); font-size: .95rem; background: var(--surface); }

/* ---------- article details + leave-app confirmation ---------- */
.meta-list { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.meta-list > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px 14px; align-items: baseline; }
.meta-list > div + div { border-top: 1px solid var(--line); }
.meta-list dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.meta-list dd { margin: 0; font-size: .96rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.meta-list .dom { color: var(--ink-3); font-size: .86rem; }
.leave { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.leave[hidden] { display: none; }
.leave-backdrop { position: absolute; inset: 0; background: rgba(4, 14, 13, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s ease both; }
.leave-card { position: relative; width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 26px; padding: 24px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); outline: none; animation: sheet .26s cubic-bezier(.2, .8, .2, 1) both; display: flex; flex-direction: column; gap: 12px; }
.leave-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--band-a), var(--band-b)); }
.leave-icon svg { width: 24px; height: 24px; }
.leave-card h2 { margin: 4px 0 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.15; }
.leave-card p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .98rem; }
.leave-site { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.leave-site small { display: block; font-weight: 500; color: var(--ink-3); font-size: .84rem; }
.leave-actions { display: grid; gap: 10px; margin-top: 6px; }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .leave-backdrop, .leave-card { animation: none; } }
@media (min-width: 560px) { .leave-actions { grid-template-columns: 1fr 1fr; } .leave-actions .btn.primary { order: 2; } }

/* ---------- nearby cities ---------- */
.chip-label { margin: 0 2px 8px; font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.chips-city .chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 16px; line-height: 1.2; text-align: left; }
.chips-city .chip small { font-size: .72rem; font-weight: 600; opacity: .8; }
.chips-city .chip.dim { opacity: .62; }
.chips-city .chip[aria-pressed="true"] { opacity: 1; }
.city-chip span { font-weight: 700; }

.brand-icon { flex: none; width: 36px; height: 36px; border-radius: 22%; box-shadow: 0 1px 4px rgba(13,28,26,.25); }

/* ---------- web footer (hidden in the native app) ---------- */
.site-foot { max-width: var(--col); margin: 8px auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 28px max(16px, env(safe-area-inset-right, 0px)); color: var(--ink-3); font-size: .82rem; line-height: 1.55; }
.site-foot-in { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.site-foot p { margin: 0; max-width: 62ch; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.site-foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
html.gm-native .site-foot { display: none; }
