/* Scoped to the article FAQ only. Existing hubs/widgets/tables keep their own styles. */
.mtg-afaq, .mtg-afaq * { box-sizing: border-box; }
.mtg-afaq {
    --mtg-afaq-ink: #263125;
    --mtg-afaq-olive: #52693d;
    --mtg-afaq-line: #dfe5d8;
    --mtg-afaq-soft: #f1f5e9;
    --mtg-afaq-paper: #fff;
    width: 100%;
    margin: 0 0 28px;
    border: 1px solid var(--mtg-afaq-line);
    border-radius: 12px;
    background: var(--mtg-afaq-paper);
    color: var(--mtg-afaq-ink);
    overflow: clip;
}
.entry-content h2.mtg-afaq-heading,
.wp-block-post-content h2.mtg-afaq-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    margin: 38px 0 14px;
    padding: 0;
    font-size: 25px;
    line-height: 1.3;
    scroll-margin-top: 100px;
}
.entry-content h2.mtg-afaq-heading > img.mtg-faq-mascot,
.wp-block-post-content h2.mtg-afaq-heading > img.mtg-faq-mascot {
    position: static;
    display: block;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    max-width: 76px;
    margin: 0;
    transform: none;
    object-fit: contain;
}
.mtg-afaq .mtg-afaq-item { margin: 0; padding: 0; }
.mtg-afaq .mtg-afaq-item + .mtg-afaq-item { border-top: 1px solid var(--mtg-afaq-line); }
.mtg-afaq .mtg-afaq-item[data-open="true"] { background: var(--mtg-afaq-soft); }
.entry-content .mtg-afaq h3.mtg-afaq-question,
.wp-block-post-content .mtg-afaq h3.mtg-afaq-question {
    margin: 0;
    padding: 0;
    font: inherit;
    border: 0;
    background: transparent;
    scroll-margin-top: 100px;
}
.mtg-afaq .mtg-afaq-button {
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 17px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mtg-afaq-ink);
    font-family: Manrope, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    cursor: pointer;
    white-space: normal;
}
.mtg-afaq .mtg-afaq-button:hover { background: #f5f7f0; color: var(--mtg-afaq-olive); }
.mtg-afaq .mtg-afaq-button:focus-visible {
    outline: 2px solid var(--mtg-afaq-olive);
    outline-offset: -4px;
}
.mtg-afaq .mtg-afaq-question-text { min-width: 0; overflow-wrap: anywhere; }
.mtg-afaq .mtg-afaq-toggle {
    position: relative;
    display: block;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    box-sizing: border-box;
    border: 1px solid var(--mtg-afaq-line);
    border-radius: 50%;
    color: var(--mtg-afaq-olive);
    background: var(--mtg-afaq-paper);
}
.mtg-afaq .mtg-afaq-toggle::before,
.mtg-afaq .mtg-afaq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border: 0;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.mtg-afaq .mtg-afaq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.mtg-afaq [aria-expanded="true"] .mtg-afaq-toggle {
    border-color: var(--mtg-afaq-olive);
    background: var(--mtg-afaq-olive);
    color: #fff;
}
.mtg-afaq [aria-expanded="true"] .mtg-afaq-toggle::after { display: none; }
.mtg-afaq .mtg-afaq-answer {
    padding: 0 20px 18px;
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.mtg-afaq .mtg-afaq-answer[hidden] { display: none !important; }
.mtg-afaq .mtg-afaq-answer > :first-child { margin-top: 0; }
.mtg-afaq .mtg-afaq-answer > :last-child { margin-bottom: 0; }
.mtg-afaq .mtg-afaq-answer p { color: inherit; }
.mtg-afaq .mtg-afaq-answer a { text-underline-offset: 3px; }
.mtg-afaq .mtg-afaq-answer img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
    .entry-content h2.mtg-afaq-heading,
    .wp-block-post-content h2.mtg-afaq-heading { min-height: 60px; gap: 12px; font-size: 22px; }
    .entry-content h2.mtg-afaq-heading > img.mtg-faq-mascot,
    .wp-block-post-content h2.mtg-afaq-heading > img.mtg-faq-mascot { flex-basis: 60px; width: 60px; max-width: 60px; height: 60px; }
    .mtg-afaq .mtg-afaq-button { padding: 15px 15px; font-size: 16px; gap: 12px; }
    .mtg-afaq .mtg-afaq-answer { padding: 0 15px 16px; font-size: 16px; }
}
@media print {
    .mtg-afaq { overflow: visible; border: 0; background: transparent; }
    .mtg-afaq .mtg-afaq-answer[hidden] { display: block !important; }
    .mtg-afaq .mtg-afaq-item { background: transparent !important; }
    .mtg-afaq .mtg-afaq-toggle { display: none; }
    .mtg-afaq .mtg-afaq-button { color: #000; background: transparent; }
    .mtg-afaq .mtg-afaq-item { break-inside: avoid; }
}
