/* Shared readability and interaction rules for the nine Lumi page templates. */
:root {
  --lumi-muted: #666670;
  --lumi-focus: #5142c6;
  --lumi-menu-surface: #fff;
  --lumi-display-muted: #756b96;
  scroll-padding-block: 108px 100px;
}
html[data-theme="dark"] {
  --lumi-muted: #b6b6c2;
  --lumi-focus: #b9b3ff;
  --lumi-menu-surface: #171719;
  --lumi-display-muted: #b3aacb;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:root .lumi-meta { font-size: .875rem !important; line-height: 1.5; }
html:root .lumi-text { font-size: 1rem !important; line-height: 1.6; }
html:root .lumi-copy { font-size: 1.0625rem !important; line-height: 1.7 !important; }
html:root .lumi-muted { color: var(--lumi-muted) !important; }
html:root .lumi-display-muted { color: var(--lumi-display-muted) !important; }
html:root .lumi-on-dark { color: rgba(255,255,255,.78) !important; }
html:root .lumi-eyebrow { letter-spacing: .08em !important; }
.shell, .om-shell { font-size: 16px; line-height: 1.6; }
:is(.shell, .om-shell) :is(h1,h2,h3,p,li) { overflow-wrap: anywhere; }
:is(.shell, .om-shell) :is(h1,h2,h3) { text-wrap: balance; }
:is(.shell, .om-shell) :is(button,input,select,textarea) { font-family: inherit; }
:is(.shell, .om-shell) :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid var(--lumi-focus) !important;
  outline-offset: 4px;
}
:is(.shell, .om-shell) :is(button,a,input) { scroll-margin-block: 108px 100px; }
:is(.shell, .om-shell) > header { margin-top: 0 !important; }
:root .nav-desk { font-size: 1rem !important; }
:root .nav-desk a { min-height: 44px; display: inline-flex; align-items: center; }
html:root .nav-desk a:not([aria-current="page"]) { color: var(--lumi-muted) !important; }
:root .nav-desk a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
:root .deck-cap { font-size: 1rem !important; line-height: 1.5; overflow-wrap: anywhere; }
:root .deck-keys { font-size: .875rem !important; line-height: 1.6 !important; }
:root .deck-grid > a { min-width: 0; }
:root .deck-grid .deck-cap > span { text-transform: none !important; letter-spacing: normal !important; }
.lumi-search input { min-height: 54px; }
.lumi-search input::placeholder { color: var(--lumi-muted); opacity: 1; }
.lumi-reset { margin-top: 20px; padding: 12px 24px; min-height: 48px; font: inherit; border: 1px solid var(--lumi-muted); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
:root .filter-rail { flex-wrap: wrap !important; overflow: visible !important; margin-inline: 0 !important; padding: 5px !important; gap: 10px !important; }
:root .filter-rail .pill-f { max-width: 100%; white-space: normal; text-align: center; }
:root :is(.pill-f,.pill-p) { min-height: 48px !important; }
:root .sign-rail { padding-block: 5px 12px !important; scrollbar-width: thin; }
:root .sign-rail .pill-f { font-size: 1rem; }
:root .sign-rail::-webkit-scrollbar { display: block; height: 5px; }
:root .sign-rail::-webkit-scrollbar-thumb { background: var(--lumi-muted); border-radius: 8px; }
:root .period-rail { display: flex; flex-wrap: wrap; gap: 4px; border-radius: 24px; }
:root .period-rail .pill-p { flex: 1 1 auto; white-space: normal; }
:root .menu-drop[aria-hidden="true"],
:root .lumi-lang-panel[aria-hidden="true"] { visibility: hidden; pointer-events: none !important; }
:root .lumi-lang-panel { max-width: calc(100vw - 44px); overscroll-behavior: contain; }
:root :is(.shell,.om-shell) > footer { overflow: visible !important; transform: none !important; }
:root footer a { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
:root .lumi-footer-top { display: grid !important; grid-template-columns: 1fr 1.25fr auto; align-items: start !important; gap: 28px !important; }
:root .lumi-footer-top > * { min-width: 0; }
:root .lumi-footer-top > div { display: flex; flex-wrap: wrap; }
:root .lumi-footer-bottom { flex-wrap: wrap; gap: 16px !important; }
.lumi-faq { border-top: 1px solid #85858e44; }
.lumi-faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; min-height: 60px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 18px; line-height: 1.5; text-align: left; cursor: pointer; }
.lumi-faq-question > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.lumi-faq-question > span:last-child { flex: none; margin-inline: 8px; }
.lumi-faq-answer { padding-bottom: 20px; }
.lumi-faq-answer[hidden] { display: none; }
.lumi-faq-answer p { margin: 0; max-width: 60ch; }
@media (max-width: 1100px) {
  :root .nav-desk, :root .nav-cta { display: none !important; }
  :root .nav-burger { display: grid !important; }
  :root .menu-drop {
    position: fixed !important; top: calc(96px + env(safe-area-inset-top)) !important;
    left: 12px; right: 12px; z-index: 90;
    border-radius: 24px; background: var(--lumi-menu-surface);
    overflow-y: auto !important; overscroll-behavior: contain;
  }
  :root .menu-drop[aria-hidden="false"] { max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important; }
  :root .menu-drop > div { margin-top: 0 !important; }
  :root :is(.shell,.om-shell):has(.menu-drop[aria-hidden="false"]) .m-bar { visibility: hidden; }
  :root .menu-drop a { overflow-wrap: anywhere; }
  :root .menu-drop > div > div:last-child { flex-wrap: wrap; justify-content: flex-start !important; gap: 8px 18px !important; }
  :root .lumi-footer-top { grid-template-columns: 1fr 1fr; }
  :root .lumi-footer-top > div { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  html:root .lumi-copy { font-size: 1rem !important; }
  :root :is(.om-shell, .om-shell > main) > section:not(.om-hero) { padding-inline: 18px !important; }
  :root :is(.om-shell, .om-shell > main) > section[style*="background"] { border-radius: 28px !important; }
  :root .deck-grid { gap: 18px 12px !important; }
  :root .deck-grid > a { padding-inline: 0 !important; }
  :root .lumi-footer-top { grid-template-columns: 1fr; gap: 20px !important; }
  :root .lumi-footer-top > div { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
  :root .lumi-footer-top > div > a { padding: 14px 8px !important; justify-content: center; }
  :root .lumi-footer-bottom { position: relative; justify-content: flex-start !important; }
  :root .lumi-footer-bottom > span:first-child { flex-basis: 100%; }
  :root .lumi-lang-panel { position: fixed !important; left: 22px; right: 22px !important; bottom: calc(96px + env(safe-area-inset-bottom)) !important; width: auto !important; z-index: 100 !important; }
  :root .lumi-lang-panel[aria-hidden="false"] { max-height: min(360px, calc(100dvh - 208px - env(safe-area-inset-bottom))) !important; }
  :root .lumi-language { position: static !important; }
  :root :is(.shell,.om-shell) { padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important; }
  :root .legal > nav { position: static !important; }
  :root .period-rail { margin-inline: 0 !important; max-width: 100%; padding-inline: 5px !important; }
  :root .tag-head > span:first-child { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  :root [data-reveal] { opacity: 1 !important; transform: none !important; }
  :root :is(.shell,.om-shell) > :is(section,footer) { transform: none !important; }
}
