/* Home-derived presentation shared by every retained page. Feature controllers
   and table-specific column/card layouts remain owned by their existing assets. */
:root {
  --omr-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --omr-heading: Georgia, "Times New Roman", serif;
  --omr-wide: min(1280px, calc(100% - 96px));
  --omr-read: 740px;
}
body[data-style-system] {
  --body: var(--omr-body); --display: var(--omr-heading); --wide: var(--omr-wide);
  font-family: var(--omr-body); font-size: 16px; line-height: 1.65;
  background: var(--paper); color: var(--ink);
}
body[data-style-system] .shell { width:var(--omr-wide); }
body[data-style-system] .skip { position:fixed;top:-100px;left:16px;z-index:99;background:var(--surface);padding:14px; }
body[data-style-system] .skip:focus { top:12px; }
body[data-style-system] :is(main, section, article, aside, figure, .masthead-tools) { min-width: 0; }
body[data-style-system] > .masthead {
  position: relative; width: var(--omr-wide); height: 84px; min-height: 84px;
  margin: 0 auto; padding: 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: nowrap; gap: 24px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
}
body[data-style-system] .masthead-tools { display: contents; }
body[data-style-system] .masthead :is(.nav,.site-nav) {
  display: flex; align-items: center; gap: 16px; padding: 0;
  font: 550 14px/1.4 var(--omr-body); letter-spacing: 0; text-transform: none;
  color: var(--ink); background: transparent; border: 0;
}
body[data-style-system] .masthead :is(.nav,.site-nav) a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 10px 0;
  border: 0; text-decoration: none; color: var(--ink);
}
body[data-style-system] .masthead :is(.nav,.site-nav) a:is(:hover,[aria-current=page]) {
  color: var(--interactive); text-decoration: underline; text-underline-offset: .35em;
}
body[data-style-system] .masthead .brand { max-width: calc(100% - 76px); }
body[data-style-system] .nav-icon { display: none; }
body[data-style-system] :is(.menu-toggle,.nav-toggle) {
  display: none; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line);
  border-radius: 24px; background: var(--surface); color: var(--ink);
  font: 500 12px/1.3 var(--omr-body); text-transform: none; letter-spacing: 0;
}
body[data-style-system] .masthead .site-motion-controls {
  width: auto; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: nowrap;
}
body[data-style-system] .site-motion-controls button { min-height: 44px; padding: 8px 12px; }
body[data-style-system] :is(.page-head,.reader-page-head,.article-head,.intro) {
  padding-block: 28px 24px;
}
body[data-style-system] :is(.page-head,.reader-page-head,.article-head,.article-body,.hero-copy,.intro) h1 {
  font: 700 clamp(2rem,3.3vw,3.1rem)/1.15 var(--omr-heading);
  letter-spacing: -.025em; max-width: 26ch; margin: .5rem 0 1rem;
}
body[data-style-system] .spectrum {
  background: none; -webkit-text-fill-color: currentColor; color: inherit;
}
body[data-style-system] :is(.prose,.article-body,.guide,.tool-article-body) {
  font-family: var(--omr-body); font-size: 18px; line-height: 1.8; letter-spacing: 0;
}
body[data-style-system] :is(.prose,.article-body,.guide,.tool-article-body) :is(p,li) {
  font: inherit; color: var(--ink);
}
body[data-style-system] :is(.prose,.article-body,.guide,.tool-article-body) h2 {
  font: 700 1.7rem/1.25 var(--omr-heading); letter-spacing: -.015em; margin: 2.5rem 0 1rem;
}
body[data-style-system] :is(.prose,.article-body,.guide,.tool-article-body) h3 {
  font: 700 1.2rem/1.35 var(--omr-heading); margin: 1.5rem 0 .7rem;
}
body[data-style-system] :is(.prose,.article-body,.tool-article-body) a {
  font-size: inherit; color: var(--interactive); overflow-wrap: anywhere;
}
body[data-style-system] :is(.page-deck,.article-intro>p,.lede) {
  max-width: 65ch; font-size: 1.1rem; line-height: 1.65; letter-spacing: 0;
}
body[data-style-system] .reading-layout {
  grid-template-columns: 170px minmax(0,var(--omr-read)); gap: 40px;
}
body[data-style-system] .reader-fe .reading-layout { display: block; }
body[data-style-system] > main.article-shell {
  width: var(--omr-wide); max-width: 1120px; margin: 32px auto 64px;
  grid-template-columns: minmax(0,var(--omr-read)) minmax(180px,260px); gap: 40px;
  border: 0; background: transparent;
}
body[data-style-system] .article-body { padding: 0; border: 0; background: transparent; }
body[data-style-system] :is(.quick-answer,.review-note,.note-box,.research,.explorer) {
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: none; background: var(--surface-raised); color: var(--ink);
}
body[data-style-system] .side-nav {
  padding: 16px 0 16px 22px; border: 0; border-left: 1px solid var(--line);
  box-shadow: none; background: transparent; color: var(--ink);
}
body[data-style-system] .side-nav h2 { font: 700 1.2rem/1.3 var(--omr-heading); color: var(--ink); }
body[data-style-system] .side-nav a { font: 400 14px/1.5 var(--omr-body); color: var(--ink); min-height: 44px; }
body[data-style-system] .guide-context {
  width: var(--omr-wide); background: transparent; font: 500 12px/1.5 var(--omr-body);
  letter-spacing: 0; text-transform: none; flex-wrap: wrap;
}
body[data-style-system] .legacy-guide-media { border: 0; background: transparent; }
body[data-style-system] :is(.official-screenshot,.legacy-guide-media,.guide-figure,.official-media) img {
  display: block; width: 100%; height: auto; border-radius: 4px;
}
body[data-style-system] :is(.official-screenshot,.legacy-guide-media,.guide-figure,.official-media) figcaption {
  padding: 10px 0 0; background: transparent; border: 0;
  color: var(--muted); font: 400 12px/1.6 var(--omr-body); letter-spacing: 0; text-transform: none;
}
body[data-style-system] :is(.data-table,.database-table,table) { font: 400 15px/1.65 var(--omr-body); }
body[data-style-system] :is(.data-row,.guide-row,.database-row,tr) {
  background: transparent; color: var(--ink); border-color: var(--line); border-radius: 0;
}
body[data-style-system] :is(.data-heading,.guide-heading,thead) {
  background: var(--surface-raised); color: var(--ink); font: 600 13px/1.5 var(--omr-body);
  text-transform: none; letter-spacing: 0;
}
body[data-style-system] :is(th,td) { border-color: var(--line); }
body[data-style-system] .legacy-game-hub { background: var(--paper); }
body[data-style-system] .hero-section { padding: 32px 0 24px; gap: 32px; }
body[data-style-system] :is(.hero-copy,.section-block,.guide-card,.radar-card,.review-card) {
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
body[data-style-system] .hero-copy { padding: 0; }
body[data-style-system] .hero-copy h1::after { display: none; }
body[data-style-system] .section-block { padding: 28px 0; border-top: 1px solid var(--line); }
body[data-style-system] :is(.section-block,.guide-card,.radar-card,.tool-row) h2 {
  font: 700 clamp(1.6rem,2.2vw,2.2rem)/1.2 var(--omr-heading); letter-spacing: -.02em;
}
body[data-style-system] .guide-card { padding: 20px 0; border-top: 1px solid var(--line); }
body[data-style-system] .radar-card .cover-frame { border: 0; border-radius: 4px; }
body[data-style-system] :is(.button,.button.primary,.pill,.read-start) {
  min-height: 44px; border: 1px solid var(--line); border-radius: 24px;
  font: 550 14px/1.4 var(--omr-body); letter-spacing: 0; text-transform: none; box-shadow: none;
}
body[data-style-system] :is(.button.primary,.pill) {
  background: var(--ink); color: var(--on-solid); border-color: var(--ink);
}
body[data-style-system] :is(.button.primary,.pill):hover {
  background: var(--interactive); color: var(--on-solid); border-color: var(--interactive);
}
body[data-style-system] .tool-row { gap: 28px; padding: 32px 0; }
body[data-style-system] .tool-sign { border-radius: 8px; }
body[data-style-system] .archive-group summary { font: 700 1.4rem/1.3 var(--omr-heading); }
body[data-style-system] .site-footer {
  width: var(--omr-wide); margin-inline: auto; border-top: 1px solid var(--line);
  padding: 30px 0 38px; font: 400 12px/1.6 var(--omr-body); color: var(--muted);
}
body[data-style-system] .site-footer nav { background: transparent; }
body[data-style-system] .site-footer a { font: inherit; text-transform: none; letter-spacing: 0; }
body[data-style-system] .timing-content { max-width: 1060px; padding: 28px 0; width: var(--omr-wide); }
body[data-style-system] .timing-content > header { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
@media(max-width:1040px) {
  :root { --omr-wide: calc(100% - 56px); }
  body[data-style-system] :is(.menu-toggle,.nav-toggle) { display: block; margin-left: auto; }
  body[data-style-system] .masthead :is(.nav,.site-nav) {
    display: none; position: absolute; top: 84px; inset-inline: 0; z-index: 20;
    padding: 16px 20px; flex-wrap: wrap; background: var(--surface);
    border-bottom: 1px solid var(--line); gap: 8px 16px;
  }
  body[data-style-system] .masthead .nav.open,
  body[data-style-system] .masthead .site-nav:not([hidden]) { display: flex; }
  body[data-style-system] .masthead :is(.nav,.site-nav) a { padding: 10px 4px; }
  body[data-style-system] .masthead .theme-choice { flex-basis: 100%; padding: 8px 4px; }
  body[data-style-system] .masthead .theme-choice > span { display: inline; font-size: 12px; }
  body[data-style-system] .masthead .theme-choice select { margin-left: auto; }
  body[data-style-system] .masthead .site-motion-controls { flex-wrap: wrap; padding: 4px; }
  body[data-style-system] > main.article-shell { grid-template-columns: minmax(0,1fr); max-width: var(--omr-read); }
  body[data-style-system] .side-nav { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  body[data-style-system] .reading-layout { grid-template-columns: 140px minmax(0,var(--omr-read)); gap: 28px; }
}
@media(max-width:760px) {
  :root { --omr-wide: calc(100% - 40px); }
  body[data-style-system] > .masthead { height: 72px; min-height: 72px; gap: 12px; }
  body[data-style-system] .masthead :is(.nav,.site-nav) { top: 72px; }
  body[data-style-system] :is(.page-head,.reader-page-head,.article-head,.intro) { padding-block: 20px 16px; }
  body[data-style-system] :is(.page-head,.reader-page-head,.article-head,.article-body,.hero-copy,.intro) h1 {
    font-size: 1.85rem; line-height: 1.15; max-width: 100%;
  }
  body[data-style-system] :is(.prose,.article-body,.guide,.tool-article-body) { font-size: 16px; line-height: 1.75; }
  body[data-style-system] :is(.page-deck,.article-intro>p,.lede) { font-size: 1rem; }
  body[data-style-system] .reading-layout { display: block; }
  body[data-style-system] .contents { position: static; margin-bottom: 24px; }
  body[data-style-system] .hero-section { grid-template-columns: minmax(0,1fr); gap: 24px; padding-top: 24px; }
  body[data-style-system] :is(.quick-answer,.review-note,.note-box,.research,.explorer) { padding: 16px; }
  body[data-style-system] .data-table .data-row span[data-label]:not(:first-child)::before {
    content: attr(data-label); color: var(--muted); font: 600 12px/1.5 var(--omr-body); text-transform: none;
  }
  body[data-style-system] .tool-row { grid-template-columns: 24px minmax(0,1fr); gap: 16px; }
  body[data-style-system] .site-footer { flex-wrap: wrap; }
  body[data-style-system] .site-footer nav { flex-wrap: wrap; gap: 12px 20px; }
}

:root[data-theme="light"] { --paper:#fafafa; --surface:#fff; --ink:#18191c; --muted:#606169; --line:#dcdde0; --interactive:#5b41b7; --on-solid:#fff; }
:root[data-theme="dark"] { --paper:#141518; --surface:#1c1e23; --ink:#f2f2f5; --muted:#b7b8c1; --line:#41434d; --interactive:#bdadff; --on-solid:#17181c; }
body[data-style-system] :is(.kicker,.eyebrow,.hero-copy .eyebrow,.section-block>.eyebrow,.evidence-label,.guide-context) { color:var(--muted); font:600 12px/1.5 var(--omr-body); letter-spacing:.07em; }
body[data-style-system] .guide-context { letter-spacing:0; }
body[data-style-system] :is(.button.primary,.pill) { border-radius:24px; box-shadow:none; }
body[data-style-system] :is(.next-head,.article-hero,.tool-hero) h1 { font:700 clamp(2rem,3.3vw,3.1rem)/1.15 var(--omr-heading); letter-spacing:-.025em; }
body[data-style-system] :is(.next-prose,.pilot-prose) { font:400 18px/1.8 var(--omr-body); }
body[data-style-system] :is(.next-prose,.pilot-prose) h2 { font:700 1.7rem/1.25 var(--omr-heading); letter-spacing:-.015em; }
@media(max-width:760px) {
  body[data-style-system] :is(.next-head,.article-hero,.tool-hero) h1 { font-size:1.85rem; }
  body[data-style-system] :is(.next-prose,.pilot-prose) { font-size:16px; }
}
body[data-style-system] .article-body > h1::after { display:none; }
body[data-style-system] .article-body > .eyebrow { color:var(--muted); font:600 12px/1.5 var(--omr-body); letter-spacing:.07em; }
body[data-style-system] .meta-row span { border:0; padding:0; background:transparent; color:var(--muted); font:400 12px/1.6 var(--omr-body); }
body[data-style-system] .data-row span a + a { margin-inline-start:.5em; }
body[data-style-system] .timing-content h2 { font:700 1.5rem/1.3 var(--omr-heading); }

/* Keep the homepage CTA legible through its older reader-specific cascade. */
html[data-theme] body[data-style-system] a.pill { background:var(--ink);color:var(--on-solid);border-color:var(--ink); }
html[data-theme] body[data-style-system] a.pill:hover { background:var(--interactive);color:var(--on-solid);border-color:var(--interactive); }

/* Reference rows must not inherit the image-led guide index card geometry. */
body[data-style-system] :is(.guide-table,.database-table) :is(.guide-row,.database-row) { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:0;padding:14px;gap:12px; }
body[data-style-system] :is(.guide-table,.database-table) :is(.guide-row,.database-row):has(>span:nth-child(3):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
body[data-style-system] :is(.guide-table,.database-table) :is(.guide-row,.database-row):has(>span:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:760px) {
 body[data-style-system] :is(.guide-table,.database-table) :is(.guide-row,.database-row) { grid-template-columns:1fr!important;gap:8px; }
 body[data-style-system] :is(.guide-heading,.database-heading) { display:none!important; }
 body[data-style-system] :is(.guide-table,.database-table) span[data-label]:not(:first-child)::before { display:block;content:attr(data-label);color:var(--muted);font:600 12px/1.5 var(--omr-body); }
}
body[data-style-system] .guide-table .guide-heading,
body[data-style-system] .database-table .database-heading,
body[data-style-system] .data-table .data-heading { background:var(--surface-raised);color:var(--ink); }
body[data-style-system] .guide-table .guide-heading span,
body[data-style-system] .database-table .database-heading span { color:var(--ink); }

/* No archive groups can be expanded while the search has no matches. */
body[data-style-system] .archive-controls [data-expand]:disabled { color: var(--muted); cursor: default; text-decoration: none; }
