/* =========================================================
   Placebloom — design tokens
   Calm editorial minimalism: warm paper, deep teal, one accent for "need".
   ========================================================= */
:root {
  color-scheme: light;
  --bg: #fff8ee;              /* warm cream */
  --surface: #ffffff;
  --sunk: #fbf0e1;
  --ink: #1f1a3d;             /* deep indigo ink */
  --ink-2: #4b4566;
  --muted: #696382;           /* 5.3:1 on white */
  --line: #f0e4d2;
  --line-2: #e2d2bb;
  --brand: #5b3fd9;           /* grape */
  --brand-hover: #4a30bf;
  --brand-wash: #f0ecff;
  --brand-wash-2: #dcd3ff;
  --need: #c7372a;            /* coral-red text, 5.1:1 */
  --need-wash: #ffe9e4;
  --ok: #157a5f;
  --danger: #b42318;
  /* playful accents (identity only, always paired with words) */
  --sun: #ffc845; --sun-wash: #fff3cc;
  --mint: #1fb89a; --mint-wash: #dcf6ef;
  --coral: #ff6f59; --coral-wash: #ffe4de;
  --sky: #3d9bff; --sky-wash: #e0efff;
  --pink: #ff8cbf; --pink-wash: #ffe5f0;
  /* sequential data ramp (one hue, light → dark) */
  --q1: #efebff; --q2: #cbbfff; --q3: #9c86ff; --q4: #6b4eea; --q5: #3d27a3;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 26px;
  --sh-1: 0 1px 2px rgba(31, 26, 61, .06);
  --sh-2: 0 2px 4px rgba(31, 26, 61, .04), 0 10px 28px rgba(31, 26, 61, .08);
  --sh-3: 0 16px 48px rgba(91, 63, 217, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 6px; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { height: var(--header); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-wash); }
.nav .m-only { display: none; }
.hdr.open .nav .m-only { display: block; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.qsearch { position: relative; }
.qsearch form { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 40px; width: 280px; transition: border-color .15s, box-shadow .15s; }
.qsearch form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.qsearch input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 14.5px; }
.qsearch .icon { color: var(--muted); }
.hdr .menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--sunk); border-color: transparent; color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, white); }
.btn-danger:hover { background: #fdf0ef; border-color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn[aria-pressed="true"] { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 650; font-size: 14px; display: grid; place-items: center; border: 0; }
.avatar:hover { box-shadow: 0 0 0 4px var(--brand-wash); }

/* ---------- popovers / menus ---------- */
.pop { position: absolute; z-index: 60; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-head b { display: block; font-size: 14.5px; }
.pop-head span { font-size: 13px; color: var(--muted); }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 10px 12px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.pop-item:hover, .pop-item:focus-visible { background: var(--sunk); outline: none; }
.pop-item .icon { color: var(--muted); }
.pop-item.checked .icon { color: var(--brand); }
.pop-sep { height: 1px; background: var(--line); margin: 4px 0; }
.pop-item small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.pop-new { display: flex; gap: 6px; padding: 6px; }
.pop-new input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; font-size: 14px; }

.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; text-align: left; animation: pop .16s var(--ease); }
.results button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; }
.results button:hover, .results button:focus-visible { background: var(--sunk); outline: none; }
.results .icon { margin-top: 3px; color: var(--muted); }
.results b { display: block; font-weight: 550; font-size: 15px; }
.results small { display: block; color: var(--muted); font-size: 13px; }
.results .note { padding: 12px; color: var(--muted); font-size: 14px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: all .22s var(--ease); background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 18px; font-size: 14.5px; display: flex; gap: 14px; align-items: center; box-shadow: var(--sh-3); max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast a, #toast button { color: #9fd3e0; background: none; border: 0; font-weight: 600; padding: 0; text-decoration: underline; }

/* ---------- home ---------- */
.hero { padding: 88px 0 40px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); box-shadow: var(--sh-1); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3aa76d; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.025em; line-height: 1.04; margin: 22px auto 18px; max-width: 820px; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 600px; margin: 0 auto 34px; }
.bigsearch { position: relative; max-width: 640px; margin: 0 auto; }
.bigsearch form { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: var(--sh-2); transition: box-shadow .2s, border-color .2s; }
.bigsearch form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-wash), var(--sh-2); }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17.5px; height: 44px; }
.bigsearch .icon { color: var(--muted); width: 20px; height: 20px; }
.hero-sub { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--muted); }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 13px; font-size: 14px; min-height: 34px; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-loc { display: inline-flex; align-items: center; gap: 6px; }
.chip-loc .icon { width: 15px; height: 15px; }

.showcase { padding: 40px 0 24px; }
.show-card { max-width: 920px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.show-left { padding: 32px; border-right: 1px solid var(--line); }
.show-right { padding: 32px; background: linear-gradient(180deg, var(--brand-wash) 0%, var(--surface) 100%); display: flex; flex-direction: column; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.show-left h3 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 8px 0 4px; }
.show-left .loc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.quote { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); margin: 14px 0 20px; }
.quote mark { background: none; color: var(--brand); font-weight: 600; }
.show-right .cite { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 16px; }

.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.step-n { font-family: var(--serif); font-size: 15px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); font-weight: 600; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.who { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.who span { padding: 8px 16px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font-size: 14.5px; }
.cta-band { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.cta-band p { color: #cfe4ea; margin-top: 8px; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn:hover { background: #eef6f8; }
.sources { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- comparison meter ---------- */
.meter { position: relative; height: 18px; }
.meter .trk { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--q1), var(--q3) 60%, var(--q5)); }
.meter .trk.flat { background: var(--line); }
.meter .mid { position: absolute; left: 50%; top: 3px; width: 2px; height: 12px; border-radius: 2px; background: var(--line-2); }
.meter .mk { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--q4); box-shadow: var(--sh-1); }
.meter .mk.hi { border-color: var(--q5); background: var(--q5); }
.meter .mk.flat { border-color: var(--ink-2); }
.mtext { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.mtext.hi { color: var(--need); font-weight: 600; }
.mtext .icon { width: 14px; height: 14px; }

/* ---------- tract page ---------- */
.t-head { padding: 36px 0 0; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.t-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 12px; flex-wrap: wrap; }
.t-title h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.6vw, 52px); letter-spacing: -0.025em; }
.t-sub { color: var(--ink-2); font-size: 17px; margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 550; padding: 3px 10px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.tag.need { background: var(--need-wash); color: var(--need); }
.t-actions { display: flex; gap: 8px; align-items: center; position: relative; }
.headline { margin-top: 22px; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; font-size: 16.5px; }
.headline .big { font-family: var(--serif); font-size: 30px; color: var(--need); font-weight: 600; line-height: 1; }
.headline.calm .big { color: var(--brand); }

.tabs-bar { position: sticky; top: var(--header); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); margin-top: 26px; border-bottom: 1px solid var(--line); }
.tabs-in { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 15px 12px; font-size: 15px; font-weight: 550; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sunk); flex: none; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); min-height: 32px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

.t-body { padding: 32px 0 88px; }
.grid-ov { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1021px) { .grid-ov > :last-child { position: sticky; top: calc(var(--header) + 76px); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.card + .card { margin-top: 24px; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.card-h h2 { font-size: 19px; letter-spacing: -0.01em; }
.card-h p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.kpi { background: var(--surface); padding: 18px 20px; }
.kpi .k { font-size: 13.5px; color: var(--muted); }
.kpi .v { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin: 2px 0; }
.kpi .c { font-size: 13px; color: var(--muted); }
.stand { list-style: none; margin: 0; padding: 0; }
.stand li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.stand li:first-child { border-top: 0; padding-top: 0; }
.stand .l { font-weight: 550; }
.stand .v { font-family: var(--serif); font-size: 22px; font-weight: 500; text-align: right; }
.stand .m { grid-column: 1 / -1; }
.stand-empty { color: var(--ink-2); background: var(--sunk); border-radius: var(--r); padding: 16px; font-size: 15px; }
.stmt { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.stmt sup { font-family: var(--font); color: var(--brand); font-weight: 700; font-size: 11px; margin-left: 1px; }
.refs { margin: 16px 0 0; padding: 14px 0 0 18px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.refs li { margin-bottom: 4px; }
.mapcard { padding: 0; overflow: hidden; }
.minimap { height: 300px; isolation: isolate; background: var(--sunk); }
.facts { list-style: none; margin: 0; padding: 6px 22px 10px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts li:first-child { border-top: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }

.grp + .grp { margin-top: 24px; }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; flex-wrap: wrap; }
.grp-h h2 { font-size: 20px; }
.grp-h .src { font-size: 13px; color: var(--muted); }
.grp > p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.irow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 290px; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.irow:first-of-type { border-top: 0; }
.ilab { background: none; border: 0; padding: 0; text-align: left; font-weight: 550; font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.ilab .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.ilab[aria-expanded="true"] .icon { transform: rotate(180deg); }
.idef { font-size: 14px; color: var(--ink-2); margin-top: 6px; max-width: 520px; }
.idef small { display: block; color: var(--muted); margin-top: 4px; }
.ival { text-align: right; }
.ival b { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.ival span { font-size: 12.5px; color: var(--muted); }
.icmp .ref { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.na { color: var(--muted); font-size: 14px; }
.est { color: var(--muted); font-size: 13px; margin-top: 18px; }

.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .tt { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -130%); opacity: 0; transition: opacity .12s; }
.chart .tt.on { opacity: 1; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.sch-sum { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 18px; }
.sch-sum div { font-size: 14px; color: var(--muted); }
.sch-sum b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); }
.sch-list { list-style: none; margin: 0; padding: 0; }
.sch { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px 70px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.sch .n { font-weight: 600; }
.sch .d { font-size: 13px; color: var(--muted); }
.sch .s { font-size: 14px; text-align: right; }
.sch .s small { display: block; color: var(--muted); font-size: 12px; }
.bar { height: 6px; border-radius: 6px; background: var(--sunk); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--q3); border-radius: 6px; }

/* ---------- explore ---------- */
.explore { position: relative; height: calc(100dvh - var(--header)); }
.explore #map { position: absolute; inset: 0; isolation: isolate; background: var(--sunk); }
.xpanel { position: absolute; z-index: 10; top: 16px; left: 16px; bottom: 16px; width: 380px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; }
.xp-top { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.xp-top h1 { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: -0.015em; margin-bottom: 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.select { position: relative; }
.select select { appearance: none; width: 100%; height: 44px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; }
.select::after { content: ""; position: absolute; right: 15px; top: 18px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.select select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-wash); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xsum { font-size: 14.5px; color: var(--ink-2); background: var(--sunk); border-radius: 12px; padding: 12px 14px; margin-top: 4px; }
.xsum b { color: var(--ink); }
.xlist { flex: 1; overflow-y: auto; padding: 6px 10px; }
.xitem { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 11px 12px; text-decoration: none; color: var(--ink); }
.xitem:hover, .xitem:focus-visible, .xitem.hl { background: var(--sunk); outline: none; }
.xitem .rk { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xitem .nm { font-weight: 600; font-size: 15px; }
.xitem .ct { font-size: 13px; color: var(--muted); }
.xitem .vl { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.xitem .pc { display: block; font-size: 12px; font-weight: 550; color: var(--muted); }
.xitem .pc.hi { color: var(--need); }
.xp-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.xp-foot .btn { flex: 1; }
.legend { position: absolute; z-index: 10; right: 16px; bottom: 28px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); width: 230px; }
.legend b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 8px; }
.legend .bins { display: flex; gap: 2px; }
.legend .bins i { flex: 1; height: 8px; }
.legend .bins i:first-child { border-radius: 4px 0 0 4px; } .legend .bins i:last-child { border-radius: 0 4px 4px 0; }
.legend .ends { display: flex; justify-content: space-between; margin-top: 5px; }

/* ---------- projects ---------- */
.page { padding: 48px 0 96px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-h h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.025em; }
.page-h p { color: var(--ink-2); margin-top: 8px; }
.banner { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; background: var(--brand-wash); border-radius: var(--r); padding: 16px 20px; margin-bottom: 24px; font-size: 15px; }
.banner .icon { color: var(--brand); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pcard { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.pcard:hover { border-color: var(--brand-wash-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.pcard h3 { font-size: 18px; margin-bottom: 6px; }
.pcard p { color: var(--muted); font-size: 14px; }
.pcard .dots { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.pcard .dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--q3); }
.pnew { display: grid; place-items: center; text-align: center; border-style: dashed; color: var(--ink-2); min-height: 150px; background: transparent; width: 100%; font-size: 15.5px; }
.pnew .icon { margin: 0 auto 8px; color: var(--brand); width: 24px; height: 24px; }
.empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .ill { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; }
.empty .ill .icon { width: 28px; height: 28px; }
.empty h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 440px; margin: 0 auto 22px; }
.empty .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.tlist li:first-child { border-top: 0; }
.tlist a { font-weight: 600; text-decoration: none; color: var(--ink); }
.tlist a:hover { color: var(--brand); text-decoration: underline; }
.tlist .c { color: var(--muted); font-size: 13.5px; }
.tlist .icon-btn { margin-left: auto; }
.agg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.agg .a { background: var(--bg); border-radius: var(--r); padding: 16px 18px; }
.agg .a .k { font-size: 13.5px; color: var(--ink-2); }
.agg .a .v { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 2px 0 8px; }
.inline-edit { display: flex; gap: 8px; align-items: center; }
.inline-edit input { font-family: var(--serif); font-size: 34px; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 12px; width: min(560px, 80vw); }

/* ---------- auth dialog & forms ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 24px 80px rgba(14, 30, 40, .3); background: var(--surface); color: var(--ink); }
dialog.modal[open] { animation: rise .22s var(--ease); }
dialog.modal::backdrop { background: rgba(16, 26, 34, .45); backdrop-filter: blur(3px); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.m-in { padding: 32px; }
.m-close { position: absolute; top: 14px; right: 14px; }
.m-in h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.m-in .sub { color: var(--ink-2); margin: 6px 0 22px; font-size: 15px; }
.form .f { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form select { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.form input[aria-invalid="true"] { border-color: var(--danger); }
.form .help { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form .ferr { font-size: 13.5px; color: var(--danger); margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.form .ferr .icon { width: 16px; height: 16px; margin-top: 2px; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 14px; padding: 0 10px; border-radius: 8px; }
.pw button:hover { background: var(--brand-wash); }
.form .btn-primary { width: 100%; min-height: 48px; margin-top: 4px; }
.form-alert { background: #fdf0ef; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.switch { text-align: center; font-size: 14.5px; color: var(--ink-2); margin-top: 18px; }
.switch button { background: none; border: 0; color: var(--brand); font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.acc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.acc-nav { position: sticky; top: calc(var(--header) + 24px); display: flex; flex-direction: column; gap: 2px; }
.acc-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 550; }
.acc-nav a:hover { background: var(--sunk); color: var(--ink); }
.acc-sec .form { max-width: 460px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 25%, white); }

/* ---------- prose (methods) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.srcs { display: grid; gap: 12px; }
.srcrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.srcrow b a { color: var(--ink); }
.srcrow .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.srcrow p { font-size: 14.5px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.ftr-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ftr a { color: var(--ink-2); }
body.full .ftr { display: none; }

.loading { padding: 120px 24px; text-align: center; color: var(--muted); }
.loading .spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px; }
.skel { background: linear-gradient(90deg, var(--sunk), #ebe7df, var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.leaflet-container { font-family: var(--font); background: var(--sunk); }
.leaflet-tooltip.tw-tip { font-family: var(--font); font-size: 13px; border-radius: 10px; padding: 8px 12px; border: 0; box-shadow: var(--sh-2); }
.leaflet-control-zoom a { color: var(--ink) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--sh-2) !important; border-radius: 12px !important; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-ov { grid-template-columns: 1fr; }
  .irow { grid-template-columns: minmax(0, 1fr) 100px; }
  .irow .icmp { grid-column: 1 / -1; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-nav { display: none; }
}
@media (max-width: 860px) {
  :root { --header: 62px; }
  .nav, .qsearch { display: none; }
  .hdr .menu-btn { display: grid; }
  .hdr.open .nav { display: flex; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--sh-2); }
  .hdr.open .nav a { padding: 12px; border-radius: 10px; font-size: 16px; }
  .hero { padding: 56px 0 24px; }
  .hero .lead { font-size: 17px; }
  .show-card { grid-template-columns: 1fr; }
  .show-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 32px 24px; }
  .explore { height: auto; }
  .explore #map { position: relative; height: 56vh; }
  .xpanel { position: relative; top: 0; left: 0; bottom: 0; width: auto; border-radius: 0; box-shadow: none; }
  .xlist { max-height: none; overflow: visible; }
  .legend { bottom: auto; top: calc(56vh - 86px); right: 12px; width: 200px; }
  .sch { grid-template-columns: minmax(0, 1fr) 90px; }
  .sch .s.hide-sm { display: none; }
  .srcrow { grid-template-columns: 1fr; }
  .tabs-in { flex-direction: column; align-items: stretch; gap: 0; }
  .tabs-in .seg { align-self: flex-start; margin-bottom: 10px; }
  .wrap { padding: 0 18px; }
  .card { padding: 20px; }
  .m-in { padding: 26px 22px; }
  .t-actions .lbl-sm { display: none; }
}
@media print {
  .hdr, .ftr, .tabs-bar, .t-actions, .no-print, #toast { display: none !important; }
  body { background: #fff; }
  .card { border-color: #ccc; break-inside: avoid; }
  .grid-ov { grid-template-columns: 1fr; }
}

/* =========================================================
   Playful layer — accents, blobs, color-coded sections
   ========================================================= */
.logo-mark { background: linear-gradient(135deg, var(--brand) 0%, #8b5cf6 55%, var(--pink) 100%); border-radius: 10px; }
.btn-primary { box-shadow: 0 4px 14px rgba(91, 63, 217, .28); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(91, 63, 217, .34); }
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(8px); opacity: .55; pointer-events: none; }
.hero::before { width: 420px; height: 420px; left: -120px; top: 40px; background: radial-gradient(circle, var(--pink-wash) 0%, transparent 70%); }
.hero::after { width: 520px; height: 520px; right: -160px; top: -80px; background: radial-gradient(circle, var(--sun-wash) 0%, transparent 70%); }
main { position: relative; z-index: 0; }
.hero h1 { letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 90%, transparent 90%); padding: 0 .08em; }
.pill .dot { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-wash); }
.chip:hover { background: var(--brand-wash); }
.steps .step:nth-child(1) .step-n { background: var(--sun-wash); color: #8a5a00; }
.steps .step:nth-child(2) .step-n { background: var(--coral-wash); color: #a3321f; }
.steps .step:nth-child(3) .step-n { background: var(--mint-wash); color: #0f6b57; }
.step { transition: transform .2s var(--ease), box-shadow .2s; }
.step:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--sh-2); }
.who span:nth-child(4n+1) { background: var(--sun-wash); }
.who span:nth-child(4n+2) { background: var(--coral-wash); }
.who span:nth-child(4n+3) { background: var(--mint-wash); }
.who span:nth-child(4n+4) { background: var(--sky-wash); }
.cta-band { background: linear-gradient(120deg, #5b3fd9 0%, #7b4fe6 50%, #e46fb0 100%); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 200, 69, .35); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: #f1ecff; }
.show-right { background: linear-gradient(180deg, var(--brand-wash) 0%, #fff 100%); }
.quote mark { background: linear-gradient(transparent 60%, var(--sun) 60%); color: var(--ink); }
.headline .big { background: var(--need-wash); border-radius: 14px; padding: 6px 12px; }
.headline.calm .big { background: var(--mint-wash); color: var(--ok); }
.kpi { position: relative; }
.kpi::before { content: ""; position: absolute; left: 20px; top: 0; width: 28px; height: 4px; border-radius: 0 0 4px 4px; }
.kpis .kpi:nth-child(1)::before { background: var(--coral); }
.kpis .kpi:nth-child(2)::before { background: var(--sun); }
.kpis .kpi:nth-child(3)::before { background: var(--sky); }
.kpis .kpi:nth-child(4)::before { background: var(--mint); }
.tabs a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--line-2); }
.tabs a[data-c="overview"]::before { background: var(--brand); }
.tabs a[data-c="health"]::before { background: var(--coral); }
.tabs a[data-c="community"]::before { background: var(--sun); }
.tabs a[data-c="place"]::before { background: var(--mint); }
.tabs a[data-c="schools"]::before { background: var(--sky); }
.tabs a[aria-current="page"]::after { height: 3px; }
.xsum { background: var(--brand-wash); }
.pcard .dots i:nth-child(4n+1) { background: var(--brand); }
.pcard .dots i:nth-child(4n+2) { background: var(--coral); }
.pcard .dots i:nth-child(4n+3) { background: var(--sun); }
.pcard .dots i:nth-child(4n+4) { background: var(--mint); }
.empty .ill { background: var(--sun-wash); color: #8a5a00; }
.banner { background: var(--sky-wash); }
.btn-report { background: var(--sun); border-color: var(--sun); color: var(--ink); box-shadow: 0 4px 14px rgba(255, 176, 0, .3); }
.btn-report:hover { background: #ffbd1f; border-color: #ffbd1f; }.trendcard { margin-bottom: 24px; }
.tlist2 { list-style: none; margin: 0; padding: 0; }
.tlist2 li { display: grid; grid-template-columns: 1fr auto 78px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.tlist2 li:first-child { border-top: 0; }
.tlist2 span { color: var(--ink-2); }
.tlist2 em { font-style: normal; font-size: 12.5px; font-weight: 700; text-align: center; border-radius: 999px; padding: 2px 8px; }
.tdelta.good { background: var(--mint-wash); color: var(--ok); }
.tdelta.bad { background: var(--need-wash); color: var(--need); }
.tdelta.neutral, .tdelta.flat { background: var(--sky-wash); color: #1d5fae; }

/* ===== plain-language summary ===== */
.story { background: linear-gradient(135deg, #fff 0%, var(--brand-wash) 100%); border: 0; box-shadow: var(--sh-2); }
.story .kicker { color: var(--brand); }
.story-p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; margin-top: 8px; }
.story-p b { color: var(--brand); }
.story-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.schip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
.schip .icon { color: var(--brand); }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.vcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: transform .2s var(--ease), box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.vc-top { display: flex; align-items: center; gap: 10px; }
.vc-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.vc-ic .icon { width: 18px; height: 18px; }
.vc-t { font-weight: 700; font-size: 16.5px; }
.vc-q { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.vc-score { display: flex; align-items: baseline; gap: 4px; }
.vc-score b { font-family: var(--serif); font-size: 38px; font-weight: 800; line-height: 1; }
.vc-score span { color: var(--muted); font-size: 14px; }
.vc-score em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.vc-bar { height: 8px; border-radius: 8px; background: var(--sunk); margin: 10px 0 12px; overflow: hidden; }
.vc-bar i { display: block; height: 100%; border-radius: 8px; }
.vc-fact { font-size: 14px; color: var(--ink-2); margin-top: auto; }
.vc-fact span { color: var(--muted); }
.v-great em, .v-great .os b { color: #0f6b57; } .v-great em { background: var(--mint-wash); } .v-great .vc-bar i { background: var(--mint); }
.v-good em { background: #e5f6ee; color: #157a5f; } .v-good .vc-bar i { background: #6fcf97; }
.v-ok em { background: var(--sky-wash); color: #1d5fae; } .v-ok .vc-bar i { background: var(--sky); }
.v-weak em { background: #fff0dc; color: #a64b00; } .v-weak .vc-bar i { background: #ffa94d; }
.v-poor em { background: var(--need-wash); color: var(--need); } .v-poor .vc-bar i { background: var(--coral); }
.v-na em { background: var(--sunk); color: var(--muted); }
.score-note { color: var(--muted); font-size: 14px; margin: 14px 2px 22px; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 4px 0; }
details.more[open] summary { margin-bottom: 12px; }

/* ===== future ===== */
.bigscore { text-align: right; }
.bigscore b { font-family: var(--serif); font-size: 44px; font-weight: 800; line-height: 1; display: block; }
.bigscore span { font-size: 13px; color: var(--muted); }
.bigscore.v-great b, .bigscore.v-good b { color: #157a5f; } .bigscore.v-ok b { color: #1d5fae; } .bigscore.v-weak b { color: #a64b00; } .bigscore.v-poor b { color: var(--need); }
.pricebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--sunk); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.pricebox label { font-weight: 600; }
.pin { display: flex; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; height: 44px; }
.pin span { color: var(--muted); font-weight: 600; }
.pin input { border: 0; outline: 0; width: 140px; font-size: 17px; font-weight: 700; padding-left: 4px; }
.pin:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.hvrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.hvc { border-radius: var(--r); padding: 14px 16px; background: var(--sunk); }
.hvc.mid { background: var(--brand-wash); }
.hvc span { font-size: 13.5px; color: var(--ink-2); display: block; }
.hvc b { font-family: var(--serif); font-size: 32px; font-weight: 800; display: block; margin: 2px 0; }
.hvc em { font-style: normal; font-size: 13px; color: var(--muted); }
.ogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.oitem { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.ot { font-weight: 700; }
.ov { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; color: var(--muted); }
.ov .icon { width: 15px; height: 15px; }
.ov b { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 800; }
.ov small { font-size: 12px; }
.os { font-size: 13px; color: var(--ink-2); }
.os b { font-size: 15px; }

/* ===== kids ===== */
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kitem { background: var(--sunk); border-radius: var(--r); padding: 16px; }
.kitem b { font-family: var(--serif); font-size: 34px; font-weight: 800; color: var(--brand); display: block; line-height: 1.05; }
.kitem .kl { font-size: 13px; color: var(--muted); font-weight: 600; }
.kitem p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.h3 { font-size: 17px; margin: 24px 0 12px; }
.cgrid { display: grid; gap: 14px; }
.citem b { display: block; } .citem > span { font-size: 13px; color: var(--muted); }
.cbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--sunk); margin: 8px 0 6px; gap: 2px; }
.cbar i { display: block; height: 100%; }
.clegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.clegend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; }
.appx-intro { margin-bottom: 18px; } .appx-intro h2 { font-family: var(--serif); font-size: 30px; } .appx-intro p { color: var(--ink-2); margin-top: 6px; }
.mlist { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 8px; }
@media (max-width: 1020px) { .vgrid, .ogrid, .kgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .vgrid, .ogrid, .kgrid, .hvrow { grid-template-columns: 1fr; } .bigscore { text-align: left; } }
.tabs a[data-c="summary"]::before { background: var(--brand); }
.tabs a[data-c="future"]::before { background: var(--sun); }
.tabs a[data-c="kids"]::before { background: var(--mint); }
.tabs a[data-c="appendix"]::before { background: var(--line-2); }

/* ===== moving ===== */
.move-hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 90%, transparent 90%); }
.move-form { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 12px; align-items: start; max-width: 980px; margin: 0 auto; text-align: left; }
.mf label { display: block; font-weight: 700; margin: 0 0 8px 12px; }
.mf .bigsearch form { padding: 6px 6px 6px 18px; }
.mf .bigsearch input { font-size: 16px; height: 40px; }
.mf-arrow { display: grid; place-items: center; height: 56px; margin-top: 30px; color: var(--brand); }
.mf-arrow .icon { width: 26px; height: 26px; }
.picked { margin: 10px 0 0 12px; font-weight: 600; color: var(--ok); display: flex; gap: 6px; align-items: center; min-height: 22px; }
.picked .icon { width: 16px; height: 16px; }
.page-h .arrow { color: var(--brand); }
.verdict { display: flex; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--brand-wash), #fff); border: 0; }
.vd-num { text-align: center; flex: none; }
.vd-num b { font-family: var(--serif); font-size: 52px; font-weight: 800; color: var(--brand); display: block; line-height: 1; }
.vd-num span { font-size: 13px; color: var(--muted); }
.verdict p { font-size: 18px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.mgrid .card + .card { margin-top: 0; }
.mc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mc-h .icon { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--sun-wash); color: #8a5a00; box-sizing: content-box; }
.mc-h h2 { font-size: 20px; }
.mstory { font-size: 16.5px; line-height: 1.6; margin-bottom: 14px; }
.mstory b { color: var(--brand); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 18px; height: 3px; background: linear-gradient(90deg, var(--sun), var(--mint), var(--sky), var(--brand)); border-radius: 3px; }
.timeline div { text-align: center; position: relative; }
.timeline b { display: inline-block; background: #fff; border: 2px solid var(--brand); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.timeline span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hsline { display: grid; gap: 10px; }
.hsline div { background: var(--sunk); border-radius: 12px; padding: 10px 14px; }
.hsline b { display: block; margin-bottom: 4px; }
.hsline span { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 14px; }
.hsline i.d { width: 9px; height: 9px; border-radius: 3px; } .d.uc { background: #5b3fd9; } .d.csu { background: #3d9bff; } .d.ccc { background: #1fb89a; }
.mtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.mtable th { text-align: right; padding: 0 12px 10px; font-size: 15px; vertical-align: bottom; }
.mtable th small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.mtable td { padding: 11px 12px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.mtable td:first-child { text-align: left; color: var(--ink-2); }
.mtable td.win { font-weight: 700; background: var(--mint-wash); }
.ck { color: var(--ok); }
@media (max-width: 860px) { .move-form { grid-template-columns: 1fr; } .mf-arrow { transform: rotate(90deg); margin: 0; height: 30px; } .mgrid { grid-template-columns: 1fr; } }
.move-cta { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 26px auto 0; text-align: left; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.move-cta:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.move-cta .mc-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--sun); display: grid; place-items: center; flex: none; }
.move-cta b { display: block; font-size: 16px; }
.move-cta span span, .move-cta > span:nth-child(2) { font-size: 14.5px; color: var(--ink-2); }
.move-cta > .icon { margin-left: auto; color: var(--brand); }
.t-actions { flex-wrap: wrap; } @media (max-width: 640px) { .mtable { font-size: 13.5px; } .mtable td, .mtable th { padding: 9px 6px; } }
/* Placebloom brand */
.logo { gap: 8px; }
.logo-img { width: 36px; height: 36px; flex: none; transition: transform .3s var(--ease); }
.logo:hover .logo-img { transform: rotate(-12deg) scale(1.06); }
.wordmark { font-family: var(--serif); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.wordmark span { color: var(--brand); }
/* sign-up perks & saved moves */
.perks { list-style: none; margin: -8px 0 20px; padding: 14px 16px; background: var(--brand-wash); border-radius: 14px; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.perks .icon { color: var(--brand); margin-top: 2px; }
.h2s { font-family: var(--serif); font-size: 22px; margin: 6px 0 14px; }
.mvcard { display: flex; flex-direction: column; gap: 10px; }
.mvcard > a { text-decoration: none; color: inherit; }
.mvk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8a5a00; background: var(--sun-wash); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.mvk .icon { width: 14px; height: 14px; }
.mvact { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* ===== home: value proposition ===== */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; margin: 30px auto 0; text-align: left; }
.path { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.path:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.path .pi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.p-move .pi { background: var(--sun); } .p-grant .pi { background: var(--mint-wash); color: #0f6b57; }
.path b { display: block; font-size: 16px; margin-bottom: 2px; }
.path > span:nth-child(2) { font-size: 14px; color: var(--ink-2); }
.path > .icon { margin-left: auto; color: var(--brand); flex: none; }
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 24px; text-align: center; }
.proof b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--brand); }
.proof span { font-size: 14px; color: var(--ink-2); }
.whys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.why .wi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.w1 .wi { background: var(--sky-wash); color: #1d5fae; } .w2 .wi { background: var(--sun-wash); color: #8a5a00; } .w3 .wi { background: var(--pink-wash); color: #b0306a; } .w4 .wi { background: var(--mint-wash); color: #0f6b57; }
.why h3 { font-size: 17.5px; margin-bottom: 8px; }
.why p { color: var(--ink-2); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 32px; }
.fb-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.fb-h span { font-size: 13px; color: var(--muted); }
.fb { display: grid; grid-template-columns: 170px 1fr 36px; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.fb:hover { background: var(--sunk); }
.fn { font-weight: 600; font-size: 15px; }
.ft { height: 14px; background: var(--sunk); border-radius: 7px; overflow: hidden; }
.ft i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--mint), var(--brand)); }
.fb b { font-family: var(--serif); font-size: 18px; text-align: right; }
.join { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; padding: 36px; background: linear-gradient(135deg, #fff 0%, var(--brand-wash) 100%); border: 0; box-shadow: var(--sh-2); }
.join h2 { font-size: 34px; margin: 6px 0 10px; }
.jlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.jlist li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); }
.jlist b { display: block; margin-bottom: 2px; }
.jlist div { font-size: 14.5px; color: var(--ink-2); }
.ji { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.j1 { background: var(--sun); } .j2 { background: var(--coral-wash); color: #a3321f; } .j3 { background: var(--mint-wash); color: #0f6b57; } .j4 { background: var(--sky-wash); color: #1d5fae; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 14px; }
@media (max-width: 1020px) { .whys { grid-template-columns: 1fr 1fr; } .split, .join { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .paths, .whys, .proof-in { grid-template-columns: 1fr 1fr; } .paths { grid-template-columns: 1fr; } .whys { grid-template-columns: 1fr; } .fb { grid-template-columns: 120px 1fr 32px; } .split, .join { padding: 22px; } }
