:root {
  --hfdocs-bg: #fffaf3;
  --hfdocs-bg-elevated: #ffffff;
  --hfdocs-panel: #ffffff;
  --hfdocs-panel-soft: #fff3e4;
  --hfdocs-code: #fff7ed;
  --hfdocs-line: #dfd4c5;
  --hfdocs-line-soft: #eee4d8;
  --hfdocs-text: #241a13;
  --hfdocs-muted: #6b6259;
  --hfdocs-faint: #8d8276;
  --hfdocs-accent: #e9562f;
  --hfdocs-accent-strong: #c8401d;
  --hfdocs-gold: #c9871f;
  --hfdocs-green: #4f8a32;
  --hfdocs-blue: #277fa3;
  --hfdocs-danger: #b42323;
  --hfdocs-sidebar: 282px;
  --hfdocs-toc: 230px;
  --hfdocs-header: 72px;
  --hfdocs-radius-sm: 10px;
  --hfdocs-radius: 16px;
  --hfdocs-radius-lg: 24px;
  --hfdocs-shadow: 0 24px 80px rgba(87, 66, 42, 0.14);
  --hfdocs-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hfdocs-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hfdocs-header) + 26px);
}

body {
  margin: 0;
  color: var(--hfdocs-text);
  background:
    radial-gradient(circle at 88% -8%, rgba(255, 112, 69, 0.13), transparent 28rem),
    radial-gradient(circle at 6% 28%, rgba(244, 201, 93, 0.065), transparent 24rem),
    var(--hfdocs-bg);
  font-family: var(--hfdocs-font);
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.search-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

::selection {
  color: #241a13;
  background: var(--hfdocs-gold);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #241a13;
  background: var(--hfdocs-gold);
  border-radius: 8px;
  font-weight: 800;
}

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

.site-header {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: var(--hfdocs-sidebar) minmax(260px, 1fr) auto;
  gap: 20px;
  align-items: center;
  height: var(--hfdocs-header);
  padding: 0 22px;
  border-bottom: 1px solid var(--hfdocs-line-soft);
  background: rgba(255, 250, 243, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--hfdocs-text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--hfdocs-gold);
  border: 1px solid var(--hfdocs-accent);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff7ed, #ffffff);
  box-shadow:
    inset 0 0 0 4px rgba(255, 112, 69, 0.08),
    4px 4px 0 rgba(255, 112, 69, 0.16);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--hfdocs-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-search {
  display: flex;
  justify-content: center;
}

.search-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(680px, 100%);
  padding: 10px 12px 10px 15px;
  color: var(--hfdocs-muted);
  border: 1px solid var(--hfdocs-line);
  border-radius: 999px;
  background: var(--hfdocs-bg-elevated);
  text-align: left;
}

.search-trigger:hover,
.search-trigger:focus-visible {
  color: var(--hfdocs-text);
  border-color: var(--hfdocs-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 112, 69, 0.12);
}

.search-trigger kbd,
.keyboard-key {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  color: var(--hfdocs-faint);
  border: 1px solid var(--hfdocs-line);
  border-bottom-color: #cfc2b2;
  border-radius: 6px;
  background: #fff7ed;
  font-family: var(--hfdocs-font);
  font-size: 10px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-line);
  border-radius: 10px;
  background: var(--hfdocs-panel);
  text-decoration: none;
  font-weight: 800;
}

.icon-button:hover,
.ghost-button:hover,
.secondary-button:hover,
.icon-button:focus-visible,
.ghost-button:focus-visible,
.secondary-button:focus-visible {
  border-color: var(--hfdocs-accent);
  outline: none;
}

.primary-button {
  color: #241a13;
  border-color: var(--hfdocs-gold);
  background: var(--hfdocs-gold);
  box-shadow: 0 4px 0 #9c7425;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 5px 0 #9c7425;
}

.secondary-button {
  background: var(--hfdocs-bg-elevated);
}

.menu-button {
  display: none;
}

.site-layout {
  display: grid;
  grid-template-columns: var(--hfdocs-sidebar) minmax(0, 1fr);
  min-height: 100vh;
  padding-top: var(--hfdocs-header);
}

.sidebar {
  position: fixed;
  z-index: 80;
  top: var(--hfdocs-header);
  bottom: 0;
  left: 0;
  width: var(--hfdocs-sidebar);
  overflow-y: auto;
  padding: 22px 18px 80px;
  border-right: 1px solid var(--hfdocs-line-soft);
  background: rgba(255, 250, 243, 0.86);
}

.offline-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 20px;
  padding: 10px 11px;
  color: var(--hfdocs-muted);
  border: 1px solid var(--hfdocs-line-soft);
  border-radius: 10px;
  background: rgba(233, 86, 47, 0.035);
  font-size: 11px;
}

.offline-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hfdocs-green);
  box-shadow: 0 0 12px rgba(153, 202, 125, 0.7);
}

.nav-group {
  margin: 0 0 22px;
}

.sidebar-license {
  display: grid;
  gap: 4px;
  margin: 30px 8px 0;
  padding-top: 18px;
  color: var(--hfdocs-muted);
  border-top: 1px solid var(--hfdocs-line-soft);
  font-size: 11px;
}

.sidebar-license a {
  color: var(--hfdocs-accent-strong);
  font-weight: 800;
}

.nav-group-title {
  margin: 0 10px 8px;
  color: var(--hfdocs-faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--hfdocs-muted);
  border-left: 2px solid transparent;
  border-radius: 0 9px 9px 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--hfdocs-text);
  border-left-color: var(--hfdocs-accent);
  background: rgba(233, 86, 47, 0.06);
}

.nav-link .nav-code {
  color: var(--hfdocs-faint);
  font-family: var(--hfdocs-mono);
  font-size: 10px;
}

.site-main {
  grid-column: 2;
  min-width: 0;
  width: min(1500px, calc(100vw - var(--hfdocs-sidebar)));
  margin: 0 auto;
  padding: 48px 52px 100px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--hfdocs-faint);
  font-size: 12px;
}

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

.breadcrumbs a:hover {
  color: var(--hfdocs-gold);
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 44px;
  align-items: center;
  min-height: 320px;
  margin: 0 0 32px;
  padding: 52px;
  border: 1px solid var(--hfdocs-line);
  border-radius: var(--hfdocs-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 228, 0.98));
  box-shadow: var(--hfdocs-shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -13%;
  bottom: -72%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 112, 69, 0.16), transparent 66%);
  pointer-events: none;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--hfdocs-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 940px;
  margin: 11px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.072em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--hfdocs-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--hfdocs-line);
  border-radius: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(36, 26, 19, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(36, 26, 19, 0.03) 0 1px, transparent 1px 28px),
    #fff7ed;
  box-shadow: 12px 14px 0 rgba(87, 66, 42, 0.23);
}

.hero-art-card {
  display: grid;
  place-items: center;
  width: min(210px, 78%);
  aspect-ratio: 1;
  color: var(--hfdocs-gold);
  border: 1px solid var(--hfdocs-accent);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #fff1df);
  box-shadow:
    inset 0 0 0 7px rgba(255, 112, 69, 0.055),
    11px 13px 0 rgba(87, 66, 42, 0.3);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.hero-art-orbit {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px dashed rgba(244, 201, 93, 0.35);
  border-radius: 50%;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 50px;
}

.fact-card,
.download-card,
.preset-card,
.recipe-card {
  padding: 20px;
  border: 1px solid var(--hfdocs-line);
  border-radius: var(--hfdocs-radius);
  background: var(--hfdocs-panel);
}

.fact-label,
.card-kicker {
  color: var(--hfdocs-faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.fact-card code {
  color: var(--hfdocs-gold);
  font-family: var(--hfdocs-mono);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hfdocs-toc);
  gap: 56px;
  align-items: start;
}

.docs-content {
  min-width: 0;
}

.docs-content > section:first-child > :first-child,
.docs-content > :first-child {
  margin-top: 0;
}

.docs-content h2,
.docs-content h3,
.docs-content h4 {
  color: var(--hfdocs-text);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.docs-content h2 {
  margin: 58px 0 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.docs-content h3 {
  margin: 38px 0 14px;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
}

.docs-content h4 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.docs-content p,
.docs-content li {
  color: var(--hfdocs-muted);
}

.docs-content p {
  margin: 0 0 17px;
}

.docs-content strong {
  color: var(--hfdocs-text);
}

.docs-content a:not(.primary-button):not(.secondary-button):not(.ghost-button) {
  color: var(--hfdocs-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-content ul,
.docs-content ol {
  margin: 0 0 22px;
  padding-left: 23px;
}

.docs-content li {
  margin: 7px 0;
}

.docs-content code:not(pre code) {
  padding: 0.16em 0.4em;
  color: #ffd98a;
  border: 1px solid var(--hfdocs-line-soft);
  border-radius: 5px;
  background: #fff7ed;
  font-family: var(--hfdocs-mono);
  font-size: 0.88em;
}

.docs-content table {
  display: table;
  width: 100%;
  table-layout: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--hfdocs-line);
  border-radius: 13px;
  border-collapse: collapse;
  background: var(--hfdocs-bg-elevated);
}

.docs-content thead,
.docs-content tbody,
.docs-content tr {
  width: 100%;
}

.docs-content th,
.docs-content td {
  min-width: 112px;
  padding: 12px 14px;
  border-right: 1px solid var(--hfdocs-line-soft);
  border-bottom: 1px solid var(--hfdocs-line-soft);
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  color: var(--hfdocs-gold);
  background: #fff7ed;
  font-size: 12px;
}

.docs-content td {
  color: var(--hfdocs-muted);
  font-size: 13px;
}

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

.docs-content th:last-child,
.docs-content td:last-child {
  border-right: 0;
}

.doc-callout {
  display: block;
  margin: 23px 0;
  padding: 18px 20px;
  color: var(--hfdocs-text);
  border: 1px solid rgba(244, 201, 93, 0.33);
  border-left: 4px solid var(--hfdocs-gold);
  border-radius: 11px;
  background: rgba(244, 201, 93, 0.055);
}

.doc-callout.note {
  border-color: rgba(123, 198, 230, 0.32);
  border-left-color: var(--hfdocs-blue);
  background: rgba(123, 198, 230, 0.055);
}

.doc-callout.warning {
  border-color: rgba(255, 133, 133, 0.35);
  border-left-color: var(--hfdocs-danger);
  background: rgba(255, 133, 133, 0.055);
}

.code-block {
  position: relative;
  overflow: auto;
  margin: 20px 0 28px;
  padding: 24px 66px 24px 22px;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-line);
  border-radius: 13px;
  background: var(--hfdocs-code);
  box-shadow: inset 0 1px 0 rgba(233, 86, 47, 0.035);
  line-height: 1.55;
  tab-size: 2;
}

.code-block code {
  font-family: var(--hfdocs-mono);
  font-size: 12.8px;
  white-space: pre;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--hfdocs-muted);
  border: 1px solid var(--hfdocs-line);
  border-radius: 7px;
  background: #fff7ed;
  font-size: 10px;
  font-weight: 800;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: var(--hfdocs-text);
  border-color: var(--hfdocs-accent);
  outline: none;
}

.class-cheat-sheet {
  margin: 0 0 28px;
  padding: 26px;
  border: 1px solid var(--hfdocs-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 30px rgba(87, 66, 42, 0.08);
}

.class-cheat-family + .class-cheat-family {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--hfdocs-line-soft);
}

.class-cheat-sheet h2 {
  margin: 0;
}

.class-cheat-intro {
  margin: 8px 0 18px;
  color: var(--hfdocs-muted);
}

.class-cheat-family-example {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 12px;
  margin: 0 0 16px;
}

.class-cheat-family-example .class-cheat-preview,
.class-cheat-family-example .code-block {
  min-height: 86px;
  margin: 0;
}

.class-cheat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
}

.class-cheat-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--hfdocs-line-soft);
  border-radius: 12px;
  background: var(--hfdocs-panel);
}

.class-cheat-preview {
  display: grid;
  place-items: center;
  min-height: 76px;
  margin: 0 0 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--hfdocs-line-soft);
  background: var(--hfdocs-panel-soft);
}

.class-cheat-preview-object {
  display: grid;
  place-items: center;
  min-width: 116px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-text);
  background: var(--hfdocs-panel);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-cheat-preview-stagger {
  display: flex;
  gap: 6px;
}

.class-cheat-preview-stagger span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hfdocs-text);
  background: var(--hfdocs-panel);
  font-size: 10px;
  font-weight: 800;
}

.class-cheat-card .code-block {
  margin: 0 0 11px;
  padding: 16px 58px 16px 14px;
}

.class-cheat-card p {
  margin: 0;
  color: var(--hfdocs-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .class-cheat-family-example {
    grid-template-columns: 1fr;
  }
}

.page-toc {
  position: sticky;
  top: calc(var(--hfdocs-header) + 28px);
  max-height: calc(100vh - var(--hfdocs-header) - 56px);
  overflow-y: auto;
  padding-left: 18px;
  border-left: 1px solid var(--hfdocs-line-soft);
}

.page-toc-title {
  margin: 0 0 10px;
  color: var(--hfdocs-faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.toc-link.depth-3 {
  padding-left: 12px;
  font-size: 11px;
}

.toc-link:hover,
.toc-link.active {
  color: var(--hfdocs-gold);
}

.demo-lab {
  position: relative;
  overflow: hidden;
  margin: 0 0 52px;
  padding: 26px;
  border: 1px solid var(--hfdocs-line);
  border-radius: var(--hfdocs-radius-lg);
  background: linear-gradient(145deg, var(--hfdocs-panel), #fff3e4);
}

.demo-lab-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.demo-lab-header h2 {
  margin: 3px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
}

.demo-lab-header p {
  max-width: 580px;
  margin: 0;
  color: var(--hfdocs-muted);
  font-size: 13px;
}

.demo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--hfdocs-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(244, 201, 93, 0.075), transparent 38%),
    repeating-linear-gradient(0deg, rgba(36, 26, 19, 0.03) 0 1px, transparent 1px 28px),
    #fff7ed;
}

.demo-stage.tall {
  min-height: 480px;
}

.demo-stage::before,
.demo-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.demo-stage::before {
  inset: 50% 0 auto;
  border-top: 1px dashed rgba(36, 26, 19, 0.1);
}

.demo-stage::after {
  inset: 0 auto 0 50%;
  border-left: 1px dashed rgba(36, 26, 19, 0.1);
}

.demo-object {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(320px, 72%);
  min-height: 170px;
  padding: 28px;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-accent);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #fff1df);
  box-shadow:
    inset 0 0 0 7px rgba(255, 112, 69, 0.045),
    12px 14px 0 rgba(87, 66, 42, 0.27);
  text-align: center;
}

.demo-object strong {
  display: block;
  color: var(--hfdocs-gold);
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  letter-spacing: -0.05em;
}

.demo-object small {
  display: block;
  margin-top: 6px;
  color: var(--hfdocs-muted);
  font-family: var(--hfdocs-mono);
}

.parallax-orb {
  width: min(280px, 60%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), transparent 18%),
    radial-gradient(circle at 60% 70%, rgba(244, 201, 93, 0.35), transparent 34%),
    linear-gradient(145deg, #ff7045, #7b271a 72%);
  box-shadow:
    inset -22px -28px 48px rgba(87, 66, 42, 0.35),
    0 32px 70px rgba(255, 112, 69, 0.24);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.demo-toolbar .demo-status {
  color: var(--hfdocs-faint);
  font-family: var(--hfdocs-mono);
  font-size: 11px;
}

.stagger-demo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 92%);
}

.stagger-demo-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--hfdocs-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, #fff3e4);
}

.stagger-demo-card strong {
  color: var(--hfdocs-gold);
  font-size: 1.25rem;
}

.stack-demo {
  position: relative;
  z-index: 2;
  width: min(430px, 82%);
}

.stack-demo-card {
  padding: 32px;
  border: 1px solid var(--hfdocs-accent);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #fff3e4);
  box-shadow: 12px 14px 0 rgba(87, 66, 42, 0.28);
  transition: transform 180ms ease, border-color 180ms ease;
}

.stack-demo-card:hover {
  transform: translateY(-8px) rotate(1deg);
  border-color: var(--hfdocs-gold);
}

.download-grid,
.preset-grid,
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0 36px;
}

.download-card,
.preset-card,
.recipe-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.download-card h3,
.preset-card h3,
.recipe-card h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.download-card p,
.preset-card p,
.recipe-card p {
  color: var(--hfdocs-muted);
  font-size: 13px;
}

.download-card .card-actions,
.preset-card .card-actions,
.recipe-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.preset-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 14px 0 18px;
  overflow: hidden;
  border: 1px solid var(--hfdocs-line-soft);
  border-radius: 12px;
  background: #fff7ed;
}

.preset-preview-object {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: var(--hfdocs-gold);
  border: 1px solid var(--hfdocs-accent);
  border-radius: 18px;
  background: #fff1df;
  font-family: var(--hfdocs-mono);
  font-size: 11px;
}

.playground-shell {
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: 22px;
  margin: 0 0 54px;
}

[data-simple-customizer] > .docs-content {
  grid-column: 1 / -1;
  width: 100%;
}

.playground-controls,
.playground-preview-panel {
  padding: 22px;
  border: 1px solid var(--hfdocs-line);
  border-radius: var(--hfdocs-radius-lg);
  background: var(--hfdocs-panel);
}

.playground-controls h2,
.playground-preview-panel h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

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

.control-field {
  display: grid;
  gap: 6px;
}

.control-field.wide {
  grid-column: 1 / -1;
}

.control-field[hidden] {
  display: none !important;
}

.control-field label,
.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--hfdocs-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-field output {
  color: var(--hfdocs-gold);
  font-family: var(--hfdocs-mono);
  font-size: 10px;
}

.control-field select,
.control-field input[type="text"],
.control-field input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-line);
  border-radius: 9px;
  background: #ffffff;
  outline: none;
}

.control-field select:focus,
.control-field input:focus {
  border-color: var(--hfdocs-accent);
  box-shadow: 0 0 0 3px rgba(255, 112, 69, 0.11);
}

.control-field input[type="range"] {
  width: 100%;
  accent-color: var(--hfdocs-accent);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--hfdocs-line);
  border-radius: 9px;
  background: #ffffff;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--hfdocs-accent);
}

.playground-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--hfdocs-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(255, 112, 69, 0.09), transparent 34%),
    repeating-linear-gradient(0deg, rgba(36, 26, 19, 0.03) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(36, 26, 19, 0.03) 0 1px, transparent 1px 30px),
    #fff7ed;
}

.playground-object {
  display: grid;
  place-items: center;
  width: min(330px, 72%);
  min-height: 180px;
  padding: 28px;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-accent);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #fff1df);
  box-shadow: 12px 14px 0 rgba(87, 66, 42, 0.28);
  text-align: center;
}

.playground-object strong {
  color: var(--hfdocs-gold);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.playground-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.code-panel h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.search-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 20px 30px;
  background: rgba(3, 4, 5, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.search-open .search-overlay {
  display: flex;
}

.search-dialog {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--hfdocs-line);
  border-radius: 18px;
  background: #fff7ed;
  box-shadow: 0 34px 110px rgba(87, 66, 42, 0.55);
}

.search-dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--hfdocs-line-soft);
}

.search-dialog-head input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  color: var(--hfdocs-text);
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem;
}

.search-results {
  max-height: 58vh;
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: block;
  padding: 13px 14px;
  color: var(--hfdocs-text);
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: var(--hfdocs-line);
  background: rgba(233, 86, 47, 0.04);
  outline: none;
}

.search-result strong {
  display: block;
  margin-bottom: 2px;
}

.search-result small {
  color: var(--hfdocs-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-result p {
  margin: 5px 0 0;
  color: var(--hfdocs-muted);
  font-size: 12px;
}

.search-empty {
  padding: 38px 20px;
  color: var(--hfdocs-muted);
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 76px;
  padding-top: 28px;
  color: var(--hfdocs-faint);
  border-top: 1px solid var(--hfdocs-line-soft);
  font-size: 12px;
}

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

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

@media (max-width: 1220px) {
  :root {
    --hfdocs-sidebar: 264px;
    --hfdocs-toc: 200px;
  }

  .site-main {
    padding-inline: 34px;
  }

  .content-layout {
    gap: 34px;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto minmax(180px, 1fr) auto;
  }

  .brand-copy {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .sidebar {
    width: min(330px, 88vw);
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 24px 0 70px rgba(87, 66, 42, 0.5);
  }

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

  body.nav-open::after {
    content: "";
    position: fixed;
    z-index: 70;
    inset: var(--hfdocs-header) 0 0;
    background: rgba(87, 66, 42, 0.55);
  }

  .site-layout {
    grid-template-columns: 1fr;
  }

  .site-main {
    grid-column: 1;
    width: 100%;
  }

  .page-toc {
    display: none;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .docs-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

  .hero-art {
    min-height: 260px;
  }

  .quick-facts,
  .download-grid,
  .preset-grid,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .playground-shell {
    grid-template-columns: 1fr;
  }

  .playground-code-grid {
    grid-template-columns: 1fr;
  }

  .stagger-demo-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 8px;
    padding: 0 10px;
  }

  .header-search {
    min-width: 0;
  }

  .search-trigger {
    min-width: 0;
    padding-inline: 11px;
  }

  .search-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-trigger kbd {
    display: none;
  }

  .site-main {
    padding: 28px 14px 72px;
  }

  .page-hero {
    padding: 32px 22px;
    border-radius: 18px;
  }

  .page-hero h1 {
    font-size: clamp(2.75rem, 16vw, 4.4rem);
  }

  .hero-art {
    padding: 14px;
  }

  .quick-facts {
    gap: 10px;
  }

  .demo-lab {
    padding: 18px;
    border-radius: 18px;
  }

  .demo-lab-header {
    display: block;
  }

  .demo-lab-header p {
    margin-top: 8px;
  }

  .demo-stage {
    min-height: 320px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .control-field.wide {
    grid-column: auto;
  }

  .playground-controls,
  .playground-preview-panel {
    padding: 16px;
    border-radius: 17px;
  }

  .playground-stage {
    min-height: 360px;
  }

  .code-block {
    padding: 20px 52px 20px 14px;
  }

  .code-block code {
    font-size: 11.6px;
  }

  .site-footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --hfdocs-text: #111;
    --hfdocs-muted: #444;
  }

  body {
    color: #111;
    background: #fff;
  }

  .site-header,
  .sidebar,
  .page-toc,
  .search-overlay,
  .demo-lab,
  .hero-art,
  .copy-button,
  .hero-actions,
  .quick-facts {
    display: none !important;
  }

  .site-layout,
  .site-main,
  .content-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .page-hero {
    min-height: 0;
    margin: 0 0 30px;
    padding: 0 0 22px;
    color: #111;
    border: 0;
    border-bottom: 1px solid #bbb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-hero p,
  .docs-content p,
  .docs-content li,
  .docs-content td {
    color: #222;
  }

  .page-hero h1,
  .docs-content h2,
  .docs-content h3,
  .docs-content strong {
    color: #000;
  }

  .code-block {
    color: #111;
    border-color: #bbb;
    background: #f3f3f3;
    white-space: pre-wrap;
  }

  .docs-content table {
    display: table;
    color: #111;
    border-color: #aaa;
  }

  .docs-content th {
    color: #111;
    background: #eee;
  }
}

/* Light-mode hardening for demo surfaces that intentionally used dark literals. */
.sidebar,
.page-toc,
.playground-controls,
.playground-preview-panel,
.code-panel,
.search-dialog,
.demo-panel,
.demo-card,
.recipe-card,
.download-card,
.fact-card,
.attribute-table,
.docs-content table,
.doc-callout {
  color: var(--hfdocs-text);
  background: var(--hfdocs-panel);
  border-color: var(--hfdocs-line-soft);
}

.hero-art,
.playground-stage,
.demo-stage,
.motion-stack-demo,
.preset-preview,
.comparison-demo {
  color: var(--hfdocs-text);
  background:
    repeating-linear-gradient(0deg, rgba(36, 26, 19, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(36, 26, 19, 0.03) 0 1px, transparent 1px 28px),
    #fff7ed;
  border-color: var(--hfdocs-line);
}

.hero-art-card,
.playground-object,
.demo-object,
.motion-card,
.preset-card {
  color: var(--hfdocs-text);
  background: linear-gradient(145deg, #ffffff, #fff1df);
  border-color: var(--hfdocs-line);
}

pre.code-block,
.code-block,
.inline-code,
code,
kbd,
.keyboard-key {
  color: #3a261a;
  background: var(--hfdocs-code);
  border-color: var(--hfdocs-line-soft);
}

.search-overlay {
  background: rgba(36, 26, 19, 0.24);
}

.search-result:hover,
.search-result:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  background: var(--hfdocs-panel-soft);
}
