/*
 * HF Motion — Bauhaus / Swedish retro design study
 * Visual design layer for the HF Motion documentation site.
 */

@font-face {
  font-family: "Grotesco";
  src: url("fonts/Grotesco-Book.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Grotesco";
  src: url("fonts/Grotesco-ExtraBold.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --hfdocs-bg: #f1f3f2;
  --hfdocs-bg-elevated: #ffffff;
  --hfdocs-panel: #ffffff;
  --hfdocs-panel-soft: #eaf2ef;
  --hfdocs-code: #f1f3f2;
  --hfdocs-line: #9aa39f;
  --hfdocs-line-soft: #cbd3d0;
  --hfdocs-text: #272727;
  --hfdocs-muted: #4e544f;
  --hfdocs-faint: #707771;
  --hfdocs-accent: #e7672f;
  --hfdocs-accent-strong: #c44720;
  --hfdocs-gold: #d18a43;
  --hfdocs-mint: #eaf2ef;
  --hfdocs-warm-soft: #f7eee5;
  --hfdocs-green: #272727;
  --hfdocs-blue: #d18a43;
  --hfdocs-danger: #c93027;
  --hfdocs-sidebar: 248px;
  --hfdocs-toc: 210px;
  --hfdocs-header: 86px;
  --hfdocs-radius-sm: 0;
  --hfdocs-radius: 0;
  --hfdocs-radius-lg: 0;
  --hfdocs-shadow: none;
  --hfdocs-font: "Grotesco", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
}

html {
  background: var(--hfdocs-bg);
}

body {
  color: var(--hfdocs-text);
  background: var(--hfdocs-bg);
  font-size: 15px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.brand-copy,
.primary-button,
.secondary-button,
.icon-button {
  font-weight: 800;
}

::selection {
  color: #fff;
  background: var(--hfdocs-accent);
}

.skip-link {
  color: #fff;
  border-radius: 0;
  background: var(--hfdocs-text);
  box-shadow: 0 4px 0 var(--hfdocs-accent);
}

.site-header {
  grid-template-columns: var(--hfdocs-sidebar) minmax(260px, 1fr) auto;
  gap: 28px;
  height: var(--hfdocs-header);
  padding: 0 34px;
  border-bottom: 1px solid var(--hfdocs-line);
  background: rgba(241, 243, 240, 0.96);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--hfdocs-text);
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  font-size: 17px;
  letter-spacing: -0.045em;
}

.brand-copy small {
  color: var(--hfdocs-faint);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.search-trigger {
  width: min(720px, 100%);
  padding: 11px 13px;
  border: 1px solid var(--hfdocs-line);
  border-bottom: 4px solid var(--hfdocs-text);
  border-radius: 0;
  background: var(--hfdocs-bg-elevated);
}

.search-trigger:hover,
.search-trigger:focus-visible {
  border-color: var(--hfdocs-text);
  border-bottom-color: var(--hfdocs-accent);
  box-shadow: none;
}

.search-trigger kbd,
.keyboard-key {
  border-radius: 0;
  background: transparent;
}

.icon-button,
.ghost-button,
.primary-button,
.secondary-button {
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid var(--hfdocs-text);
  border-bottom: 4px solid #272727;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  border-color: var(--hfdocs-text);
  background: var(--hfdocs-text);
  box-shadow: none;
}

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

.search-trigger,
.copy-button {
  border-bottom: 4px solid #272727;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  transition:
    padding-right 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.primary-button:active {
  padding-right: 24px;
  color: var(--hfdocs-text);
  border-color: var(--hfdocs-text);
  border-bottom-color: #272727;
  background: var(--hfdocs-bg-elevated);
  box-shadow: none;
  transform: none;
}

.secondary-button:hover,
.secondary-button:focus-visible,
.secondary-button:active,
.icon-button:hover,
.icon-button:focus-visible,
.icon-button:active,
.ghost-button:hover,
.ghost-button:focus-visible,
.ghost-button:active {
  padding-right: 24px;
  color: #fff;
  border-color: #272727;
  border-bottom-color: #272727;
  background: #272727;
  box-shadow: none;
  transform: none;
}

.search-trigger:hover,
.search-trigger:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  color: #fff;
  border-color: #272727;
  border-bottom-color: #272727;
  background: #272727;
  transform: none;
}

.search-trigger:hover kbd,
.search-trigger:focus-visible kbd {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.site-layout {
  padding-top: var(--hfdocs-header);
}

.sidebar {
  top: var(--hfdocs-header);
  width: var(--hfdocs-sidebar);
  padding: 38px 25px 90px 34px;
  border-right: 1px solid var(--hfdocs-line);
  background: var(--hfdocs-bg);
}

.offline-badge {
  margin: 0 0 32px;
  padding: 11px 10px;
  border: 1px solid var(--hfdocs-line);
  border-bottom: 4px solid var(--hfdocs-text);
  border-radius: 0;
  background: var(--hfdocs-bg-elevated);
}

.offline-badge::before {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: var(--hfdocs-green);
  box-shadow: none;
}

.nav-group {
  margin-bottom: 28px;
}

.sidebar-license {
  margin-inline: 0;
  color: var(--hfdocs-muted);
  border-color: var(--hfdocs-line);
}

.nav-group-title {
  margin: 0 0 9px;
  color: var(--hfdocs-text);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.nav-link {
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--hfdocs-text);
  border-bottom-color: var(--hfdocs-text);
  background: transparent;
}

.nav-link[aria-current="page"] {
  padding-left: 13px;
  box-shadow: inset 5px 0 0 var(--hfdocs-accent);
  font-weight: 800;
}

.site-main {
  width: min(1460px, calc(100vw - var(--hfdocs-sidebar)));
  padding: 60px 62px 110px;
}

.breadcrumbs {
  gap: 9px;
  margin-bottom: 24px;
  color: var(--hfdocs-faint);
  font-size: 10px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

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

.page-hero {
  isolation: isolate;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 72px;
  min-height: 430px;
  margin-bottom: 50px;
  padding: 74px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--hfdocs-line);
  border-bottom: 1px solid var(--hfdocs-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background: var(--hfdocs-mint);
}

.page-hero::after {
  content: none;
  display: none;
}

.eyebrow {
  color: var(--hfdocs-accent);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  font-size: clamp(3.3rem, 7.2vw, 7.1rem);
  line-height: 0.86;
  letter-spacing: -0.078em;
}

.page-hero p {
  max-width: 630px;
  color: var(--hfdocs-muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 32px;
}

.hero-art {
  min-height: 286px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--hfdocs-text);
  border-bottom: 8px solid var(--hfdocs-text);
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 74%, rgba(32, 34, 32, 0.06) 74% 75%, transparent 75%),
    linear-gradient(0deg, transparent 0 72%, rgba(32, 34, 32, 0.06) 72% 73%, transparent 73%),
    var(--hfdocs-bg-elevated);
  box-shadow: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 18%;
  right: 12%;
  width: clamp(76px, 20%, 118px);
  aspect-ratio: 1;
  background: var(--hfdocs-mint);
  transform: rotate(7deg);
}

.hero-art-card {
  position: relative;
  z-index: 3;
  width: min(230px, 78%);
  aspect-ratio: 1.25;
  color: #fff;
  border: 1px solid var(--hfdocs-text);
  border-radius: 0;
  background: var(--hfdocs-text);
  box-shadow: 12px 12px 0 var(--hfdocs-accent);
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.055em;
}

.hero-art-orbit {
  position: absolute;
  z-index: 1;
  left: 5%;
  bottom: -22%;
  width: min(64%, 270px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--hfdocs-gold);
}

.quick-facts {
  gap: 18px;
  margin-bottom: 74px;
}

.fact-card,
.download-card,
.preset-card,
.recipe-card {
  padding: 23px;
  border: 1px solid var(--hfdocs-line);
  border-bottom: 6px solid var(--hfdocs-text);
  border-radius: 0;
  background: var(--hfdocs-bg-elevated);
}

.fact-card:nth-child(2) {
  background: var(--hfdocs-mint);
}

.fact-card:nth-child(3) {
  background: #f4e9dd;
}

.fact-label,
.card-kicker {
  color: var(--hfdocs-faint);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.fact-card strong {
  margin-top: 15px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.content-layout {
  gap: 70px;
}

.docs-content h2 {
  margin: 84px 0 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hfdocs-line);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

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

.docs-content h3 {
  margin-top: 44px;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
}

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

.docs-content a:not(.primary-button):not(.secondary-button):not(.ghost-button) {
  color: var(--hfdocs-text);
  text-decoration-color: var(--hfdocs-accent);
  text-decoration-thickness: 2px;
}

.docs-content code:not(pre code) {
  color: #272727;
  border-color: #aab3ad;
  background: #f8f4e9;
  font-weight: 650;
}

.docs-content ul,
.docs-content ol {
  padding-left: 21px;
}

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

.doc-callout {
  margin: 30px 0;
  padding: 21px 23px;
  border: 1px solid var(--hfdocs-line);
  border-left: 7px solid var(--hfdocs-gold);
  border-bottom: 5px solid var(--hfdocs-text);
  border-radius: 0;
  background: #f3ecd6;
}

.doc-callout.note {
  border-color: var(--hfdocs-line);
  border-left-color: var(--hfdocs-blue);
  border-bottom-color: var(--hfdocs-text);
  background: var(--hfdocs-mint);
}

pre.code-block,
.code-block {
  margin: 24px 0 34px;
  padding: 26px 70px 26px 24px;
  border: 1px solid var(--hfdocs-line);
  border-bottom: 6px solid var(--hfdocs-text);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.copy-button {
  top: 12px;
  right: 12px;
  border: 1px solid var(--hfdocs-text);
  border-radius: 0;
  background: var(--hfdocs-bg-elevated);
}

.download-grid,
.preset-grid,
.recipe-grid {
  gap: 20px;
  margin: 30px 0 48px;
}

.download-card,
.preset-card,
.recipe-card {
  min-height: 220px;
}

.download-card h3,
.preset-card h3,
.recipe-card h3 {
  margin-top: 14px;
  font-size: 1.35rem;
}

.download-card:nth-child(1) {
  background: #ffffff;
}

.download-card:nth-child(2) {
  background: #f4e9dd;
}

.download-card:nth-child(3) {
  background: var(--hfdocs-mint);
}

.recipe-card:nth-child(1) {
  background: var(--hfdocs-mint);
}

.recipe-card:nth-child(2) {
  background: var(--hfdocs-warm-soft);
}

.recipe-card:nth-child(3) {
  background: #ffffff;
}

.page-toc {
  top: calc(var(--hfdocs-header) + 36px);
  padding: 14px 0 14px 20px;
  border-left: 1px solid var(--hfdocs-line);
}

.page-toc-title {
  color: var(--hfdocs-text);
}

.toc-link {
  padding: 7px 0;
}

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

.site-footer {
  margin-top: 100px;
  padding: 34px 0 8px;
  color: var(--hfdocs-muted);
  border-top: 1px solid var(--hfdocs-line);
}

.footer-brand::before {
  content: "";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  color: #fff;
  border-radius: 50%;
  background: transparent url("hfd-icon.png") center / 100% no-repeat;
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
}

.footer-brand {
  display: grid;
  gap: 3px;
  text-align: center;
}

.footer-brand a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-overlay {
  background: rgba(32, 34, 32, 0.74);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.search-dialog {
  border: 1px solid var(--hfdocs-text);
  border-bottom: 8px solid var(--hfdocs-text);
  border-radius: 0;
  background: var(--hfdocs-bg-elevated);
  box-shadow: 14px 14px 0 var(--hfdocs-accent);
}

.search-result {
  border-radius: 0;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: var(--hfdocs-line);
  background: var(--hfdocs-panel-soft);
}

/* Shared inner-page component rollout */
.class-cheat-sheet,
.class-cheat-card,
.demo-lab,
.demo-stage,
.demo-object,
.stagger-demo-card,
.stack-demo-card,
.preset-preview,
.preset-preview-object,
.playground-controls,
.playground-preview-panel,
.playground-stage,
.playground-object,
.docs-content table,
.control-field select,
.control-field input[type="text"],
.control-field input[type="number"],
.toggle-row {
  border-radius: 0;
  box-shadow: none;
}

.class-cheat-sheet,
.demo-lab,
.playground-controls,
.playground-preview-panel {
  border: 1px solid var(--hfdocs-line);
  border-bottom: 6px solid var(--hfdocs-text);
  background: var(--hfdocs-bg-elevated);
}

.class-cheat-card,
.stagger-demo-card,
.preset-preview,
.playground-stage {
  border: 1px solid var(--hfdocs-line);
  border-bottom: 5px solid var(--hfdocs-text);
  background: var(--hfdocs-mint);
}

.class-cheat-preview {
  border-color: var(--hfdocs-line);
  background: var(--hfdocs-mint);
}

.demo-stage,
.preset-preview,
.playground-stage {
  background:
    repeating-linear-gradient(0deg, rgba(39, 39, 39, 0.035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(39, 39, 39, 0.03) 0 1px, transparent 1px 30px),
    var(--hfdocs-mint);
}

.demo-object,
.playground-object,
.stack-demo-card,
.preset-preview-object {
  border: 1px solid var(--hfdocs-text);
  border-bottom: 6px solid var(--hfdocs-text);
  background: var(--hfdocs-bg-elevated);
  box-shadow: 10px 10px 0 var(--hfdocs-accent);
}

.demo-object strong,
.playground-object strong,
.stagger-demo-card strong {
  color: var(--hfdocs-text);
}

.docs-content table {
  border-color: var(--hfdocs-line);
  border-bottom: 5px solid var(--hfdocs-text);
}

.docs-content th {
  color: var(--hfdocs-text);
  background: var(--hfdocs-mint);
}

.playground-code-grid .code-panel {
  padding: 22px;
}

.playground-code-grid .code-panel .code-block {
  margin-inline: 0;
}

/* Cookbook recipe previews */
.cookbook-demo {
  position: relative;
  display: grid;
  min-height: 280px;
  margin: 26px 0 38px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--hfdocs-line);
  border-bottom: 6px solid var(--hfdocs-text);
  background:
    linear-gradient(90deg, transparent 0 74%, rgba(32, 34, 32, 0.055) 74% 75%, transparent 75%),
    linear-gradient(0deg, transparent 0 72%, rgba(32, 34, 32, 0.055) 72% 73%, transparent 73%),
    var(--hfdocs-bg-elevated);
}

.cookbook-demo strong {
  display: block;
  color: var(--hfdocs-text);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.cookbook-demo p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--hfdocs-muted);
  font-size: 0.9rem;
}

.cookbook-demo-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--hfdocs-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookbook-demo-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  padding: 10px 15px;
  color: #fff;
  border: 1px solid var(--hfdocs-text);
  border-bottom: 4px solid var(--hfdocs-text);
  background: var(--hfdocs-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookbook-demo-hero,
.cookbook-demo-showcase,
.cookbook-demo-split {
  grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.cookbook-demo-copy,
.cookbook-demo-static-copy {
  position: relative;
  z-index: 2;
}

.cookbook-demo-product {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(230px, 82%);
  aspect-ratio: 0.78;
  margin-inline: auto;
  color: #fff;
  border: 1px solid var(--hfdocs-text);
  background: var(--hfdocs-text);
  box-shadow: 14px 14px 0 var(--hfdocs-gold);
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.cookbook-demo-hero::before {
  content: "";
  position: absolute;
  left: 6%;
  bottom: -32%;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hfdocs-mint);
}

.cookbook-demo-showcase-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(240px, 84%);
  aspect-ratio: 1;
  margin-inline: auto;
  color: var(--hfdocs-text);
  border: 1px solid var(--hfdocs-text);
  border-radius: 50%;
  background: var(--hfdocs-gold);
  font-size: 3rem;
  font-weight: 950;
}

.cookbook-demo-showcase-art i {
  position: absolute;
  right: -15%;
  bottom: 4%;
  width: 44%;
  height: 22%;
  background: var(--hfdocs-accent);
  transform: rotate(-8deg);
}

.cookbook-demo-split-art {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px solid var(--hfdocs-text);
  background: var(--hfdocs-mint);
}

.cookbook-demo-split-art > div {
  width: 64%;
  aspect-ratio: 0.8;
  border: 1px solid var(--hfdocs-text);
  background: var(--hfdocs-blue);
  box-shadow: 12px 12px 0 var(--hfdocs-gold);
}

.cookbook-demo-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cookbook-demo-features article {
  padding: 22px;
  border: 1px solid var(--hfdocs-text);
  border-bottom: 5px solid var(--hfdocs-text);
  background: var(--hfdocs-bg-elevated);
}

.cookbook-demo-features article:nth-child(2) {
  background: var(--hfdocs-mint);
}

.cookbook-demo-features article:nth-child(3) {
  background: var(--hfdocs-warm-soft);
}

.cookbook-demo-features article > span,
.cookbook-demo-editorial article > span {
  display: block;
  margin-bottom: 28px;
  color: var(--hfdocs-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookbook-demo-features strong {
  font-size: 1.2rem;
  line-height: 1.05;
}

.cookbook-demo-features p {
  font-size: 0.78rem;
}

.cookbook-demo-cinematic {
  display: grid;
  place-items: center;
  min-height: 380px;
  background: var(--hfdocs-text);
}

.cookbook-demo-cinematic > div {
  width: min(680px, 94%);
}

.cookbook-demo-cinematic-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 290px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  border: 1px solid #fff;
  background:
    radial-gradient(circle at 76% 34%, var(--hfdocs-gold) 0 15%, transparent 15.5%),
    linear-gradient(154deg, transparent 0 48%, var(--hfdocs-blue) 48.5% 65%, var(--hfdocs-accent) 65.5% 100%),
    var(--hfdocs-mint);
  font-size: clamp(1.6rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.cookbook-demo-editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.cookbook-demo-editorial article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--hfdocs-text);
  border-bottom: 7px solid var(--hfdocs-text);
  background: var(--hfdocs-mint);
}

.cookbook-demo-editorial article:nth-child(2) {
  background: var(--hfdocs-warm-soft);
}

.cookbook-demo-editorial strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.control-field select,
.control-field input[type="text"],
.control-field input[type="number"],
.toggle-row {
  border-color: var(--hfdocs-line);
  border-bottom: 3px solid var(--hfdocs-text);
  background: var(--hfdocs-bg-elevated);
}

.control-field select:focus,
.control-field input:focus {
  border-color: var(--hfdocs-text);
  box-shadow: 0 0 0 3px rgba(47, 155, 127, 0.18);
}

.class-cheat-family + .class-cheat-family {
  border-top-color: var(--hfdocs-line);
}

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

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

  .page-hero {
    gap: 44px;
  }
}

@media (max-width: 1040px) {
  .site-header {
    padding-inline: 22px;
  }

  .sidebar {
    padding-left: 25px;
    background: var(--hfdocs-bg);
    box-shadow: 12px 0 0 var(--hfdocs-accent);
  }

  .site-main {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 54px 0;
  }

  .page-hero::before {
    top: auto;
    width: 100%;
    height: 42%;
  }

  .page-hero::after {
    right: 10%;
    bottom: 34%;
  }

  .hero-art {
    width: min(520px, 100%);
    min-height: 280px;
  }

  .quick-facts {
    gap: 14px;
  }

  .cookbook-demo-hero,
  .cookbook-demo-showcase,
  .cookbook-demo-split {
    grid-template-columns: 1fr;
  }

  .cookbook-demo-product,
  .cookbook-demo-showcase-art {
    width: min(220px, 72%);
  }
}

@media (max-width: 620px) {
  :root {
    --hfdocs-header: 72px;
  }

  .site-header {
    padding-inline: 12px;
  }

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

  .site-main {
    padding: 38px 18px 80px;
  }

  .page-hero {
    min-height: 0;
    padding: 44px 0;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .hero-art {
    min-height: 245px;
    padding: 22px;
  }

  .hero-art::before {
    top: 15%;
    right: 8%;
    width: 78px;
  }

  .content-layout {
    gap: 0;
  }

  .docs-content h2 {
    margin-top: 66px;
  }

  .fact-card,
  .download-card,
  .preset-card,
  .recipe-card {
    padding: 20px;
  }

  .cookbook-demo {
    padding: 24px;
  }

  .cookbook-demo-features,
  .cookbook-demo-editorial {
    grid-template-columns: 1fr;
  }

  .cookbook-demo-cinematic {
    min-height: 300px;
  }

  .cookbook-demo-cinematic-image {
    min-height: 230px;
  }

  .footer-brand::before {
    margin-bottom: 22px;
  }
}

@media print {
  .page-hero {
    border-top: 0;
  }
}
