.guides-header { grid-template-columns: 1fr auto 1fr; }
.guides-header-cta { justify-self: end; color: var(--ink); font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; }
.guides-main { padding-block: 3rem 5rem; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; color: var(--muted); font-size: .8rem; }
.guide-breadcrumb a { text-underline-offset: .2rem; }
.guide-hero { max-width: 54rem; margin-bottom: 2.5rem; }
.guide-hero h1 { margin: .9rem 0 1rem; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; }
.guide-hero > p:last-child { max-width: 47rem; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.7; }
.guide-section-title, .guide-related h2 { margin-bottom: 1.2rem; font-size: 1.5rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.guide-card { display: flex; flex-direction: column; gap: .7rem; min-height: 14rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); text-decoration: none; }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--teal); box-shadow: var(--shadow); }
.guide-card span { color: var(--muted); font-size: .75rem; }
.guide-card h3 { margin: 0; font-size: 1.25rem; }
.guide-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.guide-card strong, .guide-card > span:last-child { margin-top: auto; color: var(--teal); font-size: .8rem; font-weight: 750; }
.guide-article { max-width: 56rem; }
.guide-toc, .guide-step, .guide-sources { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.guide-toc ol { display: grid; gap: .55rem; margin-bottom: 0; padding-left: 1.3rem; }
.guide-toc a, .guide-sources a { color: var(--teal); text-underline-offset: .2rem; }
.guide-steps { display: grid; gap: 1rem; margin-block: 1rem 2rem; }
.guide-step { scroll-margin-top: 1rem; }
.guide-step h2, .guide-sources h2 { margin: 0 0 .8rem; font-size: 1.4rem; }
.guide-step p, .guide-sources p { color: var(--ink-soft); line-height: 1.7; }
.guide-output { margin-bottom: 0; padding: .8rem 1rem; border-left: 3px solid var(--teal); background: var(--wash); }
.guide-sources ul { display: grid; gap: .6rem; padding-left: 1.2rem; }
.guide-related { margin-top: 3rem; }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding: 2rem; border-radius: 1rem; background: var(--wash); }
.guide-cta h2 { margin: .4rem 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.guide-cta p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.guide-cta > div:last-child { display: grid; justify-items: start; gap: 1rem; flex: 0 0 auto; }
.guide-plain-link { color: var(--teal); font-weight: 700; }
.guides-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem max(1rem, calc((100vw - 76rem) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.guides-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 64rem) { .guides-header nav { display: flex; order: 0; width: auto; flex-direction: row; border: 0; margin: 0; padding: 0; } }
@media (max-width: 48rem) { .guides-header { display: flex; flex-wrap: wrap; } .guides-header nav { order: 3; width: 100%; justify-content: space-between; gap: .5rem; } .guides-header-cta { margin-left: auto; } .guide-cta { display: block; } .guide-cta > div:last-child { margin-top: 1.2rem; } }
@media (max-width: 30rem) { .guides-header-cta { display: none; } }
