/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 704px;
  --sidebar-width: 272px;
  --page-width: 1408px;
  --logo-height: 20px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


:root {
  --accent-1: #09110f;
  --accent-2: #101b18;
  --accent-3: #0d2d26;
  --accent-4: #023b31;
  --accent-5: #09483c;
  --accent-6: #16574a;
  --accent-7: #1f695a;
  --accent-8: #237f6d;
  --accent-9: #2fe3c2;
  --accent-10: #14d8b8;
  --accent-11: #14d8b8;
  --accent-12: #aff2e0;

  --accent-a1: #00b96303;
  --accent-a2: #23fbd30d;
  --accent-a3: #00ffce20;
  --accent-a4: #00fecc2f;
  --accent-a5: #00fece3d;
  --accent-a6: #27fed54d;
  --accent-a7: #3affd860;
  --accent-a8: #3affda77;
  --accent-a9: #33fed9e2;
  --accent-a10: #15ffd9d6;
  --accent-a11: #15ffd9d6;
  --accent-a12: #b7feebf2;

  --accent-contrast: #072821;
  --accent-surface: #11272280;
  --accent-indicator: #2fe3c2;
  --accent-track: #2fe3c2;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --accent-1: oklch(16.8% 0.0125 176.4);
      --accent-2: oklch(21.2% 0.0175 176.4);
      --accent-3: oklch(27.1% 0.0394 176.4);
      --accent-4: oklch(31.5% 0.0573 176.4);
      --accent-5: oklch(36.1% 0.063 176.4);
      --accent-6: oklch(41.3% 0.0679 176.4);
      --accent-7: oklch(47.2% 0.0762 176.4);
      --accent-8: oklch(53.9% 0.0893 176.4);
      --accent-9: oklch(82.3% 0.145 176.4);
      --accent-10: oklch(79% 0.145 176.4);
      --accent-11: oklch(79% 0.145 176.4);
      --accent-12: oklch(91.1% 0.0708 176.4);

      --accent-a1: color(display-p3 0 0.9333 0.4941 / 0.009);
      --accent-a2: color(display-p3 0.2941 1 0.8392 / 0.05);
      --accent-a3: color(display-p3 0.2863 1 0.8353 / 0.121);
      --accent-a4: color(display-p3 0.2118 0.9961 0.8196 / 0.18);
      --accent-a5: color(display-p3 0.3294 1 0.8275 / 0.234);
      --accent-a6: color(display-p3 0.4157 1 0.851 / 0.296);
      --accent-a7: color(display-p3 0.4745 1 0.8706 / 0.371);
      --accent-a8: color(display-p3 0.4784 1 0.8745 / 0.459);
      --accent-a9: color(display-p3 0.4902 1 0.8706 / 0.871);
      --accent-a10: color(display-p3 0.4627 1 0.8706 / 0.825);
      --accent-a11: color(display-p3 0.4627 1 0.8706 / 0.825);
      --accent-a12: color(display-p3 0.7843 1 0.9373 / 0.938);

      --accent-contrast: #072821;
      --accent-surface: color(display-p3 0.0784 0.149 0.1412 / 0.5);
      --accent-indicator: oklch(82.3% 0.145 176.4);
      --accent-track: oklch(82.3% 0.145 176.4);
    }
  }
}


:root {
  --grayscale-1: #111110;
  --grayscale-2: #191918;
  --grayscale-3: #222221;
  --grayscale-4: #2a2a28;
  --grayscale-5: #31312e;
  --grayscale-6: #3b3a37;
  --grayscale-7: #494844;
  --grayscale-8: #62605b;
  --grayscale-9: #6f6d66;
  --grayscale-10: #7c7b74;
  --grayscale-11: #b5b3ad;
  --grayscale-12: #eeeeec;

  --grayscale-a1: #00000000;
  --grayscale-a2: #f4f4f309;
  --grayscale-a3: #f6f6f513;
  --grayscale-a4: #fefef31b;
  --grayscale-a5: #fbfbeb23;
  --grayscale-a6: #fffaed2d;
  --grayscale-a7: #fffbed3c;
  --grayscale-a8: #fff9eb57;
  --grayscale-a9: #fffae965;
  --grayscale-a10: #fffdee73;
  --grayscale-a11: #fffcf4b0;
  --grayscale-a12: #fffffded;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #6f6d66;
  --grayscale-track: #6f6d66;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --grayscale-1: color(display-p3 0.067 0.067 0.063);
      --grayscale-2: color(display-p3 0.098 0.098 0.094);
      --grayscale-3: color(display-p3 0.135 0.135 0.129);
      --grayscale-4: color(display-p3 0.164 0.163 0.156);
      --grayscale-5: color(display-p3 0.193 0.192 0.183);
      --grayscale-6: color(display-p3 0.23 0.229 0.217);
      --grayscale-7: color(display-p3 0.285 0.282 0.267);
      --grayscale-8: color(display-p3 0.384 0.378 0.357);
      --grayscale-9: color(display-p3 0.434 0.428 0.403);
      --grayscale-10: color(display-p3 0.487 0.481 0.456);
      --grayscale-11: color(display-p3 0.707 0.703 0.68);
      --grayscale-12: color(display-p3 0.933 0.933 0.926);

      --grayscale-a1: #00000000;
      --grayscale-a2: #f4f4f309;
      --grayscale-a3: #f6f6f513;
      --grayscale-a4: #fefef31b;
      --grayscale-a5: #fbfbeb23;
      --grayscale-a6: #fffaed2d;
      --grayscale-a7: #fffbed3c;
      --grayscale-a8: #fff9eb57;
      --grayscale-a9: #fffae965;
      --grayscale-a10: #fffdee73;
      --grayscale-a11: #fffcf4b0;
      --grayscale-a12: #fffffded;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.434 0.428 0.403);
      --grayscale-track: color(display-p3 0.434 0.428 0.403);
    }
  }
}

:root {
  color-scheme: dark;
  --accent: rgba(47, 227, 194, 1);
  --background: rgba(15, 15, 14, 1);
  --border: rgba(38, 38, 36, 1);
  --sidebar-background: rgba(19, 19, 18, 1);
  --header-background: rgba(15, 15, 14, 1);
  --card-background: rgba(24, 24, 22, 1);
  --theme-color: #0f0f0e;
}

.dark { color-scheme: dark; --background: rgba(15, 15, 14, 1); }

/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwRGFWfOw.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwYGFWfOw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwTGFWfOw.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwSGFWfOw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx3cwhsk.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxTcwhsk.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxPcwhsk.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx_cwhsk.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwhsk.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* docs.roor.ai - the screening room.
   The studio's dark language, carried over: warm near-black surfaces,
   bone ink, one mint-teal accent, film grain over everything, slate
   labels in mono, a REC dot, viewfinder corners on cards. Tokens match
   app/globals.css in the studio. Fonts are declared in
   docs/assets/fonts.css; Fern reads the families from the variables. */

:root {
  --font-heading: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  --font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  --radius: 0.5rem !important;

  --stage: #0f0f0e;
  --surface: #181816;
  --surface-2: #201f1c;
  --screen: #0c0c0b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --bone: #f1efe9;
  --ash: #a8a59c;
  --ash-2: #8b8880;
  --teal: #2fe3c2;
  --teal-tint: rgba(47, 227, 194, 0.12);
  --teal-glow: rgba(47, 227, 194, 0.35);
  --on-teal: #08201b;
  --rec: #ff4a3d;
}

/* ---- Film grain over everything: the shared signature with the studio ---- */

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---- The stage: a key light from above, darker edges, a faint dot grid ---- */

.fern-background-image {
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(47, 227, 194, 0.14), transparent 65%),
    radial-gradient(900px 700px at 110% 110%, rgba(47, 227, 194, 0.05), transparent 60%),
    radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.2px);
  background-size: auto, auto, auto, 28px 28px;
  background-position: 0 0, 0 0, 0 0, 14px 14px;
}

/* ---- Slate label: the studio's .mono ---- */

.roor-slate,
.fern-sidebar-heading-content,
.fern-breadcrumb,
.fern-breadcrumb-item,
.fern-breadcrumb a,
.fern-prose th {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Header: black glass with a teal hairline ---- */

.fern-header-content {
  position: relative;
  background: rgba(15, 15, 14, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.fern-header-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(47, 227, 194, 0.55) 22%, rgba(47, 227, 194, 0.55) 78%, transparent 100%);
  pointer-events: none;
}

.fern-header-search-bar {
  background: var(--screen);
  border-color: var(--line);
  border-radius: 8px;
}

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

.fern-sidebar-desktop {
  border-right: 1px solid var(--line);
}

.fern-sidebar-heading-content {
  color: var(--ash-2);
}

.fern-sidebar-heading {
  margin-top: 16px;
}

.fern-sidebar-link {
  position: relative;
  font-size: 14px;
  color: var(--ash);
  border-radius: 6px;
}

.fern-sidebar-link svg {
  color: var(--ash-2);
}

.fern-sidebar-link:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.045);
}
.fern-sidebar-link:focus-visible {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.045);
}

/* The active page: teal on a teal tint, with a playhead on the left. */
.fern-sidebar-link[data-state="active"],
.fern-sidebar-link[aria-current="page"] {
  color: var(--teal);
  background: var(--teal-tint);
  font-weight: 500;
}

.fern-sidebar-link[data-state="active"]::before,
.fern-sidebar-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
}

.fern-sidebar-link[data-state="active"] svg,
.fern-sidebar-link[aria-current="page"] svg {
  color: var(--teal);
}

/* ---- Page head: a slate eyebrow with a REC dot, bone title ---- */

.fern-breadcrumb,
.fern-breadcrumb-item,
.fern-breadcrumb a {
  color: var(--teal) !important;
}

.fern-breadcrumb::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px rgba(255, 74, 61, 0.7);
  vertical-align: 1px;
  animation: roor-rec 2.4s ease-in-out infinite;
}

@keyframes roor-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.fern-page-heading {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.fern-page-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ash);
  margin-top: 8px;
}

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

.fern-prose {
  color: var(--bone);
  font-size: 16px;
}

.fern-prose p,
.fern-prose li {
  line-height: 1.7;
  color: #d9d6cd;
}

.fern-prose h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--bone);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fern-prose h3 {
  font-size: 17.5px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-top: 32px;
  margin-bottom: 10px;
}

.fern-prose strong {
  font-weight: 600;
  color: var(--bone);
}

.fern-prose a:not(.fern-card):not(.roor-btn) {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 227, 194, 0.4);
}

.fern-prose a:not(.fern-card):not(.roor-btn):hover {
  text-decoration-color: var(--teal);
}
.fern-prose a:not(.fern-card):not(.roor-btn):focus-visible {
  text-decoration-color: var(--teal);
}

.fern-prose :not(pre) > code {
  font-size: 0.84em;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-tint);
  border: 1px solid rgba(47, 227, 194, 0.18);
  border-radius: 5px;
  padding: 0.1em 0.42em;
}

.fern-prose blockquote {
  border-left: 2px solid var(--teal);
  background: linear-gradient(90deg, rgba(47, 227, 194, 0.06), transparent 70%);
  color: var(--ash);
  font-style: normal;
  padding: 8px 16px;
  border-radius: 0 8px 8px 0;
}

.fern-prose blockquote p {
  color: #cfcbc0;
}

/* ---- Tables: a slate header row, hairline rules ---- */

.fern-prose table {
  font-size: 14px;
  line-height: 1.5;
}

.fern-prose th {
  color: var(--ash);
  background: var(--screen);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
}

.fern-prose td {
  padding: 10px 12px;
  vertical-align: top;
  color: #d0ccc2;
  border-color: var(--line);
}

.fern-prose td:first-child {
  color: var(--bone);
  white-space: nowrap;
}

.fern-prose tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.fern-prose tr:focus-within td {
  background: rgba(255, 255, 255, 0.025);
}

/* ---- Cards: a surface with viewfinder corners that light up ---- */

.fern-card {
  position: relative;
  background: linear-gradient(180deg, #1b1b19 0%, #161614 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fern-card::before,
.fern-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(47, 227, 194, 0.35);
  border-style: solid;
  transition: border-color 160ms ease;
  pointer-events: none;
}

.fern-card::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.fern-card::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}

.fern-card:hover {
  border-color: rgba(47, 227, 194, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 227, 194, 0.12), 0 18px 50px -24px var(--teal-glow);
  transform: translateY(-1px);
}
.fern-card:focus-visible {
  border-color: rgba(47, 227, 194, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 227, 194, 0.12), 0 18px 50px -24px var(--teal-glow);
  transform: translateY(-1px);
}

.fern-card:hover::before,
.fern-card:hover::after {
  border-color: var(--teal);
}
.fern-card:focus-visible::before,
.fern-card:focus-visible::after {
  border-color: var(--teal);
}

.fern-card svg {
  color: var(--teal);
}

.fern-card p {
  color: var(--ash);
  font-size: 14px;
  line-height: 1.55;
}

/* ---- Hero on the welcome page ---- */

.roor-hero {
  position: relative;
  margin: 8px 0 36px;
  padding: 40px 36px 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(47, 227, 194, 0.16), transparent 60%),
    linear-gradient(180deg, #171715 0%, #111110 100%);
  overflow: hidden;
}

.roor-hero::before,
.roor-hero::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--teal);
  border-style: solid;
  opacity: 0.8;
}

.roor-hero::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.roor-hero::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}

.roor-slate {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ash-2);
  margin: 0 0 22px;
}

.roor-slate b {
  color: var(--teal);
  font-weight: 500;
}

.roor-rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgba(255, 74, 61, 0.8);
  animation: roor-rec 2.4s ease-in-out infinite;
}

.fern-prose .roor-hero-claim {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--bone) !important;
  margin: 0 0 14px !important;
  max-width: 14ch;
}

.fern-prose .roor-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ash) !important;
  margin: 0 0 26px !important;
  max-width: 48ch;
}

.roor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roor-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--bone) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.roor-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
.roor-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.roor-btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal) !important;
  box-shadow: 0 8px 30px -12px var(--teal-glow);
}

.roor-btn-primary:hover {
  background: #4beccf;
  border-color: #4beccf;
}
.roor-btn-primary:focus-visible {
  background: #4beccf;
  border-color: #4beccf;
}

/* ---- Footer nav ---- */

.fern-footer-nav {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---- Scrollbars, dark ---- */

* {
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

@media (max-width: 640px) {

  .roor-hero {
    padding: 28px 22px 26px;
  }

}

/* ---- Embedded in the studio (Ask roor) ----
   The studio frames /ask?embedded=true&searchType=ai in its own side
   panel. Fern opens the assistant there as a bottom sheet at 85% of
   the height over the page, so the docs page shows through at the top
   and a tap on it, or on the scrim, leaves the chat (owner,
   2026-09-19: "opens with a chat box but when clicked it goes to
   docs"). Framed, the assistant is the whole page: it fills the frame,
   the sheet's scrim is inert, and the page beneath does not scroll.
   Only when Fern marks the document embedded; the public site keeps
   its sheet. */

html[data-embedded="true"] body {
  overflow: hidden;
}

html[data-embedded="true"] [role="dialog"]:has(#fern-ask-ai-panel-input) {
  inset: 0 !important;
  height: 100dvh !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
}

html[data-embedded="true"] .fixed.inset-0.bg-black\/40 {
  pointer-events: none;
}

/* The studio's panel carries its own title and close; the sheet's drag
   handle and its second close button would sit right under them. The
   "New chat" button stays. */
html[data-embedded="true"] [role="dialog"]:has(#fern-ask-ai-panel-input) > div.h-1\.5.w-12 {
  display: none;
}
html[data-embedded="true"] [role="dialog"]:has(#fern-ask-ai-panel-input) button[aria-label="Close chat"] {
  display: none;
}

/* At desktop width the assistant is a side panel with its own Minimize
   and Close; the studio's panel has the close, and minimizing inside a
   frame leaves an empty column. "New chat" stays. */
html[data-embedded="true"] #fern-ask-ai-panel button[aria-label="Minimize"],
html[data-embedded="true"] #fern-ask-ai-panel button[aria-label="Close chat"] {
  display: none;
}
