

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/public-sans-latin.woff2') format('woff2-variations'),
       url('fonts/public-sans-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --slate-200: #E7E7E9;
  --slate-50: #F9F9F9;
  --slate-100: #F5F4F5;
  --slate-300: #D3D2D6;
  --slate-400: #A1A0A8;
  --slate-500: #74717D;
  --slate-600: #6D6B77;
  --slate-700: #555261;
  --slate-800: #444050;
  --slate-900: #2F2B3D;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --purple-primary: #7C5FD3;
  --purple-light: #F0EBFB;
  --line: #E6E6E8;
  
  --radius-chip: 4px;
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  
  --shadow-sm: 0 3px 12px rgba(47, 43, 61, 0.14);
  --shadow-md: 0 4px 18px rgba(47, 43, 61, 0.16);
  --shadow-primary: 0 2px 6px rgba(37, 99, 235, 0.3);
  --shadow-primary-hover: 0 4px 12px rgba(37, 99, 235, 0.4);
  
  --text-2xs: 11px;
  --text-xs: 13px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 15px;
  --text-lg: 15px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-4xl: 24px;
  --text-5xl: 28px;
  --text-7xl: 38px;
  
  --control-h: 38px;
  --control-h-lg: 48px;
  
  --h1: var(--text-5xl);
  --h1-hero: var(--text-7xl);
  --h2: var(--text-2xl);
  --h3: var(--text-xl);
  --btn-tracking: 0.43px;

  
  --bg: #ffffff;
  --bg-soft: #F8F7FA;
  --surface: #ffffff;
  --text: var(--slate-800);
  --heading: var(--slate-900);
  --text-muted: var(--slate-600);
  --border: var(--line);
  --link: var(--blue-600);
  --link-hover: var(--blue-700);
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-text: #ffffff;
  --accent-bg: var(--blue-50);
  --accent-text: var(--blue-900);
  --sample-bg: var(--amber-50);
  --sample-border: #f59e0b;
  --sample-text: var(--amber-800);
  --tag-bg: var(--slate-100);
  --tag-text: var(--slate-700);
  --code-bg: var(--slate-100);
  --focus: var(--blue-600);
  --brand-chip: transparent;
  --nav-text: var(--slate-700);
  --nav-active: var(--blue-600);
  --secondary-text: var(--blue-600);
  --input-border: var(--slate-500);
  --crumb: var(--slate-700);
  --header-bg: rgba(255, 255, 255, 0.98);
  
  --space-1: 4px; --space-2: 6px; --space-3: 8px; --space-4: 10px; --space-5: 12px; --space-6: 14px; --space-7: 16px;
  --space-8: 20px; --space-9: 24px; --space-10: 28px; --space-11: 32px; --space-12: 40px; --space-13: 48px;
  --section-compact: 48px; --section-compact-mobile: 40px;
  --success: #16a34a; --success-text: #15803d; --pink-accent: #db2777;
  --focus-w: 2px; --focus-off: 2px;
  --dur-1: 120ms; --dur-2: 180ms; --ease: cubic-bezier(.2, 0, 0, 1);
  
  --shell: min(1440px, calc(100vw - 48px)); 
  
  --main: 820px;
  --measure: 72ch;
}
@media (max-width: 720px) {
  :root { --shell: min(calc(100vw - 32px), 1440px); }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    
    color-scheme: dark;
    --bg: #25293C;
    --bg-soft: #2B2F44;
    --surface: #2F3349;
    --text: #CECCE2;
    --heading: #E1DEF5;
    --text-muted: #A9A8BE;
    --border: #44475B;
    --link: #93c5fd;
    --link-hover: var(--blue-200);
    --primary: var(--blue-600);
    --primary-hover: var(--blue-700);
    --accent-bg: #172554;
    --accent-text: var(--blue-100);
    --sample-bg: #3a2a0a;
    --sample-border: #f59e0b;
    --sample-text: var(--amber-100);
    --tag-bg: var(--slate-700);
    --tag-text: var(--slate-100);
    --code-bg: var(--slate-700);
    --focus: #93c5fd;
    --brand-chip: #ffffff;
    --nav-text: var(--slate-300);
    --nav-active: #93c5fd;
    --secondary-text: #93c5fd;
    --input-border: var(--slate-400);
    --crumb: var(--slate-300);
    --header-bg: rgba(30, 41, 59, 0.98);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  
  color-scheme: dark;
  --bg: #25293C;
  --bg-soft: #2B2F44;
  --surface: #2F3349;
  --text: #CECCE2;
  --heading: #E1DEF5;
  --text-muted: #A9A8BE;
  --border: #44475B;
  --link: #93c5fd;
  --link-hover: var(--blue-200);
  --accent-bg: #172554;
  --accent-text: var(--blue-100);
  --sample-bg: #3a2a0a;
  --sample-text: var(--amber-100);
  --tag-bg: var(--slate-700);
  --tag-text: var(--slate-100);
  --code-bg: var(--slate-700);
  --focus: #93c5fd;
  --brand-chip: #ffffff;
  --nav-text: var(--slate-300);
  --nav-active: #93c5fd;
  --secondary-text: #93c5fd;
  --input-border: var(--slate-400);
  --crumb: var(--slate-300);
  --header-bg: rgba(30, 41, 59, 0.98);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
:focus:not(:focus-visible) { outline: none; }
h1, h2, h3 { line-height: 1.3; color: var(--heading); font-weight: 500; }

h1 { font-size: var(--h1); line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: var(--h2); margin: 32px 0 12px; }
h2, .section-title { scroll-margin-top: 96px; }
h3 { font-size: var(--h3); margin: 24px 0 8px; }
p { margin: 0 0 12px; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--code-bg); padding: 1px 6px; border-radius: 4px; white-space: nowrap; overflow-wrap: normal; }
img { max-width: 100%; height: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gtm-noscript { display: none; visibility: hidden; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--blue-700); color: #fff;
  font-size: 0.875rem; font-weight: 600; border-radius: 0 0 0.375rem 0.375rem; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.shell { width: var(--shell); margin: 0 auto; }
.narrow, .narrow-wide { max-width: var(--main); }

.page-release main .narrow, .page-request main .narrow, .page-search main .narrow-wide { margin: 0 auto; }
main .narrow > p, main .narrow li, main .narrow-wide > p { max-width: var(--measure); }
.center { text-align: center; padding: 40px 0 56px; }
.nowrap { white-space: nowrap; }
.small { font-size: var(--text-base); color: var(--text-muted); }
.lead { font-size: var(--text-xl); color: var(--text-muted); }
.note { font-size: var(--text-base); color: var(--text-muted); margin-top: 12px; }

.preview-bar { background: var(--slate-900); color: #e2e8f0; font-size: var(--text-sm); text-align: center; padding: 6px 16px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; color: var(--text); }
.brand-chip { display: inline-flex; background: var(--brand-chip); }
.brand-logo { display: block; height: 28px; width: auto; max-width: none; }
.brand-label { font-weight: 600; font-size: var(--text-xl); padding-left: 10px; border-left: 1px solid var(--border); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 0 12px; border-radius: var(--radius-md); color: var(--nav-text); text-decoration: none; font-weight: 500; font-size: var(--text-base); transition: color .15s ease, background .15s ease; }
.main-nav a:hover { color: var(--nav-active); background: rgba(37, 99, 235, 0.08); }
.main-nav a[aria-current="page"] { color: var(--nav-active); background: rgba(37, 99, 235, 0.08); }

.main-nav a.nav-cta { margin-left: 8px; padding: 0 20px; background: var(--primary); color: var(--primary-text); font-size: var(--text-base); font-weight: 500; letter-spacing: var(--btn-tracking); text-transform: capitalize; white-space: nowrap; box-shadow: var(--shadow-primary); transition: background .18s ease, box-shadow .18s ease; }
.main-nav a.nav-cta:hover { background: var(--primary-hover); color: var(--primary-text); box-shadow: var(--shadow-primary-hover); }
.main-nav a.nav-cta[aria-current="page"] { color: var(--primary-text); }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--control-h); height: var(--control-h); margin-left: 4px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: transparent; color: var(--nav-text); cursor: pointer; transition: color .15s ease, background .15s ease; }
.theme-toggle:hover { color: var(--nav-active); background: rgba(37, 99, 235, 0.08); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-icon { display: none; line-height: 0; }
:root:not([data-theme-choice]) .theme-icon-system,
:root[data-theme-choice="system"] .theme-icon-system,
:root[data-theme-choice="light"] .theme-icon-light,
:root[data-theme-choice="dark"] .theme-icon-dark { display: inline-flex; }
.theme-choice { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-choice legend { width: 100%; margin: 0 0 8px; padding: 0; color: var(--text-muted); font-size: var(--text-sm); font-weight: 600; }
.theme-choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; }
.theme-choice label:has(input:checked) { border-color: var(--primary); color: var(--nav-active); }
.theme-choice input { accent-color: var(--primary); }
.nav-menu { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; list-style: none; }
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; transition: transform .15s ease, background .15s ease; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-menu[open] .nav-toggle-bars { background: transparent; }
.nav-menu[open] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-menu[open] .nav-toggle-bars::after { transform: rotate(-45deg); }
.nav-menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: calc(100dvh - 72px); overflow-y: auto; }
.nav-menu-inner { display: grid; padding: 8px 0 20px; }
.nav-menu-link { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; text-decoration: none; }
.nav-menu-link[aria-current="page"] { color: var(--nav-active); }
.nav-menu-cta { margin-top: 16px; }
@media (max-width: 799px) {
  .main-nav { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 720px) {
  .header-row { min-height: 56px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-chip { padding: 4px 8px; border-radius: var(--radius-sm); }
}
:root[data-theme="dark"] .brand-chip { padding: 4px 8px; border-radius: var(--radius-sm); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--control-h); padding: 0 20px; border-radius: var(--radius-md); font: inherit; font-weight: 500; font-size: var(--text-base); line-height: 1.4; letter-spacing: var(--btn-tracking); text-transform: capitalize; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:active { filter: brightness(.97); }
.button-primary { background: var(--primary); color: var(--primary-text); box-shadow: var(--shadow-primary); }
.button-primary:hover { background: var(--primary-hover); color: var(--primary-text); box-shadow: var(--shadow-primary-hover); }
.button-secondary { background: transparent; color: var(--secondary-text); border-color: var(--secondary-text); }
.button-secondary:hover { background: rgba(37, 99, 235, 0.08); color: var(--secondary-text); }
.button-lg { min-height: var(--control-h-lg); padding: 0 24px; }
.text-link { font-weight: 600; }

.section { padding: var(--space-12) 0; }
@media (min-width: 768px) { .section { padding: 56px 0; } }
.section-soft { background: var(--bg-soft); }
.section-title { margin-top: 0; font-size: var(--h2); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-home-bottom { grid-template-columns: 3fr 2fr; gap: 32px; } }

.grid-roles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 999px) { .module-tiles > :first-child { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .module-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .module-tiles .card { padding: 14px; }
  .module-tiles .card-text { display: none; }
  .module-tiles .card-title { font-size: var(--text-lg); }
}
.stack { display: grid; gap: 16px; align-content: start; }

.home-hero { position: relative; z-index: 2; padding: 40px 0 32px; background: linear-gradient(180deg, var(--accent-bg), var(--bg)); text-align: center; }

.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px); background-size: 50px 50px; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent); }
.home-hero > .shell { position: relative; z-index: 1; }
.home-hero h1 { font-size: var(--h1-hero); }
@media (min-width: 768px) { .home-hero { padding: 64px 0 48px; } }

.search-form { display: flex; gap: 8px; margin: 16px 0 8px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; min-height: var(--control-h); padding: 0 14px; font: inherit; font-size: var(--text-base);
  color: var(--text); background: var(--surface); border: 1px solid var(--input-border); border-radius: var(--radius-md);
}
.search-form input[type="search"]::placeholder { color: var(--text-muted); }

.search-form--hero { background: var(--surface); border: 1px solid var(--input-border); border-radius: var(--radius-md); padding: 4px; box-shadow: var(--shadow-sm); }
.search-form--hero:focus-within { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600), 0 0 0 5px rgba(37, 99, 235, 0.16), var(--shadow-md); }

.search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: currentColor; color: var(--text-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / 16px no-repeat; }
.search-form--hero input[type="search"] { border: 0; min-height: calc(var(--control-h-lg) - 10px); font-size: var(--text-xl); }
.search-form--hero input[type="search"]:focus-visible { outline: none; }
.search-form--hero .button { min-height: calc(var(--control-h-lg) - 10px); border-radius: var(--radius-chip); }
.search-form .button { min-height: var(--control-h); border-radius: var(--radius-md); }

.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); }
.card-link { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.card-link .card-icon { align-self: flex-start; }
.card-link .card-meta { margin-top: auto; padding-top: 6px; }
.card-link:hover { border-color: var(--card-border-hover); box-shadow: var(--card-shadow-hover); color: var(--text); }
.card-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--accent-bg); color: var(--accent-text); }
.card-title { font-weight: 600; font-size: var(--text-xl); }
.card-text { color: var(--text-muted); font-size: var(--text-md); }
.card-meta { font-size: var(--text-sm); font-weight: 600; color: var(--link); }

.card-meta--empty { color: var(--text-muted); font-weight: 500; }
.list-more { margin: 16px 0 0; }

.card-kicker { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }

.module-line { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-base); color: var(--text-muted); margin: 0; }
.module-line .icon { flex: none; margin-top: 3px; }
.release-line { font-weight: 600; }
.release-line--big { font-size: var(--text-xl); }

.tag { display: inline-block; font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); vertical-align: middle; }
.tag-draft, .tag-sample { background: var(--sample-bg); color: var(--sample-text); border: 1px solid var(--sample-border); }
.kb-id { font-variant-numeric: tabular-nums; font-size: var(--text-xs); font-weight: 500; color: var(--slate-500); white-space: nowrap; }

.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.article-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.article-list-top { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.article-list-title { font-weight: 600; color: var(--link); text-decoration: none; }
.article-list-title:hover { text-decoration: underline; }
@media (max-width: 639px) { .article-list-title { display: block; padding: 10px 0; } }
.article-list-purpose { margin: 4px 0 0; color: var(--text-muted); font-size: var(--text-md); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin: 16px 0; padding: 0; font-size: var(--text-sm); font-weight: 500; letter-spacing: .01em; color: var(--crumb); }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--slate-400); font-weight: 400; }
.crumbs a { display: inline-block; padding: 4px 0; color: inherit; text-decoration: none; transition: color .15s ease; }
.crumbs a:hover { color: var(--nav-active); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { flex: 0 1 auto; min-width: 0; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 600; }
.crumb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; margin: 12px 0 20px; }
.crumb-bar .crumbs { flex: 1 1 320px; min-width: 0; }
.crumb-bar .crumbs ol { margin: 0; }
.search-form--compact { flex: 0 1 380px; margin: 8px 0; }
.search-form--compact input[type="search"] { min-height: var(--control-h); padding: 0 14px; font-size: var(--text-base); border-radius: var(--radius-md); }
.search-form--compact .button { min-height: var(--control-h); border-radius: var(--radius-md); }
@media (max-width: 639px) {
  .crumbs ol { margin: 4px 0; }
  .crumb-bar { margin-top: 4px; }
  .crumbs a { padding: 12px 0; }
  .search-form--compact { flex-basis: 100%; margin-top: 0; }
}

.page-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.page-icon { display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--accent-bg); color: var(--accent-text); }
.page-icon .icon { width: 30px; height: 30px; }
.page-head h1 { margin: 0; }
.on-screen { margin: 4px 0 0; color: var(--text-muted); }
.module-grid { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 900px) { .module-grid { grid-template-columns: 1fr 260px; align-items: start; } }
.block h2 { margin-top: 28px; }
.side-card { margin-top: 28px; }

.side-card .plain-list { gap: 0; }
.side-card .plain-list a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; }
.side-card .plain-list li:last-child a { border-bottom: 0; }
.side-card .plain-list a::after { content: "›"; color: var(--text-muted); font-size: var(--text-xl); line-height: 1; }
.side-card .plain-list a:hover { color: var(--nav-active); }
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lifecycle li { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.lifecycle-status { font-weight: 600; }
.lifecycle-who { font-size: var(--text-base); color: var(--text-muted); }
.lifecycle-does { font-size: var(--text-md); }
.history tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.placeholder { border: 2px dashed var(--slate-400); border-radius: var(--radius-lg); padding: 16px; color: var(--text-muted); background: var(--bg-soft); }
.placeholder p:last-child { margin: 0; }
.empty-state { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: var(--bg-soft); }
.empty-title { font-weight: 600; font-size: var(--text-xl); margin-bottom: 4px; }

.article-shell { padding-bottom: 56px; }
.article-grid { display: grid; gap: 24px; }

@media (min-width: 1000px) { .article-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1240px) { .article-grid { grid-template-columns: 260px minmax(0, 720px) 220px; } }

@media (max-width: 999px) { .article-grid > .tree { order: 2; } }
.tree { font-size: var(--text-md); }
.tree summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style: none; }
.tree summary::-webkit-details-marker, .toc-mobile summary::-webkit-details-marker { display: none; }

.tree summary::after, .toc-mobile summary::after { content: ""; flex: none; margin-left: auto; margin-right: 4px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.tree details[open] > summary::after, .toc-mobile[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.tree-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.tree-list a { display: block; padding: 8px 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.tree-list a:hover { background: var(--bg-soft); }
.tree-list .tree-module-current { font-weight: 600; }
.tree-list ul { list-style: none; margin: 2px 0 6px 10px; padding: 0 0 0 8px; border-left: 2px solid var(--border); display: grid; gap: 2px; }
.tree-list ul a { font-size: var(--text-base); }
.tree-list ul a[aria-current="page"] { background: var(--accent-bg); color: var(--accent-text); font-weight: 600; }
.tree-kb { display: block; font-variant-numeric: tabular-nums; font-size: var(--text-xs); color: var(--text-muted); }
.tree-list ul a[aria-current="page"] .tree-kb { color: var(--accent-text); }
@media (max-width: 999px) {
  .tree-details:not([data-desktop-open]) { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 12px; }
}
@media (min-width: 1000px) {
  .tree, .toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; }
  .tree summary { pointer-events: none; }
  .tree summary::after { display: none; }
}
.article-head h1 { font-size: var(--h1); }
.article-kicker { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.article-kicker .kb-id { font-size: var(--text-sm); color: var(--text-muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0 20px; padding: 0; font-size: var(--text-sm); color: var(--text-muted); }
.meta-sep { color: var(--text-muted); }
.meta-missing { color: var(--sample-text); background: var(--sample-bg); padding: 0 6px; border-radius: 4px; }
.article-purpose { font-size: var(--text-xl); color: var(--text-muted); }
.toc-mobile { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 12px; margin-bottom: 8px; }
.toc-mobile summary { font-weight: 600; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.toc-mobile ol { margin: 0 0 12px; padding-left: 20px; }
.toc-mobile li a { display: block; padding: 10px 0; }
@media (min-width: 1240px) { .toc-mobile { display: none; } }
.toc { display: none; font-size: var(--text-base); }
@media (min-width: 1240px) { .toc { display: block; } }
.toc-title { font-weight: 600; text-transform: uppercase; font-size: var(--text-xs); letter-spacing: .06em; color: var(--text-muted); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: grid; gap: 2px; }
.toc a { position: relative; display: block; padding: 4px 0; color: var(--text-muted); text-decoration: none; }

.toc a[aria-current] { color: var(--nav-active); font-weight: 600; }
.toc a[aria-current]::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 2px; background: var(--nav-active); }
.toc a:hover { color: var(--link); text-decoration: underline; }

.article-body h2 { padding-top: 8px; scroll-margin-top: 96px; }
.article-body ol { padding-left: 0; list-style: none; counter-reset: step; }
.article-body ol > li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.article-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--num-lg-bg); color: var(--num-lg-fg); border: 1.5px solid var(--num-lg-border); font-weight: 600; font-size: var(--text-base); font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; }
.article-body ul { padding-left: 22px; }

.article-body > p, .article-body > ul, .step-text, .callout-body p, .issue-body > p { max-width: var(--measure); }
.article-body li { margin-bottom: 6px; }
.article-body strong { font-weight: 600; }
.has-records #what-gets-recorded { border-top: 3px solid var(--blue-600); padding-top: 16px; }
.evidence-note { font-size: var(--text-base); color: var(--text-muted); background: var(--bg-soft); border-radius: var(--radius-md); padding: 10px 12px; }
.article-section h2 { scroll-margin-top: 96px; }
.related-list { padding-left: 20px; }
.related-list li { margin-bottom: 8px; }
@media (max-width: 639px) { .related-list a { display: inline-block; padding: 10px 0; } .tree-list a { padding: 11px 8px; } }
.print-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.print-note { margin: 0; flex: 1 1 260px; font-size: var(--text-base); color: var(--text-muted); }
.table-wrap { overflow-x: auto; position: relative; }
.history { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.history th, .history td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.history th { color: var(--text-muted); font-weight: 600; }
.history thead th { white-space: nowrap; }

.shot { margin: 12px 0 8px; }
.shot-box { display: grid; place-items: center; gap: 4px; min-height: 160px; padding: 16px; border: 2px dashed var(--slate-400); border-radius: var(--radius-lg); background: var(--bg-soft); color: var(--text-muted); font-size: var(--text-base); text-align: center; }
.shot figcaption { font-size: var(--text-sm); color: var(--text-muted); margin-top: 6px; }

.shot img { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface); }
.shot a { display: block; }

.shot--real img { max-width: 100%; height: auto; }
.shot-link { cursor: zoom-in; border-radius: var(--radius-lg); }
.shot-link:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.module-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.module-chips a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); font-weight: 500; }
.module-chips a:hover { border-color: var(--card-border-hover); background: var(--card-bg-hover); }
.module-chips--center { justify-content: center; }
.nf-title { font-size: var(--h3); margin-top: 40px; }
.nf-more { margin-top: 28px; }
.page-release main .shell, .page-request main .shell { padding-bottom: 56px; }

.check-list { padding-left: 22px; }
.check-list li { margin-bottom: 8px; }
.request-cta { margin: 24px 0; }
.template-box { white-space: pre-wrap; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; font-size: var(--text-base); overflow-x: auto; }

.page-search main .shell { padding-bottom: 56px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 8px; }
.filter { display: grid; gap: 4px; flex: 1 1 160px; }
.filter label { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.filter select { min-height: var(--control-h); font: inherit; font-size: var(--text-base); padding: 0 10px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
.result-status { color: var(--text-muted); font-size: var(--text-base); min-height: 1.6em; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.result { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; background: var(--surface); }
.result-title { font-size: var(--text-xl); font-weight: 600; margin: 4px 0; }
.result-excerpt { color: var(--text-muted); margin: 6px 0 0; font-size: var(--text-md); }
.result-excerpt mark { background: #fef9c3; color: var(--slate-900); font-weight: 600; padding: 0 2px; border-radius: 3px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.results-more { margin: 16px 0 0; }

.page-search .results:empty { min-height: 40vh; }

.page-search:has(#no-results:not([hidden])) .results:empty { min-height: 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 64px 0 28px; font-size: var(--text-base); color: var(--text-muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-copy { margin: 16px 0 0; font-size: var(--text-md); max-width: 32ch; }
.footer-title { margin: 0 0 16px; color: var(--text); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.2px; text-transform: uppercase; line-height: 1.4; }
.footer-links { display: grid; gap: 10px; justify-items: start; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: var(--nav-active); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-base); }
@media (max-width: 639px) {
  .site-footer { padding-top: 48px; }
  .footer-links { gap: 0; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
}

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--slate-900); color: #e2e8f0; box-shadow: 0 -4px 24px rgba(0,0,0,0.18); padding: 16px 24px; transform: translateY(100%); transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1); }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner-text { margin: 0; font-size: 0.875rem; line-height: 1.5; flex: 1 1 300px; color: #cbd5e1; }
.cookie-banner-link { color: #93c5fd; text-decoration: underline; white-space: nowrap; }
.cookie-banner-link:hover { color: #bfdbfe; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { min-height: 44px; padding: 10px 20px; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; line-height: 1.4; font-family: inherit; }
.cookie-btn-primary { background: var(--blue-600); color: #fff; }
.cookie-btn-primary:hover { background: var(--blue-700); }
.cookie-btn-secondary { background: transparent; color: #cbd5e1; border: 1px solid #475569; }
.cookie-btn-secondary:hover { color: #fff; border-color: #94a3b8; }

.pdf-article { border-top: 2px solid var(--border); margin-top: 40px; padding-top: 24px; }
.pdf-article-title { font-size: var(--text-4xl); margin-top: 0; }

:root {
  --k-learn: #6d28d9; --k-learn-bg: #f5f3ff;
  --k-do: #1d4ed8;    --k-do-bg: #eff6ff;
  --k-fix: #be185d;   --k-fix-bg: #fdf2f8;
  --k-ref: #0f766e;   --k-ref-bg: #f0fdfa;
  --ok: #15803d; --ok-fill: #16a34a; --ok-bg: #f0fdf4;
  --warn: #b91c1c; --warn-bg: #fef2f2;
  --step-line: var(--slate-300);
  --card-border-hover: var(--slate-300); --card-shadow-hover: var(--shadow-md); --card-bg-hover: var(--surface);
  --ic-bg: var(--blue-50); --ic-fg: var(--blue-600);
  --num-border: var(--slate-300); --num-fg: var(--slate-600);
  --num-lg-bg: var(--blue-50); --num-lg-fg: var(--blue-700); --num-lg-border: var(--blue-200);
  --role-bg: rgba(15, 23, 42, 0.07); --role-fg: var(--slate-700);
  --flag-border: var(--sample-border);
  --panel-bg: var(--slate-50);
  --id-fg: var(--slate-500);
  --rm-no-fg: var(--slate-500);
  --c-note-bg: var(--slate-50); --c-note-fg: var(--slate-700);
  --c-tip-bg: #f0fdf4; --c-tip-fg: #15803d;
  --c-imp-bg: var(--blue-50); --c-imp-fg: var(--blue-900); --c-imp-rule: var(--blue-900);
  --c-warn-bg: #fef2f2; --c-warn-fg: #b91c1c;
  --c-known-bg: #eef3f8; --c-known-fg: #3b5163; --c-known-rule: #5b7083;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --k-learn: #c4b5fd; --k-learn-bg: rgba(167, 139, 250, 0.16);
    --k-do: #93c5fd;    --k-do-bg: rgba(96, 165, 250, 0.16);
    --k-fix: #f9a8d4;   --k-fix-bg: rgba(244, 114, 182, 0.16);
    --k-ref: #5eead4;   --k-ref-bg: rgba(45, 212, 191, 0.14);
    --ok: #86efac; --ok-bg: rgba(34, 197, 94, 0.12);
    --warn: #fca5a5; --warn-bg: rgba(239, 68, 68, 0.12);
    --step-line: var(--slate-600);
    --card-border-hover: var(--slate-500); --card-shadow-hover: none; --card-bg-hover: #243247;
    --ic-bg: rgba(96, 165, 250, 0.14); --ic-fg: #93c5fd;
    --num-border: var(--slate-600); --num-fg: var(--slate-300);
    --num-lg-bg: rgba(96, 165, 250, 0.14); --num-lg-fg: #bfdbfe; --num-lg-border: rgba(96, 165, 250, 0.35);
    --role-bg: rgba(255, 255, 255, 0.10); --role-fg: var(--slate-100);
    --flag-border: rgba(245, 158, 11, 0.55);
    --panel-bg: var(--bg-soft); 
    --id-fg: var(--slate-400);
    --rm-no-fg: var(--slate-400);
    --c-note-bg: rgba(148, 163, 184, 0.08); --c-note-fg: var(--slate-300);
    --c-tip-bg: rgba(34, 197, 94, 0.10); --c-tip-fg: #86efac;
    --c-imp-bg: rgba(59, 130, 246, 0.12); --c-imp-fg: #bfdbfe; --c-imp-rule: #60a5fa;
    --c-warn-bg: rgba(239, 68, 68, 0.12); --c-warn-fg: #fca5a5;
  --c-known-bg: rgba(125, 147, 168, 0.14); --c-known-fg: #cbd5e1; --c-known-rule: #7d93a8;
    --c-known-bg: rgba(125, 147, 168, 0.14); --c-known-fg: #cbd5e1; --c-known-rule: #7d93a8;
  }
}
:root[data-theme="dark"] {
  --k-learn: #c4b5fd; --k-learn-bg: rgba(167, 139, 250, 0.16);
  --k-do: #93c5fd;    --k-do-bg: rgba(96, 165, 250, 0.16);
  --k-fix: #f9a8d4;   --k-fix-bg: rgba(244, 114, 182, 0.16);
  --k-ref: #5eead4;   --k-ref-bg: rgba(45, 212, 191, 0.14);
  --ok: #86efac; --ok-bg: rgba(34, 197, 94, 0.12);
  --warn: #fca5a5; --warn-bg: rgba(239, 68, 68, 0.12);
  --step-line: var(--slate-600);
  --card-border-hover: var(--slate-500); --card-shadow-hover: none; --card-bg-hover: #243247;
  --ic-bg: rgba(96, 165, 250, 0.14); --ic-fg: #93c5fd;
  --num-border: var(--slate-600); --num-fg: var(--slate-300);
  --num-lg-bg: rgba(96, 165, 250, 0.14); --num-lg-fg: #bfdbfe; --num-lg-border: rgba(96, 165, 250, 0.35);
  --role-bg: rgba(255, 255, 255, 0.10); --role-fg: var(--slate-100);
  --flag-border: rgba(245, 158, 11, 0.55);
  --panel-bg: var(--bg-soft); 
  --id-fg: var(--slate-400);
  --rm-no-fg: var(--slate-400);
  --c-note-bg: rgba(148, 163, 184, 0.08); --c-note-fg: var(--slate-300);
  --c-tip-bg: rgba(34, 197, 94, 0.10); --c-tip-fg: #86efac;
  --c-imp-bg: rgba(59, 130, 246, 0.12); --c-imp-fg: #bfdbfe; --c-imp-rule: #60a5fa;
  --c-warn-bg: rgba(239, 68, 68, 0.12); --c-warn-fg: #fca5a5;
}
.kind-learn { --k: var(--k-learn); --k-bg: var(--k-learn-bg); }
.kind-do { --k: var(--k-do); --k-bg: var(--k-do-bg); }
.kind-fix { --k: var(--k-fix); --k-bg: var(--k-fix-bg); }
.kind-reference { --k: var(--k-ref); --k-bg: var(--k-ref-bg); }

.icon { flex: none; stroke-width: 1.75; }
.icon--16 { width: 16px; height: 16px; stroke-width: 2; }
.icon--20 { width: 20px; height: 20px; stroke-width: 1.75; }
.icon--24 { width: 24px; height: 24px; stroke-width: 1.5; }
.ic { display: inline-flex; flex: none; align-items: center; justify-content: center; background: var(--k-bg, var(--ic-bg)); color: var(--k, var(--ic-fg)); }
.ic-32 { width: 32px; height: 32px; border-radius: 8px; }
.ic-24 { width: 24px; height: 24px; border-radius: 6px; }
.ic-40 { width: 40px; height: 40px; border-radius: 10px; }
.ic-48 { width: 48px; height: 48px; border-radius: 12px; }
.ic-ring { box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12); }
.ic-neutral { background: var(--tag-bg); color: var(--text-muted); }

.chip { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 24px; padding: 0 10px; font-size: var(--text-xs); line-height: 20px; font-weight: 500; letter-spacing: 0; border-radius: var(--radius-chip); white-space: nowrap; vertical-align: middle; text-decoration: none; }
.chip--sm { height: 20px; padding: 0 6px; }
.chip-n { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 2px; }
.chip--kind { background: var(--k-bg); color: var(--k); }
.chip--meta { background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-weight: 500; }
.chip--link { cursor: pointer; transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.chip--link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip--meta.chip--link { background: var(--surface); color: var(--text); }
.chip--meta.chip--link:hover { border-color: var(--card-border-hover); color: var(--text); }
.chip--id { font-variant-numeric: tabular-nums; font-size: var(--text-xs); line-height: 16px; font-weight: 500; letter-spacing: 0; color: var(--id-fg); white-space: nowrap; }
.chip--id-lg { font-size: var(--text-sm); color: var(--text-muted); }
.chip--flag { height: 20px; padding: 0 8px; border-radius: var(--radius-chip); font-size: var(--text-2xs); line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--sample-bg); color: var(--sample-text); border: 1px solid var(--flag-border); }

.chip--status { height: 24px; padding: 0 10px; border-radius: var(--radius-chip); font-weight: 500; background: var(--st-bg, var(--tag-bg)); color: var(--st-fg, var(--text)); }

.chip--role { height: 24px; padding: 0 10px; border-radius: var(--radius-chip); font-weight: 500; background: var(--role-bg); color: var(--role-fg); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.app-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-chip); background: #2563eb; color: #fff; font-size: var(--text-sm); font-weight: 500; letter-spacing: var(--btn-tracking); text-transform: capitalize; line-height: 1; vertical-align: 1px; box-shadow: var(--shadow-primary); cursor: default; }

.num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; font: 600 13px/1 'Public Sans', Arial, sans-serif; font-variant-numeric: tabular-nums; border: 1.5px solid var(--num-border); color: var(--num-fg); background: var(--surface); }
.num .icon { display: none; }
.is-current > .num { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.is-done > .num, .num[aria-pressed="true"] { background: var(--ok-fill); border-color: var(--ok-fill); color: #fff; }
.is-done > .num .num-d, .num[aria-pressed="true"] .num-d { display: none; }
.is-done > .num .icon, .num[aria-pressed="true"] .icon { display: block; }
.is-current.is-done > .num { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue-600); }
button.num { position: relative; cursor: pointer; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
button.num::after { content: ""; position: absolute; inset: -10px; }
button.num:hover { border-color: var(--ok-fill); }

.task, .module-tile, .art-card, .related-card, .result, .path-link, .lc-article { transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-1) var(--ease); }
:is(.task, .module-tile, .art-card, .related-card, .path-link, .lc-article):hover { border-color: var(--card-border-hover); box-shadow: var(--card-shadow-hover); background-color: var(--card-bg-hover); color: var(--text); }
:is(.task, .module-tile, .art-card, .related-card, .path-link, .lc-article):hover :is(.task-label, .module-tile-name, .art-title, .related-title, .path-link-title, .lc-article-title) { text-decoration: underline; text-underline-offset: 3px; }
:is(.task, .module-tile, .art-card, .related-card, .path-link, .lc-article):active { filter: brightness(.98); }

.button-sm { min-height: 30px; padding: 0 14px; font-size: var(--text-sm); gap: 6px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head--stack { display: grid; gap: 8px; }
.section-head .section-title { margin-bottom: 0; }
.section-head .module-line { flex: 0 1 560px; }
.section-sub { margin: 0; color: var(--text-muted); max-width: 72ch; }
.device-note { font-size: var(--text-sm); color: var(--text-muted); }
.section-sub .device-note { display: inline-block; }
.strip-note { margin: 16px 0 0; font-size: var(--text-sm); color: var(--text-muted); }

.hero-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; font-size: var(--text-base); color: var(--text-muted); }
.hero-try-label { font-weight: 600; }
.hero-try-note { flex-basis: 100%; font-size: var(--text-sm); }

.ta { position: relative; align-items: stretch; }
.ta-field { position: relative; flex: 1; min-width: 0; display: flex; }
.ta-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); display: inline-flex; pointer-events: none; }
.ta .ta-field input[type="search"] { width: 100%; padding-left: 44px; }
.ta-pop { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35); text-align: left; overflow: hidden; }
.search-form--hero .ta-pop { left: -6px; right: calc(-6px - 108px); }
.ta-list { display: grid; padding: 6px; }
.ta-option { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 10px; border-radius: var(--radius-md); color: var(--text); text-decoration: none; }
.ta-option:hover { background: var(--bg-soft); color: var(--text); }
.ta-option[aria-selected="true"] { background: var(--accent-bg); box-shadow: inset 2px 0 0 var(--blue-600); color: var(--text); }
.ta-option-body { display: grid; gap: 4px; min-width: 0; }
.ta-option-title { font-weight: 500; font-size: var(--text-md); line-height: 1.35; }
.ta-hit { background: none; color: inherit; font-weight: 600; }
.ta-option-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--text-xs); line-height: 16px; font-weight: 500; color: var(--text-muted); }
.ta-empty { margin: 0; padding: 12px; color: var(--text-muted); font-size: var(--text-md); }
.ta-all { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border); font-weight: 600; font-size: var(--text-base); text-decoration: none; }
.ta-all:hover { background: var(--bg-soft); }
@media (max-width: 639px) {
  .search-form--hero .ta-pop { right: -6px; }
  .search-form--hero { flex-wrap: wrap; }
  .search-form--hero .ta-field { flex-basis: 100%; }
  .search-form--hero .button { flex: 1; }
}

.section-tasks { padding-top: 32px; }
.tasks-more { margin: 16px 0 0; }
.task-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-auto-rows: 1fr; }
@media (min-width: 560px) { .task-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .task-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.task-grid > li { display: flex; }
.task { display: flex; flex: 1; align-items: flex-start; gap: 12px; min-height: 76px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.task-body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.task-label { font-weight: 600; font-size: var(--text-md); line-height: 1.3; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--text-sm); color: var(--text-muted); }
.task-arrow { color: var(--text-muted); display: inline-flex; align-self: center; }
.task:hover .task-arrow { color: var(--link); }

.path-grid { display: grid; gap: 16px; }
.path-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); }

@media (min-width: 960px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  
  .path-grid > .path-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .path-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 12px; }
}
.path-card-head { display: flex; gap: 12px; align-items: center; }
.path-card-title { margin: 0; font-size: var(--text-xl); }
.path-card-meta { margin: 0; font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }
.path-card-blurb { margin: 0; color: var(--text-muted); font-size: var(--text-md); }
.path-bar { height: 4px; border-radius: 999px; background: var(--slate-200); overflow: hidden; }
:root[data-theme="dark"] .path-bar { background: var(--slate-700); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .path-bar { background: var(--slate-700); } }
.path-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ok-fill); transition: width var(--dur-2) var(--ease); }
.path-progress-text { margin: 6px 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.path-steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--border); }
.path-steps li:last-child { border-bottom: 1px solid var(--border); }
.path-steps a, .path-step-label { flex: 1; font-weight: 600; font-size: var(--text-md); text-decoration: none; padding: 10px 0; line-height: 1.35; }
.path-steps a:hover { text-decoration: underline; text-underline-offset: 3px; }
.path-card-foot { padding-top: 4px; }

.module-grid-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .module-grid-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .module-grid-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

@media (max-width: 999px) { .module-grid-tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.module-tile { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.module-tile-top { display: flex; align-items: center; gap: 12px; }
.module-tile-name { font-weight: 600; font-size: var(--text-xl); }
.module-tile-sub { font-size: var(--text-sm); color: var(--text-muted); }
.mini-strip { display: flex; align-items: center; padding: 4px 1px 0; }
.mini-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--st-bg, var(--slate-400)); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22); }
.mini-line { flex: 1; height: 2px; background: var(--step-line); margin: 0 3px; }
.mini-strip-ends { display: flex; justify-content: space-between; gap: 8px; font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); margin-top: -4px; }
.kind-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 2px; }
.grid-home-bottom2 { gap: 16px; }
@media (min-width: 760px) { .grid-home-bottom2 { grid-template-columns: 1fr 1fr; } }

.module-hero { background: linear-gradient(180deg, var(--accent-bg), var(--bg)); padding: 4px 0 28px; border-bottom: 1px solid var(--border); }
.module-hero-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.module-hero-search { flex: 0 1 440px; width: 100%; }
.module-hero-search .search-form--compact { margin: 0; }
.module-purpose { margin: 16px 0 8px; max-width: 70ch; font-size: var(--text-xl); color: var(--text-muted); }
.kind-jump { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kind-jump .chip { height: 30px; padding: 0 12px; font-size: var(--text-sm); border-radius: var(--radius-md); }
.page-module .block h2, .page-module .block-head h2 { font-size: var(--h2); font-weight: 500; letter-spacing: 0; }
.module-body { padding-bottom: 56px; }
.module-body .block { margin-top: 48px; }
.block-head { display: flex; align-items: center; gap: 10px; }
.block-head h2 { margin: 0; }
.block-sub { color: var(--text-muted); margin: 8px 0 20px; }
.page-module .block > h2 { margin: 0 0 20px; }
.h-small { font-size: var(--h3); }
.page-module .block .h-small { font-size: var(--h3); font-weight: 500; }

.lc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lc-step { position: relative; min-width: 0; }
.lc-node-btn { display: flex; align-items: center; gap: 10px; padding: 0; font: inherit; color: var(--text); background: none; border: 0; text-align: left; }
.lc-n { font-size: var(--text-xs); line-height: 16px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lc-node { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--step-line); transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.lc-step.is-optional .lc-node { border-style: dashed; border-color: var(--slate-400); }
.lc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--st-bg, var(--slate-400)); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22); }
.lc-label { display: grid; gap: 2px; min-width: 0; }
.lc-name { font-size: var(--text-sm); font-weight: 500; line-height: 1.3; text-wrap: balance; }
.lc-opt { font-size: var(--text-2xs); line-height: 14px; font-weight: 500; color: var(--text-muted); }
.lc-panel { margin: 8px 0 0 34px; }
.lc-panel, .lc-detail { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel-bg); }
.lc-panel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.lc-panel-step { font-size: var(--text-sm); color: var(--text-muted); }
.lc-facts { display: grid; gap: 12px; margin: 0 0 14px; }
.lc-facts div { display: grid; gap: 4px; align-content: start; }
@media (min-width: 640px) { .lc-facts { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 20px; } }
.lc-facts dt { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.lc-facts dd { margin: 0; font-size: var(--text-md); }
.lc-facts dd .chip { margin: 0 4px 4px 0; }
.lc-article { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 14px 10px 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.lc-article-body { display: grid; gap: 4px; min-width: 0; }
.lc-article-meta { display: flex; align-items: center; gap: 8px; }
.lc-article-title { font-weight: 600; color: var(--link); line-height: 1.35; }
.lc-article-arrow { display: inline-flex; color: var(--text-muted); }
.lc-hint { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: var(--text-base); color: var(--text-muted); }
.lc-sub { margin: 28px 0 10px; font-size: var(--h3); font-weight: 500; }
.lc-returns { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lc-return { display: flex; gap: 12px; align-items: flex-start; }
.lc-return-body { display: grid; gap: 2px; padding-top: 4px; font-size: var(--text-base); }
.lc-return-move { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lc-return-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lc-return-arrow { display: inline-flex; color: var(--text-muted); }
.st-sep { font-size: var(--text-sm); color: var(--text-muted); }
.st-sep--comma { margin-left: -5px; }
.lc-return-note { font-size: var(--text-sm); color: var(--text-muted); }
.lc-return-link { font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.lc-return-link:hover { text-decoration: underline; }

.lc-more { margin-top: 4px; }
.lc-subcycle { margin: 24px 0 0; padding: 4px 18px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel-bg); }
.lc-subcycle .lc-sub { margin: 12px 0 14px; font-size: var(--text-md); }
.lc-sub-note { font-weight: 500; color: var(--text-muted); }
.lc-sub-who { font-size: var(--text-2xs); line-height: 14px; color: var(--text-muted); }
.lc-steps--sub .lc-name { color: var(--text); font-weight: 600; }
@media (max-width: 639px) {
  .lc-steps--sub .lc-node-btn { align-items: flex-start; min-height: 0; padding: 0 0 14px; }
  .lc-steps--sub .lc-label { padding-top: 1px; }
  .lc-steps--sub .lc-step:not(:last-child)::before { top: 22px; bottom: 2px; }
}
.lc-sub-facts { display: grid; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.lc-sub-facts > div { display: grid; gap: 4px; }
@media (min-width: 640px) { .lc-sub-facts > div { grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: start; } }
.lc-sub-facts dd { margin: 0; font-size: var(--text-base); color: var(--text-muted); }
.lc-foot { margin: 16px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.lc-foot--names { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.lc-foot--names .icon { margin-top: 2px; }

.lc.is-enhanced .lc-panel { display: none; }
.lc.is-enhanced .lc-node-btn { cursor: pointer; border-radius: var(--radius-md); }
@media (hover: hover) {
  .lc.is-enhanced .lc-node-btn:hover .lc-node { border-color: var(--slate-500); }
  .lc.is-enhanced .lc-node-btn:hover .lc-name { text-decoration: underline; text-underline-offset: 3px; }
}
.lc.is-enhanced .lc-node-btn:focus-visible { outline-offset: 3px; }
.lc.is-enhanced .lc-step.is-selected .lc-node { border: 2px solid var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
.lc.is-enhanced .lc-step.is-selected .lc-name { color: var(--nav-active); }

@media (max-width: 899px) {
  .lc.is-enhanced .lc-steps { gap: 0; }
  .lc.is-enhanced .lc-step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 34px; bottom: -10px; width: 2px; background: var(--step-line); }
  .lc.is-enhanced .lc-node-btn { width: 100%; min-height: 48px; padding: 10px 0; gap: 12px; }
  .lc.is-enhanced .lc-n { display: none; }
  .lc.is-enhanced .lc-step.is-selected .lc-panel { display: block; margin: 0 0 12px 36px; }
  .lc.is-enhanced .lc-detail { display: none; }
}

@media (min-width: 900px) {
  .lc.is-enhanced .lc-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .lc.is-enhanced .lc-step:not(:last-child)::before { content: ""; position: absolute; top: 37px; left: 50%; right: -50%; height: 2px; background: var(--step-line); }
  .lc.is-enhanced .lc-node-btn { flex-direction: column; align-items: center; width: 100%; gap: 6px; padding: 4px 6px 8px; text-align: center; }
  .lc.is-enhanced .lc-label { justify-items: center; }
  .lc.is-enhanced .lc-detail { position: relative; margin-top: 14px; }
  .lc.is-enhanced .lc-detail::before { content: ""; position: absolute; top: -7px; left: calc(var(--caret-x, 50%) - 7px); width: 12px; height: 12px; background: var(--panel-bg); border-top: 1px solid var(--border); border-left: 1px solid var(--border); transform: rotate(45deg); }
}

.here { margin: 0 0 28px; }
.here-label { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.lc-steps--mini { gap: 0; }
.lc-steps--mini .lc-node { width: 20px; height: 20px; }
.lc-steps--mini .lc-dot { width: 10px; height: 10px; }
.lc-steps--mini .lc-name { font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); }
.lc-steps--mini .lc-step.is-here .lc-node { border: 2px solid var(--blue-600); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22); }
.lc-steps--mini .lc-step.is-here.is-optional .lc-node { border-style: dashed; }
.lc-steps--mini .lc-step.is-here .lc-name { color: var(--text); font-weight: 600; }
@media (max-width: 639px) {
  .lc-steps--mini .lc-node-btn { min-height: 30px; gap: 10px; }
  .lc-steps--mini .lc-step:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 25px; bottom: -5px; width: 2px; background: var(--step-line); }
}
@media (min-width: 640px) {
  .lc-steps--mini { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .lc-steps--mini .lc-step:not(:last-child)::before { content: ""; position: absolute; top: 10px; left: 50%; right: -50%; height: 2px; background: var(--step-line); }
  .lc-steps--mini .lc-node-btn { flex-direction: column; align-items: center; width: 100%; gap: 6px; padding: 0 4px; text-align: center; }
  .lc-steps--mini .lc-label { justify-items: center; }
}
.here-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 10px 0 0; font-size: var(--text-xs); color: var(--text-muted); }
.here-key-item { display: inline-flex; align-items: center; gap: 6px; }
.here-key-swatch, .here-key-dash { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue-600); }
.here-key-dash { border: 1.5px dashed var(--slate-400); }

.kind-groups { display: grid; gap: 36px; }
.kind-group { scroll-margin-top: 96px; min-width: 0; }
.kind-group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.kind-group-text { display: grid; gap: 0; }
.kind-group-name { font-size: var(--h3); font-weight: 500; line-height: 1.3; }
.kind-group-phrase { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); line-height: 1.4; }

.hub-sections { display: grid; gap: 40px; }
.hub-section { scroll-margin-top: 96px; min-width: 0; }

@media (min-width: 1000px) {
  .hub-section { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 32px; align-items: start; }
  .hub-section-title { grid-column: 1; }
  .hub-section-sub { grid-column: 1; margin: 4px 0 0; }
  .hub-section .art-grid { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1240px) { .hub-section--three .art-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-section-title { font-size: var(--h3); font-weight: 500; line-height: 1.3; margin: 0; }
.hub-section-sub { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; margin: 4px 0 14px; max-width: 68ch; }
.section-jump .chip { font-weight: 600; }
.art-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (min-width: 700px) { .art-grid { gap: 16px; } }

.art-grid > :only-child { grid-column: 1 / -1; }
.art-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); }
.art-card.is-start { border-color: var(--slate-300); }
.start-label { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; color: var(--link); }
.art-title { font-weight: 600; font-size: var(--text-md); color: var(--link); line-height: 1.35; }
.art-purpose { font-size: var(--text-base); color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: auto; padding-top: 6px; font-size: var(--text-sm); color: var(--text-muted); }
.art-time { display: inline-flex; align-items: center; gap: 4px; }
.module-chips .icon { margin-right: 8px; color: var(--text-muted); }

.rm-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.rm { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); min-width: 860px; }
.rm .rm-col-action { width: 190px; } 
@media (min-width: 1400px) { .rm .rm-col-action { width: 260px; } }
.rm th, .rm td { padding: 12px 8px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: top; }
.rm .rm-groups th { padding: 12px 8px 6px; text-align: left; font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 0; border-top: 2px solid var(--slate-300); }
.rm .rm-groups td { border-bottom: 0; }
.rm .rm-roles th { font-size: var(--text-xs); font-weight: 600; color: var(--text); line-height: 1.3; vertical-align: bottom; padding-top: 4px; }
.rm .rm-doc-first, .rm .rm-groups th.rm-doc { border-left: 2px solid var(--border); }
.rm-wrap--sys .rm .rm-roles th { padding-top: 12px; }
.rm tbody th { text-align: left; font-weight: 600; font-size: var(--text-base); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.rm thead th.rm-action-h, .rm .rm-corner { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.rm tbody tr:last-child th, .rm tbody tr:last-child td { border-bottom: 0; }
.rm-action { color: var(--text); }
.rm-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; vertical-align: -6px; border-radius: 6px; color: var(--link); }
.rm-link:hover { background: var(--accent-bg); }
.rm-note { display: block; margin-top: 2px; font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); }
.rm-yes .rm-mark { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.rm-limited .rm-when { display: block; margin-top: 4px; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.3; }

.rm-limited .rm-when--chips { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.rm-when--chips .chip, .rm-list-when .chip { height: auto; min-height: 20px; padding: 2px 6px; font-size: var(--text-2xs); line-height: 1.3; white-space: normal; text-align: center; }
.rm-when--chips .st-sep { font-size: var(--text-2xs); line-height: 1; }
.rm-no { color: var(--rm-no-fg); line-height: 24px; }
.rm-na { background: var(--panel-bg); color: var(--text-muted); font-size: var(--text-2xs); line-height: 24px; }
.ref-roles-wrap { display: grid; gap: 16px; }
@media (min-width: 760px) { .ref-roles-wrap { grid-template-columns: 1fr 1fr; } }
.ref-roles-group { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; background: var(--panel-bg); }
.ref-roles { margin: 0; display: grid; gap: 12px; }
.ref-roles dt { margin-bottom: 4px; }
.ref-roles dd { margin: 0; font-size: var(--text-md); color: var(--text-muted); }
.ref-table th[scope="row"] .lc-opt { display: block; margin-top: 4px; }
.ref-status { display: inline-flex; align-items: center; gap: 8px; }

.article-layout { display: grid; gap: 32px; }

@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, var(--main)) minmax(240px, 280px); justify-content: space-between; gap: 64px; } }

@media (min-width: 1100px) {
  .article-layout--reference { grid-template-columns: minmax(0, 1fr); }
  .article-layout--reference .rail { display: none; }
  .article-layout--reference .toc-mobile { display: block; }
  .article-layout--reference .article > :not(.article-body), .article-layout--reference .article-body > :not(.table-wrap) { max-width: var(--main); }
}
.article { min-width: 0; }
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { display: block; }
  .rail-inner { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; display: grid; gap: 28px; padding-bottom: 16px; }
  .toc-mobile { display: none; }
}
.rail .toc { display: block; position: static; max-height: none; overflow: visible; }
.rail .toc-title { margin: 0 0 8px; }
.article-kicker { flex-wrap: wrap; gap: 10px; }
.article-head .meta-line { margin-bottom: 20px; }

.glance { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel-bg); padding: 16px 20px 18px; margin: 0 0 24px; }
.glance-title { margin: 0 0 12px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.glance-grid { display: grid; gap: 16px 24px; margin: 0; }
@media (min-width: 640px) { .glance-grid { grid-template-columns: 1fr 1fr; } }
.glance-goal { grid-column: 1 / -1; }
.glance-item dt { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.glance-item dd { margin: 0; }
.glance-goal dd { font-size: var(--text-xl); font-weight: 400; line-height: 1.45; color: var(--heading); }

.article-body .steps > li.step { padding: 0 0 28px 44px; margin: 0; }
.article-body .steps > li.step:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; width: 2px; background: var(--border); }
.step-text > p:first-child { margin-top: 2px; }
.step-media .shot { margin: 12px 0 0; }
.step-wide > :first-child { margin-top: 16px; }
.step-wide > :last-child { margin-bottom: 0; }

.step-media .shot + .shot { margin-top: 16px; }
.shot { position: relative; }
.shot figcaption strong { color: var(--text); }
.step-media .shot-box { min-height: 190px; }

.callout { margin: 12px 0; padding: 12px 16px; border: 0; border-left: 3px solid var(--c-rule); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--c-bg); }
.callout-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: var(--text-base); line-height: 1.4; font-weight: 600; color: var(--c-fg); }
.callout-body p { margin: 0; font-size: var(--text-md); color: var(--text); }
.callout-body p + p { margin-top: 6px; }
.callout--note { --c-bg: var(--c-note-bg); --c-rule: var(--slate-400); --c-fg: var(--c-note-fg); }
.callout--tip { --c-bg: var(--c-tip-bg); --c-rule: var(--success); --c-fg: var(--c-tip-fg); }
.callout--important { --c-bg: var(--c-imp-bg); --c-rule: var(--c-imp-rule); --c-fg: var(--c-imp-fg); }
.callout--warning { --c-bg: var(--c-warn-bg); --c-rule: #dc2626; --c-fg: var(--c-warn-fg); }

.callout--known { --c-bg: var(--c-known-bg); --c-rule: var(--c-known-rule); --c-fg: var(--c-known-fg); }

.tabset { margin: 12px 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tabset-list { display: flex; gap: 4px; padding: 6px 6px 0; border-bottom: 1px solid var(--border); }
.tabset-tab { min-height: 44px; padding: 8px 14px; font: inherit; font-size: var(--text-base); font-weight: 600; color: var(--text-muted); background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; transition: color var(--dur-1) var(--ease); }
.tabset-tab:hover { color: var(--text); }
.tabset-tab:focus-visible { outline-offset: -2px; }
.tabset-tab[aria-selected="true"] { color: var(--nav-active); border-bottom-color: var(--nav-active); }
.tabset-panel { padding: 12px 16px; }
.tabset-panel p:last-child { margin-bottom: 0; }
.tabset-label { font-weight: 600; margin-bottom: 4px; }
.tabset.is-enhanced .tabset-label { display: none; }
.tabset:not(.is-enhanced) .tabset-panel + .tabset-panel { border-top: 1px solid var(--border); }

.issue { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin: 0 0 10px; overflow: hidden; }
.issue > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; font-weight: 600; cursor: pointer; list-style: none; transition: background-color var(--dur-1) var(--ease); }
.issue > summary:hover { background: var(--bg-soft); }
.issue-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.issue-title strong, .issue-title code { white-space: normal; }
.issue > summary:focus-visible { outline-offset: -2px; }
.issue > summary::-webkit-details-marker { display: none; }
.issue > summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-2) var(--ease); }
.issue[open] > summary { border-bottom: 1px solid var(--border); }
.issue[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.issue-body { padding: 12px 16px; }
.issue-body > :last-child { margin-bottom: 0; }
.toc-mobile summary:focus-visible { outline-offset: -2px; }

.audit-entries { margin: 0 0 20px; }
.audit-entries + .evidence-note, .audit-entries + p { margin-top: 0; }
.audit-entries-label { margin: 4px 0 12px; }
.article-body .audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.article-body .audit-list > li { padding: 0; margin: 0; }
.article-body .audit-list > li::before { content: none; }
.audit-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.audit-when { margin: 0; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: var(--text-md); font-weight: 600; }
.audit-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .audit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.audit-row { display: grid; gap: 2px; align-content: start; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: var(--text-md); }
.audit-row.is-wide { grid-column: 1 / -1; }
.audit-row:last-child { border-bottom: 0; }
.audit-row dt { font-size: var(--text-xs); font-weight: 600; color: var(--id-fg); }
.audit-row dd { margin: 0; }

.path-nav { margin: 32px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--panel-bg); }
.path-nav-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.path-nav-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.path-nav-title .icon { color: var(--ic-fg); }
.path-done { display: grid; justify-items: end; }
.path-done .device-note { margin: 4px 0 0; }
.path-done-btn[aria-pressed="true"] { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }

.path-swipe-note { display: none; margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.path-dots { list-style: none; display: flex; gap: 6px; margin: 14px 0; padding: 0; }
.path-dots li { flex: 1; height: 6px; border-radius: 999px; background: var(--border); }
.path-dots li.is-done { background: var(--ok-fill); }
.path-dots li.is-current { background: var(--blue-600); }
.path-dots li.is-current.is-done { background: var(--ok-fill); box-shadow: 0 0 0 2px var(--panel-bg), 0 0 0 4px var(--blue-600); }
.path-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.path-link { display: grid; align-content: start; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--text); }
.path-next { text-align: right; background: var(--accent-bg); border-color: var(--blue-200); }
:root[data-theme="dark"] .path-next { border-color: rgba(96, 165, 250, 0.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .path-next { border-color: rgba(96, 165, 250, 0.35); } }
.path-dir { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.path-next .path-dir { justify-content: flex-end; }
.path-link-title { font-weight: 600; color: var(--link); }
@media (max-width: 479px) { .path-done { justify-items: start; } }

.related-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .related-cards { grid-template-columns: 1fr 1fr; } .related-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.related-card { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--text); }
.related-body { display: grid; gap: 6px; min-width: 0; }
.related-title { font-weight: 600; color: var(--link); line-height: 1.35; }
.related-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); }

.rail-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--text-base); }
.rail-steps li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.rail-steps a { color: var(--text); text-decoration: none; flex: 1; }
.rail-steps a:hover { color: var(--link); text-decoration: underline; }
.rail-steps li > span:not(.num) { flex: 1; font-weight: 600; color: var(--nav-active); }

.results .result { box-shadow: none; }
.result-title { font-size: var(--text-xl); font-weight: 600; margin: 6px 0 4px; }
.result-title a { text-decoration: none; }
.result-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result-crumb { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }
.text-link--arrow .icon { vertical-align: -3px; }

@media (max-width: 559px) {
  .task-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .task { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 12px; }
  .task-arrow { display: none; }
  .path-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc((100vw - var(--shell)) / -2); padding: 4px calc((100vw - var(--shell)) / 2) 12px; scroll-padding: 0 calc((100vw - var(--shell)) / 2); }
  .path-card { flex: 0 0 86%; scroll-snap-align: start; }
  .path-swipe-note { display: block; }
}
@media (max-width: 599px) {
  .module-grid-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .module-tile { padding: 14px; gap: 8px; }
  .module-tile-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .module-tile-name { font-size: var(--text-lg); }
  .mini-strip, .mini-strip-ends { display: none; }
}

.rm-byrole { display: none; }
@media (max-width: 699px) {
  .rm-enhanced .rm-byrole { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px; }
  .rm-enhanced .rm-wrap { display: none; }
}
.rm-byrole-label { font-weight: 600; font-size: var(--text-base); }
.rm-byrole select { min-height: var(--control-h); font: inherit; font-size: var(--text-base); padding: 0 10px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
.rm-list-head { margin: 10px 0 0; font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.rm-list-none { margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.rm-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.rm-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.rm-list a, .lc-return-link, .text-link { display: inline-block; padding: 4px 0; }
.rm-list-mark { display: inline-flex; flex: none; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; color: var(--rm-no-fg); }
.rm-list li.is-yes .rm-list-mark { background: var(--ok-bg); color: var(--ok); }
.rm-list li.is-no { color: var(--text-muted); }
.rm-list-when { display: block; font-size: var(--text-sm); color: var(--text-muted); }
.rm-list-when:has(.chip) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }

.table-wrap { margin: 20px 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.content-table { width: 100%; border-collapse: collapse; font-size: var(--text-md); line-height: 1.55; }
.content-table thead th { background: var(--bg-soft); color: var(--text); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.2px; text-transform: uppercase; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.content-table tbody td { padding: 14px 16px; vertical-align: top; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.content-table tbody tr:last-child td { border-bottom: 0; }
.content-table tbody th[scope="row"] { padding: 14px 16px; vertical-align: top; text-align: left; color: var(--text); font-weight: 600; min-width: 11rem; border-bottom: 1px solid var(--border); }
.content-table tbody tr:last-child > * { border-bottom: 0; }
.content-table tbody td strong { color: var(--text); }
.content-table tbody tr:hover > * { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
@media (max-width: 720px) {
  .table-wrap { border: 0; box-shadow: none; background: transparent; overflow: visible; }
  .content-table, .content-table tbody, .content-table tr, .content-table td, .content-table tbody th[scope="row"] { display: block; width: 100%; }
  .content-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .content-table tbody tr { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
  .content-table tbody td { border-bottom: 1px solid var(--border); padding: 10px 14px; white-space: normal; }
  
  .content-table tbody th[scope="row"] { min-width: 0; padding: 10px 14px; background: var(--bg-soft); font-size: var(--text-lg); line-height: 1.4; white-space: normal; overflow-wrap: anywhere; border-bottom: 1px solid var(--border); }
  .content-table tbody tr:last-child > :is(td, th) { border-bottom: 1px solid var(--border); }
  .content-table tbody tr > :is(td, th):last-child { border-bottom: 0; }
  .content-table tbody td[data-label]::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; color: var(--text); margin-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) { .content-table tbody tr:hover > * { background: transparent; } }

@media (max-width: 720px) {
  .ref-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .ref-table tbody tr > th[scope="row"] { grid-column: 1 / -1; }
  .ref-table tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .ref-table tbody td:nth-child(4) { grid-column: 2; grid-row: 2; border-left: 1px solid var(--border); }
  .ref-table tbody td:nth-child(3), .ref-table tbody td:nth-child(5) { grid-column: 1 / -1; }
  .ref-table tbody td:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (min-width: 720px) {
  .kind-groups--compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; gap: 24px; }
  .kind-groups--compact .art-grid { grid-template-columns: 1fr; }
}

.docs-band { background: var(--bg); border-bottom: 1px solid var(--border); padding-block: 8px 14px; }
.docs-band .crumbs ol { margin: 0 0 6px; }
.docs-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.docs-band-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.docs-band-id .ic-40 { width: 36px; height: 36px; }
.docs-band-text { min-width: 0; }
.docs-band-titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.docs-band-name { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--heading); letter-spacing: 0; }
.docs-band-name a { color: inherit; text-decoration: none; }
.docs-band-name a:hover { color: var(--nav-active); text-decoration: underline; text-underline-offset: 3px; }
.docs-band-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: var(--text-2xs); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.docs-band-sub { margin: 4px 0 0; max-width: 70ch; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }
.docs-band-search { flex: 0 1 440px; width: 100%; }
.docs-band-search .search-form--compact { margin: 0; }

.docs-tablist { display: flex; gap: 4px; margin: 0 0 28px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.docs-tablist::-webkit-scrollbar { display: none; }
.docs-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: -1px; padding: 0 14px; border-bottom: 3px solid transparent; border-radius: var(--radius-md) var(--radius-md) 0 0; color: var(--text-muted); font-weight: 500; font-size: var(--text-md); text-decoration: none; white-space: nowrap; }
.docs-tab .icon { color: currentColor; }
.docs-tab:hover { color: var(--heading); background: var(--bg-soft); }
.docs-tab[aria-selected="true"] { color: var(--nav-active); border-bottom-color: var(--primary); font-weight: 600; }
.docs-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.docs-tab-n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); font-size: var(--text-2xs); font-weight: 600; line-height: 20px; text-align: center; }
.docs-tab[aria-selected="true"] .docs-tab-n { background: var(--accent-bg); color: var(--nav-active); }
@media (max-width: 999px) { .docs-tab { padding: 0 10px; } .docs-tablist { margin-bottom: 20px; } }

@media (max-width: 599px) {
  .docs-tablist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; overflow: visible; }
  .docs-tab .icon { display: none; }
  .docs-tab { justify-content: center; gap: 6px; padding: 6px 4px; font-size: var(--text-base); line-height: 1.25; text-align: center; white-space: normal; }
}

.docs-shell { padding-block: 24px 56px; }
.docs-layout { display: block; }

@media (min-width: 1200px) { .docs-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: start; } }
.docs-main { min-width: 0; }

.docs-nav { display: none; }
@media (min-width: 1200px) { .docs-nav { display: block; position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; padding: 0 8px 24px 0; } }
.docs-nav-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--heading); font-weight: 600; font-size: var(--text-base); }
.docs-nav-heading--other { margin: 24px 0 8px; color: var(--text-muted); font-size: var(--text-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.docs-nav-list, .docs-nav-list ul { list-style: none; margin: 0; padding: 0; }
.docs-nav-list > li + li { margin-top: 2px; }
.docs-nav-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-md); color: var(--text); font-size: var(--text-sm); line-height: 1.4; text-decoration: none; }
.docs-nav-link:hover { background: var(--bg-soft); color: var(--link); }
.docs-nav-link[aria-current="page"] { background: var(--accent-bg); color: var(--nav-active); font-weight: 600; }
.docs-nav-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--radius-md); color: var(--heading); font-size: var(--text-sm); font-weight: 600; cursor: pointer; list-style: none; }
.docs-nav-group > summary::-webkit-details-marker { display: none; }
.docs-nav-group > summary:hover { background: var(--bg-soft); }
.docs-nav-chev { line-height: 0; color: var(--text-muted); transition: transform .15s ease; }
details[open] > summary .docs-nav-chev { transform: rotate(90deg); }
.docs-nav-group ul { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--border); }
.docs-nav-list--modules .docs-nav-link { color: var(--text-muted); }
.docs-nav-toc { list-style: none; margin: 2px 0 6px 12px; padding: 0 0 0 10px; border-left: 2px solid var(--border); }
.docs-nav-toc a { display: block; padding: 4px 6px; color: var(--text-muted); font-size: var(--text-xs); line-height: 1.4; text-decoration: none; }
.docs-nav-toc a:hover { color: var(--link); }
.docs-nav-toc a[aria-current="true"], .docs-nav-toc a[aria-current="location"] { color: var(--nav-active); font-weight: 600; }

.docs-nav-mobile { margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.docs-nav-mobile > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; color: var(--heading); font-weight: 600; cursor: pointer; list-style: none; }
.docs-nav-mobile > summary::-webkit-details-marker { display: none; }
.docs-nav-mobile > summary > span:nth-child(2) { flex: 1; }
.docs-nav-mobile[open] > summary { border-bottom: 1px solid var(--border); }
.docs-nav-mobile > .docs-nav-list, .docs-nav-mobile > .docs-nav-heading { padding: 0 8px; }
.docs-nav-mobile > .docs-nav-list:first-of-type { padding-top: 8px; }
.docs-nav-mobile > .docs-nav-list--modules { padding-bottom: 12px; }
@media (min-width: 1200px) { .docs-nav-mobile { display: none; } }

.docs-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
[data-tabs]:not(.is-tabbed) .docs-panel + .docs-panel { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
[data-tabs].is-tabbed .docs-panel-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs-panel > .block:first-child, .docs-panel > .block:first-child h2 { margin-top: 0; padding-top: 0; }

.docs-block + .docs-block { margin-top: 36px; }
.docs-block-title { margin: 0 0 14px; font-size: var(--h3); font-weight: 500; color: var(--heading); line-height: 1.3; }
.docs-tiles { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .docs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 700px) {
  .docs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .docs-cards > .docs-card:only-child { grid-column: 1 / -1; }
  .docs-cards > .docs-card:only-child .docs-steps { display: block; columns: 2; column-gap: 32px; }
  .docs-cards > .docs-card:only-child .docs-steps li { break-inside: avoid; }
}
.docs-card { gap: 10px; }

@media (min-width: 960px) { .path-card.docs-card { display: flex; grid-row: auto; grid-template-rows: none; } }
.docs-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.docs-card-title { margin: 0; font-size: var(--text-xl); font-weight: 600; color: var(--heading); line-height: 1.3; }
.docs-steps li { gap: 8px; }
.docs-steps a { color: var(--link); }
.docs-step-arrow { color: var(--text-muted); line-height: 0; }
.docs-steps li:hover .docs-step-arrow { color: var(--link); }

.docs-layout--article { margin-top: 24px; }
@media (min-width: 1000px) {
  
  .docs-layout--article .article-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-layout--article .article-layout--reference .article > :not(.article-body),
  .docs-layout--article .article-layout--reference .article-body > :not(.table-wrap) { max-width: none; }

}

.article-lead { margin: 10px 0 18px; font-size: var(--text-xl); line-height: 1.5; color: var(--text-muted); max-width: none; }
.docs-layout--article .glance { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: "who who sign sign time time" "status status status ends ends ends"; gap: 12px 0; margin: 0 0 22px; padding: 12px 0; border-radius: var(--radius-lg); }
.docs-layout--article .glance-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs-layout--article .glance-grid { display: contents; }
.docs-layout--article .glance-item { padding: 0 16px; min-width: 0; }
.docs-layout--article .gi-who { grid-area: who; } .docs-layout--article .gi-sign { grid-area: sign; } .docs-layout--article .gi-time { grid-area: time; }
.docs-layout--article .gi-status { grid-area: status; } .docs-layout--article .gi-ends { grid-area: ends; }
.docs-layout--article .gi-sign, .docs-layout--article .gi-time, .docs-layout--article .gi-ends { border-left: 1px solid var(--border); }
.docs-layout--article .gi-status, .docs-layout--article .gi-ends { padding-top: 12px; border-top: 1px solid var(--border); }
.docs-layout--article .glance-item dt { margin-bottom: 4px; font-size: var(--text-2xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.docs-layout--article .glance-item dt .icon { display: none; }
.docs-layout--article .glance-item dd { font-size: var(--text-sm); line-height: 1.4; }
.docs-layout--article .glance-item .chip-row { gap: 4px; }
.docs-layout--article .glance-item .chip { font-size: var(--text-2xs); }

.docs-layout--article .glance:not(:has(.gi-status)):not(:has(.gi-ends)) { grid-template-areas: "who who sign sign time time"; }
.docs-layout--article .glance:not(:has(.gi-sign)) { grid-template-areas: "who who who time time time" "status status status ends ends ends"; }
.docs-layout--article .glance:not(:has(.gi-sign)):not(:has(.gi-status)):not(:has(.gi-ends)) { grid-template-areas: "who who who time time time"; }
.docs-layout--article .glance:not(:has(.gi-sign)) .gi-time { border-left: 1px solid var(--border); }
.docs-layout--article .glance:not(:has(.gi-ends)) .gi-status { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .docs-layout--article .glance, .docs-layout--article .glance:not(:has(.gi-status)):not(:has(.gi-ends)), .docs-layout--article .glance:not(:has(.gi-sign)),
  .docs-layout--article .glance:not(:has(.gi-sign)):not(:has(.gi-status)):not(:has(.gi-ends)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .docs-layout--article .glance-item { grid-area: auto !important; grid-column: auto !important; border-left: 0 !important; border-top: 0; padding-top: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .docs-layout--article .glance-item dt { margin: 0; }
}

.docs-layout--article .rail { display: none; }
.docs-layout--article .toc-mobile { display: block; }
@media (min-width: 1200px) {
  .docs-layout--article .article-layout { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 32px; }
  .docs-layout--article .rail { display: block; }
  .docs-layout--article .toc-mobile { display: none; }
  .docs-layout--article .article-layout--reference { grid-template-columns: minmax(0, 1fr); }
  .docs-layout--article .article-layout--reference .rail { display: none; }
  .docs-layout--article .article-layout--reference .toc-mobile { display: block; }
}
.docs-layout--article .article-body > p, .docs-layout--article .article-body > ul, .docs-layout--article .article-body > ol,
.docs-layout--article .step-text, .docs-layout--article .callout-body p, .docs-layout--article .issue-body > p { max-width: none; }

.docs-layout--article .rail-path .toc-title { margin-bottom: 2px; }
.docs-layout--article .rail-path-count { margin: 0 0 12px; color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; }
.docs-layout--article .rail .toc a { font-size: var(--text-sm); }
.docs-layout--article .rail-steps { gap: 0; }
.docs-layout--article .rail-steps li { position: relative; gap: 12px; min-height: 34px; padding-left: 2px; }
.docs-layout--article .rail-steps li + li::before { content: ""; position: absolute; left: 7px; top: -14px; height: 22px; width: 2px; background: var(--slate-300); }
:root[data-theme="dark"] .docs-layout--article .rail-steps li + li::before { background: var(--slate-600, #5b5967); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .docs-layout--article .rail-steps li + li::before { background: var(--slate-600, #5b5967); } }
.docs-layout--article .rail-steps .rail-num { position: relative; z-index: 1; width: 12px; height: 12px; margin: 0; border: 2px solid var(--slate-400); background: var(--surface); box-shadow: none; }
.docs-layout--article .rail-steps .rail-num .num-d { display: none; }
.docs-layout--article .rail-steps .rail-num .icon { display: none; }
.docs-layout--article .rail-steps li.is-current .rail-num { width: 14px; height: 14px; margin-left: -1px; border: 3px solid var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-bg); }
.docs-layout--article .rail-steps li.is-done .rail-num { width: 14px; height: 14px; margin-left: -1px; border-color: var(--ok-fill); background: var(--ok-fill); }
.docs-layout--article .rail-steps li.is-done .rail-num .icon { display: block; width: 10px; height: 10px; color: #fff; stroke-width: 3; }
.docs-layout--article .rail-steps li.is-done + li::before { background: var(--ok-fill); }
.docs-layout--article .rail-steps a, .docs-layout--article .rail-steps li > span:not(.num) { font-size: var(--text-sm); line-height: 1.35; }
.docs-layout--article .rail-steps li.is-current > span:not(.num) { color: var(--heading); font-weight: 600; }

.docs-panel .block-head h2, .docs-panel .block > h2, .docs-panel .lc-sub { margin: 0 0 10px; font-size: var(--h3); font-weight: 500; line-height: 1.3; color: var(--heading); }
.docs-panel .lc-sub { margin-top: 32px; }
.docs-panel .block-sub { margin: 0 0 18px; }
@media (min-width: 640px) {
  .docs-panel .lc-facts { grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 0; }
  .docs-panel .lc-facts > div { padding: 0 20px; border-left: 1px solid var(--border); }
  .docs-panel .lc-facts > div:first-child { padding-left: 0; border-left: 0; }
  .docs-panel .lc-facts > div:last-child { padding-right: 0; }
}
.docs-panel .lc-facts dt { font-size: var(--text-2xs); letter-spacing: .04em; text-transform: uppercase; }
.docs-panel .lc-facts dt .icon { display: none; }

.rm-last { white-space: nowrap; }
.rm-limited:has(.rm-when--chips) .rm-mark { display: none; }
.rm-limited .rm-when--chips { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 0; }
.rm-limited .rm-when--chips > .chip { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; }
.rm tbody tr:hover > th, .rm tbody tr:hover > td { background: var(--bg-soft); }
.ref-table thead th:nth-child(1) { width: 21%; }
.ref-table thead th:nth-child(2) { width: 15%; }
.ref-table thead th:nth-child(4) { width: 9%; }
.ref-table thead th:nth-child(5) { width: 21%; }

.rm th, .rm td { padding-left: 6px; padding-right: 6px; }
.rm-when--chips .chip { padding: 2px 5px; letter-spacing: 0; }

.rm thead .rm-roles th, .rm-when--chips .chip { hyphens: auto; } 
@media (max-width: 1399px) { .rm th, .rm td { padding-left: 4px; padding-right: 4px; } }
