/*!
 * SpamKill Blog — theme.css
 * Consolidated, layered stylesheet for the `spamkill-blog` WordPress theme.
 * Built by stylesheet-builder from:
 *   design-reference/{home,single-post,category,tag,search,404}/rendered.html
 *   design-reference/*\/styles.json       (per-component, as-rendered _inlineStyle)
 *   design-reference/components.md        (structural/behaviour inventory)
 *
 * Layer order (mobile-first; the design's own max-width breakpoints live in §8):
 *   1. TOKENS            — :root custom properties (verbatim values)
 *   2. BASE / TYPOGRAPHY — element defaults (verbatim "Global utilities & base")
 *   3. LAYOUT PRIMITIVES — .ctr / .tc / .mx (verbatim)
 *   4. GLOBAL UTILITIES  — .label* / .sh* / .sub / .btn* / .pill* / .mono / .grid-bg / .hover-lift
 *   5. SHARED COMPONENTS — nav, breadcrumb, footer, hero, final-CTA, ribbon, cards, avatars, icons
 *   6. VIEW LAYOUTS      — home, single-post, category, tag, search, 404 (each view's containers,
 *                          grids, sidebars, byline/share, TOC, related, comments, form fields)
 *   7. PROSE / ARTICLE   — .sk-prose scope (ONLY the blocks the reference determines)
 *   8. RESPONSIVE        — the design's exact max-width media queries
 *
 * FONTS: families are referenced ONLY through the family tokens (--fd / --fb / --fm).
 * There is deliberately NO @font-face / @import / Google Fonts here. Per Mihir's font
 * decision, functions.php enqueues the fonts from the Google Fonts CDN (latin, used
 * weights only) — see the Design-System Lead's return for the exact CSS2 URL. The three
 * family names loaded (Outfit, DM Sans, JetBrains Mono) match --fd / --fb / --fm above.
 *
 * ICONS: consumed from assets/img/icons.svg via <svg class="sk-icon"><use href="#icon-*"></svg>.
 * Symbols use stroke="currentColor", so the parent element's `color` drives icon color
 * (white shield on the blue avatar, --slate share glyphs, --fog magnifier).
 *
 * MOTION: JS-driven entrance/scroll animations are intentionally omitted; only genuine CSS
 * states (:hover, the hero "live" pulse) and prefers-reduced-motion are kept.
 *
 * Every value below is reproduced verbatim from the reference. Nothing is rounded,
 * re-scaled, or invented.
 */

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

/* --- Color: base palette + semantic aliases + gradients --- */
:root {
  /* Dark / hero (navbar, hero gradients, dark CTAs) */
  --hero:        #0A1420;
  --hero-mid:    #0D1A2A;
  --navy:        #1A3D5C;
  --shield:      #2D5F8A;
  --steel:       #4A8BC2;
  --steel-15:    rgba(74,139,194,0.15);
  --night-edge:  #1E2E45;
  --deep-card:   #132238;

  /* Accents */
  --amber:       #E8913A;
  --amber-hover: #D47B28;
  --amber-glow:  rgba(232,145,58,0.10);
  --green:       #2D8A5E;
  --green-glow:  rgba(45,138,94,0.10);
  --red:         #E05252;
  --red-glow:    rgba(224,82,82,0.08);

  /* Light surface (page backgrounds, cards, fields) */
  --white:       #FFFFFF;
  --cloud:       #F4F7FA;
  --mist:        #E8EEF4;
  --edge:        #D1DAE3;

  /* Text on light */
  --ink:         #1A2332;
  --slate:       #5A6B7D;
  --fog:         #8B99A8;

  /* Text on dark */
  --frost:       #C8D6E5;

  /* Semantic aliases */
  --text-primary:      var(--ink);
  --text-secondary:    var(--slate);
  --text-muted:        var(--fog);
  --text-on-dark:      var(--white);
  --text-body-dark:    var(--frost);
  --link:              var(--shield);
  --link-hover:        var(--steel);

  --surface-page:      var(--white);
  --surface-alt:       var(--cloud);
  --surface-card:      var(--white);
  --surface-card-dark: var(--deep-card);
  --surface-hover:     var(--mist);

  --border-light:      var(--edge);
  --border-dark:       var(--night-edge);
  --focus-ring:        rgba(45,95,138,0.15);

  --accent-cta:        var(--amber);
  --accent-cta-hover:  var(--amber-hover);
  --accent-success:    var(--green);
  --accent-danger:     var(--red);

  /* Hero / final-CTA gradients */
  --grad-hero: linear-gradient(170deg, var(--hero), #060D16);
  --grad-cta:  linear-gradient(135deg, var(--hero), var(--navy) 50%, var(--shield));
}

/* --- Typography: Outfit (display) / DM Sans (body) / JetBrains Mono (mono) --- */
:root {
  /* Family stacks */
  --fd: 'Outfit', sans-serif;          /* display: headings, buttons */
  --fb: 'DM Sans', sans-serif;         /* body text */
  --fm: 'JetBrains Mono', monospace;   /* code, IPs, hashes, mono data */

  /* Semantic aliases */
  --font-display: var(--fd);
  --font-body:    var(--fb);
  --font-mono:    var(--fm);

  /* Weight scale */
  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --w-bold:     700;
  --w-extra:    800;
  --w-black:    900;

  /* Fluid heading sizes (clamp) */
  --fs-hero: clamp(36px, 5.5vw, 64px);
  --fs-page: clamp(28px, 4vw, 42px);
  --fs-h2:   clamp(26px, 3.5vw, 36px);
  --fs-cta:  clamp(30px, 4.5vw, 46px);
  --lh-hero:    1.06;
  --lh-heading: 1.12;

  /* Body sizes */
  --fs-hero-sub: clamp(16px, 1.8vw, 19px);
  --fs-sub:  17px;
  --fs-body: 15px;
  --fs-card: 14px;
  --fs-meta: 12px;
  --fs-fine: 11px;
  --lh-body: 1.7;
  --lh-sub:  1.65;

  /* Eyebrow label */
  --eyebrow-size:  11px;
  --eyebrow-track: 3px;
}

/* --- Spacing, layout, radius & breakpoint tokens --- */
:root {
  /* Layout container */
  --container-max: 1140px;
  --gutter:        28px;   /* side padding; shrinks to --gutter-sm on small screens */
  --gutter-sm:     20px;

  /* Vertical rhythm */
  --section-y:     80px;
  --hero-y-top:    144px;
  --hero-y-bottom: 72px;
  --cta-y:         88px;

  /* Card padding */
  --card-pad:    24px;
  --card-pad-lg: 32px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 14px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 80px;

  /* Radii */
  --r-sm:      6px;
  --r-md:      10px;
  --r-lg:      12px;
  --r-card:    16px;
  --r-card-lg: 18px;
  --r-pill:    999px;

  /* Breakpoints (max-width) */
  --bp-tablet: 1024px;
  --bp-mobile: 768px;
  --bp-small:  480px;
}

/* --- Shadow & motion tokens --- */
:root {
  --shadow-card:   0 4px 14px rgba(15,23,42,0.04);
  --shadow-hover:  0 8px 24px rgba(15,23,42,0.08);
  --shadow-strong: 0 20px 60px rgba(15,23,42,0.10);
  --shadow-modal:  0 24px 80px rgba(0,0,0,0.30);

  --shadow-amber:  0 8px 28px rgba(232,145,58,0.35);
  --shadow-green:  0 8px 28px rgba(45,138,94,0.35);
  --shadow-steel:  0 8px 28px rgba(74,139,194,0.35);

  --ease:     ease;
  --dur-fast: 0.15s;
  --dur-med:  0.2s;
  --dur-slow: 0.25s;

  --ring: 0 0 0 2px rgba(45,95,138,0.15);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
 * 2. BASE / TYPOGRAPHY   (verbatim "Global utilities & base")
 * ===================================================================== */

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

body {
  margin: 0; /* design reference: body{margin:0}; without it browsers add an 8px frame */
  font-family: var(--fb);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--fd); margin: 0; }
code, pre, .mono { font-family: var(--fm); }

a { color: var(--link); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--link-hover); }

/* =====================================================================
 * 3. LAYOUT PRIMITIVES   (verbatim)
 * ===================================================================== */

.ctr { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.tc  { text-align: center; }
.mx  { margin-left: auto; margin-right: auto; }

/* =====================================================================
 * 4. GLOBAL UTILITIES    (verbatim; entrance/scroll animations omitted)
 * ===================================================================== */

/* Eyebrow labels */
.label   { font: 700 var(--eyebrow-size)/1 var(--fd); letter-spacing: var(--eyebrow-track); text-transform: uppercase; margin-bottom: 14px; }
.label-b { color: var(--shield); }   /* on light */
.label-d { color: var(--steel); }    /* on dark  */

/* Section headings */
.sh    { font-family: var(--fd); font-weight: 800; line-height: var(--lh-heading); margin: 0; }
.sh-xl { font-size: var(--fs-page); }
.sh-lg { font-size: var(--fs-h2); }
.sub   { font-size: var(--fs-sub); line-height: var(--lh-sub); margin-top: 16px; max-width: 600px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--r-md); cursor: pointer;
  font: 700 15px/1 var(--fd); transition: all var(--dur-med);
  border: none; text-decoration: none;
}
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover   { transform: translateY(-2px); box-shadow: var(--shadow-amber); background: var(--amber-hover); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover   { transform: translateY(-2px); box-shadow: var(--shadow-green); background: #258050; }
.btn-steel { background: var(--steel); color: var(--white); }
.btn-steel:hover   { transform: translateY(-2px); box-shadow: var(--shadow-steel); background: #3D7AB0; }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(74,139,194,0.5); }
.btn-ghost:hover   { background: rgba(74,139,194,0.1); border-color: var(--steel); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--edge); }
.btn-outline:hover { border-color: var(--shield); color: var(--shield); }
.btn-sm   { padding: 10px 22px; font-size: 13px; }
.btn-lg   { padding: 16px 40px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* Pills / badges */
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-sm); font: 600 11px var(--fd); }
.pill-green { background: var(--green-glow);     color: var(--green); }
.pill-amber { background: rgba(232,145,58,0.12); color: var(--amber); }
.pill-red   { background: var(--red-glow);       color: var(--red); }
.pill-steel { background: var(--steel-15);       color: var(--shield); }
.pill-mist  { background: var(--mist);           color: var(--fog); }

/* Mono entity strings */
.mono   { font-family: var(--fm); color: var(--steel); font-weight: 500; word-break: break-all; }
.mono a { color: inherit; text-decoration: none; }
.mono a:hover { text-decoration: underline; }

/* Grid background pattern */
.grid-bg {
  background-image:
    linear-gradient(rgba(74,139,194,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,139,194,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hover-lift (a genuine :hover state — kept) */
.hover-lift       { transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0,0,0,0.1); }

/* Ambient "live" dot pulse (used by the hero pill) */
@keyframes pulse { 0%,100% { opacity: .35 } 50% { opacity: .85 } }

/* Icon base (icons.svg sprite; symbols use stroke="currentColor") */
.sk-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* =====================================================================
 * 5. SHARED COMPONENTS   (1:1 with each component's _inlineStyle / raw inline style)
 * ===================================================================== */

/* --- Navbar (all views) --- */
.sk-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 20, 32, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 139, 194, 0.1);
}
.sk-nav-inner     { max-width: var(--container-max); margin: 0 auto; height: 64px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.sk-nav-brand     { display: flex; align-items: center; }
.sk-nav-brand img { height: 30px; width: auto; display: block; }
.sk-nav-desktop   { display: flex; align-items: center; gap: 28px; }
.sk-nav-link      { color: var(--fog); font-size: 13px; font-weight: 500; }
.sk-nav-link:hover { color: var(--white); }
.sk-nav-signin    { padding: 7px 14px; border-radius: 8px; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.18); font: 600 13px var(--fd); }
.sk-nav-cta       { padding: 8px 20px; border-radius: 8px; background: var(--amber); color: var(--white); font: 700 13px var(--fd); transition: 0.2s; }
.sk-nav-cta:hover { background: var(--amber-hover); color: var(--white); }
.sk-nav-ham       { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.sk-nav-ham span  { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* --- Breadcrumb (category, tag, single-post) --- */
.sk-breadcrumb            { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fog); flex-wrap: wrap; margin-bottom: 24px; }
.sk-breadcrumb-link       { color: var(--fog); text-decoration: none; }
.sk-breadcrumb-link:hover { color: var(--shield); }
.sk-breadcrumb-sep        { color: var(--edge); font-weight: 500; }
.sk-breadcrumb-current    { color: var(--ink); font-family: var(--fm); }

/* --- Footer (all views) --- */
.sk-footer          { background: var(--hero); padding: 56px 28px 32px; border-top: 1px solid var(--night-edge); }
.sk-foot-grid       { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; max-width: var(--container-max); margin: 0 auto; }
.sk-foot-brand img  { height: 28px; width: auto; display: block; }
.sk-foot-col-title  { font: 700 11px var(--fd); color: var(--steel); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.sk-foot-link       { display: block; font-size: 13px; color: var(--fog); padding: 5px 0; }
.sk-foot-link:hover { color: var(--white); }
.sk-foot-tagline    { color: var(--fog); font-size: 13px; line-height: 1.65; margin-top: 14px; max-width: 260px; }
.sk-foot-bottom     { max-width: var(--container-max); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--night-edge); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sk-foot-copyright  { font-size: 12px; color: var(--fog); }
.sk-foot-legal      { display: flex; gap: 20px; flex-wrap: wrap; }
.sk-foot-legal-link { font-size: 12px; color: var(--fog); padding: 4px 0; }

/* --- Hero (home; reusable on Pages) --- */
.sk-hero            { background: var(--grad-hero); padding: var(--hero-y-top) 0 var(--hero-y-bottom); position: relative; overflow: hidden; }
.sk-hero-inner      { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.sk-hero-pill       { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 20px; background: rgba(45, 138, 94, 0.08); border: 1px solid rgba(45, 138, 94, 0.2); margin-bottom: 32px; }
.sk-hero-pill-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease infinite; }
.sk-hero-pill-label { font-size: 12px; font-weight: 600; color: var(--green); }
.sk-hero-h1         { font: 900 var(--fs-hero)/var(--lh-hero) var(--fd); color: var(--white); margin-bottom: 24px; letter-spacing: -0.02em; max-width: 820px; }
.sk-hero-highlight  { background-image: linear-gradient(135deg, var(--amber), #F4A853); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sk-hero-sub        { font-size: var(--fs-hero-sub); line-height: 1.7; color: var(--frost); max-width: 560px; margin-bottom: 40px; }

/* --- Final CTA (single-post; reusable on Pages) --- */
.sk-final-cta         { background: var(--grad-cta); padding: var(--cta-y) 0; text-align: center; position: relative; overflow: hidden; }
.sk-final-cta-inner   { max-width: 620px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.sk-final-cta-h2      { font-family: var(--fd); font-weight: 900; font-size: var(--fs-cta); line-height: 1.1; color: var(--white); margin-bottom: 16px; }
.sk-final-cta-sub     { font-size: 18px; color: var(--frost); line-height: 1.65; margin-bottom: 40px; }
.sk-final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sk-final-cta-fine    { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--fog); }
/* The CTA button itself is the design-system Button (amber, large):
   markup uses  class="btn btn-amber btn-lg"  (see §4). No separate class needed. */

/* --- Mockup ribbon (design-harness affordance; DO NOT BUILD into the theme) --- */
.sk-ribbon       { background: var(--hero); padding: 10px 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--night-edge); }
.sk-ribbon-label { font-family: var(--fd); font-weight: 700; font-size: 10px; color: var(--fog); letter-spacing: 1.5px; text-transform: uppercase; }

/* --- Card + sidebar widget: shared surface + hover --------------------
   Card is the wrapper for post cards, the TOC, and the home sidebar widgets
   (Categories / Popular tags). Both share the identical surface + hover. */
.sk-card, .sk-widget {
  position: relative; padding: var(--card-pad);
  background: var(--white); border: 1px solid var(--edge);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.sk-card:hover, .sk-widget:hover { border-color: var(--shield); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(15,23,42,0.08); }
.sk-card-link  { text-decoration: none; color: inherit; display: block; }

/* Cover / thumbnail images fill their framed slot */
.sk-post-cover-frame img,
.sk-featured-media img,
.sk-postcard-thumb img,
.sk-card-media-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Horizontal list post-card (home list, tag, search, 404 popular) --- */
.sk-postcard-row   { display: flex; gap: 20px; align-items: flex-start; }
.sk-postcard-thumb { width: 120px; height: 90px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.sk-postcard-body  { flex: 1 1 0%; min-width: 0; }
.sk-card-title     { font-family: var(--fd); font-weight: 700; font-size: 17px; color: var(--ink); margin: 10px 0 6px; line-height: 1.3; }
.sk-card-excerpt   { font-size: 14px; color: var(--slate); line-height: 1.6; margin: 0 0 10px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sk-card-meta      { font-size: 12px; color: var(--fog); }

/* --- Featured / large post-card (home hero card) --- */
.sk-featured-link    { text-decoration: none; color: inherit; display: block; margin-bottom: 56px; }
.sk-featured-row     { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.sk-featured-media   { flex: 1 1 0%; min-width: 280px; height: 280px; border-radius: 12px; overflow: hidden; }
.sk-featured-body    { flex: 1 1 0%; min-width: 280px; }
.sk-featured-title   { font-family: var(--fd); font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; color: var(--ink); margin: 14px 0 12px; }
.sk-featured-excerpt { font-size: 15px; line-height: 1.7; color: var(--slate); margin: 0 0 18px; }
.sk-featured-meta    { font-size: 13px; color: var(--fog); }

/* --- Vertical grid post-card (category grid + single-post related) --- */
.sk-card-link-grid   { text-decoration: none; color: inherit; cursor: pointer; display: block; height: 100%; }
.sk-grid-cards .sk-card,
.sk-grid-related .sk-card,
.sk-card-link-grid .sk-card { height: 100%; }
.sk-card-grid        { display: flex; flex-direction: column; height: 100%; }
.sk-card-media-grid  { width: 100%; height: 160px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sk-card-pill-grid   { align-self: flex-start; }
.sk-card-title-grid  { font-family: var(--fd); font-weight: 700; font-size: 18px; color: var(--ink); margin: 12px 0 8px; line-height: 1.3; }
.sk-card-excerpt-grid{ font-size: 14px; color: var(--slate); line-height: 1.6; margin: 0 0 14px; flex: 1 1 0%; }
.sk-card-meta-grid   { font-size: 12px; color: var(--fog); padding-top: 12px; border-top: 1px solid var(--mist); }

/* --- Avatar (shield circle; author byline 38px / author bio 52px / white icon) --- */
.sk-avatar        { border-radius: 50%; background: var(--shield); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.sk-avatar--meta  { width: 38px; height: 38px; }
.sk-avatar--bio   { width: 52px; height: 52px; }
.sk-avatar--meta .sk-icon, .sk-avatar--meta svg { width: 20px; height: 20px; }
.sk-avatar--bio  .sk-icon, .sk-avatar--bio  svg { width: 26px; height: 26px; }

/* --- Author name (single-post byline) --- */
.sk-author-name { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--ink); }

/* --- Newsletter widget (home sidebar + single-post sidebar; NOT a Card) --- */
.sk-newsletter              { background: var(--steel-15); border: 1px solid rgba(74, 139, 194, 0.18); border-radius: var(--r-card); padding: var(--card-pad); }
.sk-newsletter-title        { font-family: var(--fd); font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.sk-newsletter--post .sk-newsletter-title { font-size: 15px; }
.sk-newsletter-body         { font-size: 13px; line-height: 1.6; color: var(--slate); margin: 0 0 16px; }
.sk-newsletter--post .sk-newsletter-body  { margin: 0 0 14px; }

/* --- Form fields (newsletter Input; single-post comment form) --------
   Field base determined by rendered inline style + components.md focus spec.
   Border literal #E2E8F0 is used as-rendered (not a palette token). */
.sk-form-field    { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sk-form-row      { display: flex; gap: 14px; flex-wrap: wrap; }
.sk-form-label    { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.sk-form-input,
.sk-form-textarea {
  width: 100%; max-width: 100%; min-width: 0;
  padding: 12px 14px; border: 2px solid #E2E8F0; border-radius: var(--r-md);
  font: inherit; color: var(--ink); background: var(--white);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.sk-form-input:focus,
.sk-form-textarea:focus { border-color: var(--shield); box-shadow: var(--ring); }
.sk-form-textarea { min-height: 140px; resize: vertical; }
.sk-form-check       { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; min-height: 44px; color: var(--ink); line-height: 1.55; cursor: pointer; }
.sk-form-check input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--shield); cursor: pointer; }
/* Submit uses the design-system Button, e.g. class="btn btn-amber". */

/* =====================================================================
 * 6. VIEW LAYOUTS
 * ===================================================================== */

/* --- Shared body column (home main + single-post main) --- */
.sk-col-main { flex: 2 1 0%; min-width: 320px; }

/* --- Vertical list of horizontal cards (tag, search, home) --- */
.sk-list        { display: flex; flex-direction: column; gap: 18px; }
.sk-list--home  { gap: 20px; }
.sk-list--tag   { margin-bottom: 48px; }

/* ----- HOME ----- */
.sk-home       { max-width: var(--container-max); margin: 0 auto; padding: 64px 28px; display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.sk-home-aside { flex: 1 1 0%; min-width: 260px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 88px; }

/* Home sidebar widgets (Categories / Popular tags): Card surface + eyebrow title */
.sk-widget-title { font: 700 11px var(--fd); color: var(--fog); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.sk-widget-list  { display: flex; flex-direction: column; gap: 2px; }
.sk-cat-row      { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--mist); text-decoration: none; color: inherit; }
.sk-cat-row-name { font-size: 14px; color: var(--ink); font-weight: 600; }
.sk-tagcloud     { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----- SINGLE POST ----- */
.sk-post-head        { max-width: 900px; margin: 0 auto; padding: 48px 28px 0; }
.sk-post-title       { font-family: var(--fd); font-weight: 900; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.15; color: var(--ink); margin: 18px 0 22px; max-width: 760px; }

/* Byline row (author group left, share chips right) */
.sk-byline           { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--edge); margin-bottom: 32px; }
.sk-byline-author    { display: flex; align-items: center; gap: 12px; }
.sk-byline-meta      { font-size: 12px; color: var(--fog); }

/* Share row + chips */
.sk-share            { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-share-chip       { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-md); border: 1.5px solid var(--edge); color: var(--slate); font-family: var(--fd); font-weight: 600; font-size: 12px; }
.sk-share-chip .sk-icon, .sk-share-chip svg { width: 14px; height: 14px; }

/* Cover frame */
.sk-post-cover       { max-width: 900px; margin: 0 auto; padding: 0 28px 48px; }
.sk-post-cover-frame { width: 100%; height: 420px; border-radius: 16px; overflow: hidden; }

/* Content wrap: body column + sticky aside */
.sk-post-body        { max-width: 900px; margin: 0 auto; padding: 0 28px 64px; display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.sk-post-aside       { flex: 1 1 0%; min-width: 240px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }
.sk-post-section     { margin-bottom: 36px; }
.sk-post-tags        { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 40px; }

/* Table of contents ("On this page") */
.sk-toc-label        { font: 700 11px var(--fd); color: var(--fog); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.sk-toc-list         { display: flex; flex-direction: column; gap: 2px; }
.sk-toc-item         { cursor: pointer; font-size: 13px; color: var(--slate); padding: 7px 0; line-height: 1.4; }

/* Author bio card (inside a .sk-card) */
.sk-bio              { display: flex; gap: 16px; align-items: center; }
.sk-bio-name         { font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--ink); }
.sk-bio-text         { font-size: 13px; line-height: 1.6; color: var(--slate); margin-top: 4px; }

/* Related reading */
.sk-related          { max-width: 900px; margin: 0 auto; padding: 0 28px 64px; }
.sk-related-title    { font-family: var(--fd); font-weight: 800; font-size: 20px; color: var(--ink); margin-bottom: 24px; }
.sk-grid-related     { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

/* Comments */
.sk-comments         { max-width: 760px; margin: 0 auto; padding: 64px 28px 80px; }
.sk-comments-title   { font-family: var(--fd); font-weight: 800; font-size: 20px; color: var(--ink); margin-bottom: 28px; }
.sk-comment-list     { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.sk-comment          { display: flex; gap: 14px; }
.sk-comment-avatar   { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--fd); font-weight: 700; font-size: 13px; color: var(--slate); }
.sk-comment-body     { flex: 1 1 0%; }
.sk-comment-head     { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sk-comment-author   { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--ink); }
.sk-comment-date     { font-size: 12px; color: var(--fog); }
.sk-comment-text     { font-size: 14px; line-height: 1.65; color: var(--slate); margin: 0; }
.sk-comment-form-title { font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 16px; }

/* ----- CATEGORY ARCHIVE ----- */
.sk-archive      { max-width: var(--container-max); margin: 0 auto; padding: 48px 28px 80px; }
.sk-cat-head     { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.sk-cat-title    { font-family: var(--fd); font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; color: var(--ink); margin: 0; }
.sk-cat-intro    { font-size: 16px; line-height: 1.65; color: var(--slate); max-width: 620px; margin: 0 0 36px; }
.sk-cat-filter   { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--edge); }
.sk-grid-cards   { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ----- TAG ARCHIVE ----- */
.sk-archive-tag  { max-width: 900px; margin: 0 auto; padding: 48px 28px 80px; }
.sk-tag-title    { font-family: var(--fd); font-weight: 800; font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; color: var(--ink); margin: 0 0 10px; }
.sk-tag-count    { font-size: 15px; color: var(--fog); margin: 0 0 32px; }

/* ----- SEARCH ----- */
.sk-search-band       { background: var(--cloud); padding: 48px 28px; border-bottom: 1px solid var(--edge); }
.sk-search-band-inner { max-width: 700px; margin: 0 auto; }
.sk-search-eyebrow    { font: 700 11px var(--fd); color: var(--shield); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.sk-search-field      { display: flex; gap: 10px; align-items: center; background: var(--white); border: 2px solid var(--edge); border-radius: var(--r-md); padding: 4px 4px 4px 16px; }
.sk-search-field--muted { background: var(--cloud); }
.sk-search-icon       { width: 20px; height: 20px; flex-shrink: 0; color: var(--fog); }
.sk-search-input      { flex: 1 1 0%; border: none; outline: none; font-family: var(--fb); font-size: 15px; color: var(--ink); padding: 12px 0; background: transparent; }
.sk-search-results    { max-width: 800px; margin: 0 auto; padding: 40px 28px 80px; }
.sk-search-count      { font-size: 14px; color: var(--fog); margin: 0 0 28px; }

/* ----- 404 ----- */
.sk-404               { max-width: 640px; margin: 0 auto; padding: 120px 28px 100px; text-align: center; }
.sk-404-title         { font-family: var(--fd); font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; color: var(--ink); margin: 24px 0 16px; }
.sk-404-text          { font-size: 16px; line-height: 1.7; color: var(--slate); margin: 0 0 36px; }
.sk-404-search        { margin: 0 auto 40px; max-width: 440px; }   /* combine with .sk-search-field .sk-search-field--muted */
.sk-404-actions       { margin-bottom: 56px; }
.sk-404-popular       { border-top: 1px solid var(--edge); padding-top: 36px; text-align: left; }
.sk-404-popular-title { font: 700 11px var(--fd); color: var(--fog); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; text-align: center; }
.sk-404-popular-list  { display: flex; flex-direction: column; gap: 14px; }

/* =====================================================================
 * 7. PROSE / ARTICLE BODY   —   scope: .sk-prose
 * Covers ONLY the blocks the single-post reference actually renders: h2, p,
 * links, inline code, the pull-quote block, and the framed data table.
 * Base families for h1..h6 and code/pre come from §2 so nothing is unstyled.
 * (h3/h4/h5/h6 sizing, ul/ol/li, block-level blockquote, figure/img/figcaption,
 *  inline code background, and fenced pre/code blocks are NOT determined by the
 *  reference and are intentionally omitted — see FOLLOWUPS.)
 * ===================================================================== */

.sk-prose h2 { font-family: var(--fd); font-weight: 800; font-size: 22px; line-height: 1.3; color: var(--ink); margin: 0 0 16px; }
.sk-prose p  { font-size: 16px; line-height: 1.75; color: var(--slate); margin: 0 0 16px; }
.sk-prose a  { color: var(--link); }
.sk-prose a:hover { color: var(--link-hover); }
.sk-prose code { font-family: var(--fm); }

/* Pull-quote (pullQuoteWrap + pullQuote) */
.sk-pullquote   { background: var(--cloud); border-radius: var(--r-card); padding: 32px; margin: 8px 0 36px; }
.sk-pullquote p { font-family: var(--fd); font-weight: 600; font-size: 20px; line-height: 1.5; color: var(--shield); margin: 0; font-style: italic; }

/* Data table — framed block: border frame + title bar + horizontal-scroll wrapper */
.sk-table-frame  { border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; margin: 8px 0 36px; }
.sk-table-title  { padding: 16px 24px; border-bottom: 1px solid var(--mist); font-family: var(--fd); font-weight: 700; font-size: 13px; color: var(--ink); }
.sk-table-scroll { overflow-x: auto; }
.sk-prose table, .sk-table-frame table { width: 100%; text-align: left; border-collapse: collapse; }
.sk-prose th, .sk-table-frame th { padding: 14px 24px; font: 700 11px var(--fd); color: var(--fog); text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid var(--mist); background: var(--white); text-align: left; }
.sk-prose td, .sk-table-frame td { padding: 14px 24px; border-bottom: 1px solid var(--mist); font-size: 14px; color: var(--ink); text-align: left; }
.sk-prose tr:last-child td, .sk-table-frame tr:last-child td { border-bottom: none; }
.sk-prose tbody tr:hover, .sk-table-frame tbody tr:hover { background: rgba(74,139,194,0.05); }

/* =====================================================================
 * 8. RESPONSIVE   (the design's exact max-width breakpoints)
 * ===================================================================== */

/* Navbar: collapse desktop links → hamburger at the mobile breakpoint */
@media (max-width: 768px) {
  .sk-nav-desktop { display: none !important; }
  .sk-nav-ham     { display: flex !important; }
}

/* Footer grid: 4-col → 2-col (≤1024px) → 1-col (≤480px) */
@media (max-width: 1024px) { .sk-foot-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 480px)  { .sk-foot-grid { grid-template-columns: 1fr !important; } }

/* =====================================================================
 * 9. STAGE-2 ADDITIONS (theme-structure)
 * Token-derived extensions the templates require. Everything below is built
 * from the existing :root tokens only — no new colors/fonts are introduced.
 *   a. Accessibility  — skip link + screen-reader-text
 *   b. Mobile nav     — the hamburger dropdown panel (JS-toggled)
 *   c. Pagination     — on-brand numbered pills (amber = current)
 *   d. Card links     — inherit card colors when the title/thumb is a real <a>
 *   e. Prose blocks   — the core blocks the reference never rendered, derived
 *                       on-system from the type/space/color tokens + --fm
 *   f. Live footer    — brand + 5 columns + social row (BUILD-DECISIONS)
 * ===================================================================== */

/* --- a. Accessibility --------------------------------------------------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.sk-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 12px 20px; background: var(--white); color: var(--shield);
  font: 700 14px var(--fd); border-radius: var(--r-md); box-shadow: var(--shadow-hover);
}
.sk-skip-link:focus { left: 8px; top: 8px; }
.sk-main:focus { outline: none; }

/* --- b. Nav: wp_nav_menu list resets + mobile panel --------------------- */
/* Desktop primary menu (wp_nav_menu <ul>) sits in the .sk-nav-desktop flex row.
   Its anchors receive .sk-nav-link via the nav_menu_link_attributes filter. */
.sk-nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.sk-nav-menu li { margin: 0; }
.sk-nav-mobile-menu { list-style: none; margin: 0; padding: 0; }
.sk-nav-mobile { display: none; }
.sk-nav-mobile a { color: var(--frost); font-size: 15px; font-weight: 500; padding: 10px 0; display: block; }
.sk-nav-mobile a:hover { color: var(--white); }
@media (max-width: 768px) {
  .sk-nav-mobile:not([hidden]) {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: rgba(10, 20, 32, 0.98);
    border-bottom: 1px solid rgba(74, 139, 194, 0.1);
  }
  .sk-nav-mobile .sk-nav-mobile-cta { margin-top: 10px; }
}

/* --- c. Pagination pills ------------------------------------------------ */
.sk-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 48px 0 0; }
.sk-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--edge); border-radius: var(--r-md);
  background: var(--white); color: var(--ink);
  font: 700 14px/1 var(--fd); text-decoration: none;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.sk-pagination a.page-numbers:hover { border-color: var(--shield); color: var(--shield); }
.sk-pagination .page-numbers.current { background: var(--amber); border-color: var(--amber); color: var(--white); }
.sk-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* --- d. Card title / thumbnail links inherit card colors ---------------- */
.sk-card-title a, .sk-card-title-grid a, .sk-featured-title a { color: inherit; text-decoration: none; }
.sk-card-title a:hover, .sk-card-title-grid a:hover, .sk-featured-title a:hover { color: var(--shield); }
.sk-postcard-thumb, .sk-card-media-grid, .sk-featured-media, .sk-post-cover-frame { display: block; }
a.sk-postcard-thumb, a.sk-card-media-grid, a.sk-featured-media { text-decoration: none; }
/* Cards that should NOT lift on hover (comment form, form surfaces). */
.sk-card--static:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--edge); }

/* --- e. Prose: core blocks the reference never exercised ----------------
   Sizing/rhythm derived from the reference's own tokens (h2=22, p=16/1.75,
   space scale, radii) + --fm for code. Kept deliberately restrained so the
   article body stays on-system. */
.sk-prose h3 { font-family: var(--fd); font-weight: 800; font-size: 19px; line-height: 1.3;  color: var(--ink); margin: 32px 0 12px; }
.sk-prose h4 { font-family: var(--fd); font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); margin: 28px 0 10px; }
.sk-prose h5 { font-family: var(--fd); font-weight: 700; font-size: 14px; line-height: 1.4;  color: var(--ink); margin: 24px 0 8px; }
.sk-prose h6 { font-family: var(--fd); font-weight: 700; font-size: 12px; line-height: 1.4;  color: var(--slate); text-transform: uppercase; letter-spacing: 0.4px; margin: 24px 0 8px; }
.sk-prose ul, .sk-prose ol { font-size: 16px; line-height: 1.75; color: var(--slate); margin: 0 0 16px; padding-left: 24px; }
.sk-prose ul { list-style: disc; }
.sk-prose ol { list-style: decimal; }
.sk-prose li { margin: 0 0 8px; }
.sk-prose li > ul, .sk-prose li > ol { margin: 8px 0 0; }
.sk-prose blockquote { margin: 8px 0 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--steel); color: var(--slate); font-style: italic; }
.sk-prose blockquote p { margin: 0 0 8px; }
.sk-prose blockquote p:last-child { margin-bottom: 0; }
.sk-prose figure { margin: 0 0 24px; }
.sk-prose img { max-width: 100%; height: auto; display: block; border-radius: var(--r-card); }
.sk-prose figcaption { font-size: 13px; color: var(--fog); text-align: center; margin-top: 8px; }
.sk-prose :not(pre) > code { font-family: var(--fm); font-size: 0.9em; background: var(--cloud); color: var(--shield); padding: 2px 6px; border-radius: var(--r-sm); word-break: break-word; }
.sk-prose pre { font-family: var(--fm); font-size: 13px; line-height: 1.6; background: var(--hero); color: var(--frost); padding: 20px 24px; border-radius: var(--r-card); overflow-x: auto; margin: 0 0 24px; }
.sk-prose pre code { font-family: inherit; background: none; color: inherit; padding: 0; }
.sk-prose strong, .sk-prose b { font-weight: 700; color: var(--ink); }
.sk-prose em, .sk-prose i { font-style: italic; }
.sk-prose hr { border: none; border-top: 1px solid var(--edge); margin: 32px 0; }
/* Core pull-quote block maps to the design's custom pull-quote look. */
.sk-prose .wp-block-pullquote { background: var(--cloud); border: none; border-radius: var(--r-card); padding: 32px; margin: 8px 0 36px; }
.sk-prose .wp-block-pullquote p { font-family: var(--fd); font-weight: 600; font-size: 20px; line-height: 1.5; color: var(--shield); font-style: italic; margin: 0; }
.sk-prose .wp-block-image { margin: 0 0 24px; }
.sk-prose .wp-block-table { margin: 8px 0 36px; }

/* --- f. Live-site footer: brand + 5 columns + social row ----------------
   Overrides the mockup's 3-column grid (later cascade wins; §8 responsive
   collapses still apply via !important). BUILD-DECISIONS-authorised deviation. */
.sk-foot-grid { grid-template-columns: 1.6fr repeat(5, 1fr); }
.sk-foot-copyright { display: flex; flex-direction: column; gap: 4px; }
.sk-foot-social { display: flex; gap: 12px; margin-top: 18px; }
.sk-foot-social-a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-md);
  border: 1px solid var(--night-edge); color: var(--fog);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.sk-foot-social-a:hover { color: var(--white); border-color: var(--steel); }
.sk-foot-made { display: inline-flex; align-items: center; gap: 6px; opacity: 0.85; }

/* --- g. Newsletter widget (static): input-to-button spacing -------------- */
.sk-newsletter .sk-form-input { margin-bottom: 12px; }
