/* Homepage visual refresh: a light editorial surface and slate-blue accents. */
:root{--home-ink:#172238;--home-muted:#526178;--home-accent:#315a94;--home-border:#dce3eb;--home-paper:#fff;--home-soft:#f3f6fa}
body:has(.hero){background:#f7f8fa;color:var(--home-ink)}
body:has(.hero) .header{background:#fff;border-bottom:1px solid #e7ebf0}
body:has(.hero) .logo-mark{color:var(--home-accent)}
body:has(.hero) .header nav a[aria-current="page"]{color:#294f85;border-color:#315a94}
.hero{background:#f1f4f8;color:var(--home-ink)}
.hero-content{padding:48px 0 35px}
.hero-kicker{background:#e3eaf4;border:1px solid #d5dfec;color:#34577f;padding:7px 12px}
.hero h1{color:var(--home-ink);font-size:clamp(30px,4vw,43px);letter-spacing:-.055em;line-height:1.3}
.hero h1 em{color:#315a94}
.hero-content>p:not(.hero-source){color:#59677a;font-size:15px;line-height:1.65}
.hero-search{background:#fff;border:1px solid #cbd6e4;box-shadow:0 6px 20px #273f6010;border-radius:12px;color:#456589}
.hero-search input{color:#1d2a3e}.hero-search input::placeholder{color:#758398}
.hero-search button{background:#284d80;border-radius:8px;font-size:14px;min-height:46px;padding:11px 18px}
.hero-search button:hover,.hero-all-schedules:hover{background:#193a69;color:#fff}
.hero-all-schedules{background:#fff;border:1px solid #c8d3e1;border-radius:9px;color:#29476e;font-size:13px;min-height:44px}
.quick-exams{color:var(--home-ink)}
.quick-header>span{color:#35455d}.quick-controls button{background:#fff;border:1px solid #cbd6e2;color:#344e70;min-height:44px;min-width:44px;border-radius:9px}
.quick-exams .quick-group a{background:#fff;border:1px solid #d5dee8;border-radius:11px;color:#263b57;font-size:13px;min-height:50px}
.quick-exams .quick-group a:hover{background:#e8eff8;border-color:#9db4d0}
.quick-hint,.quick-position{color:#5c6d83}
.hero .quick-exams .quick-hint{color:#53657a}
body:has(.hero) .header nav a[aria-current="page"]{background:#edf2f8;color:#294f85}
.hero-stats>div{background:#fff;border:1px solid #dce3eb;border-radius:11px;color:#243a58;box-shadow:0 3px 12px #1b335609}
.hero-stats span{color:#5b6a7c}.hero-source{color:#647286;font-size:12px;line-height:1.6}
body:has(.hero) .section-eyebrow{color:#4b6c94}
body:has(.hero) .tools-section{border-color:#e2e7ed}
body:has(.hero) .tools-heading h2,body:has(.hero) .feature-heading h2{color:#1a293f}
body:has(.hero) .tools-heading p,body:has(.hero) .feature-heading p{color:#596b80}
body:has(.hero) .calendar-controls button{background:#fff;border-color:#d3dce6;color:#344e70;min-width:44px;min-height:44px;border-radius:9px}
body:has(.hero) .calendar-wrap{border:1px solid #dfe5ed;border-radius:14px;box-shadow:0 8px 24px #21395c09}
body:has(.hero) .calendar-weekday{background:#f2f5f9;color:#53657a;font-size:12px}
body:has(.hero) .calendar-day,body:has(.hero) .calendar-blank{border-color:#ebeff4}
body:has(.hero) .calendar-day.today{background:#eff5fc}
body:has(.hero) .calendar-agenda{color:#263b57}
.feature-intro{background:#edf1f6}
.feature-heading h2{letter-spacing:-.04em}.feature-card{background:#fff;border:1px solid #dce3eb;border-radius:16px;box-shadow:0 8px 22px #233c5b0a}
.feature-copy>span{color:#486c99}.feature-copy h3{color:#1d2c42}.feature-copy p{color:#596a7e}
.feature-copy a{color:#315a94}
.feature-scene{background:#e5ebf4}
.demo-shell{background:#fff;border-color:#d9e1ec;box-shadow:0 12px 28px #263d6015}
.demo-window-top,.demo-saved-head,.demo-agenda,.demo-cal-detail strong{color:#2a405c}
.demo-save-search,.demo-result,.demo-date-row,.demo-saved-item{border-color:#dbe3ed;background:#f8fafc}
.demo-result strong,.demo-date-row strong,.demo-agenda-item strong,.demo-saved-item strong{color:#23364f}
.demo-result small,.demo-date-row small,.demo-saved-item small,.demo-cal-detail span{color:#596b80}
.demo-download,.demo-cal-detail .demo-official-button{background:#315a94;color:#fff}
.demo-phases,.demo-phases span{color:#49617f}.demo-phases span{background:#e9eef5}
.demo-agenda-item{background:#f1f5fa}.demo-cal-detail{border-color:#dce4ee}
.demo-toggle{min-height:44px;min-width:44px}
body:has(.hero) a:focus-visible,body:has(.hero) button:focus-visible,body:has(.hero) input:focus-visible,body:has(.hero) .quick-viewport:focus-visible{outline:3px solid #315a94;outline-offset:3px}
@media(max-width:760px){.hero-content{padding:30px 0 26px}.hero h1{font-size:clamp(27px,7vw,34px);line-height:1.34}.hero-content>p:not(.hero-source){font-size:14px}.hero-search{min-height:56px;padding-left:12px}.hero-search button{font-size:13px;min-height:44px;padding:9px 12px}.quick-exams .quick-group a{font-size:12px;min-height:48px}.hero-stats{gap:6px}.hero-stats>div{min-width:0;padding:10px 9px}.hero-stats span{font-size:11px}.hero-source{font-size:12px}.feature-card{border-radius:14px}}

/* Give the hero its own visual weight while keeping the rest of the page light. */
.hero{background:radial-gradient(ellipse at 85% 4%,#365478 0%,transparent 50%),linear-gradient(125deg,#172a44 0%,#203b5d 64%,#294b6c 100%);color:#fff}
.hero-kicker{background:#ffffff17;border-color:#ffffff42;color:#e6effa}
.hero h1{color:#fff}.hero h1 em{color:#b9d6fa}
.hero-content>p:not(.hero-source){color:#d9e4f3}
.hero-search{border-color:#ffffff9c;box-shadow:0 8px 25px #0c1c3440}
.hero-all-schedules{background:#ffffff13;border-color:#ffffff70;color:#fff}
.hero-all-schedules:hover{background:#ffffff2b}
.quick-header>span{color:#f5f8fd}
.quick-controls button{background:#ffffff12;border-color:#ffffff66;color:#fff}
.quick-controls button:hover{background:#ffffff2a}
.quick-exams .quick-group a{background:#ffffff13;border-color:#ffffff55;color:#fff}
.quick-exams .quick-group a:hover{background:#ffffff2b;border-color:#d8e7fa}
.hero .quick-exams .quick-hint,.quick-position{color:#e0eafa}
.hero-stats>div{background:#ffffff19;border-color:#ffffff38;color:#fff;box-shadow:none}
.hero-stats span{color:#e3edf9}.hero-source{color:#d4e1f2}
@media(max-width:760px){.hero{background:radial-gradient(ellipse at 90% 0%,#38567d 0%,transparent 54%),linear-gradient(150deg,#172a44,#27486c)}.hero-stats>div{background:#ffffff1c}}


/* Calendar date selection */
.calendar-select{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#233953;font:inherit;font-weight:800;cursor:pointer}
.calendar-select:hover{background:#eaf0f8;border-color:#bfd0e3}
.calendar-select[aria-pressed="true"]{background:#294f80;color:#fff;border-color:#294f80}
.calendar-select:focus-visible,.calendar-show-all:focus-visible{outline:3px solid #315a94;outline-offset:2px}
.calendar-more{display:block;color:#4e6178;font-size:11px;font-weight:700;padding:3px 4px}
.calendar-show-all{border:1px solid #aebed1;border-radius:9px;background:#fff;color:#294f80;min-height:44px;padding:9px 13px;font-weight:700;cursor:pointer}
.calendar-show-all:hover{background:#edf3fa}
@media(max-width:760px){.calendar-select{min-width:36px;min-height:36px}.calendar-day,.calendar-blank{min-height:64px}.mobile-dots{margin-top:1px}}

/* Calendar demonstration: switch month, choose a date, review its list, open details. */
.demo-calendar .demo-cal-grid .demo-selected-date{animation:demoDateSelected 12s infinite;border-radius:7px}
.demo-calendar .demo-agenda-head{position:relative;height:17px}
.demo-calendar .demo-agenda-head strong{position:absolute;left:0;top:0}
.demo-calendar .demo-agenda-month-title{animation:demoMonthTitle 12s infinite}
.demo-calendar .demo-agenda-day-title{animation:demoDayTitle 12s infinite;color:#294f80}
.demo-calendar .demo-agenda-day-title span{color:#315a94}
.demo-calendar .demo-agenda-after{animation:demoDayList 12s infinite}
.demo-calendar .demo-cursor{animation:demoDateCursor 12s infinite}
.demo-calendar .demo-cal-detail{animation:demoDateDetail 12s infinite}
.demo-calendar .demo-phases{gap:3px;font-size:10px}
.demo-calendar .demo-phases span{white-space:nowrap;animation:demoPhase1 12s infinite}
.demo-calendar .demo-phases span:nth-child(2){animation-name:demoPhase2}
.demo-calendar .demo-phases span:nth-child(3){animation-name:demoPhase3}
.demo-calendar .demo-phases span:nth-child(4){animation-name:demoPhase4}
@keyframes demoDateSelected{0%,39%{background:transparent;color:inherit}42%,92%{background:#294f80;color:#fff}98%,100%{background:transparent;color:inherit}}
@keyframes demoMonthTitle{0%,40%{opacity:1}43%,100%{opacity:0}}
@keyframes demoDayTitle{0%,40%{opacity:0}43%,93%{opacity:1}97%,100%{opacity:0}}
@keyframes demoDayList{0%,40%{opacity:0;transform:translateY(5px)}44%,93%{opacity:1;transform:none}98%,100%{opacity:0}}
@keyframes demoDateCursor{0%,12%{left:65%;top:32%;opacity:0}18%,24%{left:88%;top:20%;opacity:1}35%,42%{left:10%;top:43%;opacity:1}51%,59%{left:57%;top:80%;opacity:1}63%,100%{left:57%;top:80%;opacity:0}}
@keyframes demoDateDetail{0%,65%{visibility:hidden;clip-path:inset(0 0 100% 0)}66%{visibility:visible;clip-path:inset(0 0 100% 0)}70%,92%{visibility:visible;clip-path:inset(0)}97%,100%{visibility:hidden;clip-path:inset(0)}}
@keyframes demoPhase1{0%,25%{background:#294f80;color:#fff}26%,100%{background:#e9eef5;color:#49617f}}
@keyframes demoPhase2{0%,25%,43%,100%{background:#e9eef5;color:#49617f}26%,42%{background:#294f80;color:#fff}}
@keyframes demoPhase3{0%,42%,66%,100%{background:#e9eef5;color:#49617f}43%,65%{background:#294f80;color:#fff}}
@keyframes demoPhase4{0%,65%,96%,100%{background:#e9eef5;color:#49617f}66%,95%{background:#294f80;color:#fff}}
@media(max-width:760px){.demo-calendar .demo-phases{font-size:10px}.demo-calendar .demo-phases span{padding:5px 4px}}
@media(prefers-reduced-motion:reduce){.demo-calendar .demo-cal-grid .demo-selected-date{animation:none;background:#294f80;color:#fff}.demo-calendar .demo-agenda-month-title{display:none}.demo-calendar .demo-agenda-day-title,.demo-calendar .demo-agenda-after{animation:none;opacity:1;transform:none}.demo-calendar .demo-cal-detail{animation:none;visibility:hidden}.demo-calendar .demo-phases span{animation:none}}

/* Calendar demo: synchronize cursor, selection and reading time. */
.demo-calendar *{animation-duration:16s}
.demo-calendar .demo-cursor{animation-name:demoCursorPrecise}
.demo-calendar .demo-cursor i{animation:demoCursorClick 16s infinite}
.demo-calendar .demo-cal-detail{animation-name:demoDetailSlow}
.demo-calendar .demo-agenda-after{animation-name:demoListSlow}
.demo-calendar .demo-phases span:nth-child(3){animation-name:demoPhaseRead}
.demo-calendar .demo-phases span:nth-child(4){animation-name:demoPhaseDetail}
@keyframes demoCursorPrecise{0%,12%{left:65%;top:32%;opacity:0}18%,24%{left:88%;top:20%;opacity:1}34%,42%{left:10%;top:45%;opacity:1}54%,72%{left:55%;top:80%;opacity:1}76%,100%{left:55%;top:80%;opacity:0}}
@keyframes demoCursorClick{0%,38%,43%,69%,74%,100%{opacity:0;transform:scale(.5)}40%,71%{opacity:.9;transform:scale(1.15)}}
@keyframes demoDetailSlow{0%,76%{visibility:hidden;clip-path:inset(0 0 100% 0)}77%{visibility:visible;clip-path:inset(0 0 100% 0)}80%,94%{visibility:visible;clip-path:inset(0)}98%,100%{visibility:hidden;clip-path:inset(0)}}
@keyframes demoListSlow{0%,40%{opacity:0;transform:translateY(5px)}44%,94%{opacity:1;transform:none}98%,100%{opacity:0}}
@keyframes demoPhaseRead{0%,42%,76%,100%{background:#e9eef5;color:#49617f}43%,75%{background:#294f80;color:#fff}}
@keyframes demoPhaseDetail{0%,75%,98%,100%{background:#e9eef5;color:#49617f}76%,97%{background:#294f80;color:#fff}}
@media(max-width:760px){.demo-calendar .demo-agenda-head{height:20px}.demo-calendar .demo-agenda-head strong{font-size:13px}.demo-calendar .demo-agenda-rows{height:43px}.demo-calendar .demo-agenda-item{padding:8px}.demo-calendar .demo-agenda-item span,.demo-calendar .demo-agenda-item strong{font-size:12px;line-height:1.4}.demo-calendar .demo-phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font-size:12px}.demo-calendar .demo-phases span{text-align:center;padding:7px 4px}.demo-calendar.demo-scene{min-height:500px}}
@media(prefers-reduced-motion:reduce){.demo-calendar .demo-cursor{display:none}.demo-calendar .demo-agenda-after{animation:none;opacity:1;transform:none}.demo-calendar .demo-cal-detail{animation:none;visibility:hidden}.demo-calendar .demo-phases span{animation:none}}

/* Keep one calendar and one list visible throughout each loop. */
@keyframes calendarAfterClean{0%,26%{opacity:0;transform:translateX(12px)}26.01%{opacity:1;transform:translateX(12px)}30%,100%{opacity:1;transform:translateX(0)}}
@keyframes monthAfterClean{0%,26%{opacity:0}26.01%,100%{opacity:1}}
@keyframes demoListSlow{0%,26%{opacity:0;transform:none}26.01%,100%{opacity:1;transform:none}}
@keyframes demoDayTitle{0%,40%{opacity:0}43%,100%{opacity:1}}
@keyframes demoDateSelected{0%,39%{background:transparent;color:inherit}42%,100%{background:#294f80;color:#fff}}
@keyframes demoCursorPrecise{0%,12%{left:65%;top:32%;opacity:0}18%,24%{left:88%;top:20%;opacity:1}34%,42%{left:calc(15px + (100% - 30px)/14 - 3px);top:45%;opacity:1}54%,72%{left:55%;top:80%;opacity:1}76%,100%{left:55%;top:80%;opacity:0}}

/* A visible first-month row persists until the next-month row takes over. */
.demo-calendar .demo-agenda-before{animation:demoFirstList 16s steps(1,end) infinite!important}
.demo-calendar .demo-agenda-after{animation:demoNextList 16s steps(1,end) infinite!important}
@keyframes demoFirstList{0%{opacity:1;visibility:visible}26.01%{opacity:0;visibility:hidden}100%{opacity:0;visibility:hidden}}
@keyframes demoNextList{0%{opacity:0;visibility:hidden}26.01%{opacity:1;visibility:visible}100%{opacity:1;visibility:visible}}
@media(prefers-reduced-motion:reduce){.demo-calendar .demo-agenda-before{display:none}.demo-calendar .demo-agenda-after{animation:none!important;opacity:1;visibility:visible}}

/* Switch both agenda rows at the same instant as the month label. */
.demo-calendar .demo-agenda-before{animation:demoAgendaNovember 16s linear infinite!important}
.demo-calendar .demo-agenda-after{animation:demoAgendaDecember 16s linear infinite!important}
@keyframes demoAgendaNovember{0%,26%{opacity:1;visibility:visible}26.01%,100%{opacity:0;visibility:hidden}}
@keyframes demoAgendaDecember{0%,26%{opacity:0;visibility:hidden}26.01%,100%{opacity:1;visibility:visible}}
@media(prefers-reduced-motion:reduce){.demo-calendar .demo-agenda-before{display:none}.demo-calendar .demo-agenda-after{animation:none!important;opacity:1;visibility:visible}}

/* Keep every part of the calendar demonstration on the same timeline. */
.demo-calendar *{animation-duration:16s!important}

/* Make the mobile calendar legible while keeping the pointer beside the selected date. */
@media(max-width:760px){
 .demo-calendar .demo-cal-grid{font-size:14px;line-height:1.15}
 .demo-calendar .demo-cal-grid span:nth-child(-n+7){font-size:12px}
 .demo-calendar .demo-cal-list{font-size:12px;font-weight:600}
 .demo-calendar .demo-cursor{animation-name:demoCursorMobile}
}
@keyframes demoCursorMobile{0%,12%{left:65%;top:32%;opacity:0}18%,24%{left:88%;top:20%;opacity:1}34%,42%{left:calc(15px + (100% - 30px)/14 - 12px);top:calc(45% + 16px);opacity:1}54%,72%{left:55%;top:80%;opacity:1}76%,100%{left:55%;top:80%;opacity:0}}

@media(max-width:760px){.header nav{grid-template-columns:repeat(5,minmax(0,1fr))}.header nav a{white-space:normal;text-align:center;line-height:1.25;padding-left:2px;padding-right:2px}}

/* Match secondary pages to the slate-blue home palette. */
body:not(:has(.hero)){background:#f7f8fa;color:#172238}
body:not(:has(.hero)) .header{background:#fff;border-bottom:1px solid #e7ebf0}
body:not(:has(.hero)) .logo-mark{color:#315a94}
body:not(:has(.hero)) .header nav a[aria-current="page"]{color:#294f85;border-color:#315a94}
body:not(:has(.hero)) .header-cta{background:#eaf1f9;color:#294f80}
body:not(:has(.hero)) .section-eyebrow{color:#4b6c94}
body:not(:has(.hero)) .primary{background:#315a94;border-color:#315a94;color:#fff}
body:not(:has(.hero)) .primary:hover{background:#244a7d}
body:not(:has(.hero)) :is(a,button,input,select):focus-visible{outline:3px solid #315a94;outline-offset:3px}
body:has(#schedule) .controls-panel{border-color:#dce4ed;border-radius:14px;box-shadow:0 8px 24px #233c5b08}
body:has(#schedule) .schedule-search-field{background:#f9fbfe;border-color:#d0dce9}
body:has(#schedule) .schedule-search-field:focus-within{border-color:#6489b6;box-shadow:0 0 0 3px #dceafa}
body:has(#schedule) .schedule-search-field span{color:#315a94}
body:has(#schedule) .filters button{background:#f5f8fb;border-color:#dce4ed;color:#465d79}
body:has(#schedule) .filters button.active,body:has(#schedule) .quick-open-filter[aria-pressed=true]{background:#315a94;border-color:#315a94;color:#fff}
body:has(#schedule) .quick-open-filter,body:has(#schedule) .filter-expand{border-color:#b8cbe0;background:#f5f9fe;color:#294f80}
body:has(#schedule) .list-heading h3 span{color:#315a94}
body:has(#schedule) .view-switch{background:#edf2f8;border-color:#d9e4f0}
body:has(#schedule) .view-switch button{color:#53657b}
body:has(#schedule) .view-switch button[aria-pressed=true]{background:#fff;color:#294f80}
body:has(#schedule) .exam-card{border-color:#dde5ef}
body:has(#schedule) .exam-card .category{background:#edf3fa;color:#3d5b80}
body:has(#schedule) .save-exam:not([aria-pressed=true]){border-color:#d5dfeb;color:#536b88}

body:not(:has(.hero)) .header nav a[aria-current="page"]::after{background:#315a94}
/* Mobile discovery and CBT readability */
body .cbt #official-search{display:block;width:100%;max-width:420px;min-height:48px;margin:0;padding:10px 14px;border:1px solid #cbd9e8;border-radius:9px;background:#f9fbfe;color:#213b59;font:inherit;font-size:16px}
body .cbt #official-search:focus-visible{outline:3px solid #315a94;outline-offset:3px}
body .cbt .official-search-status{margin:7px 0;color:#52657c;font-size:.875rem;line-height:1.5}
@media(max-width:760px){.filter-row .filter-scroll-hint{display:block;margin:0 0 8px;color:#405f81;font-size:13px;line-height:1.45}}
@media(max-width:600px){body .cbt .cbt-hero h1{font-size:clamp(1.45rem,6.4vw,1.8rem);line-height:1.3;word-break:keep-all;overflow-wrap:break-word}body .cbt .cbt-hero-actions{display:grid;grid-template-columns:1fr;gap:8px}body .cbt .cbt-hero-actions a{width:100%;min-height:48px;justify-content:space-between;white-space:normal}body .cbt .cbt-hero{padding:24px 20px}}
@media(max-width:760px){.filter-row .filter-scroll-hint[hidden]{display:none}}
body .cbt .official-search-results{display:grid;gap:6px;max-width:420px;margin:8px 0}
body .cbt .official-search-results[hidden]{display:none}
body .cbt .official-search-results button{width:100%;min-height:44px;margin:0;text-align:left;background:#f4f8fd;color:#203e62;border:1px solid #c6d5e6}
body .cbt .official-search-results button:hover{background:#e4eef9}
@media(max-width:360px){body .cbt .cbt-hero h1{font-size:1.35rem;letter-spacing:-.05em}}
