.nav a[aria-current="page"] { color: var(--amber); }
.guide-main { --guide-paper: #f5f3ee; --guide-text: #241f1a; }
.guide-masthead { background: radial-gradient(ellipse at 88% 22%, #392617 0%, #171411 52%, var(--ink) 82%); border-bottom: 1px solid var(--line); }
.guide-masthead .wrap { padding-block: clamp(32px, 6vw, 84px); }
.guide-header { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.guide-crumbs { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1.3rem; color: var(--muted); font-size: .875rem; }
.guide-crumbs a { color: var(--amber); text-decoration: underline; text-underline-offset: .2em; }
.guide-category { color: var(--amber); font-size: .875rem; font-weight: 800; margin-bottom: .65rem; }
.guide-title { font-size: clamp(2.35rem, 5.5vw, 5rem); line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; margin: 0; }
.guide-lead { max-width: 58ch; margin-block: 1.2rem 1.55rem; color: #ded6cd; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.guide-cover { margin: 0; border: 1px solid #564338; border-radius: var(--radius); overflow: hidden; background: #1b1713; }
.guide-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-cover.guide-sheet img { object-fit: contain; padding: 1rem; background: #30271d; }
.guide-index { padding-block: clamp(32px, 6vw, 84px); }
.guide-index-grid, .guide-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.guide-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card.guide-sheet > img { object-fit: contain; padding: .75rem; background: #30271d; }
.guide-card-copy { display: grid; align-content: start; gap: .7rem; padding: clamp(16px, 2.4vw, 26px); height: 100%; }
.guide-card-copy .guide-category { margin: 0; }
.guide-card h2, .guide-card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.guide-card h2 a, .guide-card h3 a { text-decoration: underline; text-decoration-color: #967037; text-underline-offset: .19em; }
.guide-card h2 a:hover, .guide-card h3 a:hover { color: var(--amber); }
.guide-card-copy > p:last-child { color: var(--muted); line-height: 1.55; }
.guide-home { padding-block: clamp(20px, 4vw, 56px); }
.guide-home > .guide-index-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: 1.15rem; }
.guide-index-heading h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.guide-index-heading a, .guide-related a { color: var(--amber); text-decoration: underline; text-underline-offset: .22em; }
.guide-layout { display: grid; grid-template-columns: minmax(175px, 1fr) minmax(0, 3.55fr); align-items: start; gap: clamp(20px, 4.5vw, 64px); padding-block: clamp(25px, 5vw, 64px); }
.guide-toc { position: sticky; top: calc(var(--nav-height) + 24px); display: grid; gap: .55rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-toc p { font-weight: 800; }
.guide-toc a { color: var(--muted); font-size: .91rem; line-height: 1.35; }
.guide-toc a:hover { color: var(--amber); }
.guide-article { min-width: 0; padding: clamp(18px, 5vw, 56px); border-radius: var(--radius); background: var(--guide-paper); color: var(--guide-text); line-height: 1.7; overflow-wrap: anywhere; }
.guide-article section + section { margin-top: 2rem; }
.guide-article h2 { font-size: clamp(1.45rem, 3.1vw, 2.15rem); line-height: 1.14; letter-spacing: -.04em; margin-bottom: .75rem; }
.guide-article p + p, .guide-article p + ol, .guide-article ol + p { margin-top: .8rem; }
.guide-article ol { padding-left: 1.45em; }
.guide-article li + li { margin-top: .5rem; }
.guide-article a:not(.button) { color: #643b08; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; }
.guide-article code { padding: .04em .25em; border-radius: .2em; background: #e8e0d4; }
.guide-article .guide-downloads { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; margin-block: .9rem; }
.guide-table { margin-block: 1rem; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.guide-table caption { text-align: left; color: #695f52; font-weight: 700; padding-bottom: .4rem; }
.guide-table th, .guide-table td { vertical-align: top; text-align: left; border: 1px solid #cfc2b0; padding: .52rem .65rem; }
.guide-table th { background: #e6ddce; }
.guide-article .guide-cta { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid #cfc2b0; }
.guide-related { border-top: 1px solid var(--line); padding-block: 1.7rem 2.7rem; }
.guide-related h2 { margin-bottom: .8rem; font-size: 1.35rem; }
.guide-related ul { padding-left: 1.2rem; }
.guide-related li + li { margin-top: .35rem; }
@media (max-width: 760px) {
  .guide-header, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; }
  .guide-index-grid, .guide-home-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card > img { aspect-ratio: 2 / 1; }
}
