.page-heading { max-width: 52rem; padding: 5rem 0 2.5rem; }
.page-heading h1, .auth-shell h1 { max-width: none; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-heading > p:last-child, .auth-shell > div > p:last-child { color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.card-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; padding-bottom: 5rem; }
.course-card, .dashboard-card, .auth-card, .empty-state, .curriculum__section { border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.94); box-shadow: 0 1rem 2.5rem rgba(23,32,51,.06); }
.course-card { overflow: hidden; }
.course-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.course-card__body, .dashboard-card, .empty-state, .curriculum__section { padding: 1.5rem; }
.course-card h2 { margin: .75rem 0; font-size: 1.4rem; }
.course-card h2 a, .dashboard-card { color: var(--ink); text-decoration: none; }
.course-card p, .dashboard-card span, .empty-state p { color: var(--muted); line-height: 1.6; }
.tag { color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link { font-weight: 750; text-decoration: none; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; justify-content: center; border: 0; border-radius: .65rem; padding: .8rem 1.15rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
.button--primary { color: #fff; background: var(--brand-deep); }
.button--quiet { color: var(--ink); background: var(--surface-soft); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.auth-shell { display: grid; grid-template-columns: 1fr minmax(18rem, 28rem); align-items: center; gap: clamp(2rem, 8vw, 8rem); min-height: 68vh; padding: 4rem 0; }
.auth-card { display: grid; gap: .65rem; padding: clamp(1.5rem, 4vw, 2.25rem); }
.auth-card label { margin-top: .45rem; font-weight: 700; }
.auth-card input:not([type=checkbox]) { width: 100%; border: 1px solid #aebdb9; border-radius: .55rem; padding: .8rem; font: inherit; }
.check-row { display: flex; align-items: center; gap: .55rem; }
.validation { color: #a12323; }
.validation:empty { display: none; }
.notice { border-left: .25rem solid var(--brand); padding: .85rem 1rem; background: var(--surface-soft); line-height: 1.5; }
.curriculum, .prose { max-width: 52rem; padding-bottom: 4rem; }
.curriculum__section { margin: 1rem 0; }
.curriculum__section ol { margin: 0; padding: 0; list-style: none; }
.curriculum__section li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .85rem 0; }
.curriculum__section small { color: var(--muted); text-transform: capitalize; }
.dashboard-card { display: grid; gap: .5rem; min-height: 8rem; }
@media (max-width: 48rem) { .auth-shell { grid-template-columns: 1fr; } }
.table-shell { overflow-x: auto; margin-bottom: 5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.table-shell table { width: 100%; border-collapse: collapse; }
.table-shell th, .table-shell td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-shell th { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.table-shell td small { display: block; margin-top: .25rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.article-list { display: grid; gap: 0; padding-bottom: 5rem; }
.article-list article { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.article-list h2 { margin: .35rem 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.article-list h2 a { color: var(--ink); text-decoration: none; }
.article-list p, .article-list time { color: var(--muted); }
.article-detail { max-width: 52rem; padding-bottom: 5rem; }
@media (max-width: 40rem) { .article-list article { grid-template-columns: 1fr; gap: .5rem; } }
.catalogue-new__hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .65fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; padding: clamp(3.5rem, 8vw, 6.5rem) 0 2.5rem; }
.catalogue-new__hero h1 { max-width: 13ch; margin: .35rem 0 1rem; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.catalogue-new__hero p:not(.eyebrow) { max-width: 42rem; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.catalogue-new__promise { display: grid; gap: .55rem; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.35rem; background: rgba(255,255,255,.82); box-shadow: 0 1.25rem 3rem rgba(23,32,51,.07); }
.catalogue-new__promise strong { margin-bottom: .25rem; font-size: 1.05rem; }
.catalogue-new__promise span { display: flex; align-items: center; gap: .55rem; color: var(--muted); }
.catalogue-new__promise span::before { content: "✓"; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: #fff; background: var(--brand); font-size: .75rem; font-weight: 900; }
.catalogue-new__year-nav { position: sticky; top: .75rem; z-index: 5; display: flex; gap: .55rem; align-items: center; overflow-x: auto; margin: 0 0 2.5rem; border: 1px solid var(--line); border-radius: 1rem; padding: .75rem; background: rgba(255,255,255,.94); box-shadow: 0 .65rem 2rem rgba(23,32,51,.08); scrollbar-width: thin; }
.catalogue-new__year-nav span { flex: 0 0 auto; padding: 0 .35rem; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalogue-new__year-nav a { flex: 0 0 auto; min-width: 2.55rem; border-radius: .7rem; padding: .62rem .72rem; color: var(--ink); background: var(--surface-soft); font-weight: 800; text-align: center; text-decoration: none; }
.catalogue-new__year-nav a:hover, .catalogue-new__year-nav a:focus-visible { color: #fff; background: var(--brand-deep); }
.catalogue-new__groups { display: grid; gap: 2rem; padding-bottom: 5rem; }
.catalogue-new__year { scroll-margin-top: 6rem; border: 1px solid var(--line); border-radius: 1.35rem; padding: clamp(1.25rem, 3vw, 2rem); background: rgba(255,255,255,.78); box-shadow: 0 1rem 2.5rem rgba(23,32,51,.05); }
.catalogue-new__year-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.35rem; }
.catalogue-new__year-heading h2 { margin: .15rem 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; }
.catalogue-new__year-heading p:last-child { margin: .55rem 0 0; color: var(--muted); }
.catalogue-new__year-link { flex: 0 0 auto; color: var(--brand-deep); font-weight: 800; text-decoration: none; }
.catalogue-new__subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.catalogue-new__subject { --subject: var(--brand); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; min-height: 8.5rem; border: 1px solid var(--line); border-radius: 1rem; padding: 1.15rem; color: var(--ink); background: #fff; text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.catalogue-new__subject:hover, .catalogue-new__subject:focus-visible { transform: translateY(-2px); border-color: var(--subject); box-shadow: 0 .9rem 2rem rgba(23,32,51,.09); }
.catalogue-new__subject--english { --subject: #bc5a45; }
.catalogue-new__subject--science { --subject: #34825e; }
.catalogue-new__subject--computing { --subject: #6254a6; }
.catalogue-new__subject-icon { width: .85rem; height: 3.4rem; border-radius: 99px; background: var(--subject); }
.catalogue-new__subject-copy { display: grid; gap: .35rem; }
.catalogue-new__subject-copy strong { font-size: 1.2rem; }
.catalogue-new__subject-copy > span { color: var(--muted); line-height: 1.45; }
.catalogue-new__subject-copy small { color: var(--subject); font-weight: 800; }
.catalogue-new__arrow { color: var(--subject); font-size: 1.45rem; font-weight: 900; }
@media (max-width: 48rem) { .catalogue-new__hero { grid-template-columns: 1fr; } .catalogue-new__promise { display: none; } .catalogue-new__subjects { grid-template-columns: 1fr; } .catalogue-new__year-heading { align-items: start; flex-direction: column; } }
@media (max-width: 30rem) { .catalogue-new__hero h1 { font-size: 2.55rem; } .catalogue-new__subject { grid-template-columns: auto minmax(0, 1fr); } .catalogue-new__arrow { display: none; } }
