/*
Purpose: route-local public styles extracted from playground/index.html.
Governance scope: remove inline style dependence while preserving static route rendering.
Dependencies: playground/index.html.
Invariants: no secrets, no runtime claims, no JavaScript dependency.
*/

:root {
      color-scheme: dark;
      --bg: #050609;
      --panel: #0d1018;
      --line: #272d40;
      --text: #e9eaef;
      --muted: #99a0b4;
      --gold: #5ce6c4;
      --green: #e8b15c;
      --red: #ff6f91;
      --nav-bg: rgba(5, 6, 9, 0.88);
    }

    :root[data-theme="light"] {
      color-scheme: light;
      --bg: #f7f8fb;
      --panel: #ffffff;
      --line: #d8e0ea;
      --text: #111827;
      --muted: #455366;
      --gold: #0f766e;
      --green: #b45309;
      --red: #aa2449;
      --nav-bg: rgba(247, 248, 251, 0.86);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      line-height: 1.6;
    }

    a { color: inherit; }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 5;
      padding: 10px 16px;
      background: var(--gold);
      color: #050609;
      font-size: 13px;
      text-decoration: none;
      transform: translateY(-200%);
      transition: transform 0.2s ease;
    }

    .skip-link:focus { transform: translateY(0); }

    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    #main { scroll-margin-top: 80px; }
    #main:focus { outline: none; }

    @media (prefers-reduced-motion: reduce) {
      .skip-link { transition: none; }
    }

    header, main, footer {
      width: min(900px, calc(100% - 32px));
      margin: 0 auto;
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2;
      border-bottom: 1px solid rgba(92, 230, 196, 0.16);
      background: var(--nav-bg);
      backdrop-filter: blur(12px);
    }

    .nav-inner {
      width: min(900px, calc(100% - 32px));
      height: 64px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      color: var(--gold);
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      color: var(--muted);
      font-size: 13px;
    }

    .nav-links a { text-decoration: none; }
    .nav-links a:hover { color: var(--gold); }

    header {
      min-height: auto;
      display: grid;
      align-content: center;
      gap: 16px;
      padding: 88px 0 28px;
    }

    .playground-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
      gap: 18px;
      align-items: end;
    }

    .playground-hero-copy {
      min-width: 0;
    }

    .demo-readout {
      display: grid;
      gap: 8px;
      min-width: 0;
      border: 1px solid rgba(92, 230, 196, 0.24);
      background:
        linear-gradient(180deg, rgba(92, 230, 196, 0.08), transparent),
        rgba(255, 255, 255, 0.025);
      padding: 10px;
    }

    .demo-readout div {
      display: grid;
      gap: 4px;
      min-width: 0;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.14);
      padding: 9px;
    }

    .demo-readout span {
      color: var(--green);
      font-size: 10px;
      letter-spacing: 0.12em;
      line-height: 1.25;
      text-transform: uppercase;
    }

    .demo-readout strong {
      color: var(--text);
      font-size: 13px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .eyebrow {
      color: var(--green);
      font-size: 13px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
    }

    h1 {
      max-width: 760px;
      margin: 0;
      font-size: 48px;
      line-height: 0.98;
    }

    .lede {
      max-width: 760px;
      color: var(--muted);
      font-size: 15px;
    }

    header .playground-gate {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(92, 230, 196, 0.2);
      background: rgba(255, 255, 255, 0.025);
    }

    .playground-flow {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    .playground-flow span,
    .playground-flow strong {
      position: relative;
      display: flex;
      align-items: center;
      min-height: 38px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .playground-flow span:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 50%;
      right: -9px;
      width: 8px;
      height: 1px;
      background: rgba(92, 230, 196, 0.44);
    }

    .playground-flow strong {
      border-color: rgba(232, 177, 92, 0.55);
      color: var(--green);
    }

    .playground-state-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    .playground-state-grid div {
      display: grid;
      gap: 5px;
      padding: 11px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(0, 0, 0, 0.16);
    }

    .playground-state-grid span {
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .playground-state-grid strong {
      color: var(--text);
      font-size: 14px;
      line-height: 1.25;
    }

    .playground-gate p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .sim-banner {
      border: 1px solid var(--red);
      color: var(--red);
      font-size: 12px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 10px 14px;
    }

    .noscript-boundary {
      border: 1px solid var(--line);
      background: var(--panel);
      margin-bottom: 18px;
      padding: 18px;
    }

    .noscript-boundary h2 {
      margin-top: 0;
      font-size: 24px;
    }

    section {
      padding: 48px 0 72px;
      border-top: 1px solid rgba(92, 230, 196, 0.14);
    }

    .review-guide {
      display: grid;
      grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
      gap: 24px;
      align-items: start;
      padding-top: 48px;
    }

    .review-guide-copy h2 {
      margin-bottom: 14px;
    }

    .review-rail {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      min-width: 0;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .review-rail li {
      position: relative;
      display: grid;
      gap: 8px;
      min-width: 0;
      min-height: 192px;
      padding: 13px;
      border: 1px solid var(--line);
      background:
        linear-gradient(180deg, rgba(92, 230, 196, 0.08), transparent),
        var(--panel);
    }

    .review-rail li:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 30px;
      right: -9px;
      width: 8px;
      height: 1px;
      background: rgba(92, 230, 196, 0.44);
    }

    .review-rail span {
      display: inline-grid;
      width: 34px;
      min-height: 28px;
      place-items: center;
      border: 1px solid rgba(92, 230, 196, 0.32);
      color: var(--gold);
      font-size: 10px;
    }

    .review-rail strong {
      color: var(--text);
      font-size: 15px;
      line-height: 1.2;
    }

    .review-rail p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    h2 {
      margin: 0 0 20px;
      font-size: 34px;
    }

    .sim-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
      gap: 28px;
      align-items: start;
    }

    form {
      display: grid;
      gap: 16px;
      width: 100%;
      border: 1px solid rgba(92, 230, 196, 0.18);
      background:
        linear-gradient(135deg, rgba(92, 230, 196, 0.1), transparent 42%),
        var(--panel);
      padding: 18px;
    }

    label {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    select, input {
      min-height: 44px;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      font: inherit;
      padding: 0 12px;
    }

    .check {
      display: flex;
      align-items: center;
      gap: 10px;
      grid-auto-flow: column;
      justify-content: start;
      text-transform: none;
      letter-spacing: 0;
      font-size: 14px;
      color: var(--text);
    }

    .check input { min-height: auto; width: 18px; height: 18px; }

    button {
      min-height: 46px;
      border: 1px solid var(--gold);
      background: var(--gold);
      color: #050609;
      font: inherit;
      font-weight: 700;
      cursor: pointer;
      padding: 0 20px;
      justify-self: start;
    }

    .result {
      margin-top: 28px;
      display: grid;
      gap: 16px;
    }

    .result[hidden] { display: none; }

    .result-console {
      overflow: hidden;
      border: 1px solid rgba(92, 230, 196, 0.24);
      background:
        linear-gradient(135deg, rgba(92, 230, 196, 0.1), transparent 46%),
        var(--panel);
    }

    .result-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 46px;
      border-bottom: 1px solid var(--line);
      padding: 0 14px;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .result-topbar strong {
      color: var(--green);
      font-size: 10px;
    }

    .result-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      background: var(--line);
    }

    .result-summary div {
      min-width: 0;
      background: var(--panel);
      padding: 14px;
    }

    .result-summary span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .result-summary strong {
      display: block;
      margin-top: 8px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.32;
      overflow-wrap: anywhere;
    }

    #verdict {
      text-transform: uppercase;
    }

    #verdict.pass { color: var(--green); }
    #verdict.violation { color: var(--red); }

    pre {
      margin: 0;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      font-size: 13px;
      padding: 16px;
      overflow-x: auto;
    }

    .trace {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 1px;
      border: 1px solid var(--line);
      background: var(--line);
    }

    .trace li {
      background: var(--panel);
      padding: 10px 14px;
      font-size: 13px;
      color: var(--muted);
    }

    footer {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      padding: 40px 0 56px;
      color: var(--muted);
      font-size: 13px;
    }

    @media (max-width: 720px) {
      .nav-links { display: none; }
      footer { flex-direction: column; }
      .sim-layout { grid-template-columns: 1fr; }
      .review-guide { grid-template-columns: 1fr; }
      .review-rail { grid-template-columns: 1fr; }
      .review-rail li { min-height: 0; }
      .review-rail li:not(:last-child)::after { display: none; }
      .result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      h1 { font-size: 38px; }
      h2 { font-size: 28px; }
      header {
        gap: 12px;
        padding: 78px 0 20px;
      }
      .playground-hero {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .lede {
        font-size: 14px;
        line-height: 1.45;
      }
      header .playground-gate {
        gap: 8px;
        padding: 10px;
      }
      .playground-flow {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
      }
      .playground-flow span,
      .playground-flow strong {
        min-height: 36px;
        padding: 4px;
        font-size: 8px;
        letter-spacing: 0;
        overflow-wrap: anywhere;
      }
      .playground-flow span:not(:last-child)::after { display: none; }
      .playground-state-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
      }
      .playground-state-grid div {
        padding: 8px 6px;
      }
      .playground-state-grid span {
        font-size: 9px;
        letter-spacing: 0.06em;
      }
      .playground-state-grid strong {
        font-size: 12px;
        overflow-wrap: anywhere;
      }
      .playground-gate p {
        font-size: 12px;
      }
    }

.trace-eyebrow {
  margin-bottom: 10px;
}

.no-js #sim-form,
.no-js .result {
  display: none;
}
