/* The guide (/guide, templates/guide.html): one narrow reading column in the
   theme's own tokens. Linked after theme.css. The page carries no <style> and
   no script, so everything about how it looks is in this file.

   Contents
     1  Column and first screen     3  Lists, the competitors' card
     2  Steps                       4  Not there yet, small screens */

/* ---- 1. Column and first screen ------------------------------------------ */
/* The top bar lines up with the column instead of the full page width. */
.page-guide { --page-max: 43rem; --gutter: 1.25rem; }
.page-guide main { max-width: var(--page-max); padding: 0 var(--gutter) 4.5rem; }
.page-guide p { margin: .55rem 0; }

/* What it is and the one thing to do next: nothing else is on the first screen. */
.guide-first { display: flex; flex-direction: column; justify-content: center; min-height: min(70vh, 33rem); padding: 3rem 0 2.6rem; }
.guide-kicker { margin: 0 0 .7rem; color: var(--gold-deep); font-size: .82rem; font-weight: 650; letter-spacing: .16em; }
.page-guide h1 { margin: 0 0 1rem; font-size: clamp(2rem, 7vw, 2.7rem); line-height: 1.2; letter-spacing: -.01em; }
.guide-lede { max-width: 35rem; margin: 0; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.8; }
.guide-go { margin: 2rem 0 0; }
.guide-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: 0 1.7rem;
	border: 1px solid var(--lapis-strong); border-radius: 12px; color: #fff; text-decoration: none;
	background: linear-gradient(180deg, #2a4f93 0%, var(--lapis) 55%, #193669 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(10, 23, 54, .25), 0 8px 18px -10px rgba(28, 61, 120, .75);
	font-size: 1.1rem; font-weight: 650; line-height: 1.3; text-align: center; -webkit-tap-highlight-color: transparent;
	transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}
.guide-button:hover { border-color: var(--lapis-deep); color: #fff; background: linear-gradient(180deg, #23457f 0%, var(--lapis-strong) 55%, #132b56 100%); }
.guide-button:active { transform: translateY(1px); }
.guide-aside { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }

.guide-section { margin-top: 3.2rem; padding-top: 2.3rem; border-top: 1px solid var(--hairline); scroll-margin-top: var(--bar-h); }
.page-guide h2 { margin: 0 0 1.25rem; font-size: 1.42rem; font-weight: 700; line-height: 1.35; }

/* The name of a button or a heading, exactly as its page shows it. A name stays
   in one piece and takes the punctuation after it along to the next line. The
   few that are longer than a phone's line are marked "long": a box of their
   own, which wraps inside itself, at its spaces and punctuation, only where it
   is wider than the whole line. Words, not punctuation, follow a long one. */
.page-guide .ui { padding: .1em .4em; border-radius: 6px; background: var(--lapis-tint); color: var(--lapis-deep); font-size: .95em; font-weight: 600; white-space: nowrap; }
.page-guide .ui.long { display: inline-block; max-width: 100%; padding: .05em .4em; line-height: 1.55; white-space: normal; word-break: keep-all; }

/* ---- 2. Steps ------------------------------------------------------------ */
/* One numbered row per step: the sentence to act on, then what to expect. */
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-steps > li { position: relative; margin: 0; padding: 0 0 1.7rem 3.1rem; counter-increment: guide-step; }
.guide-steps > li:last-child { padding-bottom: 0; }
.guide-steps > li::before {
	content: counter(guide-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.15rem; height: 2.15rem;
	border-radius: 50%; background: var(--surface); color: var(--lapis); box-shadow: inset 0 0 0 1.5px var(--lapis-line);
	font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* A hairline joins one number to the next. */
.guide-steps > li::after { content: ""; position: absolute; left: 1.07rem; top: 2.55rem; bottom: .4rem; width: 1px; background: var(--hairline); }
.guide-steps > li:last-child::after { content: none; }
.page-guide .guide-step { margin: 0 0 .3rem; padding-top: .18rem; color: var(--ink); font-size: 1.07rem; font-weight: 650; line-height: 1.65; }
.guide-steps p + p { margin: 0; color: var(--ink-soft); }

/* ---- 3. Lists, the competitors' card -------------------------------------- */
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list > li { margin: 0; padding: .9rem 0; border-top: 1px solid #f0ebe0; color: var(--ink-soft); }
.guide-list > li:first-child { padding-top: 0; border-top: 0; }
.guide-list > li:last-child { padding-bottom: 0; }
.guide-list > li > strong { display: block; margin-bottom: .12rem; color: var(--ink); font-size: 1.03rem; }
.guide-plain > li { color: var(--ink); }
.guide-ask { margin: 1.8rem 0 0; color: var(--ink); font-weight: 650; }

.guide-card { padding: 1.7rem 1.6rem 1.6rem; border: 1px solid var(--hairline); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.guide-card > p:first-of-type { margin: 0 0 1.3rem; color: var(--ink-soft); }
.page-guide .guide-advice { margin: 1.3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--hairline); color: var(--ink); }

/* ---- 4. Not there yet, small screens --------------------------------------- */
/* Set apart and greyed, so nobody goes looking for these. */
.guide-soon { padding: 1.5rem 1.5rem 1.4rem; border: 1px dashed var(--field-line); border-radius: var(--radius); }
.guide-soon h2 { margin-bottom: 1rem; color: var(--ink-soft); }
.guide-flag { display: inline-block; margin-left: .5rem; padding: .12rem .65rem; border-radius: 1rem; background: var(--paper-deep); color: var(--ink-soft); font-size: .78rem; font-weight: 650; line-height: 1.55; vertical-align: .22em; white-space: nowrap; }
.guide-soon .guide-list > li { padding: .6rem 0; color: var(--muted); }
.guide-soon .guide-list > li > strong { color: var(--ink-soft); }

@media (max-width: 520px) {
	.page-guide { --gutter: 1rem; }
	.page-guide main { padding-bottom: 3.5rem; }
	.guide-first { padding: 2.4rem 0 2.2rem; }
	.guide-lede { font-size: 1.05rem; }
	.guide-button { width: 100%; padding: 0 1rem; }
	.guide-section { margin-top: 2.6rem; padding-top: 1.9rem; }
	.page-guide h2 { font-size: 1.3rem; }
	.guide-steps > li { padding-left: 2.8rem; }
	.guide-card { padding: 1.4rem 1.15rem 1.3rem; }
	.guide-soon { padding: 1.3rem 1.15rem 1.2rem; }
}
@media print {
	.guide-first { min-height: 0; }
	.guide-go, .guide-aside { display: none; }
}
