/* ---------- Announcement ---------- */
.announcement {
  --c: var(--brand);
  position: relative;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 44px;
  background: color-mix(in srgb, var(--c) 12%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  font-size: 13.5px;
  text-align: center;
}
.announcement a {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-success {
  --c: var(--success);
}
.announcement-warning {
  --c: var(--warning);
}
.announcement-danger {
  --c: var(--danger);
}
.announcement .btn {
  position: absolute;
  right: 8px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
}
.brand img {
  height: 28px;
  width: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--brand-2)));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px color-mix(in srgb, var(--brand) 35%, transparent);
}
.brand-mark svg {
  width: 16px;
  height: 16px;
}
.brand-tagline {
  font-weight: 500;
  color: var(--text-subtle);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}
.header-nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur), background var(--dur);
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
  background: var(--bg-hover);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  height: 36px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  color: var(--text-subtle);
  font-size: 14px;
  transition: border-color var(--dur), background var(--dur);
}
.search-trigger:hover {
  border-color: var(--border-strong);
  background: var(--bg-muted);
}
.search-trigger svg {
  width: 16px;
  height: 16px;
}
.search-trigger .keys {
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.version-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.version-select svg {
  width: 14px;
  height: 14px;
  color: var(--text-subtle);
}
.notif-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}
.menu-button {
  display: none;
}

/* ---------- Docs shell ---------- */
.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1480px;
  margin: 0 auto;
  transition: grid-template-columns 220ms var(--ease);
}
.docs-shell.no-toc {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
:root[data-sidebar='collapsed'] .docs-shell {
  grid-template-columns: 0 minmax(0, 1fr) var(--toc-w);
}
:root[data-sidebar='collapsed'] .docs-shell.no-toc {
  grid-template-columns: 0 minmax(0, 1fr);
}
:root[data-sidebar='collapsed'] .sidebar {
  visibility: hidden;
  opacity: 0;
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: opacity 200ms var(--ease);
}
.sidebar-top {
  display: flex;
  gap: 6px;
  padding: 16px 14px 8px;
}
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 32px;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.nav-group {
  margin-bottom: 2px;
}
.nav-category {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--dur);
}
.nav-category:hover {
  background: var(--bg-hover);
}
.nav-category .chev {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--text-subtle);
  transition: transform 180ms var(--ease);
}
.nav-category[aria-expanded='true'] .chev {
  transform: rotate(90deg);
}
.nav-category .cat-icon {
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
}
.nav-children {
  margin: 2px 0 8px 15px;
  padding-left: 9px;
  border-left: 1px solid var(--border);
}
.nav-link {
  display: block;
  padding: 6px 10px;
  margin: 1px 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--dur), background var(--dur);
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-link.active {
  color: var(--brand-text);
  background: var(--brand-soft);
  font-weight: 600;
}
.nav-children .nav-link.active {
  box-shadow: -10px 0 0 -8px var(--brand);
}
.nav-empty {
  padding: 16px 10px;
  font-size: 13px;
  color: var(--text-subtle);
}
.nav-link mark,
.nav-category mark {
  background: color-mix(in srgb, #facc15 35%, transparent);
  color: inherit;
  border-radius: 2px;
}

.content {
  min-width: 0;
  padding: 40px 56px 96px;
}
.content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-subtle);
}
.breadcrumbs a:hover {
  color: var(--text);
}
.breadcrumbs svg {
  width: 13px;
  height: 13px;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: -4px 0 28px;
  font-size: 13.5px;
  color: var(--text-subtle);
}
.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-meta svg {
  width: 14px;
  height: 14px;
}
.archived-banner {
  margin-bottom: 24px;
}

.toc {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 40px 20px 32px 8px;
  font-size: 13.5px;
}
.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.toc-title svg {
  width: 14px;
  height: 14px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--dur), border-color var(--dur);
}
.toc a:hover {
  color: var(--text);
}
.toc a.active {
  color: var(--brand-text);
  border-left-color: var(--brand);
  font-weight: 550;
}
.toc .lvl-3 a {
  padding-left: 24px;
}
.toc .lvl-4 a {
  padding-left: 36px;
}
.toc-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.toc-actions a,
.toc-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
}
.toc-actions a:hover,
.toc-actions button:hover {
  color: var(--text);
}
.toc-actions svg {
  width: 14px;
  height: 14px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.reading-progress div {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--brand-2)));
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* Prev / next */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.pager a:hover {
  border-color: var(--brand-border);
  background: var(--brand-softer);
}
.pager .next {
  text-align: right;
  grid-column: 2;
}
.pager small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-subtle);
}
.pager .next small {
  justify-content: flex-end;
}
.pager small svg {
  width: 14px;
  height: 14px;
}
.pager strong {
  font-weight: 600;
  color: var(--brand-text);
}

/* Related + feedback */
.section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.related {
  margin-top: 48px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur), background var(--dur);
}
.related-card:hover {
  border-color: var(--brand-border);
  background: var(--brand-softer);
}
.related-card strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.related-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-muted);
}
.feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.feedback-question {
  font-weight: 600;
  font-size: 14.5px;
}
.feedback-form {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feedback .btn[aria-pressed='true'] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-text);
}

/* ---------- Home ---------- */
.home-hero {
  position: relative;
  padding: 88px 20px 64px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 520px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 18%, transparent), transparent 62%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.home-hero > * {
  position: relative;
  z-index: 1;
}
.home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.home-hero p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--text-muted);
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 580px;
  height: 52px;
  margin: 0 auto;
  padding: 0 14px 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text-subtle);
  font-size: 16px;
  text-align: left;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.hero-search:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow), 0 0 0 4px var(--brand-softer);
}
.hero-search svg {
  width: 18px;
  height: 18px;
}
.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-subtle);
}
.hero-suggestions button {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
}
.hero-suggestions button:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.home-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}
.home-section {
  margin-bottom: 56px;
}
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.home-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease);
}
.category-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.category-icon svg,
.category-icon img {
  width: 19px;
  height: 19px;
}
.category-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}
.category-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.category-card ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 13.5px;
}
.category-card li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: var(--text-muted);
}
.category-card li svg {
  width: 13px;
  height: 13px;
  color: var(--text-subtle);
}
.page-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.page-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur);
}
.page-list a:last-child {
  border-bottom: 0;
}
.page-list a:hover {
  background: var(--bg-subtle);
}
.page-list a > .grow {
  min-width: 0;
}
.page-list .title {
  font-weight: 550;
  font-size: 14.5px;
}
.page-list .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 72ch;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.page-list .meta {
  flex: none;
  align-self: flex-start;
  padding-top: 2px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-subtle);
  white-space: nowrap;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.custom-section {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}

/* ---------- Footer ---------- */
.footer {
  /* Pushed to the bottom of the viewport on short pages (see #root below). */
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 20px;
  font-size: 13.5px;
  color: var(--text-subtle);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a:hover {
  color: var(--text);
}
/* Copyright link: looks like plain footer text until hovered or focused,
   then glows blue (darker blue in light mode, lighter blue in dark mode). */
.footer-copyright-link {
  --copyright-glow: #2563eb;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  border-radius: 3px;
  transition: color 220ms var(--ease), text-shadow 220ms var(--ease);
}
:root[data-theme='dark'] .footer-copyright-link {
  --copyright-glow: #60a5fa;
}
.footer-copyright-link:hover,
.footer-copyright-link:focus-visible {
  color: var(--copyright-glow);
  text-shadow:
    0 0 6px color-mix(in srgb, var(--copyright-glow) 55%, transparent),
    0 0 16px color-mix(in srgb, var(--copyright-glow) 35%, transparent);
}
.socials {
  display: flex;
  gap: 4px;
}

/* ---------- Search modal ---------- */
.search-modal {
  max-width: 640px;
  max-height: 72vh;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid var(--border);
}
.search-input-row svg {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  flex: none;
}
.search-input-row input {
  flex: 1;
  height: 100%;
  border: 0;
  background: none;
  font-size: 16px;
  outline: none;
}
.search-results {
  overflow-y: auto;
  padding: 8px;
}
.search-group-label {
  padding: 10px 10px 6px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.search-result {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  text-align: left;
  color: var(--text);
}
.search-result svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--text-subtle);
}
.search-result[aria-selected='true'] {
  background: var(--brand-soft);
}
.search-result[aria-selected='true'] svg {
  color: var(--brand-text);
}
.search-result-title {
  font-weight: 600;
  font-size: 14.5px;
}
.search-result-crumb {
  font-size: 12px;
  color: var(--text-subtle);
}
.search-result-snippet {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  background: color-mix(in srgb, #facc15 38%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.search-footer {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-subtle);
}
.search-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Status pages ---------- */
.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60vh;
  padding: 40px 20px;
  text-align: center;
}
.status-page .code {
  font-size: 72px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.status-page h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.status-page p {
  margin: 0;
  max-width: 460px;
  color: var(--text-muted);
}

.narrow-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}
.page-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.028em;
}
.page-subtitle {
  margin: 0 0 32px;
  color: var(--text-muted);
}


/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .docs-shell,
  :root[data-sidebar='collapsed'] .docs-shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
  :root[data-sidebar='collapsed'] .docs-shell {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .content {
    padding: 36px 40px 80px;
  }
}
@media (max-width: 960px) {
  .search-trigger {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .search-trigger .label,
  .search-trigger .keys {
    display: none;
  }
  .header-nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .docs-shell,
  .docs-shell.no-toc,
  :root[data-sidebar='collapsed'] .docs-shell,
  :root[data-sidebar='collapsed'] .docs-shell.no-toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(320px, 86vw);
    height: auto;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(-102%);
    transition: transform 220ms var(--ease);
    visibility: visible !important;
    opacity: 1 !important;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    background: var(--overlay);
    animation: fade-in 160ms;
  }
  .collapse-sidebar {
    display: none !important;
  }
  .content {
    padding: 28px 20px 72px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .brand-tagline,
  .header-actions .hide-sm {
    display: none;
  }
  .header-inner {
    gap: 8px;
    padding: 0 12px;
  }
  .header-actions {
    gap: 2px;
  }
  .brand {
    min-width: 0;
  }
  .brand > span:not(.brand-mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager .next {
    grid-column: 1;
  }
  .prose h1 {
    font-size: 1.8rem;
  }
  .home-hero {
    padding: 56px 16px 44px;
  }
}

/* Staff sign-in on the maintenance page: present but understated. */
.maintenance-staff {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.maintenance-staff .hint {
  margin: 0;
}
