/* blockulator additions on top of site.css (synced from securedataresearch.net). No colour literals: tokens only. */
.doc { max-width: 52em; }
.doc.wide { max-width: var(--wrap); }
.doc pre, .doc code { font-family: var(--mono); font-size: .88em; }
.doc pre { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; overflow-x: auto; line-height: 1.5; }
.doc :not(pre) > code { background: var(--white); border: 1px solid var(--g-100); border-radius: 6px; padding: .08em .35em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0 1.4em; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.doc th, .doc td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--g-100); vertical-align: top; }
.doc th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--g-500); font-weight: 500; background: var(--g-50); }
.doc tr:last-child td { border-bottom: 0; }
.doc td.num, .doc th.num { text-align: right; font-variant-numeric: tabular-nums; }
.doc .mono { font-family: var(--mono); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll table { min-width: 640px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 15px; margin: 0 0 1.4em; }
.kv dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--g-500); padding-top: 3px; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
.doc .lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; }
.copy { font-family: var(--mono); font-size: 12px; border: 1px solid var(--g-200); background: var(--white); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--white); text-decoration: none; }
.btn.solid:hover { background: var(--ink-3); transform: translateY(-1px); }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } }
.optable td { font-size: 14px; }
.optable .sel, .small { font-size: 11.5px; color: var(--g-500); }
.optable a { text-decoration: none; }
.optable a:hover { text-decoration: underline; }
.optable tr:target td { background: var(--g-50); }

/* demo: tabs, chart, ladder table */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.2em 0 1.6em; }
.tabs a { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--g-200); background: var(--white); color: var(--ink-2); }
.tabs a.on, .tabs a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.doc .scenario h2 { font-family: var(--sans); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; text-transform: none; color: var(--ink); margin: 1.2em 0 .4em; }
.chart svg text { font-family: var(--sans); }
.chart .grid { stroke: var(--g-100); stroke-width: 1; }
.chart .tick { font-size: 12px; fill: var(--g-500); }
.chart polyline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart circle { stroke: var(--white); stroke-width: 2; }
.chart .lbl { font-size: 12.5px; font-weight: 600; }
.chart .s-fp127 { stroke: var(--emerald); } .chart circle.s-fp127, .chart text.s-fp127 { fill: var(--emerald); }
.chart .s-solady { stroke: var(--gold); } .chart circle.s-solady, .chart text.s-solady { fill: var(--gold); }
.chart .s-abdk { stroke: var(--sapphire); } .chart circle.s-abdk, .chart text.s-abdk { fill: var(--sapphire); }
.chart .s-prb { stroke: var(--red); } .chart circle.s-prb, .chart text.s-prb { fill: var(--red); }
.chart polyline.s-solady { stroke-dasharray: 6 4; } .chart polyline.s-abdk { stroke-dasharray: 2 3; } .chart polyline.s-prb { stroke-dasharray: 10 3 2 3; }
.ladder { min-width: 1400px; font-size: 13px; }
.ladder td.val { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; white-space: nowrap; }
.ladder .ok { color: var(--emerald); } .ladder .wrong { color: var(--red); } .ladder .truth { color: var(--ink); }
.ladder .rev { color: var(--red); font-weight: 600; }
.ladder .meta { font-family: var(--sans); font-size: 11.5px; color: var(--g-500); }
.verify { margin-top: 4px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--g-200); background: var(--white); border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.verify:hover:not(:disabled) { border-color: var(--ink); }
.verify:disabled { color: var(--g-300); cursor: default; }
.verify.match { border-color: var(--emerald); color: var(--emerald); } .verify.mismatch { border-color: var(--red); color: var(--red); }
.gasrow { font-size: 14px; }

/* archive cards and islands */
.archive { padding-block: 0 clamp(40px, 6vw, 72px); }
.archive .addr { font-family: var(--mono); font-size: 12px; word-break: break-all; margin: 8px 0 0; }
.archive .links { margin-top: 12px; display: flex; gap: 16px; }
.island { margin: 0 0 clamp(48px, 7vw, 96px); box-shadow: var(--shadow); }
.island-open { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }

/* demo v2: methodology, toggle, band chart, summary */
.method { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 20px; margin: 1.2em 0; }
.method summary { cursor: pointer; font-weight: 600; }
.method dl { margin: 12px 0 4px; }
.method dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--g-500); margin-top: 12px; }
.method dd { margin: 4px 0 0; font-size: 15px; }
.doc .scenario h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--g-500); margin: 2em 0 .6em; font-weight: 500; }
.toggle { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 0 0 10px; }
.toggle label { cursor: pointer; }
.chart .band { opacity: .14; stroke: none; }
.chart polygon.s-fp127 { fill: var(--emerald); } .chart polygon.s-solady { fill: var(--gold); } .chart polygon.s-abdk { fill: var(--sapphire); } .chart polygon.s-prb { fill: var(--red); }
.summary { font-size: 14px; } .summary .meta { color: var(--g-500); font-size: 12px; }
.inputs { margin: 1em 0 1.4em; } .inputs summary { cursor: pointer; font-weight: 600; }
.inputlist td { font-size: 13.5px; }
