/* Cache - section pages.
   Extends the homepage register: same palette and type, content as a
   simple hairline list. Design to match, not to impress. */
:root {
  --field: #f6f7f9;
  --bg: #f6f7f9;
  --art-ground: #f6f7f9;
  --panel: #ffffff;
  --panel-raised: #eff2f5;
  --panel-hi: #eff2f5;
  --well: #e3e7ed;
  --ink: #0f131a;
  --ink-body: #20262f;
  --ink-dim: #3a424e;
  --ink-mute: #4a5361;
  --ink-faint: #4a5361; /* R49: the Faint value; it held the Strong Line value at 1.5:1 */
  --ink-hint: #6e7785; /* R56: placeholders in fill-in fields only, on Surface (4.53:1) */
  --line: #d0d7e0;
  --line-strong: #bac3ce;
  --link: #0f131a;
  --link-line: #7f8895;
  --accent: #0f131a;
  --accent-rgb: 15, 19, 26;
  --accent-soft: #e3e7ed;
  --slate: #3e5680;
  --sage: #2f5d46;
  --sage-deep: #1f4231;
  --sage-soft: #e0ece6;
  --sage-ink: #1f4231;
  --amber: #6b4600;
  --amber-soft: #fff1d9;
  --glossary-ai: #64518c;
  --glossary-ops: #5c6325;
  --glossary-code: #176a72;
  --glossary-knowledge: #814869;
  --info-soft: #eaf1f8;
  --info-ink: #1f4a75;
  --info-line: #bdccdb;
  --red: #9e2a25;
  --red-soft: #fdeceb;
  --dot: #2f5d46;
  --scrim-mid: rgba(246, 247, 249, 0.85);
  --home-header-ground: #f6f7f9;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  /* Inter is the shared text family. */
  --disp: "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --menu-flip: .45s;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: rgba(47, 93, 70, 0.18); color: var(--ink); }
/* BEGIN hide-scrollbar 2026-08-23: revised 2026-08-24. Scrolling pages
   (sections, artifact pages) show a thin styled bar so the reader can tell
   where they are. The homepage is not scrollable, so nothing to draw there.
   Embedded frames never show one: the frame is auto-height and the page
   scrolls instead, so an inner bar would just be clutter. */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--field); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--field); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; border: 2px solid var(--field); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-dim); }
/* END hide-scrollbar */
* { margin: 0; padding: 0; box-sizing: border-box; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { min-height: 100%; }
body {
  background: var(--field); color: var(--ink-body);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.corner { position: fixed; z-index: 40; }
.corner.tl, .corner.tr { top: 1.7rem; }
.corner.tl { left: 2.8rem; }
.corner.tr { right: 2.8rem; top: calc(1.7rem + 3px); }
/* BEGIN nav-rail 2026-08-23: collapsible rail, top-right. Collapsed shows
   numbered glyphs and a toggle; expanded slides open to labels. Replaces
   the top horizontal bar and the earlier nav-autohide experiment. */
.corner.tr { transition: none; }
/* END nav-rail */

.brand { display: inline-flex; align-items: center; height: 52px; text-decoration: none; }
.brand svg { display: block; height: 29px; width: auto; }
.brand .brand-ink { fill: var(--ink); }
.brand .brand-dot { fill: var(--sage); }

/* ---- nav: Menu v2 morphing pill & drawer panel, top-right ----
   The Menu and Search buttons are light controls (the user's pick, 2026-11-14):
   a Surface face on the button itself, a Strong Line edge and the resting
   shadow on its frame, Ink text, Raised on hover, 999px at rest. The open
   menu is a container: Surface, Light Line, the 12px corner. */

nav.rail.menu-v2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

body { --search-pill-width: 46px; }
body.search-is-open { --search-pill-width: 170px; }
.search-pill {
  position: absolute; top: 0; right: calc(100% + 12px); z-index: 4;
  display: flex; align-items: center; overflow: hidden;
  width: var(--search-pill-width); height: 46px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  pointer-events: auto; transition: width .24s ease, border-color .18s ease;
}
.search-pill:not(.is-open) { overflow: visible; }
.search-pill:focus-within { border-color: var(--line-strong); }
.rail-open .search-pill { visibility: hidden; pointer-events: none; }
.search-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none;
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--ink-mute); border-radius: 999px;
  transition: color .18s ease;
}
.search-toggle:hover, .search-toggle:focus-visible { color: var(--ink); }
.search-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.search-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-pill .qj-input { display: none; padding: 0; font-size: .85rem; }
.search-pill.is-open .qj-input { display: block; }
.search-pill:has(.qj-input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-close {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none;
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-right: 12px; color: var(--ink-mute);
}
.search-pill.is-open .search-close { display: flex; }
.search-close:hover, .search-close:focus-visible { color: var(--ink); }
.search-close:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.search-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.mv2-shell {
  position: relative;
  margin-left: auto;
  width: 96px;
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  pointer-events: auto;
  transition:
    width .46s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius .46s cubic-bezier(0.22, 1, 0.36, 1),
    background .2s ease,
    border-color .2s ease,
    box-shadow .46s cubic-bezier(0.22, 1, 0.36, 1);
}

.mv2-shell:not(.is-open):hover {
  border-color: var(--line-strong);
  background: var(--panel-raised);
}

.mv2-shell.is-open {
  width: 380px;
  border-radius: 12px;
  border-color: var(--line-strong);
  background: var(--panel);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.62), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}


/* Menu button header row inside the morphing pill/panel */
.mv2-shell .menu-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border-radius: inherit;
  color: var(--ink);
  user-select: none;
  transition: color .15s ease;
}

.mv2-shell .menu-btn:hover {
  color: var(--accent);
}

.mv2-shell .menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mv2-shell.is-open .menu-btn {
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--line);
}

/* Letter-by-letter 3D flip: MENU <-> CLOSE (rotateX, ~40ms apart) */
.mv2-shell .menu-btn .lbl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family:var(--sans);
  font-weight: 500;
  font-size:13px;
  letter-spacing:0;
  line-height: 1.4;
  perspective: 340px;
}

.m-slot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.08em;
  height: 1.4em;
  transform-style: preserve-3d;
  transition:
    transform .34s cubic-bezier(0.34, 1.35, 0.64, 1),
    width .28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .24s ease;
  transition-delay: calc((4 - var(--slot-i, 0)) * 40ms);
}

.mv2-shell.is-open .m-slot {
  transform: rotateX(-180deg);
  transition-delay: calc(var(--slot-i, 0) * 40ms);
}

.m-slot--fifth {
  width: 0;
  opacity: 0;
  overflow: visible;
}

.mv2-shell.is-open .m-slot--fifth {
  width: 1.08em;
  opacity: 1;
}

.m-ch {
  grid-area: 1 / 1;
  display: inline-block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-indent: 0.14em;
}

.m-front {
  transform: rotateX(0deg) translateZ(1px);
}

.m-back {
  transform: rotateX(180deg) translateZ(1px);
}

/* Expandable panel body */
.mv2-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .46s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear .46s;
}

.mv2-shell.is-open .mv2-body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .46s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.mv2-body-inner {
  overflow: hidden;
  min-height: 0;
}

/* The menu's labels are 13px Label text: line height 1.4 (type.line-height). */
#mv2-shell .mv2-cats, #mv2-shell .mv2-cats * { line-height: 1.4; }

.mv2-cats {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  transition-delay: 0s;
}

/* Rows fade in after the panel has grown */
.mv2-shell.is-open .mv2-cats {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease .22s, transform .24s ease .22s;
}

/* Category drawers (01 AI, 02 Platforms, 03 Library, 04 Resources) */
.mv2-cat {
  position: relative;
  border-radius: 0;
  transition: background .16s ease;
}

.mv2-cat + .mv2-cat {
  border-top: 1px solid rgba(52, 52, 59, 0.38);
}

.mv2-cat-bar {
  display: flex;
  align-items: center;
  position: relative;
}

.mv2-cat-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}

.mv2-cat-btn .idx {
  font-family:var(--sans);
  font-size:13px;
  font-weight: 600;
  letter-spacing:0;
  color: var(--sage);
  flex-shrink: 0;
}

.mv2-cat-btn .nav-lbl {
  font-family:var(--sans);
  font-size:13px;
  font-weight: 500;
  letter-spacing:0;
  color: var(--ink);
  transition: color .15s ease;
}

.mv2-cat-chev {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--ink-mute);
  border-bottom: 1.6px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform .22s ease, border-color .15s ease;
  flex-shrink: 0;
}

.mv2-cat-btn:hover,
.mv2-cat-btn:focus-visible {
  background: var(--panel-raised);
}

.mv2-cat-btn:hover .nav-lbl,
.mv2-cat-btn:focus-visible .nav-lbl,
.mv2-cat.is-open .mv2-cat-btn .nav-lbl {
  color: var(--accent);
}

.mv2-cat-btn:hover .mv2-cat-chev,
.mv2-cat-btn:focus-visible .mv2-cat-chev,
.mv2-cat.is-open .mv2-cat-chev {
  border-color: var(--accent);
}

.mv2-cat.is-open .mv2-cat-chev {
  transform: rotate(-135deg);
}

.mv2-cat.is-current > .mv2-cat-bar::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24%;
  bottom: 24%;
  width: 2px;
  border-radius: 0;
  background: var(--accent);
}

.mv2-cat-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 4px;
  border-radius: 6px;
  color: var(--ink-mute);
  text-decoration: none;
  font-family:var(--sans);
  font-size:13px;
  transition: color .15s ease, background .15s ease;
  flex-shrink: 0;
}

.mv2-cat-page:hover,
.mv2-cat-page:focus-visible {
  color: var(--accent);
  background: var(--panel-raised);
}

/* Category drawer panel */
.mv2-cat-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s cubic-bezier(0.22, 1, 0.36, 1);
}

.mv2-cat.is-open .mv2-cat-panel {
  grid-template-rows: 1fr;
}

.mv2-cat-inner {
  overflow: hidden;
  min-height: 0;
}

.mv2-cat-body {
  padding: 2px 8px 10px 34px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Folders inside AI and Platforms */
.mv2-folder {
  display: flex;
  flex-direction: column;
}

.mv2-folder-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}

.mv2-folder-title {
  font-family:var(--sans);
  font-size:13px;
  font-weight: 500;
  letter-spacing:0;
  color: var(--ink);
  transition: color .15s ease;
}

.mv2-folder-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mv2-folder-count {
  font-family:var(--sans);
  font-size:13px;
  color: var(--ink-mute);
}

.mv2-chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--ink-mute);
  border-bottom: 1.5px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .15s ease;
}

.mv2-folder-btn:hover,
.mv2-folder-btn:focus-visible {
  background: var(--panel-raised);
}

.mv2-folder-btn:hover .mv2-folder-title,
.mv2-folder-btn:focus-visible .mv2-folder-title,
.mv2-folder.is-open .mv2-folder-title {
  color: var(--accent);
}

.mv2-folder-btn:hover .mv2-chev,
.mv2-folder-btn:focus-visible .mv2-chev,
.mv2-folder.is-open .mv2-chev {
  border-color: var(--accent);
}

.mv2-folder.is-open .mv2-chev {
  transform: rotate(-135deg);
}

.mv2-folder-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .24s cubic-bezier(0.22, 1, 0.36, 1);
}

.mv2-folder.is-open .mv2-folder-panel {
  grid-template-rows: 1fr;
}

.mv2-folder-inner {
  overflow: hidden;
  min-height: 0;
}

/* Thin guide line inside open folders */
.mv2-guide-list {
  margin: 3px 0 6px 10px;
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mv2-soon {
  padding: 7px 10px 2px;
  font-family:var(--sans);
  font-size:13px;
  letter-spacing:0;
  text-transform:none;
  color: var(--ink-mute);
}

/* Type headings inside Library and Resources */
.mv2-type-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mv2-type-group + .mv2-type-group {
  margin-top: 8px;
}

.mv2-type-head {
  padding: 2px 10px;
}

.mv2-type-link {
  font-family:var(--sans);
  font-size:13px;
  font-weight: 500;
  letter-spacing:0;
  text-transform:none;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .15s ease;
}

.mv2-type-link:hover,
.mv2-type-link:focus-visible {
  color: var(--accent);
}

.mv2-type-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.drop-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s ease;
}

.drop-link:hover,
.drop-link:focus-visible {
  background: var(--panel-raised);
}

.drop-link .dl-title {
  font-size:13px;
  font-weight: 500;
  letter-spacing:0;
  color: var(--ink);
  transition: color .15s ease;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-link:hover .dl-title,
.drop-link:focus-visible .dl-title {
  color: var(--accent);
}

.drop-link .dl-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family:var(--sans);
  font-size:13px;
  font-weight: 600;
  color: var(--sage);
  flex-shrink: 0;
  white-space: nowrap;
}

.type-ic {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-link .type-ic {
  align-self: center;
  width: 13.5px;
  height: 13.5px;
}

.mv2-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  font-family:var(--sans);
  font-size:13px;
  letter-spacing:0;
  text-transform:none;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.mv2-all-link:hover,
.mv2-all-link:focus-visible {
  color: var(--accent);
  background: var(--panel-raised);
}

.drop-empty {
  padding: 0.6rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Phones: pill at rest, nearly full width when open */
@media (max-width: 599px) {
  .brand { height: 44px; }
  .brand svg { height: 22px; }
  body { --search-pill-width: 46px; }
  body.search-is-open { --search-pill-width: min(170px, max(90px, calc(100vw - 1.2rem - 84px - 12px - 1.6rem - 82px - 24px))); }
  .search-pill { height: 46px; }
  /* Touch targets (R69): the trigger and the close button stay 44 by 44 while search is open. */
  .search-pill.is-open .search-close { width: 44px; height: 44px; margin-right: 0; }
  .search-pill:not(.is-open) .search-toggle::after,
  .mv2-shell:not(.is-open) .menu-btn::after {
    content: ""; position: absolute; inset: -4px;
  }
  .mv2-shell {
    width: 84px;
    border-radius: 999px;
  }
  .mv2-shell .menu-btn {
    height: 44px;
    padding: 0 13px;
  }
  .mv2-shell .menu-btn .lbl {
    font-size:13px;
  }
  .mv2-shell.is-open {
    width: calc(100vw - 1.2rem - 12px);
    max-width: 380px;
    border-radius: 12px;
  }
  /* Touch targets (R69): every menu control at least 44 by 44. */
  .mv2-shell.is-open .menu-btn { height: 44px; }
  .mv2-cat-btn { min-height: 44px; }
  .mv2-cat-page { position: relative; }
  .mv2-cat-page::after { content: ""; position: absolute; inset: -7px; }
  .mv2-folder-btn, .drop-link { min-height: 44px; align-items: center; }
  .mv2-type-link { display: inline-flex; align-items: center; min-height: 44px; }
  .mv2-type-head { padding: 0 10px; }
  .mv2-type-group + .mv2-type-group { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mv2-shell,
  .mv2-body,
  .mv2-cats,
  .mv2-cat-panel,
  .mv2-folder-panel,
  .m-slot,
  .mv2-cat-chev,
  .mv2-chev,
  .search-pill,
  .search-toggle {
    transition: none !important;
  }
}
/* END menu-v2 */

/* ---- section body ---- */
.section {
  position: relative; z-index: 10;
  max-width: 620px;
  margin: 0 auto;
  padding: 9.5rem 1.6rem 6rem;
}
.sec-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 2.2rem;
}
.sec-label .sec-idx { color: var(--sage); margin-right: 0.7rem; }

.sec-list, .sec-list ul { list-style: none; }
.sec-row a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.4rem;
  padding: 1.05rem 0.2rem;
  border-top: 1px solid var(--line-strong);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.sec-list > .sec-row:last-child a,
.sec-group ul .sec-row:last-child a { border-bottom: 1px solid var(--line-strong); }
.sec-row a:hover { background: var(--panel); }
.sec-row .sr-title { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); transition: color .15s; }
.sec-row a:hover .sr-title { color: var(--accent); }
.sec-row .sr-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.28rem;
  flex-shrink: 0; text-align: right;
}
.sec-row .sr-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--disp); font-size: 0.82rem; font-weight: 600;
  color: var(--sage); white-space: nowrap;
}
@media (min-width: 601px) {
  .sec-row .sr-type { align-items: baseline; }
  .sec-row .sr-type .type-ic { align-self: center; }
}
/* Row dates are calm labels (see Calm Labels below): Inter, sentence case. */
.sec-row .sr-date {
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0;
  text-transform: none; color: var(--ink-mute); white-space: nowrap;
}

.sec-group { margin-bottom: 2.6rem; }
.sec-dir {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 0.6rem;
}
.sec-empty {
  padding: 1.05rem 0.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ---- artefact viewer ----
   A framed piece: title block in the site's register, then the artefact
   itself in an iframe so its own styles stay entirely its own. */
.artefact {
  position: relative; z-index: 10;
  /* artefact-frame 2026-08-24: widen so more of the piece is visible on a
     large screen, and square the frame. */
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.art-head { margin-bottom: 1.6rem; }
.art-title {
  font-family: var(--disp); font-size: 1.5rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
}
.art-meta {
  margin-top: 0.55rem;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
  /* meta-legibility 2026-08-24: --ink-faint lifted to --ink-dim */
  text-transform: uppercase; color: var(--ink-dim);
}
.art-raw {
  display: inline-block; margin-top: 1.1rem;
  /* art-raw-register 2026-08-24: this is a content link, not metadata, so it
     takes the display font and Title Case rather than mono-uppercase. */
  font-family: var(--disp); font-size: 0.8rem; font-weight: 500; letter-spacing: -0.01em;
  text-transform: none; color: var(--ink-dim);
  text-decoration: none; transition: color .2s;
}
.art-raw:hover { color: var(--accent); }

.art-frame {
  display: block; width: 100%; height: 74vh; min-height: 420px;
  background: var(--bg);
  /* square corners, and a visible scrollbar so the reader can tell where
     they are inside the frame */
  border: 1px solid var(--line); border-radius: 0;
}
/* BEGIN inline-artefact 2026-08-24: an inlined artefact renders in the shell
   as a contained card. Its own scoped styles live on .art-inline; this is
   only the host frame. */
.art-inline-host { display: block; width: 100%; }
.art-inline {
  background: #ffffff; color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.art-inline .wrap { max-width: none; padding: 28px 30px 40px; }
/* END inline-artefact */
/* BEGIN artefact-autoheight 2026-08-23: a frame that received a height
   from its artefact drops the viewport cap and the min-height floor. */
.art-frame--auto { height: auto; min-height: 0; }
/* END artefact-autoheight */

.art-missing { padding-top: 0.5rem; }
.art-missing .sec-idx { color: var(--ink-mute); }
.art-missing-body {
  padding: 1.05rem 0.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-dim);
}

@media (max-width: 900px) {
  .corner.tl { top: 1.4rem; left: 1.6rem; }
  .corner.tr { top: calc(1.4rem + 3px); right: 1.2rem; }
  .section { padding-top: 8.5rem; }
  .artefact { padding-top: 8.5rem; }
  .art-frame { height: 68vh; }
}

/* BEGIN reader-bar 2026-10-18: artefact pages. The piece runs full-bleed
   under one bar; no box, no border, no second title. At the top the bar is
   just the page, with the brand, trail, search and toggle on one line
   centered in the bar. Once the reader scrolls it condenses and turns to frosted glass,
   so the piece reads as passing underneath the site rather than being
   framed by it. */
/* --trail-reserve: both page insets, MENU, and a 12px gap either side of the pill */
:root { --bar-h: 6rem; --bar-h-min: 4.4rem; --trail-reserve: calc(2.8rem * 2 + 96px + 24px); }
.art-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--bar-h);
  background: var(--art-ground, var(--field));
  border-bottom: 1px solid transparent;
  transition: height .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
/* At rest the viewer's corners sit where every page puts them (.corner), so the
   wordmark and menu don't move between pages; scrolling centres them in the
   shrunken bar. */
.is-artefact .corner.tl, .is-artefact .corner.tr { transition: top .28s ease; }
.is-artefact.is-scrolled .art-bar {
  height: var(--bar-h-min);
  background: rgba(14, 14, 17, 0.9);
  background: color-mix(in srgb, var(--art-ground, var(--field)) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.is-artefact.is-scrolled .corner.tl { top: calc((var(--bar-h-min) - 52px) / 2); }
.is-artefact.is-scrolled .corner.tr { top: calc((var(--bar-h-min) - 46px) / 2); }

/* the trail: brand / section / directory / piece */
.is-artefact .corner.tl {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: calc(100% - var(--trail-reserve) - var(--search-pill-width));
}
/* Labels keep their written Title Case, at the Label size in Inter. */
.trail {
  display: flex; align-items: baseline; gap: 0.6rem; min-width: 0;
  overflow: hidden; white-space: nowrap;
  font: 500 13px/1.4 var(--body, var(--sans)); letter-spacing: 0;
  text-transform: none; color: var(--ink-dim);
}
.trail .tr-sep { color: var(--line-strong); letter-spacing: 0; }
/* The section link is a link at rest (page.controls): Ink with the Link Underline. */
.trail a.tr-sec { color: var(--ink); text-decoration: underline; text-decoration-color: var(--link-line, #7f8895); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.trail a.tr-sec:hover { color: var(--ink); text-decoration-color: var(--ink); }
.trail .tr-title {
  font-family: var(--disp); font-size: 13px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.trail .tr-type {
  font-family: var(--body, var(--sans)); font-size: 13px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--ink-mute);
  margin-left: 0.45rem;
}
.trail .tr-type .tr-dot {
  color: var(--line-strong); margin-right: 0.35rem; letter-spacing: 0;
}
.trail .tr-title, .trail .tr-title-sep { opacity: 0; }
.trail .tr-title, .trail .tr-title-sep { visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
.is-title-out .trail .tr-title, .is-title-out .trail .tr-title-sep { opacity: 1; }
.is-title-out .trail .tr-title, .is-title-out .trail .tr-title-sep { visibility: visible; transition: opacity .2s, visibility 0s; }
/* the piece itself */
body.is-artefact { background: var(--art-ground, var(--field)); }

/* art-ground-register unified into locked light palette */
.is-artefact .artefact { max-width: none; padding: var(--bar-h) 0 0; }
.is-artefact .art-frame {
  height: calc(100vh - var(--bar-h)); min-height: 0;
  border: 0; background: transparent;
}
.is-artefact .art-frame--auto { height: auto; }
.is-artefact .art-missing {
  max-width: 620px; width: 100%; margin: 0 auto;
  min-height: calc(100vh - var(--bar-h));
  padding: 3.5rem 1.5rem 4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.is-artefact .art-missing[hidden] { display: none; }
.art-missing .nf-stage {
  display: block; width: min(100%, 580px); height: auto;
  margin: 0 auto; overflow: visible;
}
.art-missing .nf-digit {
  font-family: var(--disp); font-weight: 600; font-size: 192px;
  fill: var(--ink); user-select: none;
}
.art-missing .nf-ring { fill: var(--ink); }
.art-missing .nf-floor { stroke: var(--line); stroke-width: 1.25; }
.art-missing .nf-dot {
  fill: var(--sage);
  transform-box: fill-box; transform-origin: center;
  animation: art-nf-roll 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes art-nf-roll {
  0% { transform: translate(-300px, -68px); }
  28% { transform: translate(-255px, 0px); }
  100% { transform: translate(0px, 0px); }
}
.art-missing .nf-title {
  margin-top: 2.3rem;
  font-family: var(--disp); color: var(--ink);
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
}
.art-missing .nf-note {
  margin-top: 0.65rem; color: var(--ink-dim); font-size: 0.96rem;
}
.art-missing .nf-path {
  font-family: var(--mono); font-size: 0.84rem;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.14rem 0.45rem;
}
.art-missing .nf-home {
  display: inline-block; margin-top: 1.9rem;
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.72rem 1.45rem; background: transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.art-missing .nf-home:hover {
  border-color: var(--accent); background: var(--panel);
}
@media (prefers-reduced-motion: reduce) {
  .art-missing .nf-dot { animation: none; transform: none; }
}
/* the menu over a piece gets a deeper shadow: it is floating over content */
.is-artefact .mv2-shell.is-open { box-shadow: 0 28px 64px rgba(0, 0, 0, 0.68); }

@media (max-width: 900px) {
  nav.rail { align-items: flex-end; } /* the panel hangs under the toggle, not across the page */
  :root { --bar-h: 4.6rem; --bar-h-min: 3.9rem; --trail-reserve: calc(1.6rem + 1.2rem + 96px + 24px); }
  .trail .tr-sec, .trail .tr-sep:not(:nth-last-of-type(1)) { display: none; }
  .is-artefact .art-frame { height: calc(100vh - var(--bar-h)); }
  .is-artefact .art-frame--auto { height: auto; }
}
@media (max-width: 599px) {
  :root { --trail-reserve: calc(1.6rem + 1.2rem + 84px + 24px); }
  /* The 46px menu centres on the 44px wordmark, at rest and in the scrolled reader bar. */
  .corner.tr { top: calc(1.4rem - 1px); }
  .is-artefact.is-scrolled .corner.tl { top: calc((var(--bar-h-min) - 44px) / 2); }
  .is-artefact.is-scrolled .corner.tr { top: calc((var(--bar-h-min) - 46px) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .art-bar, .is-artefact .corner.tl, .is-artefact .corner.tr,
  .trail .tr-title, .trail .tr-title-sep,
  .is-title-out .trail .tr-title, .is-title-out .trail .tr-title-sep { transition: none; }
}
/* END reader-bar */

/* BEGIN reader-nav-hit-testing 2026-10-18: the folded rail keeps its
   layout for the fan animation, but its empty box must not block the
   page below it. The toggle remains clickable; opening restores the
   rail's normal hit testing. */
nav.rail:not(.rail-open) { pointer-events: none; }
nav.rail .menu-btn { pointer-events: auto; }
/* END reader-nav-hit-testing */

/* BEGIN section-polish 2026-10-19
   Section pages: an intro line under the label, a quiet summary under each
   title, empty directories folded into one "Coming soon" line.
   Legibility: --line-strong (#34343b) stays for scrollbars and separators
   only. Text that people read uses --ink-mute (#82828c), which passes WCAG
   AA for small text. */
.sec-dir, .sec-empty, .drop-empty, .drop-dir .dl-arrow { color: var(--ink-mute); }

.sec-label { margin-bottom: 0.9rem; }
.sec-intro {
  font-size: 0.98rem; line-height: 1.6; color: var(--ink-body);
  max-width: 46ch; margin-bottom: 2.6rem;
}
.sec-row .sr-main { display: flex; flex-direction: column; gap: 0.32rem; min-width: 0; }
.sec-row .sr-sum {
  font-size: 0.82rem; line-height: 1.5; color: var(--ink-dim);
  letter-spacing: 0; font-weight: 400;
}
.sec-row a { padding: 1.15rem 0.2rem; }
.sec-soon {
  padding-top: 0.2rem;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
}
@media (max-width: 600px) {
  .sec-row a { flex-direction: column; gap: 0.55rem; }
  .sec-row .sr-meta { flex-direction: row; align-items: center; gap: 0.75rem; text-align: left; }
}
/* END section-polish */

/* BEGIN quick-jump-palette 2026-10-26: global "/" or Ctrl+K search modal across
   all pages and glossary terms, plus floating glossary term preview card. */
.qj-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 11vh 1.25rem 2rem;
}
.qj-overlay[hidden] { display: none; }
.qj-overlay--bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; padding-top: max(6rem, 11vh); }
.qj-overlay--bar .qj-modal { pointer-events: auto; }
.qj-overlay--bar .qj-head { display: none; }
.qj-modal {
  width: min(100%, 580px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: min(74vh, 540px);
}
.qj-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 17, 0.45);
}
.qj-head svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--sage); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.qj-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font-family: var(--sans); font-size: 0.96rem; color: var(--ink);
}
.qj-input::placeholder { color: var(--ink-mute); }
.qj-esc {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
  background: var(--field); border: 1px solid var(--line);
  border-radius: 5px; padding: 0.2rem 0.45rem; cursor: pointer;
}
.qj-esc:hover { color: var(--ink); border-color: var(--line-strong); }
.qj-list {
  overflow-y: auto; padding: 0.45rem;
  display: flex; flex-direction: column; gap: 2px;
}
.qj-group-lbl {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); padding: 0.55rem 0.65rem 0.25rem;
}
.qj-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
  padding: 0.62rem 0.75rem; border-radius: 9px;
  text-decoration: none; color: var(--ink);
  transition: background .12s;
}
.qj-row:hover, .qj-row.is-active {
  background: var(--well);
}
.qj-row-left {
  display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; flex: 1;
}
.qj-row-left .type-ic {
  width: 16px; height: 16px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--sage); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.qj-row-text {
  display: flex; flex-direction: column; gap: 0.14rem; min-width: 0; flex: 1;
}
.qj-row-title {
  font-family: var(--disp); font-size: 0.86rem; font-weight: 500;
  color: var(--ink); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qj-row-title i {
  font-style: normal; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
  margin-left: 0.35rem;
}
.qj-row-sub {
  font-size: 0.76rem; color: var(--ink-dim); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qj-row-meta {
  flex: none;
  font-family: var(--mono); font-size: 0.56rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); white-space: nowrap;
}
.qj-row.is-active .qj-row-meta { color: var(--accent); }
.qj-empty {
  padding: 2rem 1rem; text-align: center;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.qj-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--field);
  font-family: var(--mono); font-size: 0.56rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.qj-foot-keys { display: flex; align-items: center; gap: 0.85rem; }
.qj-foot-keys kbd {
  font-family: var(--mono); font-size: 0.56rem;
  color: var(--ink-body); background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 1px 5px; margin-right: 3px;
}

/* Glossary hover / focus preview card */
.gterm-pop {
  position: fixed; z-index: 1150;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--panel); color: var(--ink-body);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 18px 40px rgba(15, 19, 26, 0.14);
  pointer-events: auto;
  transition: opacity .14s ease, transform .14s ease;
}
.gterm-pop[hidden] { display: none; }
.gp-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 0.32rem;
}
.gp-eyebrow {
  font-family: var(--disp); font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--ink-mute);
  white-space: nowrap;
}
.gp-tool {
  flex-shrink: 0;
  font-family: var(--sans);
  letter-spacing: 0; color: var(--ink-dim);
  background: var(--well);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 8px; white-space: nowrap;
}
.gp-title {
  font-family: var(--disp); font-weight: 600;
  color: var(--ink); line-height: 1.25; margin-bottom: 0.32rem;
}
.gp-desc {
  font-family: var(--sans);
  color: var(--ink-body); margin: 0;
}
.gp-top .gp-link { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.gp-link {
  font-family: var(--sans); font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: var(--ink); text-decoration: none;
}
.gp-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .qj-overlay { padding: 4.5rem 0.75rem 1rem; }
  .qj-overlay--bar { padding-top: 4.5rem; }
  .qj-foot-keys { display: none; }
}
/* END quick-jump-palette */

/* BEGIN polish-pass 2026-10-26: cross-document view transitions, top scroll
   scrim behind fixed header chrome on scrolling pages, tabular numerals on
   dates and indices, and subtle specular top-edge on dark surface controls. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 150ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  .corner.tl { view-transition-name: cache-brand; }
  .corner.tr { view-transition-name: cache-nav; }
}

body:not(.is-home)::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 82px;
  background: linear-gradient(to bottom, var(--field) 42%, var(--scrim-mid) 72%, transparent);
  z-index: 35;
  pointer-events: none;
}

/* A page shown inside the article frame already sits under the site's own
   scrim, so its standalone scrim would fade its title. */
html.is-framed body::before { display: none; }

.sr-date,
.sec-label span,
.mv2-cat-idx {
  font-variant-numeric: tabular-nums;
}

:root {
  color-scheme: dark;
}

.sec-label {
  text-wrap: balance;
}

.sr-sum,
.sec-intro {
  text-wrap: pretty;
}

/* END polish-pass */

/* BEGIN section-band 2026-10-31: Banner A's flow lines in the top right of
   the four section pages, running off the edge behind the menu. site.js adds
   the element from initSectionPage, so no other page ever has it. The art is
   the banner's left 820px with its left and bottom fades baked in, dithered
   down to the exact page field, so the band needs no CSS mask and shows no
   hard edge. The lines image masks one pass of Sage light on arrival, then
   the band stays still. */
.sec-band {
  --h: 300px;
  --w: calc(var(--h) * 2.0707);
  --lift: 0px;
  /* The art's tint and lower lines fade in from its left edge. Its top two
     lines, level with the intro, start 12.3% in. Keep that point right of the
     longest intro, which ends 460px into the column, by sliding the art off
     the right edge. */
  --start: calc(max(0px, 50% - 310px) + 1.6rem + 460px - var(--w) * 0.123);
  position: absolute; top: 0; left: 0; z-index: 0;
  width: 100%; height: calc(var(--h) - var(--lift));
  overflow: hidden;
  pointer-events: none;
}
.sec-band i {
  position: absolute; top: calc(var(--lift) * -1);
  left: max(100% - var(--w), var(--start));
  width: var(--w); height: var(--h);
}
.sec-band-art { background: url("/section-band.webp") 0 0 / 100% 100% no-repeat; }
.sec-band-light { display: none; }
/* At 1180px and below there is too little room beside the intro, so the band
   is one strip above the label on every page. The art lifts until it ends 2px
   above the label, so no text can reach a line. */
@media (max-width: 1180px) {
  .sec-band { --h: clamp(158px, 24vw + 14px, 250px); --lift: calc(var(--h) - 9.5rem + 2px); --start: 0px; }
  /* The open menu leaves only a gutter, too thin to show the lines as lines. */
  body:has(.mv2-shell.is-open) .sec-band { opacity: 0; }
}
@media (max-width: 900px) {
  .sec-band { --lift: calc(var(--h) - 8.5rem + 2px); }
}
/* The header scrim would cover the band's top, so it rises with the scroll
   and is whole by the time text reaches the header. site.js sets --scrim on
   section pages only. */
body:not(.is-home)::before { opacity: var(--scrim, 1); }
@media (prefers-reduced-motion: no-preference) {
  .sec-band { transition: opacity .25s ease; }
  .sec-band i.sec-band-light {
    display: block;
    opacity: 0;
    background: linear-gradient(90deg, transparent 40%, rgba(169, 203, 176, 0.95) 50%, transparent 60%) no-repeat;
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-mask: url("/section-band-lines.webp") 0 0 / 100% 100% no-repeat;
    mask: url("/section-band-lines.webp") 0 0 / 100% 100% no-repeat;
    animation: sec-band-arrive 5s cubic-bezier(.4, .1, .3, 1) .35s 1 both;
  }
}
@keyframes sec-band-arrive {
  0% { background-position: 100% 0; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { background-position: 0 0; opacity: 0; }
}
/* END section-band */


/* ==========================================================================
   STEP 3 SHARED LAYER - SITE SHELL, MENU, SEARCH & SECTION PAGES
   ========================================================================== */

/* ==========================================================================
   1. Locked Light Palette Tokens (DESIGN.md / Cache Colors D17)
   ========================================================================== */
:root,
html,
html.paper,
:root[data-ground="light"],
:root[data-p],
:root[data-p][data-ground] {
  --field: #f6f7f9;
  --bg: var(--field);
  --art-ground: var(--field);
  --panel: #ffffff;
  --panel-raised: #eff2f5;
  --panel-hi: #eff2f5;
  --well: #e3e7ed;
  --line: #d0d7e0;
  --line-strong: #bac3ce;
  --ink-faint: #4a5361;
  --ink: #0f131a;
  --ink-body: #20262f;
  --ink-dim: #3a424e;
  --ink-mute: #4a5361;
  --link: #0f131a;
  --link-line: #7f8895;
  --sage: #2f5d46;
  --sage-deep: #1f4231;
  --sage-soft: #e0ece6;
  --sage-ink: #1f4231;
  --accent: #0f131a;
  --accent-soft: #e3e7ed;
  /* Accent (deep slate blue): only the structural marks DESIGN.md's Accent row lists */
  --slate: #3e5680;
  --amber: #6b4600;
  --amber-soft: #fff1d9;
  --red: #9e2a25;
  --red-soft: #fdeceb;
  /* Danger (R51): the Danger callout only, for actions that can't be undone */
  --danger-soft: #fdeceb;
  --danger-ink: #7a2422;
  --danger-line: #e0c0bf;
  --dot: #2f5d46;
  --meter-off: #d0d7e0;
  --scrim-mid: rgba(246, 247, 249, 0.85);
  --home-header-ground: var(--field);

  /* Light-ground illustration and diagram hues (Overviews, Glossary, Access Levels) */
  --hue-blue: #2f5c8a;
  --hue-blue-bg: #e4edf6;
  --hue-teal: #2a6b63;
  --hue-teal-bg: #e1f0ed;
  --hue-amber: #6b4600;
  --hue-amber-bg: #fff1d9;
  --hue-rose: #91564a;
  --hue-rose-bg: #f6e7e3;
  --hue-code-rose: #8a3a2e;
  --hue-notes-blue: #285480;
  --hue-risk-1: #c7a79c;
  --hue-risk-2: #ad7d70;
  --hue-risk-3: #91564a;
  --hue-risk-4: #6f2e26;
  --hue-risk-5: #4a110e;
  --hue-low: #f1e7e2;
  --hue-med: #dcbcb1;
  --hue-high: #91564a;
  --ops-gold: #6b4600;
  --code-rose: var(--hue-code-rose);
  --notes-blue: var(--hue-notes-blue);
  --risk-1: var(--hue-risk-1);
  --risk-2: var(--hue-risk-2);
  --risk-3: var(--hue-risk-3);
  --risk-4: var(--hue-risk-4);
  --risk-5: var(--hue-risk-5);
  --risk-on-light: #0f131a;
  --risk-on-dark: #ffffff;
  --c1: var(--risk-1);
  --c2: var(--risk-2);
  --c3: var(--risk-3);
  --c4: var(--risk-4);
  --c5: var(--risk-5);
  --f-reach: var(--hue-blue);
  --f-reach-bg: var(--hue-blue-bg);
  --f-cap: var(--hue-teal);
  --f-cap-bg: var(--hue-teal-bg);
  --f-pool: var(--hue-amber);
  --f-pool-bg: var(--hue-amber-bg);
  --f-mod: var(--hue-rose);
  --f-mod-bg: var(--hue-rose-bg);
  --h-low: var(--hue-low);
  --h-med: var(--hue-med);
  --h-high: var(--hue-high);

  color-scheme: light;
}

html,
body,
html[data-p],
html[data-p] body {
  background-color: var(--field) !important;
  color: var(--ink-body);
}

::selection {
  background: rgba(47, 93, 70, 0.18);
  color: var(--ink);
}

/* Brand mark and prose links (excluding contents rail and whole-card links) */
.brand .brand-ink,
html[data-p] .brand .brand-ink {
  fill: var(--ink) !important;
}

.brand .brand-dot,
html[data-p] .brand .brand-dot {
  fill: var(--sage) !important;
}

:is(main, .c-page) :is(p, li, td) a:not(.ag-tile):not(.agent):not(.drawer-rel-pill):not(.c-gterm) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}

:is(main, .c-page) :is(p, li, td) a:not(.ag-tile):not(.agent):not(.drawer-rel-pill):not(.c-gterm):hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.c-rail a,
.c-toc a,
.c-reader-drawer a,
a.ag-tile,
a.agent {
  text-decoration: none !important;
}
/* Glossary terms in text: faint highlight behind the word, no underline (08:57 UTC / DESIGN.md) */
/* A term link that wraps keeps its rounded ends on every line. */
a.c-gterm { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
a.c-gterm,
.c-table td a.c-gterm {
  text-decoration: none !important;
  border-bottom: 0 !important;
  background: var(--well);
  border-radius: 6px;
  padding: 1px 5px;
  margin: 0;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

a.c-gterm:hover,
a.c-gterm:focus-visible,
.c-table td a.c-gterm:hover,
.c-table td a.c-gterm:focus-visible {
  text-decoration: none !important;
  border-bottom: 0 !important;
  background: var(--line);
  color: var(--ink);
}

/* Glossary terms inside a Well-filled part (a Note, the formula pane, the See
   Also banner): the chip's own Well fill would vanish into the part, so it takes
   the Surface fill with a 1px Light Line. The border replaces 1px of padding on
   each side, so the chip keeps its size and the line does not reflow. */
:is(.c-note:not(.c-note--tip, .c-note--warn, .c-note--info, .c-note--danger), .c-formula, .c-see-also) a.c-gterm {
  background: var(--panel);
  border: 1px solid var(--line) !important;
  padding: 0 4px;
}
:is(.c-note:not(.c-note--tip, .c-note--warn, .c-note--info, .c-note--danger), .c-formula, .c-see-also) a.c-gterm:is(:hover, :focus-visible) {
  background: var(--line);
}

/* Remove "Untested on Windows" / "Untested on Mac" status labels everywhere (08:57 UTC / DESIGN.md) */
.key-val small,
.macro-cell .tip small,
.macro-key li:has(.warn),
.macro-key:not(:has(.none)) {
  display: none !important;
}

.key-val.warn {
  color: var(--ink) !important;
}

.macro-cell .os.warn {
  color: var(--ink-dim) !important;
}


/* ==========================================================================
   2. Site Shell, Menu, Search, Section Pages, And Home (section.css / index.html)
   ========================================================================== */
:root[data-ground="light"] .mv2-shell,
:root[data-ground="light"] .search-pill,
:root[data-ground="light"] .qj-overlay,
.mv2-shell,
.search-pill,
.qj-overlay {
  --panel: #ffffff;
  --panel-raised: #eff2f5;
  --panel-hi: #eff2f5;
  --line: #d0d7e0;
  --line-strong: #bac3ce;
  --ink-faint: #4a5361;
  --ink: #0f131a;
  --ink-body: #20262f;
  --ink-dim: #3a424e;
  --ink-mute: #4a5361;
  --sage: #2f5d46;
  --accent: #0f131a;
  --accent-soft: #e0ece6;
  color-scheme: light;
}

/* Menu at rest: the frame carries the Strong Line edge and the resting shadow,
   the button carries the Surface face, so the button has its own resting cue
   (page.controls). The frame keeps its Surface while the panel collapses. */
.mv2-shell:not(.is-open),
.mv2-shell:not(.is-open):hover {
  background: transparent !important;
  border-color: var(--line-strong) !important;
  box-shadow: 0 2px 8px rgba(15, 19, 26, 0.12) !important;
}
.mv2-shell.is-closing { background: var(--panel) !important; }
.mv2-shell:not(.is-open) .menu-btn { background: var(--panel); }
.mv2-shell .menu-btn,
.mv2-shell .menu-btn:hover { color: var(--ink) !important; }
.mv2-shell .menu-btn:hover { background: var(--panel-raised); }
.mv2-shell .menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Menu open: a Surface container with a Light Line edge and the 12px corner. */
.mv2-shell.is-open {
  background: var(--panel) !important;
  border-color: var(--line) !important;
  box-shadow: 0 20px 48px rgba(15, 19, 26, 0.14), 0 2px 6px rgba(15, 19, 26, 0.06) !important;
}

.mv2-shell.is-open .menu-btn {
  background: transparent;
  border-bottom-color: var(--line) !important;
}

.mv2-cat + .mv2-cat {
  border-top-color: var(--line) !important;
}

/* Never number menus or section lists (DESIGN.md) */
.mv2-cat-btn .idx,
.sec-label .sec-idx,
.mv2-folder-count {
  display: none !important;
}

.mv2-type-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mv2-type-link .type-ic {
  width: 13.5px;
  height: 13.5px;
  color: var(--ink-dim);
  flex: none;
}

/* Home (R53): Recently Updated rows are styled only in index.html. */

.mv2-cat.is-current > .mv2-cat-bar::before {
  background: var(--sage) !important;
}

/* Search at rest: the same light control as the menu button. */
.search-pill:not(.is-open) {
  background: transparent !important;
  border-color: var(--line-strong) !important;
  box-shadow: 0 2px 8px rgba(15, 19, 26, 0.12) !important;
}
.search-pill:not(.is-open) .search-toggle { background: var(--panel); }
.search-pill:not(.is-open) .search-toggle,
.search-pill:not(.is-open) .search-toggle:hover { color: var(--ink) !important; }
.search-pill:not(.is-open) .search-toggle:hover { background: var(--panel-raised); }

.search-pill.is-open {
  background: var(--panel) !important;
  border-color: var(--line-strong) !important;
}

.search-pill.is-open .search-toggle,
.search-pill.is-open .search-close {
  color: var(--ink-dim) !important;
}

/* T16 phone search width repair */
@media (max-width: 599px) {
  body.search-is-open {
    --search-pill-width: min(220px, calc(100vw - 1.2rem - 84px - 12px - 1.6rem));
  }
  body.search-is-open .corner.tl {
    visibility: hidden;
    pointer-events: none;
  }
}

.qj-overlay:not(.qj-overlay--bar) {
  background: rgba(15, 19, 26, 0.32) !important;
}

.qj-modal {
  background: var(--panel) !important;
  border-color: var(--line-strong) !important;
  box-shadow: 0 20px 48px rgba(15, 19, 26, 0.16) !important;
}

.qj-head {
  background: var(--panel-raised) !important;
  border-bottom-color: var(--line) !important;
}

.qj-row:hover,
.qj-row.is-active {
  background: var(--sage-soft) !important;
}

.qj-row.is-active .qj-row-meta {
  color: var(--sage-ink) !important;
}

.qj-foot {
  background: var(--panel-raised) !important;
  border-top-color: var(--line) !important;
}

/* Calm labels in Menu, Search, and Section Pages (Home styles its own labels in index.html) */
.mv2-type-link,
.mv2-all-link,
.mv2-soon,
.drop-empty,
.qj-group-lbl,
.qj-row-meta,
.qj-row-title i,
.qj-esc,
.qj-foot,
.sec-label,
.sec-dir,
.sec-soon,
.sec-empty,
.sr-date {
  font-family:var(--sans);
  letter-spacing:0;
  text-transform:none;
}

.sec-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ink-dim) !important;
}

.sec-dir {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ink-mute) !important;
}

.sr-date {
  font-size: 12px !important;
  color: var(--ink-mute) !important;
}

.is-artefact.is-scrolled .art-bar {
  background: color-mix(in srgb, var(--field) 92%, transparent) !important;
  border-bottom-color: var(--line) !important;
  box-shadow: 0 4px 16px rgba(15, 19, 26, 0.06) !important;
}

/* No background video and no banner art (DESIGN.md) */
video,
.sec-band,
.sec-band-art,
.sec-band-light {
  display: none !important;
}

/* ==========================================================================
   7. Glossary And Floating Preview Card (artefacts/glossary.html & section.css)
   ========================================================================== */
.gterm-pop {
  background: var(--panel) !important;
  color: var(--ink-body) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 16px 36px rgba(15, 19, 26, 0.14) !important;
}

.gp-eyebrow {
  font-family: var(--sans) !important;

  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--sage) !important;
}


.gp-tool {
  font-family: var(--sans) !important;

  letter-spacing: 0 !important;
  color: var(--ink-dim) !important;
  background: var(--panel-raised) !important;
  border: 1px solid var(--line) !important;
}

.gp-title {
  color: var(--ink) !important;
}

.gp-desc {
  color: var(--ink-body) !important;
}


.gp-link {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--link-line) !important;
  text-underline-offset: 3px !important;
}

.gp-link:hover {
  text-decoration-color: var(--ink) !important;
}

/* One light theme (DESIGN.md): the article bar always uses the site ground,
   so it never picks up a dark ground read before the light layer loads. */
.art-bar { background: var(--field) !important; }

/* ==========================================================================
   11. T32 Step 3 Review Fixes (Items 1-15, 18, 19)
   ========================================================================== */

/* Item 1: Curator and 11 agent profiles: plain uncircled step numbers with top rules on desktop */
.ag-flow::before,
html[data-t~="nums"] .ag-flow::before {
  display: none !important;
}

.ag-flow > li,
.ag-flow li,
html[data-t~="nums"] .ag-flow li {
  text-align: left !important;
}

@media (min-width: 901px) {
  .ag-flow > li,
  .ag-flow li,
  html[data-t~="nums"] .ag-flow li {
    border-top: 1px solid var(--line-strong) !important;
    padding-top: 12px !important;
  }
}

.ag-n,
html[data-t~="nums"] .ag-n {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink-mute) !important;
  font-family: var(--body, var(--sans)) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums !important;
}

/* Item 2: Platforms section page: rows are list rows, never underlined body links */
:is(main, .c-page) :is(p, li, td) a:not(.ag-tile):not(.agent):not(.drawer-rel-pill):not(.c-gterm):not(.sec-row a) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}

.sec-row a,
.sec-row a:hover,
.sec-row a:focus-visible,
.sec-row a * {
  text-decoration: none !important;
}

/* Item 3: Platforms section page: .sec-label is the visible page heading, not a 13px muted label */
.sec-label {
  font-family: var(--disp) !important;
  font-size: 40px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 0 0 14px !important;
}

@media (max-width: 600px) {
  .sec-label {
    font-size: 30px !important;
  }
}

/* Item 4: Model Index: model names wrap up to 2 lines; open detail benchmark list wraps in full */
.ami .pick-name {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  height: auto !important;
  min-height: 36px !important;
  line-height: 1.18 !important;
}

.ami .name {
  align-items: flex-start !important;
}

.ami .name .lab-ic {
  margin-top: 3px !important;
}

.ami .name span:last-child {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  line-height: 1.25 !important;
}

.ami .dgrid {
  align-items: baseline !important;
}

.ami .dbench {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4 !important;
}

/* Item 5: Search on phone: open field takes the full header width immediately with no 60px midpoint */
@media (max-width: 599px) {
  body.search-is-open {
    --search-pill-width: calc(100vw - 2.4rem) !important;
  }
  body.search-is-open .corner.tl,
  body.search-is-open .mv2-shell {
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .search-pill {
    transition: border-color .18s ease !important;
  }
  body.search-is-open .search-pill,
  .search-pill.is-open {
    right: 0 !important;
    width: calc(100vw - 2.4rem) !important;
    transition: border-color .18s ease !important;
  }
}

/* Item 6: Green reserved strictly for its one job (active controls, current rail line, recommendation callouts) */
.sec-row .sr-type,
.drop-link .dl-meta,
.qj-head svg,
.qj-row-left .type-ic,
.c-head .c-type,
.c-glossary-head .c-type {
  color: var(--ink-dim) !important;
}

.qj-row:hover {
  background: var(--panel-raised) !important;
}

.qj-row.is-active {
  background: var(--panel-raised) !important;
  box-shadow: inset 3px 0 0 var(--sage) !important;
}

.qj-row.is-active .qj-row-meta {
  color: var(--ink-dim) !important;
}

.c-pair .c-card--key {
  background: var(--panel) !important;
  border-color: var(--line-strong) !important;
}

.c-card--key.place li::before,
.place li::before {
  background: var(--ink-mute) !important;
}

.place .ic,
.place .ic--plain {
  background: var(--well) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.scope {
  color: var(--ink-body) !important;
}

.plan .c-label {
  color: var(--ink-dim) !important;
}

.filter-option:has(input:checked) {
  background: var(--panel) !important;
  border: 1.5px solid var(--sage) !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
}

.c-table tbody tr.term-row.is-selected td,
.c-table tbody tr.term-row.is-selected.sec-ai td,
.c-table tbody tr.term-row.is-selected.sec-ops td,
.c-table tbody tr.term-row.is-selected.sec-code td,
.c-table tbody tr.term-row.is-selected.sec-notes td {
  background: var(--panel-raised) !important;
}

.c-table tbody tr.term-row.is-selected td.termcell,
.c-table tbody tr.term-row.is-selected.sec-ai td.termcell,
.c-table tbody tr.term-row.is-selected.sec-ops td.termcell,
.c-table tbody tr.term-row.is-selected.sec-code td.termcell,
.c-table tbody tr.term-row.is-selected.sec-notes td.termcell {
  box-shadow: inset 3px 0 0 var(--sage) !important;
}

@media (max-width: 560px) {
  .c-table tbody tr.term-row.is-selected td,
  .c-table tbody tr.term-row.is-selected:is(.sec-ai, .sec-ops, .sec-code, .sec-notes) td {
    background: none !important;
  }
  .c-table tbody tr.term-row.is-selected td.termcell,
  .c-table tbody tr.term-row.is-selected:is(.sec-ai, .sec-ops, .sec-code, .sec-notes) td.termcell {
    box-shadow: none !important;
  }
  .c-table tbody tr.term-row.is-selected {
    background: var(--panel) !important;
    box-shadow: inset 3px 0 0 var(--sage) !important;
  }
}

.drawer-rel-pill:hover {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background: var(--panel-raised) !important;
}

.dot,
.dot.ai,
.dot.ops,
.dot.code,
.dot.notes,
.filter-option .dot {
  background: var(--ink-mute) !important;
  opacity: 0.65 !important;
}

.filter-option:has(input:checked) .dot {
  background: var(--sage) !important;
  opacity: 1 !important;
}

.drawer-content,
.drawer-content.sec-ai,
.drawer-content.sec-ops,
.drawer-content.sec-code,
.drawer-content.sec-notes {
  border-left-color: var(--line-strong) !important;
  border-top-color: var(--line-strong) !important;
}

.drawer-kicker,
.drawer-kicker.sec-ai,
.drawer-kicker.sec-ops,
.drawer-kicker.sec-code,
.drawer-kicker.sec-notes {
  color: var(--ink-dim) !important;
}

.ami .pill,
.ami .pill.v-mid,
.ami .val span,
.ami .val span.v-mid {
  background: var(--panel-raised) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
}

.ami .pill.v-low,
.ami .val span.v-low {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-dim) !important;
}

.ami .detail span[style*="#9AB59F"],
.ami .detail span[style*="var(--sage)"],
.ami .detail span[style*="var(--lime-ink)"] {
  color: var(--ink-body) !important;
}

.ami .pick-label,
.ami .tag {
  color: var(--ink-dim) !important;
}

/* Items 7 & 8: Prevent dark background transitions on Agent Roster tiles and Menu shell */
.ag-tile,
a.ag-tile {
  transition: border-color .15s ease, transform .15s ease !important;
}

/* The corner runs from 999px, so it eases fast on opening and late on
   closing; otherwise the growing panel passes through a blob. */
.mv2-shell.is-open {
  transition: width .32s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius .32s cubic-bezier(0, 1, 0, 1),
              border-color .18s ease,
              box-shadow .32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.mv2-shell:not(.is-open) {
  transition: width .32s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius .4s cubic-bezier(1, 0, 1, 0),
              border-color .18s ease,
              box-shadow .32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@media (prefers-reduced-motion: reduce) {
  .mv2-shell.is-open,
  .mv2-shell:not(.is-open) { transition: none !important; }
}

.mv2-shell.is-open .mv2-cats {
  transition: opacity .15s ease 0s, transform .15s ease 0s !important;
}

/* Item 10: AI Agents and all articles: current (or initial first) Contents item is always --ink at 500 weight */
.c-rail a.is-here,
.c-rail a.is-on,
.c-rail a[aria-current="true"],
.c-rail ol:not(:has(a.is-here, a.is-on, a[aria-current="true"])) > li:first-child > a {
  color: var(--ink) !important;
  font-weight: 500 !important;
  border-left-color: var(--sage) !important;
}

/* Item 11: Model Index phone tabs fit on one row */
@media (max-width: 760px) {
  .ami .areas {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .ami .area {
    min-height: 40px !important;
    padding: 8px 4px !important;
    font-size: 13px !important;
  }
  .ami .area-label {
    font-size: 13px !important;
  }
}

/* Item 12: Agent Roster lone odd tile on phone/tablet centers cleanly */
@media (max-width: 900px) {
  .ag-line > li:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc(50% - var(--ag-gap, 12px) / 2) !important;
  }
}

/* Glossary term highlight: no slow fade-out on hover or pop-up (09:55 UTC) */
a.c-gterm,
.c-table td a.c-gterm,
.gterm-pop {
  transition: none !important;
}

/* Item 14: Phone article Contents drawer uses green left line, not grey fill */
.c-reader-drawer a:hover {
  background: var(--panel-raised) !important;
  color: var(--ink) !important;
}

/* The current item carries the rail's 1px green line, drawn as a line, not a border. */
.c-reader-drawer a[aria-current="true"],
.c-reader-drawer a.is-here {
  position: relative;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
}
.c-reader-drawer a[aria-current="true"]::before,
.c-reader-drawer a.is-here::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--sage);
}

/* Item 15: Antigravity phone step 2 Mac/Windows switch stays aligned with step indent */
@media (max-width: 600px) {
}

/* Item 18: Minimum 12px text across desktop and phone */
.c-tag,
.c-risk,
.modes .k,
.ami .cols,
.ami .dgrid.h,
.ami .eyebrow,
.ami .tag,
.ami .lab-opt-n,
.ami .sc .nt,
.drawer-kicker,
.drawer-tool-pill,
.drawer-rel-lbl,
.drawer-rel-pill,
.c-foot .c-asof{
  font-size: 12px !important;
}

.c-table th,
.c-label,
.filter-toggle,
.search-label {
  font-size: 13px !important;
}

/* Item 19: Polish details (menu wrapping, desktop Contents rail left alignment, 20px phone gutters) */
.drop-link {
  align-items: baseline !important;
}

.drop-link .dl-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4 !important;
}

@media (min-width: 1101px) {
  /* Pages without the standard shell keep their gutter, column, and rail; the
     .c-standard block sets its own grid and rail (R63). */
  html:not(.c-standard) .c-doc:has(.c-rail) {
    max-width: none !important;
    padding-left: 2.8rem !important;
    padding-right: 2.8rem !important;
    column-gap: 24px !important;
  }
  html:not(.c-standard) .c-doc > .c-rail {
    justify-self: start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 196px !important;
  }
}

@media (max-width: 600px) {
  html:not(.c-standard) .c-doc {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .c-doc .c-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  main.c-page:not(.c-doc .c-page),
  .ag {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ==========================================================================
   3. Article Headers, Contents Rail, And Section Spacing (Guides & Overviews)
   ========================================================================== */
.c-head > .c-eyebrow,
.c-head > .c-type,
.c-related {
  display: none !important;
}

.c-head .c-title {
  margin-top: 0 !important;
}

.c-head .c-lede {
  margin-bottom: 0;
  max-width: none;
}

.c-rail a span,
.c-toc ol a::before,
.c-reader-drawer a span,
.c-num {
  display: none !important;
}

.c-rail a:hover,
.c-toc ol a:hover {
  color: var(--ink);
}

.c-rail a.is-here,
.c-rail a.is-on,
.c-rail a[aria-current="true"],
.c-toc ol a.is-here,
.c-toc ol a[aria-current="true"] {
  color: var(--ink) !important;
  border-left-color: var(--sage) !important;
  font-weight: 500;
}

.c-rail a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

@media (min-width: 1101px) {
  .c-rail {
    width: 196px;
    margin-right: 36px;
  }
}

@media (max-width: 1100px) {
  .c-rail a.is-here,
  .c-rail a[aria-current="true"] {
    border-color: var(--sage) !important;
  }
}

/* Uniform 48px rhythm above and below section rules */
html:not(.c-standard) .c-page > .c-section:not(.gd-item),
html:not(.c-standard) .c-divided > .c-section:not(.gd-item){
  margin-top: 0;
  padding-top: 0;
  scroll-margin-top: 24px;
}
html:not(.c-standard) .c-page > .c-section:not(.gd-item) + .c-section:not(.gd-item),
html:not(.c-standard) .c-divided > .c-section:not(.gd-item) + .c-section:not(.gd-item){
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
html:not(.c-standard) .c-page > .c-section:first-of-type,
html:not(.c-standard) .c-divided > .c-section:first-of-type{
    scroll-margin-top: 72px;
  }
}

.c-section > .c-h2i,
.c-section > .c-h2 {
  margin-bottom: 14px;
}
.c-section > .c-h2i + [data-shortcuts] .macro-panel,
.c-section > .c-h2 + [data-shortcuts] .macro-panel{
  margin-top: 0;
}

.c-section > :last-child,
.c-section > .c-cap:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   4. Calm Labels Across Articles
   ========================================================================== */
.c-label,
.c-table th,
.c-flow .k,
.c-pair .via,
.modes .k,
.c-foot .c-asof,
.rcard-head .rlbl,
.heat th{
  font-family: var(--body, var(--sans));
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   5. Numbers And Ruled Procedure Steps
   ========================================================================== */
.c-flow--plain .k{
  display: none;
}

.gd-lines .gd-letter {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   6. Flows, Notes, Tips, Recommendations, Warnings, And Missing Shortcuts
   ========================================================================== */
.c-flow {
  list-style: none;
  padding: 0;
  border-color: var(--line-strong);
}

.c-flow > div,
.c-flow > li {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  margin: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 0;
}

.c-flow > div:last-child,
.c-flow > li:last-child {
  border-right: 0;
}

.c-flow .is-live {
  background: var(--panel);
}

.c-flow .k,
.c-flow .k.kt {
  color: var(--slate);
}

@media (max-width: 720px) and (min-width: 641px) {
  .c-flow[style*="--cols:3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .c-flow[style*="--cols:3"] > div,
  .c-flow[style*="--cols:3"] > li {
    border-right: 1px solid var(--line-strong);
    border-bottom: 0;
  }
  .c-flow[style*="--cols:3"] > div:last-child,
  .c-flow[style*="--cols:3"] > li:last-child {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .c-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-flow > div,
  .c-flow > div:nth-child(n),
  .c-flow > li,
  .c-flow > li:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .c-flow > div:last-child,
  .c-flow > li:last-child {
    border-bottom: 0;
  }
}

:not(pre) > code {
  background: var(--well);
  border: 0;
  border-radius: 4px;
  padding: 2px 5px;
}

@media (max-width: 600px) {
}

/* Notes (--well), Tips (--panel-raised), Recommendations (--sage-soft), Warnings (--amber-soft) */
.c-callout--decision {
  background: var(--sage-soft);
  border-color: color-mix(in srgb, var(--sage) 28%, var(--line));
  color: var(--sage-ink);
}

.c-callout--decision .c-label {
  color: var(--sage);
}

.c-callout--trap {
  background: var(--amber-soft);
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  color: var(--ink-body);
}

.c-callout--trap .c-label {
  color: var(--amber);
}

/* Danger (R51): an action that can't be undone, and nothing else */
.c-callout--danger {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger-ink);
}

.c-callout--danger .c-label {
  color: var(--danger-ink);
}

.c-icard .ic {
  background: color-mix(in srgb, var(--ib, var(--well)) 65%, var(--panel));
  color: color-mix(in srgb, var(--if, var(--ink-dim)) 55%, var(--ink));
}

.c-card--key {
  border-color: var(--line);
}

/* Missing shortcuts: show "None" in muted ink, never red text; hide duplicate Antigravity rules table */
.macro-key .none {
  background: var(--ink-mute);
}

.macro-cell .os.none,
.macro-cell .os.none:hover,
.macro-cell .os.none:focus-visible,
.macro-cell .os.none.open {
  color: var(--ink-mute);
}

.macro-cell .os.none:hover,
.macro-cell .os.none:focus-visible,
.macro-cell .os.none.open {
  background: var(--well);
}

.macro-cell .tip.none {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink-mute);
  font-size: 0;
}

.macro-cell .tip.none::before {
  content: "None";
  font-family: var(--body, var(--sans));
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}

.key-val.none {
  color: var(--ink-mute);
  font-family: var(--body, var(--sans));
  font-weight: 400;
  font-size: 0;
}

.key-val.none::before {
  content: "None";
  font-size: 13px;
}

[data-shortcuts="antigravity"][data-on="rules"] {
  display: none;
}

/* ==========================================================================
   8. Agent Roster And Agent Profiles (artefacts/the-agent-team.html & profiles)
   ========================================================================== */
.ag-tag,
html.paper .ag-tag,
html[data-p] .ag-tag {
  color: var(--ink-dim) !important;
}

.ag-client {
  display: none !important;
}

:root,
html[data-t~="roster"] {
  --ag-tile-big: 56px;
}

.ag-tile {
  padding: 14px 10px 12px;
}

.ag-tile h3 {
  margin-top: 10px;
}

a.ag-tile:hover,
a.ag-tile:focus-visible {
  background: var(--panel-raised);
  border-color: var(--sage);
}

/* Layer Bands (R67 L1, PARTS.md Agent Tiles): on Agent Roster each layer is a band holding its sub-head,
   line, and tiles, graded by fill: Infrastructure on Well, Productivity on Raised, Auxiliary on Canvas, so the
   fills step down toward the white card. The heading carries a rings icon in Muted, the ring for its layer drawn solid. A tile
   on the Raised band hovers to Well, so the hover still changes its fill. */
.ag-layer { display:flex; flex-direction:column; gap:16px; padding:16px; border:1px solid transparent; border-radius:12px; background:var(--panel); }
.ag-layer--well { background:var(--well); }
.ag-layer--raised { background:var(--panel-raised); }
.ag-layer--field { background:var(--field); }
.c-standard .ag-layer > * { margin:0; }
.c-standard .ag-layer > .c-h3 + * { margin-top:-4px; }
.ag-layer-h { display:flex; align-items:center; gap:8px; }
.ag-layer-ic { display:inline-flex; flex:none; width:20px; height:20px; color:var(--ink-dim); }
.ag-layer-ic svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ag-layer--raised a.ag-tile:hover,
.ag-layer--raised a.ag-tile:focus-visible { background:var(--well); }
/* Phones: a narrower band edge and tile side padding keep two-word subtitles, such as Airtable Management, on one line at 390px. */
@media (max-width:600px) {
  .ag-layer { padding:12px 8px; }
  .ag-layer .ag-tile { padding-left:6px; padding-right:6px; }
}

.ag-n {
  font: 600 12px/1 var(--body, var(--sans));
  font-variant-numeric: tabular-nums;
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--ink-dim);
}

@media (min-width: 721px) {
  .ag-flow li {
    text-align: center;
  }
  .ag-n {
    margin-inline: auto;
  }
  .ag-flow::before {
    left: 10%;
    right: 10%;
  }
}

/* Access Levels phone heatmap fit (T16) */
@media (max-width: 600px) {
  .heat {
    min-width: 0;
    border-spacing: 3px;
  }
  .heat th {
    padding: 4px 3px;
    font-family: var(--body, var(--sans));
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    vertical-align: bottom;
  }
  .heat th .ti {
    display: block;
    margin: 0 0 4px;
  }
  .heat th:nth-child(3) {
    white-space: nowrap;
  }
  .heat th:last-child {
    overflow-wrap: normal;
  }
  .heat td {
    padding: 6px 5px;
    font-size: 11.5px;
  }
  .heat td.rn {
    white-space: normal;
  }
  .heat td.rn span {
    display: grid;
    width: 20px;
    height: 20px;
    margin: 0 0 4px;
  }
}

@media (max-width: 360px) {
  .heat {
    border-spacing: 2px;
  }
  .heat th {
    padding-inline: 2px;
  }
  .heat td {
    padding: 6px 2px;
    font-size: 11px;
  }
}

/* ==========================================================================
   10. Swappable Step 2 Visual Board Decision Blocks (T27)
   ========================================================================== */

/* --- BEGIN BLOCK C: Card Stacks (Pick: C2 Plain Rows, with neutral icons) --- */
#setup .c-grid,
#connect .cards3,
#browsers .stack,
#traps .c-grid {
  display: block;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin: 18px 0;
}

#setup .c-grid > .c-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
}

#setup .c-grid > .c-card:first-child {
  border-top: 0;
}

#setup .c-grid > .c-card h3 {
  margin: 0;
  font-size: 15px;
}

#setup .c-grid > .c-card p {
  margin: 0;
}

#connect .c-icard,
#browsers .c-icard,
#traps .c-icard {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 4px;
  display: grid;
  grid-template-columns: 36px 190px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
}

#connect .c-icard:first-child,
#browsers .c-icard:first-child,
#traps .c-icard:first-child {
  border-top: 0;
}

#connect .c-icard .ic,
#browsers .c-icard .ic,
#traps .c-icard .ic {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  align-self: center;
  margin: 0;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

#connect .c-icard h3,
#browsers .c-icard h3,
#traps .c-icard h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 15px;
}

#connect .c-icard .c-label,
#browsers .c-icard .c-label {
  grid-column: 2;
  grid-row: 2;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-dim);
}

#connect .c-icard p,
#browsers .c-icard p,
#traps .c-icard p {
  grid-column: 3;
  grid-row: 1 / 3;
  margin: 0;
}

@media (max-width: 680px) {
  #setup .c-grid > .c-card {
    grid-template-columns: minmax(0, 1fr);
  }
  #connect .c-icard,
  #browsers .c-icard,
  #traps .c-icard {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  #connect .c-icard p,
  #browsers .c-icard p,
  #traps .c-icard p {
    grid-column: 2;
    grid-row: auto;
    margin-top: 4px;
  }
}
/* --- END BLOCK C --- */

/* --- BEGIN BLOCK T: Reference Tables (Pick: T1 Ruled Rows for all reading tables) --- */
.c-tablewrap {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}

.c-tablewrap .c-table th {
  padding-left: 4px;
  padding-right: 12px;
  border-bottom-color: var(--line-strong);
}

.c-tablewrap .c-table td {
  padding-left: 4px;
  padding-right: 12px;
}

.c-tablewrap .c-table tbody tr:hover td {
  background: transparent;
}

/* Stacked tables on phones: each value sits beside its column name (the
   cell's data-label), and the header stays readable to assistive technology.
   The rest of this layout is in the shared-part block at the end of the file. */
@media (max-width: 600px) {
  .c-table--stack thead {
    display: table-header-group;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .c-table--stack tr {
    display: block;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .c-table--stack td {
    width: auto !important;
    padding: 4px 0 !important;
    border-top: 0;
    white-space: normal !important;
  }
}
/* --- END BLOCK T --- */

/* --- BEGIN BLOCK S: Mac And Windows Switch (Pick: S1 Inset Track) --- */
.switch-pick,
.c-seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  background: var(--well);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.switch-pick[hidden],
.platform-controls[hidden],
[data-platform-switch].is-live .platform-title {
  display: none;
}

.switch-pick button,
.c-seg button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font-family: var(--body, var(--sans));
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  cursor: pointer;
}

.switch-pick button:hover,
.c-seg button:hover {
  color: var(--ink);
}

.switch-pick button[aria-pressed="true"],
.c-seg button[aria-pressed="true"] {
  background: var(--panel);
  border-color: var(--sage);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 19, 26, 0.06);
}
/* --- END BLOCK S --- */

/* --- BEGIN BLOCK A: ALIGNS Letters (Pick: A2 Ink) --- */
.gd-item .gd-letter {
  color: var(--ink);
}
/* --- END BLOCK A --- */

/* --- BEGIN BLOCK G: Agent Tiles (Pick: G1 Hue Tint) --- */
/* Agent icon hues mapped via --agent-* classes */

.ag-i,
html[data-p] .ag-i {
  color: color-mix(in srgb, var(--c, var(--sage)) 45%, var(--ink)) !important;
  background: color-mix(in srgb, var(--c, var(--sage)) 16%, var(--panel)) !important;
  border: 1px solid color-mix(in srgb, var(--c, var(--sage)) 32%, var(--line)) !important;
}
/* --- END BLOCK G --- */

/* ==========================================================================
   12. Step 4 Shared Layer: Standard Visuals, Step Numbers (Option 2),
       Branch Flow, Ruled Rows, Comparison Marks, And Table Alignment
   ========================================================================== */

/* Standalone and framed article document resets when /section.css is linked */
html.paper,
html:has(.c-doc, .c-page, .ag) {
  scrollbar-width: none;
  height: auto !important;
  min-height: 0 !important;
}
html.paper body,
body:has(.c-doc, .c-page, .ag) {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.65;
}
body:has(.c-doc, .c-page, .ag)::-webkit-scrollbar {
  display: none;
}
body:has(.c-doc, .c-page, .ag)::before {
  display: none !important;
}

.c-reader-toggle,
.c-reader-drawer {
  display: none;
}

/* Prompt Block and Code Sample (PARTS.md Prompt Block). The right column is
   reserved for the Copy button on wide screens, and the block shows overflow
   so the button's tooltip is never clipped; the code wraps, so the block
   never scrolls sideways. */
.c-code {
  position: relative;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 12px);
  padding: 16px 52px 16px 18px;
  margin: 18px 0;
  overflow: visible;
}
.c-code--sample { padding-right: 18px; }
.c-code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Prompt Block placeholder (PARTS.md Prompt Block): Info Text on an Info Fill
   chip, never green. The chip repeats on each line a placeholder wraps onto. */
.c-code .slot {
  color: var(--info-ink);
  background: var(--info-soft);
  border-radius: 6px;
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Copy button (PARTS.md Copy Button): a 32px icon button 8px in from the top
   right. At rest it is a control (page.controls): Surface fill, a 1px Strong
   Line edge, and a 6px corner, with the copy icon in Muted. site.js names it
   "Copy Prompt", or the block's data-copy-label. */
.c-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-dim);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
.c-code-copy:focus-visible {
  color: var(--ink);
  background: var(--panel-raised);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.c-code-copy.is-copied {
  color: var(--ink);
}
.c-code-copy .c-code-i {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-code-copy .c-code-i-check,
.c-code-copy.is-copied .c-code-i-copy {
  display: none;
}
.c-code-copy.is-copied .c-code-i-check {
  display: block;
}

/* Tooltip: the Connections tooltip's look, left of the button. It straddles
   the block's top edge, so its bottom stays above the first line of code
   (17px down), and it is part of the button, so the pointer can move onto it
   without it closing (WCAG 1.4.13); a bridge covers the gap between them.
   It shows on focus, after a copy or a failed copy, and on hover only where
   the device hovers, so a tap never leaves it stuck. */
.c-code-tip {
  position: absolute;
  top: -17px;
  right: calc(100% + 6px);
  z-index: 2;
  display: block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--panel);
  font: 500 13px/1.4 var(--body, var(--sans));
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
}
.c-code-tip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 8px;
}
.c-code-copy:is(:focus-visible, .is-copied, .is-failed) .c-code-tip {
  opacity: 1;
  visibility: visible;
}
@media (hover: hover) {
  .c-code-copy:hover {
    color: var(--ink);
    background: var(--panel-raised);
  }
  .c-code-copy:hover .c-code-tip {
    opacity: 1;
    visibility: visible;
  }
}
/* Esc closes the tooltip until a new hover or focus starts on the button. */
.c-code-copy.is-tip-off .c-code-tip {
  opacity: 0;
  visibility: hidden;
}

/* The polite live region that announces Copied or the failure line. Fixed
   at the top left, so it never adds to the page's scroll height. */
.c-code-live {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  /* Phones keep a band above the text for the button, so the code keeps
     its full width; the tooltip sits in the band beside the button. */
  .c-code {
    padding: 40px 18px 16px;
  }
  .c-code--sample {
    padding-top: 16px;
  }
  .c-code-copy {
    top: 4px;
    right: 4px;
  }
  .c-code-tip {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Prompt Block fill-in (PARTS.md Prompt Block, R56 X4 In-Block). The page
   marks the block with data-fill and each placeholder the reader fills with
   data-field; article.js adds a Fill In toggle in the block's top band and,
   behind it, one field per placeholder, and writes each entry into the
   prompt, so Copy takes the filled text. Without script the block is the
   plain prompt. The toggle is a control like the Copy button, on the same
   line; fields are Surface with a Faint edge (6.26:1 on Well, 7.77:1 on the
   field), typed text in Ink, and the placeholder in Hint italic (4.53:1). */
.c-code.has-fill { padding-top: 8px; }
.c-fill-bar {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 12px -10px;
}
.c-fill-toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink-dim);
  font: 500 13px/1.4 var(--body, var(--sans));
  letter-spacing: 0;
  cursor: pointer;
}
.c-fill-toggle svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-fill-toggle[aria-expanded="true"] .c-fill-chev { transform: rotate(180deg); }
.c-fill-toggle:focus-visible,
.c-fill-clear:focus-visible {
  color: var(--ink);
  background: var(--panel-raised);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
@media (hover: hover) {
  .c-fill-toggle:hover,
  .c-fill-clear:hover {
    color: var(--ink);
    background: var(--panel-raised);
  }
}
/* The fields take the block's width, the button column included, since the
   Copy button sits only in the top band; a Light Line rule under them sets
   the prompt apart. */
.c-fill {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 -34px 16px 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.c-fill[hidden] { display: none; }
.c-fill-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px 16px;
  min-width: 0;
}
/* Each field sits under its name, the label the prompt gives it, in Label
   text and Muted (8.18:1 on Well). A sentence field spans the row; a name or
   path pairs with the next where two fit. */
.c-fill-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.c-fill-item--wide { grid-column: 1 / -1; }
.c-fill-label {
  color: var(--ink-dim);
  font: 500 13px/1.4 var(--body, var(--sans));
  letter-spacing: 0;
}
/* 16px text, so phones don't zoom on focus. A sentence field grows with its
   text from one line, never shorter than its placeholder; a name or path is
   one line. */
.c-fill-field {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--ink-mute);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  caret-color: var(--ink);
  cursor: text;
  font: 400 16px/1.65 var(--body, var(--sans));
  letter-spacing: 0;
}
textarea.c-fill-field {
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.c-fill-field::placeholder {
  color: var(--ink-hint);
  font-style: italic;
  opacity: 1;
}
.c-fill-field:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.c-fill-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.c-fill-note {
  min-width: 0;
  color: var(--ink-dim);
  font: 500 13px/1.4 var(--body, var(--sans));
}
/* Clear Entries keeps its space while hidden, and both of its labels share
   one cell, so neither typing nor Restore Entries moves anything. */
.c-fill-clear {
  flex: none;
  display: inline-grid;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-dim);
  font: 500 13px/1.4 var(--body, var(--sans));
  letter-spacing: 0;
  cursor: pointer;
}
.c-fill-clear > span { grid-area: 1 / 1; text-align: center; }
/* On a touch screen it is as tall a target as the toggle and Copy. */
@media (pointer: coarse) { .c-fill-clear { min-height: 32px; } }
.c-fill-clear:not(.is-undo) > span + span,
.c-fill-clear.is-undo > span:first-child,
.c-fill-clear.is-idle { visibility: hidden; }
/* An entry in the prompt reads as typed text on its chip, and a line break
   it holds is kept. */
.c-code .slot.is-filled { color: var(--ink); white-space: pre-line; }
@media (max-width: 600px) {
  .c-code.has-fill { padding-top: 4px; }
  .c-fill-bar { margin-left: -14px; }
  .c-fill { margin-right: 0; }
}

/* Contents button at 1100px and narrower (PARTS.md Contents): site.js places the
   pill and its drawer after the lede, so the title comes first. The pill is the
   site Menu button's control: 46px, Surface, Strong Line, 13px Ink label centred,
   Raised on hover, a Green edge while the drawer is open; no shadow, since it
   sits in the page. Standard pages
   space them with the head's 16px Block Gap; older heads place them on the grid. */
@media (max-width: 1100px) {
  .c-doc:has(.c-reader-head) .c-rail { display: none !important; }
  .c-head.c-reader-head {
    display: grid; grid-template-columns: minmax(0, 1fr);
    align-items: baseline; column-gap: 12px;
    padding-bottom: 24px; margin-bottom: 32px;
  }
  .c-head.c-reader-head > .c-title { grid-column: 1; grid-row: 1; margin: 0 0 12px !important; }
  .c-head.c-reader-head > .c-lede { grid-column: 1; grid-row: 2; margin: 0; }
  .c-head.c-reader-head > .c-reader-toggle { grid-column: 1; grid-row: 3; margin-top: 16px; }
  .c-head.c-reader-head > .c-reader-drawer:not([hidden]) { grid-column: 1; grid-row: 4; margin: 16px 0 0; }
  .c-standard .c-head.c-reader-head > .c-title { margin: 0 !important; }
  .c-standard .c-head.c-reader-head > :is(.c-reader-toggle, .c-reader-drawer:not([hidden])) { margin: 0; }
  .c-reader-toggle {
    justify-self: start; align-self: start;
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; min-width: 96px; height: 46px;
    padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--panel); color: var(--ink);
    font: 500 13px/1.4 var(--body, var(--sans)); letter-spacing: 0; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
  }
  .c-reader-toggle svg { display: none; }
  .c-reader-toggle .c-reader-lbl { display: inline-flex; align-items: center; line-height: 1.4; }
  .c-reader-toggle .c-reader-ch { display: inline-block; width: 1.08em; height: 1.4em; text-align: center; text-indent: 0.14em; }
  .c-reader-toggle:hover { background: var(--panel-raised); }
  .c-reader-toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--sage); }
  .c-reader-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .c-reader-drawer a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .c-reader-drawer:not([hidden]) {
    display: block;
    padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  }
  .c-reader-drawer ul { margin: 0; padding: 0; list-style: none; }
  .c-reader-drawer li { margin: 0; }
  .c-reader-drawer a {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    padding: 8px 10px; border-radius: 6px; color: var(--ink-body);
    font: 13px/1.4 var(--body, var(--sans)); text-decoration: none;
  }
}

/* --- Steps: Option 2 (Numeral On The Rule) & Step Notes (DESIGN.md / T36) --- */

/* One Sequence (page.one-sequence): plain steps, and steps after a section that
   already holds steps or a Flow Strip, become unnumbered ruled rows. Those rules
   sit further down: under ".c-standard" for standard pages, and under
   "html:not(.c-standard)" with the steps for pages without the standard shell. */

/* Notes inside steps (.c-note for explanation, .c-note--warn for trap) */

/* --- Flow Strip (ol.c-flow & .c-flow--plain) and Agent Flow (.ag-flow) --- */
ol.c-flow {
  counter-reset: flow;
  list-style: none !important;
  padding: 0 !important;
}

ol.c-flow > li {
  counter-increment: flow;
  position: relative;
  padding: 34px 16px 15px !important;
}

/* Step numeral: Label role (13 / 1.4 / 500) in Accent, centered on the rule at 20px. */
ol.c-flow > li::before {
  content: counter(flow);
  position: absolute;
  top: 11px;
  left: 16px;
  font: 500 13px/1.4 var(--body, var(--sans));
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

ol.c-flow > li::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 16px;
  top: 20px;
  height: 1px;
  background: var(--line-strong);
}

.c-flow .t {
  display: block;
  font: 600 15px/1.3 var(--disp);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.c-flow .d,
.c-flow p {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Plain strip: steps stack down the column 16px apart, each numeral set into
   the Strong Line that opens its step, title and text on the numeral's edge.
   The selectors carry both classes so they outrank ol.c-flow > li. */
.c-flow--plain {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  gap: 16px !important;
}

ol.c-flow.c-flow--plain,
div.c-flow.c-flow--plain {
  display: flex;
  flex-direction: column;
}

ol.c-flow.c-flow--plain > li,
.c-flow.c-flow--plain > div {
  background: transparent !important;
  border: 0 !important;
  padding: 26px 0 0 !important;
}

ol.c-flow.c-flow--plain > li::before {
  top: 0;
  left: 0;
}

ol.c-flow.c-flow--plain > li::after {
  left: 18px;
  right: 0;
  top: 9px;
}

/* Agent Profile flow strip (.ag-flow) aligned to Option 2 Numeral On The Rule */
.ag-flow {
  counter-reset: agflow;
}

.ag-flow > li,
html[data-t~="nums"] .ag-flow > li {
  counter-increment: agflow;
  display: block !important;
  position: relative !important;
  padding: 26px 0 12px !important;
  border-top: 0 !important;
  text-align: left !important;
}

.ag-flow .ag-n,
html[data-t~="nums"] .ag-flow .ag-n {
  display: none !important;
}

.ag-flow > li::before,
html[data-t~="nums"] .ag-flow > li::before {
  content: counter(agflow) !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  font: 600 13px/20px var(--body, var(--sans)) !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--ink) !important;
}

.ag-flow > li::after,
html[data-t~="nums"] .ag-flow > li::after {
  content: "";
  position: absolute;
  left: 18px;
  right: calc(var(--ag-flow-gap, 14px) * -1);
  top: 10px;
  height: 1px;
  background: var(--line-strong);
}

.ag-flow > li:last-child::after,
html[data-t~="nums"] .ag-flow > li:last-child::after {
  right: 0;
}

@media (max-width: 900px) {
  .ag-flow > li::after,
  html[data-t~="nums"] .ag-flow > li::after {
    right: 0;
  }
}

/* --- Ruled Rows (.c-rows, .c-row, .c-row--plain) --- */
.c-rows {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin: 18px 0;
}

.c-row {
  display: grid;
  grid-template-columns: 36px 190px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
}

.c-row:first-child {
  border-top: 0;
}

.c-row--plain {
  grid-template-columns: 190px minmax(0, 1fr);
}

.c-row .ic {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  margin: 0;
}

.c-row .ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-row h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font: 600 15px/1.3 var(--disp);
  color: var(--ink);
}

.c-row--plain h3 {
  grid-column: 1;
}

.c-row .c-label {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin: 2px 0 0;
  font: 500 13px/1.4 var(--body, var(--sans)) !important;
  color: var(--ink-dim) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.c-row--plain .c-label {
  grid-column: 1;
}

.c-row p {
  grid-column: 3;
  grid-row: 1 / 3;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
  max-width: none;
}

.c-row--plain p {
  grid-column: 2;
}

@media (max-width: 680px) {
  .c-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .c-row p {
    grid-column: 2;
    grid-row: auto;
    margin-top: 4px;
  }
  .c-row--plain {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-row--plain p {
    grid-column: 1;
  }
}

/* --- Comparison Marks (.mk, .marks) --- */
.mk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: 500 13px/1 var(--body, var(--sans));
  white-space: nowrap;
  color: var(--ink-body);
}

.mk svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mk.yes {
  color: var(--ink);
}

.mk.partial {
  color: var(--ink-dim);
}

.mk.no {
  color: var(--ink-mute);
}
.mk .w,
ul.marks {
  display: none !important;
}

/* --- Table Alignment (DESIGN.md / T36 / 10:35 & 10:41 UTC) --- */
.c-table {
  table-layout: fixed;
  width: 100%;
}

.c-table th:first-child,
.c-table td:first-child {
  width: 40%;
  text-align: left;
}

.c-table th:not(:first-child),
.c-table td:not(:first-child) {
  text-align: center;
}

/* Sentence tables (.c-table--text, #terms, #glossary) stay left-aligned */
.c-table.c-table--text,
#terms .c-table,
#glossary .c-table {
  table-layout: auto;
}

.c-table.c-table--text th,
.c-table.c-table--text td,
#terms .c-table th,
#terms .c-table td,
#glossary .c-table th,
#glossary .c-table td {
  width: auto;
  text-align: left !important;
}

.c-table.c-table--text th:first-child,
.c-table.c-table--text td:first-child,
#terms .c-table th:first-child,
#terms .c-table td:first-child,
#glossary .c-table th:first-child,
#glossary .c-table td:first-child {
  width: 26%;
}

#terms .c-table td:first-child,
#terms .c-table td:first-child a,
#glossary .c-table td:first-child,
#glossary .c-table td:first-child a { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* Shortcut tables: Action left in its 50%, Macro centered in its 50% with no fixed 116px width */
.c-table.macro-table {
  table-layout: fixed !important;
}

.c-table.macro-table th:first-child,
.c-table.macro-table td:first-child {
  width: 50% !important;
  text-align: left !important;
}

.c-table.macro-table .macro,
.c-table.macro-table.macro-table--keys .macro {
  width: 50% !important;
  text-align: center !important;
}

.macro-cell {
  justify-content: center !important;
}

.macro-cell .tip {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .c-table--stack td,
  .c-table--stack th {
    width: auto !important;
    text-align: left !important;
  }
}

/* --- Standard Visual 1: Cycle (.c-cycle) --- */
.c-cycle {
  --cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: 28px;
  border: 0;
  margin: 18px 0;
}

.c-cycle > .s,
.c-cycle > .c-cycle-step {
  position: relative;
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 12px);
}

.c-cycle > .s + .s::before,
.c-cycle > .c-cycle-step + .c-cycle-step::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--ink-dim);
}

.c-cycle > .s + .s::after,
.c-cycle > .c-cycle-step + .c-cycle-step::after {
  content: "";
  position: absolute;
  left: -10px;
  top: calc(50% - 4px);
  width: 6px;
  height: 9px;
  border: 0;
  transform: none;
  background: var(--ink-dim);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.c-cycle .k {
  display: none;
}

.c-cycle .t {
  display: block;
  font: 600 15px/1.3 var(--disp);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.c-cycle .d {
  display: block;
  font: 400 14px/1.5 var(--body, var(--sans));
  color: var(--ink-dim);
}

/* The return line and its label span the repeating run. A page places them
   with --from and --to (grid lines) on the element, never an inline grid-column;
   unset, they span the second and third steps (lines 2 to 4). */
.c-cycle-back {
  --run: 2;
  grid-row: 2;
  grid-column: var(--from, 2) / var(--to, 4);
  position: relative;
  height: 26px;
  margin: 0 calc(32% / var(--run, 2));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

/* The arrowhead is centered on the 1px return line. */
.c-cycle-back::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: -1px;
  width: 10px;
  height: 7px;
  background: var(--ink-dim);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.c-cycle-back svg{
  display: none !important;
}

.c-cycle-label {
  grid-row: 3;
  grid-column: var(--from, 2) / var(--to, 4);
  margin: 8px 0 0;
  padding: 0;
  max-width: none;
  text-align: center;
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-body);
}

.c-cycle-label svg {
  display: none;
}

@media (max-width: 720px) {
.c-cycle{
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }
  .c-cycle > .s + .s::before,
  .c-cycle > .c-cycle-step + .c-cycle-step::before {
    left: 50%;
    top: -18px;
    width: 1px;
    height: 12px;
  }
  .c-cycle > .s + .s::after,
  .c-cycle > .c-cycle-step + .c-cycle-step::after {
    left: calc(50% - 4px);
    top: -7px;
    width: 9px;
    height: 6px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
  .c-cycle-back {
    display: none;
  }
  .c-cycle-label {
    grid-row: auto;
    grid-column: 1 !important;
    margin-top: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .c-cycle-label svg {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ink-dim);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* --- Standard Visual 2: Exchange (.c-exchange) --- */
.c-exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: stretch;
  margin: 18px 0;
}

.c-exchange-side {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.c-exchange-side.is-focus {
  border-color: var(--line-strong);
}

.c-exchange-side .ic {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--well);
  color: var(--ink);
  margin-bottom: 10px;
}

.c-exchange-side .ic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-exchange-side h3 {
  margin: 0 0 4px;
  font: 600 17px/1.25 var(--disp);
  color: var(--ink);
  text-align: center; /* PARTS.md, Exchange: the title alone centered, the sentence left-aligned */
}

.c-exchange-side p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.c-exchange-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.c-exchange-side li {
  position: relative;
  padding-left: 13px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
}

.c-exchange-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink-mute);
}

.c-exchange-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 8px;
}

.c-exchange-way {
  display: grid;
  gap: 3px;
  text-align: center;
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-dim);
}

.c-exchange-way svg {
  width: 100%;
  height: 12px;
  fill: none;
  stroke: var(--ink-mute);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 680px) {
  .c-exchange {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-exchange-mid {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
  }
  .c-exchange-way {
    grid-auto-flow: column;
    align-items: center;
    gap: 6px;
  }
  .c-exchange-way svg {
    width: 28px;
    transform: rotate(90deg);
  }
}

/* --- Standard Visual 3: Tree (.c-tree) --- */
.c-tree,
.c-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-tree {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 4px;
  margin: 16px 0;
}

.c-tree ul {
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.c-tree li {
  position: relative;
  padding: 5px 0;
  margin: 0;
}

.c-tree ul > li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 16px;
  width: 12px;
  height: 1px;
  background: var(--line-strong);
}

.c-tree .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.c-tree .name {
  font: 400 13px/1.5 var(--mono);
  color: var(--ink);
}

.c-tree .desc {
  margin: 0;
  font: 400 14px/1.5 var(--body, var(--sans));
  color: var(--ink-dim);
}

/* --- Standard Visual 4: Track (.c-track) --- */
.c-track {
  --cols: 5;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  margin: 18px 0;
  padding: 6px 0 2px;
  list-style: none;
}

.c-track > li {
  position: relative;
  min-width: 0;
  padding: 22px 10px 0;
  margin: 0;
  text-align: center;
}

.c-track > li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 999px;
  background: var(--slate);
  border: 0;
  z-index: 1;
}

.c-track > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  right: -50%;
  height: 1px;
  background: var(--line-strong);
}

.c-track .where {
  display: block;
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.c-track .t {
  display: block;
  font: 600 15px/1.3 var(--disp);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.c-track .d {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
}

@media (max-width: 680px) {
  .c-track {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
  .c-track > li {
    padding: 0 0 14px 22px;
    text-align: left;
  }
  .c-track > li:last-child {
    padding-bottom: 0;
  }
  .c-track > li::before {
    top: 5px;
    left: 0;
    margin-left: 0;
  }
  .c-track > li:not(:last-child)::after {
    top: 14px;
    left: 4px;
    right: auto;
    width: 1px;
    height: calc(100% - 9px);
  }
}

/* --- Standard Visual 5: Spectrum (.c-spectrum) --- */
.c-spectrum {
  margin: 18px 0;
}

.c-spectrum-ends {
  display: flex;
  justify-content: space-between;
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.c-spectrum-line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--line-strong) 50%, var(--amber) 100%);
}

.c-spectrum-stops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-spectrum-stops > li {
  position: relative;
  padding-top: 14px;
  margin: 0;
}

.c-spectrum-stops > li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--ink-dim);
}

.c-spectrum-stops > li:first-child::before {
  border-color: var(--sage);
}

.c-spectrum-stops > li:nth-child(2)::before {
  left: calc(50% - 4.5px);
}

.c-spectrum-stops > li:last-child::before {
  left: auto;
  right: 0;
  border-color: var(--amber);
}

.c-spectrum-stops .t {
  display: block;
  font: 600 15px/1.3 var(--disp);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.c-spectrum-stops .d {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
}

.c-spectrum-stops .tag {
  display: block;
  margin-top: 6px;
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-mute);
}

@media (max-width: 680px) {
  .c-spectrum {
    position: relative;
    padding-left: 18px;
  }
  .c-spectrum-ends {
    display: none;
  }
  .c-spectrum-line {
    position: absolute;
    left: 3px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--sage) 0%, var(--line-strong) 50%, var(--amber) 100%);
  }
  .c-spectrum-stops {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .c-spectrum-stops > li {
    padding-top: 0;
  }
  .c-spectrum-stops > li::before,
  .c-spectrum-stops > li:nth-child(2)::before,
  .c-spectrum-stops > li:last-child::before {
    top: 5px;
    left: -19px;
    right: auto;
  }
}

/* --- Branch Flow: Track With Places (.c-lanes) --- */
.c-lanes {
  --places: 3;
  --stops: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--places), minmax(0, 1fr));
  grid-template-rows: auto repeat(var(--stops), auto);
  column-gap: 18px;
  margin: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

/* Each band and head sits in its place's column: the page sets --p on it, as on the stops. */
.c-lane-band,
.c-lane-head {
  grid-column: var(--p);
}

.c-lane-band {
  grid-row: 1 / -1;
  border-left: 1px solid var(--line);
  pointer-events: none;
}

.c-lane-band:first-of-type {
  border-left: 0;
}

.c-lane-head {
  grid-row: 1;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-dim);
  position: relative;
  z-index: 2;
}

.c-lane-stops {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-lane-stops > li {
  grid-column: var(--p);
  grid-row: calc(var(--n) + 1);
  position: relative;
  z-index: 2;
  padding: 14px 14px 14px 30px;
  margin: 0;
}

.c-lane-stops > li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--slate);
  border: 0;
  box-sizing: border-box;
}

.c-lane-stops .place {
  display: none;
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.c-lane-stops .t {
  display: block;
  font: 600 15px/1.3 var(--disp);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 3px;
}

.c-lane-stops .d {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
}

.c-lanes-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.c-lanes-wire path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

@media (max-width: 680px) {
  .c-lanes {
    display: block;
    padding: 4px 0;
  }
  .c-lane-band,
  .c-lane-head,
  .c-lanes-wire {
    display: none;
  }
  .c-lane-stops {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .c-lane-stops > li {
    padding: 10px 0 12px 22px;
  }
  .c-lane-stops > li:last-child {
    padding-bottom: 6px;
  }
  .c-lane-stops > li::before {
    left: 0;
    top: 15px;
  }
  .c-lane-stops > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 24px;
    bottom: -15px;
    width: 1px;
    background: var(--line-strong);
  }
  .c-lane-stops .place {
    display: block;
  }
}

/* --- Footnotes & Column Groups (.c-fn, .c-fn-pop, .c-groups, .c-bracket) --- */
.c-fn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -3px -2px -3px 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mute);
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}

.c-fn::before {
  content: "";
  position: absolute;
  inset: -7px;
}

.c-fn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-fn:hover,
.c-fn:focus-visible,
.c-fn[aria-expanded="true"] {
  color: var(--ink);
}

.c-fn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.c-fn-pop {
  position: fixed;
  z-index: 95;
  width: min(296px, calc(100vw - 24px));
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 19, 26, 0.14);
  color: var(--ink-body);
  font: 400 13px/1.5 var(--body, var(--sans));
  text-align: left;
  white-space: normal;
}

.c-fn-pop[hidden] {
  display: none;
}

.c-fn-pop b {
  display: block;
  margin: 0 0 3px;
  font: 600 13px/1.3 var(--disp);
  color: var(--ink);
}

.c-col-label {
  width: 40%;
}

@media (max-width: 600px) {
  .c-col-label {
    width: 34%;
  }
}

tr.c-groups th,
tr.c-groups td {
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 4px;
}

.c-bracket {
  display: block;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font: 500 13px/1.4 var(--body, var(--sans));
  color: var(--ink-mute);
  text-align: center;
}

.c-bracket::before,
.c-bracket::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 1px;
  height: 4px;
  background: var(--line-strong);
}

.c-bracket::before {
  left: 0;
}

.c-bracket::after {
  right: 0;
}

/* T47: T43 components, shared by every article using their semantic classes. */
.visually-hidden { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
.c-parts { margin:20px 0; border-block:1px solid var(--line-strong); }
.c-parts-head { display:flex;align-items:center;gap:10px;padding:14px 0; }
.c-parts-head svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6; }
.c-parts-head h3 { margin:0;font:600 16px/1.4 var(--disp); }
.c-parts-list { display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));list-style:none;margin:0;padding:0 0 18px;gap:20px; }
.c-parts-list li { border-left:1px solid var(--line);padding-left:14px; }
.c-parts-list li:first-child { border:0;padding-left:0; }
.c-parts-list .t { display:block;font-size:14px;margin-bottom:6px; }
.c-parts-list .d { display:block;font-size:14px;line-height:1.5; }
.c-product { margin:20px 0;border:1px solid var(--line-strong);border-radius:12px;background:var(--panel);overflow:hidden; }
.c-product-head { display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 14px;padding:22px; }
.c-product-mark { grid-row:1 / 3;color:var(--ink-dim); }
.c-product-mark svg { display:block;width:32px;height:40px;fill:currentColor; }
.c-product-mark polygon { fill:currentColor; }
.c-product-mark polygon:first-of-type { opacity:.35; }
.c-product-mark polygon:nth-last-child(2) { opacity:.6; }
.c-product-mark polygon:nth-last-child(3) { opacity:.8; }
.c-product-head h3 { margin:0;font:600 18px/1.4 var(--disp); }
.c-product-head p { grid-column:2;margin:0;font-size:14px; }
.c-product-feats { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:0;padding:0 22px 22px;gap:24px; }
.c-product-feats li { display:grid;grid-template-columns:22px minmax(0,1fr);gap:4px 10px;border-top:1px solid var(--line);padding-top:16px; }
.c-product-feats .ic { grid-row:1 / 4; }
.c-product-feats .ic svg { width:20px;height:20px;fill:none;stroke:var(--ink-dim);stroke-width:1.6; }
.c-product-feats :is(b,.c-label,p) { grid-column:2;margin:0; }
.c-product-feats p { font-size:14px; }
.c-product-feats .c-label { font:13px/1.4 var(--body);color:var(--ink-dim); }
.c-typed { display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:12px;align-items:stretch;margin:20px 0; }
.c-typed-pane { min-width:0;padding:20px 16px;border:1px solid var(--line-strong);border-radius:12px; }
.c-typed-src { background:var(--panel-raised); }
.c-typed-out { background:var(--panel); }
.c-typed-src pre { margin:0;font:13px/1.8 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere; }
.c-typed-src .m { color:var(--ink-mute); }
.c-typed-arrow { align-self:center;justify-self:center;display:flex; }
.c-typed-arrow svg { width:24px;height:12px;fill:none;stroke:var(--ink-dim);stroke-width:1.5; }
.c-typed-out .out { font-size:14px; }
.c-typed-out .props { display:flex;gap:24px;border-bottom:1px solid var(--line);padding-bottom:10px;margin:0 0 16px;font-size:13px;line-height:1.4; }
.c-typed-out dd { margin:0; }
.c-typed-out .h { font:600 24px/1.2 var(--disp);letter-spacing:-.02em; }
.c-typed-out ul { padding-left:18px; }
.c-typed-out li.task { list-style:none;position:relative; }
.c-typed-out li.task i { display:inline-block;width:12px;height:12px;border:1px solid var(--line-strong);border-radius:3px;margin-right:6px; }
.c-typed-out .lk { color:var(--ink);text-decoration:underline;text-decoration-color:var(--link-line);text-underline-offset:3px; }
.c-platform-keys { display:flex;gap:8px;align-items:center; }
.c-row .c-platform-keys { grid-column:3;grid-row:2;margin-top:8px; }
.c-row--plain .c-platform-keys { grid-column:2;grid-row:2; }
.c-row--plain:has(.c-platform-keys) > p { grid-row:1; }
@media(min-width:681px) { .c-lane-head { display:flex;align-items:center;gap:8px; } }
.c-lane-head .ic { display:inline-flex;flex:none;width:18px;height:18px; }
.c-lane-head .ic svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5; }
.c-lane-head .ic--fill svg { fill:currentColor;stroke:none; }
/* Hue heads (R67, PARTS.md Branch Flow): where each place is an agent, the page sets the agent's hue as --c on the head, and the
   icon and name take it muted toward ink, the same mix as the agent's tile icon, at 5.8:1 or better on Surface. */
.c-lane-head--hue { color:color-mix(in srgb, var(--c, var(--ink-dim)) 45%, var(--ink)); }
/* Shared corrections exposed by the new components. */
@media(max-width:680px) {
  .c-parts-list { grid-template-columns:minmax(0,1fr);gap:0;padding:0; }
  .c-parts-list li,.c-parts-list li:first-child { border-left:0;border-top:1px solid var(--line);padding:14px 0; }
  .c-product-feats { grid-template-columns:minmax(0,1fr);gap:16px; }
  .c-typed { grid-template-columns:minmax(0,1fr); }
  .c-typed-arrow { padding:12px;transform:rotate(90deg); }
  .c-row .c-platform-keys, .c-row--plain .c-platform-keys { grid-column:1 / -1;grid-row:auto; }
  .c-row--plain:has(.c-platform-keys) > p { grid-row:auto; }
}

/* Keep a note marker with its word; table label casing must not reach the note. */
.c-fn-label { white-space:nowrap; }
.c-fn-pop { text-transform:none;white-space:normal; }


/* ==========================================================================
   T52 Shared Additions: Home 6 Fixes, Marks Icons Alone (.mk-tip, .mk-hint),
   and Model Index Tool Lede, Method Link & Wrapping
   ========================================================================== */
/* Home (R53): body.is-home and .bg-stage are styled only in index.html. */

/* Marks Icons Alone (DESIGN.md d753ca7 / Design System 12:54 UTC) */
.mk.yes,
.mk.y {
  color: var(--ink);
}
.mk.partial,
.mk.p {
  color: var(--ink-dim);
}
.mk.no,
.mk.n {
  color: var(--ink-mute);
}
/* Setting marks (R64): each takes its own color as the icon's stroke, in cells and in the key.
   Off (3.1:1 on Surface, 2.8:1 on Raised) sits only in a cell on Surface; the key names it beside its word. */
.mk.run { color: var(--mark-run); }
.mk.ask { color: var(--mark-ask); }
.mk.off { color: var(--mark-off); }
.mk.safe { color: var(--mark-safe); }
.cmdt .mk.y {
  color: var(--mark-yes);
}
.cmdt .mk.p {
  color: var(--mark-partial);
}
.cmdt .mk.n {
  color: var(--mark-no);
}

.mk-tip {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.mk-tip::before {
  content: "";
  position: absolute;
  inset: -4px;
}
.mk-tip:hover,
.mk-tip:focus-visible,
.mk-tip[aria-expanded="true"] {
  background: var(--well);
}
.mk-tip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.mk-hint {
  margin: 0 0 8px;
  font: 400 13px/1.4 var(--body, var(--sans));
  color: var(--ink-mute);
}
.c-fn-pop b:only-child {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .macro-cell .tip {
    left: auto !important;
    right: 0 !important;
    transform: none;
  }
}

/* Model Index Tool (DESIGN.md Tool page type) */
.ami header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.ami header .c-lede {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
}
.ami .tip-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ami .ami-method-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.ami .ami-method-link:hover {
  color: var(--sage);
  text-decoration-color: var(--sage);
}
.ami .name span:last-child {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.25;
}
.ami .pick-name {
  white-space: normal !important;
  height: auto !important;
  min-height: 36px;
  overflow: visible !important;
  text-overflow: clip !important;
}
@media (max-width: 760px) {
  .ami .controls {
    flex-direction: column;
    align-items: stretch;
  }
  .ami .controls-l {
    width: 100%;
    justify-content: space-between;
  }
  .ami .tip-wrap {
    width: 100%;
    justify-content: space-between;
  }
}

/* T57: final batch reading, comparison and disclosure rules. */
:root { --mark-partial:var(--amber); }
.paper .switch-pick,.paper .switch-bar { width:max-content; max-width:100%; justify-self:start; align-self:start; }
.paper .switch-pick { display:inline-grid; }
.platform-mark { display:inline-block; width:18px; height:18px; flex:none; fill:currentColor; stroke:none; color:var(--ink); vertical-align:-3px; margin-right:8px; }
.trail,.trail .tr-type { font-size:13px; }
.mk.partial { color:var(--mark-partial); }
.c-table td > .mk + .c-fn { position:absolute; margin:-3px 0 0 4px; }
.c-safety-label { font:500 13px/1.4 var(--body,var(--sans)); color:var(--ink-dim); white-space:nowrap; }
.c-safety-label--care { color:var(--amber); }
.c-safety-label--no-undo { color:var(--red); }
.c-safety-label + .c-fn { margin-left:4px; }
table.cmdt.c-table--text { table-layout:fixed; }
table.cmdt.c-table--text col.w-mc { width:112px; }
table.cmdt.c-table--text col.w-cmd { width:36%; }
table.cmdt.c-table--text td.mc { width:auto; padding:12px 8px; text-align:left !important; }
table.cmdt.c-table--text :is(th,td) { width:auto; }
.c-doc :is(.drawer-kicker,.drawer-tool-pill,.drawer-rel-lbl,.search-label,.filter-toggle,.filter-option .count) {
  font-family:var(--body,var(--sans)); font-size:12px; font-weight:500; letter-spacing:0; text-transform:none;
}
.c-doc .drawer-head { justify-content:flex-start; gap:8px; }
.c-doc .drawer-tool-pill { background:none; border:0; border-radius:0; padding:0; }
.c-doc .drawer-tool-pill::before { content:'·'; margin-right:8px; color:var(--ink-mute); }
.c-doc .drawer-rel-footer { gap:0; border-top:1px solid var(--line); }
.c-doc .drawer-rel-lbl { margin-right:8px; }
.c-doc .drawer-rel-link { display:inline; padding:0; background:none; border:0; border-radius:0; color:var(--ink); font:400 13px/1.6 var(--body,var(--sans)); text-decoration:underline; text-decoration-color:var(--link-line); text-underline-offset:3px; }
.c-doc .drawer-rel-link + .drawer-rel-link::before { content:'·'; display:inline-block; margin:0 8px; color:var(--ink-mute); text-decoration:none; }
.c-doc .c-table--text th { white-space:normal; }
.c-track > li { text-align:left; padding-left:0; padding-right:16px; }
.c-track > li::before { left:4.5px; }
.c-track > li:not(:last-child)::after { left:4.5px; right:-4.5px; }
.paper .c-foot,.paper .ag-foot { border-top:1px solid var(--line); padding-top:20px; }
.c-tree .name code { font:inherit; background:none; border:0; border-radius:0; padding:0; }
/* Formula pane (PARTS.md Formulas): a Well pane of its own with one formula in the Code role. */
.c-formula:not(.c-note) { display:block; min-width:0; margin:0; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--well); }
.c-formula .formula { display:block; color:var(--ink); font:400 13px/1.5 var(--mono); letter-spacing:0; overflow-wrap:anywhere; }
table.c-table.c-table--areas { table-layout:fixed; }
table.c-table.c-table--areas th:nth-child(1) { width:17%; }
table.c-table.c-table--areas th:nth-child(2) { width:57%; }
table.c-table.c-table--areas th:nth-child(3) { width:26%; }
.c-table--areas :is(th,td) { padding:12px 10px; }
.c-weight-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.c-weight-list li { display:flex; justify-content:space-between; gap:12px; margin:0; }
.c-weight-list .w { margin:0; font:inherit; color:var(--ink-dim); font-variant-numeric:tabular-nums; white-space:nowrap; }
.paper .c-table--value .num { font-family:var(--body,var(--sans)); color:var(--ink); font-variant-numeric:tabular-nums; }
.c-doc details { margin:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:0 0 1px; }
.c-doc details > summary { position:relative; list-style:none; padding:14px 28px 14px 0; font:500 15px/1.45 var(--body,var(--sans)); color:var(--ink); cursor:pointer; }
.c-doc details > summary::-webkit-details-marker { display:none; }
.c-doc details > summary::marker { content:''; }
.c-doc details > summary::after { content:''; position:absolute; right:5px; top:calc(50% - 5px); width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.c-doc details[open] > summary::after { transform:rotate(225deg); top:calc(50% - 1px); }
.c-doc details > summary:focus-visible { outline:2px solid var(--sage); outline-offset:3px; border-radius:4px; }
.c-doc details[open] > summary { margin-bottom:10px; }
.c-doc details[open] { padding-bottom:14px; }
@media (max-width:720px) {
  .c-doc .c-formula { margin-top:14px; }
}
@media (max-width:640px) {
  table.cmdt.c-table--text tbody tr { grid-template-columns:94px minmax(0,1fr); }
  table.cmdt.c-table--text td.mc { padding:0; }
  table.cmdt.c-table--text td.desc { grid-column:1 / -1; }
}
@media (max-width:680px) {
  .c-track > li { padding:0 0 14px 22px; }
  .c-track > li::before { left:0; }
  .c-track > li:not(:last-child)::after { left:4px; right:auto; }
}
@media (max-width:600px) {
  .c-table--stack td[data-label]::before { content:attr(data-label); display:block; margin:0; font:500 13px/1.4 var(--body,var(--sans)); color:var(--ink-dim); }
  .c-table--stack td:first-child { font-weight:600; }
  .c-table--areas td:first-child::before { display:none; }
  /* A stacked command table drops its column widths, so each row takes the full width. */
  table.cmdt.c-table--stack col:is(.w-mc,.w-cmd) { width:auto; }
}

/* T75 close-out: footer support for the retained page shells. */
.paper .gd-foot { border-top:1px solid var(--line); padding-top:20px; }
.paper .c-foot--spaced { margin-top:56px; }


/* Shared reading components. DESIGN.md is the specification. */
:root {
  --body:var(--sans); --disp:"Inter",system-ui,sans-serif;
  --r-sm:6px; --r-md:6px; --r-lg:12px; --r-card:12px; --r-xl:12px; --r-pill:999px;
  --heading-gap:12px; --block-gap:16px; --section-gap:40px;
  --mark-yes:#2f5d46; --mark-no:#9e2a25; --mark-partial:#6b4600;
  --mark-run:#3f7a58; --mark-ask:#a8651e; --mark-off:#8d9297; --mark-safe:#4a6fa5;
  --read:820px; --wide:1080px;
}
.c-standard body { margin:0; background:var(--field); color:var(--ink-body); font:400 16px/1.65 var(--body); }
/* White Card (R63): the article sits on a Surface card with a Light Line edge and
   the Large Corner, on the Canvas page. The card runs up to 900px, so the text
   column is 850px on wide screens and 774px at 1280. */
.c-standard .c-doc { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,900px) minmax(180px,1fr); gap:24px; padding:56px 24px 80px; max-width:none; }
.c-standard .c-doc main { grid-column:2; grid-row:1; width:100%; min-width:0; max-width:none; padding:32px 24px; background:var(--panel); border:1px solid var(--line); border-radius:12px; }
.c-standard .c-doc .c-page { max-width:none; padding:0; margin:0; }
.c-standard .c-doc p { margin:0; max-width:66ch; text-wrap:pretty; }
.c-standard .c-doc a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--link-line); text-underline-offset:3px; }
.c-standard .c-doc :is(h1,h2,h3,h4) { text-wrap:balance; font-family:var(--body); font-weight:600; letter-spacing:-.02em; color:var(--ink); }
.c-standard .c-doc :is(b,strong) { font-weight:600; color:inherit; }
.c-standard .c-head { display:flex; flex-direction:column; align-items:stretch; gap:16px; padding-bottom:40px; margin:0 0 40px; border-bottom:1px solid var(--line); }
.c-standard .c-head .c-title { font:600 40px/1.1 var(--body); letter-spacing:-.02em; margin:0; }
.c-standard .c-head .c-lede { font:400 18px/1.65 var(--body); max-width:none; margin:0; }
.c-standard .c-section { display:flex; flex-direction:column; gap:16px; margin:0; scroll-margin-top:24px; min-width:0; }
.c-standard .c-section > * { margin-block:0; }
.c-standard .c-section > :is(.c-h2i,.c-h2,.c-h3) + * { margin-top:-4px; }
.c-standard .c-section > .c-h3:not(:nth-child(2)) { margin-top:12px; }
/* Edged blocks (space.rhythm): a block that opens or ends with a line or box edge rather than text (Rows, cards,
   tables, notes, code) takes 8px more beside a heading, the room a text line's leading gives a paragraph: 20px
   under a heading or sub-head and 36px above the next sub-head, so a sub-head sits as far from a rule as from text. */
.c-standard .c-section > :is(.c-h2i,.c-h2,.c-h3) + :not(p, ul:not([class]), ol:not([class]), .c-h2i, .c-h2, .c-h3) { margin-top:4px; }
.c-standard .c-section > :not(p, ul:not([class]), ol:not([class]), .c-h2i, .c-h2, .c-h3) + .c-h3 { margin-top:20px; }
.c-standard .c-divided > .c-section + .c-section { border-top:0; padding-top:0; margin-top:calc(var(--section-gap) + var(--block-gap)); }
.c-standard .c-h2 { font:600 24px/1.2 var(--body); letter-spacing:-.02em; margin:0; }
.c-standard .c-h3 { font:600 17px/1.25 var(--body); letter-spacing:-.02em; margin:0; }
.c-standard .c-h2i { display:flex; align-items:center; gap:12px; margin:0; }
.c-standard .c-h2i .ic { display:flex; width:24px; height:29px; flex:none; align-items:center; color:var(--slate); }
/* Section heading icons on the other shells (Agent Profiles and pages not yet migrated) take the Accent too; the
   profile stop sign keeps Red and Glossary group icons keep their group hue. */
html:not(.c-standard) .c-h2i .ic:not(.ag-ic-stop):not(.glossary-group-icon) { color:var(--slate); }
.c-standard .c-h2i svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.c-standard .c-sub { font:400 16px/1.65 var(--body); color:var(--ink-dim); max-width:none; }
.c-standard .c-label { display:block; font:500 13px/1.4 var(--body); color:var(--ink-dim); letter-spacing:0; text-transform:none; margin:0; }
.c-standard .c-rail { grid-column:1; grid-row:1; justify-self:start; width:180px; margin:0; position:sticky; top:24px; align-self:start; max-height:calc(100vh - 48px); overflow:auto; }
.c-standard .c-rail .c-label { margin-bottom:12px; }
.c-standard .c-rail ol { display:flex; flex-direction:column; list-style:none; gap:0; padding:0; margin:0; border-left:1px solid var(--line); }
.c-standard .c-rail a { display:block; padding:6px 0 6px 12px; border:0; font:400 13px/1.4 var(--body); color:var(--ink-dim); text-decoration:none; position:relative; }
.c-standard .c-rail a.is-here { color:var(--ink); font-weight:500; }
.c-standard .c-rail a.is-here::before { content:""; position:absolute; top:0; bottom:0; left:-1px; width:1px; background:var(--sage); }
.c-standard .c-rail a:hover { background:var(--panel-raised); }
.c-standard .c-rail a:focus-visible { outline-offset:-2px; }
.c-standard .c-grid { display:grid; gap:16px; margin:0; align-items:stretch; }
.c-standard .c-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.c-standard .c-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.c-standard .c-card { display:flex; flex-direction:column; gap:12px; min-width:0; height:auto; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.c-standard .c-card h3 { font:600 17px/1.25 var(--body); letter-spacing:-.02em; margin:0; }
.c-standard .c-card p { font:400 14px/1.5 var(--body); color:var(--ink-dim); margin:0; }
.c-standard .c-card--corner-icon { position:relative; }
.c-standard .c-card--corner-icon h3 { padding-right:40px; }
.c-standard .c-card--corner-icon > .c-card-icon { position:absolute; top:16px; right:16px; width:24px; height:24px; fill:none; stroke:var(--ink-dim); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.c-standard .c-callout { display:flex; flex-direction:column; gap:12px; margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.c-standard .c-callout p { margin:0; max-width:none; font:400 14px/1.5 var(--body); }
.c-standard .c-callout--decision { background:var(--sage-soft); color:var(--sage-ink); }
.c-standard .c-callout--decision .c-label { color:var(--sage-ink); }
.c-standard .c-callout--trap { background:var(--amber-soft); color:var(--amber); }
.c-standard .c-callout--trap .c-label { color:var(--amber); }
/* Danger (R51, N4 in R56): Danger Fill and Danger Line mark the stakes, the label takes Danger Text, the text stays Body.
   Scoped to the standard shell, so a page still on the old styles keeps the R51 look until it migrates. */
.c-standard .c-callout--danger { background:var(--danger-soft); color:var(--ink-body); border-color:var(--danger-line); }
.c-standard .c-callout--danger .c-label { color:var(--danger-ink); }
.c-note { display:grid; grid-template-columns:18px minmax(0,1fr); gap:12px; margin:16px 0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--well); color:var(--ink-body); font:400 14px/1.5 var(--body,var(--sans)); }
.c-note > svg { width:18px; height:18px; margin-top:1px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.c-note p { margin:0; font:inherit; color:inherit; }
.c-note b { color:inherit; font-family:inherit; font-size:inherit; line-height:inherit; font-weight:600; letter-spacing:0; text-transform:none; margin:0; }
.c-note .c-note-label { display:block; font:500 13px/1.4 var(--body,var(--sans)); letter-spacing:0; margin-bottom:12px; color:var(--ink); }
/* Existing pages migrate their first bold label when their copy is rebuilt. */
.c-note:not(:has(.c-note-label)) :is(p,div) > b:first-child { font-size:13px; line-height:1.4; font-weight:500; margin-right:8px; }
.c-note--info { background:var(--info-soft); color:var(--info-ink); border-color:var(--info-line); }
.c-note.c-note--info :is(a,.c-note-label) { color:inherit; text-decoration-color:currentColor; }
.c-note--tip { background:var(--panel-raised); }
.c-note--warn { background:var(--amber-soft); color:var(--amber); }
.c-note--warn .c-note-label { color:var(--amber); }
/* N4 Stakes Fills (R56): a fill marks the stakes, the icon and label mark the kind. A Note with a label
   (the migrated markup) takes Info Text on its icon and label; a Note without one keeps Ink until its page migrates. */
.c-note:not(.c-note--tip, .c-note--warn, .c-note--info, .c-note--danger, .c-note--rec, .c-formula):has(.c-note-label) > svg,
.c-note:not(.c-note--tip, .c-note--warn, .c-note--info, .c-note--danger, .c-note--rec, .c-formula) .c-note-label { color:var(--info-ink); }
.c-note--danger { background:var(--danger-soft); color:var(--ink-body); border-color:var(--danger-line); }
.c-note--danger > svg, .c-note--danger .c-note-label { color:var(--danger-ink); }
/* Kind first for screen readers (R56): the fill and icon show the kind, so the label's accessible text starts with it.
   The alternative text after the slash is read and never drawn, so nothing on the page moves. */
.c-note--warn .c-note-label::before, .c-note--warn:not(:has(.c-note-label)) p:first-of-type::before { content:"" / "Warning: "; }
:is(.c-note--danger .c-note-label, .c-callout--danger > .c-label)::before { content:"" / "Danger: "; }
.c-callout--trap > .c-label::before { content:"" / "Trap: "; }
/* Split sign and resolution (R56 T1, PARTS.md Problem and Resolution): a lone Warning or Trap that gives a way out
   shows a Warning Sign line and a Potential Resolution line, each label on its own line with the Warning Sign Table's
   magnifier or wrench, in the box's own text colour. */
.c-split { display:flex; flex-direction:column; gap:12px; margin:0; padding:0; }
.c-split > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.c-split dt { display:flex; align-items:center; gap:6px; margin:0; color:inherit; font:500 13px/1.4 var(--body,var(--sans)); letter-spacing:0; }
.c-split dt::before { content:""; flex:none; width:16px; height:16px; background:currentColor; -webkit-mask:var(--sign-icon) center / 16px 16px no-repeat; mask:var(--sign-icon) center / 16px 16px no-repeat; }
.c-split > div:first-child dt { --sign-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.c-split > div:last-child dt { --sign-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.c-split dd { margin:0; max-width:none; color:inherit; font:400 14px/1.5 var(--body,var(--sans)); }
.c-standard .c-note { margin:0; }
.c-standard .c-doc .c-note p { max-width:none; }
.c-standard .c-steps { list-style:none; padding:0; margin:0; counter-reset:step; display:flex; flex-direction:column; gap:16px; }
/* A step is a block, so text and inline parts written straight into the li flow
   as one paragraph; its block children sit 12px apart. */
.c-standard .c-steps > li { position:relative; counter-increment:step; border:0; padding:30px 0 0 32px; margin:0; max-width:none; display:block; min-width:0; font:400 16px/1.65 var(--body); }
.c-standard .c-steps > li > * + :where(:not(a,abbr,b,br,cite,code,em,i,img,kbd,mark,q,s,small,span,strong,sub,sup,svg,u,.c-kbd)) { margin-top:12px; }
/* Parts with their own top margin keep it on top of the 12px. */
.c-standard .c-steps > li > * + :is(.c-note,.switch) { margin-top:16px; }
.c-standard .c-steps > li > * + .c-code { margin-top:30px; }
.c-standard .c-steps > li::before { content:counter(step); position:absolute; left:0; top:0; width:24px; text-align:center; color:var(--slate); font:500 13px/1.4 var(--body); font-variant-numeric:tabular-nums; }
.c-standard .c-steps > li::after { content:""; position:absolute; left:32px; right:0; top:9px; border-top:1px solid var(--line-strong); }
.c-standard .c-steps > li > strong:first-child { display:block; margin:0 0 12px; font:600 17px/1.25 var(--body); letter-spacing:-.02em; }
.c-standard .c-steps > li > p { font:inherit; }
.c-standard .c-steps .c-note { margin:4px 0 0; font-size:14px; }
.c-standard .switch { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin:4px 0 0; min-width:0; }
.c-standard .switch-pick { display:inline-grid; grid-auto-flow:column; width:max-content; max-width:100%; gap:3px; padding:3px; border:1px solid var(--line-strong); border-radius:9px; background:var(--well); }
.c-standard .switch-pick[hidden],.c-standard .platform-panel[hidden],.c-standard [data-platform-switch].is-live .platform-title { display:none; }
.c-standard .switch-pick button { min-height:36px; padding:6px 14px; border:1px solid var(--line-strong); border-radius:6px; background:transparent; color:var(--ink-dim); font:500 13px/1.4 var(--body); cursor:pointer; }
.c-standard .switch-pick button[aria-pressed="true"] { background:var(--panel); color:var(--ink); border-color:var(--line-strong); box-shadow:0 1px 2px rgb(15 19 26 / .06); }
.c-standard .switch-pick button:hover { background:var(--panel-raised); }
.c-standard .platform-panes,.c-standard .platform-panel { width:100%; min-width:0; }
.c-standard .platform-title { font:600 17px/1.25 var(--body); margin:0 0 12px; }
.c-standard .platform-steps { list-style:none; margin:0; padding:0; }
.c-standard .platform-steps li { padding:0; border:0; font:400 16px/1.65 var(--body); }
.c-standard .platform-steps li::before { content:none; }
.c-standard .c-rows { margin:0; border:0; border-block:1px solid var(--line-strong); }
.c-standard .c-row { display:grid; grid-template-columns:24px minmax(128px,172px) minmax(0,1fr); gap:12px 16px; align-items:start; padding:16px 0; border:0; border-bottom:1px solid var(--line-strong); min-width:0; }
.c-standard .c-row:last-child { border-bottom:0; }
.c-standard .c-row--plain { grid-template-columns:minmax(152px,212px) minmax(0,1fr); }
.c-standard .c-row .ic { display:flex; align-items:center; width:24px; height:21px; grid-row:1; align-self:start; color:var(--ink-dim); background:none; border:0; border-radius:0; }
.c-standard .c-row svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.c-standard .c-row h3 { margin:0; font:600 15px/1.3 var(--body); letter-spacing:-.02em; }
.c-standard .c-row p { margin:0; font:400 14px/1.5 var(--body); color:var(--ink-dim); }
.c-standard .c-tablewrap { margin:0; overflow:visible; border:0; border-radius:0; background:none; }
.c-standard .c-table { width:100%; table-layout:fixed; border-collapse:collapse; font:400 14px/1.5 var(--body); color:var(--ink-body); }
.c-standard .c-table th { padding:12px; background:var(--well); font:500 13px/1.4 var(--body); letter-spacing:0; text-transform:none; color:var(--ink-dim); border:0; border-bottom:1px solid var(--line-strong); white-space:normal; }
.c-standard .c-table td { padding:12px; border:0; border-bottom:1px solid var(--line-strong); vertical-align:middle; font:400 14px/1.5 var(--body); color:var(--ink-body); overflow-wrap:anywhere; }
.c-standard .c-table td:first-child { font-weight:500; }
.c-standard .c-table :is(th,td) { text-align:center; }
.c-standard .c-table :is(th,td):first-child,.c-standard .c-table--text :is(th,td) { text-align:left; }
/* A sentence table's row name sits level with the first line of its text. */
.c-standard .c-table--text :is(th,td) { vertical-align:top; }
.c-standard .c-table tbody tr:hover td { background:transparent; }
.c-standard .c-table--long td { border:0; }
.c-standard .c-table--long tbody tr:nth-child(even) { background:var(--panel-raised); }
.c-standard .c-tablewrap--box { padding:0; border:1px solid var(--line); border-radius:12px; background:var(--panel); overflow:hidden; }
.c-standard .c-tablewrap--box th { background:transparent; border-color:var(--line); }
.c-standard .c-tablewrap--box td { border-color:var(--line); }
.c-standard .c-tablewrap--box tr:last-child td { border-bottom:0; }
.c-standard .cmp th:first-child { width:50%; }
.c-standard .cmp :is(th,td):not(:first-child) { width:25%; }
.c-standard .mk { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
.c-standard .mk svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.c-standard .mk.yes { color:var(--mark-yes); }
.c-standard .mk.no { color:var(--mark-no); }
.c-standard .mk.partial { color:var(--mark-partial); }
/* Cost tiers: $ signs in a Cost column or on a Tool take the Cost Band colors, used for nothing else. */
.c-cost { white-space:nowrap; }
/* Cost Band (Model Index): one colour per sign count, the same green-to-red blend as the Rating, $$$$ burnt orange
   and $$$$$ red. Each measures 4.6:1 or more on Surface, Green Fill and Info Fill. */
:root { --cost-band-1:#2d5d35; --cost-band-2:#536f1f; --cost-band-3:#715300; --cost-band-4:#a0531b; --cost-band-5:#a23b3b; }
.c-cost--b1 { color:var(--cost-band-1); } .c-cost--b2 { color:var(--cost-band-2); } .c-cost--b3 { color:var(--cost-band-3); }
.c-cost--b4 { color:var(--cost-band-4); } .c-cost--b5 { color:var(--cost-band-5); }
.c-standard .c-platform-icon { display:inline-flex; align-items:center; vertical-align:middle; }
.c-standard .c-platform-icon svg { width:18px; height:18px; fill:currentColor; }
.c-standard .c-doc :is(code,.c-kbd) { font:400 13px/1.5 var(--mono); padding:2px 6px; border:1px solid var(--line); border-radius:6px; background:var(--well); color:inherit; overflow-wrap:anywhere; }
.c-standard .c-doc .c-kbd { display:inline-block; font-weight:500; line-height:1.4; border-color:var(--line-strong); background:var(--panel); white-space:normal; }
.c-standard .c-foot { display:flex; border-top:1px solid var(--line); margin:40px 0 0; padding-top:40px; }
.c-standard .c-foot :is(.c-by,.c-when) { font:400 13px/1.4 var(--body); letter-spacing:0; margin:0; color:var(--ink-dim); max-width:none; } /* one quiet line, not body measure */
.c-standard .c-foot .c-by { font-weight:500; color:var(--ink); margin-bottom:12px; }
.c-standard .visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.c-standard .c-doc :is(p,h1,h2,h3,strong,td,th) { overflow-wrap:anywhere; }
@media(max-width:1100px) {
  .c-standard .c-doc { grid-template-columns:minmax(0,1fr); padding:32px 24px 80px; gap:40px; }
  .c-standard .c-doc main { grid-column:1; grid-row:2; max-width:900px; justify-self:center; }
  .c-standard .c-rail { position:static; grid-column:1; grid-row:1; justify-self:center; width:100%; max-width:900px; max-height:none; overflow:visible; }
  .c-standard .c-rail ol { flex-direction:row; flex-wrap:wrap; gap:0 12px; border:0; }
  .c-standard .c-rail a { padding:6px 0; }
  .c-standard .c-rail a.is-here::before { top:auto; bottom:0; left:0; width:100%; height:1px; }
}
@media(max-width:600px) {
  .c-standard .c-doc { padding:16px 8px 48px; }
  .c-standard .c-doc main { padding:24px 11px 32px; }
  .c-standard .c-head .c-title { font-size:30px; }
  .c-standard .c-grid { grid-template-columns:minmax(0,1fr); }
  .c-standard .c-row { grid-template-columns:24px minmax(0,1fr); }
  .c-standard .c-row p { grid-column:2; }
  .c-standard .c-row--plain { grid-template-columns:minmax(0,1fr); }
  .c-standard .c-row--plain p { grid-column:1; }
  .c-standard .c-table :is(th,td) { padding:12px 8px; }
  /* Small stacked cards become plain ruled rows (PARTS.md, Cards), ruled and
     spaced like .c-rows; titles keep the card's Sub-Heading size, and a corner
     icon moves to the row's icon column. */
  .c-standard .c-grid { gap:0; border-block:1px solid var(--line-strong); }
  .c-standard .c-grid > .c-card { padding:16px 0; border:0; border-bottom:1px solid var(--line-strong); border-radius:0; background:none; }
  .c-standard .c-grid > .c-card:last-child { border-bottom:0; }
  .c-standard .c-grid > .c-card--corner-icon { display:grid; grid-template-columns:24px minmax(0,1fr); gap:12px 16px; align-items:start; }
  .c-standard .c-grid > .c-card--corner-icon h3 { grid-column:2; grid-row:1; padding-right:0; }
  .c-standard .c-grid > .c-card--corner-icon p { grid-column:2; }
  .c-standard .c-grid > .c-card--corner-icon > .c-card-icon { position:static; grid-column:1; grid-row:1; width:20px; height:20px; stroke-width:1.6; }
}

/* Parts the standard block replaced but pages built before it still use. */
/* One Sequence (page.one-sequence): plain steps, and any steps after a section
   that already holds steps or a Flow Strip, are unnumbered rows ruled with Strong Line. */
.c-standard :is(.c-steps.c-steps--plain, section:has(.c-steps, ol.c-flow) ~ section .c-steps) { gap:0; }
.c-standard :is(.c-steps.c-steps--plain, section:has(.c-steps, ol.c-flow) ~ section .c-steps) > li { padding:16px 0; border-top:1px solid var(--line-strong); }
.c-standard :is(.c-steps.c-steps--plain, section:has(.c-steps, ol.c-flow) ~ section .c-steps) > li:first-child { padding-top:0; border-top:0; }
.c-standard :is(.c-steps.c-steps--plain, section:has(.c-steps, ol.c-flow) ~ section .c-steps) > li:last-child { padding-bottom:0; }
.c-standard :is(.c-steps.c-steps--plain, section:has(.c-steps, ol.c-flow) ~ section .c-steps) > li::before,
.c-standard :is(.c-steps.c-steps--plain, section:has(.c-steps, ol.c-flow) ~ section .c-steps) > li::after { content:none; }
/* Brand mark beside a page title. */
.c-standard .brandmark { display:inline-flex; flex:none; width:32px; height:32px; margin-right:12px; vertical-align:-3px; color:var(--ink-dim); }
.c-standard .brandmark svg { display:block; width:100%; height:100%; fill:currentColor; }
/* Platform lists inside a Switch panel. */
.c-standard .platform-details { list-style:none; margin:0; padding:0; }
.c-standard .platform-details li { margin:0; padding:0; border:0; }
.c-standard .platform-details li + li { margin-top:4px; }
.c-standard .platform-details li::before { content:none; }
/* Do and don't rules: ruled rows, the bold lead on its own line. */
.c-standard .c-rules { list-style:none; margin:0; padding:0; }
.c-standard .c-rules li { padding:16px 0; border-top:1px solid var(--line-strong); }
.c-standard .c-rules li:first-child { padding-top:0; border-top:0; }
.c-standard .c-rules li:last-child { padding-bottom:0; }
.c-standard .c-rules strong { display:block; margin:0 0 4px; font-weight:600; color:var(--ink); }
/* Rows in older markup carry a small label under the title in the title column. */
.c-standard .c-row:has(> .c-label) { row-gap:4px; }
/* Mac and Windows buttons in older segmented controls hold only an icon. */
.c-standard [data-platform-controls] button { min-width:44px; }
.c-standard .c-doc pre { max-width:100%; }
/* Captions under a table or figure: 13px Muted. */
.c-standard .c-cap { font-size:13px; line-height:1.55; color:var(--ink-dim); }
/* The shortcut hint keeps its 6px above the shortcut table, which ".c-doc p" zeroes. */
.c-standard .c-doc .macro-hint { margin-bottom:6px; }
@media(max-width:600px) {
  .c-standard .brandmark { width:26px; height:26px; }
  /* Narrow table columns (tables that keep their columns on phones): header
     words and code chips stay whole instead of breaking mid-word, and a
     sentence table whose first column holds code sizes its columns to that code. */
  .c-standard .c-doc .c-table:not(.c-table--stack) :is(th,code) { overflow-wrap:normal; }
  .c-standard .c-table.c-table--text:has(td:first-child code) { table-layout:auto; }
}

/* Steps on pages without the standard shell (html:not(.c-standard)), such as the
   Antigravity Quick Start: these rules styled every .c-steps list before the
   standard block and still carry those pages. Numeral on the rule. */
html:not(.c-standard) .c-steps,
html:not(.c-standard) .c-steps.ruled-steps {
  list-style: none !important;
  margin: 18px 0 !important;
  padding: 0 !important;
  counter-reset: step;
}
html:not(.c-standard) .c-steps > li,
html:not(.c-standard) .c-steps.ruled-steps > li {
  counter-increment: step;
  position: relative !important;
  margin: 0 !important;
  padding: 30px 0 14px !important;
  border-top: 0 !important;
  font-size: 15px;
  color: var(--ink-body);
  max-width: none !important;
}
html:not(.c-standard) .c-steps > li:last-child,
html:not(.c-standard) .c-steps.ruled-steps > li:last-child {
  padding-bottom: 0 !important;
}
html:not(.c-standard) .c-steps > li::before,
html:not(.c-standard) .c-steps.ruled-steps > li::before {
  content: counter(step) !important;
  position: absolute !important;
  top: 2px !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font: 600 13px/20px var(--body, var(--sans)) !important;
  font-variant-numeric: tabular-nums !important;
  text-align: left !important;
  color: var(--slate) !important;
}
html:not(.c-standard) .c-steps > li::after,
html:not(.c-standard) .c-steps.ruled-steps > li::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 0;
  top: 12px;
  height: 1px;
  background: var(--line-strong);
}
html:not(.c-standard) .c-steps > li:nth-child(n+10)::after,
html:not(.c-standard) .c-steps.ruled-steps > li:nth-child(n+10)::after {
  left: 28px;
}
html:not(.c-standard) .c-steps > li > strong:first-child,
html:not(.c-standard) .c-steps > li > p:first-child > strong:first-child {
  display: block;
  margin-bottom: 4px;
  font: 600 15px/1.3 var(--disp);
  color: var(--ink);
}
/* One Sequence: plain steps, and steps after a section that already holds steps
   or a Flow Strip, are unnumbered ruled rows. */
html:not(.c-standard) section:has(.c-steps, ol.c-flow) ~ section .c-steps > li,
html:not(.c-standard) .c-steps.c-steps--plain > li {
  padding: 14px 0 !important;
  border-top: 1px solid var(--line) !important;
}
html:not(.c-standard) section:has(.c-steps, ol.c-flow) ~ section .c-steps > li:first-child,
html:not(.c-standard) .c-steps.c-steps--plain > li:first-child {
  padding-top: 0 !important;
  border-top: 0 !important;
}
html:not(.c-standard) section:has(.c-steps, ol.c-flow) ~ section .c-steps > li:last-child,
html:not(.c-standard) .c-steps.c-steps--plain > li:last-child {
  padding-bottom: 0 !important;
}
html:not(.c-standard) section:has(.c-steps, ol.c-flow) ~ section .c-steps > li::before,
html:not(.c-standard) section:has(.c-steps, ol.c-flow) ~ section .c-steps > li::after,
html:not(.c-standard) .c-steps.c-steps--plain > li::before,
html:not(.c-standard) .c-steps.c-steps--plain > li::after {
  display: none !important;
  content: none !important;
}
html:not(.c-standard) .c-steps details { margin: 10px 0 0; }
html:not(.c-standard) .c-steps details > summary { font-size: 14px; padding-block: 10px; }

/* R36: one shared mark key above each comparison or permission table. */
.c-mark-key { display:flex; flex-wrap:wrap; align-items:center; align-self:flex-start; gap:4px 12px; width:fit-content; min-width:0; max-width:100%; margin:0; padding:4px 12px; border:1px solid var(--line); border-radius:6px; background:var(--well); color:var(--ink-dim); font:400 13px/1.4 var(--body,var(--sans)); }
.c-mark-key-item { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.c-mark-key .mk svg { width:16px; height:16px; }
.c-mark-key-sep { color:var(--ink-mute); }
@media(max-width:600px) { .c-mark-key-sep { display:none; } }

/* Glossary group identity (R40): icons belong to groups, never term rows. */
[data-glossary-group="ai"] { --glossary-group: var(--glossary-ai); }
[data-glossary-group="ops"] { --glossary-group: var(--glossary-ops); }
[data-glossary-group="code"] { --glossary-group: var(--glossary-code); }
[data-glossary-group="notes"] { --glossary-group: var(--glossary-knowledge); }
.glossary-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--glossary-group);
  line-height: 0;
}
.glossary-group-icon[hidden] { display: none; }
.glossary-group-icon svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glossary-group-icon--head svg { width: 20px; height: 20px; stroke-width: 1.8; }
.glossary-group-icon--filter svg { width: 14px; height: 14px; stroke-width: 2.1; }
.c-doc .drawer-tool-pill[data-glossary-group],
.gp-eyebrow[data-glossary-group] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--glossary-group) !important;
}
.c-doc .drawer-tool-pill[data-glossary-group]::before { content: none; }
@media (max-width: 600px) {
  .c-table.c-table--text tr:is(.term-row, .drawer-row) > td:first-child {
    width: auto;
    min-width: 0;
  }
}

.gterm-pop .gp-tool {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Glossary tooltip type on the DESIGN.md scale */
.gterm-pop .gp-eyebrow, .gterm-pop .gp-tool, .gterm-pop .gp-link { font-size: 13px !important; line-height: 1.4 !important; font-weight: 500 !important; }
.gterm-pop .gp-title { font-size: 15px !important; line-height: 1.3 !important; font-weight: 600 !important; }
.gterm-pop .gp-desc { font-size: 14px !important; line-height: 1.5 !important; }
/* Aliases row, matching the Glossary drawer's label and value rows (R47) */
.gterm-pop .gp-meta { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 0; }
.gterm-pop .gp-meta > div { display: contents; }
.gterm-pop .gp-meta dt { display: flex; align-items: baseline; gap: 6px; margin: 0; flex: none; color: var(--ink-dim); font: 500 13px/1.4 var(--body); }
.gterm-pop .gp-meta-icon { flex: none; align-self: center; width: 14px; height: 14px; fill: none; stroke: var(--ink-mute); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.gterm-pop .gp-meta dd { margin: 0; min-width: 0; color: var(--ink-body); font: 400 14px/1.5 var(--body); overflow-wrap: anywhere; }
/* Group identity remains with the row when search moves it outside its section. */
.drawer-row[data-sec="ai"] { --glossary-group: var(--glossary-ai); }
.drawer-row[data-sec="ops"] { --glossary-group: var(--glossary-ops); }
.drawer-row[data-sec="code"] { --glossary-group: var(--glossary-code); }
.drawer-row[data-sec="notes"] { --glossary-group: var(--glossary-knowledge); }
.c-doc .drawer-row .drawer-content { border-left-color: var(--glossary-group) !important; }

/* Shared-part corrections moved from page CSS (PARTS.md). Each fixes the part
   on every page that uses it; pages without the part are unaffected. */

/* Cycle label: the standard shell zeroes paragraph margins, so the label keeps its own. */
.c-standard .c-doc .c-cycle-label { margin:8px 0 0; max-width:none; }
@media (max-width:720px) {
  .c-standard .c-doc .c-cycle-label { margin:-8px 0 0; }
}

/* Tree: the standard shell spaces blocks with its gaps. */
.c-standard .c-tree { margin:0; }

/* Terms table (c-table--terms): the class carries the layout the #terms section
   rules already give it (auto layout, a 26% term column, left-aligned cells, and
   term names that never break inside a word), so it renders the same in any section. */
.c-table.c-table--terms { table-layout:auto; }
.c-table.c-table--terms :is(th,td) { width:auto; text-align:left; }
.c-table.c-table--terms :is(th,td):first-child { width:26%; }
.c-table.c-table--terms td:first-child,
.c-table.c-table--terms td:first-child a { overflow-wrap:normal; word-break:normal; hyphens:none; }

/* First-column labels wrap between words, never inside one (PARTS.md, Table Text).
   On phones a text table takes auto layout, so its first column keeps its 26% unless
   its longest word needs more, as "Automatically" does on GitHub Branches at 390px. */
.c-standard .c-doc .c-table td:first-child { overflow-wrap:break-word; }
@media (max-width:600px) {
  .c-standard .c-table.c-table--text:not(.c-table--stack) { table-layout:auto; }
}

/* Stacked tables on phones: the label floats in a 76px column beside the value,
   its baseline on the value's first line, so any cell content (text, bold
   names, a list) keeps flowing in the value column and a long label still
   holds its row open. One Strong Line under each row. */
@media (max-width:600px) {
  .c-table.c-table--stack td { display:flow-root; border-bottom:0; }
  .c-table.c-table--stack td[data-label]:not(:first-child) { padding-left:88px !important; }
  .c-table.c-table--stack td[data-label]:not(:first-child)::before { float:left; width:76px; margin:2px 0 0 -88px; overflow-wrap:normal; }
  /* The group on its own line at weight 600 (PARTS.md Grouped Values, Phones),
     above the standard table's 500 first column. */
  .c-standard .c-table.c-table--stack td:first-child { font-weight:600; }
  /* A long table marks its rows with the alternating fill, so stacked it drops the line. */
  .c-standard .c-table--long.c-table--stack tr { border-bottom:0; }
}

/* Warning Sign Table (c-table--signs, PARTS.md Tables and Marks): a stacked
   text table whose last two columns are Warning Sign and Potential Resolution.
   The stylesheet draws a magnifier before Warning Sign and a wrench before
   Potential Resolution, 16px with a 2.4 stroke in Ink, picked by column
   position, so the page writes no icon. They belong to the headings, not the
   cells' content, and are not marks. In the header band the icon hangs 3px
   below the baseline inside the 18.2px line, so the band keeps its height.
   On phones the label takes its own line above the value, the icon in Ink
   before it, because Potential Resolution and its icon don't fit the 76px
   label column other stacked tables use. */
.c-table--signs :is(th, td):nth-last-child(2) {
  --sign-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}
.c-table--signs :is(th, td):last-child {
  --sign-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}
.c-table.c-table--signs th:nth-last-child(-n+2)::before {
  content:"";
  display:inline-block;
  width:16px;
  height:16px;
  margin-right:6px;
  vertical-align:-3px;
  background:var(--ink);
  -webkit-mask:var(--sign-icon) center / 16px 16px no-repeat;
  mask:var(--sign-icon) center / 16px 16px no-repeat;
}
@media (max-width:600px) {
  .c-table.c-table--signs td[data-label]:not(:first-child) { position:relative; padding-left:0 !important; }
  .c-table.c-table--signs td[data-label]:not(:first-child)::before { float:none; width:auto; margin:0 0 2px; padding-left:22px; }
  /* Centered on the 18.2px label line, which starts under the cell's 4px top padding. */
  .c-table.c-table--signs td[data-label]:not(:first-child)::after {
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:16px;
    height:16px;
    background:var(--ink);
    -webkit-mask:var(--sign-icon) center / 16px 16px no-repeat;
    mask:var(--sign-icon) center / 16px 16px no-repeat;
  }
}

/* See Also banner (c-see-also): closes a section with one pointer to a related
   Cache page. Well fill, no border, 6px corner, a 16px Lucide link icon in
   Accent centered on the first line, 14px Supporting text in Muted. The icon is
   drawn by the stylesheet, so the page writes only the sentence and its link. */
.c-see-also {
  position:relative;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:8px 12px 8px 36px;
  border:0;
  border-radius:6px;
  background:var(--well);
  color:var(--ink-dim);
  font:400 14px/1.5 var(--body,var(--sans));
  letter-spacing:0;
}
.c-see-also::before {
  content:"";
  position:absolute;
  left:12px;
  top:10.5px;
  width:16px;
  height:16px;
  background:var(--slate);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / 16px 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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.c-see-also a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--link-line); text-underline-offset:3px; }
.c-see-also a:hover { text-decoration-color:var(--ink); }

/* Exchange on standard pages: the icon sits in the top-left corner (PARTS.md Exchange, R22), not in a tile above the title; the title's padding keeps it centered clear of the icon. */
.c-standard .c-exchange-side { position:relative; }
.c-standard .c-exchange-side .ic { position:absolute; top:16px; left:16px; right:auto; width:24px; height:24px; margin:0; background:none; border-radius:0; color:var(--ink-dim); }
.c-standard .c-exchange-side .ic svg { width:24px; height:24px; stroke-width:1.5; }
.c-standard .c-exchange-side h3 { padding:0 40px; }

/* Rating (R66): a five-step colour scale for a 1 to 100 score, a blend from red through orange, yellow and yellow-green
   to green, reusable on any page. The steps also differ in lightness, so they stay apart under deuteranopia and
   protanopia (smallest ΔE2000 3.3 and 4.3). Text steps measure at least 7.4:1 on Surface; each tint carries its own
   text step at 5.7:1 or more. Bands: under 35, 35 to 44, 45 to 54, 55 to 64, 65 and up. The number always shows, so
   colour never carries the meaning alone. */
:root {
  --rate-1:#faddd7; --rate-2:#f3dec6; --rate-3:#f3ebb8; --rate-4:#ecf6d7; --rate-5:#acd8c2;
  --rate-1-ink:#8b2e29; --rate-2-ink:#87420d; --rate-3-ink:#6b5200; --rate-4-ink:#435716; --rate-5-ink:#1d4a33;
}
.c-rate { font:600 15px/1.3 var(--body,var(--sans)); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.c-rate--1 { color:var(--rate-1-ink); } .c-rate--2 { color:var(--rate-2-ink); } .c-rate--3 { color:var(--rate-3-ink); }
.c-rate--4 { color:var(--rate-4-ink); } .c-rate--5 { color:var(--rate-5-ink); }
.c-rate--pill { display:inline-block; min-width:44px; padding:2px 10px; border-radius:999px; text-align:center; }
.c-rate--pill.c-rate--1 { background:var(--rate-1); } .c-rate--pill.c-rate--2 { background:var(--rate-2); } .c-rate--pill.c-rate--3 { background:var(--rate-3); }
.c-rate--pill.c-rate--4 { background:var(--rate-4); } .c-rate--pill.c-rate--5 { background:var(--rate-5); }
.c-rate--big { font-size:24px; line-height:1.2; letter-spacing:-.02em; }
.c-rate--pill.c-rate--big { padding:2px 14px; }

/* Pick Card (R68): a recommendation card on a Tool. The All-Star takes Green, Best Value takes Info; one card with
   both labels spans the row when one item wins both. Tinted fill, a 1px border in the pick colour, a solid label. */
.c-picks { container-type:inline-size; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.c-pick { display:grid; gap:12px; align-content:start; min-width:0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.c-pick--star, .c-pick--both { background:var(--sage-soft); border-color:var(--sage); }
.c-pick--value { background:var(--info-soft); border-color:var(--info-ink); }
.c-pick--both { grid-column:1 / -1; }
.c-pick-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.c-pick-label { display:inline-block; padding:2px 10px; border-radius:999px; color:var(--panel); font:600 13px/1.4 var(--body,var(--sans)); white-space:nowrap; }
.c-pick-label--star { background:var(--sage); }
.c-pick-label--value { background:var(--info-ink); }
.c-pick-lab { font:500 13px/1.4 var(--body,var(--sans)); color:var(--ink-mute); }
.c-pick-name { display:flex; align-items:center; gap:10px; margin:0; font:600 24px/1.2 var(--body,var(--sans)); letter-spacing:-.02em; color:var(--ink); }
/* Maker Logo: a model maker's mark in its own brand colours, as an agent keeps its hue (color.tokens-only). */
.c-maker { display:inline-flex; width:18px; height:18px; flex-shrink:0; }
.c-maker svg { display:block; width:100%; height:100%; }
.c-pick-name .c-maker { width:22px; height:22px; }
.c-pick-why { margin:0; font:400 14px/1.5 var(--body,var(--sans)); color:var(--ink-dim); }
.c-pick-stats { display:flex; justify-content:space-evenly; align-items:flex-end; gap:12px 0; margin:0; }
.c-pick-stats > div { display:grid; justify-items:center; gap:2px; }
.c-pick-stats dt { font:500 13px/1.4 var(--body,var(--sans)); color:var(--ink-mute); }
.c-pick-stats dd { margin:0; font:600 24px/1.2 var(--body,var(--sans)); letter-spacing:-.02em; }
.c-pick-stats dd:not(.c-rate) { color:var(--ink); }
@media (max-width:760px) { .c-picks { grid-template-columns:1fr; } }
/* Too narrow for four stats on one row: two rows of two, each stat centred in its half. The query is on the card row
   (c-picks), so a merged card and two separate cards take the same layout at any width and the list below never moves.
   The cutoffs are where a separate card's inner width reaches 369px: (369 + 42) x 2 + 16 beside another card, 369 + 42 stacked. */
@media (min-width:761px) { @container (max-width:838px) { .c-pick-stats { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; } } }
@media (max-width:760px) { @container (max-width:411px) { .c-pick-stats { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; } } }

/* Touch targets (R69, page.touch-targets): on phones a Terms table's term
   link gets a transparent hit area of at least 44 by 44 around its chip, so
   the chip keeps its look and the finger still lands. */
@media (max-width: 600px) {
  .c-table--terms td a.c-gterm { position: relative; display: inline-block; margin: -2px -5px -2px 0; }
  .c-table--terms td a.c-gterm::after { content: ""; position: absolute; top: -13px; bottom: -13px; left: -4px; right: -4px; min-width: 44px; }
}

/* --- Standard Visual 7: Sync Map (.c-sync), PARTS.md Sync Map, R60 ---
   Copies of the same files in more than one place and whether they match, driven
   by the reader. Two forms: Two Places (.c-sync--two), where the reader moves
   commits between this computer and GitHub, and Place Map (.c-sync--map), five
   places in two zones walked with Back and Next. article.js drives both and adds
   .is-live; without script the places show at rest and the controls stay hidden.
   Sync state colours, one job each (DESIGN.md Colors, R60): Amber for pending and
   out of sync, Green for in sync and a lit place, Danger Fill and Danger Text for
   a refused push or a conflict. Every state is also named in text. */
.c-sync { display:grid; gap:16px; margin:0; min-width:0; }

/* Controls */
.c-sync-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:36px; padding:6px 12px;
  border:1px solid var(--line-strong); border-radius:6px;
  background:var(--panel); color:var(--ink);
  font:500 13px/1.4 var(--sans); letter-spacing:0;
  cursor:pointer; white-space:nowrap;
}
@media (hover:hover) { .c-sync-btn:hover { background:var(--panel-raised); } }
.c-sync-btn:focus-visible { outline:2px solid var(--ink); outline-offset:1px; }
.c-sync-btn svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.c-sync-btn[hidden] { display:none; }
.c-sync-btn.is-gone { visibility:hidden; }
.c-sync:not(.is-live) :is(.c-sync-acts, .c-sync-ways, .c-sync-foot) { display:none; }

/* Places */
.c-sync-place {
  display:grid; align-content:start; gap:12px; min-width:0;
  padding:16px; background:var(--panel);
  border:1px solid var(--line); border-radius:12px;
}
.c-sync-place.is-lit { border-color:var(--sage); }
.c-sync-top { display:flex; align-items:center; gap:8px; min-width:0; }
.c-sync-top .ic { display:inline-flex; flex:none; width:20px; height:20px; color:var(--ink-dim); }
.c-sync-top .ic svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.c-sync .c-sync-top h3 { margin:0; font:600 17px/1.25 var(--sans); letter-spacing:-.02em; color:var(--ink); white-space:nowrap; }
.c-sync-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-left:auto; }
.c-sync-tag { padding:0 7px; border-radius:999px; background:var(--well); font:500 13px/1.4 var(--sans); color:var(--ink-dim); white-space:nowrap; }
.c-sync-tag.is-sync { background:var(--sage-soft); color:var(--sage-ink); }
.c-sync-tag.is-out { background:var(--amber-soft); color:var(--amber); }
.c-sync-tag.is-broken { background:var(--danger-soft); color:var(--danger-ink); }
.c-sync-label { font:500 13px/1.4 var(--sans); color:var(--ink-mute); }
.c-sync-acts { display:flex; flex-wrap:wrap; gap:8px; }
.c-sync-place .c-sync-acts { margin-top:auto; padding-top:4px; }

/* Two Places */
.c-sync-two { display:grid; grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr); align-items:stretch; }
.c-sync-hist { display:grid; gap:2px; }
.c-sync-row { display:flex; align-items:center; gap:10px; min-height:30px; min-width:0; font:400 14px/1.5 var(--sans); color:var(--ink-body); }
.c-sync-row .m { min-width:0; }
.c-sync-dot { flex:none; width:9px; height:9px; border-radius:999px; background:var(--slate); }
.c-sync-row.is-missing { color:var(--ink-mute); }
.c-sync-row.is-missing .c-sync-dot { background:var(--well); }
/* Pending: an Amber Text dot in a 3px Amber Fill ring, so it reads as amber at 9px; the margin keeps the text aligned. */
.c-sync-row:is(.is-pending, .is-unpushed) .c-sync-dot { display:grid; place-items:center; width:15px; height:15px; margin:0 -3px; background:var(--amber-soft); }
.c-sync-row:is(.is-pending, .is-unpushed) .c-sync-dot::after { content:""; width:9px; height:9px; border-radius:999px; background:var(--amber); }
.c-sync-row.is-pending { color:var(--ink-dim); }
.c-sync-pending { display:grid; gap:2px; padding-top:10px; border-top:1px solid var(--line); }
.c-sync-pending[hidden] { display:none; }
.c-sync-ways { display:flex; flex-direction:column; justify-content:center; gap:10px; padding:0 10px; }
.c-sync-way { flex-direction:column; gap:2px; padding:6px 4px 8px; }
.c-sync-way svg { width:48px; height:10px; stroke-width:1.5; }
.c-sync-foot { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.c-sync .c-sync-cap { margin:0; min-height:42px; font:400 14px/1.5 var(--sans); color:var(--ink-body); }

/* Place Map: Online (the hub and a cloud worker) above This Computer (an app, the home folder, and a local agent). */
.c-sync-map {
  position:relative; display:grid;
  grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) 64px minmax(0,1fr);
  padding:0 12px 12px;
}
.c-sync-frame { margin:0 -12px -12px; border:1px solid var(--line); border-radius:12px; pointer-events:none; }
.c-sync-frame--online { grid-row:1 / 3; grid-column:3 / 6; }
.c-sync-frame--local { grid-row:4 / 6; grid-column:1 / 6; }
.c-sync-zone { position:relative; display:flex; align-items:center; padding:10px 0 8px; font:500 13px/1.4 var(--sans); color:var(--ink-dim); }
.c-sync-zone--online { grid-row:1; grid-column:3 / 6; }
.c-sync-zone--local { grid-row:4; grid-column:1 / 6; }
.c-sync-node {
  position:relative; display:grid; align-content:start; gap:4px; min-width:0;
  padding:12px 14px; background:var(--panel);
  border:1px solid var(--line); border-radius:12px;
}
.c-sync-node.is-lit { border-color:var(--sage); }
/* A place's name breaks only between words, and a tag that doesn't fit beside its longest word moves under it. */
.c-sync-node .c-sync-top { flex-wrap:wrap; row-gap:6px; }
.c-sync .c-sync-node h3 { flex:1 1 0; min-width:min-content; margin:0; font:600 15px/1.3 var(--sans); letter-spacing:-.02em; color:var(--ink); white-space:normal; overflow-wrap:normal; }
.c-sync-node .c-sync-tags { margin-left:0; }
.c-sync-node .c-sync-tags:empty { display:none; }
.c-sync .c-sync-node p { margin:0; font:400 14px/1.5 var(--sans); color:var(--ink-body); }
.c-sync-node--hub { grid-row:2; grid-column:3; }
.c-sync-node--cloud { grid-row:2; grid-column:5; }
.c-sync-node--app { grid-row:5; grid-column:1; }
.c-sync-node--home { grid-row:5; grid-column:3; }
.c-sync-node--agent { grid-row:5; grid-column:5; }
.c-sync-link { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; text-align:center; font:500 13px/1.4 var(--sans); color:var(--ink-dim); }
.c-sync-link svg { width:44px; height:10px; flex:none; fill:none; stroke:var(--line-strong); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.c-sync-link.is-on, .c-sync-link .w.is-on { color:var(--ink); }
.c-sync-link.is-on svg, .c-sync-link .w.is-on svg { stroke:var(--ink); }
.c-sync-link--cloud { grid-row:2; grid-column:4; }
.c-sync-link--app { grid-row:5; grid-column:2; }
.c-sync-link--agent { grid-row:5; grid-column:4; }
.c-sync-link--sync { grid-row:3; grid-column:3; flex-direction:row; gap:20px; padding:22px 0; }
.c-sync-link--sync .w { display:flex; align-items:center; gap:4px; }
.c-sync-link--sync svg { width:10px; height:28px; }

/* Place Map steps: a plain list without script; with it, Back, the step's name over its pips, Next, and one caption. */
.c-sync-steps { display:grid; gap:4px; margin:0; padding:0 0 0 20px; font:400 14px/1.5 var(--sans); color:var(--ink-body); }
.c-sync-step-t { font-weight:600; color:var(--ink); }
.c-sync.is-live .c-sync-steps { display:none; }
.c-sync-stepper { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; }
.c-sync-now { display:grid; justify-items:center; gap:6px; text-align:center; min-width:0; }
.c-sync-now-t { font:600 15px/1.3 var(--sans); letter-spacing:-.02em; color:var(--ink); }
.c-sync-pips { display:flex; gap:6px; }
.c-sync-pip { width:6px; height:6px; border-radius:999px; background:var(--line-strong); }
.c-sync-pip.is-now { background:var(--ink); }

@media (max-width:680px) {
  .c-sync-two { grid-template-columns:minmax(0,1fr); }
  .c-sync-ways { flex-direction:row; justify-content:center; padding:10px 0; }
  .c-sync-way { flex:1 1 0; flex-direction:row; gap:0; padding:6px 8px; }
  .c-sync-way svg { width:24px; height:10px; transform:rotate(90deg); }
  .c-sync-foot { flex-direction:column; gap:10px; }
  .c-sync .c-sync-cap { min-height:63px; }
  .c-sync-map { grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:12px; }
  .c-sync-frame--online { grid-row:1 / 5; grid-column:1 / 3; }
  .c-sync-frame--local { grid-row:6 / 10; grid-column:1 / 3; }
  .c-sync-zone--online { grid-row:1; grid-column:1 / 3; }
  .c-sync-zone--local { grid-row:6; grid-column:1 / 3; }
  .c-sync-node--cloud { grid-row:2; grid-column:1 / 3; }
  .c-sync-link--cloud { grid-row:3; grid-column:1 / 3; flex-direction:row; gap:8px; padding:8px 0; }
  .c-sync-node--hub { grid-row:4; grid-column:1 / 3; }
  .c-sync-link--sync { grid-row:5; grid-column:1 / 3; }
  .c-sync-node--home { grid-row:7; grid-column:1 / 3; }
  .c-sync-link--app { grid-row:8; grid-column:1; flex-direction:row; gap:8px; padding:8px 0; }
  .c-sync-link--agent { grid-row:8; grid-column:2; flex-direction:row; gap:8px; padding:8px 0; }
  .c-sync-node--app { grid-row:9; grid-column:1; }
  .c-sync-node--agent { grid-row:9; grid-column:2; }
  .c-sync-link:is(.c-sync-link--cloud, .c-sync-link--app, .c-sync-link--agent) svg { width:28px; transform:rotate(90deg); }
}

/* Motion follows a press only: a new commit row fades in, and a lit place or link eases its colour. None under reduced motion. */
@media (prefers-reduced-motion:no-preference) {
  .c-sync-row.is-new { animation:c-sync-in .24s ease-out; }
  .c-sync-place, .c-sync-node { transition:border-color .16s ease; }
  .c-sync-link svg { transition:stroke .16s ease; }
}
@keyframes c-sync-in { from { opacity:0; transform:translateY(-3px); } }

/* Touch targets (R69, page.touch-targets): shared parts on phones. A part
   whose size carries its look keeps it and gains a transparent hit area;
   the rest grow to 44px. */
@media (max-width: 600px) {
  .c-fn::before { inset: -11px; }
  .c-code-copy::after { content: ""; position: absolute; inset: -6px; }
  .c-fill-toggle { position: relative; }
  .c-fill-toggle::after { content: ""; position: absolute; inset: -6px 0; }
  .switch-pick button { position: relative; }
  .switch-pick button::after { content: ""; position: absolute; inset: -4px 0; }
  .c-sync-btn { min-height: 44px; }
  .c-rail a { min-height: 44px; align-items: center; box-sizing: border-box; }
  .c-see-also a { position: relative; }
  .c-see-also a::after { content: ""; position: absolute; inset: -14px -4px; min-width: 44px; }
}

/* Terms appendix: an optional lookup below the body hierarchy. No animation. */
.paper .c-section > .c-terms-disclosure { margin:0; padding:0; border:0; min-width:0; }
.paper .c-terms-disclosure > .c-terms-summary {
  display:flex; align-items:center; gap:12px; box-sizing:border-box;
  min-height:48px; margin:0; padding:12px;
  background:var(--panel-raised); border-radius:6px;
  color:var(--ink); cursor:pointer; list-style:none;
}
.paper .c-terms-disclosure > .c-terms-summary::after { content:none; }
.paper .c-terms-summary::-webkit-details-marker { display:none; }
.paper .c-terms-summary::marker { content:''; }
.paper .c-terms-summary:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:6px; }
.paper .c-terms-summary .c-h2i { display:flex; align-items:center; gap:8px; margin:0; }
.paper .c-terms-summary h2 { margin:0; font:600 17px/1.25 var(--body); letter-spacing:-.02em; }
.paper .c-terms-summary .ic { display:flex; align-items:center; width:18px; height:22px; flex:none; color:var(--slate); }
.paper .c-terms-summary .ic svg { width:18px; height:18px; }
.paper .c-terms-count { color:var(--ink-mute); font:400 13px/1.4 var(--body); font-variant-numeric:tabular-nums; }
.paper .c-terms-chevron { margin-left:auto; width:16px; height:16px; flex:none; fill:none; stroke:var(--ink-dim); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.paper .c-terms-disclosure[open] > .c-terms-summary .c-terms-chevron { transform:rotate(180deg); }
.paper .c-terms-disclosure > .c-tablewrap { margin:12px 0 0; }
@media (hover:hover) {
  .paper .c-terms-summary:hover { background:var(--well); }
}

/* The footer owns the final divider. Drop only a reading part's trailing rule
   when its section immediately precedes the footer, through a shell or directly.
   Skip hidden Glossary groups/rows and a section a page collapses but keeps
   measurable for its rail (.kl-away, the Knowledge Library's Additional
   Benefits away from Level 5); boxed interactive tables keep their edge. */
.paper :is(.c-divided:has(+ .c-foot), .c-page:has(+ .c-foot), main:has(> .c-foot)) > .c-section:nth-last-child(1 of :not([hidden], .c-foot, .kl-away)) {
  border-bottom:0;
}
.paper :is(.c-divided:has(+ .c-foot), .c-page:has(+ .c-foot), main:has(> .c-foot)) > .c-section:nth-last-child(1 of :not([hidden], .c-foot, .kl-away)) > :is(.c-tablewrap:not(.c-tablewrap--box), .c-terms-disclosure):last-child .c-table > tbody > tr:nth-last-child(1 of :not([hidden])),
.paper :is(.c-divided:has(+ .c-foot), .c-page:has(+ .c-foot), main:has(> .c-foot)) > .c-section:nth-last-child(1 of :not([hidden], .c-foot, .kl-away)) > :is(.c-tablewrap:not(.c-tablewrap--box), .c-terms-disclosure):last-child .c-table > tbody > tr:nth-last-child(1 of :not([hidden])) > td,
.paper :is(.c-divided:has(+ .c-foot), .c-page:has(+ .c-foot), main:has(> .c-foot)) > .c-section:nth-last-child(1 of :not([hidden], .c-foot, .kl-away)) > .c-rows:last-child {
  border-bottom:0;
}

/* Bullet List (PARTS.md): a classless ul directly in a section, in Body text at the paragraph measure, with its
   markers inside the text column. The shell resets list padding, so the indent is set back here. */
.c-standard .c-divided > .c-section > ul:not([class]) { margin: 0; padding-left: 22px; max-width: 66ch; font: 400 16px/1.65 Inter, sans-serif; color: var(--ink-body); list-style: disc; }
.c-standard .c-divided > .c-section > ul:not([class]) > li { margin: 0; padding-left: 2px; }
.c-standard .c-divided > .c-section > ul:not([class]) > li + li { margin-top: 6px; }
