.guide { font-size: 18px; }
.guide-shell { max-width: 1220px; margin: auto; padding: 28px 40px; }
.guide header { margin-bottom: 0; }
.back-link { font: 14px ui-sans-serif, system-ui, sans-serif; }
.guide-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 72px; padding: 66px 0 56px; }
.guide .eyebrow { font-size: 11px; line-height: 1.7; }
.guide h1 { font-size: clamp(46px, 6.4vw, 80px); margin: 18px 0 26px; }
.standfirst { max-width: 550px; font-size: 22px; color: var(--muted); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 28px; font: 14px/1.5 ui-sans-serif, system-ui, sans-serif; }
.guide-actions a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.guide-actions .action { background: var(--accent); color: var(--bg); padding: 12px 18px; border-radius: 5px; text-decoration: none; font-weight: 600; }
.field-note { align-self: end; background: var(--soft); padding: 24px; border-top: 3px solid var(--accent); }
.field-note h2 { font-size: 28px; }
.field-note p, .session-facts { font: 14px/1.65 ui-sans-serif, system-ui, sans-serif; }
.session-facts { margin: 20px 0 0; }
.session-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.session-facts dd { margin: 0; font-weight: 600; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; border-top: 1px solid var(--line); }
.guide-nav { position: sticky; top: 20px; align-self: start; padding-top: 24px; }
.guide-nav a { display: flex; align-items: center; min-height: 44px; font: 14px/1.5 ui-sans-serif, system-ui, sans-serif; text-decoration: none; }
.guide-nav a:hover { text-decoration: underline; }
.guide-section { padding: 36px 0 40px; scroll-margin-top: 20px; }
.guide-section + .guide-section { border-top: 1px solid var(--line); }
.guide-section h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 10px 0 22px; }
.guide-section h3 { font: 600 17px/1.5 ui-sans-serif, system-ui, sans-serif; margin: 28px 0 8px; }
.guide-section p { margin: 14px 0; }
.guide strong { font-weight: 600; }
.guide code { font: .87em/1.65 ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
.citation { font: 13px/1.6 ui-sans-serif, system-ui, sans-serif; white-space: normal; }
.instructions { padding-left: 26px; }
.instructions li { padding-left: 10px; margin-bottom: 24px; }
.instructions li::marker { color: var(--accent); font: 18px ui-monospace, monospace; }
.instructions h3 { margin-top: 0; }
.guide-details { padding: 8px 16px; margin: 24px 0; border: 1px solid var(--line); border-radius: 5px; }
.guide-details summary { font-size: 15px; line-height: 1.6; }
.guide-details p { font-size: 16px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-block: 1px solid var(--line); padding: 8px 0; margin: 28px 0; }
.comparison h3 { margin-top: 12px; }
.comparison p { font-size: 16px; }
.hash-example { background: var(--panel); border: 1px solid var(--line); padding: 24px; margin: 28px 0 36px; border-radius: 6px; }
.hash-example h3 { margin-top: 0; }
.hash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hash-example label { font-size: 14px; }
.digest-label { display: block; margin: 14px 0 6px; font: 11px ui-monospace, monospace; color: var(--muted); }
.hash-example .hash-output { display: block; font-size: 12px; min-height: 60px; }
#hash-status { font: 600 14px/1.6 ui-sans-serif, system-ui, sans-serif; }
.math-example { border-left: 2px solid var(--accent); padding-left: 16px; }
.lineage-figure { margin: 28px 0; }
.lineage-figure ol { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lineage-figure li { padding: 16px; border-top: 3px solid var(--accent); background: var(--soft); }
.lineage-figure h3 { margin: 8px 0; font-size: 15px; }
.lineage-figure p, figcaption { font: 13px/1.6 ui-sans-serif, system-ui, sans-serif; }
figcaption { color: var(--muted); }
.table-wrap { margin: 24px 0; }
.guide table { width: 100%; border-collapse: collapse; font: 14px/1.65 ui-sans-serif, system-ui, sans-serif; }
.guide caption { text-align: left; margin-bottom: 12px; color: var(--muted); }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.guide thead { background: var(--soft); }
.guide tbody th { width: 30%; }
.limit-note { margin-top: 28px; border-left: 3px solid var(--warn); padding: 4px 0 4px 22px; }
.limit-note h3 { margin-top: 8px; }
.sources ul { list-style: none; padding: 0; }
.sources li { border-bottom: 1px solid var(--line); padding: 12px 0; font: 15px/1.6 ui-sans-serif, system-ui, sans-serif; }
.sources li a { display: inline-block; padding: 8px 0; }
.sources li span { display: block; color: var(--muted); font-size: 13px; }
.guide footer { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: var(--panel); z-index: 2; }
.skip-link:focus { top: 12px; }
@media (max-width: 850px) {
  .guide-shell { padding: 22px 24px; }
  .guide-hero { gap: 30px; grid-template-columns: 1fr; padding: 30px 0; }
  .standfirst { font-size: 21px; }
  .field-note { max-width: 600px; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}
@media (max-width: 480px) {
  .guide-shell { padding: 18px 16px; }
  .guide { font-size: 17px; }
  .guide h1 { font-size: 48px; }
  .guide-section { padding-block: 28px; }
  .field-note, .hash-example { padding: 18px; }
  .hash-grid, .comparison, .lineage-figure ol { grid-template-columns: 1fr; gap: 12px; }
  .hash-example .hash-output { min-height: 0; }
  .guide th, .guide td { padding: 12px 6px; }
}
