/* ============================================================================
   Pure-K — the whole stylesheet.
   Palette and type come from the Elementor kit (data/design-tokens.json); the
   component layer is the 2026 rebuild. One file, no build step, no framework.
   Order: tokens · reset · primitives · header · sections · components · footer.
   ========================================================================= */

:root {
  /* brand (docs/03-design-system.md) */
  --forest: #1c5436;
  --leaf: #2e7d4f;
  --ink-soft: #33473d;
  --gold: #c9a35b;
  --ink: #0f1b16;
  --mist: #e4f1e8;
  --paper: #f7f9f4;
  --white: #fff;

  /* derived scale */
  --forest-950: #08150e;
  --forest-900: #0f2e1d;
  --forest-800: #163f28;
  --leaf-100: #d3e9db;
  --leaf-50: #eef7f1;
  /* --leaf is 4.34:1 on --mist, which the light hero's gradient starts from — it fails
     AA as small text there. This is the same green taken down until it clears 4.5:1 on
     every ground the site uses. --leaf stays for borders, icons and hover states. */
  --leaf-text: #276a43;
  --gold-soft: #f0e3c8;
  /* --gold is 3.7:1 on --forest, which fails AA for text. This is the same hue lifted
     until it clears 4.5:1 — use it for gold WORDS on a forest ground; --gold itself is
     fine for rules, icons and anything decorative. */
  --gold-light: #e0c48f;
  --sand: #fbfaf5;
  --muted: #5d6f66;
  --line: rgba(28, 84, 54, 0.14);
  --line-strong: rgba(28, 84, 54, 0.26);
  --danger: #8b1f1f;
  --danger-bg: #fdecec;

  /* type */
  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.38rem, 1.26rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.65rem, 1.42rem + 1.15vw, 2.35rem);
  --step-4: clamp(2rem, 1.55rem + 2.2vw, 3.25rem);

  /* space + shape */
  --container: 1160px;
  --narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --sec-y: clamp(3.25rem, 7vw, 5.75rem);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 22, 0.05), 0 2px 8px rgba(15, 27, 22, 0.04);
  --shadow: 0 2px 4px rgba(15, 27, 22, 0.04), 0 12px 32px -12px rgba(15, 27, 22, 0.16);
  --shadow-lg: 0 8px 20px -8px rgba(15, 27, 22, 0.16), 0 32px 60px -30px rgba(15, 27, 22, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* the droplet silhouette, used as a watermark mask in heroes and CTA bands */
  --drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 128'%3E%3Cpath d='M50 6C50 6 86 58 86 86A36 36 0 1 1 14 86C14 58 50 6 50 6Z' fill='%23000'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.028em; }
h2 { font-size: var(--step-3); letter-spacing: -0.022em; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.012em; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--leaf); }
hr { border: 0; border-top: 1px solid var(--line); margin: clamp(2rem, 5vw, 3rem) 0; }
strong, b { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 2.5px solid var(--leaf); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--mist); color: var(--ink); }

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

/* ----------------------------------------------------------- primitives */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 200; background: var(--white); color: var(--forest);
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 700;
}

.eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; font-size: 0.7rem; color: var(--leaf-text); margin: 0 0 0.9rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--gold); border-radius: 2px; flex: none; }
.eyebrow.center { justify-content: center; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--forest); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.005em; padding: 0.82rem 1.45rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid var(--forest); cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  box-shadow: 0 1px 2px rgba(15, 27, 22, 0.14);
}
.btn:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.05em; height: 1.05em; flex: none; }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--white); border-color: var(--forest); color: var(--forest); }
.btn-light { background: var(--white); color: var(--forest); border-color: var(--white); }
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--forest); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head);
  font-weight: 700; font-size: 0.92rem; text-decoration: none; color: var(--forest);
}
.arrow-link .ico { width: 1.05em; height: 1.05em; transition: transform 0.18s var(--ease); }
.arrow-link:hover .ico { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; background: var(--mist); color: var(--forest);
  font-family: var(--font-head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid transparent;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.badge-gold { background: var(--gold-soft); color: #7a5b18; }
.badge-outline { background: transparent; border-color: var(--line-strong); color: var(--leaf-text); }

/* brand artwork — real PNGs, so these only size and place them */
.pk-mark { display: block; height: auto; }
.pk-logo { display: block; width: auto; }
.pk-lockup { display: inline-flex; align-items: center; gap: calc(var(--mark-size, 64px) * 0.16); }
.pk-designation {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: calc(var(--mark-size, 64px) * 0.46); line-height: 1;
}
.ico { width: 24px; height: 24px; flex: none; }

/* ---------------------------------------------------------------- header */

.topbar {
  background: var(--forest-900); color: #bcd6c6; font-size: 0.8rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .dot { color: var(--gold); }
@media (max-width: 860px) { .topbar { display: none; } }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
/* backdrop-filter would make the header a containing block for the fixed-position
   mobile drawer, which clips it to the header's own box — so only frost the bar at
   widths where the drawer is not used. */
@media (min-width: 1061px) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header .container { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand .pk-logo { height: 32px; width: auto; display: block; transition: opacity 0.18s var(--ease); }
.brand:hover .pk-logo { opacity: 0.72; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav > * { position: relative; }
.nav-link,
.nav-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-head);
  font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); text-decoration: none;
  padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); background: none; border: 0;
  cursor: pointer; font-family: var(--font-head); line-height: 1.2;
}
.nav-link:hover, .nav-trigger:hover { color: var(--forest); background: var(--leaf-50); }
.nav-link[aria-current="page"] { color: var(--forest); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.18rem;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-trigger .ico { width: 0.75rem; height: 0.75rem; transition: transform 0.18s var(--ease); }
/* the section you are in stays marked even when its menu is closed */
.nav-trigger[data-section="current"] { color: var(--forest); }
.nav-trigger[data-section="current"]::after {
  content: ""; position: absolute; left: 0.7rem; right: 1.55rem; bottom: 0.18rem;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.menu a[aria-current="page"] { background: var(--mist); }
.menu a[aria-current="page"] strong { color: var(--forest); }
.nav-group[data-open="true"] .nav-trigger .ico { transform: rotate(90deg); }
.nav-group[data-open="true"] .nav-trigger { color: var(--forest); background: var(--leaf-50); }

.menu {
  position: absolute; top: calc(100% + 0.55rem); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.7rem; min-width: 280px; z-index: 70;
  opacity: 0; visibility: hidden; transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.nav-group[data-open="true"] .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu.wide { min-width: 520px; }
.menu-grid { display: grid; gap: 0.15rem; }
.menu.wide .menu-grid { grid-template-columns: 1fr 1fr; gap: 0.15rem 0.5rem; }
.menu a {
  display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
}
.menu a:hover { background: var(--leaf-50); }
.menu a .ico { width: 1.15rem; height: 1.15rem; color: var(--leaf); margin-top: 0.15rem; }
.menu strong { display: block; font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.menu span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.menu-foot {
  margin-top: 0.4rem; padding: 0.65rem 0.7rem 0.3rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.menu-foot span { font-size: 0.78rem; color: var(--muted); }

.nav-cta { margin-left: 0.45rem; }
.nav-toggle {
  display: none; margin-left: auto; background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0.45rem 0.6rem; color: var(--forest); cursor: pointer;
  align-items: center; gap: 0.45rem; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
}
.nav-toggle .bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars i { top: 5px; }
.nav-toggle .bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.15rem 2.5rem;
    overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform 0.26s var(--ease); z-index: 90;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav-close {
    align-self: flex-end; background: none; border: 0; font-size: 1.6rem; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 0.25rem 0.4rem; margin-bottom: 0.25rem;
  }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--forest); }
  .menu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.35rem 0 0.8rem;
    min-width: 0; display: none;
  }
  .menu.wide { min-width: 0; }
  .menu.wide .menu-grid { grid-template-columns: 1fr; }
  .nav-group[data-open="true"] .menu { display: block; transform: none; }
  .nav-cta { margin: 1.1rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(15, 27, 22, 0.42); z-index: 80;
    opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease), visibility 0.22s;
  }
  body[data-nav="open"] .nav-scrim { opacity: 1; visibility: visible; }
  body[data-nav="open"] { overflow: hidden; }
}
@media (min-width: 1061px) { .nav-close, .nav-scrim { display: none; } }

/* --------------------------------------------------------------- sections */

main { display: block; }
.section { padding: var(--sec-y) 0; }
.section.tight { padding: clamp(2.25rem, 4.5vw, 3.25rem) 0; }
.section-tint { background: linear-gradient(180deg, var(--leaf-50), var(--sand)); border-block: 1px solid var(--line); }
.section-mist { background: var(--mist); border-block: 1px solid rgba(28, 84, 54, 0.1); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; margin: 0; }
.section-head.center p { margin-inline: auto; }
.section-foot { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); max-width: 46rem; color: var(--muted); font-size: var(--step-1); }

/* hero */
.hero {
  position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.75rem, 6vw, 5rem);
  background: linear-gradient(165deg, var(--mist) 0%, var(--sand) 58%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; right: -6%; top: -18%; width: min(46vw, 560px); aspect-ratio: 100/128;
  background: currentColor; color: rgba(28, 84, 54, 0.045); pointer-events: none;
  -webkit-mask: var(--drop) no-repeat center / contain; mask: var(--drop) no-repeat center / contain;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 0.7rem; max-width: 22ch; text-wrap: pretty; }
.hero-grid.split h1 { max-width: none; }
.hero .lede { margin-bottom: 1.6rem; }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid.split { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); } }
.hero-narrow h1 { max-width: 24ch; }
.hero.compact { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero.compact h1 { max-width: 28ch; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.45rem 1.05rem; align-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--leaf-text); margin-bottom: 1.1rem;
}
.trust-strip li { display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.trust-strip { list-style: none; padding: 0; }
.trust-strip .ico { width: 0.95rem; height: 0.95rem; color: var(--gold); }

.photo-band { margin: 0; }
.photo-band img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 21 / 9; object-fit: cover;
}
.photo-band figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted); }

/* photographic hero — the treatment the WordPress original used, rebuilt with a real
   <img> so it carries a srcset. Text sits on a forest scrim dark enough for AA. */
/* Photographic hero — the treatment the WordPress original used, rebuilt with a real
   <img> so it carries a srcset.

   Colours go through four inherited custom properties rather than a pile of
   `.hero-photo X { color: … }` rules. That matters because the hero can contain a
   WHITE card (the category jump list, the quote form), and every flat override had to
   be undone inside it one selector at a time — which is how the jump-list links ended
   up white on white. `.hero-panel` simply re-points the four properties at the
   light-ground palette and everything beneath it follows. */
.hero-photo {
  background: var(--forest-950); border-bottom: 0;
  --on: #fff;                 /* headings */
  --on-soft: #d5e4da;         /* body copy */
  --on-quiet: #a8c0b1;        /* breadcrumbs, meta */
  --on-accent: var(--gold);   /* eyebrows, icons */
  --on-rule: rgba(255, 255, 255, 0.28);
  --on-chip: rgba(255, 255, 255, 0.14);
}
.hero-photo .hero-panel {
  --on: var(--ink);
  --on-soft: var(--ink-soft);
  --on-quiet: var(--muted);
  --on-accent: var(--leaf);
  --on-rule: var(--line);
  --on-chip: var(--mist);
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(6px);
}
.hero-photo .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8, 21, 14, 0.94) 0%, rgba(8, 21, 14, 0.82) 42%, rgba(8, 21, 14, 0.66) 100%),
    linear-gradient(0deg, rgba(8, 21, 14, 0.5), rgba(8, 21, 14, 0.5));
}
.hero-photo::after { color: rgba(255, 255, 255, 0.05); z-index: 1; }

.hero-photo h1, .hero-photo h2, .hero-photo h3 { color: var(--on); }
.hero-photo .lede, .hero-photo p, .hero-photo li, .hero-photo .form-note { color: var(--on-soft); }
.hero-photo .eyebrow, .hero-photo .seal-label { color: var(--on-accent); }
.hero-photo .eyebrow::before { background: var(--on-accent); }
.hero-photo .breadcrumbs, .hero-photo .breadcrumbs a { color: var(--on-quiet); }
.hero-photo .breadcrumbs [aria-current] { color: var(--on); }
.hero-photo .breadcrumbs .sep { color: var(--on-rule); }
.hero-photo .trust-strip { color: var(--on-soft); }
.hero-photo .trust-strip .ico, .hero-photo .form-note .ico { color: var(--on-accent); }
.hero-photo .checklist .ico { background: var(--on-chip); color: var(--on-accent); }
.hero-photo .checklist a { color: var(--on); }
.hero-photo .arrow-link { color: var(--on); }
.hero-photo .badge-gold { background: rgba(201, 163, 91, 0.2); color: var(--on-accent); }

/* buttons carry their own palette; only the ones ON the photograph invert */
.hero-photo .btn { background: var(--white); color: var(--forest); border-color: var(--white); }
.hero-photo .btn:hover { background: var(--mist); border-color: var(--mist); color: var(--forest); }
.hero-photo .btn-ghost {
  background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.hero-photo .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; color: #fff; }

.hero-media { margin: 0; }
.hero-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}

.hero-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: var(--shadow-lg);
}
.hero-panel h2 { font-size: var(--step-1); margin-bottom: 0.9rem; }

.seal {
  display: grid; place-items: center; gap: 0.75rem; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--white), var(--leaf-50));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.seal .pk-mark { margin-inline: auto; }
.seal .seal-note { max-width: 26ch; margin: 0; color: var(--muted); font-size: 0.93rem; }
.seal-dark {
  background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.seal-dark .arrow-link { color: #fff; }
.seal .seal-label {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--leaf-text);
}
/* declared after the base rules: same specificity, so source order decides */
.seal-dark .pk-mark { color: #fff; }
.seal-dark .seal-label { color: var(--gold); }
.seal-dark .seal-note { color: #cfe3d6; }

/* breadcrumbs */
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- components */

.grid { display: grid; gap: clamp(0.85rem, 1.6vw, 1.15rem); }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.15rem, 2vw, 1.5rem); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card h3, .card h2 { margin-bottom: 0.4rem; font-size: var(--step-0); letter-spacing: -0.012em; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
a.card:hover h3 { color: var(--forest); }

.feature {
  display: flex; flex-direction: column; gap: 0.85rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2vw, 1.6rem);
  box-shadow: var(--shadow-sm); height: 100%;
}
.feature .ico-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mist); color: var(--forest); flex: none;
}
.feature .ico-badge .ico { width: 22px; height: 22px; }
.feature h3, .feature h2 { margin: 0 0 0.25rem; font-size: var(--step-0); letter-spacing: -0.012em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.feature-plain { background: none; border: 0; box-shadow: none; padding: 0; }

/* numbered steps */
.steps { display: grid; gap: clamp(1rem, 2vw, 1.4rem); counter-reset: step; }
@media (min-width: 760px) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .steps.cols-6 { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem 1.35rem; box-shadow: var(--shadow-sm);
}
.step::before {
  content: attr(data-step); position: absolute; top: -0.85rem; left: 1.35rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--forest); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 27, 22, 0.22);
}
.step h3 { margin: 0.8rem 0 0.4rem; font-size: var(--step-0); }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* image cards */
.tile {
  display: block; text-decoration: none; color: inherit; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-static { cursor: default; }
.tile-static:hover { transform: none; box-shadow: var(--shadow-sm); }
.tile-static:hover img { transform: none; }
.tile figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile:hover img { transform: scale(1.045); }
.tile .tile-body { padding: 1.05rem 1.15rem 1.2rem; }
.tile h3 { font-size: var(--step-0); margin: 0 0 0.3rem; }
.tile p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
.tile .arrow-link { font-size: 0.85rem; }

/* accordion (FAQ) — <details>, so it works with JS disabled */
.faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.25rem; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 0.62rem; height: 0.62rem;
  border-right: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--forest); background: var(--leaf-50); }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
@media (min-width: 760px) { .checklist.two { grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; } }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; line-height: 1.55; }
.checklist .ico {
  width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.15rem; padding: 0.2rem;
  border-radius: 50%; background: var(--mist); color: var(--forest); stroke-width: 2.4;
}
.checklist.on-dark li { color: #d7e7dc; }
.checklist.on-dark .ico { background: rgba(255, 255, 255, 0.14); color: var(--gold); }

.media-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 760px) { .media-split { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 1fr); } }
.checklist-media { margin: 0; }
.checklist-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

/* versus (two-column comparison) */
.versus { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 820px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus-col { border-radius: var(--radius); padding: clamp(1.3rem, 2.2vw, 1.8rem); border: 1px solid var(--line); }
.versus-col h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.versus-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.versus-col li { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0; font-size: 0.96rem; line-height: 1.5; }
.versus-col li .ico { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.18rem; }
.versus-them { background: var(--sand); }
.versus-them h3 { color: var(--muted); }
.versus-them li { color: var(--muted); }
.versus-them .ico { color: #b4938f; }
.versus-us { background: var(--white); border-color: var(--leaf); box-shadow: var(--shadow); position: relative; }
.versus-us::before {
  content: ""; position: absolute; inset: -1px -1px auto; height: 4px;
  background: linear-gradient(90deg, var(--leaf), var(--gold)); border-radius: var(--radius) var(--radius) 0 0;
}
.versus-us .ico { color: var(--leaf); }

/* tiers */
.tiers { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 880px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.85rem); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.tier .badge { align-self: flex-start; margin-bottom: 0.9rem; }
.tier h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.6rem; }
.tier li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; font-size: 0.95rem; color: var(--muted); }
.tier li .ico { width: 1.2rem; height: 1.2rem; color: var(--leaf); flex: none; margin-top: 0.2rem; }
.tier .tier-foot { margin-top: auto; }

/* designation marks */
.marks { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 720px) { .marks { grid-template-columns: repeat(3, 1fr); } }
.mark-card {
  text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.25rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.5rem;
  justify-items: center; align-content: start;
}
.mark-card .pk-mark { margin: 0 auto 0.35rem; }
.mark-card .pk-lockup { display: flex; justify-content: center; margin: 0 auto 0.35rem; }
.mark-card h3 { margin: 0; font-size: var(--step-0); }
.mark-card .mark-meaning {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--leaf-text);
}
.mark-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* people */
.people { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .people { grid-template-columns: repeat(4, 1fr); } }
.person { text-align: center; }
.person img {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.9rem;
  border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.person .name { font-family: var(--font-head); font-weight: 700; color: var(--ink); display: block; }
.person .role { font-size: 0.85rem; color: var(--leaf-text); }
.person-bio { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .person-bio { grid-template-columns: 148px 1fr; align-items: start; } }
.person-bio img { width: 148px; height: 148px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-sm); }

/* pull quote */
.pullquote {
  position: relative; background: var(--forest); color: #e6f1e9; border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem); text-align: center; overflow: hidden;
}
.pullquote::before {
  content: ""; position: absolute; inset: 0; opacity: 0.09; pointer-events: none;
  background: radial-gradient(60% 80% at 80% 0%, var(--gold), transparent 60%);
}
.pullquote p { position: relative; font-size: var(--step-2); line-height: 1.45; font-family: var(--font-head); font-weight: 600; color: #fff; max-width: 40ch; margin: 0 auto 1.1rem; text-wrap: balance; }
.pullquote .attrib { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.42rem 0.9rem;
  font-size: 0.88rem; text-decoration: none; color: var(--ink-soft); font-family: var(--font-head); font-weight: 600;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover { border-color: var(--leaf); background: var(--leaf-50); color: var(--forest); }

/* directory (knowledge base index) */
.directory { display: grid; gap: clamp(1.15rem, 2.4vw, 1.75rem); }
@media (min-width: 680px) { .directory { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .directory { grid-template-columns: repeat(3, 1fr); } }
.directory-col {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm);
}
.directory-col h3 {
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--leaf-text);
  margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line);
}
.directory-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.directory-col li { margin: 0; }
.directory-col a {
  display: block; padding: 0.4rem 0; text-decoration: none; color: var(--ink-soft); font-size: 0.93rem;
  border-bottom: 1px solid transparent;
}
.directory-col a:hover { color: var(--forest); }
.directory-col .col-note { margin: 0.8rem 0 0; font-size: 0.84rem; color: var(--muted); font-style: italic; }

/* link row */
.linkrow { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.linkrow a {
  display: inline-flex; align-items: center; gap: 0.45rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.05rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; text-decoration: none; color: var(--forest);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.linkrow a:hover { border-color: var(--leaf); transform: translateY(-1px); }
.linkrow a .ico { width: 0.95rem; height: 0.95rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--forest) 0%, var(--forest-900) 62%, var(--forest-950) 100%);
  color: #cfe3d6;
}
.cta-band::after {
  content: ""; position: absolute; right: -4%; bottom: -40%; width: min(38vw, 420px); aspect-ratio: 100/128;
  background: currentColor; color: rgba(201, 163, 91, 0.13); pointer-events: none;
  -webkit-mask: var(--drop) no-repeat center / contain; mask: var(--drop) no-repeat center / contain;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: #c3d9cb; font-size: var(--step-1); max-width: 54ch; margin-bottom: 1.6rem; }
.cta-inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 880px) { .cta-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cta-assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.cta-assure li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; font-size: 0.95rem; color: #c3d9cb; }
.cta-assure .ico { width: 1.2rem; height: 1.2rem; color: var(--gold); flex: none; margin-top: 0.2rem; }

/* ---------------------------------------------------------------- prose */

.prose { max-width: 70ch; font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.9em; font-size: var(--step-1); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: 1.3em; }
.prose li { line-height: 1.6; }
.prose a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(28, 84, 54, 0.35); }
.prose a:hover { text-decoration-color: var(--leaf); }
.prose blockquote {
  border-left: 3px solid var(--gold); margin: 1.8rem 0; padding: 0.15rem 0 0.15rem 1.15rem;
  color: var(--ink); font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 1.75rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.65rem 0.8rem; text-align: left; }
.prose th { background: var(--mist); font-family: var(--font-head); font-size: 0.85rem; }
.prose-wide { max-width: 78ch; }

/* `.prose a` is more specific than `.btn`, so buttons inside prose need this back */
.prose .btn, .prose .arrow-link, .prose .chip, .prose .tile { text-decoration: none; }
.prose .btn { color: #fff; }
.prose .btn-ghost, .prose .btn-light { color: var(--forest); }
.prose .btn-outline-light { color: #fff; }
.prose .arrow-link { color: var(--forest); }
.prose .checklist { list-style: none; padding: 0; }

.article-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
.aside { position: sticky; top: 6.5rem; display: grid; gap: 1.15rem; }
@media (max-width: 999px) { .aside { position: static; } }
.aside-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; box-shadow: var(--shadow-sm);
}
.aside-cta h2 { color: var(--gold-light); }
.aside-card h2, .aside-card h3 {
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--leaf-text);
  margin-bottom: 0.8rem;
}
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 0.38rem 0 0.38rem 0.75rem; border-left: 2px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; line-height: 1.4;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.toc a:hover, .toc a.is-active { border-left-color: var(--leaf); color: var(--forest); }
.aside-cta { background: linear-gradient(160deg, var(--forest), var(--forest-900)); border: 0; color: #cfe3d6; }

.aside-cta p { font-size: 0.92rem; margin-bottom: 1rem; color: #c3d9cb; }

.anchor-h { scroll-margin-top: 6.5rem; }

/* --------------------------------------------------- is-it-kosher answers */

.verdict {
  display: grid; gap: 1.15rem; background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--leaf); border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow);
}
.verdict.is-no { border-left-color: #a13b3b; }
.verdict.is-depends { border-left-color: var(--gold); }
.verdict-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.verdict p { font-size: var(--step-1); line-height: 1.5; color: var(--ink); margin: 0; }
.verdict-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px; padding: 0.35rem 0.85rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--mist); color: var(--forest);
}
.verdict.is-no .verdict-badge { background: #f7e4e4; color: #8b1f1f; }
.verdict.is-depends .verdict-badge { background: var(--gold-soft); color: #7a5b18; }
.verdict-badge .ico { width: 0.95rem; height: 0.95rem; }

.callout {
  background: var(--leaf-50); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.35rem; margin: 1.75rem 0;
}
.callout .callout-label {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--leaf-text); display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-gold { background: #fdf8ee; }
.callout-gold .callout-label { color: #8a6a22; }

.audience { display: grid; gap: 1rem; margin: 1.75rem 0; }
@media (min-width: 720px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.audience-card h3 {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--leaf-text);
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem;
}
.audience-card h3 .ico { width: 1rem; height: 1rem; }
.audience-card p { margin: 0; font-size: 0.97rem; }

.disclaimer {
  font-size: 0.86rem; color: var(--muted); background: var(--sand); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin-top: 2rem;
}
.disclaimer p { margin: 0; }

/* ------------------------------------------------------------ kb search */

.finder { display: grid; gap: 1rem; }
.searchbar { position: relative; display: flex; align-items: center; }
.searchbar .ico {
  position: absolute; left: 1rem; width: 1.15rem; height: 1.15rem; color: var(--leaf); pointer-events: none;
}
.searchbar input {
  width: 100%; padding: 0.95rem 1rem 0.95rem 2.85rem; border: 1.5px solid var(--line-strong);
  border-radius: 999px; font: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.searchbar input::placeholder { color: #93a49b; }
.searchbar input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-100); }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.filters .label {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-right: 0.15rem;
}
.filter {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.35rem 0.85rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.83rem; color: var(--ink-soft); cursor: pointer;
  transition: all 0.15s var(--ease);
}
.filter:hover { border-color: var(--leaf); color: var(--forest); }
.filter[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.result-count { font-size: 0.88rem; color: var(--muted); margin: 0; }
.answer-card { display: grid; gap: 0.5rem; align-content: start; }
.answer-card .answer-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.answer-card h3, .answer-card h2 { font-size: var(--step-0); margin: 0; letter-spacing: -0.012em; }
.answer-card .tag {
  font-family: var(--font-head); font-weight: 700; font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); flex: none;
}
.answer-card .snippet { font-size: 0.91rem; color: var(--muted); margin: 0; }
.v-pill {
  display: inline-flex; align-items: center; gap: 0.3rem; align-self: start; border-radius: 999px;
  padding: 0.18rem 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; background: var(--mist); color: var(--forest);
}
.v-no { background: #f7e4e4; color: #8b1f1f; }
.v-depends { background: var(--gold-soft); color: #7a5b18; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------- courses */

.lesson-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 1020px) { .lesson-layout { grid-template-columns: 300px minmax(0, 1fr); } }
.curriculum { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
@media (max-width: 1019px) { .curriculum { position: static; max-height: none; } }
.curriculum ol { list-style: none; padding: 0; margin: 0; counter-reset: lesson; }
.curriculum li { margin: 0; }
.curriculum a {
  display: flex; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4;
}
.curriculum a:hover { background: var(--leaf-50); color: var(--forest); }
.curriculum a[aria-current="page"] { background: var(--mist); color: var(--forest); font-weight: 700; }
/* --leaf is 4.34:1 on --mist, which the active row uses; --forest clears it */
.curriculum .num { color: var(--forest); font-family: var(--font-head); font-weight: 700; flex: none; }
.curriculum .locked { display: flex; gap: 0.6rem; padding: 0.45rem 0.6rem; color: #9aa9a1; font-size: 0.9rem; }
.curriculum .module-name {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 0.4rem; padding-left: 0.6rem;
}
.curriculum .module-name:first-child { margin-top: 0; }

.sources { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; margin: 2rem 0; }
.sources h2 {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--leaf-text); margin-bottom: 0.85rem;
}
.sources ol, .sources ul { margin: 0; padding-left: 1.2rem; }
.sources li { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.5rem; }

.pager { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 620px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a {
  display: grid; gap: 0.2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); text-decoration: none; box-shadow: var(--shadow-sm);
}
.pager a:hover { border-color: var(--leaf); }
.pager .dir { font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--leaf-text); font-family: var(--font-head); font-weight: 700; }
.pager .ttl { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.35; }
.pager .next { text-align: right; }

/* ----------------------------------------------------------------- forms */

form.lead { display: grid; gap: 0.95rem; }
form.lead .row { display: grid; gap: 0.95rem; }
@media (min-width: 560px) { form.lead .row.two { grid-template-columns: 1fr 1fr; } }
form.lead label { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--ink); display: grid; gap: 0.35rem; }
form.lead .lbl { display: block; }
form.lead .req { color: var(--leaf-text); }
form.lead input, form.lead select, form.lead textarea {
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.97rem; background: var(--white); color: var(--ink); width: 100%;
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus {
  outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-100);
}
form.lead textarea { min-height: 120px; resize: vertical; }
form.lead .hp { position: absolute; left: -9999px; }
/* Turnstile is set to interaction-only, so this is usually a zero-height box */
form.lead .cf-turnstile:not(:empty) { margin-block: 0.25rem; }
form.lead .form-note { font-size: 0.84rem; color: var(--muted); display: flex; gap: 0.45rem; align-items: flex-start; }
form.lead .form-note .ico { width: 1rem; height: 1rem; color: var(--leaf); flex: none; margin-top: 0.15rem; }
.form-status { padding: 0.85rem 1.05rem; border-radius: var(--radius-sm); display: none; font-size: 0.95rem; }
.form-status.ok { display: block; background: var(--mist); color: var(--forest); }
.form-status.err { display: block; background: var(--danger-bg); color: var(--danger); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--forest-950); color: #a9c2b3; padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; }
.site-footer a { color: #dce9e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .pk-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.94rem; max-width: 34ch; margin-bottom: 1.15rem; }
.site-footer h2 {
  color: #fff; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-contact { display: grid; gap: 0.5rem; font-size: 0.93rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-contact .ico { width: 1rem; height: 1rem; color: var(--gold); }
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem;
  font-size: 0.83rem; display: flex; gap: 0.75rem 1.5rem; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.legal nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ misc */

/* Buttons keep their own colours inside contexts that restyle every link.
   `.site-footer a` and `.prose a` are more specific than `.btn`, so without this a
   white button on the dark footer renders its label in the footer's link colour —
   white on white. Declared last so source order settles any remaining ties. */
.prose .btn, .site-footer .btn, .cta-band .btn { color: #fff; }
.prose .btn-light, .site-footer .btn-light, .cta-band .btn-light,
.prose .btn-light:hover, .site-footer .btn-light:hover, .cta-band .btn-light:hover { color: var(--forest); }
.prose .btn-ghost, .site-footer .btn-ghost, .prose .btn-ghost:hover { color: var(--forest); }
.cta-band .btn-outline-light, .site-footer .btn-outline-light { color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

@media print {
  .site-header, .topbar, .site-footer, .cta-band, .aside, .nav-scrim, .breadcrumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 0.75rem 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
