/* Public club manual (manual.php). A long-form handbook page: readable
   measure, numbered walkthrough, rule cards and callouts. Colours and the
   display face come from the site tokens in styles.css. */

.manual {
    max-width: 52rem;
    margin: 0 auto;
}

.manual-eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 2.75rem 0 -.5rem;
}

.manual-rules {
    list-style: none;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.manual-rules li {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .7rem .95rem;
    margin: 0;
}

.manual-rules li strong {
    display: block;
    margin-bottom: .15rem;
}

.manual-steps {
    list-style: none;
    padding: 0;
    counter-reset: manual-step;
}

.manual-steps > li {
    counter-increment: manual-step;
    position: relative;
    padding: 0 0 1.4rem 3.1rem;
    margin: 0 0 0 1.1rem;
    border-left: 2px solid var(--border);
}

.manual-steps > li:last-child {
    border-left-color: transparent;
    padding-bottom: .25rem;
}

.manual-steps > li::before {
    content: counter(manual-step);
    position: absolute;
    left: -1.15rem;
    top: -.15rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--sand);
    font-family: var(--font-display);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manual-steps > li > strong:first-child {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: .25rem;
}

.manual-callout {
    border-left: 4px solid var(--brass);
    background: var(--cream);
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0;
}

.manual-callout.manual-stop {
    border-left-color: var(--danger);
}

.manual-callout > strong:first-child {
    display: block;
    margin-bottom: .15rem;
}

.manual-pages dt {
    font-weight: 600;
    color: var(--ink);
    margin-top: 1rem;
}

.manual-pages dd {
    margin: .15rem 0 0;
}

.manual-footnote {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 3px double var(--brass);
    color: var(--muted);
    font-size: .9rem;
}

@media print {
    .manual-steps > li,
    .manual-rules li,
    .manual-callout {
        break-inside: avoid;
    }

    .manual .section-title {
        break-after: avoid;
    }
}
