/* Bridge for pages not yet rebuilt in the redesign (docs/redesign/progress.md). It re-points the legacy
   variables and shared classes of site.css to the Britishey design system, so every public page already wears
   the new identity. Delete this file when the last legacy public stylesheet is gone. */
:root {
    --public-primary: #214e96;
    --public-primary-hover: #14274a;
    --public-danger: #cc2a1d;
    --public-text: #14274a;
    --public-muted: #2c3f63;
    --public-surface: #ffffff;
    --public-surface-muted: #f4f7fc;
    --public-border: #c9d6ea;
    --public-soft: #e3ecf9;
    --public-on-primary: #ffffff;
    --public-focus: #214e96;
    --public-success: #0f7a4f;
}
body { background: #fff; color: #14274a; font-family: Cabin, "Cabin fallback", Inter, "Segoe UI", system-ui, sans-serif; font-size: 17px; overflow-x: clip; }
:focus-visible { outline: 3px solid #214e96; outline-offset: 3px; }
main h1, main h2, main h3 { letter-spacing: -0.02em; }
main h1 { font-weight: 700; }
main h2 { font-weight: 700; }

/* Page sections */
.commercial-list-page, .student-dashboard-page { background: #fff; }
.commercial-list-intro { text-align: start; margin-inline: 0; }
.commercial-list-intro > span { display: inline-block; background: #cc2a1d; color: #fff; padding: 4px 14px; border-radius: 5px; transform: skewX(-12deg); font-size: 12.5px; letter-spacing: .14em; }
.commercial-list-intro h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.025em; }

/* Buttons: the slanted Britishey button */
.commercial-action, .student-action { border-radius: 7px; font-size: 15.5px; font-weight: 700; padding: 11px 22px; border-width: 2px; transition: translate .2s ease, box-shadow .2s ease, background .2s ease; }
.commercial-action.is-primary, .student-action.is-primary { background: #cc2a1d; border-color: #cc2a1d; color: #fff; }
.commercial-action.is-secondary, .student-action.is-secondary { background: #fff; border-color: #14274a; color: #14274a; }
.commercial-action:hover, .commercial-action:focus-visible, .student-action:hover, .student-action:focus-visible { translate: -3px -3px; box-shadow: 6px 6px 0 #14274a; }
.commercial-action.is-primary:hover, .commercial-action.is-primary:focus-visible { background: #cc2a1d; border-color: #cc2a1d; color: #fff; }
.commercial-action.is-secondary:hover, .commercial-action.is-secondary:focus-visible { background: #fff; color: #14274a; border-color: #14274a; box-shadow: 6px 6px 0 #cc2a1d; }

/* Panels and cards: square-ish corners, ink lines, flat offset shadow on hover */
.information-panel, .student-panel, .commercial-empty-state, .student-empty-state { border-radius: 12px; border-color: #c9d6ea; }
.commercial-empty-state, .student-empty-state { border: 2px dashed #c9d6ea; background: #f4f7fc; }
[class*="-card"]:not(.b-card):not([class*="b-"]) { border-radius: 12px; }
.blog-card, .commercial-card, .student-course-card, .bundle-offer-card, .exam-card, .service-card { border: 2px solid #14274a; transition: translate .25s ease, box-shadow .25s ease; }
.blog-card:hover, .commercial-card:hover, .student-course-card:hover, .bundle-offer-card:hover, .service-card:hover { translate: -5px -5px; box-shadow: 10px 10px 0 #cc2a1d; }
.services-badge, .eyebrow { border-radius: 5px; }

/* Forms */
.form-control, .contact-form-field input, .contact-form-field select, .contact-form-field textarea, main input[type="text"], main input[type="email"], main input[type="search"], main input[type="password"], main input[type="tel"], main select, main textarea { border: 2px solid #14274a; border-radius: 12px; min-height: 46px; font-family: inherit; font-size: 16px; }
main input:focus-visible, main select:focus-visible, main textarea:focus-visible { outline: 3px solid #214e96; outline-offset: 2px; }

/* Rich text from the database */
.rich-content a, .text-link { color: #214e96; text-underline-offset: 4px; }
.rich-content h2, .rich-content h3 { font-family: Baskervville, "Baskervville fallback", Georgia, serif; font-weight: 400; }

/* Account, purchase and learning pages */
.student-account-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.student-panel { border: 2px solid #14274a; border-radius: 12px; box-shadow: 8px 8px 0 rgba(20, 39, 74, 0.09); }
.student-panel > h2:first-child, .information-panel > h2:first-child { font-size: clamp(22px, 2.2vw, 28px); padding-bottom: 10px; border-bottom: 2px solid #14274a; }
.student-page-heading__eyebrow, .buyer-payment-notice strong { color: #cc2a1d; letter-spacing: .12em; }
main table { border-collapse: collapse; }
main th { background: #14274a; color: #fff; text-align: start; }
main th, main td { padding: 10px 14px; border-bottom: 1px solid #c9d6ea; }
.buyer-payment-tabs a, .buyer-payment-tabs button { border-radius: 7px; font-weight: 700; }
.buyer-payment-tabs [aria-current], .buyer-payment-tabs .is-active { background: #cc2a1d; color: #fff; border-color: #cc2a1d; }
.buyer-payment-notice, .assessment-notice, .student-bundle-card__notice { border-radius: 12px; border-inline-start: 6px solid #214e96; background: #f4f7fc; }
@media (max-width: 900px) { .student-account-layout { grid-template-columns: 1fr; } }
