/* Public navigation: brand-led, quiet blue accents, and a clear route into revision. */
/* Shared page container (nav + hero). Fluid, so browser zoom scales the layout smoothly:
   - content is capped at --site-content;
   - the side gutter grows with the viewport (≈ 44px at 1000px → 95px at 1512px → 120px max).
   Effective side margin = max(gutter, (viewport − content) / 2), with no sudden drop when zoomed. */
:root {
    --site-content: 1320px;
    --site-gutter: clamp(40px, calc(10vw - 56px), 120px);
    --site-max: calc(var(--site-content) + 2 * var(--site-gutter));
}
@media (max-width: 1000px) { :root { --site-gutter: clamp(24px, 5vw, 40px); } }
@media (max-width: 600px) { :root { --site-gutter: clamp(18px, 5.5vw, 22px); } }
@media (max-width: 359px) { :root { --site-gutter: 18px; } }
.site-nav { position: sticky; top: 0; z-index: 60; background: #f8fafd; border-bottom: 1px solid #dfe7f1; color: #172d40; font-family: 'Inter', system-ui, sans-serif; transition: border-color .2s ease; }
.site-nav *, .site-nav *::before, .site-nav *::after { box-sizing: border-box; }
.site-nav [hidden] { display: none !important; }
.site-nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: var(--site-max); min-height: 88px; padding: 8px var(--site-gutter); margin-inline: auto; }
.site-nav__brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; text-decoration: none; color: #172d40; }
.site-nav__brand-mark { position: relative; display: inline-block; flex: 0 0 64px; width: 64px; height: 58px; overflow: hidden; }
.site-nav__brand-mark > img { position: absolute; display: block; left: 50%; top: 50%; width: 128px; height: auto; max-width: none; transform: translate(-50%, -50%); }
.site-nav__wordmark { font-family: 'DM Sans', system-ui, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; white-space: nowrap; }
.site-nav__brand-accent { color: #245cb5; }
.site-nav__tagline { display: block; margin-top: 5px; color: #526680; font-family: 'Inter', system-ui, sans-serif; font-size: 10px; font-weight: 400; line-height: 1.4; letter-spacing: .03em; }
.site-nav__desktop { display: flex; align-items: center; gap: 35px; }
.site-nav__link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 12px 0; color: #666; font-size: 17.5px; font-weight: 400; line-height: 1.5; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .15s; }
.site-nav__link:hover, .site-nav__link.is-active { color: #1a1a1a; }
.site-nav__link.is-active { font-weight: 400; }

.site-nav__resources { position: relative; }
.site-nav__resources > summary { list-style: none; }
.site-nav__resources > summary::-webkit-details-marker { display: none; }
.site-nav__resources > summary svg { width: 15px; height: 15px; transition: transform .15s; }
.site-nav__resources[open] > summary { color: #1a1a1a; }
.site-nav__resources[open] > summary svg { transform: rotate(180deg); }
.site-nav__dropdown { position: absolute; top: calc(100% + 14px); right: -20px; width: 340px; padding: 12px; border: 1px solid #dce5f2; border-radius: 10px; background: #fff; box-shadow: 0 18px 40px -18px #172d4040; }
.site-nav__dropdown > p { margin: 4px 12px 10px; color: #64758a; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .05em; text-transform: uppercase; }
.site-nav__dropdown > a { display: block; padding: 12px; border-radius: 6px; color: #172d40; text-decoration: none; }
.site-nav__dropdown > a:hover, .site-nav__dropdown > a[aria-current] { background: #f0f5fd; color: #245cb5; }
.site-nav__dropdown > a > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.5; }
.site-nav__dropdown > a svg { width: 16px; height: 16px; color: #728aad; }
.site-nav__dropdown small { display: block; margin-top: 4px; color: #526680; font-size: 11px; line-height: 1.5; }
.site-nav__account { display: flex; align-items: center; justify-self: end; gap: 12px; }
.site-nav__signin { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 16px; border: 1px solid #d4dfed; border-radius: 6px; color: #344a64; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.site-nav__signin:hover { background: #edf3fc; border-color: #aebfda; color: #245cb5; }
.site-nav__cta { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 45px; padding: 11px 18px; border: 1px solid #245cb5; border-radius: 6px; background: #245cb5; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background .15s; }
.site-nav__cta:hover { background: #1b488f; border-color: #1b488f; color: #fff; }
.site-nav__cta svg { width: 18px; height: 18px; }
.site-nav a:focus-visible, .site-nav summary:focus-visible, .site-nav button:focus-visible { outline: 3px solid #245cb5; outline-offset: 5px; }
.site-nav__toggle { display: none; align-items: center; justify-content: center; justify-self: end; width: 44px; height: 44px; padding: 0; border: 1px solid #d4dfed; border-radius: 6px; background: transparent; color: #172d40; cursor: pointer; }
.site-nav__toggle svg { width: 23px; height: 23px; }
.site-nav__close-icon { display: none; }
.site-nav__toggle[aria-expanded='true'] .site-nav__close-icon { display: block; }
.site-nav__toggle[aria-expanded='true'] .site-nav__menu-icon { display: none; }
.site-nav__mobile { position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100dvh - 80px); padding: 14px 24px 24px; overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid #dfe7f1; background: #f8fafd; box-shadow: 0 18px 24px -22px #172d4070; }
.site-nav__mobile nav { max-width: 680px; margin-inline: auto; }
.site-nav__mobile-link { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 12px; border-radius: 6px; color: #666; font-size: 17.5px; font-weight: 400; line-height: 1.5; text-decoration: none; }
.site-nav__mobile-link > svg { width: 17px; height: 17px; color: #728aad; }
.site-nav__mobile-link:hover, .site-nav__mobile-link[aria-current] { background: #f0f3f7; color: #1a1a1a; }
.site-nav__mobile-label { margin: 18px 12px 8px; color: #64758a; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }
.site-nav__mobile-resources { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0 12px 12px; padding-left: 12px; border-left: 2px solid #e2eaf4; }
.site-nav__mobile-resources > a { display: flex; align-items: center; min-height: 44px; color: #334659; font-size: 15px; line-height: 1.5; text-decoration: none; }
.site-nav__mobile-resources > a:hover, .site-nav__mobile-resources > a[aria-current] { color: #245cb5; text-decoration: underline; text-underline-offset: 4px; }
.site-nav__mobile-account { display: flex; gap: 12px; max-width: 680px; margin-inline: auto; padding-top: 18px; border-top: 1px solid #dfe7f1; }
.site-nav__mobile-account > a { flex: 1; }
.site-nav__brand-mark--footer { vertical-align: middle; }
@media (min-width: 1001px) and (max-width: 1150px) {
    .site-nav__inner { gap: 16px; }
    .site-nav__desktop { gap: 16px; }
    .site-nav__wordmark { font-size: 22px; }
    .site-nav__brand { gap: 6px; }
    .site-nav__brand-mark { flex-basis: 54px; width: 54px; }
    .site-nav__account { gap: 9px; }
    .site-nav__signin { padding-inline: 12px; }
    .site-nav__cta { padding-inline: 14px; gap: 10px; }
}
@media (max-width: 1000px) {
    .site-nav__inner { grid-template-columns: 1fr auto; min-height: 76px; }
    .site-nav__desktop, .site-nav__account { display: none; }
    .site-nav__toggle { display: inline-flex; }
}
@media (min-width: 1001px) { .site-nav__mobile { display: none; } }
@media (max-width: 600px) {
    .site-nav__inner { min-height: 72px; padding-block: 9px; gap: 14px; }
    .site-nav__brand { gap: 7px; }
    .site-nav__brand-mark { flex-basis: 49px; width: 49px; height: 49px; }
    .site-nav__brand-mark > img { width: 108px; }
    .site-nav__wordmark { font-size: 22px; }
    .site-nav__tagline { margin-top: 4px; font-size: 9px; }
    .site-nav__mobile { padding-inline: 22px; }
}
@media (max-width: 359px) {
    .site-nav__inner { gap: 9px; }
    .site-nav__wordmark { font-size: 20px; }
    .site-nav__brand { gap: 5px; }
    .site-nav__brand-mark { flex-basis: 43px; width: 43px; height: 45px; }
    .site-nav__brand-mark > img { width: 98px; }
    .site-nav__toggle { width: 40px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .site-nav a, .site-nav summary, .site-nav summary svg { transition: none; } }

/* Question Bank menu: plain trigger (no arrow) and a simple list of exams. */
.site-nav__menu > summary { list-style: none; cursor: pointer; }
.site-nav__menu > summary::-webkit-details-marker { display: none; }
.site-nav__dropdown--simple { top: calc(100% + 2px); left: 50%; right: auto; width: auto; min-width: 280px; padding: 8px; transform: translateX(-50%); }
/* Pointer: a small notch on top of the menu, pointing up at "Question Bank" */
.site-nav__dropdown--simple::after { content: ''; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; border-top: 1px solid #cfdbea; border-left: 1px solid #cfdbea; border-top-left-radius: 2px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.site-nav__dropdown--simple::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 6px; } /* hover bridge */
.site-nav__dropdown--simple > a { padding: 11px 14px; color: #334659; font-size: 15px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.site-nav__dropdown--simple > a:hover { background: #f0f5fd; color: #245cb5; }
