/* Information Websites template. Palette and fonts are written by scripts/new_site.py */
:root {
    /* palette:start (written by scripts/new_site.py) */
    --ground: #FBFAF7;
    --white: #FFFFFF;
    --silver: #C9D0DD;
    --silver-light: #E8ECF3;
    --teal: #2457C5;
    --teal-tint: #E6EDFB;
    --teal-text: #1D4BAD;
    --teal-deep: #14336F;
    --coral: #FFC93C;
    --coral-tint: #FFF3CF;
    --ink: #14213D;
    --ink-soft: #3A4660;
    --muted: #4F5B73;
    --accent-on-dark: #7498E6;
    --cta-on-dark: #FFE298;
    --cta-hover: #FFC222;
    --ink-hover: #0E172A;
    --on-dark-soft: #D4D8E2;
    --serif: 'Bricolage Grotesque', Georgia, 'Times New Roman', serif;
    --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* palette:end */
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); margin: 0 0 12px; }
.eyebrow a { text-decoration: none; }
.h-display { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }
.on-dark, a.on-dark { color: #fff; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
    background: var(--white); color: var(--ink); border-color: var(--silver);
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--cta-hover); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--silver-light); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav-search { display: flex; align-items: center; border: 1px solid var(--silver-light); border-radius: 999px; padding: 0 4px 0 14px; background: var(--ground); }
.nav-search input { border: 0; background: transparent; font: inherit; font-size: 15px; width: 100%; min-height: 0; height: 42px; padding: 0; color: var(--ink); outline: none; }
@media (min-width: 1101px) {
    .nav-search { border: 0; padding: 0; background: none; }
    .nav-search input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .nav-search button { width: 44px; height: 44px; border: 1px solid var(--silver-light); border-radius: 999px; background: var(--white); }
}
.nav-search button { border: 0; background: none; width: 36px; height: 36px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--silver-light); background: var(--white); border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ''; transition: transform .2s; }
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -6px; left: 0; }
.nav-toggle-bars::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--silver-light); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--silver-light); }
    .nav-search input { width: 100%; }
}

.breadcrumbs ol { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--silver); }
.breadcrumbs a { color: var(--muted); }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 500; }
.flash-success { background: var(--teal-tint); color: var(--teal-deep); }
.flash-error { background: var(--coral-tint); color: #8A2E23; }

/* Sections */
.section { padding: 88px 0; }
.section.container { padding-left: 24px; padding-right: 24px; }
.section-tight { padding: 24px 0 72px; }
.section-tight.container { padding-left: 24px; padding-right: 24px; }
.section-intro { max-width: 680px; margin-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head > div { max-width: 680px; }
.section-head p { margin: 0; }
.band-white { background: var(--white); border-top: 1px solid var(--silver-light); border-bottom: 1px solid var(--silver-light); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .h-display { color: #fff; }
.band-ink .section-intro { color: var(--silver); }
.band-teal { background: var(--teal-tint); color: var(--teal-deep); }
.band-teal .h-display { color: var(--teal-deep); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > .prose { flex: 999 1 520px; min-width: 0; }
.split > aside, .split > .grid { flex: 1 1 360px; min-width: 0; }
.split > .marks { flex: 1 1 520px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-text h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; margin-bottom: 20px; }
.hero-text .lead { margin-bottom: 32px; }
.hero-art { flex: 1 1 400px; min-width: 0; }
.hero-art img { width: 100%; max-width: 560px; margin: 0 auto; }
.trust-strip { background: var(--white); border-top: 1px solid var(--silver-light); border-bottom: 1px solid var(--silver-light); }
.trust-strip ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; font-weight: 500; font-size: 15px; }
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip svg { color: var(--teal); flex: none; }

/* Facts box */
.facts { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 28px; }
.facts h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.facts dl { margin: 0; display: grid; gap: 14px; font-size: 15px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 2px 0 0; color: var(--ink-soft); }

/* Cards */
.guide-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--ground); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 24px; transition: border-color .15s, transform .15s; }
.band-white .guide-card { background: var(--ground); }
.guide-card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--ink); }
.guide-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--teal-tint); margin-bottom: 8px; }
.guide-card .num { font-size: 13px; font-weight: 600; color: var(--teal-text); }
.guide-card .guide-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.guide-card .muted { font-size: 15px; }

.style-card { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 20px; }
.style-card img { flex: none; width: 112px; height: 112px; border-radius: 14px; background: var(--teal-tint); }
.style-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.style-card p { font-size: 15px; margin: 0; }
.cards-grid { margin-bottom: 32px; }

.timeline { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.timeline li { border-top: 3px solid var(--teal); padding-top: 20px; }
.timeline li.t-now { border-top-color: var(--coral); }
.timeline .t-when { font-size: 14px; font-weight: 600; color: var(--accent-on-dark); margin-bottom: 6px; }
.timeline .t-now .t-when { color: var(--cta-on-dark); }
.timeline h3 { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.timeline p { font-size: 15px; color: var(--on-dark-soft); margin: 0; }

.marks { gap: 16px; }
.mark-card { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 24px; }
.mark-card img { margin-bottom: 12px; }
.mark-card .eyebrow { margin-bottom: 4px; }
.mark-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.mark-card p:last-child { margin: 0; font-size: 15px; }
.mark-accent { background: var(--teal-tint); border-color: #A9E0D8; color: var(--teal-deep); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px; color: var(--ink); }
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.steps p { font-size: 15px; margin: 0; color: var(--ink-soft); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--teal); color: var(--teal-deep); font-weight: 700; margin-bottom: 14px; }

/* Badges, listings and resources */
.badge { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-deep); }
.listing-card { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.listing-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--teal-tint); }
.listing-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.listing-body h3 { font-size: 19px; font-weight: 600; margin: 0; }
.listing-body h3 a { color: var(--ink); text-decoration: none; }
.listing-body h3 a:hover { color: var(--teal-text); }
.listing-body p { margin: 0; font-size: 15px; }
.listing-page { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 32px; align-items: flex-start; }
.listing-main { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.listing-main h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
.listing-hero { width: 100%; border-radius: var(--radius); margin: 8px 0 28px; background: var(--teal-tint); }
.listing-facts { flex: 1 1 300px; position: sticky; top: 96px; }
.listing-facts h2 { font-size: 18px; font-weight: 600; }
.listing-facts img { border-radius: var(--radius-sm); margin-bottom: 16px; width: 100%; }
.listing-facts .btn { margin-top: 16px; }
.listing-facts dd a { word-break: break-word; }
.note-block { margin-top: 40px; color: var(--ink-soft); }

.callout { border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.callout > div { flex: 1 1 520px; min-width: 0; }
.callout p { font-size: 18px; margin: 0; }
.callout .h-display { font-size: clamp(30px, 3.4vw, 40px); }
.callout-coral { background: var(--coral); color: var(--ink); }
.callout-teal { background: var(--teal-tint); color: var(--teal-deep); }

/* Posts */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--teal-tint); }
.post-card .eyebrow { margin: 6px 0 0; font-size: 12px; }
.post-card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal-text); }
.post-card p { margin: 0; font-size: 15px; }

/* FAQs */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin: 32px 0; }
.faq-list details { background: var(--white); border: 1px solid var(--silver-light); border-radius: 16px; padding: 0 24px; }
.faq-list summary { font-size: 18px; font-weight: 600; cursor: pointer; padding: 20px 32px 20px 0; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 26px; color: var(--teal-text); font-weight: 400; }
.faq-list details[open] summary::after { content: '–'; }
.faq-answer { color: var(--ink-soft); padding-bottom: 20px; }
.faq-answer p:last-child { margin: 0; }

/* Page heads */
.page-head { padding-top: 48px; padding-bottom: 32px; }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5vw, 56px); line-height: 1.08; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }
.page-head.center img { margin: 0 auto 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--silver); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { background: var(--white); border: 1px dashed var(--silver); border-radius: var(--radius); padding: 32px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--silver); text-decoration: none; color: var(--ink); background: var(--white); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Articles */
.article-hero { background: var(--white); border-bottom: 1px solid var(--silver-light); }
.article-hero-plain { background: transparent; border: 0; }
.article-hero-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.article-hero-inner > div:first-child { flex: 999 1 520px; min-width: 0; }
.article-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.08; }
.article-hero-art { flex: 1 1 300px; min-width: 0; }
.article-hero-art img { width: 100%; max-width: 420px; border-radius: var(--radius); background: var(--teal-tint); aspect-ratio: 21 / 16; object-fit: cover; }
.byline { font-size: 14px; color: var(--muted); margin: 0; }
.byline a { color: var(--muted); }
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: flex-start; }
.article-main { flex: 999 1 600px; min-width: 0; max-width: 760px; }
.no-toc .article-main { margin: 0 auto; }
.toc { flex: 1 1 240px; max-width: 300px; position: sticky; top: 96px; background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 24px; font-size: 15px; }
.toc h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal-text); text-decoration: underline; }
@media (max-width: 960px) { .toc { position: static; max-width: none; } }

.prose { font-size: 18px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 36px); margin: 1.6em 0 .5em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 600; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--teal); font-family: var(--serif); font-size: 24px; line-height: 1.35; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--silver-light); vertical-align: top; }
.prose th { background: var(--teal-tint); color: var(--teal-deep); font-weight: 600; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose img { border-radius: var(--radius-sm); }
.prose .note, .prose aside { background: var(--teal-tint); color: var(--teal-deep); border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.5em 0; font-size: 17px; }
.prose .note p:last-child, .prose aside p:last-child { margin: 0; }
.prose .key-points { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2em; }
.prose .key-points p:first-child { font-weight: 700; margin-bottom: .5em; }
.prose .key-points ul { margin: 0; }
.prose dl dt { font-weight: 700; margin-top: 1em; }
.prose dl dd { margin: .2em 0 0; color: var(--ink-soft); }

.article-faqs, .hub-guides, .sources, .ask { margin-top: 56px; }
.article-faqs h2, .hub-guides h2, .ask h2 { font-family: var(--serif); font-weight: 700; font-size: 32px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--silver-light); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); font-weight: 600; }
.pager a:hover { border-color: var(--teal); }
.pager-next { text-align: right; grid-column: 2; }
.author-box { margin-top: 48px; padding: 24px; background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); display: flex; gap: 20px; align-items: flex-start; }
.author-box img { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; flex: none; background: var(--teal-tint); }
.author-box p { margin: 0 0 6px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.byline p { margin: 0; }
.byline a { color: var(--muted); }
.byline-avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; flex: none; background: var(--teal-tint); }
.reviewed { white-space: nowrap; }
.affiliate-note { font-size: 14px; color: var(--ink-soft); background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 24px; }

/* Sources, key facts, ask a question */
.sources h2 { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-text); }
.sources ol { padding-left: 1.3em; font-size: 15px; color: var(--ink-soft); display: grid; gap: 6px; }
.sources a { word-break: break-word; }
.fact-box { margin-top: 40px; background: var(--teal-tint); color: var(--teal-deep); border-radius: var(--radius); padding: 24px 28px; }
.fact-box h2 { font-size: 20px; font-weight: 600; }
.fact-box ul { margin: 0 0 8px; padding-left: 1.2em; display: grid; gap: 8px; }
.fact-box a { color: var(--teal-deep); }
.fact-source { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.fact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.fact-grid li { background: var(--ground); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--teal); }
.fact-text { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0; }
.fact-groups { counter-reset: fact; }
.fact-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; }
.fact-list li { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 22px 24px 22px 64px; position: relative; scroll-margin-top: 96px; }
.fact-list li::before { counter-increment: fact; content: counter(fact); position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-deep); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.fact-list li:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.fact-list p { margin: 6px 0 0; }
.facts-topic { margin-top: 32px; font-size: clamp(26px, 3vw, 34px); }
.ask { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 28px; }
.ask-form { display: flex; flex-direction: column; gap: 14px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ask-row .field { flex: 1 1 220px; }
.ask-form textarea { min-height: 96px; }
.ask-form .btn { align-self: flex-start; }

/* Topic hubs, authors, timeline */
.hub-group { padding-top: 32px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.author-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.author-card { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 24px; }
.author-card img { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; flex: none; background: var(--teal-tint); }
.author-card h2 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.author-card h2 a { color: var(--ink); text-decoration: none; }
.author-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.author-head img { width: 160px; height: 160px; border-radius: 999px; object-fit: cover; background: var(--teal-tint); }
.author-head > div { flex: 1 1 420px; }
.author-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
.reviewed-head { margin-top: 48px; }
.vtimeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--teal-tint); display: grid; gap: 36px; }
.vtimeline li { position: relative; scroll-margin-top: 96px; }
.vtimeline li::before { content: ''; position: absolute; left: -38px; top: 4px; width: 17px; height: 17px; border-radius: 999px; background: var(--teal); border: 3px solid var(--ground); }
.vtimeline li.is-legend::before { background: var(--coral); }
.vtimeline .t-when { font-weight: 700; color: var(--teal-text); margin: 0 0 4px; }
.vtimeline h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; }
.vtimeline img { border-radius: var(--radius-sm); margin: 8px 0 12px; }
.vtimeline .prose { font-size: 17px; }

/* Video and ads */
.video { margin: 1.8em 0; }
.video-play, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); position: relative; padding: 0; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; opacity: .9; }
.video-icon { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 999px; background: var(--coral); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.video-icon::after { content: ''; position: absolute; left: 29px; top: 22px; border-left: 20px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-play:hover .video-icon, .video-play:focus-visible .video-icon { transform: scale(1.06); }
.ad-slot, .prose .ad-slot { margin: 2em 0; min-height: 280px; text-align: center; background: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; }
.ad-slot.is-empty { display: none; }
.ad-slot-sidebar { min-height: 250px; margin-top: 24px; }
.ad-slot-home { margin: 40px 0; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* Filters and form controls */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 32px; padding: 20px; background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; flex: 1 1 160px; }
:where(select, input[type="text"], input[type="email"], input[type="search"], input[type="url"], input:not([type]), textarea) {
    font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--silver); border-radius: 12px; padding: 10px 14px; min-height: 44px; width: 100%;
}
:where(textarea) { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 4px; }
.price { font-weight: 700; color: var(--ink); }
.price-lg { font-size: 28px; margin: 0 0 8px; }
.stock { font-size: 14px; font-weight: 600; color: var(--teal-text); margin: 0 0 16px; }
.stock.sold { color: #8A2E23; }

/* Workshops */
.workshop-list { display: flex; flex-direction: column; gap: 20px; }
.workshop { display: flex; flex-wrap: wrap; gap: 24px; background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 24px; }
.workshop-date { flex: 0 0 96px; text-align: center; background: var(--teal-tint); color: var(--teal-deep); border-radius: 16px; padding: 14px 8px; align-self: flex-start; font-weight: 600; }
.workshop-date .day { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 400; }
.workshop-body { flex: 999 1 360px; min-width: 0; }
.workshop-body h2 { font-size: 24px; }
.workshop-body .prose { font-size: 16px; }
.workshop-cta { flex: 1 1 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-error { color: #A13A2E; font-size: 14px; margin: 6px 0 0; }
.has-error input, .has-error textarea { border-color: #C2493B; }
.search-big { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.search-big input { flex: 1 1 260px; }
.search-results { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 20px; }
.search-results a { font-size: 19px; font-weight: 600; }
.search-results p { margin: 4px 0 0; }

/* Subscribe + footer */
.subscribe { background: var(--silver); }
.subscribe-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.subscribe-inner > div { flex: 1 1 420px; }
.subscribe h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.subscribe p { margin: 0; color: #2E4757; }
.subscribe-form { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 12px; }
.subscribe-form input[type="email"] { flex: 1 1 240px; border-radius: 999px; padding: 0 20px; min-height: 52px; border-color: #9AA4B0; }
.subscribe-form .btn { min-height: 52px; }
.subscribe-form .small { flex-basis: 100%; font-size: 13px; }
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-logo { font-family: var(--serif); font-weight: 800; font-size: 24px; color: #fff; margin-bottom: 12px; }
.site-footer h2 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-disclosure { font-size: 13px; color: #B8C2CC; }
.footer-bottom { border-top: 1px solid #3A5568; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #B8C2CC; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); padding: 20px; box-shadow: 0 12px 40px rgba(31, 58, 77, .18); z-index: 60; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 15px; }
.cookie-banner div { display: flex; gap: 8px; }

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .callout { padding: 32px 24px; }
    .prose { font-size: 17px; }
    .style-card img { width: 84px; height: 84px; }
    .pager { grid-template-columns: 1fr; }
    .pager-next { grid-column: 1; }
    .author-box { flex-direction: column; }
    .author-list { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; }
    .listing-facts { position: static; }
    .fact-list li { padding-left: 56px; }
}

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

/* Themes catalogue, banners and download gate (WordPressThemes.uk extras) */
.theme-grid { gap: 24px; }
.theme-card { background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.theme-shot { display: block; aspect-ratio: 4 / 3; background: var(--silver-light); overflow: hidden; border-bottom: 1px solid var(--silver-light); }
.theme-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.theme-card:hover .theme-shot img { transform: scale(1.02); }
.theme-card-body { padding: 18px 20px 20px; }
.theme-card-body h3 { font-size: 21px; margin: 6px 0; }
.theme-card-body h3 a { color: var(--ink); text-decoration: none; }
.theme-card-body h3 a:hover { text-decoration: underline; }
.theme-card-body p { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.theme-meta { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.price { font-weight: 700; font-size: 15px; }
.price-free { color: #1F6B3A; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--silver); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.filter-pills a span { font-weight: 400; margin-left: 4px; color: var(--muted); }
.filter-pills a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-pills a[aria-current="page"] span { color: var(--silver); }
.theme-page { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 32px; align-items: flex-start; }
.theme-main { flex: 999 1 560px; min-width: 0; }
.theme-main h1 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; }
.theme-hero-shot { margin: 24px 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--silver-light); box-shadow: 0 16px 40px rgba(20, 33, 61, .08); }
.theme-side { flex: 1 1 300px; max-width: 380px; position: sticky; top: 16px; }
@media (max-width: 900px) { .theme-side { position: static; max-width: none; } }
.theme-price { font-family: var(--serif); font-size: 34px; font-weight: 700; margin: 0 0 12px; }
.theme-specs { display: grid !important; grid-template-columns: max-content 1fr; gap: 8px 16px !important; margin-bottom: 20px !important; }
.theme-specs dd { margin: 0 !important; }
.tick-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 28px; }
.tick-list li { padding-left: 30px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4BAD' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.steps-list { padding-left: 22px; display: grid; gap: 8px; }
.gate-form .btn { margin-top: 4px; }
.gate-form .small { margin-top: 10px; }
.banner { margin: 28px auto; text-align: center; max-width: 100%; }
.banner a { display: inline-block; }
.banner img { display: inline-block; max-width: 100%; height: auto; border-radius: 8px; }
.banner-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.home-builder-steps { counter-reset: s; }
.theme-cta { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.theme-cta > div { flex: 1 1 380px; }
.steps .step-num { color: #FFFFFF; }
@media (max-width: 480px) { .logo { font-size: 19px; gap: 8px; } .logo img { width: 30px; height: 30px; } }
