/* "Preparing for" exam picker in the top bar (UPSC and the state commissions). Uses the site theme's colours. */
.exam-switcher{position:relative;flex-shrink:0}
.exam-switcher>summary{list-style:none;display:flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font-size:12px;cursor:pointer;white-space:nowrap;user-select:none;transition:border-color .15s,background .15s}
.exam-switcher>summary::-webkit-details-marker{display:none}
.exam-switcher>summary:hover{border-color:#b8ccef;background:var(--soft)}
.exam-switcher>summary .bi-mortarboard{color:var(--purple);font-size:15px}
.exam-switcher-label{color:var(--muted)}
.exam-switcher>summary strong{font-weight:700;color:var(--text)}
.exam-switcher>summary .bi-chevron-down{font-size:10px;color:var(--muted);transition:transform .15s}
.exam-switcher[open]>summary{border-color:var(--purple);background:var(--soft)}
.exam-switcher[open]>summary .bi-chevron-down{transform:rotate(180deg)}
.exam-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:1060;width:min(560px,calc(100vw - 32px));max-height:min(540px,calc(100vh - 96px));overflow:auto;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 18px 40px rgba(30,45,80,.14)}
body.dark .exam-menu{box-shadow:0 18px 40px rgba(0,0,0,.45)}
.exam-menu-group{margin:4px 6px 6px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.exam-menu-group:not(:first-of-type){margin-top:12px}
.exam-menu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.exam-option{display:flex;flex-direction:column;align-items:flex-start;padding:8px 10px;border:0;border-radius:7px;background:none;text-align:left;color:var(--text)}
.exam-option strong{font-size:13px;font-weight:650;line-height:1.35}
.exam-option span{font-size:11px;color:var(--muted);line-height:1.35}
.exam-option:hover{background:var(--soft)}
.exam-option.current{background:var(--soft);box-shadow:inset 3px 0 0 var(--purple)}
.exam-option.current strong{color:var(--purple)}
.exam-menu-note{margin:10px 6px 2px;padding-top:9px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}
@media (max-width:991px){.topbar .breadcrumb-label{display:none}}
@media (max-width:767px){
  .exam-switcher-label{display:none}
  .exam-switcher{position:static}
  .exam-switcher>summary{height:36px;padding:0 10px}
  .exam-menu{position:fixed;top:66px;left:12px;right:12px;width:auto;max-height:calc(100vh - 82px)}
  .exam-menu-list{grid-template-columns:minmax(0,1fr)}
}
/* Phones: the picker takes the search box's place (Practice tests has its own search). */
@media (max-width:600px){.topbar .search-box{display:none}}
@media (prefers-reduced-motion:reduce){.exam-switcher>summary .bi-chevron-down{transition:none}}
.exam-notice a{color:var(--purple);font-weight:600;text-decoration:underline;text-underline-offset:2px}
