:root {
  --accent: #5b4ce6;
  --accent-strong: #4739cf;
  --accent-soft: #eeecff;
  --accent-pale: #f7f6ff;
  --ink: #20202a;
  --muted: #65677a;
  --subtle: #8b8d9d;
  --line: #e5e6ed;
  --line-strong: #d7d8e2;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --surface-raised: #fbfbfd;
  --positive: #16835d;
  --positive-soft: #eaf8f2;
  --warning: #a86808;
  --warning-soft: #fff7e6;
  --danger: #c33b46;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 1px 2px rgba(30, 30, 50, 0.04), 0 6px 18px rgba(30, 30, 50, 0.04);
  --shadow-lg: 0 28px 70px rgba(24, 22, 52, 0.18);
  --sidebar-width: 278px;
  --topbar-height: 72px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(91, 76, 230, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-strong);
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(320px, 680px) auto;
  gap: 28px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px;
  border-radius: 10px;
  background: linear-gradient(145deg, #6b5df4, #4f40db);
  box-shadow: 0 7px 16px rgba(91, 76, 230, 0.25);
}

.brand-mark i {
  display: block;
  width: 2px;
  border-radius: 4px;
  background: #fff;
}

.brand-mark i:nth-child(1) { height: 9px; opacity: 0.75; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; }
.brand-mark i:nth-child(4) { height: 7px; opacity: 0.75; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.brand-copy strong span {
  color: var(--subtle);
  font-weight: 500;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: contents;
}

.search-trigger {
  width: 100%;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.search-trigger:hover {
  border-color: #bbb8ef;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.search-trigger > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-trigger kbd {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--subtle);
  font: 11px/1.5 inherit;
}

.cabinet-link {
  justify-self: end;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  background: var(--accent-soft);
  transition: background 0.15s ease, transform 0.15s ease;
}

.cabinet-link:hover {
  background: #e4e1ff;
  transform: translateY(-1px);
}

.mobile-nav-button {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.app-layout {
  min-height: calc(100vh - var(--topbar-height));
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface-raised);
}

.nav-group + .nav-group {
  margin-top: 22px;
}

.nav-group-title {
  margin: 0 10px 7px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #515366;
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1.5px solid #a4a6b5;
  border-radius: 50%;
}

.nav-link:hover {
  color: var(--ink);
  background: #f0f0f7;
}

.nav-link[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 680;
}

.nav-link[aria-current="page"]::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 76, 230, 0.13);
}

.sidebar-note {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 4px var(--positive-soft);
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) 190px;
  justify-content: center;
  gap: 54px;
  padding: 54px 46px 90px;
}

.article {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--subtle);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-strong);
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.article h1 {
  max-width: 720px;
  margin: 0;
  color: #191922;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.038em;
}

.article-summary {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.meta-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.article-body {
  margin-top: 42px;
}

.article-body h2 {
  margin: 52px 0 14px;
  color: #20202a;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 12px 0;
  color: #4f5161;
  line-height: 1.72;
}

.article-body strong {
  color: #272733;
}

.article-body ul,
.article-body ol {
  margin: 14px 0;
  padding-left: 22px;
}

.article-body li {
  margin: 8px 0;
  padding-left: 4px;
  color: #4f5161;
}

.article-body li::marker {
  color: var(--accent);
  font-weight: 700;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  counter-increment: steps;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 750;
}

.step-card h3 {
  margin: 1px 0 4px;
  color: #262631;
  font-size: 15px;
  line-height: 1.35;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.callout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #dcd9ff;
  border-radius: 14px;
  background: var(--accent-pale);
}

.callout[data-tone="positive"] {
  border-color: #ccecdf;
  background: var(--positive-soft);
}

.callout[data-tone="warning"] {
  border-color: #f1dbac;
  background: var(--warning-soft);
}

.callout[data-tone="danger"] {
  border-color: #f1c9ce;
  background: var(--danger-soft);
}

.callout-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(40, 35, 100, 0.08);
}

.callout[data-tone="positive"] .callout-icon { color: var(--positive); }
.callout[data-tone="warning"] .callout-icon { color: var(--warning); }
.callout[data-tone="danger"] .callout-icon { color: var(--danger); }

.callout h3 {
  margin: 1px 0 3px;
  color: #2b2b38;
  font-size: 14px;
}

.callout p {
  margin: 0;
  color: #5e6070;
  font-size: 13px;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 20px 0 30px;
}

.content-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.content-card[data-accent="true"] {
  border-color: #d8d4ff;
  background: linear-gradient(155deg, #fff 35%, #f7f5ff);
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-card[data-accent="true"] .card-kicker {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.content-card h3 {
  margin: 0 0 6px;
  color: #252530;
  font-size: 15px;
  line-height: 1.35;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.content-card a {
  display: inline-flex;
  margin-top: 13px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.content-card a:hover {
  text-decoration: underline;
}

.table-wrap {
  margin: 20px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.content-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.content-table th,
.content-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: var(--surface-soft);
  color: #444653;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.content-table td {
  color: #555767;
  line-height: 1.5;
}

.content-table tr:last-child td {
  border-bottom: 0;
}

.checklist {
  display: grid;
  gap: 9px;
  margin: 17px 0 28px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 11px 13px 11px 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-raised);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  top: 11px;
  left: 13px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--positive-soft);
  color: var(--positive);
  font-size: 11px;
  font-weight: 800;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid #dedbff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(113, 97, 246, 0.18), transparent 34%),
    linear-gradient(145deg, #fbfaff, #f4f3ff 60%, #fff);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 26px solid rgba(91, 76, 230, 0.07);
  border-radius: 50%;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 610px;
  font-size: clamp(34px, 5.2vw, 52px);
}

.home-hero .article-summary {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(91, 76, 230, 0.22);
}

.primary-link:hover {
  background: var(--accent-strong);
}

.secondary-link {
  border: 1px solid #d7d3fa;
  color: var(--accent-strong);
  background: #fff;
}

.secondary-link:hover {
  background: var(--accent-soft);
}

.home-section {
  margin-top: 42px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.home-section h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.home-section-head p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-topic {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-topic:hover {
  transform: translateY(-2px);
  border-color: #c9c5f6;
  box-shadow: 0 14px 30px rgba(35, 32, 80, 0.08);
}

.topic-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 9px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.home-topic strong {
  color: #2b2b37;
  font-size: 14px;
}

.home-topic p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-topic span:last-child {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.article-footer {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-title {
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-link {
  display: flex;
  flex-direction: column;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
}

.related-link:hover {
  border-color: #c8c4f5;
  background: var(--accent-pale);
}

.related-link strong {
  font-size: 13px;
}

.related-link span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.article-toc {
  position: sticky;
  top: calc(var(--topbar-height) + 34px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-height) - 68px);
  overflow-y: auto;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin-bottom: 9px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-link {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
}

.toc-link:hover {
  color: var(--accent-strong);
}

.search-dialog[hidden] {
  display: none;
}

.search-dialog {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: min(11vh, 100px) 18px 24px;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(24, 23, 38, 0.55);
  backdrop-filter: blur(5px);
  cursor: default;
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(680px, 78vh);
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.search-panel-head h2 {
  margin: 0;
  font-size: 16px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--ink);
  background: #eeeeF5;
}

.search-field {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1.5px solid #bbb6f4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 76, 230, 0.08);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-field input::placeholder {
  color: #a0a2af;
}

.search-hint {
  margin: 10px 3px 8px;
  color: var(--subtle);
  font-size: 11px;
}

.search-results {
  min-height: 90px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--accent-pale);
}

.result-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.result-copy {
  min-width: 0;
}

.result-copy strong,
.result-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy strong {
  font-size: 13px;
}

.result-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.result-section {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
}

.search-empty {
  padding: 26px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.not-found {
  max-width: 560px;
  padding: 58px 0;
}

.not-found-code {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.not-found h1 {
  font-size: 36px;
}

.not-found p {
  color: var(--muted);
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 14px 16px;
  border: 1px solid #f1dbac;
  border-radius: 12px;
  color: #6f4d16;
  background: var(--warning-soft);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1160px) {
  .topbar {
    grid-template-columns: var(--sidebar-width) minmax(260px, 1fr) auto;
    gap: 18px;
  }

  .main {
    grid-template-columns: minmax(0, 760px);
  }

  .article-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 0 14px;
  }

  .brand-copy small,
  .search-trigger > span:nth-child(2),
  .search-trigger kbd,
  .cabinet-link > span {
    display: none;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .mobile-nav-button {
    display: inline-flex;
    justify-self: start;
  }

  .topbar-actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 7px;
  }

  .search-trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }

  .cabinet-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 35;
    inset: var(--topbar-height) auto 0 0;
    width: min(320px, calc(100vw - 42px));
    height: auto;
    transform: translateX(-105%);
    box-shadow: 18px 0 42px rgba(24, 23, 38, 0.16);
    transition: transform 0.2s ease;
  }

  .sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .main {
    display: block;
    padding: 38px 24px 74px;
  }
}

@media (max-width: 620px) {
  .brand-copy {
    display: none;
  }

  .topbar {
    grid-template-columns: 34px 1fr auto;
  }

  .main {
    padding: 30px 16px 64px;
  }

  .article h1 {
    font-size: 34px;
  }

  .article-summary {
    font-size: 15px;
  }

  .home-hero {
    padding: 27px 22px;
    border-radius: 18px;
  }

  .home-hero h1 {
    font-size: 36px;
  }

  .card-grid,
  .home-topic-grid,
  .related-links {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    display: block;
  }

  .home-section-head p {
    margin-top: 5px;
    text-align: left;
  }

  .home-topic {
    min-height: 0;
  }

  .step-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px;
  }

  .callout {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 14px;
  }

  .callout-icon {
    width: 27px;
    height: 27px;
  }

  .search-dialog {
    place-items: start stretch;
    padding: 12px;
  }

  .search-panel {
    max-height: calc(100vh - 24px);
    border-radius: 15px;
  }

  .result-section {
    display: none;
  }
}

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

@media print {
  .topbar,
  .sidebar,
  .article-toc,
  .search-dialog,
  .article-footer {
    display: none !important;
  }

  .app-layout,
  .main {
    display: block;
  }

  .main {
    padding: 0;
  }

  .article {
    max-width: none;
  }
}
