:root{--ink:#0b1220;--muted:#5b6575;--line:#dce3ea;--paper:#f6f8fb;--white:#fff;--green:#087f5b;--green2:#0ca678;--gold:#f4b942}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}.site-header{max-width:1180px;margin:auto;padding:24px 28px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:20px;font-weight:800;display:flex;align-items:center;gap:10px}.brand span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,var(--green2),var(--green));color:white;box-shadow:0 10px 25px rgba(8,127,91,.22)}nav{display:flex;align-items:center;gap:24px}.locale-switch{display:flex;gap:4px;background:white;border:1px solid var(--line);padding:4px;border-radius:12px}.locale-switch a{padding:7px 10px;border-radius:8px;font-size:13px}.locale-switch a.active{background:var(--ink);color:white}.text-link{font-weight:700;font-size:14px}.hero{max-width:1180px;margin:24px auto 0;padding:78px 72px;border-radius:34px;display:grid;grid-template-columns:1.3fr .7fr;gap:55px;align-items:center;color:white;background:radial-gradient(circle at 85% 10%,rgba(244,185,66,.26),transparent 32%),linear-gradient(135deg,#0b1220,#103b35);box-shadow:0 30px 70px rgba(11,18,32,.18)}.eyebrow{display:inline-flex;padding:7px 12px;border:1px solid rgba(255,255,255,.25);border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.02;letter-spacing:-.045em;margin:24px 0}.hero-copy>p{max-width:700px;color:#d9e4e2;font-size:18px}.hero-actions{display:flex;gap:12px;margin-top:30px}.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:12px;border:0;font-weight:800;cursor:pointer}.button.primary{background:var(--gold);color:#1f2937}.button.secondary{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);color:white}.status-card{display:flex;gap:16px;padding:25px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.08);border-radius:20px;backdrop-filter:blur(10px)}.status-card p{color:#d9e4e2;margin:7px 0 0;font-size:14px}.status-dot{width:12px;height:12px;border-radius:50%;background:#40c057;box-shadow:0 0 0 7px rgba(64,192,87,.16);flex:0 0 auto;margin-top:6px}.section{max-width:1180px;margin:90px auto;padding:0 28px}.section-heading{display:flex;align-items:center;gap:14px;margin-bottom:28px}.section-heading span{font-size:12px;font-weight:900;color:var(--green)}.section h2{font-size:34px;margin:0;letter-spacing:-.03em}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.category-card{background:white;border:1px solid var(--line);border-radius:20px;padding:25px;min-height:250px;transition:.2s}.category-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(11,18,32,.08)}.category-code{font-size:11px;font-weight:900;color:var(--green);letter-spacing:.08em}.category-card h3{font-size:21px;margin:17px 0 10px}.category-card p{color:var(--muted);font-size:14px}.tag{display:inline-flex;margin-top:14px;padding:6px 9px;border-radius:8px;background:#e6fcf5;color:#087f5b;font-size:11px;font-weight:800}.architecture{background:white;border:1px solid var(--line);border-radius:28px;padding:42px}.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.feature{display:flex;gap:13px;align-items:center;padding:18px;background:var(--paper);border-radius:14px;font-weight:750}.feature i{font-style:normal;color:var(--green)}.disclaimer{max-width:1124px;margin:0 auto 70px;background:#fff9db;border:1px solid #ffe066;padding:18px 22px;border-radius:14px;color:#5f4b00;font-size:13px}footer{max-width:1180px;margin:auto;border-top:1px solid var(--line);padding:30px 28px 50px;display:flex;justify-content:space-between;color:var(--muted);font-size:13px}.legal-page{max-width:760px;margin:70px auto;padding:40px;background:white;border:1px solid var(--line);border-radius:24px}.legal-page h1{font-size:44px}.auth-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0b1220,#103b35)}.auth-card{width:min(460px,calc(100% - 32px));background:white;padding:36px;border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.auth-card h1{margin-top:30px}.auth-card form{display:grid;gap:12px;margin-top:22px}.auth-card input{font-size:24px;letter-spacing:8px;text-align:center;padding:14px;border:1px solid var(--line);border-radius:12px}.link-button{background:none;border:0;color:var(--green);font-weight:800;cursor:pointer}.alert{padding:12px;border-radius:10px;margin:14px 0}.alert.success{background:#e6fcf5;color:#087f5b}.alert.error{background:#fff5f5;color:#c92a2a}[dir=rtl] body{text-align:right}[dir=rtl] .brand,[dir=rtl] .status-card,[dir=rtl] .section-heading,[dir=rtl] .feature{flex-direction:row-reverse}@media(max-width:900px){.hero{grid-template-columns:1fr;padding:48px 30px;margin:12px 16px}.category-grid{grid-template-columns:repeat(2,1fr)}.site-header{align-items:flex-start}.site-header nav{flex-direction:column;align-items:flex-end;gap:10px}}@media(max-width:560px){.site-header{padding:18px;flex-direction:column;gap:18px}.site-header nav{width:100%;align-items:flex-start}.hero h1{font-size:42px}.hero-actions{flex-direction:column}.section{margin:60px auto}.category-grid,.feature-grid{grid-template-columns:1fr}.architecture{margin-left:16px;margin-right:16px}.disclaimer{margin:0 16px 50px}footer{flex-direction:column;gap:8px}}
.category-meta{margin-top:16px;color:var(--green);font-size:12px;font-weight:800}.card-link{display:inline-flex;margin-top:15px;font-weight:850;color:var(--green);font-size:14px}.training-shell{max-width:1180px;margin:25px auto 70px;padding:0 28px}.breadcrumb{display:inline-flex;margin-bottom:22px;color:var(--muted);font-weight:750;font-size:14px}.training-hero{padding:55px 58px;border-radius:30px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(244,185,66,.25),transparent 35%),linear-gradient(135deg,#0b1220,#0c4a3d);display:flex;justify-content:space-between;align-items:center;gap:35px;box-shadow:0 28px 65px rgba(11,18,32,.15)}.training-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.05;margin:20px 0 14px;letter-spacing:-.04em}.training-hero p{max-width:700px;color:#d9e4e2;font-size:17px}.question-count{width:180px;height:180px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:grid;place-content:center;text-align:center;background:rgba(255,255,255,.08);flex:0 0 auto}.question-count strong{font-size:46px;line-height:1}.question-count span{font-size:12px;color:#d9e4e2;margin-top:8px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:28px 0 75px}.mode-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:0 14px 35px rgba(11,18,32,.05)}.mode-card.dark{background:#0b1220;color:#fff;border-color:#0b1220}.mode-card.dark p{color:#cad1da}.mode-icon{font-size:12px;font-weight:900;color:var(--green);letter-spacing:.12em}.mode-card h2{font-size:30px;margin:18px 0 8px}.mode-card p{color:var(--muted);min-height:55px}.mode-card form{margin-top:24px}.topic-section{margin-top:30px}.topic-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.topic-card{display:flex;flex-direction:column;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:20px;padding:25px;min-height:230px}.topic-card.disabled{opacity:.55}.topic-code{font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--green)}.topic-card h3{font-size:22px;margin:12px 0 8px}.topic-card p{color:var(--muted);font-size:14px}.topic-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;font-size:12px;color:var(--muted)}.mini-button{border:0;background:#e6fcf5;color:var(--green);font-weight:850;padding:9px 12px;border-radius:10px;cursor:pointer}.quiz-header{max-width:980px;margin:auto;padding:24px 26px;display:flex;justify-content:space-between;align-items:center}.quiz-header-meta{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px;font-weight:700}.mode-pill{background:#e6fcf5;color:var(--green);padding:7px 11px;border-radius:999px}.quiz-shell{max-width:940px;margin:15px auto 80px;padding:0 24px}.progress-track{height:8px;border-radius:999px;background:#e4e9ef;overflow:hidden;margin-bottom:24px}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--green2));border-radius:inherit;transition:width .25s}.question-panel{position:relative;background:#fff;border:1px solid var(--line);border-radius:28px;padding:50px;box-shadow:0 22px 55px rgba(11,18,32,.08)}.question-number{position:absolute;top:24px;inset-inline-end:28px;color:#b4bdc8;font-size:14px;font-weight:900;letter-spacing:.1em}.question-panel h1{max-width:760px;font-size:clamp(28px,4vw,42px);line-height:1.2;letter-spacing:-.025em;margin:10px 0 32px}.question-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 28px}.question-media-grid img,.answer-content img{max-width:100%;border:1px solid var(--line);border-radius:14px;background:white}.answer-list{display:grid;gap:13px}.answer-option{display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:16px;cursor:pointer;transition:.15s;background:#fff}.answer-option:hover{border-color:#9ed8c5;transform:translateY(-1px)}.answer-option input{margin-top:8px;width:18px;height:18px;accent-color:var(--green)}.answer-key{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:#edf2f7;font-weight:900}.answer-content{display:grid;gap:10px;flex:1;font-size:16px}.answer-option.selected{border-color:#74c0fc;background:#f0f8ff}.answer-option.correct-option{border-color:#40c057;background:#ebfbee}.feedback-card{padding:18px 20px;border-radius:14px;margin-bottom:22px}.feedback-card.success{background:#ebfbee;color:#087f5b;border:1px solid #8ce99a}.feedback-card.error{background:#fff5f5;color:#c92a2a;border:1px solid #ffa8a8}.feedback-card p{margin:7px 0 0}.quiz-actions{display:flex;justify-content:flex-end;margin-top:28px}.result-shell{max-width:980px;margin:15px auto 80px;padding:0 24px}.result-hero{text-align:center;color:#fff;padding:55px 30px;border-radius:30px;background:radial-gradient(circle at 20% 10%,rgba(244,185,66,.28),transparent 32%),linear-gradient(135deg,#0b1220,#0c4a3d);box-shadow:0 28px 65px rgba(11,18,32,.16)}.score-ring{width:175px;height:175px;border:10px solid rgba(255,255,255,.18);border-top-color:var(--gold);border-radius:50%;display:grid;place-content:center;margin:28px auto 15px}.score-ring strong{font-size:42px;line-height:1}.score-ring span{font-size:12px;color:#d9e4e2}.result-hero h1{font-size:52px;margin:10px 0 18px}.result-stats{display:flex;justify-content:center;gap:12px;margin-bottom:28px}.result-stats div{min-width:120px;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.07);display:grid}.result-stats strong{font-size:23px}.result-stats span{font-size:11px;color:#d9e4e2}.review-section{margin-top:65px}.review-list{display:grid;gap:12px}.review-item{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.review-item summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:36px 1fr 28px;gap:14px;align-items:center;padding:18px 20px}.review-item summary::-webkit-details-marker{display:none}.review-item summary>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf2f7;font-weight:900}.review-item summary strong{font-size:14px}.review-item summary em{font-style:normal;font-size:20px;text-align:center}.review-item summary em.ok{color:#2f9e44}.review-item summary em.bad{color:#e03131}.review-body{border-top:1px solid var(--line);padding:18px 70px 22px;color:var(--muted);font-size:14px}.review-body p{margin:7px 0}[dir=rtl] .quiz-header,[dir=rtl] .training-hero,[dir=rtl] .topic-bottom,[dir=rtl] .answer-option{direction:rtl}[dir=rtl] .quiz-actions{justify-content:flex-start}@media(max-width:760px){.training-hero{padding:38px 26px;align-items:flex-start}.question-count{width:120px;height:120px}.question-count strong{font-size:34px}.mode-grid,.topic-grid{grid-template-columns:1fr}.question-panel{padding:36px 22px}.quiz-header{align-items:flex-start;gap:16px}.quiz-header-meta{flex-direction:column;align-items:flex-end}.result-stats{flex-wrap:wrap}}@media(max-width:540px){.training-hero{flex-direction:column}.question-count{border-radius:18px;width:100%;height:auto;padding:20px}.question-panel h1{font-size:27px}.answer-option{padding:14px}.result-hero{padding:40px 18px}.review-item summary{grid-template-columns:32px 1fr 24px}.review-body{padding:16px 20px}.quiz-header{padding:18px;flex-direction:column}.quiz-header-meta{align-items:flex-start}}

/* Sprint 3 reliability and learning UX */
.alert-card{max-width:1160px;margin:20px auto;padding:16px 18px;border-radius:14px;border:1px solid #f0c2c2;background:#fff6f6;color:#7f1d1d}
.alert-card strong{display:block;margin-bottom:6px}.alert-card ul{margin:0;padding-inline-start:20px}
.field-label{display:block;font-weight:700;font-size:.85rem;margin:18px 0 8px}.select-control{width:100%;max-width:220px;border:1px solid #ccd6df;border-radius:10px;padding:11px 12px;background:#fff;margin-bottom:12px}
.quiz-timer{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:7px 10px;border-radius:999px;background:#e8f7f1;color:#0b6b4f;font-weight:800;font-variant-numeric:tabular-nums}.quiz-timer.urgent{background:#fff1f2;color:#b42318}
button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:720px){.quiz-header-meta{gap:8px;flex-wrap:wrap}.select-control{max-width:none}}

/* Sprint 4 LMV learning hub */
.learning-launch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0 30px}.learning-launch-card{display:grid;gap:7px;padding:22px;border:1px solid var(--line);background:#fff;border-radius:18px;transition:.18s}.learning-launch-card:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(11,18,32,.08)}.learning-launch-card.primary{background:#0b1220;color:#fff;border-color:#0b1220}.learning-launch-card>span{font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--green2)}.learning-launch-card strong{font-size:20px}.learning-launch-card small{color:var(--muted)}.learning-launch-card.primary small{color:#cbd5df}.mode-grid-three{grid-template-columns:repeat(3,1fr)}.review-card{background:linear-gradient(145deg,#fff7e3,#fff);border-color:#f8d88b}.mistake-number{font-size:48px;font-weight:900;line-height:1;color:#d97706;margin:18px 0}.completion-note{display:inline-flex;margin-top:20px;padding:9px 12px;border-radius:10px;background:#e6fcf5;color:var(--green);font-size:12px;font-weight:800}.learning-shell{max-width:1180px;margin:24px auto 80px;padding:0 28px}.learning-hero{padding:58px 60px;border-radius:30px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:40px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(244,185,66,.28),transparent 36%),linear-gradient(135deg,#0b1220,#0c4a3d);box-shadow:0 28px 65px rgba(11,18,32,.16)}.learning-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.05;letter-spacing:-.04em;margin:20px 0 14px}.learning-hero p{max-width:720px;color:#d9e4e2;font-size:17px}.progress-orb{width:170px;height:170px;border:10px solid rgba(255,255,255,.16);border-top-color:var(--gold);border-radius:50%;display:grid;place-content:center;text-align:center}.progress-orb strong{font-size:38px;line-height:1}.progress-orb span{font-size:11px;color:#d9e4e2;margin-top:8px}.learning-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0 70px}.learning-stats>div,.learning-stats>a{display:grid;gap:4px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:16px}.learning-stats strong{font-size:25px}.learning-stats span{font-weight:800}.learning-stats small{color:var(--muted)}.lesson-section{margin-top:20px}.lesson-list{display:grid;gap:12px}.lesson-row{display:grid;grid-template-columns:54px 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 22px;transition:.18s}.lesson-row:hover{border-color:#9ed8c5;transform:translateY(-2px);box-shadow:0 14px 30px rgba(11,18,32,.06)}.lesson-order{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e6fcf5;color:var(--green);font-weight:900}.lesson-copy h3{margin:0 0 5px;font-size:20px}.lesson-copy p{margin:0;color:var(--muted);font-size:14px}.lesson-meta{display:grid;justify-items:end;gap:8px;color:var(--muted);font-size:12px}.lesson-meta b{padding:5px 8px;border-radius:8px;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.status-completed{background:#e6fcf5;color:var(--green)}.status-in_progress{background:#fff3bf;color:#8a5d00}.status-not_started{background:#edf2f7;color:#5b6575}.compact-header{padding-bottom:8px}.lesson-shell{max-width:900px;margin:28px auto 80px;padding:0 24px}.lesson-article{background:#fff;border:1px solid var(--line);border-radius:28px;padding:52px;box-shadow:0 22px 55px rgba(11,18,32,.07)}.lesson-article>header h1{font-size:clamp(36px,5vw,58px);line-height:1.08;letter-spacing:-.04em;margin:14px 0}.lesson-article>header p{font-size:18px;color:var(--muted)}.lesson-kicker{color:var(--green);font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.key-points{margin:32px 0;padding:22px 24px;border-radius:16px;background:#eefaf6;border:1px solid #bce8d8}.key-points ul{margin:12px 0 0;padding-inline-start:22px}.lesson-content{font-size:17px;line-height:1.8}.lesson-content h2{font-size:28px;margin:38px 0 12px}.lesson-content p{color:#334155}.lesson-complete-box{display:flex;justify-content:flex-end;margin-top:45px;padding-top:28px;border-top:1px solid var(--line)}.completion-badge{padding:11px 15px;border-radius:12px;background:#e6fcf5;color:var(--green);font-weight:900}.lesson-navigation{display:flex;justify-content:space-between;gap:20px;margin-top:18px}.lesson-navigation a{max-width:46%;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;font-weight:750}.catalog-heading{margin:25px 0 32px}.catalog-heading h1{font-size:clamp(38px,5vw,58px);margin:14px 0 8px;letter-spacing:-.04em}.catalog-heading p{color:var(--muted);font-size:17px;max-width:760px}.dark-eyebrow{color:var(--green);border-color:#b8dcd0}.filter-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}.filter-pills a{padding:8px 13px;border:1px solid var(--line);background:#fff;border-radius:999px;font-size:13px;font-weight:800}.filter-pills a.active{background:var(--ink);color:#fff;border-color:var(--ink)}.sign-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.sign-card{display:grid;grid-template-columns:135px 1fr;gap:22px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}.sign-card h2{font-size:23px;margin:8px 0}.sign-card p{color:var(--muted);font-size:14px}.sign-visual{width:120px;height:120px;display:grid;place-items:center;margin:auto;background:#fff;font-size:30px;font-weight:950;box-shadow:0 8px 25px rgba(11,18,32,.08)}.shape-circle{border-radius:50%}.shape-square{border-radius:12px}.shape-rectangle{height:85px;border-radius:10px;margin-top:18px}.shape-triangle{clip-path:polygon(50% 0,100% 100%,0 100%);padding-top:24px}.shape-octagon{clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}.scheme-red{border:8px solid #e03131;color:#c92a2a}.scheme-amber{border:8px solid #f59f00;color:#7f4f00;background:#fff9db}.scheme-blue{border:8px solid #1971c2;color:#1864ab}.scheme-neutral{border:8px solid #64748b;color:#334155}.driver-action{display:grid;gap:4px;margin-top:14px;padding:12px;background:#f6f8fb;border-radius:12px}.driver-action strong{font-size:11px;color:var(--green);text-transform:uppercase;letter-spacing:.06em}.driver-action span{font-size:13px}.progress-dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0 65px}.progress-dashboard-grid article{display:grid;gap:5px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:18px}.progress-dashboard-grid strong{font-size:34px}.progress-dashboard-grid span{font-weight:850}.progress-dashboard-grid small{color:var(--muted)}.review-queue-section,.recent-section{margin-top:45px}.mistake-list{display:grid;gap:10px}.mistake-list article{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:15px}.mistake-list article span{font-size:10px;color:var(--green);font-weight:900;text-transform:uppercase}.mistake-list article h3{font-size:16px;margin:6px 0 0}.mastery-meter{display:grid;justify-items:end}.mastery-meter b{font-size:22px}.mastery-meter small{color:var(--muted)}.review-start-form{display:flex;justify-content:flex-end;margin-top:20px}.empty-state{text-align:center;padding:45px;background:#fff;border:1px dashed #b7c4d1;border-radius:20px}.empty-state>strong{font-size:40px;color:var(--green)}.empty-state h3{font-size:23px;margin:8px 0}.empty-state p{color:var(--muted)}.recent-list{display:grid;gap:8px}.recent-list>div{display:grid;grid-template-columns:1fr 90px 80px 140px;gap:12px;padding:15px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;align-items:center}.recent-list span{font-weight:800}.recent-list small{color:var(--muted);text-align:end}.result-actions{justify-content:center}.alert-card.success{border-color:#8ce99a;background:#ebfbee;color:#087f5b}
@media(max-width:900px){.learning-launch-grid,.mode-grid-three,.learning-stats,.progress-dashboard-grid{grid-template-columns:repeat(2,1fr)}.learning-hero{grid-template-columns:1fr}.sign-grid{grid-template-columns:1fr}}
@media(max-width:620px){.learning-launch-grid,.mode-grid-three,.learning-stats,.progress-dashboard-grid{grid-template-columns:1fr}.lesson-row{grid-template-columns:44px 1fr}.lesson-meta{grid-column:2;justify-items:start}.lesson-article{padding:32px 22px}.sign-card{grid-template-columns:1fr}.lesson-navigation{flex-direction:column}.lesson-navigation a{max-width:none}.recent-list>div{grid-template-columns:1fr 1fr}.recent-list small{grid-column:1/-1;text-align:start}}
[dir=rtl] .lesson-meta,[dir=rtl] .mastery-meter{justify-items:start}[dir=rtl] .lesson-complete-box,[dir=rtl] .review-start-form{justify-content:flex-start}

/* Sprint 5 engagement engine */
.engagement-shell{padding-bottom:90px}.engagement-hero{display:grid;grid-template-columns:1fr auto;gap:36px;align-items:center;padding:54px 58px;border-radius:30px;color:#fff;background:radial-gradient(circle at 85% 10%,rgba(244,185,66,.28),transparent 34%),linear-gradient(135deg,#0b1220,#0b6048);box-shadow:0 28px 65px rgba(11,18,32,.16)}.engagement-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.05;letter-spacing:-.04em;margin:18px 0 14px}.engagement-hero p{max-width:760px;color:#d8e8e4;font-size:17px}.level-emblem{width:170px;height:170px;border-radius:50%;display:grid;place-content:center;text-align:center;background:rgba(255,255,255,.1);border:9px solid rgba(255,255,255,.15);border-top-color:var(--gold)}.level-emblem span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#cde2dd}.level-emblem strong{font-size:56px;line-height:1}.level-emblem small{color:var(--gold);font-weight:800;margin-top:5px}.engagement-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.engagement-stat-grid article{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;display:grid;gap:5px}.engagement-stat-grid article>span{font-size:22px}.engagement-stat-grid strong{font-size:29px}.engagement-stat-grid b{font-size:13px}.engagement-stat-grid small{color:var(--muted)}.level-progress-card{padding:20px 24px;border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:42px}.level-progress-card>div:first-child{display:flex;justify-content:space-between;gap:20px;margin-bottom:12px}.level-progress-card span{color:var(--muted);font-size:13px}.engagement-two-column{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin:26px 0 58px}.daily-challenge-card,.daily-goal-card{position:relative;padding:32px;border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden}.daily-challenge-card{background:linear-gradient(145deg,#fff8df,#fff)}.daily-challenge-card h2,.daily-goal-card h2{font-size:28px;margin:12px 0}.daily-challenge-card p,.daily-goal-card p{color:var(--muted);max-width:520px}.challenge-date{position:absolute;inset-inline-end:24px;top:22px;padding:7px 10px;border-radius:999px;background:#0b1220;color:#fff;font-size:11px;font-weight:800}.challenge-score{display:flex;align-items:baseline;gap:10px;margin:20px 0}.challenge-score strong{font-size:44px}.daily-goal-card form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:22px}.daily-goal-card label{display:block;width:100%;font-weight:800;font-size:13px}.daily-goal-card .select-control{margin:0;max-width:180px}.activity-week{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}.activity-week article{padding:14px 10px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:center;display:grid;gap:7px}.activity-week article.goal-met{border-color:#70d6b6;background:#f0fff9}.activity-bar{height:90px;display:flex;align-items:end;justify-content:center;padding:5px;background:#f3f6f9;border-radius:10px}.activity-bar span{display:block;width:18px;min-height:5px;border-radius:999px;background:linear-gradient(#f4b942,#0b6b4f)}.activity-week small{color:var(--muted)}.achievement-section,.bookmark-section,.activity-section{margin-top:52px}.achievement-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.achievement-grid article{display:grid;grid-template-columns:62px 1fr;gap:16px;align-items:start;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}.achievement-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#fff3bf;color:#7d5300;font-weight:950;font-size:22px}.achievement-grid h3{margin:0 0 5px}.achievement-grid p{margin:0;color:var(--muted);font-size:13px}.achievement-grid small{display:inline-block;margin-top:8px;color:var(--green);font-weight:900}.bookmark-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.bookmark-list article{padding:20px;border:1px solid var(--line);border-radius:17px;background:#fff}.bookmark-list span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--green);font-weight:900}.bookmark-list h3{font-size:17px;margin:8px 0}.bookmark-list p{font-size:13px;color:var(--muted);margin:0}.engagement-ribbon{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:22px 0}.engagement-ribbon>div,.engagement-ribbon>a{padding:15px 16px;border:1px solid var(--line);border-radius:15px;background:#fff;display:grid;gap:3px}.engagement-ribbon span{font-size:11px;color:var(--muted);font-weight:700}.engagement-ribbon strong{font-size:22px}.engagement-ribbon small{font-size:10px;color:var(--green);font-weight:800}.bookmark-mark{color:#e0a000;font-size:15px}.content-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.content-title-row h1{flex:1}.bookmark-button{width:48px;height:48px;border-radius:14px;border:1px solid var(--line);background:#fff;color:#9aa5b1;font-size:25px;cursor:pointer;transition:.18s}.bookmark-button:hover,.bookmark-button.active{background:#fff8df;color:#c18400;border-color:#efcc70}.bookmark-button.small{width:36px;height:36px;font-size:20px;border-radius:10px}.sign-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.challenge-shell{max-width:900px;margin:30px auto 90px;padding:0 24px}.challenge-hero{text-align:center;padding:62px 48px;border-radius:30px;background:radial-gradient(circle at 50% 0,rgba(244,185,66,.25),transparent 36%),linear-gradient(145deg,#0b1220,#0b5c46);color:#fff;box-shadow:0 30px 70px rgba(11,18,32,.2)}.challenge-bolt{font-size:64px;margin:18px 0 6px}.challenge-hero h1{font-size:clamp(38px,6vw,66px);letter-spacing:-.05em;margin:8px 0 14px}.challenge-hero p{color:#d5e5e1;font-size:18px;max-width:650px;margin:0 auto 28px}.challenge-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:520px;margin:0 auto 30px}.challenge-facts div{padding:16px;border-radius:14px;background:rgba(255,255,255,.1);display:grid}.challenge-facts strong{font-size:28px}.challenge-facts span{font-size:11px;color:#d6e5e1}.challenge-complete-panel{display:grid;gap:5px;margin:24px auto;max-width:320px;padding:22px;border-radius:18px;background:rgba(255,255,255,.12)}.challenge-complete-panel strong{font-size:52px}.challenge-complete-panel span{color:#d6e5e1}
@media(max-width:950px){.engagement-stat-grid{grid-template-columns:repeat(2,1fr)}.engagement-ribbon{grid-template-columns:repeat(3,1fr)}.bookmark-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.engagement-hero{grid-template-columns:1fr;padding:38px 24px}.level-emblem{width:140px;height:140px}.engagement-two-column,.achievement-grid{grid-template-columns:1fr}.activity-week{grid-template-columns:repeat(4,1fr)}.engagement-ribbon{grid-template-columns:repeat(2,1fr)}.challenge-hero{padding:42px 22px}.challenge-facts{grid-template-columns:1fr 1fr}.bookmark-list{grid-template-columns:1fr}}
@media(max-width:480px){.engagement-stat-grid,.engagement-ribbon{grid-template-columns:1fr}.activity-week{grid-template-columns:repeat(2,1fr)}.challenge-facts{grid-template-columns:1fr}}


/* Sprint 7 — quiz engine reliability */
.quiz-client-error{margin:14px 0 0;padding:12px 14px;border:1px solid #f3a6aa;border-radius:12px;background:#fff1f2;color:#9f1239;font-size:13px;font-weight:800}.quiz-client-error[hidden]{display:none}.button[aria-busy="true"]{opacity:.72;cursor:wait}.answer-option:focus-within{outline:3px solid rgba(18,140,104,.18);outline-offset:2px}.timeout-notice{display:inline-flex;margin:14px auto 18px;padding:10px 14px;border-radius:12px;background:#fff3bf;color:#7a5200;font-size:13px;font-weight:850}.answer-option input{accent-color:#128c68}

/* Sprint 7.1 — deterministic quiz progression */
.quiz-actions form{margin:0}.quiz-actions .button{min-width:128px}.quiz-actions .button:disabled{opacity:.65;cursor:wait}.question-panel[data-question-position]{isolation:isolate}

/* Sprint 10 learner accounts */
.account-shell{min-height:100vh;display:grid;place-content:center;padding:2rem;background:#f4f7fb}.account-brand{margin:0 auto 1.25rem}.account-card,.account-panel{background:#fff;border:1px solid #dbe3ec;border-radius:24px;box-shadow:0 18px 45px rgba(15,31,50,.08)}.account-card{width:min(560px,calc(100vw - 2rem));padding:2.2rem}.account-card h1,.account-panel h2{margin:.5rem 0}.account-form{display:grid;gap:1rem;margin-top:1.4rem}.account-form label{display:grid;gap:.4rem;font-weight:750}.account-form input,.account-form select{width:100%;border:1px solid #cdd8e4;border-radius:12px;padding:.85rem 1rem;background:#fff;font:inherit}.account-check{grid-template-columns:auto 1fr!important;align-items:start}.account-check input{width:auto}.account-errors,.account-success{border-radius:14px;padding:.9rem 1rem;margin:1rem 0}.account-errors{background:#fff1f1;color:#a51e1e;border:1px solid #ffcaca}.account-success{background:#eafbf4;color:#086b4b;border:1px solid #bcebd9}.account-switch{text-align:center;margin-top:1.2rem}.account-header form{margin:0}.account-link-button{border:0;background:transparent;font:inherit;cursor:pointer}.account-dashboard{max-width:960px;margin:0 auto;padding:2rem 1.25rem 5rem}.account-hero{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:2rem 2.25rem;border-radius:26px;background:linear-gradient(130deg,#071827,#07513f);color:#fff}.account-hero h1{font-size:clamp(2rem,5vw,3.4rem);margin:.5rem 0}.account-level{width:130px;height:130px;border:8px solid rgba(255,255,255,.22);border-top-color:#ffbd3d;border-radius:50%;display:grid;place-content:center;text-align:center}.account-level strong{font-size:2.2rem}.account-level span,.account-level small{display:block}.account-stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.8rem;margin:1rem 0}.account-stat-grid article{background:#fff;border:1px solid #dbe3ec;border-radius:16px;padding:1rem}.account-stat-grid strong{display:block;font-size:1.7rem}.account-stat-grid span{font-size:.78rem;color:#5a6877}.account-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.account-panel{padding:1.4rem;margin-top:1rem}.account-session-list{display:grid;gap:.65rem;margin:1rem 0}.account-session{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.8rem;border:1px solid #e1e7ee;border-radius:13px}.account-session span{display:block;font-size:.76rem;color:#627080}.account-session button,.account-delete button{border:0;background:transparent;color:#b42318;font-weight:800;cursor:pointer}.account-actions{display:flex;gap:.8rem}.account-delete{display:flex;align-items:end;gap:.8rem;margin-top:1.5rem}.account-delete label{display:grid;gap:.35rem}.account-delete input{border:1px solid #efb9b9;border-radius:10px;padding:.7rem}.account-privacy{margin-top:1rem}@media(max-width:760px){.account-hero{align-items:flex-start}.account-level{width:100px;height:100px}.account-stat-grid{grid-template-columns:repeat(2,1fr)}.account-columns{grid-template-columns:1fr}.account-delete{align-items:stretch;flex-direction:column}}

/* Sprint 11 learner security */
.security-center{padding-bottom:4rem}
.security-hero{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2.2rem;margin-bottom:1rem;border-radius:24px;color:#fff;background:linear-gradient(120deg,#081a25,#064b40)}
.security-hero h1{margin:.45rem 0;font-size:clamp(2rem,4vw,3.4rem)}
.security-hero p{max-width:700px;color:#d9eeea}
.verification-state{min-width:210px;padding:1.2rem;border-radius:16px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08)}
.verification-state strong,.verification-state span{display:block}
.verification-state strong{margin-bottom:.35rem;font-size:1.15rem}
.verification-state.verified strong,.security-positive{color:#087d56}
.verification-state.verified strong{color:#72e2ac}
.verification-state.unverified strong{color:#ffc958}
.security-positive{font-weight:700}
.security-timeline{display:grid;gap:.7rem}
.security-event{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid #dbe3ea;border-radius:12px;background:#fff}
.security-event strong,.security-event span{display:block}
.security-event span,.security-event small{margin-top:.25rem;color:#6b7785;font-size:.8rem}
.message-status{padding:.3rem .55rem;border-radius:999px;font-size:.75rem;font-style:normal;font-weight:800;text-transform:uppercase}
.status-sent{color:#087d56;background:#e7f9f1}
.status-pending,.status-processing{color:#7a4d00;background:#fff4ce}
.status-failed{color:#a42222;background:#feecec}
.account-security-shortcut{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.account-email-badge{display:inline-flex;margin-top:.55rem;padding:.3rem .65rem;border-radius:999px;font-size:.72rem;font-weight:800;text-transform:uppercase}
.account-email-badge.verified{color:#087d56;background:#e7f9f1}
.account-email-badge.unverified{color:#7a4d00;background:#fff4ce}
.account-forgot-link{display:inline-block;margin-top:.8rem}
@media(max-width:760px){.security-hero,.account-security-shortcut{align-items:stretch;flex-direction:column}.verification-state{min-width:0}}

/* Sprint 12 privacy, consent and data governance */
.privacy-header {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-document,
.privacy-center {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.privacy-document-hero,
.privacy-center-hero {
    padding: 2.2rem;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(
        125deg,
        #071827,
        #075246
    );
    box-shadow: 0 24px 60px
        rgba(7, 24, 39, .16);
}

.privacy-document-hero h1,
.privacy-center-hero h1 {
    margin: .45rem 0;
    font-size: clamp(
        2.25rem,
        5vw,
        4.2rem
    );
}

.privacy-document-hero p,
.privacy-center-hero p {
    max-width: 720px;
    color: #d7eeea;
}

.privacy-version {
    margin-top: 1rem;
    color: #bed8d4;
    font-size: .82rem;
}

.privacy-legal-copy {
    margin-top: 1.2rem;
    padding: 2rem;
    border: 1px solid #dbe3ea;
    border-radius: 20px;
    background: #fff;
}

.privacy-legal-copy h2 {
    margin-top: 1.8rem;
}

.privacy-legal-copy h2:first-child {
    margin-top: 0;
}

.privacy-legal-copy p {
    line-height: 1.75;
    color: #435364;
}

.privacy-document-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1rem;
}

.privacy-document-nav a,
.privacy-action-link {
    display: inline-flex;
    padding: .75rem 1rem;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
}

.privacy-center-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.privacy-identity {
    min-width: 230px;
    padding: 1rem;
    border: 1px solid
        rgba(255, 255, 255, .18);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, .08);
}

.privacy-identity strong,
.privacy-identity span {
    display: block;
}

.privacy-identity span {
    margin-top: .3rem;
    color: #d7eeea;
    font-size: .85rem;
}

.privacy-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.privacy-card {
    padding: 1.4rem;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    background: #fff;
}

.privacy-card-wide {
    grid-column: 1 / -1;
}

.privacy-document-list,
.privacy-request-list {
    display: grid;
    gap: .7rem;
    margin-bottom: 1rem;
}

.privacy-document-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem;
    border-radius: 12px;
    background: #f5f8fa;
}

.privacy-document-row strong,
.privacy-document-row span {
    display: block;
}

.privacy-document-row span {
    font-size: .8rem;
    color: #6b7785;
}

.privacy-document-row div:last-child {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.privacy-document-row em {
    padding: .3rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

.privacy-document-row .accepted {
    color: #087d56;
    background: #e7f9f1;
}

.privacy-document-row .pending {
    color: #7a4d00;
    background: #fff4ce;
}

.privacy-consent-form {
    display: grid;
    gap: .8rem;
}

.privacy-consent-form label {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.privacy-action-link {
    margin: .35rem .35rem .35rem 0;
}

.privacy-action-link.warning {
    color: #a42222;
    border-color: #efb8b8;
}

.processing-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.processing-grid article {
    padding: 1rem;
    border-radius: 12px;
    background: #f5f8fa;
}

.processing-grid article > span {
    font-size: .72rem;
    font-weight: 800;
    color: #087d56;
}

.processing-grid h3 {
    margin: .4rem 0;
}

.processing-grid p {
    color: #4d5d6b;
}

.processing-grid small {
    color: #6b7785;
}

.privacy-request-list > div {
    padding: .75rem;
    border-radius: 10px;
    background: #f5f8fa;
}

.privacy-request-list strong,
.privacy-request-list span {
    display: block;
}

.privacy-request-list span,
.privacy-small-note {
    font-size: .82rem;
    color: #6b7785;
}

.privacy-delete-shell .button.danger {
    color: #fff;
    background: #b42318;
}

.account-privacy-center-shortcut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.privacy-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 1100px;
    margin: auto;
    padding: 1rem 1.1rem;
    border: 1px solid #ccd8df;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 60px
        rgba(0, 0, 0, .2);
}

.privacy-consent-banner[hidden] {
    display: none;
}

.privacy-consent-copy {
    max-width: 640px;
}

.privacy-consent-copy strong {
    font-size: 1.05rem;
}

.privacy-consent-copy p {
    margin: .35rem 0;
    color: #4d5d6b;
}

.privacy-consent-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
}

.privacy-consent-controls details[open] {
    padding: .7rem;
    border-radius: 10px;
    background: #f5f8fa;
}

.privacy-consent-controls label {
    display: block;
    margin: .35rem 0;
}

.privacy-consent-controls button {
    padding: .7rem .85rem;
    border: 1px solid #ccd8df;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.privacy-consent-controls button.primary {
    border-color: #f4b83f;
    background: #f4b83f;
    font-weight: 800;
}

@media (max-width: 760px) {
    .privacy-center-hero,
    .privacy-consent-banner,
    .account-privacy-center-shortcut {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-grid,
    .processing-grid {
        grid-template-columns: 1fr;
    }

    .privacy-identity {
        min-width: 0;
    }

    .privacy-document-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .privacy-consent-controls {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Sprint 12.1 global legal navigation and registration consent */
.global-site-footer {
    margin-top: 3rem;
    padding: 2.4rem max(1rem, calc((100vw - 1100px) / 2));
    color: #dbe7e5;
    background: #071a20;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.global-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));
    gap: 2rem;
}

.global-footer-brand .brand { color: #fff; }
.global-footer-brand p {
    max-width: 470px;
    margin: 1rem 0 0;
    color: #aebfbc;
    line-height: 1.7;
    font-size: .92rem;
}
.global-site-footer nav { display: grid; align-content: start; gap: .65rem; }
.global-site-footer nav strong {
    margin-bottom: .25rem;
    color: #fff;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.global-site-footer nav a,
.footer-privacy-choice,
.global-footer-bottom a { color: #c6d5d2; text-decoration: none; }
.global-site-footer nav a:hover,
.global-footer-bottom a:hover,
.footer-privacy-choice:hover { color: #f4b83f; }
.footer-privacy-choice {
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.global-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #91a5a1;
    font-size: .82rem;
}
.home-privacy-link { white-space: nowrap; }
.account-legal-consent {
    align-items: flex-start !important;
    padding: .85rem;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    background: #f7faf9;
    line-height: 1.55;
}
.account-legal-consent input { margin-top: .25rem; flex: 0 0 auto; }
.account-legal-consent span,
.account-legal-consent small { display: block; }
.account-legal-consent a { font-weight: 750; }
.account-legal-consent small {
    margin-top: .4rem;
    color: #6b7785;
    font-size: .76rem;
}
@media (max-width: 850px) {
    .global-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .global-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .global-footer-grid { grid-template-columns: 1fr; }
    .global-footer-brand { grid-column: auto; }
    .global-footer-bottom { flex-direction: column; }
}

/* Sprint 12.1 footer full-width containment hotfix */
.global-site-footer {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    transform: none !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    margin-top: 3rem !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    margin-left: calc(50% - 50vw) !important;

    padding: 2.4rem 1rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;

    color: #dbe7e5 !important;
    background: #071a20 !important;
}

.global-site-footer > .global-footer-grid,
.global-site-footer > .global-footer-bottom {
    position: static !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    transform: none !important;

    width: 100% !important;
    max-width: 1100px !important;
    min-width: 0 !important;

    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
}

.global-site-footer > .global-footer-grid {
    display: grid !important;
    grid-template-columns:
        minmax(240px, 1.6fr)
        repeat(3, minmax(120px, 1fr)) !important;
    align-items: start !important;
    gap: 2rem !important;
}

.global-site-footer > .global-footer-bottom {
    display: flex !important;
    grid-column: 1 / -1 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;

    margin-top: 2rem !important;
    padding-top: 1rem !important;

    border-top:
        1px solid rgba(255, 255, 255, .1) !important;
    background: transparent !important;
}

.global-site-footer nav,
.global-site-footer section,
.global-site-footer a,
.global-site-footer span,
.global-site-footer p,
.global-site-footer button {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.global-footer-bottom a,
.global-footer-bottom span {
    overflow-wrap: anywhere !important;
}

@media (max-width: 850px) {
    .global-site-footer > .global-footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .global-site-footer .global-footer-brand {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 560px) {
    .global-site-footer {
        padding: 2rem 1rem !important;
    }

    .global-site-footer > .global-footer-grid {
        grid-template-columns: 1fr !important;
    }

    .global-site-footer .global-footer-brand {
        grid-column: auto !important;
    }

    .global-site-footer > .global-footer-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* Sprint 13 operations and public status */
.operations-header {
    max-width: 1000px;
    margin: 0 auto;
}

.operations-version {
    color: #647381;
    font-size: .82rem;
    font-weight: 700;
}

.operations-status {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.operations-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.2rem;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(125deg, #071827, #075246);
}

.operations-hero.status-degraded {
    background: linear-gradient(125deg, #2f2305, #84610a);
}

.operations-hero.status-critical {
    background: linear-gradient(125deg, #2d0a0a, #8c1f1f);
}

.operations-hero h1 {
    margin: .45rem 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

.operations-hero p {
    color: rgba(255, 255, 255, .82);
}

.operations-overall {
    min-width: 180px;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
}

.operations-overall span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: .45rem;
    border-radius: 50%;
    background: #64e4a8;
    box-shadow: 0 0 0 6px rgba(100, 228, 168, .15);
}

.status-degraded .operations-overall span {
    background: #ffd166;
}

.status-critical .operations-overall span {
    background: #ff8a8a;
}

.operations-card {
    margin-top: 1rem;
    padding: 1.4rem;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    background: #fff;
}

.operations-components,
.operations-list {
    display: grid;
    gap: .7rem;
}

.operations-component {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: #f5f8fa;
}

.operations-component strong,
.operations-component span {
    display: block;
}

.operations-component span {
    margin-top: .2rem;
    color: #6b7785;
    font-size: .78rem;
}

.operations-component em {
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

.component-healthy {
    color: #087d56;
    background: #e7f9f1;
}

.component-warning {
    color: #7a4d00;
    background: #fff4ce;
}

.component-critical,
.component-offline {
    color: #a42222;
    background: #feecec;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.operations-list > div {
    padding: .85rem;
    border-radius: 12px;
    background: #f5f8fa;
}

.operations-list strong,
.operations-list span {
    display: block;
}

.operations-list span {
    margin-top: .25rem;
    color: #6b7785;
    font-size: .8rem;
}

.operations-list p {
    margin-bottom: 0;
    color: #435364;
}

@media (max-width: 720px) {
    .operations-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .operations-overall {
        min-width: 0;
    }

    .operations-grid {
        grid-template-columns: 1fr;
    }
}

/* Sprint 14 revised: free access with policy-aware AdSense */
.adsense-placement {
    display: block;
    width: 100%;
    max-width: 1100px;
    min-height: 96px;
    margin: 2rem auto;
    padding: .55rem;
    border: 1px solid #e1e7ec;
    border-radius: 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    text-align: center;
}

.adsense-label {
    display: block;
    margin-bottom: .35rem;
    color: #77838e;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.global-footer-free-note {
    margin-top: .75rem;
    color: #a9c0bc;
    font-size: .8rem;
    line-height: 1.55;
}

.free-access-notice {
    max-width: 1100px;
    margin: 1rem auto;
    padding: .85rem 1rem;
    border: 1px solid #b8e6d1;
    border-radius: 12px;
    color: #075c42;
    background: #eaf9f2;
    box-sizing: border-box;
    font-size: .88rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .adsense-placement {
        margin: 1.35rem auto;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
}

/* Sprint 15 SEO, search and organic growth */
.growth-search-header {
    max-width: 1000px;
    margin: 0 auto;
}

.growth-search-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.growth-search-hero {
    padding: 2.2rem;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(
            125deg,
            #071827,
            #075246
        );
    box-shadow:
        0 24px 60px rgba(7, 24, 39, .16);
}

.growth-search-hero h1 {
    max-width: 760px;
    margin: .5rem 0 1.25rem;
    font-size: clamp(
        2rem,
        5vw,
        4rem
    );
}

.growth-search-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: .7rem;
    max-width: 760px;
}

.growth-search-form input {
    width: 100%;
    min-width: 0;
    padding: .9rem 1rem;
    border: 1px solid
        rgba(255, 255, 255, .28);
    border-radius: 12px;
    outline: none;
    color: #071827;
    background: #fff;
    font: inherit;
}

.growth-search-results,
.growth-search-suggestions {
    margin-top: 1rem;
}

.growth-search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.growth-search-summary span {
    color: #647381;
    font-size: .84rem;
}

.growth-search-result {
    display: block;
    margin-bottom: .75rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    transition:
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.growth-search-result:hover {
    border-color: #8fcfb7;
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px rgba(7, 24, 39, .08);
}

.growth-search-result h3 {
    margin: .35rem 0;
    font-size: 1.18rem;
}

.growth-search-result p {
    margin: 0;
    color: #51616e;
    line-height: 1.6;
}

.growth-search-result small {
    display: block;
    margin-top: .55rem;
    color: #6b7785;
}

.growth-search-type {
    color: #07835b;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.growth-search-empty {
    padding: 2rem;
    border: 1px dashed #b7c4d1;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.growth-search-suggestions > div {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.growth-search-suggestions a {
    padding: .55rem .8rem;
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    color: #075b42;
    background: #fff;
    text-decoration: none;
}

.global-footer-search-form {
    display: flex;
    gap: .4rem;
    margin-top: .8rem;
}

.global-footer-search-form input {
    min-width: 0;
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid
        rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #071827;
    background: #fff;
}

.global-footer-search-form button {
    padding: .55rem .7rem;
    border: 0;
    border-radius: 8px;
    background: #f4b83f;
    font-weight: 800;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 620px) {
    .growth-search-form {
        grid-template-columns: 1fr;
    }

    .growth-search-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Sprint 16 PWA, accessibility and quality */
.skip-link {
    position: fixed;
    z-index: 10000;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    color: #fff;
    background: #071827;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .16s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: none;
}

:where(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]
):focus-visible {
    outline: 3px solid #e7a928;
    outline-offset: 3px;
}

.pwa-install-banner {
    position: fixed;
    z-index: 9500;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    width: min(
        calc(100vw - 2rem),
        720px
    );
    padding: 1rem;
    border: 1px solid #cbd9dc;
    border-radius: 18px;
    color: #17323b;
    background: #fff;
    box-shadow:
        0 22px 70px
        rgba(7, 24, 39, .2);
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-icon {
    display: grid;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    place-items: center;
    color: #fff;
    background: #075246;
    font-size: 1.45rem;
    font-weight: 900;
}

.pwa-install-copy strong,
.pwa-install-copy p {
    display: block;
}

.pwa-install-copy p {
    margin: .28rem 0 0;
    color: #5b6b74;
    font-size: .84rem;
    line-height: 1.5;
}

.pwa-install-actions {
    display: flex;
    gap: .45rem;
}

.button.ghost {
    color: #075246;
    background: #e8f6f1;
}

.accessibility-header {
    max-width: 1000px;
    margin: 0 auto;
}

.accessibility-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.accessibility-hero {
    padding: 2.2rem;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(
            125deg,
            #071827,
            #075246
        );
}

.accessibility-hero h1 {
    margin: .45rem 0;
    font-size: clamp(
        2rem,
        5vw,
        4rem
    );
}

.accessibility-hero p {
    max-width: 760px;
    color: #d7eeea;
    line-height: 1.65;
}

.accessibility-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.accessibility-card {
    padding: 1.35rem;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    background: #fff;
}

.accessibility-card p,
.accessibility-card li {
    color: #52636d;
    line-height: 1.65;
}

.accessibility-card li + li {
    margin-top: .45rem;
}

@media (max-width: 720px) {
    .pwa-install-banner {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
        grid-template-columns:
            auto minmax(0, 1fr);
        width: auto;
    }

    .pwa-install-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .accessibility-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

@media (forced-colors: active) {
    .pwa-install-banner,
    .accessibility-card {
        border: 1px solid CanvasText;
    }

    .pwa-install-icon {
        border: 1px solid CanvasText;
    }
}

