.leonida-theme[data-roam-page] {
  color-scheme: dark;
  accent-color: var(--accent);
}
[data-theme="light"] .leonida-theme[data-roam-page] { color-scheme: light; }
.leonida-theme[data-roam-page] .site-header nav a[aria-current="page"],
.leonida-theme[data-roam-page] .site-header .nav-more:has(a[aria-current="page"]) > summary {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .34em;
}
.leonida-theme[data-roam-page] .site-header nav a:hover,
.leonida-theme[data-roam-page] .site-header .nav-more > summary:hover { color: var(--accent); }
.leonida-theme[data-roam-page] .more-links,
.leonida-theme[data-roam-page] .search-dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}
.leonida-theme[data-roam-page] .more-links a { color: var(--text); }
.leonida-theme[data-roam-page] .more-links a:hover,
.leonida-theme[data-roam-page] .search-dialog a:hover { background: var(--panel2); }
.leonida-theme[data-roam-page] .search-dialog h2 { color: var(--text); font: 700 2rem/1 var(--heading-face); }
.leonida-theme[data-roam-page] .search-dialog input[type="search"] { color: var(--text); background: var(--bg); border-color: var(--line); }
.leonida-theme[data-roam-page] .search-dialog::backdrop { background: rgb(15 9 18 / .73); }
.leonida-theme[data-roam-page] .tool-image-credit {
  display: inline-block; justify-self: start; align-self: start; width: fit-content;
  font: 500 .75rem/1.45 "DM Sans", sans-serif; text-decoration: underline;
  text-underline-offset: .18em;
}
.leonida-theme[data-roam-page] :is(.launch-date, .explorer-heading, .hero-bottom) .tool-image-credit {
  color: #fff5e9; background: #201722e6; border-radius: 3px; padding: 3px 7px;
}
.leonida-theme[data-roam-page="account"] .tool-image-credit { margin-top: .35rem; color: var(--muted); }
@media (max-width: 760px) {
  .leonida-theme[data-roam-page] .site-header nav { flex-wrap: wrap; row-gap: 0; column-gap: clamp(9px, 3.1vw, 17px); }
  .leonida-theme[data-roam-page] .site-header nav > :is(a, details) { flex-shrink: 0; }
  .leonida-theme[data-roam-page] .site-header .more-links { z-index: 31; }
}
@media (prefers-reduced-motion: reduce) {
  .leonida-theme[data-roam-page] :is(.more-links, .search-dialog) { scroll-behavior: auto; }
}
/* Leonida workspaces use photographic title panels where there is room.
   Map tiles, drawing surfaces and the video player keep their native colors. */
.leonida-theme[data-roam-page="clips"] .clips-heading {
  --tool-still: url("/assets/regions/vice-city-gta-vi.webp");
  --tool-focal-point: 66% 48%;
}
.leonida-theme[data-roam-page="creator"] .creator-start {
  --tool-still: url("/assets/regions/port-gellhorn-gta-vi.webp");
  --tool-focal-point: 67% 48%;
}
.leonida-theme[data-roam-page="my-roam"] .my-heading {
  --tool-still: url("/assets/regions/leonida-keys-gta-vi.webp");
  --tool-focal-point: 68% 51%;
}
.leonida-theme[data-roam-page] :is(.clips-heading, .creator-start, .my-heading) {
  position: relative;
  padding: clamp(20px, 3.4vw, 46px) clamp(22px, 4vw, 54px) clamp(44px, 4.2vw, 58px);
  margin-bottom: clamp(18px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff5e9;
  background-color: #261a28;
  background-image: linear-gradient(88deg,#1c1420f5 4%,#241826e6 42%,#2318246b 75%,#241c2580),var(--tool-still);
  background-size: cover;
  background-position: center,var(--tool-focal-point);
}
.leonida-theme[data-roam-page] :is(.clips-heading, .creator-start, .my-heading) h1:not(#intro-title),
.leonida-theme[data-roam-page="play"] .hero-content #hero-title {
  color: #fff5e9;
  font: 800 clamp(2.8rem,5.8vw,6rem)/.93 var(--heading-face);
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin-block: 0 .2em;
}
.leonida-theme[data-roam-page] :is(.clips-heading, .creator-start, .my-heading) p {
  color: #f6e9e4;
  max-width: 58ch;
  line-height: 1.55;
}
.leonida-theme[data-roam-page] .clips-heading .launch-kicker { color: #ffc3a5; }
.leonida-theme[data-roam-page] :is(.creator-start .text-link, .clips-heading > a:not(.tool-image-credit)) {
  color: #fff5e9;
  text-underline-offset: .2em;
}
.leonida-theme[data-roam-page] .my-heading .button.secondary {
  border-color: #e3c3b7;
  color: #fff5e9;
  background: #291d2be8;
}
.leonida-theme[data-roam-page] :is(.creator-start,.my-heading,.clips-heading) .tool-image-credit {
  position: absolute;
  inset: auto clamp(11px, 1.6vw, 22px) 8px auto;
  padding: 4px 7px;
  border-radius: 3px;
  background: #201722df;
  color: #fff5e9;
  font: 500 .7rem/1.2 "DM Sans", sans-serif;
  text-underline-offset: .18em;
}
.leonida-theme[data-roam-page="map"] .explorer-heading,
.leonida-theme[data-roam-page="twitch-clip-guide"] .commerce-heading {
  padding-block: clamp(8px, 1.6vw, 22px) clamp(15px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
}
.leonida-theme[data-roam-page="map"] .explorer-heading h1:not(#intro-title),
.leonida-theme[data-roam-page="account"] .account-intro h1:not(#intro-title),
.leonida-theme[data-roam-page="twitch-clip-guide"] .commerce-heading h1:not(#intro-title) {
  color: var(--text);
  font: 800 clamp(2.6rem,5vw,5.2rem)/.98 var(--heading-face);
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.leonida-theme[data-roam-page="map"] .explorer-heading { margin-bottom: 14px; }
.leonida-theme[data-roam-page="map"] .explorer-heading h1 { margin-block: .13em 0; }
.leonida-theme[data-roam-page="map"] :is(.atlas-sidebar,.place-detail) {
  border-color: var(--line);
  background: var(--panel);
}
.leonida-theme[data-roam-page="map"] .atlas-sidebar { border-top: 3px solid var(--sea); }
.leonida-theme[data-roam-page="map"] .map-frame { border-color: var(--line); }
.leonida-theme[data-roam-page="map"] .map-caption {
  background: #261e2be8;
  color: #fff5e9;
}
.leonida-theme[data-roam-page="map"] .map-toolbar button {
  min-width: 44px;
  min-height: 44px;
  background: #251c2bec;
  color: #fff5e9;
  border-color: #b49aa3;
}
.leonida-theme[data-roam-page="map"] .map-toolbar button:hover { background: #4b3448; }
.leonida-theme[data-roam-page="clips"] :is(.clip-panel,.clip-tutorial),
.leonida-theme[data-roam-page="my-roam"] :is(.my-panel,.return-panel),
.leonida-theme[data-roam-page="play"] .app-shell,
.leonida-theme[data-roam-page="account"] .account-box {
  border-color: var(--line);
  border-radius: 8px;
  color: var(--text);
  background-color: var(--panel);
}
.leonida-theme[data-roam-page="clips"] .clip-upload {
  border-color: var(--accent);
  background: color-mix(in srgb,var(--accent) 7%,var(--bg));
  border-radius: 7px;
}
.leonida-theme[data-roam-page="clips"] .workflow-notice,
.leonida-theme[data-roam-page="my-roam"] :is(.my-device-note,.my-project-preview) {
  border-inline-start-color: var(--sea);
  background: color-mix(in srgb,var(--sea) 7%,var(--panel));
}
.leonida-theme[data-roam-page="creator"] .creator-navigation a { border-radius: 4px; }
.leonida-theme[data-roam-page="creator"] .creator-navigation a:is(:hover,:focus-visible) {
  background: var(--accent-dark);
  color: var(--text);
}
.leonida-theme[data-roam-page="my-roam"] .my-welcome {
  padding: clamp(18px,2.5vw,30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--sea);
  border-radius: 6px;
  color: var(--text);
}
.leonida-theme[data-roam-page="my-roam"] .my-welcome p { color: var(--muted); }
.leonida-theme[data-roam-page="my-roam"] .my-welcome .button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel2);
}
.leonida-theme[data-roam-page="my-roam"] .my-panel progress { accent-color: var(--sea); }
.leonida-theme[data-roam-page="play"] .hero-art {
  background-image: linear-gradient(93deg,#18121ce8 6%,#1e1621cd 38%,#1c142366 76%),linear-gradient(0deg,#1c141de8,transparent 45%),url("/assets/regions/grassrivers-gta-vi.webp");
  background-position: center,center,66% center;
}
.leonida-theme[data-roam-page="play"] .hero-content #hero-title em {
  font: inherit;
  font-style: italic;
  color: #ffba98;
}
.leonida-theme[data-roam-page="play"] .hero-content :is(.hero-copy,.hero-note) { color: #f6e9e4; }
.leonida-theme[data-roam-page="play"] .hero-content .eyebrow { color: #ffc5a6; }
.leonida-theme[data-roam-page="play"] .hero-bottom {
  background: #201722ec;
  border-color: #614e5c;
  color: #fff5e9;
}
.leonida-theme[data-roam-page="play"] .hero-bottom :is(span,a) { color: #fff5e9; }
.leonida-theme[data-roam-page="play"] :is(.mood-options,.time-options) label > span {
  background: var(--bg);
  border-color: var(--line);
  color: var(--text);
}
.leonida-theme[data-roam-page="play"] :is(.mood-options,.time-options) input:checked + span {
  background: var(--accent-dark);
  border-color: var(--accent);
  color: var(--accent);
}
.leonida-theme[data-roam-page="play"] :is(.mood-options,.time-options) input:focus-visible + span {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.leonida-theme[data-roam-page="account"] .account-box { border-top: 3px solid var(--accent); }
.leonida-theme[data-roam-page="account"] .account-intro img { border-radius: 6px; }
@media (max-width: 720px) {
  .leonida-theme[data-roam-page] :is(.clips-heading,.my-heading) {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .leonida-theme[data-roam-page] :is(.clips-heading,.creator-start,.my-heading) {
    padding: 20px 18px 36px;
    background-image: linear-gradient(90deg,#1c1420ed,#211725c4 75%,#221924a3),var(--tool-still);
  }
  .leonida-theme[data-roam-page] .clips-heading { --tool-still: url("/assets/regions/vice-city-gta-vi-640.webp"); }
  .leonida-theme[data-roam-page] .creator-start { --tool-still: url("/assets/regions/port-gellhorn-gta-vi-640.webp"); }
  .leonida-theme[data-roam-page] .my-heading { --tool-still: url("/assets/regions/leonida-keys-gta-vi-640.webp"); }
  .leonida-theme[data-roam-page="play"] .hero-art {
    background-image: linear-gradient(0deg,#201921db,#18131b99 64%,#18131bba),url("/assets/regions/grassrivers-gta-vi-640.webp");
    background-position: center,58% center;
  }
}
/* The source index and launch desk use the same editorial display type as the guides. */
.leonida-theme[data-roam-page] :is(.explorer-heading, .commerce-heading, .example-hero, .intelligence,
    .credits, .editorial, .field-page, .not-found) h1:not(#intro-title),
.leonida-theme[data-roam-page="editions"] .guide-heading h1:not(#intro-title),
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"], [data-roam-page="creator-kit-terms"],
   [data-roam-page="creator-download"], [data-roam-page="supplier-terms"]) main h1:not(#intro-title) {
  color: var(--text);
  font: 800 clamp(2.65rem, 5.3vw, 5rem)/.99 var(--heading-face);
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.leonida-theme[data-roam-page] :is(.wiki-card, .source-card, .commerce-main, .field-page,
    .credits, .editorial, .source-links, .guide-tools, .edition-notes, .launch-checklist) h2:not([data-plain-heading]),
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"], [data-roam-page="creator-kit-terms"],
   [data-roam-page="supplier-terms"]) main h2:not([data-plain-heading]) {
  color: var(--text);
  font: 700 clamp(1.55rem, 2.6vw, 2.35rem)/1.1 var(--heading-face);
  letter-spacing: -.005em;
}
.leonida-theme[data-roam-page] :is(.resource-article, .workflow-article) > .commerce-heading {
  max-width: 58rem;
  padding-block: clamp(16px, 3.5vw, 40px) clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.leonida-theme[data-roam-page] :is(.resource-article, .workflow-article, .customer-info, .editorial) :is(p, li) {
  max-width: 75ch;
}
.leonida-theme[data-roam-page] :is(.resource-article, .workflow-article) .commerce-heading > p:not(.launch-kicker),
.leonida-theme[data-roam-page] .intelligence-intro {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.65;
}
.leonida-theme[data-roam-page] :is(.resource-callout, .customer-info section, .workflow-contents,
   .comparison-table th, .comparison-table td, .resource-table th, .resource-table td, .example-section,
   .field-legend span, .not-found nav, .credits section) { border-color: var(--line); }
.leonida-theme[data-roam-page] :is(.resource-callout, .wiki-card, .source-card, .idea-card, .evidence-example,
   .week-plan li, .resource-links-grid a, .example-manuscript, .order-panel, .fit-card, .field-empty,
   .edition-notes article, .guide-tools) {
  background: var(--panel);
  border-color: var(--line);
}
.leonida-theme[data-roam-page] :is(.resource-callout, .order-panel, .field-empty) {
  border-inline-start: 3px solid var(--accent);
}
.leonida-theme[data-roam-page] :is(.story-number, .slot-time, .field-status, .source-card summary,
   .customer-nav a, .credits a, .intelligence .source-line a, .resource-links-grid span) { color: var(--accent); }
.leonida-theme[data-roam-page] :is(.source-card p, .source-controls label, .guide-meta, .field-lead) {
  color: var(--muted);
}
.leonida-theme[data-roam-page] .source-card .source-summary,
.leonida-theme[data-roam-page] .comparison-table tbody th { color: var(--text); }
.leonida-theme[data-roam-page] :is(.comparison-table thead th, .resource-table caption) {
  color: var(--text);
  background: var(--panel2);
}
.leonida-theme[data-roam-page] :is(.resource-links-grid a, .workflow-contents a, .customer-nav a):hover {
  color: var(--accent);
  border-color: var(--accent);
}
.leonida-theme[data-roam-page="wiki"] .explorer-heading {
  display: grid;
  align-content: end;
  justify-content: start;
  gap: .7rem;
  padding: clamp(24px, 4.1vw, 52px);
  min-height: clamp(185px, 20vw, 275px);
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: linear-gradient(90deg, rgba(25,16,28,.94), rgba(25,16,28,.76) 50%, rgba(25,16,28,.1)),
              url("/assets/regions/leonida-keys-gta-vi.webp") center 46% / cover;
}
.leonida-theme[data-roam-page="wiki"] .explorer-heading h1:not(#intro-title) {
  color: #fff5e9;
  margin-block: .45rem 0;
  text-shadow: 0 1px 4px #201522;
}
.leonida-theme[data-roam-page="wiki"] .explorer-heading .launch-kicker { color: #9fe5d8; }
.leonida-theme[data-roam-page="wiki"] .explorer-heading > p {
  max-width: 40ch;
  margin: 0;
  color: #fff3e8;
  font-size: .94rem;
  line-height: 1.5;
}
.leonida-theme[data-roam-page="wiki"] .directory-controls,
.leonida-theme[data-roam-page="intelligence"] .source-controls {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 26px);
  border-radius: .5rem;
}
.leonida-theme[data-roam-page] :is(.directory-controls, .source-controls) :is(input:not([type="checkbox"]), select) {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
}
.leonida-theme[data-roam-page="wiki"] .wiki-card:target,
.leonida-theme[data-roam-page="wiki"] .wiki-card button[aria-pressed="true"] { border-color: var(--sea); }
.leonida-theme[data-roam-page="wiki"] .wiki-card button[aria-pressed="true"] { color: var(--sea); }

.leonida-theme[data-roam-page="launch"] .launch-date {
  color: #fff5e9;
  background: linear-gradient(105deg, rgba(27,17,28,.96), rgba(27,17,28,.76)),
              url("/assets/regions/vice-city-gta-vi-640.webp") center / cover;
  border-color: var(--line);
}
.leonida-theme[data-roam-page="launch"] .launch-date h2:not([data-plain-heading]) {
  color: #ffe0c2;
  font: 800 clamp(2.5rem, 5vw, 4.5rem)/.95 var(--heading-face);
  letter-spacing: -.015em;
}
.leonida-theme[data-roam-page="launch"] .launch-date :is(p, .text-link) { color: #fff5e9; }
.leonida-theme[data-roam-page="launch"] .launch-date a.button {
  background: #ffbb99;
  color: #251727;
  border: 1px solid #ffbb99;
}

/* News and shared-place routes render as independent HTML documents. */
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"], [data-roam-page="creator-kit-terms"],
    [data-roam-page="creator-download"], [data-roam-page="supplier-terms"]) { min-height: 100vh; }
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"]) > header {
  border-color: var(--line);
  color: var(--text);
}
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"]) > header .brand {
  color: var(--text);
  font: 800 2rem/1 var(--heading-face);
  letter-spacing: .015em;
}
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"]) > footer { color: var(--muted); border-color: var(--line); }
.leonida-theme[data-roam-page="news"] :is(main > p, section > p, small, figcaption),
.leonida-theme[data-roam-page="place"] :is(.area, .private),
.leonida-theme:is([data-roam-page="creator-kit-terms"], [data-roam-page="creator-download"],
    [data-roam-page="supplier-terms"]) :is(p, footer) { color: var(--muted); }
.leonida-theme:is([data-roam-page="news"], [data-roam-page="place"], [data-roam-page="creator-kit-terms"],
    [data-roam-page="creator-download"], [data-roam-page="supplier-terms"]) a { color: var(--accent); }
.leonida-theme[data-roam-page="news"] .news li > a { color: var(--text); }
.leonida-theme[data-roam-page="news"] .news li > a:is(:hover,:focus-visible) { color: var(--accent); }
.leonida-theme[data-roam-page="news"] li { border-color: var(--line); }
.leonida-theme[data-roam-page="news"] footer { flex-wrap: wrap; gap: .5rem 1.25rem; }
.leonida-theme[data-roam-page="place"] :is(.status, .spoiler, main section, .share-image),
.leonida-theme[data-roam-page="creator-download"] #status,
.leonida-theme[data-roam-page="supplier-terms"] section {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}
.leonida-theme[data-roam-page="place"] :is(.status, .eyebrow),
.leonida-theme:is([data-roam-page="creator-kit-terms"], [data-roam-page="creator-download"],
   [data-roam-page="supplier-terms"]) .eyebrow { color: var(--sea); }
.leonida-theme[data-roam-page="place"] .primary,
.leonida-theme[data-roam-page="creator-download"] button {
  color: #241723;
  background: #ffb18f;
  font: 700 1rem/1.4 "DM Sans", Arial, sans-serif;
}
.leonida-theme[data-roam-page="supplier-terms"] header { border-color: var(--line); }
.leonida-theme[data-roam-page="supplier-terms"] .note { background: var(--panel2); color: var(--text); }
.leonida-theme[data-roam-page="creator-kit-terms"] main h2 { margin-block: 1.6em .4em; }
.leonida-theme[data-roam-page="creator-kit-terms"] main p { line-height: 1.7; }

@media (max-width: 680px) {
  .leonida-theme[data-roam-page="wiki"] .explorer-heading {
    background-image: linear-gradient(90deg, rgba(25,16,28,.94), rgba(25,16,28,.66)),
                      url("/assets/regions/leonida-keys-gta-vi-640.webp");
  }
  .leonida-theme[data-roam-page="intelligence"] .source-top { flex-wrap: wrap; }
  .leonida-theme[data-roam-page="news"] header nav { gap: .85rem; }
}
@media print {
  .leonida-theme:is([data-roam-page="creator-kit-terms"], [data-roam-page="customer-info"],
     [data-roam-page="supplier-terms"], [data-roam-page="editorial"], [data-roam-page="privacy"],
     [data-roam-page="credits"]) {
    --bg: #fff; --text: #171217; --muted: #302a30; --panel: #fff; --line: #bdb7bf;
    --panel2: #fff; --accent: #333; --sea: #333;
    background: #fff;
    color: #171217;
  }
  .leonida-theme:is([data-roam-page="creator-kit-terms"], [data-roam-page="customer-info"],
       [data-roam-page="supplier-terms"], [data-roam-page="editorial"], [data-roam-page="privacy"],
       [data-roam-page="credits"]) :is(.site-header, .shell-actions, .customer-nav) { display: none; }
}

/* Tips can be empty at launch; the verification state stays readable in both modes. */
.leonida-theme[data-roam-page="tips-tricks"] .tips {
  padding-top: clamp(28px, 5vw, 64px);
}
.leonida-theme[data-roam-page="tips-tricks"] .tips h1:not(#intro-title) {
  color: var(--text);
  font: 800 clamp(3.3rem, 7vw, 6rem)/.96 var(--heading-face);
  letter-spacing: -.015em;
  margin-block: .22em;
}
.leonida-theme[data-roam-page="tips-tricks"] .tips h1 span { color: var(--accent); }
.leonida-theme[data-roam-page="tips-tricks"] :is(.tips-title h2, .tip-card h3, .empty h3) {
  color: var(--text);
  font-family: var(--heading-face);
  font-weight: 700;
  line-height: 1.1;
}
.leonida-theme[data-roam-page="tips-tricks"] .tips-status {
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  margin-top: 1.6rem;
}
.leonida-theme[data-roam-page="tips-tricks"] .tips-body {
  margin-top: clamp(24px, 4vw, 50px);
  padding-top: 0;
  border-top: 0;
}
.leonida-theme[data-roam-page="tips-tricks"] :is(.tip-filters button, #first-hour) { min-height: 44px; }
.leonida-theme[data-roam-page="tips-tricks"] :is(.tip-filters button, #first-hour)[aria-pressed="true"] {
  background: var(--accent-dark);
  color: var(--accent);
  border-color: var(--accent);
}
.leonida-theme[data-roam-page="tips-tricks"] .tip-card { border-inline-start: 3px solid var(--sea); }
@media (max-width: 460px) {
  .leonida-theme[data-roam-page="tips-tricks"] .tips-title { flex-wrap: wrap; }
}

/* Home account entry. Other pages keep their existing masthead. */
.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) {
  grid-template-columns: auto minmax(150px, 172px) minmax(0, 1fr) auto auto;
  grid-template-areas: "brand countdown navigation utilities account";
  align-items: center;
  column-gap: clamp(12px, 1.5vw, 22px);
}
.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .brand {
  grid-area: brand;
  align-self: center;
  justify-self: start;
}
.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .release-countdown { grid-area: countdown; }
.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > nav { grid-area: navigation; }
.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .shell-actions {
  grid-area: utilities;
  align-self: center;
  justify-self: end;
}
.home-account-actions {
  grid-area: account;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
}
.home-account-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.home-account-actions > .home-signup, .home-account-actions > .home-member {
  border-color: #ffb18f;
  background: #ffb18f;
  color: #281b23;
}
.home-account-actions > .home-login { border-color: var(--line); background: var(--panel); }
.home-account-actions > a:is(:hover,:focus-visible) { border-color: var(--text); }
.home-account-actions > .home-signup:hover, .home-account-actions > .home-member:hover { background: #ffccad; }
.home-account-actions > .home-login:hover { background: var(--panel2); }
.home-account-actions > a[hidden] { display: none; }

@media (min-width: 651px) and (max-width: 1190px) {
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) {
    grid-template-columns: auto 170px minmax(0, 1fr) auto;
    grid-template-areas: "brand countdown utilities account" "navigation navigation navigation navigation";
    row-gap: 4px;
    padding-block: 14px 7px;
  }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > nav { justify-content: start; }
}
@media (max-width: 650px) {
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand account" "countdown utilities" "navigation navigation";
    gap: 8px 10px;
    padding-block: 12px 5px;
  }
  .home-account-actions { gap: 4px; }
  .home-account-actions > a { padding-inline: 10px; font-size: .83rem; }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .release-countdown {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(48%, 174px);
    padding: 7px 9px;
    gap: 4px;
  }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > nav {
    margin-block: 0;
    align-items: center;
  }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .shell-actions {
    min-width: 0;
    gap: 5px;
  }
}

.leonida-theme[data-roam-page="purchase"] .kit-purchase-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.kit-purchase-intro .commerce-heading { margin: 0; }
.kit-purchase-intro .commerce-heading h1 { margin-block: .65rem 1rem; }
.kit-purchase-intro .commerce-heading > p:last-child { margin-bottom: 0; }
.kit-purchase-offer { min-width: 0; }
.kit-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .8rem;
  margin: 0 0 .8rem;
}
.kit-offer-price strong { color: var(--text); font: 800 2.3rem/1 var(--heading-face); }
.kit-offer-price span, .kit-purchase-offer .order-caption { color: var(--muted); font-size: .85rem; }
.kit-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.15rem; }
.kit-offer-actions > a, .kit-offer-actions > button { display: inline-flex; align-items: center; min-height: 44px; }
.kit-offer-actions .text-link { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.kit-purchase-offer .checkout-status, .kit-purchase-offer .order-caption {
  margin: .65rem 0 0; padding: 0; border: 0; color: var(--muted); font-size: .85rem; line-height: 1.5;
}
.leonida-theme[data-roam-page="purchase"] .purchase-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem;
}
@media (max-width: 760px) {
  .leonida-theme[data-roam-page="purchase"] .kit-purchase-intro {
    grid-template-columns: 1fr; gap: 1.1rem;
  }
  .leonida-theme[data-roam-page="purchase"] .purchase-list { grid-template-columns: 1fr; }
}


/* ROAM mobile navigation: avoid off-screen More popovers and oversized headers. */
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .leonida-theme[data-roam-page] .site-header {
    display: grid;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "brand utilities" "countdown countdown" "navigation navigation";
    align-items: center;
    gap: 6px 10px;
    padding-block: 12px 10px;
  }
  .leonida-theme[data-roam-page] .site-header > .brand { grid-area: brand; min-width: 0; justify-self: start; }
  .leonida-theme[data-roam-page] .site-header > .release-countdown {
    grid-area: countdown; grid-column: auto;
    width: min(172px,100%);
    min-width: 0;
    justify-self: start;
    padding: 7px 9px;
    gap: 4px;
  }
  .leonida-theme[data-roam-page] .site-header > nav {
    grid-area: navigation; min-width: 0; width: 100%; margin: 0;
  }
  .leonida-theme[data-roam-page] .site-header > .shell-actions {
    grid-area: utilities; min-width: 0; justify-self: end; margin: 0;
  }
  .leonida-theme[data-roam-page] .site-header > .release-label { display: none; }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "brand account" "countdown utilities" "navigation navigation";
    gap: 8px 10px;
    padding-block: 12px 10px;
  }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .release-countdown {
    grid-area: countdown; grid-column: auto;
    width: min(172px,100%);
    justify-self: start;
    padding: 7px 9px;
    min-width: 0;
  }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > .shell-actions {
    grid-area: utilities; justify-self: end; margin: 0;
  }
  .leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions) > nav {
    grid-area: navigation; margin: 0;
  }
  .leonida-theme[data-roam-page] .site-header nav.roam-mobile-enhanced {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
    gap: clamp(7px,2vw,14px);
    width: 100%;
    min-width: 0;
  }
  .leonida-theme[data-roam-page] .site-header nav.roam-mobile-enhanced > a:is([href="/tips-tricks.html"],[href="/creator.html"],[href="/my-roam.html"]) {
    display: none !important;
  }
  .leonida-theme[data-roam-page] .site-header nav.roam-mobile-enhanced > :is(a,.nav-more) {
    flex: 0 1 auto;
    white-space: nowrap;
    min-width: 0;
    font-size: clamp(10px,2.7vw,13px);
  }
  .leonida-theme[data-roam-page] .site-header nav.roam-mobile-enhanced > .nav-more {
    margin-left: auto;
    flex: 0 0 auto;
  }
  .leonida-theme[data-roam-page] .site-header .nav-more .more-links {
    width: min(280px,calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
  .leonida-theme[data-roam-page] .site-header .nav-more[open] > .more-links {
    position: fixed !important;
    top: var(--roam-menu-top, 132px) !important;
    left: var(--roam-menu-left, 12px) !important;
    right: auto !important;
    bottom: auto;
    z-index: 10000;
    max-height: min(60dvh,420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  .leonida-theme[data-roam-page] .site-header .more-links > a.roam-mobile-sub-link {
    display: block;
    min-height: 44px;
  }
}
@media (min-width: 761px) and (max-width: 1190px) {
  .leonida-theme[data-roam-page] .site-header .nav-more[open] > .more-links {
    position: fixed !important;
    top: var(--roam-menu-top, 90px) !important;
    left: var(--roam-menu-left, 12px) !important;
    right: auto !important;
    z-index: 10000;
    width: 240px;
    max-height: min(65dvh, 440px);
    overflow-y: auto;
    box-sizing: border-box;
  }
}


/* ROAM consumer navigation and home hub. Shared across Leonida pages. */
.leonida-theme[data-roam-page] .site-header .release-label{display:none!important}
.roam-entry-hub,.roam-product-choice{box-sizing:border-box;padding-inline:clamp(18px,4vw,64px)}
.roam-entry-hub{padding-block:clamp(22px,3vw,38px) clamp(14px,2vw,25px)}
.roam-entry-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:17px}
.roam-entry-heading h2{margin:2px 0 0;font-size:clamp(22px,2.6vw,32px)}
.roam-entry-heading>p{margin:0 0 3px;color:var(--muted);font-size:13px}
.roam-entry-eyebrow,.roam-entry-link>span,.roam-product-eyebrow{display:block;font-size:10px;letter-spacing:.11em;font-weight:700;color:var(--accent)}
.roam-entry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.roam-entry-link{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:118px;padding:17px 16px;text-decoration:none;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:10px;transition:border-color .15s,transform .15s}
.roam-entry-link strong{font-size:clamp(15px,1.4vw,18px);line-height:1.25}
.roam-entry-link small{color:var(--muted);font-size:12px;line-height:1.4}
.roam-entry-link:is(:hover,:focus-visible){border-color:var(--accent);transform:translateY(-2px)}
.roam-product-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-block:0 clamp(22px,3vw,42px)}
.roam-product-card{min-width:0;display:flex;flex-direction:column;gap:10px;padding:clamp(18px,2.5vw,30px);border-radius:12px;background:var(--panel);border:1px solid var(--line);color:var(--text);text-decoration:none}
.roam-product-plus{background:linear-gradient(130deg,var(--panel),var(--panel2));border-color:var(--accent)}
.roam-product-card h2{margin:0;font-size:clamp(23px,2.7vw,32px)}
.roam-product-card p{margin:0;line-height:1.5;font-size:14px;color:var(--muted);max-width:48ch}
.roam-product-price{margin-top:auto;font-size:13px;font-weight:650}
.roam-product-action{display:inline-flex;align-self:start;border-bottom:1px solid var(--accent);padding-bottom:3px;font-size:13px;font-weight:700;color:var(--accent)}
.roam-product-card:is(:hover,:focus-visible){border-color:var(--text)}
.roam-tip-next{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.roam-tip-next a{display:inline-flex;align-items:center;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;color:var(--text);background:var(--panel2);font-size:13px;text-decoration:none}
.roam-tip-next a:is(:hover,:focus-visible){border-color:var(--accent)}
@media(max-width:1100px){.roam-entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.roam-entry-heading{display:block}.roam-entry-heading>p{margin-top:8px}.roam-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roam-entry-link{min-height:105px;padding:14px 12px}.roam-entry-link:last-child:nth-child(odd){grid-column:1/-1}.roam-product-choice{grid-template-columns:1fr}.roam-product-card{padding:20px}.roam-entry-hub,.roam-product-choice{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){.roam-entry-link{transition:none}.roam-entry-link:is(:hover,:focus-visible){transform:none}}
