/* ==========================================================================
   Pregnancy Calculator — pregnancycalculator.in
   Design system: soft rose + deep teal, warm neutrals, light & dark themes
   ========================================================================== */

:root {
  --bg: #fffbfc;
  --surface: #ffffff;
  --surface-2: #fdf3f6;
  --surface-3: #f4faf9;
  --ink: #1d2030;
  --ink-2: #3a3f52;
  --muted: #5e6377;
  --line: #efe3e8;
  --line-2: #e4d4db;

  --rose: #c2416b;
  --rose-strong: #a8325a;
  --rose-soft: #fce8ef;
  --rose-tint: #fff4f7;
  --teal: #0f766e;
  --teal-strong: #0b5e57;
  --teal-soft: #e3f4f1;
  --amber: #b45309;
  --amber-soft: #fff4e0;
  --violet: #6d4bc3;
  --violet-soft: #efe9fb;

  --t1: #e8799d;   /* trimester 1 */
  --t2: #f0a35e;   /* trimester 2 */
  --t3: #2aa198;   /* trimester 3 */

  --shadow-sm: 0 1px 2px rgba(60, 20, 40, .06);
  --shadow: 0 6px 24px -8px rgba(90, 30, 60, .16), 0 2px 6px rgba(90, 30, 60, .05);
  --shadow-lg: 0 24px 60px -20px rgba(90, 30, 60, .28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --read: 760px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141219; --surface: #1c1922; --surface-2: #251f2b; --surface-3: #18242a;
    --ink: #f3eef4; --ink-2: #d9d2dc; --muted: #a9a1b1; --line: #2e2835; --line-2: #3a3342;
    --rose: #f083a8; --rose-strong: #f59bba; --rose-soft: #3a2230; --rose-tint: #2a1c25;
    --teal: #4cc9b9; --teal-strong: #6fd8ca; --teal-soft: #173430;
    --amber: #f2b35c; --amber-soft: #3a2b16; --violet: #b49cf3; --violet-soft: #2a2340;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 28px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141219; --surface: #1c1922; --surface-2: #251f2b; --surface-3: #18242a;
  --ink: #f3eef4; --ink-2: #d9d2dc; --muted: #a9a1b1; --line: #2e2835; --line-2: #3a3342;
  --rose: #f083a8; --rose-strong: #f59bba; --rose-soft: #3a2230; --rose-tint: #2a1c25;
  --teal: #4cc9b9; --teal-strong: #6fd8ca; --teal-soft: #173430;
  --amber: #f2b35c; --amber-soft: #3a2b16; --violet: #b49cf3; --violet-soft: #2a2340;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 28px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rose-strong); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.5em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

/* ---------- Copy protection ---------- */
.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect input, .protect select, .protect textarea, .protect .allow-select { -webkit-user-select: text; user-select: text; }
.protect img { pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: -3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav-drop {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav a:hover, .nav button.nav-drop:hover, .nav a[aria-current="page"] { background: var(--rose-soft); color: var(--rose-strong); }
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: .18s ease;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 12px; }
.menu a span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.menu .menu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--rose); color: var(--rose); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; margin: 0;
    max-height: calc(100vh - 68px); overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a, .nav button.nav-drop { padding: 12px 14px; font-size: 1rem; justify-content: space-between; width: 100%; }
  .header-actions { margin-left: auto; }
  .menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0 10px;
    grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none; }
  .has-menu.open .menu { display: grid; transform: none; }
  .has-menu:hover .menu { transform: none; }
  .menu a span { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "›"; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rose) 16%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -40% -15%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.hero-copy { padding-top: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ink-2); font-size: .98rem; }
.hero-points svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 2px; }
.page-head { padding: 22px 0 8px; }
.page-head .lead { margin-bottom: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); margin-top: 14px; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-top: 0; }
  .hero { padding: 24px 0 40px; }
}

/* ---------- Calculator card ---------- */
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.calc-title { font-size: 1.15rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.calc-title svg { width: 26px; height: 26px; color: var(--rose); }
.calc-sub { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; margin-bottom: 20px; }
.tab {
  flex: 1 1 auto; border: 0; background: transparent; font: inherit; font-size: .86rem; font-weight: 700; color: var(--muted);
  padding: 9px 10px; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--rose-strong); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
input[type="date"], input[type="number"], input[type="text"], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8f9f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input:focus, select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 16%, transparent); }
input[aria-invalid="true"] { border-color: #d33; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--rose); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--rose-strong)); color: #fff; box-shadow: 0 10px 24px -10px var(--rose); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px var(--rose); }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line-2); padding: 10px 14px; font-size: .88rem; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost svg { width: 17px; height: 17px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-strong); color: #fff; }
.form-error { color: #c62828; font-size: .88rem; font-weight: 600; margin: 10px 0 0; min-height: 0; }
:root[data-theme="dark"] .form-error { color: #ff8a80; }
.calc-note { display: flex; gap: 8px; font-size: .78rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.calc-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- Results ---------- */
.result { margin-top: 22px; animation: rise .35s ease; }
.result[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-hero {
  border-radius: var(--radius); padding: 22px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #c2416b 0%, #b0386a 45%, #0f766e 130%);
  position: relative; overflow: hidden;
}
.result-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.result-hero .k { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .9; }
.result-hero .v { font-family: var(--font-display); font-size: clamp(1.7rem, 4.4vw, 2.3rem); font-weight: 700; line-height: 1.15; margin: 6px 0; color: #fff; }
.result-hero .s { font-size: .95rem; opacity: .95; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--surface-2); border-radius: 14px; padding: 14px; }
.stat .k { font-size: .76rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 1.12rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin-top: 3px; }
.stat .v small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.stat.teal { background: var(--teal-soft); }
.stat.rose { background: var(--rose-soft); }

.progress { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.bar { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); overflow: visible; display: flex; }
.bar .seg1, .bar .seg2, .bar .seg3 { height: 100%; opacity: .28; }
.bar .seg1 { background: var(--t1); width: 35%; border-radius: 999px 0 0 999px; }
.bar .seg2 { background: var(--t2); width: 35%; }
.bar .seg3 { background: var(--t3); width: 30%; border-radius: 0 999px 999px 0; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--t1), var(--t2) 55%, var(--t3)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar .dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--surface); border: 4px solid var(--rose); box-shadow: var(--shadow); transition: left .8s cubic-bezier(.2,.8,.2,1); }
.bar-labels { display: flex; font-size: .72rem; color: var(--muted); margin-top: 8px; font-weight: 600; }
.bar-labels span:nth-child(1) { width: 35%; }
.bar-labels span:nth-child(2) { width: 35%; }

.timeline { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 36px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line-2);
}
.timeline li.done::before { background: var(--teal); border-color: var(--teal); }
.timeline li.now::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 5px color-mix(in srgb, var(--rose) 22%, transparent); }
.timeline .t { font-weight: 700; font-size: .93rem; color: var(--ink); line-height: 1.4; }
.timeline .d { font-size: .82rem; color: var(--muted); }
.timeline li.done .t { color: var(--muted); }
.tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.tag-now { background: var(--rose-soft); color: var(--rose-strong); }
.tag-done { background: var(--teal-soft); color: var(--teal); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-strong); text-decoration: none; font-weight: 700; font-size: .95rem; }
.result-link:hover { color: var(--teal-strong); background: color-mix(in srgb, var(--teal-soft) 70%, var(--teal) 12%); }
.result-link svg { width: 20px; height: 20px; flex: none; }
.notice { border-radius: 14px; padding: 14px 16px; font-size: .9rem; line-height: 1.55; margin-top: 12px; }
.notice-warn { background: var(--amber-soft); color: var(--ink-2); border-left: 4px solid var(--amber); }
.notice-info { background: var(--teal-soft); color: var(--ink-2); border-left: 4px solid var(--teal); }

table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; margin: 12px 0 1.4em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 12px 0 1.5em; -webkit-overflow-scrolling: touch; }
.table-wrap table.data { margin: 0; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--surface-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.hl td { background: var(--rose-tint); font-weight: 700; }
table.data td.num { font-variant-numeric: tabular-nums; }

/* OB wheel & charts */
.wheel-wrap { display: grid; place-items: center; margin: 10px 0; }
.wheel-wrap svg { width: min(100%, 380px); }
.chart-wrap svg { width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--rose) 35%, var(--line)); color: var(--ink); }
.card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); }
.card .ico svg { width: 24px; height: 24px; }
.card:nth-child(3n+2) .ico { background: var(--teal-soft); color: var(--teal); }
.card:nth-child(3n+3) .ico { background: var(--violet-soft); color: var(--violet); }
.card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .88rem; color: var(--rose); }

.weeks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.week-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.05rem; transition: .15s;
}
.week-chip span { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.week-chip:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.week-chip.t1 { border-top: 3px solid var(--t1); }
.week-chip.t2 { border-top: 3px solid var(--t2); }
.week-chip.t3 { border-top: 3px solid var(--t3); }
.week-chip[aria-current="page"] { background: var(--rose); color: #fff; border-color: var(--rose); }
.week-chip[aria-current="page"] span { color: #fff; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--rose); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Article / prose ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 40px; }
.layout.single { grid-template-columns: minmax(0, var(--read)); justify-content: center; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.prose { max-width: var(--read); }
.prose h2 { padding-top: 6px; }
.prose h2:first-child { margin-top: 0; }
.prose ul li::marker { color: var(--rose); }
.prose ol li::marker { color: var(--rose); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--rose); background: var(--rose-tint); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.prose .formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: .92rem; margin: 0 0 1.2em; overflow-x: auto; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); margin: 1.6em 0; font-size: .96rem; line-height: 1.6; }
.callout svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout-tip { background: var(--teal-soft); color: var(--ink-2); }
.callout-tip svg { color: var(--teal); }
.callout-warn { background: var(--amber-soft); color: var(--ink-2); }
.callout-warn svg { color: var(--amber); }
.callout-rose { background: var(--rose-tint); color: var(--ink-2); border: 1px solid var(--rose-soft); }
.callout-rose svg { color: var(--rose); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 2em; }
.toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .94rem; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--rose); }

.sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 1000px) { .sidebar { position: static; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-box h3 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin: 0; border-bottom: 1px solid var(--line); }
.side-box li:last-child { border: 0; }
.side-box li a { display: block; padding: 9px 0; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink-2); }
.side-box li a:hover, .side-box li a[aria-current="page"] { color: var(--rose); }
.side-cta { background: linear-gradient(145deg, var(--rose-soft), var(--teal-soft)); border: 0; }
.side-cta p { font-size: .9rem; color: var(--ink-2); margin: 0 0 12px; }
.side-cta h3 { color: var(--ink); font-size: 1rem; text-transform: none; letter-spacing: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 1em 0 2em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; transition: border-color .15s; }
.faq details[open] { border-color: color-mix(in srgb, var(--rose) 35%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 30px 16px 0; position: relative; font-size: 1rem; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.4rem; font-weight: 500; color: var(--rose); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); font-size: .96rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Week page specifics */
.size-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--rose-tint), var(--surface-3)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin: 0 0 1.8em; }
.size-emoji { width: 104px; height: 104px; border-radius: 28px; background: var(--surface); display: grid; place-items: center; font-size: 3.4rem; box-shadow: var(--shadow); }
.size-card .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.size-card .v { font-size: 1.35rem; font-weight: 800; margin: 2px 0 10px; line-height: 1.3; }
.size-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.pill b { color: var(--rose); }
@media (max-width: 560px) { .size-card { grid-template-columns: 1fr; text-align: center; } .size-emoji { margin: 0 auto; } .size-facts { justify-content: center; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.4em 0; }
.pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--surface); }
.pager a:hover { border-color: var(--rose); }
.pager span { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pager strong { color: var(--ink); }
.pager .next { text-align: right; grid-column: 2; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.redflags li::marker { color: #c62828; }

/* Disclaimer strip */
.disclaimer-box { display: flex; gap: 14px; background: var(--amber-soft); border-radius: var(--radius); padding: 18px 20px; font-size: .9rem; line-height: 1.6; color: var(--ink-2); margin: 2em 0; }
.disclaimer-box svg { width: 24px; height: 24px; flex: none; color: var(--amber); margin-top: 1px; }
.disclaimer-box p { margin: 0; }
.sources { font-size: .88rem; color: var(--muted); }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: 6px; }
.reviewed { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .88rem; color: var(--muted); margin: 2em 0; }
.reviewed svg { width: 28px; height: 28px; color: var(--teal); flex: none; }
.reviewed strong { color: var(--ink); }

/* Contact */
.contact-card { text-align: center; padding: 40px 24px; background: linear-gradient(145deg, var(--rose-tint), var(--surface-3)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-card .email { font-size: clamp(1.1rem, 3.4vw, 1.6rem); font-weight: 800; color: var(--ink); word-break: break-all; display: inline-block; margin: 8px 0 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1620; color: #cfc6d4; margin-top: 40px; padding: 56px 0 28px; font-size: .92rem; }
:root[data-theme="dark"] .site-footer { background: #0f0d13; }
.site-footer a { color: #e9e1ec; text-decoration: none; }
.site-footer a:hover { color: #f59bba; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #a79fae; }
.footer-brand p { margin: 14px 0 0; color: #a79fae; line-height: 1.65; }
.footer-legal { border-top: 1px solid #2f2936; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: #948b9b; font-size: .84rem; }
.footer-legal .fine { max-width: 720px; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
  background: var(--surface); color: var(--rose); box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--rose); color: #fff; }
.to-top svg.arrow { width: 22px; height: 22px; position: relative; z-index: 1; }
.to-top svg.ring { position: absolute; inset: 0; width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 3; }
.to-top .ring .track { stroke: var(--line); }
.to-top .ring .prog { stroke: var(--rose); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top:hover .ring .prog { stroke: #fff; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300; background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .25s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Ad slots (activated later via config) */
.ad-slot { margin: 28px auto; text-align: center; min-height: 0; }
.ad-slot:empty { display: none; }

/* 404 */
.nf { text-align: center; padding: 80px 0 40px; }
.nf .big { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--rose); margin: 0; }

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tc-1 { color: var(--t1); } .tc-2 { color: var(--t2); } .tc-3 { color: var(--t3); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-strong); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .calc { padding: 18px; border-radius: 20px; }
  .row { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .tab { font-size: .8rem; padding: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .v { font-size: 1rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .wrap { padding: 0 16px; }
}

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

/* Print: only the result card when printing from the calculator */
@media print {
  .site-header, .site-footer, .to-top, .toast, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
  body.print-result * { visibility: hidden; }
  body.print-result .result, body.print-result .result * { visibility: visible; }
  body.print-result .result { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
  body.print-result .actions, body.print-result .result-link { display: none !important; }
  .result-hero, .stat, .bar, .timeline li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Mobile: bring the calculator up */
@media (max-width: 960px) {
  .hero .hero-points { display: none; }
  .hero .lead { font-size: 1.02rem; margin-bottom: 0; }
  .hero h1 { margin-bottom: .35em; }
  .eyebrow { font-size: .7rem; margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .brand small { display: none; }
  .brand { font-size: 1rem; }
}
.hero-grid > *, .layout > *, .grid > * { min-width: 0; }
.calc, .tabs { max-width: 100%; }
/* Keep brand buttons high-contrast in both themes */
.btn-primary { background: linear-gradient(135deg, #c2416b, #a8325a); }
:root[data-theme="dark"] .btn-teal { background: #0f766e; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-teal { background: #0f766e; color: #fff; } }

/* ---------- Sub-footer: More on this site ---------- */
.subfooter { border-top: 1px solid #2f2936; margin-top: 40px; padding-top: 36px; text-align: center; }
.subfooter h3 { color: #a79fae; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 18px; }
.subfooter h3 + .sf-links { margin-bottom: 34px; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; max-width: 1100px; margin: 0 auto; }
.sf-links a { color: #d9d0dd; font-size: .95rem; white-space: nowrap; }
.sf-links a:hover { color: #f59bba; }
@media (max-width: 600px) { .sf-links { gap: 12px 20px; } .sf-links a { font-size: .9rem; } }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; }
.post-emoji { width: 64px; height: 64px; font-size: 2rem; border-radius: 18px; }
.post-tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-meta { margin-top: auto; padding-top: 14px; }

/* ---------- Homepage: numbers strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.num-card b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.1; color: var(--rose); }
.num-card:nth-child(2) b { color: var(--teal); } .num-card:nth-child(3) b { color: var(--amber); } .num-card:nth-child(4) b { color: var(--violet); }
.num-card span { display: block; font-weight: 700; margin-top: 6px; color: var(--ink); }
.num-card p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .numbers { grid-template-columns: 1fr 1fr; } }

/* ---------- Homepage: roadmap ---------- */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: rm; }
.rm-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px; border-top: 4px solid var(--t1); }
.rm-item.t2 { border-top-color: var(--t2); } .rm-item.t3 { border-top-color: var(--t3); }
.rm-week { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rm-item h3 { font-size: .98rem; margin: 6px 0 6px; line-height: 1.35; }
.rm-item p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Homepage: size strip ---------- */
.size-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.size-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .15s; }
.size-tile:hover { border-color: var(--rose); transform: translateY(-2px); color: var(--ink); }
.size-tile .e { font-size: 2.3rem; line-height: 1.2; }
.size-tile .w { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
.size-tile .n { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.size-tile .m { font-size: .78rem; color: var(--muted); }

/* ---------- Homepage: trimester columns ---------- */
.tri-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tri-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.tri-col .badge { margin-bottom: 10px; }
.tri-col h3 { margin: 4px 0 12px; font-size: 1.15rem; }
.tri-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.tri-col p { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.6; }
.tri-col ul { font-size: .9rem; margin: 0; }
.tri-col li { margin-bottom: 5px; }
.tri-col.t1 { border-top: 5px solid var(--t1); } .tri-col.t2 { border-top: 5px solid var(--t2); } .tri-col.t3 { border-top: 5px solid var(--t3); }
@media (max-width: 960px) { .tri-cols { grid-template-columns: 1fr; } }

/* ---------- Homepage: two-up info ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-panel { border-radius: var(--radius-lg); padding: 26px; }
.info-panel h2 { margin-top: 0; font-size: 1.35rem; }
.info-panel.warn { background: var(--amber-soft); }
.info-panel.india { background: var(--teal-soft); }
.info-panel ul { margin-bottom: 0; }
@media (max-width: 860px) { .two-up { grid-template-columns: 1fr; } }

/* ---------- Glossary ---------- */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; }
.glossary div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.glossary dt { font-weight: 800; color: var(--rose-strong); margin-bottom: 4px; }
.glossary dd { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }

/* ---------- Directory ---------- */
.dl-city { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(145deg, var(--rose-tint), var(--surface-3)); }
.dl-city-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.dl-city-cats { font-size: .82rem; color: var(--teal); font-weight: 700; margin-top: 8px; }
.dl-list { display: grid; gap: 14px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.dl-card.is-featured { border: 2px solid var(--rose); box-shadow: var(--shadow); }
.dl-card h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.dl-badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 4px; }
.dl-featured { background: var(--rose); color: #fff; }
.dl-verified { background: var(--teal-soft); color: var(--teal); }
.dl-area { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.dl-area svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.dl-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dl-meta { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.dl-meta li { margin: 0; }
.dl-card .actions { margin-top: 14px; }
.dl-card .actions .btn { padding: 9px 16px; font-size: .88rem; }
.dl-empty { text-align: center; padding: 36px 24px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.dl-empty-ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); }
.dl-empty-ico svg { width: 28px; height: 28px; }
.dl-empty h3 { margin: 0 0 8px; }
.dl-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 16px; }
.dl-public { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dl-public li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.dl-public span { font-size: .85rem; color: var(--muted); }
.dl-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 40px 0 10px; padding: 24px 26px;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--rose-soft), var(--teal-soft)); }
.dl-cta h3 { margin: 0 0 4px; }
.dl-cta p { margin: 0; color: var(--ink-2); max-width: 620px; }

/* ---------- Footer: emergency strip ---------- */
.footer-sos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 36px; padding: 16px 20px;
  border-radius: 16px; background: #2a1c25; border: 1px solid #4a2a3a; text-align: center; }
.footer-sos .sos-label { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; }
.footer-sos .sos-label svg { width: 20px; height: 20px; color: #f59bba; }
.footer-sos a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #3a2230; color: #f3dbe5; font-size: .88rem; }
.footer-sos a b { color: #fff; font-size: 1rem; }
.footer-sos a:hover { background: #c2416b; color: #fff; }
.footer-sos .sos-note { flex-basis: 100%; font-size: .82rem; color: #a79fae; }
.footer-legal .fine a { color: #cfc6d4; text-decoration: underline; }

/* ---------- Footer: compact on mobile ---------- */
@media (max-width: 640px) {
  .footer-grid > div:not(.footer-brand) { display: none; }
  .subfooter { margin-top: 28px; padding-top: 28px; }
  .subfooter .sf-links:nth-of-type(2), .subfooter .sf-links:nth-of-type(3) {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .subfooter .sf-links:nth-of-type(2) a, .subfooter .sf-links:nth-of-type(3) a {
    background: #241f2a; border: 1px solid #332c3b; border-radius: 8px; padding: 7px 0; font-size: .84rem; }
}
