.guide {
    --guide-ink: #16392e;
    --guide-text: #273f35;
    --guide-muted: #52665d;
    --guide-paper: #fffefa;
    --guide-border: #d8e1d7;
    --guide-light: #edf3ec;
    --guide-gold: #e4be7b;
    color: var(--guide-text);
}
.guide h2, .guide h3 { color: var(--guide-ink); }
.guide h2 { font-size: 1.22rem; }
.guide h3 { font-size: 1.06rem; }
.guide a { color: var(--guide-ink); text-underline-offset: .24em; }
.guide p { line-height: 1.9; }
.guide-hero {
    margin-block: 0 1rem; padding: clamp(1rem,3vw,1.8rem);
    background: #12392f; color: #fcf4e4; border: 1px solid #234a3e; border-radius: 1rem;
}
.guide-hero > p { margin: 0 0 .7rem; font-size: 1.08rem; }
.guide-search { max-width: 42rem; margin: 0 0 .9rem; }
.guide-search label { margin-block-end: .35rem; }
.guide-hero .guide-search label { color: #f4d7a4; }
.guide-search > div { display: flex; align-items: stretch; gap: .5rem; }
.guide-search input { flex: 1; color: #172b25; background: var(--guide-paper); }
.guide .guide-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: auto;
    padding: .53rem .85rem; border: 1px solid #1c5546; border-radius: .55rem;
    background: #184938; color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.guide .guide-button:hover { background: #12382e; }
.guide .guide-secondary { color: var(--guide-ink); background: var(--guide-paper); border-color: var(--guide-border); }
.guide .guide-secondary:hover { background: var(--guide-light); }
.guide-hero .guide-search .guide-button { color: #1d2a22; background: var(--guide-gold); border-color: var(--guide-gold); }
.guide-hero .guide-search .guide-button:hover { background: #f1d298; }
.guide-hero .guide-secondary { border-color: #8d9f83; background: transparent; color: #fcf4e4; }
.guide-hero .guide-secondary:hover { background: #264e41; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.guide nav { width: 100%; margin-inline: 0; }
.guide-groups { margin-block: .75rem 1.35rem; gap: .35rem; }
.guide-groups a {
    padding: .4rem .7rem; border-radius: .55rem; border: 1px solid var(--guide-border);
    background: var(--guide-paper); color: var(--guide-ink); text-decoration: none; display: inline-flex; align-items: center;
}
.guide-groups a:hover { background: var(--guide-light); }
.guide .guide-category, .guide .guide-results { border: 0; padding: 0; background: transparent; margin-block: 1.35rem; }
.guide-category > h2, .guide-results > h2 { margin-block: 0 .68rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.guide .guide-card {
    padding: .85rem 1rem; margin: 0; border: 1px solid var(--guide-border); border-radius: .7rem;
    background: var(--guide-paper); border-inline-start: 3px solid #b88940;
}
.guide-card:focus-within, .guide-card:hover { border-color: #9b773c; }
.guide-card h3 { margin: 0 0 .3rem; }
.guide-card a { display: inline-block; text-decoration: underline; }
.guide-card p { margin: .25rem 0 0; color: var(--guide-muted); font-size: .92rem; }
.guide-results > p { margin-block: .55rem; }
.guide-empty { background: var(--guide-light); border-radius: .6rem; padding: .65rem .85rem; }
.guide-article-actions { margin-block: 0 1rem; }
.guide-article-layout { display: grid; align-items: start; grid-template-columns: minmax(0,1fr) minmax(13rem,19rem); gap: .85rem; }
.guide .guide-article, .guide .guide-outline {
    min-width: 0; border: 1px solid var(--guide-border); background: var(--guide-paper); border-radius: .85rem; padding: 1rem 1.15rem;
}
.guide-outline { position: sticky; inset-block-start: 1rem; }
.guide-outline h2 { margin-block: 0 .4rem; font-size: 1.02rem; }
.guide-outline ul { padding-inline-start: 1.15rem; margin-block: .35rem 1rem; }
.guide-outline ul:last-child { margin-block-end: 0; }
.guide-outline li { margin-block: .2rem; }
.guide-intro { font-size: 1.04rem; color: var(--guide-muted); margin: .15rem 0 1rem; }
.guide .guide-section { background: transparent; border: 0; border-top: 1px solid var(--guide-border);
    border-radius: 0; margin-block: 1rem 0; padding: .9rem 0 0; scroll-margin-block-start: 1rem; }
.guide-section h2, .guide-section h3 { margin-block: 0 .38rem; }
.guide-section ol { padding-inline-start: 1.35rem; }
.guide-section li { margin-block: .48rem; padding-inline-start: .1rem; }
.guide-section li::marker { font-weight: 700; color: #735017; }
.guide-section p { margin-block: .45rem; }
.guide .guide-print-toc {
    display: block; padding: .9rem 1rem; margin-block: 1rem; border: 1px solid var(--guide-border);
    border-radius: .75rem; background: var(--guide-paper);
}
.guide-print-toc ul { columns: 2; margin-block: .25rem; padding-inline-start: 1.4rem; }
.guide-print-toc li { break-inside: avoid; }
.guide-print-toc a { display: inline-block; min-height: 0; margin: 0; padding: .16rem 0; border: 0; border-radius: 0; }
.guide .guide-print-chapter {
    border: 1px solid var(--guide-border); border-radius: .7rem; background: var(--guide-paper);
    padding: 1rem 1.15rem; margin-block: .9rem;
}
.guide-print-chapter > h2 { margin-block: .1rem .3rem; }
.guide-print-brand { display: none; }
@media (max-width: 900px) {
    .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 690px) {
    .guide-article-layout { grid-template-columns: minmax(0,1fr); }
    .guide-outline { order: -1; position: static; }
}
@media (max-width: 540px) {
    .guide-grid { grid-template-columns: minmax(0,1fr); }
    .guide-search > div { gap: .3rem; }
    .guide-search button { flex: 0 0 auto; padding-inline: .64rem; }
    .guide-print-toc ul { columns: 1; }
}
@page { size: A4 portrait; margin: 13mm; }
@media print {
    .guide, .guide a { color: black; }
    .guide .no-print { display: none !important; }
    .guide .guide-article-layout { display: block; }
    .guide .guide-article, .guide .guide-print-chapter, .guide .guide-print-toc,
    .guide .guide-section { border: 0; padding: 0; margin: .65rem 0; background: white; }
    .guide-print-toc ul { columns: 2; }
    .guide-print-brand { display: block; font-size: .85rem; margin: 0; }
    .guide-print-chapter { break-before: auto; }
    .guide-print-chapter h2, .guide-section h2, .guide-section h3 { break-after: avoid; }
    .guide p, .guide li { orphans: 2; widows: 2; }
}
