/* Rasid story: a stock-book ledger page. Amber accent, ruled ledger table, numbered section tabs on a margin line,
   three phone pictures on a shelf, limits in a dashed box. Chromium 67 safe (no flex gap, clamp or inset). */
@font-face { font-family: 'RSD UI'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'RSD Display'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2'); }
body.page-rasid {
  --accent: #F0B849; --accent-ink: #261904; --accent-soft: rgba(240, 184, 73, .12);
  --head: 'RSD Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'RSD UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Frame */
.page-rasid main .wrap { max-width: 820px; }
.page-rasid main > .wrap:first-child { padding-top: 40px; }
.page-rasid .crumb { margin: 0 0 28px; font-size: 14px; }
.page-rasid .crumb a { color: var(--muted); text-decoration: none; }
.page-rasid .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-rasid .crumb a:hover { color: var(--accent); }
.page-rasid .story-app { margin-bottom: 36px; }
.page-rasid main strong { color: var(--text); font-weight: 600; }
.rsd-a, .page-rasid .rsd-end a:not(.btn) { color: var(--text); text-decoration: underline; -webkit-text-decoration-color: var(--accent); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.rsd-a:hover, .page-rasid .rsd-end a:not(.btn):hover { color: var(--accent); }

/* Title block */
.rsd-top { padding: 0 0 36px; border-bottom: 2px solid var(--accent); }
.rsd-tag { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.rsd-top h1 { margin: 0 0 18px; font-size: 30px; line-height: 1.17; }
.rsd-intro { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Sections sit on a ledger margin line */
.rsd-sec { padding-top: 40px; }
.rsd-sec > .wrap > :last-child { margin-bottom: 0; }
.rsd-h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.25; }
.rsd-num { display: inline-block; width: 34px; height: 34px; margin-right: 14px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 16px/34px var(--head); text-align: center; vertical-align: 2px; }
.rsd-p { margin: 0 0 18px; color: var(--text-2); }

/* The ledger table */
.rsd-scroll { margin: 8px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--surface); }
.rsd-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.rsd-cap-t { padding: 14px 16px; text-align: left; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--hair-2); }
.rsd-table th { padding: 11px 14px; background: var(--accent-soft); color: var(--text); font-weight: 600; text-align: left; border-bottom: 2px solid var(--accent); }
.rsd-table td { padding: 11px 14px; color: var(--text-2); border-top: 1px solid var(--hair); }
.rsd-table th:nth-child(n+3), .rsd-table td:nth-child(n+3) { text-align: right; width: 76px; white-space: nowrap; }
.rsd-table td:last-child { color: var(--text); font-weight: 600; }

/* Lists: ruled dashes drawn with :before */
.rsd-list { list-style: none; margin: 4px 0 24px; padding: 0; }
.rsd-list li { position: relative; margin: 0 0 12px; padding-left: 26px; color: var(--text-2); }
.rsd-list li:before { content: ""; position: absolute; left: 2px; top: .75em; width: 12px; height: 2px; background: var(--accent); }
ol.rsd-steps { list-style: none; margin: 4px 0 24px; padding: 0; counter-reset: rsdstep; }
ol.rsd-steps li { counter-increment: rsdstep; position: relative; margin: 0 0 12px; padding: 12px 16px 12px 58px; color: var(--text-2); background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; }
ol.rsd-steps li:before { content: counter(rsdstep); position: absolute; left: 14px; top: 11px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font: 700 14px/26px var(--head); text-align: center; }

/* Pictures on a shelf */
.rsd-shelf { margin: 28px 0 32px; }
.rsd-shelf:after { content: ""; display: table; clear: both; }
.rsd-fig { margin: 0 auto 28px; max-width: 280px; text-align: center; }
.rsd-img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--hair-2); }
.rsd-cap { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Limits and the close */
.rsd-limits { padding: 26px 24px 8px; border: 1px dashed var(--hair-2); border-radius: 16px; }
.rsd-limits .rsd-h2 { font-size: 22px; }
.rsd-end { margin: 40px 0 48px; }
.rsd-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-rasid .rsd-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (min-width: 760px) {
  .rsd-shelf { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 20px; }
  .rsd-fig { width: auto; max-width: none; margin: 0; text-align: left; }
  .rsd-shelf:after { display: none; }
}
@media (min-width: 900px) {
  .page-rasid main > .wrap:first-child { padding-top: 64px; }
  .rsd-top h1 { font-size: 42px; }
  .rsd-intro { font-size: 20px; }
  .rsd-sec { padding-top: 56px; }
  .rsd-h2 { font-size: 28px; }
  .rsd-limits .rsd-h2 { font-size: 24px; }
}

/* Phone: the ledger fits the screen with no sideways scroll (review 2026-11-26) */
@media (max-width: 600px) {
  .rsd-table { min-width: 0; font-size: 14px; }
  .rsd-table th, .rsd-table td { padding: 9px 8px; }
  .rsd-table th:nth-child(n+3), .rsd-table td:nth-child(n+3) { width: auto; }
  .rsd-table td:first-child { white-space: nowrap; }
}
