/* docs — an editorial long-read on the cream page: sticky contents on the left, one reading column, mono numbers */
.docs { padding: 48px 0 0; }
.docs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }

/* contents */
.dnav { grid-column: 1 / 4; position: sticky; top: 112px; display: grid; border-top: 1px solid var(--ink); padding-top: 14px; }
.dnav-h { display: grid; gap: 4px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.dnav-h i { font-style: normal; font-weight: 400; color: var(--muted); }
.dnav a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.dnav a:last-child { border-bottom: 1px solid var(--rule); }
.dnav a b { width: 22px; flex: none; font: 400 13px/1 var(--mono); color: var(--faint); transition: color .2s; }
.dnav a:hover { color: var(--ink); }
.dnav a.on { color: var(--ink); }
.dnav a.on b { color: var(--accent); }
.dnav a::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .2s; }
.dnav a.on::after { opacity: 1; }

/* reading column */
.dbody { grid-column: 5 / 12; min-width: 0; }
.dbody section { margin-top: 112px; border-top: 1px solid var(--ink); padding-top: 14px; scroll-margin-top: 112px; }
.dbody section:first-child { margin-top: 0; }
.dbody .n { display: block; font: 400 14px/1 var(--mono); color: var(--muted); }
.dbody .n i { font-style: normal; color: var(--faint); }
.dbody .h2 { margin: 44px 0 30px; font-size: clamp(44px, 4.6vw, 68px); }
.dbody #overview .h2 { font-size: clamp(52px, 6.2vw, 92px); line-height: .9; margin-bottom: 36px; }
.dbody h3 { margin: 52px 0 14px; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.dbody p, .dbody li, .dbody dd { font-size: 17px; line-height: 1.65; color: var(--ink2); }
.dbody p { margin: 0 0 18px; max-width: 64ch; }
.dbody p.big { font-size: clamp(20px, 1.75vw, 24px); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); max-width: 34ch; margin-bottom: 26px; }
.dbody b { color: var(--ink); font-weight: 600; }
.dbody p code, .dbody li code, .dbody dd code { font: 500 .84em/1 var(--mono); background: var(--bg2); padding: 3px 7px; border-radius: 7px; color: var(--ink); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dbody #poolAddr { display: block; width: fit-content; max-width: 100%; margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.dbody #poolAddr:empty { display: none; }

/* lists: a short ink dash for bullets, mono numbers on rules for steps */
.dbody ul, .dbody ol { margin: 0 0 18px; padding: 0; list-style: none; max-width: 68ch; }
.dbody ul { display: grid; gap: 10px; }
.dbody ul > li { position: relative; padding-left: 26px; }
.dbody ul > li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: var(--ink); }
.dbody ol { counter-reset: st; border-bottom: 1px solid var(--rule); max-width: none; }
.dbody ol > li { counter-increment: st; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--rule); }
.dbody ol > li::before { content: counter(st, decimal-leading-zero); font: 400 13px/1 var(--mono); color: var(--muted); padding-top: .55em; }

/* definition rows */
.dbody dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; border-bottom: 1px solid var(--rule); }
.dbody dt, .dbody dd { border-top: 1px solid var(--rule); padding: 16px 0; }
.dbody dt { font: 600 17px/1.65 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.dbody dd { margin: 0; padding-left: 20px; }

/* cabinets: white cards */
.cabs-doc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 8px; }
.cabs-doc:empty { min-height: 400px; border-radius: var(--r); background: linear-gradient(90deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .85), rgba(255, 255, 255, .45)); background-size: 200% 100%; animation: sk 1.4s infinite; }
.cabs-doc .cab { display: flex; flex-direction: column; min-width: 0; padding: 20px 22px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 1px 2px rgba(20, 18, 16, .05); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.cabs-doc .cab:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cab-h { display: flex; align-items: center; gap: 12px; }
.cab-h .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--slab); color: #fff; display: grid; place-items: center; flex: none; }
.cab-h .ic svg { width: 17px; height: 17px; }
.cab-h b { font: 700 22px/1 var(--display); letter-spacing: -.035em; }
.cab-h i { margin-left: auto; font: 400 13px/1 var(--mono); font-style: normal; color: var(--faint); }
.cabs-doc .cab p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.cabs-doc .cab em { display: block; margin-top: auto; padding-top: 16px; font-size: 14px; line-height: 1.45; font-style: normal; color: var(--muted); }
.cabs-doc .cab em span { display: block; margin: 0 0 6px; padding-top: 14px; border-top: 1px solid var(--rule); font: 500 12px/1 var(--sans); color: var(--faint); }

/* daily payout table */
.shares { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 28px 0 30px; border-top: 1px solid var(--ink); }
.shares span { display: grid; align-content: start; gap: 10px; padding: 14px 12px 0 0; }
.shares span + span { padding-left: 14px; border-left: 1px solid var(--rule); }
.shares i { font: 400 13px/1 var(--mono); font-style: normal; color: var(--muted); }
.shares b { font: 500 clamp(26px, 2.4vw, 34px)/1 var(--mono); letter-spacing: -.04em; color: var(--ink); }
.shares span:first-child b { color: var(--accent); }
.shares em { margin-top: -4px; font-size: 12px; font-style: normal; color: var(--faint); }

/* the pool split */
.pool { margin: 6px 0 26px; padding: 26px 26px 10px; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 1px 2px rgba(20, 18, 16, .05); }
.pool .split-bar { margin: 0 0 8px; }
.pool-k > div { display: grid; grid-template-columns: 12px 56px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink2); }
.pool-k > div:first-child { border-top: 0; }
.pool-k i { width: 10px; height: 10px; border-radius: 3px; align-self: start; margin-top: 7px; }
.pool-k b { font: 500 16px/1 var(--mono); }
.dca { margin-top: 30px; }
.dca .ca { max-width: 460px; }

/* FAQ */
.dbody details { border-top: 1px solid var(--rule); }
.dbody details:last-child { border-bottom: 1px solid var(--rule); }
.dbody summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font: 600 clamp(18px, 1.5vw, 21px)/1.3 var(--display); letter-spacing: -.025em; color: var(--ink); transition: color .2s; }
.dbody summary::-webkit-details-marker { display: none; }
.dbody summary::before, .dbody summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.dbody summary::after { transform: rotate(90deg); }
.dbody details[open] summary::after { transform: rotate(0); }
.dbody summary:hover { color: var(--accent-ink); }
.dbody details p { margin: -6px 0 24px; padding-right: 48px; }
.dbody section:last-child { padding-bottom: 8px; }

@media (max-width: 1180px) {
  .dnav { grid-column: 1 / 4; }
  .dbody { grid-column: 4 / -1; padding-left: 24px; }
}
@media (max-width: 960px) {
  .docs { padding-top: 0; }
  .docs-grid { display: block; }
  .dnav { position: sticky; top: 88px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter); border-top: 0; border-bottom: 1px solid var(--rule);
    background: rgba(244, 239, 230, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); scrollbar-width: none; }
  .dnav::-webkit-scrollbar { display: none; }
  .dnav-h { display: none; }
  .dnav a, .dnav a:last-child { flex: none; height: 36px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 14px; color: var(--ink2); white-space: nowrap; }
  .dnav a b { width: auto; font-size: 12px; }
  .dnav a::after { display: none; }
  .dnav a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .dnav a.on b { color: rgba(255, 255, 255, .6); }
  .dbody { padding: 36px 0 0; }
  .dbody section { margin-top: 88px; scroll-margin-top: 160px; }
}
@media (max-width: 640px) {
  .dnav { top: 72px; padding: 10px var(--gutter); }
  .dbody { padding-top: 28px; }
  .dbody section { margin-top: 72px; scroll-margin-top: 140px; }
  .dbody .h2 { margin: 30px 0 22px; font-size: clamp(38px, 11vw, 48px); }
  .dbody #overview .h2 { font-size: clamp(46px, 13.6vw, 60px); margin-bottom: 26px; }
  .dbody h3 { margin-top: 40px; font-size: 22px; }
  .dbody p, .dbody li, .dbody dd { font-size: 16.5px; }
  .dbody #poolAddr { font-size: 12px; padding: 8px 10px; }
  .dbody dl { grid-template-columns: minmax(0, 1fr); }
  .dbody dt { padding-bottom: 0; }
  .dbody dd { border-top: 0; padding: 4px 0 16px; }
  .dbody ol > li { grid-template-columns: 38px minmax(0, 1fr); }
  .cabs-doc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shares { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shares span:nth-child(4) { padding-left: 0; border-left: 0; }
  .shares span:nth-child(n + 4) { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .pool { padding: 20px 18px 6px; border-radius: 20px; }
  .pool-k > div { grid-template-columns: 10px 44px minmax(0, 1fr); gap: 10px; font-size: 15px; }
  .dbody summary { padding: 18px 40px 18px 0; }
  .dbody details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .cabs-doc .cab:hover { transform: none; } .cabs-doc:empty { animation: none; } }

/* 404 — "Game over." with a dead cabinet beside it */
.lost { padding: 56px 0 24px; }
.lost-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.lost-copy { grid-column: 1 / 9; min-width: 0; }
.lost-k { display: flex; justify-content: space-between; gap: 16px; max-width: 520px; padding-top: 14px; border-top: 1px solid var(--ink); font: 400 14px/1 var(--mono); }
.lost .h1 { margin: 64px 0 0 -.05em; font-size: clamp(76px, 13vw, 196px); }
.lost .lede { margin-top: 36px; }
.lost-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.lost-slab { grid-column: 9 / -1; justify-self: center; width: 100%; max-width: 250px; padding: 8px; border-radius: 34px; background: var(--slab); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--shadow-lg); transform: rotate(3deg); }
.lost-scr { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px 24px;
  background: linear-gradient(transparent 62%, rgba(255, 74, 28, .12)), #0c0b09; color: #f4efe6; font-family: var(--mono); text-transform: uppercase; }
.lost-scr::before { content: ""; position: absolute; left: 0; right: 0; bottom: 21%; height: 2px; background: repeating-linear-gradient(90deg, rgba(244, 239, 230, .28) 0 10px, transparent 10px 18px); }
.ls-top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: rgba(244, 239, 230, .55); }
.ls-top b { color: #f4efe6; font-weight: 500; }
.ls-mid { text-align: center; }
.ls-mid b { display: block; font: 600 clamp(34px, 3.4vw, 46px)/.95 var(--mono); letter-spacing: -.02em; }
.ls-mid span { display: block; margin-top: 16px; font-size: 12px; letter-spacing: .1em; color: rgba(244, 239, 230, .55); }
.ls-bot { position: relative; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: rgba(244, 239, 230, .55); }
.ls-bot .blink { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 70% { opacity: 0; } }
@media (max-width: 960px) {
  .lost-grid { display: block; }
  .lost-slab { max-width: 220px; margin: 64px 0 0 auto; }
}
@media (max-width: 640px) {
  .lost { padding: 32px 0 40px; }
  .lost .h1 { margin-top: 44px; font-size: clamp(60px, 19.5vw, 96px); }
  .lost .lede { margin-top: 24px; }
  .lost-ctas { flex-direction: column; margin-top: 26px; }
  .lost-ctas .btn { width: 100%; }
  .lost-slab { max-width: 190px; margin: 52px auto 0; padding: 6px; border-radius: 26px; }
  .lost-scr { border-radius: 21px; padding: 20px 16px 18px; }
  .ls-mid b { font-size: 32px; }
  .ls-bot { justify-content: center; }
  .ls-bot span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ls-bot .blink { animation: none; } }
