/*
Theme Name: Twenty Twenty-Four XP Vibes (Royale Noir + Win11 Mica)
Theme URI: https://xpvibes.com/
Description: Windows XP Royale Noir + Windows 11 Dark Mica Block Child Theme for XPVibes.com (XP Stockpile). Provides automatic simplified OS Taskbar (dynamic xpvibes_primary WP menu), 3D XP Emblem, Background switcher (Subtle Glow / Matrix Rain / Solid Dark), Gutenberg Block Styles (XP Royale Window · Titlebar · Mica Card · Stat Tile · Royale Button · Emerald Pill), the XP Projects CPT, and zero-build xpvibes/* dynamic blocks.
Author: Mark Smith (XP Stockpile)
Author URI: https://xpvibes.com/
Template: twentytwentyfour
Version: 2.8.7
Text Domain: twentytwentyfour-xpvibes
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: block-styles, dark, full-site-editing, custom-colors, custom-menu
*/

/* ==========================================================================
   ROYALE NOIR + WIN11 DARK MICA — DESIGN TOKENS & OS COMPONENT CSS
   (self-contained — ported 1:1 from xpvibes_com_luna_matrix_os_live_design
    prototype v2.8.7, zero CDN dependencies in production)
   ========================================================================== */
    :root {
      /* v2.6 Royale Noir + Win11 Mica design tokens */
      --bg-desktop: #070b14;
      --mica-surface: rgba(16, 23, 38, 0.78);
      --mica-card: rgba(22, 31, 50, 0.72);
      --mica-border: rgba(148, 163, 184, 0.16);
      --royale-highlight: #38bdf8;
      --royale-cobalt: #2563eb;
      --xp-emerald: #22c55e;
      --bg-obsidian: #070b14;
      --matrix-green: #00ff66;
      --xp-cyan: #38bdf8;
    }

    body {
      background-color: var(--bg-desktop);
      color: #cbd5e1;
      overflow-x: hidden;
    }

    /* Win11 Mica Ambient Bloom — hardware-accelerated radial light behind glass */
    .mica-bloom {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 82% 22%, rgba(14, 165, 233, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 50% 85%, rgba(34, 197, 94, 0.12) 0%, transparent 48%);
      transform: translateZ(0);
      transition: opacity 0.6s ease;
    }

    /* Subtle CRT & Matrix Grid Overlay */
    .crt-grid-overlay {
      background-image: 
        linear-gradient(rgba(0, 255, 102, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
      background-size: 28px 28px;
    }

    /* Authentic Windows XP Royale Noir / Zune Dark Taskbar */
    .xp-taskbar {
      background: linear-gradient(180deg, #1e293b 0%, #0f172a 14%, #090d16 50%, #05080f 52%, #0a111e 100%);
      border-bottom: 2px solid #1e3a5f;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(56, 189, 248, 0.35);
    }

    /* Iconic Glossy XP Green Start Button (Matrix Edition) */
    .xp-start-btn {
      background: linear-gradient(180deg, #34d399 0%, #10b981 18%, #059669 48%, #047857 52%, #065f46 88%, #064e3b 100%);
      border: 1px solid #6ee7b7;
      box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.55),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(16, 185, 129, 0.45);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
      transition: all 0.15s ease;
    }
    .xp-start-btn:hover {
      filter: brightness(1.12);
      box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        0 0 20px rgba(0, 255, 102, 0.65);
    }
    .xp-start-btn:active {
      transform: translateY(1px);
    }

    /* Taskbar Window Tab Pill */
    .xp-tab-btn {
      background: linear-gradient(180deg, #162235 0%, #0d1522 50%, #090f1a 52%, #0d1624 100%);
      border: 1px solid rgba(56, 189, 248, 0.25);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
      transition: all 0.15s ease;
    }
    .xp-tab-btn:hover, .xp-tab-btn.active {
      background: linear-gradient(180deg, #1d3557 0%, #0f2544 48%, #0a1930 52%, #102a4c 100%);
      border-color: #38bdf8;
      box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.4), 0 0 10px rgba(56, 189, 248, 0.25);
      color: #ffffff;
    }

    /* Windows XP Royale Noir Application Window Frame */
    .xp-window {
      background: var(--mica-surface);
      backdrop-filter: blur(22px) saturate(160%);
      -webkit-backdrop-filter: blur(22px) saturate(160%);
      border: 1px solid var(--mica-border);
      border-top-left-radius: 9px;
      border-top-right-radius: 9px;
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
      box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(56, 189, 248, 0.10),
        inset 0 0 24px rgba(37, 99, 235, 0.05);
      transition: none;
    }
    /* v2.8.5 — UNIFORM WINDOW BEHAVIOUR: the outer .xp-window /
       .is-style-xp-window containers no longer lift, glow or shift on
       hover. All Home windows (HOME.EXE · STUDIO_PILLARS // WHAT WE BUILD ·
       FEATURED_FLAGSHIPS.exe) behave identically with a static shadow;
       inner interactive controls keep their own hover states. */
    .xp-window:hover,
    .is-style-xp-window:hover {
      transform: none;
    }

    /* Win11 Mica Elevated Card Surface (inner dossier panels) */
    .mica-panel {
      background: var(--mica-card);
      backdrop-filter: blur(22px) saturate(160%);
      -webkit-backdrop-filter: blur(22px) saturate(160%);
      border: 1px solid var(--mica-border);
    }

    /* Glossy 3D Beveled Windows XP "Royale Noir" 50/50 Title Bar */
    .xp-titlebar {
      background: linear-gradient(180deg, #2d384d 0%, #1b2436 49%, #0c111d 50%, #162238 100%);
      border-bottom: 1px solid rgba(56, 189, 248, 0.32);
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.5);
      padding: 6px 10px;
      user-select: none;
    }

    /* Active / Flagship Window Titlebar — royal-blue top edge glow */
    .xp-titlebar-emerald {
      background: linear-gradient(180deg, #2d384d 0%, #1b2436 49%, #0c111d 50%, #162238 100%);
      border-top: 1px solid rgba(96, 165, 250, 0.45);
      border-bottom: 1px solid rgba(56, 189, 248, 0.32);
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(34, 197, 94, 0.18), 0 2px 8px rgba(0, 0, 0, 0.5);
      padding: 6px 10px;
      user-select: none;
    }

    /* Authentic XP Top-Right Window Control Buttons — Royale Noir glossy bevel pills */
    .xp-ctrl-btn {
      width: 21px;
      height: 21px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      background: linear-gradient(180deg, #475569 0%, #243044 49%, #141c2c 50%, #1e293b 100%);
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(0, 0, 0, 0.5);
      color: #e2e8f0;
      cursor: pointer;
      transition: all 0.12s ease;
    }
    .xp-ctrl-btn:hover {
      filter: brightness(1.25);
      border-color: var(--royale-highlight);
    }

    /* Royale Noir Close Button — glows crimson (#e81123) on hover */
    .xp-close-btn {
      background: linear-gradient(180deg, #b91c1c 0%, #991b1b 49%, #7f1d1d 50%, #9f1239 100%);
      border: 1px solid rgba(252, 165, 165, 0.55);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
      color: #ffffff;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    }
    .xp-close-btn:hover {
      background: #e81123;
      border-color: #fca5a5;
      box-shadow: 0 0 10px rgba(232, 17, 35, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    /* XP Address / Sub-Toolbar Strip */
    .xp-address-bar {
      background: linear-gradient(180deg, #0f172a 0%, #090e17 100%);
      border-bottom: 1px solid rgba(56, 189, 248, 0.18);
      font-family: 'JetBrains Mono', monospace;
    }

    /* XP Bottom Recessed Status Bar */
    .xp-statusbar {
      background: linear-gradient(180deg, #090d14 0%, #0d131f 100%);
      border-top: 1px solid #1e293b;
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
    }
    .xp-status-pane {
      border-right: 1px solid #1e293b;
      box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.65);
    }

    /* Custom Dark Matrix Scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    ::-webkit-scrollbar-track {
      background: #060a09;
      border-left: 1px solid #1e293b;
    }
    ::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #1e3a5f, #0f5132);
      border-radius: 4px;
      border: 1px solid rgba(56, 189, 248, 0.35);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #2563eb, #10b981);
    }

    /* Glowing Phosphor Text */
    .matrix-glow {
      text-shadow: 0 0 12px rgba(0, 255, 102, 0.45);
    }
    .luna-glow {
      text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    }

    /* Win11 Mica Category Filter Pills */
    .cat-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      background: var(--mica-card);
      backdrop-filter: blur(22px) saturate(160%);
      -webkit-backdrop-filter: blur(22px) saturate(160%);
      border: 1px solid var(--mica-border);
      color: #cbd5e1;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .cat-pill:hover {
      border-color: rgba(56, 189, 248, 0.5);
      color: #f8fafc;
    }
    .cat-pill.active {
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.55) 0%, rgba(14, 165, 233, 0.35) 100%);
      border-color: var(--royale-highlight);
      color: #ffffff;
      font-weight: 700;
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 16px rgba(37, 99, 235, 0.45);
    }
    .pill-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 16px;
      padding: 0 5px;
      border-radius: 999px;
      background: rgba(34, 197, 94, 0.18);
      border: 1px solid rgba(34, 197, 94, 0.5);
      color: #4ade80;
      font-size: 10px;
      font-weight: 700;
    }

    /* ===== ROYALE-MICA OS v2.6 — WP CHILD THEME 4-PAGE VIEW SWITCHER ===== */
    .wp-page-view {
      display: none;
    }
    .wp-page-view.active {
      display: block;
      animation: wpPageFadeIn 180ms ease-out;
    }
    @keyframes wpPageFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* WordPress Page Tabs (Royale Noir taskbar tabs + active cyan/emerald bottom bar + slug hint) */
    .wp-page-tab {
      position: relative;
      /* v2.8.7 — tabs are SINGLE-LINE horizontal chips (icon+label side by
         side). The old flex-direction: column here stacked 🏠 above Home
         the moment any display:flex applied — permanently retired. */
      flex-direction: row;
    }
    .wp-page-tab .wp-slug {
      font-size: 9px;
      line-height: 1;
      opacity: 0.55;
      color: #7dd3fc;
      font-family: 'JetBrains Mono', monospace;
    }
    .wp-page-tab.active .wp-slug {
      opacity: 0.95;
      color: #38bdf8;
    }
    .wp-page-tab.active::after {
      content: "";
      position: absolute;
      left: 6px;
      right: 6px;
      bottom: -1px;
      height: 2px;
      border-radius: 2px;
      background: linear-gradient(90deg, #38bdf8, #34d399);
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.85), 0 0 4px rgba(52, 211, 153, 0.6);
    }

    /* WP Block Guide: Editable Gutenberg Page Content vs. Automatic Child Theme Shell */
    body.wp-guide-active .wp-page-view.active {
      position: relative;
      outline: 2px dashed rgba(56, 189, 248, 0.6);
      outline-offset: 14px;
      border-radius: 8px;
    }
    body.wp-guide-active .wp-page-view.active::before {
      content: "[WP Page Content — Editable in Gutenberg Pages]";
      position: absolute;
      top: -12px;
      right: 8px;
      z-index: 40;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      color: #7dd3fc;
      background: #0c111d;
      border: 1px dashed #38bdf8;
      border-radius: 6px;
      padding: 2px 8px;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    }
    body.wp-guide-active .wp-shell {
      position: relative;
      outline: 2px dashed rgba(52, 211, 153, 0.55);
      outline-offset: -4px;
    }
    body.wp-guide-active #shell-footer {
      outline-offset: 4px;
    }
    body.wp-guide-active .wp-shell::after {
      content: "[Child Theme Shell — Automatic OS Frame]";
      position: absolute;
      top: 100%;
      right: 8px;
      margin-top: -22px;
      z-index: 40;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      color: #4ade80;
      background: #0c111d;
      border: 1px dashed #34d399;
      border-radius: 6px;
      padding: 2px 8px;
      box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
      pointer-events: none;
    }
    body.wp-guide-active #shell-footer::after {
      top: -12px;
      margin-top: 0;
    }
    #wpGuideBtn.wp-guide-on {
      background: rgba(16, 185, 129, 0.2);
      border-color: #34d399;
      color: #a7f3d0;
      box-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
    }

    /* v2.6.2 click-through guarantee: closed overlays must never capture pointer events */
    #dossierModal.hidden {
      display: none !important;
      pointer-events: none;
    }

    /* v2.6.1 — /privacy/ & /terms/ legal document sub-views (inside #wp-page-legal) */
    .wp-legal-doc {
      display: none;
    }
    .wp-legal-doc.active {
      display: block;
      animation: wpPageFadeIn 180ms ease-out;
    }

/* ==========================================================================
   WORDPRESS CHILD THEME SHELL LAYOUT
   ========================================================================== */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-desktop);
  /* v2.8.7 — reserve the scrollbar lane on EVERY page so navigating between
     short pages (/blog/) and tall pages (/projects/) never shifts the
     centered layout horizontally (~15px CLS kill). */
  scrollbar-gutter: stable;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

/* Main workspace (page templates) — same 96vw desktop geometry as prototype */
.xpvibes-main-workspace {
  position: relative;
  z-index: 10;
  max-width: 96vw;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 0.5rem;
}
@media (min-width: 640px) {
  .xpvibes-main-workspace { padding: 1.5rem 1.5rem; }
}
@media (min-width: 1280px) {
  .xpvibes-main-workspace { max-width: 1440px; }
}
.xpvibes-main-workspace > * + * { margin-top: 1.5rem; }
.xpv-pattern > * + * { margin-top: 1.5rem; }

/* Legal pattern wrapper — visible outside the prototype view switcher */
.xpv-legal-doc { display: block; }

/* v2.7.1 — TAB-STACKING FIX: in live WordPress the OS workspace sections are
   real in-page tabs. The old prototype escape hatch (display:block on every
   .wp-page-view) caused all 4 pages to stack vertically. Hard-suppress every
   inactive view/doc at maximum specificity so neither Tailwind Play CDN nor
   WordPress Core layout styles can re-reveal them. */
section.wp-page-view:not(.active),
.wp-page-view:not(.active),
.wp-legal-doc:not(.active) {
  display: none !important;
}
section.wp-page-view.active,
.wp-legal-doc.active {
  display: block !important;
}

/* Sticky header stays above Mica bloom + matrix canvas */
header.xpv-header-shell { position: sticky; top: 0; z-index: 50; }
#matrixCanvas { opacity: 0.10; }
img, svg { vertical-align: middle; }

/* Taskbar anchor tabs (live WP links) behave like the prototype buttons */
a.xp-tab-btn { text-decoration: none; }
a.xp-tab-btn:hover { color: #ffffff; }

/* ==========================================================================
   GUTENBERG BLOCK STYLES (registered in functions.php) — v2.8.1
   Pure native core/group, core/column, core/paragraph and core/button
   blocks render the FULL Royale Noir window chrome with zero raw HTML.
   ========================================================================== */

/* 1. XP Royale Window — Group block (dark translucent Mica frame) */
.wp-block-group.is-style-xp-window,
.is-style-xp-window {
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(10, 17, 32, 0.88);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  overflow: hidden;
  padding: 0 0 1.5rem 0;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  position: relative;
}
/* Inner child blocks receive clean horizontal padding; the flush titlebar
   paragraph (is-style-window-titlebar) is excluded and spans edge-to-edge. */
.is-style-xp-window > :not(.is-style-window-titlebar) {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.is-style-xp-window > .xp-titlebar,
.is-style-xp-window > .xp-titlebar-emerald {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

/* v2.8.5 — UNIFORM FULL-WIDTH WINDOWS + TITLEBARS (STUDIO_PILLARS fix):
   1. .xp-window (classic frame + dynamic-block output) and
      .is-style-xp-window (native core/group block style) share the EXACT
      same full container width — zero side gutters, zero width drift.
   2. The editable titlebar paragraph inside an XP window ALWAYS spans
      100% of the window width, defeating WordPress core's
      `.is-layout-constrained > *` max-width caps that previously shrank
      the STUDIO_PILLARS // WHAT WE BUILD titlebar. */
.xp-window,
.is-style-xp-window,
.wp-block-group.is-style-xp-window {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.is-style-xp-window > p.is-style-window-titlebar {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* v2.8.6 — FLUSH TITLEBAR PARITY (HOME.EXE ⟷ STUDIO_PILLARS ⟷ FLAGSHIPS):
   WordPress core's `.has-global-padding` (added to any group rendered with
   layout "default" by the theme style engine) and `.is-layout-constrained`
   could inset the FIRST row of an XP window, so the glossy titlebar no
   longer touched the window's left/right/top edges. Every XP window —
   native core/group is-style-xp-window, its has-global-padding variant,
   and the dynamic-block .xp-window (flagship spotlight + explorer) — is
   locked to zero top/left/right padding with overflow:hidden, and every
   titlebar (native paragraph OR div .xp-titlebar/.xp-titlebar-emerald)
   spans 100% width, flush, with zero outer inset and zero border radius.
   Inner body content keeps its clean padding; core/cover children stay
   flush edge-to-edge under the titlebar. */
.wp-block-group.is-style-xp-window,
.wp-block-group.is-style-xp-window.has-global-padding,
.is-style-xp-window,
.is-style-xp-window.has-global-padding,
.xp-window,
.xp-window.has-global-padding {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
}
.is-style-xp-window > p.is-style-window-titlebar,
.xp-window > .xp-titlebar,
.xp-window > .xp-titlebar-emerald {
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}
.is-style-xp-window > p.is-style-window-titlebar {
  margin: 0 0 1.5rem 0 !important;
}
.xp-window > .xp-titlebar,
.xp-window > .xp-titlebar-emerald {
  margin: 0 !important;
}
/* Inner window content — clean 1.75rem rails, never inside the titlebar. */
.is-style-xp-window > :not(.is-style-window-titlebar):not(.wp-block-cover) {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.is-style-xp-window > .wp-block-cover {
  padding-left: 0;
  padding-right: 0;
}

/* 1b. XP Royale Titlebar — Paragraph block: glossy flush-top header bar.
   Mark edits every window title directly in wp-admin (core/paragraph).
   Decorative _ □ × window controls are pure CSS ::after — no raw HTML. */
p.is-style-window-titlebar,
.is-style-window-titlebar {
  margin: 0 0 1.5rem 0 !important;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(180deg, #1b3668 0%, #102142 52%, #0a1428 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: nowrap;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* v2.8.5 — wp-emoji fix: WordPress core converts emoji characters inside
   titlebars into <img class="wp-smiley emoji"> child nodes. NEVER let those
   images flex-grow across the bar (root cause of the giant emoji gap that
   pushed title text flush-right). */
p.is-style-window-titlebar img.emoji,
p.is-style-window-titlebar img.wp-smiley,
.xp-titlebar img.emoji,
.xp-titlebar img.wp-smiley,
.xp-titlebar-emerald img.emoji,
.xp-titlebar-emerald img.wp-smiley {
  flex: 0 0 auto !important;
  width: 1.05em !important;
  height: 1.05em !important;
  margin: 0 !important;
  display: inline-block !important;
}
p.is-style-window-titlebar::after,
.is-style-window-titlebar::after {
  content: "";
  display: inline-block;
  width: 68px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  background: no-repeat center / 68px 20px url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2068%2020'%3E%3Cdefs%3E%3ClinearGradient%20id='cs'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%233b4c6b'/%3E%3Cstop%20offset='0.55'%20stop-color='%231b2538'/%3E%3Cstop%20offset='1'%20stop-color='%230f172a'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='rd'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23f87171'/%3E%3Cstop%20offset='0.5'%20stop-color='%23dc2626'/%3E%3Cstop%20offset='1'%20stop-color='%23991b1b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20x='0.5'%20y='1'%20width='19'%20height='18'%20rx='4'%20fill='url(%23cs)'%20stroke='%2364748b'%20stroke-opacity='0.65'/%3E%3Crect%20x='5.5'%20y='13.5'%20width='9'%20height='1.8'%20rx='0.6'%20fill='%23ffffff'/%3E%3Crect%20x='24.5'%20y='1'%20width='19'%20height='18'%20rx='4'%20fill='url(%23cs)'%20stroke='%2364748b'%20stroke-opacity='0.65'/%3E%3Crect%20x='29.2'%20y='6'%20width='9.6'%20height='9'%20rx='1'%20fill='none'%20stroke='%23ffffff'%20stroke-width='1.5'/%3E%3Crect%20x='29.2'%20y='6'%20width='9.6'%20height='3.2'%20rx='0.8'%20fill='%23ffffff'/%3E%3Crect%20x='48.5'%20y='1'%20width='19'%20height='18'%20rx='4'%20fill='url(%23rd)'%20stroke='%23fca5a5'%20stroke-opacity='0.75'/%3E%3Cpath%20d='M54%206.5%20L62%2015%20M62%206.5%20L54%2015'%20stroke='%23ffffff'%20stroke-width='1.8'%20stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 2. Win11 Mica Card — Group / Column block (elevated Dark Mica surface) */
.is-style-mica-card,
.wp-block-column.is-style-mica-card,
.wp-block-group.is-style-mica-card {
  background: rgba(22, 31, 50, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* 2b. XP Status Metric Tile — Group / Column block (STUDIO_STATUS.exe 2x2)
   Compact centered monospace metric boxes; heading = value, paragraph = label. */
.is-style-stat-tile,
.wp-block-column.is-style-stat-tile,
.wp-block-group.is-style-stat-tile {
  background: rgba(4, 8, 6, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 8px;
  padding: 0.85rem 0.6rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.45);
}
.is-style-stat-tile > :where(h1, h2, h3, h4, p) {
  margin: 0;
  padding: 0;
}
.is-style-stat-tile > :where(h1, h2, h3, h4) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
}
/* v2.8.1 — defeat Tailwind-preflight-inherited sizing on native headings.
   Doubled class specificity so these always outrank the generic
   .is-style-xp-window heading rules (stat tiles live inside xp-windows). */
.is-style-stat-tile .wp-block-heading,
.is-style-stat-tile p:first-child,
.is-style-xp-window .is-style-stat-tile .wp-block-heading,
.is-style-xp-window .is-style-stat-tile > :where(h1, h2, h3, h4) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
}
.is-style-stat-tile > p {
  font-size: 0.66rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 0.3rem !important;
  text-transform: none;
}
/* 2x2 grid hint: stat tiles dropped inside a core/columns row */
.wp-block-column.is-style-stat-tile { flex: 1 1 auto; }

/* 3. XP Royale Glossy Button */
.wp-block-button.is-style-royale-btn .wp-block-button__link,
.is-style-royale-btn > a,
.is-style-royale-btn > button {
  background: linear-gradient(180deg, #34d399 0%, #10b981 18%, #059669 48%, #047857 52%, #065f46 88%, #064e3b 100%) !important;
  border: 1px solid #6ee7b7 !important;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  transition: all 0.15s ease;
}
.wp-block-button.is-style-royale-btn .wp-block-button__link:hover,
.is-style-royale-btn > a:hover,
.is-style-royale-btn > button:hover {
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(0, 255, 102, 0.65);
}

/* 4. XP Emerald Status Pill
   v2.8.2 — DOUBLE GREEN RING FIX: the standalone pill skin is scoped to
   p.is-style-emerald-pill only; the outer .wp-block-button wrapper is hard
   reset (transparent, no border/padding/shadow/radius) so the inner
   .wp-block-button__link anchor draws ONE clean emerald pill. */
p.is-style-emerald-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  margin: 0.25rem 0;
}
.wp-block-button.is-style-emerald-pill {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.wp-block-button.is-style-emerald-pill .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  border-radius: 9999px;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.15s ease;
}
.wp-block-button.is-style-emerald-pill .wp-block-button__link:hover {
  background: rgba(16, 185, 129, 0.26);
  border-color: #34d399;
  color: #ecfdf5;
}

/* 5. v2.8.1 — Secondary "Win11 Dark Mica" button surface for plain core/button
   blocks inside .is-style-xp-window (e.g. "How We Build (Tri-Agent Lab) →",
   "View 6 Extensions →"). Styled so they read as intentional dark-mica chips
   instead of floating text; royale-btn / emerald-pill keep their own skins. */
.is-style-xp-window .wp-block-button:not(.is-style-royale-btn):not(.is-style-emerald-pill) .wp-block-button__link,
.is-style-xp-window .wp-block-buttons:not(.is-style-royale-btn):not(.is-style-emerald-pill) .wp-block-button:not(.is-style-royale-btn):not(.is-style-emerald-pill) .wp-block-button__link {
  background: rgba(22, 31, 50, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.16s ease;
}
.is-style-xp-window .wp-block-button:not(.is-style-royale-btn):not(.is-style-emerald-pill) .wp-block-button__link:hover,
.is-style-xp-window .wp-block-buttons:not(.is-style-royale-btn):not(.is-style-emerald-pill) .wp-block-button:not(.is-style-royale-btn):not(.is-style-emerald-pill) .wp-block-button__link:hover {
  background: rgba(30, 58, 138, 0.45);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
}

/* 6. v2.8.1 — Frontend heading typography inside XP Royale windows.
   Tailwind Play CDN Preflight (and any inherit-resets) collapse native
   Gutenberg .wp-block-heading elements to body-text size on the live site.
   These explicit, high-specificity rules restore the Space Grotesk display
   scale and mirror assets/css/editor-style.css inside the block editor. */
.is-style-xp-window h1.wp-block-heading,
.wp-block-group.is-style-xp-window h1.wp-block-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #f8fafc;
  margin: 0.35rem 0 0.75rem 0;
}
.is-style-xp-window h2.wp-block-heading,
.wp-block-group.is-style-xp-window h2.wp-block-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #f8fafc;
  margin: 0.25rem 0 0.75rem 0;
}
.is-style-xp-window h3.wp-block-heading,
.wp-block-group.is-style-xp-window h3.wp-block-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
}

/* v2.8.1 — standalone ✏️ quick-edit bar prepended on native-chrome pages */
.xp-quickedit-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* Editor affordance: keep ambient surfaces visible inside Gutenberg */
.editor-styles-wrapper {
  background-color: var(--bg-desktop);
  color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE LAYOUT UTILITY LAYER (self-contained Tailwind-subset compiler —
   generated deterministically from the markup used by this theme's shell,
   template parts and block patterns; zero CDN dependencies in production)
   ========================================================================== */


/* ==========================================================================
   v2.7.1 — FSE OVERRIDE LAYER (fixes the 4 live-site issues)
   ========================================================================== */

/* Issue 1: never leak the parent Twenty Twenty-Four header/footer template
   parts — the OS taskbar + #shell-footer are injected by functions.php. */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part,
header.wp-block-template-part,
footer.wp-block-template-part {
  display: none !important;
}

/* Issue 2: neutralize WordPress Core .is-layout-constrained width squashing */
.wp-site-blocks,
.wp-site-blocks > main,
.entry-content,
.wp-block-post-content,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1440px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.is-layout-constrained > .alignwide { max-width: 1440px !important; }
.wp-block-post-title {
  display: none !important; /* The Royale Noir .xp-titlebar shows the page title */
}

/* Automatic OS workspace page frame */
body {
  background-color: var(--bg-desktop);
  color: #cbd5e1;
}
#shell-footer-bar { z-index: 10; }

/* v2.8.2 — sticky taskbar sits cleanly BELOW the WordPress admin bar and
   never covers page content: top 0 logged-out, 46px mobile admin bar,
   32px desktop admin bar. */
#xpvibes-os-taskbar { top: 0; }
body.admin-bar #xpvibes-os-taskbar { top: 46px; }
@media (min-width: 782px) {
  body.admin-bar #xpvibes-os-taskbar { top: 32px; }
}

/* v2.8.2 — mobile taskbar safety net (< 768px): the two-tier flexbox
   (.xp-taskbar-inner) wraps onto two rows; since v2.8.7 this is owned
   100% by style.css — inc/os-taskbar.php carries ZERO Tailwind classes. */
@media (max-width: 767.98px) {
  #xpvibes-os-taskbar > div { flex-wrap: wrap; }
}

/* ==========================================================================
   .xp-prose — rich typography for auto-framed standard WordPress pages
   v2.7.2 — FULL-WIDTH LEGAL SURFACE FIX: .xp-prose fills the entire
   .xp-window body (width 100%, max-width 100%) with the Royale dark-navy
   gradient painted across the whole container — zero black side gutters.
   ========================================================================== */
.xp-prose {
  color: #cbd5e1;
  font-size: 0.9375rem;
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
}
.xp-window > .xp-prose {
  background: linear-gradient(180deg, rgba(10, 19, 36, 0.94) 0%, rgba(5, 10, 20, 0.96) 100%);
}
/* v2.7.2 — full-bleed Royale navy body for the legal document windows
   (#wp-doc-privacy / #wp-doc-terms) in os-workspace + legal-window pattern */
.xp-legal-body {
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(10, 19, 36, 0.94) 0%, rgba(5, 10, 20, 0.96) 100%);
}
/* v2.7.2 — ✏️ Edit in WP-Admin quick-edit badge (logged-in editors only) */
.xp-quick-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.xp-quick-edit:hover {
  background: rgba(34, 197, 94, 0.26);
  border-color: #4ade80;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
  text-decoration: none;
}
/* v2.7.4 — 🎨 Customize Hero pill (cyan twin of the quick-edit badge) */
.xp-customize-hero {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}
.xp-customize-hero:hover {
  background: rgba(56, 189, 248, 0.26);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}
.xp-prose > * + * { margin-top: 1rem; }
.xp-prose h1, .xp-prose h2, .xp-prose h3, .xp-prose h4 {
  color: #f8fafc;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.xp-prose h1 { font-size: 1.875rem; }
.xp-prose h2 { font-size: 1.5rem; }
.xp-prose h3 { font-size: 1.25rem; }
.xp-prose h4 { font-size: 1.05rem; }
.xp-prose p, .xp-prose li { color: #cbd5e1; line-height: 1.7; }
.xp-prose a { color: #38bdf8; text-decoration: none; font-weight: 600; }
.xp-prose a:hover { color: #4ade80; text-decoration: underline; }
.xp-prose strong { color: #f8fafc; }
.xp-prose em { color: #94a3b8; }
.xp-prose ul, .xp-prose ol { padding-left: 1.4rem; }
.xp-prose li { margin: 0.35rem 0; }
.xp-prose code {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  border-radius: 999px;
  padding: 2px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
}
.xp-prose pre { background: #020617; border: 1px solid #1e293b; border-radius: 10px; padding: 1rem; overflow-x: auto; }
.xp-prose pre code { background: transparent; border: 0; border-radius: 0; padding: 0; color: #6ee7b7; }
.xp-prose hr { border: 0; border-top: 1px solid #1e293b; margin: 1.5rem 0; }
.xp-prose blockquote {
  border-left: 3px solid #38bdf8;
  padding: 0.25rem 0 0.25rem 1rem;
  color: #94a3b8;
  font-style: italic;
}
.xp-prose table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.xp-prose th, .xp-prose td { border: 1px solid #1e293b; padding: 0.5rem 0.75rem; text-align: left; }
.xp-prose th { background: rgba(16, 23, 38, 0.78); color: #f8fafc; font-family: 'JetBrains Mono', monospace; }
.xp-prose img { max-width: 100%; height: auto; border-radius: 8px; }

/* AUTOMATICALLY GENERATED — self-contained Tailwind-subset utility layer
   compiled deterministically from theme markup (zero CDN dependencies). */

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .5 } }
@keyframes ping { 0% { transform: scale(1); opacity: 1 } 75%, 100% { transform: scale(2); opacity: 0 } }
@keyframes spin { to { transform: rotate(360deg) } }

.no-scrollbar::-webkit-scrollbar { display: none }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none }

.\!px-2 { padding-left:0.5rem !important; padding-right:0.5rem !important }
.\!px-3 { padding-left:0.75rem !important; padding-right:0.75rem !important }
.\!py-1 { padding-top:0.25rem !important; padding-bottom:0.25rem !important }
.\!text-\[9px\] { font-size:9px !important; line-height:1.5 !important }
.absolute { position:absolute }
.animate-ping { animation:ping 1s cubic-bezier(0,0,.2,1) infinite }
.animate-pulse { animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite }
.backdrop-blur-sm { -webkit-backdrop-filter:blur(4px) saturate(180%); backdrop-filter:blur(4px) saturate(180%) }
.bg-\[\#040806\] { background-color:#040806 }
.bg-\[\#22c55e\] { background-color:#22c55e }
.bg-amber-500\/20 { background-color:color-mix(in srgb, #f59e0b 20%, transparent) }
.bg-amber-950\/70 { background-color:color-mix(in srgb, #451a03 70%, transparent) }
.bg-black\/80 { background-color:color-mix(in srgb, #000000 80%, transparent) }
.bg-blue-500\/20 { background-color:color-mix(in srgb, #3b82f6 20%, transparent) }
.bg-blue-950\/80 { background-color:color-mix(in srgb, #172554 80%, transparent) }
.bg-emerald-400 { background-color:#34d399 }
.bg-emerald-400\/20 { background-color:color-mix(in srgb, #34d399 20%, transparent) }
.bg-emerald-500\/10 { background-color:color-mix(in srgb, #10b981 10%, transparent) }
.bg-emerald-500\/20 { background-color:color-mix(in srgb, #10b981 20%, transparent) }
.bg-emerald-600 { background-color:#059669 }
.bg-emerald-950\/70 { background-color:color-mix(in srgb, #022c22 70%, transparent) }
.bg-gradient-to-b { background-image:linear-gradient(to bottom,var(--tw-gradient-stops,transparent)) }
.bg-gradient-to-r { background-image:linear-gradient(to right,var(--tw-gradient-stops,transparent)) }
.bg-green-400 { background-color:#4ade80 }
.bg-purple-500\/20 { background-color:color-mix(in srgb, #a855f7 20%, transparent) }
.bg-sky-500\/20 { background-color:color-mix(in srgb, #0ea5e9 20%, transparent) }
.bg-sky-950 { background-color:#082f49 }
.bg-sky-950\/70 { background-color:color-mix(in srgb, #082f49 70%, transparent) }
.bg-sky-950\/80 { background-color:color-mix(in srgb, #082f49 80%, transparent) }
.bg-sky-950\/90 { background-color:color-mix(in srgb, #082f49 90%, transparent) }
.bg-slate-500 { background-color:#64748b }
.bg-slate-700\/80 { background-color:color-mix(in srgb, #334155 80%, transparent) }
.bg-slate-800 { background-color:#1e293b }
.bg-slate-900 { background-color:#0f172a }
.bg-slate-900\/90 { background-color:color-mix(in srgb, #0f172a 90%, transparent) }
.bg-slate-900\/95 { background-color:color-mix(in srgb, #0f172a 95%, transparent) }
.bg-slate-950 { background-color:#020617 }
.bg-slate-950\/80 { background-color:color-mix(in srgb, #020617 80%, transparent) }
.bg-slate-950\/90 { background-color:color-mix(in srgb, #020617 90%, transparent) }
.bg-slate-950\/95 { background-color:color-mix(in srgb, #020617 95%, transparent) }
.bg-teal-500\/20 { background-color:color-mix(in srgb, #14b8a6 20%, transparent) }
.border { border-width:1px; border-style:solid }
.border-2 { border-width:2px; border-style:solid }
.border-\[\#22c55e\]\/40 { border-color:color-mix(in srgb, #22c55e 40%, transparent); border-style:solid }
.border-\[\#22c55e\]\/50 { border-color:color-mix(in srgb, #22c55e 50%, transparent); border-style:solid }
.border-amber-400\/40 { border-color:color-mix(in srgb, #fbbf24 40%, transparent); border-style:solid }
.border-amber-500 { border-color:#f59e0b; border-style:solid }
.border-amber-500\/30 { border-color:color-mix(in srgb, #f59e0b 30%, transparent); border-style:solid }
.border-amber-500\/40 { border-color:color-mix(in srgb, #f59e0b 40%, transparent); border-style:solid }
.border-b { border-bottom-width:1px; border-style:solid }
.border-blue-500 { border-color:#3b82f6; border-style:solid }
.border-emerald-400 { border-color:#34d399; border-style:solid }
.border-emerald-400\/40 { border-color:color-mix(in srgb, #34d399 40%, transparent); border-style:solid }
.border-emerald-500 { border-color:#10b981; border-style:solid }
.border-emerald-500\/30 { border-color:color-mix(in srgb, #10b981 30%, transparent); border-style:solid }
.border-emerald-500\/40 { border-color:color-mix(in srgb, #10b981 40%, transparent); border-style:solid }
.border-l { border-left-width:1px; border-style:solid }
.border-l-4 { border-left-width:4px; border-style:solid }
.border-purple-500 { border-color:#a855f7; border-style:solid }
.border-purple-500\/30 { border-color:color-mix(in srgb, #a855f7 30%, transparent); border-style:solid }
.border-purple-500\/40 { border-color:color-mix(in srgb, #a855f7 40%, transparent); border-style:solid }
.border-sky-400 { border-color:#38bdf8; border-style:solid }
.border-sky-400\/40 { border-color:color-mix(in srgb, #38bdf8 40%, transparent); border-style:solid }
.border-sky-400\/70 { border-color:color-mix(in srgb, #38bdf8 70%, transparent); border-style:solid }
.border-sky-500\/30 { border-color:color-mix(in srgb, #0ea5e9 30%, transparent); border-style:solid }
.border-sky-500\/40 { border-color:color-mix(in srgb, #0ea5e9 40%, transparent); border-style:solid }
.border-sky-500\/50 { border-color:color-mix(in srgb, #0ea5e9 50%, transparent); border-style:solid }
.border-slate-600 { border-color:#475569; border-style:solid }
.border-slate-700 { border-color:#334155; border-style:solid }
.border-slate-700\/50 { border-color:color-mix(in srgb, #334155 50%, transparent); border-style:solid }
.border-slate-800 { border-color:#1e293b; border-style:solid }
.border-slate-800\/90 { border-color:color-mix(in srgb, #1e293b 90%, transparent); border-style:solid }
.border-t { border-top-width:1px; border-style:solid }
.border-teal-400 { border-color:#2dd4bf; border-style:solid }
.border-transparent { border-color:transparent; border-style:solid }
.col-span-full { grid-column:1 / -1 }
.divide-slate-800 > * + * { border-color:#1e293b; border-style:solid; }
.divide-y > * + * { border-top-width:1px; border-style:solid }
.drop-shadow-\[0_0_14px_rgba\(34\,197\,94\,0\.45\)\] { filter:drop-shadow(0 0 14px rgba(34,197,94,0.45)) }
.drop-shadow-\[0_0_16px_rgba\(34\,197\,94\,0\.5\)\] { filter:drop-shadow(0 0 16px rgba(34,197,94,0.5)) }
.drop-shadow-\[0_0_5px_rgba\(34\,197\,94\,0\.65\)\] { filter:drop-shadow(0 0 5px rgba(34,197,94,0.65)) }
.drop-shadow-\[0_0_8px_rgba\(34\,197\,94\,0\.6\)\] { filter:drop-shadow(0 0 8px rgba(34,197,94,0.6)) }
.duration-500 { transition-duration:500ms }
.fixed { position:fixed }
.flex { display:flex }
.flex-col { flex-direction:column }
.flex-wrap { flex-wrap:wrap }
.focus\:border-emerald-400:focus { border-color:#34d399; border-style:solid }
.focus\:outline-none:focus { outline:2px solid transparent; outline-offset:2px }
.font-bold { font-weight:700 }
.font-display { font-family:'Space Grotesk', 'Inter', sans-serif }
.font-mono { font-family:'JetBrains Mono', 'Fira Code', monospace }
.font-semibold { font-weight:600 }
.from-slate-700 { --tw-gradient-from:#334155; --tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to, transparent) }
.from-slate-900 { --tw-gradient-from:#0f172a; --tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to, transparent) }
.from-slate-950\/80 { --tw-gradient-from:color-mix(in srgb, #020617 80%, transparent); --tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to, transparent) }
.gap-0\.5 { gap:0.125rem }
.gap-1 { gap:0.25rem }
.gap-1\.5 { gap:0.375rem }
.gap-2 { gap:0.5rem }
.gap-2\.5 { gap:0.625rem }
.gap-3 { gap:0.75rem }
.gap-4 { gap:1rem }
.gap-5 { gap:1.25rem }
.gap-6 { gap:1.5rem }
.gap-8 { gap:2rem }
.grid-cols-1 { grid-template-columns:repeat(1, minmax(0, 1fr)) }
.grid-cols-2 { grid-template-columns:repeat(2, minmax(0, 1fr)) }
.h-1\.5 { height:0.375rem }
.h-2 { height:0.5rem }
.h-5 { height:1.25rem }
.hover\:bg-amber-900\/70:hover { background-color:color-mix(in srgb, #78350f 70%, transparent) }
.hover\:bg-blue-900\/70:hover { background-color:color-mix(in srgb, #1e3a8a 70%, transparent) }
.hover\:bg-emerald-900\/70:hover { background-color:color-mix(in srgb, #064e3b 70%, transparent) }
.hover\:bg-sky-900\/70:hover { background-color:color-mix(in srgb, #0c4a6e 70%, transparent) }
.hover\:bg-sky-900\/80:hover { background-color:color-mix(in srgb, #0c4a6e 80%, transparent) }
.hover\:bg-slate-700:hover { background-color:#334155 }
.hover\:bg-slate-800:hover { background-color:#1e293b }
.hover\:bg-slate-800\/70:hover { background-color:color-mix(in srgb, #1e293b 70%, transparent) }
.hover\:bg-slate-900:hover { background-color:#0f172a }
.hover\:border-\[\#22c55e\]:hover { border-color:#22c55e; border-style:solid }
.hover\:border-\[\#22c55e\]\/40:hover { border-color:color-mix(in srgb, #22c55e 40%, transparent); border-style:solid }
.hover\:border-\[\#38bdf8\]:hover { border-color:#38bdf8; border-style:solid }
.hover\:border-amber-500\/40:hover { border-color:color-mix(in srgb, #f59e0b 40%, transparent); border-style:solid }
.hover\:border-purple-500\/40:hover { border-color:color-mix(in srgb, #a855f7 40%, transparent); border-style:solid }
.hover\:border-rose-500\/40:hover { border-color:color-mix(in srgb, #f43f5e 40%, transparent); border-style:solid }
.hover\:border-sky-400:hover { border-color:#38bdf8; border-style:solid }
.hover\:border-sky-400\/40:hover { border-color:color-mix(in srgb, #38bdf8 40%, transparent); border-style:solid }
.hover\:border-sky-500\/40:hover { border-color:color-mix(in srgb, #0ea5e9 40%, transparent); border-style:solid }
.hover\:from-emerald-950:hover { --tw-gradient-from:#022c22; --tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to, transparent) }
.hover\:text-emerald-400:hover { color:#34d399 }
.hover\:text-white:hover { color:#ffffff }
.hover\:to-sky-950:hover { --tw-gradient-to:#082f49 }
.hover\:underline:hover { text-decoration-line:underline }
.inline-block { display:inline-block }
.inline-flex { display:inline-flex }
.inset-0 { top:0px; right:0px; bottom:0px; left:0px }
.items-center { align-items:center }
.items-start { align-items:flex-start }
.items-stretch { align-items:stretch }
.justify-between { justify-content:space-between }
.justify-center { justify-content:center }
.leading-none { line-height:1 }
.leading-relaxed { line-height:1.625 }
.leading-snug { line-height:1.375 }
.left-2 { left:0.5rem }
.left-2\.5 { left:0.625rem }
.line-clamp-4 { overflow:hidden; display:-webkit-box; text-overflow:ellipsis; -webkit-line-clamp:4; -webkit-box-orient:vertical; line-clamp:4 }
.max-h-\[90vh\] { max-height:90vh }
.max-w-3xl { max-width:48rem }
.max-w-4xl { max-width:56rem }
.max-w-\[640px\] { max-width:640px }
.max-w-\[96vw\] { max-width:96vw }
.max-w-xl { max-width:36rem }
.mb-6 { margin-bottom:1.5rem }
.min-w-0 { min-width:0px }
.min-w-\[260px\] { min-width:260px }
.mt-0\.5 { margin-top:0.125rem }
.mt-1 { margin-top:0.25rem }
.mt-2 { margin-top:0.5rem }
.mt-3 { margin-top:0.75rem }
.mt-8 { margin-top:2rem }
.mx-1 { margin-left:0.25rem; margin-right:0.25rem }
.mx-auto { margin-left:auto; margin-right:auto }
.overflow-hidden { overflow:hidden }
.overflow-x-auto { overflow-x:auto }
.overflow-y-auto { overflow-y:auto }
.p-2 { padding:0.5rem }
.p-2\.5 { padding:0.625rem }
.p-3 { padding:0.75rem }
.p-4 { padding:1rem }
.p-5 { padding:1.25rem }
.p-6 { padding:1.5rem }
.p-8 { padding:2rem }
.pb-3 { padding-bottom:0.75rem }
.pb-3\.5 { padding-bottom:0.875rem }
.pl-2 { padding-left:0.5rem }
.pl-8 { padding-left:2rem }
.placeholder-slate-500::placeholder { color:#64748b; }
.pointer-events-none { pointer-events:none }
.pr-2 { padding-right:0.5rem }
.pr-8 { padding-right:2rem }
.pt-1 { padding-top:0.25rem }
.pt-2 { padding-top:0.5rem }
.px-1 { padding-left:0.25rem; padding-right:0.25rem }
.px-1\.5 { padding-left:0.375rem; padding-right:0.375rem }
.px-2 { padding-left:0.5rem; padding-right:0.5rem }
.px-2\.5 { padding-left:0.625rem; padding-right:0.625rem }
.px-3 { padding-left:0.75rem; padding-right:0.75rem }
.px-3\.5 { padding-left:0.875rem; padding-right:0.875rem }
.px-4 { padding-left:1rem; padding-right:1rem }
.px-5 { padding-left:1.25rem; padding-right:1.25rem }
.px-6 { padding-left:1.5rem; padding-right:1.5rem }
.py-0\.5 { padding-top:0.125rem; padding-bottom:0.125rem }
.py-1 { padding-top:0.25rem; padding-bottom:0.25rem }
.py-1\.5 { padding-top:0.375rem; padding-bottom:0.375rem }
.py-2 { padding-top:0.5rem; padding-bottom:0.5rem }
.py-2\.5 { padding-top:0.625rem; padding-bottom:0.625rem }
.py-3 { padding-top:0.75rem; padding-bottom:0.75rem }
.relative { position:relative }
.right-2\.5 { right:0.625rem }
.rounded { border-radius:.25rem }
.rounded-full { border-radius:9999px }
.rounded-l-md { border-top-left-radius:.375rem; border-bottom-left-radius:.375rem }
.rounded-lg { border-radius:.5rem }
.rounded-md { border-radius:.375rem }
.rounded-r-xl { border-top-right-radius:.75rem; border-bottom-right-radius:.75rem }
.rounded-xl { border-radius:.75rem }
.shadow { box-shadow:0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) }
.shadow-2xl { box-shadow:0 25px 50px -12px rgb(0 0 0 / .25) }
.shadow-inner { box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / .5) }
.shadow-lg { box-shadow:0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) }
.shrink-0 { flex-shrink:0 }
.space-y-1 > * + * { margin-top:0.25rem }
.space-y-1\.5 > * + * { margin-top:0.375rem }
.space-y-2 > * + * { margin-top:0.5rem }
.space-y-2\.5 > * + * { margin-top:0.625rem }
.space-y-3 > * + * { margin-top:0.75rem }
.space-y-3\.5 > * + * { margin-top:0.875rem }
.space-y-4 > * + * { margin-top:1rem }
.space-y-5 > * + * { margin-top:1.25rem }
.space-y-6 > * + * { margin-top:1.5rem }
.space-y-8 > * + * { margin-top:2rem }
.sticky { position:sticky }
.text-2xl { font-size:1.5rem; line-height:2rem }
.text-3xl { font-size:1.875rem; line-height:2.25rem }
.text-\[\#38bdf8\] { color:#38bdf8 }
.text-\[\#4ade80\] { color:#4ade80 }
.text-\[\#cbd5e1\] { color:#cbd5e1 }
.text-\[\#f8fafc\] { color:#f8fafc }
.text-\[10px\] { font-size:10px; line-height:1.5 }
.text-\[11px\] { font-size:11px; line-height:1.5 }
.text-\[9px\] { font-size:9px; line-height:1.5 }
.text-amber-300 { color:#fcd34d }
.text-amber-400 { color:#fbbf24 }
.text-base { font-size:1rem; line-height:1.5rem }
.text-blue-300 { color:#93c5fd }
.text-center { text-align:center }
.text-emerald-200 { color:#a7f3d0 }
.text-emerald-300 { color:#6ee7b7 }
.text-emerald-400 { color:#34d399 }
.text-left { text-align:left }
.text-lg { font-size:1.125rem; line-height:1.75rem }
.text-purple-300 { color:#d8b4fe }
.text-purple-400 { color:#c084fc }
.text-sky-200 { color:#bae6fd }
.text-sky-300 { color:#7dd3fc }
.text-sky-400 { color:#38bdf8 }
.text-slate-200 { color:#e2e8f0 }
.text-slate-300 { color:#cbd5e1 }
.text-slate-400 { color:#94a3b8 }
.text-slate-500 { color:#64748b }
.text-sm { font-size:.875rem; line-height:1.25rem }
.text-teal-300 { color:#5eead4 }
.text-white { color:#ffffff }
.text-xl { font-size:1.25rem; line-height:1.75rem }
.text-xs { font-size:.75rem; line-height:1rem }
.to-slate-900 { --tw-gradient-to:#0f172a }
.to-slate-950\/90 { --tw-gradient-to:color-mix(in srgb, #020617 90%, transparent) }
.top-0 { top:0px }
.top-1\.5 { top:0.375rem }
.top-12 { top:3rem }
.top-2 { top:0.5rem }
.tracking-tight { letter-spacing:-.025em }
.tracking-wide { letter-spacing:.025em }
.tracking-wider { letter-spacing:.05em }
.transition { transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter; transition-timing-function:cubic-bezier(.4,0,.2,1); transition-duration:150ms }
.transition-opacity { transition-property:opacity; transition-timing-function:cubic-bezier(.4,0,.2,1); transition-duration:150ms }
.truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.uppercase { text-transform:uppercase }
.via-\[\#0a101f\]\/90 { --tw-gradient-stops:var(--tw-gradient-from, transparent), color-mix(in srgb, #0a101f 90%, transparent), var(--tw-gradient-to, transparent) }
.via-slate-800 { --tw-gradient-stops:var(--tw-gradient-from, transparent), #1e293b, var(--tw-gradient-to, transparent) }
.w-1\.5 { width:0.375rem }
.w-2 { width:0.5rem }
.w-\[1px\] { width:1px }
.w-\[94vw\] { width:94vw }
.w-full { width:100% }
.z-0 { z-index:0 }
.z-10 { z-index:10 }
.z-50 { z-index:50 }
.z-\[10000\] { z-index:10000 }
.z-\[9995\] { z-index:9995 }
.z-\[9999\] { z-index:9999 }
.hidden { display:none }

/* v2.8.2 — mobile taskbar two-tier layout + compact footer utilities */
.order-1 { order:1 }
.order-2 { order:2 }
.order-3 { order:3 }
.gap-x-4 { column-gap:1rem }
.gap-y-1 { row-gap:0.25rem }
.pt-1\.5 { padding-top:0.375rem }
.pb-1 { padding-bottom:0.25rem }
.mt-1\.5 { margin-top:0.375rem }
@media (min-width: 640px) {
  .sm\:inline-flex { display:inline-flex }
  .sm\:hidden { display:none }
  .sm\:col-span-5 { grid-column:span 5 / span 5 }
  .sm\:col-span-7 { grid-column:span 7 / span 7 }
  .sm\:divide-x > * + * { border-left-width:1px; border-style:solid }
  .sm\:divide-y-0 > * + * { border-top-width:0 }
  .sm\:flex { display:flex }
  .sm\:flex-row { flex-direction:row }
  .sm\:gap-2 { gap:0.5rem }
  .sm\:grid-cols-12 { grid-template-columns:repeat(12, minmax(0, 1fr)) }
  .sm\:grid-cols-2 { grid-template-columns:repeat(2, minmax(0, 1fr)) }
  .sm\:grid-cols-3 { grid-template-columns:repeat(3, minmax(0, 1fr)) }
  .sm\:inline { display:inline }
  .sm\:inline-block { display:inline-block }
  .sm\:items-start { align-items:flex-start }
  .sm\:left-4 { left:1rem }
  .sm\:min-w-\[320px\] { min-width:320px }
  .sm\:p-4 { padding:1rem }
  .sm\:p-5 { padding:1.25rem }
  .sm\:p-6 { padding:1.5rem }
  .sm\:p-8 { padding:2rem }
  .sm\:px-4 { padding-left:1rem; padding-right:1rem }
  .sm\:px-5 { padding-left:1.25rem; padding-right:1.25rem }
  .sm\:text-2xl { font-size:1.5rem; line-height:2rem }
  .sm\:text-3xl { font-size:1.875rem; line-height:2.25rem }
  .sm\:text-4xl { font-size:2.25rem; line-height:2.5rem }
  .sm\:text-base { font-size:1rem; line-height:1.5rem }
  .sm\:text-left { text-align:left }
  .sm\:text-sm { font-size:.875rem; line-height:1.25rem }
  .sm\:text-xl { font-size:1.25rem; line-height:1.75rem }
  .sm\:text-xs { font-size:.75rem; line-height:1rem }
}
@media (min-width: 768px) {
  .md\:flex-nowrap { flex-wrap:nowrap }
  .md\:flex-row { flex-direction:row }
  .md\:flex-wrap { flex-wrap:wrap }
  .md\:grid-cols-2 { grid-template-columns:repeat(2, minmax(0, 1fr)) }
  .md\:inline { display:inline }
  .md\:inline-block { display:inline-block }
  .md\:inline-flex { display:inline-flex }
  .md\:items-center { align-items:center }
  .md\:justify-start { justify-content:flex-start }
  .md\:order-2 { order:2 }
  .md\:order-3 { order:3 }
  .md\:order-none { order:0 }
  .md\:text-left { text-align:left }
  .md\:text-sm { font-size:.875rem; line-height:1.25rem }
  .md\:w-auto { width:auto }
  .md\:border-t-0 { border-top-width:0 }
  .md\:py-0 { padding-top:0; padding-bottom:0 }
  .md\:mt-0 { margin-top:0 }
}
@media (min-width: 1024px) {
  .lg\:col-span-4 { grid-column:span 4 / span 4 }
  .lg\:col-span-8 { grid-column:span 8 / span 8 }
  .lg\:flex { display:flex }
  .lg\:flex-row { flex-direction:row }
  .lg\:grid-cols-12 { grid-template-columns:repeat(12, minmax(0, 1fr)) }
  .lg\:grid-cols-2 { grid-template-columns:repeat(2, minmax(0, 1fr)) }
  .lg\:grid-cols-3 { grid-template-columns:repeat(3, minmax(0, 1fr)) }
  .lg\:grid-cols-4 { grid-template-columns:repeat(4, minmax(0, 1fr)) }
  .lg\:items-center { align-items:center }
  .lg\:p-10 { padding:2.5rem }
}
@media (min-width: 1280px) {
  .xl\:max-w-\[1440px\] { max-width:1440px }
}

/* ==========================================================================
   v2.8.5 — SHARED GLOSSY XP CONTROL STRIP (.xp-win-controls-svg)
   Div-based .xp-titlebar windows (Legal_Transparency_OAuth_Compliance.cpl,
   #wp-doc-privacy / #wp-doc-terms, auto-framed pages, Project Explorer) now
   render the IDENTICAL 68x20 glossy cobalt/slate `_` `□` + crimson `x` SVG
   control strip seen on native p.is-style-window-titlebar windows.
   ========================================================================== */
.xp-win-controls-svg {
  display: inline-block;
  width: 68px;
  height: 20px;
  flex-shrink: 0;
  align-self: center;
  background: no-repeat center / 68px 20px url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2068%2020'%3E%3Cdefs%3E%3ClinearGradient%20id='cs'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%233b4c6b'/%3E%3Cstop%20offset='0.55'%20stop-color='%231b2538'/%3E%3Cstop%20offset='1'%20stop-color='%230f172a'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='rd'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23f87171'/%3E%3Cstop%20offset='0.5'%20stop-color='%23dc2626'/%3E%3Cstop%20offset='1'%20stop-color='%23991b1b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20x='0.5'%20y='1'%20width='19'%20height='18'%20rx='4'%20fill='url(%23cs)'%20stroke='%2364748b'%20stroke-opacity='0.65'/%3E%3Crect%20x='5.5'%20y='13.5'%20width='9'%20height='1.8'%20rx='0.6'%20fill='%23ffffff'/%3E%3Crect%20x='24.5'%20y='1'%20width='19'%20height='18'%20rx='4'%20fill='url(%23cs)'%20stroke='%2364748b'%20stroke-opacity='0.65'/%3E%3Crect%20x='29.2'%20y='6'%20width='9.6'%20height='9'%20rx='1'%20fill='none'%20stroke='%23ffffff'%20stroke-width='1.5'/%3E%3Crect%20x='29.2'%20y='6'%20width='9.6'%20height='3.2'%20rx='0.8'%20fill='%23ffffff'/%3E%3Crect%20x='48.5'%20y='1'%20width='19'%20height='18'%20rx='4'%20fill='url(%23rd)'%20stroke='%23fca5a5'%20stroke-opacity='0.75'/%3E%3Cpath%20d='M54%206.5%20L62%2015%20M62%206.5%20L54%2015'%20stroke='%23ffffff'%20stroke-width='1.8'%20stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Title text containers wrap long C:\XPStockpile\... paths cleanly and
   never push the control strip off-screen. */
/* v2.8.5 — the broad `p.is-style-window-titlebar > * { flex: 1 }` rule is
   REMOVED (it stretched wp-emoji <img> nodes across the bar). Div-based
   .xp-titlebar text wrappers keep min-width:0 + flex-grow; the native
   paragraph titlebar instead wraps on itself, and only ::after (the glossy
   _ □ × control strip) is pinned flush-right via margin-left:auto. */
.xp-titlebar > div:first-of-type,
.xp-titlebar-emerald > div:first-of-type {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Global horizontal overflow guardrails */
.is-style-xp-window,
.is-style-mica-card,
.xp-window,
.xp-prose {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
html, body {
  overflow-x: clip;
}

/* ==========================================================================
   v2.8.5 — PIXEL 10 (~412px) MOBILE CONTAINMENT (< 640px)
   Titlebars tighten, long unbroken paths wrap, address-bar stacks, and the
   68x20 glossy control strip always stays on-screen.
   ========================================================================== */
@media (max-width: 640px) {
  p.is-style-window-titlebar,
  .is-style-window-titlebar,
  .xp-titlebar,
  .xp-titlebar-emerald {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.7rem;
    line-height: 1.35;
    gap: 0.45rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .xp-win-controls-svg,
  p.is-style-window-titlebar::after,
  .is-style-window-titlebar::after {
    flex-shrink: 0;
    align-self: center;
  }
  .xp-titlebar .truncate,
  .xp-titlebar-emerald .truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .xp-address-bar {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0.85rem !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .is-style-xp-window > :not(.is-style-window-titlebar) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  /* v2.8.6 — match the FLUSH TITLEBAR PARITY specificity (0,3,0) so the
     1rem mobile rails are not overridden by the desktop 1.75rem rule. */
  .is-style-xp-window > :not(.is-style-window-titlebar):not(.wp-block-cover) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .xp-legal-body {
    padding: 1.25rem 1rem !important;
  }
}

/* ==========================================================================
   v2.8.5 — HOME HERO core/cover INSIDE .is-style-xp-window (Bliss Hill)
   The native Gutenberg cover block spans flush edge-to-edge inside the XP
   window body (zero side padding), with crisp inner content padding and a
   Royale dark gradient scrim so the Bliss Hill wallpaper stays visible while
   all cover text remains high-contrast.
   ========================================================================== */
.is-style-xp-window > .wp-block-cover {
  padding-left: 0;
  padding-right: 0;
  margin: 0 0 1.5rem 0;
  border-radius: 0;
}
.is-style-xp-window > .wp-block-cover:last-child {
  margin-bottom: 0;
}
.is-style-xp-window > .wp-block-cover > .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(115deg, rgba(7, 11, 20, 0.88) 0%, rgba(7, 11, 20, 0.58) 48%, rgba(7, 11, 20, 0.32) 100%) !important;
}
.is-style-xp-window > .wp-block-cover > .wp-block-cover__image-background {
  object-fit: cover;
}
.is-style-xp-window > .wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 860px;
  padding: 2.25rem 2rem;
}
.is-style-xp-window > .wp-block-cover .wp-block-cover__inner-container > .wp-block-paragraph,
.is-style-xp-window > .wp-block-cover .wp-block-cover__inner-container > .wp-block-heading {
  max-width: 640px;
}
.is-style-xp-window > .wp-block-cover h1.wp-block-heading {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
@media (max-width: 640px) {
  .is-style-xp-window > .wp-block-cover {
    margin: 0 0 1rem 0;
  }
  .is-style-xp-window > .wp-block-cover .wp-block-cover__inner-container {
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   v2.8.5 — REAL MULTI-PAGE NAVIGATION + UNIFIED STONEHENGE PROJECTS WINDOW
   ========================================================================== */

/* Chromeless project explorer (xpvibes/project-explorer {"chromeless":true})
   embedded inside the parent .is-style-xp-window — no duplicate border or
   titlebar; horizontal padding comes from the window's own child rule. */
.xp-explorer-chromeless {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.xp-explorer-chromeless #projectsContainer {
  padding-top: 1rem;
}

/* /blog/ — native core/query post template rendered as elevated Dark Mica
   cards (2-column grid when the theme outputs a grid layout, stacked
   otherwise). Also frames single blog posts inside the auto-framed
   Royale Noir .xp-window produced by xpvibes_smart_workspace(). */
.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 100%;
}
.wp-block-post-template > li {
  list-style: none;
  margin: 0;
}
.wp-block-post-template .is-style-mica-card,
.wp-block-post-template > li > .wp-block-group {
  background: rgba(22, 31, 50, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.wp-block-post-template .wp-block-post-title,
.wp-block-post-template .wp-block-post-title a {
  color: #f8fafc;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  text-decoration: none;
}
.wp-block-post-template .wp-block-post-title a:hover { color: #4ade80; }
.wp-block-post-template .wp-block-post-date { color: #38bdf8; font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; }
.wp-block-post-template .wp-block-post-excerpt,
.wp-block-post-template .wp-block-post-excerpt__excerpt { color: #cbd5e1; font-size: 0.875rem; line-height: 1.6; }
.wp-block-query .wp-block-query-no-results p { color: #94a3b8; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
@media (max-width: 900px) {
  .wp-block-post-template { grid-template-columns: 1fr; }
}

/* Dev Log single-post frame refinements (.xp-prose inside the auto-frame) */
.xp-prose .wp-block-post-date { color: #38bdf8; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.xpvibes-main-workspace .xpv-single-post-date { color: #38bdf8; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; text-align: center; margin: 0.75rem auto 0; }

/* ==========================================================================
   v2.8.7 — TAILWIND-FREE ZERO-JUMP TASKBAR GEOMETRY (FOUC jump killed)
   inc/os-taskbar.php now ships ONLY semantic classes/IDs inside
   #xpvibes-os-taskbar — every Tailwind utility (flex, flex-col, order-*,
   px-*/py-*, rounded-*, border-*, hidden sm:inline, text-*, bg-*) was
   REMOVED, so the Tailwind Play CDN (cdn.tailwindcss.com) can no longer
   restyle a SINGLE PIXEL of the bar after it executes (~200ms flip from
   horizontal "🏠 Home" chips to stacked tiles is gone). style.css loads
   synchronously in <head> and now owns 100% of taskbar geometry AND
   presentation:
   Desktop (>= 768px): ONE row — brand | nav | tray.
   Mobile  (< 768px):  TWO tiers — brand+tray row 1, nav strip row 2.
   html { scrollbar-gutter: stable; } (WORDPRESS CHILD THEME SHELL LAYOUT)
   kills the short-page/tall-page horizontal shift.
   ========================================================================== */
#xpvibes-os-taskbar {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.375rem 0.5rem;
}
@media (min-width: 640px) {
  #xpvibes-os-taskbar { padding: 0.375rem 1rem; }
}
#xpvibes-os-taskbar .xp-taskbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 96vw;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* Brand home link */
#xpvibes-os-taskbar #taskbarBrand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  flex-shrink: 0;
  order: 1;
  transition: background-color 0.15s ease;
}
#xpvibes-os-taskbar #taskbarBrand:hover {
  background-color: rgba(30, 41, 59, 0.6);
}
#xpvibes-os-taskbar #taskbarBrand img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}
#xpvibes-os-taskbar #taskbarBrand #taskbarBrandName {
  font-family: 'Segoe UI Variable Display', 'Segoe UI', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
@media (min-width: 640px) {
  #xpvibes-os-taskbar #taskbarBrand #taskbarBrandName { font-size: 1rem; }
}
/* Right tray (background switcher + clock) */
#xpvibes-os-taskbar #taskbarTray {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  order: 2;
  background-color: rgba(2, 6, 23, 0.9);
  border: 1px solid #1e293b;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  box-sizing: border-box;
}
/* Background switcher — FIXED width so Subtle Glow / Matrix Rain / Solid
   Dark label swaps (and the mobile .env-mode-prefix hide) never nudge
   the tray geometry. */
#xpvibes-os-taskbar #envModeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 7rem;
  box-sizing: border-box;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(23, 37, 84, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease;
}
#xpvibes-os-taskbar #envModeBtn:hover { background-color: rgba(30, 58, 138, 0.7); }
#xpvibes-os-taskbar .env-mode-prefix { display: none; }
@media (min-width: 640px) {
  #xpvibes-os-taskbar #envModeBtn { width: 11rem; }
  #xpvibes-os-taskbar .env-mode-prefix { display: inline; }
}
/* Status dot — semantic replacement for w-1.5 h-1.5 rounded-full bg-*
   animate-pulse (Tailwind classes removed from PHP + shell JS). */
#xpvibes-os-taskbar .env-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
  background-color: #64748b;
}
#xpvibes-os-taskbar .env-dot-emerald { background-color: #34d399; }
#xpvibes-os-taskbar .env-dot-green { background-color: #4ade80; }
#xpvibes-os-taskbar .env-dot-slate { background-color: #64748b; }
#xpvibes-os-taskbar .env-dot.is-pulsing {
  animation: xp-env-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes xp-env-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
/* Clock — hidden on mobile, tabular numerals + fixed width so
   "9:00 PM" → "12:34 PM" never nudges the tray. */
#xpvibes-os-taskbar #trayClock {
  display: none;
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: right;
  color: #e2e8f0;
  font-weight: 600;
  border-left: 1px solid #1e293b;
  padding-left: 0.5rem;
}
/* Page-tab nav strip — mobile tier 2 (full-width scrollable), desktop
   inline row between brand and tray. */
#xpvibes-os-taskbar .xp-taskbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  order: 3;
  overflow-x: auto;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  padding-top: 0.375rem;
  padding-bottom: 0.25rem;
  margin-top: 0.375rem;
}
/* Every nav tab: ONE clean single-line horizontal chip —
   flex-direction: row !important makes any late CDN/utility injection
   physically unable to stack the icon above the label. IDENTICAL box in
   active AND inactive state: active changes ONLY background,
   border-color and color — same padding, font-weight, 1px border and
   34px height — so nothing shifts on click. */
#xpvibes-os-taskbar .xp-nav-tab {
  display: inline-flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  color: #e2e8f0;
}
#xpvibes-os-taskbar .xp-nav-tab:hover { background-color: rgba(30, 41, 59, 0.6); }
#xpvibes-os-taskbar .xp-nav-tab.active {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
  color: #7dd3fc;
}
#xpvibes-os-taskbar .xp-nav-tab img.emoji,
#xpvibes-os-taskbar .xp-nav-tab img.wp-smiley,
#xpvibes-os-taskbar #taskbarBrand img.emoji,
#xpvibes-os-taskbar #envModeBtn img.emoji,
#xpvibes-os-taskbar img.wp-smiley {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
}
/* Admin ⚙️ Edit Menu shortcut (semantic replacement for the removed
   hidden sm:inline-flex Tailwind stack) */
#xpvibes-os-taskbar #taskbarEditMenu {
  display: none;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: #64748b;
  border: 1px dashed #334155;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
#xpvibes-os-taskbar #taskbarEditMenu:hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.6);
}
@media (min-width: 640px) {
  #xpvibes-os-taskbar #trayClock { display: inline-block; }
  #xpvibes-os-taskbar #taskbarEditMenu { display: inline-flex; }
}
@media (min-width: 768px) {
  /* Desktop: SINGLE row — brand | nav | tray, no wrapping, no tier border. */
  #xpvibes-os-taskbar .xp-taskbar-inner { flex-wrap: nowrap; }
  #xpvibes-os-taskbar .xp-taskbar-nav {
    width: auto;
    order: 2;
    justify-content: flex-start;
    border-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    overflow-x: visible;
  }
  #xpvibes-os-taskbar #taskbarTray { order: 3; }
}
