/* Sutampa story: bilateral register-matching ledger layout. Overlap-jade accent paired with muted
   slate and warm umber tones for two separate lists meeting only in the middle. Built for Chromium 67
   compatibility (no flex gap, clamp, min, max, inset, padding-inline, aspect-ratio, or gradient text). */
@font-face {
  font-family: 'ST UI';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'ST Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-sutampa {
  --head: 'ST Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'ST UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0A0D14;
  --surface: #121726;
  --raised: #192134;
  --bar: rgba(10, 13, 20, .94);
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .17);
  --text: #EEF1F7;
  --text-2: #B2BBCB;
  --muted: #8490A6;
  --accent: #68D3B4;
  --accent-ink: #06211A;
  --accent-soft: rgba(104, 211, 180, .13);
  --st-slate: #89B8CB;
  --st-slate-soft: rgba(137, 184, 203, .11);
  --st-umber: #D8AE90;
  --st-umber-soft: rgba(216, 174, 144, .11);
  --live: #34D399;
}

@media (prefers-color-scheme: light) {
  body.page-sutampa {
    --bg: #0A0D14;
    --surface: #121726;
    --raised: #192134;
    --bar: rgba(10, 13, 20, .94);
    --hair: rgba(255, 255, 255, .09);
    --hair-2: rgba(255, 255, 255, .17);
    --text: #EEF1F7;
    --text-2: #B2BBCB;
    --muted: #8490A6;
    --live: #34D399;
  }
}

/* Frame and reading column */
.page-sutampa main { padding-bottom: 52px; }
.page-sutampa main .wrap { max-width: 820px; }
.page-sutampa main > .wrap:first-child { padding-top: 40px; }
.page-sutampa .crumb { margin: 0 0 28px; font-size: 14px; }
.page-sutampa .crumb a { color: var(--muted); text-decoration: none; }
.page-sutampa .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-sutampa .crumb a:hover { color: var(--accent); }
.page-sutampa .story-app { margin-bottom: 36px; }
.page-sutampa main strong { color: var(--text); font-weight: 600; }

/* Inline links: text color with accent underline */
.page-sutampa main p:not(.crumb) a:not(.btn),
.page-sutampa main li a {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.page-sutampa main p:not(.crumb) a:not(.btn):hover,
.page-sutampa main li a:hover {
  color: var(--accent);
}

/* Hero */
.st-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hair-2);
}
.st-eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.st-hero h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
}
.st-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
}

/* Three-part overlap ribbon inside hero */
.st-overlap-strip {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
}
.st-band {
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
}
.st-band-left {
  border-left: 3px solid var(--st-slate);
  background: var(--st-slate-soft);
}
.st-band-mid {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.st-band-right {
  border-left: 3px solid var(--st-umber);
  background: var(--st-umber-soft);
}
.st-band-title {
  margin: 0 0 5px;
  font: 600 12px/1.3 var(--head);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
}
.st-band-left .st-band-title { color: var(--st-slate); }
.st-band-mid .st-band-title { color: var(--accent); }
.st-band-right .st-band-title { color: var(--st-umber); }
.st-band p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

/* Sections and text */
.st-section { padding-top: 40px; }
.st-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.24;
}
.st-section h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.st-section p {
  margin: 0 0 18px;
  color: var(--text-2);
}
.st-section p:last-child { margin-bottom: 0; }

/* Quoted outside sources */
.st-cite-card {
  margin: 20px 0 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--st-slate);
  border-radius: 0 10px 10px 0;
}
.st-cite-jade {
  border-left-color: var(--accent);
}
.st-cite-card p {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.58;
  color: var(--text);
}
.st-cite-card cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

/* Numbered how-to checklist with step tags */
.st-steps {
  list-style: none;
  counter-reset: ststep;
  margin: 14px 0 24px;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.st-steps li {
  counter-increment: ststep;
  position: relative;
  margin: 0;
  padding: 16px 0 16px 76px;
  border-bottom: 1px solid var(--hair);
  color: var(--text-2);
}
.st-steps li:before {
  content: "STEP " counter(ststep);
  position: absolute;
  left: 0;
  top: 17px;
  width: 60px;
  height: 24px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(104, 211, 180, .35);
  color: var(--accent);
  font: 700 11px/22px var(--head);
  letter-spacing: .06em;
  text-align: center;
}
.st-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 17px;
}

/* Worked-example ledger table */
.st-table-box {
  margin: 18px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 10px;
}
.st-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
  font-variant-numeric: tabular-nums;
}
.st-table caption {
  padding: 12px 16px;
  text-align: left;
  font: 600 14px/1.4 var(--head);
  color: var(--text);
  background: var(--raised);
  border-bottom: 2px solid var(--accent);
}
.st-table th,
.st-table td {
  padding: 11px 14px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
}
.st-table thead th {
  border-top: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.st-table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.st-table td { color: var(--text-2); }
.st-chip-match,
.st-chip-miss,
.st-chip-stop {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font: 600 12.5px/1.4 var(--head);
}
.st-chip-match {
  background: var(--accent-soft);
  color: var(--accent);
}
.st-chip-miss {
  background: var(--st-slate-soft);
  color: var(--st-slate);
}
.st-chip-stop {
  background: var(--st-umber-soft);
  color: var(--st-umber);
}

/* Overview panel (phone 1 + architecture notes) and paired screenshots */
.st-overview {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  margin: 22px 0 26px;
  -webkit-align-items: start;
  align-items: start;
}
.st-single-shot {
  margin: 0 auto;
  max-width: 280px;
  text-align: center;
}
.st-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 26px;
  margin: 26px auto;
  max-width: 280px;
}
.st-pair figure {
  margin: 0;
  text-align: center;
}
.st-single-shot img,
.st-pair img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
}
.st-single-shot figcaption,
.st-pair figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

/* Bullet lists with custom square markers */
.st-list {
  list-style: none;
  margin: 6px 0 22px;
  padding: 0;
}
.st-list li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 24px;
  color: var(--text-2);
}
.st-list li:last-child { margin-bottom: 0; }
.st-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Protocol rules band */
.st-rules-band {
  margin: 22px 0 10px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.st-rules-band h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

/* Limits and what was not checked: stacked two-tier bands */
.st-limits-panel {
  margin: 10px 0 18px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-left: 4px solid var(--st-umber);
  border-radius: 0 12px 12px 0;
}
.st-limits-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.st-limits-panel li:before {
  background: var(--st-umber);
}
.st-audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}
.st-audit-card {
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
}
.st-audit-open {
  border-top-color: var(--st-umber);
}
.st-audit-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}
.st-audit-open li:before {
  background: var(--st-umber);
}

/* Closing action row */
.st-end { margin: 40px 0 4px; }
.st-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-sutampa .st-end a:not(.btn) {
  display: inline-block;
  margin-bottom: 12px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .st-table-box { overflow-x: visible; }
  .st-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 11.5px; line-height: 1.4; }
  .st-table caption { padding: 10px 8px; font-size: 12.5px; }
  .st-table th,
  .st-table td { min-width: 0; padding: 8px 5px; overflow-wrap: break-word; word-wrap: break-word; }
  .st-table thead th:first-child,
  .st-table tbody th { width: 68px; white-space: nowrap; }
  .st-table thead th { font-size: 10px; letter-spacing: .02em; }
  .st-chip-match,
  .st-chip-miss,
  .st-chip-stop { font-size: 10.5px; padding: 2px 5px; }
  .st-steps li { padding: 14px 0 14px 68px; }
  .st-steps li:before { width: 56px; font-size: 10px; }
  .st-limits-panel,
  .st-audit-card { padding: 18px 15px; }
}

@media (min-width: 640px) {
  .st-overlap-strip {
    grid-template-columns: 1fr 1.1fr 1fr;
    grid-gap: 12px;
  }
  .st-pair {
    grid-template-columns: 270px 270px;
    max-width: 572px;
    grid-gap: 32px;
  }
}

@media (min-width: 740px) {
  .st-overview {
    grid-template-columns: 270px 1fr;
    grid-gap: 28px;
  }
  .st-single-shot {
    width: 270px;
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .page-sutampa main > .wrap:first-child { padding-top: 64px; }
  .st-hero { padding-bottom: 40px; }
  .st-hero h1 { font-size: 42px; }
  .st-lead { font-size: 20px; }
  .st-section { padding-top: 56px; }
  .st-section h2 { font-size: 28px; }
}
