/*
Theme Name: Reputation Database
Theme URI: https://www.reputationdb.com/
Description: Bespoke, dependency-free theme for Reputation Database (search-result removal and suppression). Pure HTML + CSS, no page builder, no plugins. Warm, rounded, confident design system (cream paper, chilli accent, filled cards). Single stylesheet is the source of truth; core block/global styles are dequeued in functions.php. Built for speed and WCAG 2.1 AAA.
Author: Reputation Database
Version: 3.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlas
*/

/* ==========================================================================
   0. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -moz-text-size-adjust: 100%; }
ul, ol { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
img:is([sizes=auto i],[sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   1. Tokens
   Warm palette. Every text pair below clears WCAG AAA (7:1 normal / 4.5:1 large):
   ink 16.5:1, ink-soft 9.1:1 and 8.2:1, spice-text 8.2:1, white-on-spice 7.2:1,
   footer-soft 9.5:1 on the dark ground.
   ========================================================================== */
:root {
  --paper: #faf6f0;         /* warm cream */
  --paper-2: #f2e9dc;       /* warm sand: sunk sections, filled cards */
  --paper-3: #ece0cf;       /* deeper sand: hovers, tile fills */
  --ink: #1c1712;           /* warm near-black, 16.5:1 on cream */
  --ink-soft: #4c4237;      /* warm brown-gray, >=8:1 on cream + sand */
  --line: #e6dccb;          /* warm hairline */
  --line-2: #cdbda4;

  --spice: #ff6a2b;         /* bright chilli-amber: decoration + large text only */
  --spice-2: #ff9d5c;       /* lighter tint for accents on dark grounds */
  --spice-deep: #a52714;    /* button fill; white text clears 7.2:1 */
  --spice-text: #8f2011;    /* accent TEXT on light, 8.2:1 on cream / 7.3:1 on sand */
  --spice-hover: #7f1d0f;

  --dark: #211913;          /* warm espresso: footer + CTA band */
  --footer-ink: #f5efe6;
  --footer-soft: #cabda9;   /* 9.5:1 on --dark */

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", "Helvetica", Arial, sans-serif;

  --container: 1240px;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);

  --r: 18px;                /* cards / panels */
  --r-sm: 10px;             /* inputs / chips */
  --r-btn: 12px;

  --shadow: 0 1px 2px rgba(40, 20, 8, .05), 0 14px 30px -18px rgba(40, 20, 8, .22);
  --shadow-lift: 0 2px 4px rgba(40, 20, 8, .06), 0 22px 44px -20px rgba(40, 20, 8, .30);

  --dur: .3s;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--spice); color: #1c1712; }
strong, b { font-weight: 700; }

/* Focus: high-contrast, always visible (AAA) */
:focus-visible { outline: 3px solid var(--spice-deep); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible, .cta-band :focus-visible, .section--dark :focus-visible { outline-color: var(--spice-2); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--spice-deep); color: #fff; padding: .8rem 1.25rem; font-weight: 700; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 1.12rem + 0.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.014em; font-weight: 700; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
p { max-width: var(--measure); }

.lead { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-soft); font-weight: 400; max-width: 44ch; }
/* .serif retained as a class hook; restyled to a warm medium-weight statement (no italic) */
.serif { font-family: var(--font-sans); font-weight: 600; font-style: normal; letter-spacing: -0.018em; }
/* Section label: warm, quiet, sentence-case */
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; text-transform: none; color: var(--spice-text); margin-bottom: 0.9rem; }
.eyebrow a { color: inherit; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 0.14em; }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--sunk { background: var(--paper-2); }
.section--hairline { border-top: 1px solid var(--line); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1.35rem; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Layout utilities */
.u-measure { max-width: 44rem; }
.u-measure-46 { max-width: 46rem; }
.u-measure-wide { max-width: 52rem; }
.u-mt-sm { margin-top: 1.5rem; }
.u-mt { margin-top: 2rem; }
.u-mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.u-mt-xl { margin-top: clamp(2.5rem, 5vw, 4rem); }
.u-flush-top { padding-top: 0; }

/* ==========================================================================
   5. Buttons & link CTAs
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3.25rem; padding: 0.85rem 1.6rem; border: 2px solid transparent; border-radius: var(--r-btn);
  font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.btn::after, button.btn.has-arrow::after { content: "\2192"; font-weight: 600; transition: transform var(--dur) var(--ease); }
a.btn:hover::after { transform: translateX(5px); }
.btn--primary { background: var(--spice-deep); color: #fff; box-shadow: 0 10px 22px -14px rgba(165, 39, 20, .9); }
.btn--primary:hover { background: var(--spice-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(165, 39, 20, .95); }
.btn--lg { min-height: 3.85rem; padding: 1.05rem 2.05rem; font-size: 1.05rem; }

/* Ghost = warm text link with animated chilli underline + arrow */
.btn--ghost {
  min-height: 44px; padding: 0.5rem 0; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  position: relative; gap: 0.5em; box-shadow: none;
}
.btn--ghost::before { content: ""; position: absolute; left: 0; right: 1.5em; bottom: 0.3rem; height: 2.5px; background: var(--spice); border-radius: 2px; transform: scaleX(1); transform-origin: left; transition: transform var(--dur) var(--ease); }
.btn--ghost:hover::before { transform: scaleX(0); transform-origin: right; }
.btn--ghost:hover { color: var(--spice-text); transform: none; }
.section--dark .btn--ghost, .cta-band .btn--ghost { color: #fff; }
.section--dark .btn--ghost::before, .cta-band .btn--ghost::before { background: var(--spice-2); }
.section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { color: var(--spice-2); }

/* Inline arrow link */
.arrow-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--spice-text); }
.arrow-link::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.arrow-link:hover { color: var(--spice-hover); }
.arrow-link:hover::after { transform: translateX(5px); }

/* ==========================================================================
   6. Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; color: var(--ink); }
.brand__mark { width: 1.9rem; height: 1.9rem; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.5rem; height: 2.5px; background: var(--spice); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.nav__list .current-menu-item > a { font-weight: 700; }
.nav .btn { min-height: 2.85rem; padding: 0.6rem 1.3rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; min-width: 44px; padding: 0.5rem 1rem;
    background: transparent; border: 2px solid var(--line-2); border-radius: 999px; font-weight: 700; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 5rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 2rem;
    transform: translateY(-120%); visibility: hidden; transition: transform var(--dur) var(--ease); box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { padding-block: 0.6rem; }
  .nav__list a::after { display: none; }
  .nav .btn { margin-top: 1.25rem; align-self: flex-start; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero { padding-block: clamp(3rem, 7vw, 7rem) clamp(3rem, 6vw, 6rem); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -14%; right: -6%;
  width: min(48vw, 540px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--spice) 26%, transparent), transparent 68%);
}
.hero__grid { display: grid; gap: clamp(2.25rem, 4.5vw, 4.5rem); grid-template-columns: 1.3fr 0.7fr; align-items: start; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 2.25rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

.hero__aside {
  background: var(--paper-2); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow); position: relative;
}
.hero__aside h2 { font-weight: 700; font-style: normal; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1.4rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.hero__aside p { display: none; }
.hero__stat { display: flex; gap: 1rem; align-items: baseline; padding-block: 0.7rem; }
.hero__stat b { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; min-width: 9ch; flex-shrink: 0; color: var(--spice-text); }
.hero__stat span { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.35; }

/* ==========================================================================
   8. Cards (filled, rounded) + audiences
   ========================================================================== */
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow); }
.card__icon { width: 2.35rem; height: 2.35rem; color: var(--spice-deep); margin-bottom: 1.4rem; }
.card__icon svg { width: 2.35rem; height: 2.35rem; }
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--ink-soft); }
.card ul { color: var(--ink-soft); margin-top: 0.4rem; }
.card ul li { position: relative; padding-left: 1.3rem; margin-bottom: 0.6rem; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.65rem; height: 3px; background: var(--spice); border-radius: 2px; }
.audience .card--dark { background: var(--dark); color: var(--footer-soft); border-color: transparent; }
.audience .card--dark h3 { color: #fff; }

/* ==========================================================================
   9. Quote form (boxed, rounded inputs)
   ========================================================================== */
.quote__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: 0.85fr 1.15fr; align-items: start; }
@media (max-width: 960px) { .quote__grid { grid-template-columns: 1fr; } }
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); }
.form-card > h3, .form-card > h2 { margin-bottom: 1.75rem; }
.form-row { margin-bottom: 1.6rem; }
.form-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field-label { display: block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.55rem; color: var(--ink); }
.field-label .req { color: var(--spice-text); margin-left: 0.15em; }
.input, .textarea {
  width: 100%; border: 1.5px solid var(--line-2); background: var(--paper); border-radius: var(--r-sm);
  padding: 0.85rem 1rem; font-size: 1.0625rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #6b6053; }
.input:focus, .textarea:focus { outline: none; border-color: var(--spice-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--spice) 35%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b1160f; }
.checkbox-row { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.75rem; }
.checkbox-row input[type="checkbox"] { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; accent-color: var(--spice-deep); }
.checkbox-row label { color: var(--ink-soft); font-size: 0.98rem; }
.checkbox-row a { color: var(--spice-text); text-decoration: underline; text-underline-offset: 0.16em; font-weight: 600; }
.error-msg { display: none; color: #b1160f; font-weight: 600; font-size: 0.92rem; margin-top: 0.5rem; }
.error-msg::before { content: "\26A0  "; }
.quote__aside h1 { margin-bottom: 0.75rem; }
.quote__aside h2 { margin-bottom: 0.75rem; }
.contact-line { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; margin-top: 1.75rem; font-weight: 700; font-size: 1.2rem; }
.contact-line svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--spice-deep); }
.contact-line a:hover { color: var(--spice-text); }
.assurance { margin-top: 2rem; }
.assurance li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.1rem; color: var(--ink-soft); }
.assurance svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.15rem; color: var(--spice-deep); }

/* ==========================================================================
   10. Blog list + single article
   ========================================================================== */
.page-head { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(1.5rem, 3vw, 3rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { max-width: 48ch; margin-top: 1.5rem; }
.post-list { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.post-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 1.85rem); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1.4rem; background: var(--paper-3); border-radius: var(--r-sm); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-card__meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--spice-text); font-weight: 700; }
.post-card__title { font-size: 1.35rem; line-height: 1.18; letter-spacing: -0.02em; }
.post-card__title a { display: inline; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.post-card p { color: var(--ink-soft); font-size: 0.98rem; }
.post-card__more { margin-top: auto; padding-top: 0.9rem; color: var(--spice-text); font-weight: 700; font-size: 0.95rem; }

.article { max-width: 44rem; margin-inline: auto; padding-block: clamp(3rem, 6vw, 5rem); }
.article > .page-head { padding-top: 0; }
.article__meta { margin-top: 0.9rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.75rem; }
.article__body { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem); line-height: 1.72; }
.article__body > * { max-width: var(--measure); margin-inline: auto; }

/* ==========================================================================
   11. Gutenberg block baseline (core block CSS is dequeued)
   ========================================================================== */
.article__body p { margin-block: 1.25em; }
.article__body h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.05rem); margin-block: 1.8em 0.55em; line-height: 1.2; }
.article__body h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); margin-block: 1.6em 0.5em; line-height: 1.24; }
.article__body ul, .article__body ol { margin-block: 1.25em; padding-left: 0; }
.article__body ol { padding-left: 1.4em; list-style: decimal; }
.article__body ul li, .article__body ol li { margin-bottom: 0.6em; padding-left: 1.6rem; position: relative; }
.article__body ol li { padding-left: 0.4rem; }
.article__body ul li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 0.7rem; height: 3px; background: var(--spice); border-radius: 2px; }
.article__body ol li::marker { color: var(--spice-deep); font-weight: 700; }
.article__body a { color: var(--spice-text); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.16em; font-weight: 600; }
.article__body a:hover { color: var(--spice-hover); text-decoration-thickness: 0.12em; }
.article__body strong { font-weight: 700; }
/* CTAs injected into content (mid-article guide) keep their own button colors,
   not the body-link color/underline (higher specificity than `.article__body a`). */
.article__body a.btn { text-decoration: none; }
.article__body a.btn--primary { color: #fff; }
.article__body a.btn--primary:hover { color: #fff; }
.article__body a.btn--ghost { color: var(--ink); }
.article__body a.btn--ghost:hover { color: var(--spice-text); }

.wp-block-image, .article__body figure { margin-block: 2.25em; max-width: 100%; }
.wp-block-image img, .article__body figure img { width: 100%; height: auto; border-radius: var(--r); }
.wp-block-image figcaption, figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; text-align: center; }

.wp-block-quote, .article__body blockquote {
  margin-block: 2.25em; padding: 1.5rem 1.75rem; border-left: 4px solid var(--spice); background: var(--paper-2); border-radius: var(--r-sm);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: var(--measure);
}
.wp-block-quote p, .article__body blockquote p { max-width: none; margin-block: 0.3em; }
.wp-block-quote cite { display: block; margin-top: 0.8rem; font-size: 0.9rem; font-weight: 400; font-style: normal; color: var(--ink-soft); letter-spacing: 0; }

.wp-block-table, .article__body table { width: 100%; border-collapse: collapse; margin-block: 2em; font-size: 0.98rem; display: block; overflow-x: auto; }
.wp-block-table td, .wp-block-table th, .article__body th, .article__body td { border: 1px solid var(--line-2); padding: 0.7rem 0.9rem; text-align: left; }
.wp-block-table th, .article__body th { font-weight: 700; background: var(--paper-2); }

.wp-block-preformatted, .article__body pre { margin-block: 2em; padding: 1.25rem 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; }

.wp-block-embed, .article__body .wp-block-embed { margin-block: 2.25em; }
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r); }

.aligncenter { margin-inline: auto; text-align: center; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }

/* CTA block at the foot of single posts */
.post-cta { margin-top: 3.5rem; padding: clamp(1.75rem, 3.5vw, 2.5rem); background: var(--paper-2); border: 1px solid var(--line); border-left: 5px solid var(--spice); border-radius: var(--r); max-width: 44rem; margin-inline: auto; box-shadow: var(--shadow); }
.post-cta h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.05rem); margin-bottom: 0.6rem; }
.post-cta p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.post-cta .hero__actions { gap: 1rem 1.75rem; }

/* Mid-article guide CTA */
.mid-cta { background: var(--paper-2); border: 1px solid var(--line); border-left: 5px solid var(--spice); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2rem); margin: 2.75rem auto; max-width: var(--measure); box-shadow: var(--shadow); }
.mid-cta__label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--spice-text); font-weight: 700; margin: 0 0 0.5rem; max-width: none; }
.mid-cta__title { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.5rem; max-width: none; color: var(--ink); }
.mid-cta__text { color: var(--ink-soft); margin: 0 0 1.25rem; max-width: none; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 4rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.7rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-weight: 700; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.pagination .page-numbers:hover { border-color: var(--spice-deep); color: var(--spice-text); }
.pagination .current { background: var(--spice-deep); border-color: var(--spice-deep); color: #fff; }

/* Table of contents */
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.6rem; margin: 0 auto 2.75rem; max-width: var(--measure); }
.toc__title { font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--spice-text); font-weight: 700; margin-bottom: 0.75rem; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin: 0.4rem 0; line-height: 1.35; }
.toc__list a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.toc__list a:hover { border-bottom-color: var(--spice); color: var(--spice-text); }
.toc__sub { padding-left: 1.25rem; }
.toc__sub a { color: var(--ink-soft); font-size: 0.95rem; }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: var(--measure); margin: 2.75rem auto 0; }
.post-tags a { font-size: 0.85rem; padding: 0.45rem 0.95rem; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink-soft); text-decoration: none; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.post-tags a:hover { border-color: var(--spice-deep); color: var(--spice-text); background: var(--paper); }

/* Related articles */
.related { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.related__title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.related .post-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.related .post-card__title { font-size: 1.2rem; }

/* ==========================================================================
   11b. Interior pages: intro, feature grid, source tiles, checklist, CTA band
   ========================================================================== */
.page-intro { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(2rem, 4vw, 3.5rem); }
.page-intro h1 { max-width: 18ch; margin-bottom: 0.5em; }
.page-intro .lead { max-width: 46ch; }
.page-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }

/* Feature grid: filled rounded panels with a chilli marker (was hairline term/desc rows) */
.feature-list { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0; }
.feature-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow); }
.feature-item h3 { margin: 0 0 0.6rem; padding-top: 1.1rem; position: relative; }
.feature-item h3::before { content: ""; position: absolute; top: 0; left: 0; width: 2.25rem; height: 0.35rem; background: var(--spice); border-radius: 3px; }
.feature-item p { margin: 0; color: var(--ink-soft); max-width: none; }
.feature-item p + p { margin-top: 0.8em; }

/* Result-source tiles (rounded, filled; was connected hairline grid) */
.source-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.source-grid li { background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); min-height: 4.5rem; display: flex; align-items: center; padding: 1rem 1.25rem; font-weight: 600; letter-spacing: -0.01em; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.source-grid li:hover { border-color: var(--spice-deep); transform: translateY(-2px); }
.section--sunk .source-grid li { background: var(--paper); }
.source-note { color: var(--ink-soft); margin-top: 1.5rem; max-width: 60ch; }

/* Checklist (Why Choose Us) */
.checklist { display: grid; gap: 1.2rem; max-width: 46rem; }
.checklist li { display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.9rem; align-items: start; }
.checklist svg { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; color: var(--spice-deep); }
.checklist b { font-weight: 700; }
.checklist span { color: var(--ink-soft); }

/* Dark call-to-action band */
.cta-band, .section--dark { background: var(--dark); color: var(--footer-soft); position: relative; overflow: clip; }
.section.cta-band { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.cta-band::before { content: ""; position: absolute; z-index: 0; bottom: -30%; left: -4%; width: min(40vw, 460px); aspect-ratio: 1; pointer-events: none; background: radial-gradient(circle at center, color-mix(in srgb, var(--spice) 20%, transparent), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2, .section--dark h2 { color: #fff; max-width: 20ch; }
.cta-band p, .section--dark p { color: var(--footer-soft); max-width: 48ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.cta-band .btn--primary { background: var(--spice-deep); color: #fff; }
.cta-band .btn--primary:hover { background: var(--spice-hover); color: #fff; }

/* Simple contact detail rows */
.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-details li { display: grid; gap: 0.15rem; }
.contact-details .k { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--spice-text); font-weight: 700; }
.contact-details .v { font-size: 1.15rem; font-weight: 600; }
.contact-details a { color: var(--spice-text); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.16em; }

/* Legal / about prose */
.legal .article__body h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); }
.legal .article__body { font-size: 1.0625rem; line-height: 1.65; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2rem; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--footer-soft); padding-block: clamp(4rem, 7vw, 6rem) 2.25rem; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: var(--spice-2); }
.footer-grid { display: grid; gap: 2.75rem; grid-template-columns: 1.7fr 1fr 1fr; margin-bottom: 3.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.footer-col p { color: var(--footer-soft); }
.footer-col h4 { color: #fff; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.25rem; font-weight: 700; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; font-size: 0.86rem; }

/* ==========================================================================
   13. Motion — subtle scroll reveal (CSS-only, reduced-motion safe)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__grid > *, .card, .post-card, .feature-item, .form-card, .quote__aside, .page-head > *, .section > .container > .stack {
      animation: rdb-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 20%;
    }
  }
}
@keyframes rdb-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.anchor-offset { scroll-margin-top: 7rem; }

.article__updated{max-width:var(--measure,68ch);margin:2.75rem auto 0;padding-top:1.2rem;border-top:1px solid rgba(0,0,0,.12);font-size:.85rem;letter-spacing:.03em;opacity:.6}
