/* ==========================================================================
   haircortisoltest.com — main stylesheet
   Direction: the strand as a timeline. Cool paper ground, deep indigo ink.
   Colour carries meaning: amber is always the hair record (months), slate is
   always a single-moment test (a morning, a day). Bricolage Grotesque for
   headings and interface, Source Serif 4 for reading.
   No inline styles anywhere: the CSP forbids them.
   ========================================================================== */

/* Fonts are served from this site (assets/fonts, SIL Open Font Licence), so no
   request goes to Google and blockers cannot strip them. Latin subset only. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/source-serif-4-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/source-serif-4-italic-latin.woff2) format('woff2'); }

:root {
    --ground: #f4f6f8;
    --paper: #ffffff;
    --ink: #19203a;
    --ink-2: #2a3352;
    --body: #3a4157;
    --mute: #697088;
    --line: #dde2e9;
    --line-strong: #c4cbd6;

    --amber: #eba63f;
    --amber-deep: #94580a;
    --amber-wash: #fcf2e1;
    --amber-line: #f0cf98;

    --slate: #7a849a;
    --slate-soft: #b3bbca;
    --slate-wash: #e9ecf1;

    --ok: #2b7655;    --ok-wash: #e2f1ea;
    --no: #ad4438;    --no-wash: #f8e7e4;
    --warn-wash: #fbefe0;

    --sans: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
    --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;

    --r-pill: 999px;
    --r-panel: 16px;
    --r-card: 12px;
    --r-small: 8px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
    margin: 0;
    background: var(--ground);
    color: var(--body);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: var(--sans); color: var(--ink); font-weight: 800;
    letter-spacing: -.025em; line-height: 1.12; margin: 0 0 .5em;
}
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.page-narrow { max-width: 820px; padding-block: 56px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 14px; top: -60px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-small); z-index: 100; font-family: var(--sans); }
.skip-link:focus { top: 14px; color: #fff; }

.icon { flex: none; vertical-align: -.15em; }
.muted { color: var(--mute); }
.small { font-size: .9rem; }

.kicker { font-family: var(--sans); font-size: .95rem; font-weight: 650; color: var(--amber-deep); margin: 0 0 14px; letter-spacing: -.005em; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.display { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 22ch; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 60ch; }

.byline { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--sans); font-size: .9rem; color: var(--mute); }
.byline a { color: var(--mute); }

.section-title { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); margin: 0 0 20px; }
.section-sub { font-size: 1.1rem; max-width: 62ch; margin: -6px 0 30px; }

/* ---------- Buttons, chips ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.2;
    background: var(--ink); color: #fff; border: 2px solid var(--ink);
    padding: 13px 24px; border-radius: var(--r-pill); text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--small { padding: 9px 17px; font-size: .92rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: .92rem; font-weight: 500; text-decoration: none;
    padding: 6px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--paper);
}
.chip span { color: var(--mute); font-size: .85em; }
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Masthead, header, nav ---------- */

.masthead-strip { background: var(--ink); color: #c3c9d9; font-family: var(--sans); font-size: .84rem; line-height: 1.45; }
.masthead-strip__inner { display: flex; justify-content: space-between; gap: 18px; padding-block: 9px; }
.masthead-strip a { color: #fff; text-decoration-color: var(--amber); }
@media (max-width: 820px) { .masthead-strip__right { display: none; } }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 800; font-size: 1.28rem; letter-spacing: -.035em; }
.wordmark:hover { color: var(--ink); }
.wordmark__text span { font-weight: 500; }
.logo-mark { flex: none; display: block; }

.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
    display: inline-block; padding: 8px 13px; border-radius: var(--r-pill);
    font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none;
}
.site-nav__link:hover { background: var(--paper); color: var(--ink); }
.site-nav__link.is-current { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.nav-toggle { display: none; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); width: 48px; height: 42px; margin-left: auto; cursor: pointer; color: var(--ink); }
.nav-toggle svg { vertical-align: middle; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; background: var(--ground); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 20px; }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; align-items: stretch; }
    .site-nav__link { display: block; padding: 11px 14px; }
}

.breadcrumbs { font-family: var(--sans); font-size: .86rem; padding-top: 16px; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin-block: 0; }
.breadcrumbs__list li { color: var(--mute); }
.breadcrumbs__list li + li::before { content: '/'; margin: 0 9px; color: var(--line-strong); }
.breadcrumbs__list a { color: var(--mute); text-decoration: none; }
.breadcrumbs__list a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Page heroes ---------- */

.page-hero, .guide-hero { padding-block: clamp(30px, 5vw, 56px) clamp(26px, 4vw, 40px); }
.page-hero .display, .guide-hero .display { max-width: 24ch; }

.home-hero { padding-block: clamp(30px, 4.5vw, 56px) clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); background: var(--paper); }
.home-hero .display { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.5rem); max-width: none; margin-bottom: 22px; }
.home-hero .display span { display: block; }
.home-hero__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.home-hero__row .lede { margin: 0; }
.home-hero__row .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 900px) { .home-hero__row { grid-template-columns: 1fr; } .home-hero__row .actions { justify-content: flex-start; } }

/* ---------- The strand (signature figure) ---------- */

.strand { margin: clamp(30px, 4vw, 48px) 0 0; font-family: var(--sans); }
.strand__bracket { margin-left: 50%; border-top: 2px solid var(--amber); position: relative; padding: 10px 0 10px; }
.strand__bracket::before, .strand__bracket::after { content: ''; position: absolute; top: -2px; width: 2px; height: 12px; background: var(--amber); }
.strand__bracket::before { left: 0; }
.strand__bracket::after { right: 0; }
.strand__bracket-label { display: block; font-size: .98rem; line-height: 1.4; color: var(--body); padding-right: 8px; }
.strand__bracket-label strong { display: block; color: var(--amber-deep); font-weight: 650; font-size: 1.05rem; }

.strand__track { position: relative; height: 104px; }
.strand__fibre { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 64px; overflow: visible; }
.strand__fibre path { fill: none; stroke-linecap: round; }
.strand__stray { stroke: var(--slate-wash); stroke-width: 3; }
.strand__old { stroke: var(--slate-soft); stroke-width: 7; }
.strand__edge { stroke: #c98522; stroke-width: 15; }
.strand__new { stroke: var(--amber); stroke-width: 11; }
.strand__shine { stroke: #f8d9a4; stroke-width: 2.5; opacity: .9; }
.strand__segs { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 0; height: 100%; }
.strand__seg { border-left: 1px dashed var(--line-strong); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.strand__seg:first-child { border-left: 0; }
.strand__month { font-size: .95rem; color: var(--mute); }
.strand__seg.is-tested .strand__month { color: var(--ink); font-weight: 650; }
.strand__short { display: none; }
@media (max-width: 760px) { .strand__long { display: none; } .strand__short { display: inline; } }
.strand__scalp { position: absolute; right: 0; top: -8px; height: 92px; width: 5px; border-radius: 3px; background: var(--ink); }
.strand__scalp::after { content: 'Scalp'; position: absolute; left: 12px; top: -2px; font-size: .8rem; color: var(--mute); white-space: nowrap; }
.strand__bulb { position: absolute; right: -14px; top: 23px; width: 22px; height: 30px; border-radius: 50% 50% 45% 45%; background: var(--amber-deep); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }

.strand__ruler { position: relative; height: 26px; border-top: 1.5px solid var(--ink); font-size: .82rem; color: var(--mute); }
.strand__tick { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.strand__tick::before { content: ''; position: absolute; left: 50%; top: -13px; width: 1.5px; height: 7px; background: var(--ink); }
.strand__tick:nth-child(1) { left: 0; transform: none; }
.strand__tick:nth-child(1)::before { left: 0; }
.strand__tick:nth-child(2) { left: 16.667%; }
.strand__tick:nth-child(3) { left: 33.333%; }
.strand__tick:nth-child(4) { left: 50%; }
.strand__tick:nth-child(5) { left: 66.667%; }
.strand__tick:nth-child(6) { left: 83.333%; }
.strand__tick:nth-child(7) { left: auto; right: 0; transform: none; }
.strand__tick:nth-child(7)::before { left: auto; right: 0; }

.strand__pin { display: flex; justify-content: flex-end; align-items: flex-start; gap: 10px; margin: 14px 0 0 auto; max-width: 430px; text-align: right; font-size: .95rem; line-height: 1.4; color: var(--body); }
.strand__pin strong { display: block; color: var(--slate); font-weight: 650; }
.strand__pin span:last-child { order: -1; }
.strand__dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--slate); box-shadow: 0 0 0 4px var(--slate-wash); }

.strand--inline { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px 34px 18px 22px; margin: 30px 0; }
.strand--inline .strand__bracket { margin-left: 45%; }

@media (max-width: 640px) {
    .strand__bracket { margin-left: 34%; }
    .strand__month { font-size: .78rem; }
    .strand__tick { font-size: .72rem; }
    .strand__track { margin-right: 12px; }
    .strand__ruler { margin-right: 12px; }
    .strand__scalp::after { display: none; }
}

/* ---------- Measurement windows, to scale ---------- */

.window { margin: 30px 0; font-family: var(--sans); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px 24px 18px; }
.window__cap { font-size: .95rem; color: var(--mute); margin-bottom: 14px; line-height: 1.45; }
.window__cap strong { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 650; }
.window__row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; align-items: center; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.window__label { display: flex; align-items: center; gap: 10px; line-height: 1.25; color: var(--slate); }
.window__label strong { display: block; color: var(--ink); font-weight: 650; }
.window__label small { display: block; font-size: .85rem; color: var(--mute); }
.window__row--bar .window__label { color: var(--amber-deep); }
.window__track { position: relative; height: 14px; background: var(--slate-wash); border-radius: var(--r-pill); }
.window__mark { position: absolute; }
.window__row--bar .window__mark { inset: 0; background: var(--amber); border-radius: var(--r-pill); }
.window__row--day .window__mark { right: 0; top: -3px; bottom: -3px; width: 1.12%; min-width: 3px; background: var(--slate); border-radius: 2px; }
.window__row--ticks .window__mark { right: 1px; top: -5px; bottom: -5px; width: 2px; background: var(--slate); box-shadow: -4px 0 0 var(--slate); }
.window__row--dot .window__mark { right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--slate); }
.window__axis { display: flex; justify-content: space-between; margin-left: calc(min(230px, 40%) + 18px); padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
@media (max-width: 640px) {
    .window__row { grid-template-columns: 1fr; gap: 8px; }
    .window__axis { margin-left: 0; }
}

/* ---------- Home sections ---------- */

.band { padding-block: clamp(48px, 7vw, 84px); }
.band--paper { background: var(--paper); border-block: 1px solid var(--line); }
.band--ink { background: var(--ink); color: #c3c9d9; }
.band--ink h2, .band--ink h3, .band--ink strong { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reasons li { padding: 20px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons h3 { margin-bottom: 6px; }
.reasons p { margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--amber); font-size: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--sans); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--sans); font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.tools-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-link { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--body); }
.tool-link:hover { border-color: var(--ink); color: var(--body); }
.tool-link .icon { color: var(--amber-deep); }
.tool-link__title { font-family: var(--sans); font-weight: 650; font-size: 1.15rem; color: var(--ink); }
.tool-link__text { font-size: .98rem; }
@media (max-width: 860px) { .tools-row { grid-template-columns: 1fr; } }

/* ---------- Guide lists and hubs ---------- */

.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-link a { display: block; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--body); }
.guide-link:last-child a { border-bottom: 1px solid var(--line); }
.guide-link__title { display: block; font-family: var(--sans); font-weight: 650; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.guide-link__text { display: block; font-size: .98rem; color: var(--mute); margin-top: 2px; }
.guide-link a:hover .guide-link__title { color: var(--amber-deep); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-list--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.guide-list--grid .guide-link:nth-last-child(2) a { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .guide-list--grid { grid-template-columns: 1fr; } .guide-list--grid .guide-link:nth-last-child(2) a { border-bottom: 0; } }

.topic { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding-block: 40px; border-top: 2px solid var(--ink); }
.topic:first-child { margin-top: 10px; }
.topic__title { font-size: 1.5rem; margin-bottom: 8px; }
.topic__note { font-size: 1rem; color: var(--mute); }
@media (max-width: 860px) { .topic { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Guide page ---------- */

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 72px; }
.guide-aside__sticky { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 1000px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-aside { order: -1; }
    .guide-aside__sticky { position: static; }
    .guide-aside .toc { display: none; }
}

.prose { max-width: 70ch; }
.prose > * + h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--amber-deep); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-size: 1.12rem; color: var(--ink); }
.prose .table-scroll { margin: 1.4em 0; }
.cite { font-family: var(--sans); font-size: .68em; line-height: 0; margin-left: 1px; }
.cite a { text-decoration: none; color: var(--amber-deep); font-weight: 650; padding: 0 1px; }
.cite a:hover { text-decoration: underline; }
.cite + .cite::before { content: ","; color: var(--amber-deep); }

.static-prose { padding-bottom: 72px; }
.static-prose h2 { font-size: 1.5rem; }

.glance { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px 22px; }
.glance__title { font-family: var(--sans); font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.glance__list { margin: 0; padding-left: 1.1em; font-size: .98rem; line-height: 1.55; }
.glance__list li { margin-bottom: .5em; }
.glance__list li::marker { color: var(--amber-deep); }

.toc { font-family: var(--sans); font-size: .93rem; padding: 4px 0 0 2px; }
.toc__title { font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mute); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--amber); font-weight: 500; }

.faqs { margin-top: 2.6em; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq__q { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-family: var(--sans); font-weight: 650; color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 500; color: var(--amber-deep); }
.faq[open] .faq__q::after { content: '\2212'; }
.faq__a { padding: 0 0 14px; }

.sources { margin-top: 2.6em; font-size: .93rem; line-height: 1.5; }
.sources__h { font-size: 1.3rem; }
.sources__list { padding-left: 1.4em; }
.sources__list li { margin-bottom: .6em; }
.sources__list li:target { background: var(--amber-wash); }
.sources__host { color: var(--mute); font-family: var(--sans); font-size: .85em; }

/* ---------- Test notes and aside ---------- */

.testnote { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 16px 20px; margin: 30px 0; font-size: 1rem; }
.testnote__title { font-family: var(--sans); font-weight: 650; color: var(--ink); margin: 0 0 6px; }
.testnote p:last-child { margin-bottom: 0; }
.disclosure { font-family: var(--sans); font-size: .82rem; color: var(--mute); margin: 10px 0 0; }
.disclosure a { color: var(--mute); }

.aside-tools { font-family: var(--sans); font-size: .93rem; }
.aside-tools__title { font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.aside-tools ul { list-style: none; margin: 0; padding: 0; }
.aside-tools li { padding: 6px 0; border-top: 1px solid var(--line); }
.aside-tools a { text-decoration: none; }
.aside-tools a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .guide-aside .aside-tools { display: none; } }

.steps-note { max-width: 70ch; margin: 32px 0 0; font-size: 1.02rem; }

/* ---------- Tables ---------- */

.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table, .matrix { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; line-height: 1.4; background: var(--paper); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-weight: 650; color: var(--ink); border-bottom: 2px solid var(--ink); background: var(--ground); }
.data-table small { display: block; color: var(--mute); font-size: .84rem; margin-top: 3px; }

.matrix { min-width: 760px; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 14px 14px; border-bottom: 1px solid var(--line); }
.matrix thead th { font-weight: 650; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.matrix tbody th { font-weight: 650; color: var(--ink); width: 22%; }
.matrix__col--hair, .matrix__hair { background: var(--amber-wash); }
.matrix__col--hair { color: var(--amber-deep) !important; box-shadow: inset 0 3px 0 var(--amber); }
.mark { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; vertical-align: -5px; margin-right: 8px; }
.mark--yes { background: var(--ok-wash); color: var(--ok); }
.mark--no { background: var(--no-wash); color: var(--no); }
.mark--partly { background: var(--slate-wash); color: var(--slate); }
.mark__text { color: var(--body); }

.others__region + .others__region { margin-top: 26px; }
.others__h { font-size: 1.15rem; margin: 0 0 10px; }
.others__name { text-decoration: none; color: var(--ink); }
.others__name strong { font-weight: 650; }
.others__name span { color: var(--body); }
.others__name:hover span { text-decoration: underline; }
.others__sample { white-space: nowrap; color: var(--slate); }
.others__price { white-space: nowrap; font-weight: 650; color: var(--ink); }
.others__price small { font-weight: 400; white-space: normal; }
.others__note { font-family: var(--sans); font-size: .85rem; color: var(--mute); margin-top: 12px; }
.others__table { min-width: 680px; }

/* ---------- Urgent help ---------- */

.redflags { background: var(--no-wash); border-left: 4px solid var(--no); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 18px 22px; margin: 30px 0; font-size: 1rem; }
.redflags__title { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 650; color: var(--no); margin-bottom: 8px; }
.redflags p:last-child { margin-bottom: 0; }

/* ---------- Tools ---------- */

.tool { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(20px, 4vw, 34px); margin-bottom: 40px; font-family: var(--sans); }
.tool label, .tool legend { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.tool fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.tool input[type="number"], .tool input[type="date"], .tool select {
    font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--ground);
    border: 1.5px solid var(--line-strong); border-radius: var(--r-small); padding: 10px 12px; width: 100%; max-width: 280px;
}
.tool input:focus, .tool select:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.tool__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.tool__row > div { flex: 1 1 200px; }
.tool__hint { font-family: var(--serif); font-size: .95rem; color: var(--mute); margin: 6px 0 0; }
.tool__out { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--ink); }
.tool__big { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 6px; }
.tool__out p { font-family: var(--serif); }

.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-card); cursor: pointer; margin: 0; }
.choice label:hover { border-color: var(--line-strong); }
.choice input { margin-top: 5px; accent-color: var(--ink); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--ground); }

.result-card { border-radius: var(--r-panel); padding: 22px 24px; margin-top: 10px; }
.result-card--hair { background: var(--amber-wash); border: 1.5px solid var(--amber-line); }
.result-card--doctor { background: var(--no-wash); border: 1.5px solid #ebc4bd; }
.result-card h3 { margin-bottom: 8px; }
.result-card p { font-family: var(--serif); }

.convert-table td, .convert-table th { font-variant-numeric: tabular-nums; }

/* ---------- Sitemap ---------- */

.sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 72px; }
.sitemap__list { list-style: none; padding: 0; margin: 0 0 20px; font-family: var(--sans); }
.sitemap__list li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.sitemap__list a { text-decoration: none; }
.sitemap__list a:hover { text-decoration: underline; }
.sitemap__sub { font-size: 1.05rem; margin: 22px 0 6px; }
@media (max-width: 760px) { .sitemap { grid-template-columns: 1fr; } }

/* ---------- Glossary ---------- */

.glossary { display: grid; grid-template-columns: 220px 1fr; gap: 0 28px; margin: 0; }
.glossary dt { font-family: var(--sans); font-weight: 650; color: var(--ink); padding: 14px 0; border-top: 1px solid var(--line); }
.glossary dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .glossary { grid-template-columns: 1fr; } .glossary dd { border-top: 0; padding-top: 0; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #aab1c4; padding-block: 64px 28px; font-family: var(--sans); font-size: .95rem; }
.site-footer a { color: #e2e6ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); }
.site-footer__statement { max-width: 760px; margin-bottom: 44px; }
.site-footer__big { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 650; color: #fff; letter-spacing: -.02em; line-height: 1.3; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 34px; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__heading { color: #fff; font-weight: 650; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: .86rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__cols { grid-template-columns: 1fr; } }

.gtm-noscript { display: none; visibility: hidden; }

/* ---------- Consent ---------- */

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__inner { max-width: 880px; display: flex; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: 18px 22px; box-shadow: 0 18px 48px -20px rgba(25, 32, 58, .45); font-family: var(--sans); font-size: .93rem; line-height: 1.45; }
.consent__title { font-weight: 650; color: var(--ink); margin: 0 0 4px; }
.consent__text { margin: 0; }
.consent__actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 680px) { .consent__inner { flex-direction: column; align-items: stretch; } }

/* Grid children holding wide tables must be allowed to shrink, or the track grows to the table. */
.topic > *, .split > *, .guide-layout > * { min-width: 0; }

/* ---------- Home: topic columns ---------- */

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .section-title { margin: 0; }

.topic-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; }
.topic-col { border-top: 3px solid var(--ink); padding-top: 14px; }
.topic-col:first-child { border-top-color: var(--amber); }
.topic-col__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.topic-col__title { font-size: 1.2rem; margin: 0; }
.topic-col__all { font-family: var(--sans); font-size: .9rem; white-space: nowrap; }
.topic-col .guide-link a { padding: 13px 0; }
.topic-col .guide-link:first-child a { border-top: 0; }
.topic-col .guide-link:last-child a { border-bottom: 0; }
.topic-col .guide-link__title { font-size: 1.05rem; }
.topic-col .guide-link__text { font-size: .93rem; line-height: 1.5; }
@media (max-width: 900px) { .topic-cols { grid-template-columns: 1fr; } }

/* ---------- Provider directory ---------- */

.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 32px; font-family: var(--sans); }
.providers__group { border-top: 3px solid var(--slate-soft); padding-top: 12px; }
.providers__group--hair { border-top-color: var(--amber); }
.providers__title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0; }
.providers__title .icon { color: var(--slate); }
.providers__group--hair .providers__title .icon { color: var(--amber-deep); }
.providers__span { font-size: .88rem; color: var(--mute); margin: 2px 0 10px; }
.providers__list { list-style: none; margin: 0; padding: 0; }
.providers__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.35; }
.providers__list a { text-decoration: none; color: var(--body); }
.providers__list a strong { color: var(--ink); font-weight: 650; display: block; }
.providers__list a:hover span { text-decoration: underline; text-decoration-color: var(--amber); }
.providers__price { white-space: nowrap; color: var(--ink); font-weight: 650; }
.providers__price abbr { text-decoration: none; font-weight: 400; font-size: .78rem; color: var(--mute); }
