
:root {
  color-scheme: light;
  --accent: #0066ff;
  --bg: #f5f6f8;
  --blue-soft: #eaf2ff;
  --danger: #c2410c;
  --faint: #8a909a;
  --font-mono: "SFMono-Regular", "Geist Mono", ui-monospace, monospace;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --green: #0a7a43;
  --green-soft: #eaf8ef;
  --ink: #111318;
  --line: #e5e7eb;
  --muted: #5f6673;
  --orange: #ff5a1f;
  --orange-soft: #fff1e8;
  --surface: #fff;
  --surface-soft: #f9fafb;
  --warning: #b7791f;
  --max: 1352px;
  --radius: 8px;
  font-family: var(--font-sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar, .site-footer {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar {
  height: 96px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 248, .82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 760; }
.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--ink);
  display: inline-block;
}
.topbar nav, .site-footer nav { display: flex; gap: 20px; color: #2b3038; font-size: 12px; font-weight: 680; }
main { min-height: calc(100vh - 160px); }
.apple-hero, .store-preview, .home-band {
  width: min(var(--max), calc(100vw - 88px));
  margin: 0 auto;
}
.apple-hero {
  padding: 46px 0 30px;
  text-align: center;
}
.apple-hero-copy {
  max-width: 1000px;
  margin: 0 auto;
}
.apple-hero .eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.apple-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(44px, 5.1vw, 64px);
  line-height: 1;
  font-weight: 820;
}
.apple-hero .hero-lede {
  max-width: 940px;
  margin: 0 auto;
  color: #3f4652;
  font-size: 18px;
  line-height: 1.55;
}
.apple-hero .hero-search {
  max-width: 820px;
  min-height: 58px;
  margin: 28px auto 0;
  grid-template-columns: auto 1fr;
  border: 1px solid #d9dde4;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(17, 19, 24, .12);
}
.store-preview {
  padding: 0 0 30px;
}
.featured-carousel {
  position: relative;
}
.preview-window {
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 42px 40px;
  border: 1px solid rgba(17, 19, 24, .08);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(17, 19, 24, .10);
}
.featured-project-window {
  display: none;
}
.featured-project-window.active {
  display: grid;
}
.preview-feature {
  min-height: 296px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  text-align: left;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.preview-feature p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.preview-feature h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.06;
}
.preview-feature strong {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
}
.preview-feature > span {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.project-metrics span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #343b46;
  font-size: 12px;
  font-weight: 720;
}
.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.mini-chip-row a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #3c4450;
  font-size: 11px;
  font-weight: 680;
}
.preview-stack {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 19, 24, .10);
}
.preview-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
}
.preview-row:hover { background: var(--surface-soft); }
.preview-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.preview-icon.blue { background: var(--accent); }
.preview-icon.green { background: #34c759; }
.preview-row strong {
  overflow: hidden;
  color: #1c232d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-row small {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
}
.consumer-value-stack {
  display: grid;
  gap: 10px;
}
.consumer-value-card {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.consumer-value-card:hover {
  border-color: rgba(0, 113, 227, .28);
  background: #f7fbff;
}
.consumer-value-card .asset-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 760;
}
.asset-marker {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}
.asset-marker-q { background: #ff6b2d; }
.asset-marker-p { background: #0071e3; }
.asset-marker-h { background: #34c759; }
.asset-marker-a { background: #8e44ad; }
.asset-marker-b { background: #111827; }
.asset-marker-default { background: var(--muted); }
.consumer-value-card strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.25;
}
.consumer-value-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.consumer-value-card.copy-card {
  border-color: rgba(0, 113, 227, .34);
  background: var(--blue-soft);
}
.preview-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.preview-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd4dc;
  cursor: pointer;
}
.preview-dots button.active { background: var(--ink); }
.home-band {
  padding: 30px 0;
}
.home-band .section-head {
  margin-bottom: 18px;
}
.home-band .section-head h2 {
  font-size: 38px;
}
.store-collection-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.store-collection-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 19, 24, .045);
}
.store-collection-card.orange { background: #fff8f3; }
.store-collection-card.blue { background: #f5f9ff; }
.store-collection-card.green { background: #f3fbf6; }
.store-collection-card .category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 820;
}
.store-collection-card.orange .category-icon { background: #ff6b2a; }
.store-collection-card.blue .category-icon { background: #32a6ff; }
.store-collection-card.green .category-icon { background: #4bd35f; }
.store-collection-card > span:not(.category-icon) {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}
.store-collection-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}
.store-collection-card p {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.5;
}
.collection-mini-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.collection-mini-list em {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 1px solid rgba(17, 19, 24, .08);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: #303844;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}
.collection-mini-list small {
  color: var(--faint);
  font-size: 10px;
}
.collection-tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.collection-tag-grid em {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(17, 19, 24, .08);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: #303844;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
  text-align: center;
}
.capability-strips {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.capability-strips a {
  grid-column: span 3;
  min-height: 49px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #27303c;
  font-size: 15px;
  font-weight: 720;
}
.capability-strips a:nth-last-child(-n + 3) {
  grid-column: span 4;
}
.capability-strips span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
.capability-strips .strip-tone-0 span { background: #ff6b2a; }
.capability-strips .strip-tone-1 span { background: #ff9500; }
.capability-strips .strip-tone-2 span { background: #0071e3; }
.capability-strips .strip-tone-3 span { background: #5856d6; }
.capability-strips .strip-tone-4 span { background: #34c759; }
.capability-strips .strip-tone-5 span { background: #1fc8c2; }
.capability-strips .strip-tone-6 span { background: #1c1f26; }
.capability-strips small {
  color: var(--faint);
  font-size: 13px;
}
.home-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-pack-card {
  min-height: 222px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 19, 24, .045);
}
.home-pack-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}
.home-pack-card strong {
  color: var(--accent);
  font-size: 11px;
}
.home-pack-card h3 a, .pack-card h3 a {
  color: var(--ink);
}
.home-pack-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}
.home-pack-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.5;
}
.home-pack-card small {
  color: #394150;
  font-size: 12px;
  font-weight: 720;
}
.compact-flow .flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-shell, .detail-section {
  width: min(var(--max), calc(100vw - 88px));
  margin: 0 auto;
}
.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  padding: 28px 0 24px;
}
.detail-hero-panel,
.detail-action-panel,
.detail-section,
.detail-glance-grid article,
.detail-step-grid article,
.detail-asset-grid article,
.detail-two-column article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 19, 24, .045);
}
.detail-hero-panel {
  min-height: 230px;
  padding: 28px;
}
.detail-kicker {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.detail-hero-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: .98;
}
.detail-hero-panel p {
  max-width: 860px;
  color: #3c4450;
  font-size: 18px;
  line-height: 1.55;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.detail-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #394150;
  font-size: 12px;
  font-weight: 680;
}
.detail-action-panel {
  display: grid;
  gap: 10px;
  align-self: start;
  padding: 20px;
}
.detail-action-panel .button {
  width: 100%;
}
.detail-action-panel dl {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}
.detail-action-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.detail-action-panel dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-action-panel dd {
  margin: 0;
  font-size: 12px;
  font-weight: 780;
}
.detail-section {
  margin-top: 16px;
  padding: 22px;
}
.detail-section-head {
  max-width: 920px;
}
.detail-section-head.inline {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.detail-section-head h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}
.detail-section-head.inline h2 {
  margin-bottom: 0;
}
.detail-section-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}
.detail-section-head span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}
.detail-glance-grid,
.detail-step-grid,
.detail-asset-grid {
  display: grid;
  gap: 12px;
}
.detail-glance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detail-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-asset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detail-glance-grid article,
.detail-step-grid article,
.detail-asset-grid article {
  padding: 18px;
  box-shadow: none;
}
.detail-glance-grid span,
.detail-step-grid span,
.detail-asset-grid span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}
.detail-glance-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.35;
}
.detail-glance-grid p,
.detail-step-grid p,
.detail-asset-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}
.detail-step-grid h3,
.detail-asset-grid h3 {
  margin: 10px 0 8px;
  font-size: 16px;
}
.detail-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.detail-two-column article {
  padding: 22px;
}
.hero, .band, .list-hero, .project-hero, .submit-hero, .reader-shell, .manual-shell {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 44px;
  align-items: center;
  padding: 58px 0 64px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 6.1vw, 82px); line-height: .98; letter-spacing: 0; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: 0; }
h3 { font-size: 20px; line-height: 1.18; }
.hero-lede, .list-hero p, .submit-hero p {
  max-width: 760px;
  color: #3c4450;
  font-size: 20px;
  line-height: 1.5;
}
.hero-search {
  max-width: 740px;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(17, 19, 24, .12);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(17, 19, 24, .08);
}
.hero-search input, .filters input, .filters select, .submission-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.hero-search input { border: 0; outline: none; font-size: 16px; }
.hero-search button, .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 720;
}
.button.primary, .hero-search button { background: var(--ink); color: #fff; }
.button.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.hero-visual, .visual-reference, .split-visual {
  border: 1px solid rgba(17, 19, 24, .1);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 19, 24, .09);
}
.hero-visual img, .visual-reference img, .split-visual img { display: block; width: 100%; height: auto; }
.hero-visual figcaption { padding: 12px 16px; color: var(--muted); font-size: 13px; }
.band { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.text-link { color: var(--accent); font-weight: 720; }
.collection-grid, .pack-grid, .flow-grid, .steps-grid, .glance-grid, .tag-index-grid {
  display: grid;
  gap: 16px;
}
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tag-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-card, .pack-card, .tag-index-card, .flow-step, .step-card, .glance-card, .project-status-panel, .submission-form, .asset-panel, .reader-shell section, .empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 19, 24, .045);
}
.collection-card, .pack-card, .tag-index-card, .flow-step, .step-card, .glance-card, .empty-state { padding: 22px; }
.collection-card span, .tag-index-card span, .flow-step span, .step-card span, .glance-card span, .pack-card footer {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}
.collection-card p, .tag-index-card p, .pack-card p, .flow-step p, .step-card p, .glance-card p, .muted {
  color: var(--muted);
  line-height: 1.55;
}
.tag-index-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tag-index-card h3 {
  color: var(--ink);
  font-size: 22px;
}
.pack-card { min-height: 260px; display: flex; flex-direction: column; }
.pack-card h3 { margin-top: 14px; overflow-wrap: anywhere; }
.pack-card p { flex: 1; }
.pack-card.hidden { display: none; }
.pack-card-head, .project-kicker, .hero-actions, .tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.pack-card-head { justify-content: space-between; }
.tag-row a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #394150;
  font-size: 12px;
  font-weight: 680;
}
.tag-row a:hover, .mini-chip-row a:hover, .tag-index-card:hover {
  border-color: rgba(0, 102, 255, .38);
  background: #eef5ff;
}
.tag-row.small a { font-size: 11px; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 760;
}
.status.sandbox { color: var(--warning); background: #fff7df; }
.status.review { color: var(--accent); background: var(--blue-soft); }
.status.ready { color: var(--green); background: var(--green-soft); }
.status.blocked { color: var(--danger); background: var(--orange-soft); }
.split-visual, .visual-reference {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
}
.split-visual p, .visual-reference p { color: var(--muted); line-height: 1.65; }
.list-hero { padding: 44px 0 24px; }
.list-hero h1 {
  max-width: 880px;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.04;
}
.list-hero > p {
  font-size: 17px;
}
.list-hero > .surface-note {
  max-width: 720px;
  padding: 12px 14px;
  border-left: 3px solid rgba(0, 102, 255, .35);
  background: rgba(0, 102, 255, .06);
  color: #29313d;
  font-size: 15px;
}
.journey-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.journey-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #394150;
  font-size: 13px;
  font-weight: 740;
}
.journey-nav a.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.journey-nav a:hover {
  border-color: rgba(0, 102, 255, .42);
  background: #eef5ff;
  color: var(--accent);
}
.journey-nav a.primary:hover {
  background: #1f2937;
  color: #fff;
}
.list-hero > .journey-nav:first-child,
.reader-shell > .journey-nav:first-child,
.submit-hero .journey-nav:first-child {
  margin-top: 0;
  margin-bottom: 18px;
}
.reader-shell > .journey-nav {
  margin-bottom: 22px;
}
.manual-aside .journey-nav {
  margin: 0 0 18px;
}
.manual-aside .journey-nav a {
  width: 100%;
  justify-content: center;
}
.search-context {
  max-width: 880px;
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.search-context[hidden] {
  display: none;
}
.search-context span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.search-context strong {
  font-size: 18px;
  line-height: 1.25;
}
.search-context p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 12px;
  margin-top: 26px;
}
.filters input, .filters select, .submission-form input { min-height: 44px; padding: 0 12px; }
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 58px 0 26px;
}
.project-hero-main {
  padding: 38px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f9fafb);
  border: 1px solid var(--line);
}
.project-hero-main h1 { font-size: clamp(44px, 5vw, 72px); overflow-wrap: anywhere; }
.project-hero-main p { color: #344050; font-size: 20px; line-height: 1.45; }
.project-kicker { justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 720; }
.hero-actions { margin-top: 24px; }
.copy-state { min-height: 20px; color: var(--green); font-size: 13px !important; }
.copy-state[data-copy-status="manual"] { color: #8a5a00; }
.manual-copy-box {
  display: block;
  width: min(100%, 760px);
  min-height: 180px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 13px/1.5 var(--mono);
  resize: vertical;
}
.project-status-panel { padding: 24px; align-self: start; }
.project-status-panel dl { display: grid; gap: 12px; margin: 24px 0; }
.project-status-panel div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.project-status-panel dt { color: var(--muted); }
.project-status-panel dd { margin: 0; font-weight: 780; }
.asset-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.asset-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}
.asset-tabs a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #394150;
  font-size: 13px;
  font-weight: 720;
}
.asset-stack { display: grid; gap: 16px; }
.asset-panel { padding: 24px; scroll-margin-top: 96px; }
.asset-panel-head span { color: var(--accent); font-size: 12px; font-weight: 760; }
.markdown-preview {
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.markdown-preview pre, .manual-reader pre {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #111318;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.markdown-preview code, .manual-reader code, .command-list code {
  font-family: var(--font-mono);
}
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-column > article { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.check-list { padding-left: 20px; color: #384150; line-height: 1.7; }
.command-list { display: grid; gap: 10px; }
.command-list code { display: block; padding: 12px; border-radius: 8px; background: var(--surface-soft); overflow-wrap: anywhere; }
.submit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 28px;
  align-items: start;
  padding: 72px 0 42px;
}
.submission-form { display: grid; gap: 12px; padding: 24px; }
.submission-form label { font-weight: 760; }
.submission-form p { min-height: 22px; color: var(--muted); }
.manual-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  padding: 46px 0 72px;
}
.manual-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.manual-aside h1 {
  font-size: clamp(36px, 3.2vw, 48px);
  line-height: .96;
  overflow-wrap: anywhere;
}
.manual-aside p { line-height: 1.55; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--accent); font-weight: 720; }
.manual-toc { display: grid; gap: 8px; margin-top: 18px; }
.manual-toc a { color: #3d4652; font-size: 14px; }
.manual-reader { min-width: 0; }
.manual-reader-hero {
  padding: 34px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.manual-reader > h2, .manual-reader > h3, .manual-reader > p, .manual-reader > ul, .manual-reader > pre {
  padding-left: 28px;
  padding-right: 28px;
}
.manual-reader hr {
  margin: 24px 28px;
  border: 0;
  border-top: 1px solid var(--line);
}
.manual-reader p, .manual-reader li { color: #36404d; line-height: 1.75; }
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.project-detail-rich main {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}
.project-detail-rich .rich-hero,
.project-detail-rich .answer-block,
.project-detail-rich .section-card {
  border: 1px solid rgba(31,35,42,.09);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17,19,24,.045);
}
.project-detail-rich .rich-hero {
  margin-top: 18px;
  padding: 30px 32px 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,252,.82));
}
.project-detail-rich .rich-hero > .journey-nav {
  margin-top: 0;
  margin-bottom: 18px;
}
.project-detail-rich .rich-hero h1 {
  max-width: 980px;
  margin: 8px 0 0;
  font-size: clamp(50px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 820;
  overflow-wrap: anywhere;
}
.project-detail-rich .rich-subtitle {
  max-width: 930px;
  margin: 16px 0 0;
  color: #2f3743;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.34;
  font-weight: 650;
}
.project-detail-rich .project-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.project-detail-rich .project-switcher span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}
.project-detail-rich .project-switcher div,
.project-detail-rich .action-row,
.project-detail-rich .context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-detail-rich .project-switcher a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.project-detail-rich .hero-decision,
.project-detail-rich .glance-grid,
.project-detail-rich .signal-grid,
.project-detail-rich .voice-grid,
.project-detail-rich .guardrail-grid,
.project-detail-rich .file-grid {
  display: grid;
  gap: 12px;
}
.project-detail-rich .hero-decision {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}
.project-detail-rich .hero-decision-card,
.project-detail-rich .glance-card,
.project-detail-rich .signal-card,
.project-detail-rich .voice-card,
.project-detail-rich .manual-card,
.project-detail-rich .context-intro,
.project-detail-rich .file-card,
.project-detail-rich .guardrail-card,
.project-detail-rich .command-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.project-detail-rich .hero-decision-card {
  min-height: 118px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,.055);
}
.project-detail-rich .hero-decision-card span,
.project-detail-rich .glance-card span,
.project-detail-rich .signal-card span,
.project-detail-rich .guardrail-card span,
.project-detail-rich .file-card span,
.project-detail-rich .voice-card span {
  display: block;
  color: #66707e;
  font-size: 12px;
  font-weight: 780;
}
.project-detail-rich .hero-decision-card strong {
  display: block;
  margin-top: 11px;
  font-size: 20px;
  line-height: 1.16;
}
.project-detail-rich .hero-decision-card p,
.project-detail-rich .voice-card p,
.project-detail-rich .guardrail-card p {
  margin: 9px 0 0;
  color: #647080;
  font-size: 13px;
  line-height: 1.5;
}
.project-detail-rich .hero-snapshot {
  background: #111318;
  color: #fff;
}
.project-detail-rich .hero-snapshot span,
.project-detail-rich .hero-snapshot p { color: #c8cdd7; }
.project-detail-rich .action-row { margin-top: 22px; }
.project-detail-rich .answer-block,
.project-detail-rich .rich-section {
  margin-top: 16px;
  padding: 24px;
  scroll-margin-top: 18px;
}
.project-detail-rich .answer-block h2,
.project-detail-rich .detail-section-head h2 {
  font-size: 28px;
}
.project-detail-rich .answer-block li {
  margin: 8px 0;
  color: #3d4652;
  line-height: 1.65;
}
.project-detail-rich .detail-section-head {
  display: grid;
  grid-template-columns: auto max-content minmax(260px, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  align-items: baseline;
  justify-content: start;
  margin-bottom: 18px;
}
.project-detail-rich .detail-section-head p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.project-detail-rich .detail-section-head span {
  max-width: 520px;
  color: #687180;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
  justify-self: end;
}
.project-detail-rich .glance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-detail-rich .glance-card {
  min-height: 148px;
  padding: 24px;
}
.project-detail-rich .glance-card strong {
  display: block;
  margin-top: 18px;
  font-size: 25px;
  line-height: 1.18;
}
.project-detail-rich .glance-card p {
  margin: 12px 0 0;
  color: #687180;
  line-height: 1.5;
}
.project-detail-rich .timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.project-detail-rich .start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.project-detail-rich .timeline-step {
  min-height: 210px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8f9fb);
}
.project-detail-rich .start-step {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.project-detail-rich .timeline-step b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(10,122,67,.1);
  color: var(--green);
  font-size: 13px;
}
.project-detail-rich .start-step b {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(10,122,67,.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}
.project-detail-rich .timeline-step h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}
.project-detail-rich .start-step h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}
.project-detail-rich .timeline-step p {
  margin: 0;
  color: #5f6673;
  font-size: 13px;
  line-height: 1.55;
}
.project-detail-rich .start-step p {
  margin: 0;
  color: #5f6673;
  font-size: 13px;
  line-height: 1.5;
}
.project-detail-rich .timeline-step code,
.project-detail-rich .start-step code,
.project-detail-rich .command-row code {
  display: block;
  margin-top: 16px;
  color: #505967;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.project-detail-rich .source-note {
  margin: 14px 0 0;
  color: #858d99;
  font-size: 12px;
  line-height: 1.55;
}
.project-detail-rich .signal-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.project-detail-rich .signal-card {
  padding: 20px;
}
.project-detail-rich .signal-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.project-detail-rich .voice-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 12px;
}
.project-detail-rich .voice-card,
.project-detail-rich .guardrail-card,
.project-detail-rich .file-card {
  padding: 20px;
}
.project-detail-rich .community-voice-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
  align-items: start;
}
.project-detail-rich .voice-card h3,
.project-detail-rich .guardrail-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.project-detail-rich .community-source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-detail-rich .community-source-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.project-detail-rich .community-source-list li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(10,122,67,.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}
.project-detail-rich .community-source-list a {
  color: #111827;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.project-detail-rich .community-source-list p {
  margin: 5px 0 0;
  color: #7a8391;
  font-size: 12px;
}
.project-detail-rich .command-panel {
  padding: 8px 18px 18px;
}
.project-detail-rich .command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.project-detail-rich .command-label {
  color: #687180;
  font-size: 12px;
  font-weight: 780;
}
.project-detail-rich .copy-command {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.project-detail-rich .manual-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  gap: 18px;
  padding: 24px;
}
.project-detail-rich .manual-card h3,
.project-detail-rich .context-intro h3 {
  margin-bottom: 10px;
  font-size: 22px;
}
.project-detail-rich .manual-card p,
.project-detail-rich .context-intro p {
  color: #5f6673;
  line-height: 1.6;
}
.project-detail-rich .manual-card ol,
.project-detail-rich .risk-list {
  margin: 0;
  color: #44505e;
  line-height: 1.8;
}
.project-detail-rich .context-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 14px;
}
.project-detail-rich .context-intro {
  padding: 24px;
}
.project-detail-rich .file-grid,
.project-detail-rich .guardrail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-detail-rich .file-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}
.project-detail-rich .risk-list {
  margin-top: 18px;
}
.manual-rich-page .manual-shell {
  width: min(var(--max), calc(100vw - 48px));
  grid-template-columns: 360px minmax(0, 1fr);
}
.manual-rich-page .manual-aside {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17,19,24,.045);
}
.manual-rich-page .manual-toc a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.manual-rich-page .manual-reader-hero,
.manual-rich-page .manual-card-section {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17,19,24,.045);
}
.manual-rich-page .manual-card-section {
  margin-top: 16px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: 18px;
}
.manual-rich-page .manual-card-section h2 {
  margin-bottom: 16px;
  font-size: 30px;
}
.manual-rich-page .manual-section-body > h1,
.manual-rich-page .manual-section-body > h2,
.manual-rich-page .manual-section-body > h3,
.manual-rich-page .manual-section-body > p,
.manual-rich-page .manual-section-body > ul,
.manual-rich-page .manual-section-body > pre {
  padding-left: 0;
  padding-right: 0;
}
.manual-design-page {
  background: #fff;
  color: #151517;
}
.manual-design-page .site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 34px;
  background: rgba(251,251,253,.82);
  border-bottom: 1px solid rgba(210,210,218,.6);
  backdrop-filter: saturate(180%) blur(18px);
}
.manual-design-page .site-nav .brand,
.manual-design-page .site-nav .nav-links,
.manual-design-page .site-nav .signin {
  display: flex;
  align-items: center;
}
.manual-design-page .site-nav .brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.manual-design-page .site-nav .brand-mark {
  width: 19px;
  height: 19px;
  display: inline-block;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 42%, #0b857d 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, #0b857d 42% 58%, transparent 58%);
  transform: rotate(45deg);
}
.manual-design-page .site-nav .nav-links {
  gap: 40px;
}
.manual-design-page .site-nav .nav-links a,
.manual-design-page .site-nav .signin {
  color: #2f3035;
  font-size: 14px;
}
.manual-design-page .site-nav .signin {
  justify-self: end;
}
.manual-design-page .manual-shell {
  max-width: 1280px;
  width: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 56px;
  padding: 54px 32px 96px;
}
.manual-design-page .manual-aside {
  position: sticky;
  top: 86px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.manual-design-page .kicker {
  margin: 0 0 14px;
  color: #05645f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.manual-design-page .manual-aside h1 {
  margin: 0;
  color: #151517;
  font-size: 38px;
  line-height: 1.04;
  font-weight: 820;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.manual-design-page .manual-aside > p:not(.kicker) {
  margin: 18px 0 24px;
  color: #6f6f78;
  font-size: 15px;
  line-height: 1.6;
}
.manual-design-page .manual-nav {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid #e7e7ec;
}
.manual-design-page .manual-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4d5058;
  font-size: 14px;
  font-weight: 700;
}
.manual-design-page .manual-nav a:hover {
  background: #f3f4f6;
  color: #05645f;
}
.manual-design-page .manual-reader {
  min-width: 0;
}
.manual-design-page .manual-reader-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 54px;
  border: 1px solid #e7e7ec;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(11,133,125,.12), transparent 30%),
    linear-gradient(180deg, #f7f7fa, #fff);
  box-shadow: none;
}
.manual-design-page .manual-reader-hero h2 {
  max-width: 760px;
  margin: 0;
  color: #151517;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .96;
  font-weight: 830;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.manual-design-page .manual-reader-hero p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: #555760;
  font-size: 20px;
  line-height: 1.5;
}
.manual-design-page .manual-content-section {
  scroll-margin-top: 86px;
  padding: 74px 0 0;
}
.manual-design-page .manual-content-section h3 {
  margin: 0;
  color: #151517;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 820;
  letter-spacing: 0;
}
.manual-design-page .manual-content-section > p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #4d5058;
  font-size: 18px;
  line-height: 1.72;
}
.manual-design-page .manual-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.manual-design-page .manual-mini-card {
  min-height: 132px;
  padding: 22px;
  border: 1px solid #e7e7ec;
  border-radius: 8px;
  background: #fbfbfd;
}
.manual-design-page .manual-mini-card span {
  display: block;
  color: #05645f;
  font-size: 12px;
  font-weight: 800;
}
.manual-design-page .manual-mini-card strong {
  display: block;
  margin-top: 10px;
  color: #151517;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.manual-design-page .manual-mini-card p {
  margin: 10px 0 0;
  color: #6f6f78;
  font-size: 14px;
  line-height: 1.5;
}
.manual-design-page .manual-markdown {
  max-width: 900px;
  margin-top: 36px;
  color: #272a31;
  font-size: 16px;
  line-height: 1.74;
}
.manual-design-page .manual-markdown h1,
.manual-design-page .manual-markdown h2,
.manual-design-page .manual-markdown h3,
.manual-design-page .manual-markdown h4 {
  margin: 36px 0 14px;
  color: #151517;
  line-height: 1.16;
  letter-spacing: 0;
}
.manual-design-page .manual-markdown h1 { font-size: 34px; }
.manual-design-page .manual-markdown h2 { font-size: 28px; }
.manual-design-page .manual-markdown h3 { font-size: 22px; }
.manual-design-page .manual-markdown p { margin: 12px 0; }
.manual-design-page .manual-markdown ul,
.manual-design-page .manual-markdown ol {
  margin: 14px 0;
  padding-left: 24px;
}
.manual-design-page .manual-markdown li { margin: 6px 0; }
.manual-design-page .manual-markdown pre {
  margin: 20px 0;
  padding: 18px;
  overflow: auto;
  border-radius: 8px;
  background: #111318;
  color: #e7e9ef;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.manual-design-page .manual-markdown code {
  font-family: var(--font-mono);
  font-size: .92em;
}
.manual-design-page .manual-markdown p code,
.manual-design-page .manual-markdown li code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #22242b;
}
.manual-design-page .manual-markdown table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.manual-design-page .manual-markdown th,
.manual-design-page .manual-markdown td {
  padding: 10px 12px;
  border: 1px solid #e7e7ec;
  text-align: left;
  vertical-align: top;
}
.manual-design-page .manual-markdown th {
  background: #f3f4f6;
}
.manual-design-page .manual-markdown blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid #0b857d;
  background: #f7fbfa;
  color: #3e444b;
}
.manual-design-page .manual-details-summary {
  color: #6f6f78;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.manual-design-page .source-link {
  color: #05645f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.manual-design-page .manual-mermaid {
  margin: 24px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #e7e7ec;
  border-radius: 8px;
  background: #fbfbfd;
}
.manual-design-page .manual-mermaid-source {
  margin-top: 10px;
  color: #6f6f78;
  font-size: 13px;
}
.manual-design-page .manual-source-line {
  margin-top: 18px;
  color: #858690;
  font-size: 13px;
}
.manual-design-page .source-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18,20,26,.28);
  backdrop-filter: blur(2px);
}
.manual-design-page .source-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(720px, 92vw);
  height: 100vh;
  padding: 30px;
  overflow: auto;
  background: #fff;
  box-shadow: -28px 0 80px rgba(20,24,32,.18);
  transform: translateX(104%);
  transition: transform .22s ease;
}
.manual-design-page .source-drawer.open {
  transform: translateX(0);
}
.manual-design-page .source-drawer-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7e7ec;
}
.manual-design-page .source-drawer-header h2 {
  margin: 0;
  color: #151517;
  font-size: 28px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.manual-design-page .source-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4d5058;
  font-size: 22px;
  line-height: 1;
}
.manual-design-page .source-why {
  margin: 22px 0 14px;
  color: #3d4048;
  font-size: 16px;
  line-height: 1.6;
}
.manual-design-page .source-meta,
.manual-design-page .source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.manual-design-page .source-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #555963;
  font-size: 12px;
  font-weight: 700;
}
.manual-design-page .source-actions {
  margin: 18px 0;
}
.manual-design-page .source-preview {
  min-height: 360px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 8px;
  background: #111318;
  color: #e8ebf2;
}
.manual-design-page .source-preview code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}
.reader-shell { max-width: 900px; padding: 72px 0; }
.reader-shell section { margin-top: 18px; padding: 24px; }
.reader-shell a { color: var(--accent); font-weight: 760; text-decoration: none; }
.sitemap-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}
.sitemap-grid section {
  align-content: start;
  display: grid;
  gap: 10px;
}
.sitemap-grid a {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-size: 14px;
  padding: 10px 12px;
  text-decoration: none;
}
.sitemap-grid a:hover { border-color: rgba(0, 102, 255, .35); color: var(--accent); }
.site-footer {
  min-height: 84px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 980px) {
  .topbar, .site-footer { width: min(var(--max), calc(100vw - 28px)); flex-direction: column; height: auto; padding: 16px 0; align-items: flex-start; }
  .topbar nav, .site-footer nav { flex-wrap: wrap; gap: 14px; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .apple-hero, .store-preview, .home-band {
    width: min(var(--max), calc(100vw - 28px));
  }
  .apple-hero {
    padding-top: 34px;
    text-align: left;
  }
  .apple-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }
  .apple-hero .hero-lede {
    font-size: 17px;
  }
  .apple-hero .hero-search {
    margin-left: 0;
    margin-right: 0;
  }
  .preview-window,
  .store-collection-row,
  .home-pack-grid,
  .capability-strips,
  .compact-flow .flow-grid {
    grid-template-columns: 1fr;
  }
  .capability-strips a {
    grid-column: auto;
  }
  .preview-window {
    gap: 18px;
    padding: 18px;
  }
  .preview-feature {
    align-items: flex-start;
    text-align: left;
  }
  .detail-shell,
  .detail-section {
    width: min(var(--max), calc(100vw - 28px));
  }
  .detail-shell,
  .detail-glance-grid,
  .detail-step-grid,
  .detail-asset-grid,
  .detail-two-column,
  .project-detail-rich .hero-decision,
  .project-detail-rich .glance-grid,
  .project-detail-rich .timeline,
  .project-detail-rich .start-grid,
  .project-detail-rich .signal-grid,
  .project-detail-rich .voice-grid,
  .project-detail-rich .manual-card,
  .project-detail-rich .context-layout,
  .project-detail-rich .file-grid,
  .project-detail-rich .guardrail-grid,
  .manual-rich-page .manual-shell {
    grid-template-columns: 1fr;
  }
  .detail-section-head.inline {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-detail-rich main {
    width: min(var(--max), calc(100vw - 28px));
  }
  .project-detail-rich .rich-hero,
  .project-detail-rich .answer-block,
  .project-detail-rich .rich-section,
  .manual-rich-page .manual-card-section {
    padding: 20px;
  }
  .project-detail-rich .project-switcher,
  .project-detail-rich .detail-section-head {
    align-items: flex-start;
  }
  .project-detail-rich .detail-section-head {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
  }
  .project-detail-rich .detail-section-head span {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .project-detail-rich .community-voice-card {
    grid-template-columns: 1fr;
  }
  .hero, .project-hero, .submit-hero, .manual-shell, .split-visual, .visual-reference, .two-column, .asset-layout {
    grid-template-columns: 1fr;
  }
  .hero, .band, .list-hero, .project-hero, .submit-hero, .reader-shell, .manual-shell {
    width: min(var(--max), calc(100vw - 28px));
  }
  .collection-grid, .pack-grid, .tag-index-grid, .flow-grid, .steps-grid, .glance-grid, .collection-grid.dense {
    grid-template-columns: 1fr;
  }
  .filters { grid-template-columns: 1fr; }
  .project-hero-main { padding: 24px; }
  .asset-tabs, .manual-aside { position: static; }
  .manual-design-page .site-nav {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }
  .manual-design-page .site-nav .nav-links {
    display: none;
  }
  .manual-design-page .manual-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 36px 22px 72px;
  }
  .manual-design-page .manual-aside {
    position: static;
    max-height: none;
  }
  .manual-design-page .manual-reader-hero {
    min-height: 300px;
    padding: 34px;
  }
  .manual-design-page .manual-section-grid {
    grid-template-columns: 1fr;
  }
  .manual-reader > h2, .manual-reader > h3, .manual-reader > p, .manual-reader > ul, .manual-reader > pre {
    padding-left: 0;
    padding-right: 0;
  }
}
