/* ===========================================================================
   Arcane Tourneys — document pages (rules, policies, notices)
   Readable prose layout on the shared token system in base.css.
   =========================================================================== */

.doc-main {
    position: relative;
    z-index: 30;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) var(--gutter) 0;
}

.doc-header { max-width: 72ch; margin-bottom: 32px; }
.doc-header h1 { margin-bottom: 12px; }
.doc-header .lede { font-size: 17px; color: var(--muted); margin: 0; }
.doc-meta {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 18px; font-size: 13.5px; color: var(--faint);
}

.doc-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr) 240px; }
    .doc-toc { position: sticky; top: 24px; order: 2; }
    .doc-body { order: 1; }
}

/* Contents list */
.doc-toc nav { border-left: 2px solid var(--line); padding-left: 16px; }
.doc-toc h2 {
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--faint); margin-bottom: 12px;
}
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.doc-toc a { color: var(--muted); text-decoration: none; font-size: 13.5px; display: block; }
.doc-toc a:hover, .doc-toc a:focus-visible { color: var(--text); }

/* Prose */
.doc-body { max-width: 74ch; font-size: 16px; }
.doc-body section { margin-bottom: 40px; scroll-margin-top: 24px; }
.doc-body h2 {
    display: flex; align-items: baseline; gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.doc-body h2 .sec-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--ember);
    font-variant-numeric: tabular-nums;
    flex: none;
}
.doc-body h3 { margin-top: 26px; font-size: 17px; }
.doc-body ul, .doc-body ol { margin: 0 0 1em; padding-left: 22px; display: grid; gap: 8px; }
.doc-body li { line-height: 1.6; }
.doc-body strong { color: var(--text); font-weight: 600; }

/* A quoted rule the organizer must publish verbatim */
.doc-body blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius-sm);
    background: rgba(34, 211, 238, 0.06);
    color: var(--text);
    font-size: 15px;
}
.doc-body blockquote p:last-child { margin-bottom: 0; }

/* Placeholder the operator or counsel must complete before launch */
.placeholder {
    display: inline-block;
    padding: 1px 8px;
    border: 1px dashed rgba(251, 191, 36, 0.6);
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--warn);
    font-size: 14px;
    font-weight: 600;
}

.doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 14.5px;
}
.doc-body th, .doc-body td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.doc-body th { color: var(--faint); font-weight: 600; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; }

.doc-cta {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 12px;
}
