/*
 * Hex Marks the Spot: how-to guides (guides/*.html, de/guides/*.html). Loaded after base.css.
 * Logical properties only, so translations and right-to-left text need no extra rules.
 */

.guide { max-width: 44rem; }
.guide h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.guide h2 { margin-block-start: 2.75rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.guide h3 { margin-block-start: 1.75rem; font-size: 1.1rem; }
.guide p, .guide li { max-width: var(--measure); }
.guide ul { padding-inline-start: 1.25rem; }
.guide li + li { margin-block-start: 0.5rem; }
.guide code { overflow-wrap: anywhere; }

/* The page title sits on a strip of chart, ending in a small inked X (as on the prose pages). */
.page-title { position: relative; padding-block-end: 1.25rem; margin-block-end: 1.75rem; }
.page-title::after {
    content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0;
    inline-size: min(100%, 16rem); block-size: 0; border-block-start: 2px dashed var(--ink-soft);
}
.page-title::before {
    content: "\2715"; position: absolute; inset-inline-start: min(100%, 16rem); inset-block-end: -0.62rem;
    margin-inline-start: 0.35rem; color: var(--rust); font: 700 1.2rem/1 var(--sans);
}

/* The direct answer under the title: quoted on its own by snippets, so it reads a little larger. */
.answer { font-size: 1.15rem; }
.byline { color: var(--ink-soft); font-size: 0.92rem; margin-block-end: 0; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: 0.9rem; }
.guide .steps li { counter-increment: step; position: relative; padding-inline-start: 2.6rem; margin: 0; }
.steps li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0.05rem;
    inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; display: grid; place-items: center;
    background: #24693F; color: #fff; font-weight: 700; font-size: 0.9rem;
}

/* The real magnifier screenshot */
.guide-shot { margin: 2rem 0; max-inline-size: 600px; }
.guide-shot .shot { inline-size: 100%; block-size: auto; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.guide-shot figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-block-start: 0.75rem; }

/* FAQ: questions as plain headings, answers always visible */
.faq h3 { margin-block-end: 0.4rem; }

/* Call to action at the end */
.guide-cta {
    margin-block-start: 3rem; padding: 1.5rem 1.5rem 0.5rem;
    background: var(--paper-raised); border-inline-start: 3px solid var(--map-green);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-cta h2 { margin-block-start: 0; }

/*
 * Apple's "Download on the Mac App Store" badge, unaltered: no frame, shadow or hover effect;
 * the whole badge is the link. 48 px high (Apple's minimum is 40), clear space of a quarter of
 * the height (12 px) on every side, given by the paragraph margins. Black lockup on parchment,
 * white in dark mode through <picture>.
 */
.guide-cta .cta { margin-block: 1rem; }
.store-badge { display: inline-block; vertical-align: top; }
.store-badge img { display: block; inline-size: auto; block-size: 3rem; }
