/* Layout for ops.wayback.tools only. One reading column, a sticky top bar of section links, specimens generated from the tokens. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: 980px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4, p, ul, ol { margin: 0; } h1, h2, h3 { text-wrap: balance; }
a { color: var(--accent); }
code { font: 600 .84em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 1.15rem/1 var(--font-display); letter-spacing: -.01em; flex: 0 0 auto; }
.lockup img { display: block; }
.top-nav { display: flex; gap: 2px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: none; } .top-nav::-webkit-scrollbar { display: none; }
.top-nav a { padding: 7px 10px; border-radius: 9px; font-weight: 600; font-size: .93rem; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background var(--duration-hover) var(--easing-hover), color var(--duration-hover) var(--easing-hover); }
.top-nav a:hover { background: var(--surface-2); color: var(--fg); }
main.wrap { display: flex; flex-direction: column; gap: 56px; padding-block: 40px 64px; }
.hero { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .lede { max-width: 62ch; }
.sec { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 70ch; min-width: 0; }
.prose ul, .prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose h3 { margin-top: 10px; }
.sub { color: var(--muted); margin-top: 6px; }
.scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; } thead th { border-top: 0; font-size: .82rem; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sws, .specs, .bars, .tiles, .files { list-style: none; padding: 0; margin: 0; }
.sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sw { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.sw-chips { display: flex; flex: 0 0 auto; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.sw-chip { width: 26px; height: 44px; display: block; }
.sw-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.sw-val { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; } .sw-use { font-size: .84rem; color: var(--muted); }
.specs { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-top: 1px solid var(--line); min-width: 0; } .spec:first-child { border-top: 0; }
.spec-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.spec-sample { overflow-wrap: anywhere; }
.bars { display: flex; flex-direction: column; gap: 8px; } .bars li { display: grid; grid-template-columns: 96px 120px minmax(0, 1fr); gap: 12px; align-items: center; }
.bar { height: 12px; border-radius: 3px; background: var(--accent); display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; } .tiles li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.rbox { width: 100%; height: 56px; background: var(--accent-soft); border: 1px solid var(--accent); display: block; }
.sbox { width: 100%; height: 56px; background: var(--surface); border-radius: var(--r); display: block; margin-bottom: 8px; }
.comp { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.comp > ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; max-width: 70ch; color: var(--muted); font-size: .93rem; } .comp > p { max-width: 70ch; }
.demo { padding: 22px; border: 1px dashed var(--line); border-radius: var(--r); min-width: 0; }
.demo > div[style*="grid-template-columns"] { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; }
.files { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 520px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); } .files li:first-child { border-top: 0; } .files span { flex: 1 1 auto; font-weight: 600; } .files a { font-weight: 600; font-size: .88rem; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .bars li { grid-template-columns: 88px minmax(0, 1fr); } .bars .sw-use { grid-column: 1 / -1; } .lane { grid-template-columns: 1fr !important; } main.wrap { gap: 44px; padding-block: 28px 48px; } }
