/* ==========================================================================
   SITE-WIDE CSS -- haydenschuster.com
   
   Section 1: Content width + full-bleed system
   Section 2: Homepage full-bleed sections
   Section 3: Single post mobile layout
   Section 8: Header/Footer v4.4
   Section 9: Blog Query Loop typography
   
   Sections 4-7 (old nav, mobile overlay, site title, reduced motion)
   were replaced by Section 8 and are intentionally omitted.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CONTENT WIDTH + FULL-BLEED SYSTEM
   -------------------------------------------------------------------------- */

.wp-block-post-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.wp-block-post-content > .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-cover.alignfull {
  padding-left: 0;
  padding-right: 0;
}

.wp-block-post-content > .full-bleed {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Portfolio page: widen content wrapper for .hp */
.wp-block-post-content:has(> .hp),
.wp-block-post-content:has(.hp) {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hp {
  max-width: none !important;
  padding-left: clamp(16px, 3vw, 48px) !important;
  padding-right: clamp(16px, 3vw, 48px) !important;
}

@media (min-width: 782px) {
  .home .wp-block-cover.has-parallax {
    background-attachment: fixed;
  }
}

.clamp-border {
  max-width: calc(var(--wp--style--global--content-size) + 24px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.clamp-border :where(.alignwide, .alignfull) {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   2. HOMEPAGE FULL-BLEED SECTIONS
   -------------------------------------------------------------------------- */

.home .wp-block-post-content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: clip;
}

.home .hh,
.home .s1,
.home .s2,
.home .s3,
.home .s4 {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
}

.s1-inner,
.s2-inner,
.s3-inner,
.s4-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 781px) {
  .home .wp-block-post-content {
    padding-left: 0;
    padding-right: 0;
  }
}


/* --------------------------------------------------------------------------
   3. SINGLE POST MOBILE LAYOUT
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
  body.single-post :where(.entry-content, .wp-block-post-content, main) {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    overflow-x: clip;
  }

  body.single-post :where(.entry-content, .wp-block-post-content, main) > :where(.alignwide, .alignfull) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
  }

  body.single-post .wp-block-post-title {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}


/* ═══════════════════════════════════════════════════════════════
   8. HEADER/FOOTER v4.4

   FONT: Montserrat is loaded via WPCode snippet.

   v4.4 changes:
   - Tetris redesigned with real tetrominos (verified perfect clear)
   - Full-saturation colors, no muting
   - Desktop: 5px cells, 18px gap from brand text
   - Mobile: 12px cells, centered divider
   - Old tetris-well sequential fill replaced with tetris-board
     using explicit grid-column/grid-row positions
   ═══════════════════════════════════════════════════════════════ */


/* ── Custom Properties ── */

:root {
  --hf-bg: #0a0a0a;
  --hf-bg-95: rgba(10, 10, 10, 0.95);
  --hf-text: #fff;
  --hf-text-muted: rgba(255, 255, 255, 0.5);
  --hf-text-nav: rgba(255, 255, 255, 0.72);
  --hf-text-nav-hover: #fff;
  --hf-green: #86b931;
  --hf-green-dim: rgba(134, 185, 49, 0.5);
  --hf-border: rgba(255, 255, 255, 0.06);
  --hf-hover-bg: rgba(255, 255, 255, 0.08);
  --hf-system: rgba(139, 92, 246, 0.85);
  --hf-system-full: rgb(139, 92, 246);
  --stage-found: 134, 185, 49;
  --stage-understood: 139, 92, 246;
  --stage-chosen: 56, 189, 176;
}


/* ── Global Resets ── */

html {
  scroll-padding-top: 82px;
  overflow-x: clip !important;
}

body {
  overflow-x: clip !important;
}

/* Kill WP block gap between homepage sections */
.home .entry-content.wp-block-post-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Full-bleed sections break out of WP content constraint */
.hh, .s1, .sm, .s4 {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: none !important;
}

/* SVG containment -- prevents theme from blowing up inline nav icons */
.sh svg,
.sf svg {
  width: 1em !important;
  height: 1em !important;
  display: inline-block !important;
  vertical-align: middle;
  overflow: hidden;
}


/* ── Header Shell ── */

.sh {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--hf-bg);
  border-bottom: 1px solid var(--hf-border);
  transition: background-color 0.2s ease;
}

.sh.is-scrolled {
  background: var(--hf-bg-95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


/* ── Brand ── */

.sh-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  flex-shrink: 0;
}

.sh-brand-text {
  display: flex;
  flex-direction: column;
}

.sh-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 17px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--hf-text);
  line-height: 1.1;
  white-space: nowrap;
}

.sh-sig {
  display: flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  margin-top: 1px;
  height: 8px;
}

.sh-sig-word {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sh-sig-found     { color: rgba(var(--stage-found), 0.65); }
.sh-sig-understood { color: rgba(var(--stage-understood), 0.55); }
.sh-sig-chosen    { color: rgba(var(--stage-chosen), 0.55); }

.sh-sig-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 4px;
  flex-shrink: 0;
}


/* ── Tetris Board (real tetrominos, explicit grid positions) ── */

.tetris-board {
  display: grid;
  grid-template-columns: repeat(10, var(--tb-cell));
  grid-template-rows: repeat(4, var(--tb-cell));
  gap: var(--tb-gap);
  flex-shrink: 0;
}

.tb {
  border-radius: 1px;
}

/* Full-saturation piece colors */
.tb--i { background: rgb(var(--stage-found)); }
.tb--e { background: rgb(var(--stage-found)); opacity: 0.7; }
.tb--a { background: rgb(var(--stage-understood)); }
.tb--b { background: rgb(var(--stage-chosen)); }
.tb--c { background: rgb(234, 179, 8); }
.tb--d { background: rgb(59, 130, 246); }
.tb--f { background: rgb(232, 82, 141); }
.tb--g { background: rgb(245, 158, 11); }
.tb--h { background: rgb(244, 132, 95); }
.tb--k { background: rgb(96, 165, 250); }

/* Desktop: in header brand, 5px cells */
.tetris-board--dt {
  --tb-cell: 5px;
  --tb-gap: 1px;
  align-self: center;
  opacity: 0.8;
}

/* Mobile: nav divider, 12px cells */
.tetris-board--mob {
  --tb-cell: 12px;
  --tb-gap: 2px;
}

.sh-mob-tetris {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.75rem;
  flex-shrink: 0;
}


/* ── Proof Bar ── */

.sh-proof {
  height: 0;
  overflow: hidden;
  background: var(--hf-bg);
  border-bottom: 1px solid var(--hf-border);
  transition: height 0.3s ease;
}

.sh.is-scrolled .sh-proof {
  height: 24px;
}

.sh-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sh-proof-item {
  position: absolute;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  opacity: 0;
  animation: proof-cycle 40s infinite;
}

.sh-proof-item:nth-child(1) { animation-delay: 0s; }
.sh-proof-item:nth-child(2) { animation-delay: 8s; }
.sh-proof-item:nth-child(3) { animation-delay: 16s; }
.sh-proof-item:nth-child(4) { animation-delay: 24s; }
.sh-proof-item:nth-child(5) { animation-delay: 32s; }

@keyframes proof-cycle {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  18%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}


/* ── Desktop Nav ── */

.sh-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
}

.sh-nav-item {
  position: relative;
}

.sh-nav-link {
  display: block;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hf-text-nav);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
  position: relative;
}

.sh-nav-link:hover,
.sh-nav-link:focus-visible {
  color: var(--hf-text-nav-hover);
  background: var(--hf-hover-bg);
}

.sh-nav-link:focus-visible {
  outline: 2px solid var(--hf-green-dim);
  outline-offset: -2px;
}

/* Active page underline */
.sh-nav-link.is-active::after,
.sh-nav-item.current-menu-item > .sh-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--hf-green);
  border-radius: 1px;
}

/* "The System" CTA -- purple, no hover bg, puzzle icon */
.sh-nav .sh-nav-link--system {
  color: var(--hf-system);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sh-nav .sh-nav-link--system:hover {
  color: var(--hf-system-full);
  background: transparent;
}

.sh-nav .sh-nav-link--system svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0;
}

/* Dropdown caret on parent items */
.sh-has-sub > .sh-nav-link {
  padding-right: 18px;
}

.sh-has-sub > .sh-nav-link::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3.5px solid currentColor;
  opacity: 0.4;
  transform: translateY(-50%);
}


/* ── Dropdowns ── */

.sh-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  list-style: none;
  z-index: 100;
}

/* Bridge gap between trigger and dropdown */
.sh-has-sub.is-open::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.sh-has-sub.is-open > .sh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sh-dropdown a {
  display: block;
  position: relative;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
  border-radius: 4px;
  margin: 0 4px;
}

.sh-dropdown a:hover {
  background: rgba(var(--stage-found), 0.12);
  color: #fff;
}

/* SEO Systems highlight -- purple */
.sh-dropdown .sh-dd-system {
  color: var(--hf-system);
  font-weight: 600;
}

.sh-dropdown .sh-dd-system:hover {
  background: rgba(var(--stage-understood), 0.12);
  color: var(--hf-system-full);
}

/* Current page indicator */
.sh-dropdown a.is-current,
.sh-dropdown .current-menu-item > a {
  background: rgba(var(--stage-found), 0.06);
  color: var(--hf-green);
  font-weight: 500;
}

.sh-dropdown a.is-current::before,
.sh-dropdown .current-menu-item > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--hf-green);
  border-radius: 1px;
}


/* ── Utility Cluster ── */

.sh-utils {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sh-util-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--hf-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.sh-util-btn:hover {
  color: var(--hf-text);
  background: var(--hf-hover-bg);
}

.sh-util-btn:focus-visible {
  outline: 2px solid var(--hf-green-dim);
  outline-offset: -2px;
}

.sh-util-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}


/* ── Hamburger ── */

.sh-burger {
  display: none;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 7px;
  -webkit-tap-highlight-color: transparent;
}

.sh-burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 16px;
}

.sh-burger-lines span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--hf-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.sh-burger.is-open .sh-burger-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sh-burger.is-open .sh-burger-lines span:nth-child(2) {
  opacity: 0;
}

.sh-burger.is-open .sh-burger-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── Mobile Overlay ── */

.sh-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 72px 24px 24px;
  flex-direction: column;
}

.sh-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sh-mob-nav {
  list-style: none;
}

.sh-mob-item {
  border-bottom: 1px solid #eee;
}

.sh-mob-item:last-child {
  border-bottom: none;
}

.sh-mob-row {
  display: flex;
  align-items: center;
}

.sh-mob-link {
  flex: 1;
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sh-mob-link:hover {
  color: var(--hf-green);
}

.sh-mob-link.is-active {
  color: var(--hf-green);
}

/* "The System" -- purple with puzzle icon */
.sh-mob-nav .sh-mob-link--system {
  color: var(--hf-system);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sh-mob-nav .sh-mob-link--system svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
}

/* Expand arrow */
.sh-mob-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sh-mob-arrow svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor;
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.sh-mob-arrow.is-expanded svg {
  transform: rotate(90deg);
}

/* Subcategory links -- left-aligned with hash border */
.sh-mob-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.sh-mob-sub.is-expanded {
  max-height: 500px;
}

.sh-mob-sub a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #666;
  text-decoration: none;
  border-left: 2px solid #eee;
  margin-left: 2px;
  -webkit-tap-highlight-color: transparent;
}

.sh-mob-sub a:hover {
  color: var(--hf-green);
  border-left-color: var(--hf-green);
}

/* SEO Systems in submenu -- purple */
.sh-mob-sub .sh-mob-dd-system {
  color: var(--hf-system);
  font-weight: 600;
}

.sh-mob-sub .sh-mob-dd-system:hover {
  color: var(--hf-system-full);
  border-left-color: var(--hf-system-full);
}

/* Utils -- pinned to bottom */
.sh-mob-utils {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* CTA -- full width */
.sh-mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--hf-green);
  border-radius: 8px;
  text-decoration: none;
}

.sh-mob-cta:hover {
  opacity: 0.9;
}

.sh-mob-cta svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}


/* ── Footer ── */

.sf {
  background: var(--hf-bg);
  border-top: 1px solid var(--hf-border);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(16px, 3vw, 32px) 0;
}

.sf-map {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.sf-stage {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2.5vw, 2rem);
  border-top: 2px solid rgba(var(--s), 0.5);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sf-stage--found      { --s: var(--stage-found); }
.sf-stage--understood { --s: var(--stage-understood); }
.sf-stage--chosen     { --s: var(--stage-chosen); }

.sf-stage-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(var(--s), 0.7);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sf-stage-num {
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  opacity: 0.6;
  background: rgba(var(--s), 0.15);
  color: rgba(var(--s), 0.9);
}

.sf-stage-desc {
  font-size: 10.5px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sf-stage-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.sf-stage-stat {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  gap: 3px;
}

.sf-stage-stat-num {
  font-size: 10px;
  font-weight: 800;
  min-width: 12px;
  color: rgba(var(--s), 0.45);
}

.sf-pillar {
  font-size: 13px;
  font-weight: 500;
  color: var(--hf-text-nav);
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.12s ease;
}

.sf-pillar:hover {
  color: var(--hf-text);
}

.sf-hub-divider {
  width: 20px;
  height: 1px;
  background: var(--hf-border);
  margin: 4px 0;
}

.sf-hub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  padding: 1.5px 0;
  transition: color 0.12s ease;
}

.sf-hub:hover {
  color: var(--hf-text-nav);
}

.sf-cta-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--hf-green);
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.sf-cta-btn:hover {
  opacity: 0.88;
}

.sf-cta-btn svg {
  width: 14px !important;
  height: 14px !important;
  fill: currentColor;
}

.sf-cta-secondary {
  font-size: 12px;
  font-weight: 500;
  color: var(--hf-text-muted);
  text-decoration: none;
  transition: color 0.12s ease;
}

.sf-cta-secondary:hover {
  color: var(--hf-text-nav);
}

.sf-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0 clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-id-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
}

.sf-id-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.sf-id-sep {
  color: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.sf-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
}


/* ── WP Admin Bar Fix ── */

body.admin-bar .sh { top: 32px; }
body.admin-bar .sh-overlay { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .sh { top: 46px; }
  body.admin-bar .sh-overlay { top: 46px; }
}


/* ── WP Template Part Spacing Kill ── */

.wp-block-template-part:has(.sh) { padding: 0; margin: 0; }
.wp-block-template-part:has(.sf) { padding: 0; margin: 0; }


/* ── Responsive ── */

@media (max-width: 768px) {
  html { scroll-padding-top: 60px; }
  .sh-sig { display: none; }
  .tetris-board--dt { display: none; }
  .sh-proof { display: none; }
  .sh-nav { display: none; }
  .sh-burger { display: block; }
  .sh-overlay { display: flex; }
  .sh-utils { gap: 2px; }
  .sf-map { grid-template-columns: 1fr; }
  .sf-stage { padding: 1rem 0; }
  .sf-pillar { padding: 6px 0; }
  .sf-hub { padding: 5px 0; }
  .sf-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .sh-proof-item:first-child { opacity: 1; }
}


/* ── Skip Link ── */

.sh-skip {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--hf-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  z-index: 1001;
}

.sh-skip:focus {
  top: 0;
}


/* ── Scoped Overflow Fix (decorative elements) ── */

.hh,
.sm {
  position: relative;
  overflow-x: hidden;
}

.hh-orb,
.hh-atmo,
.hh-grain,
.sm-glow {
  pointer-events: none;
  max-width: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   9. BLOG QUERY LOOP TYPOGRAPHY

   Applies DM Serif Display / DM Sans to article cards in the
   WordPress Query Loop block used on blog index and pillar pages.
   Width constraint scoped to body.category (pillar pages only).
   ═══════════════════════════════════════════════════════════════ */

.wp-block-post-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}

.wp-block-post-excerpt__excerpt {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1.6;
}

.wp-block-post-terms {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wp-block-post-author-name,
.wp-block-post-date {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 0.78rem !important;
}

body.category .wp-block-post-template {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

body.category .wp-block-query > h2,
body.category .wp-block-query > .wp-block-heading {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}