/**
 * How-to guides (/guides and /guides/<slug>, 28 Oct 2026). Builds on landing.css (Field Journal: Caveat labels,
 * 6px buttons, 10px cards) and the breadcrumb and card pieces of use-cases.css. A reading layout: one column of
 * long-form text (about 70 characters a line) with an "On this page" list beside it on wide screens and above it
 * on narrow ones.
 */

/* ---------- Hero ---------- */
.guide-hero { border-bottom: 0; padding-bottom: 24px; }
.home-page .guide-hero h1 { font-size: 52px; line-height: 1.06; }
.guide-hero .page-hero__text { max-width: 760px; }
.guide-meta { font-size: 14px; color: var(--color-muted-green); }

/* ---------- Layout: the article, with the list of sections on the right ---------- */
.guide-layout {
    display: grid; grid-template-columns: minmax(0, 720px) 260px; grid-template-areas: "article toc";
    justify-content: space-between; gap: 64px; align-items: start;
    padding: 32px var(--gutter) 88px; border-bottom: 1px solid var(--color-rule);
}
.guide-article { grid-area: article; display: flex; flex-direction: column; gap: 56px; min-width: 0; }

.guide-toc {
    grid-area: toc; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px;
    background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: 10px; padding: 20px 22px;
}
.guide-toc__title { font-family: var(--font-hand); font-weight: 600; font-size: 24px; line-height: 1; color: var(--color-trail-dark); }
.guide-toc ol { margin: 0; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; }
.guide-toc li { font-size: 14px; line-height: 1.45; color: var(--color-muted-green); }
.fj-page .guide-toc a { color: var(--color-forest); text-decoration: none; }
.fj-page .guide-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.guide-section, .guide-faq { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 24px; }
.guide-pll { scroll-margin-top: 24px; }
.home-page .guide-article h2 { font-size: 36px; line-height: 1.12; }
.guide-article p, .guide-article li { font-size: 18px; line-height: 1.7; color: var(--color-body); }
.guide-article ul { margin: 0; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 10px; }
.guide-article li::marker { color: var(--color-trail-dark); }
.guide-article strong { color: var(--color-forest); }
.fj-page .guide-article p a, .fj-page .guide-article li a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* A sample, such as a method note */
.guide-example {
    margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px;
    background: #FFFFFF; border: 1px solid var(--color-rule); border-left: 3px solid var(--color-trail); border-radius: 0 10px 10px 0;
}
.guide-example__label { font-family: var(--font-hand); font-weight: 600; font-size: 22px; line-height: 1; color: var(--color-trail-dark); }
.guide-article .guide-example p { font-size: 17px; color: var(--color-forest); }

/* Spreadsheet columns: a small table that scrolls inside itself if a phone is too narrow */
.guide-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--color-rule); border-radius: 10px; background: #FFFFFF; }
.guide-table:focus-visible { outline: 2px solid var(--color-pine); outline-offset: 2px; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; color: var(--color-body); }
.guide-table caption { caption-side: top; text-align: left; padding: 12px 16px 4px; font-size: 13px; font-weight: 600; color: var(--color-muted-green); }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 16px; border-top: 1px solid #EEEAE2; }
.guide-table thead th { font-size: 12px; font-weight: 700; color: var(--color-forest); border-top: 0; border-bottom: 2px solid var(--color-forest); white-space: nowrap; }
.guide-table tbody th { font-weight: 600; color: var(--color-forest); }
.guide-table td:last-child { font-variant-numeric: tabular-nums; }

/* ---------- Or let Public Lands Log do it ---------- */
.guide-pll {
    display: flex; flex-direction: column; gap: 18px; padding: 40px 40px 40px 80px;
    background: var(--color-paper) linear-gradient(90deg, transparent 48px, var(--color-margin) 48px, var(--color-margin) 49px, transparent 49px);
    border: 1px solid var(--color-rule); border-top: 3px solid var(--color-forest);
}
.guide-pll .fj-actions { padding-top: 6px; }
.guide-article .guide-pll .page-note-line { font-size: 15px; line-height: 1.6; color: var(--color-muted-green); }
.guide-pll .page-note-line strong { color: var(--color-forest); }
.guide-article .guide-pll__example { font-size: 16px; }

/* ---------- Questions ---------- */
.guide-faq .faq-list { max-width: none; }
.home-page .guide-faq .faq-item h3 { font-size: 24px; line-height: 1.25; }
.guide-faq .faq-item { padding: 22px 0; }
.guide-article .guide-faq .faq-item p { font-size: 17px; }

/* ---------- More guides and related use cases ---------- */
.guide-related { gap: 28px; }
.home-page .guide-related h2 { font-size: 40px; line-height: 1.1; }
.home-page .guide-related h2.guide-related__sub { font-size: 30px; padding-top: 16px; }
.guide-related__cases { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }

/* ---------- Tablet: the list of sections moves above the article ---------- */
@media (max-width: 1100px) {
    .guide-layout { grid-template-columns: minmax(0, 720px); grid-template-areas: "toc" "article"; gap: 40px; }
    .guide-toc { position: static; }
    .home-page .guide-hero h1 { font-size: 46px; }
}

/* ---------- Stacked (under ~900px) ---------- */
@media (max-width: 900px) {
    .guide-related__cases { grid-template-columns: minmax(0, 1fr); }
    .guide-pll { padding: 36px 28px 36px 64px;
        background-image: linear-gradient(90deg, transparent 40px, var(--color-margin) 40px, var(--color-margin) 41px, transparent 41px); }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
    .home-page .guide-hero h1 { font-size: 36px; }
    .guide-layout { padding-top: 16px; padding-bottom: 56px; gap: 32px; }
    .guide-article { gap: 44px; }
    .home-page .guide-article h2 { font-size: 29px; }
    .guide-article p, .guide-article li { font-size: 17px; }
    .guide-table table { font-size: 14px; }
    .guide-table th, .guide-table td { padding: 9px 8px; }
    .guide-table thead th { white-space: normal; }
    .guide-table caption { padding: 10px 8px 4px; }
    .guide-pll { padding: 28px 18px 28px 44px;
        background-image: linear-gradient(90deg, transparent 26px, var(--color-margin) 26px, var(--color-margin) 27px, transparent 27px); }
    .home-page .guide-faq .faq-item h3 { font-size: 21px; }
    .home-page .guide-related h2 { font-size: 32px; }
    .home-page .guide-related h2.guide-related__sub { font-size: 26px; }
}
