/* 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;
  --term-ok: #64e3a1;
  --term-var: #ffd98a;
  --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;
  --shadow: rgba(0, 0, 0, 0.45);
}
@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;
    --shadow: rgba(10, 21, 48, 0.16);
  }
}
: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;
  --shadow: rgba(10, 21, 48, 0.16);
}

*, *::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: brand, the main menu (two dropdowns, built on details/summary), theme toggle, call to action. */
header.site { border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.nav { display: flex; align-items: center; gap: 0.6rem 1.25rem; 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; order: 1; }
.brand:hover { color: var(--text); }
.brand .mark { width: 38px; height: 38px; color: var(--accent); flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.menu { order: 2; margin-left: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; gap: 0.1rem 0.25rem; }
.menu li { position: relative; }
.menu a, .menu summary { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 0.45rem 0.75rem; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.menu a:hover, .menu summary:hover, .menu details[open] > summary { color: var(--text); background: var(--panel-2); }
.menu > ul > li > a[aria-current="page"], .menu summary[aria-current] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .chev { flex: none; transition: transform 0.15s; }
.menu details[open] > summary .chev { transform: rotate(180deg); }
.menu details > ul { padding: 0.4rem; }
.menu details > ul a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; padding: 0.55rem 0.8rem; text-align: left; }
.menu details > ul a b { color: var(--text); font-weight: 700; }
.menu details > ul a span { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.menu details > ul a[aria-current="page"] { background: var(--impl-bg); }
.menu details > ul a[aria-current="page"] b { color: var(--accent); }
.menu .cta-item { display: none; }
.nav .actions { display: flex; align-items: center; gap: 0.6rem; order: 3; }
.theme-toggle, .menu-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; height: 2.4rem; font: inherit; cursor: pointer; display: inline-grid; place-items: center; }
.theme-toggle { width: 2.4rem; }
.theme-toggle:hover, .menu-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle[hidden], .menu-toggle, .menu-toggle .x { display: none; }
@media (min-width: 901px) {
  .menu details > ul { position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 18.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px var(--shadow); z-index: 30; }
}
@media (max-width: 900px) {
  .menu { order: 4; width: 100%; margin-left: 0; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .menu > ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .menu a, .menu summary { display: flex; font-size: 1.05rem; padding: 0.65rem 0.6rem; }
  .menu > ul > li > a[aria-current="page"], .menu summary[aria-current] { text-decoration: none; box-shadow: inset 3px 0 0 var(--accent); }
  .menu details > ul { padding: 0 0 0.4rem 0.9rem; }
  .menu details > ul a span { display: none; }
  .menu .cta-item { display: block; margin-top: 0.6rem; }
  .menu .cta-item .btn { width: 100%; }
  .nav.js .menu-toggle { display: inline-grid; grid-auto-flow: column; gap: 0.4rem; padding-inline: 0.7rem; font-weight: 600; font-size: 0.92rem; }
  .nav.js .menu { display: none; }
  .nav.js.open .menu { display: block; }
  .nav.js.open .menu-toggle .bars { display: none; }
  .nav.js.open .menu-toggle .x { display: block; }
}
@media (max-width: 560px) {
  .nav .actions .btn { 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: 1fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero .buttons { margin-top: 1.5rem; }
.hero .panel { box-shadow: 0 24px 60px var(--shadow); }
.facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; list-style: none; padding: 0; margin: 1.4rem 0 0; color: var(--muted); font-size: 0.9rem; }
.facts li { display: flex; align-items: center; gap: 0.45rem; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.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; }
}
@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, .menu-toggle, .skip, .nav .actions { 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; }

/* Articles: cards on the index, the home page strip and the "More articles" list. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.card h2, .card h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.card h2 a, .card h3 a { color: var(--text); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent-hover); }
.card p { color: var(--muted); margin-bottom: 1rem; flex: 1; }
.card .more { font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.card .more::after { content: " \2192"; }
.cards.one { grid-template-columns: 1fr; }
.cards.one .card { display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: center; padding: 1.6rem 1.8rem; }
.cards.one .card h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.35rem; }
.cards.one .card p { margin: 0; }
.cards.one .card .more { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 9px; padding: 0.7rem 1.3rem; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
.cards.one .card .more:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.cards.one .card .more::after { content: none; }
.hero-sm .eyebrow a { color: inherit; text-decoration: none; }
.hero-sm .eyebrow a:hover { text-decoration: underline; }
.more .cards { margin-top: 0.5rem; }
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.strip .panel { align-self: start; }
@media (max-width: 900px) {
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards.one .card { grid-template-columns: 1fr; }
  .cards.one .card .more { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}

/* App catalog (/apps/): hero, the animated terminal, category filters, app cards, specifications, the install flow. */
.hero-apps { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.hero-apps h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 19ch; margin-inline: auto; text-wrap: balance; }
.hero-apps h1 em { display: block; background: linear-gradient(90deg, var(--accent), var(--plan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-apps .lead { margin-inline: auto; }
.hero-apps .buttons { justify-content: center; margin-top: 1.75rem; }
.stats { list-style: none; padding: 0; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 52rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.stats li { padding: 1rem 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; color: var(--accent); letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 0.88rem; line-height: 1.3; }
.stage { position: relative; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); max-width: 62rem; }
.stage::before { content: ""; position: absolute; inset: 8% 6% -6%; background: radial-gradient(ellipse at center, var(--glow), transparent 70%); filter: blur(30px); z-index: -1; }
.stage .panel { box-shadow: 0 30px 80px var(--shadow), 0 0 0 1px var(--glow); }
.stage .tabs-note { text-align: center; }
pre.play { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.82rem; line-height: 1.7; }
pre.play .ln { display: block; padding-left: 2.6em; text-indent: -2.6em; }
pre.play .ln.st { padding-left: 5.4em; text-indent: -3em; }
pre.play .ty { text-indent: 0; }
pre.play .st b { color: var(--term-prompt); font-weight: 700; margin-right: 0.35em; }
pre.play .ln.ok { color: var(--term-ok); font-weight: 700; }
pre.term .ln.h, pre.term .ln.c { color: var(--term-dim); }
.cursor { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 0.3em; vertical-align: text-bottom; background: var(--term-prompt); }
@media (prefers-reduced-motion: no-preference) {
  pre.play .ln { animation: ln-in 0.35s ease-out both; }
  pre.play .ty { display: inline-block; animation: type 0.9s steps(28, end) both; animation-delay: inherit; }
  pre.play .cursor { animation: blink 1.1s steps(1, end) 7.5s infinite; }
  pre.play .ln:nth-child(2) { animation-delay: 1s; }
  pre.play .ln:nth-child(3) { animation-delay: 1.3s; }
  pre.play .ln:nth-child(4) { animation-delay: 1.55s; }
  pre.play .ln:nth-child(5) { animation-delay: 1.8s; }
  pre.play .ln:nth-child(6) { animation-delay: 2.05s; }
  pre.play .ln:nth-child(7) { animation-delay: 2.3s; }
  pre.play .ln:nth-child(8) { animation-delay: 2.55s; }
  pre.play .ln:nth-child(9) { animation-delay: 2.8s; }
  pre.play .ln:nth-child(10) { animation-delay: 3.05s; }
  pre.play .ln:nth-child(11) { animation-delay: 3.3s; }
  pre.play .ln:nth-child(12) { animation-delay: 3.55s; }
  pre.play .ln:nth-child(13) { animation-delay: 3.8s; }
  pre.play .ln:nth-child(14) { animation-delay: 4.05s; }
  pre.play .ln:nth-child(15) { animation-delay: 4.3s; }
  pre.play .ln:nth-child(16) { animation-delay: 5.2s; }
  pre.play .ln:nth-child(17) { animation-delay: 5.7s; }
  pre.play .ln:nth-child(18) { animation-delay: 6.6s; }
  pre.play .ln:nth-child(19) { animation-delay: 6.9s; }
  pre.play .ln:nth-child(20) { animation-delay: 7.2s; }
}
@keyframes ln-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: 0; } }

.filters { border: 0; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; min-width: 0; }
.filters legend { float: left; margin-right: 0.6rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.filters label { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 0.42rem 0.95rem; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.filters label span { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.filters label:hover { border-color: var(--accent); }
.filters input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filters input:checked + label span { color: var(--accent-ink); }
.filters input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.catalog:has(#cat-web:checked) .app:not([data-cat="web"]),
.catalog:has(#cat-database:checked) .app:not([data-cat="database"]),
.catalog:has(#cat-devops:checked) .app:not([data-cat="devops"]),
.catalog:has(#cat-monitoring:checked) .app:not([data-cat="monitoring"]) { display: none; }

.apps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.1rem; }
.app { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.app:hover { border-color: var(--accent); box-shadow: 0 18px 44px var(--shadow); transform: translateY(-2px); }
.app-top { display: flex; align-items: center; gap: 0.85rem; }
.app-name { flex: 1; min-width: 0; }
.app h3 { font-size: 1.3rem; margin: 0 0 0.25rem; }
.app-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid currentColor; }
.app-ico .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.12rem 0.55rem; border-radius: 999px; }
.c-web { color: var(--impl); background: var(--impl-bg); }
.c-database { color: var(--ok); background: var(--ok-bg); }
.c-devops { color: var(--plan); background: var(--plan-bg); }
.c-monitoring { color: var(--exp); background: var(--exp-bg); }
.ver { flex: none; align-self: flex-start; font: 600 0.78rem/1.2 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.45rem; background: var(--panel-2); }
.app-sum { margin: 0; color: var(--muted); }
.app-ports { margin: 0; font: 600 0.88rem/1.4 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.app-ports span { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 0.4rem; }
.got { list-style: none; margin: 0; padding: 0.85rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.45rem; font-size: 0.9rem; }
.got li { display: grid; grid-template-columns: 4rem 1fr; gap: 0.6rem; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.got code { font-size: 0.84rem; }
.got b { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
code.cmd { display: block; background: var(--term-bg); color: var(--term-text); border-color: var(--line); padding: 0.55rem 0.8rem; border-radius: 9px; font-size: 0.86rem; overflow-wrap: anywhere; }
code.cmd::before { content: "$ "; color: var(--term-prompt); font-weight: 700; }
.app .more { margin-top: auto; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.app .more::after { content: " \2193"; }

.specs-head { margin: 3rem 0 1rem; }
.specs-head h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.specs-head p { margin: 0; }
.specs { display: grid; gap: 0.7rem; }
.spec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 1rem; }
.spec[open] { border-color: var(--accent); box-shadow: 0 18px 44px var(--shadow); }
.spec > summary { list-style: none; display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; cursor: pointer; border-radius: 14px; }
.spec > summary::-webkit-details-marker { display: none; }
.spec > summary:hover .spec-t b { color: var(--accent-hover); }
.spec .app-ico { width: 38px; height: 38px; border-radius: 10px; }
.spec .app-ico .ico { width: 20px; height: 20px; }
.spec-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spec-t b { font-size: 1.08rem; }
.spec-t span { color: var(--muted); font-size: 0.9rem; }
.spec .ver { align-self: center; }
.spec .chev { flex: none; color: var(--muted); transition: transform 0.15s; }
.spec[open] .chev { transform: rotate(180deg); }
.spec-body { margin: 0; padding: 0.3rem 1.1rem 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; border-top: 1px solid var(--line); }
.spec-body > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.spec-body > div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-body dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); padding-top: 0.2rem; }
.spec-body dd { margin: 0; min-width: 0; font-size: 0.93rem; overflow-wrap: anywhere; }
.spec-body dd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.spec-body dd p { margin: 0; color: var(--muted); }
.spec-body dd code { overflow-wrap: anywhere; }

.flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.flow li { counter-increment: f; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem 1.25rem 4.4rem; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.flow li::before { content: counter(f, decimal-leading-zero); position: absolute; right: 1rem; top: 0.9rem; font: 800 0.78rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.flow .ico { position: absolute; left: 1.2rem; top: 1.2rem; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--impl-bg); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow li:last-child .ico { background: var(--ok-bg); color: var(--ok); }
.flow b { font-size: 1.02rem; padding-right: 1.6rem; }
.flow span { color: var(--muted); font-size: 0.93rem; }
.flow code { overflow-wrap: anywhere; }

#logs .showcase, #pkg .showcase { align-items: center; }
.plans { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.plans li { border: 1px dashed var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; background: var(--bg-2); }
.plans .tag { margin-bottom: 0.7rem; }
.plans h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.plans p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.apps-strip { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.4rem; }
.apps-strip p { margin: 0; flex: 1 1 22rem; }
.apps-strip .tag { margin-right: 0.5rem; }

@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .spec-body { grid-template-columns: 1fr; }
  .spec-body > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .spec-body > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .spec > summary { flex-wrap: wrap; }
  .spec .ver { display: none; }
  pre.play .ln.st { padding-left: 3.6em; text-indent: -2.4em; }
  .filters legend { float: none; width: 100%; margin-bottom: 0.2rem; }
  pre.play { font-size: 0.74rem; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app:hover { transform: none; }
}

/* Console screenshots in light and dark: a figure holds both images, the theme shows one (no <picture>, so the
   page follows the site's own toggle as well as the system setting). Hidden lazy images are not downloaded. The build
   wraps each image in its link (a.zoom, see the lightbox below), which carries the same th-dark/th-light class. */
.frame { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px var(--shadow), 0 0 0 1px var(--glow); }
.frame-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.9rem; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.frame-bar span { flex: 0 1 22rem; margin-left: 0.6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.74rem/1.2 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; }
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; }
.frame .th-light { display: none; }
.frame figcaption { padding: 0.7rem 1rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
:root[data-theme="light"] .frame .th-dark { display: none; }
:root[data-theme="light"] .frame .th-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .frame .th-dark { display: none; }
  :root:not([data-theme="dark"]) .frame .th-light { display: block; }
}

/* The top bar's "New" badge, and the announcement link in the home hero. */
.announce { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%; margin: 0 0 1.2rem; padding: 0.3rem 0.9rem 0.3rem 0.35rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s; }
.announce:hover { border-color: var(--accent); color: var(--text); }
.announce::after { content: "\2192"; color: var(--accent); }
.announce .badge, .menu .badge { display: inline-block; text-decoration: none; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0.1rem 0.45rem; line-height: 1.3; }

/* Home: the app catalog showcase right below the hero. */
.apps-show { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 85% 30%, var(--glow), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, var(--plan-bg), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.apps-show-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.apps-show h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-wrap: balance; }
.apps-show h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--plan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apps-show .lead { font-size: 1.12rem; }
.apps-show .buttons { margin-top: 1.6rem; }
.apps-show code.cmd { margin-top: 1.3rem; max-width: 26rem; }
.proof { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.8rem; }
.proof li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; }
.proof .ico { width: 2.4rem; height: 2.4rem; padding: 0.45rem; border-radius: 10px; background: var(--impl-bg); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proof b { display: block; line-height: 1.3; }
.proof span { color: var(--muted); font-size: 0.93rem; }
.apps-show .frame { transform-origin: left center; }

/* /apps/: the console tour, a stepper made of radio inputs (no script); without :has() every step shows. */
.tour-sec { background: radial-gradient(ellipse 55% 45% at 50% 0%, var(--glow), transparent 70%), radial-gradient(ellipse 40% 50% at 100% 100%, var(--plan-bg), transparent 70%); }
.tour-steps { border: 0; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; min-width: 0; counter-reset: ts; }
.tour-steps legend { padding: 0; margin-bottom: 0.7rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.tour-steps label { counter-increment: ts; position: relative; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.8rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; font-weight: 700; font-size: 0.92rem; line-height: 1.25; transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.tour-steps label::before { content: counter(ts, decimal-leading-zero); font: 800 0.72rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.tour-steps label:hover { border-color: var(--accent); }
.tour-steps input:checked + label { border-color: var(--accent); background: var(--impl-bg); box-shadow: inset 0 -3px 0 var(--accent); }
.tour-steps input:checked + label::before { color: var(--accent); }
.tour-steps input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.tour-panel + .tour-panel { margin-top: 2.5rem; }
.tour-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 0.5rem; }
.tour-copy p { color: var(--muted); }
.tour-copy .real { font-size: 0.92rem; border-left: 3px solid var(--accent); padding-left: 0.8rem; }
.tour-copy .real code { overflow-wrap: anywhere; }
.tour-next { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-weight: 700; font-size: 0.92rem; color: var(--link); cursor: pointer; }
.tour-next:hover { color: var(--accent-hover); text-decoration: underline; }
.tour-next::after { content: "\2192"; }
.tour:has(input:checked) .tour-panel { display: none; }
.tour:has(#ts-store:checked) .tp-store, .tour:has(#ts-detail:checked) .tp-detail, .tour:has(#ts-preview:checked) .tp-preview,
.tour:has(#ts-progress:checked) .tp-progress, .tour:has(#ts-done:checked) .tp-done, .tour:has(#ts-installed:checked) .tp-installed,
.tour:has(#ts-logs:checked) .tp-logs { display: grid; }
.tour:has(input:checked) .tour-panel + .tour-panel { margin-top: 0; }
.cta-band { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.2rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.cta-band p { margin: 0; font-weight: 700; font-size: 1.08rem; flex: 1 1 18rem; }
.cta-band .buttons { margin: 0; }
.stage-head { text-align: center; max-width: 40rem; margin: 0 auto 1.4rem; }
.stage-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.stage-head p { color: var(--muted); margin: 0; }
.article .frame { margin: 1.2rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .tour:has(input:checked) .tour-panel { animation: tour-in 0.45s ease-out both; }
  .tour:has(input:checked) .tour-panel .frame { animation: frame-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .apps-show .frame { transition: transform 0.4s ease, box-shadow 0.4s ease; }
  .apps-show .frame:hover { transform: translateY(-4px); box-shadow: 0 40px 90px var(--shadow), 0 0 0 1px var(--glow); }
  .tour-steps label:hover { transform: translateY(-1px); }
}
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes frame-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .tour-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .apps-show-grid, .tour-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tour-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
  .tour-steps label { padding: 0.45rem 0.4rem 0.5rem; font-size: 0.8rem; border-radius: 10px; overflow-wrap: anywhere; }
  .tour-steps label::before { font-size: 0.66rem; }
  .frame-bar span { display: none; }
  .cta-band .buttons { width: 100%; }
}
.menu > ul > li > a[aria-current="page"]:has(.badge) { text-decoration: none; }
@media (min-width: 901px) {
  .menu > ul > li > a[aria-current="page"] .lbl { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
}

/* /apps/: the lifecycle of an app (catalog package, install, snapshot, update, planned), and the questions. */
.cycle { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }
.cycle > li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; box-shadow: 0 14px 34px var(--shadow); }
.cycle > li + li::before { content: ""; position: absolute; left: -1.4rem; top: 2.4rem; width: 1.15rem; height: 2px; background: var(--accent); }
.cycle > li + li::after { content: ""; position: absolute; left: -0.5rem; top: calc(2.4rem - 5px); border: 6px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
.cycle > li.planned { border-style: dashed; background: var(--bg-2); box-shadow: none; }
.cycle > li.planned::before { background: repeating-linear-gradient(90deg, var(--plan) 0 4px, transparent 4px 7px); }
.cycle > li.planned::after { border-left-color: var(--plan); }
.cycle .ico { width: 2.6rem; height: 2.6rem; padding: 0.5rem; border-radius: 12px; background: var(--impl-bg); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.35rem; }
.cycle > li.planned .ico { background: var(--plan-bg); color: var(--plan); }
.cycle .tag { align-self: flex-start; justify-self: start; margin-bottom: 0.2rem; }
.cycle b { font-size: 1.05rem; line-height: 1.25; }
.cycle span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.cycle code { overflow-wrap: anywhere; font-size: 0.84em; }
.keep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.keep > li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; min-width: 0; }
.keep h3 { margin-bottom: 0.6rem; }
.keep p, .keep li li { color: var(--muted); font-size: 0.95rem; }
.keep ul { margin: 0; padding-left: 1.1rem; }
.keep li li { margin-bottom: 0.4rem; }
.keep code { overflow-wrap: anywhere; }
.faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; color: var(--muted); transition: transform 0.15s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details > div { padding: 0 1.1rem 1rem; color: var(--muted); }
.faq details p { margin: 0 0 0.6rem; }
.faq details p:last-child { margin: 0; }
.faq code { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .cycle { grid-template-columns: 1fr; gap: 1.5rem; }
  .cycle > li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; align-items: start; }
  .cycle > li > .ico { grid-row: 1 / span 4; margin: 0; }
  .cycle > li > :not(.ico) { grid-column: 2; }
  .cycle > li + li::before { left: 2.4rem; top: -1.35rem; width: 2px; height: 1.1rem; }
  .cycle > li + li::after { left: calc(2.4rem - 5px); top: -0.5rem; border: 6px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
  .cycle > li.planned::before { background: repeating-linear-gradient(180deg, var(--plan) 0 4px, transparent 4px 7px); }
  .cycle > li.planned::after { border-left-color: transparent; border-top-color: var(--plan); }
  .keep { grid-template-columns: 1fr; }
}
.c-security { color: var(--exp); background: var(--exp-bg); }
.c-network { color: var(--plan); background: var(--plan-bg); }
.c-communication { color: var(--impl); background: var(--impl-bg); }

/* v9. /apps/: the three later categories filter too. */
.catalog:has(#cat-security:checked) .app:not([data-cat="security"]),
.catalog:has(#cat-network:checked) .app:not([data-cat="network"]),
.catalog:has(#cat-communication:checked) .app:not([data-cat="communication"]) { display: none; }

/* A passage whose feature is not released yet (build.py, AUTHORING_LIVE). */
.cycle .tag.plan { color: var(--plan); }

/* /help/: symptom, cause, fix; the groups filter with radio inputs, like the catalog (no script). */
.helpdesk .filters { margin-bottom: 0.5rem; }
.helpdesk:has(#hg-install:checked) .qa-group:not([data-g="install"]),
.helpdesk:has(#hg-jails:checked) .qa-group:not([data-g="jails"]),
.helpdesk:has(#hg-net:checked) .qa-group:not([data-g="net"]),
.helpdesk:has(#hg-apps:checked) .qa-group:not([data-g="apps"]),
.helpdesk:has(#hg-up:checked) .qa-group:not([data-g="up"]) { display: none; }
.qa-group { padding-top: 2.2rem; }
.qa-group > h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.qa-group > p { color: var(--muted); max-width: 46rem; }
.qa { scroll-margin-top: 1rem; }
.qa summary h3 { margin: 0; font-size: 1.02rem; letter-spacing: 0; line-height: 1.4; overflow-wrap: anywhere; }
.qa summary h3 code { font-size: 0.9em; }
.qa dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.qa dl > div { min-width: 0; }
.qa dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.qa dd { margin: 0; color: var(--text); min-width: 0; }
.qa dd p { margin: 0 0 0.5rem; }
.qa dd .panel { margin: 0.5rem 0; }
.qa .qa-link { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; }
.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.quick a { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 0.35rem 0.8rem; font-size: 0.9rem; text-decoration: none; background: var(--panel); }
.quick a:hover { border-color: var(--accent); }

/* /freebsd/#recipes: one card per recipe, the FreeBSD way and then the JailOps way. */
.recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.recipe { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; min-width: 0; display: flex; flex-direction: column; scroll-margin-top: 1rem; }
.recipe h3 { margin-bottom: 0.4rem; }
.recipe > p { color: var(--muted); font-size: 0.95rem; }
.recipe .panel { margin: 0.2rem 0 1rem; }
.recipe .jo { margin: auto 0 0; font-size: 0.93rem; border-left: 3px solid var(--accent); padding-left: 0.8rem; }
.recipe code { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .recipes { grid-template-columns: 1fr; }
}

/* Articles and the community page: long YAML behind a disclosure, a definition in steps. */
.yaml { margin: 1rem 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.yaml > summary { cursor: pointer; padding: 0.8rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.yaml > summary::-webkit-details-marker { display: none; }
.yaml > summary .chev { flex: none; color: var(--muted); transition: transform 0.15s; }
.yaml[open] > summary .chev { transform: rotate(180deg); }
.yaml .panel { margin: 0; border-width: 1px 0 0; border-radius: 0 0 14px 14px; }
.article .feature ol { padding-left: 1.3rem; }
.article .feature ol li { margin-bottom: 0.5rem; }
.qa-group .faq { grid-template-columns: minmax(0, 1fr); }
.qa, .yaml { min-width: 0; }

/* The appliance band on the home page, and the pages /appliance/, /wireguard/ and /access/. */
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.four .tile { padding: 1.3rem; }
.feature .frame { margin: 1.2rem 0; }
.feature .main > .diagram { margin: 0 0 1.2rem; }
td .tag { margin: 0; }
@media (max-width: 1000px) {
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tiles.four { grid-template-columns: 1fr; }
}

/* Commit confirmed on /appliance/, the boot flow on /volumes/, the logs flow on /logs/. */
.cycle.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.diagram .box.warn { fill: var(--exp-bg); stroke: var(--exp); }
.diagram text.w { fill: var(--exp); font-weight: 700; font-size: 12.5px; }
@media (max-width: 1000px) {
  .cycle.four { grid-template-columns: 1fr; }
}

/* /start/: the release badge, the three routes, what the appliance switch takes over, placeholders and copy buttons. */
.release { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; color: var(--muted); font-size: 0.95rem; margin: 1rem 0 0; }
.release .badge { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.routes a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; }
.routes a:hover { border-color: var(--accent); color: var(--text); }
.routes b { font-size: 1.1rem; }
.routes span:last-child { color: var(--muted); font-size: 0.95rem; }
.route-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--accent); background: var(--panel-2); color: var(--accent); font-weight: 800; }
.next-release { border: 1px dashed var(--plan); background: var(--plan-bg); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 0 0 1.4rem; max-width: 46rem; }
.next-release .tag { color: var(--plan); margin: 0 0 0.6rem; }
.next-release h3 { margin-bottom: 0.4rem; }
.next-release p:last-child { margin: 0; }
.needs { display: inline-block; font-weight: 700; color: var(--impl); background: var(--impl-bg); border: 1px solid currentColor; border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.85rem; margin: 0 0 1rem; }
.takeover { border: 1px solid var(--exp); background: var(--exp-bg); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 0 0 2rem; max-width: 52rem; }
.takeover h3 { margin-bottom: 0.6rem; }
.takeover ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
.takeover li { margin-bottom: 0.45rem; }
.takeover p:last-child { margin: 0; }
.takeover code, .steps code, .keep code { overflow-wrap: anywhere; }
.sub-steps { padding-left: 1.3rem; margin: 0 0 1rem; }
.sub-steps li { margin-bottom: 0.45rem; }
.steps > li > .panel { margin: 0.8rem 0; }
.keep-tight { margin-top: 2rem; }
var { font-style: normal; color: var(--exp); border-bottom: 1px dashed currentColor; }
pre.term var, code.cmd var { color: var(--term-var); }
pre.term .p { -webkit-user-select: none; user-select: none; }
pre.term .out { color: var(--term-ok); }
.copy-wrap { position: relative; }
.copy { position: absolute; top: 0.5rem; right: 0.5rem; font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--term-text); background: var(--term-bar); border: 1px solid var(--line); border-radius: 7px; padding: 0.2rem 0.6rem; cursor: pointer; }
.copy:hover { border-color: var(--accent); }
.panel-head .copy { position: static; margin-left: auto; }
.need-help { margin: 2.5rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; background: var(--panel); max-width: 52rem; }
.need-help h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.need-help p { margin: 0; color: var(--muted); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; }
.proof-col { min-width: 0; }
.proof-col h3 { margin-bottom: 0.5rem; }
.proof-col .panel { margin: 0.8rem 0; }
.checked { list-style: none; padding: 0; margin: 0 0 1rem; }
.checked li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; }
.checked li::before { content: ""; position: absolute; left: 0.2rem; top: 0.35rem; width: 0.45rem; height: 0.8rem; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .proof-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tiles.four { grid-template-columns: 1fr; } }
.credit { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.hero .jail-def { color: var(--muted); font-size: 0.97rem; max-width: 40rem; margin: 0.6rem 0 0; }
.hero .jail-def b { color: var(--text); }
@media (max-width: 900px) {
  .routes { grid-template-columns: 1fr; }
}

/* Screenshots: build.py wraps each in <a class="zoom"> to its file; lightbox.v1.js opens it larger (styles in
   lightbox.v1.css) and puts an "Enlarge" hint in the space kept free at the right of the caption (no layout shift). */
a.zoom { display: block; cursor: zoom-in; }
.frame figcaption, figure.shot figcaption { position: relative; padding-right: 7rem; }
