/* The mobile menu unfolds from the masthead into a full-screen brand surface. */
.menu-dialog {
  position: fixed; inset: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  overflow-y: auto; overscroll-behavior: contain; background: #11151e; color: #f6f5f2;
}
.menu-dialog::backdrop { background: #10142155; backdrop-filter: none; }
html:has(.menu-dialog[open], .guide-dialog[open], .mobile-nav[open]) { overflow: hidden; }
.menu-surface {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100%;
  color: #f6f5f2; background: radial-gradient(ellipse at 50% 90%,#242a3c,transparent 60%),#11151e;
}
.menu-surface::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--pixel-paper); opacity: .75;
}
.menu-mast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));
}
.menu-mast a { display: inline-flex; min-height: 44px; align-items: center; }
.menu-mast img { display: block; width: min(36vw,164px); height: auto; }
.menu-close {
  width: 44px; height: 44px; display: grid; place-content: center; cursor: pointer; border: 1px solid #657085;
  background: #202633; color: #fff;
}
.menu-links {
  width: min(100% - 32px,32rem); margin: auto; padding: clamp(26px,6vh,65px) 0 clamp(75px,13vh,128px);
  display: grid; justify-items: center; text-align: center;
}
.menu-main { display: grid; justify-items: center; gap: clamp(8px,2vh,18px); }
.menu-main a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  color: #f6f5f2; font: 550 clamp(25px,7.45vw,45px)/1.1 var(--font-title); letter-spacing: -.055em;
  text-decoration: none; text-wrap: balance;
}
.menu-main a[aria-current]::before {
  content: ""; position: absolute; right: calc(100% + 7px); width: 5px; height: 5px;
  background: #ff792f; box-shadow: 4px -4px #ff792f;
}
.menu-utilities { display: flex; gap: 24px; margin-top: clamp(19px,4vh,38px); }
.menu-utilities a,.menu-more a,.menu-more summary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font: 550 15px/1.35 var(--font-ui); color: #dddff4;
}
.menu-surface a:focus-visible,.menu-surface button:focus-visible,.menu-more summary:focus-visible { outline: 2px solid #ff995f; outline-offset: 3px; }
.menu-surface a:hover,.menu-more summary:hover,.menu-surface a[aria-current] { color: #ffa269; }
.menu-more { width: min(100%,340px); border-top: 1px solid #50576b; margin-top: 8px; }
.menu-more summary { cursor: pointer; list-style: none; gap: 9px; font-size: 13px; }
.menu-more summary::-webkit-details-marker { display: none; }
.menu-more summary span { color: #ffa269; font-size: 21px; line-height: 1; }
.menu-more[open] summary span { transform: rotate(45deg); }
.menu-more > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.menu-more a { font-size: 14px; }
.menu-horizon {
  position: absolute; z-index: -1; inset: auto 0 0; height: clamp(38px,10vh,100px);
  overflow: hidden; pointer-events: none;
}
.menu-horizon::before,.menu-horizon::after {
  content: ""; position: absolute; inset: 0; background: #424963;
  clip-path: polygon(0 65%,9% 65%,9% 52%,15% 52%,15% 37%,21% 37%,21% 20%,27% 20%,27% 38%,33% 38%,33% 56%,41% 56%,41% 74%,52% 74%,52% 61%,60% 61%,60% 45%,68% 45%,68% 30%,74% 30%,74% 9%,80% 9%,80% 31%,86% 31%,86% 47%,94% 47%,94% 66%,100% 66%,100% 100%,0 100%);
}
.menu-horizon::after { background: #272d40; transform: translate(-8%,28%) scaleX(1.3); }
.menu-horizon i { width: 6px; height: 6px; background: #ff792f; position: absolute; left: 21%; top: 14%; }
.menu-horizon i:nth-child(2) { left: 66%; top: 28%; width: 4px; height: 4px; background: #aaaeca; }
.menu-horizon i:nth-child(3) { left: 88%; top: 8%; width: 3px; height: 3px; background: #aaaeca; }
@media (max-width:760px) {
  .mobile-nav[open] > .menu-surface { position: fixed; inset: 0; height: 100dvh; overflow: auto; z-index: 1; }
  .mobile-nav[open] > summary { position: fixed; z-index: 2; top: max(16px,env(safe-area-inset-top)); right: 20px; color: white; background: #242a3c; }
  html:has(.mobile-nav[open]) .site-head { z-index: 10; }
  html:has(.mobile-nav[open]) .guide-launch { visibility: hidden; }
}
@media (max-height:470px) {
  .menu-links { padding-block: 12px 38px; }
  .menu-main { gap: 2px; }
  .menu-main a { min-height: 40px; font-size: 27px; }
  .menu-utilities { margin-top: 8px; }
}

/* A single surface for the route picker, with a quiet list inside it. */
.guide-dialog { width: min(385px,calc(100vw - 24px)); border: 0; box-shadow: 0 12px 60px #11172740,0 0 0 1px #252a36; }
.guide-dialog::backdrop { background: #10142154; }
.guide-cap { padding: 8px 12px 8px 20px; }
.guide-step { padding: 20px; }
.guide-step h2 { margin-bottom: 15px; }
.guide-options { gap: 0; border-top: 1px solid #c5c7d0; }
.guide-options :is(a,button) { background: transparent; border: 0; border-bottom: 1px solid #d2d3da; padding: 11px 4px; min-height: 46px; }
.guide-options :is(a,button):is(:hover,:focus-visible) { background: #ebe9f3; }
.guide-options span { flex-shrink: 0; }
.guide-body { overflow: clip; }
.guide-progress { display: flex; align-items: center; gap: 7px; }
.guide-progress::before { content: ""; width: 14px; height: 4px; background: var(--brand-accent); box-shadow: 17px 0 #cdc9ce; margin-right: 17px; }
.guide-step:not([data-step="start"]) .guide-progress::before { box-shadow: 17px 0 var(--brand-accent); }

@keyframes panel-out { to { opacity: 0; transform: translateY(var(--exit-y,8px)); } }
@media (prefers-reduced-motion:no-preference) {
  .menu-dialog[open] { animation: menu-unfold 360ms var(--ease-settle) both; }
  .menu-dialog[open] .menu-main a { animation: menu-line 340ms var(--ease-settle) 65ms backwards; }
  .menu-dialog[open] .menu-main a:nth-child(2) { animation-delay: 100ms; }
  .menu-dialog[open] .menu-main a:nth-child(3) { animation-delay: 135ms; }
  .menu-dialog[open] .menu-horizon { animation: horizon-rise 420ms var(--ease-settle) both; }
  .guide-dialog[open]::backdrop { animation: veil-in 180ms ease-out both; }
  .guide-body { --slide: 9px; }
  .guide-body[data-direction="back"] { --slide: -9px; }
  .guide-step:not([hidden]),.menu-more[open] > div,.guide-follow:not([hidden]) { animation: step-in 220ms var(--ease-settle) both; }
  :is(.menu-dialog,.guide-dialog)[open][data-closing] { animation: panel-out 145ms ease-in both; }
  .guide-dialog[data-closing]::backdrop { animation: veil-in 145ms ease-in reverse both; }
  .menu-more summary span,.guide-options span { transition: transform 170ms var(--ease-settle); }
  .guide-options :is(a,button) { transition: background-color 150ms ease; }
  .guide-options :is(a,button):hover span { transform: translateX(3px); }
  .guide-launch:active,.menu-close:active { transform: scale(.96); }
  @keyframes menu-unfold { from { clip-path: polygon(0 0,100% 0,100% 0,70% 0,70% 0,37% 0,37% 0,0 0); } to { clip-path: polygon(0 0,100% 0,100% 100%,70% 100%,70% 120%,37% 120%,37% 140%,0 140%); } }
  @keyframes menu-line { from { opacity: 0; transform: translateY(13px); } }
  @keyframes horizon-rise { from { transform: translateY(32px); } }
  @keyframes veil-in { from { opacity: 0; } }
  @keyframes step-in { from { opacity: .18; transform: translateX(var(--slide,0)); } }
}
@media print { .menu-dialog,.mobile-nav { display: none !important; } }

.hero h1 { max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.hero-offers {
  --offer-shadow: var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 51rem);
  margin: clamp(22px,3vw,44px) auto clamp(32px,5vw,76px); text-align: center;
  scroll-margin-top: 56px;
}
.hero-offers a {
  display: grid; align-content: start; justify-items: center; gap: 10px; min-width: 0;
  padding: 10px 6px; line-height: 1.28; font-size: clamp(.9375rem,1.5vw,1.1875rem); font-weight: 600;
}
.hero-offers a + a { border-inline-start: 1px solid var(--line); }
.hero-offers .offer-pixel { display: block; width: clamp(66px,10vw,144px); height: auto; }
.hero-offers .offer-label { max-width: 100%; min-width: 0; text-wrap: balance; hyphens: auto; overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  .hero-offers a { grid-row: span 3; grid-template-rows: subgrid; }
}
.hero-offers .icon { width: 16px; height: 16px; color: var(--signal-text); }
.hero-offers a:is(:hover,:focus-visible) .offer-label { text-decoration: underline; text-underline-offset: 4px; }
.hero-offers a:focus-visible { outline: 3px solid var(--focus-ring, var(--signal-text)); outline-offset: -2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-offers .offer-pixel { transition: transform 180ms var(--ease-settle); }
  .hero-offers a:hover .offer-pixel { transform: translateY(-3px); }
}
@media (max-width: 560px) {
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(38px,9.5vw,52px); }
  .hero-offers { margin-block: 19px 30px; }
  .hero-offers a { gap: 6px; padding: 4px 3px; }
  .hero-offers .offer-label { align-self: center; }
}
@media (max-width: 18em) {
  .hero-offers { grid-template-columns: minmax(0,1fr); }
  .hero-offers a {
    grid-row: auto; grid-template: auto / 44px minmax(0,1fr) 44px;
    align-items: center; min-height: 48px;
  }
  .hero-offers a + a { border-inline-start: 0; border-top: 1px solid var(--line); }
  .hero-offers .offer-pixel { width: 44px; }
}
.page-contents summary,.topic-links summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 600; }
.topic-links { margin-top: 20px; border-top: 1px solid var(--line); }
.topic-links > a,.topic-links details a { display: flex; justify-content: space-between; padding: 10px 2px; min-height: 44px; border-bottom: 1px solid var(--line); }
.topic-links details a { padding-inline-start: 16px; }
.topic-links summary { font-size: 14px; }
.direct-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; padding-block: 30px var(--section-space); }
.direct-contact h2 { font-size: clamp(23px,3.4vw,37px); }
.direct-contact p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 7px; border-top: 1px solid var(--line); }
.direct-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.direct-contact strong { font-size: 14px; }
@media (max-width:760px) {
  .direct-contact { grid-template-columns: 1fr; }
  .direct-contact p { align-items: start; flex-direction: column; gap: 0; }
  .toc:has(.page-contents) { display: block; }
  .page-contents a { display: block; padding-block: 10px; }
}
.prose .reading-links { list-style: none; margin-block: 18px 24px; padding: 0; border-top: 1px solid var(--line); }
.prose .reading-links li { margin: 0; border-bottom: 1px solid var(--line); }
.prose .reading-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 9px 2px; text-decoration: none; line-height: 1.4;
}
.prose .reading-links a::after { content: "›" / ""; color: var(--signal-text); }
.prose .reading-links a:is(:hover,:focus-visible) { text-decoration: underline; }

.appearance-picker { display: none; }
@media screen {
  :root[data-appearance]:not([data-appearance-ready]) .appearance-picker { visibility: hidden; }
  :root[data-appearance] .appearance-picker {
    position: relative; display: inline-flex; align-items: center; color: inherit;
  }
}
.appearance-label { margin-inline-end: 10px; font-size: 13px; }
.appearance-field { position: relative; display: inline-flex; align-items: center; }
.appearance-glyph {
  position: absolute; left: 9px; width: 14px; height: 14px; pointer-events: none;
  border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(90deg,currentColor 50%,transparent 50%);
}
.appearance-picker select {
  appearance: none; cursor: pointer; font: 550 13px/1.2 var(--font-ui); color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  min-height: 44px; padding: 0 18px 0 30px;
}
.appearance-field::after {
  content: ""; position: absolute; right: 7px; width: 5px; height: 5px; margin-top: -3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.appearance-picker select:hover { border-color: currentColor; }
.menu-links .appearance-picker { margin-top: 12px; color: #e1e3ed; color-scheme: dark; }
.menu-links .appearance-picker select { border-color: #70798e; }
.appearance-picker option { color: CanvasText; background: Canvas; }
@media (min-width:761px) and (max-width:1100px) {
  .head-row .main-nav { gap: 13px; }
  .head-row .head-actions { gap: 7px; }
}
@media (min-width:761px) and (max-width:900px) {
  .head-row { width: calc(100% - 24px); column-gap: 10px; }
  .head-row > .logo img { width: 144px; }
  .head-actions .btn { padding-inline: 10px; }
}
