/* Stack guides and tool pages use the same type, wires and Index rows as Combined. */
.mock-page main { overflow-wrap: anywhere; }
.mock-page :is(h1, h2, h3, h4) {
  color: var(--bright);
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}
.mock-page h2 { font-size: var(--fs-h2); }
.mock-page h3 { font-size: var(--fs-h3); }
.mock-page h1.page-title.wordmark {
  font-size: clamp(32px, 5.3vw, 72px);
  font-weight: 600;
  line-height: 1.04;
}
.mock-page .page-hero { padding-block: clamp(30px, 5vw, 74px) 0; }
.page-hero .hero-lede { margin-top: 16px; }
.mock-page .hero-lede { max-width: 88ch; font-size: 18px; }
.caption, .byline { color: var(--muted); font-size: var(--fs-caption); }
.byline { margin-top: 10px; }
.byline a { display: inline-flex; align-items: center; min-height: 44px; }
.eyeline { margin-bottom: 10px; }
.eyeline a { font-size: var(--fs-small); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }

.projects-page .caption { margin-top: 8px; }
.project-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 6px;
  font-size: 16px;
}

.project-directory { margin-top: clamp(24px, 4vw, 52px); }
.project-directory .index-item { display: block; padding-block: 16px 12px; }
.project-directory .index-rows.has-active .index-item:not(.is-active) { opacity: .75; }
.project-directory .index-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-height: 0;
  gap: 0 8px;
  padding-block: 0;
}

.project-directory .index-row .display { font-size: 25px; }
.project-directory .index-row .repo-line { margin-top: 2px; text-align: left; }
.project-directory .row-icons { margin-top: 0; }
.project-directory .row-icon, .browser-app .row-icon { width: 44px; height: 44px; }
.project-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  color: inherit;
  text-decoration: none;
}

.project-title-link:is(:hover, :focus-visible) { color: var(--phosphor); }
.project-site-icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.project-title-link:is(:hover, :focus-visible) .project-site-icon { color: inherit; }
.project-pages, .project-indexes { display: flex; flex-wrap: wrap; gap: 0 20px; }
.project-pages { margin-top: 8px; font-size: 16px; }
.project-pages li { display: flex; align-items: center; min-width: 0; }
.project-pages a, .project-indexes a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: inherit;
}

.project-pages a { text-decoration-color: #395642; }
.project-pages .markdown-link { justify-content: center; font-size: 14px; color: var(--muted); }
.project-indexes { font: 400 14px/1.4 var(--mono); color: var(--muted); }
.project-indexes a { text-decoration: none; }
.project-pages a:is(:hover, :focus-visible), .project-indexes a:is(:hover, :focus-visible) {
  color: var(--phosphor);
  text-decoration: underline;
}

.browser-apps { margin-top: clamp(40px, 6vw, 80px); }
.browser-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin-top: 16px;
}

.browser-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 8px;
  padding: 10px 13px 13px;
  border: 1px solid var(--hair);
  background: var(--panel);
}

.browser-app:is(:hover, :focus-within) { border-color: var(--muted); }
.browser-app h3 { font-size: calc(var(--fs-h3) * 0.8); }
.browser-app p { grid-column: 1 / -1; font-size: 13px; }

@media (min-width: 760px) and (prefers-reduced-motion: reduce) {
  .projects-page .index-preview[data-still-preview] { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .project-directory .index-item.is-active .index-row .display { transform: none; }
}

.page-graph {
  position: relative;
  isolation: isolate;
  margin-block: clamp(22px, 4vw, 44px);
  border: 1px solid var(--hair);
  padding: clamp(16px, 3vw, 36px);
  background: radial-gradient(var(--hair) 1px, transparent 1px) 0 0 / 21px 21px;
}
.page-graph .routing-wires { overflow: hidden; }
.mock-page .page-graph .graph-node {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  font-family: var(--sans);
  font-size: var(--fs-body);
  text-decoration: none;
  white-space: normal;
}
.graph-node > i {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid var(--muted);
}
.graph-node:is(.routing-task, .is-arriving, :hover, :focus-visible) > i {
  background: var(--phosphor);
  border-color: var(--phosphor);
}
.page-graph .routing-task { justify-self: stretch; margin: 0; }
.page-graph .graph-stack { display: grid; gap: 8px; }
.graph-branches {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(165px, 320px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(50px, 18vw, 230px);
}
.graph-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 42px);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.graph-product {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(22px, 6vw, 88px);
  align-items: center;
}
.graph-product .graph-node strong { display: block; color: var(--bright); font-weight: 600; }
.graph-product .graph-node small { display: block; color: var(--muted); font-size: var(--fs-caption); }
.graph-product .graph-node p { min-width: 0; }
.graph-product .graph-node.is-arriving strong { color: var(--phosphor); }
.graph-product .graph-node.is-arriving { border-color: var(--phosphor); }
.graph-example { margin-bottom: 18px; }
.graph-caption { margin-top: 16px; max-width: 68ch; }
@media (max-width: 680px) {
  .graph-flow, .graph-product { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .graph-branches { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .graph-branches .graph-stack, .graph-product .graph-stack { margin-inline-start: 22px; }
}

.directory-list { margin-top: clamp(30px, 6vw, 68px); }
.directory-list .index-row {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) 24px;
  gap: 12px clamp(16px, 5vw, 68px);
  padding-block: clamp(18px, 2.8vw, 36px);
  color: var(--body);
  text-decoration: none;
}
.directory-list .index-row .display { font-size: clamp(30px, 3.5vw, 46px); }
.directory-list .index-row .repo-line { text-align: left; }
.directory-list .caption { display: block; margin-top: 5px; }
.directory-list .index-media { margin-block: 4px 16px; max-width: 320px; }
.directory-list .index-media img, .stack-preview-popover img { width: 100%; height: auto; border: 1px solid var(--hair); }
.stack-preview-popover { padding: 0; aspect-ratio: 1200 / 630; }
.row-icon-mark { display: block; width: 18px; height: 18px; justify-self: end; color: var(--muted); }
:is(.index-row, .linked-row):is(:hover, :focus-visible) .row-icon-mark { color: var(--phosphor); }
@media (max-width: 759px) {
  .directory-list .index-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 12px; }
  .directory-list .index-row .display { grid-column: 1; }
  .directory-list .row-icon-mark { grid-row: 1; grid-column: 2; }
}
@media (max-width: 759px), (prefers-reduced-motion: reduce), (hover: none) {
  .directory-list .index-media { display: block; }
}

.reader {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(26px, 5vw, 82px);
}
.docs-reader {
  grid-template-columns: minmax(150px, .8fr) minmax(0, 2.45fr) minmax(150px, .9fr);
  column-gap: clamp(18px, 3vw, 48px);
  margin-top: clamp(18px, 4vw, 50px);
}
.reader-main { min-width: 0; width: 100%; max-width: 68ch; }
.reader-aside {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 0 5px 5px;
  margin-left: -5px;
}
.reader-aside h2, .reader-aside summary {
  color: var(--bright);
  font-size: var(--fs-small);
  font-weight: 600;
}
.reader-aside summary { display: none; }
.reader-aside h2 { margin-bottom: 10px; }
.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 10px 5px 12px;
  border-left: 2px solid var(--hair);
  color: var(--body);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-decoration: none;
}
.side-list a:is(:hover, :focus-visible, [aria-current]) { color: var(--phosphor); background: var(--panel); }
.side-list a[aria-current] { border-color: var(--phosphor); font-weight: 600; }
.reader-aside .aside-link { margin-top: 8px; }
.reader-main :is(section[id], h2[id], h3[id], li[id]) { scroll-margin-top: 12px; }

.prose { font-size: var(--fs-body); line-height: 1.65; }
.prose > section + section, .prose > div[id] + section { margin-top: clamp(34px, 5vw, 64px); }
.prose > section:not(:first-child), .prose > h2 { border-top: 1px solid var(--hair); padding-top: 21px; }
.prose :is(h1, h2, h3, h4) + :is(p, ul, ol, .tools, .linked-rows, details, .code-block),
.prose :is(p, ul, ol, table, .table-scroll, .code-block, details) + :is(p, ul, ol, .code-block, .table-scroll, details, img),
.prose > h2, .prose .note, .prose .status { margin-top: 15px; }
.prose > h2 { margin-top: 42px; }
.prose :is(ol, ul:not(.linked-rows)):where(:not(.docs-breadcrumb *)) { padding-inline-start: 1.4em; }
.prose ul:not(.linked-rows) { list-style: disc; }
.prose li + li:where(:not(.docs-breadcrumb *)) { margin-top: 7px; }
.prose ol > li::marker { color: var(--phosphor); font-weight: 600; }
.prose ol > li p { margin-top: 2px; }
.prose .note { border: 1px solid var(--hair); background: var(--panel); padding: 14px; }
.prose .status { color: var(--body); }
.prose strong { color: var(--bright); }
.prose .format-grid { display: grid; gap: 18px; margin-block: 22px; }
.prose .format-item { border-left: 1px solid var(--hair); padding-left: 16px; }
.prose .format-item p { margin-top: 3px; }
.prose .tool:not(.index-item) { border-bottom: 1px solid var(--hair); padding: 11px 0; }
.prose .tool:not(.index-item) p { margin-top: 4px; }
.prose summary, .release-archive summary, .project-disclosure summary {
  display: list-item;
  min-height: 44px;
  padding-block: 10px;
  color: var(--bright);
  cursor: pointer;
}
.prose summary::marker, :is(.release-archive, .project-disclosure) summary::marker { color: var(--phosphor); }
.prose details > p { margin: 0 0 13px; }
.prose details, .release-archive, .project-disclosure { border-bottom: 1px solid var(--hair); }
.prose :is(p, li) a { text-decoration-thickness: 1px; }

@media (max-width: 1080px) {
  .docs-reader { grid-template-columns: minmax(145px, 200px) minmax(0, 1fr); }
  .docs-on-page { display: none; }
}
@media (max-width: 700px) {
  .reader { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .reader-aside { position: static; max-height: none; overflow: visible; }
  .reader-aside h2 { display: none; }
  .reader-aside summary { display: list-item; min-height: 44px; padding: 10px; cursor: pointer; }
  .reader-aside details { border: 1px solid var(--hair); background: var(--panel); }
}

.linked-rows { width: 100%; }
.linked-rows .index-item { margin: 0; }
.linked-row {
  display: grid;
  grid-template-columns: minmax(115px, .85fr) minmax(0, 1.5fr) 18px;
  align-items: baseline;
  gap: 5px 16px;
  min-height: 44px;
  padding: 12px 2px;
  color: var(--body);
  text-decoration: none;
}
.linked-row :is(.display, .row-title) { font-size: var(--fs-h3); line-height: 1.2; }
.linked-row .row-icon-mark { align-self: center; }
.linked-row:is(:hover, :focus-visible) :is(.display, .row-title) { color: var(--phosphor); }
.linked-row:is(:hover, :focus-visible) { background: var(--panel); color: var(--body); }
.linked-rows:has(.linked-row:focus-visible) > .index-item:not(:focus-within, :hover) { opacity: .64; }
@media (hover: hover) {
  .linked-rows:has(.linked-row:hover) > .index-item:not(:hover, :focus-within) { opacity: .64; }
}
@media (max-width: 550px) {
  .linked-row { grid-template-columns: minmax(0, 1fr) 18px; }
  .linked-row .row-icon-mark { grid-column: 2; grid-row: 1; }
}

.control-row { display: flex; flex-wrap: wrap; gap: 6px; }
.control, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--hair);
  padding: 6px 12px;
  background: var(--panel);
  color: var(--body);
  font-size: var(--fs-small);
  line-height: 1.35;
  text-decoration: none;
}
.control:is(:hover, :focus-visible), .chip:is(:hover, :focus-visible) { color: var(--phosphor); border-color: var(--muted); }
.chip[aria-pressed="true"], .control-primary { color: var(--void); background: var(--phosphor); border-color: var(--phosphor); }
:is(.chip[aria-pressed="true"], .control-primary):is(:hover, :focus-visible) { color: var(--void); border-color: var(--bright); }
:is(.control-row, .project-install) .brand-icon { width: 16px; height: 16px; margin-inline-end: 7px; fill: currentColor; }

.inventory { margin-top: 20px; }
.inventory label { display: block; font-size: var(--fs-small); color: var(--bright); margin-bottom: 5px; }
.inventory input {
  width: min(100%, 36ch);
  min-height: 44px;
  border: 1px solid var(--hair);
  background: var(--panel);
  color: var(--bright);
  padding: 8px 12px;
  font: inherit;
}
.inventory input::placeholder { color: var(--muted); }
.inventory .control-row { margin-top: 10px; }
.inventory .inventory-count { margin: 10px 0; }
.inventory table, .prose table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  text-align: left;
}
:is(.inventory, .prose) th,
:is(.inventory, .prose) td { padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
:is(.inventory, .prose) th { color: var(--bright); font-weight: 600; }
.inventory tbody th { font-weight: 400; }
.inventory thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  border-block: 1px solid var(--hair);
}
.inventory thead th:first-child { width: 66%; }
.inventory tbody tr:is(:hover, :focus-within) > * { background: var(--panel); }
.inventory table a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.prose .inventory table p { margin: 0; }
.inventory th p { color: var(--body); }
.inventory .resource-meta { color: var(--muted); font-size: var(--fs-caption); }
.inventory .resource-status { color: var(--bright); }
.inventory .category-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.category-summary::after { content: "+"; color: var(--phosphor); }
details[open] > .category-summary::after { content: "−"; }
.category-summary .category-name { flex: 1; }
.category-summary::-webkit-details-marker { display: none; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table { min-width: 420px; }

.prompt-label { color: var(--bright); font-weight: 600; margin-top: 18px; }
.code-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 6px;
  border: 1px solid var(--hair);
  background: var(--panel);
}
.code-block pre {
  margin: 0;
  padding: 12px;
  font-size: var(--fs-small);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-block .icon-button { justify-self: end; }
.mock-page .code-block code { font-size: inherit; }
.copy .copy-success, .copy.is-copied .copy-glyph { display: none; }
.copy.is-copied .copy-success { display: block; }
.mock-page .video-frame {
  height: auto;
  max-width: 100%;
  border: 1px solid var(--hair);
  background: var(--panel);
}
.product-actions { margin-block: 24px 0; }
.product-actions .install { padding-left: 12px; background: var(--panel); }
.product-section { margin-top: clamp(42px, 6vw, 80px); }
.product-section > h2, .product-section > header { margin-bottom: 14px; }
.product-section :is(.linked-rows, .release-list, .steps-and-code, .proof-list, .feature-list) { margin-top: 16px; }
.product-section .section-lede { max-width: 68ch; }
.product-nav { display: flex; flex-wrap: wrap; gap: 0 16px; border-block: 1px solid var(--hair); }
.product-nav a { font-size: var(--fs-small); }
.product-trailer { max-width: 920px; }
.product-trailer > header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.product-trailer video { width: 100%; }
.product-trailer .caption { margin-top: 8px; }
.feature-list, .steps-and-code {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(18px, 4vw, 44px);
}
.feature-list > *, .steps-and-code > * { min-width: 0; }
.feature-list > * { border-top: 1px solid var(--hair); padding-top: 12px; }
.feature-list p, .steps-and-code p { margin-top: 4px; }
.steps-and-code { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.steps-and-code ol { margin: 0; }
.steps-and-code ol li + li { margin-top: 13px; }
.steps-and-code .code-block { margin-bottom: 8px; }
.proof-list { margin-bottom: 12px; }
.proof-row, .release-entry {
  display: grid;
  grid-template-columns: minmax(7ch, .28fr) minmax(0, 1fr);
  gap: 6px 14px;
  padding-block: 14px;
  border-top: 1px solid var(--hair);
}
.proof-row dt, .release-entry strong {
  color: var(--bright);
  font-family: var(--head);
  font-size: var(--fs-h3);
  font-weight: 600;
}
.proof-row dd { margin: 0; }
.proof-row small, .release-entry time { display: block; }
.release-entry .release-copy { min-width: 0; max-width: 68ch; }
.release-entry .release-copy ul { padding-left: 1.2em; list-style: disc; }
.release-entry .release-copy li + li { margin-top: 6px; }
.release-archive summary { border-top: 1px solid var(--hair); }
.related-links { display: flex; flex-wrap: wrap; column-gap: 18px; }
.related-links a { font-size: var(--fs-small); }
.related-projects { margin-bottom: 16px; }
.related-projects li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.related-projects .caption { flex-basis: 100%; margin-bottom: 8px; }
.doc-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 26px; }
.mock-page .docs-reader h1.page-title.wordmark { font-size: clamp(39px, 5.4vw, 68px); margin-block: 5px 12px; }
.docs-reader .byline { margin: 5px 0 12px; }
.guide-contribute { border-top: 1px solid var(--hair); margin-top: clamp(42px, 6vw, 76px); padding-top: 20px; }
.guide-contribute p { max-width: 68ch; margin-top: 6px; }
.stack-guide .stack-hero :is(.eyeline, .byline) a { min-width: 44px; }
.stack-guide .stack-hero {
  display: grid;
  align-items: center;
  gap: 20px clamp(24px, 5vw, 72px);
}
.stack-guide .stack-hero-copy { min-width: 0; }
.directory-list [data-stack-row] {
  display: grid;
  align-items: center;
  gap: 0 clamp(24px, 5vw, 72px);
  padding-bottom: 16px;
}
.directory-list [data-stack-row] .index-row { grid-template-columns: minmax(0, 1fr) 24px; }
.directory-list [data-stack-row] .repo-line { grid-column: 1; }
.directory-list [data-stack-row] .row-icon-mark { grid-column: 2; grid-row: 1; }
.directory-list [data-stack-row]:hover .display { color: var(--phosphor); }
@media (min-width: 760px) {
  .stack-guide .stack-hero,
  .directory-list [data-stack-row] { grid-template-columns: minmax(0, 1fr) minmax(320px, 408px); }
  .directory-list [data-stack-row] { padding-block: 16px; }
}
.stack-guide .stack-contribute {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--hair);
  background: var(--panel);
}
.stack-guide .stack-contribute h2 { font-size: 1.125rem; }
.stack-guide .stack-contribute p { font-size: 1rem; }
.stack-guide .stack-contribute .control { flex-shrink: 0; }
.stack-guide .stack-reader {
  --tab-height: 62px;
  margin-top: 12px;
}
.stack-guide .stack-tabs {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--tab-height);
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--hair);
  background: var(--panel);
}
.stack-guide .stack-tabs button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-block: 3px solid transparent;
  background: transparent;
  color: var(--body);
  font: 600 16px/1.2 "Hubot Sans", system-ui, sans-serif;
  white-space: nowrap;
}
.stack-guide .stack-tabs button:is(:hover, :focus-visible) { color: var(--bright); }
.stack-guide .stack-tabs button:focus-visible { outline-offset: -5px; }
.stack-guide .stack-tabs [aria-selected="true"] {
  border-bottom-color: currentColor;
  color: var(--phosphor);
}
.stack-guide .stack-reader > [data-stack-tab] {
  margin-top: 0;
  border-top: 0;
  padding-top: 20px;
}
.stack-guide .stack-reader:not([data-layout="tabs"]) > [data-stack-tab] + [data-stack-tab] {
  margin-top: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--hair);
}
.stack-guide .stack-reader[data-layout="tabs"] > [data-stack-tab] {
  min-height: calc(100vh - var(--tab-height));
}
.stack-guide .stack-reader[data-layout="tabs"] [data-stack-tab],
.stack-guide .stack-reader[data-layout="tabs"] [data-stack-tab] [id] {
  scroll-margin-top: var(--tab-height);
}
.stack-guide .stack-more { margin-block: 10px; }
.stack-guide .guide-inventory h2 + .caption { margin-top: 6px; }
.stack-guide .guide-workflow summary { position: relative; display: grid; padding: 12px 28px 12px 0; }
.stack-guide .guide-workflow summary::-webkit-details-marker { display: none; }
.stack-guide .guide-workflow summary::after {
  content: "";
  position: absolute;
  inset: 20px 6px auto auto;
  width: 8px;
  height: 8px;
  border: solid var(--phosphor);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.stack-guide .guide-workflow[open] summary::after { transform: rotate(225deg); }
.stack-guide .workflow-title { font: 600 var(--fs-h3)/1.2 var(--head); }
.stack-guide .workflow-summary { color: var(--body); }
.stack-guide .guide-workflow > :not(summary) { max-width: 76ch; }
.stack-guide .guide-workflow .format-item h4 { font-size: var(--fs-body); }
.stack-guide .guide-faq {
  margin-top: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--hair);
  padding-top: 21px;
}
.stack-guide .guide-faq .guide-accordion { margin-top: 0; }
.stack-guide .guide-faq h2 + .guide-accordion { margin-top: 15px; }
.stack-guide .guide-accordion summary { font-weight: 600; }

.project-guide .project-install { margin-top: clamp(22px, 4vw, 44px); }
.project-guide .project-install .install { min-width: 0; }
.project-guide .stack-reader[data-layout] > .product-nav { display: none; }
.project-guide .stack-reader > [data-stack-tab] > :first-child { margin-top: 0; }
.project-guide .product-trailer figure { margin: 0; }
.project-guide .product-trailer figure + figure { margin-top: 24px; }
.project-guide .product-trailer figcaption:first-child { margin: 0 0 8px; }
.project-guide .product-trailer figcaption .text-link { margin-inline-end: 12px; }
.project-guide .steps-and-code .project-disclosure { margin-top: 12px; }
.project-guide .steps-and-code .project-disclosure summary { border-top: 1px solid var(--hair); }
.project-guide .requirements-list > div + div { margin-top: 12px; }
.project-guide #project-more-docs { margin-top: 0; }
@media (max-width: 680px) {
  .feature-list, .steps-and-code { grid-template-columns: minmax(0, 1fr); }
}

/* AUN-2152 mock: category menu beside search (filter-menu.js) */
.filter-bar { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.filter-bar input[type="search"] { flex: 1 1 260px; width: auto; max-width: 44ch; }
.filter-menu { position: static; }
.filter-trigger, .filter-clear {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px;
  border: 1px solid var(--hair); background: var(--panel); color: var(--bright); font: inherit; font-size: var(--fs-small); cursor: pointer;
}
.filter-trigger-label { color: var(--muted); }
.filter-trigger-value { font-weight: 600; }
.filter-trigger svg, .filter-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .18s ease; }
.filter-trigger[aria-expanded="true"] { border-color: #395642; }
.filter-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.filter-trigger:is(:hover, :focus-visible), .filter-clear:is(:hover, :focus-visible) { border-color: var(--muted); color: var(--phosphor); }
.filter-clear { color: var(--phosphor); border-color: #2c543a; padding-inline: 14px 10px; }
.filter-panel {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(560px, 100%);
  padding: 8px; background: rgba(5, 8, 6, .96); border: 1px solid #395642; box-shadow: 0 20px 50px #000c;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: popup-open 200ms ease-out both; transform-origin: top left;
}
.filter-panel .control-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; margin: 0; }
.filter-panel .chip {
  justify-content: space-between; gap: 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid #1d3425;
  padding: 10px 12px; color: var(--body); font-size: var(--fs-small);
}
.filter-panel .chip:is(:hover, :focus-visible) { background: #101b13; color: var(--bright); }
.filter-panel .chip[aria-pressed="true"] { background: #101b13; color: var(--phosphor); box-shadow: inset 2px 0 0 var(--phosphor); }
.chip-count { font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-count { color: inherit; opacity: .75; }
.filter-panel .chip:first-child { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .filter-panel .control-row { grid-template-columns: 1fr; }
  .filter-panel { max-height: min(60vh, 520px); overflow: auto; }
  .filter-bar input[type="search"] { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .filter-panel { animation: none; } .filter-trigger svg { transition: none; } }
.filter-clear-name { display: none; } .filter-clear { justify-content: center; min-width: 44px; padding: 0; }

/* Projects directory: card grid (AUN-2152). 4 across at full shell width, 3/2/1 as it narrows. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(236px, (100% - 36px) / 4)), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 12px;
  border: 1px solid var(--hair);
  background: var(--panel);
  transition: border-color .2s ease;
}
.project-card:has(.project-card__link:is(:hover, :focus-visible)) { border-color: var(--phosphor); }
.project-card__figure {
  border-bottom: 1px solid var(--hair);
  background: radial-gradient(var(--hair) .7px, transparent .8px) 4px 5px / 14px 14px, var(--void);
  padding: 10px 12px 6px;
  font: 400 13px/1.25 "JetBrains Mono", "JetBrains Mono Fallback", monospace;
}
.project-card__still { display: block; width: 100%; height: auto; overflow: visible; }
.project-card__plate { transition: translate .45s cubic-bezier(.2, .78, .28, 1.14); }
.project-card:has(.project-card__link:is(:hover, :focus-visible)) .project-card__plate:nth-of-type(2) { translate: 0 -6px; }
.project-card:has(.project-card__link:is(:hover, :focus-visible)) .project-card__plate:nth-of-type(3) { translate: 0 -12px; }
.project-card:has(.project-card__link:is(:hover, :focus-visible)) .project-card__plate:nth-of-type(4) { translate: 0 -18px; }
.project-card:has(.project-card__link:is(:hover, :focus-visible)) .project-card__plate:nth-of-type(5) { translate: 0 -24px; }
.project-card:has(.project-card__link:is(:hover, :focus-visible)) .project-card__plate:nth-of-type(6) { translate: 0 -30px; }
@media (prefers-reduced-motion: reduce) { .project-card__plate { transition: none; } }
.project-card__name { margin: 12px 16px 0; font-size: 21px; line-height: 1.2; }
.project-card__link { color: var(--bright); text-decoration: none; }
.project-card__link::after { content: ""; position: absolute; inset: 0; }
.project-card__link:focus-visible { outline: none; }
.project-card:has(.project-card__link:focus-visible) { outline: 2px solid var(--phosphor); outline-offset: 2px; }
.project-card__line { margin: 4px 16px 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.project-card .project-card__meta { margin: 8px 16px 0; }
.project-card__foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: auto 0 0;
  padding: 4px 8px 0 10px;
}
.project-card__links { position: relative; z-index: 1; display: flex; align-items: center; flex: none; }
.project-card__docs { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; font-size: 14px; }
.project-card__links .row-icon { display: grid; place-items: center; width: 40px; height: 44px; color: var(--muted); }
.project-card__links .row-icon .brand-icon { width: 18px; height: 18px; fill: currentColor; }
.project-card__links .row-icon:is(:hover, :focus-visible) { color: var(--phosphor); }

.site-portfolio { margin-top: clamp(40px, 6vw, 80px); }
.site-portfolio .project-title-link { font-size: inherit; }
.site-portfolio .repo-line { margin-top: 0; }
