:root {
    color-scheme: light;
    --wine: #931d3c;
    --wine-dark: #72122c;
    --ink: #251b23;
    --muted: #655962;
    --line: #eadddf;
    --blush: #f7e7e9;
    --paper: #fcf9f7;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 9px 28px rgba(67, 31, 41, .06);
    font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
main { min-height: 58vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 clamp(2.15rem, 4.8vw, 4.1rem)/1.05 Georgia, serif; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 1.04rem; line-height: 1.3; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid #a62d4d; outline-offset: 4px; }
.shell { max-width: 1240px; width: calc(100% - 88px); margin-inline: auto; }
.skip { position: absolute; z-index: 7; inset: 12px auto auto 12px; transform: translateY(-160%); padding: .65rem 1rem; background: white; }
.skip:focus { transform: none; }
.site-header { background: #fff; border-bottom: 1px solid #f0e4e5; }
.header-row { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; }
.brand { display: inline-block; flex: 0 0 auto; }
.brand img { width: 226px; height: auto; }
.header-row nav, .account-nav, .footer-row nav { display: flex; gap: clamp(.85rem, 2.65vw, 2.25rem); align-items: center; }
.header-row nav a, .account-nav, .footer-row nav { font-size: .9rem; font-weight: 650; }
.header-row nav a { padding-block: .65rem; white-space: nowrap; }
.header-row nav a:hover, .header-row nav a[aria-current], .footer-row a:hover { color: var(--wine); }
.account-nav { gap: .9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .65rem 1.12rem; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: .94rem; line-height: 1.25; text-align: center; transition: background-color .15s, border-color .15s; }
.button .icon, .link-arrow .icon { width: 18px; height: 18px; }
.primary { color: #fff; background: var(--wine); border-color: var(--wine); }
.primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.secondary { color: var(--wine-dark); background: #fff; border-color: #dfc6cd; }
.secondary:hover { border-color: var(--wine); background: #fff3f4; }
.compact { min-height: 42px; padding: .58rem .9rem; font-size: .86rem; }
.text-link, .link-arrow, .crumb { color: var(--wine); font-weight: 700; }
.text-link:hover, .link-arrow:hover, .crumb:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .91rem; }
.hero { padding: 53px 0 54px; background: radial-gradient(ellipse at 78% 15%, #f1dbe1, transparent 58%), #fbf1f0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.hero-copy { padding: 9px 0; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 14px; color: var(--wine); font-size: .76rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3.1rem, 5vw, 4.8rem); line-height: .99; letter-spacing: -.064em; text-wrap: initial; }
.hero h1 em { color: var(--wine); font-weight: 600; }
.hero-summary { max-width: 34rem; margin-top: 1.3rem; font-size: clamp(.99rem, 1.48vw, 1.14rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.hero-note { display: flex; gap: .4rem; align-items: center; margin-top: 1.05rem; font-size: .82rem; font-weight: 620; }
.hero-note .icon { width: 17px; height: 17px; color: var(--wine); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual > img { width: 100%; height: clamp(310px, 34vw, 430px); object-fit: cover; object-position: 52% 48%; border-radius: 18px; background: #7a484c; box-shadow: 0 20px 36px rgba(91, 34, 49, .15); }
.photo-card { position: absolute; inset: auto auto 17px 17px; max-width: calc(100% - 34px); display: flex; gap: .75rem; align-items: center; background: #fff; padding: .6rem .7rem .6rem .6rem; border-radius: 10px; box-shadow: var(--shadow); }
.photo-card strong, .photo-card small { display: block; line-height: 1.35; }
.photo-card strong { font-size: .88rem; }
.photo-card small { color: var(--muted); font-size: .73rem; margin-top: .18rem; }
.photo-card .tile-icon { width: 36px; height: 36px; }
.photo-card .tile-icon .icon, .photo-link .icon { width: 17px; height: 17px; }
.photo-link { display: grid; place-items: center; min-width: 34px; min-height: 36px; color: var(--wine); }
.photo-link::after { position: absolute; inset: 0; content: ''; }
.summary-strip { background: #fff; border-bottom: 1px solid var(--line); }
.summary-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 0; }
.summary-row > div { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .15rem .7rem; color: var(--muted); font-size: .88rem; font-weight: 660; }
.summary-row > div + div { border-left: 1px solid var(--line); }
.summary-row strong { color: var(--wine); font: 700 1.75rem/1 Georgia, serif; }
.summary-icon { color: var(--wine); }
.section { padding-block: 55px 65px; }
.inside { padding-top: 44px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; margin-bottom: 1.45rem; }
.section-heading h2 { font: 700 clamp(1.8rem, 3vw, 2.75rem)/1.1 Georgia, serif; }
.section-heading p { margin-top: .52rem; }
.section-heading.minor { margin: 2.2rem 0 1rem; }
.minor h2, .group-title { font: 700 1.6rem/1.2 Georgia, serif; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.category-card, .panel, .resource-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.category-card { display: flex; flex-direction: column; padding: 18px; min-height: 170px; transition: border-color .15s, box-shadow .15s; }
.category-card:hover, .resource-card:hover { border-color: #ba657b; box-shadow: 0 9px 26px rgba(129, 49, 70, .09); }
.tile-icon { display: inline-grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--blush); color: var(--wine); }
.tile-icon .icon { width: 21px; height: 21px; }
.category-card h3, .exam-card h2 { margin-top: .73rem; }
.category-card p, .resource-card p, .exam-card p { margin: .27rem 0 .78rem; font-size: .85rem; }
.card-tail { display: flex; gap: .4rem; align-items: center; justify-content: space-between; margin-top: auto; color: var(--wine); font-size: .81rem; font-weight: 720; }
.card-tail .icon { width: 18px; height: 18px; }
.resource-section { border-top: 1px solid var(--line); background: #f8efee; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-card { display: flex; align-items: center; gap: .9rem; padding: 20px; }
.resource-card > .icon { margin-left: auto; width: 19px; color: var(--wine); }
.resource-card p { margin-bottom: 0; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem; padding-block: 24px; }
.footer-row .brand img { width: 190px; }
.footer-row p { font-size: .81rem; margin-top: .32rem; }
.footer-row nav { flex-wrap: wrap; gap: 1rem 1.45rem; }
.crumb { display: inline-block; font-size: .88rem; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; padding: 1rem; margin: 1rem 0 1.4rem; background: #f6eaec; border: 1px solid var(--line); border-radius: 11px; }
.filters label, .field-stack label, .inline-form label { display: grid; gap: .35rem; min-width: 0; font-size: .88rem; font-weight: 660; }
.filters label { flex: 1 1 150px; }
.filters label:first-of-type { flex-grow: 2; }
input:not([type='radio'], [type='checkbox'], [type='hidden']), select, textarea { min-width: 0; width: 100%; min-height: 43px; padding: .58rem .72rem; color: var(--ink); background: #fff; border: 1px solid #d8c7cc; border-radius: 7px; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--wine); }
textarea { resize: vertical; }
.filters .button { min-height: 43px; }
.exam-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.exam-card, .info-panel, .form-panel, .syllabus { padding: 21px; }
.exam-card h2, .info-panel h2 { font-size: 1.15rem; }
.syllabus h2, .form-panel h2 { font-size: 1.35rem; }
.syllabus > p, .form-panel > p { margin: .62rem 0 .85rem; }
.list-stack { display: grid; gap: .75rem; }
.test-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.15rem; padding: .9rem 1.05rem; }
.row-title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.test-row p, .info-panel p { font-size: .87rem; margin-top: .23rem; }
.test-row form, .test-row > .button { flex: none; }
.feedback, .empty { border-radius: 8px; padding: .75rem .9rem; margin: .75rem 0; color: #554b51; background: #f4eded; }
.feedback { color: #285239; background: #e9f5ed; }
.feedback.error { color: #8c2336; background: #fae6eb; }
.group-title { margin: .7rem 0 .12rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.tabs a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .95rem; color: var(--muted); font-weight: 690; font-size: .89rem; }
.tabs a[aria-current], .tabs a:hover { color: var(--wine-dark); background: var(--blush); border-color: #e4c4cd; }
.update-row { display: grid; grid-template-columns: 95px 1fr; align-items: start; gap: 1rem; padding: 1rem; }
.update-row h2 { font-size: 1.16rem; }
.update-row p { margin: .35rem 0 .55rem; }
.date-tile { padding: .48rem .35rem; border-radius: 8px; background: var(--blush); color: var(--wine-dark); text-align: center; font-size: .8rem; font-weight: 700; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(1rem, 7vw, 6rem); align-items: center; max-width: 1040px; }
.auth-copy p:not(.eyebrow) { margin-top: 1rem; max-width: 34ch; }
.auth-layout .form-panel { padding: clamp(1rem, 4vw, 1.8rem); }
.field-stack { display: grid; gap: .78rem; align-content: start; }
.form-panel h2 + .field-stack { margin-top: .8rem; }
.field-stack .button { justify-self: start; }
.auth-layout .field-stack .button { justify-self: stretch; }
.field-help, .auth-alt { font-size: .86rem; }
.field-help code { overflow-wrap: anywhere; }
.checkbox { display: flex !important; align-items: center; gap: .5rem; min-height: 36px; }
.checkbox input { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.info-panel strong { display: block; color: var(--wine); font-size: 1.38rem; margin: .32rem 0 .25rem; }
.dashboard-settings { margin-top: 1rem; align-items: stretch; }
.attempt-layout { max-width: 880px; }
.timer-bar { position: sticky; top: 8px; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 1rem; padding: .7rem .95rem; }
.timer { color: var(--wine); }
.timer strong { font-variant-numeric: tabular-nums; }
.timer .icon { width: 19px; height: 19px; }
.save-status { margin-left: auto; color: var(--muted); font-size: .83rem; }
.question { margin: 0; padding: 1rem; min-inline-size: 0; }
.question-number { color: var(--wine); font-size: .83rem; font-weight: 760; }
.question-prompt { margin-bottom: .7rem; font-weight: 680; white-space: pre-line; color: var(--ink); }
.choices { display: grid; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .55rem; min-height: 45px; padding: .38rem .62rem; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.choice:has(input:checked) { background: #faf0f3; border-color: #ad506a; }
.choice-letter { display: inline-grid; place-items: center; flex: none; width: 1.55rem; height: 1.55rem; border-radius: 5px; background: var(--blush); color: var(--wine); font-size: .8rem; font-weight: 700; }
.clear-answer { padding: .5rem 0 .05rem; border: 0; background: transparent; font-size: .84rem; }
.bottom-action { margin-top: 1rem; }
.result-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; padding: 1rem; }
.result-summary strong { display: block; font-size: 1.35rem; color: var(--wine); }
.result-summary span { font-size: .86rem; color: var(--muted); }
.review-head { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.review h2 { font-size: 1.02rem; margin: .55rem 0 .6rem; }
.review p { margin: .3rem 0; }
.status { border-radius: 6px; padding: .24rem .45rem; background: #efe9e9; font-size: .79rem; font-weight: 690; }
.status.right { color: #16522e; background: #e5f5eb; }
.status.wrong { color: #7c1d34; background: #fae6eb; }
.explanation { margin-top: .65rem; padding: .7rem; border-radius: 7px; background: var(--paper); }
.explanation p { margin-bottom: 0; }
@media (max-width: 1000px) {
    .shell { width: calc(100% - 56px); }
    .header-row { gap: .8rem; }
    .header-row nav { gap: 1rem; }
    .brand img { width: 182px; }
    .hero-grid { gap: 28px; }
    .large-only { display: none; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .shell { width: calc(100% - 36px); }
    .header-row { min-height: auto; flex-wrap: wrap; padding-top: 12px; gap: .35rem .65rem; }
    .header-row nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; column-gap: 1.25rem; row-gap: 0; border-top: 1px solid #f4eaec; }
    .header-row nav a { font-size: .82rem; padding-block: .55rem; }
    .account-nav { margin-left: auto; gap: .55rem; font-size: .81rem; }
    .account-nav .compact { min-height: 36px; padding: .44rem .55rem; font-size: .76rem; }
    .hero { padding: 30px 0 26px; }
    .hero-grid, .auth-layout { grid-template-columns: 1fr; gap: 22px; }
    .hero-copy { padding: 0; }
    .hero h1 { font-size: clamp(3rem, 10vw, 5.25rem); }
    .hero-summary { margin-top: .9rem; }
    .actions { margin-top: 1.15rem; }
    .hero-visual > img { height: clamp(230px, 59vw, 335px); }
    .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 0; }
    .summary-row > div { justify-content: flex-start; padding: .4rem .45rem; font-size: .8rem; }
    .summary-row > div:nth-child(3) { border-left: 0; }
    .summary-row strong { font-size: 1.44rem; }
    .section { padding-block: 35px 43px; }
    .category-grid, .exam-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .category-card, .exam-card { padding: 13px; min-height: 155px; }
    .resource-grid { grid-template-columns: 1fr; gap: 10px; }
    .info-panel, .form-panel, .syllabus { padding: 15px; }
}
@media (max-width: 400px) {
    .shell { width: calc(100% - 26px); }
    .brand img { width: 158px; }
    .header-row nav { column-gap: .9rem; }
    .header-row nav a { font-size: .77rem; }
    .test-row { flex-wrap: wrap; }
    .test-row .button { min-height: 39px; }
    .update-row { grid-template-columns: 1fr; gap: .6rem; }
    .date-tile { justify-self: start; }
    .save-status { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }


.bulletin-grid, .syllabus-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bulletin-grid { padding-block: 42px; }
.bulletin { padding: clamp(16px, 2.6vw, 30px); background: white; border: 1px solid #e7dade; border-radius: 16px; }
.bulletin header, .bulletin-item, .study-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bulletin header { margin-bottom: 10px; flex-wrap: wrap; }
.bulletin header h2 { font: 700 clamp(1.55rem, 2.3vw, 2rem)/1.1 Georgia, serif; }
.bulletin-item { justify-content: flex-start; padding: 15px 0; border-top: 1px solid #f0e6e7; }
.bulletin-item:last-child { padding-bottom: 0; }
.bulletin-item strong, .bulletin-item small { display: block; }
.bulletin-item small, .test-row small { color: var(--muted); font-size: .8rem; }
.bulletin-item:hover strong { color: var(--wine); }
.calendar-leaf { display: grid; justify-items: center; align-content: center; min-width: 47px; height: 51px; border-radius: 8px; background: #f8e9ed; color: var(--wine-dark); line-height: 1.08; }
.calendar-leaf small { text-transform: uppercase; color: var(--wine); font-size: .64rem; font-weight: 750; letter-spacing: .08em; }
.calendar-leaf strong { font-size: 1.32rem; }
.news-item { justify-content: space-between; }
.news-item .icon { width: 17px; color: var(--wine); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); gap: 18px; }
.lesson { overflow: hidden; max-width: 640px; width: 100%; }
.lesson iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.lesson > div { padding: 14px 18px; } .lesson h3 { margin-bottom: 6px; }
.syllabus-topics { gap: 8px 20px; margin: 14px 0 20px; }
.syllabus-topics details, .study-settings { border-top: 1px solid #e7dade; padding-block: 10px; }
.syllabus-topics summary, .study-settings summary { color: var(--wine-dark); font-weight: 700; cursor: pointer; }
.syllabus-topics details p, .study-settings form, .study-settings p { margin-top: 8px; }
.study-banner { padding: clamp(18px,3vw,32px); border: 1px solid #ead2da; border-radius: 14px; background: #fbf0f2; margin-bottom: 18px; }
.study-banner .actions { margin: 0; } .study-banner .eyebrow { margin-bottom: 5px; }
.study-banner h2 { font: 700 2rem/1.15 Georgia, serif; margin-bottom: 6px; }
.paper-type { display: block; font-size: .73rem; font-weight: 700; color: var(--wine); margin-bottom: 4px; }
.test-row:target { outline: 2px solid var(--wine); outline-offset: 2px; }
@media(max-width: 740px) {
    .bulletin-grid, .syllabus-topics { grid-template-columns: 1fr; gap: 12px; }
    .bulletin-grid { padding-block: 24px; }
    .study-banner { align-items: flex-start; flex-direction: column; }
    .test-row { flex-wrap: wrap; }
}

.pack-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));gap:1rem }
.pack-card { display:grid;gap:.8rem;padding:24px }
.pack-price { color:var(--wine-dark);font:700 2.8rem/1.2 Georgia,serif }
.pack-receipt { max-width:620px }
.pack-receipt .field-stack { margin-top:1.25rem }
.multiline { white-space:pre-line;overflow-wrap:anywhere }
.otp-input { letter-spacing:.28em;font-size:1.35rem }

.profile-summary{display:flex;align-items:center;gap:12px 24px;justify-content:space-between;flex-wrap:wrap;margin-bottom:20px}.profile-summary p{margin:0}.profile-form{max-width:620px}

.booklet-reader{margin-bottom:1.5rem}.booklet-reader select{min-height:42px;margin-left:8px}

.booklet-reader canvas{display:block;width:100%;height:auto;max-width:820px;margin:1rem auto}.booklet-text{white-space:pre-wrap;line-height:1.55}.booklet-reader details{margin:1rem 0}

.catalogue-pager{margin:1.4rem 0;align-items:center}

[hidden] { display: none !important; }
.home-finder { max-width: 32rem; margin: 1.25rem 0 .8rem; }
.home-finder label { display: block; margin-bottom: .4rem; font-weight: 700; }
.home-finder > div { display: flex; gap: .5rem; }
.home-finder input { flex: 1; min-width: 0; padding: .7rem .8rem; border: 1px solid #9c8b91; border-radius: .5rem; font: inherit; }
.home-finder .button { flex: 0 0 auto; }
.menu-toggle { appearance: none; border: 1px solid #ab8f98; background: white; color: #751431; border-radius: .45rem; min-height: 42px; padding: .4rem .6rem; font: inherit; font-weight: 700; }
.guide-links,.guide-steps { margin-bottom: 2rem; }
.guide-steps { max-width: 55rem; padding-left: 1.5rem; }
.guide-steps li { margin: .85rem 0; padding-left: .2rem; }
.year-links { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.year-links a { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid #a98790; border-radius: .5rem; color: #76132f; background: #fff; padding: .35rem .85rem; text-decoration: none; }
.year-links a[aria-current=page] { background: #751632; border-color: #751632; color: #fff; }
.filter-count { margin: 1rem 0; color: #43363a; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline: 3px solid #145e93; outline-offset: 3px; }
.hero-note { flex-wrap: wrap; }
@media (max-width: 740px) {
 .header-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .35rem .55rem; padding-block: .6rem; }
 .header-row .brand { grid-column: 1; grid-row: 1; min-width: 0; }
 .header-row .brand img { width: 100%; max-width: 175px; height: auto; }
 .header-row .menu-toggle { grid-column: 2; grid-row: 1; }
 .header-row .account-nav { grid-column: 3; grid-row: 1; }
 .header-row nav { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 .6rem; }
 .header-row nav a { display: flex; align-items: center; min-height: 44px; }
 .account-nav a { display: inline-flex; align-items: center; min-height: 42px; }
 .home-finder > div { width: 100%; } 
}
@media (max-width: 385px) {
 .header-row { gap: .25rem; }
 .account-nav { gap: .3rem; }
 .header-row .menu-toggle { font-size: .82rem; padding-inline: .35rem; }
}

.archive-preview { background: #faf6f7; border-block: 1px solid #eee1e5; }
.archive-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
.archive-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem; gap: .55rem; color: #36292c; text-decoration: none; background: white; }
.archive-card h3 { font-size: 1.08rem; margin: 0; line-height: 1.45; }
.archive-card > span:last-child { font-size: .9rem; margin-top: auto; color: #564b4e; }
.archive-card:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.archive-year { font-weight: 700; color: #811735; }

.source-reader { margin: 1rem 0; }
.source-part { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin: .8rem 0; }
.source-reader .private-pdf { display: grid; gap: .4rem; margin: .8rem 0; }
.source-reader input[type=file] { max-width: 100%; }
.source-reader canvas { display:block; width:auto; max-width:100%; height:auto; margin:1rem auto; }
.paper-source-note { color:#514449; }

.paper-item-image{display:block;max-width:100%;width:auto;height:auto;max-height:34rem;object-fit:contain;object-position:left center;background:#fff}.choice .paper-item-image,.review p .paper-item-image{max-height:12rem}.question-prompt,.review .explanation p{white-space:pre-line}

.pending-papers>summary{cursor:pointer;font-weight:700;padding:1rem 0}.question .choice>span:last-child{min-width:0}

.question-source{display:block;margin:.55rem 0;color:#563647;font-weight:600}

.lesson iframe{max-width:100%;width:100%;aspect-ratio:16/9;height:auto;border:0}

/* Practice discovery and daily question */
.hero {background:linear-gradient(110deg,#fffaf5 6%,#fcf0e9 60%,#f6e3e6);border-bottom:1px solid #e5d7d6}
.hero-grid {align-items:center}
.hero h1 {max-width:14ch;line-height:1.04}
.hero-visual>img {border-radius:44% 44% 10px 10px;box-shadow:9px 9px 0 #e7c8be;object-position:center}
.home-finder>div {padding:.3rem;background:white;border:1px solid #a48487;border-radius:.8rem}
.home-finder input {border:0;min-width:0}
.exam-shortcuts,.subject-links {display:flex;gap:.5rem;flex-wrap:wrap}
.exam-shortcuts a,.subject-links a {display:inline-flex;align-items:center;gap:.4rem;border:1px solid #d4bec2;border-radius:2rem;text-decoration:none;color:#622039;background:#fff;padding:.47rem .85rem;font-weight:650;font-size:.9rem}
.exam-shortcuts a:hover,.subject-links a:hover {background:#f8e8e9;border-color:#972a47}
.hero .actions {gap:1.2rem;align-items:center}
.hero .actions .icon,.subject-links .icon {width:1rem;height:1rem;vertical-align:middle}
.subject-band {background:#38152a;color:white}
.subject-inner {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:1.15rem}
.subject-inner h2 {color:white;margin:0;font-size:1.2rem;letter-spacing:-.015em}
.subject-links a {background:transparent;color:white;border-color:#916d81}
.subject-links a:hover {color:#38152a;background:white}
.daily-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);align-items:center;gap:clamp(1.4rem,5vw,5rem)}
.daily-intro h2 {font-size:clamp(2rem,3.7vw,3.25rem);margin:.25em 0}
.daily-intro .link-arrow {display:inline-flex;margin-top:.75rem}
.daily-card,.partner-card {border:1px solid #decfd4;border-radius:1.1rem;background:white;padding:clamp(1.1rem,3vw,2.2rem)}
.daily-card {border-top:4px solid #992847;box-shadow:0 12px 32px #47223a0b}
.daily-card fieldset {padding:0;margin:.6rem 0 .9rem;border:0;min-width:0}
.daily-card legend {font-weight:700;line-height:1.45;margin:0 0 1rem;color:#28172a}
.daily-options {display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.daily-options label {display:flex;align-items:center;gap:.6rem;border:1px solid #ded4d9;padding:.7rem;border-radius:.55rem;cursor:pointer}
.daily-options input,.field-stack input[type=checkbox] {width:auto;min-height:0;margin:0;accent-color:#912742}
.daily-options label:has(input:checked) {border-color:#942441;background:#fff1f4}
.daily-review summary {width:fit-content;color:#81213f;cursor:pointer;font-weight:700}
.daily-review p {margin:.65rem 0 0}
.offer-wrap {padding-block:1.3rem}
.partner-card {display:flex;gap:1.4rem;align-items:center;background:#fbf7f2;border-color:#ded0bd;overflow-wrap:anywhere}
.partner-card>div {min-width:0}
.partner-card small {font-weight:700;color:#68452a}
.partner-card h3 {margin:.35rem 0}
.partner-card .disclosure {font-size:.82rem;margin:.7rem 0 0}
.offer-image {max-width:42%;max-height:230px;width:auto;height:auto;object-fit:contain}
@media(max-width:760px){
.subject-inner,.partner-card {align-items:flex-start;flex-direction:column}
.daily-layout {grid-template-columns:1fr}
.hero-visual>img {height:clamp(155px,43vw,245px);border-radius:3rem .7rem 3rem .7rem}
.offer-image {max-width:100%}
}
@media(max-width:430px){.daily-options {grid-template-columns:1fr}.subject-links a,.exam-shortcuts a {padding:.45rem .7rem}}

.reading-article {max-width:60rem;margin-inline:auto}
.reading-article h1 {font-size:clamp(1.9rem,4vw,3.3rem);line-height:1.1}
.article-body {max-width:74ch;line-height:1.7}
.article-body h2 {font-size:clamp(1.2rem,2vw,1.6rem);margin:1.6rem 0 .5rem}
.article-body p {margin:.8rem 0 1rem}

.archive-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.8rem;margin:1.25rem 0}
.archive-filters form {display:flex;align-items:end;gap:.5rem;padding:.85rem}
.archive-filters label {flex:1;min-width:0}
.archive-filters input,.archive-filters select {display:block;width:100%;min-width:0}
.archive-day {margin:2rem 0}
.archive-day ul {padding-inline-start:1.2rem}
.archive-day li+li {margin-top:.55rem}
