/* The chrome and prose on a task page.
 *
 * A task page is the only place in the site where the standalone-page furniture
 * and the Vue application share one document, and that is why this file exists
 * rather than the page simply loading legal.css.
 *
 * The application's stylesheet carries Tailwind's preflight, which resets
 * h1-h6 to inherit, `a` to color: inherit and `border` to 0. Loaded after
 * legal.css it flattens the masthead, the headings and the footer into
 * unstyled text -- which is exactly what it did. Loading legal.css afterwards
 * instead fixes the chrome and breaks the other half: legal.css styles a
 * DOCUMENT, with bare `p`, `a`, `table` and `main` selectors that would reach
 * straight into the application.
 *
 * So the task page gets its own file, loaded last, with every rule scoped to a
 * region the application does not occupy: the masthead, the footer, and the
 * .task-band prose either side of #app. Nothing here can leak into the tool,
 * and nothing in the tool's stylesheet can flatten this.
 *
 * Values are lifted from legal.css so the two look identical. Colours are
 * tokens from palette.css -- never a literal, same rule as everywhere else.
 */

/* ---------------------------------------------------------------- chrome -- */

.masthead {
    background: var(--raised);
    border-bottom: 1px solid var(--rule);
    padding: 14px 24px;
}
.masthead-inner {
    max-width: 62rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
}
.masthead a {
    font-weight: 700;
    text-decoration: none;
    color: var(--brand);
}
.masthead a:hover { color: var(--brand-over); }
.masthead .site {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.masthead .site img { display: inline-block; }
.masthead-right { display: inline-flex; align-items: center; gap: 14px; }

body > footer {
    background: var(--footer-bg);
    color: var(--on-brand);
    text-align: center;
    padding: 2.2rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.65;
}
body > footer a { color: var(--on-brand); text-decoration: underline; }
body > footer p { margin: 0 0 0.4rem; }
body > footer .fine { color: var(--on-brand-fine); }

/* ----------------------------------------------------------------- prose -- */

.task-band {
    max-width: 62rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.65;
}
.task-band h1 {
    font-weight: 900;
    font-size: clamp(1.7rem, 5vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.35em;
    color: var(--ink);
}
.task-band h2 {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 2.4rem 0 0.8rem;
    color: var(--ink);
}
.task-band h3 {
    font-weight: 700;
    font-size: 1rem;
    margin: 1.5rem 0 0.4rem;
    color: var(--ink);
}
.task-band p { margin: 0 0 0.9rem; }
.task-band a { color: var(--brand); font-weight: 700; }
.task-band a:hover { color: var(--brand-over); }
.task-band code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--sunk);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.task-lede {
    font-size: 1.16rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 42rem;
    margin: 0 0 1.6rem;
}

.task-steps {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin: 1rem 0 2rem;
}
@media (min-width: 40rem) {
    .task-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.task-step { display: flex; flex-direction: column; gap: 0.4rem; }
.task-step .n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.95rem;
}
.task-step h3 { margin: 0; font-size: 1.05rem; }
.task-step p { margin: 0; color: var(--ink-soft); }

.task-faq { margin: 0 0 2rem; }
.task-faq h3 { margin: 1.4em 0 0.3em; font-size: 1.08rem; }
.task-faq p { margin: 0; color: var(--ink-soft); }

.task-related {
    border-top: 1px solid var(--rule);
    padding-top: 1.25rem;
    margin-bottom: 2.5rem;
}
