/* ==========================================================================
   Shutki — core stylesheet
   1. Design tokens        4. Buttons & forms      7. Navigation
   2. Reset & base         5. Layout utilities     8. Footer
   3. Typography           6. Header               9. Misc chrome
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================= */

:root {
  /* Brand — deep evergreen. The one dark the whole site is built on. */
  --sk-brand:        #123B2E;
  --sk-brand-deep:   #0B2C22;
  --sk-brand-tint:   #E2EFE7;
  --sk-brand-tint-2: #BFDBC9;

  /*
   * Accent — fresh lime. Decoration only: the band behind a section title,
   * the rule under the header, nav underlines, focus rings. It never carries
   * text and never fills a button, because nothing readable sits on a colour
   * this bright. --sk-accent-deep and --sk-accent-ink are its text-safe forms.
   */
  --sk-accent:       #C4DA45;
  --sk-accent-deep:  #5E7412;
  --sk-accent-tint:  #F5F9E0;

  /*
   * Content primary — the evergreen, one step up. Everything below the masthead (cards,
   * sections, the article page, sidebar, pagination) is keyed to this. The
   * header, footer and home hero deliberately stay on --sk-brand/--sk-accent.
   */
  --sk-primary:      #1E5F49;
  --sk-primary-deep: #123B2E;
  --sk-primary-ink:  #1A5340;
  --sk-primary-tint: #E9F3EC;
  --sk-primary-tint-2: #C8E3D2;  /* the one step up from the tint: heading bands */
  --sk-primary-line: #D6E8DC;
  --sk-primary-fg:   #86D9B4;   /* primary on dark surfaces */

  /* Support — folded into the lime, so a callout adds no third hue. */
  --sk-gold:         #C4DA45;
  --sk-gold-tint:    #F5F9E0;

  /*
   * Neutrals — green-greys, never pure black.
   *
   * The page is one flat tint from masthead to footer; nothing below the
   * header paints its own band. Everything that has to read as a surface —
   * the header, cards, the standfirst panels — is plain white on top of it,
   * and the greys are pulled into the same green family so no panel looks
   * warm or dirty against the page.
   */
  --sk-ink:          #10201B;
  --sk-ink-2:        #26372F;
  --sk-body:         #47554E;
  --sk-muted:        #5F6C65;
  --sk-line:         #DDE7E0;
  --sk-line-soft:    #E9F1EB;
  --sk-page:         #F2F7F3;   /* the frame — full bleed behind everything */
  --sk-well:         #FAFCFB;   /* the content column that sits on the frame */
  --sk-sand:         #E8F0EA;
  --sk-surface:      #ffffff;   /* cards, panels, header */
  --sk-surface-2:    #F6FBF8;

  /*
   * Inverted surface: the footer, top bar, dark buttons and code blocks.
   * These must stay dark with light text in BOTH colour schemes, so they
   * cannot use --sk-ink, which flips to a light value in dark mode.
   */
  --sk-invert-bg:       var(--sk-ink);
  --sk-invert-bg-hover: #000000;
  --sk-invert-fg:       #f2f0ec;

  /* Newsletter band. Always dark enough to carry white text. */
  --sk-cta-bg:          var(--sk-brand);

  /*
   * --sk-accent cannot carry text at all (1.5:1 on white), so these are its
   * text-safe stand-ins:
   *   solid  = fill behind white text — the evergreen, deliberately NOT a
   *            darkened lime, which turns to mud long before it clears AA
   *   ink    = the lime pulled down to a deep olive, for accent-as-small-text
   * On the default accent PHP emits these hand-picked values verbatim; a
   * custom accent gets both derived by darkening until they clear WCAG AA.
   */
  --sk-accent-solid:    #123B2E;
  --sk-accent-solid-hv: #0B2C22;
  --sk-accent-ink:      #5E7412;

  /* Typography */
  --sk-font-head: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sk-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sk-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sk-fs-xs:   0.75rem;
  --sk-fs-sm:   0.8125rem;
  --sk-fs-base: 0.9375rem;
  --sk-fs-md:   1.0625rem;
  --sk-fs-lg:   clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --sk-fs-xl:   clamp(1.3rem, 1.2rem + 0.5vw, 1.5rem);
  --sk-fs-2xl:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --sk-fs-3xl:  clamp(2rem, 1.6rem + 1.8vw, 2.9rem);
  --sk-fs-4xl:  clamp(2.4rem, 1.75rem + 3vw, 3.9rem);

  /* Reading page: a longer measure at a larger size than the UI text. */
  --sk-fs-read:  1.25rem;   /* 20px */
  --sk-lh-read2: 1.7;       /* 34px */
  --sk-read-ink: #333333;

  --sk-lh-tight: 1.14;
  --sk-lh-snug:  1.28;
  --sk-lh-body:  1.7;
  --sk-lh-read:  1.82;

  /* Space */
  --sk-1: .25rem;  --sk-2: .5rem;   --sk-3: .75rem;  --sk-4: 1rem;
  --sk-5: 1.25rem; --sk-6: 1.5rem;  --sk-7: 2rem;    --sk-8: 2.5rem;
  --sk-9: 3rem;    --sk-10: 4rem;   --sk-11: 5rem;   --sk-12: 6rem;
  --sk-section: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Layout */
  --sk-container: 1200px;
  --sk-well-w:    1240px;                    /* content column, holds --sk-container */
  --sk-frame:     clamp(8px, 1.4vw, 28px);   /* tint left showing down each side */
  --sk-reading:   728px;
  --sk-gutter:    clamp(1rem, .55rem + 1.8vw, 2rem);
  --sk-sidebar:   300px;

  /* Ad slots. Reserved so a unit dropping in later has nowhere to push. */
  --sk-ad-h-inline:  280px;
  --sk-ad-h-sidebar: 600px;
  --sk-ad-h-grid:    250px;
  --sk-ad-h-footer:  90px;

  /* Radii */
  --sk-r-sm: 8px;  --sk-r: 12px;  --sk-r-lg: 16px;  --sk-r-xl: 24px;  --sk-r-pill: 999px;

  /*
   * Card system. One tile shape and one gutter, stepped down at tablet and
   * phone widths; the grid itself is auto-fill so the column count follows
   * the space available instead of a hard-coded number.
   */
  --sk-card-radius: 12px;
  --sk-card-min:    240px;
  --sk-card-gap:    16px;
  --sk-card-lift:   -5px;

  /* Reading scale — held at one size across breakpoints. */
  --sk-fs-title:  2rem;      /* 32px post headline   */
  --sk-fs-h2:     1.75rem;   /* 28px section heading */
  --sk-fs-h3:     1.375rem;  /* 22px                 */
  --sk-fs-card:   1rem;      /* 16px card headline   */
  --sk-ls:        .3px;

  /* Elevation */
  --sk-sh-xs: 0 1px 2px rgba(22, 27, 26, .05);
  --sk-sh-sm: 0 2px 8px rgba(22, 27, 26, .06);
  --sk-sh-card:       0 4px 12px rgba(0, 0, 0, .08);
  --sk-sh-card-hover: 0 8px 20px rgba(0, 0, 0, .12);
  --sk-sh:    0 6px 20px -6px rgba(22, 27, 26, .13);
  --sk-sh-lg: 0 20px 48px -16px rgba(22, 27, 26, .22);
  --sk-sh-cta: 0 6px 18px -4px rgba(18, 59, 46, .30);

  --sk-ease: cubic-bezier(.22, .61, .36, 1);
  --sk-dur: .24s;
  --sk-header-h: 72px;
  --sk-header-stuck: 60px;    /* the menu row, which is all that stays pinned */

  color-scheme: light;
}

/* Dark mode is a pure token swap — every component below inherits it. */
:root[data-theme="dark"] {
  --sk-brand:        #4FBF98;
  --sk-brand-deep:   #7BD5B4;
  --sk-brand-tint:   #13302A;
  --sk-brand-tint-2: #1B4238;
  /* The lime is already bright; on a dark page it needs no lifting. */
  --sk-accent:       #C4DA45;
  --sk-accent-deep:  #D6E86F;
  --sk-accent-tint:  #2C3312;
  --sk-primary:      #63C79E;
  --sk-primary-deep: #86D9B4;
  --sk-primary-ink:  #7BD5B4;
  --sk-primary-tint: #13302A;
  --sk-primary-tint-2: #1C453A;
  --sk-primary-line: #22483D;
  --sk-primary-fg:   #86D9B4;
  --sk-gold:         #C4DA45;
  --sk-gold-tint:    #2C3312;

  --sk-read-ink:   #D6DCD8;
  --sk-ink:        #EFF3F0;
  --sk-ink-2:      #D6DCD8;
  --sk-body:       #BCC5C0;
  --sk-muted:      #939D97;
  --sk-line:       #27332D;
  --sk-line-soft:  #1F2A25;
  --sk-page:       #0E1512;
  --sk-well:       #121A16;
  --sk-sand:       #16201B;
  --sk-surface:    #141C18;
  --sk-surface-2:  #1A231E;

  /* Pinned to real darks — one step below the page so the band still reads. */
  --sk-invert-bg:       #080C0A;
  --sk-invert-bg-hover: #000000;
  --sk-invert-fg:       #EFF3F0;

  /* --sk-brand lightens in dark mode, which would leave the white heading
     at roughly 2:1. Use the deep evergreen instead. */
  --sk-cta-bg:          #123B2E;

  /* The light-mode fill is near-black against a dark page, so the button
     steps up to a mid evergreen that still clears AA behind white text.
     Accent-as-text goes bright: here the lime sits on dark, not on white. */
  --sk-accent-solid:    #227A5C;
  --sk-accent-solid-hv: #1B6249;
  --sk-accent-ink:      var(--sk-accent);

  --sk-sh-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --sk-sh-sm: 0 2px 8px rgba(0, 0, 0, .45);
  --sk-sh-card:       0 4px 12px rgba(0, 0, 0, .5);
  --sk-sh-card-hover: 0 8px 20px rgba(0, 0, 0, .6);
  --sk-sh:    0 6px 20px -6px rgba(0, 0, 0, .6);
  --sk-sh-lg: 0 20px 48px -16px rgba(0, 0, 0, .75);
  --sk-sh-cta: 0 6px 18px -4px rgba(34, 122, 92, .40);

  color-scheme: dark;
}

/* 2. RESET & BASE ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sk-header-h) + 24px);
}
html:has(.sk-header--sticky) { scroll-padding-top: calc(var(--sk-header-stuck) + 16px); }

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

body {
  margin: 0;
  background: var(--sk-page);
  color: var(--sk-body);
  font-family: var(--sk-font-body);
  font-size: var(--sk-fs-md);
  line-height: var(--sk-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.sk-locked { overflow: hidden; }

img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
iframe, embed, object { border: 0; max-width: 100%; }

hr { border: 0; height: 1px; background: var(--sk-line); margin: var(--sk-8) 0; }

::selection { background: var(--sk-brand); color: #fff; }

:focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 3px; border-radius: var(--sk-r-sm); }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: var(--sk-3) var(--sk-5);
  background: var(--sk-invert-bg); color: var(--sk-invert-fg);
  border-radius: 0 0 var(--sk-r) 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; padding: 0; overflow: hidden; position: absolute; white-space: nowrap;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; z-index: 100;
  padding: var(--sk-3) var(--sk-5); background: var(--sk-surface);
}

/* 3. TYPOGRAPHY =========================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sk-font-head);
  color: var(--sk-ink);
  font-weight: 600;
  line-height: var(--sk-lh-snug);
  letter-spacing: -.015em;
  margin: 0 0 var(--sk-4);
  /* Fraunces variable axes — a touch of warmth without the full "wonk". */
  font-variation-settings: "SOFT" 24, "WONK" 0;
  text-wrap: balance;
}

h1 { font-size: var(--sk-fs-3xl); line-height: var(--sk-lh-tight); font-weight: 700; }
h2 { font-size: var(--sk-fs-2xl); }
h3 { font-size: var(--sk-fs-xl); }
h4 { font-size: var(--sk-fs-lg); }
h5 { font-size: var(--sk-fs-md); }
h6 {
  font-family: var(--sk-font-body); font-size: var(--sk-fs-sm);
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

p { margin: 0 0 var(--sk-5); }
p:last-child { margin-bottom: 0; }

a { color: var(--sk-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--sk-dur) var(--sk-ease); }
a:hover { color: var(--sk-accent-ink); }

strong, b { font-weight: 700; color: var(--sk-ink); }
em, i { font-style: italic; }
small { font-size: var(--sk-fs-sm); }
abbr[title] { text-decoration: underline dotted; cursor: help; }

ul, ol { margin: 0 0 var(--sk-5); padding-left: 1.3em; }
li { margin-bottom: var(--sk-2); }
li > ul, li > ol { margin-top: var(--sk-2); margin-bottom: 0; }

blockquote {
  margin: var(--sk-7) 0;
  padding: var(--sk-6) var(--sk-7);
  background: var(--sk-brand-tint);
  border-left: 4px solid var(--sk-brand);
  border-radius: 0 var(--sk-r) var(--sk-r) 0;
  font-family: var(--sk-font-head);
  font-size: var(--sk-fs-lg);
  line-height: 1.55;
  color: var(--sk-ink);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
  display: block; margin-top: var(--sk-3);
  font-family: var(--sk-font-body); font-size: var(--sk-fs-sm);
  font-style: normal; font-weight: 700; color: var(--sk-muted);
}

code, kbd, samp, pre { font-family: var(--sk-font-mono); font-size: .9em; }
code { background: var(--sk-sand); padding: .15em .4em; border-radius: 5px; color: var(--sk-accent-deep); }
pre {
  background: var(--sk-invert-bg); color: var(--sk-invert-fg); padding: var(--sk-5);
  border-radius: var(--sk-r); overflow-x: auto; line-height: 1.65;
}
pre code { background: none; color: inherit; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: var(--sk-6) 0; font-size: var(--sk-fs-base); }
th, td { padding: var(--sk-3) var(--sk-4); border: 1px solid var(--sk-line); text-align: left; }
th { background: var(--sk-sand); color: var(--sk-ink); font-weight: 700; }
tbody tr:nth-child(even) { background: var(--sk-surface-2); }

/* Eyebrow label above section titles. */
.sk-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sk-2);
  margin: 0 0 var(--sk-3);
  font-size: var(--sk-fs-xs); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sk-accent-ink);
}
.sk-eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.sk-center .sk-eyebrow::after { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
/* Content areas run on the primary; the header search and footer keep the accent. */
.sk-section .sk-eyebrow, .sk-single .sk-eyebrow { color: var(--sk-primary-ink); }

.sk-lede { font-size: var(--sk-fs-lg); line-height: 1.62; color: var(--sk-muted); max-width: 62ch; }

/* 4. BUTTONS & FORMS ====================================================== */

/*
 * Primary control: a solid pill that lifts on hover and settles on press.
 * Deliberately unlike the reference site's square outlined caps button.
 */
.sk-btn,
input[type="submit"],
button[type="submit"],
.wp-block-button__link,
.more-link {
  --btn-bg: var(--sk-accent-solid);
  --btn-bg-hover: var(--sk-accent-solid-hv);
  --btn-fg: #fff;
  --btn-shadow: var(--sk-sh-cta);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sk-2);
  padding: .82em 1.75em;
  border: 0; border-radius: var(--sk-r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sk-font-body); font-size: var(--sk-fs-base);
  font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform var(--sk-dur) var(--sk-ease),
              box-shadow var(--sk-dur) var(--sk-ease),
              background-color var(--sk-dur) var(--sk-ease);
}
.sk-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover,
.more-link:hover {
  background: var(--btn-bg-hover); color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(224, 101, 63, .55);
}
.sk-btn:active, input[type="submit"]:active, button[type="submit"]:active {
  transform: translateY(0); box-shadow: var(--sk-sh-sm);
}
.sk-btn[disabled], .sk-btn.is-busy { opacity: .55; pointer-events: none; }

/* The arrow slides forward on hover — used on every "read more" affordance. */
.sk-btn .sk-arrow { transition: transform var(--sk-dur) var(--sk-ease); }
.sk-btn:hover .sk-arrow { transform: translateX(4px); }

.sk-btn--brand { --btn-bg: var(--sk-brand); --btn-bg-hover: var(--sk-brand-deep); --btn-shadow: 0 6px 18px -4px rgba(47, 64, 50, .45); }
.sk-btn--brand:hover { box-shadow: 0 12px 26px -8px rgba(47, 64, 50, .5); }
.sk-btn--ink { --btn-bg: var(--sk-invert-bg); --btn-bg-hover: var(--sk-invert-bg-hover); --btn-fg: var(--sk-invert-fg); --btn-shadow: var(--sk-sh); }
.sk-btn--ink:hover { box-shadow: var(--sk-sh-lg); }
.sk-btn--light { --btn-bg: var(--sk-surface); --btn-bg-hover: var(--sk-surface); --btn-fg: var(--sk-ink); --btn-shadow: var(--sk-sh-sm); }
.sk-btn--light:hover { color: var(--sk-accent-ink); box-shadow: var(--sk-sh); }
.sk-btn--ghost {
  --btn-bg: transparent; --btn-bg-hover: var(--sk-invert-bg); --btn-fg: var(--sk-ink); --btn-shadow: none;
  box-shadow: inset 0 0 0 1.5px var(--sk-line);
}
.sk-btn--ghost:hover { color: var(--sk-invert-fg); box-shadow: inset 0 0 0 1.5px var(--sk-invert-bg); }
.sk-section .sk-btn--ghost { --btn-bg-hover: var(--sk-primary); box-shadow: inset 0 0 0 1.5px var(--sk-primary-line); color: var(--sk-primary-ink); }
.sk-section .sk-btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--sk-primary); }
.sk-btn--sm { padding: .6em 1.25em; font-size: var(--sk-fs-sm); }
.sk-btn--lg { padding: .95em 2.1em; font-size: var(--sk-fs-md); }
.sk-btn--block { display: flex; width: 100%; }

/* Quiet text link with a sliding arrow — the "See more" pattern. */
.sk-more {
  display: inline-flex; align-items: center; gap: var(--sk-2);
  font-size: var(--sk-fs-sm); font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sk-primary-ink); text-decoration: none; white-space: nowrap;
}
.sk-more .sk-arrow { transition: transform var(--sk-dur) var(--sk-ease); }
.sk-more:hover { color: var(--sk-primary-deep); }
.sk-more:hover .sk-arrow { transform: translateX(5px); }

/* Inputs */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%; padding: .78em 1.05em;
  font-family: inherit; font-size: var(--sk-fs-base); color: var(--sk-ink);
  background: var(--sk-surface); border: 1.5px solid var(--sk-line);
  border-radius: var(--sk-r);
  transition: border-color var(--sk-dur) var(--sk-ease), box-shadow var(--sk-dur) var(--sk-ease);
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23626a67' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em;
}
textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--sk-muted); opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sk-brand);
  box-shadow: 0 0 0 3px var(--sk-brand-tint);
}
label { display: block; margin-bottom: var(--sk-2); font-size: var(--sk-fs-sm); font-weight: 700; color: var(--sk-ink); }
.sk-field { margin-bottom: var(--sk-5); }
.sk-req { color: var(--sk-accent-ink); }
.sk-note { font-size: var(--sk-fs-sm); color: var(--sk-muted); }
/* Honeypot: off-screen for people, irresistible to naive bots. */
.sk-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.sk-alert { padding: var(--sk-4) var(--sk-5); border-radius: var(--sk-r); font-size: var(--sk-fs-base); margin-bottom: var(--sk-5); }
.sk-alert--ok { background: var(--sk-brand-tint); color: var(--sk-brand-deep); border: 1px solid var(--sk-brand-tint-2); }
.sk-alert--err { background: var(--sk-accent-tint); color: var(--sk-accent-deep); border: 1px solid var(--sk-accent); }

/* 5. LAYOUT UTILITIES ===================================================== */

.sk-container { width: 100%; max-width: var(--sk-container); margin-inline: auto; padding-inline: var(--sk-gutter); }
.sk-container--narrow { max-width: 880px; }

.sk-section { padding-block: var(--sk-section); }
.sk-section--tight { padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
/*
 * Kept as hooks so the templates need no edit, but they no longer paint: the
 * banding is gone and the white panels inside a section are what separate it
 * from the one above.
 */
.sk-section--sand, .sk-section--tintbrand { background: none; }

/*
 * Content well. The tint is a frame, not a fill — it runs full bleed behind
 * everything while the content between the header and the newsletter sits on
 * a near-white column, with the tint showing down both sides and underneath.
 * The header, newsletter band and footer are all outside #sk-main, so they
 * stay full width.
 */
.sk-main {
  width: min(var(--sk-well-w), 100% - 2 * var(--sk-frame));
  margin: 10px auto var(--sk-9);
  background: var(--sk-well);
}
/* The home hero should meet the header, so only the sides and foot are framed. */
body.home .sk-main { margin-top: 0; }

.sk-grid { display: grid; gap: var(--sk-card-gap); }
/*
 * Card grids fill by measure, not by count: every tile is at least 240px, so
 * the same markup gives four across the full container, three beside the
 * sidebar and two on a phone without a breakpoint for each case.
 */
/*
 * Flex, not grid tracks: the column count still follows the space available,
 * but a row that cannot be filled ends up centred instead of hard left. Grid
 * cannot do that — 1fr tracks always consume the width they are given.
 */
.sk-grid--3, .sk-grid--4 { display: flex; flex-wrap: wrap; justify-content: center; }
.sk-grid--3 > *, .sk-grid--4 > * { flex: 0 1 var(--sk-card-min); }
.sk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sk-6); }
.sk-center { text-align: center; }
.sk-center .sk-lede { margin-inline: auto; }

/* Content + sidebar shell used by archive, single and page templates. */
.sk-shell { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
.sk-shell--sidebar { grid-template-columns: minmax(0, 1fr) var(--sk-sidebar); }
.sk-shell--full { grid-template-columns: minmax(0, 1fr); }

/* Stacked and centred: title, one line of context, then the "see all" link. */
.sk-section-head {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sk-3); text-align: center;
  margin-bottom: var(--sk-7);
}
.sk-section-head__text { max-width: 60ch; }
.sk-section-head__title {
  margin: 0;
  font-family: var(--sk-font-body);
  font-size: var(--sk-fs-h2); font-weight: 600; line-height: 1.3;
  letter-spacing: var(--sk-ls);
  /*
   * The signature band: lime laid behind the title like a highlighter, fading
   * out to the right so it reads as a swipe rather than a filled box. This is
   * the only place the accent covers real area — everywhere else it is a 3px
   * rule, a 2px underline or a focus ring.
   */
  display: inline-block;
  padding: .26em .8em;
  /*
   * The fade runs to a white mix of the accent rather than to --sk-accent-tint,
   * which flips dark in dark mode and would put light title text over the band's
   * bright left half. Both stops stay light in both schemes, so the title colour
   * below can be pinned once. It is pinned because --sk-ink flips too.
   */
  background: linear-gradient(
    90deg,
    var(--sk-accent) 0%,
    color-mix(in srgb, var(--sk-accent) 20%, #ffffff) 100%
  );
  color: #10201B;
  border-radius: var(--sk-r-sm);
}
.sk-section-head p { margin: var(--sk-2) 0 0; color: var(--sk-muted); font-size: var(--sk-fs-md); }


/* 6. HEADER =============================================================== */

/* The lime rule under the masthead: the accent's longest continuous run on
   the page, and the cue that ties the header to the section bands below. */
.sk-header { position: relative; z-index: 200; background: var(--sk-surface); border-bottom: 3px solid var(--sk-accent); }

.sk-masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sk-4); min-height: var(--sk-header-h); }
.sk-masthead__left { display: flex; align-items: center; gap: var(--sk-2); }
.sk-masthead__right { display: flex; align-items: center; justify-content: flex-end; gap: var(--sk-3); }

.sk-brand { display: inline-flex; align-items: center; gap: var(--sk-3); text-decoration: none; }
.sk-brand img { max-height: 52px; width: auto; }
.sk-brand__name {
  font-family: var(--sk-font-head); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700; letter-spacing: -.02em; color: var(--sk-ink); line-height: 1;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.sk-brand:hover .sk-brand__name { color: var(--sk-brand); }
.sk-brand__tag { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--sk-muted); font-weight: 700; }

/* Round icon button used for search / menu / theme toggle. */
.sk-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--sk-ink); cursor: pointer;
  transition: background-color var(--sk-dur) var(--sk-ease), color var(--sk-dur) var(--sk-ease);
}
.sk-iconbtn:hover { background: var(--sk-sand); color: var(--sk-brand); }
.sk-iconbtn svg { width: 21px; height: 21px; }

/* Drawer opener. Hidden while the horizontal navbar is on screen. */
.sk-menu-btn { display: none; }

.sk-social { display: flex; align-items: center; gap: var(--sk-1); list-style: none; margin: 0; padding: 0; }
.sk-social li { margin: 0; }
.sk-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: var(--sk-ink-2);
  transition: background-color var(--sk-dur) var(--sk-ease), color var(--sk-dur) var(--sk-ease), transform var(--sk-dur) var(--sk-ease);
}
.sk-social a:hover { background: var(--sk-brand); color: #fff; transform: translateY(-2px); }
.sk-social svg { width: 17px; height: 17px; }

/* 7. NAVIGATION =========================================================== */

.sk-navbar { border-top: 1px solid var(--sk-line-soft); background: var(--sk-surface); }
.sk-navbar__inner { display: flex; align-items: center; justify-content: center; }

.sk-nav ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.sk-nav li { position: relative; margin: 0; }
.sk-nav a {
  display: flex; align-items: center; gap: 5px;
  padding: var(--sk-4) var(--sk-4);
  font-size: var(--sk-fs-base); font-weight: 600; letter-spacing: .02em;
  color: var(--sk-ink-2); text-decoration: none; white-space: nowrap;
  transition: color var(--sk-dur) var(--sk-ease);
}
.sk-nav > ul > li > a { position: relative; }
/* Underline grows from the centre — a quieter cue than a colour swap. */
.sk-nav > ul > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 12px;
  width: 0; height: 2px; background: var(--sk-accent); border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--sk-dur) var(--sk-ease);
}
.sk-nav > ul > li:hover > a::after,
.sk-nav > ul > li.current-menu-item > a::after,
.sk-nav > ul > li.current-menu-ancestor > a::after,
.sk-nav > ul > li.current-menu-parent > a::after { width: calc(100% - 2rem); }
.sk-nav a:hover, .sk-nav .current-menu-item > a, .sk-nav .current-menu-ancestor > a { color: var(--sk-brand); }

.sk-nav .sk-caret { width: 12px; height: 12px; opacity: .55; transition: transform var(--sk-dur) var(--sk-ease); }
.sk-nav li:hover > a .sk-caret { transform: rotate(180deg); }

.sk-nav .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 232px; padding: var(--sk-2);
  background: var(--sk-surface);
  border: 1px solid var(--sk-line);
  border-radius: var(--sk-r-lg);
  box-shadow: var(--sk-sh-lg);
  flex-direction: column; align-items: stretch;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--sk-dur) var(--sk-ease), transform var(--sk-dur) var(--sk-ease), visibility var(--sk-dur);
}
.sk-nav li:hover > .sub-menu,
.sk-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sk-nav .sub-menu a { padding: var(--sk-3) var(--sk-4); border-radius: var(--sk-r-sm); font-weight: 500; }
.sk-nav .sub-menu a:hover { background: var(--sk-brand-tint); color: var(--sk-brand-deep); }
.sk-nav .sub-menu .sub-menu { top: 0; left: 100%; }
/* Flip the last dropdowns so they never run off the viewport. */
.sk-nav > ul > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }

/*
 * Pinned menu bar. A sticky element can never leave its parent's box, so
 * making .sk-navbar itself sticky would do nothing — it would scroll away with
 * the header that contains it. The header is what sticks instead, pulled up by
 * exactly one masthead's height: the wordmark row scrolls off the top and the
 * menu row lands at 0 and stays. The header's own bottom border rides along
 * underneath it, so the pinned bar keeps its edge.
 */
.sk-header--sticky { position: sticky; top: calc(-1 * var(--sk-header-h)); }
.sk-header--sticky.is-stuck { box-shadow: var(--sk-sh-sm); }

/* Below 900px there is no menu row to pin, so the masthead takes the job. */
@media (max-width: 900px) { .sk-header--sticky { top: 0; } }

/*
 * The admin bar is fixed over the top of the viewport on wide screens and
 * scrolls away below 600px, so the offset has to follow it.
 */
body.admin-bar .sk-header--sticky { top: calc(32px - var(--sk-header-h)); }
@media screen and (max-width: 900px) { body.admin-bar .sk-header--sticky { top: 32px; } }
@media screen and (max-width: 782px) { body.admin-bar .sk-header--sticky { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .sk-header--sticky { top: 0; } }

/* Mobile drawer */
.sk-drawer {
  position: fixed; inset: 0; z-index: 500;
  visibility: hidden; pointer-events: none;
}
.sk-drawer.is-open { visibility: visible; pointer-events: auto; }
.sk-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(22, 27, 26, .55);
  opacity: 0; transition: opacity .3s var(--sk-ease);
  backdrop-filter: blur(2px);
}
.sk-drawer.is-open .sk-drawer__scrim { opacity: 1; }
.sk-drawer__panel {
  position: absolute; inset: 0 auto 0 0;
  width: min(360px, 88vw);
  display: flex; flex-direction: column;
  background: var(--sk-surface);
  transform: translateX(-100%);
  transition: transform .32s var(--sk-ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.sk-drawer.is-open .sk-drawer__panel { transform: translateX(0); }
.sk-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sk-3); padding: var(--sk-4) var(--sk-5); border-bottom: 1px solid var(--sk-line); }
.sk-drawer__body { padding: var(--sk-5); flex: 1; }
.sk-drawer__foot { padding: var(--sk-5); border-top: 1px solid var(--sk-line); }

.sk-mobilenav ul { list-style: none; margin: 0; padding: 0; }
.sk-mobilenav li { margin: 0; border-bottom: 1px solid var(--sk-line-soft); }
.sk-mobilenav a {
  display: block; padding: var(--sk-4) 0;
  font-size: var(--sk-fs-md); font-weight: 600; color: var(--sk-ink); text-decoration: none;
}
.sk-mobilenav a:hover { color: var(--sk-brand); }
.sk-mobilenav .sub-menu { display: none; padding-left: var(--sk-4); border-left: 2px solid var(--sk-brand-tint-2); margin-bottom: var(--sk-3); }
.sk-mobilenav li.is-expanded > .sub-menu { display: block; }
.sk-mobilenav .sub-menu li { border-bottom: 0; }
.sk-mobilenav .sub-menu a { padding: var(--sk-2) 0; font-size: var(--sk-fs-base); font-weight: 500; color: var(--sk-body); }
.sk-mobilenav__row { display: flex; align-items: center; justify-content: space-between; }
.sk-subtoggle {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sk-sand); border: 0; border-radius: 50%; color: var(--sk-ink); cursor: pointer;
  transition: transform var(--sk-dur) var(--sk-ease), background-color var(--sk-dur) var(--sk-ease);
}
.sk-subtoggle svg { width: 14px; height: 14px; }
.sk-mobilenav li.is-expanded > .sk-mobilenav__row .sk-subtoggle { transform: rotate(180deg); background: var(--sk-brand); color: #fff; }

/* Search overlay */
.sk-searchbox {
  position: fixed; inset: 0; z-index: 600;
  display: grid; place-items: start center;
  padding-top: 18vh;
  background: rgba(241, 247, 241, .97);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--sk-ease), visibility .25s;
}
:root[data-theme="dark"] .sk-searchbox { background: rgba(18, 16, 14, .97); }
.sk-searchbox.is-open { opacity: 1; visibility: visible; }
.sk-searchbox__inner { width: min(680px, 92vw); }
.sk-searchbox input[type="search"] {
  font-family: var(--sk-font-head); font-size: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  padding: .55em .3em; background: transparent;
  border: 0; border-bottom: 2px solid var(--sk-ink); border-radius: 0;
}
.sk-searchbox input[type="search"]:focus { box-shadow: none; border-color: var(--sk-accent); }
.sk-searchbox__close { position: absolute; top: var(--sk-6); right: var(--sk-6); }

/* 8. FOOTER =============================================================== */

/* Newsletter band sits half-overlapping the dark footer for depth. */
.sk-cta {
  position: relative; z-index: 2;
  margin-bottom: -70px;
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  background: var(--sk-cta-bg);
  border-radius: var(--sk-r-xl);
  color: #fff;
  box-shadow: var(--sk-sh-lg);
  overflow: hidden;
}
.sk-cta::before {
  /* Soft radial bloom so the flat brand block does not read as a slab. */
  content: ""; position: absolute; top: -60%; right: -10%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
  pointer-events: none;
}
.sk-cta__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.sk-cta h2 { color: #fff; margin-bottom: var(--sk-2); }
.sk-cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.sk-cta__form { display: flex; gap: var(--sk-3); flex-wrap: wrap; }
.sk-cta__form input[type="email"] { flex: 1 1 220px; border-color: transparent; }
.sk-cta__form .sk-btn { flex: 0 0 auto; }
.sk-cta__small { display: block; margin-top: var(--sk-3); font-size: var(--sk-fs-xs); color: rgba(255, 255, 255, .85); }

.sk-footer {
  background: var(--sk-invert-bg);
  color: rgba(242, 240, 236, .66);
  padding-top: calc(70px + var(--sk-10));
  font-size: var(--sk-fs-md);
  line-height: 1.55;
}
.sk-footer h3, .sk-footer h4 { color: #fff; }
.sk-footer a { color: rgba(242, 240, 236, .72); text-decoration: none; transition: color .2s ease-in-out; }
.sk-footer a:hover { color: var(--sk-primary-fg); }

/*
 * Three real columns, not four with one left empty: the brand block takes the
 * width it needs for a readable line, the two link columns share what is left.
 */
.sk-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 1.2rem + 3vw, 4.5rem);
  padding-bottom: var(--sk-9);
}

.sk-footer__title {
  position: relative;
  margin-bottom: var(--sk-5); padding-bottom: var(--sk-3);
  font-family: var(--sk-font-body);
  font-size: var(--sk-fs-xs); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.sk-footer__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--sk-primary-fg);
}

.sk-footer ul { list-style: none; margin: 0; padding: 0; }
/* Tight enough to read as a list rather than a column of loose sentences. */
.sk-footer li { margin-bottom: var(--sk-2); }
.sk-footer__grid li a {
  display: inline-block; padding: 3px 0;
  font-size: var(--sk-fs-base);
  transition: color .2s ease-in-out, transform .2s ease-in-out;
}
.sk-footer__grid li a:hover { transform: translateX(3px); }

.sk-footer .sk-brand__name { color: #fff; }
.sk-footer .sk-brand:hover .sk-brand__name { color: var(--sk-primary-fg); }
.sk-footer__about p { margin: var(--sk-4) 0 var(--sk-5); font-size: var(--sk-fs-base); line-height: 1.7; max-width: 38ch; }
.sk-footer .sk-social a { color: rgba(242, 240, 236, .8); background: rgba(255, 255, 255, .07); }
.sk-footer .sk-social a:hover { background: var(--sk-primary); color: #fff; }

/* Topic chips — squared off to sit on the same grid as the cards. */
.sk-chips { display: flex; flex-wrap: wrap; gap: var(--sk-2); }
.sk-chips a {
  display: inline-block; padding: 7px 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  font-size: var(--sk-fs-sm); font-weight: 600; line-height: 1.3;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.sk-chips a:hover { background: var(--sk-primary); border-color: var(--sk-primary); color: #fff; transform: none; }

.sk-footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sk-3) var(--sk-6); flex-wrap: wrap;
  padding: var(--sk-5) 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--sk-fs-sm); color: rgba(242, 240, 236, .55);
}
.sk-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sk-2) var(--sk-5); list-style: none; margin: 0; padding: 0; }
.sk-footer__legal li { margin: 0; }
.sk-footer__legal a { font-size: var(--sk-fs-sm); }

.sk-totop {
  position: fixed; right: var(--sk-5); bottom: var(--sk-5); z-index: 340;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sk-invert-bg); color: var(--sk-invert-fg);
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: var(--sk-sh);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--sk-dur) var(--sk-ease), transform var(--sk-dur) var(--sk-ease), visibility var(--sk-dur), background-color var(--sk-dur) var(--sk-ease);
}
.sk-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sk-totop:hover { background: var(--sk-primary); }
.sk-totop svg { width: 18px; height: 18px; }

/* 9. RESPONSIVE =========================================================== */

@media (max-width: 1080px) {
  .sk-shell--sidebar { grid-template-columns: minmax(0, 1fr); }
  .sk-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sk-8) var(--sk-7); }
  .sk-footer__about { grid-column: 1 / -1; }
  .sk-footer__about p { max-width: 60ch; }
}

@media (max-width: 1024px) {
  :root { --sk-card-gap: 10px; }
}

@media (max-width: 900px) {
  :root { --sk-header-h: 64px; }
  .sk-navbar { display: none; }
  :root { --sk-header-stuck: 64px; }
  .sk-menu-btn { display: inline-flex; }
  .sk-masthead { grid-template-columns: auto 1fr auto; }
  .sk-masthead__left { justify-content: flex-start; }
  .sk-brand { justify-content: center; }
  .sk-masthead__right .sk-social { display: none; }
  .sk-cta__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* Cards stay two-up on phones — a single column of portrait tiles turns
     the archive into an endless scroll. */
  :root { --sk-card-gap: 6px; }
  .sk-grid--2 { grid-template-columns: minmax(0, 1fr); }
  /* A 240px basis would drop to one across on a phone; hold it at two. */
  .sk-grid--3 > *, .sk-grid--4 > * { flex-basis: calc((100% - var(--sk-card-gap)) / 2); }
  .sk-footer__grid { grid-template-columns: 1fr; gap: var(--sk-8); }
  .sk-footer__bar { justify-content: center; text-align: center; }
  .sk-footer__legal { justify-content: center; }
  .sk-cta { margin-inline: 0; }
  .sk-totop { right: var(--sk-4); bottom: var(--sk-4); }
}

@media print {
  .sk-header, .sk-footer, .sk-cta, .sk-totop, .sk-share, .sk-sidebar, .sk-toc { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
}

/* 10. SMALL COMPONENT FIXUPS ============================================== */

/* Brand wrapper is an <h1> on the homepage and a <div> elsewhere. */
.sk-masthead__brand { margin: 0; font-size: inherit; line-height: 1; text-align: center; }
.sk-masthead__brand a { display: inline-block; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 56px; width: auto; }

.sk-masthead__cta { flex: 0 0 auto; }

.sk-searchform button { flex: 0 0 auto; padding-inline: 1em; }
.sk-drawer__search input[type="search"] { background: var(--sk-surface-2); }

/* List archive layout wraps the compact cards in a bordered panel. */
.sk-list {
  padding: var(--sk-6);
  background: var(--sk-surface);
  border: 1px solid var(--sk-line);
  border-radius: var(--sk-r-lg);
}

.sk-share button { border: 0; cursor: pointer; font: inherit; }
.sk-share button.is-copied { background: var(--sk-brand); color: #fff; }

.sk-placeholder { width: 100%; object-fit: cover; }

/* Horizontal scroll container the JS wraps around wide tables. */
.sk-tablewrap { margin: var(--sk-6) 0; -webkit-overflow-scrolling: touch; }
.sk-tablewrap table { margin: 0; }

/* Comment submit button inherits the pill treatment via class_submit. */
.form-submit { margin-bottom: 0; }

@media (max-width: 900px) {
  .sk-masthead__cta { display: none; }
  .sk-masthead__brand { text-align: left; }
}
