/* Daily Wise Money: one stylesheet, system fonts, light + dark. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #1b2420;
  --muted: #55625c;
  --line: #e2ded5;
  --line-strong: #c9c4b8;
  --accent: #0b6b5c;
  --accent-hover: #08594c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1ec;
  --accent-text: #0a6455;
  --warn-soft: #fbf3e2;
  --focus: #0b6b5c;
  --logo-ink: #ffffff;
  --shadow: 0 1px 2px rgba(27, 36, 32, .05), 0 4px 16px rgba(27, 36, 32, .05);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513;
    --surface: #161e1b;
    --surface-2: #1c2622;
    --ink: #e7ece9;
    --muted: #a5b2ac;
    --line: #2a3530;
    --line-strong: #3d4a44;
    --accent: #5fd0b6;
    --accent-hover: #86dfca;
    --accent-ink: #06211b;
    --accent-soft: #173a32;
    --accent-text: #7ad9c3;
    --warn-soft: #2d2718;
    --focus: #86dfca;
    --logo-ink: #0f1513;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
@media (min-width: 640px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.num, .stat-value, td, .tick-a, output { font-variant-numeric: tabular-nums; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand .logo { color: var(--accent); flex: none; }
.brand-name b { color: var(--accent-text); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .2rem; margin: 0 -.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .98rem; font-weight: 500; padding: .45rem .5rem; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { color: var(--accent-text); text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }

/* hero */
.hero { padding: 2.75rem 0 2.25rem; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-in > * { max-width: 46rem; }
@media (min-width: 900px) { .hero { padding: 4.5rem 0 3.5rem; } }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent-text); margin-bottom: .6em; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 3.8rem); margin-bottom: .35em; }
.lede { font-size: 1.15em; color: var(--muted); max-width: 44rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.25rem; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent-text); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.btn-small { min-height: 44px; padding: .45rem 1rem; font-size: .95rem; }

/* sections and cards */
.section { margin-top: 3rem; margin-bottom: 3rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .98rem; }
.section-lede { color: var(--muted); margin-top: -.25rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-tools, .cards-guides, .cards-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.25rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.card:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.card:hover .card-title { color: var(--accent-text); }
.card-desc { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.card-foot { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: .35rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .8rem; margin: 0; }
.cat { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); text-decoration: none; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .78rem; text-decoration: none; }
a.badge:hover { border-color: var(--accent); color: var(--accent-text); }
.tool-card .ico { color: var(--accent-text); background: var(--accent-soft); border-radius: 10px; padding: 7px; width: 42px; height: 42px; margin-bottom: .3rem; }
.country-card .cc { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: .05em; font-size: .9rem; margin-bottom: .2rem; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
@media (min-width: 768px) { .promise { padding: 2rem 2.25rem; } }
.promise-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
@media (min-width: 900px) { .promise-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.promise-list li { color: var(--muted); }
.promise-list strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; margin-bottom: .2rem; }
.example { display: grid; gap: .75rem 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; }
@media (min-width: 768px) { .example { grid-template-columns: 1fr auto; padding: 1.5rem 2rem; } }
.example p { margin: 0; }
.example .big { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* page */
.page { padding-top: 1.25rem; padding-bottom: 3rem; }
.page > h1, .page-head h1 { margin-top: .4rem; }
.page-head { margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .25rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.advice-note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; max-width: 44rem; }

/* prose */
.doc { max-width: 46rem; }
.doc-head { margin: .75rem 0 1.5rem; }
.doc-head .card-meta { margin-bottom: .75rem; }
.byline { font-size: .95rem; margin: 0; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.6rem; scroll-margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.5em 0; padding: .75em 1.25em; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--surface-2); padding: 1rem; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose img { border-radius: 10px; }
.table { overflow-x: auto; margin: 1.25em 0 1.5em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 700; font-size: .88rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
caption { text-align: left; font-weight: 700; padding: .7rem .85rem .2rem; font-family: var(--serif); font-size: 1.05rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; max-width: 44rem; }
.toc h2 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: .25rem 0; font-size: .98rem; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .5rem; }
.filters[hidden] { display: none; }
.filters button, .chip-btn { min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .95rem/1 var(--sans); cursor: pointer; }
.filters button span { color: var(--muted); font-weight: 500; margin-left: .2rem; }
.filters button[aria-pressed="true"], .chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filters button[aria-pressed="true"] span { color: inherit; }
.filters button:hover, .chip-btn:hover { border-color: var(--accent); }
.filter-note { min-height: 1.5em; margin-bottom: 1rem; }

/* tools */
.tool { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; } .tool-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tool-form, .tool-results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 640px) { .tool-form, .tool-results { padding: 1.5rem; } }
@media (min-width: 900px) { .tool-results { position: sticky; top: 1rem; } }
.tool-results h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.tool-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.tool-form legend { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; padding: 0; margin-bottom: .6rem; }
.field { margin-bottom: 1rem; min-width: 0; }
.field label, .quick-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
input, select { width: 100%; min-height: 48px; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
input:hover, select:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.input { position: relative; }
.has-suffix input { padding-right: 2.2rem; }
.suffix { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hint { font-size: .88rem; color: var(--muted); margin: .3rem 0 0; line-height: 1.45; }
.quick { margin: -.4rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.quick-label { width: 100%; font-size: .88rem; font-weight: 500; color: var(--muted); margin: 0; }
.chip-btn { min-height: 40px; padding: .35rem .85rem; font-variant-numeric: tabular-nums; }
.summary { font-size: 1.05rem; font-weight: 500; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.stats-4 { grid-template-columns: 1fr 1fr; }
.stats[data-off] .stat-value { color: var(--muted); }
.stat { background: var(--surface-2); border-radius: 12px; padding: .8rem .9rem; min-width: 0; }
.stat-big { grid-column: 1 / -1; background: var(--accent-soft); }
.stat-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat-big .stat-label { color: var(--accent-text); }
.stat-value { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.stat-big .stat-value { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); }
.table-results { margin: 0 0 1rem; max-height: 26rem; overflow-y: auto; }
.table-results td { text-align: right; white-space: nowrap; }
.table-results thead th:not(:first-child) { text-align: right; }
.table-results tr.sum th, .table-results tr.sum td { font-weight: 700; background: var(--surface-2); }
.note { background: var(--warn-soft); padding: .75rem .9rem; border-radius: 10px; line-height: 1.5; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; }
.tool-text { margin-top: 2.5rem; }
.formula { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.1rem; margin: 1.25rem 0; font-variant-numeric: tabular-nums; }
.formula p { margin: .35rem 0; }
.formula span { font-weight: 700; }
.formula small { color: var(--muted); }
.faq h3 { font-family: var(--sans); font-size: 1.08rem; margin-top: 1.4rem; }

/* challenge tracker */
.progress { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s; }
.tracker { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.tracker-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.tracker-head h2 { margin: 0; font-size: 1.3rem; }
.tracker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: .45rem; }
.tick { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: .3rem .2rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; font: 500 .8rem/1.2 var(--sans); }
.tick-n { color: var(--muted); font-size: .75rem; }
.tick-a { font-weight: 700; font-size: .95rem; }
.tick:hover { border-color: var(--accent); }
.tick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tick[aria-pressed="true"] .tick-n { color: inherit; opacity: .85; }

/* subscriptions */
.subs-head { display: none; }
.sub-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "name rm" "amt amt" "every every" "year year"; gap: .4rem .5rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.sub-name { grid-area: name; }
.sub-amt { grid-area: amt; }
.sub-every { grid-area: every; }
.sub-year { grid-area: year; font-weight: 700; font-size: .95rem; color: var(--muted); }
.sub-year::before { content: "Per year: "; font-weight: 500; }
.sub-row .btn-icon { grid-area: rm; }
@media (min-width: 560px) {
  .subs-head { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.1fr) 44px; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--muted); padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
  .sub-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.1fr) 44px; grid-template-areas: "name amt every year rm"; align-items: center; padding: .5rem 0; }
  .sub-year { text-align: right; color: var(--ink); }
  .sub-year::before { content: none; }
}
.btn-icon { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.btn-icon:hover { border-color: #b3261e; color: #b3261e; }
.subs-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .25rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.bar-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; height: 8px; background: var(--surface-2); border-radius: 999px; margin-top: .2rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; padding: 2.5rem 0 1rem; font-size: .95rem; }
.foot-in { display: grid; gap: 1.75rem; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1.3fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--muted); max-width: 26rem; margin-top: .6rem; }
.foot nav { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.foot nav h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4rem; }
.foot nav a { color: var(--ink); text-decoration: none; padding: .25rem 0; }
.foot nav a:hover { color: var(--accent-text); text-decoration: underline; }
.legal { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .share, .skip, .tracker-head button { display: none; } body { background: #fff; color: #000; } }

/* earning ideas finder */
@media (min-width: 900px) { .tool-stacked { grid-template-columns: minmax(0, 1fr); } .tool-stacked .tool-results { position: static; } }
.tool-stacked .tool-form { display: grid; gap: 0 2rem; }
@media (min-width: 900px) { .tool-stacked .tool-form { grid-template-columns: 1fr 1fr; } .tool-stacked .step:first-child { grid-column: 1 / -1; } }
.step legend { display: flex; align-items: center; gap: .55rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .9rem/1 var(--sans); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; }
.chip-label { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; }
.chip-label:hover { border-color: var(--accent); }
.chip-input:checked + .chip-label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-input:checked + .chip-label::before { content: "✓"; margin-right: .35rem; font-weight: 700; }
.chip-input:focus-visible + .chip-label { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-narrow { max-width: 12rem; }
.ideas { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .ideas { grid-template-columns: 1fr 1fr; } }
.idea { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.15rem; background: var(--bg); min-width: 0; }
.idea[hidden] { display: none; }
.idea h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.idea h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .9rem 0 .35rem; }
.idea p { margin: 0 0 .6rem; font-size: .97rem; }
.idea-facts { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; }
.idea-facts li { background: var(--surface-2); border-radius: 8px; padding: .25rem .6rem; }
.idea-facts span { color: var(--muted); margin-right: .2rem; }
.platforms { margin: 0 0 .6rem; padding-left: 1.1rem; font-size: .93rem; }
.platforms li { margin: .25rem 0; }
.watch { background: var(--warn-soft); border-radius: 8px; padding: .55rem .7rem; }
.idea-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .93rem; font-weight: 600; }

/* reference */
.hlink { color: inherit; text-decoration: none; }
.hlink:hover { color: var(--accent-text); text-decoration: underline; }
.hlink:hover::after { content: " #"; color: var(--muted); font-weight: 400; }
.toc-inline ol { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; padding: 0; }
.prose-ref h3 { margin-top: 1.4rem; }

/* small phones: keep result numbers on one line */
@media (max-width: 479px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; }
  .stat { padding: .65rem .7rem; }
  .stat-value { font-size: 1.12rem; }
  .tool-form, .tool-results { padding: 1rem; }
  .table-results table { font-size: .8rem; }
  .table-results th, .table-results td { padding: .45rem .4rem; }
}
