/* StyleVault wig finder, v2 (2026-12-05): black and gold, taken from the owner's logo.
   Header, info bar and footer are fixed black/gold in both themes, because the logo has white
   lettering and a black haze and only sits right on pure black. The page body follows the theme. */
:root {
  --ground: #ffffff;
  --surface: #f7f4ef;
  --line: #e7dfd2;
  --ink: #141110;
  --ink-2: #4f4842;
  --honey: #946a17;          /* labels, numbers, focus ring */
  --platinum: #f6eedb;       /* callouts */
  --berry: #835f12;          /* links and the "view" line: dark gold, 5.3:1 on white */
  --btn-bg: #141110;
  --btn-ink: #f4e3b8;
  --ok: #2f6b3a;
  --warn: #8a5a00;
  --shadow: 0 1px 2px rgba(20, 17, 16, .05), 0 8px 22px rgba(20, 17, 16, .06);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --black: #000000;
  --gold: #d4ad5c;
  --gold-2: #f0d595;
  --on-black: #ece4d6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e0c0a; --surface: #19150f; --line: #352d22; --ink: #f3ece2; --ink-2: #c8bcad;
    --honey: #e3b866; --platinum: #2b2416; --berry: #e2bd6b; --btn-bg: #d9ae5a; --btn-ink: #14100a;
    --ok: #8fd29b; --warn: #f0c060; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0e0c0a; --surface: #19150f; --line: #352d22; --ink: #f3ece2; --ink-2: #c8bcad;
  --honey: #e3b866; --platinum: #2b2416; --berry: #e2bd6b; --btn-bg: #d9ae5a; --btn-ink: #14100a;
  --ok: #8fd29b; --warn: #f0c060; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--berry); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin: 2.4rem 0 .9rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.prose { max-width: 68ch; }
.prose li { margin-bottom: .45rem; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--honey); margin: 0 0 .7rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* info bar + header: fixed black and gold */
.infobar { background: linear-gradient(90deg, #b88a3a, var(--gold-2) 50%, #b88a3a); color: #1a1205; font: 600 .78rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.infobar .wrap { padding: 7px 0; }
.infobar .dot { margin: 0 .7em; }
.top { background: var(--black); border-bottom: 1px solid #3b3020; position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; line-height: 0; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--on-black); text-decoration: none; font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 12px 12px; border-radius: 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); }
.top :focus-visible { outline-color: var(--gold); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #5a4a2e; color: var(--on-black); border-radius: 6px; padding: 9px 14px; font: 600 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .brand img { height: 52px; }
  .top .wrap { min-height: 68px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid #3b3020; padding: 6px 20px 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #241d12; }
}
@media (max-width: 700px) { .infobar .dot, .infobar .more { display: none; } .infobar { font-size: .7rem; } .infobar .wrap { padding: 6px 0; } }

/* hero + search */
.hero { padding: 48px 0 28px; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.search { display: flex; gap: 10px; margin: 22px 0 14px; max-width: 760px; }
.search input { flex: 1; min-width: 0; font: 500 1.05rem var(--body); padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--ground); color: var(--ink); }
.search input:focus { border-color: var(--honey); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 30%, transparent); }
.search button, .btn { font: 700 .9rem var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 14px 24px; border-radius: 6px; border: 0; background: var(--btn-bg); color: var(--btn-ink); cursor: pointer; text-decoration: none; display: inline-block; }
.search button:hover, .btn:hover { filter: brightness(1.18); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip { font: 600 .92rem var(--body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--ink); }
.label-row { font: 700 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 8px; }

/* colour-code swatches: the site's signature */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { display: flex; align-items: center; gap: 8px; font: 700 .9rem var(--body); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.sw i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; }
.sw small { font-weight: 500; color: var(--ink-2); }
.sw:hover, .sw[aria-pressed="true"] { border-color: var(--ink); }

/* hero collage: one tall photo, two stacked beside it */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 460px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--surface); }
.collage img:first-child { grid-row: 1 / 3; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .collage { display: none; } }
.hero-grid > div { min-width: 0; }

/* style pages */
.answer { font-size: 1.15rem; line-height: 1.55; border-left: 3px solid var(--honey); padding: 4px 0 4px 16px; margin: 14px 0 18px; }
.answer:empty { display: none; }

/* shop by style */
.shop h2 { margin-top: 6px; }
.styles { display: grid; grid-template-columns: repeat(8, minmax(124px, 1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.style { text-decoration: none; color: var(--ink); scroll-snap-align: start; }
.style img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.style b { display: block; font: 700 1.02rem/1.25 var(--display); margin-top: 9px; }
.style span { display: block; font-size: .85rem; line-height: 1.35; color: var(--ink-2); }
.style:hover img { border-color: var(--honey); box-shadow: 0 0 0 2px var(--honey); }
.style:hover b { color: var(--berry); }
@media (max-width: 860px) { .styles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; } }

/* results */
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.results-head h2 { margin: 0; }
.status { color: var(--ink-2); font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 18px 0 8px; }
.grid-note { display: none; margin: 6px 0 0; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card .img { aspect-ratio: 1; background: var(--surface); position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .off { position: absolute; top: 10px; left: 10px; background: var(--black); color: var(--gold-2); font: 700 .8rem var(--body); padding: 3px 8px; border-radius: 6px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font: 600 .95rem/1.35 var(--body); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: .85rem; color: var(--ink-2); }
.card .price { font: 700 1.3rem var(--display); font-variant-numeric: lining-nums tabular-nums; }
.card .price small { font: 600 .8rem var(--body); color: var(--ink-2); margin-right: 4px; }
.card .note { font-size: .8rem; color: var(--ink-2); }
.card .go { margin-top: auto; font-weight: 700; color: var(--berry); font-size: .95rem; }
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--surface), var(--line), var(--surface)); background-size: 200% 100%; animation: sh 1.2s linear infinite; aspect-ratio: .72; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .card { transition: none; } }

/* bands and tiles */
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 8px 0 36px; margin-top: 40px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.tile:hover { border-color: var(--ink); }
.tile b { display: block; font: 700 1.08rem/1.3 var(--display); margin-bottom: 4px; }
.tile span { color: var(--ink-2); font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.steps li::before { content: counter(s); font: 700 1.8rem var(--display); font-variant-numeric: lining-nums; color: var(--honey); display: block; margin-bottom: 4px; }

/* article pages */
.page { padding: 36px 0 20px; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); }
.facts { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0 22px; }
.facts div { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.callout { background: var(--platinum); border-radius: 14px; padding: 16px 18px; margin: 18px 0; color: var(--ink); }
.callout.warn { background: var(--surface); border-left: 4px solid var(--warn); }
.sources { font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.tag { display: inline-block; font: 700 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; vertical-align: middle; }
.tag.v { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tag.p { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--surface); }

/* tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 18px 0 26px; }
.tool label { display: block; font-weight: 700; margin: 0 0 6px; }
.tool .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.tool .row > div { flex: 1 1 160px; }
.tool input, .tool select { width: 100%; font: 500 1.05rem var(--body); padding: 11px 12px; border: 1px solid var(--ink-2); border-radius: 10px; background: var(--ground); color: var(--ink); }
.out { background: var(--ground); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-height: 3em; }
.out .big { font: 700 1.6rem var(--display); font-variant-numeric: lining-nums tabular-nums; }
.out ul { margin: 8px 0 0; padding-left: 20px; }
.figure-line { display: flex; gap: 6px; align-items: center; }

/* finder */
.q { border: 0; padding: 0; margin: 0 0 22px; }
.q legend { font: 700 1.15rem var(--display); margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-block; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); font-weight: 600; }
.opts span small { display: block; font-weight: 400; color: var(--ink-2); font-size: .82rem; }
.opts input:checked + span { border: 2px solid var(--berry); padding: 9px 13px; }
.opts input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }

/* footer: black like the header */
.foot { margin-top: 56px; background: var(--black); border-top: 1px solid #3b3020; padding: 36px 0 44px; font-size: .92rem; color: #bdb2a3; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot b { color: var(--gold-2); display: block; margin-bottom: 8px; font: 600 .78rem var(--body); letter-spacing: .12em; text-transform: uppercase; }
.foot a { color: var(--on-black); display: block; margin-bottom: 5px; }
.foot a:hover { color: var(--gold-2); }
.foot-logo { height: 50px; width: auto; margin-bottom: 12px; }
.foot :focus-visible { outline-color: var(--gold); }

/* phones: get the wigs on screen fast */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(1120px, 100% - 24px); }
  .hero { padding: 16px 0 4px; }
  .eyebrow { font-size: .68rem; margin-bottom: .5rem; }
  h1 { font-size: 1.6rem; margin-bottom: .3rem; }
  h2 { font-size: 1.3rem; margin: 1.6rem 0 .7rem; }
  .hero p.lede { display: none; }
  .search { margin: 12px 0 8px; gap: 8px; }
  .search input { font-size: 1rem; padding: 11px 12px; }
  .search button { padding: 11px 14px; font-size: .8rem; }
  .label-row { font-size: .68rem; margin: 10px 0 6px; }
  .chips, .swatches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 4px; }
  .chips::-webkit-scrollbar, .swatches::-webkit-scrollbar { display: none; }
  .chip, .sw { flex: none; font-size: .82rem; }
  .chip { padding: 6px 11px; }
  .sw i { width: 22px; height: 22px; }
  .shop h2 { margin-top: 18px; }
  .styles { grid-auto-columns: 27%; gap: 8px; scrollbar-width: none; }
  .styles::-webkit-scrollbar { display: none; }
  .style b { font-size: .88rem; margin-top: 6px; }
  .style span { display: none; }
  .results-head { margin-top: 14px; }
  .results-head h2 { font-size: 1.2rem; }
  .status { font-size: .78rem; margin: 2px 0 0; }
  .grid-note { display: block; font-size: .78rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .card { border-radius: 8px; box-shadow: none; }
  .card .off { top: 5px; left: 5px; font-size: .66rem; padding: 2px 5px; }
  .card .body { padding: 6px 7px 8px; gap: 2px; }
  .card h3 { font-size: .72rem; line-height: 1.3; }
  .card .meta { font-size: .66rem; }
  .card .price { font-size: .98rem; }
  .card .price small { font-size: .62rem; margin-right: 2px; }
  .card .note, .card .go { display: none; }
  .skel { border-radius: 8px; }
}
@media (max-width: 340px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hair loss guides: row of search buttons (2026-12-05) */
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 2026-12-05 cookie choice bar (Europe only): slim, bottom, never covers the middle of the page */
.sv-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto;
  display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px;
  background: var(--black); color: #f3ece2; border: 1px solid var(--gold); box-shadow: var(--shadow);
  font: 14px/1.45 var(--body); }
.sv-consent p { margin: 0; flex: 1 1 320px; }
.sv-consent a { color: var(--gold); }
.sv-consent-btns { display: flex; gap: 8px; }
.sv-consent button { font: 600 14px/1 var(--body); padding: 9px 14px; border-radius: 8px; cursor: pointer; min-height: 36px; }
.sv-consent-no { background: transparent; color: #f3ece2; border: 1px solid #6b604f; }
.sv-consent-yes { background: var(--gold); color: #14100a; border: 1px solid var(--gold); }
.sv-consent button:focus-visible, .sv-consent a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 2026-12-05 phones and tablets: the home search bar stays pinned under the header (site.js moves it) */
.search-ph { height: 0; }
@media (max-width: 860px) {
  .search.is-fixed { position: fixed; left: 0; right: 0; z-index: 4; margin: 0; max-width: none; padding: 8px 12px;
    background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 6px 14px rgba(20, 17, 16, .10); }
  #grid, .results-head { scroll-margin-top: 140px; }
}
