/* Witchcrafter: Magnificent Maestros (TCG 12 Nov 2026).
   Shared by the Witchcrafter page (#tab-mams and its spotlight strip) and the Magistus page (#tab-wcm).
   Every colour comes from the --wcm-* tokens. output.css has no md: utilities, so the responsive layout lives here. */
:root {
    --wcm-ink: #e0e7ff;
    --wcm-text: #c7d2fe;
    --wcm-muted: #a5b4fc;
    --wcm-surface: rgba(40, 40, 68, 0.6);
    --wcm-surface-2: rgba(26, 26, 46, 0.85);
    --wcm-inset: rgba(0, 0, 0, 0.25);
    --wcm-border: #4a4e69;
    --wcm-gold: #facc15;
    --wcm-gold-soft: #fde68a;
    --wcm-violet: #a855f7;
    --wcm-violet-soft: #d8b4fe;
    --wcm-ok: #4ade80;
    --wcm-no: #f87171;
    --wcm-part: #fbbf24;
    --wcm-na: #93c5fd;
}

.wcm-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Spotlight strip above the tabs */
.wcm-spot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 56rem;
    margin: 0 auto 2.5rem;
    padding: 1.25rem;
    border: 1px solid var(--wcm-border);
    border-left: 4px solid var(--wcm-gold);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.35), var(--wcm-surface-2));
    color: var(--wcm-text);
}
.wcm-spot-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; align-self: start; max-width: 18rem; }
.wcm-spot-card { min-height: 0 !important; aspect-ratio: 59 / 86; font-size: 0.6rem; overflow: hidden; }
.wcm-spot-card img, .wcm-card-art img { display: block; width: 100%; height: auto; border-radius: 0.4rem; }
.wcm-kicker { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wcm-gold); }
.wcm-spot h2 { margin: 0 0 0.5rem; font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.wcm-spot p { margin: 0 0 0.75rem; line-height: 1.6; }
.wcm-spot-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.wcm-spot-chips a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem;
    border: 1px solid var(--wcm-border); border-radius: 9999px; background: var(--wcm-inset);
    color: var(--wcm-gold-soft); font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.wcm-spot-chips a:hover, .wcm-spot-chips a:focus-visible { border-color: var(--wcm-gold); color: #fff; }
@media (min-width: 768px) {
    .wcm-spot { grid-template-columns: minmax(0, 15rem) 1fr; align-items: center; }
}

/* Panel layout */
.wcm { color: var(--wcm-text); }
.wcm-sec, .wcm-line { margin-bottom: 3rem; scroll-margin-top: 4.5rem; }
.wcm [id] { scroll-margin-top: 4.5rem; }
.wcm-h2 { margin: 0 0 1rem; font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; text-align: center; color: #fff; }
@media (min-width: 768px) { .wcm-h2 { font-size: 1.9rem; } }
.wcm-lede { max-width: 46rem; margin: 0 auto 1.5rem; line-height: 1.7; color: var(--wcm-text); }
.wcm-note { margin: 1rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--wcm-muted); }
.wcm a { color: var(--wcm-gold-soft); }
.wcm ul { margin: 0; padding-left: 1.2rem; list-style: disc; }
.wcm li { margin: 0.35rem 0; line-height: 1.6; }

/* Two selectors: .wcm ul (list bullets, indent) would otherwise outrank the one-class rule. */
.wcm-release, .wcm .wcm-release { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.wcm-release li {
    margin: 0; padding: 0.25rem 0.75rem; border: 1px solid var(--wcm-border); border-radius: 9999px;
    background: var(--wcm-inset); font-size: 0.8rem; color: var(--wcm-gold-soft);
}

.wcm-tiles, .wcm-loops { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
    .wcm-tiles { grid-template-columns: repeat(3, 1fr); }
    .wcm-loops { grid-template-columns: repeat(2, 1fr); }
}
.wcm-tile, .wcm-loop {
    padding: 1.1rem 1.2rem; border: 1px solid var(--wcm-border); border-radius: 0.9rem; background: var(--wcm-surface);
}
.wcm-tile h3, .wcm-loop h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.wcm-tile h3 i { margin-right: 0.35rem; color: var(--wcm-gold); }
.wcm-tile p, .wcm-loop p { margin: 0; line-height: 1.6; }
.wcm-loop--ok { border-top: 3px solid var(--wcm-ok); }
.wcm-loop--no { border-top: 3px solid var(--wcm-no); }

/* Inner card picker */
.wcm-cardtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1rem; }
.wcm-cardtabs [role="tab"] {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
    min-height: 44px; padding: 0.4rem 0.95rem; border: 1px solid var(--wcm-border); border-radius: 0.9rem;
    background: var(--wcm-inset); color: var(--wcm-muted); font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2; cursor: pointer;
}
.wcm-ct-name { color: var(--wcm-ink); font-weight: 700; }
.wcm-ct-role { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wcm-muted); }
.wcm-cardtabs [role="tab"][aria-selected="true"] .wcm-ct-name { color: #fff; }
.wcm-cardtabs [role="tab"][aria-selected="true"] .wcm-ct-role { color: var(--wcm-gold-soft); }
.wcm-cardtabs [role="tab"]:hover { color: #fff; border-color: var(--wcm-violet); }
.wcm-cardtabs [role="tab"][aria-selected="true"] { border-color: var(--wcm-gold); background: rgba(250, 204, 21, 0.12); color: var(--wcm-gold-soft); }
.wcm-cardtabs [role="tab"]:focus-visible, .wcm-card:focus-visible { outline: 2px solid var(--wcm-gold); outline-offset: 3px; }
.wcm-card {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem;
    border: 1px solid var(--wcm-border); border-radius: 1rem; background: var(--wcm-surface);
}
.wcm-card[hidden] { display: none; }
.wcm-card > .cms-section { grid-column: 2; }
.wcm-card-art { width: 11rem; max-width: 100%; min-height: 0 !important; height: auto !important; aspect-ratio: 59 / 86; margin: 0 auto; align-self: start; }
.wcm-card-art:has(img), .wcm-spot-card:has(img) { border: 0; background: transparent; box-shadow: none; padding: 0; }
@media (min-width: 768px) {
    .wcm-card { grid-template-columns: 12rem 1fr; }
    .wcm-card-art { width: 12rem; margin: 0; }
}
@media (max-width: 767px) { .wcm-card > .cms-section { grid-column: 1; } }
.wcm-card h3 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.wcm-card h4 { margin: 1.1rem 0 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wcm-gold); }
/* Card profile: kicker + role tag, stat chips, role line, at-a-glance grid, card text by effect, rulings, copies */
.wcm-card-kicker {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wcm-muted);
}
.wcm-role-tag {
    padding: 0.1rem 0.6rem; border: 1px solid rgba(250, 204, 21, 0.45); border-radius: 9999px;
    background: rgba(250, 204, 21, 0.14); color: var(--wcm-gold-soft); font-weight: 700; letter-spacing: 0.05em;
}
.wcm-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.65rem 0 0; }
.wcm-stats div { padding: 0.3rem 0.65rem; border: 1px solid var(--wcm-border); border-radius: 0.55rem; background: var(--wcm-inset); }
.wcm-stats dt { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wcm-muted); }
.wcm-stats dd { margin: 0; font-size: 0.88rem; font-weight: 600; color: #fff; }
.wcm-stats .wcm-attr { margin-right: 0; }
.wcm-role {
    margin: 0.9rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--wcm-gold); border-radius: 0 0.6rem 0.6rem 0;
    background: rgba(250, 204, 21, 0.08); line-height: 1.6; color: var(--wcm-ink);
}
.wcm-role strong { color: var(--wcm-gold-soft); }
.wcm-glance { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin: 0.9rem 0 0; }
@media (min-width: 640px) { .wcm-glance { grid-template-columns: 1fr 1fr; } }
.wcm-glance div { padding: 0.55rem 0.75rem; border: 1px solid var(--wcm-border); border-radius: 0.6rem; background: var(--wcm-surface-2); }
.wcm-glance dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wcm-gold); }
.wcm-glance dd { margin: 0.15rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--wcm-ink); }
.wcm .wcm-effects { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.wcm .wcm-effects li {
    margin: 0; padding: 0.6rem 0.85rem; border-left: 3px solid var(--wcm-violet); border-radius: 0 0.5rem 0.5rem 0;
    background: var(--wcm-inset); font-size: 0.9rem; line-height: 1.65; color: var(--wcm-ink);
}
.wcm-effect-tag {
    display: inline-block; margin-right: 0.5rem; padding: 0 0.45rem; border-radius: 0.3rem; background: rgba(168, 85, 247, 0.25);
    color: var(--wcm-violet-soft); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 0.1em;
}
.wcm-rulings strong { color: #fff; }
.wcm-copies { margin: 1rem 0 0; font-size: 0.9rem; color: var(--wcm-muted); }
.wcm-copies b { color: var(--wcm-gold-soft); font-size: 1rem; }
.wcm-copies span { font-size: 0.8rem; }
.wcm-attr {
    display: inline-block; margin-right: 0.35rem; padding: 0 0.45rem; border-radius: 0.3rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #111827;
}
.wcm-attr--light { background: #fde68a; }
.wcm-attr--dark { background: #c4b5fd; }
.wcm-attr--fire { background: #fca5a5; }
.wcm-attr--water { background: #93c5fd; }
.wcm-attr--wind { background: #86efac; }
.wcm-attr--earth { background: #d6b38a; }
.wcm-attr--spell { background: #6ee7b7; }
.wcm-attr--trap { background: #f9a8d4; }

/* Tables (stacked on phones) */
.wcm-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.wcm-table th, .wcm-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--wcm-border); text-align: left; vertical-align: top; line-height: 1.55; }
.wcm-table thead th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wcm-gold); }
.wcm-table tbody th { font-weight: 600; color: #fff; }
@media (max-width: 639px) {
    .wcm-table--stack thead { display: none; }
    .wcm-table--stack tr { display: block; margin-bottom: 0.75rem; border: 1px solid var(--wcm-border); border-radius: 0.6rem; background: var(--wcm-surface); }
    .wcm-table--stack th, .wcm-table--stack td { display: block; border-bottom: 0; padding: 0.4rem 0.75rem; }
    .wcm-table--stack td::before { content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wcm-muted); }
}
.wcm-v { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; color: #111827; }
.wcm-v--ok { background: var(--wcm-ok); }
.wcm-v--no { background: var(--wcm-no); }
.wcm-v--part { background: var(--wcm-part); }
.wcm-v--na { background: var(--wcm-na); }

/* Lines */
.wcm-line-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0 0 1.5rem !important; padding: 0 !important; list-style: none !important; }
.wcm-line-tags li { margin: 0; padding: 0.2rem 0.7rem; border-radius: 9999px; background: rgba(168, 85, 247, 0.18); font-size: 0.8rem; color: var(--wcm-violet-soft); }
.wcm .wcm-step-n { background: #282844; color: #fff; }
.wcm-step-state { margin: 0.6rem 0 0; padding-top: 0.5rem; border-top: 1px dashed rgba(250, 204, 21, 0.3); font-size: 0.85rem; line-height: 1.55; color: var(--wcm-muted); }
.wcm-endboard { margin-top: 1.75rem; padding: 1.25rem; border: 1px solid rgba(250, 204, 21, 0.45); border-radius: 1rem; background: var(--wcm-surface); }
.wcm-endboard h3 { margin: 0 0 0.5rem; font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700; color: var(--wcm-gold-soft); }
.wcm-endboard h4 { margin: 1rem 0 0.35rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wcm-gold); }
.wcm-endboard b { color: #fff; }
.wcm-verified { margin: 1rem 0 0; font-size: 0.82rem; color: var(--wcm-ok); }

/* Checker */
.wcm-checker { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; max-width: 46rem; margin: 0 auto; }
@media (min-width: 768px) { .wcm-checker { grid-template-columns: 1fr 1fr; } .wcm-checker fieldset:last-child { grid-column: 1 / -1; } }
.wcm-checker fieldset { margin: 0; padding: 0.9rem 1rem; border: 1px solid var(--wcm-border); border-radius: 0.8rem; background: var(--wcm-surface); }
.wcm-checker legend { padding: 0 0.35rem; font-weight: 700; color: #fff; }
.wcm-checker label { display: flex; align-items: flex-start; gap: 0.55rem; min-height: 44px; padding: 0.35rem 0; line-height: 1.45; cursor: pointer; }
.wcm-checker input { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--wcm-gold); }
.wcm-check-out { max-width: 46rem; margin: 1rem auto 0; padding: 1rem 1.2rem; border: 1px solid rgba(250, 204, 21, 0.45); border-radius: 0.8rem; background: var(--wcm-surface-2); }
.wcm-out-row { margin: 0.4rem 0; line-height: 1.55; }
.wcm-out-row b { color: #fff; }

/* Deck notes */
.wcm-deck { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .wcm-deck { grid-template-columns: 1fr 1fr; } }
.wcm-deck-col { padding: 1.1rem 1.2rem; border: 1px solid var(--wcm-border); border-radius: 0.9rem; background: var(--wcm-surface); }
.wcm-deck-col h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.wcm-deck-col p { margin: 0.6rem 0 0; line-height: 1.6; }
.wcm .wcm-counts { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.wcm-counts li { display: flex; gap: 0.6rem; margin: 0.25rem 0; }
.wcm-counts span { min-width: 2.4rem; font-weight: 700; color: var(--wcm-gold-soft); }
.wcm-counts em { color: var(--wcm-muted); font-style: normal; }

@media (prefers-reduced-motion: reduce) { .wcm-cardtabs [role="tab"], .wcm-spot-chips a { transition: none; } }

/* GuideTabs bar for pages that had no top-level tabs (Magistus). The Witchcrafter page keeps its own .tab-btn bar.
   Not .tab-button / .tab-content: the Magistus page's Key Cards script toggles every element with those classes. */
.wcm-tabs { display: flex; max-width: 100%; margin: 0 0 2rem; border-bottom: 2px solid var(--wcm-border); }
.wcm-tabs [role="tab"] {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 44px; margin-bottom: -2px; padding: 0.75rem 1.5rem; border: 0; border-bottom: 3px solid transparent;
    background: transparent; color: var(--wcm-muted); font: inherit; font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.wcm-tabs [role="tab"]:hover { color: #fff; background-color: rgba(168, 85, 247, 0.1); }
.wcm-tabs [role="tab"][aria-selected="true"] { color: var(--wcm-gold-soft); border-bottom-color: var(--wcm-gold); }
.wcm-tabs [role="tab"]:focus-visible, .wcm-shell-panel:focus-visible { outline: 2px solid var(--wcm-gold); outline-offset: 3px; border-radius: 0.375rem; }
.wcm-shell-panel:target:focus-visible { outline: none; }
.wcm-new {
    padding: 1px 6px; border-radius: 9999px; background: #9333ea; color: #fff; font-family: 'Inter', sans-serif;
    font-size: 0.65rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.05em; text-transform: uppercase;
}
.wcm-shell-panel[hidden] { display: none !important; }
@media (max-width: 639px) {
    .wcm-tabs [role="tab"] { flex: 1 1 0; padding: 0.75rem 0.5rem; font-size: 0.875rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .wcm-tabs [role="tab"] { transition: none; } }
@media print { .wcm-tabs { display: none; } .wcm-shell-panel[hidden] { display: block !important; } }
