/* Adapter only. The active WordPress theme owns page width, navigation and H1. */
.ma-guides { font-family:var(--ma-font, inherit); color:var(--ma-navy, #1A2B48); line-height:1.75; }
.ma-guides .frame { margin:0; padding:0; width:auto; max-width:none; }
.ma-guides :is(h2,h3,h4) { font-family:inherit; color:var(--ma-navy, #1A2B48); line-height:1.3; }
.ma-guides h2 { margin:2.2em 0 .8em; scroll-margin-top:6rem; }
.ma-guides h3 { margin:1.4em 0 .65em; }
.ma-guides p { margin:.85em 0; }
.ma-guides a { color:#2563eb; text-underline-offset:.17em; }
.ma-guides a:hover { text-decoration:underline; }
.ma-guides :is(a,button,input,select,summary):focus-visible { outline:3px solid var(--ma-accent, #6b7bb0); outline-offset:3px; }
.ma-guides .hero { margin:0 0 1.8em; padding:0; background:transparent; border:0; }
.ma-guides .eyebrow { color:var(--ma-mid, #5a6482); font-size:.9em; }
.ma-guides .lede { font-size:1.08em; }
.ma-guides .meta-row { display:flex; flex-wrap:wrap; gap:.4em 1.2em; color:var(--ma-mid, #5a6482); font-size:.85em; }
.ma-guides .reading-layout { display:block; }
.ma-guides .contents { position:static; max-height:none; border:1px solid #e3e8f0; background:var(--ma-bg, #f6f9fc); padding:1em 1.3em; margin:1.5em 0; }
.ma-guides .contents h2 { margin:0 0 .5em; font-size:1.1em; }
.ma-guides .contents ol { margin:.4em 0; padding-left:1.4em; }
.ma-guides .chapter { min-width:0; }
.ma-guides :is(.concept,.warning,.interactive) { border:1px solid #e3e8f0; border-left:3px solid var(--ma-accent, #6b7bb0); border-radius:6px; padding:1em 1.2em; margin:1.4em 0; background:var(--ma-bg, #f6f9fc); }
.ma-guides .warning { border-left-color:#c07a2a; }
.ma-guides :is(.worked-example,.practice-question) { margin:1.5em 0; padding:0 0 1.1em; border-bottom:1px solid #e3e8f0; }
.ma-guides :is(ul,ol) { padding-left:1.5em; }
.ma-guides li { margin:.4em 0; }
.ma-guides .table-wrap { overflow-x:auto; margin:1.4em 0; }
.ma-guides table { border-collapse:collapse; width:100%; }
.ma-guides :is(th,td) { padding:.7em .9em; border:1px solid #e3e8f0; vertical-align:top; text-align:left; }
.ma-guides th { background:var(--ma-bg, #f6f9fc); }
.ma-guides caption { text-align:left; font-weight:600; margin-bottom:.6em; }
.ma-guides figure { margin:1.4em 0; }
.ma-guides :is(figcaption,.caption) { font-size:.9em; color:var(--ma-mid, #5a6482); }
.ma-guides figcaption { margin-top:.6em; }
.ma-guides .diagram-scroll { overflow-x:auto; border-radius:6px; }
.ma-guides .diagram-scroll-hint { display:none; }
@media (max-width:599px) {
    .ma-guides .diagram-scroll-hint { display:block; font-size:14px; margin:12px 0 6px; color:#5a6482; }
}
.ma-guides .diagram-scroll > svg { display:block; width:100%; min-width:34rem; height:auto; }
.ma-guides .visual > svg[role="img"] { display:block; width:100%; height:auto; }
.ma-guides details { margin:.8em 0; padding:.7em 0; border-top:1px solid #e3e8f0; }
.ma-guides summary { display:list-item; cursor:pointer; font-weight:600; color:var(--ma-navy, #1A2B48); }
.entry-content .ma-guides li { margin-left:0; }
.entry-content .ma-guides .ma-guide-index > li { list-style:none; }
.ma-guides .interactive :is(button,select,input) { font:inherit; accent-color:var(--ma-navy, #1A2B48); }
.ma-guides .interactive :is(button,select) { color:var(--ma-navy, #1A2B48); background:#fff; border:1px solid var(--ma-soft, #7a83a8); border-radius:4px; padding:.45em .7em; margin:.3em .3em .3em 0; }
.ma-guides .interactive button { cursor:pointer; }
.ma-guides .interactive button[aria-pressed="true"] { color:#fff; background:var(--ma-navy, #1A2B48); }
.ma-guides .interactive button:disabled { cursor:default; opacity:.55; }
.ma-guides .interactive input[type="range"] { display:block; width:min(100%, 32rem); margin:.8em 0; }
.ma-guides .interactive label { display:inline-block; margin:.35em .6em .35em 0; }
.ma-guides .interactive [role="status"] { padding:.6em 0; color:var(--ma-navy, #1A2B48); }
.ma-guides .katex-display { overflow-x:auto; overflow-y:hidden; padding:.3em 0; }
.ma-guides .related-guides { margin:2em 0; padding:1em 0; border-top:1px solid #e3e8f0; }
.ma-guides .ma-guide-index { display:grid; grid-template-columns:1fr; gap:1.4em; list-style:none; padding:0; margin:1.8em 0; }
.ma-guides .ma-guide-index li { margin:0; padding:1.2em; border:1px solid #e3e8f0; border-radius:6px; background:var(--ma-bg, #f6f9fc); }
.ma-guides .ma-guide-index h2 { font-size:1.35em; margin:.4em 0; }
.ma-guides .ma-guide-index .eyebrow { margin:0; }
.ma-guides .ma-guide-groups { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 40px; }
.ma-guides .ma-guide-groups a { display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border:1px solid #cbded9; border-radius:999px; text-decoration:none; background:#f2f7f5; font-size:.9em; }
.ma-guides .ma-guide-groups a span { flex-shrink:0; }
.ma-guides .ma-guide-collection { margin:0 0 56px; }
.ma-guides .ma-guide-collection > h2 { padding-bottom:14px; border-bottom:1px solid #dce6e7; }
.ma-guides .ma-guide-collection .ma-guide-index { margin-top:24px; }
.ma-guides .ma-guide-index h3 { font-size:1.35em; margin:.4em 0; }
.ma-guides.ma-guide-pilot .ma-guide-index h3 { font-size:1.375rem; margin:10px 0 14px; line-height:1.35; }
.ma-guides.ma-guide-pilot .ma-guide-index h3 a { color:#1a2b48 !important; text-decoration:none; }
.ma-guides.ma-guide-pilot .ma-guide-index h3 a::after { content:""; position:absolute; inset:0; }
.ma-guides.ma-guide-pilot .ma-guide-index h3 a:focus-visible { outline:none; }
.ma-guides .interactive input[type="number"] { max-width:100%; width:8em; padding:8px; border:1px solid #a5b8c5; border-radius:6px; color:#1a2b48; background:white; }
.ma-guides .interactive output { overflow-wrap:anywhere; }
@media (max-width:599px) {
    /* Long inline results stay readable inside a narrow worked-example card. */
    .ma-guides .chapter :not(.katex-display) > .katex { display:inline-block; max-width:100%; overflow-x:auto; overflow-y:hidden; vertical-align:middle; padding:.12em 0; box-sizing:border-box; }
}
/* Attribute selectors also cover SVG elements created by the interactive scripts. */
.ma-guides svg [fill="#0e645b" i], .ma-guides svg [fill="#172c31" i] { fill:var(--ma-navy, #1A2B48); }
.ma-guides svg [stroke="#0e645b" i], .ma-guides svg [stroke="#172c31" i] { stroke:var(--ma-navy, #1A2B48); }
.ma-guides svg [fill="#71847e" i] { fill:var(--ma-mid, #5a6482); }
.ma-guides svg [stroke="#71847e" i] { stroke:var(--ma-mid, #5a6482); }
.ma-guides svg [fill="#dbe4de" i] { fill:#e3e8f0; }
.ma-guides svg [stroke="#dbe4de" i] { stroke:#e3e8f0; }
.ma-guides svg [fill="#f4f8f4" i] { fill:var(--ma-bg, #f6f9fc); }
.ma-guides svg [stroke="#f4f8f4" i] { stroke:var(--ma-bg, #f6f9fc); }
.ma-guides svg [fill="#e1a043" i] { fill:#c07a2a; }
.ma-guides svg [stroke="#e1a043" i] { stroke:#c07a2a; }
.ma-guides svg text { font-family:var(--ma-font, inherit); }
.ma-study-guide-page .site-header { display:none; }
.ma-study-guide-page .entry-title { color:var(--ma-navy, #1A2B48); line-height:1.15; }
@media (min-width:700px) {
    .ma-guides .ma-guide-index { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1100px) {
    .ma-study-guide-page .site-container { padding-top:220px; }
}

/* JC concept diagrams are drawn for the available reading width. */
.ma-guides .diagram-scroll.concept-diagram > svg,
.ma-guides.ma-guide-pilot .diagram-scroll.concept-diagram > svg { min-width:0; }
