/* JailOps site stylesheet. Plain CSS, no external requests. Colour tokens live on :root. */
:root {
  color-scheme: dark;
  --bg: #060c1d;
  --bg-2: #0a1429;
  --panel: #0e1a35;
  --panel-2: #14234a;
  --line: #243660;
  --text: #eef3fd;
  --muted: #a6b4d2;
  --accent: #5aa2ff;
  --accent-ink: #04112b;
  --accent-hover: #86bbff;
  --link: #7cb6ff;
  --glow: rgba(90, 162, 255, 0.16);
  --focus: #ffd166;
  --term-bg: #070f22;
  --term-bar: #101e3d;
  --term-text: #dbe6fb;
  --term-prompt: #7fbaff;
  --term-dim: #93a3c6;
  --ok: #64e3a1;
  --ok-bg: rgba(100, 227, 161, 0.12);
  --impl: #8dbbff;
  --impl-bg: rgba(90, 162, 255, 0.14);
  --exp: #f7c85a;
  --exp-bg: rgba(247, 200, 90, 0.12);
  --plan: #c3b2ff;
  --plan-bg: rgba(167, 139, 250, 0.14);
  --warn-bg: #101c3a;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f8fe;
    --bg-2: #eaf0fb;
    --panel: #ffffff;
    --panel-2: #eef3fc;
    --line: #cdd8ee;
    --text: #0a1530;
    --muted: #455479;
    --accent: #1d59d3;
    --accent-ink: #ffffff;
    --accent-hover: #1647ab;
    --link: #1a4fbd;
    --glow: rgba(29, 89, 211, 0.1);
    --focus: #8a3b00;
    --ok: #0a6b42;
    --ok-bg: rgba(10, 107, 66, 0.1);
    --impl: #1a4fbd;
    --impl-bg: rgba(29, 89, 211, 0.1);
    --exp: #7a4d00;
    --exp-bg: rgba(194, 120, 3, 0.14);
    --plan: #5a3cc2;
    --plan-bg: rgba(90, 60, 194, 0.1);
    --warn-bg: #e7eefb;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fe;
  --bg-2: #eaf0fb;
  --panel: #ffffff;
  --panel-2: #eef3fc;
  --line: #cdd8ee;
  --text: #0a1530;
  --muted: #455479;
  --accent: #1d59d3;
  --accent-ink: #ffffff;
  --accent-hover: #1647ab;
  --link: #1a4fbd;
  --glow: rgba(29, 89, 211, 0.1);
  --focus: #8a3b00;
  --ok: #0a6b42;
  --ok-bg: rgba(10, 107, 66, 0.1);
  --impl: #1a4fbd;
  --impl-bg: rgba(29, 89, 211, 0.1);
  --exp: #7a4d00;
  --exp-bg: rgba(194, 120, 3, 0.14);
  --plan: #5a3cc2;
  --plan-bg: rgba(90, 60, 194, 0.1);
  --warn-bg: #e7eefb;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 70% 40% at 80% -5%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace; }
code { font-size: 0.92em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.38em; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 700; z-index: 20; }
.skip:focus { top: 0.75rem; }

.banner { background: var(--warn-bg); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.banner .wrap { padding-block: 0.5rem; }
.banner strong { color: var(--text); }

header.site { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem 1.75rem; flex-wrap: wrap; min-height: 4.5rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand .mark { width: 38px; height: 38px; color: var(--accent); flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav .actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 2.4rem; height: 2.4rem; font: inherit; cursor: pointer; display: inline-grid; place-items: center; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle[hidden] { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid var(--line); border-radius: 9px; padding: 0.7rem 1.3rem; font-weight: 700; text-decoration: none; color: var(--text); background: var(--panel); line-height: 1.2; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.small { padding: 0.5rem 1rem; font-size: 0.92rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; font-weight: 800; color: var(--accent); text-transform: uppercase; margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.04em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.sub { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1rem; }
.muted { color: var(--muted); }

section.block { padding-block: clamp(2.75rem, 6vw, 5rem); }
section.block.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.hero-art { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; background-position: center; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 24px; background-color: var(--panel); aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: end; padding: 10%; position: relative; box-shadow: 0 0 80px var(--glow), inset 0 0 60px var(--glow); }
.hero-art svg { width: 100%; height: auto; color: var(--accent); }
.hero-art small { position: absolute; bottom: 1rem; letter-spacing: 0.3em; font-size: 0.68rem; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; }
.tile .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 0.9rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-bottom: 0.4rem; }
.tile p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.9rem; }
.tile a.more { margin-top: auto; font-weight: 700; font-size: 0.92rem; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.panel { background: var(--term-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--term-text); }
.panel-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; background: var(--term-bar); border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--term-dim); }
.panel-head i { width: 11px; height: 11px; border-radius: 50%; background: #3a4d7c; display: inline-block; }
.panel-head span { margin-left: 0.4rem; }
pre.term { margin: 0; padding: 1.2rem 1.3rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.75; color: var(--term-text); tab-size: 4; }
pre.term .p { color: var(--term-prompt); font-weight: 700; }
pre.term .c { color: var(--term-dim); }
pre.term .h { color: var(--term-dim); }
figure.shot { margin: 0; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: 0; }
figure.shot figcaption { padding: 0.7rem 1rem; font-size: 0.82rem; color: var(--term-dim); border-top: 1px solid var(--line); }
.tabs-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

.diagram { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 1rem; overflow-x: auto; }
.diagram svg { display: block; min-width: 640px; width: 100%; height: auto; }
.diagram .box { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; }
.diagram .box.hl { stroke: var(--accent); }
.diagram .box.dash { stroke-dasharray: 6 5; fill: none; }
.diagram .box.safe { fill: var(--ok-bg); stroke: var(--ok); }
.diagram text { fill: var(--text); font: 600 14px system-ui, -apple-system, "Segoe UI", sans-serif; }
.diagram text.s { font-weight: 400; font-size: 12.5px; fill: var(--muted); }
.diagram text.k { fill: var(--ok); font-weight: 700; font-size: 12.5px; }
.diagram .arrow { stroke: var(--accent); stroke-width: 1.8; fill: none; }
.diagram .arrow.dim { stroke: var(--muted); stroke-dasharray: 5 5; }
.diagram marker path { fill: var(--accent); }
.legend { margin: 1.1rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.legend li { margin-bottom: 0.3rem; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta .buttons { justify-content: center; }

.tag { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.18rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; text-transform: uppercase; }
.tag.impl { color: var(--impl); background: var(--impl-bg); }
.tag.ver { color: var(--ok); background: var(--ok-bg); }
.tag.exp { color: var(--exp); background: var(--exp-bg); }
.tag.plan { color: var(--plan); background: var(--plan-bg); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--panel-2); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; min-width: 11rem; }
td.st { min-width: 12rem; }
td.nt { color: var(--muted); min-width: 20rem; }
.key { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
.key li { display: flex; gap: 0.5rem; align-items: baseline; }
.notice { border: 1px solid var(--exp); background: var(--exp-bg); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.notice strong { color: var(--text); }
.notice p:last-child { margin: 0; }

.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature .side p { color: var(--muted); }
.feature ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.feature li { margin-bottom: 0.5rem; }
.feature .panel { margin: 1rem 0; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.toc a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.9rem; text-decoration: none; font-size: 0.9rem; background: var(--panel); }
.toc a:hover { border-color: var(--accent); }

.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.docs-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; }
.docs-grid h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.docs-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; padding-left: 3rem; position: relative; margin-bottom: 1.6rem; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.prose { max-width: 46rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

footer.site { border-top: 1px solid var(--line); padding-block: 2.2rem 2.6rem; color: var(--muted); font-size: 0.9rem; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 0.7rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.35rem; }
.foot .tagline { color: var(--text); font-weight: 700; margin-bottom: 0.5rem; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: 0.82rem; }

.notfound { text-align: center; padding-block: 6rem; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { justify-self: start; max-width: 240px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .showcase, .feature, .docs-grid { grid-template-columns: 1fr; }
  .feature { gap: 1rem; padding-block: 2.2rem; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .nav ul { margin-left: 0; width: 100%; order: 3; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta .buttons, .buttons { flex-direction: column; }
  th, td { padding: 0.65rem 0.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .banner, .theme-toggle, .skip { display: none; }
}

.hero-sm { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; max-width: 50rem; }
.h1-sm { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta .lead { margin-inline: auto; }
.feature .main > .muted { font-size: 0.93rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
ol.prose li { margin-bottom: 0.6rem; }
.feature > *, .showcase > * { min-width: 0; }
.feature li code, .feature p code { overflow-wrap: anywhere; }
.tag { white-space: normal; max-width: 100%; }
.key li { flex-wrap: wrap; min-width: 0; }

.showcase + .showcase { margin-top: 1.4rem; }
.showcase .prose { align-self: center; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery figure.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel, transparent); }

.prose code { overflow-wrap: anywhere; }
.prose h1 { overflow-wrap: anywhere; }
