:root {
  color-scheme: light;
  --page: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --text: #171a1f;
  --muted: #646a73;
  --border: #d8d9d5;
  --border-strong: #aeb1ad;
  --accent: #24465f;
  --accent-hover: #183348;
  --accent-soft: #e8edf0;
  --success: #216648;
  --warning: #785914;
  --danger: #8b2e2e;
  --display: "Aptos Display", "Segoe UI", system-ui, sans-serif;
  --sans: "Aptos", "Segoe UI", system-ui, sans-serif;
  --content: 1240px;
  --reading: 780px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
button,
input,
textarea,
select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
#mainContent:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .6rem .8rem;
  color: #fff;
  background: var(--accent);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 1.5rem;
  padding: .7rem max(1rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(245, 245, 242, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 2px; }
.brand > span { display: grid; line-height: 1.05; }
.brand strong { font-family: var(--display); font-size: 1.08rem; letter-spacing: -.025em; }
.brand small { margin-top: .18rem; color: var(--muted); font-size: .7rem; }
.site-header nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}
.site-header nav a {
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { border-color: var(--text); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .45rem; }

.search-trigger,
.icon-button,
.button,
.section-search {
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: .55rem .85rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.search-trigger { display: inline-flex; align-items: center; gap: .55rem; }
.search-trigger kbd {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .05rem .3rem;
  color: var(--muted);
  background: var(--page);
  font-size: .66rem;
}
.icon-button { width: 42px; padding: 0; }
.search-trigger:hover,
.icon-button:hover,
.button:hover,
.section-search:hover { border-color: var(--text); background: var(--surface-soft); }
.button--primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.button--primary:hover { border-color: var(--accent-hover); color: #fff; background: var(--accent-hover); }

main {
  width: min(var(--content), calc(100% - 2rem));
  min-height: 68vh;
  margin: 0 auto;
}
.page-loader {
  display: grid;
  min-height: 56vh;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--muted);
}
.page-loader img {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  animation: loader-pulse 1.4s ease-in-out infinite;
}
@keyframes loader-pulse {
  50% { opacity: .45; transform: scale(.96); }
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.help-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 520px;
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.help-hero__orb { display: none; }
.help-hero .hero-copy { min-width: 0; }
.help-hero h1 {
  max-width: 12ch;
  margin: .75rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(3.1rem, 7.2vw, 6.6rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .92;
}
.help-hero .hero-copy > p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  max-width: 720px;
  margin-top: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: .4rem;
  background: var(--surface);
}
.hero-search__icon { padding-left: .45rem; color: var(--muted); }
.hero-search input {
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: .78rem;
}
.hero-suggestions a { color: var(--text); text-underline-offset: .2rem; }

.help-hero__preview {
  position: relative;
  min-width: 0;
  padding: 1rem 0 2.5rem;
}
.preview-window {
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--surface);
}
.preview-window__top {
  display: flex;
  height: 38px;
  align-items: center;
  gap: .35rem;
  padding: 0 .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .68rem;
}
.preview-window__top i {
  width: 5px;
  height: 5px;
  background: var(--border-strong);
}
.preview-window__top span { margin-left: auto; }
.preview-window__body { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 260px; }
.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
  background: var(--surface-soft);
}
.preview-sidebar b,
.preview-sidebar span { display: block; height: 6px; background: var(--border-strong); }
.preview-sidebar b { height: 22px; background: var(--accent); }
.preview-content { display: grid; align-content: center; gap: .75rem; padding: clamp(1rem, 4vw, 2rem); }
.preview-content > strong { font-size: 1.25rem; }
.preview-chip {
  width: max-content;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.preview-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: .8rem 0;
}
.preview-action > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--accent);
  font-style: normal;
}
.preview-action span { display: grid; min-width: 0; }
.preview-action small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.preview-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: .55rem .7rem;
  background: var(--page);
  font-size: .74rem;
}
.preview-note b { color: var(--accent); }
.preview-note--top { top: 1rem; right: 1rem; }
.preview-note--bottom { right: 1rem; bottom: 1rem; }
.preview-note i { font-style: normal; }

.role-strip {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.role-strip > span,
.role-strip a,
.role-strip button {
  flex: 0 0 auto;
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: .95rem 1.1rem;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  white-space: nowrap;
}
.role-strip > span { padding-left: 0; color: var(--text); font-weight: 800; }
.role-strip a:hover { color: var(--text); background: var(--surface); }
.role-strip button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0 0 0 auto;
  border-left: 1px solid var(--border);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.mobile-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}
.mobile-showcase::before { display: none; }
.mobile-showcase h2 {
  max-width: 14ch;
  margin: .7rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  letter-spacing: -.055em;
  line-height: .96;
}
.mobile-showcase p { max-width: 58ch; color: var(--muted); }
.mobile-showcase__benefits {
  display: grid;
  gap: .45rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.mobile-showcase__benefits li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .5rem; }
.mobile-showcase__benefits span { color: var(--success); font-weight: 800; }
.mobile-showcase__links { display: grid; gap: .35rem; margin-top: 1.25rem; }
.mobile-showcase__links a { color: var(--muted); font-size: .78rem; text-underline-offset: .2rem; }
.mobile-showcase__screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-items: end;
}
.phone-shot {
  position: static;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 4px;
  background: var(--page);
  transform: none;
}
.phone-shot img { width: 100%; border-radius: 0; }

.section-block { padding-top: clamp(4rem, 8vw, 8rem); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  max-width: 18ch;
  margin: .5rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .95;
}
.section-heading p { max-width: 60ch; margin: .75rem 0 0; color: var(--muted); }
.section-search { flex: 0 0 auto; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.category-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
  min-height: 360px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
}
.category-card::after { display: none; }
.category-card__head { display: grid; gap: 1rem; align-items: start; }
.category-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
}
.category-card h2,
.category-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.category-card p { margin: .4rem 0 0; color: var(--muted); font-size: .86rem; }
.article-links { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.article-links a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid var(--border);
  padding: .55rem 0;
  background: transparent;
  font-size: .82rem;
  text-decoration: none;
}
.article-links a::after { content: "→"; color: var(--accent); }
.article-links a:hover { color: var(--accent); background: transparent; }
.text-link { margin-top: auto; color: var(--accent); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2rem; }

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.editorial-card {
  display: grid;
  min-width: 0;
  min-height: 300px;
  align-content: start;
  gap: 1rem;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.editorial-card::before { display: none; }
.editorial-card:hover { background: var(--surface-soft); }
.editorial-card__index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: .7rem;
}
.editorial-card__category {
  width: max-content;
  max-width: 100%;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.editorial-card > strong { max-width: 20ch; font-size: 1.3rem; line-height: 1.25; }
.editorial-card__summary { color: var(--muted); font-size: .84rem; }
.editorial-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.editorial-card__footer small { color: var(--muted); }

.guided-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin: clamp(4rem, 9vw, 9rem) 0 0;
  border-radius: 0;
  padding: clamp(2rem, 6vw, 5rem);
  color: #fff;
  background: #1c252c;
}
.guided-cta .eyebrow { color: #bacbd7; }
.guided-cta h2 {
  max-width: 13ch;
  margin: .75rem 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -.055em;
  line-height: .94;
}
.guided-cta p { max-width: 58ch; margin: 0; color: #c0c7cc; }
.guided-cta > .button { align-self: center; border-color: #fff; background: transparent; }
.guided-cta > .button:hover { color: var(--text); background: #fff; }
.guided-cta__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  border-top: 1px solid #53606a;
}
.guided-cta__steps span { display: flex; gap: .65rem; padding: 1rem 1rem 0 0; color: #d9dee1; font-size: .82rem; }
.guided-cta__steps b { color: #9fb4c2; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 1rem; color: var(--muted); font-size: .78rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .2rem; }
.breadcrumb span::before { content: "/"; margin-right: .45rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-page { min-width: 0; padding: clamp(2rem, 6vw, 5rem) 0; }
.article-page > header { padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-page h1 {
  max-width: 17ch;
  margin: .8rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6.5vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: .94;
}
.article-page .lead { max-width: 64ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.2rem; color: var(--muted); font-size: .76rem; }
.article-meta span { border-left: 1px solid var(--border-strong); padding-left: .65rem; }
.article-body { max-width: var(--reading); padding-top: 2rem; }
.article-body h2 { margin: 2.8rem 0 .7rem; font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.12; scroll-margin-top: 90px; }
.article-body h3 { margin: 2rem 0 .5rem; font-size: 1.3rem; scroll-margin-top: 90px; }
.article-body p,
.article-body li { max-width: 72ch; color: #363b42; }
.article-body li + li { margin-top: .5rem; }
.article-body a { color: var(--accent); text-underline-offset: .2rem; }
.article-body code { border-radius: 0; padding: .12rem .3rem; color: var(--accent); background: var(--accent-soft); }
.article-body > :first-child { margin-top: 0; }

.article-figure {
  max-width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: .4rem;
  background: var(--surface);
  overflow: hidden;
}
.article-figure img { width: 100%; max-width: 100%; height: auto; border-radius: 0; object-fit: contain; }
.article-figure__open {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--surface-soft);
  box-shadow: none;
  cursor: zoom-in;
}
.article-figure__open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.article-figure__open img { display: block; }
.article-figure--phone { max-width: 410px; }
.article-figure--phone img { max-height: 760px; }
.article-figure--tall img { max-height: 1000px; }
.article-figure--device { padding: .35rem; border-color: var(--border-strong); }
.article-figure--device img { width: 100%; max-width: 100%; height: auto; border-radius: 0; }
.article-figure figcaption { border-top: 1px solid var(--border); padding: .7rem .4rem .3rem; color: var(--muted); font-size: .76rem; }
.article-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.article-media-grid .article-figure { display: grid; width: 100%; margin: 1.5rem 0; grid-template-rows: 1fr auto; }
.article-media-grid .article-figure__open { display: grid; min-height: clamp(260px, 32vw, 420px); place-items: center; }
.article-media-grid .article-figure__open img {
  width: 100%;
  height: clamp(260px, 32vw, 420px);
  object-fit: contain;
  object-position: center top;
}

.article-callout {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
}
.article-callout strong { display: block; margin-bottom: .2rem; color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.article-callout p { margin: 0; }
.article-callout--tip { border-left-color: var(--success); }
.article-callout--tip strong { color: var(--success); }
.article-callout--warning { border-left-color: var(--warning); }
.article-callout--warning strong { color: var(--warning); }
.tutorial-steps { display: grid; gap: 0; margin: 2rem 0; padding: 0; list-style: none; counter-reset: tutorial; }
.tutorial-steps li {
  counter-increment: tutorial;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}
.tutorial-steps li:last-child { border-bottom: 1px solid var(--border); }
.tutorial-steps li::before {
  content: counter(tutorial, decimal-leading-zero);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  grid-column: 1;
  grid-row: 1 / span 2;
}
.tutorial-steps strong,
.tutorial-steps span { display: block; grid-column: 2; min-width: 0; }
.tutorial-steps strong { grid-row: 1; }
.tutorial-steps span { grid-row: 2; }
.tutorial-steps span { margin-top: .15rem; color: var(--muted); }
.type-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  border: 1px solid var(--border);
  background: var(--border);
}
.type-catalog section { padding: 1.25rem; background: var(--surface); }
.type-catalog h3 { margin-top: 0; }

.toc {
  position: sticky;
  top: 96px;
  margin-top: 5rem;
  border-left: 1px solid var(--border-strong);
  padding-left: 1rem;
}
.toc strong { display: block; margin-bottom: .65rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { display: grid; gap: .5rem; margin: 0; padding-left: 1rem; }
.toc a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.feedback {
  max-width: var(--reading);
  margin-top: 4rem;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 2rem 0;
}
.feedback h2 { margin: 0; font-size: 1.35rem; }
.feedback p { margin: .35rem 0 1rem; color: var(--muted); }
.feedback-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback-options button {
  -webkit-appearance: none;
  appearance: none;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
}
.feedback-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.feedback-comment { display: grid; gap: .55rem; margin-top: 1rem; }
.feedback-comment textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: .75rem;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}
.feedback-status { color: var(--success); font-weight: 700; }

.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.related-card {
  display: block;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem;
  background: var(--surface);
  text-decoration: none;
}
.related-card:hover { background: var(--surface-soft); }
.related-card strong { display: block; margin-bottom: .35rem; }
.related-card span { color: var(--muted); font-size: .82rem; }

.site-footer {
  display: flex;
  width: min(var(--content), calc(100% - 2rem));
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(4rem, 8vw, 8rem) auto 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
}
.site-footer > div { display: grid; }
.site-footer strong { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.site-footer a { text-decoration: underline; text-underline-offset: .2rem; }

.search-dialog {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}
.search-dialog::backdrop {
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: rgba(23, 26, 31, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.search-dialog form { display: grid; gap: 1rem; margin: 0; padding: clamp(1rem, 4vw, 2rem); }
.search-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.search-dialog h2 { margin: .4rem 0 0; font-size: 1.65rem; }
.search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  border: 1px solid var(--border-strong);
  padding: .35rem .65rem;
}
.search-field input { min-width: 0; min-height: 44px; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-field kbd { color: var(--muted); font-size: .7rem; }
.search-results { display: grid; max-height: min(50vh, 420px); overflow: auto; border-top: 1px solid var(--border); }
.search-result { display: grid; gap: .2rem; border-bottom: 1px solid var(--border); padding: .8rem 0; text-decoration: none; }
.search-result:hover { color: var(--accent); }
.search-result span { color: var(--muted); font-size: .78rem; }

.access-dialog,
.media-lightbox {
  width: min(620px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}
.access-dialog::backdrop,
.media-lightbox::backdrop {
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: rgba(23, 26, 31, .72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.access-dialog form { position: relative; display: grid; gap: 1rem; margin: 0; padding: clamp(1.4rem, 5vw, 3rem); }
.access-dialog__close { position: absolute; top: 1rem; right: 1rem; }
.access-dialog h2 { max-width: 14ch; margin: .15rem 3rem 0 0; font: 650 clamp(2rem, 6vw, 3.2rem)/.98 var(--display); letter-spacing: -.05em; }
.access-dialog p { margin: 0; color: var(--muted); line-height: 1.6; }
.access-dialog label { display: grid; gap: .45rem; margin-top: .4rem; font-size: .78rem; font-weight: 800; }
.access-dialog input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: .75rem;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}
.access-dialog input:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.access-dialog .button { width: 100%; }
.access-dialog__status { min-height: 1.2rem; color: var(--accent) !important; font-weight: 800; }
.access-dialog small { color: var(--muted); }
.locked-article { display: grid; min-height: 58vh; align-content: center; justify-items: start; gap: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(3rem, 9vw, 8rem) 0; }
.locked-article h1 { max-width: 15ch; margin: 0; font: 650 clamp(2.8rem, 8vw, 6rem)/.92 var(--display); letter-spacing: -.06em; }
.locked-article p { max-width: 58ch; margin: 0; color: var(--muted); }

.media-lightbox { width: calc(100vw - 2rem); max-width: 1500px; height: calc(100vh - 2rem); height: calc(100dvh - 2rem); overflow: hidden; background: #101315; color: #fff; }
.media-lightbox__shell { position: relative; display: grid; height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.media-lightbox header { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; gap: 1rem; align-items: center; min-width: 0; padding: .75rem 1rem; border-bottom: 1px solid #31373b; }
.media-lightbox header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-lightbox header span { color: #aeb7bd; font-size: .78rem; }
.media-lightbox figure { display: grid; min-height: 0; place-items: center; margin: 0; padding: 1rem clamp(3.5rem, 7vw, 6rem); }
.media-lightbox figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); object-fit: contain; }
.media-lightbox figcaption { position: absolute; right: 1rem; bottom: .65rem; left: 1rem; color: #c7ced2; font-size: .76rem; text-align: center; }
.media-lightbox__nav {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 58px;
  place-items: center;
  margin: 0;
  border: 1px solid #4a5257;
  border-radius: 0;
  padding: 0;
  color: #fff;
  background: rgba(16, 19, 21, .84);
  box-shadow: none;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.media-lightbox__nav--previous { left: .8rem; }
.media-lightbox__nav--next { right: .8rem; }
.media-lightbox__nav:focus-visible { outline: 3px solid #a8c1d2; outline-offset: 2px; }

.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  align-content: center;
  gap: .7rem;
  padding: 3rem 1rem;
  text-align: center;
}
.empty-state h1 { margin: 0; }
.maintenance-page { display: grid; min-height: 100vh; place-items: center; padding: 1rem; }
.maintenance-page main { display: grid; width: min(760px, 100%); gap: 1rem; border-top: 3px solid var(--accent); padding: clamp(2rem, 7vw, 5rem) 0; }
.maintenance-page h1 { max-width: 12ch; margin: 0; font-size: clamp(2.8rem, 9vw, 5rem); line-height: .95; }
.maintenance-page p { max-width: 55ch; margin: 0; color: var(--muted); }

[data-theme="dark"] {
  color-scheme: dark;
  --page: #151718;
  --surface: #1d2022;
  --surface-soft: #25292c;
  --text: #f1f1ed;
  --muted: #a9afb4;
  --border: #393e41;
  --border-strong: #596064;
  --accent: #a8c1d2;
  --accent-hover: #c8d8e2;
  --accent-soft: #283741;
}
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li { color: #d3d6d7; }
[data-theme="dark"] .site-header { background: rgba(21, 23, 24, .96); }

@media (max-width: 1079px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr); }
  .site-header nav { display: none; }
  .header-actions { justify-self: end; }
  .help-hero { grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); }
  .category-grid,
  .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; margin: 1rem 0 0; border-left: 0; border-bottom: 1px solid var(--border); padding: 0 0 1rem; }
}

@media (max-width: 767px) {
  main { width: min(100% - 1.5rem, var(--content)); }
  .site-header { min-height: 64px; padding-inline: .75rem; }
  .brand img { width: 36px; height: 36px; }
  .search-trigger > span:nth-child(2),
  .search-trigger kbd { display: none; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .help-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 4rem 0; }
  .help-hero__preview { display: none; }
  .help-hero h1 { font-size: clamp(3rem, 13vw, 5.2rem); }
  .role-strip > span { padding-left: .75rem; }
  .mobile-showcase { grid-template-columns: minmax(0, 1fr); margin-top: 4rem; padding: 1.5rem; }
  .mobile-showcase__screens { max-width: 430px; }
  .section-heading { display: grid; align-items: start; }
  .section-search { width: max-content; max-width: 100%; }
  .guided-cta { grid-template-columns: minmax(0, 1fr); }
  .guided-cta__steps { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-media-grid { grid-template-columns: 1fr; }
  .article-media-grid--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-catalog { grid-template-columns: 1fr; }
  .site-footer { display: grid; padding: 2rem 0; }
}

@media (max-width: 539px) {
  .brand small { display: none; }
  .hero-search { grid-template-columns: auto minmax(0, 1fr); }
  .hero-search .button { grid-column: 1 / -1; width: 100%; }
  .hero-suggestions span { width: 100%; }
  .category-grid,
  .editorial-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; }
  .editorial-card { min-height: 260px; }
  .mobile-showcase__screens { gap: .4rem; }
  .article-media-grid--phones { grid-template-columns: 1fr; }
  .article-figure--phone { max-width: 360px; margin-inline: auto; }
  .tutorial-steps li { grid-template-columns: 36px minmax(0, 1fr); gap: .75rem; }
  .search-dialog { width: calc(100% - 1rem); }
  .search-dialog form { padding: 1rem; }
  .search-field kbd { display: none; }
  .media-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; }
  .media-lightbox figure { padding: .75rem; padding-bottom: 4.5rem; }
  .media-lightbox__nav { top: auto; bottom: .6rem; width: 44px; height: 44px; transform: none; }
  .media-lightbox__nav--previous { left: .75rem; }
  .media-lightbox__nav--next { right: .75rem; }
  .media-lightbox figcaption { right: 3.8rem; bottom: 1.35rem; left: 3.8rem; }
  .article-media-grid .article-figure__open,
  .article-media-grid .article-figure__open img { height: 300px; min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .button--primary,
  .role-strip button,
  .guided-cta { border: 1px solid CanvasText; color: CanvasText; background: Canvas; }
  .page-loader img { animation: none; }
  .search-dialog::backdrop,
  .access-dialog::backdrop,
  .media-lightbox::backdrop { background: Canvas; }
}
