
:root {
  --bg: #08090c;
  --bg-soft: #0d0f14;
  --panel: rgba(17, 19, 25, .88);
  --panel-solid: #111319;
  --panel-hover: #161922;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,185,75,.28);
  --text: #f5f6f8;
  --muted: #a7abb5;
  --subtle: #747986;
  --gold: #ffb43e;
  --gold-2: #ffd38c;
  --green: #47d59a;
  --red: #ff756f;
  --blue: #6ab9ff;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
  --radius: 20px;
  --header-h: 76px;
  --sidebar-w: 292px;
  --toc-w: 220px;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background:
  radial-gradient(circle at 78% -10%, rgba(255,174,55,.12), transparent 28rem),
  linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), var(--bg);
  background-size: auto, 72px 72px, 72px 72px, auto;
  font-family: var(--font-ui); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video { max-width: 100%; }
::selection { color: #090a0d; background: var(--gold); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 14px; color: #090a0d; background: var(--gold); border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; }
.docs-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); border-bottom: 1px solid var(--line); background: rgba(8,9,12,.86); backdrop-filter: blur(20px); }
.docs-header-inner { width: min(1540px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.docs-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; }
.docs-brand img { width: 148px; height: auto; display: block; }
.docs-product-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.docs-product-mark img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }
.docs-product-mark strong { font-size: 14px; white-space: nowrap; }
.docs-product-mark span { display: block; color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.docs-topnav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.docs-topnav a { color: var(--muted); font-size: 13px; font-weight: 700; transition: color .18s; }
.docs-topnav a:hover, .docs-topnav a[aria-current="page"] { color: #fff; }
.docs-header-actions { display: flex; align-items: center; gap: 10px; }
.docs-header-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,180,62,.35); border-radius: 11px; color: #0b0c0f; background: linear-gradient(135deg, var(--gold), #ffc968); font-size: 12px; font-weight: 900; box-shadow: 0 8px 30px rgba(255,174,51,.12); }
.docs-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: #fff; background: var(--panel); cursor: pointer; }
.docs-menu-toggle svg { width: 20px; }
.docs-shell { width: min(1540px, 100%); margin: 0 auto; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); min-height: calc(100vh - var(--header-h)); }
.docs-sidebar { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 24px 22px 44px; border-right: 1px solid var(--line); background: rgba(8,9,12,.48); scrollbar-width: thin; scrollbar-color: #343844 transparent; }
.docs-search-wrap { position: sticky; top: -24px; z-index: 4; margin: -24px -22px 20px; padding: 20px 18px 14px; background: linear-gradient(#090a0e 80%, transparent); }
.docs-search { width: 100%; min-height: 42px; padding: 0 38px 0 38px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(255,255,255,.035); outline: none; }
.docs-search:focus { border-color: rgba(255,180,62,.55); box-shadow: 0 0 0 3px rgba(255,180,62,.08); }
.docs-search-icon { position: absolute; left: 31px; top: 33px; width: 16px; height: 16px; color: var(--subtle); pointer-events: none; }
.docs-search-key { position: absolute; right: 28px; top: 31px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--subtle); font-size: 10px; }
.sidebar-home { display: flex; align-items: center; gap: 9px; margin: 2px 0 20px; color: var(--muted); font-size: 12px; font-weight: 800; }
.sidebar-home:hover { color: #fff; }
.sidebar-group { margin: 0 0 22px; }
.sidebar-group-title { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-group ul { list-style: none; margin: 0; padding: 0; }
.sidebar-group li { margin: 2px 0; }
.sidebar-group a { display: block; padding: 8px 10px; border-radius: 9px; color: #969ba7; font-size: 12px; line-height: 1.35; transition: color .16s, background .16s, transform .16s; }
.sidebar-group a:hover { color: #fff; background: rgba(255,255,255,.045); }
.sidebar-group a.active { color: #fff; background: linear-gradient(90deg, rgba(255,180,62,.15), rgba(255,180,62,.025)); box-shadow: inset 2px 0 var(--gold); }
.sidebar-group li[hidden], .sidebar-group[hidden] { display: none; }
.docs-main { min-width: 0; padding: 34px clamp(28px, 4vw, 72px) 80px; }
.docs-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--subtle); font-size: 12px; }
.docs-breadcrumbs a:hover { color: #fff; }
.docs-breadcrumbs span[aria-hidden] { color: #494d57; }
.docs-content { max-width: 900px; margin: 0 auto; }
.docs-loading { min-height: 360px; display: grid; place-items: center; color: var(--muted); }
.docs-spinner { width: 34px; height: 34px; margin: 0 auto 16px; border: 2px solid rgba(255,255,255,.10); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tutorial-section { animation: content-in .24s ease both; }
@keyframes content-in { from { opacity: 0; transform: translateY(6px); } }
.tutorial-section > h1:first-child, .docs-article-title { margin: 0 0 18px; font-size: clamp(36px, 5vw, 66px); line-height: .98; letter-spacing: -.045em; }
.tutorial-section h2 { margin: 52px 0 16px; padding-top: 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.025em; scroll-margin-top: calc(var(--header-h) + 24px); }
.tutorial-section h3 { margin: 32px 0 12px; font-size: 20px; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 24px); }
.tutorial-section h4 { margin: 24px 0 8px; font-size: 16px; }
.tutorial-section p { margin: 0 0 17px; color: #c3c6ce; }
.tutorial-section .doc-lead { max-width: 820px; margin-bottom: 28px; color: #e3e4e8; font-size: 19px; line-height: 1.7; }
.tutorial-section a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(255,203,120,.32); text-underline-offset: 3px; }
.tutorial-section ul, .tutorial-section ol { margin: 12px 0 24px; padding-left: 24px; color: #c5c8d0; }
.tutorial-section li { margin: 7px 0; }
.tutorial-section strong { color: #fff; }
.tutorial-section hr { height: 1px; margin: 44px 0; border: 0; background: var(--line); }
.tutorial-section code { padding: .15em .42em; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; color: #ffd99a; background: rgba(255,255,255,.055); font-family: var(--font-mono); font-size: .88em; }
.code-block, .tutorial-section pre { position: relative; margin: 22px 0 30px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #090b10; box-shadow: 0 15px 45px rgba(0,0,0,.20); }
.code-block pre { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.code-header { min-height: 42px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--subtle); background: #11141a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.tutorial-section pre { padding: 24px; overflow-x: auto; color: #d8dce5; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; white-space: pre; }
.tutorial-section pre code { padding: 0; border: 0; color: inherit; background: transparent; font-size: inherit; }
.copy-code { position: absolute; z-index: 2; right: 10px; top: 8px; min-height: 29px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #b9bdc6; background: #171a21; font-size: 10px; font-weight: 800; cursor: pointer; }
.copy-code:hover { color: #fff; border-color: rgba(255,180,62,.35); }
.info-box { margin: 24px 0; padding: 19px 20px; border: 1px solid rgba(106,185,255,.25); border-left: 3px solid var(--blue); border-radius: 13px; background: rgba(76,142,210,.07); }
.info-box.warning, .info-box.warn { border-color: rgba(255,180,62,.27); border-left-color: var(--gold); background: rgba(255,180,62,.075); }
.info-box.danger, .info-box.error { border-color: rgba(255,117,111,.28); border-left-color: var(--red); background: rgba(255,117,111,.065); }
.info-box.success, .info-box.tip { border-color: rgba(71,213,154,.26); border-left-color: var(--green); background: rgba(71,213,154,.065); }
.info-title { margin-bottom: 7px; color: #fff; font-size: 13px; font-weight: 900; }
.info-box p:last-child { margin-bottom: 0; }
.data-table, .tutorial-section table { width: 100%; margin: 24px 0 32px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; font-size: 13px; }
.tutorial-section th, .tutorial-section td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tutorial-section th { color: #fff; background: #151820; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.tutorial-section td { color: #bec2cb; background: rgba(255,255,255,.018); }
.tutorial-section tr:last-child td { border-bottom: 0; }
.tutorial-section th:last-child, .tutorial-section td:last-child { border-right: 0; }
.tutorial-section img { display: block; max-height: 760px; margin: 26px auto; border: 1px solid var(--line); border-radius: 14px; background: #0b0d12; box-shadow: var(--shadow); cursor: zoom-in; }
.video-wrapper { margin: 24px 0 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #050609; box-shadow: var(--shadow); }
.video-wrapper video { display: block; width: 100%; }
.docs-toc { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); padding: 38px 24px 40px 16px; overflow-y: auto; border-left: 1px solid var(--line); }
.docs-toc-title { margin: 0 0 12px; color: var(--subtle); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.docs-toc nav a { display: block; margin: 2px 0; padding: 5px 0; color: #7f8490; font-size: 11px; line-height: 1.35; }
.docs-toc nav a:hover, .docs-toc nav a.active { color: #fff; }
.docs-toc nav a.toc-h3 { padding-left: 12px; }
.docs-toc-actions { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.docs-toc-actions button, .docs-toc-actions a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #969ba7; background: rgba(255,255,255,.025); font-size: 11px; text-align: left; cursor: pointer; }
.docs-toc-actions button:hover, .docs-toc-actions a:hover { color: #fff; border-color: rgba(255,180,62,.30); }
.docs-pager { max-width: 900px; margin: 46px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.docs-pager a, .docs-pager button { min-height: 74px; display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; color: #fff; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.docs-pager a:last-child, .docs-pager button:last-child { text-align: right; align-items: flex-end; }
.docs-pager a:hover, .docs-pager button:hover { border-color: rgba(255,180,62,.38); background: rgba(255,180,62,.05); }
.docs-pager small { color: var(--subtle); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.docs-pager strong { margin-top: 3px; font-size: 13px; }
.docs-status { max-width: 900px; margin: 20px auto 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 11px; }
.docs-status.error { border-color: rgba(255,117,111,.25); color: #ffc0bd; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 34px; background: rgba(0,0,0,.88); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(96vw, 1500px); max-height: 92vh; border-radius: 14px; box-shadow: 0 25px 100px #000; }
.lightbox-close { position: absolute; right: 22px; top: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(20,20,24,.8); font-size: 23px; cursor: pointer; }
.docs-footer { padding: 28px 40px; border-top: 1px solid var(--line); color: var(--subtle); background: #08090c; font-size: 11px; }
.docs-footer-inner { width: min(1480px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }

/* Landing and product hubs */
.docs-landing { min-height: calc(100vh - var(--header-h)); padding: 70px 24px 90px; }
.docs-landing-inner { width: min(1180px, 100%); margin: 0 auto; }
.docs-kicker { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.docs-landing h1 { max-width: 920px; margin: 13px 0 22px; font-size: clamp(48px, 8vw, 96px); line-height: .92; letter-spacing: -.055em; }
.docs-landing-lead { max-width: 720px; margin: 0; color: #b9bdc7; font-size: 19px; line-height: 1.75; }
.docs-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 52px; }
.docs-product-card { position: relative; min-height: 390px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); box-shadow: var(--shadow); }
.docs-product-card::before { content: ''; position: absolute; inset: auto -10% -40% 25%; height: 80%; background: radial-gradient(circle, rgba(255,178,59,.19), transparent 67%); pointer-events: none; }
.docs-product-card > img { position: absolute; right: 24px; top: 20px; width: 190px; height: 190px; object-fit: contain; opacity: .92; filter: drop-shadow(0 20px 40px rgba(0,0,0,.42)); }
.docs-product-card .card-label { position: relative; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.docs-product-card h2 { position: relative; margin: 8px 0 10px; font-size: 42px; letter-spacing: -.04em; }
.docs-product-card p { position: relative; max-width: 520px; margin: 0 0 24px; color: #aeb2bc; }
.docs-card-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.docs-card-actions a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: #fff; background: rgba(255,255,255,.035); font-size: 12px; font-weight: 800; }
.docs-card-actions a.primary { color: #0a0b0d; border-color: transparent; background: linear-gradient(135deg, var(--gold), #ffd075); }
.hub-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 38px; display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 40px; }
.hub-hero h1 { margin: 12px 0 18px; font-size: clamp(52px, 8vw, 94px); line-height: .92; letter-spacing: -.055em; }
.hub-hero p { max-width: 710px; color: #b4b8c2; font-size: 18px; }
.hub-visual { min-height: 330px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle, rgba(255,179,58,.14), transparent 62%), rgba(255,255,255,.018); }
.hub-visual img { width: 230px; height: 230px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hub-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto 90px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.hub-card { min-height: 230px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.hub-card .hub-number { color: var(--gold); font-size: 11px; font-weight: 900; }
.hub-card h2 { margin: auto 0 9px; font-size: 25px; letter-spacing: -.025em; }
.hub-card p { margin: 0 0 20px; color: #9ea3ae; font-size: 13px; }
.hub-card a { color: #fff; font-size: 12px; font-weight: 900; }

/* Library */
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.library-card { min-height: 260px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.library-card img { width: 100%; height: 150px; margin: 0 0 18px; object-fit: contain; border: 0; border-radius: 12px; background: #0a0b0f; box-shadow: none; cursor: pointer; }
.library-card strong { font-size: 18px; }
.library-card span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.library-tabs { display: flex; gap: 10px; margin: 22px 0 10px; }
.library-tabs button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; color: #aaaeb8; background: rgba(255,255,255,.025); cursor: pointer; font-weight: 800; }
.library-tabs button.active { color: #0a0b0d; border-color: transparent; background: var(--gold); }

@media (max-width: 1220px) {
  :root { --sidebar-w: 265px; --toc-w: 190px; }
  .docs-topnav a:nth-child(4), .docs-topnav a:nth-child(5) { display: none; }
}
@media (max-width: 1020px) {
  .docs-shell { grid-template-columns: var(--sidebar-w) minmax(0,1fr); }
  .docs-toc { display: none; }
  .hub-hero { grid-template-columns: 1fr 280px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  :root { --header-h: 66px; }
  body.docs-sidebar-open { overflow: hidden; }
  .docs-header-inner { width: calc(100% - 24px); gap: 12px; }
  .docs-brand img { width: 118px; }
  .docs-product-mark { padding-left: 10px; }
  .docs-product-mark img { width: 29px; height: 29px; }
  .docs-product-mark strong { font-size: 12px; }
  .docs-product-mark span, .docs-topnav, .docs-header-button { display: none; }
  .docs-menu-toggle { display: grid; place-items: center; margin-left: auto; }
  .docs-shell { display: block; }
  .docs-sidebar { position: fixed; z-index: 90; left: 0; top: var(--header-h); width: min(86vw, 340px); height: calc(100vh - var(--header-h)); transform: translateX(-105%); transition: transform .22s ease; background: #0b0c10; box-shadow: 30px 0 80px rgba(0,0,0,.5); }
  .docs-sidebar-open .docs-sidebar { transform: translateX(0); }
  .docs-main { padding: 26px 20px 60px; }
  .tutorial-section > h1:first-child, .docs-article-title { font-size: 42px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager a:last-child, .docs-pager button:last-child { align-items: flex-start; text-align: left; }
  .tutorial-section table { display: block; overflow-x: auto; white-space: nowrap; }
  .docs-product-grid, .library-grid { grid-template-columns: 1fr; }
  .docs-product-card { min-height: 360px; padding: 25px; }
  .docs-product-card > img { width: 150px; height: 150px; }
  .hub-hero { width: calc(100% - 32px); grid-template-columns: 1fr; padding-top: 46px; }
  .hub-visual { min-height: 230px; }
  .hub-visual img { width: 170px; height: 170px; }
  .hub-grid { width: calc(100% - 32px); grid-template-columns: 1fr; }
  .docs-footer-inner { flex-direction: column; }
}
@media (max-width: 520px) {
  .docs-product-mark { display: none; }
  .docs-landing { padding-top: 48px; }
  .docs-landing h1 { font-size: 52px; }
  .tutorial-section pre { padding: 18px 14px; font-size: 11px; }
  .lightbox { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   SOURCE DOCUMENTATION SEMANTIC COMPONENTS
   Restores the intentional hierarchy from the original plugin docs
   while keeping the XForge corporate design system.
============================================================ */
.tutorial-section h2::before {
  content: '//';
  display: inline-block;
  margin-right: .42em;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .72em;
  font-weight: 800;
  letter-spacing: -.08em;
  opacity: .62;
  transform: translateY(-.08em);
}
.tutorial-section .doc-list-intro {
  max-width: 78ch;
  margin-bottom: 12px;
  color: #d3d6de;
}
.tutorial-section h3.doc-label {
  margin: 30px 0 11px;
  color: #9da2ae;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tutorial-section p.doc-keyline {
  max-width: 82ch;
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255,180,62,.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.038), rgba(255,180,62,.032));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 10px 30px rgba(0,0,0,.10);
}
.tutorial-section p.doc-keyline:hover {
  border-color: rgba(255,180,62,.27);
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,180,62,.045));
}
.tutorial-section .doc-keyline-term {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}
.tutorial-section .doc-keyline-desc {
  display: block;
  color: #c7cad2;
  line-height: 1.72;
}
.tutorial-section p.doc-divider {
  max-width: 82ch;
  height: 1px;
  margin: 38px 0 30px;
  overflow: hidden;
  border-top: 1px solid rgba(255,180,62,.18);
  color: transparent;
  line-height: 0;
  user-select: none;
}
.tutorial-section h2.doc-layer-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(255,180,62,.30);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,180,62,.13), rgba(255,255,255,.025));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.tutorial-section h2.doc-layer-heading::before {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: .95;
  transform: none;
}

/* Rich notices from both legacy documentation sets */
.tutorial-section .info-box {
  display: grid;
  gap: 8px;
  max-width: 84ch;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.tutorial-section .info-box-content { min-width: 0; }
.tutorial-section .info-box-title,
.tutorial-section .info-title {
  margin: 0 0 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tutorial-section .info-box.info .info-box-title,
.tutorial-section .info-box.info .info-title { color: #9ed0ff; }
.tutorial-section .info-box.tip .info-box-title,
.tutorial-section .info-box.tip .info-title,
.tutorial-section .info-box.success .info-box-title,
.tutorial-section .info-box.success .info-title { color: #83e4b9; }
.tutorial-section .info-box.warning .info-box-title,
.tutorial-section .info-box.warning .info-title,
.tutorial-section .info-box.warn .info-box-title,
.tutorial-section .info-box.warn .info-title { color: #ffd083; }
.tutorial-section .info-box.danger .info-box-title,
.tutorial-section .info-box.danger .info-title,
.tutorial-section .info-box.error .info-box-title,
.tutorial-section .info-box.error .info-title { color: #ffaaa6; }
.tutorial-section .info-box p { max-width: none; margin-bottom: 0; }

/* Tables preserve their authored wrapper and avoid double frames */
.tutorial-section .table-wrapper {
  max-width: 100%;
  margin: 24px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.018);
  scrollbar-width: thin;
}
.tutorial-section .table-wrapper table {
  min-width: 640px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* Original documentation cards */
.tutorial-section .feature-card {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(255,180,62,.17);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,180,62,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.tutorial-section .feature-card:hover { border-color: rgba(255,180,62,.32); }
.tutorial-section .feature-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tutorial-section .feature-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,180,62,.25);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(255,180,62,.08);
}
.tutorial-section .feature-card-title { color: #fff; font-size: 17px; font-weight: 800; }

/* Step-by-step tracks */
.tutorial-section .steps {
  max-width: 84ch;
  margin: 30px 0;
  counter-reset: xforge-step;
}
.tutorial-section .step {
  position: relative;
  min-height: 54px;
  margin-bottom: 22px;
  padding-left: 62px;
  counter-increment: xforge-step;
}
.tutorial-section .step::before {
  content: counter(xforge-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,180,62,.55);
  border-radius: 50%;
  color: var(--gold);
  background: #12141a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(255,180,62,.045);
}
.tutorial-section .step::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 53px;
  bottom: -22px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.tutorial-section .step:last-child::after { display: none; }
.tutorial-section .step-number { display: none; }
.tutorial-section .step-content {
  padding: 18px 20px;
  border: 1px solid rgba(255,180,62,.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,180,62,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.tutorial-section .step-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}
.tutorial-section .step-content > *:last-child { margin-bottom: 0; }
.tutorial-section .step-content img { max-width: 100%; }

/* Captions and authored media sizing */
.tutorial-section img.small { max-width: 350px; }
.tutorial-section img.medium { max-width: 520px; }
.tutorial-section img.large { max-width: 800px; }
.tutorial-section img.full { width: 100%; max-width: 100%; }
.tutorial-section .image-caption {
  max-width: 760px;
  margin: -15px auto 28px;
  color: #7f8490;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

/* Blueprint-style visual blocks used by tutorials */
.tutorial-section .blueprint-node {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid rgba(106,185,255,.45);
  border-radius: 13px;
  background: linear-gradient(145deg, #142b3c, #0d1c29);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
}
.tutorial-section .blueprint-node-header { padding: 9px 14px; color: #fff; background: rgba(69,139,204,.76); font-weight: 850; }
.tutorial-section .blueprint-node-content { padding: 14px; }
.tutorial-section .blueprint-node-row { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; border-bottom: 1px solid rgba(106,185,255,.15); }
.tutorial-section .blueprint-node-row:last-child { border-bottom: 0; }
.tutorial-section .blueprint-pin { display: inline-flex; align-items: center; gap: 7px; }
.tutorial-section .blueprint-pin-circle { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.tutorial-section .blueprint-pin.exec { color: #fff; }
.tutorial-section .blueprint-pin.bool { color: #dc6464; }
.tutorial-section .blueprint-pin.float { color: #9bef78; }
.tutorial-section .blueprint-pin.tag { color: #b69cff; }
.tutorial-section .blueprint-pin.struct { color: #5fc5ff; }

@media (max-width: 780px) {
  .tutorial-section h2::before { margin-right: .32em; }
  .tutorial-section p.doc-keyline { padding: 14px 15px; }
  .tutorial-section h2.doc-layer-heading { display: flex; max-width: 100%; line-height: 1.45; }
  .tutorial-section .step { padding-left: 52px; }
  .tutorial-section .step::before { width: 34px; height: 34px; }
  .tutorial-section .step::after { left: 17px; top: 48px; }
  .tutorial-section .step-content { padding: 16px; }
  .tutorial-section .table-wrapper { margin-inline: -2px; }
}
