/* Shared PDR Kampüs visual language. Exam behavior stays in app.js. */
:root{--ink:#18243b;--muted:#526074;--green:#397d6b;--green2:#2d6556;--mint:#e5f4ed;--cream:#fff;--line:#e2e9e7;--shadow:0 8px 26px #183c3010;--r:18px}
body{background:#fff;color:var(--ink);font-family:Manrope,'DM Sans',Arial,sans-serif}
.brand strong{font:800 22px Manrope,Arial,sans-serif;letter-spacing:-.045em;color:var(--ink)}
.brand strong span{color:var(--green)}
.brand-logo{width:44px;height:44px;object-fit:contain}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.button.primary{background:var(--green);box-shadow:none}
.button.primary:hover{background:var(--green2)}
.button{border-radius:10px}
#welcomeView{padding:0;background:#fff;overflow:visible}
#welcomeView .welcome-nav{height:82px;padding:0 max(24px,calc((100vw - 1224px)/2));border-bottom:1px solid var(--line);background:#fff;gap:24px;z-index:10}
.campus-desktop{display:flex;align-items:center;gap:24px;margin-left:auto;font-size:12px;font-weight:700}
.campus-desktop a{color:var(--ink);text-decoration:none;padding:12px 0}
.campus-desktop a:hover{color:var(--green)}
.campus-desktop a[aria-current]{padding:11px 15px;background:var(--mint);color:var(--green);border-radius:9px}
.campus-menu{position:relative}
.campus-menu summary{list-style:none;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:19px;color:var(--ink)}
.campus-menu summary::-webkit-details-marker{display:none}
.campus-menu nav{position:absolute;right:0;top:54px;width:265px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 40px #18243b18;display:grid;gap:3px}
.campus-menu nav a{color:var(--ink);text-decoration:none;padding:11px 12px;font-size:13px;border-radius:8px}
.campus-menu nav a:hover{background:var(--mint);color:var(--green)}
#welcomeView .welcome-grid{width:100%;max-width:none;padding:0;gap:0}
.campus-hero{width:100%;padding:46px max(24px,calc((100vw - 1224px)/2)) 36px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;gap:40px;background:linear-gradient(115deg,#f2faf6 0%,#f8fcff 65%,#fff9f0 100%)}
#welcomeView .welcome-copy{margin:0;padding:0;min-height:0;max-width:none;border:0;border-radius:0;background:none;box-shadow:none;text-align:left;overflow:visible}
#welcomeView .welcome-copy::after,#welcomeView .hero-orb{display:none}
#welcomeView .hero-kicker{display:inline-flex;padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:#ffffffc9;font-size:10px;letter-spacing:.08em;color:var(--muted);margin-bottom:16px}
#welcomeView .welcome-copy .overline{display:block;border:0;border-radius:0;background:none;padding:0;color:var(--green);font-size:11px;letter-spacing:.08em}
#welcomeView .welcome-copy h1{margin:12px 0 18px;max-width:650px;font:800 clamp(32px,3.55vw,48px)/1.2 Manrope,Arial,sans-serif;letter-spacing:-.045em;color:var(--ink);text-align:left}
#welcomeView .welcome-copy .hero-accent{color:var(--green)}
#welcomeView .welcome-copy>p{font-size:14px;line-height:1.8;color:var(--muted);max-width:550px;text-align:left;margin:0}
#welcomeView .welcome-actions{justify-content:flex-start;flex-direction:row;flex-wrap:wrap;gap:8px;margin-top:24px}
#welcomeView .welcome-actions .button.primary{background:var(--green);box-shadow:none;min-height:48px;border-radius:10px;font-size:13px;padding:0 20px}
#welcomeView .welcome-actions .button.primary:hover{background:var(--green2)}
#welcomeView .welcome-copy .exam-facts{width:100%;max-width:520px;margin-top:24px;padding:16px 0 0;border:0;border-top:1px solid #dce9e3;border-radius:0;background:none;justify-content:flex-start}
#welcomeView .welcome-copy .exam-facts div{min-width:100px;padding:0 24px;text-align:left;border-color:#dce9e3}
#welcomeView .welcome-copy .exam-facts div:first-child{padding-left:0}
#welcomeView .welcome-copy .exam-facts strong{color:var(--ink);font-size:22px}
#welcomeView #yearSelection{width:100%;max-width:1280px;margin:0 auto;padding:38px 28px 48px;border:0;border-radius:0;box-shadow:none;background:#fff}
#welcomeView .archive-eyebrow{color:var(--green);font-size:10px;letter-spacing:.1em;margin-bottom:7px}
#welcomeView #yearSelection .panel-head{border:0;margin:0 0 22px;padding:0;align-items:center;text-align:left}
#welcomeView #yearSelection .panel-head h2{margin:0;color:var(--ink);font:800 26px/1.3 Manrope,Arial,sans-serif;letter-spacing:-.035em}
#welcomeView #yearSelection .panel-head p{color:var(--muted);font-size:12px}
#welcomeView #yearSelection .panel-head small{color:var(--muted);letter-spacing:0}
#welcomeView #yearSelection .year-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px;padding:3px}
#welcomeView #yearSelection .year-card{min-height:88px;padding:15px;border:1px solid var(--line);background:#fff;border-radius:14px;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;color:var(--ink)}
#welcomeView #yearSelection .year-card.active{background:#f2faf6;border-color:#b5d6c9;box-shadow:none}
#welcomeView #yearSelection .year-card:hover{background:#f2faf6;border-color:var(--green);box-shadow:0 6px 20px #183c300b}
#welcomeView #yearSelection .year-monogram{width:48px;height:48px;background:#e5f4ed;color:#286c59;border-radius:12px;font-size:20px}
#welcomeView #yearSelection .year-card:nth-child(3n+2) .year-monogram{background:#eaf0fc;color:#375b88}
#welcomeView #yearSelection .year-card:nth-child(3n) .year-monogram{background:#f0eafd;color:#70529b}
#welcomeView #yearSelection .year-info b{font-size:13px;color:var(--ink)}
#welcomeView #yearSelection .year-info small{font-size:10px;color:var(--muted)}
#welcomeView #yearSelection .year-state{color:#39745d;font-size:9px}
#welcomeView #yearSelection .all-topics-cta{margin-top:22px;padding:20px 24px;background:#edf6f1;border:1px solid #d5e7dc;color:var(--ink);border-radius:14px}
#welcomeView #yearSelection .all-topics-cta strong{color:var(--ink);font-size:16px}
#welcomeView #yearSelection .all-topics-cta span{color:var(--green);font-size:12px}
#welcomeView #yearSelection .all-topics-cta:hover{background:#e1f0e7}
#welcomeView .oabt-footer{width:100%;margin:0;padding:36px max(24px,calc((100vw - 1224px)/2)) 20px;border-top:1px solid var(--line);background:#f7faf8;border-radius:0}
.oabt-footer-about p,.oabt-footer-links a,.oabt-footer-bottom{color:var(--muted)}
#modeView,.topic-screen{background:linear-gradient(115deg,#f2faf6,#f8fcff 65%,#fff9f0);color:var(--ink)}
#modeView .mode-intro h1,.topic-content h1{color:var(--ink);font-size:clamp(30px,4vw,48px);letter-spacing:-.04em}
#modeView .mode-intro .mode-highlight{color:var(--green)}
#modeView .mode-card{background:#fff;border-color:var(--line);box-shadow:none;border-radius:18px}
#modeView .mode-card>strong{color:var(--ink)}
#modeView .mode-card[data-mode="exam"]{background:#f0f5ff;border-color:#dce5f4}
#modeView .mode-card[data-mode="exam"] .mode-icon,#modeView .mode-card[data-mode="exam"] .mode-tag{background:#e2eafb;color:#375b88}
#modeView .mode-card[data-mode="exam"]>strong{color:var(--ink)}
#modeView .mode-card[data-mode="exam"]>span:not(.mode-icon):not(.mode-tag){color:var(--muted)}
#modeView .mode-card[data-mode="exam"] em{color:#375b88}
#modeView .mode-card[data-mode="topic"] .mode-icon,#modeView .mode-card[data-mode="topic"] .mode-tag{background:#f0eafd;color:#70529b}
.exam-app,.results{background:#f5f9f7}
.question-card,.optic,.answer-key-card{border-color:var(--line);box-shadow:none}
.question-card h2,.question-index,.optic h3{color:var(--ink)}
.progress>span,.grid-button.current{background:var(--green)}
@media(min-width:1500px){.campus-menu{display:none}}
@media(max-width:950px){.campus-desktop{display:none}.campus-menu{margin-left:auto}.campus-hero{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px}#welcomeView #yearSelection .year-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){#welcomeView .welcome-nav{height:68px;padding-inline:18px}.brand strong{font-size:21px}.brand-logo{width:38px;height:38px}.campus-hero{grid-template-columns:1fr;padding:28px 18px;gap:20px}#welcomeView .welcome-copy h1{font-size:clamp(30px,6.3vw,42px)}.campus-illustration{width:min(100%,380px);margin:0 auto}.campus-illustration img{max-height:230px}.campus-note{font-size:10px;padding:10px 13px}#welcomeView #yearSelection{padding:28px 18px 36px}#welcomeView #yearSelection .panel-head h2{font-size:24px}#welcomeView #yearSelection .year-list{grid-template-columns:1fr!important}#welcomeView #yearSelection .year-card{min-height:80px}#welcomeView #yearSelection .year-state{display:block}#welcomeView #yearSelection .all-topics-cta{padding:18px;gap:8px}#welcomeView .welcome-copy .exam-facts div{flex:1;min-width:0;padding:0 18px}.mode-head{gap:12px}.mode-head .button{font-size:12px;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Reset the previous centered landing layout within the shared hero. */
#welcomeView .welcome-copy{display:block}
#welcomeView .welcome-copy h1,#welcomeView .welcome-copy>p{margin-left:0;margin-right:0}
#welcomeView .welcome-copy .welcome-actions{display:flex;justify-content:flex-start;align-items:center}
#welcomeView .welcome-copy .exam-facts{margin-left:0;margin-right:0}
/* A text-only introduction keeps the archive close to the main platform. */
.campus-hero{grid-template-columns:1fr;padding-top:40px;padding-bottom:34px}
#welcomeView .welcome-copy{max-width:820px}
#welcomeView .welcome-copy h1{max-width:820px}
@media(max-width:950px){.campus-hero{grid-template-columns:1fr}}

/* Keep spacing only when there is a saved session to resume. */
#welcomeView .welcome-actions:not(:has(button:not([hidden]))){display:none}

/* A visible, persistent entry to question tracking on smaller screens. */
.optic-trigger-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
#openOptic .optic-trigger-text{display:block;font-size:13px;font-weight:800;margin:0}
#opticTriggerCount{font-size:10px;font-weight:500}
.optic-trigger-arrow{margin-left:auto;font-size:20px}
@media(max-width:1000px){
  .exam-app:not(.exam-finished) #openOptic{display:flex;width:auto;min-height:48px;padding:10px 14px;align-items:center;gap:12px;background:var(--green);color:#fff;border:0;border-radius:12px;cursor:pointer}
  .exam-app:not(.exam-finished) .optic-head button{display:block;min-width:44px;min-height:44px;cursor:pointer}
}
@media(max-width:700px){
  .exam-app:not(.exam-finished) .exam-header{position:sticky;top:0;z-index:20;height:auto;padding:12px 16px;grid-template-columns:minmax(0,1fr) auto;gap:10px;background:#fff;box-shadow:0 3px 12px #18243b08}
  .exam-app:not(.exam-finished) .exam-header .brand{grid-column:1;grid-row:1}
  .exam-app:not(.exam-finished) .exam-header .brand strong{font-size:19px}
  .exam-app:not(.exam-finished) .exam-progress-wrap{display:none}
  .exam-app:not(.exam-finished) .header-actions{display:contents}
  .exam-app:not(.exam-finished) .timer{grid-column:2;grid-row:1;min-width:78px;font-size:13px}
  .exam-app:not(.exam-finished) #openOptic{grid-column:1/-1;grid-row:2;width:100%;min-height:54px}
  .exam-app:not(.exam-finished) #openOptic .optic-trigger-text{font-size:14px}
  .exam-app:not(.exam-finished) #opticTriggerCount{font-size:11px}
}
/* Archive overview: two substantive cards, including the cancellation context. */
#welcomeView .welcome-copy .exam-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:760px;padding:0;border:0;margin-top:26px}
#welcomeView .welcome-copy .exam-facts div,#welcomeView .welcome-copy .exam-facts div:first-child{padding:20px 22px;min-width:0;border:1px solid #d4e6dd;border-radius:16px;background:#ffffffcf}
#welcomeView .welcome-copy .exam-facts div:nth-child(2){background:#eef4ff;border-color:#dae3f2}
#welcomeView .welcome-copy .exam-facts .fact-kicker{font-size:9px;font-weight:800;letter-spacing:.08em;color:var(--green);margin:0 0 10px}
#welcomeView .welcome-copy .exam-facts strong{font-size:36px;line-height:1.1}
#welcomeView .welcome-copy .exam-facts span:not(.fact-kicker){font-size:13px;font-weight:700;color:var(--ink);margin-top:7px}
#welcomeView .welcome-copy .exam-facts small{display:block;margin-top:9px;font-size:10px;color:var(--muted);line-height:1.5}
.saved-questions{margin-top:20px;padding:15px;border:1px solid #e6ddc7;border-radius:12px;background:#fffaf0}
.saved-questions h4{margin:0;font-size:13px;color:var(--ink);display:flex;justify-content:space-between;gap:10px}
.saved-questions p{font-size:10px;line-height:1.5;color:var(--muted);margin:8px 0}
#savedQuestionList{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;color:var(--muted);line-height:1.5}
#savedQuestionList button{padding:8px 10px;min-height:40px;background:#fff;border:1px solid #decfab;border-radius:8px;color:var(--ink);font-size:11px;cursor:pointer}
.result-action{margin-top:16px;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:center;gap:18px}
.result-action small{font-size:11px;line-height:1.6;color:var(--muted)}
.result-action button{flex-shrink:0;cursor:pointer}
.exam-app.exam-finished .saved-questions,.exam-app.exam-finished .result-action,.exam-app.exam-finished .header-actions{display:none!important}
.exam-app.exam-finished .optic{height:auto;min-height:0}
.exam-app.exam-finished .optic-head h3{font-size:24px;line-height:1.3}
.exam-app:not(.exam-finished) .optic-head h3{overflow-wrap:anywhere}
@media(max-width:700px){
  .exam-app.exam-finished .exam-header{height:auto;min-height:68px;display:flex;align-items:center;padding:12px 16px;gap:12px}
  .exam-app.exam-finished .exam-progress-wrap{display:none}
  .exam-app.exam-finished .exam-main{padding:16px}
  .exam-app.exam-finished .optic{padding:20px 14px;border-radius:18px}
  .exam-app.exam-finished .optic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .exam-app.exam-finished .grid-button.result-cell{min-height:90px;padding:10px 6px}
  .exam-app.exam-finished .result-number{font-size:11px}
  .result-action{flex-direction:column;align-items:stretch;gap:9px}
  .result-action small{text-align:center}
}
@media(max-width:380px){#welcomeView .welcome-copy .exam-facts{gap:10px}#welcomeView .welcome-copy .exam-facts div,#welcomeView .welcome-copy .exam-facts div:first-child{padding:17px 13px}}
.archive-guides{width:100%;max-width:1280px;margin:0 auto;padding:16px 28px 46px}
.archive-guides h2{font-size:26px;letter-spacing:-.035em;margin:8px 0}
.archive-guides>p{max-width:750px;color:var(--muted);font-size:13px;line-height:1.8}
.guide-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.guide-cards a{display:flex;flex-direction:column;gap:12px;padding:22px;border:1px solid var(--line);border-radius:14px;text-decoration:none;background:#f5faf7}
.guide-cards a:nth-child(2){background:#f3f0fb}.guide-cards a:nth-child(3){background:#eef4fc}
.guide-cards strong{font-size:15px;color:var(--ink)}.guide-cards span{font-size:12px;line-height:1.6;color:var(--green)}
.year-guide-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:22px}.year-guide-links a{font-size:11px;color:var(--green);text-underline-offset:4px}
@media(max-width:700px){.archive-guides{padding:0 18px 36px}.guide-cards{grid-template-columns:1fr}.archive-guides h2{font-size:24px}}
