/* Guides, content pages and the home-page strip. Graphics use classes only (no ids) so many can share a page. */
.crumbs { font-size: 0.85rem; color: var(--ink-secondary); margin-bottom: var(--space-5); }
.crumbs a { color: var(--ink-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.article { padding: var(--space-7) 0 0; }
.article__inner { max-width: 72ch; }
.article__cat { color: var(--accent); font-weight: 600; letter-spacing: 0.06em; font-size: 0.8rem; text-transform: uppercase; margin-bottom: var(--space-3); }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1; margin-bottom: var(--space-4); }
.article__lede { color: var(--ink-secondary); font-size: 1.1rem; margin-bottom: var(--space-6); }
.article__hero { margin-bottom: var(--space-6); border: 1px solid var(--border-card); border-radius: var(--radius-card); overflow: hidden; }
.article__inner h2 { font-size: 1.3rem; margin: var(--space-6) 0 var(--space-3); }
.article__inner p, .article__inner li { color: var(--ink); margin-bottom: var(--space-4); font-size: 1.02rem; line-height: 1.65; }
.article__inner ul { padding-left: var(--space-5); margin-bottom: var(--space-4); }
.article__inner li { margin-bottom: var(--space-2); }
.article__inner a, .guides-strip__more a { color: var(--accent); }
.article__more { max-width: var(--max-width); margin-top: var(--space-7); }
.article__more > h2 { font-size: 1.4rem; margin-bottom: var(--space-5); }

.cta { background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-card); padding: var(--space-6); margin-top: var(--space-7); text-align: center; }
.cta h2 { margin-bottom: var(--space-3); }
.cta p { color: var(--ink-secondary); margin-bottom: var(--space-5); }

.guides-hero { padding: var(--space-7) 0 0; }
.guides-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--space-4); }
.guides-hero .article__lede { max-width: 60ch; }
.guides-strip { padding: var(--space-8) 0 0; }
.guides-strip h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: var(--space-3); }
.guides-strip__more { margin-top: var(--space-5); color: var(--ink-secondary); }

.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.gcards--all { margin-top: var(--space-2); }
.gcard { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-card); overflow: hidden; padding-bottom: var(--space-4); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -12px rgba(33, 29, 22, 0.35); }
.gcard__gfx { margin-bottom: var(--space-3); }
.gcard__cat { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 var(--space-4); margin-bottom: var(--space-1); }
.gcard h3 { font-size: 1.05rem; padding: 0 var(--space-4); margin-bottom: var(--space-2); line-height: 1.25; }
.gcard__desc { color: var(--ink-secondary); font-size: 0.88rem; padding: 0 var(--space-4); }
@media (max-width: 900px) { .gcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gcards { grid-template-columns: 1fr; } .site-nav { gap: var(--space-4); } }

/* Graphics */
.g svg { display: block; width: 100%; height: auto; }
.gfx .s { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gfx .s.thin { stroke-width: 1.5; }
.gfx .s.a { stroke: var(--accent); }
.gfx .f { fill: var(--ink); }
.gfx .fa { fill: var(--accent); }
.gfx .fs { fill: var(--surface-elevated); }
.gfx .fp { fill: var(--paper); }
.gfx .s.fp { fill: var(--paper); }
.gfx .s.fa { stroke: var(--ink); fill: var(--accent); }
.gfx .t { font: 600 11px var(--font-main); fill: var(--ink-secondary); }
.gfx .t.on { fill: var(--ink); }
.gfx .tabhl { opacity: 0.25; }
.gfx .slice { stroke-dasharray: 5 4; }
.gfx .ph, .gfx .ph2 { fill: none; }

@media (prefers-reduced-motion: no-preference) {
  .gfx .sway { transform-box: view-box; transform-origin: 160px 80px; animation: sway 4s ease-in-out infinite alternate; }
  .gfx .tabhl { animation: tabs 5s steps(1) infinite; }
  .gfx .draw { stroke-dasharray: 100; stroke-dashoffset: 0; animation: draw 3.5s ease-in-out infinite alternate; }
  .gfx .cell { animation: fade 2.4s ease-in-out infinite alternate; animation-delay: var(--d); }
  .gfx .bob { animation: bob 2.2s ease-in-out infinite alternate; }
  .gfx .bar { transform-box: fill-box; transform-origin: bottom; animation: bar 1.6s ease-in-out infinite alternate; animation-delay: var(--d); }
  .gfx .hit { animation: fade 1.2s ease-in-out infinite alternate; animation-delay: var(--d); }
  .gfx .ph { animation: playhead 4.8s steps(16) infinite; }
  .gfx .ph2 { animation: sweep 5s linear infinite; }
  .gfx .spin { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
  .gfx .flow { stroke-dasharray: 6 8; animation: flow 1.2s linear infinite; }
  .gfx .hop { animation: hop 1.1s ease-in infinite alternate; animation-delay: var(--d); }
  .gfx .note { transform-box: fill-box; transform-origin: bottom; animation: bar 1.4s ease-in-out infinite alternate; animation-delay: var(--d); }
  .gfx .fader { animation: fader 3s ease-in-out infinite alternate; animation-delay: var(--d); }
  .gfx .run5 { animation: run 2.5s linear infinite; }
  .gfx .run7 { animation: run 3.5s linear infinite; }
  .gfx .slice { animation: fade 1.8s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: rotate(-50deg); } to { transform: rotate(50deg); } }
  @keyframes tabs { 0% { transform: translateX(0); } 20% { transform: translateX(56px); } 40% { transform: translateX(112px); } 60% { transform: translateX(168px); } 80% { transform: translateX(224px); } }
  @keyframes draw { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 0; stroke-dasharray: 100; opacity: 0.55; } }
  @keyframes fade { from { opacity: 1; } to { opacity: 0.45; } }
  @keyframes bob { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
  @keyframes bar { from { transform: scaleY(1); } to { transform: scaleY(0.45); } }
  @keyframes playhead { from { transform: translateX(0); } to { transform: translateX(288px); } }
  @keyframes sweep { from { transform: translateX(0); } to { transform: translateX(230px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes flow { to { stroke-dashoffset: -28; } }
  @keyframes hop { from { transform: translateY(0); } to { transform: translateY(-18px); } }
  @keyframes fader { from { transform: translateY(0); } to { transform: translateY(26px); } }
  @keyframes run { from { transform: translateX(0); } to { transform: translateX(230px); } }
}
