/* Lawliet docs. Same design system, built for reading. No scroll choreography. */
.reticle-line { stroke: var(--line-strong); fill: none; }
.reticle-tick { stroke: var(--accent); }
.reticle-l { fill: var(--ink-strong); }

.hdr {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding-inline: var(--gutter);
  background-color: rgba(2, 2, 5, 0.86); background-image: var(--grain-coarse), var(--tint-rail);
  -webkit-backdrop-filter: blur(40px) saturate(1.15); backdrop-filter: blur(40px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.lockup svg.mark { width: 26px; height: 26px; }
.lockup .word { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.22em; color: var(--ink-strong); }
.nav { display: flex; gap: 26px; }
.nav a { color: #fff; font-family: var(--display); font-weight: 600; font-size: 13.5px; }
.nav a[aria-current="true"] { color: var(--accent); }
.hdr-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 99; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
.sheet-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 88px var(--gutter) 40px; }
.sheet a { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-strong); padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 20px; height: 48px; }

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); max-width: 1160px; margin-inline: auto; padding: 40px var(--gutter) 100px; }
.docs-nav { position: sticky; top: 88px; align-self: start; padding: 18px; display: grid; gap: 18px; font-size: 14px;
  background-color: rgba(2,2,5,0.6); background-image: var(--grain); border: 1px solid var(--line); border-radius: 4px; }
.docs-nav p { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 8px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; color: var(--muted); padding: 6px 10px; border-left: 1px solid var(--line); border-radius: 0 3px 3px 0; }
.docs-nav a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.docs-nav a[aria-current="page"] { color: var(--accent); border-left: 2px solid var(--accent); padding-left: 9px; background: rgba(103,213,188,0.06); }

.doc { max-width: 760px; min-width: 0; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.doc .intro { margin-top: 14px; font-size: 18px; color: var(--ink); }
.doc h2 { font-size: 24px; margin: 46px 0 12px; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); font-size: 16px; }
.doc p { margin-top: 12px; }
.doc a { color: var(--accent); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.doc strong { color: var(--ink-strong); }
.doc code { font-family: var(--mono); font-size: 14px; color: var(--ink-strong); background: rgba(103,213,188,0.06); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.doc pre { margin: 16px 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7;
  background-color: rgba(2,2,5,0.6); background-image: var(--grain); border: 1px solid var(--line); border-radius: 4px; }
.doc pre code { background: none; border: 0; padding: 0; color: var(--ink); }
.doc .table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 4px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th { text-align: left; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.doc tr:last-child td { border-bottom: 0; }
.note { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line-strong); border-left: 2px solid var(--accent); border-radius: 4px; background: rgba(103,213,188,0.05); }
.note.warn { border-left-color: var(--warn); background: rgba(245,158,11,0.06); }
.note p { color: var(--ink); font-size: 15px; margin: 0; }
.doc-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc-next a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; min-width: 220px; }
.doc-next a:hover { border-color: var(--line-strong); }
.doc-next small { color: var(--muted); font-size: 12px; }
.doc-next b { color: var(--ink-strong); }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.doc-cards a { padding: 18px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 4px; background: rgba(103,213,188,0.03); }
.doc-cards a:hover { border-color: var(--line-strong); }
.doc-cards b { color: var(--ink-strong); font-size: 16px; }
.doc-cards span { color: var(--muted); font-size: 14px; }

.site-foot { border-top: 1px solid var(--line); padding: 40px var(--gutter); color: var(--muted-2); font-size: 13px; }
.site-foot .foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--maxw); margin-inline: auto; }
.site-foot a { color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
}

/* ================= Releases ================= */
.rel-status { color: var(--muted); font-size: 15px; margin-top: 8px; }
.rel-status.rel-error { color: var(--crit-ink); }
.rel-noscript p, .rel-noscript { color: var(--muted); }

.rel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.rel-ver { font-family: var(--mono); font-weight: 500; color: var(--ink-strong); font-size: 14px; }
.rel-ver-lg { font-size: 20px; }
.rel-badge { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 3px; border: 1px solid; }
.rel-badge.stable { color: var(--accent); border-color: rgba(103,213,188,0.5); background: rgba(103,213,188,0.08); }
.rel-badge.beta { color: var(--muted); border-color: var(--line-strong); background: rgba(255,255,255,0.03); }
.rel-current-tag { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 3px; color: var(--rose-ink); border: 1px solid var(--rose-edge); background: var(--rose-tint); }
.rel-codename { color: var(--muted); font-style: italic; font-size: 13px; }
.rel-date { color: var(--muted-2); font-family: var(--mono); font-size: 12.5px; }

/* current strip */
.rel-current { margin: 22px 0 8px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 6px;
  background-color: rgba(2,2,5,0.6); background-image: var(--grain); }
.rel-current-title { font-family: var(--display); font-weight: 600; color: var(--ink-strong); font-size: clamp(19px, 2vw, 24px); margin-top: 12px; }
.rel-current-sum { color: var(--ink); margin-top: 8px; max-width: 70ch; }
.rel-jump { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; border-bottom: 1px solid transparent; }
.rel-jump:hover { border-bottom-color: var(--rose-edge); }

/* controls */
.rel-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.rel-field { display: flex; flex-direction: column; gap: 5px; }
.rel-field label { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--muted); }
.rel-field input, .rel-field select { height: 40px; padding: 0 12px; border-radius: 3px; color: var(--ink); font: inherit; font-size: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong); min-width: 180px; }
.rel-field input:focus, .rel-field select:focus { outline: none; border-color: var(--accent); }
.rel-toggle { height: 40px; padding: 0 14px; border-radius: 3px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 13px;
  color: var(--ink); background: rgba(255,255,255,0.035); border: 1px solid var(--line-strong); }
.rel-toggle:hover { border-color: rgba(255,255,255,0.24); }
.rel-count { color: var(--muted); font-size: 13px; margin-left: auto; align-self: center; }

/* version index */
.rel-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.rel-index-label { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 4px; }
.rel-index-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); font-size: 13px; }
.rel-index-item:hover { border-color: var(--line-strong); }
.rel-index-item b { font-family: var(--mono); font-weight: 500; }
.rel-index-item.beta { border-style: dashed; }
.rel-index-date { color: var(--muted-2); font-size: 11.5px; }
.rel-index-beta { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }

/* entries */
.rel-list { display: flex; flex-direction: column; gap: 12px; }
.rel-entry { border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.012); scroll-margin-top: 84px; overflow: hidden; }
.rel-entry[open] { border-color: var(--line-strong); }
.rel-summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.rel-summary::-webkit-details-marker { display: none; }
.rel-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rel-title { font-family: var(--display); font-weight: 600; color: var(--ink-strong); font-size: clamp(17px, 1.4vw, 21px); margin: 0; line-height: 1.2; }
.rel-entry-body { padding: 0 18px 20px; }
.rel-summary-text { color: var(--ink); margin-top: 2px; max-width: 74ch; }
.rel-h { font-family: var(--display); font-weight: 600; color: var(--ink-strong); font-size: 15px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.rel-ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.rel-ul li { color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.rel-vlabel { color: var(--ink-strong); font-weight: 500; margin: 12px 0 0; font-size: 14px; }
.rel-vlabel.muted { color: var(--muted); }
.rel-entry code, .rel-current code, .doc .rel-entry code { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 560px) {
  .rel-controls { gap: 10px; }
  .rel-field input, .rel-field select { min-width: 0; width: 100%; }
  .rel-field { width: 100%; }
  .rel-count { margin-left: 0; }
}
