/* ASCS Mobile Drawer (Option A, Nov 24, 2026): navy drawer from the right, 90% of the screen, buttons pinned at the bottom. */
#ascs-drawer {
	--ascs-navy: #2c4060;
	--ascs-navy-deep: #22344e;
	--ascs-red: #ac1e2e;
	--ascs-red-dark: #9a1221;
	--ascs-gold: #d6c6a6;
	--ascs-line: rgba(255, 255, 255, .12);
	--ascs-tint: rgba(255, 255, 255, .1);
	--ascs-display: "Oswald", "Arial Narrow", Arial, sans-serif;
	--ascs-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html.ascs-drawer-open { overflow: hidden; }

.ascs-drawer-scrim {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10, 14, 22, .58);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
html.ascs-drawer-open .ascs-drawer-scrim { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }

#ascs-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	width: min(90vw, 440px);
	display: flex;
	flex-direction: column;
	background: var(--ascs-navy);
	color: #ffffff;
	font-family: var(--ascs-body);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	box-shadow: -18px 0 44px rgba(0, 0, 0, .3);
	transform: translateX(104%);
	visibility: hidden;
	transition: transform .38s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .38s;
}
html.ascs-drawer-open #ascs-drawer { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.22, .8, .24, 1), visibility 0s; }

/* Resets against theme styles */
#ascs-drawer *, #ascs-drawer *::before, #ascs-drawer *::after { box-sizing: border-box; }
#ascs-drawer ul { list-style: none; margin: 0; padding: 0; }
#ascs-drawer li { margin: 0; padding: 0; }
#ascs-drawer li::before { content: none; }
#ascs-drawer p { margin: 0; }
#ascs-drawer a { color: inherit; text-decoration: none; box-shadow: none; }
#ascs-drawer a:hover, #ascs-drawer a:focus { color: inherit; }
#ascs-drawer button { margin: 0; border: 0; background: none; box-shadow: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; line-height: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
#ascs-drawer svg { display: block; flex: none; }
#ascs-drawer :focus-visible { outline: 3px solid #f2c94c; outline-offset: -3px; border-radius: 6px; }

/* Head */
#ascs-drawer .ascs-d-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 12px 8px 12px 20px; border-bottom: 1px solid var(--ascs-line); }
#ascs-drawer .ascs-d-logo { display: block; }
#ascs-drawer .ascs-d-logo img { display: block; height: 30px; width: auto; max-width: none; }
#ascs-drawer .ascs-d-close { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
#ascs-drawer .ascs-d-close:hover { background: var(--ascs-tint); }

#ascs-drawer .ascs-d-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Sections and dropdowns */
#ascs-drawer .ascs-d-nav > li { border-bottom: 1px solid var(--ascs-line); }
#ascs-drawer .ascs-d-accbtn,
#ascs-drawer .ascs-d-plain > a { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px 0 20px; color: #ffffff; font: 500 19px/1.2 var(--ascs-display); letter-spacing: .05em; text-transform: uppercase; text-align: left; }
#ascs-drawer .ascs-d-accbtn svg { color: var(--ascs-gold); transition: transform .3s ease; }
#ascs-drawer .ascs-d-acc.is-open .ascs-d-accbtn svg { transform: rotate(180deg); }
#ascs-drawer .ascs-d-plain > a svg { opacity: .7; }
#ascs-drawer .ascs-d-panel { display: grid; grid-template-rows: 0fr; background: rgba(0, 0, 0, .17); transition: grid-template-rows .32s ease; }
#ascs-drawer .ascs-d-acc.is-open .ascs-d-panel { grid-template-rows: 1fr; }
#ascs-drawer .ascs-d-panelin { min-height: 0; overflow: hidden; }
#ascs-drawer .ascs-d-links { padding: 6px 0 14px; }
#ascs-drawer .ascs-d-links > a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 32px; font-size: 15px; }
#ascs-drawer .ascs-d-links > a.ascs-d-home { color: var(--ascs-gold); font-weight: 700; }
#ascs-drawer .ascs-d-links > a[aria-current="page"],
#ascs-drawer .ascs-d-plain > a[aria-current="page"] { color: var(--ascs-gold); font-weight: 700; }

/* Grades by stage */
#ascs-drawer .ascs-d-grades { display: grid; gap: 8px; padding: 10px 20px 4px 32px; }
#ascs-drawer .ascs-d-gtitle { margin-bottom: 2px; font: 700 11px/1 var(--ascs-body); letter-spacing: .13em; text-transform: uppercase; opacity: .75; }
#ascs-drawer .ascs-d-grow { display: grid; grid-template-columns: 6.7em minmax(0, 1fr); align-items: center; gap: 8px; }
#ascs-drawer .ascs-d-stage { font-size: 12.5px; line-height: 1.25; opacity: .85; }
#ascs-drawer .ascs-d-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#ascs-drawer .ascs-d-chips a { display: grid; place-items: center; min-height: 40px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 6px; font: 500 15px/1 var(--ascs-display); letter-spacing: .03em; }
#ascs-drawer .ascs-d-chips a[aria-current="page"] { background: #ffffff; border-color: #ffffff; color: var(--ascs-navy); }

/* Quick links, contact, social */
#ascs-drawer .ascs-d-block { padding: 24px 20px 0; }
#ascs-drawer .ascs-d-block:last-child { padding-bottom: 28px; }
#ascs-drawer .ascs-d-title { margin-bottom: 10px; color: var(--ascs-gold); font: 700 11px/1.2 var(--ascs-body); letter-spacing: .14em; text-transform: uppercase; }
#ascs-drawer .ascs-d-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#ascs-drawer .ascs-d-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ascs-tint); font-size: 13.5px; font-weight: 600; }
#ascs-drawer .ascs-d-pills a[aria-current="page"] { background: #ffffff; color: var(--ascs-navy); }
#ascs-drawer address { margin: 0; font-style: normal; font-size: 14.5px; line-height: 1.5; }
#ascs-drawer .ascs-d-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ascs-gold); font-size: 14px; font-weight: 700; }
#ascs-drawer .ascs-d-phone { display: flex; align-items: center; gap: 12px; min-height: 52px; }
#ascs-drawer .ascs-d-phoneico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ascs-tint); color: var(--ascs-gold); }
#ascs-drawer .ascs-d-phone small { display: block; font-size: 12px; line-height: 1.2; opacity: .75; }
#ascs-drawer .ascs-d-phone b { display: block; font: 500 18px/1.25 var(--ascs-display); letter-spacing: .04em; }
#ascs-drawer .ascs-d-social { display: flex; gap: 10px; }
#ascs-drawer .ascs-d-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ascs-tint); }

/* Pinned buttons */
#ascs-drawer .ascs-d-foot { flex: none; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--ascs-navy-deep); border-top: 1px solid var(--ascs-line); }
#ascs-drawer .ascs-d-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 10px; border-radius: 5px; font: 500 15px/1.1 var(--ascs-display); letter-spacing: .045em; text-transform: uppercase; text-align: center; }
#ascs-drawer .ascs-d-btn--tour { background: var(--ascs-red); color: #ffffff; }
#ascs-drawer .ascs-d-btn--tour:hover { background: var(--ascs-red-dark); }
#ascs-drawer .ascs-d-btn--line { border: 1.5px solid rgba(255, 255, 255, .8); color: #ffffff; }
#ascs-drawer .ascs-d-btn--line:hover { background: var(--ascs-tint); }

/* The header's menu icon acts as a button */
#mobileMenuIcon { cursor: pointer; }

/* Dev's review widget button would sit on top of the Enroll button. */
html.ascs-drawer-open #fb-fab { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	#ascs-drawer, .ascs-drawer-scrim, #ascs-drawer .ascs-d-panel, #ascs-drawer .ascs-d-accbtn svg { transition: none; }
}
@media print {
	#ascs-drawer, .ascs-drawer-scrim { display: none; }
}
