.ap-menu-wrap{position:relative;display:flex;align-items:center}
.ap-menu-toggle{display:inline-flex;align-items:center;gap:5px;border:0;background:none;padding:0;color:#5c5673;font:500 14px/1.35 var(--font);white-space:nowrap;vertical-align:middle;transition:color .2s}
.ap-menu-toggle:hover,.ap-menu-toggle[aria-expanded="true"]{color:#39835f}
.ap-menu-toggle span{margin:0;color:#7c8d80;font-size:12px;line-height:1}
.ap-mega-menu{position:absolute;z-index:30;top:calc(100% + 29px);left:50%;transform:translateX(-50%);width:min(1240px,calc(100vw - 40px));padding:38px 38px;display:grid;grid-template-columns:.9fr .95fr 1.2fr;gap:52px;background:var(--white);border:1px solid var(--line);border-radius:0 0 20px 20px;box-shadow:0 24px 50px rgba(26,44,31,.16);color:var(--ink)}
.ap-mega-menu[hidden]{display:none}
.ap-menu-intro .section-kicker{color:#39835f;font-size:12px;letter-spacing:.12em}
.ap-menu-intro h2{font:700 28px/1.16 var(--display);letter-spacing:-.045em;margin:12px 0}
.ap-menu-intro p{max-width:280px;color:var(--muted);font-size:15px;line-height:1.65;margin:0 0 20px}
.ap-menu-intro>a{display:inline-flex;align-items:center;gap:10px;border-radius:9px;background:#e9f4eb;color:#2d734c;padding:12px 15px;font-size:14px;font-weight:600}
.ap-menu-links h3,.ap-menu-subjects h3{margin:3px 0 15px;color:#718174;font-size:12px;letter-spacing:.12em}
.ap-menu-links>a{display:flex;align-items:center;gap:13px;padding:9px 0;color:var(--ink)}
.ap-menu-links>a>span:first-child{width:34px;height:34px;border-radius:10px;background:#edf5ef;color:#39835f;display:grid;place-items:center;font-size:18px}
.ap-menu-links b,.ap-menu-subjects b{display:block;font-size:15px;font-weight:600;line-height:1.4}
.ap-menu-links small{display:block;margin-top:4px;color:var(--muted);font-size:13px;line-height:1.4}
.ap-menu-links>a:hover b,.ap-menu-subjects>a:hover b{color:#39835f}
.ap-menu-subjects{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;align-content:start}
.ap-menu-subjects h3,.ap-menu-subjects>p{grid-column:1/-1}
.ap-menu-subjects>a{display:block;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:9px;background:var(--paper)}
.ap-menu-subjects>a span{display:block;margin-bottom:6px;color:#66816d;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
.ap-menu-subjects>a b{font-size:14px;line-height:1.4}
.ap-menu-subjects>p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(20px,2.5vw,40px)}
.site-header>.brand{flex:none;white-space:nowrap}
.site-header>.brand .brand-name{white-space:nowrap;font-size:22px;line-height:1.1}
.site-header .main-nav{justify-content:center;gap:clamp(12px,1.35vw,22px);margin:0;min-width:0}
.site-header .main-nav>a{font:500 14px/1.35 Arial,Helvetica,sans-serif;letter-spacing:-.01em;display:inline-flex;align-items:center}
.site-header .main-nav>a,.site-header .ap-menu-toggle{white-space:nowrap}
.site-header .ap-menu-toggle{font:500 14px/1.35 Arial,Helvetica,sans-serif;letter-spacing:-.01em;display:inline-flex;align-items:center}
.site-header .header-actions{gap:clamp(12px,1.5vw,22px);white-space:nowrap}
html[data-theme="dark"] .ap-menu-toggle{color:#d0c9dc}
html[data-theme="dark"] .ap-menu-toggle:hover,html[data-theme="dark"] .ap-menu-toggle[aria-expanded="true"]{color:#a6d9af}
html[data-theme="dark"] .ap-mega-menu{background:#1b1923;border-color:#373241;box-shadow:0 24px 50px #0006}
html[data-theme="dark"] .ap-menu-intro>a,html[data-theme="dark"] .ap-menu-links>a>span:first-child{background:#243b2d;color:#a6d9af}
html[data-theme="dark"] .ap-menu-subjects>a{background:#211e2a;border-color:#373241}
@media(max-width:1050px){.ap-mega-menu{width:min(1000px,calc(100vw - 32px));padding:30px 28px;gap:26px;grid-template-columns:.8fr .9fr 1.2fr}}
@media(min-width:651px) and (max-width:1050px){.site-header{display:flex;justify-content:space-between;padding-left:28px;padding-right:28px}.site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:20px 28px 24px;align-items:stretch;flex-direction:column;gap:16px;background:var(--white);border-bottom:1px solid var(--line);box-shadow:0 16px 28px #18312118}.site-header .main-nav.open{display:flex}.site-header .menu-toggle{display:block;border:0;background:transparent;color:var(--ink);font-size:22px;padding:6px}.site-header .header-actions{margin-left:auto}.site-header .header-actions .text-button{font-size:13px}}
@media(min-width:651px) and (max-width:1100px){.site-header{padding-left:22px;padding-right:22px;gap:16px}.site-header>.brand .brand-name{font-size:19px}.site-header .main-nav{gap:14px}.site-header .main-nav>a,.site-header .ap-menu-toggle{font-size:12px}.site-header .header-actions{gap:9px}.site-header .header-actions .button-small{padding:10px 12px;font-size:10px}}
@media(max-width:650px){.site-header{display:flex;gap:0;justify-content:space-between}.site-header>.brand .brand-name{font-size:18px}.site-header .main-nav{display:none;position:absolute;top:64px;left:0;right:0;justify-content:flex-start;gap:17px;margin:0;padding:18px 24px 23px;flex-direction:column}.site-header .main-nav.open{display:flex}.site-header .header-actions{gap:5px}.site-header .header-actions .text-button{display:none}.site-header .header-actions .button-small{display:none}.ap-menu-wrap{display:block;width:100%}.ap-menu-toggle{width:100%;text-align:left;font-size:13px;padding:0}.ap-menu-toggle span{float:right}.ap-mega-menu{position:static;transform:none;width:100%;max-height:54vh;overflow-y:auto;margin-top:12px;padding:18px;display:grid;grid-template-columns:1fr;gap:20px;border-radius:13px;box-shadow:none}.ap-menu-intro h2{font-size:24px}.ap-menu-subjects{grid-template-columns:1fr 1fr}}

/* Keep every exam panel on the same page grid instead of centering it under different nav labels. */
@media(min-width:1051px){.site-header .ap-menu-wrap{position:static}.site-header .ap-mega-menu{top:100%;left:50%;right:auto;transform:translateX(-50%);width:min(1240px,calc(100vw - 48px));margin:0;border-radius:0 0 20px 20px}}
@media(max-width:1050px){.site-header .ap-menu-wrap{position:relative}.site-header .ap-mega-menu{position:static;left:auto;right:auto;top:auto;transform:none;width:100%;max-height:58vh;overflow-y:auto;margin:12px 0 0;padding:22px;grid-template-columns:1fr;gap:18px;border-radius:14px}.site-header .ap-menu-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Give the SAT, AP, IB and ACT catalog subjects a clean, readable directory style. */
.ap-menu-subjects>a{padding:12px 13px 13px;background:transparent;border-color:transparent;border-bottom-color:var(--line);border-radius:8px;margin:0;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.ap-menu-subjects>a:hover{background:var(--paper);border-color:var(--line);transform:translateY(-1px)}
.ap-menu-subjects>a span{margin-bottom:5px;font:600 11px/1.35 Arial,Helvetica,sans-serif;letter-spacing:.075em}
.ap-menu-subjects>a b{font:500 clamp(15px,1.2vw,18px)/1.38 Arial,Helvetica,sans-serif;letter-spacing:-.025em;color:var(--ink)}
.ap-menu-subjects>p{font:400 13px/1.55 Arial,Helvetica,sans-serif}
.ap-menu-links h3,.ap-menu-subjects h3{font:700 12px/1.4 Arial,Helvetica,sans-serif;letter-spacing:.1em}
html[data-theme="dark"] .ap-menu-subjects>a:hover{background:#243b2d;border-color:#405843}
@media(max-width:650px){.ap-menu-subjects>a{padding:10px 9px}.ap-menu-subjects>a b{font-size:15px}}

/* Clean, open course directory inspired by the reference mega menu. */
.site-header .ap-mega-menu,
html[data-theme="dark"] .site-header .ap-mega-menu{background:#fff;color:#171a17;border-color:#e4e8e3;box-shadow:0 22px 46px rgba(18,34,22,.18)}
.ap-mega-menu .ap-menu-intro h2{color:#202821}
.ap-mega-menu .ap-menu-intro p{color:#667269}
.ap-mega-menu .ap-menu-intro>a{background:#e9f4eb;color:#2d734c}
.ap-mega-menu .ap-menu-links h3,.ap-mega-menu .ap-menu-subjects h3{color:#738174}
.ap-mega-menu .ap-menu-links>a{color:#171a17}
.ap-mega-menu .ap-menu-links>a>span:first-child{background:#edf5ef;color:#39835f}
.ap-mega-menu .ap-menu-links b,.ap-mega-menu .ap-menu-subjects b{color:#171a17}
.ap-mega-menu .ap-menu-links small,.ap-mega-menu .ap-menu-subjects>p{color:#667269}
.ap-mega-menu .ap-menu-subjects>a,
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects>a{padding:11px 9px 13px;background:transparent;border:0;border-radius:8px;margin:0;box-shadow:none;transition:background .18s ease,color .18s ease}
.ap-mega-menu .ap-menu-subjects>a:hover,
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects>a:hover{background:#f3f7f2;border:0;transform:none}
.ap-mega-menu .ap-menu-subjects>a span{color:#718475;font-size:11px;letter-spacing:.07em}
.ap-mega-menu .ap-menu-subjects>a b{font:500 clamp(16px,1.25vw,20px)/1.4 Arial,Helvetica,sans-serif;letter-spacing:-.025em}
.ap-mega-menu .ap-menu-links>a:hover b,.ap-mega-menu .ap-menu-subjects>a:hover b{color:#28754a}
@media(max-width:1050px){.site-header .ap-mega-menu,html[data-theme="dark"] .site-header .ap-mega-menu{background:#fff;color:#171a17;border-color:#e4e8e3}}

/* Match the site’s forest-green dark theme while keeping the open directory layout. */
html[data-theme="dark"] .site-header .ap-mega-menu{background:#17241b;color:#e7efe5;border-color:#304536;box-shadow:0 22px 46px rgba(0,0,0,.38)}
html[data-theme="dark"] .ap-mega-menu .ap-menu-intro h2,
html[data-theme="dark"] .ap-mega-menu .ap-menu-links>a,
html[data-theme="dark"] .ap-mega-menu .ap-menu-links b,
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects b{color:#e7efe5}
html[data-theme="dark"] .ap-mega-menu .ap-menu-intro p,
html[data-theme="dark"] .ap-mega-menu .ap-menu-links small,
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects>p{color:#b4c2b3}
html[data-theme="dark"] .ap-mega-menu .ap-menu-links h3,
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects h3{color:#9db59f}
html[data-theme="dark"] .ap-mega-menu .ap-menu-intro>a,
html[data-theme="dark"] .ap-mega-menu .ap-menu-links>a>span:first-child{background:#254331;color:#b4dfb7}
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects>a span{color:#9db59f}
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects>a:hover{background:#21382a}
html[data-theme="dark"] .ap-mega-menu .ap-menu-links>a:hover b,
html[data-theme="dark"] .ap-mega-menu .ap-menu-subjects>a:hover b{color:#a8d9ae}
.ap-menu-links>a>span:first-child svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
