/* DueDateCalculator.site — clean, fast, accessible. */
:root {
  --bg: #ffffff;
  --bg-soft: #fbf8fc;
  --surface: #ffffff;
  --border: #ebe5ef;
  --border-strong: #d6cddd;
  --text: #1c1427;
  --text-2: #4a4058;
  --muted: #6d6380;
  --accent: #be185d;
  --accent-strong: #9d174d;
  --accent-soft: #fdf2f8;
  --accent-border: #f9c8e0;
  --violet: #6d28d9;
  --violet-soft: #f5f3ff;
  --ok: #047857;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --warn-soft: #fffbeb;
  --warn-border: #fcd34d;
  --focus: #7c3aed;
  --header-bg: rgba(255, 255, 255, .88);
  --footer-bg: #1b1325;
  --footer-text: #d9d0e3;
  --footer-muted: #a497b4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 20, 39, .04), 0 6px 20px rgba(28, 20, 39, .06);
  --shadow-lg: 0 2px 6px rgba(28, 20, 39, .05), 0 18px 44px rgba(76, 29, 149, .10);
  --font-display: "Montserrat", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d18; --bg-soft: #170f1f; --surface: #1d1527; --border: #2f2539; --border-strong: #443756;
    --text: #f6f1fa; --text-2: #d8cee3; --muted: #a99bb9;
    --accent: #f472b6; --accent-strong: #f9a8d4; --accent-soft: #2a1323; --accent-border: #6b2148;
    --violet: #a78bfa; --violet-soft: #1e1733; --ok: #34d399; --danger: #f87171; --danger-soft: #2a1414;
    --warn-soft: #2a2210; --warn-border: #7c5e10; --focus: #c4b5fd;
    --header-bg: rgba(18, 13, 24, .86); --footer-bg: #0c0811;
    --shadow: none; --shadow-lg: 0 18px 44px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}

*, *::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(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -0.018em; color: var(--text); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 0 0 .6rem; font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); margin: 2.2rem 0 .8rem; font-weight: 750; }
h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .9em; }
.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-link { position: absolute; left: 1rem; top: -100px; background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
main { display: block; outline: none; }

/* ---------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; align-items: baseline; font-weight: 800; letter-spacing: -.02em; font-size: 1.08rem; }
.brand-accent { color: var(--accent); }
.brand-tld { color: var(--muted); font-weight: 600; font-size: .9em; }
.nav-desktop { display: none; gap: .15rem; align-items: center; }
.nav-desktop a, .nav-mobile nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .94rem; padding: .5rem .7rem; border-radius: 9px; }
.nav-desktop a:hover, .nav-mobile nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav-desktop a.nav-main { color: var(--accent); }
.nav-desktop a[aria-current="page"], .nav-mobile nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; transition: transform .15s; }
.burger::before { position: absolute; top: -6px; } .burger::after { position: absolute; top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile nav { position: absolute; right: 0; top: 54px; width: min(84vw, 300px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; display: grid; }
.nav-mobile nav a { padding: .8rem .9rem; font-size: 1rem; }
@media (min-width: 980px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }

/* ---------------------------------------------------------- page */
.page { padding-top: 1rem; padding-bottom: 3rem; }
.page-narrow { max-width: 780px; }
.breadcrumb { padding-top: 1rem; font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.page-head { margin: .6rem 0 1.4rem; max-width: 760px; }
.lead { font-size: 1.12rem; color: var(--text-2); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 750; color: var(--violet); margin: 0 0 .5rem; }

/* hero (home) */
.hero { background: radial-gradient(900px 380px at 15% -10%, rgba(244, 114, 182, .16), transparent 60%), radial-gradient(800px 360px at 95% 0%, rgba(124, 58, 237, .12), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--border); padding: 1.5rem 0 2.5rem; }
.hero-head { margin-top: .8rem; }
.hero-more { margin: 1rem 0 0; color: var(--text-2); }

/* ---------------------------------------------------------- calculator */
.calc-card { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 900px) { .calc-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.calc { padding: 1.25rem; display: grid; gap: 1rem; align-content: start; }
@media (min-width: 720px) { .calc { padding: 1.75rem; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field > label { font-weight: 650; font-size: .98rem; }
.hint { margin: 0; font-size: .86rem; color: var(--muted); }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.input { width: 100%; min-height: 54px; padding: .7rem .9rem; font: inherit; font-size: 1.08rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px; appearance: none; -webkit-appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185, 28, 28, .12); }
input[type="date"].input { min-width: 0; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.seg { border: 0; padding: 4px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; }
.seg-item { flex: 1 1 0; min-width: 0; position: relative; display: flex; }
.seg-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-item span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .45rem .5rem; border-radius: 10px; font-weight: 650; font-size: .92rem; line-height: 1.2; color: var(--text-2); }
.seg-item input:checked + span { background: var(--surface); color: var(--accent-strong); box-shadow: 0 1px 3px rgba(28, 20, 39, .12); }
.seg-item input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.more { border: 1px dashed var(--border-strong); border-radius: 12px; padding: .55rem .9rem; }
.more summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: .95rem; padding: .2rem 0; }
.more[open] summary { margin-bottom: .6rem; }
.field-check { display: block; }
.check { display: inline-flex; gap: .6rem; align-items: center; cursor: pointer; font-weight: 550; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.calc-actions { padding-top: .25rem; }
.calc > div[data-modes], .calc > div[data-units] { display: grid; gap: 1rem; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; font: inherit; font-weight: 650; font-size: .95rem; border-radius: 11px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-primary { background: linear-gradient(135deg, #db2777, #7c3aed); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(190, 24, 93, .25); }
.btn-primary:hover { color: #fff; filter: brightness(1.07); }
.btn-lg { min-height: 56px; padding: .8rem 1.4rem; font-size: 1.08rem; width: 100%; border-radius: 14px; }
@media (min-width: 720px) { .btn-lg { width: auto; } .calc .btn-lg { width: 100%; } }
.btn-ghost { background: transparent; }

/* result */
.result-slot { padding: 1.25rem; background: var(--bg-soft); border-top: 1px solid var(--border); min-width: 0; }
@media (min-width: 900px) { .result-slot { border-top: 0; border-left: 1px solid var(--border); padding: 1.75rem; } }
.result-empty { height: 100%; min-height: 140px; display: grid; place-items: center; text-align: center; border: 2px dashed var(--border); border-radius: 16px; color: var(--muted); padding: 1.5rem; }
.result-empty p { margin: 0; max-width: 30ch; }
.result { display: grid; gap: .2rem; }
.result-kicker { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; color: var(--violet); }
.result-main { margin: .15rem 0 0; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); font-weight: 850; letter-spacing: -.025em; color: var(--accent-strong); outline: none; overflow-wrap: anywhere; }
.result-sub { margin: 0 0 .8rem; color: var(--text-2); font-weight: 550; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .65rem .8rem; min-width: 0; }
.stat dt { font-size: .76rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.stat dd { margin: .15rem 0 0; font-weight: 750; font-size: 1.02rem; overflow-wrap: anywhere; }
.stat dd small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
.progress-wrap { margin: .5rem 0 .7rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 650; color: var(--text-2); margin-bottom: .3rem; }
.progress { height: 12px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #f472b6, #7c3aed); border-radius: 99px; }
.result-h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.result-more { margin: .4rem 0; }
.result-more summary { cursor: pointer; font-weight: 650; color: var(--accent); padding: .4rem 0; }
.result-flag { background: var(--warn-soft); border: 1px solid var(--warn-border); border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; margin: .4rem 0; }
.result-method { font-size: .9rem; color: var(--text-2); margin: .6rem 0 0; }
.result-note { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.result-actions .btn { flex: 1 1 auto; min-height: 44px; font-size: .9rem; padding: .45rem .8rem; }
.result-status { margin: .4rem 0 0; font-size: .9rem; color: var(--ok); min-height: 1.2em; }
.alert { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); border-radius: 12px; padding: .9rem 1rem; }
.pill { display: inline-block; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 750; border-radius: 99px; padding: .05rem .5rem; margin-left: .3rem; vertical-align: middle; }
tr.is-now th, tr.is-now td { background: var(--accent-soft); }

.disclaimer { margin: 1rem 0 0; font-size: .9rem; color: var(--text-2); background: var(--violet-soft); border: 1px solid var(--border); border-left: 4px solid var(--violet); border-radius: 10px; padding: .8rem 1rem; }

/* ---------------------------------------------------------- content */
.content-grid { margin-top: 1rem; }
.prose { max-width: 780px; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin: .3rem 0; }
.formula { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0 1.2rem; }
.formula p { margin: .2rem 0; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .6rem 0 1.2rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl thead th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl tbody th { font-weight: 650; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl-compact th, .tbl-compact td { padding: .4rem .7rem; font-size: .9rem; }
.result .table-wrap { max-height: 420px; overflow-y: auto; }
.week-links, .chip-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.week-links a, .chip { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--surface); }
.week-links a:hover, .chip:hover { border-color: var(--accent); }

/* FAQ */
.faq { margin-top: 2.2rem; max-width: 780px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: .55rem 0; }
.faq-item summary { cursor: pointer; list-style: none; padding: .9rem 2.6rem .9rem 1rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; }
.faq-a { padding: 0 1rem .9rem; color: var(--text-2); }
.faq-a p { margin: 0; }

/* cards */
.related, .home-section { margin-top: 2.6rem; }
.tool-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card { display: grid; gap: .25rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--accent-border); transform: translateY(-1px); color: var(--text); }
.tool-card-title { font-weight: 750; color: var(--accent-strong); }
.tool-card-text { font-size: .92rem; color: var(--text-2); }
.spotlight { margin-top: 2.4rem; display: grid; gap: 1.2rem; padding: 1.4rem; border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(135deg, var(--violet-soft), var(--accent-soft)); }
@media (min-width: 860px) { .spotlight { grid-template-columns: 1.1fr 1fr; padding: 2rem; align-items: center; } }
.spotlight h2 { margin-top: 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.spotlight-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.spotlight-links a { display: grid; padding: .75rem .95rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.spotlight-links a:hover { border-color: var(--accent); }
.spotlight-links strong { color: var(--accent-strong); }
.spotlight-links span { font-size: .9rem; color: var(--text-2); }
.updated { margin-top: 2rem; font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; }
.footer-brand p { color: var(--footer-muted); font-size: .93rem; margin-top: .8rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tld { color: var(--footer-muted); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: var(--footer-muted); }
.subscribe { margin-top: 1rem; display: grid; gap: .4rem; font-size: .9rem; }
.subscribe-row { display: flex; gap: .4rem; }
.subscribe .input { min-height: 44px; font-size: .95rem; }

.preview-banner { background: #fef3c7; color: #78350f; padding: .6rem 1rem; text-align: center; font-weight: 600; position: sticky; top: 0; z-index: 60; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .breadcrumb, .calc, .result-actions, .faq, .related, .prose, .hero-more, .spotlight, .home-section, .updated, .skip-link, .lead { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .calc-card { box-shadow: none; border: 0; display: block; }
  .result-slot { border: 0; background: #fff; padding: 0; }
  .result-more { display: block; } .result-more > *:not(summary) { display: block; }
  .stat, .table-wrap { border-color: #999; }
  .result .table-wrap { max-height: none; overflow: visible; }
  .disclaimer { border-color: #999; }
  .page-head h1::after { content: " — DueDateCalculator.site"; font-weight: 400; font-size: .6em; }
}

/* ---------------------------------------------------------- typography */
h1, h2, h3, .brand-text, .btn, .seg-item span, .result-main, .result-kicker, .eyebrow, .stat dd, .tool-card-title, .spotlight-links strong, .site-footer h2, .faq-item summary h3, .progress-label { font-family: var(--font-display); }
h1 { letter-spacing: -0.03em; font-weight: 800; }
h2 { letter-spacing: -0.02em; font-weight: 700; }
h3, .faq-item summary h3 { letter-spacing: -0.01em; font-weight: 700; }
.result-main { font-weight: 800; letter-spacing: -0.03em; }
.btn { letter-spacing: -0.005em; }
.field label, .field > label { font-weight: 600; }

/* homepage trust strip */
.hero-trust { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--text-2); font-size: .92rem; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be185d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.home-guide { margin-top: 2.6rem; }
.home-guide .prose > h2:first-child { margin-top: 0; }

/* Segmented tabs: one row when they fit, wrap cleanly when they don't (no overlap). */
.seg-item { flex: 1 1 auto; }
.seg-item span { white-space: nowrap; padding: .45rem .7rem; }
@media (max-width: 420px) { .seg-item span { font-size: .84rem; padding: .4rem .55rem; } }
@media (max-width: 400px) {
  .header-inner { gap: .5rem; }
  .brand { gap: .45rem; min-width: 0; }
  .logo-mark { width: 32px; height: 32px; }
  .brand-text { font-size: clamp(.86rem, 4.2vw, 1rem); }
  .nav-mobile summary { width: 44px; height: 44px; }
}
.this-week { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 12px; padding: .2rem .9rem .5rem; margin: .7rem 0; }
.this-week p { margin: .3rem 0; font-size: .95rem; }
