/* content.css — window sizes, content-specific components */

/* ── Window sizes ── */
.window.about   { width: 620px; height: 580px; }
.window.work    { width: 640px; height: 600px; }

.window.contact  { width: 460px; height: 440px; }
.window.building { width: 640px; height: 620px; }
.window.theme   { width: 410px; height: 330px; }
.window.ver     { width: 350px; height: 190px; }
.window.refs    { width: 560px; height: 640px; }
.window.ds      { width: 580px; height: 580px; }
.window.changelog { width: 560px; height: 600px; }
.window.help    { width: 390px; height: 280px; }

/* ── Big hero line ── */
.big-line {
  font-size: 19px;
  line-height: 1.28;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.big-line .accent { color: var(--accent); }
.big-line .muted  { color: var(--text-secondary); font-weight: 400; }

/* ── Stat grid ── */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.stat {
  background: var(--bg-card);
  padding: 13px 12px;
}

.stat-value {
  font-size: 21px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Tool-generation chart ── */
.chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  margin-bottom: 7px;
}

.chart-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.75;
  transform-origin: bottom;
  animation: barRise 0.45s ease forwards;
}

@keyframes barRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.chart-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* ── Theme picker ── */
.theme-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-row:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.theme-row.active {
  border-color: var(--border);
}

.theme-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.theme-swatch.cyan  { background: #4fbcb4; }
.theme-swatch.ember { background: #e8584b; }
.theme-swatch.terra { background: #c8845a; }
.theme-swatch.mono  { background: linear-gradient(135deg, #d8d8d8 50%, #1a1a1a 50%); }

.t-name {
  font-size: 12px;
  color: var(--text);
  min-width: 56px;
  transition: color var(--transition);
}

.theme-row.active .t-name { color: var(--accent); }

.t-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.theme-row.active::after {
  content: '●';
  color: var(--accent);
  margin-left: auto;
  font-size: 9px;
}

/* ── Recommendation quote blocks ── */
.quote-block {
  border-left: 2px solid var(--accent-dim);
  padding: 2px 0 2px 14px;
  margin-bottom: 20px;
}

.quote-block:last-child { margin-bottom: 0; }

.quote-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 7px;
}

.quote-attr {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.quote-attr strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Help list ── */
.help-row {
  display: flex;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 13px;
}

.help-cmd {
  color: var(--accent);
  min-width: 90px;
  flex-shrink: 0;
}

.help-desc { color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════
   Page-specific components — moved here from inline <style> blocks.
   All scoped under .ep (editorial page) root.
   ════════════════════════════════════════════════════════════ */

/* ── About: interest grid ── */
.ep .interest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2.5rem}
.ep .interest-cell{background:var(--bg-window-solid);padding:1.25rem 1.125rem;display:flex;flex-direction:column;gap:.5rem}
.ep .interest-cell.featured{background:var(--bg-card)}
.ep .interest-cell svg{width:20px;height:20px;color:var(--text)}
.ep .interest-cell.featured svg{color:var(--accent)}
.ep .interest-name{font-size:15px;font-weight:600;color:var(--text)}
.ep .interest-note{font-size:14px;font-weight:400;line-height:1.6;color:var(--text)}
.ep .interest-note em{font-style:italic}

/* ── About: curiosity block ── */
.ep .curiosity-block{border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2.5rem}
.ep .curiosity-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.875rem 1.125rem;border-bottom:.5px solid var(--border);background:var(--bg-card)}
.ep .curiosity-header-left{display:flex;align-items:center;gap:.75rem}
.ep .curiosity-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}
.ep .curiosity-title{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-secondary)}
.ep .curiosity-subtitle{font-size:12px;color:var(--text-secondary);text-align:right}
.ep .curiosity-current{padding:1.25rem 1.125rem;border-bottom:.5px solid var(--border)}
.ep .curiosity-current-label{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-secondary);margin-bottom:.5rem}
.ep .curiosity-current-topic{font-family:var(--font-body);font-size:18px;font-weight:600;color:var(--text);margin-bottom:.375rem}
.ep .curiosity-current-note{font-size:14px;font-weight:400;color:var(--text);line-height:1.6}
.ep .curiosity-log{display:flex;flex-direction:column}
.ep .log-entry{display:flex;align-items:center;gap:1rem;padding:.75rem 1.125rem;border-bottom:.5px solid var(--border);cursor:pointer;transition:background .1s}
.ep .log-entry:last-child{border-bottom:none}
.ep .log-entry:hover{background:var(--bg-card)}
.ep .log-date{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);width:70px;flex-shrink:0}
.ep .log-topic{font-size:14px;color:var(--text);flex:1}
.ep .log-tag{font-size:11px;font-family:var(--font-mono);color:var(--text-muted);padding:.2rem .5rem;border:.5px solid var(--border);border-radius:3px;flex-shrink:0}
.ep .log-tag.has-post{color:var(--accent);border-color:var(--border-strong)}
/* When a log-entry is a clickable <button>, normalize button defaults. */
.ep button.log-entry{background:transparent;border:none;border-bottom:.5px solid var(--border);color:inherit;font:inherit;width:100%;text-align:left}
.ep button.log-entry:last-child{border-bottom:none}
.ep button.log-entry.log-clickable:hover .log-tag.has-post{background:color-mix(in srgb, var(--accent) 14%, transparent)}

/* ── Work: timeline ── */
.ep .timeline{display:flex;flex-direction:column;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2rem}
.ep .timeline details{background:var(--bg-window-solid)}
.ep .timeline details summary{display:grid;grid-template-columns:90px 1fr auto;gap:1rem;align-items:center;padding:.875rem 1.125rem;cursor:pointer;list-style:none;transition:background .12s;user-select:none}
.ep .timeline details summary::-webkit-details-marker{display:none}
.ep .timeline details summary:hover{background:var(--bg-card)}
.ep .timeline details[open] summary{background:var(--bg-card)}
.ep .timeline details.current summary{background:var(--bg-card)}
.ep .tl-years{font-family:var(--font-mono);font-size:10px;color:var(--text-secondary);line-height:1.6}
.ep .tl-company{font-size:15px;font-weight:600;color:var(--text);margin-bottom:.15rem}
.ep .tl-role{font-size:13px;color:var(--text)}
.ep .tl-toggle{font-family:var(--font-mono);font-size:14px;color:var(--text-secondary);transition:transform .2s;display:inline-block;line-height:1}
.ep .timeline details[open] .tl-toggle{transform:rotate(180deg)}
.ep .tl-expand{padding:.75rem 1.125rem 1.125rem;border-top:.5px solid var(--border)}
.ep .tl-expand ul{list-style:none;padding:0}
.ep .tl-expand ul li{font-size:14px;font-weight:400;line-height:1.7;color:var(--text);padding:.4rem 0 .4rem 1.25rem;border-bottom:.5px solid var(--border);position:relative}
.ep .tl-expand ul li:last-child{border-bottom:none}
.ep .tl-expand ul li::before{content:'—';position:absolute;left:0;color:var(--text-muted);font-size:10px;top:.55rem}

/* ── Work: education ── */
.ep .edu{display:flex;flex-direction:column;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2rem}
.ep .edu-row{display:grid;grid-template-columns:90px 1fr;gap:1rem;padding:.875rem 1.125rem;background:var(--bg-window-solid)}
.ep .edu-year{font-family:var(--font-mono);font-size:10px;color:var(--text-secondary);padding-top:.15rem}
.ep .edu-school{font-size:15px;font-weight:600;color:var(--text);margin-bottom:.15rem}
.ep .edu-degree{font-size:13px;color:var(--text);line-height:1.5}

/* ── Work: recommendations ── */
.ep .recs{display:flex;flex-direction:column;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2rem}
.ep .rec{background:var(--bg-window-solid);padding:1.25rem 1.125rem}
.ep .rec-quote{font-family:var(--font-body);font-size:16px;font-style:italic;font-weight:400;line-height:1.6;color:var(--text);margin-bottom:.75rem}
.ep .rec-name{font-size:14px;font-weight:600;color:var(--text)}
.ep .rec-title{font-size:12px;color:var(--text-secondary);margin-top:.2rem;line-height:1.5}

/* ── Building: projects ── */
.ep .projects{display:flex;flex-direction:column;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2.5rem}
.ep .project{background:var(--bg-window-solid);padding:1.25rem 1.125rem}
.ep .project.linkable{cursor:pointer;transition:background .12s}
.ep .project.linkable:hover{background:var(--bg-card)}
.ep .project-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.625rem}
.ep .project-title{font-family:var(--font-body);font-size:17px;font-weight:600;color:var(--text);line-height:1.3}
.ep .project-status{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding:.25rem .5rem;border-radius:3px;flex-shrink:0;margin-top:.2rem}
.ep .status-active{background:var(--bg-card);color:var(--text);border:.5px solid var(--border-strong)}
.ep .status-exploring{background:transparent;color:var(--text-secondary);border:.5px solid var(--border)}
.ep .status-shipped{background:transparent;color:var(--text-secondary);border:.5px solid var(--border)}
.ep .project-question{font-family:var(--font-body);font-size:14px;font-style:italic;color:var(--text);margin-bottom:.625rem;line-height:1.5}
.ep .project-body{font-size:14px;font-weight:400;line-height:1.7;color:var(--text)}
.ep .project-footer{margin-top:.875rem;display:flex;align-items:center;justify-content:space-between}
.ep .project-tags{display:flex;gap:.375rem;flex-wrap:wrap}
.ep .tag{font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-secondary);padding:.2rem .5rem;border:.5px solid var(--border);border-radius:3px}
.ep .project-link{font-family:var(--font-mono);font-size:10px;color:var(--text-secondary)}

/* ── Building: ideas ── */
.ep .ideas{display:flex;flex-direction:column;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2.5rem}
.ep .idea-row{display:flex;align-items:baseline;gap:1rem;padding:.875rem 1.125rem;background:var(--bg-window-solid)}
.ep .idea-name{font-size:14px;font-weight:600;color:var(--text);width:140px;flex-shrink:0}
.ep .idea-note{font-size:14px;font-weight:400;color:var(--text);line-height:1.6;flex:1}

/* ── Contact ── */
.ep .contact-block{display:flex;flex-direction:column;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2rem}
.ep .contact-row{display:grid;grid-template-columns:100px 1fr;gap:1rem;align-items:center;padding:1.125rem 1.125rem;background:var(--bg-window-solid);transition:background .12s}
.ep .contact-row:hover{background:var(--bg-card)}
.ep .contact-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-secondary)}
.ep .contact-value{font-size:14px;color:var(--text);font-weight:400}

/* ── Refs: network graph widget ── */
.ep .graph-wrap{position:relative;width:100%;margin-bottom:2rem;border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:#0a0a0a}
.ep .graph-top{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:.5px solid #1a1a1a;flex-wrap:wrap;gap:.5rem}
.ep .graph-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#555}
.ep .legend{display:flex;gap:.875rem;flex-wrap:wrap}
.ep .legend-item{display:flex;align-items:center;gap:.35rem;font-family:var(--font-mono);font-size:11px;color:#555}
.ep .legend-dot{width:6px;height:6px;border-radius:50%}
.ep canvas{display:block;width:100%;cursor:grab}
.ep canvas:active{cursor:grabbing}
.ep .tooltip-g{position:absolute;background:#1a1a1a;border:.5px solid #333;border-radius:4px;padding:.35rem .625rem;font-size:10px;font-family:var(--font-mono);color:#ccc;pointer-events:none;opacity:0;transition:opacity .12s;white-space:nowrap}

/* ── Refs: reference quotes ── */
.ep .refs{display:flex;flex-direction:column;gap:2rem;margin-bottom:1.5rem}
.ep .ref{padding-bottom:2rem;border-bottom:.5px solid var(--border)}
.ep .ref:last-child{border-bottom:none;padding-bottom:0}
.ep .ref-quote{font-family:var(--font-body);font-size:clamp(16px,2.2vw,18px);font-weight:400;font-style:italic;line-height:1.6;color:var(--text);margin-bottom:1rem}
.ep .ref-name{font-size:14px;font-weight:600;color:var(--text)}
.ep .ref-meta{font-size:12px;color:var(--text-secondary);margin-top:.2rem;line-height:1.5}
.ep .kw{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;font-style:italic}
.ep .kw-craft{text-decoration-color:#4A90D9}
.ep .kw-lead{text-decoration-color:#7B68EE}
.ep .kw-collab{text-decoration-color:#50C878}
.ep .kw-char{text-decoration-color:#F4A460}
.ep .kw-impact{text-decoration-color:#E87070}

/* ── Design system page ── */
.ep .ds-tokens{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:2.5rem}
.ep .ds-token{background:var(--bg-window-solid);padding:.875rem 1rem}
.ep .ds-swatch{height:28px;border-radius:3px;margin-bottom:.625rem;border:.5px solid var(--border)}
.ep .ds-token-name{font-family:var(--font-mono);font-size:10px;color:var(--text-secondary);letter-spacing:.06em;margin-bottom:.25rem}
.ep .ds-token-desc{font-size:13px;color:var(--text)}
.ep .ds-type-list{margin-bottom:2.5rem}
.ep .ds-type-row{display:flex;align-items:baseline;gap:1.25rem;padding:.875rem 0;border-bottom:.5px solid var(--border)}
.ep .ds-type-row:first-child{padding-top:0}
.ep .ds-type-row:last-child{border-bottom:none;padding-bottom:0}
.ep .ds-type-meta{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);letter-spacing:.06em;width:110px;flex-shrink:0;padding-top:.2rem;line-height:1.6}
.ep .ds-component{border:.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:1.5rem}
.ep .ds-component-label{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);padding:.5rem .875rem;background:var(--bg-card);border-bottom:.5px solid var(--border)}
.ep .ds-component-preview{padding:1.25rem 1.125rem}
.ep .ds-component-preview .section-label{margin-bottom:0}

/* ── Page-specific mobile overrides ── */
/* ── Changelog ── */
.ep .changelog-release{margin-bottom:2.5rem}
.ep .changelog-release:last-of-type{margin-bottom:0}
.ep .changelog-version{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);padding-bottom:.5rem;border-bottom:.5px solid var(--border);margin-bottom:1.25rem}
.ep .changelog-group{margin-bottom:1.25rem}
.ep .changelog-group:last-child{margin-bottom:0}
.ep .changelog-group-label{font-size:13px;font-weight:600;color:var(--text);margin-bottom:.5rem}
.ep .changelog-list{list-style:none}
.ep .changelog-list li{font-size:14px;font-weight:400;line-height:1.6;color:var(--text);padding-left:1rem;margin-bottom:.4rem;position:relative}
.ep .changelog-list li::before{content:'\2014';position:absolute;left:0;color:var(--accent-dim)}
.ep .changelog-list code{font-family:var(--font-mono);font-size:12px;color:var(--accent)}

@media (max-width: 768px) {
  .ep .interest-grid{grid-template-columns:1fr}
  .ep .ds-tokens{grid-template-columns:1fr 1fr}
  .ep .ds-type-row{flex-direction:column;gap:.5rem}
  .ep .ds-type-meta{width:auto;padding-top:0}
  .ep .idea-row{flex-direction:column;gap:.25rem}
  .ep .idea-name{width:auto}
}


/* ── Guide window ── */
.window.guide { width: 920px; height: 680px; }
.window.guide .window-body { padding: 0; overflow: hidden; display: flex; }

/* ── Guide layout: sidebar + main ── */
.guide-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar nav ── */
.guide-nav {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px 0;
  background: var(--bg-card);
}
.guide-nav-group {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  padding: 16px 16px 5px;
}
.guide-nav-group:first-child { padding-top: 4px; }
.guide-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 8px 16px 8px 13px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
  line-height: 1.3;
}
.guide-nav-item:hover { color: var(--text); background: var(--bg-hover); }
.guide-nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ── Main content area ── */
.guide-main {
  flex: 1;
  overflow-y: auto;
  padding: 36px 44px 56px;
  min-width: 0;
}
.guide-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Category chip — appears above section titles ── */
.guide-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.guide-chip-feature    { background: color-mix(in srgb,#5b9ef0 14%,transparent); color:#5b9ef0; }
.guide-chip-philosophy { background: color-mix(in srgb,#a87de8 14%,transparent); color:#a87de8; }
.guide-chip-process    { background: color-mix(in srgb,#4db86a 14%,transparent); color:#4db86a; }
.guide-chip-overview   { background: color-mix(in srgb,var(--accent) 14%,transparent); color:var(--accent); }

/* ── Section typography ── */
.guide-section-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.guide-section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 520px;
}
.guide-subhead {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 14px;
  line-height: 1.3;
}
.guide-body {
  font-size: 15px;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 16px;
}
.guide-body:last-child { margin-bottom: 0; }
.guide-body strong { color: var(--text); font-weight: 700; }
.guide-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ── Design Thinking callout ── */
.guide-callout {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.guide-callout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: .85;
}
.guide-callout p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  margin: 0;
  font-style: italic;
}

/* ── Code blocks ── */
.guide-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.guide-code .gk  { color: #c792ea; }   /* keyword / property */
.guide-code .gs  { color: #c3e88d; }   /* string */
.guide-code .gn  { color: #82aaff; }   /* selector / name */
.guide-code .gv  { color: #f78c6c; }   /* value */
.guide-code .gc  { color: var(--text-muted); }  /* comment */
.guide-code .gp  { color: var(--text-secondary); }  /* punctuation */

/* ── Demo containers ── */
.guide-demo {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  margin: 28px 0;
  overflow: hidden;
}
.guide-demo-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.guide-demo-replay {
  display: block;
  margin: 0 auto 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 5px 16px;
  cursor: pointer;
  transition: color .14s, border-color .14s;
}
.guide-demo-replay:hover { color: var(--accent); border-color: var(--accent); }

/* ── Terminal mockup ── */
.guide-term-mockup {
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  background: var(--bg);
}
.guide-term-line   { display: block; }
.guide-term-sys    { color: var(--text-secondary); }
.guide-term-dim    { color: var(--text-muted); }
.guide-term-echo   { color: var(--text); }
.guide-term-prompt { color: var(--accent); margin-right: 8px; }
.guide-term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink-cursor .9s step-start infinite;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

/* ── Window anatomy diagram ── */
.guide-window-diagram {
  position: relative;
  margin: 16px 0 60px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--border) 50%,transparent),
              inset 0 0 0 1px color-mix(in srgb,white 6%,transparent);
}
.gwd-chrome {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-title, var(--bg-hover));
}
.gwd-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.gwd-controls { display: flex; gap: 8px; align-items: center; }
.gwd-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.gwd-full  { background: #28c840; }
.gwd-min   { background: #febc2e; }
.gwd-close { background: #ff5f57; }
.gwd-body {
  padding: 24px 18px;
  min-height: 100px;
  display: flex;
  align-items: center;
}
.gwd-content-placeholder { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.gwd-line { display: block; height: 9px; border-radius: 5px; background: var(--border); }
.gwd-line-wide   { width: 80%; }
.gwd-line-mid    { width: 58%; }
.gwd-line-narrow { width: 38%; }
.gwd-resize-handle {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 12px; height: 12px;
  border-bottom: 2.5px solid var(--border);
  border-right: 2.5px solid var(--border);
  border-radius: 0 0 8px 0;
  opacity: .6;
}
.gwd-annotation {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb,var(--accent) 30%,transparent);
}
.gwd-ann-name   { top: -22px; left: 8px; }
.gwd-ann-ctrl   { top: -22px; right: 8px; }
.gwd-ann-resize { bottom: -22px; right: 0; }

/* ── Dock diagram ── */
.guide-dock-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  background: var(--bg);
  border-radius: 8px;
  margin: 14px 0;
}
.gdd-dock {
  display: flex;
  gap: 8px;
  padding: 12px 14px 18px;
  border-radius: 16px;
  background: color-mix(in srgb,var(--bg-title,var(--bg-hover)) 80%,transparent);
  border: 1px solid var(--border);
}
.gdd-tile {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 18px;
  position: relative;
}
.gdd-tile.active { border-color: var(--accent); box-shadow: 0 0 10px color-mix(in srgb,var(--accent) 25%,transparent); }
.gdd-dot {
  position: absolute;
  bottom: -9px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 5px rgba(255,255,255,.7);
}
.gdd-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Window tint demo ── */
.guide-tint-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}
.gtd-win {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gtd-win-title {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.gtd-win-title .gtd-dots { display: flex; gap: 5px; }
.gtd-win-title .gtd-dot { width: 10px; height: 10px; border-radius: 3px; }
.gtd-win.tinted .gtd-win-title { background: color-mix(in srgb,#5b9ef0 18%,var(--bg-hover)); border-bottom-color: color-mix(in srgb,#5b9ef0 40%,var(--border)); }
.gtd-win.tinted { border-color: color-mix(in srgb,#5b9ef0 50%,var(--border)); }
.gtd-win.tinted .gtd-dot { background: color-mix(in srgb,#5b9ef0 70%,var(--border-strong,var(--border))); }
.gtd-win:not(.tinted) .gtd-dot { background: var(--border-strong,var(--border)); }
.gtd-win-body { padding: 12px; }
.gtd-slime {
  width: 26px; height: 26px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #5b9ef0;
  margin-bottom: 6px;
}
.gtd-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ── Slime merge demo ── */
.guide-slime-merge-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 16px 12px;
  min-height: 100px;
}
.gsm-slime {
  width: 48px; height: 48px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  flex-shrink: 0;
}
.gsm-a { background: #5b9ef0; }
.gsm-b { background: #4db86a; }
.gsm-arrow { font-size: 22px; color: var(--text-muted); line-height: 1; }
.gsm-result {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.4);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.gsm-merged {
  width: 68px; height: 68px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(135deg, #5b9ef0, #4db86a);
}
.guide-slime-demo.playing .gsm-result { opacity: 1; transform: scale(1); }

/* ── Live sprite demo ── */
.guide-sprite-demo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  padding: 32px 24px 20px;
  background: var(--bg);
}
.guide-sprite-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.guide-sprite-el {
  width: 96px;
  height: 96px;
  background-image: url('../assets/Slime.png');
  background-repeat: no-repeat;
  background-size: 384px 288px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.guide-sprite-el.s-idle { background-position: 0 0; animation: guide-slime-idle 1.4s steps(4) infinite; }
.guide-sprite-el.s-walk { animation: guide-slime-walk 0.55s steps(4) infinite; }
.guide-sprite-el.s-dead { background-position: 0 -192px; animation: none; }

@keyframes guide-slime-idle {
  from { background-position:    0    0; }
  to   { background-position: -384px  0; }
}
@keyframes guide-slime-walk {
  from { background-position:    0  -96px; }
  to   { background-position: -384px -96px; }
}
.guide-sprite-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-align: center;
}
.guide-sprite-timing {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-align: center;
}

/* ── State machine diagram ── */
.guide-state-machine {
  padding: 20px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.guide-state-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
}
.guide-state-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-state-box.s-active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb,var(--accent) 10%,transparent);
}
.guide-state-box.s-idle    { border-color: #5b9ef0; color: #5b9ef0; background: color-mix(in srgb,#5b9ef0 10%,transparent); }
.guide-state-box.s-walk    { border-color: #4db86a; color: #4db86a; background: color-mix(in srgb,#4db86a 10%,transparent); }
.guide-state-box.s-unknown { border-color: #f07178; color: #f07178; background: color-mix(in srgb,#f07178 10%,transparent); }
.guide-state-box.s-slime   { border-color: #c3e88d; color: #c3e88d; background: color-mix(in srgb,#c3e88d 10%,transparent); }
.guide-state-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  flex-shrink: 0;
}
.guide-state-arrow-line { font-size: 14px; color: var(--border); }
.guide-state-arrow-trigger {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 90px;
  text-align: center;
  line-height: 1.3;
}
.guide-state-timer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  margin-left: 10px;
  border-radius: 4px;
  background: var(--bg-hover);
  white-space: nowrap;
}
.guide-state-row-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

/* ── Swatch grid ── */
.guide-swatch-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.guide-swatch {
  width: 68px; height: 68px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7px;
  border: 1px solid rgba(255,255,255,.1);
}
.guide-swatch span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.theme-swatch-sky    { background: #5b8ef0; }
.theme-swatch-forest { background: #4da86a; }
.theme-swatch-tide   { background: #3dbdbd; }
.theme-swatch-bloom  { background: #a87de8; }
.theme-swatch-dusk   { background: #e8584b; }
.theme-swatch-earth  { background: #c8845a; }
.theme-swatch-stone  { background: #888888; }

/* ── Font preview ── */
.guide-font-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.guide-font-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--bg-card);
}
.guide-font-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.guide-font-sample { font-size: 20px; color: var(--text); line-height: 1.2; }
.guide-font-sample.newspaper   { font-family: "Noto Serif",Georgia,serif; }
.guide-font-sample.handwriting { font-family: "Caveat",cursive; font-size: 24px; }
.guide-font-sample.poster      { font-family: "Bebas Neue",Impact,sans-serif; font-size: 28px; }

/* ── Pipeline diagram ── */
.guide-pipeline {
  display: flex;
  align-items: stretch;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.guide-pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px 16px;
  background: var(--bg-card);
  flex: 1;
}
.guide-pipeline-step:not(:last-child) { border-right: 1px solid var(--border); }
.guide-pipeline-icon  { font-size: 22px; color: var(--accent); line-height: 1; }
.guide-pipeline-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.guide-pipeline-tool  { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; text-align: center; }

/* ── Badge row ── */
.guide-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.guide-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: color-mix(in srgb,var(--accent) 12%,transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb,var(--accent) 30%,transparent);
  font-weight: 600;
}
.guide-badge-desktop { background: color-mix(in srgb,#5b9ef0 12%,transparent); color:#5b9ef0; border-color: color-mix(in srgb,#5b9ef0 30%,transparent); }
.guide-badge-mobile  { background: color-mix(in srgb,#4db86a 12%,transparent); color:#4db86a; border-color: color-mix(in srgb,#4db86a 30%,transparent); }
.guide-badge-secret  { background: color-mix(in srgb,#a87de8 12%,transparent); color:#a87de8; border-color: color-mix(in srgb,#a87de8 30%,transparent); }
.guide-badge-key     { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.guide-badge-label   { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }

/* ── Intro: hero + stats + card grid ── */
.guide-hero {
  padding: 4px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.guide-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: .85;
}
.guide-hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0 0 16px;
}
.guide-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0;
}
.guide-stat-row {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.guide-stat { display: flex; flex-direction: column; gap: 3px; }
.guide-stat-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.guide-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* ── Site architecture diagram ── */
.guide-arch {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0;
}
.guide-arch-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.guide-arch-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}
.guide-arch-divider {
  background: var(--border);
  align-self: stretch;
}
.guide-arch-col { padding: 18px 20px; }
.guide-arch-mode {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
}
.guide-arch-mode.dos     { background: color-mix(in srgb,#5b9ef0 14%,transparent); color:#5b9ef0; }
.guide-arch-mode.classic { background: color-mix(in srgb,#888 14%,transparent); color:#888; }
.guide-arch-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 3px 0 3px 14px;
  display: block;
  line-height: 1.5;
  position: relative;
}
.guide-arch-item::before {
  content: '›';
  position: absolute;
  left: 2px;
  color: var(--accent);
}
.guide-arch-item.sub {
  color: var(--text-muted);
  padding-left: 26px;
  font-size: 11px;
}
.guide-arch-item.sub::before { content: '·'; left: 14px; color: var(--text-muted); }

/* ── Intro section cards ── */
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.guide-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in srgb,var(--accent) 12%,transparent);
}
.guide-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.guide-card-icon svg { width: 22px; height: 22px; }
.guide-card[data-cat="feature"]    .guide-card-icon { background: color-mix(in srgb,#5b9ef0 18%,transparent); color:#5b9ef0; }
.guide-card[data-cat="philosophy"] .guide-card-icon { background: color-mix(in srgb,#a87de8 18%,transparent); color:#a87de8; }
.guide-card[data-cat="process"]    .guide-card-icon { background: color-mix(in srgb,#4db86a 18%,transparent); color:#4db86a; }
.guide-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.guide-card[data-cat="feature"]    .guide-card-label { color:#5b9ef0; }
.guide-card[data-cat="philosophy"] .guide-card-label { color:#a87de8; }
.guide-card[data-cat="process"]    .guide-card-label { color:#4db86a; }
.guide-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 8px; line-height: 1.25; }
.guide-card-desc  { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; flex: 1; }
.guide-card-arrow {
  position: absolute;
  bottom: 18px; right: 18px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .18s, transform .18s;
}
.guide-card:hover .guide-card-arrow { opacity: 1; transform: translateX(3px); }

/* ── Bubble anatomy diagram ── */
.guide-bubble-diagram {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 24px;
  position: relative;
}
.gbd-bubble {
  background: rgba(107,130,214,.95);
  border: 2px solid #879ff8;
  border-radius: 8px;
  padding: 18px 14px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  max-width: 200px;
  position: relative;
  line-height: 1.5;
}
.gbd-name {
  position: absolute;
  top: -11px; left: 10px;
  font-family: "Sniglet","Comic Sans MS",cursive;
  font-size: 13px;
  color: #c9d5f5;
  background: #4658a0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid #879ff8;
}
.gbd-arrow {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #879ff8;
  margin-left: 24px;
}
.gbd-goop {
  width: 48px; height: 48px;
  background-image: url('../assets/Slime.png');
  background-size: 192px 144px;
  background-position: 0 0;
  image-rendering: pixelated;
}
.guide-bubble-annotations {
  position: absolute;
  right: 20px; top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 160px;
}
.gba-row {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: color-mix(in srgb,var(--accent) 10%,transparent);
  border: 1px solid color-mix(in srgb,var(--accent) 25%,transparent);
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1.4;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .guide-layout { flex-direction: column; }
  .guide-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 0;
    height: auto;
  }
  .guide-nav::-webkit-scrollbar { display: none; }
  .guide-nav-group { display: none; }
  .guide-nav-item {
    white-space: nowrap;
    padding: 12px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
  }
  .guide-nav-item.active {
    border-bottom-color: var(--accent);
    border-left: none;
    background: none;
  }
  .guide-main { padding: 20px 18px 36px; }
  .guide-section-title { font-size: 32px; }
  .guide-hero-title { font-size: 36px; }
  .guide-pipeline { flex-direction: column; }
  .guide-pipeline-step { flex-direction: row; gap: 10px; padding: 12px 14px; }
  .guide-pipeline-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  .guide-card-grid { grid-template-columns: 1fr; }
  .guide-font-grid { grid-template-columns: 1fr; }
  .guide-arch-body { grid-template-columns: 1fr; }
  .guide-arch-divider { height: 1px; width: auto; }
  .guide-tint-demo { grid-template-columns: 1fr; }
  .guide-sprite-demo { gap: 24px; flex-wrap: wrap; }
  .guide-stat-row { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-term-cursor { animation: none; opacity: 1; }
  .gsm-result { transition: none; }
  .guide-card { transition: none; }
  .guide-sprite-el { animation: none !important; }
}

/* ── Specificity overrides: desktop.css sets .window-body h2 { font-size: 10px }
   These selectors use higher specificity (3 classes) to win the cascade ── */
.window.guide .guide-section-title { font-size: 46px; font-family: var(--font-serif); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--text); }
.window.guide .guide-hero-title    { font-size: 52px; font-family: var(--font-serif); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--text); }
.window.guide .guide-section-lead  { font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.window.guide .guide-subhead       { font-size: 15px; font-weight: 700; color: var(--text); text-transform: none; font-family: inherit; letter-spacing: normal; }
.window.guide .guide-body          { font-size: 15px; line-height: 1.82; color: var(--text); }
.window.guide .guide-callout p     { font-size: 15px; line-height: 1.72; font-style: italic; }
@media (max-width: 768px) {
  .window.guide .guide-section-title { font-size: 32px; }
  .window.guide .guide-hero-title    { font-size: 36px; }
}
