/* ROAM UI refinement • 19 Nov 2026 • preserve map/editor/checkout behavior */
body.leonida-theme{--roam-ui-radius:14px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.leonida-theme .site-header,body.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions){display:flex!important;grid-template-columns:none!important;grid-template-areas:none!important;align-items:center;justify-content:space-between;flex-wrap:nowrap;column-gap:clamp(10px,1.8vw,24px);row-gap:8px;min-height:72px;height:auto!important;padding-block:12px!important;box-sizing:border-box;border-bottom:1px solid var(--line);position:relative;z-index:40;overflow:visible}
body.leonida-theme .site-header>.brand{order:0;grid-area:auto!important;flex:0 0 auto;min-width:0;display:inline-flex;align-items:center;white-space:nowrap;letter-spacing:.02em}
body.leonida-theme .site-header>nav{order:1;grid-area:auto!important;flex:1 1 auto;min-width:0;display:flex;justify-content:center;align-items:center;column-gap:clamp(8px,1.2vw,19px);row-gap:0;margin:0;font-size:12px}
body.leonida-theme .site-header>nav>a,body.leonida-theme .site-header>nav>.nav-more>summary{display:inline-flex;align-items:center;justify-content:center;min-height:38px;box-sizing:border-box;padding:7px 0;white-space:nowrap;font-size:clamp(11px,.92vw,13px);line-height:1.25;text-decoration:none}
body.leonida-theme .site-header>nav>a[aria-current="page"],body.leonida-theme .site-header>nav>.nav-more:has(a[aria-current="page"])>summary{text-decoration:none;border-bottom:2px solid var(--accent)}
body.leonida-theme .site-header .nav-more{z-index:90}
body.leonida-theme .site-header .nav-more>.more-links{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:min(65dvh,440px);overflow-y:auto;overscroll-behavior:contain;border-radius:12px;padding:8px}
body.leonida-theme .site-header .nav-more>.more-links a{display:flex;align-items:center;min-height:40px;white-space:normal;line-height:1.4;border-radius:8px}
body.leonida-theme .site-header>.shell-actions{order:2;grid-area:auto!important;flex:0 0 auto;justify-self:auto!important;display:flex;align-items:center;gap:7px;min-width:0;margin:0!important}
body.leonida-theme .site-header>.shell-actions button{box-sizing:border-box;min-height:36px;padding:7px 10px;border-radius:9px;font-size:12px;line-height:1.2;white-space:nowrap}
body.leonida-theme .site-header>.home-account-actions{order:3;grid-area:auto!important;flex:0 0 auto;justify-self:auto!important;display:flex;align-items:center;gap:6px;margin:0}
body.leonida-theme .home-account-actions>a{min-height:36px;padding:6px 11px;font-size:12px;border-radius:9px}
body.leonida-theme .site-header>.release-countdown{display:none!important}
body.leonida-theme main{min-width:0}
body.leonida-theme main :is(h1,h2,h3){text-wrap:balance}
body.leonida-theme main :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
body.leonida-theme main :is(button,.button,.plus-button){border-radius:10px}
body.leonida-theme :is(.roam-entry-link,.roam-product-card,.plus-panel,.plus-bar,.my-panel,.clip-panel,.clips-panel,.region-photo-card,.entry-card,.launch-date,.launch-checklist,.editorial-card,.wiki-card){border-radius:var(--roam-ui-radius);min-width:0}
body.leonida-theme :is(.roam-entry-link,.roam-product-card,.plus-panel,.plus-bar){box-shadow:0 3px 22px #00000013}
body.leonida-theme .roam-entry-grid{gap:clamp(10px,1.3vw,18px);grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr))}
body.leonida-theme .roam-product-choice{gap:clamp(12px,1.8vw,24px)}
body.leonida-theme :is(.roam-entry-link,.roam-product-card) :is(strong,h2,p,small){overflow-wrap:break-word}
body.leonida-theme :is(.roam-entry-link,.roam-product-card):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.leonida-theme[data-roam-page="index"] .visual-home .roam-hero.leonida-hero{min-height:clamp(430px,43vw,640px)}
body.leonida-theme[data-roam-page="index"] .leonida-hero-title{font-size:clamp(3.5rem,8.4vw,7rem);line-height:1.01;letter-spacing:-.035em}
body.leonida-theme .launch-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:18px 30px;padding-block:30px 40px}
body.leonida-theme .launch-footer>*{min-width:0}
body.leonida-theme .launch-footer .commerce-footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}
body.leonida-theme .launch-footer .commerce-footer-links>a{min-height:32px;display:inline-flex;align-items:center}
@media(max-width:1190px){
 body.leonida-theme .site-header,body.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions){flex-wrap:wrap!important;justify-content:flex-start}
 body.leonida-theme .site-header>.home-account-actions{order:1;margin-left:auto}
 body.leonida-theme .site-header>.shell-actions{order:2;margin-left:auto!important}
 body.leonida-theme .site-header>nav{order:10;flex:1 1 100%!important;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:clamp(10px,2vw,18px);padding-bottom:4px}
 body.leonida-theme .site-header>nav::-webkit-scrollbar{display:none}
 body.leonida-theme .site-header>nav>:is(a,details){flex-shrink:0}
}
@media(max-width:760px){
 body.leonida-theme .site-header,body.leonida-theme[data-roam-page="index"] .site-header:has(.home-account-actions){min-height:0;padding-block:11px 8px!important;gap:6px 12px}
 body.leonida-theme .site-header>.brand{font-size:clamp(20px,5.4vw,26px)}
 body.leonida-theme .site-header>.brand img{max-width:28px;height:auto}
 body.leonida-theme .site-header>.shell-actions button{padding:7px 9px;font-size:11px;min-height:34px}
 body.leonida-theme .site-header>.home-account-actions>a{min-height:34px;padding:5px 9px;font-size:11px}
 body.leonida-theme .site-header>nav{border-top:1px solid var(--line);padding-top:5px;padding-bottom:3px;gap:clamp(10px,2.8vw,16px)}
 body.leonida-theme .site-header>nav>a,body.leonida-theme .site-header>nav>.nav-more>summary{font-size:clamp(11px,2.9vw,13px);min-height:36px}
 body.leonida-theme .site-header .nav-more[open]>.more-links{z-index:10000;max-width:calc(100vw - 24px);max-height:min(65dvh,430px);overscroll-behavior:contain}
 body.leonida-theme main :is(h1,h2,h3){overflow-wrap:break-word}
 body.leonida-theme .visual-home .roam-hero.leonida-hero{min-height:440px}
 body.leonida-theme[data-roam-page="index"] .leonida-hero-title{font-size:clamp(42px,11.5vw,64px);line-height:1.02}
 body.leonida-theme :is(.roam-entry-grid,.roam-product-choice){grid-template-columns:minmax(0,1fr)}
 body.leonida-theme .launch-footer{display:flex;flex-direction:column;gap:13px;padding-block:25px 35px}
}
@media(max-width:420px){
 body.leonida-theme .site-header>.brand{font-size:20px}
 body.leonida-theme .site-header>.shell-actions{gap:4px}
 body.leonida-theme .site-header>.home-account-actions{gap:4px}
 body.leonida-theme .site-header>.home-account-actions>a{font-size:10px;padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){body.leonida-theme :is(.roam-entry-link,.roam-product-card){transition:none}}

/* 2026-11-20: subtly emphasize homepage Map entry, without altering other pages. */
body.leonida-theme[data-roam-page="index"] .leonida-hero .leonida-hero-actions .leonida-hero-primary {
  min-height:54px;
  padding:.83rem 1.55rem;
  font-size:1.02rem;
  font-weight:800;
  letter-spacing:.005em;
  border:1px solid rgba(255,243,219,.92);
  border-radius:11px;
  background:linear-gradient(115deg,#ffe1b0 0%,#ffc2aa 100%);
  color:#2c1721;
  box-shadow:0 0 0 3px rgba(255,204,183,.12),0 10px 30px rgba(247,143,124,.28);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
body.leonida-theme[data-roam-page="index"] .leonida-hero .leonida-hero-actions .leonida-hero-primary:hover {
  filter:brightness(1.05);
  transform:translateY(-2px);
  box-shadow:0 0 0 4px rgba(255,209,190,.17),0 13px 34px rgba(247,143,124,.34);
}
body.leonida-theme[data-roam-page="index"] .leonida-hero .leonida-hero-actions .leonida-hero-primary:focus-visible {
  outline:3px solid #fff4d6;
  outline-offset:4px;
}
body.leonida-theme[data-roam-page="index"] .site-header nav>a[href="/gta-6-map"] {
  box-sizing:border-box;
  padding:7px 11px;
  border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);
  border-radius:10px;
  background:color-mix(in srgb,var(--accent) 13%,transparent);
  color:var(--accent);
  font-weight:800;
}
body.leonida-theme[data-roam-page="index"] .roam-entry-grid>a[href="/gta-6-map"] {
  background:linear-gradient(135deg,var(--panel) 25%,color-mix(in srgb,var(--accent) 10%,var(--panel)));
  border-color:color-mix(in srgb,var(--accent) 58%,var(--line));
  box-shadow:0 3px 22px #00000013,inset 0 1px 0 color-mix(in srgb,var(--accent) 8%,transparent);
}
body.leonida-theme[data-roam-page="index"] .roam-entry-grid>a[href="/gta-6-map"]>strong {color:var(--text);}
@media(max-width:480px) {
  body.leonida-theme[data-roam-page="index"] .site-header nav>a[href="/gta-6-map"] {padding-inline:9px;}
  body.leonida-theme[data-roam-page="index"] .leonida-hero .leonida-hero-actions .leonida-hero-primary {min-height:52px;}
}
@media(prefers-reduced-motion:reduce) {
  body.leonida-theme[data-roam-page="index"] .leonida-hero .leonida-hero-actions .leonida-hero-primary {transition:none;}
  body.leonida-theme[data-roam-page="index"] .leonida-hero .leonida-hero-actions .leonida-hero-primary:hover {transform:none;}
}
