/* Approved guide design: enqueued only for the hub and all four chapters. */
/* The theme applies important body/link colours; these overrides stay inside the pilot. */
body.ma-study-guide-pilot-page { background:#fff !important; }
.ma-study-guide-pilot-page .site-container { max-width:1200px; overflow:visible; }
.ma-study-guide-pilot-page .site-inner { background:#fff; overflow:visible; }
.ma-study-guide-pilot-page .content { padding:32px 48px 64px; }
.ma-study-guide-pilot-page .entry-header { margin-bottom:24px; }
.ma-study-guide-pilot-page .entry-title { max-width:860px; font-size:2.25rem; line-height:1.22; font-weight:700; letter-spacing:-.035em; margin:0; }
.ma-study-guide-pilot-page .breadcrumb { color:#526275; font-size:.8125rem; padding:0 0 16px; margin-bottom:24px; border-color:#e6ecef; }
.ma-guides.ma-guide-pilot { --guide-ink:#1a2b48; --guide-muted:#526275; --guide-accent:#146b69; --guide-line:#dce6e7; color:var(--guide-ink); font-size:1.125rem; line-height:1.7; }
.ma-guides.ma-guide-pilot :is(p,li,td,th,label,button,select) { font-size:inherit; line-height:inherit; }
.ma-guides.ma-guide-pilot p { margin:0 0 1.15em; font-weight:400; }
.ma-guides.ma-guide-pilot :is(h2,h3,h4) { font-weight:700; letter-spacing:-.025em; line-height:1.3; }
.ma-guides.ma-guide-pilot h2 { font-size:1.75rem; margin:0 0 1.1rem; scroll-margin-top:130px; }
.ma-guides.ma-guide-pilot h3 { font-size:1.375rem; margin:1.75rem 0 1rem; }
.ma-guides.ma-guide-pilot h4 { font-size:1.125rem; }
.ma-guides.ma-guide-pilot a { color:#126665 !important; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.ma-guides.ma-guide-pilot a:hover { color:#174b65 !important; text-decoration-thickness:2px; }
.ma-guides.ma-guide-pilot :is(a,button,input,select,summary,.diagram-scroll,.table-wrap):focus-visible { outline:3px solid #146b69; outline-offset:4px; border-radius:3px; }
.ma-guides.ma-guide-pilot strong { font-weight:650; }
.ma-guides.ma-guide-pilot .hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:center; gap:32px; padding:24px 0 32px; margin-bottom:40px; border-bottom:1px solid var(--guide-line); }
.ma-guides.ma-guide-pilot .hero-copy { min-width:0; }
.ma-guides.ma-guide-pilot .eyebrow { color:var(--guide-accent); font-size:.8125rem; font-weight:650; letter-spacing:.045em; line-height:1.5; margin-bottom:14px; }
.ma-guides.ma-guide-pilot .lede { font-size:1.125rem; color:var(--guide-muted); max-width:60ch; }
.ma-guides.ma-guide-pilot .meta-row { gap:8px 20px; font-size:.8125rem; line-height:1.6; color:var(--guide-muted); }
.ma-guides.ma-guide-pilot .ma-guide-art { border:1px solid #dce9e6; border-radius:16px; overflow:hidden; background:#f2f7f5; }
.ma-guides.ma-guide-pilot .ma-guide-art svg { display:block; width:100%; height:auto; }
.ma-guides.ma-guide-pilot .reading-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:52px; align-items:start; }
.ma-guides.ma-guide-pilot .contents { position:sticky; top:110px; max-height:calc(100vh - 134px); overflow:auto; margin:0; padding:0 18px 0 0; border:0; border-right:1px solid var(--guide-line); background:none; border-radius:0; }
.ma-guides.ma-guide-pilot .contents details { margin:0; padding:0; border:0; }
.ma-guides.ma-guide-pilot .contents summary { padding:8px 0 12px; }
.ma-guides.ma-guide-pilot .contents summary h2 { display:inline; font-size:.875rem; letter-spacing:.02em; font-weight:700; }
.ma-guides.ma-guide-pilot .contents ol { list-style:none; margin:0; padding:0; }
.ma-guides.ma-guide-pilot .contents li { margin:0 0 4px; list-style:none; font-size:.875rem; line-height:1.55; }
.ma-guides.ma-guide-pilot .contents a { display:block; padding:8px 10px; margin-left:-10px; border-left:3px solid transparent; text-decoration:none; color:var(--guide-muted) !important; border-radius:0 5px 5px 0; }
.ma-guides.ma-guide-pilot .contents a:hover,
.ma-guides.ma-guide-pilot .contents a[aria-current="location"] { color:#125b59 !important; background:#eef6f3; border-left-color:#146b69; }
.ma-guides.ma-guide-pilot .chapter { min-width:0; max-width:740px; }
.ma-guides.ma-guide-pilot .section { margin:0 0 56px; padding:0 0 16px; border-bottom:1px solid var(--guide-line); }
.ma-guides.ma-guide-pilot .section:last-of-type { border-bottom:0; }
.ma-guides.ma-guide-pilot :is(.concept,.warning,.interactive) { margin:28px 0; padding:24px 28px; border:1px solid #dce9e6; border-left:3px solid #2f7d77; border-radius:0 12px 12px 0; background:#f2f8f5; }
.ma-guides.ma-guide-pilot .concept h3:first-child { margin-top:0; }
.ma-guides.ma-guide-pilot .concept h3 { font-size:1.125rem; }
.ma-guides.ma-guide-pilot :is(.concept,.warning,.interactive) > :last-child { margin-bottom:0; }
.ma-guides.ma-guide-pilot .warning { background:#fff8eb; border-color:#eeddb9; border-left-color:#a96718; }
.ma-guides.ma-guide-pilot .interactive { background:#f5f8fc; border-color:#dbe4ed; border-left-color:#527797; }
.ma-guides.ma-guide-pilot .worked-example { border:1px solid var(--guide-line); background:#fff; border-radius:12px; padding:26px 28px; margin:28px 0; box-shadow:0 4px 18px #1a2b4805; }
.ma-guides.ma-guide-pilot .worked-example h3:first-child { font-size:1.25rem; margin:0 0 20px; padding-bottom:16px; border-bottom:1px solid var(--guide-line); color:#125f5d; }
.ma-guides.ma-guide-pilot .worked-example > :last-child { margin-bottom:0; }
.ma-guides.ma-guide-pilot .steps { padding-left:1.65em; margin-bottom:20px; }
.ma-guides.ma-guide-pilot .steps li { padding-left:8px; margin:0 0 20px; }
.ma-guides.ma-guide-pilot .steps li::marker { font-weight:700; color:#146b69; }
.ma-guides.ma-guide-pilot figure { margin:28px 0; }
.ma-guides.ma-guide-pilot :is(figcaption,.caption) { font-size:.875rem; line-height:1.65; color:var(--guide-muted); }
.ma-guides.ma-guide-pilot figcaption { margin-top:12px; padding:0 4px; }
.ma-guides.ma-guide-pilot .diagram-scroll { border:1px solid var(--guide-line); border-radius:12px; background:#f6f9fc; }
.ma-guides.ma-guide-pilot .diagram-scroll > svg { min-width:var(--diagram-min-width,34rem); }
.ma-guides.ma-guide-pilot .table-wrap { border:1px solid var(--guide-line); border-radius:10px; margin:24px 0; }
.ma-guides.ma-guide-pilot table { margin:0; font-size:1rem; }
.ma-guides.ma-guide-pilot :is(th,td) { border:0; border-bottom:1px solid var(--guide-line); padding:14px 16px; }
.ma-guides.ma-guide-pilot th { background:#edf5f2; text-transform:none; letter-spacing:0; font-weight:650; }
.ma-guides.ma-guide-pilot caption { padding:12px 16px; margin:0; font-size:.875rem; }
.ma-guides.ma-guide-pilot tr:last-child td { border-bottom:0; }
.ma-guides.ma-guide-pilot .katex { font-size:1.08em; }
.ma-guides.ma-guide-pilot .katex-display { margin:1.2em 0; max-width:100%; }
.ma-guides.ma-guide-pilot .interactive :is(button,select) { font-size:.875rem; border-color:#a5b8c5; border-radius:8px; min-height:44px; padding:9px 12px; }
.ma-guides.ma-guide-pilot .interactive button[aria-pressed="true"] { background:#1a2b48; border-color:#1a2b48; }
.ma-guides.ma-guide-pilot .interactive input[type="range"] { min-height:32px; accent-color:#146b69; }
.ma-guides.ma-guide-pilot .related-guides { background:#f2f7f5; border:1px solid #dce9e6; border-radius:12px; padding:28px; margin:32px 0 0; }
.ma-guides.ma-guide-pilot .related-guides h2 { font-size:1.5rem; }
.ma-guides.ma-guide-pilot .related-guides ul { font-size:.9375rem; margin-bottom:0; }
.ma-guides.ma-guide-pilot.ma-guide-hub > p { max-width:72ch; color:var(--guide-muted); }
.ma-guides.ma-guide-pilot .ma-guide-index { gap:28px; margin:32px 0 0; }
.ma-guides.ma-guide-pilot .ma-guide-index > li { position:relative; padding:0; border:1px solid var(--guide-line); background:#fff; border-radius:14px; overflow:hidden; transition:border-color .15s ease,box-shadow .15s ease; }
.ma-guides.ma-guide-pilot .ma-guide-index > li:hover { border-color:#8bafa8; box-shadow:0 6px 24px #1a2b480a; }
.ma-guides.ma-guide-pilot .ma-guide-index .ma-guide-art { border:0; border-radius:0; border-bottom:1px solid #dce9e6; }
.ma-guides.ma-guide-pilot .ma-guide-index .ma-guide-art svg { max-height:200px; }
.ma-guides.ma-guide-pilot .ma-guide-card-copy { padding:26px 28px 30px; }
.ma-guides.ma-guide-pilot .ma-guide-index h2 { font-size:1.375rem; margin:10px 0 14px; line-height:1.35; }
.ma-guides.ma-guide-pilot .ma-guide-index h2 a { color:#1a2b48 !important; text-decoration:none; }
.ma-guides.ma-guide-pilot .ma-guide-index h2 a::after { content:""; position:absolute; inset:0; }
.ma-guides.ma-guide-pilot .ma-guide-index h2 a:focus-visible { outline:none; }
.ma-guides.ma-guide-pilot .ma-guide-index li:focus-within { outline:3px solid #146b69; outline-offset:4px; }
.ma-guides.ma-guide-pilot .ma-guide-card-copy > p:last-child { font-size:1rem; color:var(--guide-muted); margin:0; }
@media (min-width:1100px) {
  .ma-study-guide-pilot-page .site-container { padding-top:190px; }
}
@media (max-width:959px) {
  .ma-study-guide-pilot-page .content { padding:28px 28px 48px; }
  .ma-guides.ma-guide-pilot .reading-layout { display:block; }
  .ma-guides.ma-guide-pilot .chapter { max-width:740px; margin:0 auto; }
  .ma-guides.ma-guide-pilot .contents { position:static; max-height:none; padding:8px 20px; margin:0 auto 32px; max-width:740px; border:1px solid var(--guide-line); border-radius:10px; background:#f8faf9; }
  .ma-guides.ma-guide-pilot .contents summary { min-height:44px; padding:10px 0; }
  .ma-guides.ma-guide-pilot .contents li { font-size:1rem; }
}
@media (max-width:599px) {
  .ma-study-guide-pilot-page .content { padding:24px 20px 40px; }
  .ma-study-guide-pilot-page .entry-title { font-size:1.875rem; }
  .ma-study-guide-pilot-page .breadcrumb { font-size:.75rem; line-height:1.65; margin-bottom:18px; }
  .ma-guides.ma-guide-pilot { font-size:1.0625rem; }
  .ma-guides.ma-guide-pilot h2 { font-size:1.5rem; scroll-margin-top:100px; }
  .ma-guides.ma-guide-pilot h3 { font-size:1.25rem; }
  .ma-guides.ma-guide-pilot .hero { grid-template-columns:1fr; gap:24px; padding-top:0; margin-bottom:28px; padding-bottom:28px; }
  .ma-guides.ma-guide-pilot .hero .ma-guide-art { width:100%; max-width:400px; margin:auto; }
  .ma-guides.ma-guide-pilot .lede { font-size:1.0625rem; }
  .ma-guides.ma-guide-pilot .meta-row { font-size:.8125rem; gap:4px; flex-direction:column; }
  .ma-guides.ma-guide-pilot :is(.concept,.warning,.interactive,.worked-example,.related-guides) { padding:20px 18px; }
  .ma-guides.ma-guide-pilot .section { margin-bottom:36px; }
  .ma-guides.ma-guide-pilot .ma-guide-index { gap:24px; }
  .ma-guides.ma-guide-pilot .ma-guide-card-copy { padding:24px; }
  .ma-guides.ma-guide-pilot .ma-guide-index h2 { font-size:1.25rem; }
  .ma-guides.ma-guide-pilot .worked-example h3:first-child { font-size:1.125rem; }
}
@media (prefers-reduced-motion:reduce) {
  .ma-guides.ma-guide-pilot .ma-guide-index > li { transition:none; }
}
@media print {
  .ma-guides.ma-guide-pilot .contents { display:none; }
  .ma-guides.ma-guide-pilot .reading-layout { display:block; }
  .ma-guides.ma-guide-pilot .chapter { max-width:none; }
  .ma-guides.ma-guide-pilot .diagram-scroll > svg { min-width:0; }
}

/* Text-only guide heroes retain the full reading width when no cover art is supplied. */
.ma-guides.ma-guide-pilot .hero:has(> .hero-copy:only-child) { grid-template-columns:minmax(0,1fr); }

/* Sec 1 controls keep each label with its input, including on narrow phones. */
.ma-guides .interactive:is(#fm-explorer,#rn-explorer,#ae-explorer,#pc-explorer,[id^="sec1-"]) > [data-controls] > label { display:block; margin:16px 0 6px; }
.ma-guides .interactive:is(#fm-explorer,#rn-explorer,#ae-explorer,#pc-explorer,[id^="sec1-"]) > [data-controls] > :is(input:not([type="range"]),select) { display:block; box-sizing:border-box; min-height:44px; max-width:100%; padding:8px 12px; border:1px solid #9db1c4; border-radius:7px; background:#fff; color:#172c31; }
@media (max-width:599px) {
  .ma-guides.ma-guide-pilot #fm-explorer :is(th,td) { padding:10px 5px; font-size:14px; line-height:1.45; }
}

/* Direct directory links land below the fixed navigation. */
.ma-guides.ma-guide-pilot .chapter h3[id] { scroll-margin-top:130px; }
@media(max-width:599px) { .ma-guides.ma-guide-pilot .chapter h3[id] { scroll-margin-top:100px; } }
