/* The documentation pages: the four landing pages (deck tracker, tournament tracker, sideboard planner, what is MyDeckStats)
   and the Player Guide. Built on the tokens of homepage.css, next to index-pages.css. */

.dc-page { max-width: 1160px; margin: 0 auto; padding: 1.5rem 1rem 4rem; display: flex; flex-direction: column; gap: 2.5rem; color: var(--text-primary, #f8f9fa); }
.dc-page *, .dc-page *::before, .dc-page *::after { box-sizing: border-box; }
.dc-page a { text-underline-offset: 3px; }

/* hero */
.dc-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2rem; border-radius: 24px; background: radial-gradient(900px 340px at 0% 0%, rgba(143, 92, 255, 0.18), transparent 60%), var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-eyebrow { display: inline-block; margin-bottom: 0.7rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-secondary, #d998ff); }
.dc-hero h1 { margin: 0 0 0.9rem; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.dc-lead { margin: 0 0 1.4rem; font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary, #c4d1e3); max-width: 56ch; }
.dc-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.16)); background: transparent; color: var(--text-primary, #f8f9fa); font-size: 0.95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dc-btn:hover { background: var(--bg-hover, #21182d); color: #fff; }
.dc-btn--primary { background: #7a42ee; border-color: #7a42ee; color: #fff; }
.dc-btn--primary:hover { background: #8a58f2; border-color: #8a58f2; }
.dc-btn--light { background: #fff; border-color: #fff; color: #1b1030; }
.dc-btn--light:hover { background: #efe8ff; color: #1b1030; }
.dc-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.dc-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-secondary, #c4d1e3); font-size: 0.78rem; font-weight: 600; }
.dc-chip i { color: #6ee7a8; }

/* a screenshot in a browser frame */
.dc-frame { margin: 0; border-radius: 16px; overflow: hidden; background: #0d0912; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.14)); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.dc-frame__bar { display: flex; gap: 6px; padding: 0.6rem 0.8rem; background: #171220; border-bottom: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dc-frame img { display: block; width: 100%; height: auto; }
.dc-frame figcaption { padding: 0.55rem 0.9rem; font-size: 0.75rem; color: var(--text-muted, #8c9ab0); border-top: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); background: #171220; }

/* sections */
.dc-section { display: flex; flex-direction: column; gap: 1.2rem; }
.dc-head { display: flex; flex-direction: column; gap: 0.4rem; max-width: 62ch; }
.dc-head h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.dc-head p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--text-muted, #8c9ab0); }
.dc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dc-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem; border-radius: 18px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.dc-card p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary, #c4d1e3); }
.dc-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(143, 92, 255, 0.18); color: #e4d3ff; font-size: 1rem; }

/* a screenshot beside its text, alternating sides */
.dc-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.dc-split:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.dc-split:nth-child(even) .dc-frame { order: 2; }
.dc-split__text { display: flex; flex-direction: column; gap: 0.7rem; }
.dc-split__text h3 { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.dc-split__text p { margin: 0; font-size: 0.98rem; line-height: 1.65; color: var(--text-secondary, #c4d1e3); }
.dc-split__text ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.dc-split__text li, .dc-checks li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.6rem; font-size: 0.92rem; line-height: 1.5; color: var(--text-secondary, #c4d1e3); }
.dc-split__text li::before, .dc-checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900; font-size: 0.75rem; color: #6ee7a8; padding-top: 0.2rem; }

/* how it works */
.dc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: dcstep; margin: 0; padding: 0; list-style: none; }
.dc-steps li { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem; border-radius: 18px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); counter-increment: dcstep; }
.dc-steps li::before { content: counter(dcstep); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #7a42ee; color: #fff; font-weight: 800; font-size: 0.9rem; }
.dc-steps b { font-size: 1.02rem; }
.dc-steps span { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary, #c4d1e3); }

.dc-box { padding: 1.5rem; border-radius: 20px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-box h3 { margin: 0 0 0.8rem; font-size: 1.1rem; font-weight: 700; }
.dc-checks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; }

/* related pages */
.dc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.dc-link { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); color: inherit; text-decoration: none; }
.dc-link:hover { border-color: rgba(143, 92, 255, 0.5); background: var(--bg-hover, #21182d); color: inherit; }
.dc-link b { font-size: 0.95rem; }
.dc-link b i { margin-left: 0.3rem; font-size: 0.75rem; color: var(--accent-secondary, #d998ff); }
.dc-link span { font-size: 0.82rem; line-height: 1.5; color: var(--text-muted, #8c9ab0); }

/* faq */
.dc-faq { display: flex; flex-direction: column; gap: 0.6rem; max-width: 820px; }
.dc-faq details { border-radius: 14px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 0.9rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; }
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900; font-size: 0.75rem; color: var(--text-muted, #8c9ab0); transition: transform 0.15s ease; }
.dc-faq details[open] summary::after { transform: rotate(180deg); }
.dc-faq details > div { padding: 0 1.2rem 1.1rem; font-size: 0.92rem; line-height: 1.65; color: var(--text-secondary, #c4d1e3); }
.dc-faq summary:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; border-radius: 14px; }

/* closing call to action */
.dc-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2rem; border-radius: 24px; background: linear-gradient(135deg, #5b2fc4, #8f5cff); color: #fff; }
.dc-cta h2 { margin: 0.2rem 0 0.3rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; }
.dc-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.dc-cta .dc-eyebrow { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* the mock round-entry panel of the tournament tracker */
.dc-mock { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.3rem; background: #110d18; }
.dc-mock__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.dc-mock__row span:first-child { color: var(--text-muted, #8c9ab0); }
.dc-mock__row b { font-weight: 700; }
.dc-mock__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dc-mock__presets { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dc-mock__preset { padding: 0.45rem 0.8rem; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 0.82rem; font-weight: 600; color: var(--text-secondary, #c4d1e3); }
.dc-mock__preset.is-on { background: #7a42ee; color: #fff; }

/* the Player Guide: contents on the left, sections on the right */
.dc-guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.dc-toc { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem; border-radius: 16px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); max-height: calc(100vh - 2rem); overflow-y: auto; }
.dc-toc p { margin: 0 0 0.4rem 0.5rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dc-toc a { display: flex; align-items: center; gap: 0.6rem; min-height: 40px; padding: 0 0.6rem; border-radius: 10px; color: var(--text-secondary, #c4d1e3); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.dc-toc a:hover { background: var(--bg-hover, #21182d); color: #fff; }
.dc-toc a i { width: 1.1rem; text-align: center; color: var(--text-muted, #8c9ab0); font-size: 0.8rem; }
.dc-body { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.dc-sec { display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; border-radius: 20px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); scroll-margin-top: 1rem; }
.dc-sec > header { display: flex; align-items: center; gap: 0.9rem; }
.dc-sec > header h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.dc-sec h3 { margin: 0.4rem 0 0; font-size: 0.98rem; font-weight: 700; }
.dc-sec p { margin: 0; font-size: 0.94rem; line-height: 1.65; color: var(--text-secondary, #c4d1e3); }
.dc-sec ul, .dc-sec ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary, #c4d1e3); }
.dc-sec li strong, .dc-sec p strong { color: #fff; }
.dc-sec a { color: var(--accent-secondary, #d998ff); }
.dc-tip { display: flex; gap: 0.7rem; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(143, 92, 255, 0.12); color: #e4d3ff; font-size: 0.88rem; line-height: 1.55; }
.dc-tip i { margin-top: 0.2rem; }
.dc-tip--ok { background: rgba(34, 197, 94, 0.12); color: #d6f5e3; }
.dc-tip--ok i { color: #6ee7a8; }
.dc-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.dc-mini { padding: 1rem; border-radius: 14px; background: var(--bg-dark, #110d18); }
.dc-mini h3 { margin: 0 0 0.3rem; font-size: 0.92rem; }
.dc-mini p { font-size: 0.85rem; }
.dc-table-wrap { overflow-x: auto; }
.dc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dc-table th { padding: 0.5rem 0.9rem 0.5rem 0; text-align: left; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); border-bottom: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-table td { padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); color: var(--text-secondary, #c4d1e3); vertical-align: top; }
.dc-table td:first-child { width: 28%; font-weight: 700; color: #fff; }
.dc-table tr:last-child td { border-bottom: 0; }
.dc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.dc-tools .dc-mini { display: flex; flex-direction: column; gap: 0.35rem; }
.dc-help { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; border-radius: 20px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.dc-help h2 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.dc-help p { margin: 0; color: var(--text-muted, #8c9ab0); font-size: 0.9rem; }

.dc-sec .dc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0; font-size: inherit; }
.dc-sec .dc-steps li { padding: 1.1rem; background: var(--bg-dark, #110d18); border: 0; }
.dc-sec .dc-frame { max-width: 820px; }

@media (max-width: 1100px) {
    .dc-hero { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
    .dc-split, .dc-split:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .dc-split:nth-child(even) .dc-frame { order: 0; }
    .dc-guide { grid-template-columns: minmax(0, 1fr); }
    .dc-toc { position: static; max-height: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.3rem; padding: 0.5rem; scrollbar-width: none; }
    .dc-toc p { display: none; }
    .dc-toc a { flex: none; min-height: 40px; white-space: nowrap; }
}
@media (max-width: 767px) {
    .dc-page { gap: 2rem; padding: 1rem 0.9rem 3rem; }
    .dc-hero { padding: 1.2rem; border-radius: 20px; }
    .dc-cards, .dc-steps, .dc-sec .dc-steps, .dc-links, .dc-checks, .dc-minis, .dc-tools { grid-template-columns: minmax(0, 1fr); }
    .dc-actions .dc-btn { flex: 1 1 100%; }
    .dc-sec { padding: 1.2rem; }
    .dc-cta { padding: 1.4rem; }
    .dc-cta .dc-btn { width: 100%; }
}
