/* CR-088: the app user guide (/user-guide). INVENTED — NEEDS DESIGN APPROVAL (DQ-207): not in a design; built from the
   site's own tokens (_SiteLayout: --ink, --paper, --tx, --tx3, --line, --muted, --red, --link) and the fonts of the
   Contact / Download pages. Every class starts with "ug-", so the rest of the site is not touched. */
.ug { color: var(--tx); font: 400 17px/1.6 'Funnel Sans', "Segoe UI", Roboto, Arial, sans-serif; }
.ug :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.ug-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---- title band */
.ug-hero { background: var(--ink); color: var(--paper); padding: 72px 0 56px; }
.ug-eyebrow { font: 500 13px 'DM Mono', ui-monospace, monospace; color: #FF5A47; letter-spacing: .04em; }
.ug-hero h1 { margin: 12px 0 14px; font: 700 clamp(36px, 6vw, 64px)/1.05 'Funnel Display', sans-serif; letter-spacing: -.01em; }
.ug-hero p { margin: 0; max-width: 760px; color: #C9C5BE; font-size: 19px; }
.ug-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ug-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #151517; color: var(--paper); font: 600 14px 'Funnel Sans', sans-serif; text-decoration: none; }
.ug a.ug-chip { color: var(--paper); }
.ug a.ug-chip:hover { background: #1C1C1F; }

/* ---- page: contents on the left, guide on the right */
.ug-body { background: var(--paper); padding: 48px 0 80px; }
.ug-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.ug-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; }
.ug-toc span { display: block; margin-bottom: 10px; font: 500 12px 'DM Mono', monospace; color: var(--tx3); }
.ug-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: ug; }
.ug-toc li { counter-increment: ug; }
.ug-toc a { display: block; padding: 6px 0 6px 10px; border-left: 2px solid var(--line); color: var(--tx3); font-size: 15px; line-height: 1.35; text-decoration: none; }
.ug-toc a::before { content: counter(ug) ". "; color: var(--muted); }
.ug-toc a:hover { color: var(--tx); border-left-color: var(--red); }

.ug-main { min-width: 0; }
.ug-section { padding: 8px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; scroll-margin-top: 90px; }
.ug-section:last-child { border-bottom: 0; margin-bottom: 0; }
.ug h2 { margin: 0 0 12px; font: 700 34px/1.15 'Funnel Display', sans-serif; letter-spacing: -.01em; }
.ug h3 { margin: 28px 0 8px; font: 700 21px/1.3 'Funnel Display', sans-serif; scroll-margin-top: 90px; }
.ug p { margin: 0 0 14px; }
.ug-lead { color: var(--tx3); font-size: 18px; }
.ug a { color: var(--link); }
.ug b, .ug strong { font-weight: 700; color: var(--tx); }
.ug ol.ug-steps { margin: 6px 0 18px; padding: 0; list-style: none; counter-reset: st; }
.ug ol.ug-steps > li { counter-increment: st; position: relative; padding: 2px 0 10px 44px; }
.ug ol.ug-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 14px 'Funnel Sans', sans-serif; }
.ug ul { margin: 6px 0 18px; padding-left: 22px; }
.ug li { margin-bottom: 6px; }
.ug kbd, .ug .ug-ui { font: 600 .92em 'Funnel Sans', sans-serif; background: #EAE6DD; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

/* ---- text beside screenshots */
.ug-row { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; align-items: start; margin: 18px 0 8px; }
/* Two screenshots: the text across the full width, the screenshots side by side under it. */
.ug-row.ug-two { grid-template-columns: repeat(2, 270px); justify-content: start; column-gap: 36px; }
.ug-row.ug-two > .ug-text { grid-column: 1 / -1; }
.ug-row > .ug-text { min-width: 0; }
.ug-shots { display: flex; flex-wrap: wrap; gap: 24px; margin: 18px 0 8px; }
.ug figure { margin: 0; width: 270px; max-width: 100%; }
.ug figure img { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #1C1C1F; background: #0B0E17; box-shadow: 0 14px 34px rgba(11, 11, 12, .18); }
.ug figcaption { margin-top: 10px; color: var(--tx3); font-size: 14px; line-height: 1.45; }

/* ---- callouts */
.ug-note { margin: 16px 0; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--link); }
.ug-note.ug-ios { border-left-color: #8E8E93; }
.ug-note.ug-warn { border-left-color: #F2B33D; }
.ug-note > :last-child { margin-bottom: 0; }
.ug-note-label { display: block; margin-bottom: 4px; font: 500 12px 'DM Mono', monospace; color: var(--tx3); }

/* ---- tables */
.ug table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 16px; }
.ug th, .ug td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ug th { background: #F0EDE6; font-weight: 700; }
.ug tr:last-child td { border-bottom: 0; }
.ug-table-scroll { overflow-x: auto; }

/* ---- questions */
.ug details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.ug summary { cursor: pointer; font-weight: 700; }
.ug details[open] summary { margin-bottom: 10px; }

@media (max-width: 1000px) {
    .ug-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .ug-toc { position: static; max-height: none; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
    .ug-toc ol { columns: 2; column-gap: 24px; }
    .ug-row { grid-template-columns: 1fr; }
    .ug-row > figure { justify-self: center; }
    .ug-row.ug-two { grid-template-columns: repeat(2, minmax(0, 270px)); justify-content: center; column-gap: 20px; }
}
@media (max-width: 720px) {
    .ug-in { padding: 0 16px; }
    .ug-hero { padding: 48px 0 40px; }
    .ug h2 { font-size: 28px; }
    .ug-toc ol { columns: 1; }
    .ug figure { width: 240px; }
    .ug-row.ug-two { column-gap: 12px; }
    .ug-row.ug-two figure { width: auto; }
    .ug-row.ug-two figure img { border-width: 4px; border-radius: 18px; }
    .ug-shots { justify-content: center; }
}
