:root {
  --zb-bone: #EDEAE3;
  --zb-panel: #FFFFFF;
  --zb-ash: #6E6A62;
  --zb-ink: #101010;
  --zb-signal: #FF4A1C;
  --zb-signal-ink: #C4340D;
  --zb-resolved: #1F6F4A;
  --zb-alert: #B0231A;
  --zb-display: 'Syne Variable', 'Syne', system-ui, sans-serif;
  --zb-body: 'Public Sans Variable', 'Public Sans', system-ui, sans-serif;
  --zb-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --zb-text-display-xl: 3.875rem;
  --zb-text-h1: 2.625rem;
  --zb-text-h2: 1.625rem;
  --zb-text-h3: 1.3125rem;
  --zb-text-body-lg: 1.1875rem;
  --zb-text-body: 1.0625rem;
  --zb-text-small: 0.875rem;
  --zb-text-micro: 0.6875rem;
  --zb-leading-tight: 1.02;
  --zb-leading-heading: 1.15;
  --zb-leading-body: 1.7;
  --zb-measure: 68ch;
  --zb-space-1: 0.25rem;
  --zb-space-2: 0.5rem;
  --zb-space-3: 0.75rem;
  --zb-space-4: 1rem;
  --zb-space-5: 1.25rem;
  --zb-space-6: 1.5rem;
  --zb-space-8: 2rem;
  --zb-space-10: 2.5rem;
  --zb-space-12: 3rem;
  --zb-space-16: 4rem;
  --zb-radius: 0;
  --zb-line-hairline: 1px;
  --zb-line-rule: 2px;
  --zb-line-active: 3px;
  --zb-elev-0: none;
  --zb-elev-1: 4px 4px 0 #101010;
  --zb-elev-2: 8px 8px 0 #101010;
  --zb-ease: cubic-bezier(0.2, 0, 0, 1);
  --zb-dur-micro: 160ms;
  --zb-dur-panel: 320ms;
  --zb-dur-page: 600ms;
  --zb-target-min: 44px;
  --zb-target-primary: 48px;
  --c-brand: #C4340D;
  --c-brand-dark: #9E2A0A;
  --c-brand-bright: #FF4A1C;
  --c-cream: #EDEAE3;
  --c-surface: #FFFFFF;
  --c-night: #101010;
  --c-text: #101010;
  --c-text-secondary: #6E6A62;
  --c-text-muted: #6E6A62;
  --c-border: #101010;
  --c-verdict-survives: #1F6F4A;
  --c-verdict-dies: #B0231A;
  --c-verdict-unclear: #6E6A62;
  --font-display: 'Syne Variable', 'Syne', system-ui, sans-serif;
  --font-body: 'Public Sans Variable', 'Public Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
html { font-family: var(--font-body, system-ui, sans-serif); -webkit-font-smoothing: antialiased; background-color: var(--c-cream, #f9f9ff); color: var(--c-text, #0d0e1a); }
body { background-color: var(--c-cream, #f9f9ff); }

h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Zero-Bugs.com only: sharp, rectangular edges everywhere -- Direction D's
   own --zb-radius: 0 above is the system's native value, but shared
   components (BlogPostLayout, Header/Footer/BlogCard/ShareButtons, this
   file's own site-theme.ts-generated nav/footer CSS) hardcode pixel radii
   rather than reading a variable, so this blanket override is still what
   actually enforces zero-radius for them -- the other 5 blogs are
   unaffected. !important is required: extraCss is concatenated BEFORE the
   header/footer CSS in buildThemeCss, so an unweighted rule here would lose
   to their later border-radius rules. */
*, *::before, *::after {
  border-radius: 0 !important;
}


      .zb-skip-link {
        position: absolute;
        left: -9999px;
        top: 0;
        z-index: 9999;
        padding: 0.5rem 1rem;
        background: #000;
        color: #fff;
        font-size: 0.875rem;
        text-decoration: none;
      }
      .zb-skip-link:focus { left: 0; }
      /* PBN-78: WCAG 2.2 SC 2.3.3 — respect prefers-reduced-motion (covers CWJ + any blog using shared BaseLayout) */
      @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
          scroll-behavior: auto !important;
        }
      }


  .zb-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow 0.25s ease;
  }
  .zb-site-header.scrolled {
    box-shadow: 0 4px 28px -6px rgba(10, 14, 26, 0.09);
  }
  .zb-header-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
  }
  .zb-header-inner--logo-center {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: unset;
  }
  .zb-header-inner--logo-center .zb-logo { grid-column: 2; }
  .zb-header-inner--logo-center .zb-nav-desktop { grid-column: 3; justify-self: end; }
  .zb-header-inner--logo-center .zb-nav-toggle { grid-column: 3; justify-self: end; }
  .zb-header-inner--nav-centered .zb-nav-desktop { flex: 1; justify-content: center; }
  .zb-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
  }
  .zb-logo img { display: block; }
  .zb-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 1px;
  }
  .zb-logo-top {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-secondary);
  }
  .zb-logo-bottom {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 0.01em;
  }
  /* Wordmark variant — editorial single-line italic display serif */
  .zb-logo--wordmark { gap: 0; }
  /* ...unless a graphic mark sits in front of it, which needs the normal gap
     back (the wordmark's 0 exists only to keep the segment spans tight). */
  .zb-logo--with-icon { gap: 0.6rem; }
  .zb-logo-icon { display: block; flex-shrink: 0; }
  .zb-logo-mark {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    color: var(--c-text);
    letter-spacing: -0.01em;
    /* line-height 1 clipped descenders ("g", "y") against the header's
       overflow: hidden — 1.5 plus the padding gives the tail room to render. */
    line-height: 1.5;
    padding-bottom: 4px;
    white-space: nowrap;
  }
  @media (max-width: 480px) {
    .zb-logo-mark { font-size: 1.1rem; }
  }
  /* The desktop nav used to appear at 640px, but a 7-item menu plus the CTA
     needs far more room than that: at 768px the CTA's right edge landed at
     786px, 18px off-screen, and the header clips overflow so it just looked
     cut off. 900px is where the full row fits. min-width: 0 lets the nav
     shrink rather than push the CTA out if a site adds another item. */
  .zb-nav-desktop {
    display: none;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
  }
  @media (min-width: 900px) { .zb-nav-desktop { display: flex; } }
  .zb-nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    /* Only bites when the link carries a nav glyph; label-only links have a
       single child, so there is nothing to space. */
    gap: 7px;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
  }
  /* Nav glyphs inherit the link's colour — the active item is marked by its
     underline, not by recolouring the icon. */
  .zb-nav-icon { flex-shrink: 0; }
  .zb-nav-link:hover {
    color: var(--c-text);
    background: var(--c-surface);
  }
  .zb-nav-link:focus-visible,
  .zb-nav-cta:focus-visible {
    outline: 2px solid var(--c-brand, #2563eb);
    outline-offset: 3px;
    border-radius: 8px;
  }
  .zb-nav-link--active {
    color: var(--c-text);
    font-weight: 600;
    position: relative;
  }
  .zb-nav-link--active::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    /* Falls back to the blog's own brand colour, not straight to a hardcoded
       Google blue: only AOSF defines --c-accent-blue, so every other site was
       underlining its active nav item in a colour outside its palette. Same
       chain the mobile nav's active marker already used. */
    background: var(--c-accent-blue, var(--c-brand, #4285f4));
    border-radius: 1px;
  }
  .zb-nav-cta {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--c-brand-dark);
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    margin-left: 0.5rem;
    transition: background 0.15s, transform 0.1s;
  }
  .zb-nav-cta:hover { background: var(--c-brand); transform: translateY(-1px); }
  .zb-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
  }
  @media (min-width: 900px) { .zb-nav-toggle { display: none; } }

  /* bars: classic 3-bar hamburger */
  .zb-nav-toggle--bars span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: 0.2s;
  }

  /* dots: kebab-style 3 dots */
  .zb-nav-toggle--dots span {
    display: block;
    width: 5px;
    height: 5px;
    background: var(--c-text);
    border-radius: 50%;
    transition: 0.2s;
  }

  /* cross: 2 bars that rotate to X when open */
  .zb-nav-toggle--cross { gap: 0; }
  .zb-nav-toggle--cross span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease, margin 0.22s ease;
    margin: 4px 0;
  }
  .zb-nav-toggle--cross[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .zb-nav-toggle--cross[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
  }
  /* Mobile dropdown: right-anchored card, thumb-reachable */
  .zb-nav-mobile {
    position: absolute;
    top: calc(100% + 8px);
    right: 0.75rem;
    width: clamp(232px, 72vw, 296px);
    max-height: calc(100dvh - 62px - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--c-cream, #fdfcf8);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: 0 18px 48px -16px rgba(10, 14, 26, 0.22), 0 4px 12px -6px rgba(10, 14, 26, 0.08);
    padding: 0.5rem;
    z-index: 51;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.22s;
    pointer-events: none;
  }
  .zb-nav-mobile[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
    pointer-events: auto;
  }
  @media (min-width: 900px) { .zb-nav-mobile { display: none; } }
  .zb-nav-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .zb-nav-mobile-link {
    font-family: var(--font-body);
    font-size: 0.975rem;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
    padding: 0.7rem 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }
  .zb-nav-mobile-link:hover,
  .zb-nav-mobile-link:focus-visible {
    background: var(--c-surface, rgba(10, 14, 26, 0.04));
    color: var(--c-text);
  }
  .zb-nav-mobile-link:focus-visible {
    /* Brand before blue, as everywhere else — the desktop nav's focus ring
       already used the blog's own colour. */
    outline: 2px solid var(--c-accent-blue, var(--c-brand, #4285f4));
    outline-offset: 2px;
  }
  .zb-nav-mobile-link:active { transform: scale(0.985); }
  .zb-nav-mobile-arrow {
    font-size: 0.85rem;
    color: var(--c-text-secondary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .zb-nav-mobile-link:hover .zb-nav-mobile-arrow,
  .zb-nav-mobile-link:focus-visible .zb-nav-mobile-arrow {
    opacity: 1;
    transform: translateX(0);
  }
  .zb-nav-mobile-link--active {
    color: var(--c-text);
    font-weight: 600;
    background: var(--c-surface, rgba(10, 14, 26, 0.04));
  }
  .zb-nav-mobile-link--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    border-radius: 2px;
    background: var(--c-accent-blue, var(--c-brand, #4285f4));
  }
  .zb-nav-mobile-cta {
    font-family: var(--font-body);
    font-size: 0.975rem;
    font-weight: 600;
    color: #fff;
    background: var(--c-brand-dark, var(--c-brand, #1a1a1a));
    text-decoration: none;
    padding: 0.7rem 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    margin-top: 6px;
    transition: background 0.15s ease, transform 0.1s ease;
  }
  .zb-nav-mobile-cta:hover { background: var(--c-brand, var(--c-brand-dark, #1a1a1a)); }
  .zb-nav-mobile-cta:active { transform: scale(0.985); }

  /* Stagger entry of links when the menu opens */
  .zb-nav-mobile[data-open] .zb-nav-mobile-link,
  .zb-nav-mobile[data-open] .zb-nav-mobile-cta {
    animation: zb-navItemIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(60ms + var(--i, 0) * 35ms);
  }
  @keyframes zb-navItemIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .zb-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 49;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
  .zb-nav-overlay[data-open] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
  }
  @media (min-width: 900px) { .zb-nav-overlay { display: none; } }

  @media (prefers-reduced-motion: reduce) {
    .zb-nav-mobile,
    .zb-nav-mobile[data-open],
    .zb-nav-overlay,
    .zb-nav-overlay[data-open] {
      transition: opacity 0.001s, visibility 0s;
      transform: none;
    }
    .zb-nav-mobile[data-open] .zb-nav-mobile-link,
    .zb-nav-mobile[data-open] .zb-nav-mobile-cta {
      animation: none;
    }
  }


  .zb-site-footer {
    background: var(--c-night);
    color: #94a3b8;
    font-family: var(--font-body);
  }
  .zb-footer-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .zb-footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1rem; }
  @media (min-width: 640px) {
    .zb-footer-inner { grid-template-columns: 2fr 1fr 1fr; padding: 4rem 1.5rem 3rem; gap: 2.5rem; }
    .zb-footer-brand { grid-column: auto; }
  }
  .zb-footer-logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
  .zb-footer-logo-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-image: url('/favicon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .zb-footer-logo-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 1rem;
    color: #cbd5e1;
  }
  .zb-footer-logo-name span {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
  }
  .zb-footer-logo-name strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
  }
  .zb-footer-logo--wordmark { gap: 0; }
  .zb-footer-logo--with-icon { gap: 0.65rem; }
  .zb-footer-logo-img { display: block; flex-shrink: 0; }
  .zb-footer-logo-mark {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.01em;
    /* Same descender fix as the header wordmark. */
    line-height: 1.5;
    padding-bottom: 4px;
    white-space: nowrap;
    color: #e2e8f0;
  }
  @media (max-width: 480px) {
    .zb-footer-logo-mark { font-size: 1.1rem; }
  }
  .zb-footer-tagline { font-size: 1rem; line-height: 1.65; color: #94a3b8; max-width: 30ch; }
  .zb-footer-note { font-size: 0.875rem; line-height: 1.5; color: #94a3b8; max-width: 32ch; }
  .zb-footer-social { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 0.75rem; align-items: center; }
  .zb-footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; color: #94a3b8; background: rgba(148,163,184,0.1); transition: color 0.2s, background 0.2s; }
  .zb-footer-social-link:hover { color: #fff; background: rgba(148,163,184,0.25); }
  .zb-footer-link:focus-visible,
  .zb-footer-policy-link:focus-visible,
  .zb-footer-social-link:focus-visible { outline: 2px solid #93b4ff; outline-offset: 3px; border-radius: 4px; }
  .zb-footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 1rem;
  }
  .zb-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
  .zb-footer-link { font-size: 1rem; color: #cbd5e1; text-decoration: none; transition: color 0.15s; }
  .zb-footer-link:hover { color: var(--c-brand); }
  .zb-footer-bottom {
    border-top: 1px solid #1a2234;
    max-width: 76rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
  }
  .zb-footer-bottom p { margin: 0; }
  @media (min-width: 640px) {
    .zb-footer-bottom { justify-content: space-between; text-align: left; }
  }
  .zb-footer-policy-link { color: #94a3b8; text-decoration: none; }
  .zb-footer-policy-link:hover { color: var(--c-brand); }
  .zb-footer-consent-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; }
  .zb-footer-policy-sep { color: #94a3b8; margin: 0 0.5rem; }
