/* HattiesburgLife — design system */
:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --surface-2: #f1ede3;
  --ink: #18201b;
  --ink-2: #3b453e;
  --muted: #69726b;
  --line: #e4dfd2;
  --line-2: #d6d0c0;
  --brand: #1d5c45;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe8;
  --accent: #d99a20;
  --accent-soft: #fbf0d7;
  --focus: #2f7dd1;
  --lead: #a2541b;
  --lead-soft: #fbe9db;

  --c-jobs: #2c64b0;
  --c-coming: #c4651a;
  --c-government: #6a4fb3;
  --c-events: #c2384f;
  --c-business: #0f7f86;
  --c-community: #3d8a3a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(24, 32, 27, .05), 0 4px 14px rgba(24, 32, 27, .05);
  --shadow-lg: 0 10px 40px rgba(24, 32, 27, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --tabbar: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --surface: #161d19; --surface-2: #1c2520; --ink: #edf1ec; --ink-2: #c9d1ca; --muted: #93a096;
    --line: #26302a; --line-2: #34403a; --brand: #6cc39c; --brand-ink: #0c1a13; --brand-soft: #193326; --accent: #f0c35a; --accent-soft: #33290f;
    --lead: #f0a36a; --lead-soft: #3a2415; --focus: #7cb6f2;
    --c-jobs: #7aa7ec; --c-coming: #f0a060; --c-government: #ab97ec; --c-events: #f08396; --c-business: #59c3c9; --c-community: #86c77f;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --surface: #161d19; --surface-2: #1c2520; --ink: #edf1ec; --ink-2: #c9d1ca; --muted: #93a096;
  --line: #26302a; --line-2: #34403a; --brand: #6cc39c; --brand-ink: #0c1a13; --brand-soft: #193326; --accent: #f0c35a; --accent-soft: #33290f;
  --lead: #f0a36a; --lead-soft: #3a2415; --focus: #7cb6f2;
  --c-jobs: #7aa7ec; --c-coming: #f0a060; --c-government: #ab97ec; --c-events: #f08396; --c-business: #59c3c9; --c-community: #86c77f;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .18s ease-in both vt-out; }
  ::view-transition-new(root) { animation: .22s ease-out both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font);
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.stack > * + * { margin-top: var(--s, 12px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.22rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand b { color: var(--brand); font-weight: 750; }
.head-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.head-search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 16px 0 40px; font: inherit; font-size: .95rem; }
.head-search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: 600 .94rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: .86rem; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 1rem; }
.btn.accent { background: var(--accent); color: #231a05; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.nav { border-top: 1px solid var(--line); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 11px 12px; font-size: .92rem; font-weight: 550; text-decoration: none; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.head-mobile-only { display: none !important; }

/* Mobile app shell */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: 64px; }
  .head-search, .head-sub, .nav { display: none; }
  .head-mobile-only { display: inline-grid !important; }
  .sub-m { display: inline-flex !important; }
  .head-row { height: 56px; }
  .head-row .head-mobile-only:first-of-type { margin-left: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 .68rem/1 var(--font); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar [aria-current="page"] { color: var(--brand); }
}

/* Sheet (More menu / search on mobile) */
.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); max-height: 85dvh; }
.sheet::backdrop { background: rgba(10, 14, 12, .45); }
.sheet-inner { padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.sheet-grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.sheet-links a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); text-decoration: none; font-weight: 600; }
.sheet-links .dot { width: 10px; height: 10px; border-radius: 50%; }
.sheet form input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; }

/* ---------- Layout pieces ---------- */
main { min-height: 60vh; }
.page-head { padding: 32px 0 18px; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 62ch; font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 .76rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sec, var(--brand)); }
.section { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { display: flex; align-items: center; gap: 10px; }
.sec-head .more { font-weight: 600; font-size: .92rem; color: var(--brand); text-decoration: none; white-space: nowrap; }
.sec-head .more:hover { text-decoration: underline; }
.sec-sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.aside-sticky { position: sticky; top: 130px; }

[data-sec="jobs"] { --sec: var(--c-jobs); }
[data-sec="coming"] { --sec: var(--c-coming); }
[data-sec="government"] { --sec: var(--c-government); }
[data-sec="events"] { --sec: var(--c-events); }
[data-sec="business"] { --sec: var(--c-business); }
[data-sec="community"] { --sec: var(--c-community); }

/* ---------- Hero / greeting ---------- */
.hello { padding: 30px 0 8px; }
.hello-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.hello h1 span { color: var(--brand); }
.hello .date { color: var(--muted); font-weight: 500; margin-top: 6px; }
.weather { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.weather b { font-size: 1.05rem; }
.weather svg { width: 26px; height: 26px; color: var(--accent); }
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.pulse a { display: block; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.pulse a:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pulse b { display: block; font: 700 1.6rem/1.1 var(--display); letter-spacing: -.02em; }
.pulse span { font-size: .86rem; color: var(--muted); }
@media (max-width: 700px) { .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pulse b { font-size: 1.35rem; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card .sum { color: var(--ink-2); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card img.thumb { width: calc(100% + 36px); margin: -16px -18px 4px; height: 160px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; max-width: none; background: var(--surface-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: .8rem; }
.meta > * + *::before { content: '·'; margin-right: 10px; color: var(--line-2); }
.meta .nosep::before { content: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 650 .72rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--sec, var(--muted)); }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 650 .72rem/1 var(--font); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.lead { background: var(--lead-soft); color: var(--lead); }
.badge.new { background: var(--brand-soft); color: var(--brand); }
.badge.sponsored { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 60%, var(--ink)); }
.badge.free { background: var(--brand-soft); color: var(--brand); }

/* Lead story */
.lead-story { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.lead-story .main { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.lead-story .main h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
.lead-story .main h2 a { text-decoration: none; }
.lead-story .main h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.lead-story .main .sum { font-size: 1.05rem; color: var(--ink-2); }
.lead-story .why { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; color: var(--ink-2); font-size: .95rem; }
.lead-story .list { display: flex; flex-direction: column; }
@media (max-width: 860px) { .lead-story { grid-template-columns: minmax(0, 1fr); } }

/* Compact rows */
.rows { display: flex; flex-direction: column; }
.row { position: relative; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row:last-child { border-bottom: 0; }
.row h3 { font-size: 1rem; }
.row h3 a { text-decoration: none; }
.row h3 a::after { content: ''; position: absolute; inset: 0; }
.row h3 a:hover { color: var(--brand); }
.row .body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.row .sum { color: var(--ink-2); font-size: .92rem; }

/* Jobs */
.job { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.job:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.job:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.job:only-child { border-radius: var(--radius); }
.joblist { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.job:hover { background: color-mix(in srgb, var(--surface) 92%, var(--brand-soft)); }
.job h3 { font-size: 1.02rem; }
.job h3 a { text-decoration: none; }
.job h3 a::after { content: ''; position: absolute; inset: 0; }
.job .co { font-weight: 550; color: var(--ink-2); font-size: .92rem; }
.job .right { text-align: right; display: flex; flex-direction: column; align-items: end; gap: 6px; }
.logo-chip { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font: 700 1rem/1 var(--display); color: #fff; background: var(--chip, var(--brand)); flex-shrink: 0; }
@media (max-width: 560px) { .job { grid-template-columns: 40px minmax(0, 1fr); } .job .right { grid-column: 2; align-items: start; flex-direction: row; flex-wrap: wrap; text-align: left; } .logo-chip { width: 40px; height: 40px; } }

/* Events */
.ev { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ev:hover { border-color: var(--line-2); }
.ev h3 a { text-decoration: none; }
.ev h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border-radius: 12px; background: color-mix(in srgb, var(--c-events) 10%, var(--surface)); color: var(--c-events); }
.datebox small { font: 700 .68rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.datebox b { font: 700 1.5rem/1.05 var(--display); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (max-width: 760px) { .scroller { grid-auto-columns: 82%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); } }
.day-group + .day-group { margin-top: 26px; }
.day-group > h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; font-family: var(--font); font-weight: 700; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.filters input[type=search], .filters input[type=text], .filters select { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); padding: 0 12px; font: inherit; font-size: .93rem; min-width: 0; }
.filters input[type=search] { flex: 1 1 220px; }
.filters select { flex: 0 1 190px; }
.filters label.check { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 550; padding: 0 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.seg a:hover { border-color: var(--ink-2); }
.seg a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 24px 0 8px; }

/* Side panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 10px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { text-decoration: none; }
.list-plain a:hover { color: var(--brand); text-decoration: underline; }
.bar { height: 8px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: var(--sec, var(--brand)); border-radius: inherit; }

/* Stage board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.stage { background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-height: 120px; }
.stage h3 { display: flex; justify-content: space-between; font-size: .9rem; font-family: var(--font); font-weight: 700; margin-bottom: 10px; color: var(--ink-2); }
.stage .card { padding: 12px 14px; gap: 6px; box-shadow: none; }
.stage .card h3 { font-size: .95rem; margin: 0; color: var(--ink); }
.stage .empty { font-size: .85rem; color: var(--muted); padding: 6px 2px; }
.steps { display: flex; gap: 4px; margin-top: 4px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
.steps i.on { background: var(--c-coming); }

/* Article */
.article { max-width: 760px; }
.article h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin: 10px 0 12px; }
.article .lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; }
.callout { border-radius: var(--radius); padding: 16px 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.callout h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font); margin-bottom: 6px; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
.quote { border-left: 3px solid var(--line-2); padding: 4px 0 4px 14px; color: var(--ink-2); font-size: .95rem; }
.source-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.note { font-size: .82rem; color: var(--muted); }
.lead-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--lead-soft); color: var(--lead); font-size: .92rem; font-weight: 550; }

/* Newsletter */
.signup { position: relative; overflow: hidden; border-radius: 20px; padding: 28px; background: var(--brand); color: var(--brand-ink); }
.signup h2 { color: inherit; }
.signup p { opacity: .88; margin-top: 6px; max-width: 52ch; }
.signup form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; position: relative; }
.signup input[type=email] { flex: 1 1 240px; height: 48px; border-radius: 999px; border: 0; padding: 0 18px; font: inherit; background: #fff; color: #18201b; }
.signup .btn { background: var(--accent); color: #231a05; height: 48px; }
.signup .fine { font-size: .8rem; opacity: .75; margin-top: 10px; position: relative; }
.signup svg.deco { position: absolute; right: -30px; bottom: -40px; width: 260px; opacity: .12; color: currentColor; pointer-events: none; }
.signup.compact { padding: 20px; border-radius: var(--radius); }
.signup.compact h2 { font-size: 1.2rem; }
.form-msg { margin-top: 10px; font-weight: 600; min-height: 1.2em; }

/* Search */
.search-big { display: flex; gap: 10px; margin: 6px 0 20px; }
.search-big input { flex: 1; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 18px; font: inherit; font-size: 1.05rem; }

/* Empty states */
.empty-state { text-align: center; padding: 38px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }

/* Footer */
.site-foot { margin-top: 48px; border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.foot-grid h4 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Install */
#install-app[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; z-index: 60; box-shadow: var(--shadow-lg); }

.prose { max-width: 70ch; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h2 + p, .prose p + h2 { margin-top: 14px; }
.prose h2 { margin-top: 28px; font-size: 1.35rem; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
table.simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.simple th, table.simple td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
