/* Baby Week Atlas: set like a printed atlas. Each week is a plate on a flat colour field.
   Flat colour, hairline rules, type doing the work. No cards, shadows or gradients. */
:root {
  --paper: #FAFAF5;
  --ink: #16241F;
  --ink-2: #45534D;
  --ink-3: #68756E;
  --line: #D6DAD0;
  --plate: #D8E4D7;
  --plate-line: #B3C4B3;
  --numeral: #B4C9B5;
  --accent: #C23B1B;
  --myth: #C03A1C;
  --partly: #875A00;
  --true: #1C6A4B;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1412; --ink: #E9EDE6; --ink-2: #B5BFB8; --ink-3: #8D9891; --line: #2A332E;
    --plate: #1A2622; --plate-line: #33443C; --numeral: #2E443B;
    --accent: #FF7F5C; --myth: #FF8A6B; --partly: #E0B255; --true: #6FCB9F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1412; --ink: #E9EDE6; --ink-2: #B5BFB8; --ink-3: #8D9891; --line: #2A332E;
  --plate: #1A2622; --plate-line: #33443C; --numeral: #2E443B;
  --accent: #FF7F5C; --myth: #FF8A6B; --partly: #E0B255; --true: #6FCB9F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--serif); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }
.muted { color: var(--ink-3); }
.fine { font: 400 13.5px/1.45 var(--sans); color: var(--ink-3); margin: 12px 0 0; }
svg [hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; font-family: var(--sans); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
}

/* ——— header ——— */
.top { background: var(--paper); border-bottom: 1px solid var(--ink); font-family: var(--sans); }
.top__in { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 24px/1 var(--sans); letter-spacing: -.028em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 32px; height: 32px; flex: none; color: var(--accent); }
.nav { display: flex; gap: 24px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current] { border-bottom-color: var(--accent); }
.mine { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) {
  .top__in { flex-wrap: wrap; gap: 8px 16px; padding-bottom: 8px; }
  .nav { order: 3; width: calc(100% + 36px); margin: 0 -18px; padding: 2px 18px 2px; gap: 18px; }
  .mine { margin-left: auto; }
}

/* ——— buttons, links, filters ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 2px; font: 600 15.5px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--ink); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 8px; font-family: var(--sans); }
.chip { font: 500 15.5px var(--sans); color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 4px 0; cursor: pointer; text-decoration: none; }
.chip:hover { color: var(--accent); }
.chip.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.link { font: 600 15.5px var(--sans); text-decoration: underline; }

/* ——— the plate ——— */
.hero { background: var(--plate); padding: 22px 0 14px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: start; }
.stage { position: relative; height: clamp(420px, 72vh, 760px); margin: 0; container-type: size; }
.stage__num { position: absolute; left: 0; top: 0; margin: 0; color: var(--numeral); font-family: var(--sans); line-height: 1; user-select: none; }
.stage__num b { display: block; font-size: min(30cqw, 40cqh); font-weight: 700; letter-spacing: -.05em; line-height: .8; margin-left: -.05em; }
.stage__visual { position: absolute; inset: 0; }
.stage__image { width: 100%; height: 100%; object-fit: contain; object-position: 100% 50%; opacity: 1; transition: opacity .14s ease; }
.stage__image.is-changing { opacity: .6; }
.stage__note { position: absolute; left: 0; bottom: 0; margin: 0; max-width: 11.5em; font: 400 13.5px/1.35 var(--sans); color: var(--ink-2); }

/* Home only: the page's H1 sits small beside the womb so the image comes first. */
.hero__site-title { margin: 0; font: 600 17px/1.25 var(--sans); letter-spacing: -.005em; color: var(--ink); }
.home-intro { margin: 0 0 40px; }
@media (min-width: 901px) {
  [data-home] .hero__grid { grid-template-rows: auto 1fr; }
  [data-home] .hero__site-title { grid-column: 2; grid-row: 1; }
  [data-home] .stage { grid-column: 1; grid-row: 1 / span 2; }
  [data-home] .hero__info { grid-column: 2; grid-row: 2; }
}

.hero__kicker { font: 500 15px var(--sans); color: var(--ink-2); margin: 0 0 8px; }
.hero__title { font-size: clamp(29px, 2.9vw, 40px); line-height: 1.06; margin-bottom: 16px; }
.hero__wk { display: block; color: var(--ink-2); }
.hero__hl { display: block; }

.spec { margin: 0 0 8px; border-top: 1px solid var(--ink); font-family: var(--sans); }
.spec > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--plate-line); }
.spec dt { font-size: 15px; color: var(--ink-2); }
.spec dd { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.spec small { display: inline-block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.spec__size { align-items: center !important; min-height: 64px; }
.spec__size dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 27px; }
.spec__size img { flex: none; width: 56px; height: 56px; object-fit: contain; }

.hero__nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--sans); }
.pager { display: inline-flex; align-items: center; gap: 4px; min-height: 46px; font-size: 15.5px; font-weight: 600; text-decoration: underline; }
.pager svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
@media (max-width: 560px) {
  .spec small { display: block; margin-left: 0; margin-top: 1px; }
  .hero__nav .btn { order: -1; width: 100%; }
}

@media (max-width: 900px) {
  .hero { padding-top: 14px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .stage { height: min(112vw, 680px); margin-bottom: 48px; }
  .stage__image { object-fit: cover; object-position: 50% 50%; }
  .stage__num b { font-size: min(18cqw, 24cqh); }
  .stage__note { bottom: auto; top: 100%; margin-top: 6px; max-width: none; }
  .hero__grid .scrub { order: 2; }
  .hero__info { order: 3; padding-top: 10px; }
}

/* ——— scrubber: a tape measure across the plate ——— */
.scrub { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; font-family: var(--sans); }
.scrub__play { flex: none; width: 46px; height: 46px; border-radius: 2px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.scrub__play:hover { background: var(--ink); color: var(--plate); }
.scrub__play svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.scrub__track { position: relative; flex: 1; min-width: 0; height: 88px; }
.scrub__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 46px; background: transparent; margin: 0; position: relative; z-index: 2; cursor: ew-resize; }
.scrub__range::-webkit-slider-runnable-track { height: 46px; background: transparent; }
.scrub__range::-moz-range-track { height: 46px; background: transparent; }
.scrub__range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 46px; border-radius: 2px; background: var(--accent); border: 0; }
.scrub__range::-moz-range-thumb { width: 14px; height: 46px; border-radius: 2px; background: var(--accent); border: 0; }
.scrub__ticks { position: absolute; top: 0; left: 6.5px; right: 6.5px; height: 68px; display: flex; justify-content: space-between; z-index: 1; }
.tick { position: relative; flex: 0 0 1px; width: 1px; color: var(--ink); text-decoration: none; }
.tick::before { content: ''; position: absolute; left: 0; top: 16px; width: 1px; height: 14px; background: currentColor; opacity: .45; }
.tick--label::before { top: 6px; height: 34px; opacity: .9; }
.tick span { display: none; position: absolute; top: 46px; left: 50%; transform: translateX(-50%); padding: 1px 5px; font-size: 13px; }
.tick--label span { display: block; }
.tick.is-near span { display: none; }
.tick.is-on { color: var(--accent); }
.tick.is-on span { display: block; font-weight: 700; }
.tick.is-mine::after { content: ''; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; background: var(--ink); z-index: 3; }
.scrub__tri { position: absolute; top: 68px; left: 6.5px; right: 6.5px; height: 20px; font-size: 12.5px; color: var(--ink-2); }
.scrub__tri span { position: absolute; left: calc(var(--a) / 39 * 100%); width: calc((var(--b) - var(--a)) / 39 * 100%); padding: 2px 0 0 0; border-top: 1px solid var(--plate-line); white-space: nowrap; overflow: hidden; }
@media (max-width: 640px) {
  .scrub { gap: 10px; }
}

/* ——— sections ——— */
.section { padding-top: 72px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 26px; }
.h1 { font-size: clamp(38px, 5.8vw, 74px); line-height: 1; letter-spacing: -.03em; }
.h2 { font-size: clamp(25px, 2.8vw, 36px); border-top: 2px solid var(--ink); padding-top: 12px; margin: 64px 0 24px; }
.section > .h2:first-child { margin-top: 0; }
.section__head .h2 { margin: 0; border: 0; padding: 0; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4; color: var(--ink-2); max-width: 44em; }
.page-head { padding: 22px 0 28px; }
.page-head .h1 { margin-bottom: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 400 14px var(--sans); color: var(--ink-3); padding: 14px 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.label { display: block; font: 600 15px var(--sans); margin: 0 0 8px; }

/* ——— longer guides on milestone weeks ——— */
.guide { grid-column: 1 / -1; display: grid; gap: 40px; }
.guide__s { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 44px; border-top: 2px solid var(--ink); padding-top: 11px; }
.guide__h { grid-column: span 4; font-size: 24px; }
.guide__b { grid-column: span 8; max-width: 40em; }
.guide__b p:last-child { margin-bottom: 0; }
/* ——— topic guides ——— */
.h1--topic { font-size: clamp(36px, 4.8vw, 62px); max-width: 16em; }
.page-head .byline { padding-top: 6px; }
.sheet--topic { padding-top: 12px; }
.guide__b .list { margin: 2px 0 14px; }
.table-wrap--flat { margin: 4px 0 4px; }
.table-wrap--flat .size-table td, .table-wrap--flat .size-table th { white-space: normal; }
.tri-block__head h3 a { text-decoration: none; }
.tri-block__head h3 a:hover { text-decoration: underline; }
.section__head--gap { margin-top: 64px; }

/* ——— references ——— */
.block--refs { grid-column: 1 / -1; }
.refs { margin: 0; padding-left: 1.5em; columns: 2; column-gap: 44px; font: 400 14.5px/1.4 var(--sans); color: var(--ink-2); }
.refs li { break-inside: avoid; padding: 0 0 7px; }
.refs a { color: var(--ink-2); }
.refs a:hover { color: var(--accent); }
.myth-refs { margin: 26px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.myth-refs .refs { columns: 1; }
.block--refs .fine a { color: var(--ink-2); }
@media (max-width: 760px) { .refs { columns: 1; } }
@media (max-width: 900px) {
  .guide { gap: 32px; }
  .guide__s { display: block; }
  .guide__h { margin-bottom: 10px; }
}

/* ——— byline ——— */
.byline { font: 400 14.5px/1.45 var(--sans); color: var(--ink-2); padding-top: 14px; margin: 0; }
.byline a { color: var(--ink); }

/* ——— week page body ——— */
.answer { grid-column: 1 / -1; margin: 0; max-width: 38em; font-size: clamp(21px, 2vw, 25px); line-height: 1.36; }
.block--care { grid-column: 1 / -1; }
.block--care .block__h { border-top-color: var(--accent); }
.care__lead { font-size: 18px; margin: 0 0 6px; }
.care, .more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.care li:first-child { padding-top: 11px; border-top: 1px solid var(--line); }
.block--more { grid-column: 1 / -1; }
.more li:first-child { padding-top: 11px; border-top: 1px solid var(--line); }
.more a { font: 600 17px/1.25 var(--sans); }
.more .verdict { display: inline; font-size: 14px; margin: 0 0 0 6px; white-space: nowrap; }
.test strong a { text-decoration: none; }
.test strong a:hover { text-decoration: underline; }
@media (max-width: 760px) { .care, .more { grid-template-columns: minmax(0, 1fr); } }
.myth-page .byline { padding: 0 0 18px; }
.sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 52px 44px; padding-top: 28px; }
.block { min-width: 0; }
.block__h { font-size: 24px; border-top: 2px solid var(--ink); padding-top: 11px; margin-bottom: 12px; }
.block--baby, .block--mom { grid-column: span 6; }
.note { grid-column: 1 / -1; margin: 0; padding: 30px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 44px; }
.note__k { grid-column: span 3; margin: 0; font: 600 15px/1.3 var(--sans); padding-top: 8px; }
.note__t { grid-column: span 9; margin: 0; font: 600 clamp(24px, 2.9vw, 37px)/1.18 var(--sans); letter-spacing: -.02em; }
.block--tests { grid-column: span 7; }
.figs { grid-column: span 5; display: grid; gap: 44px; align-content: start; min-width: 0; }
.block--tip, .block--myth { grid-column: span 6; }
.block--faq { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 44px; border-top: 2px solid var(--ink); padding-top: 11px; }
.block--faq .block__h { grid-column: span 4; border: 0; padding: 0; }
.block--faq .faqs { grid-column: span 8; }
.block__q { font-size: 21px; margin: 0 0 8px; letter-spacing: -.015em; }
@media (max-width: 900px) {
  .sheet { gap: 44px 28px; padding-top: 22px; }
  .block--baby, .block--mom, .block--tests, .figs, .block--tip, .block--myth { grid-column: 1 / -1; }
  .note { display: block; padding: 22px 0; }
  .note__k { padding: 0 0 8px; }
  .block--faq { display: block; }
  .block--faq .block__h { margin-bottom: 8px; }
}

.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 11px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 2px; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 14px 0 0; font-family: var(--sans); border-top: 1px solid var(--ink); }
.minis div { padding: 10px 0; }
.minis dt { font-size: 14px; color: var(--ink-2); }
.minis dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
@media (max-width: 460px) { .minis { grid-template-columns: 1fr; } }

/* ——— tests ——— */
.tests, .test-list { list-style: none; margin: 0 0 14px; padding: 0; }
.test { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.tests .test:first-child { border-top: 0; padding-top: 2px; }
.test__when { font: 600 15.5px/1.3 var(--sans); }
.test__when--now { color: var(--accent); }
.test__dates { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.test strong, .test h2 { display: block; font: 700 18px/1.2 var(--sans); letter-spacing: -.01em; margin: 0 0 2px; }
.test__kind { display: block; font: 400 14px var(--sans); color: var(--ink-2); margin-bottom: 6px; }
.test p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.test__sex { margin-top: 6px !important; }
.test__sex b { font-weight: 600; color: var(--ink); }
.test-list { margin-top: 44px; }
.test-list .test:target { background: var(--plate); box-shadow: -10px 0 0 var(--plate), 10px 0 0 var(--plate); }
@media (max-width: 560px) { .test { grid-template-columns: minmax(0, 1fr); } }

/* ——— verdicts and myths ——— */
.verdict { display: block; font: 700 15px var(--sans); margin-bottom: 6px; }
.verdict--myth { color: var(--myth); }
.verdict--partly { color: var(--partly); }
.verdict--true { color: var(--true); }
.myth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; border-bottom: 1px solid var(--line); }
.myth { display: block; padding: 18px 0 20px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.myth:hover { color: var(--ink); }
.myth:hover h3 { color: var(--accent); }
.myth h3 { font-size: 22px; line-height: 1.14; letter-spacing: -.015em; margin-bottom: 7px; }
.myth p { color: var(--ink-2); font-size: 16.5px; line-height: 1.45; margin: 0; }
.myth[hidden] { display: none; }
[data-myths] { margin-top: 22px; }
@media (max-width: 760px) { .myth-grid { grid-template-columns: minmax(0, 1fr); } }
.myth-page { padding: 8px 0 12px; }
.myth-page .h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin-bottom: 24px; }
.myth-page__verdict { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0 16px; margin-bottom: 28px; }
.myth-page__verdict .verdict { font-size: 30px; letter-spacing: -.02em; margin-bottom: 4px; }
.myth-page__verdict .lead { margin: 0; color: var(--ink); }
.evidence { border-top: 1px solid var(--ink); padding: 14px 0 0; margin: 30px 0; }
.evidence p:last-child { margin: 0; }
.eyebrow { font: 500 15px var(--sans); color: var(--ink-2); margin: 10px 0 12px; }

/* ——— faq ——— */
.faq { border-top: 1px solid var(--line); }
.faq:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 13px 34px 13px 0; font: 600 18px/1.3 var(--sans); letter-spacing: -.005em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 8px; font: 400 25px var(--sans); }
.faq[open] summary::after { content: '\2212'; }
.faq p { color: var(--ink-2); padding-bottom: 14px; margin: 0; max-width: 44em; }
.faq-list { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.h2 + .faq-list { border-top: 0; }

/* ——— hand comparison ——— */
.hc { margin: 0; }
.hc svg { display: block; width: 100%; height: clamp(220px, 30vw, 330px); }
.hc__micro { fill: var(--accent); }
.hc__ping { fill: none; stroke: var(--accent); stroke-width: .08; animation: ping 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.hc__floor { stroke: var(--ink); stroke-width: .05; }
.hc figcaption { font: 400 14px/1.4 var(--sans); color: var(--ink-2); margin-top: 8px; }
.hc figcaption span + span::before { content: ', '; }
.hc figcaption small { display: block; font-size: 13.5px; color: var(--ink-3); }

/* ——— growth chart ——— */
.gc { margin: 0; position: relative; }
.gc svg { width: 100%; height: auto; overflow: visible; }
.gc__grid line { stroke: var(--line); stroke-width: 1; }
.gc text { fill: var(--ink-2); font: 10px var(--sans); }
.gc__area { display: none; }
.gc__line { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.gc__now { stroke: var(--accent); stroke-width: 1; }
.gc__dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.gc__hover line { stroke: var(--ink-3); stroke-width: 1; }
.gc__hover circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.75; }
.gc__hit { cursor: crosshair; }
.gc__tip { position: absolute; top: 0; transform: translate(-50%, -125%); background: var(--ink); color: var(--paper); font: 500 13px var(--sans); padding: 4px 8px; pointer-events: none; white-space: nowrap; }
.gc figcaption { font: 400 14px/1.4 var(--sans); color: var(--ink-2); margin-top: 8px; }

/* ——— contact sheet of all weeks ——— */
.tri-block { margin-bottom: 40px; }
.tri-block__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 44px; align-items: baseline; margin-bottom: 14px; }
.tri-block__head h3 { grid-column: span 4; font-size: 21px; letter-spacing: -.015em; }
.tri-block__head h3 span { font-weight: 400; color: var(--ink-2); margin-left: 8px; font-size: 16px; letter-spacing: 0; }
.tri-block__head p { grid-column: span 8; margin: 0; font-size: 16.5px; line-height: 1.4; color: var(--ink-2); }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.weeks li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.wk { display: block; height: 100%; padding: 9px 10px 11px; text-decoration: none; color: var(--ink); font-family: var(--sans); }
.wk:hover { background: var(--plate); color: var(--ink); }
.wk.is-on { background: var(--plate); box-shadow: inset 0 3px 0 var(--accent); }
.wk img { width: 100%; height: auto; aspect-ratio: 1; margin: 2px 0 6px; }
.wk__n { display: block; font-weight: 700; font-size: 15px; }
.wk__f { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.25; }
@media (max-width: 760px) {
  .tri-block__head { display: block; }
  .tri-block__head p { margin-top: 4px; }
  .weeks { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ——— size table ——— */
.table-wrap { overflow-x: auto; margin: 56px 0 0; }
.size-table { width: 100%; border-collapse: collapse; font: 400 15.5px var(--sans); font-variant-numeric: tabular-nums; }
.size-table caption { text-align: left; font: 700 clamp(25px, 2.8vw, 36px)/1.08 var(--sans); letter-spacing: -.02em; border-top: 2px solid var(--ink); padding: 12px 0 18px; }
.size-table th, .size-table td { text-align: left; padding: 8px 20px 8px 0; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 400; }
.size-table tbody th { font-weight: 600; }
.size-table thead th { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--ink); }

/* ——— scan timeline ——— */
.gantt { position: relative; font-family: var(--sans); --name: 290px; --kind: 92px; --col: calc(var(--name) + var(--kind) + 24px); }
.calc + .gantt { margin-top: 56px; }
.gantt ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.gantt li { border-top: 1px solid var(--line); }
.gantt__row { display: grid; grid-template-columns: var(--name) var(--kind) 1fr; align-items: center; gap: 12px; min-height: 34px; text-decoration: none; color: var(--ink); }
.gantt__row:hover { background: var(--plate); color: var(--ink); }
.gantt__name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt__sex { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }
.gantt__kind { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.gantt__lane { position: relative; height: 34px; background: linear-gradient(var(--line), var(--line)) 32.5% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 67.5% 0 / 1px 100% no-repeat; }
.gantt__bar { position: absolute; top: 12px; height: 10px; background: var(--ink); }
.gantt__axis { position: relative; margin-left: var(--col); height: 22px; }
.gantt__axis span { position: absolute; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); }
.gantt__axis span:first-child { transform: none; }
.gantt__tri { position: relative; margin-left: var(--col); height: 24px; }
.gantt__tri i { position: absolute; top: 0; font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.gantt__now { position: absolute; top: 0; bottom: 34px; width: 2px; background: var(--accent); pointer-events: none; }
.gantt__now span { position: absolute; top: 0; left: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.gantt__legend { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.gantt__legend .gantt__sex { margin: 0 6px 0 0; }
@media (max-width: 900px) { .gantt { --name: 230px; --kind: 0px; --col: calc(var(--name) + 12px); } .gantt__row { grid-template-columns: var(--name) 1fr; } .gantt__kind { display: none; } }
@media (max-width: 640px) {
  .gantt { --name: 0px; --col: 0px; }
  .gantt__row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 7px; }
  .gantt__name { white-space: normal; }
  .gantt__lane { height: 22px; }
  .gantt__bar { top: 6px; }
  .gantt__now { display: none; }
}

/* ——— ways to find out the sex ——— */
.sex-line { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.sex-line__i { display: grid; grid-template-columns: 7em minmax(0, 1fr) 8em; gap: 24px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.sex-line__i:first-child { border-top: 2px solid var(--ink); }
.sex-line__i h2 { font-size: 20px; letter-spacing: -.015em; line-height: 1.18; margin-bottom: 5px; }
.sex-line__i p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.sex-line__wk { font: 700 20px/1.18 var(--sans); letter-spacing: -.015em; }
.sex-line__acc { font: 700 16.5px/1.2 var(--sans); text-align: right; }
.sex-line__i--reliable .sex-line__acc { color: var(--true); }
.sex-line__i--guess .sex-line__acc { color: var(--partly); }
.sex-line__i--myth .sex-line__acc { color: var(--myth); }
@media (max-width: 640px) { .sex-line__i { grid-template-columns: minmax(0, 1fr); gap: 4px; } .sex-line__acc { text-align: left; } }

/* ——— calculator ——— */
.calc { font-family: var(--sans); border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 8px; }
.calc__h { font-size: clamp(25px, 2.8vw, 36px); margin-bottom: 18px; }
.calc__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; align-items: end; }
.calc label { display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.calc select, .calc input { font: 400 17px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; padding: 9px 11px; height: 46px; width: 100%; min-width: 0; }
/* Without JS the native select stays, with its arrow redrawn so it has proper right padding. */
.calc select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237F8A84' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 15px center; background-size: 12px 8px; background-repeat: no-repeat; }
.calc select[hidden] { display: none; }
.pick { position: relative; width: 100%; min-width: 0; }
.pick__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 46px; padding: 9px 14px 9px 11px; font: 400 17px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; text-align: left; cursor: pointer; }
.pick__btn:hover, .pick__btn[aria-expanded="true"] { border-color: var(--accent); }
.pick__val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__arrow { flex: none; transition: transform .15s ease; }
.pick__btn[aria-expanded="true"] .pick__arrow { transform: rotate(180deg); }
.pick__list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; }
.pick__list[hidden] { display: none; }
.pick--up .pick__list { top: auto; bottom: calc(100% + 4px); }
.pick__opt { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin: 0; padding: 8px 14px 8px 11px; font: 400 17px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.pick__opt + .pick__opt { border-top: 1px solid var(--line); }
.pick__opt.is-active { background: var(--plate); }
.pick__opt[aria-selected="true"] { font-weight: 600; }
.pick__check { flex: none; color: var(--accent); visibility: hidden; }
.pick__opt[aria-selected="true"] .pick__check { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .pick__arrow { transition: none; } }
.dp { position: relative; width: 100%; min-width: 0; }
.calc .dp__input { padding-right: 46px; }
.dp__input::placeholder { color: var(--ink-3); opacity: 1; }
.calc .dp__input[aria-invalid="true"] { border-color: var(--myth); }
.dp__toggle { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; color: var(--ink); background: none; border: 0; border-radius: 2px; cursor: pointer; }
.dp__toggle:hover, .dp__toggle[aria-expanded="true"] { color: var(--accent); }
.dp__pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: min(320px, calc(100vw - 32px)); padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; }
.dp__pop, .pick__list { scroll-margin: 12px; }
.dp__pop[hidden] { display: none; }
.dp--up .dp__pop { top: auto; bottom: calc(100% + 4px); }
.dp--right .dp__pop { left: auto; right: 0; }
.dp__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.dp__title { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px; font: 600 16px var(--sans); color: var(--ink); background: none; border: 0; border-radius: 2px; cursor: pointer; }
.dp__title:hover { color: var(--accent); }
.dp__caret { flex: none; transition: transform .15s ease; }
.dp__title[aria-expanded="true"] .dp__caret { transform: rotate(180deg); }
.dp__navs { display: flex; flex: none; gap: 2px; }
.dp__nav { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: none; border: 0; border-radius: 2px; cursor: pointer; }
.dp__nav:hover { background: var(--plate); }
.dp__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp__grid th { padding: 4px 0 6px; font: 500 13px var(--sans); color: var(--ink-3); text-align: center; }
.dp__grid td { padding: 0; text-align: center; }
.dp__day { display: block; width: 100%; height: 40px; padding: 0; font: 400 16px var(--sans); color: var(--ink); background: none; border: 0; border-radius: 2px; cursor: pointer; }
.dp__day:hover { background: var(--plate); }
.dp__day.is-out { color: var(--ink-3); }
.dp__day[aria-current="date"] { font-weight: 700; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dp__day.is-sel, .dp__day.is-sel:hover { font-weight: 600; color: var(--paper); background: var(--ink); box-shadow: none; }
.dp__day:focus-visible, .dp__month:focus-visible { outline-offset: -2px; }
.dp__day.is-sel:focus-visible, .dp__month.is-sel:focus-visible { outline-color: var(--accent); outline-offset: 1px; }
.dp__months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 7px 0; }
.dp__month { height: 63px; padding: 0; font: 400 16px var(--sans); color: var(--ink); background: none; border: 0; border-radius: 2px; cursor: pointer; }
.dp__month:hover { background: var(--plate); }
.dp__month.is-sel, .dp__month.is-sel:hover { font-weight: 600; color: var(--paper); background: var(--ink); }
.dp__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.dp__link { min-height: 40px; padding: 0 6px; font: 500 15px var(--sans); color: var(--ink); background: none; border: 0; border-radius: 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.dp__link:hover { color: var(--accent); }
@media (max-width: 640px) { .dp__pop { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dp__caret { transition: none; } }
.calc .btn { width: 100%; }
.calc__cycle[hidden] { display: none !important; }
.calc__out { margin-top: 24px; border-top: 1px solid var(--ink); padding-top: 18px; }
.calc__out[hidden] { display: none; }
.calc__big { font: 700 clamp(34px, 4.6vw, 56px)/1 var(--sans); letter-spacing: -.03em; margin: 0 0 8px; }
.calc__big span { color: var(--accent); }
.calc__out > .muted { font: 400 16.5px/1.4 var(--serif); color: var(--ink-2); }
.calc__dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 24px; margin: 14px 0 18px; }
.calc__dl div { border-top: 1px solid var(--line); padding: 9px 0; }
.calc__dl dt { font-size: 14px; color: var(--ink-2); }
.calc__dl dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.calc__err { color: var(--myth); font-weight: 600; margin: 0; }

/* ——— prose ——— */
.prose p, .prose li { color: var(--ink-2); }
.prose .h1 { margin: 20px 0 22px; }

/* ——— footer ——— */
.foot { margin-top: 96px; border-top: 1px solid var(--ink); padding: 32px 0 30px; font-family: var(--sans); }
.foot__in { display: grid; grid-template-columns: 7fr 2.5fr 2.5fr; gap: 32px 44px; }
.foot nav { display: flex; flex-direction: column; gap: 5px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }
.foot__h { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.foot .logo { display: inline-block; margin-bottom: 10px; }
.foot p.muted { font-size: 15px; line-height: 1.45; max-width: 34em; color: var(--ink-2); }
.disclaimer { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 28px; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

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