/* Britishey public design system (redesign Option 5 "The mix", docs/redesign/directions.md).
   Plain CSS, no build step. Every class is prefixed b- so the legacy stylesheets that unconverted pages still
   load can never restyle these elements. Colours live only in the token block below. */

@font-face { font-family: Baskervville; src: url("../fonts/britishey/baskervville-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Baskervville; src: url("../fonts/britishey/baskervville-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Cabin; src: url("../fonts/britishey/cabin-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: Caveat; src: url("../fonts/britishey/caveat-variable.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
/* Fallback faces sized close to the web fonts so the swap does not move the layout. */
@font-face { font-family: "Cabin fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 94%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: "Baskervville fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 96%; ascent-override: 92%; descent-override: 26%; }

:root {
    --ink: #14274a;
    --ink-soft: #2c3f63;
    --night: #0e1b33;
    --blue: #214e96;
    --blue-deep: #17386c;
    --red: #cc2a1d;
    --red-line: #e0736a;
    --paper: #ffffff;
    --blotter: #f4f7fc;
    --feint: #e3ecf9;
    --rule: #c9d6ea;
    --hi: #ffe66b;
    --tape: rgba(150, 185, 219, 0.8);
    --on-ink: #dbe5f2;
    --on-ink-line: rgba(255, 255, 255, 0.22);
    --pass: #0f7a4f;
    --shade: rgba(20, 39, 74, 0.09);
    --serif: Baskervville, "Baskervville fallback", Baskerville, "Baskerville Old Face", "Libre Baskerville", Georgia, serif;
    --sans: Cabin, "Cabin fallback", Inter, "Gill Sans", "Segoe UI", system-ui, sans-serif;
    --hand: Caveat, "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    --wrap: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --r-s: 5px;
    --r-b: 7px;
    --r-m: 12px;
    --r-l: 14px;
    --skew: -12deg;
    /* Legacy names still read by page stylesheets that are not rebuilt yet (removed with them). */
    --public-primary: var(--blue);
    --public-primary-hover: var(--ink);
    --public-danger: var(--red);
    --public-text: var(--ink);
    --public-muted: var(--ink-soft);
    --public-surface: var(--paper);
    --public-surface-muted: var(--blotter);
    --public-border: var(--rule);
    --public-soft: var(--feint);
    --public-on-primary: #ffffff;
    --public-focus: var(--blue);
    --public-success: var(--pass);
}

@view-transition { navigation: auto; }

/* ---------- base (converted pages only) ---------- */
.b-page { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.b-page *, .b-page *::before, .b-page *::after { box-sizing: border-box; }
:where(.b-page) :where(img, svg) { max-width: 100%; }
:where(.b-page) img { height: auto; }
:where(.b-page) a { color: var(--blue); }
:where(.b-page) a:hover { color: var(--ink); }
.b-page :focus-visible, .b-header :focus-visible, .b-footer :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
:where(.b-page) :where(h1, h2, h3, p, figure, blockquote, dl, dd) { margin: 0; }
.b-page main { display: block; }
.b-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-b); font: 700 16px var(--sans); text-decoration: none; }
.b-skip:focus { top: 12px; color: #fff; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.b-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -0.15em; }

.b-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.b-sec { position: relative; padding-block: clamp(60px, 7vw, 88px); overflow: hidden; }
.b-sec > .b-wrap { display: flex; flex-direction: column; gap: 40px; position: relative; }
.b-bg-white, .b-sec--white { background: var(--paper); }
.b-bg-blotter, .b-sec--blotter { background: var(--blotter); }
.b-bg-ink, .b-sec--ink { background: var(--ink); color: #fff; }
.b-bg-blue, .b-sec--blue { background: var(--blue); color: #fff; }
.b-bg-red { background: var(--red); }
.b-bg-hi, .b-sec--hi { background: var(--hi); color: var(--ink); }
.b-bg-night { background: var(--night); }
:where(.b-sec--ink, .b-sec--blue) a:where(:not(.b-btn)) { color: #fff; }

/* ---------- type ---------- */
.b-h1 { font-weight: 700; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.b-h2 { font-weight: 700; font-size: clamp(32px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -0.025em; color: inherit; }
.b-h3 { font-weight: 700; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; }
.b-display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.8vw, 88px); line-height: 0.98; letter-spacing: -0.025em; }
.b-it { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--red); }
.b-sec--ink .b-it, .b-sec--blue .b-it, .b-it--hi { color: var(--hi); }
.b-hand { font-family: var(--hand); font-weight: 700; line-height: 1.05; }
.b-lead { max-width: 46em; color: var(--ink-soft); }
.b-sec--ink .b-lead, .b-sec--blue .b-lead { color: var(--on-ink); }
.b-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.b-muted { color: var(--ink-soft); }
.b-rich { color: var(--ink-soft); overflow-wrap: anywhere; }
.b-rich p + p { margin-top: 0.8em; }

/* ---------- label, buttons, links ---------- */
.b-label { display: inline-flex; align-self: flex-start; margin: 0; background: var(--red); color: #fff; padding: 5px 16px; border-radius: var(--r-s); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; transform: skewX(var(--skew)); }
.b-label > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.b-label--blue { background: var(--blue); }
.b-label--ink { background: var(--ink); }
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border: 0; border-radius: var(--r-b); background: var(--red); color: #fff; font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; transform: skewX(var(--skew)); transition: translate .2s ease, box-shadow .2s ease; }
.b-btn > * { transform: skewX(calc(var(--skew) * -1)); }
.b-btn:hover, .b-btn:focus-visible { color: #fff; translate: -3px -3px; box-shadow: 6px 6px 0 var(--ink); }
.b-btn--white { background: #fff; color: var(--ink); }
.b-btn--white:hover, .b-btn--white:focus-visible { color: var(--ink); box-shadow: 6px 6px 0 var(--red); }
.b-btn--ink { background: var(--ink); }
.b-btn--ink:hover, .b-btn--ink:focus-visible { box-shadow: 6px 6px 0 var(--red); }
.b-btn--blue { background: var(--blue); }
.b-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.b-btn--ghost:hover, .b-btn--ghost:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 6px 6px 0 var(--red); }
.b-btn--small { min-height: 44px; padding: 8px 18px; font-size: 15.5px; }
/* Owner 2026-11-16: a button beside a straight box (search and filter bars) is straight too, with our offset shadow. */
.b-btn--square { transform: none; box-shadow: 4px 4px 0 var(--ink); }
.b-btn--square > * { transform: none; }
.b-btn--square:hover, .b-btn--square:focus-visible { box-shadow: 6px 6px 0 var(--ink); }
.b-btn[disabled], .b-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; translate: none; box-shadow: none; }
.b-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--blue); }
.b-more .b-icon { transition: transform .2s ease; }
.b-more:hover .b-icon { transform: translateX(6px); }
.b-sec--ink .b-more, .b-sec--blue .b-more { color: #fff; }

/* ---------- section head + chapter ---------- */
.b-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.b-head__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1 1 520px; }
.b-chap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.b-chap__n { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; color: var(--red); }
.b-chap__bar { width: 38px; height: 2px; background: var(--red); }
.b-chap .b-label { align-self: center; }
.b-chap__dict { font-family: Georgia, "Times New Roman", serif; font-size: 17px; color: var(--ink-soft); white-space: nowrap; }
.b-chap__dict small { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.b-chap.is-dark .b-chap__n { color: var(--hi); }
.b-chap.is-dark .b-chap__bar { background: var(--hi); }
.b-chap.is-dark .b-chap__dict { color: #fff; }

/* ---------- wave edge ---------- */
.b-wave { line-height: 0; overflow: hidden; margin-bottom: -1px; }
.b-wave svg { display: block; width: 100%; height: 36px; }
.b-wave__b { opacity: .45; }
.b-fill-ink { fill: var(--ink); }
.b-fill-red { fill: var(--red); }
.b-fill-blue { fill: var(--blue); }
.b-fill-night { fill: var(--night); }
.b-fill-blotter { fill: var(--blotter); }
.b-fill-white { fill: var(--paper); }

/* ---------- cards ---------- */
.b-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); overflow: hidden; color: var(--ink); text-decoration: none; transition: translate .25s ease, box-shadow .25s ease; }
a.b-card:hover, a.b-card:focus-visible, .b-card.is-link:hover { color: var(--ink); translate: -5px -5px; box-shadow: 10px 10px 0 var(--red); }
.b-card__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-bottom: 2px solid var(--ink); background: var(--feint); }
.b-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
a.b-card:hover .b-card__img img, .b-card:hover .b-card__img img { transform: scale(1.07); }
.b-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.b-card__title { font-weight: 700; font-size: 19px; line-height: 1.22; color: var(--ink); }
.b-card__title a { color: inherit; text-decoration: none; }
.b-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14.5px; padding-top: 12px; border-top: 1px solid var(--rule); }
.b-price { font-weight: 700; color: var(--ink); font-size: 20px; }
.b-price del { font-weight: 400; font-size: 14px; color: var(--ink-soft); margin-inline-end: 6px; }
.b-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; background: var(--ink); color: #fff; font-family: var(--serif); font-style: italic; font-size: 22px; text-align: center; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 270px), 100%), 1fr)); gap: 24px; }
.b-tag { display: inline-block; border: 1.5px solid currentColor; border-radius: var(--r-s); padding: 1px 10px; font-size: 13.5px; }
.b-paper { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--red); border-radius: 4px 4px var(--r-m) var(--r-m); padding: 26px; box-shadow: 12px 12px 0 var(--shade); }
.b-tape { position: absolute; top: -15px; width: 96px; height: 26px; background: var(--tape); transform: rotate(4deg); inset-inline-end: 44px; }

/* ---------- forms ---------- */
.b-field { display: flex; flex-direction: column; gap: 6px; }
.b-field label { font-weight: 700; }
.b-input, .b-page .b-field input:not([type="checkbox"]):not([type="radio"]), .b-page .b-field select, .b-page .b-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r-m); background: #fff; color: var(--ink); font: 400 17px var(--sans); }
.b-page .b-field textarea { min-height: 140px; }
.b-search { display: flex; max-width: 580px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 8px 8px 0 var(--red); }
.b-search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 20px; height: 60px; font: 400 18px var(--sans); color: var(--ink); background: #fff; outline-offset: -4px; }
.b-search button { border: 0; background: var(--red); color: #fff; font: 700 18px var(--sans); padding: 0 28px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- top strip + header ---------- */
.b-topbar { background: var(--night); color: var(--on-ink); font: 400 14px/1.5 var(--sans); }
.b-topbar .b-wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; justify-content: space-between; padding-block: 7px; }
.b-topbar a { color: var(--on-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.b-topbar a:hover { color: #fff; }
.b-topbar__group { display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: center; }
.b-topbar__social a { justify-content: center; min-width: 32px; }
.b-topbar .b-icon { width: 16px; height: 16px; }
.b-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 2px solid var(--ink); font: 400 16px/1.5 var(--sans); color: var(--ink); backdrop-filter: saturate(1.4) blur(6px); }
.b-header__in { display: flex; align-items: center; gap: 10px 28px; padding-block: 10px; }
.b-brand { display: flex; flex: 0 0 auto; }
.b-brand img { width: 170px; height: 58px; object-fit: contain; display: block; }
.b-burger { display: none; margin-inline-start: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--r-b); background: #fff; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.b-navpanel { display: flex; align-items: center; gap: 10px 28px; flex: 1 1 auto; justify-content: space-between; }
.b-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; font-weight: 700; }
.b-nav > a, .b-dd > summary { color: var(--ink); text-decoration: none; padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; position: relative; }
.b-dd > summary::-webkit-details-marker { display: none; }
.b-nav > a::after, .b-dd > summary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.b-nav > a:hover::after, .b-nav > a[aria-current="page"]::after, .b-dd > summary:hover::after, .b-dd > summary[aria-current="page"]::after, .b-dd[open] > summary::after { transform: scaleX(1); }
.b-dd { position: relative; }
.b-dd .b-icon { width: 13px; height: 13px; color: var(--red); transition: transform .2s ease; }
.b-dd[open] > summary .b-icon { transform: rotate(180deg); }
.b-dd__menu { position: absolute; top: 100%; inset-inline-start: -14px; z-index: 50; min-width: 230px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 8px 8px 0 var(--red); padding: 8px; display: flex; flex-direction: column; animation: b-drop .2s ease-out; }
.b-dd__menu a { display: block; padding: 9px 14px; border-radius: var(--r-b); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; transition: background .15s ease, padding .15s ease; }
.b-dd__menu a:hover, .b-dd__menu a:focus-visible, .b-dd__menu a[aria-current="page"] { background: var(--blotter); padding-inline-start: 20px; color: var(--ink); }
.b-dd__menu .course-nav-tree { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); margin-bottom: 6px; padding-bottom: 6px; }
.b-dd__menu .course-nav-category > summary { padding: 9px 14px; font-weight: 600; cursor: pointer; border-radius: var(--r-b); }
.b-dd__menu .course-nav-category > summary:hover { background: var(--blotter); }
.b-dd__menu .course-nav-panel { padding-inline-start: 12px; display: flex; flex-direction: column; }
.b-dd__menu .course-nav-all { color: var(--red); }
.b-account { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.b-account > a:not(.b-btn) { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
@keyframes b-drop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
    .b-burger { display: inline-flex; }
    .navigation-ready .b-navpanel { display: none; }
    .navigation-ready .b-navpanel.is-open { display: flex; }
    .b-header__in { flex-wrap: wrap; }
    .b-navpanel { flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 8px 0 14px; border-top: 1px solid var(--rule); }
    .b-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .b-nav > a, .b-dd > summary { padding: 12px 0; border-bottom: 1px solid var(--rule); width: 100%; justify-content: space-between; }
    .b-nav > a::after, .b-dd > summary::after { display: none; }
    .b-dd__menu { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; animation: none; }
    .b-account { justify-content: space-between; padding-top: 10px; }
    .b-header { position: relative; }
}

/* ---------- footer ---------- */
.b-footer { background: var(--night); color: var(--on-ink); font: 400 15.5px/1.6 var(--sans); }
.b-footer .b-wrap { padding-block: 64px 28px; display: flex; flex-direction: column; gap: 40px; }
.b-footer__cols { display: flex; flex-wrap: wrap; gap: 36px 48px; }
.b-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.b-footer__logo { align-self: flex-start; display: flex; padding: 4px 0; }
.b-footer__logo img { width: 170px; height: 58px; object-fit: contain; display: block; }
.b-footer__tag { font-family: var(--hand); font-size: 27px; line-height: 1.1; color: var(--hi); }
.b-footer__col { display: flex; flex-direction: column; gap: 8px; flex: 1 1 170px; min-width: 0; }
.b-footer__col h2 { margin: 0 0 4px; font: 700 13px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hi); }
.b-footer a { color: var(--on-ink); text-decoration: none; }
.b-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.b-footer__contact a { display: inline-flex; gap: 8px; align-items: center; }
.b-footer__legal { border-top: 1px solid var(--on-ink-line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 14px; }
.b-footer__legal p { margin: 0; max-width: 60em; }

/* ---------- side index tabs (home) ---------- */
.b-tabs { position: sticky; top: 140px; height: 0; z-index: 30; }
.b-tabs nav { position: absolute; inset-inline-end: 0; top: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.b-tab { display: flex; align-items: center; height: 32px; padding: 0 9px 0 12px; background: var(--feint); color: var(--ink); text-decoration: none; font: 700 13px var(--sans); border: 1px solid var(--rule); border-right: 0; border-radius: 8px 0 0 8px; transition: background .2s ease, color .2s ease; }
.b-tab.is-current { background: var(--red); border-color: var(--red); color: #fff; }
.b-tab:hover, .b-tab:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }
.b-tab__name { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, margin .3s ease; }
.b-tab:hover .b-tab__name, .b-tab:focus-visible .b-tab__name { max-width: 190px; margin-inline-end: 10px; }
@media (max-width: 1100px) { .b-tabs { display: none; } }

/* ---------- moving rows ---------- */
.b-rail { overflow: hidden; position: relative; }
.b-rail__track { display: flex; gap: 18px; width: max-content; padding-inline-start: 18px; animation: b-ticker 64s linear infinite; }
.b-rail--back .b-rail__track { animation-name: b-ticker-back; animation-duration: 70s; }
/* Owner 2026-11-14: hover pauses only with a mouse (on phones it stuck); the button or a tap toggles it. */
.b-rail.is-paused .b-rail__track { animation-play-state: paused; }
@media (hover: hover) { .b-rail:hover .b-rail__track, .b-rail:focus-within .b-rail__track { animation-play-state: paused; } }
.b-pause { position: absolute; inset-inline-end: 14px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.b-pause .b-icon { width: 16px; height: 16px; }
@keyframes b-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes b-ticker-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- running strip ---------- */
.b-strip { background: var(--red); color: #fff; overflow: hidden; padding: 13px 0; }
.b-strip__track { display: flex; gap: 40px; width: max-content; padding-inline-start: 40px; font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; animation: b-ticker 46s linear infinite; }
.b-strip:hover .b-strip__track { animation-play-state: paused; }
.b-strip__sep { width: 5px; height: 18px; background: var(--hi); transform: skewX(var(--skew)); align-self: center; flex: 0 0 auto; }

/* ---------- hero (home) ---------- */
.b-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.b-hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 43px, rgba(255, 255, 255, 0.055) 43px 44px); pointer-events: none; }
.b-hero__in { position: relative; min-height: 640px; padding-block: 56px 68px; display: flex; flex-wrap: wrap; gap: 44px 28px; align-items: center; }
.b-hero__copy { position: relative; z-index: 2; flex: 1.3 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.b-hero__h1 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; color: var(--on-ink); }
.b-hero__big { font-weight: 700; font-size: clamp(44px, 5.4vw, 82px); line-height: 1; letter-spacing: -0.035em; color: #fff; }
.b-hero__strike { position: relative; display: inline-block; color: rgba(255, 255, 255, 0.5); }
.b-hero__strike svg { position: absolute; left: -4%; top: 36%; width: 108%; height: 0.4em; overflow: visible; }
.b-hero__fix { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 1.14em; letter-spacing: 0; color: var(--hi); transform: rotate(-5deg); }
.b-hero__tick { width: 0.42em; height: 0.42em; margin-inline-start: 0.12em; overflow: visible; }
.b-hero__sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.58em; letter-spacing: -0.01em; color: var(--hi); }
.b-hero__roll { margin: 0; display: flex; flex-wrap: wrap; gap: 0 0.4em; align-items: center; font-size: clamp(20px, 2.1vw, 30px); font-weight: 700; line-height: 1.4; }
.b-roll { display: inline-flex; flex-direction: column; }
.b-roll__win { display: inline-block; height: 1.4em; overflow: hidden; color: var(--hi); }
.b-roll__list { display: block; animation: b-roll 14.4s cubic-bezier(.6, 0, .2, 1) infinite; }
.b-roll__list span { display: block; height: 1.4em; line-height: 1.4em; white-space: nowrap; }
.b-roll svg { display: block; width: 100%; height: 9px; overflow: hidden; }
.b-dict { max-width: 35em; font-size: 16.5px; line-height: 1.55; color: var(--on-ink); padding-inline-start: 16px; border-inline-start: 3px solid var(--red-line); }
.b-dict__word { font-family: var(--serif); font-size: 23px; color: #fff; }
.b-dict__ipa { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.b-dict__pos { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hi); }
.b-dict b, .b-dict strong { color: #fff; }
.b-hero__note { display: flex; align-items: flex-end; gap: 10px; margin-bottom: -10px; font-family: var(--hand); font-size: 27px; line-height: 1; color: var(--hi); }
.b-hero__note span { display: inline-block; transform: rotate(-3deg); }
.b-hero__note svg { width: 54px; height: 40px; overflow: visible; }
.b-hero__popular { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; color: var(--on-ink); }
.b-hero__popular a { color: #fff; text-underline-offset: 5px; }
.b-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink); }
.b-hero__trust img { height: 46px; width: 112px; object-fit: contain; background: #fff; padding: 5px 10px; border-radius: 6px; }
.b-hero__media { position: relative; flex: 1 1 460px; min-width: 0; min-height: 520px; }
.b-hero__stripe { position: absolute; top: -90px; bottom: -90px; transform: skewX(var(--skew)); }
.b-hero__stripe--a { left: 0; width: 14%; background: var(--red); animation: b-stripe-in .9s .05s ease-out both; }
.b-hero__stripe--b { right: -7%; width: 9%; background: var(--blue); animation: b-stripe-in .9s .3s ease-out both; }
.b-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); animation: b-wipe 1.1s .15s cubic-bezier(.2, .7, .2, 1) both, b-pan 18s 1.3s ease-in-out infinite alternate; }
.b-stamp { position: absolute; top: 18px; right: 4%; width: 138px; height: 138px; border-radius: 50%; background: #fff; border: 4px solid var(--red); color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; line-height: 1; transform: rotate(-9deg); animation: b-stamp .55s 1.3s cubic-bezier(.3, 1.4, .5, 1) both; }
.b-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: b-spin 28s linear infinite; }
.b-stamp text { font: 700 10.5px var(--sans); letter-spacing: 2.3px; fill: var(--red); }
.b-stamp__s { font-size: 11px; letter-spacing: 0.18em; }
.b-stamp__y { font-size: 34px; letter-spacing: -0.02em; }
.b-float { position: absolute; z-index: 3; display: flex; text-decoration: none; color: var(--ink); box-shadow: 8px 8px 0 rgba(14, 27, 51, 0.55); border-radius: 10px; animation: b-bob 5s ease-in-out infinite; }
.b-float:hover { color: var(--ink); }
.b-float--next { left: -2%; bottom: 34px; flex-direction: column; gap: 4px; background: #fff; padding: 14px 20px 14px 18px; border-inline-start: 7px solid var(--red); max-width: 290px; }
.b-float--team { right: 2%; bottom: -18px; align-items: center; gap: 12px; background: var(--hi); padding: 10px 18px 10px 12px; animation-duration: 6s; animation-delay: 1.2s; }
.b-float__k { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.b-float__t { font-weight: 700; font-size: 20px; line-height: 1.2; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: 0 0 auto; animation: b-pulse 1.6s ease-out infinite; }
.b-faces { display: flex; }
.b-faces img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.b-faces img + img { margin-inline-start: -14px; }
@media (max-width: 700px) {
    .b-hero__media { min-height: 380px; }
    .b-float--next { left: 0; bottom: 20px; }
    .b-float--team { display: none; }
    .b-stamp { width: 108px; height: 108px; }
    .b-stamp__y { font-size: 27px; }
}

/* ---------- home sections ---------- */
.b-tile { position: relative; overflow: hidden; display: block; min-height: 440px; border-radius: var(--r-l); color: #fff; text-decoration: none; background: var(--ink); }
.b-tile:hover, .b-tile:focus-visible { color: #fff; }
.b-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.b-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 27, 51, 0.05) 30%, rgba(14, 27, 51, 0.94) 100%); }
.b-tile:hover img, .b-tile:focus-visible img { transform: scale(1.07); }
.b-tile__tag { position: absolute; z-index: 1; left: -8px; top: 22px; background: var(--red); padding: 6px 20px 6px 26px; border-radius: var(--r-s); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transform: skewX(var(--skew)); }
.b-tile__tag span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.b-tile__tag--blue { background: var(--blue); }
.b-tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.b-tile__title { font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.b-tile__copy { color: var(--on-ink); }
.b-tile__more { display: flex; flex-direction: column; gap: 10px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s ease, max-height .35s ease; }
.b-tile:hover .b-tile__more, .b-tile:focus-visible .b-tile__more { opacity: 1; max-height: 160px; }
.b-tile__go { font-weight: 700; color: var(--hi); }

.b-board { list-style: none; margin: 0; padding: 0; border-top: 3px solid #fff; }
.b-board li { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.b-board__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); flex: 0 0 auto; }
.b-board li .b-board__dot { border: 0; background: var(--red); animation: b-pulse 1.6s ease-out infinite; }
.b-board__date { flex: 0 0 132px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; row-gap: 2px; color: var(--hi); font-weight: 700; }
.b-board__from, .b-board__year { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); }
.b-board__year { font-size: 14px; color: var(--hi); }
.b-board__day { font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.b-board__mon { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.b-board__what { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.b-board__title { font-weight: 700; font-size: 19px; line-height: 1.25; }
.b-board__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--on-ink); font-size: 14px; }
.b-board__meta .b-tag { border-color: rgba(255, 255, 255, 0.55); }
.b-board__act { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.b-board__act a:not(.b-btn) { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.b-split { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: center; }
.b-split > * { flex: 1 1 420px; min-width: 0; }
.b-rows { padding: 26px 26px 8px; transform: rotate(-1deg); }
.b-rows__k { display: block; padding-bottom: 14px; }
.b-row { display: flex; align-items: center; gap: 18px; padding: 16px 8px 16px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: padding .2s ease, background .2s ease; }
.b-row:hover { padding-inline-start: 12px; background: var(--blotter); color: var(--ink); }
.b-row__n { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1; color: var(--red); min-width: 34px; }
.b-row img { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.b-row__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.b-row__title { font-weight: 700; font-size: 21px; line-height: 1.2; }
.b-row .b-icon { color: var(--red); width: 22px; height: 22px; }

.b-identity__top { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; }
.b-identity__top > :first-child { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.b-identity__top > :last-child { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.b-identity__mid { display: flex; flex-wrap: wrap; gap: 44px 64px; align-items: center; }
.b-year { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.b-year__n { font-weight: 700; font-size: clamp(84px, 9vw, 136px); line-height: 0.9; letter-spacing: -0.04em; color: var(--hi); }
.b-year__hand { font-family: var(--hand); font-size: 28px; line-height: 1.1; transform: rotate(-2deg); align-self: flex-start; }
.b-print { margin: 0; position: relative; flex: 1 1 440px; min-width: 0; transform: rotate(1.5deg); }
.b-print .b-tape { left: 50%; margin-left: -52px; inset-inline-end: auto; width: 104px; height: 28px; transform: rotate(-4deg); z-index: 2; }
.b-print__paper { background: #fff; padding: 12px 12px 0; border-radius: 6px; box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.28); }
.b-print__grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 170px 170px; gap: 10px; }
.b-print__grid > :first-child { grid-row: 1 / 3; }
.b-print__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-m); display: block; transition: transform .5s ease; }
.b-print__grid span { overflow: hidden; border-radius: var(--r-m); }
.b-print__grid span:hover img { transform: scale(1.05); }
.b-print figcaption { padding: 10px 2px 12px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.b-places { display: flex; flex-direction: column; gap: 16px; padding-block: 24px; border-block: 1px solid var(--on-ink-line); }
.b-places__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.b-place { display: flex; align-items: center; gap: 14px; }
.b-place__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--hi); flex: 0 0 auto; animation: b-pulse-y 1.8s ease-out infinite; }
.b-place__name { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.b-place__what, .b-cap { display: block; color: var(--on-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.b-places svg { flex: 1 1 140px; min-width: 0; height: 40px; overflow: hidden; }
.b-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px 24px; margin: 0; }
.b-stat { display: flex; flex-direction: column-reverse; gap: 4px; padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, 0.3); }
.b-stat dt { color: var(--on-ink); font-size: 15px; }
.b-stat dd { margin: 0; font-weight: 700; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.03em; color: var(--hi); }
.b-wall { background: var(--blotter); padding-block: 28px; }
.b-wall img { height: 230px; width: 320px; object-fit: cover; border: 6px solid #fff; border-radius: var(--r-m); transition: transform .3s ease; }
.b-wall img:hover { transform: scale(1.05) rotate(-1.5deg); }

.b-line { position: relative; display: flex; flex-wrap: wrap; gap: 26px 0; margin: 0; padding: 0; list-style: none; }
.b-line li { flex: 1 1 150px; min-width: 0; display: flex; }
.b-stop { position: relative; width: 100%; padding: 40px 8px 0; text-align: center; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: transform .2s ease; }
.b-stop:hover { transform: translateY(-4px); color: var(--ink); }
.b-stop::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 6px; background: var(--blue); }
.b-stop::after { content: ""; position: absolute; top: 0; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); }
.b-line li:first-child .b-stop::after { background: var(--red); border-color: var(--red); animation: b-pulse 1.6s ease-out infinite; }
.b-stop__name { font-weight: 700; line-height: 1.2; }
.b-stop__count { color: var(--ink-soft); font-size: 14.5px; }
.b-paths { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; padding-top: 24px; }
.b-paths__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.b-paths__list { flex: 2 1 560px; min-width: 0; border-bottom: 2px solid var(--ink); }
.b-path { border-top: 2px solid var(--ink); }
.b-path > summary { display: flex; align-items: center; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; }
.b-path > summary::-webkit-details-marker { display: none; }
.b-path__n { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--red); min-width: 34px; }
.b-path__name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: clamp(21px, 2.1vw, 29px); line-height: 1.15; letter-spacing: -0.02em; }
.b-path__count { color: var(--ink-soft); font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.b-plus { font-size: 32px; line-height: 1; width: 30px; text-align: center; color: var(--red); transition: transform .25s ease; }
.b-path[open] .b-plus { transform: rotate(45deg); }
.b-path ul { list-style: none; margin: 0; padding: 0 0 22px 52px; }
.b-path li a { display: flex; flex-wrap: wrap; gap: 2px 24px; align-items: baseline; padding: 11px 6px 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: padding .2s ease, background .2s ease; }
.b-path li a:hover { padding-inline-start: 12px; background: #fff; color: var(--ink); }
.b-path__title { flex: 1 1 320px; min-width: 0; font-weight: 600; }
.b-path__meta { color: var(--ink-soft); font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.b-path__price { min-width: 70px; text-align: end; font-weight: 700; }

.b-plan { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; }
.b-plan__intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.b-sheet { flex: 2 1 560px; min-width: 0; position: relative; background-color: #fff; background-image: repeating-linear-gradient(0deg, transparent 0 33px, var(--feint) 33px 34px); border: 1px solid var(--rule); border-radius: 4px var(--r-m) var(--r-m) 4px; box-shadow: 12px 12px 0 var(--shade); padding: 18px 26px 12px 84px; }
.b-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 62px; width: 2px; background: var(--red-line); }
.b-sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.b-sheet ol { list-style: none; margin: 0; padding: 0; }
.b-sheet li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; min-height: 68px; padding: 12px 0; }
.b-sheet__stage { flex: 0 0 76px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.b-sheet__what { flex: 1 1 200px; min-width: 0; font-weight: 700; font-size: 20px; line-height: 1.25; }
.b-sheet__how { flex: 2 1 280px; min-width: 0; color: var(--ink-soft); }
.b-sheet .b-icon { color: var(--red); width: 24px; height: 24px; align-self: center; stroke-width: 2.6; }
@media (max-width: 600px) { .b-sheet { padding-left: 40px; } .b-sheet::before { left: 24px; } }

.b-ticket { display: flex; flex-direction: column; }
.b-ticket__img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.b-ticket__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.b-ticket:hover .b-ticket__img img { transform: scale(1.07); }
.b-save { position: absolute; right: 14px; top: 14px; background: var(--hi); color: var(--ink); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: var(--r-s); transform: rotate(3deg); box-shadow: 3px 3px 0 var(--ink); }
.b-ticket__row { display: flex; flex-wrap: wrap; flex: 1 1 auto; border-top: 2px dashed var(--ink); }
.b-ticket__main { flex: 1 1 220px; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.b-ticket__price { flex: 0 1 170px; padding: 20px 22px; border-inline-start: 2px dashed var(--ink); display: flex; flex-direction: column; gap: 4px; justify-content: center; background: var(--blotter); }
.b-ticket__price del { color: var(--ink-soft); font-size: 14px; }
.b-ticket__price strong { font-size: 27px; line-height: 1; letter-spacing: -0.02em; }

.b-person { flex: 0 0 230px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); padding: 20px 16px 22px; color: var(--ink); text-decoration: none; text-align: center; transition: translate .25s ease, box-shadow .25s ease; }
.b-person:hover, .b-person:focus-visible { color: var(--ink); translate: -5px -5px; box-shadow: 10px 10px 0 var(--red); }
.b-person img, .b-person__ph { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; }
.b-person__ph { display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 54px var(--serif); }
.b-person__name { font-weight: 700; font-size: 19px; line-height: 1.2; }
.b-person__role { color: var(--ink-soft); font-size: 14.5px; line-height: 1.35; }

.b-faq { border-top: 3px solid var(--ink); }
.b-faq details { border-bottom: 2px solid var(--ink); padding: 18px 0; }
.b-faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 20px; line-height: 1.3; cursor: pointer; list-style: none; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq details[open] .b-plus { transform: rotate(45deg); }
.b-faq .b-rich { margin-top: 12px; max-width: 44em; }
.b-taped { position: relative; align-self: flex-start; max-width: 380px; }
.b-taped img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #fff; border-radius: 10px; box-shadow: 10px 10px 0 var(--blue); transform: rotate(-2deg); }
.b-taped__note { position: absolute; left: 18px; bottom: -40px; font-family: var(--hand); font-size: 28px; color: var(--red); transform: rotate(-3deg); }

.b-mag { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; align-items: stretch; }
.b-mag__side { display: grid; gap: 18px; align-content: start; }
.b-story { flex-direction: row; gap: 18px; align-items: stretch; }
.b-story .b-card__img { flex: 0 0 38%; aspect-ratio: auto; border-bottom: 0; }
.b-story .b-card__body { padding: 14px 16px 14px 0; }
.b-feature .b-card__img { aspect-ratio: 16 / 10; }
.b-feature .b-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -0.01em; }

.b-exams { position: relative; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.b-exams > :first-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.b-exams__photo { flex: 1 1 360px; min-width: 0; min-height: 380px; position: relative; }
.b-exams__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.b-sway { position: absolute; top: -60px; bottom: -60px; transform: skewX(var(--skew)); animation: b-sway 7s ease-in-out infinite; pointer-events: none; }

.b-quote { margin: 0; background: #fff; color: var(--ink); padding: 30px 26px 24px; border-radius: var(--r-m); display: flex; flex-direction: column; gap: 16px; transition: translate .25s ease, box-shadow .25s ease; }
.b-quote:hover { translate: -5px -5px; box-shadow: 10px 10px 0 var(--red); }
.b-quote__mark { font-family: var(--serif); font-size: 96px; line-height: 0.6; color: var(--red); height: 36px; }
.b-quote__text { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); }
.b-quote__text.is-collapsed { max-height: 8.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.b-quote__toggle { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--blue); font: 700 15px var(--sans); cursor: pointer; min-height: 32px; }
.b-quote figcaption { margin-top: auto; padding-top: 14px; border-top: 2px solid var(--ink); display: flex; align-items: center; gap: 12px; }
.b-quote figcaption img, .b-quote__ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.b-quote__ph { display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 22px var(--serif); }
.b-quote__who { display: flex; flex-direction: column; line-height: 1.3; }
.b-quote__who span { color: var(--ink-soft); font-size: 14.5px; }
.b-quote--lined { border: 2px solid var(--ink); }
.b-notice { padding: 14px 18px; border-radius: var(--r-m); background: #e7f5ee; border-inline-start: 6px solid var(--pass); font-weight: 700; color: var(--ink); }
.b-dialog { border: 0; border-radius: var(--r-m); padding: 16px; max-width: min(92vw, 900px); }
.b-dialog::backdrop { background: rgba(14, 27, 51, 0.7); }
.b-dialog img { display: block; max-height: 75vh; width: auto; margin: 0 auto 12px; }
.b-quotes { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--hi) transparent; }
.b-quotes > * { flex: 0 0 min(360px, 86vw); scroll-snap-align: start; }

/* Owner 2026-11-16: the "Review us" block — a white card on the ink band: words, three steps, faces and one big button. */
.b-review { position: relative; overflow: hidden; background: var(--ink); }
.b-review .b-wrap { position: relative; padding-block: clamp(48px, 6vw, 72px); }
.b-review__card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) auto; gap: 28px 40px; align-items: center; padding: clamp(24px, 3.4vw, 40px); background: var(--paper); border-radius: var(--r-l); border-top: 6px solid var(--hi); box-shadow: 14px 14px 0 var(--red); }
.b-review__card::after { content: "\201C"; position: absolute; right: 22px; top: -18px; font: 700 150px/1 var(--serif); color: var(--feint); pointer-events: none; }
.b-review__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.b-review__copy .b-h2 { font-size: clamp(30px, 3.2vw, 46px); }
.b-review__copy > p:not(.b-label):not(.b-review__faces) { color: var(--ink-soft); max-width: 34em; }
.b-review__faces { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.b-review__stack { display: inline-flex; }
.b-review__stack img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20, 39, 74, .2); }
.b-review__stack img + img { margin-left: -12px; }
.b-review__steps { position: relative; z-index: 1; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.b-review__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-m); background: var(--blotter); border: 1px solid var(--rule); font-weight: 700; }
.b-review__steps b { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-s); background: var(--blue); color: #fff; transform: skewX(var(--skew)); }
.b-review__steps li:nth-child(2) b { background: var(--red); }
.b-review__steps li:nth-child(3) b { background: var(--ink); }
.b-review__go { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.b-review__btn { min-height: 60px; padding: 14px 34px; font-size: 21px; }
.b-review__btn .b-icon { transform: skewX(calc(var(--skew) * -1)); }
.b-review__go .b-hand { font-size: 25px; color: var(--red); transform: rotate(-3deg); }
@media (max-width: 1000px) { .b-review__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .b-review__go { grid-column: 1 / -1; } }
@media (max-width: 640px) { .b-review__card { grid-template-columns: minmax(0, 1fr); box-shadow: 8px 8px 0 var(--red); } .b-review__btn { width: 100%; } }
.b-review__stars { color: var(--red); font-size: 30px; letter-spacing: 6px; line-height: 1; }
.b-reviews img { height: 260px; width: auto; border-radius: var(--r-m); border: 6px solid #fff; }

.b-record { flex: 0 1 460px; min-width: 0; padding: 18px 26px; }
.b-record__stack { position: relative; transform: rotate(1.6deg); }
.b-record__sheet { position: absolute; inset: 0; background: #fff; border: 1px solid var(--rule); border-radius: 4px 4px 10px 10px; transition: transform .35s ease; }
.b-record__sheet--a { transform: rotate(-4deg); }
.b-record__sheet--b { transform: rotate(2.5deg); }
.b-record__stack:hover .b-record__sheet--a { transform: rotate(-8deg) translate(-16px, 6px); }
.b-record__stack:hover .b-record__sheet--b { transform: rotate(7deg) translate(18px, 4px); }
.b-record__top { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--blue); border-radius: 4px 4px 10px 10px; padding: 20px 28px 16px; box-shadow: 14px 16px 0 rgba(20, 39, 74, 0.1); display: flex; flex-direction: column; }
.b-record__ribbon { position: absolute; top: -4px; right: 26px; width: 22px; height: 46px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.b-record__head { display: flex; justify-content: space-between; gap: 12px; padding: 0 44px 12px 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.b-record__logo { display: flex; justify-content: center; padding: 14px 0 16px; border-top: 2px solid var(--ink); }
.b-record__logo img { width: 170px; height: 55px; object-fit: contain; }
.b-record__item { display: flex; flex-direction: column; gap: 2px; padding: 13px 0; border-top: 1px solid var(--rule); }
.b-record__k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.b-record__v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.b-record__v strong { font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.b-record__v span { color: var(--ink-soft); font-size: 14.5px; }
.b-record__foot { padding-top: 12px; border-top: 2px solid var(--ink); color: var(--ink-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.b-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; padding: 1px; border-radius: var(--r-m); overflow: hidden; }
.b-logos > * { background: #fff; box-shadow: 0 0 0 1px var(--rule); display: flex; align-items: center; justify-content: center; height: 128px; padding: 20px; }
.b-logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.b-logos > :hover img, .b-logos > :focus-visible img { filter: none; opacity: 1; transform: scale(1.07); }
.b-logos__all { background: var(--ink) !important; color: #fff !important; font-weight: 700; text-decoration: none; gap: 8px; }

.b-promo { display: flex; flex-wrap: wrap; }
.b-promo__half { position: relative; flex: 1 1 460px; min-width: 0; min-height: 300px; color: #fff; overflow: hidden; display: flex; align-items: center; }
.b-promo__half img { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; height: 100%; object-fit: cover; clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); }
.b-promo__stripe { position: absolute; top: -40px; bottom: -40px; right: 43%; width: 22px; transform: skewX(var(--skew)); }
.b-promo__copy { position: relative; padding: 44px clamp(20px, 4vw, 48px); max-width: 56%; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.b-promo__copy h2 { font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.06; letter-spacing: -0.025em; }

.b-talk .b-wrap { padding-block: 30px 76px; display: flex; flex-direction: column; gap: 34px; }
.b-talk__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.b-talk__big { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.b-talk__big h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 11.5vw, 176px); line-height: 0.92; letter-spacing: -0.03em; }
.b-talk__big svg { width: clamp(70px, 9vw, 130px); height: clamp(70px, 9vw, 130px); flex: 0 0 auto; animation: b-nudge 2.4s ease-in-out infinite; }
.b-talk__cols { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.b-talk__col { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); }
.b-talk__col a { color: var(--ink); font-weight: 700; font-size: 20px; text-decoration: none; }
.b-talk__col a:hover { color: var(--red); }

/* ---------- inner page header (all non-home pages) ---------- */
.b-pagehead { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.b-pagehead::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 43px, rgba(255, 255, 255, 0.055) 43px 44px); }
.b-pagehead .b-wrap { position: relative; padding-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 14px; }
.b-pagehead__stripe { position: absolute; top: -40px; bottom: -40px; width: 70px; right: 12%; background: var(--red); transform: skewX(var(--skew)); opacity: .9; }
.b-pagehead__stripe + .b-pagehead__stripe { right: calc(12% - 52px); width: 18px; background: var(--blue); opacity: 1; }
.b-pagehead h1 { font-weight: 700; font-size: clamp(36px, 5vw, 66px); line-height: 1.03; letter-spacing: -0.03em; max-width: 18em; }
.b-pagehead p { color: var(--on-ink); max-width: 44em; font-size: 18px; }
.b-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--on-ink); }
.b-crumbs a { color: var(--on-ink); }
.b-crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .6; }

/* ---------- catalogue pages (courses, and later bundles, exams, services, library) ---------- */
.b-catalogue { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start; gap: 36px !important; }
.b-filters { flex: 0 1 300px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-top-color: var(--blue); }
.b-filters__form { display: flex; flex-direction: column; gap: 14px; }
.b-filters__form > div { display: flex; flex-direction: column; gap: 6px; }
.b-filters__form label { font-weight: 700; font-size: 15px; }
.b-filters__form input, .b-filters__form select { width: 100%; min-height: 46px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--r-m); background: #fff; color: var(--ink); font: 400 16px var(--sans); }
.b-filters__form .b-btn { width: 100%; }
.b-catalogue__results { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.b-catalogue__results > .b-head__text, .b-sec > .b-wrap > .b-head__text, .b-stack > .b-head__text { flex: none; }
.b-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; }
.b-facts div { display: flex; gap: 6px; }
.b-facts dt { color: var(--ink-soft); }
.b-facts dd { margin: 0; font-weight: 700; }
.b-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.b-stars { color: var(--red); }
.b-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px; border: 2px dashed var(--rule); border-radius: var(--r-m); background: var(--blotter); }
.b-pager { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; padding-top: 12px; }
.b-pager__where { font-weight: 700; color: var(--ink-soft); }
@media (max-width: 900px) { .b-filters { position: static; flex-basis: 100%; } }
.b-catalogue--side .b-catalogue__results { order: 0; }
.b-side { flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.b-side__box { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.b-side__list { list-style: none; margin: 0; padding: 0; }
.b-side__list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
.b-side__list a:hover, .b-side__list a[aria-current="page"] { color: var(--red); }
.b-side__list span { min-width: 28px; text-align: center; border-radius: var(--r-s); background: var(--feint); font-size: 13px; padding: 1px 6px; }
.b-side__post { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.b-side__post h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.b-side__post a { color: var(--ink); text-decoration: none; }
.b-side__post a:hover { color: var(--red); }
.b-detail { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.b-detail__main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.b-detail__side { flex: 0 1 360px; min-width: 0; position: sticky; top: 96px; }
.b-enrol { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); overflow: hidden; box-shadow: 12px 12px 0 var(--red); }
.b-enrol__img { aspect-ratio: 3 / 2; background: var(--feint); border-bottom: 2px solid var(--ink); }
.b-enrol__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-enrol__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.b-enrol__body > .b-btn { width: 100%; }
.b-enrol__price { font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.b-enrol__more { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.b-enrol__more form { display: contents; }
.b-jump { position: sticky; top: 79px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 10px 0; background: rgba(255, 255, 255, 0.96); border-bottom: 2px solid var(--ink); font-weight: 700; }
.b-jump a { color: var(--ink); text-decoration: none; }
.b-jump a:hover { color: var(--red); }
.b-block { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 140px; }
.b-factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 0; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.b-factgrid div { background: var(--blotter); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.b-factgrid dt { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.b-factgrid dd { margin: 0; font-weight: 700; font-size: 18px; }
.b-prose { font-size: 17.5px; line-height: 1.75; max-width: 46em; }
.b-prose img { border-radius: var(--r-m); }
.b-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }
.b-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.b-ticks .b-icon { color: var(--pass); margin-top: 4px; stroke-width: 2.6; }
.b-ticks--plain .b-icon { color: var(--red); }
.b-lesson { display: flex; flex-wrap: wrap; gap: 2px 24px; align-items: baseline; padding: 11px 6px 11px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 1000px) { .b-detail__side { position: static; flex-basis: 100%; order: -1; } }
.b-compare__grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: start; }
.b-compare__pick { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.b-compare__card .b-card__body { gap: 10px; }
.b-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); overflow: hidden; }
.b-table th, .b-table td { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.b-table thead th { background: var(--ink); color: #fff; }
.b-table tbody th { background: var(--blotter); width: 22%; }
.b-table ul { margin: 0; padding-inline-start: 18px; }
.b-pagehead--article h1 { font-size: clamp(32px, 4.4vw, 58px); max-width: 22em; }
.b-article { display: flex; flex-direction: column; gap: 24px; }
.b-article__banner { width: 100%; border-radius: var(--r-m); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--blue); }
.b-article__tags ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-inline-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 18px 20px; background: var(--blotter); border-radius: var(--r-m); }
.b-inline-filter label { font-weight: 700; width: 100%; }
.b-inline-filter select { min-height: 46px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--r-m); font: 400 16px var(--sans); min-width: 240px; }
.b-group-block { display: flex; flex-direction: column; gap: 20px; }
.b-included { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.b-included li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.b-included small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.b-included a { color: var(--ink); text-decoration: none; font-weight: 600; }
.b-included a:hover { color: var(--red); }
.b-upcoming { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.b-upcoming__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.b-upcoming__head > div:first-child { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.b-group { background: var(--blotter); border-radius: var(--r-m); padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--blue); }
.b-group h3 { font-size: 18px; margin: 0; }
.b-group--over { background: #eef0f3; border-top-color: #a3abb8; color: #4f5866; filter: grayscale(1); }
/* Finished groups look greyed out but stay readable (contrast for accessibility). */
.b-group--over h3, .b-group--over :is(dt, dd, summary, p, li, .b-tag) { color: #4a5260; }
.b-group--over .b-tag { border-color: #a3abb8; background: #fff; }
.b-tag--over { background: #5c6573; border-color: #5c6573; color: #fff; }
.b-upcoming__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
    .b-upcoming__head { align-items: stretch; }
    .b-upcoming__actions { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
    .b-upcoming__actions .b-btn { justify-content: center; min-height: 48px; }
}
.b-group__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.b-group__notes summary { cursor: pointer; font-weight: 700; color: var(--blue); }

/* ---------- generic content pages and forms (converted legacy structures) ---------- */
.b-intro { flex: none; }
.b-stack { display: flex; flex-direction: column; gap: 32px; }
.b-panel { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.b-panel h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.b-panel h3 { font-size: 19px; }
.b-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: start; }
.b-gallery, .b-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 0; }
.b-gallery figure { margin: 0; }
.b-gallery img, .b-photos img, .institution-image { width: 100%; height: auto; border-radius: var(--r-m); border: 6px solid #fff; box-shadow: 8px 8px 0 var(--shade); display: block; }
.b-legacy .team-avatar, .b-legacy .team-initial { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.b-legacy .team-initial { display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 46px var(--serif); }
.b-legacy .institution-statistics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0; }
.b-legacy .institution-statistics dt { color: var(--ink-soft); }
.b-legacy .institution-statistics dd { margin: 0; font-weight: 700; font-size: 34px; color: var(--red); letter-spacing: -0.02em; }
.b-legacy .course-information-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.b-legacy .school-map iframe { width: 100%; min-height: 280px; border: 0; border-radius: var(--r-m); }
.b-legacy .instructor-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.b-legacy .contact-line { margin: 0; }
:where(.b-page) main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea) { width: 100%; min-height: 46px; padding: 9px 13px; border: 2px solid var(--ink); border-radius: var(--r-m); background: #fff; color: var(--ink); font: 400 16px var(--sans); }
:where(.b-page) main textarea { min-height: 140px; resize: vertical; }
:where(.b-page) main :where(label) { font-weight: 700; }
.contact-form, .contact-form-grid { display: grid; gap: 16px; }
.contact-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.contact-form-field { display: flex; flex-direction: column; gap: 6px; }
.consent-control { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.contact-submit-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field-error { color: var(--red); font-size: 14.5px; font-weight: 700; margin: 0; }
.form-error-summary { padding: 14px 18px; border-radius: var(--r-m); background: #fdecea; border-inline-start: 6px solid var(--red); }

/* ---------- sign in, sign up and account forms ---------- */
.b-auth { display: flex; flex-wrap: wrap; min-height: 72vh; background: var(--blotter); }
.b-auth__side { position: relative; flex: 1 1 420px; min-height: 320px; background: var(--ink); overflow: hidden; }
.b-auth__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.b-auth__side::after { content: ""; position: absolute; top: -40px; bottom: -40px; right: 10%; width: 60px; background: var(--red); transform: skewX(var(--skew)); }
.b-auth__note { position: absolute; z-index: 1; left: clamp(20px, 4vw, 48px); right: 22%; bottom: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 12px; }
.b-auth__side--art img { object-fit: contain; opacity: .35; padding: 10%; }
.account-form-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.account-form-notice { padding: 12px 16px; border-radius: var(--r-m); background: var(--feint); }
.b-auth__main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.b-auth__card { width: min(100%, 480px); background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 12px 12px 0 var(--red); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.b-auth__card .b-btn { width: 100%; }

.b-jobtile { min-height: 360px; }
.b-jobtile .b-btn { align-self: flex-start; margin-top: 8px; }
.b-panel .b-btn--white { background: var(--red); color: #fff; }

/* ---------- account area (side navigation shared by every account page) ---------- */
.b-acct { align-self: start; position: sticky; top: 96px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); overflow: hidden; font-family: var(--sans); box-shadow: 8px 8px 0 var(--shade); }
.b-acct__me { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px 18px; background: var(--ink); color: #fff; text-align: center; background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(255, 255, 255, 0.06) 21px 22px); }
.b-acct__me h2 { margin: 6px 0 0; font-size: 19px; color: #fff; line-height: 1.2; }
.b-acct__me span { color: var(--on-ink); font-size: 13.5px; overflow-wrap: anywhere; }
.b-acct__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hi); background: #fff; }
.b-acct__photo--none { display: grid; place-items: center; background: var(--red); color: #fff !important; font: 400 38px var(--serif) !important; }
.b-acct__nav { display: flex; flex-direction: column; padding: 8px; max-height: calc(100vh - 300px); overflow-y: auto; }
.b-acct__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: var(--r-b); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; transition: background .15s ease, padding .15s ease; }
.b-acct__link:hover { background: var(--blotter); padding-inline-start: 18px; color: var(--ink); }
.b-acct__link[aria-current="page"] { background: var(--red); color: #fff; transform: skewX(-6deg); }
.b-acct__count { background: var(--hi); color: var(--ink); border-radius: var(--r-s); padding: 1px 8px; font-size: 12.5px; }
@media (max-width: 900px) { .b-acct { position: static; } .b-acct__nav { max-height: none; flex-direction: row; flex-wrap: wrap; } .b-acct__link { flex: 1 1 150px; } }

/* Legacy wrappers still present on converted notice pages. */
.b-page .container { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.b-page .student-panel, .b-page .identity-panel, .b-page .empty-state { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); padding: clamp(20px, 3vw, 32px); margin-block: 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.b-page .identity-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b-page .catalogue-section { padding-block: 40px; }

/* ---------- error pages ---------- */
.b-error { position: relative; overflow: hidden; background: var(--blotter); min-height: 56vh; display: flex; align-items: center; padding-block: 64px; }
.b-error .b-wrap { position: relative; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 48px; }
.b-error__num { font-family: var(--serif); font-style: italic; font-size: clamp(120px, 20vw, 260px); line-height: .8; color: var(--red); opacity: .9; }
.b-error__box { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.b-error__box p { color: var(--ink-soft); max-width: 40em; }

/* ---------- scroll reveal (progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .b-reveal { animation: b-up linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
        .b-reveal-l { animation: b-from-l linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
        .b-reveal-r { animation: b-from-r linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
        .b-stagger > * { animation: b-up linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
        .b-stagger > :nth-child(3n + 2) { animation-range: entry 10% cover 30%; }
        .b-stagger > :nth-child(3n) { animation-range: entry 20% cover 38%; }
        .b-board li { animation: b-from-l linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
        .b-board li:nth-child(even) { animation-name: b-from-r; }
        .b-mark { background: linear-gradient(var(--hi), var(--hi)) no-repeat 0 92% / 0% .3em; animation: b-mark linear both; animation-timeline: view(); animation-range: entry 40% cover 42%; }
        .b-drift { animation: b-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
        .b-stop::before { transform-origin: left center; animation: b-seg linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    }
    .b-in-1 { animation: b-slide .7s ease-out both; }
    .b-in-2 { animation: b-slide .7s .12s ease-out both; }
    .b-in-3 { animation: b-slide .7s .24s ease-out both; }
    .b-in-4 { animation: b-slide .7s .36s ease-out both; }
    .b-in-5 { animation: b-rise .7s .5s ease-out both; }
    .b-pen { stroke-dasharray: 1; animation: b-pen .9s 1s ease-out both; }
    .b-pop { animation: b-rise .5s 1.75s cubic-bezier(.3, 1.5, .5, 1) both; }
    .b-pop-2 { animation: b-rise .4s 2.2s ease-out both; }
    .b-wave__a { animation: b-wave 8s linear infinite; }
    .b-wave__b { animation: b-wave 13s linear infinite reverse; }
    .b-squig { animation: b-squig 1.5s linear infinite; }
}
@keyframes b-up { from { transform: translateY(60px); } to { transform: none; } }
@keyframes b-from-l { from { transform: translateX(-70px); } to { transform: none; } }
@keyframes b-from-r { from { transform: translateX(70px); } to { transform: none; } }
@keyframes b-mark { from { background-size: 0% .3em; } to { background-size: 100% .3em; } }
@keyframes b-drift { from { transform: translateY(-24px); } to { transform: translateY(24px); } }
@keyframes b-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes b-slide { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes b-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes b-wipe { from { clip-path: polygon(100% 0, 100% 0, 88% 100%, 88% 100%); } to { clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); } }
@keyframes b-pan { from { object-position: 30% 50%; } to { object-position: 70% 50%; } }
@keyframes b-stripe-in { from { transform: translateX(140%) skewX(var(--skew)); } to { transform: skewX(var(--skew)); } }
@keyframes b-pen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes b-stamp { 0% { opacity: 0; transform: rotate(-9deg) scale(1.9); } 70% { opacity: 1; transform: rotate(-9deg) scale(.94); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
@keyframes b-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes b-pulse { 0% { box-shadow: 0 0 0 0 rgba(204, 42, 29, .55); } 100% { box-shadow: 0 0 0 14px rgba(204, 42, 29, 0); } }
@keyframes b-pulse-y { 0% { box-shadow: 0 0 0 0 rgba(255, 230, 107, .6); } 100% { box-shadow: 0 0 0 14px rgba(255, 230, 107, 0); } }
@keyframes b-spin { to { transform: rotate(360deg); } }
@keyframes b-sway { 0%, 100% { transform: skewX(var(--skew)) translateX(0); } 50% { transform: skewX(var(--skew)) translateX(14px); } }
@keyframes b-nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, -12px); } }
@keyframes b-wave { to { transform: translateX(-300px); } }
@keyframes b-squig { to { transform: translateX(-30px); } }
@keyframes b-roll {
    0%, 13.33% { transform: translateY(0); }
    16.67%, 30% { transform: translateY(-14.2857%); }
    33.33%, 46.67% { transform: translateY(-28.5714%); }
    50%, 63.33% { transform: translateY(-42.8571%); }
    66.67%, 80% { transform: translateY(-57.1429%); }
    83.33%, 96.67% { transform: translateY(-71.4286%); }
    100% { transform: translateY(-85.7143%); }
}

@media (prefers-reduced-motion: reduce) {
    .b-page *, .b-page *::before, .b-page *::after, .b-header *, .b-footer * { animation: none !important; transition: none !important; }
    .b-tile__more { opacity: 1; max-height: 160px; }
    .b-rail__track, .b-strip__track { flex-wrap: wrap; width: auto; }
}

@media print {
    .b-topbar, .b-header, .b-footer, .b-tabs, .b-wave, .b-strip, .b-rail { display: none !important; }
}

@media (max-width: 700px) {
    /* Owner 2026-11-14: phone on one side, the social icons on the other. */
    .b-topbar a[href^="mailto:"] { display: none; }
    .b-topbar .b-wrap { justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
    .b-topbar__social { gap: 0 4px; flex-wrap: nowrap; }
}

/* Owner 2026-11-12: /app download page. */
.app-download { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.app-download__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; }
.app-download__help { margin-top: 4px; }
.app-download__help summary { cursor: pointer; font-weight: 700; color: var(--blue, #214e96); }
.app-download__help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.app-download__stores { display: flex; flex-wrap: wrap; gap: 12px; }
.app-download__store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #14274a; color: #fff; opacity: .85; }
.app-download__store i { font-size: 24px; }
.app-download__store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; }
.app-download__store small { font-weight: 400; font-size: 11px; opacity: .85; }
.app-download__features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.app-download__features li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; background: var(--blotter, #f4f7fc); }

/* Owner 2026-11-13: outlined slanted button on dark panels (Upcoming "See dates"); course names link to details. */
.b-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.b-btn--line:hover, .b-btn--line:focus-visible { color: #fff; box-shadow: inset 0 0 0 2px #fff, 6px 6px 0 var(--red); }
.b-board__title a { color: inherit; text-decoration: none; }
.b-board__title a:hover, .b-board__title a:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hi); }
.b-board__act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.b-upcoming { scroll-margin-top: 96px; }
.b-upcoming:target { outline: 3px solid var(--hi); outline-offset: 6px; border-radius: var(--r-b); }

/* Owner 2026-11-13: small fact badges and a slanted price tag (like the app). */
.b-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.b-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, #fff); color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.b-pill .b-icon { width: 15px; height: 15px; }
.b-pill--blue { background: color-mix(in srgb, var(--blue) 12%, #fff); color: var(--blue); }
.b-pill--amber { background: #fdf0e3; color: #9a4a08; }
.b-pill--gold { background: color-mix(in srgb, var(--hi) 35%, #fff); color: var(--ink); }
.b-tagprice { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 16px; background: var(--hi); color: var(--ink); font-weight: 800; font-size: 19px; border-radius: var(--r-s); transform: skewX(var(--skew)); box-shadow: 3px 3px 0 var(--ink); }
.b-tagprice > * { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.b-tagprice del { font-weight: 600; font-size: 13.5px; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.b-card__foot--split { align-items: center; }
.b-card__foot--split .b-more { min-height: 0; }

/* Owner 2026-11-13: bundle card ("package"). */
.b-pack { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; }
.b-pack__img { display: block; background: #fff; border-bottom: 1px solid var(--rule); }
.b-pack__img img { display: block; width: 100%; height: auto; }
.b-pack__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.b-pack .b-card__title { font-size: 21px; margin: 0; }
.b-pack__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.b-pack__list li { display: flex; gap: 8px; align-items: flex-start; }
.b-pack__list .b-icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--pass, #1d7a4c); }
.b-pack__more { padding-left: 24px; font-weight: 700; color: var(--blue); }
.b-pack__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-pack__price { display: flex; flex-direction: column; line-height: 1.1; }
.b-pack__price del { font-size: 14px; color: var(--ink-soft); }
.b-pack__price strong { font-size: 26px; font-weight: 800; }
.b-tagprice--save { font-size: 15px; padding: 5px 14px; }
.b-pack:hover .b-pack__go { translate: -3px -3px; box-shadow: 6px 6px 0 var(--red); }
.b-pack__go .b-icon { width: 16px; height: 16px; vertical-align: -3px; }
.b-pill--red { background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red); }

/* Owner 2026-11-13: blog cards. */
.b-post { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; }
.b-post__img { display: block; overflow: hidden; border-bottom: 1px solid var(--rule); background: #fff; }
.b-post__img img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.b-post:hover .b-post__img img { transform: scale(1.04); }
.b-post__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.b-post .b-card__title { font-size: 18px; margin: 0; }
.b-post__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-post__foot .b-pills { margin: 0; }
.b-pills--dark .b-pill { background: rgba(14, 27, 51, 0.3); color: #fff; }

/* Owner 2026-11-13: credential logos in full colour; the frame's corners drawn whole (border on the frame, lines from the gaps). */
.b-logos { gap: 1px; padding: 0; background: var(--rule); border: 1px solid var(--rule); }
.b-logos > * { box-shadow: none; }
.b-logos img { filter: none; opacity: 1; }
.b-logos > :hover img, .b-logos > :focus-visible img { transform: scale(1.06); }

/* Owner 2026-11-13: the italic words on both join cards read in yellow (red on blue clashed; red on red vanished). */
.b-promo .b-promo__copy .b-it { color: var(--hi); font-weight: 700; }

/* Owner 2026-11-13: one footer, yellow (talk to us) over navy (links); navy + yellow are Britishey's supporting pair. */
.b-footer__talk { background: var(--hi); color: var(--ink); }
.b-footer__talk .b-wrap { padding-block: 44px 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px 48px; }
.b-footer__say { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.6vw, 84px); line-height: 0.95; letter-spacing: -0.02em; white-space: nowrap; }
.b-footer__say .b-it { color: var(--ink); }
.b-footer__ways { display: flex; flex-wrap: wrap; gap: 18px 36px; flex: 1 1 560px; justify-content: flex-end; }
.b-footer__way { display: flex; flex-direction: column; gap: 3px; flex: 0 1 auto; min-width: 180px; padding-left: 14px; border-left: 3px solid var(--ink); }
.b-footer__k { font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.b-footer .b-footer__talk a { color: var(--ink); font-weight: 700; }
.b-footer .b-footer__talk a:hover { color: var(--red); }
.b-footer__small { font-size: 14px; opacity: .8; }
.b-footer__where { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink); }
.b-footer .b-wrap { padding-block: 52px 26px; }
.b-footer .b-footer__talk .b-wrap { padding-block: 44px 40px; }
@media (max-width: 640px) { .b-footer__say { white-space: normal; } .b-footer__ways { justify-content: flex-start; } }
.b-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .b-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .b-posts { grid-template-columns: minmax(0, 1fr); } }
.b-footer .b-footer__talk .b-wrap { flex-direction: row; align-items: flex-end; }
.b-footer__ways { flex: 1 1 520px; align-items: stretch; }
.b-footer__way { flex: 1 1 180px; }
.b-footer__cols { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 900px) { .b-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .b-footer__cols { grid-template-columns: minmax(0, 1fr); } }

/* Owner 2026-11-13: "What we do" as three promises (no pictures). */
.b-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .b-promises { grid-template-columns: minmax(0, 1fr); } }
.b-promise { --tone: var(--red); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 24px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); color: var(--ink); text-decoration: none; overflow: hidden; transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease; }
.b-promise::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tone); }
.b-promise--blue { --tone: var(--blue); }
.b-promise--ink { --tone: var(--ink); }
.b-promise:hover, .b-promise:focus-visible { translate: -3px -3px; box-shadow: 7px 7px 0 var(--tone); border-color: var(--tone); }
.b-promise__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-promise__who { display: inline-block; background: var(--tone); color: #fff; padding: 4px 14px; border-radius: var(--r-s); font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transform: skewX(var(--skew)); }
.b-promise__who > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.b-promise__n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: color-mix(in srgb, var(--tone) 22%, #fff); }
.b-promise__title { margin: 4px 0 0; font-size: 24px; line-height: 1.15; }
.b-promise__copy { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.b-promise__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--tone); }
.b-promise__go .b-icon { transition: transform .2s ease; }
.b-promise:hover .b-promise__go .b-icon { transform: translateX(6px); }
.b-footer__say .b-it { color: var(--red); }
.b-footer__talk .b-wrap { padding-block: 44px 28px; }
.b-footer .b-footer__talk .b-wrap { padding-block: 44px 28px; }
.b-footer > .b-wave { margin-top: -1px; }
.b-promise__who { white-space: nowrap; }
.b-footer__ways { flex: 1 1 380px; } .b-footer__way { flex: 1 1 170px; min-width: 170px; }

/* Owner 2026-11-13: notifications bell with the unread count in the site header. */
.b-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); color: inherit; }
.b-bell .b-icon { width: 22px; height: 22px; }
.b-bell:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.b-bell__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* Owner 2026-11-13: one course card everywhere, three to a row. */
.b-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .b-cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .b-cards3 { grid-template-columns: minmax(0, 1fr); } }
.b-ccard { display: flex; flex-direction: column; }
.b-ccard .b-card__img img { display: block; width: 100%; height: auto; }
.b-ccard .b-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-ccard .b-card__title { margin: 0; font-size: 19px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.b-ccard__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: auto; }
.b-ccard__price { margin: 0; padding-top: 16px; }
.b-ccard .b-kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-ccard__meta .b-pills { margin: 0; }
.b-ccard__actions { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule); }
.b-ccard__actions .b-btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
.b-reviews-link .b-icon { width: 16px; height: 16px; vertical-align: -3px; color: #e0a100; }

/* Owner 2026-11-13: instructor profile header: photo + name on the left, students and courses stacked on the right. */
.b-legacy .instructor-profile-intro { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.instructor-profile-stats { margin: 0 0 0 auto; display: grid; gap: 12px; min-width: 200px; }
.instructor-profile-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 12px 18px; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--blotter, #f3f6fb); }
.instructor-profile-stats dt { color: var(--ink-soft); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.instructor-profile-stats dd { margin: 0; font-weight: 800; font-size: 30px; color: var(--red); line-height: 1; }
@media (max-width: 700px) { .instructor-profile-stats { margin-left: 0; width: 100%; } }

/* Owner 2026-11-13: filters sit in one bar above the results so the cards keep three to a row. */
.b-catalogue { flex-direction: column !important; align-items: stretch; gap: 24px !important; }
.b-filters { position: static; flex: none; width: 100%; padding: 18px 20px; }
.b-filters > .b-h3 { margin: 0; font-size: 18px; }
.b-filters__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; }
.b-filters__form > div { gap: 4px; }
.b-filters__form label { font-size: 13.5px; }
.b-filters__form input, .b-filters__form select { min-height: 42px; border-width: 1.5px; font-size: 15px; }
.b-filters__form .b-btn { width: auto; min-height: 42px; }
.b-catalogue__results { flex: none; width: 100%; }

/* Owner 2026-11-13: one article card (home + blog), recent posts with picture and date badge. */
.b-posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .b-posts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .b-posts--3 { grid-template-columns: minmax(0, 1fr); } }
.b-post__body { gap: 10px; }
.b-post .b-pills { margin-top: auto; }
.b-post__read { align-self: flex-start; margin-top: 4px; }
.b-recent { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.b-recent:first-of-type { border-top: 0; }
.b-recent img, .b-recent__ph { flex: 0 0 72px; width: 72px; height: 54px; object-fit: cover; border-radius: var(--r-s); background: var(--blotter, #eef2f8); }
.b-recent__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b-recent__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.b-recent:hover .b-recent__title { color: var(--red); }
.b-recent .b-pill { align-self: flex-start; font-size: 12.5px; padding: 2px 9px; }

/* Owner 2026-11-13: one bundle card; three a row on wide screens; title at most two lines; badges on one line;
   every item listed; the View bundle button fills the space beside the price. */
.b-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .b-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .b-packs { grid-template-columns: minmax(0, 1fr); } }
.b-pack__title { font-size: 19px !important; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-pack__title a { color: inherit; text-decoration: none; }
.b-pills--line { flex-wrap: nowrap; overflow: hidden; gap: 6px; }
.b-pills--line .b-pill { white-space: nowrap; font-size: 12.5px; padding: 3px 9px; }
.b-pack__items { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.b-pack__items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.b-pack__items a, .b-pack__items li > span:nth-child(2) { color: var(--ink); font-weight: 600; text-decoration: none; }
.b-pack__items a:hover { color: var(--red); text-decoration: underline; }
.b-pack__kind { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, #fff); border-radius: 4px; padding: 2px 6px; }
.b-pack__kind--exam { color: var(--red); background: color-mix(in srgb, var(--red) 10%, #fff); }
.b-pack__each { color: var(--ink-soft); font-size: 13.5px; white-space: nowrap; }
.b-pack__foot { flex-wrap: nowrap; }
.b-pack__go { flex: 1 1 auto; min-width: 0; min-height: 46px; }
.b-pack__go > span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 420px) { .b-pack__foot { flex-wrap: wrap; } .b-pack__go { flex-basis: 100%; } }
.b-pack__foot { flex-wrap: wrap; align-items: flex-end; }
.b-tagprice--save { white-space: nowrap; }
.b-pack__go { width: 100%; flex: none; margin-top: 2px; }

/* Owner 2026-11-13: menus show categories only; sub-categories open in a panel beside the category on hover;
   a lighter shadow. */
.b-dd__menu { box-shadow: 4px 4px 0 var(--red); }
.b-dd__menu .course-nav-tree { border-bottom: 1px solid var(--rule); margin-bottom: 6px; padding-bottom: 6px; }
.course-nav-item { position: relative; }
.course-nav-parent { display: flex !important; align-items: center; justify-content: space-between; gap: 18px; }
.course-nav-parent::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); flex: 0 0 auto; }
.course-nav-flyout { position: absolute; top: -10px; left: calc(100% + 8px); min-width: 230px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 4px 4px 0 var(--red); padding: 8px; display: none; flex-direction: column; z-index: 60; }
.course-nav-flyout::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
.course-nav-item:hover > .course-nav-flyout, .course-nav-item:focus-within > .course-nav-flyout { display: flex; animation: b-drop .16s ease-out; }
.course-nav-item:hover > .course-nav-parent { background: var(--blotter); }
.b-dd__extra { font-size: 14.5px; color: var(--ink-soft) !important; }
@media (max-width: 1080px) {
    .course-nav-flyout { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 4px 14px; min-width: 0; animation: none; }
    .course-nav-flyout::before, .course-nav-parent::after { display: none; }
}

/* Owner 2026-11-13: library in the site's design. */
.b-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .b-books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .b-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.b-book { display: flex; flex-direction: column; overflow: hidden; }
.b-book__cover { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--blotter, #eef2f8); border-bottom: 1px solid var(--rule); overflow: hidden; }
.b-book__cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.b-book:hover .b-book__cover img { transform: scale(1.03); }
.b-book__cover .library-book-jacket { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--ink); color: #fff; }
.library-jacket-brand { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--hi); }
.library-jacket-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.library-jacket-foot { font-size: 12px; opacity: .8; }
.b-book__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.b-book__title { font-size: 17px !important; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-book__title a { color: inherit; text-decoration: none; }
.b-book__prices { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 4px; }
.b-book__print { font-size: 13px; color: var(--ink-soft); }
.b-tagprice--free { background: #1d7a4c; color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.b-book__go { width: 100%; margin-top: 6px; }
.b-library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.b-library-head .b-h2 { margin: 0; }
.b-library-free { text-decoration: none; }

/* Owner 2026-11-13: book page and reading page. */
.b-bookpage .b-wrap { gap: 26px; }
.b-bookpage__grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: start; }
@media (max-width: 1000px) { .b-bookpage__grid { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } .b-bookpage__buy { grid-column: 1 / -1; } }
@media (max-width: 620px) { .b-bookpage__grid { grid-template-columns: minmax(0, 1fr); } .b-bookpage__cover { max-width: 240px; } }
.b-bookpage__cover { aspect-ratio: 3 / 4; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; box-shadow: 8px 8px 0 var(--red); }
.b-bookpage__cover img { width: 100%; height: 100%; object-fit: contain; }
.b-bookpage__cover .library-book-jacket { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: var(--ink); color: #fff; }
.b-bookpage__copy { display: flex; flex-direction: column; gap: 14px; }
.b-bookpage__copy .b-h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); }
.b-bookpage__buy { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.b-bookpage__buy .b-h3 { margin: 0; }
.b-copy { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-m); background: #fff; }
.b-copy__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-copy__head > span:first-child { display: flex; flex-direction: column; }
.b-copy__head small { color: var(--ink-soft); }
.b-copy__note { margin: 0; font-size: 14px; }
.b-copy__main { width: 100%; }
.b-copy form { margin: 0; }
.b-bookpage__about { padding: 24px 26px; }
.b-reader { display: flex; flex-direction: column; height: 80vh; height: 80dvh; min-height: 480px; overflow: hidden; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: 6px 6px 0 var(--ink); }
.b-reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--ink); color: #fff; }
.b-reader__bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-reader__bar .b-btn { background: var(--red); }
.b-reader iframe { display: block; flex: 1; width: 100%; min-height: 0; border: 0; }
.b-reader.is-focused { position: fixed; inset: 0; width: 100%; height: 100%; min-height: 0; z-index: 100000; border: 0; border-radius: 0; box-shadow: none; }
body.library-focus-open { overflow: hidden; }
.b-reader__tip { font-size: 14px; }
.b-book__cover, .b-book__cover:hover { text-decoration: none; }

/* Owner 2026-11-13: the student area: one band with tabs above every page (no side list). */
.student-account-layout { display: flex !important; flex-direction: column; gap: 22px; grid-template-columns: none !important; }
.b-me { display: flex; flex-direction: column; gap: 0; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--rule); background: #fff; box-shadow: 0 8px 24px rgba(20, 39, 74, 0.06); }
.b-me__band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; background: var(--ink); background-image: linear-gradient(115deg, transparent 72%, var(--red) 72% 80%, var(--blue) 80% 83%, transparent 83%); color: #fff; }
.b-me__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.b-me__who > div { display: flex; flex-direction: column; min-width: 0; }
.b-me__hello { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hi); }
.b-me__who strong { font-size: 21px; line-height: 1.2; }
.b-me__mail { font-size: 13.5px; color: var(--on-ink); overflow-wrap: anywhere; }
.b-me__photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hi); flex: 0 0 auto; }
.b-me__photo--none { display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 24px; }
.b-me__tabs { display: flex; gap: 6px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); }
.b-me__tab { flex: 0 0 auto; padding: 10px 18px; margin-bottom: -1px; color: var(--ink); font-weight: 700; text-decoration: none; border-radius: var(--r-s) var(--r-s) 0 0; transform: skewX(var(--skew)); transition: background .2s ease, color .2s ease; }
.b-me__tab > span { display: inline-flex; align-items: center; gap: 6px; transform: skewX(calc(var(--skew) * -1)); }
.b-me__tab:hover { background: var(--blotter); color: var(--ink); }
.b-me__tab.is-open { background: var(--ink); color: #fff; box-shadow: 3px 0 0 var(--red); }
.b-me__tab em { font-style: normal; background: var(--red); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11.5px; }
.b-me__sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.b-me__sub a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: background .2s ease, border-color .2s ease; }
.b-me__sub a:hover { border-color: var(--ink); }
.b-me__sub a[aria-current="page"] { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.b-mepage { padding-top: 32px; }
.b-overview { display: flex; flex-direction: column; gap: 22px; }
.b-overview__head .b-hand { margin: 0; font-size: 26px; color: var(--red); transform: rotate(-2deg); display: inline-block; }
.b-overview__head .b-h2 { margin: 0; }
.b-overview__stats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.b-overview__stats a { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); color: var(--ink); text-decoration: none; transition: translate .2s ease, box-shadow .2s ease; }
.b-overview__stats a:hover { translate: -2px -2px; box-shadow: 5px 5px 0 var(--red); }
.b-overview__stats strong { font-size: 32px; color: var(--red); line-height: 1; }
.b-continue { display: flex; align-items: center; gap: 18px; padding: 14px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.b-continue img { width: 200px; max-width: 100%; height: auto; border-radius: var(--r-s); }
.b-continue__body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.b-continue__body strong { font-size: 20px; line-height: 1.25; }
.b-continue__bar { display: block; height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.b-continue__bar > span { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.b-mini { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.b-mini a { display: grid; grid-template-columns: minmax(0, 1fr) 140px 46px; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 600; }
.b-mini em { font-style: normal; color: var(--ink-soft); text-align: right; }
.b-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.b-shortcuts a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color .2s ease, translate .2s ease; }
.b-shortcuts a:hover { border-color: var(--ink); translate: 0 -2px; }
.b-shortcuts .b-icon { width: 20px; height: 20px; color: var(--red); }
@media (max-width: 620px) { .b-mini a { grid-template-columns: minmax(0, 1fr) 46px; } .b-mini .b-continue__bar { display: none; } }
.b-me__staff { display: flex; gap: 10px; flex-wrap: wrap; }

/* Owner 2026-11-13: My account header lives in the page's top band; tabs load the part under it in place. */
.b-mehero .b-wrap { gap: 18px; padding-block: clamp(28px, 4vw, 48px) clamp(26px, 3vw, 36px); }
.b-mehero__who { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; }
.b-mehero__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--hi); box-shadow: 6px 6px 0 var(--red); flex: 0 0 auto; background: #fff; }
.b-mehero__photo--none { display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 40px; box-shadow: 6px 6px 0 var(--blue); }
.b-mehero__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 260px; }
.b-pagehead.b-mehero h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; margin: 2px 0 0; overflow-wrap: anywhere; }
.b-mehero__mail { color: var(--on-ink); font-size: 16px; overflow-wrap: anywhere; }
.b-mehero__staff { display: flex; flex-wrap: wrap; gap: 10px; }
.b-mehero__nav { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.b-mehero__tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 8px 8px 4px; margin: -4px -8px -8px -4px; }
.b-mehero__tabs::-webkit-scrollbar { display: none; }
.b-mehero__tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: var(--r-b); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transform: skewX(var(--skew)); transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.b-mehero__tab > span { display: inline-flex; align-items: center; gap: 8px; transform: skewX(calc(var(--skew) * -1)); }
.b-mehero__tab:hover, .b-mehero__tab:focus-visible { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.b-mehero__tab.is-open { background: var(--hi); border-color: var(--hi); color: var(--ink); box-shadow: 4px 4px 0 var(--red); }
.b-mehero__tab em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; line-height: 1; }
.b-mehero__sub { display: flex; gap: 6px 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.b-mehero__sub::-webkit-scrollbar { display: none; }
.b-mehero__sub a { flex: 0 0 auto; color: var(--on-ink); font-weight: 700; font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; transition: color .2s ease, border-color .2s ease; }
.b-mehero__sub a:hover, .b-mehero__sub a:focus-visible { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.b-mehero__sub a[aria-current="page"] { color: #fff; border-bottom-color: var(--hi); }
@media (max-width: 640px) {
    .b-mehero__who { align-items: center; gap: 14px 16px; }
    .b-mehero__photo { width: 64px; height: 64px; box-shadow: 4px 4px 0 var(--red); }
    .b-mehero__photo--none { font-size: 28px; box-shadow: 4px 4px 0 var(--blue); }
    .b-mehero__id { flex: 1 1 0; }
    .b-mehero__staff { flex: 1 1 100%; }
    .b-mehero__staff .b-btn { flex: 1 1 0; justify-content: center; }
    .b-mehero__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0 6px 0 0; }
    .b-mehero__tab { justify-content: center; min-height: 44px; padding: 0 12px; font-size: 15px; }
}

.b-mepanel { position: relative; min-height: 260px; outline: none; }
.b-mepanel > * { transition: opacity .25s ease, filter .25s ease; }
.b-mepanel.is-loading > :not(.b-mepanel__loader) { opacity: .28; filter: blur(1.5px); pointer-events: none; }
.b-mepanel__loader { position: absolute; z-index: 5; left: 50%; top: 56px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 30px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(20, 39, 74, .16); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--ink-soft, #2c3f63); animation: b-mepanel-in .25s ease both; }
@keyframes b-mepanel-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.b-spin { position: relative; width: 54px; height: 54px; display: block; }
.b-spin i { position: absolute; border-radius: 50%; border: 5px solid transparent; }
.b-spin .b-spin__track { inset: 0; border-color: rgba(20, 39, 74, .08); }
.b-spin .b-spin__red { inset: 0; border-top-color: var(--red); border-right-color: var(--red); animation: b-spin-turn 1.2s cubic-bezier(.5, .1, .5, .9) infinite; }
.b-spin .b-spin__blue { inset: 9px; border-bottom-color: var(--blue); border-left-color: var(--blue); animation: b-spin-turn .9s linear infinite reverse; }
.b-spin .b-spin__sun { inset: 19px; background: var(--hi); border: 1px solid rgba(0, 0, 0, .12); animation: b-spin-breathe 1.2s ease-in-out infinite; }
.b-spin__dots i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; animation: b-spin-dot 1.2s ease-in-out infinite; }
.b-spin__dots i:nth-child(2) { animation-delay: .18s; }
.b-spin__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes b-spin-turn { to { transform: rotate(360deg); } }
@keyframes b-spin-breathe { 50% { transform: scale(1.35); } }
@keyframes b-spin-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .b-spin i, .b-spin__dots i, .b-mepanel__loader { animation: none !important; } }

/* Owner 2026-11-13: a lighter, friendlier student area (My learning, Inbox, Payments, Settings). Scoped with the
   page id so it wins over the older per-page sheets that load after this one. */
#main-content .student-account-layout { gap: 0; }
#main-content .student-account-layout .student-panel { border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(20, 39, 74, 0.07); padding: clamp(18px, 3vw, 34px); margin-block: 8px 48px; }
#main-content .student-account-layout .student-panel > h2:first-child { border-bottom: 0; padding-bottom: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
#main-content .student-account-layout .student-panel > h2:first-child::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--red) 0 60%, var(--blue) 60% 80%, var(--hi) 80%); }
#main-content .student-page-heading, #main-content .account-section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; background: none; border: 0; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--rule); }
#main-content .student-page-heading h2, #main-content .account-section-heading h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 4px 0 2px; }
#main-content .student-page-heading__eyebrow, #main-content .account-section-eyebrow { display: inline-flex; background: var(--red); color: #fff; padding: 3px 12px; border-radius: var(--r-s); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transform: skewX(var(--skew)); }
#main-content .student-page-heading__count { display: inline-flex; flex-direction: column; align-items: center; min-width: 92px; padding: 10px 16px; border: 0; border-radius: var(--r-b); background: var(--hi); color: var(--ink); box-shadow: 5px 5px 0 var(--red); transform: skewX(var(--skew)); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#main-content .student-page-heading__count strong { font-size: 30px; line-height: 1; letter-spacing: 0; }

/* Buttons inside the student area take the Britishey slanted shape: the background leans, the words stay upright. */
#main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action), #main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action) { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 22px; border: 0; border-radius: 0; background: none; font-weight: 700; font-size: 15px; text-decoration: none; transform: none; box-shadow: none; }
#main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action)::before, #main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-b); transform: skewX(var(--skew)); transition: box-shadow .2s ease, background .2s ease; }
#main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action) { color: #fff; }
#main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action)::before { background: var(--red); }
#main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action):hover, #main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action):focus-visible { color: #fff; background: none; }
#main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action):hover::before, #main-content .student-account-layout :is(.student-course-card__action, .commercial-action.is-primary, .messages-button.is-primary, .student-empty-state .student-action):focus-visible::before { box-shadow: 5px 5px 0 var(--ink); }
#main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action) { color: var(--ink); }
#main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action)::before { background: #fff; border: 2px solid var(--ink); }
#main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action):hover, #main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action):focus-visible { color: var(--ink); background: none; }
#main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action):hover::before, #main-content .student-account-layout :is(.account-action-button, .messages-button.is-secondary, .buyer-payment-card .student-action, .buyer-payment-tabs .student-action):focus-visible::before { box-shadow: 4px 4px 0 var(--red); }
#main-content .student-account-layout .account-action-button.is-danger { color: var(--red); }
#main-content .student-account-layout .account-action-button.is-danger::before { border-color: var(--red); }
#main-content .student-account-layout .buyer-payment-tabs .student-action[aria-current="page"]::before { background: var(--hi); border-color: var(--hi); box-shadow: 4px 4px 0 var(--red); }

/* My courses: cards in two columns, picture on top, red offset shadow like the app. */
#main-content .student-course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
#main-content .student-course-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 7px 7px 0 var(--red); transition: transform .25s ease, box-shadow .25s ease; margin: 0; }
#main-content .student-course-card:hover { transform: translate(-2px, -3px); box-shadow: 10px 11px 0 var(--red); }
#main-content .student-course-card__media { width: 100%; aspect-ratio: 16 / 9; min-height: 0; flex: 0 0 auto; background: var(--blotter); }
#main-content .student-course-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
#main-content .student-course-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 40px; color: var(--blue); background: repeating-linear-gradient(115deg, var(--blotter) 0 18px, #e9eff9 18px 36px); }
#main-content .student-course-card__content { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; flex: 1 1 auto; }
#main-content .student-course-card__label { color: var(--red); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#main-content .student-course-card h3 { font-size: 20px; line-height: 1.25; margin: 4px 0 0; }
#main-content .student-course-card h3 a { color: var(--ink); text-decoration: none; }
#main-content .student-course-card h3 a:hover { color: var(--red); }
#main-content .student-course-card__stats { display: flex; flex-wrap: wrap; gap: 8px; }
#main-content .student-course-card__stats span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--blotter); color: var(--blue); font-size: 13px; font-weight: 700; }
#main-content .student-course-card__progress progress { width: 100%; height: 10px; border: 0; border-radius: 6px; overflow: hidden; background: #e3ecf9; appearance: none; -webkit-appearance: none; }
#main-content .student-course-card__progress progress::-webkit-progress-bar { background: #e3ecf9; border-radius: 6px; }
#main-content .student-course-card__progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--red)); border-radius: 6px; }
#main-content .student-course-card__progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--red)); border-radius: 6px; }
#main-content .student-course-card__progress-copy { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
#main-content .student-course-card__footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px dashed var(--rule); }

/* Notifications: soft cards; unread ones carry a yellow marker. */
#main-content .account-notification-list { display: flex; flex-direction: column; gap: 12px; }
#main-content .account-notification-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; box-shadow: none; transition: box-shadow .2s ease; }
#main-content .account-notification-item:hover { box-shadow: 0 10px 28px rgba(20, 39, 74, .08); }
#main-content .account-notification-item.is-unread { border-color: var(--hi); background: linear-gradient(90deg, #fff9d6, #fff 60%); box-shadow: inset 5px 0 0 var(--hi); }
#main-content .account-notification-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--hi); transform: skewX(var(--skew)); }
#main-content .account-notification-icon i { transform: skewX(calc(var(--skew) * -1)); }
#main-content .account-notification-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
#main-content .account-notification-title-row h3 { font-size: 17px; margin: 0; }
#main-content .account-notification-title-row time { font-size: 12.5px; color: var(--muted, #5b6b86); font-weight: 700; }

/* Messages: chat bubbles, your own on the right in navy. */
#main-content .messages-workspace { border: 0; gap: 0; }
#main-content .messages-entry { display: flex; gap: 10px; align-items: flex-end; border: 0; padding: 6px 0; }
#main-content .messages-entry .messages-bubble { max-width: min(78%, 560px); padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--blotter); border: 1px solid var(--rule); }
#main-content .messages-entry.is-own { flex-direction: row-reverse; }
#main-content .messages-entry.is-own .messages-bubble { border-radius: 16px 16px 4px 16px; background: var(--ink); border-color: var(--ink); color: #fff; }
#main-content .messages-entry.is-own .messages-bubble :is(h3, time, p) { color: #fff; }
#main-content .messages-entry .messages-bubble header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
#main-content .messages-entry .messages-bubble h3 { font-size: 13.5px; margin: 0; }
#main-content .messages-entry .messages-bubble time { font-size: 11.5px; opacity: .75; }
#main-content .messages-entry .messages-body { margin: 0; }
#main-content .messages-initial { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; }
#main-content .messages-entry.is-own .messages-initial { background: var(--blue); }

/* Payments: one tidy row per payment with a coloured status. */
#main-content .buyer-payment-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
#main-content .buyer-payment-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; margin: 0 0 12px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; box-shadow: inset 5px 0 0 var(--rule); }
#main-content .buyer-payment-card[data-status="paid"] { box-shadow: inset 5px 0 0 #0f7a4f; }
#main-content .buyer-payment-card[data-status="pending"] { box-shadow: inset 5px 0 0 #e0a100; }
#main-content .buyer-payment-card :is(h3, p) { margin: 2px 0; }
#main-content .buyer-payment-card h3 { font-size: 18px; }
#main-content .buyer-payment-card p:last-child { font-size: 12.5px; color: var(--muted, #5b6b86); letter-spacing: .02em; }
#main-content .buyer-payment-card__status { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--blotter); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
#main-content .buyer-payment-card[data-status="paid"] .buyer-payment-card__status { background: #e3f4ec; color: #0f7a4f; }
#main-content .buyer-payment-card[data-status="pending"] .buyer-payment-card__status { background: #fff3d1; color: #8a5a00; }

/* Settings forms: calm fields with a clear focus ring. */
#main-content .student-account-layout :is(input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select) { border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
#main-content .student-account-layout :is(input, textarea, select):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 78, 150, .15); }
#main-content .profile-avatar { background: var(--hi); color: var(--ink); box-shadow: 4px 4px 0 var(--red); }
.b-upcoming__back { margin: 0 0 24px; }

/* Owner 2026-11-13: Sign out (and staff buttons) on the right of the account header; sub-pages in a side list. */
.b-mehero__side { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.b-mehero__out { margin: 0; }
.b-mehero__out button { cursor: pointer; font: inherit; font-weight: 700; border: 0; }
.b-mehero__out .b-btn > span { display: inline-flex; align-items: center; gap: 8px; }
.b-mehero__out svg { width: 18px; height: 18px; }
#main-content .student-account-layout:has(> .b-meside) { display: grid !important; grid-template-columns: 250px minmax(0, 1fr) !important; align-items: start; gap: 28px; }
.b-meside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 16px; border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(20, 39, 74, 0.07); }
.b-meside__title { padding: 4px 12px 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.b-meside a { position: relative; display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 15.5px; text-decoration: none; transition: background .2s ease, color .2s ease, padding .2s ease; }
.b-meside a:hover, .b-meside a:focus-visible { background: var(--blotter); color: var(--ink); padding-inline-start: 18px; }
.b-meside a[aria-current="page"] { background: var(--ink); color: #fff; padding-inline-start: 18px; box-shadow: 4px 4px 0 var(--red); }
.b-meside a[aria-current="page"]::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--hi); }
@media (max-width: 900px) {
    #main-content .student-account-layout:has(> .b-meside) { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
    .b-meside { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 8px; border-radius: 14px; gap: 6px; }
    .b-meside::-webkit-scrollbar { display: none; }
    .b-meside__title { display: none; }
    .b-meside a { flex: 0 0 auto; min-height: 40px; font-size: 14.5px; }
    .b-meside a[aria-current="page"]::before { display: none; }
}
@media (max-width: 640px) {
    .b-mehero__side { margin-inline-start: 0; flex: 1 1 100%; justify-content: flex-start; }
    .b-mehero__out { margin-inline-start: auto; }
}

/* Owner 2026-11-13: purchase history as tidy rows: what, when, how, amount, invoice. */
#main-content .b-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#main-content .b-history__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
#main-content .b-history__row:hover { box-shadow: 0 10px 28px rgba(20, 39, 74, .08); transform: translateY(-1px); }
#main-content .b-history__type { justify-self: start; padding: 4px 12px; border-radius: var(--r-s); background: var(--ink); color: var(--hi); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: skewX(var(--skew)); }
#main-content .b-history__what h3 { margin: 0; font-size: 17px; line-height: 1.3; }
#main-content .b-history__what p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted, #5b6b86); }
#main-content .b-history__status { font-weight: 700; color: #0f7a4f; }
#main-content .b-history__row:not([data-status="paid"]) .b-history__status { color: #8a5a00; }
#main-content .b-history__amount { font-size: 18px; white-space: nowrap; }
#main-content .b-history__notice { padding: 12px 16px; border-radius: 12px; background: #fff3d1; color: #8a5a00; font-weight: 700; }
#main-content .student-account-layout .b-history__open { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border: 0; background: none; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
#main-content .student-account-layout .b-history__open::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 2px solid var(--ink); border-radius: var(--r-b); background: #fff; transform: skewX(var(--skew)); transition: box-shadow .2s ease; }
#main-content .student-account-layout .b-history__open:hover::before { box-shadow: 4px 4px 0 var(--red); }
@media (max-width: 720px) {
    #main-content .b-history__row { grid-template-columns: minmax(0, 1fr) auto; }
    #main-content .b-history__type { grid-column: 1 / -1; }
    #main-content .b-history__open { grid-column: 1 / -1; justify-self: start; }
}
#main-content .buyer-payment-earlier { margin: 28px 0 12px; font-size: 18px; }

/* Owner 2026-11-13: footer Contact us (phone, email, social icons) and a clearer App Pump credit. */
.b-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.b-footer .b-footer__social a, .b-talk .b-footer__social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--hi); transition: transform .2s ease, background .2s ease; }
.b-footer .b-footer__social a:hover, .b-talk .b-footer__social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); text-decoration: none; }
.b-footer__social svg { width: 18px; height: 18px; }
.b-footer__credit { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b-footer .b-footer__credit a { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: var(--r-b); background: var(--hi); color: var(--ink); font-weight: 800; letter-spacing: .02em; transform: skewX(var(--skew)); box-shadow: 3px 3px 0 var(--red); transition: box-shadow .2s ease; }
.b-footer .b-footer__credit a:hover { color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 var(--red); }

/* Owner 2026-11-13: header hover panels — the bell's latest unread notifications, and a quick Sign out. */
.b-hpop { position: relative; display: inline-flex; align-items: center; }
.b-hpop > a:not(.b-bell) { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.b-hpop__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px; padding: 8px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(20, 39, 74, .18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; font-weight: 400; }
.b-hpop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.b-hpop:hover > .b-hpop__panel, .b-hpop:focus-within > .b-hpop__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.b-hpop__panel--wide { width: min(360px, 92vw); padding: 0; overflow: hidden; }
.b-hpop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--ink); color: #fff; }
.b-hpop__pill { padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.b-hpop__muted { font-size: 13px; color: var(--on-ink); }
.b-hpop__list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.b-hpop__list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; line-height: 1.35; }
.b-hpop__list li + li { border-top: 1px solid var(--blotter); }
.b-hpop__list li.is-unread { background: #fff9d6; box-shadow: inset 4px 0 0 var(--hi); }
.b-hpop__list strong { font-size: 14.5px; color: var(--ink); }
.b-hpop__list span { font-size: 13.5px; color: var(--muted, #5b6b86); }
.b-hpop__list time { font-size: 12px; font-weight: 700; color: var(--blue); }
.b-hpop__empty { margin: 0; padding: 18px 16px; color: var(--muted, #5b6b86); font-size: 14px; }
.b-header .b-hpop__all { display: block; padding: 12px 16px; border-top: 1px solid var(--rule); text-align: center; font-weight: 800; color: var(--red); text-decoration: none; }
.b-header .b-hpop__all:hover { background: var(--blotter); color: var(--red); }
.b-hpop__panel form { margin: 0; }
.b-header .b-hpop__item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 15px var(--sans); text-decoration: none; cursor: pointer; text-align: left; }
.b-header .b-hpop__item:hover { background: var(--blotter); color: var(--ink); }
.b-header .b-hpop__out { color: var(--red); }
.b-header .b-hpop__out:hover { color: var(--red); }
.b-hpop__out svg { width: 18px; height: 18px; }
@media (max-width: 1080px), (hover: none) { .b-hpop__panel { display: none; } }

/* Owner 2026-11-13: receipts and invoices — readable tables (no navy cells), a clear way back, a calmer receipt. */
main :is(.inv-table, .invoice-table, .purchase-table) th { background: none; color: inherit; }
main :is(.inv-table, .invoice-table) thead th { background: var(--blotter); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding-block: 12px; }
main :is(.inv-table, .invoice-table) thead th:first-child { padding-inline-start: 12px; border-radius: 8px 0 0 8px; }
main :is(.inv-table, .invoice-table) thead th:last-child { padding-inline-end: 12px; border-radius: 0 8px 8px 0; }
main :is(.inv-table, .invoice-table) tbody th { font-weight: 700; color: var(--ink); }
main :is(.inv-table, .invoice-table) tbody th :is(small, .inv-course-cat) { color: var(--muted, #5b6b86); font-weight: 400; }
.b-backlink { position: relative; isolation: isolate; display: inline-flex; align-self: flex-start; width: max-content; max-width: 100%; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 18px 8px 14px; color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.b-backlink::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-b); background: var(--ink); transform: skewX(var(--skew)); box-shadow: 3px 3px 0 var(--red); transition: box-shadow .2s ease; }
.b-backlink:hover, .b-backlink:focus-visible { color: #fff; }
.b-backlink:hover::before, .b-backlink:focus-visible::before { box-shadow: 5px 5px 0 var(--red); }
.inv-wrapper > .b-backlink { align-self: flex-start; }
#main-content .buyer-payments-page .buyer-payment-details { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 22px 0; }
#main-content .buyer-payments-page .buyer-payment-details > div { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--blotter); }
#main-content .buyer-payments-page .buyer-payment-details dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
#main-content .buyer-payments-page .buyer-payment-details dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; font-size: 15px; }
#main-content .buyer-payments-page .buyer-payment-total { position: relative; isolation: isolate; display: inline-flex; align-self: flex-start; width: max-content; max-width: 100%; align-items: center; gap: 10px; padding: 12px 24px; color: var(--ink); font-size: 20px; }
#main-content .buyer-payments-page .buyer-payment-total::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-b); background: var(--hi); box-shadow: 5px 5px 0 var(--red); transform: skewX(var(--skew)); }
#main-content .buyer-payments-page .buyer-payment-notice { padding: 12px 16px; border-radius: 12px; background: #fff3d1; color: #8a5a00; font-weight: 700; }
@media print { .b-backlink { display: none !important; } }

/* Owner 2026-11-13: show / hide password button inside password fields. */
.b-pw { position: relative; display: block; width: 100%; }
.b-pw > input { width: 100%; padding-right: 52px !important; }
.b-pw__toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft, #2c3f63); cursor: pointer; }
.b-pw__toggle:hover { background: var(--blotter); color: var(--ink); }
.b-pw__toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }

/* Owner 2026-11-14: My account on phones — no sideways scrolling; items fill the width and wrap. */
@media (max-width: 900px) {
    .b-meside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); overflow: visible; gap: 6px; }
    .b-meside a { justify-content: center; text-align: center; padding: 0 10px; min-height: 44px; line-height: 1.2; }
    .b-meside a:hover, .b-meside a:focus-visible, .b-meside a[aria-current="page"] { padding-inline-start: 10px; }
    #main-content .buyer-payment-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 8px; }
    #main-content .buyer-payment-tabs .student-action { justify-content: center; }
    #main-content .student-account-layout .student-panel { padding: 16px; border-radius: 14px; }
}
/* Messages: on phones, the list or the open conversation, full width; small, simple conversation rows. */
.messages-back { display: none; }
@media (max-width: 900px) {
    #main-content .messages-workspace { display: block !important; }
    #main-content .messages-workspace.has-selection .messages-conversations { display: none !important; }
    #main-content .messages-workspace:not(.has-selection) .messages-pane { display: none !important; }
    #main-content .messages-workspace .messages-pane, #main-content .messages-workspace .messages-conversations { width: 100% !important; max-width: none !important; border: 0 !important; padding: 0 !important; }
    .messages-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-weight: 800; color: var(--ink); text-decoration: none; }
    #main-content .messages-help { display: none; }
    #main-content .messages-entry .messages-bubble { max-width: 86%; }
    #main-content .messages-reply textarea { min-height: 90px; }
}

/* Owner 2026-11-14: a shorter footer on phones — each group's links side by side with separators. */
@media (max-width: 720px) {
    .b-footer__cols { gap: 22px; }
    .b-footer__brand { flex-basis: 100%; }
    .b-footer__col { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 0; }
    .b-footer__col h2 { flex: 1 1 100%; margin-bottom: 2px; }
    .b-footer__col a { font-size: 14.5px; }
    .b-footer__col a:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--hi); opacity: .8; }
    .b-footer__talk .b-wrap { gap: 18px; }
    .b-footer__say { font-size: 40px; white-space: normal; }
    .b-footer__ways { gap: 14px; }
    .b-footer__way { min-width: 0; flex: 1 1 100%; }
    .b-footer__legal { font-size: 12.5px; }
}
/* Owner 2026-11-14: "Authorised centre" above the three logos, all three in one row on phones. */
@media (max-width: 720px) {
    .b-hero__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .b-hero__trust > span { grid-column: 1 / -1; }
    .b-hero__trust img { width: 100%; height: 42px; padding: 4px 6px; }
}
/* Owner 2026-11-14: Upcoming on phones — small date with the name beside it; both buttons full width below. */
@media (max-width: 700px) {
    .b-board li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px 14px; align-items: start; padding: 16px 0; }
    .b-board__dot { display: none; }
    .b-board__date { width: auto; column-gap: 6px; }
    .b-board__day { font-size: 30px; }
    .b-board__mon { font-size: 12px; }
    .b-board__from { font-size: 9.5px; letter-spacing: .06em; }
    .b-board__year { font-size: 12px; }
    .b-board__what { gap: 6px; }
    .b-board__title { font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .b-board__meta { font-size: 13px; gap: 6px; }
    .b-board__act { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; justify-content: stretch; }
    .b-board__act .b-btn { justify-content: center; width: 100%; }
}
/* Owner 2026-11-14: identity places on phones — Cairo top-left, London middle, Online bottom-right, one wave. */
.b-places__path { display: none; }
@media (max-width: 700px) {
    .b-places__row { position: relative; display: block; height: 228px; }
    .b-places__row > svg:not(.b-places__path) { display: none; }
    .b-places .b-places__path { display: block; position: absolute; left: 8px; top: 6px; width: calc(100% - 16px); height: calc(100% - 28px); flex: none; }
    .b-place { position: absolute; gap: 10px; }
    .b-place:nth-of-type(1) { left: 0; top: 0; }
    .b-place:nth-of-type(2) { left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .b-place:nth-of-type(3) { right: 0; bottom: 0; flex-direction: row-reverse; text-align: right; }
    .b-place__name { font-size: 22px; }
    .b-place__what { font-size: 10.5px; }
    .b-place > span:last-child { background: var(--ink); padding: 2px 6px; border-radius: 6px; }
}
.b-post__meta { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
/* Owner 2026-11-16: the date and the views each stay on one line (smaller text, less side padding). */
.b-post__meta .b-pill { white-space: nowrap; font-size: 12.5px; padding: 3px 9px; gap: 5px; }
.b-post__meta .b-pill .b-icon { width: 14px; height: 14px; }
.b-post__body { padding-inline: 14px; }
.b-post__foot { gap: 8px; flex-wrap: wrap; }
.b-post__foot .b-post__read { padding-inline: 14px; font-size: 14.5px; }
.b-post__foot .b-post__read { flex: 0 0 auto; }

/* Owner 2026-11-14: bundle page in the site's design (desktop and phone). */
.b-bundlehead__in { display: grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 44px; align-items: center; }
.b-bundlehead__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.b-pagehead.b-bundlehead h1 { font-size: clamp(30px, 4vw, 54px); }
.b-bundlehead__pills .b-pill { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.b-bundlehead__save { align-self: flex-start; }
.b-bundlehead .bundle-creator { color: var(--hi); font-weight: 700; }
.b-bundlehead__img { position: relative; z-index: 1; }
.b-bundlehead__img img { width: 100%; height: auto; display: block; border-radius: 16px; border: 4px solid #fff; box-shadow: 10px 10px 0 var(--red); }
.b-bundlebody { padding-top: 24px !important; }
.b-bundlepage .bundle-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.b-bundlepage .bundle-detail-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.b-bundlepage .bundle-detail-panel { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 14px 40px rgba(20, 39, 74, .07); }
.b-bundlepage .bundle-detail-panel h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 4px 0 8px; }
.b-bundlepage .bundle-offer-eyebrow { display: inline-flex; padding: 3px 12px; border-radius: var(--r-s); background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transform: skewX(var(--skew)); }
.b-bundlepage .bundle-content-group { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.b-bundlepage .bundle-group-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-bundlepage .bundle-group-header h3 { margin: 0; font-size: 19px; }
.b-bundlepage .bundle-group-header h3 small { font-size: 14px; font-weight: 700; color: var(--red); }
.b-bundlepage .bundle-group-count { padding: 3px 12px; border-radius: 999px; background: var(--blotter); color: var(--blue); font-weight: 800; font-size: 13px; }
.b-bundlepage .bundle-course-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; box-shadow: 6px 6px 0 var(--red); }
.b-bundlepage .bundle-course-card__media { display: block; border-radius: 10px; overflow: hidden; background: var(--blotter); aspect-ratio: 16 / 10; }
.b-bundlepage .bundle-course-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-bundlepage .bundle-course-card__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.b-bundlepage .bundle-course-card h4 { margin: 0; font-size: 18px; line-height: 1.3; }
.b-bundlepage .bundle-course-card h4 a { color: var(--ink); text-decoration: none; }
.b-bundlepage .bundle-course-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.b-bundlepage .bundle-course-facts > div { display: inline-flex; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--blotter); font-size: 12.5px; }
.b-bundlepage .bundle-course-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* badges show the value only */
.b-bundlepage .bundle-course-facts dd { margin: 0; font-weight: 700; color: var(--blue); }
.b-bundlepage .bundle-course-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--muted, #5b6b86); }
.b-bundlepage .bundle-course-price strong { font-size: 18px; color: var(--ink); }
.b-bundlepage .bundle-course-card .b-btn { align-self: flex-start; }
.b-bundlepage .bundle-exam-sections { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.b-bundlepage .bundle-exam-sections li { padding: 3px 10px; border-radius: 999px; background: var(--blotter); font-size: 12.5px; font-weight: 700; color: var(--blue); }
.b-bundlepage .bundle-detail-sidebar { position: sticky; top: 96px; }
.b-bundlepage .bundle-purchase-panel { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.b-bundlepage .bundle-purchase-panel dl { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.b-bundlepage .bundle-purchase-panel dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.b-bundlepage .bundle-purchase-panel dl dd { margin: 0; font-weight: 700; }
.b-bundlepage .bundle-purchase-panel .bundle-total { padding-top: 10px; border-top: 1px dashed var(--rule); font-size: 20px !important; }
.b-bundlepage .bundle-purchase-panel .bundle-total dd { color: var(--red); font-size: 24px; }
.b-bundlepage .bundle-purchase-panel dl del { color: var(--ink-soft); font-weight: 600; }
.b-bundlepage .bundle-save { margin: 0 0 14px; }
.b-bundlepage .bundle-save .b-tagprice { font-size: 20px; }
.b-bundlepage .bundle-purchase-panel .b-btn { width: 100%; justify-content: center; min-height: 52px; font-size: 17px; margin-top: 6px; }
@media (max-width: 960px) {
    .b-bundlehead__in { grid-template-columns: minmax(0, 1fr); }
    .b-bundlehead__img { order: -1; }
    .b-bundlepage .bundle-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .b-bundlepage .bundle-detail-sidebar { position: static; order: -1; }
}
@media (max-width: 600px) {
    .b-bundlepage .bundle-course-card { grid-template-columns: minmax(0, 1fr); }
}

/* Owner 2026-11-14: blog comments in the site's design. */
.bt-blog-comments { margin-top: 32px !important; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(20, 39, 74, .07); }
.bt-blog-comments-header { display: flex !important; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.bt-blog-comments-header h2, .bt-blog-comment-form h2 { font-size: clamp(22px, 2.4vw, 28px) !important; letter-spacing: -0.02em; }
.bt-blog-comments-header > span { min-width: 34px; height: 30px; padding: 0 10px; border-radius: var(--r-b) !important; background: var(--hi) !important; color: var(--ink) !important; font-weight: 800; box-shadow: 3px 3px 0 var(--red); transform: skewX(var(--skew)); }
.bt-blog-detail .bt-blog-comment-card, .bt-blog-comments .bt-blog-comment-card { margin-bottom: 14px !important; padding: 18px 20px !important; border: 1px solid var(--rule) !important; border-radius: 14px !important; box-shadow: none !important; background: var(--blotter) !important; }
.bt-blog-comment-reply { margin: 12px 0 0 34px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.bt-blog-comment-avatar { width: 44px !important; height: 44px !important; border-radius: 50% !important; background: var(--red) !important; color: #fff !important; font-weight: 800; }
.bt-blog-comment-reply .bt-blog-comment-avatar { width: 34px !important; height: 34px !important; background: var(--blue) !important; }
.bt-blog-comment-text h3 { color: var(--ink); }
.bt-blog-comment-date { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--blue); }
.bt-blog-comment-text .std { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.bt-blog-comment-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-weight: 700; font-size: 14px; }
.bt-blog-comment-actions a, .bt-blog-comment-action { color: var(--blue); cursor: pointer; }
.bt-blog-comment-form { margin-top: 18px; padding: clamp(18px, 3vw, 28px) !important; border: 2px solid var(--ink) !important; border-radius: 18px !important; background: #fff; box-shadow: 8px 8px 0 var(--red) !important; }
.bt-blog-comment-form .feedback-form, .bt-blog-reply-form .feedback-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bt-blog-comment-form textarea, .bt-blog-reply-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 12px; font: inherit; resize: vertical; }
.bt-blog-comment-form textarea:focus, .bt-blog-reply-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 78, 150, .15); }
.bt-blog-comment-form .message-btn, .bt-blog-reply-form .message-btn { position: relative; isolation: isolate; align-self: flex-start; min-height: 44px; padding: 10px 26px; border: 0 !important; background: none !important; color: #fff !important; font-weight: 700; cursor: pointer; }
.bt-blog-comment-form .message-btn::before, .bt-blog-reply-form .message-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-b); background: var(--red); transform: skewX(var(--skew)); transition: box-shadow .2s ease; }
.bt-blog-comment-form .message-btn:hover::before, .bt-blog-reply-form .message-btn:hover::before { box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 600px) { .bt-blog-comment-reply { margin-left: 12px; } }
/* Owner 2026-11-14: small badges for Online, Part time / Full time and the number of groups. */
.b-board__meta .b-tag { padding: 1px 9px; font-size: 12px; line-height: 1.6; }
.b-board__meta .b-tag--soft { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: var(--on-ink); }
/* Owner 2026-11-14: phones — no pause button; the row stops while held. */
.b-rail.is-held .b-rail__track { animation-play-state: paused; }
@media (hover: none) { .b-rail .b-pause { display: none; } }
/* Owner 2026-11-14: phones — no pause button; the row stops while held. */
.b-rail.is-held .b-rail__track { animation-play-state: paused; }
@media (hover: none) { .b-rail .b-pause { display: none; } }

/* Owner 2026-11-14: Settings / profile / password on phones — less empty space, the odd last sub-page fills its row,
   a friendly photo picker that previews the chosen photo straight away. */
#main-content .profile-photo-form input[type="file"] { width: 100%; padding: 10px; border: 2px dashed #b9c6dc; border-radius: 12px; background: var(--blotter); color: var(--ink); font: inherit; font-size: 14.5px; cursor: pointer; }
#main-content .profile-photo-form input[type="file"]:hover { border-color: var(--blue); }
#main-content .profile-photo-form input[type="file"]::file-selector-button { margin-right: 12px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
#main-content .profile-avatar.is-preview { object-fit: cover; }
@media (max-width: 600px) {
    #main-content .student-account-layout:has(> .b-meside) { padding-top: 14px !important; }
    .b-meside { margin-top: 0; grid-template-columns: 1fr 1fr; }
    .b-meside a:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
    #main-content .profile-identity { gap: 14px; }
    #main-content .profile-identity .profile-avatar { width: 64px; height: 64px; font-size: 26px; flex: 0 0 64px; }
    #main-content .profile-identity h2 { font-size: 22px; }
}

/* Owner 2026-11-14 (speed): scroll reveals without a library. Browsers with scroll-driven animations use the rules above;
   the others get the class "b-io" and a light IntersectionObserver adds "is-in" when a block comes into view. */
@media (prefers-reduced-motion: no-preference) {
    .b-io .b-reveal, .b-io .b-reveal-l, .b-io .b-reveal-r, .b-io .b-stagger > *, .b-io .b-board > li { transition: opacity .7s ease-out, transform .75s cubic-bezier(.2, .7, .2, 1); }
    .b-io .b-reveal:not(.is-in) { opacity: 0; transform: translateY(50px); }
    .b-io .b-reveal-l:not(.is-in) { opacity: 0; transform: translateX(-60px); }
    .b-io .b-reveal-r:not(.is-in) { opacity: 0; transform: translateX(60px); }
    .b-io .b-stagger:not(.is-in) > * { opacity: 0; transform: translateY(50px); }
    .b-io .b-stagger > :nth-child(3n + 2) { transition-delay: .12s; }
    .b-io .b-stagger > :nth-child(3n) { transition-delay: .24s; }
    .b-io .b-board:not(.is-in) > li { opacity: 0; transform: translateX(-60px); }
    .b-io .b-board:not(.is-in) > li:nth-child(even) { transform: translateX(60px); }
    .b-io .b-board > li:nth-child(2) { transition-delay: .08s; }
    .b-io .b-board > li:nth-child(3) { transition-delay: .16s; }
    .b-io .b-board > li:nth-child(n + 4) { transition-delay: .24s; }
    .b-io .b-mark { background: linear-gradient(var(--hi), var(--hi)) no-repeat 0 92% / 0% .3em; transition: background-size .9s ease-out; }
    .b-io .b-mark.is-in { background-size: 100% .3em; }
    .b-words .b-w { display: inline-block; }
    .b-words.is-split .b-w { transition: opacity .6s ease-out, transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 60ms); }
    .b-words.is-split:not(.is-in) .b-w { opacity: 0; transform: translateY(70%); }
}
/* Phones: the opening of the home page finishes sooner, so the first screen is complete quickly. */
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
    .b-in-1 { animation-duration: .45s; }
    .b-in-2 { animation-duration: .45s; animation-delay: .06s; }
    .b-in-3 { animation-duration: .45s; animation-delay: .12s; }
    .b-in-4 { animation-duration: .45s; animation-delay: .18s; }
    .b-in-5 { animation-duration: .45s; animation-delay: .24s; }
    .b-pen { animation-duration: .6s; animation-delay: .4s; }
    .b-pop { animation-delay: .7s; }
    .b-pop-2 { animation-delay: .9s; }
}
/* Small phones: the phone number stays on one line beside the social icons. */
@media (max-width: 400px) {
    .b-topbar { font-size: 13px; }
    .b-topbar a { white-space: nowrap; }
    .b-topbar__social a { min-width: 28px; }
    .b-topbar__social { gap: 0 2px; }
}

/* Owner 2026-11-14 (spam): a form field people never see. */
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Owner 2026-11-14: About pages. */
/* About: Vision and Mission cards the same height; numbers in an even grid. */
.b-legacy .about-vm { align-items: stretch; }
.b-legacy .about-vm > article { height: 100%; }
.b-legacy .about-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .b-legacy .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Our team: 5 per row (2 on phones); name and title always one line so every card is the same size; the name opens the profile. */
.b-legacy .team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 1100px) { .b-legacy .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .b-legacy .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .b-legacy .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.b-legacy .team-grid .team-member { display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 18px 12px; text-align: center; }
.b-legacy .team-grid .team-member h3, .b-legacy .team-grid .team-member p { width: 100%; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b-legacy .team-grid .team-member h3 { font-size: 16px; }
.b-legacy .team-grid .team-member p { font-size: 13.5px; color: var(--ink-soft); }
.b-legacy .team-grid .team-member h3 a { color: var(--ink); text-decoration: none; }
.b-legacy .team-grid .team-member h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card opens the profile */
.b-legacy .team-grid .team-member { position: relative; }
.b-legacy .team-grid .team-member:hover { box-shadow: 6px 6px 0 var(--red); }
/* Credentials: every card the same height. */
/* Owner 2026-11-16: services filter — label, choice and Apply on one line, in a neat card. */
.b-inline-filter--row { align-items: center; gap: 12px 14px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--red); box-shadow: 8px 8px 0 var(--shade); }
.b-inline-filter--row label { display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0 6px 0 0; color: var(--ink); white-space: nowrap; }
.b-inline-filter--row label .b-icon { width: 20px; height: 20px; color: var(--red); }
.b-inline-filter--row select { flex: 0 1 420px; width: auto; min-width: 220px; min-height: 48px; background: var(--paper); color: var(--ink); cursor: pointer; }
.b-inline-filter--row select:focus { outline: 3px solid var(--hi); outline-offset: 2px; border-color: var(--blue); }
.b-inline-filter--row .b-btn { min-height: 48px; padding-block: 10px; }
@media (max-width: 640px) { .b-inline-filter--row label { width: 100%; } .b-inline-filter--row select { flex: 1 1 100%; min-width: 0; } .b-inline-filter--row .b-btn { flex: 1 1 auto; } }
/* Owner 2026-11-16: blog pages — articles three to a row with the sidebar (search, categories, recent) on the right;
   the article grid had lost its grid display, so every card took the whole width. */
.b-posts { display: grid; gap: 24px; }
.b-catalogue.b-catalogue--side { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 36px !important; }
.b-catalogue--side > .b-side { position: sticky; top: 110px; width: auto; }
@media (max-width: 1000px) { .b-catalogue.b-catalogue--side { grid-template-columns: minmax(0, 1fr); } .b-catalogue--side > .b-side { position: static; } }
/* Owner 2026-11-16: courses inside the category panels; a sub-category opens its own courses beside it. */
.course-nav-flyout { max-width: 340px; }
.course-nav-flyout > a, .course-nav-flyout > .course-nav-item > a { white-space: normal; line-height: 1.3; }
.course-nav-course { font-size: 15px; }
.course-nav-split { display: block; height: 1px; margin: 6px 8px; background: var(--rule); }
.course-nav-sub { font-weight: 700; }
@media (max-width: 1080px) { .course-nav-course, .course-nav-split { display: none !important; } .course-nav-sub::after { display: none; } }
@media (max-width: 1080px) { .course-nav-flyout:not(:has(> .course-nav-sub, > .course-nav-item)) { display: none !important; } }
/* Owner 2026-11-16: unread messages and notifications counted apart — speech bubble for messages, bell for notifications. */
.b-mehero__tab em { display: inline-flex; gap: 4px; margin-left: 6px; padding: 0 8px; }
.b-mehero__tab em i { font-size: 10px; }
.b-mehero__tab em.is-messages { background: var(--blue); }
.b-meside__count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.b-meside a[aria-current="page"] .b-meside__count { background: var(--hi); color: var(--ink); }

/* =====================================================================
   Owner 2026-11-16: every My account page in the site's design — one look for headings, search, cards, numbers,
   badges, buttons and empty states (they were plain black text).
   ===================================================================== */
.student-account-main { min-width: 0; }
.student-account-main .student-panel, .student-account-main > section:not(.messages-workspace) { border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 28px rgba(20, 39, 74, .06); }
.student-account-main .assessment-heading { position: relative; display: grid; gap: 4px; margin: 0 0 18px; padding: 0 0 16px 64px; border-bottom: 1px solid var(--rule); }
.student-account-main .assessment-heading::before { content: "\f19d"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--hi); color: var(--ink); box-shadow: 3px 3px 0 var(--red); font: 900 19px/1 "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome; }
.student-account-main .assessment-heading h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.student-account-main .assessment-heading p { margin: 0; color: var(--ink-soft); font-size: 15px; }
/* search */
.student-account-main :is(.student-search-form, .assessment-search, form[role="search"]):not(.messages-search) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px; border-radius: 14px; background: var(--blotter); }
.student-account-main :is(.student-search-form, .assessment-search, form[role="search"]):not(.messages-search) label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.student-account-main :is(.student-search-form, .assessment-search, form[role="search"]):not(.messages-search) input[type="search"] { flex: 1 1 240px; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fff; font: inherit; }
.student-account-main input:focus, .student-account-main select:focus, .student-account-main textarea:focus { outline: 3px solid var(--hi); outline-offset: 1px; border-color: var(--blue); }
/* cards */
.student-account-main :is(.assessment-quiz-list, .assessment-exam-grid, .student-course-list, .student-bundle-list, .wishlist-course-grid) { display: grid; gap: 16px; }
.student-account-main :is(.assessment-quiz-card, .assessment-exam-card, .student-course-card, .student-bundle-card, .buyer-payment-card) { position: relative; display: grid; gap: 14px; padding: 20px 22px; border: 1px solid var(--rule); border-left: 5px solid var(--blue); border-radius: 16px; background: var(--paper); box-shadow: 0 6px 18px rgba(20, 39, 74, .05); transition: translate .15s ease, box-shadow .15s ease; }
.student-account-main :is(.assessment-quiz-card, .assessment-exam-card, .student-course-card, .student-bundle-card, .buyer-payment-card):hover { translate: 0 -2px; box-shadow: 0 14px 28px rgba(20, 39, 74, .1); }
.student-account-main :is(.assessment-quiz-card, .assessment-exam-card) > header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.student-account-main :is(.assessment-quiz-card, .assessment-exam-card) h3 { margin: 0; font-size: 19px; line-height: 1.25; }
/* numbers as small tiles */
.student-account-main .assessment-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.student-account-main .assessment-facts > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--blotter); }
.student-account-main .assessment-facts dt { color: var(--ink-soft); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.student-account-main .assessment-facts dd { margin: 0; color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1.15; }
.student-account-main .assessment-deadline { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--feint); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.student-account-main .assessment-deadline i { color: var(--red); }
/* badges */
.student-account-main :is(.assessment-badge, .buyer-payment-card__status) { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--feint); color: var(--blue); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.student-account-main .assessment-badge:is(.is-submitted, .is-graded, .is-passed, .is-completed) { background: #e7f5ee; color: var(--pass); }
.student-account-main .assessment-badge:is(.is-in-progress, .is-pending) { background: #fff4d6; color: #92400e; }
.student-account-main .assessment-badge:is(.is-unavailable, .is-closed, .is-failed, .is-expired) { background: #fde8e6; color: var(--red); }
/* buttons: the site's slanted buttons */
.student-account-main :is(.commercial-action, .student-action) { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 0 !important; background: transparent !important; color: var(--ink) !important; font-weight: 800; text-decoration: none; transition: translate .15s ease; }
.student-account-main :is(.commercial-action, .student-action)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-b); background: #fff; box-shadow: inset 0 0 0 2px var(--ink); transform: skewX(var(--skew)); transition: box-shadow .15s ease; }
.student-account-main :is(.commercial-action, .student-action).is-primary { color: #fff !important; }
.student-account-main :is(.commercial-action, .student-action).is-primary::before { background: var(--red); box-shadow: none; }
.student-account-main :is(.commercial-action, .student-action):hover { translate: -2px -2px; }
.student-account-main :is(.commercial-action, .student-action):hover::before { box-shadow: inset 0 0 0 2px var(--ink), 5px 5px 0 var(--red); }
.student-account-main :is(.commercial-action, .student-action).is-primary:hover::before { box-shadow: 5px 5px 0 var(--ink); }
.student-account-main .assessment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* empty states */
.student-account-main .student-empty-state { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border: 2px dashed var(--rule); border-radius: 16px; background: var(--blotter); text-align: center; }
.student-account-main .student-empty-state::before { content: "\f07c"; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hi); color: var(--ink); font: 900 22px/1 "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome; }
.student-account-main .student-empty-state:has(> i)::before { display: none; }
.student-account-main .student-empty-state > i { font-size: 34px; color: var(--blue); }
.student-account-main .student-empty-state :is(h2, h3) { margin: 0; font-size: 19px; }
.student-account-main .student-empty-state p { margin: 0; color: var(--ink-soft); }
/* tables (purchase history and friends) */
.student-account-main table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; }
.student-account-main th { padding: 12px 14px; background: var(--blotter); color: var(--ink-soft); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.student-account-main td { padding: 12px 14px; border-top: 1px solid var(--rule); vertical-align: middle; }
.student-account-main tbody tr:hover td { background: color-mix(in srgb, var(--feint) 50%, transparent); }

/* Owner 2026-11-16: review cards give the person their place — a big photo with a ring at the top, the name and
   job clearly under it, the words in full colour; the quote mark sits quietly in the corner. */
.b-quote { position: relative; gap: 14px; padding: 26px 26px 22px; }
.b-quote figcaption { order: -1; margin: 0; padding: 0 0 16px; border-top: 0; border-bottom: 2px solid var(--feint); gap: 16px; }
.b-quote figcaption img, .b-quote__ph { width: 84px; height: 84px; border: 4px solid var(--hi); box-shadow: 5px 5px 0 var(--red); }
.b-quote__ph { font-size: 34px; }
.b-quote__who strong { font: 700 19px/1.25 var(--sans); color: var(--ink); }
.b-quote__who span { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--feint); color: var(--blue); font-size: 13.5px; font-weight: 700; align-self: flex-start; }
.b-quote__mark { position: absolute; top: 18px; right: 22px; height: auto; font-size: 110px; line-height: .8; opacity: .14; }
.b-quote__text { font-size: 18px; line-height: 1.55; color: var(--ink); }
.b-quote__text.is-collapsed { max-height: 9.3em; }
.b-quote__toggle { font-size: 15px; }
.student-account-main .assessment-search > div { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 10px; align-items: center; }
.student-account-main .assessment-search > div input[type="search"] { flex: 1 1 260px; }
.student-account-main :is(.assessment-quiz-card, .assessment-exam-card, .student-course-card, .student-bundle-card, .buyer-payment-card) { border-left: 5px solid var(--blue) !important; }
.student-account-main .assessment-quiz-card:has(.is-unavailable) { border-left-color: var(--red) !important; }

/* Owner 2026-11-16: Help pages (policies, delete account) — the text in a tidy paper with clear headings, the
   other Help pages in a card beside it. */
.b-helppage { display: grid !important; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 32px !important; }
.b-helppage__article { padding: clamp(22px, 4vw, 44px) !important; }
.b-helppage__article .b-prose { font-size: 17px; line-height: 1.75; color: var(--ink); }
.b-helppage__article .b-prose :is(h2, h3) { position: relative; margin: 28px 0 10px; padding-left: 16px; font-size: 22px; line-height: 1.3; }
.b-helppage__article .b-prose :is(h2, h3)::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--red); }
.b-helppage__article .b-prose h3 { font-size: 19px; }
.b-helppage__article .b-prose > :first-child { margin-top: 0; }
.b-helppage__article .b-prose p { margin: 0 0 14px; }
.b-helppage__article .b-prose p > strong:only-child { display: block; margin-top: 18px; font-size: 19px; color: var(--ink); }
.b-helppage__article .b-prose :is(ul, ol) { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: help; }
.b-helppage__article .b-prose li { position: relative; padding: 10px 14px 10px 44px; border-radius: 12px; background: var(--blotter); }
.b-helppage__article .b-prose ul > li::before { content: ""; position: absolute; left: 18px; top: 1.15em; width: 9px; height: 9px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.b-helppage__article .b-prose ol > li { counter-increment: help; }
.b-helppage__article .b-prose ol > li::before { content: counter(help); position: absolute; left: 10px; top: 9px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--hi); color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: 2px 2px 0 var(--red); }
.b-helppage__article .b-prose a { color: var(--blue); font-weight: 700; }
/* Owner 2026-11-16: tidied policy text — second-level points sit indented; Arabic headings get their bar on the right. */
.b-helppage__article .b-prose li.is-sub { margin-left: 28px; background: #fff; border: 1px solid var(--rule); }
.b-helppage__article .b-prose li.is-sub::before { background: var(--blue); }
.b-helppage__article .b-prose :is(h2, h3):dir(rtl) { padding-left: 0; padding-right: 16px; }
.b-helppage__article .b-prose :is(h2, h3):dir(rtl)::before { left: auto; right: 0; }
.b-helppage__article .b-prose :is(p, li):dir(rtl) { text-align: right; }
.b-helppage__article .b-prose li:dir(rtl) { padding: 10px 44px 10px 14px; }
.b-helppage__article .b-prose ul > li:dir(rtl)::before { left: auto; right: 18px; }
.b-helppage__article .b-prose li.is-sub:dir(rtl) { margin-left: 0; margin-right: 28px; }
.b-helpnav { position: sticky; top: 110px; display: grid; gap: 14px; padding: 22px; border: 1px solid var(--rule); border-top: 4px solid var(--blue); border-radius: 4px 4px var(--r-m) var(--r-m); background: #fff; box-shadow: 10px 10px 0 var(--shade); }
.b-helpnav nav { display: grid; gap: 4px; }
.b-helpnav nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.b-helpnav nav a:hover { background: var(--blotter); color: var(--ink); }
.b-helpnav nav a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--red); }
.b-helpnav__i { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: var(--feint); color: var(--blue); }
.b-helpnav nav a[aria-current="page"] .b-helpnav__i { background: var(--hi); color: var(--ink); }
.b-helpnav__ask { display: grid; gap: 6px; padding: 16px; border-radius: 12px; background: var(--hi); }
.b-helpnav__ask > span { color: var(--ink-soft); font-size: 14.5px; } /* the line only, not the button's text */
.b-helpnav__ask .b-btn { justify-self: start; margin-top: 4px; }
@media (max-width: 980px) { .b-helppage { grid-template-columns: 1fr; } .b-helpnav { position: static; } }

/* ---------- Owner 2026-11-16: About pages — Founder & CEO, the team and schools inside About, Payment Methods, Credentials ---------- */
.b-founderhead__in { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 32px 56px; align-items: center; }
.b-founderhead__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.b-pagehead.b-founderhead h1 { font-size: clamp(40px, 5.6vw, 76px); }
.b-founderhead h1 span { color: var(--hi); }
.b-founderhead__roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.b-founderhead__roles li { padding: 5px 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-s); font-size: 14.5px; font-weight: 700; transform: skewX(var(--skew)); }
.b-founderhead__roles li:first-child { background: var(--red); border-color: var(--red); }
.b-founderhead__roles li > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.b-pagehead .b-founderhead__lead { font-size: 18px; line-height: 1.65; }
.b-founderhead__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.b-founderhead__photo { position: relative; z-index: 1; margin: 0; justify-self: center; width: min(100%, 420px); }
.b-founderhead__photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; border: 5px solid #fff; border-radius: 18px; box-shadow: 14px 14px 0 var(--red), 28px 28px 0 var(--blue); transform: rotate(1.5deg); }
.b-founderhead__since { position: absolute; left: -26px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--hi); color: var(--ink); border-radius: var(--r-b); box-shadow: 5px 5px 0 var(--ink); transform: skewX(var(--skew)); }
.b-founderhead__since > * { transform: skewX(calc(var(--skew) * -1)); }
.b-founderhead__since strong { font-size: 38px; line-height: 1; }
.b-founderhead__since span { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.25; max-width: 11em; }
.b-founderhead__since small { font-weight: 600; opacity: .75; }

.b-founder__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.b-founder__facts li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--blue); border-radius: 4px 4px var(--r-m) var(--r-m); box-shadow: 10px 10px 0 var(--shade); overflow: hidden; }
.b-founder__facts li:nth-child(even) { border-top-color: var(--red); }
.b-founder__facts .b-icon { width: 30px; height: 30px; color: var(--red); }
.b-founder__facts p { font-weight: 700; line-height: 1.35; }
.b-founder__factn { position: absolute; right: 12px; top: 2px; font-size: 54px; font-weight: 800; line-height: 1; color: var(--feint); letter-spacing: -0.04em; }
.b-founder__story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 56px; align-items: center; }
.b-founder__wall { position: relative; margin: 0; }
.b-founder__wall img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border: 6px solid #fff; border-radius: 10px; box-shadow: 12px 12px 0 var(--blue); transform: rotate(-2deg); }
.b-founder__wall figcaption { margin: 22px 10px 0; font-size: 27px; color: var(--red); transform: rotate(-2deg); }
.b-founder__text { display: flex; flex-direction: column; gap: 30px; }
.b-founder__block { display: flex; flex-direction: column; gap: 12px; }
.b-founder__block .b-h2 { font-size: clamp(28px, 3vw, 42px); }
.b-founder__block h3 { font-size: 22px; line-height: 1.25; }
.b-founder__block p:not(.b-kicker) { color: var(--ink-soft); font-size: 17.5px; line-height: 1.7; }
.b-founder__block + .b-founder__block { padding-top: 26px; border-top: 2px dashed var(--rule); }
.b-founder__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.b-founder__card p { color: var(--ink-soft); line-height: 1.7; }
.b-founder__card h3 { font-size: 23px; }
.b-founder__card.is-blue { border-top-color: var(--blue); }
.b-founder__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-b); background: var(--red); color: #fff; transform: skewX(var(--skew)); box-shadow: 4px 4px 0 var(--ink); flex: none; }
.b-founder__icon .b-icon { width: 26px; height: 26px; transform: skewX(calc(var(--skew) * -1)); }
.is-blue > .b-founder__icon, .b-team__card:nth-child(even) > .b-founder__icon { background: var(--blue); }
.b-founder__venues { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.b-founder__venues li { padding: 4px 12px; border-radius: 999px; background: var(--feint); color: var(--blue); font-size: 14px; font-weight: 700; }
.b-founder__focus .b-wrap { align-items: center; text-align: center; gap: 22px; }
.b-founder__quote { width: 56px; height: 56px; color: var(--hi); }
.b-founder__focus blockquote { margin: 0; max-width: 980px; }
.b-founder__focus blockquote p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; color: #fff; }
.b-founder__sign { display: flex; flex-direction: column; gap: 2px; color: var(--on-ink); }
.b-founder__sign strong { color: #fff; font-size: 19px; }
.b-founder__focus .b-founderhead__cta { justify-content: center; }

.b-team__lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: center; }
.b-team__open { font-size: 19px; line-height: 1.65; color: var(--ink-soft); }
.b-team__photo { margin: 0; }
.b-team__photo img { display: block; width: 100%; border: 6px solid #fff; border-radius: 14px; box-shadow: 12px 12px 0 var(--red); }
.b-team__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.b-team__card p { color: var(--ink-soft); line-height: 1.7; }
.b-team__card:nth-child(even) { border-top-color: var(--blue); }
.b-team__close { align-self: center; max-width: 860px; text-align: center; }
.b-team__close span { display: inline; padding: 4px 10px; background: linear-gradient(transparent 55%, var(--hi) 55%); font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.7; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.b-schools__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.b-schools__card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--r-l); overflow: hidden; box-shadow: 10px 10px 0 var(--red); }
.b-schools__card:nth-child(even) { box-shadow: 10px 10px 0 var(--blue); }
.b-schools__media { position: relative; background: var(--blotter); }
.b-schools__media .institution-image, .b-schools__media .b-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.b-schools__place { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; border-radius: var(--r-s); transform: skewX(var(--skew)); }
.b-schools__place > * { transform: skewX(calc(var(--skew) * -1)); }
.b-schools__body { display: flex; flex-direction: column; gap: 14px; padding: 22px; flex: 1; }
.b-schools__body h3 { font-size: 22px; }
.b-schools__facts { display: grid; gap: 10px; margin: 0; }
.b-schools__facts dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.b-schools__facts dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.b-schools__facts .contact-line { display: block; }
.b-sec--ink .b-schools__card a:not(.b-btn) { color: var(--blue); }
.b-schools__body .b-btn { align-self: flex-start; margin-top: auto; }
.b-mailbadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--feint); color: var(--blue); font-weight: 700; font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.b-mailbadge:hover { background: var(--blue); color: #fff !important; }

.b-pay__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-pay__way h3 { font-size: 24px; }
.b-pay__way p { color: var(--ink-soft); }
.b-pay__way.is-featured { border-top-color: var(--blue); box-shadow: 12px 12px 0 var(--red); }
.b-pay__way.is-featured .b-founder__icon { background: var(--blue); }
.b-pay__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; }
.b-pay__number { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.b-pay__number a { font-size: 26px; font-weight: 800; letter-spacing: .02em; color: var(--red) !important; text-decoration: none; }
.b-pay__copy { display: inline-flex; align-items: center; gap: 6px; }
button.b-pay__copy:not(.b-btn) { min-height: 36px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: var(--r-s); background: #fff; color: var(--ink); font: 700 14px var(--sans); cursor: pointer; transform: skewX(var(--skew)); }
button.b-pay__copy:not(.b-btn) > * { transform: skewX(calc(var(--skew) * -1)); }
.b-pay__copy.is-copied { background: var(--pass) !important; border-color: var(--pass) !important; color: #fff !important; }
.b-pay__bank { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.b-pay__bank div { display: flex; flex-direction: column; padding: 10px 18px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: var(--r-b); }
.b-pay__bank dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.b-pay__bank dd { margin: 0; font-weight: 700; }
.b-pay__accounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-pay__account { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--ink); color: #fff; border-radius: var(--r-l); box-shadow: 10px 10px 0 var(--red); overflow: hidden; position: relative; }
.b-pay__account:nth-child(2) { background: var(--blue); box-shadow: 10px 10px 0 var(--ink); }
.b-pay__account header { display: flex; align-items: center; gap: 12px; }
.b-pay__account header .b-icon { margin-left: auto; width: 34px; height: 34px; opacity: .5; }
.b-pay__account h3 { font-size: 19px; }
.b-pay__code { padding: 4px 12px; background: var(--hi); color: var(--ink); font-weight: 800; border-radius: var(--r-s); transform: skewX(var(--skew)); }
.b-pay__iban { display: flex; flex-direction: column; gap: 4px; }
.b-pay__iban small { color: var(--on-ink); font-weight: 700; letter-spacing: .12em; }
.b-pay__iban code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; letter-spacing: .03em; overflow-wrap: anywhere; }
.b-pay__account .b-btn { align-self: flex-start; background: #fff; color: var(--ink); }
.b-pay__account .b-btn:hover { color: var(--ink); box-shadow: 6px 6px 0 var(--hi); }
.b-pay__help { color: var(--ink-soft); }

.b-creds__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.b-cred { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; box-shadow: 10px 10px 0 var(--shade); transition: box-shadow .2s ease, translate .2s ease; }
.b-cred:hover { translate: -3px -3px; box-shadow: 10px 10px 0 var(--red); }
.b-cred[data-group="uk"]:hover { box-shadow: 10px 10px 0 var(--blue); }
.b-cred__logo { display: grid; place-items: center; height: 150px; padding: 16px 22px; background: #fff; border-bottom: 4px solid var(--red); }
.b-cred[data-group="uk"] .b-cred__logo { border-bottom-color: var(--blue); }
.b-cred__logo .institution-image { width: auto; max-width: 100%; max-height: 118px; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.b-cred__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 22px 22px; }
.b-cred__body h3 { font-size: 21px; line-height: 1.25; }
.b-cred__tags { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; }
.b-cred__group { flex: none; padding: 3px 9px; border-radius: var(--r-s); background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transform: skewX(var(--skew)); }
.b-cred[data-group="uk"] .b-cred__group { background: var(--blue); }
.b-cred__ref { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; padding: 3px 9px; border-radius: var(--r-s); background: var(--hi); color: var(--ink); font-weight: 800; font-size: 11.5px; white-space: nowrap; transform: skewX(var(--skew)); }
.b-cred__ref small { font-weight: 700; font-size: 10px; opacity: .75; }
.b-cred__group > span, .b-cred__ref > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.b-cred__lead { color: var(--ink); font-weight: 600; line-height: 1.55; }
.b-cred__more summary { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; cursor: pointer; list-style: none; }
.b-cred__more summary::-webkit-details-marker { display: none; }
.b-cred__more[open] summary .b-icon { rotate: 180deg; }
.b-cred__more > div { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.b-cred__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }

@media (max-width: 1100px) {
    .b-founder__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-creds__grid, .b-team__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .b-founderhead__in, .b-founder__story, .b-team__lead { grid-template-columns: minmax(0, 1fr); }
    .b-founderhead__photo { order: -1; width: min(78%, 340px); margin-bottom: 18px; }
    .b-founderhead__since { left: -12px; bottom: 18px; }
    .b-founder__wall { max-width: 420px; justify-self: center; }
    .b-founder__cards, .b-pay__ways, .b-pay__accounts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .b-creds__grid, .b-team__cards { grid-template-columns: minmax(0, 1fr); }
    .b-founder__facts { gap: 12px; }
    .b-founder__facts li { padding: 18px 14px 16px; }
    .b-founderhead__since strong { font-size: 30px; }
}
/* Owner 2026-11-16: gallery as a photo wall (landscape, portrait and wide photos side by side). */
.b-gallery.b-gallery--wall { display: block; columns: 3 300px; column-gap: 18px; }
.b-gallery--wall figure { break-inside: avoid; margin: 0 0 18px; }
.b-gallery--wall figure:nth-child(4n + 2) .institution-image { box-shadow: 8px 8px 0 var(--red); }
.b-gallery--wall figure:nth-child(4n + 3) .institution-image { box-shadow: 8px 8px 0 var(--blue); }
@media (max-width: 420px) { .b-founder__facts { grid-template-columns: minmax(0, 1fr); } }
#team, #schools { scroll-margin-top: 70px; }
.b-schools__media .b-placeholder { background: var(--blue); }
/* Owner 2026-11-16: E-books tab — book cards like the other My learning cards (cover on a soft stage, title, slanted Read now). */
.b-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px; }
.b-shelf__book { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rule); border-top: 4px solid var(--red); border-radius: 4px 4px var(--r-m) var(--r-m); background: var(--paper); box-shadow: 8px 8px 0 var(--shade); transition: box-shadow .2s ease, translate .2s ease; }
.b-shelf__book:nth-child(even) { border-top-color: var(--blue); }
.b-shelf__book:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--red); }
.b-shelf__cover { display: grid; place-items: center; padding: 22px 16px; background: linear-gradient(160deg, var(--blotter), var(--feint)); }
.b-shelf__cover img { display: block; width: auto; max-width: 150px; height: 206px; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 8px 10px 18px rgba(16, 43, 81, .25); }
.b-shelf__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
.b-shelf__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--feint); color: var(--blue); font-size: 12px; font-weight: 800; }
.b-shelf__body h3 { margin: 0; font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.b-shelf__body h3 a { color: var(--ink); text-decoration: none; }
.b-shelf__actions { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.b-shelf__actions .b-btn { flex: 1; }
.b-shelf__invoice { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: var(--r-s); color: var(--ink); transform: skewX(var(--skew)); }
.b-shelf__invoice i { transform: skewX(calc(var(--skew) * -1)); }
.b-shelf__invoice:hover { background: var(--ink); color: #fff; }
/* the header on phones: the count sits beside the title instead of dropping under it */
@media (max-width: 640px) { #main-content .student-page-heading { flex-wrap: nowrap; align-items: center; } #main-content .student-page-heading p { display: none; } #main-content .student-page-heading__count { min-width: 76px; padding: 8px 12px; } #main-content .student-page-heading__count strong { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .b-post__img img { transition: none; } }

/* ---------- Owner 2026-11-16: About pages — the founder's motto and lively touches ---------- */
.b-motto { position: relative; padding: clamp(36px, 5vw, 64px) 0; background: var(--paper); overflow: hidden; }
.b-motto .b-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.b-motto__line { max-width: 22em; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 40px); line-height: 1.3; color: var(--ink); }
.b-motto__line em { font-style: italic; color: var(--red); background: linear-gradient(var(--hi), var(--hi)) no-repeat 0 92% / 100% .28em; padding-inline: 2px; }
.b-motto__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: min(100%, 980px); margin: 0; padding: 0; list-style: none; counter-reset: motto; }
.b-motto__steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; background: var(--ink); color: #fff; border-radius: var(--r-m); transform: skewX(var(--skew)); box-shadow: 8px 8px 0 var(--red); }
.b-motto__steps li:nth-child(2) { background: var(--blue); box-shadow: 8px 8px 0 var(--ink); }
.b-motto__steps li:nth-child(3) { background: var(--red); box-shadow: 8px 8px 0 var(--blue); }
.b-motto__steps li > * { transform: skewX(calc(var(--skew) * -1)); }
.b-motto__steps .b-icon { width: 30px; height: 30px; color: var(--hi); }
.b-motto__steps b { font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.b-motto__steps span { font-family: var(--hand); font-size: 24px; color: var(--hi); }
.b-motto__steps li:not(:last-child)::after { content: ""; position: absolute; right: -20px; top: 50%; width: 18px; height: 4px; background: var(--hi); border-radius: 2px; transform: none; }
@media (max-width: 640px) { .b-motto__steps { grid-template-columns: minmax(0, 1fr); gap: 14px; } .b-motto__steps li { flex-direction: row; justify-content: center; gap: 12px; padding: 14px; } .b-motto__steps li::after { display: none; } }

/* gallery photo viewer */
.b-gallery--wall a { display: block; cursor: zoom-in; border-radius: var(--r-m); }
.b-lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-l); background: var(--ink); color: #fff; box-shadow: 18px 18px 0 var(--red); overflow: hidden; }
.b-lightbox::backdrop { background: rgba(14, 27, 51, .82); }
.b-lightbox img { display: block; width: 100%; max-height: calc(94vh - 76px); object-fit: contain; background: #0b1730; }
.b-lightbox__bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 14px; }
.b-lightbox__bar [data-lightbox-count] { min-width: 70px; text-align: center; font-weight: 800; color: var(--hi); }
.b-lightbox__bar form { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
    /* founder hero: the photo floats, the "years" badge pulses once it lands */
    .b-founderhead__photo img { animation: b-bob 6s ease-in-out infinite; }
    .b-founderhead__since { animation: b-pulse-y 2.4s ease-out 1.2s 2; }
    .b-founderhead__roles li { animation: b-rise .6s ease-out both; }
    .b-founderhead__roles li:nth-child(2) { animation-delay: .15s; }
    .b-founderhead__roles li:nth-child(3) { animation-delay: .3s; }
    /* lift and turn on hover: facts, cards, schools, credentials, payments */
    .b-founder__facts li, .b-founder__card, .b-team__card, .b-pay__way, .b-schools__card { transition: translate .25s ease, box-shadow .25s ease; }
    .b-founder__facts li:hover, .b-founder__card:hover, .b-team__card:hover, .b-pay__way:hover, .b-schools__card:hover { translate: 0 -6px; }
    .b-founder__facts li:hover .b-icon, .b-founder__card:hover .b-founder__icon, .b-team__card:hover .b-founder__icon, .b-pay__way:hover .b-founder__icon { animation: b-wiggle .5s ease; }
    .b-cred__logo .institution-image { transition: transform .35s ease; }
    .b-cred:hover .b-cred__logo .institution-image { transform: scale(1.08); }
    .b-pay__account { isolation: isolate; }
    .b-pay__account::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%) no-repeat -200% 0 / 60% 100%; transition: background-position .9s ease; pointer-events: none; }
    .b-pay__account:hover::before { background-position: 220% 0; }
    .b-gallery--wall img { transition: transform .4s ease, box-shadow .4s ease; }
    .b-gallery--wall a:hover img { transform: rotate(-1.2deg) scale(1.03); }
    .b-gallery--wall figure:nth-child(even) a:hover img { transform: rotate(1.2deg) scale(1.03); }
    .b-founder__quote { animation: b-bob 4s ease-in-out infinite; }
    @supports (animation-timeline: view()) {
        /* the three motto steps arrive one after another as you scroll */
        .b-motto__steps li { animation: b-motto-in linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
        .b-motto__steps li:nth-child(2) { animation-range: entry 15% cover 38%; }
        .b-motto__steps li:nth-child(3) { animation-range: entry 25% cover 46%; }
        /* the office photo straightens while you scroll past it; the team photo opens like a curtain */
        .b-founder__wall img { animation: b-tilt linear both; animation-timeline: view(); animation-range: entry 0% exit 20%; }
        .b-team__photo img { animation: b-curtain linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
        .b-schools__card { animation: b-up linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    }
}
@keyframes b-motto-in { from { opacity: 0; transform: skewX(var(--skew)) translateY(50px) scale(.9); } to { opacity: 1; transform: skewX(var(--skew)); } }
@keyframes b-tilt { from { transform: rotate(-7deg) translateY(30px); } to { transform: rotate(1deg); } }
@keyframes b-wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -12deg; } 60% { rotate: 10deg; } }
@keyframes b-curtain { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-20px -30px -30px -20px); } }
