/* hairporositytest.com - shared design system
   Plum / cream editorial. Tokens first, then components, then guide/article styles. */
:root {
  --cream: #FBF6F0;
  --cream-2: #F3EAE0;
  --surface: #FFFFFF;
  --ink: #2B2422;
  --ink-soft: #5C504A;
  --ink-dim: #796E66;          /* darkened from mockup #8A7E76 for AA on cream */
  --line: #EADFD4;
  --plum: #834D63;
  --plum-dark: #5F3548;
  --sage: #6E9483;
  --sage-dark: #4E6E60;
  --gold: #C29449;
  --blush: #F6E7EA;
  --blush-line: #E9CFD6;
  /* result accents */
  --low: #6E9483; --low-bg: #EAF1ED; --low-line: #CFE0D7;
  --med: #C29449; --med-bg: #F7EEDD; --med-line: #ECD8B4;
  --high: #B5546B; --high-bg: #F8E7EC; --high-line: #EFCBD5;
  --shadow: 0 14px 40px -18px rgba(60,30,40,0.28);
  --shadow-sm: 0 6px 20px -12px rgba(60,30,40,0.25);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, a, summary, .opt { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(251,246,240,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; position: relative; }
.nav-burger { display: none; background: none; border: 0; padding: 8px; margin: -8px -8px -8px 0; color: var(--ink); cursor: pointer; }
.nav-burger svg { display: block; width: 32px; height: 32px; }
@media (max-width: 760px){ .nav { height: 60px; } }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand .drop { width: 26px; height: 26px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--plum); }
.nav-cta { background: var(--plum); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: background .15s, transform .15s; min-height: 40px; display: inline-flex; align-items: center; }
.nav-cta:hover { background: var(--plum-dark); transform: translateY(-1px); }
@media (max-width: 760px){
  .nav { justify-content: center; }
  .nav-burger { display: inline-flex; align-items: center; position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 6px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 6px 0; z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 13px 22px; }
  .nav-links a.nav-cta { margin: 8px 22px 6px; justify-content: center; min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 28px; text-align: center; position: relative; overflow: hidden; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); background: var(--blush); border: 1px solid var(--blush-line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.02em; max-width: 15ch; margin: 0 auto 20px; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero p.sub { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); max-width: 56ch; margin: 0 auto 30px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--plum); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 18px; padding: 16px 32px; border-radius: 999px; box-shadow: var(--shadow); transition: background .15s, transform .15s; min-height: 44px; }
.hero-cta:hover { background: var(--plum-dark); transform: translateY(-2px); }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--ink-dim); display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.hero-meta span { display:inline-flex; align-items:center; gap:6px; }

/* ---------- Quiz ---------- */
.quiz-section { padding: 30px 0 20px; }
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; overflow: hidden; }
.quiz-head { padding: 22px 28px 0; }
.progress-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-dim); font-weight: 500; margin-bottom: 10px; }
.progress-track { height: 7px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--plum), var(--gold)); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.quiz-body { padding: 26px 28px 30px; }
.q-text { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 22px; }
.q-text:focus { outline: none; }
.q-note { font-size: 13.5px; color: var(--ink-dim); line-height: 1.45; margin: -12px 0 20px; }
.q-note[hidden] { display: none; }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; font-family: var(--font-body); font-size: 16.5px; color: var(--ink); cursor: pointer; transition: border-color .14s, background .14s, transform .1s; min-height: 44px; }
@media (hover: hover){ .opt:hover { border-color: var(--plum); background: #fff; } }
.opt:active { transform: scale(.99); }
.opt[aria-checked="true"] { border-color: var(--plum); background: var(--blush); }
.opt .tick { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--blush-line); display: grid; place-items: center; transition: all .14s; color: var(--plum); font-size: 13px; font-weight: 700; }
.opt[aria-checked="true"] .tick { background: var(--plum); border-color: var(--plum); color: #fff; }
@media (hover: hover){ .opt:hover .tick { border-color: var(--plum); } }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 28px 24px; }
.btn-back { background: none; border: none; color: var(--ink-dim); font-family: var(--font-body); font-size: 15px; font-weight: 500; cursor: pointer; padding: 10px 4px; visibility: hidden; min-height: 44px; }
.btn-back:hover { color: var(--ink); }
.btn-skip { background: none; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; padding: 10px 16px; border-radius: 999px; min-height: 44px; }
.btn-skip:hover { border-color: var(--ink-dim); }

/* ---------- Result ---------- */
.result { display: none; }
.result.show { display: block; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result-hero { padding: 34px 28px 28px; text-align: center; border-bottom: 1px solid var(--line); }
.result-badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.result-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
.result-title:focus { outline: none; }
.result-blurb { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.meter { max-width: 360px; margin: 22px auto 0; }
.meter-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--low) 0 33%, var(--med) 33% 66%, var(--high) 66% 100%); position: relative; }
.meter-pin { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%,-50%); transition: left .6s cubic-bezier(.4,0,.2,1); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.meter-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-dim); margin-top: 8px; font-weight: 500; }
.result-body { padding: 28px; }
.rb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
@media (max-width: 560px){ .rb-grid { grid-template-columns: 1fr; } }
.do-card { border-radius: 16px; padding: 18px 20px; border: 1px solid; }
.do-card.do { background: var(--low-bg); border-color: var(--low-line); }
.do-card.dont { background: #F7ECEC; border-color: #ECCFCF; }
.do-card h3 { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.do-card.do h3 { color: var(--sage-dark); }
.do-card.dont h3 { color: #A8475A; }
.do-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.do-card li { font-size: 15px; color: var(--ink-soft); display: flex; gap: 9px; line-height: 1.45; }
.do-card li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; }
.do-card.do li::before { background: var(--sage); }
.do-card.dont li::before { background: #C97A8A; }
.pick-head { font-family: var(--font-head); font-weight: 600; font-size: 22px; margin-bottom: 4px; }
.pick-sub { font-size: 14.5px; color: var(--ink-dim); margin-bottom: 18px; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px){ .picks { grid-template-columns: 1fr; } }
.pick { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .14s, box-shadow .14s; }
.pick > div:last-child { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick:hover { border-color: var(--plum); box-shadow: var(--shadow-sm); }
.pick .ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; background: var(--blush); display: grid; place-items: center; font-size: 22px; }
.pick .ptype { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 3px; }
.pick .pname { font-size: 16.5px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; color: var(--ink); }
.pick .pwhy { font-size: 13.5px; color: var(--ink-dim); line-height: 1.4; margin-bottom: 9px; }
.pick .pwhys { list-style: none; display: flex; flex-direction: column; gap: 5px; margin: 2px 0 11px; }
.pick .pwhys li { font-size: 13px; color: var(--ink-soft); line-height: 1.4; display: flex; gap: 7px; }
.pick .pwhys li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-top: 6px; }
.pick .pbtn { font-size: 13.5px; font-weight: 600; color: #fff; background: var(--plum); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; min-height: 40px; margin-top: auto; align-self: flex-start; transition: background .15s, transform .15s; }
.pick .pbtn:hover { background: var(--plum-dark); color: #fff; transform: translateY(-1px); }
.pick .pbudget { font-size: 12px; color: var(--ink-dim); margin-top: 10px; line-height: 1.4; min-height: 33px; }
.pick .pbudget a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.pick .pbudget a:hover { color: var(--plum); }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.btn-ghost { background: none; border: 1.5px solid var(--line); color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: 999px; cursor: pointer; transition: border-color .14s; text-decoration:none; display:inline-flex; align-items:center; gap:8px; min-height: 44px; }
.btn-ghost:hover { border-color: var(--plum); }
.disclosure-inline { font-size: 12.5px; color: var(--ink-dim); text-align: center; margin-top: 16px; }

/* ---------- Sections ---------- */
section.block { padding: 60px 0; }
.sec-eyebrow { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin-bottom: 12px; }
.sec-title { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; max-width: 20ch; margin: 0 auto 16px; }
.sec-intro { text-align: center; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 44px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px){ .type-grid { grid-template-columns: 1fr; } }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.type-card .tc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.type-card .dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.type-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 22px; }
.type-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.type-card .signs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.type-card .signs li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 9px; }
.type-card .signs li::before { content: "\2713"; color: var(--sage-dark); font-weight: 700; }

/* manual test */
.manual { background: var(--cream-2); border-radius: 24px; padding: 48px 40px; }
@media (max-width: 640px){ .manual { padding: 34px 22px; } }
.manual-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 34px; }
@media (max-width: 760px){ .manual-grid { grid-template-columns: 1fr; } }
.mtest { background: var(--surface); border-radius: 16px; padding: 24px; border: 1px solid var(--line); }
.mtest .num { width: 34px; height: 34px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); margin-bottom: 14px; }
.mtest h3, .mtest h4 { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.mtest p { font-size: 14.5px; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
details.faq-item summary { font-weight: 600; font-size: 17px; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 24px; color: var(--plum); font-weight: 400; transition: transform .2s; flex: 0 0 auto; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { font-size: 15.5px; color: var(--ink-soft); padding: 0 0 20px; }
details.faq-item p + p { padding-top: 12px; }

/* CTA strip */
.cta-strip { background: linear-gradient(135deg, var(--plum), var(--plum-dark)); border-radius: 24px; padding: 54px 40px; text-align: center; color: #fff; }
.cta-strip h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(26px,4vw,38px); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-strip p { color: rgba(255,255,255,.88); max-width: 48ch; margin: 0 auto 26px; }
.cta-strip .cta-btn { background: #fff; color: var(--plum-dark); border: none; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 17px; padding: 15px 32px; border-radius: 999px; transition: transform .15s; text-decoration: none; display: inline-block; min-height: 44px; }
.cta-strip .cta-btn:hover { transform: translateY(-2px); }

/* ---------- Image placeholder (swap for real <img> when art is generated) ---------- */
.img-ph { background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 12px, #EFE4D6 12px, #EFE4D6 24px); border: 1px dashed var(--blush-line); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--plum-dark); padding: 28px; min-height: 220px; gap: 6px; }
.img-ph .ph-ic { font-size: 30px; }
.img-ph .ph-name { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--blush-line); border-radius: 6px; padding: 3px 8px; color: var(--plum); }
.img-ph .ph-desc { font-size: 13px; color: var(--ink-soft); max-width: 42ch; }
figure { margin: 0; }
figure img, figure .img-ph { width: 100%; }
figcaption { font-size: 13px; color: var(--ink-dim); text-align: center; margin-top: 10px; }

/* ---------- Article / guide pages ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-dim); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--plum); }
.breadcrumb span { margin: 0 6px; color: var(--blush-line); }
.article { max-width: 760px; margin: 0 auto; padding: 8px 24px 40px; }
.article-head { padding: 22px 0 10px; }
.article-head .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin-bottom: 14px; }
.article-head h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 5.2vw, 46px); line-height: 1.07; letter-spacing: -0.02em; margin-bottom: 16px; }
.article-head .standfirst { font-size: 19px; color: var(--ink-soft); line-height: 1.55; }
.article-head .meta { font-size: 13px; color: var(--ink-dim); margin-top: 16px; }
.article figure.lead { margin: 26px 0 8px; }
.prose { font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 3.6vw, 31px); line-height: 1.15; letter-spacing: -0.01em; margin-top: 44px; }
.prose h3 { font-family: var(--font-head); font-weight: 600; font-size: 21px; margin-top: 30px; }
.prose p, .prose li { color: var(--ink); max-width: 70ch; }
.prose a { color: var(--plum); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--plum-dark); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-top: 8px; }
.prose strong { font-weight: 700; }
.prose figure { margin: 28px 0; }
.callout { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.callout h3 { margin-top: 0 !important; font-family: var(--font-head); font-size: 19px; margin-bottom: 8px; }
.callout p { margin-top: 8px; }
.key-takeaway { background: var(--blush); border: 1px solid var(--blush-line); border-radius: 14px; padding: 18px 22px; font-size: 16px; }
.key-takeaway strong { color: var(--plum-dark); }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 26px 0; }
.toc h2 { font-family: var(--font-body) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 12px !important; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a { color: var(--ink-soft); text-decoration: none; font-size: 15px; display: flex; gap: 10px; }
.toc a::before { content: counter(toc); color: var(--plum); font-weight: 700; flex: 0 0 auto; }
.toc a:hover { color: var(--plum); }

/* comparison table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.cmp-table th, .cmp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font-family: var(--font-body); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.cmp-table tbody th { font-weight: 600; color: var(--ink); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }

/* related products (affiliate) */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0; }
@media (max-width: 560px){ .products { grid-template-columns: 1fr; } }

/* related guides */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px){ .related { grid-template-columns: 1fr; } }
.related-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .14s, box-shadow .14s; display: block; }
.related-card:hover { border-color: var(--plum); box-shadow: var(--shadow-sm); }
.related-card .rc-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.related-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.related-card p { font-size: 14px; color: var(--ink-soft); }

/* ad placeholder (out of the quiz/buy path; AdSense added after approval) */
.ad-slot { max-width: 760px; margin: 30px auto; border: 1px dashed var(--blush-line); border-radius: 12px; padding: 14px; text-align: center; color: var(--ink-dim); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; background: var(--cream-2); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 20px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 14px; color: var(--ink-dim); }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; font-family: var(--font-body); }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-soft); text-decoration: none; margin-bottom: 9px; }
.foot-col a:hover { color: var(--plum); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.disclosure { background: var(--cream-2); border-radius: 12px; padding: 16px 20px; font-size: 13px; color: var(--ink-dim); margin-top: 26px; line-height: 1.55; }
.disclosure strong { color: var(--ink-soft); }

/* ---------- Scroll offset so the sticky header never covers anchor targets ---------- */
html { scroll-padding-top: 88px; }

/* ---------- Orphan / ragged-line control (site-wide) ---------- */
p, li, figcaption, .pick-sub, .result-blurb, .sec-intro, .hero-meta { text-wrap: pretty; }
h1, h2, h3, .sec-title, .standfirst, .hero .sub, .cta-strip h2, .cta-strip p, .q-text,
.type-card p, .related-card p, .mtest p, .article-head .standfirst { text-wrap: balance; }

/* ---------- Texture band (responsive: image stacks above text on mobile) ---------- */
.texture-band { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.texture-band figure img { border-radius: 18px; }
@media (max-width: 760px){ .texture-band { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Quiz focus blur (activates on start or first answer) ---------- */
.quiz-backdrop { position: fixed; inset: 0; background: rgba(43,36,34,0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
body.quiz-focus .quiz-backdrop { opacity: 1; pointer-events: auto; }
body.quiz-focus .quiz-card { position: relative; z-index: 45; box-shadow: 0 24px 70px -18px rgba(40,20,30,0.5); }

/* ---------- Social share ---------- */
.share { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.share-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; text-decoration: none; background: var(--plum); color: #fff; transition: transform .12s ease, filter .15s ease, border-color .15s ease; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.share-btn svg { width: 19px; height: 19px; }
.share-pinterest { background: #E60023; }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-x { background: #1A1A1A; }
.share-native { background: var(--sage-dark); }
.share-copy { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.share-copy:hover { border-color: var(--plum); color: var(--plum); filter: none; }
.share-copy.share-copied { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- Product / utility SVG icons (replace emojis) ---------- */
.pick .ic { color: var(--plum); }
.pick .ic svg { width: 22px; height: 22px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--plum); flex: 0 0 auto; }

/* ---------- Brand logo image ---------- */
.brand-logo { height: 52px; width: auto; display: block; flex-shrink: 0; object-fit: contain; }
@media (max-width: 760px){ .brand-logo { height: 35px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
