/* LAMA PPSC Academy — launch-phase visual and accessibility refinement.
 * Keeps existing DOM IDs, routes, saved attempts and exam timing intact.
 */
:root{--lama-forest:#103d34;--lama-leaf:#176e51;--lama-gold:#e8c35c;--lama-ink:#183a32;--lama-line:#d7e7dc;--lama-bg:#f4f8f5;--lama-radius:16px}
html{scroll-behavior:smooth}
body{background:var(--lama-bg);color:var(--lama-ink);line-height:1.52;overflow-x:clip}
a{overflow-wrap:anywhere;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:where(a,button,input,select,textarea,summary,[role="button"]):focus-visible{outline:3px solid #d69d22!important;outline-offset:3px;box-shadow:0 0 0 6px #f4d77555}
:where(button,.btn,input,select,textarea){font:inherit}
:where(button,.btn){min-height:44px;touch-action:manipulation}
:where(input,select,textarea){min-height:44px}
:where(button):disabled{cursor:not-allowed}
.skip-to-content{position:absolute;top:-90px;left:12px;z-index:10000;background:#fff;color:#123f31;padding:12px 16px;border:2px solid #c69b3f;border-radius:10px;font-weight:750}
.skip-to-content:focus{top:12px}
body>header{background:linear-gradient(140deg,#103d34,#0f5140 80%);border-bottom:3px solid #e0bd53}
body>header .academy-brand{gap:clamp(12px,2vw,24px)}
body>header .academy-brand .academy-own-logo{background:transparent!important;box-shadow:0 6px 20px #071d1638;border-radius:22%;object-fit:contain}
body>header .academy-toolbar{align-items:center}
body>header .academy-toolbar .hamburger-button{border:1px solid #ffffff50;border-radius:12px;flex-shrink:0}
body>header .academy-toolbar .install-button{background:#f8f6eb!important;color:#0e4232!important;border:1px solid #e1c56b!important;border-radius:11px}
body>header p{max-width:70ch}
main{width:100%;max-width:1100px;min-width:0}
main .card{border:1px solid #d7e7dc;box-shadow:0 8px 26px #173f2f0d}
main h2{letter-spacing:-.025em}
main .card h2:first-child{margin-top:0}
#jobCards .job-card{box-shadow:0 5px 20px #163f3110}
#jobCards .job-card:hover{box-shadow:0 9px 26px #163f3124}
#jobCards .job-actions a{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
#academyMenu{overflow-y:auto;max-height:100dvh;overscroll-behavior:contain;scrollbar-color:#8fb49f transparent}
#academyMenu>a,#academyMenu .menu-paper-group summary{min-height:44px}
#academyMenu>a{display:flex;align-items:center}
#academyMenu details a{line-height:1.35}
#academyMenu .menu-paper-group{overflow-wrap:anywhere}
#paper .exam-option{border-radius:11px;transition:border-color .12s ease,background-color .12s ease}
#paper .exam-option:has(input:checked){border-color:#1f815d;background:#e6f6ed;box-shadow:inset 4px 0 0 #1f815d}
#paper .exam-option:has(input:focus-visible){outline:3px solid #d69d22;outline-offset:2px}
#paper .exam-question{background:#fff;box-shadow:0 2px 12px #0d432713}
#paper .exam-question legend{font-weight:650}
#paper .exam-status-bar{font-variant-numeric:tabular-nums}
#library .library-entry{box-shadow:0 3px 12px #173f2f0c}
#library .library-entry:focus-within{border-color:#207555}
#studyPlanner .planner-day{background:#f2f8f4}
#membershipStatus{box-shadow:0 2px 10px #123f2310}
body.academy-routed[data-view]:not([data-view="jobs"]) > header{padding-top:12px!important;padding-bottom:13px!important}
body.academy-routed[data-view]:not([data-view="jobs"]) > header .academy-brand{margin:8px 0!important}
body.academy-routed[data-view]:not([data-view="jobs"]) > header .academy-brand .academy-own-logo{width:clamp(58px,11vw,78px)!important;height:clamp(58px,11vw,78px)!important;flex:none}
body.academy-routed[data-view]:not([data-view="jobs"]) > header .academy-brand h1{font-size:clamp(1.05rem,3.6vw,1.55rem)!important;line-height:1.16}
body.academy-routed[data-view]:not([data-view="jobs"]) > header .academy-brand span{font-size:.76rem!important}
body.academy-routed[data-view]:not([data-view="jobs"]) > header > p{display:none}
body.academy-routed[data-view]:not([data-view="jobs"]) main{padding-top:10px!important}
body.academy-routed[data-view]:not([data-view="jobs"]) main>.card{max-width:100%;width:100%;margin:8px 0 14px!important}
.academy-footer{background:#0e392f;color:#e8f8ee;margin:28px 0 0;padding:23px max(16px,calc((100vw - 1000px)/2));border-top:3px solid #d7b34d}
.academy-footer strong{display:block;font-size:1.04rem;color:#fff}
.academy-footer p{font-size:.87rem;line-height:1.6;margin:7px 0}
.academy-footer nav{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.academy-footer nav a{color:#f4f9ee;text-decoration:none;padding:9px 12px;background:#ffffff17;border:1px solid #ffffff40;border-radius:9px;min-height:44px;display:inline-flex;align-items:center}
.academy-footer nav a:hover{background:#ffffff25}
.academy-footer .legal-note{color:#d0e6dc;font-size:.78rem}
@media(max-width:600px){
 html{scroll-padding-top:12px}
 body>header{padding:12px 14px 16px!important}
 main{padding:10px 8px 26px!important}
 main .card{margin:10px 0!important;border-radius:15px!important;padding:clamp(13px,3.5vw,18px)!important}
 #jobCards .job-card{min-width:0}
 #jobCards .job-actions{gap:8px}
 #jobCards .job-actions a{font-size:.88rem;padding:10px 7px}
 #paper .exam-question{padding:12px}
 #paper .exam-option{padding:11px}
 .academy-footer{margin-top:20px;padding:20px 14px 28px}
 .academy-footer nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .academy-footer nav a{font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.skip-to-content,.academy-footer{display:none!important}body{background:white!important}#paper .exam-question{box-shadow:none!important}}
