/* The Guide shares the reading shell; these rules stay local to its field notes. */
.guide-page h1 { text-wrap: pretty; }
.guide-last-updated { margin: 20px 0 28px; color: var(--muted); font-size: var(--font-size-ui); }
.guide-intro { font-size: 1.0625rem; line-height: 1.85; }
.guide-intro p { margin-bottom: 0; }
.guide-contents-title { margin: 0 0 12px; color: var(--cream); font: 700 1rem/1.4 var(--font-display); }
.guide-contents a {
    display: block;
    min-height: 44px;
    padding: 12px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: var(--font-size-ui);
    line-height: 1.65;
    text-decoration: none;
    transition: color 180ms ease-out;
}
.guide-contents a:hover, .guide-contents a[aria-current] { color: var(--gold); }
.guide-contents a[aria-current] { text-decoration: underline; }
.guide-section { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.guide-section h2 { position: relative; margin-bottom: 28px; padding-right: 36px; font-size: 1.75rem; line-height: 1.4; text-align: left; text-wrap: pretty; }
.guide-emoji { display: inline-block; margin-right: 4px; font-size: .85em; vertical-align: 2px; }
.guide-section > ul { margin: 0; padding: 0; list-style: none; }
.guide-section > ul > li { position: relative; margin: 0 0 26px; padding-right: 36px; }
.guide-section > ul > li:last-child { margin-bottom: 0; }
.guide-section li { color: var(--cream-soft); font-size: 1.0625rem; line-height: 1.85; overflow-wrap: break-word; }
.guide-section strong { color: var(--cream); font-weight: 600; }
.guide-section ol { margin: 18px 0 0; padding-left: 26px; list-style-type: lower-alpha; }
.guide-section ol li { padding-left: 4px; margin-bottom: 12px; }
.guide-section ol li::marker { color: var(--muted); font-size: .88em; }
.guide-section [id] { scroll-margin-top: calc(var(--header-height) + 32px); }
.guide-section :is(h2, li):target, .guide-highlight-target {
    background: rgba(255, 190, 99, .07);
    outline: 1px solid rgba(255, 190, 99, .45);
    outline-offset: 8px;
}
.guide-anchor-link {
    position: absolute;
    top: -6px;
    right: -10px;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font: 400 1rem/1 var(--font-display);
    transition: color 160ms ease-out, background-color 160ms ease-out;
}
.guide-section h2 > .guide-anchor-link { top: 0; }
.guide-anchor-link:hover, .guide-anchor-link:focus-visible { color: var(--gold); background: rgba(255, 190, 99, .07); }
.guide-anchor-link--copied { color: var(--green); }
.guide-copy-status {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 80;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 14px 20px;
    border: 1px solid var(--gold);
    background: var(--panel);
    color: var(--cream);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
    font-size: var(--font-size-ui);
    line-height: 1.6;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.guide-copy-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
    .guide-landscape img { object-position: center 68%; }
    .guide-page h1 { font-size: 2.625rem; }
    .guide-intro, .guide-section li { font-size: 1rem; }
    .guide-contents { position: static; width: auto; max-height: none; margin-top: 32px; padding: 20px 0 0; background: transparent; border-bottom: 0; }
    .guide-contents a { padding-block: 10px; }
    .guide-section { margin-top: 36px; padding-top: 26px; }
    .guide-section h2 { font-size: 1.375rem; margin-bottom: 24px; }
    .guide-section > ul > li { padding-right: 26px; }
    .guide-section ol { padding-left: 20px; }
    .guide-anchor-link { right: -16px; }
}
@media (max-width: 380px) {
    .guide-page h1 { font-size: 2.25rem; }
    .guide-section h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .guide-copy-status { transform: translateX(-50%); }
}
