/* Local adaptations: open ledger rows, inline status, underline tabs and digit changes. */
.oc-section { --oc-ease: cubic-bezier(.16, 1, .3, 1); padding-block: 64px; color: var(--ink); }
.oc-section.wrap { width: min(calc(100% - 48px), 1180px); max-width: none; }
.oc-section *, .oc-subnav * { min-width: 0; box-sizing: border-box; }
.oc-section [hidden], .oc-subnav [hidden] { display: none !important; }
.oc-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.oc-heading h2, .oc-panel h2, .oc-position h2 { margin: 8px 0 0; font: 500 clamp(24px, 3vw, 36px)/1.2 var(--font-display); letter-spacing: -.035em; }
.oc-heading p, .oc-caption, .oc-position p { color: var(--ink-soft); font: 400 14px/1.6 var(--font-body); max-width: 48ch; }
.oc-section .ebb-eyebrow { font: 400 12px/1.5 var(--font-mono); color: var(--accent-deep); }
.oc-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; border-block: 1px solid var(--hairline); font: 400 12px/1.6 var(--font-body); color: var(--ink-soft); }
.oc-status strong { font: 500 12px/1.6 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.oc-network { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.oc-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.oc-dot.is-fresh { background: var(--accent); animation: oc-breathe 3s var(--oc-ease) infinite; }
.oc-health { flex-basis: 100%; }
.oc-health:empty { display: none; }
#ocHost { display: inline-block; overflow-wrap: anywhere; }
.oc-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 500 13px/1.5 var(--font-body); cursor: pointer; text-decoration: none; }
.oc-status .oc-pill { margin-left: auto; }
.oc-pill:hover, .oc-subnav a:hover { background: var(--band); }
.oc-section :focus-visible, .oc-subnav :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
.oc-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 32px 0 24px; }
.oc-figures dt { font: 400 13px/1.5 var(--font-body); color: var(--ink-soft); margin-bottom: 12px; }
.oc-figures dd { margin: 0; font: 500 clamp(18px, 2vw, 28px)/1.3 var(--font-body); letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.oc-digit { display: inline-block; white-space: pre; }
.oc-digit.is-ticking { animation: oc-tick 600ms var(--oc-ease) both; }
.oc-caption { margin: 0 0 24px; max-width: 80ch; }
.oc-board { border-top: 1px solid var(--hairline); padding-top: 32px; margin-top: 40px; }
.oc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 440px); border-bottom: 1px solid var(--hairline); }
.oc-tabs button { position: relative; min-height: 48px; padding: 12px 8px; background: transparent; border: 0; font: 500 14px/1.4 var(--font-body); color: var(--ink-soft); cursor: pointer; }
.oc-tabs button::after { content: ''; position: absolute; inset: auto 8px -1px; height: 2px; background: var(--accent-deep); transform: scaleX(0); }
.oc-tabs [aria-selected="true"] { color: var(--ink); }
.oc-tabs [aria-selected="true"]::after { transform: scaleX(1); }
.oc-empty { display: flex; align-items: center; gap: 32px; padding: 40px 0; min-height: 200px; }
.oc-empty > svg { width: 96px; height: auto; flex: 0 0 96px; }
.oc-empty h3 { margin: 0 0 8px; font: 500 20px/1.4 var(--font-body); letter-spacing: -.02em; }
.oc-empty p { margin: 0 0 16px; max-width: 56ch; color: var(--ink-soft); font: 400 14px/1.65 var(--font-body); }
.oc-empty a, .oc-more { color: var(--accent-deep); text-underline-offset: 4px; font: 500 14px/1.5 var(--font-body); }
.oc-empty a { display: inline-flex; align-items: center; min-height: 44px; }
.oc-more { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-block: 1px solid var(--hairline); text-decoration: none; }
.oc-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-block: 24px; text-align: left; }
.oc-table th { position: sticky; top: var(--nav-h); z-index: 1; background: var(--ground); color: var(--ink-soft); font: 400 12px/1.5 var(--font-body); }
.oc-table th, .oc-table td { padding: 12px 16px; height: 48px; border-bottom: 1px solid var(--hairline); overflow-wrap: anywhere; vertical-align: middle; }
.oc-table th:first-child, .oc-table td:first-child { width: 8%; padding-left: 0; }
.oc-table th:nth-child(2) { width: 24%; }
.oc-table th:last-child, .oc-table td:last-child { padding-right: 0; }
.oc-table td { font: 400 14px/1.5 var(--font-body); font-variant-numeric: tabular-nums; }
.oc-table a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 4px; }
.oc-table a:hover { color: var(--accent-deep); }
.oc-kind { display: block; color: var(--ink-soft); font: 400 12px/1.5 var(--font-body); }
.oc-share { display: block; width: 100%; max-width: 144px; height: 3px; background: var(--hairline); margin-top: 8px; }
.oc-share > i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(var(--share)); transform-origin: left; }
.oc-share.is-entering > i { animation: oc-share 900ms var(--oc-ease) both; }
.oc-position { border-block: 1px solid var(--hairline); margin-top: 40px; padding: 24px 0; }
.oc-position .oc-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oc-subnav { position: sticky; top: var(--nav-h); z-index: 15; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 8px 24px; background: var(--ground); border-bottom: 1px solid var(--hairline); }
.oc-subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; font: 500 13px/1.4 var(--font-body); color: var(--ink-soft); text-decoration: none; }
.oc-subnav [aria-current="location"] { background: var(--band); color: var(--accent-deep); }
body[data-page="machine"] { --oc-subnav-h: 64px; }
.oc-section [id] { scroll-margin-top: calc(var(--nav-h) + var(--oc-subnav-h, 0px) + 24px); }
body[data-page="machine"] .oc-table th { top: calc(var(--nav-h) + var(--oc-subnav-h)); }
.lab-page .oc-panel { width: 100%; max-width: none; margin: 40px 0 0; padding: 32px 0; border-radius: 0; box-shadow: none; }
.oc-panel .section-head { padding: 0; display: block; }
.oc-panel .cycle-no { display: none; }
.oc-panel .prestake__stats, .oc-panel .chain-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.oc-panel dd { font-family: var(--font-body); overflow-wrap: anywhere; }
.oc-panel .prestake__action, .oc-panel .stake-controls { display: flex; flex-wrap: wrap; gap: 16px; }
.oc-panel input { min-width: 0; max-width: 100%; }
.oc-panel .prestake__action input { flex: 1 1 200px; }
.oc-panel .stake-controls label { flex-basis: 100%; }
.oc-panel .prestake__wallet { flex-wrap: wrap; background: transparent; border: 0; padding-inline: 0; }
.oc-panel .prestake__wallet-value { overflow-wrap: anywhere; }
.oc-panel.prestake[data-state="pre_token"] { opacity: 1; }
.oc-panel.prestake[data-state="pool_live"] { display: block !important; }
.oc-panel .prestake__head { flex-wrap: wrap; }
.oc-panel .prestake__stats dt { text-transform: none; letter-spacing: 0; }
.oc-section .ui-press { transition: none; }
.oc-section .ui-press:hover { transform: none; }
.oc-panel .bench-entry { border-radius: 0; border: 0; border-bottom: 1px solid var(--hairline); background: transparent; }
.oc-panel .receipt-rail { display: block; }
.oc-panel .receipt-slip { border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; background: transparent; padding: 16px 0; overflow-wrap: anywhere; }
.oc-panel .receipt-slip::before, .oc-panel .receipt-slip::after { content: none; }
/* Audit fixes for existing figures and panels, without changing the hero object. */
body[data-page="story"] .section > .wrap, .lab-page > .wrap, .ebb-closing.wrap { width: min(calc(100% - 48px), 1180px); }
.editorial-grid > *, .machine-detail > *, .guide-result__item, .prestake-readout > *, .ebb-closing > * { min-width: 0; }
.rule-draws { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rule-draws figure, .rule-draw { min-width: 0; }
.rule-draw, .tank-figure, .ownership-figure { width: 100%; height: auto; }
.tide-board .guide-result__figure { flex-wrap: wrap; white-space: normal; }
.harbour-reads dd, .lab-out dd, .prestake-readout dd, .ebb-closing dd { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .oc-heading { align-items: start; }
  .rule-draws { grid-template-columns: minmax(0, 1fr); }
  .rule-draws figure { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .oc-panel .chain-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="machine"] { --oc-subnav-h: 112px; }
}
@media (max-width: 767px) {
  .oc-section.wrap, body[data-page="story"] .section > .wrap, .lab-page > .wrap, .ebb-closing.wrap { width: calc(100% - 32px); }
  .oc-section { padding-block: 40px; }
  .oc-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .oc-status { gap: 12px 16px; }
  .oc-status > span { flex-basis: 100%; }
  .oc-status .oc-pill { margin-left: 0; }
  .oc-figures, .oc-panel .prestake__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .oc-figures dd { font-size: clamp(18px, 5vw, 24px); }
  .oc-empty { gap: 16px; align-items: flex-start; padding-block: 32px; }
  .oc-empty > svg { flex-basis: 48px; width: 48px; }
  .oc-empty h3 { font-size: 18px; }
  .oc-table, .oc-table tbody, .oc-table tr { display: block; }
  .oc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .oc-table tr { padding-block: 12px; border-bottom: 1px solid var(--hairline); }
  .oc-table td, .oc-table td:first-child, .oc-table td:last-child { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 16px; width: 100%; min-height: 44px; height: auto; padding: 8px 0; border: 0; }
  .oc-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: 12px; }
  .oc-table td .oc-share { grid-column: 2; }
  .oc-table td .oc-kind { grid-column: 2; }
  .oc-position .oc-figures { grid-template-columns: minmax(0, 1fr); }
  .oc-position .oc-figures > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .oc-position .oc-figures dd { text-align: right; }
  .oc-subnav { justify-content: start; gap: 0 4px; padding: 8px 16px; }
  .oc-subnav a { font-size: 12px; padding-inline: 8px; }
  body[data-page="machine"] { --oc-subnav-h: 148px; }
  .oc-panel .prestake__stats dd { font-size: 18px; }
  .oc-panel .prestake__action input { flex-basis: auto; }
  .oc-panel .bench-entry__line { flex-wrap: wrap; }
  .oc-panel .chain-strip > div { min-width: 0; }
  .rule-draws figure { display: block; }
  .ebb-closing.wrap { display: block; padding-inline: 0; }
  .ebb-closing dl { margin-top: 24px; }
}
@keyframes oc-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes oc-tick { from { opacity: .3; transform: translateY(.25em); } to { opacity: 1; transform: translateY(0); } }
@keyframes oc-share { from { transform: scaleX(0); } to { transform: scaleX(var(--share)); } }
@media (prefers-reduced-motion: reduce) {
  .oc-section *, .oc-subnav * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
