/*
Theme Name: WigBae
Text Domain: wigbae
Description: Independent human hair wig buying guide — curated picks, quiz, guides (affiliate). Plain CSS, vanilla JS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
	--ivory: #fbf6ef;
	--cream: #f4eadf;
	--sand: #ead9c8;
	--paper: #fffdf9;
	--ink: #2b1b14;
	--ink-2: #5e463a;
	--accent: #9a5232;
	--accent-dk: #7d3f24;
	--rose: #e7c3a8;
	--rose-2: #f3dccb;
	--line: #e3d3c3;
	--ok: #2f6b45;
	--err: #a12d2d;
	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r: 18px;
	--r-sm: 12px;
	--shadow: 0 1px 2px rgba(43, 27, 20, .06), 0 8px 24px -12px rgba(43, 27, 20, .18);
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dk); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--ink); color: #fff; padding: .7em 1em; border-radius: 8px; }
.wb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wb-main { display: block; outline: none; min-height: 60vh; }
.wb-eyebrow { font: 700 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6em; }
.wb-ico { flex: none; vertical-align: -3px; }

/* Buttons */
.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: .65em 1.2em; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.wb-btn:hover { background: var(--ink); color: var(--ivory); }
.wb-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.wb-btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.wb-btn--ghost { border-color: var(--line); }
.wb-btn--sm { min-height: 40px; padding: .5em .95em; font-size: .875rem; }
.wb-btn--lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
.wb-btn--block { width: 100%; }

/* Promo bar */
.wb-promo { background: var(--ink); color: var(--ivory); font-size: .85rem; }
.wb-promo[hidden] { display: none; }
.wb-promo__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; padding-right: 48px; position: relative; text-align: center; }
.wb-promo__t { margin: 0; line-height: 1.4; }
.wb-promo__cta { color: var(--ink); background: var(--rose); border-radius: 999px; padding: .35em .9em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.wb-promo__cta:hover { background: var(--ivory); color: var(--ink); }
.wb-promo__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ivory); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wb-promo__x:hover { background: rgba(251, 246, 239, .12); }

/* Deals strip */
.wb-deals { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.wb-deals__h { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.wb-deals__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .wb-deals__list { grid-template-columns: 1fr 1fr; } }
.wb-deals__list a { display: block; height: 100%; padding: 12px 14px; background: var(--rose-2); border: 1px solid var(--rose); border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none; }
.wb-deals__list a:hover { border-color: var(--accent); color: var(--accent-dk); }
.wb-deals__note { margin: 10px 0 0; font-size: .82rem; color: var(--ink-2); }

/* Header */
.wb-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.wb-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wb-logo { font: 400 1.85rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.wb-logo span { font-style: italic; color: var(--accent); }
.wb-logo--light { color: var(--ivory); }
.wb-logo--light span { color: var(--rose); }
.wb-navtoggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.wb-navtoggle__close, .wb-nav-open .wb-navtoggle__open { display: none; }
.wb-nav-open .wb-navtoggle__close { display: inline-flex; }
.wb-nav { display: none; }
.wb-nav-open .wb-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 20px; }
.wb-menu { list-style: none; margin: 0; padding: 0; }
.wb-menu a { display: block; padding: .8em 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.wb-menu li:last-child a { border-bottom: 0; }
.wb-menu .current-menu-item > a, .wb-menu a[aria-current] { color: var(--accent); }
@media (min-width: 960px) {
	.wb-navtoggle { display: none; }
	.wb-nav, .wb-nav-open .wb-nav { display: block; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
	.wb-menu { display: flex; gap: 4px; align-items: center; }
	.wb-menu a { border: 0; padding: .5em .8em; border-radius: 999px; font-size: .95rem; }
	.wb-menu a:hover { background: var(--cream); }
	.wb-menu li:last-child a { background: var(--ink); color: var(--ivory); margin-left: 6px; padding: .55em 1.1em; }
	.wb-menu li:last-child a:hover { background: var(--accent); }
}

/* Breadcrumbs */
.wb-crumbs { padding: 16px 0 0; font-size: .85rem; color: var(--ink-2); }
.wb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3em; margin: 0; padding: 0; }
.wb-crumbs li + li::before { content: "/"; margin-right: .3em; color: var(--line); }
.wb-crumbs a { color: var(--ink-2); }

/* Hero */
.wb-hero { position: relative; overflow: hidden; padding: 48px 0 56px; background: radial-gradient(120% 90% at 100% 0%, var(--rose-2) 0%, rgba(243, 220, 203, 0) 60%), var(--ivory); }
.wb-hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--rose); box-shadow: 0 0 0 40px rgba(231, 195, 168, .12), 0 0 0 90px rgba(231, 195, 168, .08); pointer-events: none; }
.wb-hero__in { position: relative; z-index: 1; display: grid; gap: 32px; }
.wb-hero h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); line-height: 1.02; max-width: 12ch; }
.wb-hero h1 em { color: var(--accent); }
.wb-hero__sub { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.wb-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.wb-hero__small { font-size: .85rem; color: var(--ink-2); }
.wb-hero__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); align-self: center; }
.wb-hero__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wb-hero__card li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.wb-hero__card .wb-ico { color: var(--accent); margin-top: 3px; }
@media (min-width: 900px) { .wb-hero { padding: 80px 0 88px; } .wb-hero__in { grid-template-columns: 1.4fr 1fr; align-items: center; } }

/* Sections */
.wb-sec { padding: 56px 0; }
.wb-sec--alt { background: var(--cream); }
.wb-sec--ink { background: var(--ink); color: var(--ivory); }
.wb-sec--ink h2, .wb-sec--ink h3 { color: var(--ivory); }
.wb-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.wb-sec__head h2 { margin: 0; }
.wb-sec__head p { margin: .4em 0 0; color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) { .wb-sec { padding: 80px 0; } }

/* Category cards */
.wb-cats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .wb-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .wb-cats { grid-template-columns: repeat(3, 1fr); } }
.wb-cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s, box-shadow .2s, border-color .2s; }
.wb-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--rose); }
.wb-cat__n { font: 400 .8rem/1 var(--sans); color: var(--accent); letter-spacing: .1em; }
.wb-cat h3 { margin: 0; font-size: 1.4rem; }
.wb-cat h3 a { color: var(--ink); text-decoration: none; }
.wb-cat h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.wb-cat p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.wb-cat__guide { position: relative; z-index: 1; margin-top: 6px; font-size: .88rem; font-weight: 600; }
.wb-learn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; align-items: center; }
.wb-learn span { font-weight: 700; margin-right: 6px; }
.wb-learn a { padding: .45em .9em; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.wb-learn a:hover { border-color: var(--accent); color: var(--accent); }

/* Product cards / grid */
.wb-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .wb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .wb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wb-grid--single { grid-template-columns: minmax(0, 320px); margin: 1.5em 0; }
.wb-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.wb-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wb-card__media { position: relative; display: block; background: var(--cream); aspect-ratio: 1 / 1; }
.wb-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.wb-img--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--rose-2), var(--cream)); }
.wb-img--ph span { font: italic 400 1.6rem/1 var(--serif); color: var(--accent); }
.wb-badge { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--ivory); font: 700 .7rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .5em .75em; border-radius: 999px; }
.wb-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.wb-card__title { font: 600 .92rem/1.35 var(--sans); margin: 0; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wb-card__title a { color: var(--ink); text-decoration: none; }
.wb-card__title a:hover { color: var(--accent); }
.wb-card__price { margin: 0; font-size: .8rem; color: var(--ink-2); }
.wb-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.wb-card__actions .wb-btn { flex: 1 1 auto; padding-left: .7em; padding-right: .7em; }
.wb-empty { padding: 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--ink-2); }

/* Guide cards */
.wb-guides { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .wb-guides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .wb-guides { grid-template-columns: repeat(3, 1fr); } }
.wb-guide { position: relative; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.wb-guide:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wb-guide__title { font-size: 1.3rem; margin: 0 0 .4em; }
.wb-guide__title a { color: var(--ink); text-decoration: none; }
.wb-guide__title a::after { content: ""; position: absolute; inset: 0; }
.wb-guide__ex { color: var(--ink-2); font-size: .95rem; }
.wb-guide__more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .9rem; }

/* Disclosure */
.wb-disclosure { display: flex; gap: 10px; align-items: flex-start; background: var(--rose-2); border: 1px solid var(--rose); border-radius: var(--r-sm); padding: 12px 14px; font-size: .9rem; color: var(--ink); margin: 0 0 24px; }
.wb-disclosure p { margin: 0; }
.wb-disclosure .wb-ico { margin-top: 3px; color: var(--accent-dk); }
.wb-disclosure a { color: var(--accent-dk); }

/* Trust */
.wb-trust { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .wb-trust { grid-template-columns: repeat(3, 1fr); } }
.wb-trust li { padding: 20px; border: 1px solid rgba(251, 246, 239, .18); border-radius: var(--r); }
.wb-trust h3 { font-size: 1.2rem; margin-bottom: .35em; }
.wb-trust p { margin: 0; color: #e9ddd1; font-size: .95rem; }
.wb-sec--ink a { color: var(--rose); }

/* FAQ */
.wb-faq { max-width: 820px; }
.wb-faq details { border-bottom: 1px solid var(--line); }
.wb-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 1.05rem/1.4 var(--sans); }
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.6rem/1 var(--serif); color: var(--accent); }
.wb-faq details[open] summary::after { content: "–"; }
.wb-faq details > div { padding: 0 0 18px; color: var(--ink-2); }

/* Page heads / archives */
.wb-pagehead { padding: 24px 0 28px; }
.wb-pagehead h1 { margin: .2em 0 .25em; }
.wb-pagehead p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.wb-chips { margin: 0 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wb-chips ul { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; width: max-content; }
.wb-chips a { display: inline-block; padding: .55em 1em; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.wb-chips a:hover { border-color: var(--accent); }
.wb-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
@media (min-width: 960px) { .wb-chips ul { flex-wrap: wrap; width: auto; } }
.wb-pagination { margin: 36px 0 0; }
.wb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wb-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .8em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); }
.wb-pagination .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* Single wig */
.wb-product { display: grid; gap: 28px; padding: 20px 0 48px; }
@media (min-width: 900px) { .wb-product { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .wb-product__media { position: sticky; top: 88px; } }
.wb-product__media { border-radius: var(--r); overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.wb-product h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.wb-product__price { font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.wb-product__price small { display: block; color: var(--ink-2); font-size: .82rem; margin-top: 4px; }
.wb-specs { margin: 20px 0; border-top: 1px solid var(--line); }
.wb-specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.wb-specs dt { color: var(--ink-2); }
.wb-specs dd { margin: 0; }
.wb-cta { margin: 22px 0 10px; }
.wb-cta .wb-btn { width: 100%; }
.wb-cta__note { font-size: .82rem; color: var(--ink-2); text-align: center; margin: 0 0 18px; }
.wb-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 246, 239, .96); border-top: 1px solid var(--line); }
.wb-sticky-cta .wb-btn { width: 100%; }
@media (min-width: 900px) { .wb-sticky-cta { display: none; } }
.single-wig .wb-footer { padding-bottom: 96px; }
@media (min-width: 900px) { .single-wig .wb-footer { padding-bottom: 40px; } }

/* Prose (guides, pages, wig content) */
.wb-article { padding: 8px 0 56px; }
.wb-article__head { max-width: 760px; margin: 0 auto; padding: 20px 0 8px; }
.wb-article__head h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
.wb-article__meta { color: var(--ink-2); font-size: .9rem; }
.wb-prose { max-width: 760px; margin: 0 auto; font-size: 1.075rem; }
.wb-prose h2 { margin-top: 1.8em; font-size: clamp(1.55rem, 3.6vw, 2rem); scroll-margin-top: 90px; }
.wb-prose h3 { margin-top: 1.4em; font-size: 1.3rem; scroll-margin-top: 90px; }
.wb-prose ul, .wb-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.wb-prose li { margin: .35em 0; }
.wb-prose li::marker { color: var(--accent); }
.wb-prose blockquote { margin: 1.4em 0; padding: .4em 0 .4em 1.1em; border-left: 3px solid var(--rose); font-style: italic; }
.wb-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.wb-prose th, .wb-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wb-prose th { background: var(--cream); font-weight: 700; }
.wb-prose .wb-aff-inline { font-weight: 600; }
.wb-prose .wb-aff-inline::after { content: " ↗"; font-weight: 400; }
.wb-toc { max-width: 760px; margin: 0 auto 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 16px; }
.wb-toc summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.wb-toc ol { margin: 0 0 14px; padding-left: 1.3em; font-size: .95rem; }
.wb-toc li { margin: .3em 0; }
.wb-narrow { max-width: 760px; margin: 0 auto; }

/* Quiz */
.wb-quiz { max-width: 860px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .wb-quiz { padding: 36px; } }
.wb-quiz__intro { color: var(--ink-2); }
.wb-quiz__q { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.wb-quiz__q legend { font: 400 1.35rem/1.25 var(--serif); margin-bottom: 12px; padding: 0; }
.wb-quiz__n { display: inline-block; font: 700 .75rem/1 var(--sans); color: var(--accent); background: var(--rose-2); border-radius: 999px; padding: .45em .7em; vertical-align: 4px; margin-right: 6px; }
.wb-quiz__opts { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .wb-quiz__opts { grid-template-columns: 1fr 1fr; } }
.wb-opt { position: relative; display: block; cursor: pointer; }
.wb-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wb-opt span { display: block; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--ivory); transition: border-color .15s, background .15s; position: relative; }
.wb-opt span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--ink-2); border-radius: 50%; background: var(--paper); }
.wb-opt input:checked + span { border-color: var(--accent); background: var(--rose-2); }
.wb-opt input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--paper); background: var(--accent); }
.wb-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.wb-quiz__err { color: var(--err); font-weight: 600; }
.wb-quiz__result { outline: none; }
.wb-quiz__match { background: var(--ink); color: var(--ivory); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.wb-quiz__match .wb-eyebrow { color: var(--rose); }
.wb-quiz__title { color: var(--ivory); font-size: clamp(1.8rem, 5vw, 2.4rem); }
.wb-quiz__acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.wb-quiz__match .wb-btn:not(.wb-btn--accent) { border-color: var(--ivory); color: var(--ivory); }
.wb-quiz__match .wb-btn:not(.wb-btn--accent):hover { background: var(--ivory); color: var(--ink); }
.wb-quiz__also, .wb-quiz__note { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }

/* Forms */
.wb-form { max-width: 640px; display: grid; gap: 4px; }
.wb-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.wb-field input, .wb-field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; }
.wb-field input:focus, .wb-field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--rose-2); }
.wb-opt-l { font-weight: 400; color: var(--ink-2); }
.wb-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.wb-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.wb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wb-alert { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 600; }
.wb-alert--success { background: #e3f1e7; color: var(--ok); }
.wb-alert--error { background: #f8e3e3; color: var(--err); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.search-submit { font: 600 .95rem var(--sans); min-height: 48px; padding: 0 1.3em; border: 0; border-radius: 999px; background: var(--ink); color: var(--ivory); cursor: pointer; }

/* Footer */
.wb-footer { background: var(--ink); color: #e9ddd1; padding: 56px 0 40px; margin-top: 0; font-size: .95rem; }
.wb-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .wb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .wb-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.wb-footer__brand p { margin: 14px 0 18px; max-width: 34ch; }
.wb-footer__h { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
.wb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wb-footer a { color: #f6ece2; text-decoration: none; }
.wb-footer a:hover { color: var(--rose); text-decoration: underline; }
.wb-footer__disc { margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid rgba(251, 246, 239, .15); font-size: .85rem; color: #d9c9ba; }
.wb-footer__copy { margin: 0; font-size: .85rem; color: #d9c9ba; }

/* 404 */
.wb-404 { text-align: center; padding: 64px 0; }
.wb-404 .search-form { margin: 24px auto; }
