/* Reading improvements shared by the study landing page, catalogue and readers. */
[data-study-ui]{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.6;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%}
[data-study-ui] *,[data-study-ui] *::before,[data-study-ui] *::after{box-sizing:border-box}
[data-study-ui] :focus-visible{outline:3px solid #d49a36;outline-offset:4px}
[data-study-ui] button,[data-study-ui] select,[data-study-ui] input{font:inherit}
[data-study-ui] h1,[data-study-ui] h2,[data-study-ui] h3{font-family:Inter,"Segoe UI",Arial,sans-serif;font-style:normal;letter-spacing:-.025em;line-height:1.18;-webkit-text-stroke:0;text-shadow:none;overflow-wrap:break-word}
[data-study-ui] h1 em{font-style:normal}
[data-study-ui] button,[data-study-ui] select{min-height:44px}
[data-study-ui="home"]{margin:0;background:#f3f7fb;color:#142843}
.study-skip{position:absolute;top:8px;left:16px;padding:12px;background:#fff;transform:translateY(-150%);z-index:10}
.study-skip:focus{transform:none}
.study-header,.study-home,.study-footer{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.study-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid #d0dce8;font-size:14px}
.study-header a,.study-footer a{color:#164f80;text-decoration:none}
.study-brand{font-weight:800}
.study-intro{padding:42px 0 30px}
.study-eyebrow{font-size:13px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;color:#245987;margin:0 0 12px}
.study-intro h1{margin:0;font-size:clamp(38px,6vw,68px);font-weight:800;line-height:1.08}
.study-intro h1 span{color:#1868a4}
.study-intro>p:last-child{color:#4a6077;margin:18px 0 0}
.study-areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding-bottom:36px}
.study-area{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;min-height:340px;padding:30px;border-radius:20px;overflow:hidden;text-decoration:none;color:#fff;background:linear-gradient(135deg,#175b93,#12385f);box-shadow:0 12px 28px #14284312;transition:transform .18s,box-shadow .18s}
.study-area::after{content:"";position:absolute;z-index:-1;width:290px;height:290px;border:1px solid #ffffff20;border-radius:50%;right:-120px;top:-100px;box-shadow:0 0 0 48px #ffffff08,0 0 0 96px #ffffff05;pointer-events:none}
.study-area-radar{background:linear-gradient(135deg,#256d9f,#184368)}
.study-area-law{grid-column:1/-1;min-height:250px;background:linear-gradient(120deg,#203e5c,#175d8c)}
.study-area:hover{transform:translateY(-4px);box-shadow:0 18px 34px #14284322}
.study-area-number{font-size:13px;letter-spacing:.12em;color:#d2eaff}
.study-area-title{display:block;margin:30px 0;font-size:clamp(27px,3vw,40px);font-weight:800;letter-spacing:-.025em;line-height:1.18}
.study-area-title>span{color:#c3e9ff}
.study-area-footer{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#e4f1fb}
.study-area-footer>span{font-size:24px;line-height:1}
.study-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:24px 0;border-top:1px solid #d0dce8;font-size:13px;color:#4a6077}
/* The catalogue keeps its progress indicators and full-card controls. */
[data-study-ui="materials"]{background:#f3f7fb;color:#142843;--line:#ccdae7;--sky:#17649e;--ice:#142843;--muted:#4a6077}
[data-study-ui="materials"] .grid-bg{display:none}
[data-study-ui="materials"] .head{background:#fff;border-color:#ccdae7}
[data-study-ui="materials"] .brand,[data-study-ui="materials"] .nav a,[data-study-ui="materials"] .crumb{color:#234767;font-family:inherit;text-shadow:none}
[data-study-ui="materials"] .hero{padding-block:28px;gap:24px}
[data-study-ui="materials"] .hero h1{max-width:22ch;font-size:clamp(30px,4.6vw,58px);font-weight:800;line-height:1.12;color:#142843}
[data-study-ui="materials"] .hero h1 em{color:#1868a4}
[data-study-ui="materials"] .lead,[data-study-ui="materials"] .section-description{color:#41566c;font-size:17px;line-height:1.65}
[data-study-ui="materials"] .overall{background:#e5eff8;color:#264968;border:1px solid #c1d5e8;box-shadow:none}
[data-study-ui="materials"] .overall strong{color:#155c91;font-family:inherit}
[data-study-ui="materials"] .section-nav{gap:10px}
[data-study-ui="materials"] .section-nav a{background:#fff;color:#194f7c;font-size:14px;letter-spacing:0;text-transform:none;min-height:48px;display:grid;place-items:center;border-radius:10px}
[data-study-ui="materials"] .section-nav a:hover{background:#e0effb;color:#142843}
[data-study-ui="materials"] .section h2{color:#142843;font-size:clamp(24px,3vw,34px);text-transform:none;font-weight:800}
[data-study-ui="materials"] .section-meta,[data-study-ui="materials"] .footer{color:#4b6178}
[data-study-ui="materials"] .card{background:#fff;box-shadow:0 5px 18px #1428430a;border:1px solid #c6d7e6;border-top:4px solid #2675af;border-radius:14px;clip-path:none;padding:22px;min-height:280px}
[data-study-ui="materials"] .card::before{display:none}
[data-study-ui="materials"] .card.is-seen{background:#f0faf5;border-top-color:#268256}
[data-study-ui="materials"] .card h3{font-size:clamp(22px,2.2vw,28px);line-height:1.2;color:#173958;margin:26px 0 14px;font-weight:750}
[data-study-ui="materials"] .card p{font-size:16px;line-height:1.65;color:#41566c}
[data-study-ui="materials"] .level,[data-study-ui="materials"] .state{font-size:11px;letter-spacing:.02em;background:#eaf3fb;color:#194f7c;border-color:#bad1e4;border-radius:5px}
[data-study-ui="materials"] .level.intermediate{color:#705006;background:#fff4d8}
[data-study-ui="materials"] .level.advanced{color:#843757;background:#ffedf4}
[data-study-ui="materials"] .is-seen .state{color:#21613f;background:#e4f5e9}
[data-study-ui="materials"] .open,[data-study-ui="materials"] .toggle{color:#165e95;font-size:14px;letter-spacing:0;min-height:44px;display:inline-flex;align-items:center}
/* Retain the blue/white heading identity while enlarging the question text. */
[data-study-ui="bank"]{background:linear-gradient(140deg,#164f7b,#123653);--muted:#d0e0ee;--cyan:#b4e1ff;--ice:#edf8ff}
[data-study-ui="bank"] .hero{padding-top:32px;padding-bottom:40px}
[data-study-ui="bank"] h1{font-size:clamp(38px,7vw,82px);line-height:1.06;margin:18px 0}
[data-study-ui="bank"] h1 em{color:#b4e1ff}
[data-study-ui="bank"] .stats{margin:28px 0 32px}
[data-study-ui="bank"] .catalog{margin-top:34px}
[data-study-ui="bank"] .subject-card{background:#19496f;border-radius:12px;border-color:#6f94b3}
[data-study-ui="bank"] .subject-card h3{font-size:25px;line-height:1.25;text-transform:none}
[data-study-ui="bank"] .subject-card .card-top,[data-study-ui="bank"] .subject-card .card-progress{color:#d4e6f4;font-size:12px;letter-spacing:0}
[data-study-ui="bank"] .hero-copy,[data-study-ui="bank"] .control-panel p{color:#e0edf7;font-size:17px}
[data-study-ui="bank"] .question-card{background:#fff;color:#142843;border-radius:16px;border-color:#c5d7e7;box-shadow:0 12px 35px #031a3425}
[data-study-ui="bank"] .question-card h2{font-size:clamp(20px,2.5vw,26px);line-height:1.65;font-weight:650;letter-spacing:0}
[data-study-ui="bank"] .question-topic,[data-study-ui="bank"] .question-tags span{color:#195980}
[data-study-ui="bank"] .question-id{color:#52677c;font-size:12px}
[data-study-ui="bank"] .answer-option{background:#f4f8fc;border-color:#b7cddd;border-radius:10px}
[data-study-ui="bank"] .answer-copy{color:#203c54;font-size:17px;line-height:1.65}
[data-study-ui="bank"] .answer-letter{color:#195980;border-color:#afc8dd;font-family:inherit}
[data-study-ui="bank"] .answer-option.selected{background:#e4f2ff;border-color:#216b9f;box-shadow:0 0 0 1px #216b9f}
[data-study-ui="bank"] .answer-option.correct{background:#e7f6ed;border-color:#217546}
[data-study-ui="bank"] .answer-option.incorrect{background:#fff0f0;border-color:#a63e45}
[data-study-ui="bank"] .feedback{background:#f1f6fb;color:#203c54;border-color:#c1d3e2;border-radius:12px}
[data-study-ui="bank"] .feedback-title,[data-study-ui="bank"] .feedback>p{color:#203c54;font-size:17px;line-height:1.7}
[data-study-ui="bank"] .feedback .legal-source{color:#415d75;font-size:14px}
[data-study-ui="bank"] .glossary-links a{color:#155b8f;border-color:#98bbd5;font-size:12px}
[data-study-ui="bank"] .primary-button{background:#155f9b}
[data-study-ui="bank"] .question-card .secondary-button{background:#e8f1f8;color:#194f7c;border-color:#a9c4da}
/* Booklets: readable heading sizes and comfortable text columns. */
[data-study-ui="reader"]{--font-display:Inter,"Segoe UI",Arial,sans-serif}
[data-study-ui="reader"] .concept-hero h1{font-size:clamp(28px,4vw,46px);line-height:1.18;max-width:25ch;text-transform:none}
[data-study-ui="reader"] .reading-copy{font-size:18px;line-height:1.8;max-width:70ch}
[data-study-ui="reader"] .reading-copy h2{font-size:26px;line-height:1.25;text-transform:none}
[data-study-ui="reader"] .concept-copy strong{font-size:15px;line-height:1.4}
[data-study-ui="reader"] .concept-copy small{font-size:12px;line-height:1.45}
[data-study-ui="reader"] .book-title strong{font-size:16px;letter-spacing:0;text-transform:none}
[data-study-ui="reader"] .hub-hero h1{font-size:clamp(36px,6vw,66px);line-height:1.12;text-transform:none}
[data-study-ui="reader"] .study-box h2{font-size:23px;text-transform:none}
[data-study-ui="reader"] .reading-copy table{font-size:16px}
[data-study-ui="reader"] .mnemonic span,[data-study-ui="reader"] .reference-details div{font-size:16px;line-height:1.7}
[data-study-ui="hub"] .hero h1{font-size:clamp(32px,5vw,54px);line-height:1.15}
[data-study-ui="hub"] .module h3{font-size:26px;line-height:1.25}
@media(max-width:650px){
 .study-header,.study-home,.study-footer{width:calc(100% - 32px)}
 .study-header{font-size:12px;padding:17px 0;gap:12px}
 .study-intro{padding:28px 0 24px}
 .study-areas{grid-template-columns:1fr;gap:18px}
 .study-area{min-height:275px;width:96%;padding:24px;border-radius:16px}
 .study-area:nth-child(even){justify-self:end}
 .study-area-law{grid-column:auto}
 .study-area-title{font-size:30px}
 .study-area-footer{font-size:13px}
 [data-study-ui="materials"] .card{width:100%;clip-path:none;min-height:250px}
 [data-study-ui="materials"] .hero h1{font-size:34px}
 [data-study-ui="materials"] .section{margin-bottom:36px}
 [data-study-ui="bank"] .topbar{padding:16px;gap:14px}
 [data-study-ui="bank"] .hero{padding:24px 16px 36px}
 [data-study-ui="bank"] .stats article{min-height:90px;padding:18px}
 [data-study-ui="bank"] .quiz-view{padding:22px 12px 40px}
 [data-study-ui="bank"] .question-card{padding:22px 18px}
 [data-study-ui="bank"] .question-card h2{font-size:20px}
 [data-study-ui="bank"] .answer-option{gap:10px;padding:12px 10px}
 [data-study-ui="bank"] .feedback{padding:18px}
 [data-study-ui="reader"] .concept-body{padding:22px 18px}
 [data-study-ui="reader"] .concept-hero{padding:24px 20px}
 [data-study-ui="reader"] .reading-copy{font-size:17px;line-height:1.75}
 [data-study-ui="reader"] .mobile-actions{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.study-area{transition:none}.study-area:hover{transform:none}}
