/* =========================================================
   Clovance documentation theme
   Mirrors the app: Inter, primary green palette, Flowbite
   style surfaces, light + dark mode.
   ========================================================= */

:root {
  --primary-50: #f7faeb;
  --primary-100: #edf4d1;
  --primary-200: #dce9a8;
  --primary-300: #cdde87;
  --primary-400: #abc837;
  --primary-500: #89a02c;
  --primary-600: #677821;
  --primary-700: #55641c;
  --primary-800: #455117;
  --primary-900: #394313;
  --primary-950: #1e240a;

  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #e5e7eb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #111827;
  --text-muted: #4b5563;
  --text-subtle: #6b7280;
  --link: #55641c;
  --link-hover: #394313;

  --nav-active-bg: #f3f4f6;
  --nav-active-text: #55641c;
  --row-alt: rgba(17, 24, 39, 0.025);

  --inline-code-bg: #f7faeb;
  --inline-code-text: #455117;
  --code-bg: #111827;
  --code-text: #e5e7eb;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.18), 0 8px 10px -6px rgb(0 0 0 / 0.12);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --topbar-h: 4rem;
  --sidebar-w: 16rem;
  --radius: 0.75rem;

  color-scheme: light;
}

html.dark {
  --bg: #111827;
  --surface: #1f2937;
  --surface-2: #374151;
  --surface-3: #4b5563;
  --border: #374151;
  --border-strong: #4b5563;

  --text: #f9fafb;
  --text-muted: #d1d5db;
  --text-subtle: #9ca3af;
  --link: #abc837;
  --link-hover: #cdde87;

  --nav-active-bg: #374151;
  --nav-active-text: #abc837;
  --row-alt: rgba(255, 255, 255, 0.025);

  --inline-code-bg: rgba(171, 200, 55, 0.12);
  --inline-code-text: #dce9a8;
  --code-bg: #0b1120;
  --code-text: #e5e7eb;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.45);
  --shadow-lg: 0 12px 30px -6px rgb(0 0 0 / 0.55), 0 8px 10px -6px rgb(0 0 0 / 0.4);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--primary-200);
  color: var(--primary-950);
}

html.dark ::selection {
  background: var(--primary-700);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary-400);
  color: var(--primary-950);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  padding: 0.25rem 0.35rem;
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  background: var(--surface-2);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo-full .logo-full {
  display: block;
  height: 1.55rem;
  width: auto;
}

.brand-logo-mark {
  display: none;
}

.brand-logo-mark .logo-mark {
  display: block;
  height: 1.9rem;
  width: auto;
}

.brand-label {
  padding-left: 0.65rem;
  border-left: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.sidebar-toggle {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 0.35rem;
  padding: 0.15rem;
  border-radius: 0.5rem;
  background: var(--surface-2);
}

.lang-link {
  padding: 0.3rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
}

.lang-link:hover {
  color: var(--text);
}

.lang-link.is-active {
  background: var(--surface);
  color: var(--primary-800);
  box-shadow: var(--shadow-sm);
}

html.dark .lang-link.is-active {
  background: var(--surface-3);
  color: var(--primary-300);
}

.icon-sun {
  display: none;
  align-items: center;
}

html.dark .icon-sun {
  display: inline-flex;
}

html.dark .icon-moon {
  display: none;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: var(--sidebar-w);
  padding: 1.25rem 0.85rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: transform 0.2s ease, visibility 0.2s ease;
}

.sidebar-nav {
  flex: 1;
}

.nav-section + .nav-section {
  margin-top: 1.5rem;
}

.nav-section-title {
  margin: 0 0 0.4rem;
  padding: 0 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.nav-list {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-subtle);
  transition: color 0.15s ease;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item:hover .icon {
  color: var(--text);
}

.nav-item.is-active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-weight: 600;
}

.nav-item.is-active .icon {
  color: var(--nav-active-text);
}

.sidebar-card {
  margin-top: auto;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.sidebar-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.sidebar-card-text {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  z-index: 35;
  background: rgb(17 24 39 / 0.55);
  backdrop-filter: blur(2px);
}

/* ---------- Main layout ---------- */

.doc-main {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + 1.5rem) 1.5rem 2rem;
}

.doc-container {
  max-width: 58rem;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-primary {
  background: var(--primary-400);
  color: var(--primary-950);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-300);
  color: var(--primary-950);
}

.btn-solid {
  background: var(--primary-700);
  color: #ffffff;
}

.btn-solid:hover {
  background: var(--primary-800);
  color: #ffffff;
}

html.dark .btn-solid {
  background: var(--primary-600);
}

html.dark .btn-solid:hover {
  background: var(--primary-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-sm {
  padding: 0.42rem 0.65rem;
  font-size: 0.76rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #455117 0%, #394313 52%, #1e240a 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-glow-one {
  top: -9rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  background: #abc837;
  opacity: 0.5;
}

.hero-glow-two {
  bottom: -10rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: #89a02c;
  opacity: 0.35;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f3f4f6;
}

.hero-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hero-lang:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-lang .icon {
  width: 1rem;
  height: 1rem;
}

.hero-logo {
  margin: 1.6rem 0 0.9rem;
  color: #ffffff;
}

.hero-logo .logo-full {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.6rem;
}

.hero-tagline {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero-sub {
  max-width: 42rem;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Install command ---------- */

.install-block {
  max-width: 46rem;
  margin-top: 1.5rem;
}

.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.install-tab {
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.install-tab:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.install-tab.is-active {
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
}

.install-command {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.55rem 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 0.6rem 0.6rem 0.6rem;
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.install-command code {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: 0 0 2px;
  border: 0;
  background: none;
  color: #f9fafb;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
}

.install-command code::-webkit-scrollbar {
  height: 6px;
}

.install-command code::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn.is-copied {
  border-color: var(--primary-400);
  background: var(--primary-400);
  color: var(--primary-950);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* ---------- Document card ---------- */

.doc-card {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.doc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Prose ---------- */

.doc-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.doc-body > :first-child {
  margin-top: 0;
}

.doc-body > :last-child {
  margin-bottom: 0;
}

.doc-body h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.doc-body h2 {
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.doc-body h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.doc-body h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.doc-body p {
  margin: 0.9rem 0;
}

.doc-body a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.doc-body a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

.doc-body strong {
  font-weight: 700;
}

.doc-body ul,
.doc-body ol {
  margin: 0.9rem 0;
  padding-left: 1.4rem;
}

.doc-body li {
  margin: 0.35rem 0;
}

.doc-body li::marker {
  color: var(--primary-500);
}

.doc-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.doc-body :not(pre) > code {
  padding: 0.14em 0.38em;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  font-family: var(--font-mono);
  font-size: 0.85em;
  word-break: break-word;
}

.doc-body pre {
  position: relative;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-x: auto;
}

.doc-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: inherit;
  white-space: pre;
}

.code-copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.doc-body pre:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.code-copy.is-copied {
  border-color: var(--primary-400);
  background: var(--primary-400);
  color: var(--primary-950);
}

.doc-body table {
  display: block;
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.88rem;
  overflow-x: auto;
}

.doc-body th,
.doc-body td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc-body th {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

.doc-body tbody tr:nth-child(even) td {
  background: var(--row-alt);
}

.doc-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--primary-400);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--surface-2);
  color: var(--text-muted);
}

.doc-body blockquote p {
  margin: 0.35rem 0;
}

.doc-body blockquote strong {
  color: var(--text);
}

.doc-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.doc-body details {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-2);
}

.doc-body details[open] {
  background: var(--surface);
}

.doc-body summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.doc-body summary::-webkit-details-marker {
  display: none;
}

.doc-body summary::before {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-subtle);
  border-bottom: 2px solid var(--text-subtle);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.doc-body details[open] summary::before {
  transform: rotate(45deg);
}

/* ---------- Footers ---------- */

.doc-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.edit-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-decoration: none;
}

.edit-link:hover {
  color: var(--link);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: 58rem;
  margin: 1.5rem auto 0;
  padding: 1rem 0.25rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

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

.site-footer a:hover {
  color: var(--link);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* ---------- Responsive ---------- */

@media (hover: none) {
  .code-copy {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: var(--shadow-lg);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .doc-main {
    margin-left: 0;
    padding: calc(var(--topbar-h) + 1rem) 1rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 0.6rem;
  }

  .brand-label {
    display: none;
  }

  .brand-logo-full .logo-full {
    height: 1.35rem;
  }

  .lang-switch {
    margin-right: 0;
  }

  .hero {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    margin-top: 1.1rem;
  }

  .hero-logo .logo-full {
    height: 2rem;
  }

  .doc-card {
    padding: 1.1rem;
    border-radius: 0.85rem;
  }

  .doc-body h2 {
    margin-top: 2rem;
  }
}

@media (max-width: 400px) {
  .brand-logo-full {
    display: none;
  }

  .brand-logo-mark {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .topbar,
  .sidebar,
  .sidebar-backdrop,
  .doc-footer,
  .site-footer {
    display: none !important;
  }

  .doc-main {
    margin: 0;
    padding: 0;
  }

  .doc-card,
  .hero {
    border: 0;
    box-shadow: none;
  }
}
