:root {
  --spray-pink: #f2b6c8;
  --spray-aqua: #4ddfc4;
  --spray-green: #76df5d;
  --spray-yellow: #e8f23a;
  --spray-indigo: #171263;
  --spray-red: #9f1c2c;
  --page-max: 1200px;
  --content-max: 760px;
  --hero-max: 820px;
  --small-max: 640px;
  --page-gutter: clamp(20px, 4vw, 48px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --section-space: var(--space-9);
  --border: rgba(244, 241, 232, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  font-size: var(--text-base);
  line-height: 1.6;
  text-align: left;
}

button,
input,
textarea,
select {
  max-width: 100%;
  font: inherit;
}

button,
[role="button"],
.btn,
.cta-row a,
.nav-links a {
  min-height: 44px;
}

button,
.btn,
.cta-row a {
  padding: 10px 18px;
  white-space: nowrap;
}

img,
picture,
video,
svg,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img,
picture,
video {
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.05;
  text-wrap: balance;
}

h1 { margin-bottom: var(--space-5); }
h2 { margin-bottom: var(--space-5); }
h3 { margin-bottom: var(--space-4); }

p,
li,
dd,
td,
figcaption {
  text-wrap: pretty;
}

p { max-width: var(--content-max); }

p + p { margin-top: var(--space-4); }

pre,
code,
.mono,
.address,
[href*="basescan.org/address/"],
[href*="basescan.org/tx/"] {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre,
.address {
  overflow-x: auto;
}

pre > code {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.wrap,
.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 0;
}

.prose,
.document-page .wrap > p,
.document-page .wrap > section > p,
.document-page .wrap > section > ul,
.document-page .wrap > section > ol,
.document-page .wrap > section > blockquote {
  max-width: var(--content-max);
}

.hero-copy,
.lede,
.intro {
  max-width: var(--hero-max);
}

.small-copy,
.micro,
.foot {
  max-width: var(--small-max);
}

/* Shared document pages */
.document-page .wrap {
  padding-block: var(--space-8) var(--space-9);
}

.document-page .crumbs {
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.document-page .sec-label {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.document-page h1 {
  max-width: 20ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.document-page h2 {
  max-width: 24ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2rem, 4vw, 3rem);
}

.document-page h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

.document-page .lede {
  margin-bottom: var(--space-7);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.document-page .wrap > section {
  padding-block: var(--section-space);
}

.document-page .wrap > section:first-of-type {
  padding-top: var(--space-7);
}

.document-page p,
.document-page li,
.document-page td,
.document-page dd {
  font-size: var(--text-base);
  line-height: 1.6;
}

.document-page article,
.document-page ul,
.document-page ol,
.document-page li {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.document-page table {
  width: 100%;
  table-layout: fixed;
}

.document-page th,
.document-page td {
  min-width: 0;
  padding-block: var(--space-4);
  overflow-wrap: anywhere;
}

.document-page th {
  width: 28%;
  padding-right: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.document-page table.ruled th,
.document-page .toc,
.document-page .toc a,
.document-page .nine-label,
.document-page .doc-meta,
.document-page .doc-meta-card {
  font-size: var(--text-sm);
  line-height: 1.3;
}

.document-page .panel,
.document-page .doc-meta-card,
.document-page .doc-link {
  min-width: 0;
  padding: var(--space-5);
}

.document-page .nav-links {
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.document-page .nav-links a {
  padding: 10px 18px;
  white-space: nowrap;
}

.document-page .app {
  display: block;
  min-width: 0;
}

.document-page .app .sidebar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  min-height: 0;
  padding: var(--space-5) max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.document-page .app .side-header,
.document-page .app .side-legal { margin: 0; padding: 0; }
.document-page .app .side-nav-wrap { min-width: 0; }
.document-page .app .side-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-5);
  width: auto;
  text-align: left;
}
.document-page .app .side-menu a,
.document-page .app .side-legal a { font-size: var(--text-sm); line-height: 1.3; white-space: nowrap; }
.document-page .app .side-legal { display: flex; gap: var(--space-4); }
.document-page .app .mobile-legal-nav { display: none; }

.document-page .app .main {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 0;
}

.document-page .app .main-head { padding-block: var(--space-8) var(--space-5); }
.document-page .app .main > p,
.document-page .app .main > aside { max-width: var(--content-max); }
.document-page .app .main > section { padding-block: var(--section-space); }
.document-page .app .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  grid-auto-rows: auto;
}
.document-page .app .card { min-width: 0; height: auto; padding: var(--space-5); }

/* Homepage: every major block uses one left and right edge. */
.home-page .app {
  display: block;
  min-width: 0;
}

.home-page .sidebar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-7);
  width: 100%;
  min-height: 0;
  padding: var(--space-5) max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  border-right: 0;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.home-page .side-header {
  margin: 0;
  justify-content: flex-start;
}

.home-page .side-home {
  font-size: var(--text-lg);
  font-weight: 700;
  text-align: left;
}

.home-page .side-nav-wrap { display: contents; }

.home-page .side-menu-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
  min-width: 0;
}

.home-page .side-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 32px);
  width: auto;
  text-align: left;
}

.home-page .side-menu a,
.home-page .side-index summary,
.home-page .side-index a {
  font-size: var(--text-sm);
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-page .side-menu a.is-active::after {
  inset: auto 0 -7px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: var(--mint);
}

.home-page .side-index { 
  width: auto;
  margin: 0;
  text-align: left;
}

.home-page .mobile-primary { display: none; }

.home-page .side-index nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
  margin: 0;
  padding: var(--space-5) max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--blue-2);
}

.home-page .side-legal { display: none; }

.home-page .editorial-hero,
.home-page .hero-buy-zone,
.home-page .controls-row,
.home-page .correction-line,
.home-page .claim-ledger,
.home-page .trade-banner,
.home-page #current-snapshot,
.home-page .dex-chart-embed,
.home-page .records,
.home-page .lower .section-block,
.home-page .lower-foot {
  padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
}

.home-page .editorial-hero {
  min-height: 0;
  padding-top: clamp(64px, 10vw, 128px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.home-page .editorial-hero .main-top-head {
  max-width: var(--hero-max);
}

.home-page .editorial-hero h1 {
  max-width: 13ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

.home-page .hero-kicker {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.home-page .hero-deck {
  max-width: var(--content-max);
  margin-top: 0;
  font-size: var(--text-lg);
  line-height: 1.5;
}

.home-page .hero-actions {
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.home-page .hero-actions a,
.home-page .hero-buy {
  min-height: 48px;
  padding: 12px 22px;
  white-space: nowrap;
  font-size: var(--text-sm);
}

.home-page .hero-facts { margin-top: var(--space-5); font-size: var(--text-sm); line-height: 1.5; }
.home-page .hero-buy-note,
.home-page .hero-buy-note a { font-size: var(--text-sm); line-height: 1.5; }

.home-page .hero-buy-zone {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.home-page .hero-buy {
  width: auto;
  margin: 0;
}

.home-page .hero-buy-note { margin: 0; text-align: left; }

.home-page .controls-row {
  min-height: 0;
  padding-block: var(--space-4);
}

.home-page .record-pill,
.home-page .record-badge,
.home-page .access-status,
.home-page .wtb-status,
.home-page .gate-status,
.home-page .chan-status {
  min-width: 0;
  min-height: 28px;
  height: auto;
  padding: 6px 10px;
  font-size: var(--text-xs);
  line-height: 1.3;
}

.home-page .correction-line {
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  margin: 0;
  padding-block: var(--space-6);
}

.home-page .claim-ledger,
.home-page .trade-banner,
.home-page #current-snapshot,
.home-page .dex-chart-embed,
.home-page .records,
.home-page .lower .section-block {
  width: 100%;
  margin-inline: 0;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.home-page .ledger-head {
  padding: 0 0 var(--space-5);
}

.home-page .ledger-head strong,
.home-page .section-block h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.home-page .claim-row summary {
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr) auto;
  gap: var(--space-5);
  min-height: 0;
  padding: var(--space-5) 0;
}

.home-page .claim-row .lobby-stat-val {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-page .claim-body {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding: 0 0 var(--space-6) calc(30% + var(--space-5));
}

.home-page .claim-body p,
.home-page .wtb-note,
.home-page .card-note,
.home-page .access-note {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.home-page .correction-label,
.home-page .correction-line a,
.home-page .ledger-head span,
.home-page .trade-banner-kicker,
.home-page .dex-chart-title,
.home-page .sec-label {
  font-size: var(--text-sm);
  line-height: 1.3;
}

.home-page .claim-body strong { font-size: var(--text-xs); line-height: 1.3; }

.home-page .card-checks li,
.home-page .card-kicker,
.home-page .card-code,
.home-page .card-val,
.home-page .access-status,
.home-page .gate-status,
.home-page .chan-status,
.home-page .claim-open {
  font-size: var(--text-xs);
  line-height: 1.3;
}

.home-page .trade-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
}

.home-page .card-grid,
.home-page .access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  grid-auto-rows: auto;
}

.home-page .card,
.home-page .access-venue,
.home-page .wtb {
  min-width: 0;
  height: auto;
  padding: var(--space-5);
}

.home-page .card h3 {
  font-size: var(--text-xl);
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
}

.home-page .card-info { max-width: none; }

.home-page .access-name {
  font-size: var(--text-lg);
  line-height: 1.15;
  white-space: normal;
}

.home-page .wtb-row,
.home-page .chan-row,
.home-page .canon-row,
.home-page .ruled-row,
.home-page .gate-row {
  min-width: 0;
}

.home-page .wtb-row { font-size: var(--text-sm); }

.home-page .lower {
  padding: 0;
}

.home-page .lower-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-page .lower p,
.home-page .lower ul,
.home-page .faq,
.home-page .channels,
.home-page .canon,
.home-page .live-read,
.home-page .gates,
.home-page .fact-chips,
.home-page .supply-comp {
  max-width: var(--content-max);
}

.home-page #how {
  width: 100%;
  max-width: none;
  margin-left: 0;
}

.home-page .citizen-photo {
  right: var(--page-gutter);
}

.home-page #how .ruled {
  max-width: var(--content-max);
}

.home-page #how .ruled-row {
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: var(--space-6);
  padding: var(--space-5) 0;
}

.home-page .lower-foot {
  max-width: none;
  margin: 0;
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
}

.home-page .authority-end {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

/* Alien studio uses the same page grid and spacing rhythm. */
.studio-page .masthead,
.studio-page .footer { padding-block: var(--space-5); }
.studio-page .hero { padding-block: var(--space-9); }
.studio-page .hero-mark { transform: none; }
.studio-page .studio,
.studio-page .desk,
.studio-page .saved-section,
.studio-page .token-section { padding-block: var(--space-9); }
.studio-page .section-top { margin-bottom: var(--space-5); }
.studio-page .studio-grid,
.studio-page .desk-grid { gap: clamp(32px, 6vw, 80px); }
.studio-page .portrait,
.studio-page .studio-controls,
.studio-page .desk-controls,
.studio-page .receipt-wrap,
.studio-page .saved-card { min-width: 0; }
.studio-page .intro { font-size: var(--text-lg); line-height: 1.5; }
.studio-page .micro,
.studio-page .eyebrow { font-size: var(--text-sm); line-height: 1.3; }
.studio-page .masthead nav,
.studio-page #remixStatus,
.studio-page .desk-aside,
.studio-page .family-member span,
.studio-page .saved-card span,
.studio-page .contract-line { font-size: var(--text-sm); line-height: 1.4; }
.studio-page .btn { min-height: 48px; padding: 12px 22px; }
.studio-page .saved-card { white-space: normal; overflow-wrap: anywhere; }

/* Platform map follows the same editorial container and type scale. */
.platform-page .masthead,
.platform-page .footer { padding-block: var(--space-5); }
.platform-page .hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(32px, 6vw, 80px);
  padding-block: var(--space-9);
}
.platform-page .hero h1 {
  max-width: 13ch;
  margin-block: var(--space-3) var(--space-5);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.platform-page .intro { font-size: var(--text-lg); line-height: 1.5; }
.platform-page .definitions,
.platform-page .records-section,
.platform-page .passport-section,
.platform-page .guild-section { padding-block: var(--space-9); }
.platform-page .section-heading,
.platform-page .passport-section,
.platform-page .guild-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}
.platform-page h2 {
  max-width: 22ch;
  margin-top: var(--space-3);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.platform-page .identity-card,
.platform-page .platform-card,
.platform-page .definitions-grid > div { min-width: 0; padding: var(--space-5); }
.platform-page .summary,
.platform-page .section-heading > p,
.platform-page .passport-copy > p,
.platform-page .guild-grid p { max-width: var(--content-max); font-size: var(--text-base); line-height: 1.6; }
.platform-page .eyebrow,
.platform-page .micro,
.platform-page .snapshot-meta,
.platform-page .platform-kicker,
.platform-page .axis dt,
.platform-page .source-block h4,
.platform-page .evidence-block h4,
.platform-page .state-badge,
.platform-page .freshness { font-size: var(--text-xs); line-height: 1.3; }
.platform-page .state-badge,
.platform-page .freshness { border-radius: 0; }
.platform-page .source-list li { min-width: 0; overflow-wrap: anywhere; }

/* Utility and campaign pages still inherit viewport and content safety. */
.utility-page .wrap { padding-block: var(--space-8) var(--space-9); }
.utility-page main,
.utility-page .wrap { min-width: 0; }
.utility-page table { width: 100%; table-layout: fixed; }
.utility-page th,
.utility-page td { min-width: 0; overflow-wrap: anywhere; }
.blast-page main { width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max)); margin-inline: auto; }
.blast-page .card,
.blast-page .item { min-width: 0; }

/* Public reference pages use the same grid and readable measure. */
.discovery-page {
  min-width: 320px;
  font-family: "Google Sans", "Google Sans Text", Arial, sans-serif;
}
.discovery-page header,
.discovery-page main,
.discovery-page footer {
  width: min(100%, var(--page-max));
  max-width: var(--page-max);
  padding: var(--space-5) var(--page-gutter);
}
.discovery-page header { gap: var(--space-3) var(--space-6); }
.discovery-page .brand { font-weight: 700; letter-spacing: 0; }
.discovery-page nav { gap: var(--space-2) var(--space-4); }
.discovery-page nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.discovery-page .eyebrow {
  font-size: var(--text-sm);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.discovery-page h1 {
  max-width: 13ch;
  margin-block: var(--space-5);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 700;
}
.discovery-page h1 br { display: inline; }
.discovery-page h1 br::after { content: " "; }
.discovery-page h2 {
  margin-top: var(--space-8);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
}
.discovery-page p,
.discovery-page .lead { max-width: var(--content-max); }
.discovery-page .lead { font-size: var(--text-lg); line-height: 1.55; }
.discovery-page button,
.discovery-page .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  white-space: normal;
}
.discovery-page table { width: 100%; table-layout: fixed; }
.discovery-page th {
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
}
.discovery-page .table-scroll { max-width: 100%; overflow: visible; }
.discovery-page .market-table { min-width: 0; }
.discovery-page .market-table th:nth-child(1) { width: 18%; min-width: 0; }
.discovery-page .market-table th:nth-child(2) { width: 23%; }
.discovery-page .market-table th:nth-child(3) { width: 14%; }
.discovery-page .market-table th:nth-child(4) { width: 45%; }
.discovery-page .market-table td { min-width: 0; }
.discovery-page .status {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0;
  white-space: normal;
  text-transform: none;
}
.discovery-page .status::first-letter { text-transform: none; }

@media (max-width: 1024px) {
  :root { --section-space: 72px; }
  .home-page .sidebar { gap: var(--space-5); }
  .home-page .side-menu { gap: var(--space-4); }
  .home-page .card-grid,
  .home-page .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .claim-body { grid-template-columns: 1fr; padding-left: calc(30% + var(--space-5)); }
  .document-page .app .side-legal { display: none; }
  .document-page .app .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --section-space: 56px; }

  .home-page .sidebar {
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
    padding-block: var(--space-4);
  }

  .home-page .side-menu { display: none; }
  .home-page .side-menu-block { display: contents; }
  .home-page .side-index { grid-column: 2; }
  .home-page .side-index summary { min-height: 44px; display: flex; align-items: center; }
  .home-page .side-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .side-index nav a { min-height: 44px; display: flex; align-items: center; white-space: normal; }
  .home-page .side-index nav .mobile-primary { display: flex; }

  .home-page .editorial-hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .home-page .hero-buy-zone,
  .home-page .trade-banner { grid-template-columns: 1fr; }
  .home-page .hero-buy-note { text-align: left; }

  .home-page .controls-row,
  .home-page .controls-right { align-items: stretch; }
  .home-page .controls-row { flex-direction: column; }
  .home-page .controls-right { width: 100%; flex-wrap: wrap; margin-left: 0; }
  .home-page .record-pill { flex: 1 1 180px; }

  .home-page .correction-line { grid-template-columns: 1fr; gap: var(--space-2); }
  .home-page .correction-arrow { display: none; }
  .home-page .claim-row summary { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); }
  .home-page .claim-open { grid-column: 2; }
  .home-page .claim-body { padding-left: 0; }
  .home-page .card-grid,
  .home-page .access-grid { grid-template-columns: 1fr; }

  .home-page #how .ruled-row,
  .home-page .ruled-row,
  .home-page .gate-row,
  .home-page .canon-row,
  .home-page .chan-row { grid-template-columns: 1fr; gap: var(--space-2); }

  .home-page .gate-row::before { display: none; }

  .studio-page .hero,
  .studio-page .studio,
  .studio-page .desk,
  .studio-page .saved-section,
  .studio-page .token-section { padding-block: var(--space-8); }
  .studio-page .studio-grid,
  .studio-page .desk-grid { grid-template-columns: 1fr; gap: var(--space-6); }

  .platform-page .hero,
  .platform-page .section-heading,
  .platform-page .passport-section,
  .platform-page .guild-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .platform-page .definitions,
  .platform-page .records-section,
  .platform-page .passport-section,
  .platform-page .guild-section { padding-block: var(--space-8); }
  .platform-page .definitions-grid,
  .platform-page .status-axes { grid-template-columns: 1fr; }
  .platform-page .definitions-grid > div,
  .platform-page .axis { border-right: 0; border-bottom: 1px solid var(--border); }
  .platform-page .source-list li { grid-template-columns: 1fr; }

  .document-page table,
  .document-page tbody,
  .document-page tr,
  .document-page th,
  .document-page td { display: block; width: 100%; }
  .document-page tr { padding-block: var(--space-4); border-bottom: 1px solid var(--border); }
  .document-page th,
  .document-page td { padding: 0; border: 0; }
  .document-page th { margin-bottom: var(--space-2); }

  .document-page .app .sidebar {
    grid-template-columns: 1fr auto;
    padding-block: var(--space-4);
  }
  .document-page .app .side-nav-wrap { display: none; }
  .document-page .app .mobile-legal-nav { display: block; }
  .document-page .app .mobile-legal-nav summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-size: var(--text-sm);
  }
  .document-page .app .mobile-legal-nav summary::before { content: "+ "; color: var(--mint); }
  .document-page .app .mobile-legal-nav[open] summary::before { content: "− "; }
  .document-page .app .mobile-legal-nav nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-4);
    padding: var(--space-5) var(--page-gutter);
    border-bottom: 1px solid var(--border);
    background: var(--blue);
  }
  .document-page .app .mobile-legal-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: var(--text-sm);
  }
  .document-page .app .card-grid { grid-template-columns: 1fr; }

  .document-page pre > code { white-space: pre-wrap; }

  .utility-page table,
  .utility-page thead,
  .utility-page tbody,
  .utility-page tr,
  .utility-page th,
  .utility-page td { display: block; width: 100%; }
  .utility-page thead { display: none; }
  .utility-page tr { padding-block: var(--space-4); border-bottom: 1px solid var(--border); }
  .utility-page th,
  .utility-page td { padding: var(--space-1) 0; border: 0; }

  .discovery-page header { align-items: flex-start; }
  .discovery-page header nav { width: 100%; }
  .discovery-page main { padding-top: var(--space-4); }
  .discovery-page .market-table,
  .discovery-page .market-table tbody,
  .discovery-page .market-table tr,
  .discovery-page .market-table th,
  .discovery-page .market-table td { display: block; width: 100%; }
  .discovery-page .market-table thead { display: none; }
  .discovery-page .market-table tr {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--border);
  }
  .discovery-page .market-table th,
  .discovery-page .market-table td { padding: var(--space-1) 0; border: 0; }
  .discovery-page .market-table td:nth-child(2)::before { content: "Status: "; font-weight: 700; }
  .discovery-page .market-table td:nth-child(3)::before { content: "Verified: "; font-weight: 700; }
  .discovery-page .market-table td:nth-child(4)::before { content: "Meaning: "; font-weight: 700; }
}

@media (max-width: 480px) {
  .home-page .side-index nav { grid-template-columns: 1fr; }
  .home-page .hero-actions { display: grid; }
  .home-page .hero-actions a,
  .home-page .hero-buy,
  .home-page .cta-row a { width: 100%; white-space: normal; }
  .home-page .controls-right { display: grid; grid-template-columns: 1fr; }
  .home-page .record-pill { width: 100%; }
  .studio-page .masthead { align-items: flex-start; }
  .studio-page .masthead nav,
  .studio-page .footer nav { flex-direction: column; gap: var(--space-3); }
  .studio-page .action-grid { grid-template-columns: 1fr; }
  .document-page .app .mobile-legal-nav nav { grid-template-columns: 1fr; }
}
