/* Shared website chrome and visual tokens. Load after page-specific styles. */
@font-face { font-family: Inter; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.site-page {
  --paper: #f0eee6; --card: #e0d8c9; --surface: #e8e5dd; --surface-raised: #faf9f5; --ink: #141413; --soft: #62615e;
  --line: #cecbc2; --faint: #888681; --clay: #c15f3c; --clay-deep: #a34e31; --clay-wash: #f5eee7;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: Georgia, "Songti SC", STSong, SimSun, "Noto Serif CJK SC", serif;
  --manual-paper: var(--paper); --manual-ink: var(--ink); --manual-soft: var(--soft);
  --manual-line: var(--line); --manual-hover: #e8e5dd; --manual-serif: var(--display);
  --site-gutter: 40px; --site-nav-height: 64px;
  margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 15px; line-height: 1.65;
}
.site-page.homepage { font-size: 17px; }
.site-page *, .site-page *::before, .site-page *::after { box-sizing: border-box; }
.site-page button, .site-page input { font-family: inherit; }
.site-page :is(a, button, summary, input):focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.site-header { position: sticky; top: 0; z-index: 100; height: var(--site-nav-height); background: var(--paper); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 0; width: min(1440px, calc(100% - 2 * var(--site-gutter))); height: 64px; margin: 0 auto; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); text-decoration: none; font-size: 17px; line-height: 1.4; font-weight: 400; white-space: nowrap; }
.site-brand img { display: block; width: 22px; height: 22px; }
.site-brand b { font-weight: 600; }
.site-menu { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 20px; }
.site-menu > a, .site-dropdown > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font: 400 14px/1.5 var(--body); text-decoration: none; cursor: pointer; list-style: none; }
.site-dropdown > summary::-webkit-details-marker { display: none; }
.site-dropdown > summary img { width: 10px; height: 10px; opacity: .65; transform: rotate(90deg); transition: transform .15s; }
.site-dropdown[open] > summary img { transform: rotate(-90deg); }
.site-menu > a:hover, .site-dropdown > summary:hover { background: #e8e5dd; }
.site-menu > [aria-current="page"], .site-dropdown > summary[aria-current="page"] { font-weight: 500; text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; }
.site-dropdown { position: relative; }
.site-dropdown-panel { position: absolute; top: calc(100% + 6px); right: 0; width: 320px; max-height: calc(100dvh - 96px); overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 32px rgb(17 17 16 / 8%); }
/* Keep the hover bridge outside the panel's scrolling/clipping box. */
.site-dropdown[open]::after { content: ""; position: absolute; top: 100%; right: 0; width: 320px; height: 8px; }
.site-dropdown-panel a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 14px; line-height: 1.5; text-decoration: none; }
.site-dropdown-panel a:hover { background: #e8e5dd; }
.site-dropdown-panel a strong { display: block; font-size: 14px; font-weight: 500; }
.site-dropdown-panel a span { display: block; margin-top: 3px; color: var(--soft); font-size: 12px; }
.site-menu-label { display: block; padding: 6px 12px; color: var(--soft); font-size: 11px; letter-spacing: .08em; }
.site-dropdown-panel .site-menu-all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 13px; }
.site-home { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font: 400 14px/1.5 var(--body); text-decoration: none; }
.site-home:hover { background: #30302f; }
.site-menu-toggle { display: none; }
.site-page .site-footer { position: relative; z-index: 30; margin: 0; padding: 54px 0 24px; border: 0; background: #141413; color: #faf9f5; }
.site-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; width: min(1180px, calc(100% - 2 * var(--site-gutter))); margin: 0 auto; }
.site-footer-mark img { display: block; width: 27px; height: 30px; }
.site-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.site-footer h2 { margin: 0 0 5px; color: #a9a8a4; font: 400 12px/1.6 var(--body); }
.site-footer a { color: #e3e2df; text-decoration: none; font-size: 13px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer-bottom { width: min(1180px, calc(100% - 2 * var(--site-gutter))); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #343434; color: #b5b4b0; font-size: 12px; }

/* Each destination keeps its content layout, using the same site palette and type. */
.site-page .release-doc h1, .site-page .release-entry h2, .site-page .env-h1 { font-family: var(--display); font-weight: 400; letter-spacing: normal; }
.site-page .release-doc h1, .site-page .env-h1 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.3; }
.site-page .release-entry h2 { font-size: 28px; }
.site-page .release-doc .crumb, .site-page .release-entry .subtitle, .site-page .group-title { color: var(--soft); font-weight: 500; }
.site-page .release-toc a:hover, .site-page .release-toc a:focus-visible { color: var(--ink); background: #e8e5dd; }
.site-page .release-toc { top: 88px; }
.site-page .release-note, .site-page .release-result { background: #e0d8c9; border-left-color: var(--clay); }
.site-page .cats a { font-weight: 400; }
.site-page .cats a.on { border-color: var(--line); background: #e8e5dd; color: var(--ink); }
.site-page .cats a:hover { color: var(--ink); background: #e8e5dd; }
.site-page .group-title { scroll-margin-top: 92px; }
.site-environment .page > div, .site-environment .cards > div { min-width: 0; overflow-wrap: anywhere; }
.site-environment .source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-page.homepage .env-card-featured { border-color: var(--line); box-shadow: none; }

/* Manual-local tools sit below the identical global navigation. */
.manual-toolbar { position: sticky; top: 64px; z-index: 70; height: 48px; border-bottom: 1px solid var(--line); background: var(--paper); }
.manual-toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1440px, calc(100% - 2 * var(--site-gutter))); height: 100%; margin: 0 auto; }
.manual-toolbar-title { color: var(--soft); font-size: 13px; text-decoration: none; }
.manual-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.site-page .manual-sidebar, .site-page .manual-toc { top: 112px; }
.site-page .manual-layout { margin-top: 0; }
.site-page .manual-article h1 { font-weight: 400; }
.site-page .manual-content h2, .site-page .manual-related h2 { font-weight: 400; scroll-margin-top: 140px; }
.site-page .manual-search { margin-top: 128px; max-height: calc(100dvh - 160px); }
.site-page .manual-skip:focus { z-index: 160; }
@media (max-width: 900px) { .site-environment .source-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 819px) {
  .site-page { --site-gutter: 20px; }
  .site-brand { font-size: 16px; gap: 8px; }
  .site-brand img { width: 21px; height: 21px; }
  .site-home { min-height: 40px; padding: 8px 15px; margin-left: auto; font-size: 13px; border-radius: 10px; }
  .site-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 40px; margin-left: 10px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
  .site-menu-toggle img { width: 19px; height: 19px; }
  .site-menu { display: none; position: absolute; inset: 64px 0 auto; margin: 0; padding: 12px 20px 20px; max-height: calc(100dvh - 64px); overflow-y: auto; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 20px rgb(17 17 16 / 5%); }
  .site-header.is-menu-open .site-menu { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .site-menu > a, .site-dropdown > summary { width: 100%; justify-content: space-between; padding: 12px 8px; }
  .site-dropdown-panel { position: static; width: 100%; max-height: none; border-radius: 8px; box-shadow: none; margin-bottom: 8px; }
  .site-dropdown[open]::after { display: none; }
  .site-footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .site-footer-mark { grid-column: 1 / -1; }
  .site-page .manual-content h2 { scroll-margin-top: 132px; }
  .site-page .manual-search { margin: 0; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .site-dropdown > summary img { transition: none; } }
.site-page .release-live { font: 400 11px/1.5 var(--body); color: #62615e; border: 1px solid #cecbc2; padding: 4px 9px; vertical-align: middle; border-radius: 5px; margin-left: 10px; }
.site-capabilities-menu > summary a { color: inherit; text-decoration: none; }
.site-capabilities-menu > summary a[aria-current=page] { font-weight: 500; text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 6px; }

/* Kyanic's deployed palette; source personal site remains read-only. */
.site-page { --paper: #f0eee6; --card: #e0d8c9; --ink: #141413; --line: #cecbc2; --surface: #e8e5dd; --surface-raised: #faf9f5; --manual-hover: var(--surface); }
.site-page .manual-search-trigger,.site-page .manual-prompt { background: var(--surface); border-color: var(--line); }
.site-page .manual-sidebar,.site-page .manual-toc,.site-page .manual-search,.site-page .manual-markdown { background: var(--paper); }
.site-page .metric-figure { background: var(--surface-raised); border-color: var(--line); }
.site-page.homepage .env-card { background: var(--card); border-color: var(--line); }
.site-page.homepage .start-card, .site-page.homepage .start-card input { background: #fff; }
.site-page .site-footer { background: #141413; color: #faf9f5; }
.site-page .site-home { color: #faf9f5; }
