.pv-page { padding-bottom: var(--s-10); }

html:not([data-pv="full"]) .pv-page [data-pv="full"],
html[data-pv="full"] .pv-page [data-pv="interim"] { display: none; }
.pv-date { margin: var(--s-3) 0 0; color: var(--muted); font: var(--t-mono)/1.6 var(--f-mono); }

.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); margin-top: var(--s-7); }
.pv-rail { min-width: 0; }
.pv-search { width: 100%; flex: none; }

.pv-status {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin: var(--s-3) 0 0; font-family: var(--f-display); font-size: var(--t-sm); color: var(--muted);
}
.pv-status[hidden] { display: none; }

.pv-toc-fold { margin-top: var(--s-4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv-toc-head { font-family: var(--f-display); font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.pv-toc-lbl { display: none; }

.pv-toc ol { list-style: none; margin: 0; padding: 0 0 var(--s-4); display: grid; gap: var(--s-1); }
.pv-toc a {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-1) var(--s-2); border-radius: var(--radius-sm, var(--radius));
  font-family: var(--f-display); font-size: var(--t-sm); line-height: 1.35; color: var(--muted); text-decoration: none;
  transition: color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out), opacity var(--dur-quick) var(--ease-out);
}
.pv-toc a:hover { color: var(--ink); background: var(--surface-2); }
.pv-toc a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.pv-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pv-toc a.pv-out { opacity: 0.4; }
.pv-toc-n { flex: none; font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; color: var(--accent); }

@media (min-width: 960px) {
  .pv-layout { grid-template-columns: 232px minmax(0, 1fr); gap: var(--s-10); align-items: start; }
  .pv-rail {
    position: sticky; top: calc(var(--pv-top, var(--s-10)) + var(--s-7));
    max-height: calc(100vh - var(--pv-top, var(--s-10)) - var(--s-9)); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .pv-toc-fold { margin-top: var(--s-6); border: 0; }
  .pv-toc-head { display: none; }
  .pv-toc-fold > .u-fold-body { grid-template-rows: 1fr; }
  .pv-toc-fold .u-fold-in { visibility: visible; }
  .pv-toc-lbl { display: block; margin: 0 0 var(--s-3) var(--s-2); }
  .pv-toc ol { padding-bottom: 0; }
}

.pv-doc { min-width: 0; max-width: 66ch; font-size: var(--t-lg); line-height: 1.65; color: var(--ink); }
.pv-sec { scroll-margin-top: calc(var(--pv-top, var(--s-10)) + var(--s-6)); }
.pv-sec:not([hidden]) ~ .pv-sec { margin-top: var(--s-9); padding-top: var(--s-9); border-top: 1px solid var(--line); }
.pv-doc .u-h2 { margin-bottom: var(--s-5); }
.pv-doc p { margin: 0 0 var(--s-4); }
.pv-doc p:last-child { margin-bottom: 0; }

.pv-group + .pv-group { margin-top: var(--s-7); }
.pv-h3 { margin: 0 0 var(--s-2); font-family: var(--f-display); font-size: var(--t-lg); font-weight: 800; line-height: 1.3; color: var(--ink); }

.pv-list { margin: 0; padding: 0 0 0 var(--s-6); list-style: square; }
.pv-list li { margin: 0 0 var(--s-3); padding-left: var(--s-1); }
.pv-list li:last-child { margin-bottom: 0; }
.pv-list li::marker { color: var(--muted); }
.pv-keyed b { font-weight: 700; }

.pv-short { padding: var(--s-6) var(--s-6) var(--s-6) var(--s-9); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 599px) { .pv-short { padding: var(--s-5) var(--s-5) var(--s-5) var(--s-8); } }

.pv-a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pv-cmd {
  font-family: var(--f-mono); font-size: var(--t-sm); padding: 0 calc(var(--s-1) / 2); word-spacing: -0.35em;
  background: var(--surface-2); border-radius: var(--radius-sm, var(--radius)); white-space: nowrap;
}
.pv-h3 .pv-cmd { font-size: var(--t-md); }

.pv-table { width: 100%; border-collapse: collapse; font-size: var(--t-md); line-height: 1.5; }
.pv-table th {
  padding: 0 var(--s-4) var(--s-3) 0; text-align: left; vertical-align: bottom;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line-strong);
}
.pv-table td { padding: var(--s-3) var(--s-4) var(--s-3) 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.pv-table th:last-child, .pv-table td:last-child { width: 36%; padding-right: 0; }
.pv-table td:last-child { font-weight: 700; }

.pv-hit { background: var(--accent-soft); color: inherit; border-radius: var(--radius-sm, var(--radius)); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pv-none { padding: var(--s-6) 0 0; }
.pv-none .u-note { margin-bottom: var(--s-4); }

@media print {
  .pv-rail { display: none; }
  .pv-layout { display: block; }
  .pv-hit { background: none; text-decoration: none; }
}
