/*
 * SNCIRA public site: one stylesheet for every public page (no build step).
 * Same brand as the member / super admin panels: navy #16234E, brand red #E42528, Figtree.
 *
 *   1. Tokens        2. Base          3. Layout        4. Header / footer
 *   5. Buttons       6. Components    7. Forms         8. Page blocks
 *   9. Trainings (tr-*)   10. Auth   11. Utilities / print
 *
 * Class prefix: s-  (trainings keep their tr- names, which tests rely on).
 */

/* ============ 1. Tokens ============ */
:root {
    --navy: #16234E;
    --navy-2: #22335C;
    --navy-deep: #0F1830;
    --indigo: #4F46E5;
    --brand: #E42528;
    --brand-dark: #B81E20;
    --brand-soft: #FDECEC;

    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --muted-2: #94A3B8;
    --line: #E2E8F0;
    --line-2: #CBD5E1;
    --surface: #FFFFFF;
    --paper: #F1F5F9;
    --paper-2: #F8FAFC;

    --ok: #047857;   --ok-bg: #ECFDF5;   --ok-line: #A7F3D0;
    --warn: #B45309; --warn-bg: #FFFBEB; --warn-line: #FDE68A;
    --bad: #B91C1C;  --bad-bg: #FEF2F2;  --bad-line: #FECACA;
    --info: #0369A1; --info-bg: #F0F9FF; --info-line: #BAE6FD;

    --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px -12px rgba(22, 35, 78, .25);
    --shadow-lg: 0 30px 60px -28px rgba(22, 35, 78, .45);
    --shell: 1200px;
    --header-h: 76px;   /* updated by site.js */
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Legacy names still used by a few templates during the migration. */
    --gold: var(--brand); --gold-deep: var(--brand-dark); --gold-soft: #F3B4B5;
    --teal: #3B4F8C; --ink-soft: var(--muted); --paper-raised: var(--surface);
    --font-display: var(--font); --font-body: var(--font); --font-mono: var(--mono);
}

/* ============ 2. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink-2);
    background: var(--paper-2); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(228, 37, 40, .18); }
[hidden] { display: none !important; }
.s-sr-only, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.s-skip {
    position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s;
}
.s-skip:focus { top: 12px; color: #fff; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ 3. Layout ============ */
.s-shell, .shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .s-shell, .shell { padding-inline: 32px; } }
.s-section { padding-block: clamp(48px, 7vw, 88px); }
.s-section--tight { padding-block: clamp(32px, 5vw, 56px); }
.s-section--tint { background: var(--paper); }
.s-section--white { background: var(--surface); }
.s-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.s-head__text { max-width: 640px; }
.s-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.s-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .s-grid--2, .s-grid--3, .s-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .s-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.s-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .s-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.s-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1023px) { .s-sticky { position: static; } }
.s-stack > * + * { margin-top: 20px; }
.s-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.s-muted { color: var(--muted); }
.s-num { font-variant-numeric: tabular-nums; }

/* ============ 4. Header / footer ============ */
.s-topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .75); font-size: .82rem; }
.s-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.s-topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.s-topbar a:hover { color: #fff; }
.s-topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.s-topbar__contact span, .s-topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.s-topbar svg { width: 14px; height: 14px; opacity: .8; }
@media (max-width: 767px) { .s-topbar__reg, .s-topbar .s-social { display: none; } }

.s-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.s-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(22, 35, 78, .35); }
.s-header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.s-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.s-brand img { height: 44px; width: auto; display: block; }
.s-brand__text { display: none; line-height: 1.15; }
.s-brand__text strong { display: block; color: var(--navy); font-size: 1.05rem; letter-spacing: .02em; }
.s-brand__text span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 1280px) { .s-brand__text { display: block; } }

.s-nav { margin-left: auto; }
.s-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.s-nav__list a {
    position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px;
    color: var(--ink-2); font-weight: 600; font-size: .94rem; text-decoration: none; transition: color .15s, background .15s;
}
.s-nav__list a:hover { color: var(--navy); background: var(--paper); }
.s-nav__list a.is-active { color: var(--navy); }
.s-nav__list a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.s-nav__extra { display: none; }
.s-header__actions { display: flex; align-items: center; gap: 8px; }
.s-nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
    align-items: center; justify-content: center; color: var(--navy);
}
.s-nav-toggle svg { width: 22px; height: 22px; }
.s-nav-toggle .s-icon-close { display: none; stroke-width: 2.4; }
.s-nav-toggle[aria-expanded="true"] .s-icon-open { display: none; }
.s-nav-toggle[aria-expanded="true"] .s-icon-close { display: block; }

@media (max-width: 1099px) {
    .s-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .s-nav-toggle { display: inline-flex; margin-left: auto; }
    .s-header__actions { display: none; }
    .s-nav {
        position: fixed; top: var(--nav-top, var(--header-h)); right: 0; bottom: 0; left: 0; z-index: 59; margin: 0; padding: 16px 20px 32px; overflow-y: auto;
        background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    }
    .s-nav.is-open { transform: none; visibility: visible; }
    .s-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .s-nav__list a { min-height: 52px; padding: 12px 16px; font-size: 1.05rem; border-radius: 12px; }
    .s-nav__list a.is-active { background: var(--paper); }
    .s-nav__list a.is-active::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
    .s-nav__extra { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
    body.s-nav-open { overflow: hidden; }
}
.s-accent { height: 3px; background: linear-gradient(90deg, var(--navy) 0 60%, var(--brand) 60% 80%, var(--navy) 80%); }

.s-userchip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.s-userchip:hover { border-color: var(--navy); color: var(--navy); }
.s-userchip__avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), #FB7185); color: #fff; font-size: .85rem; overflow: hidden; }
.s-userchip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.s-userchip__dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }

.s-footer { position: relative; overflow: hidden; background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.s-footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.1px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.s-footer__grid { position: relative; display: grid; gap: 36px; grid-template-columns: 1fr; padding-block: 64px 40px; }
@media (min-width: 768px) { .s-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.s-footer img.s-footer__logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.s-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.s-footer ul { list-style: none; display: grid; gap: 10px; }
.s-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.s-footer a:hover { color: #fff; text-decoration: underline; }
.s-footer__about { margin-top: 16px; max-width: 34ch; line-height: 1.7; }
.s-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.s-footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.s-footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.s-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.s-social { display: flex; gap: 8px; }
.s-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, transform .15s; }
.s-social a:hover { background: var(--brand); transform: translateY(-2px); text-decoration: none; }
.s-social svg { width: 17px; height: 17px; }
.s-topbar .s-social a { width: 28px; height: 28px; background: transparent; }

/* ============ 5. Buttons ============ */
.s-btn, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
    border: 1.5px solid transparent; border-radius: 12px; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.s-btn svg, .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.s-btn:active, .btn:active { transform: translateY(1px); }
.s-btn[disabled], .btn[disabled] { opacity: .6; cursor: not-allowed; }
.s-btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(22, 35, 78, .7); }
.s-btn--primary:hover { background: var(--navy-2); color: #fff; }
.s-btn--brand, .btn--gold { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(228, 37, 40, .75); }
.s-btn--brand:hover, .btn--gold:hover { background: var(--brand-dark); color: #fff; }
.s-btn--ghost, .btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.s-btn--ghost:hover, .btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.s-btn--light, .btn--outline-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.s-btn--light:hover, .btn--outline-light:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .6); }
.s-btn--white { background: #fff; color: var(--navy); }
.s-btn--white:hover { background: var(--paper); color: var(--navy); }
.s-btn--link { min-height: 0; padding: 0; background: none; color: var(--brand); border: 0; }
.s-btn--link:hover { color: var(--brand-dark); text-decoration: underline; }
.s-btn--sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.s-btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }
.s-btn--block { width: 100%; }

/* ============ 6. Components ============ */
/* Eyebrow / badges / chips */
.s-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--navy); background: rgba(22, 35, 78, .06); border: 1px solid rgba(22, 35, 78, .12);
}
.s-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.s-eyebrow--light { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.s-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.s-badge--ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.s-badge--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.s-badge--bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.s-badge--info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.s-badge--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.s-badge--brand { background: var(--brand-soft); color: var(--brand-dark); border-color: #F8C9CA; }
.s-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: s-pulse 1.6s infinite; }
@keyframes s-pulse { 50% { opacity: .35; } }
.s-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: .85rem; border: 1px solid rgba(255, 255, 255, .18); }
.s-chip svg { width: 15px; height: 15px; }

/* Hero */
.s-hero { position: relative; overflow: hidden; color: rgba(255, 255, 255, .82); background: radial-gradient(900px 420px at 92% -10%, rgba(228, 37, 40, .32), transparent 60%), radial-gradient(800px 420px at -10% 120%, rgba(79, 70, 229, .3), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-deep) 100%); }
.s-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.s-hero > * { position: relative; }
.s-hero h1, .s-hero h2 { color: #fff; }
.s-hero__inner { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.s-hero--compact .s-hero__inner { padding-block: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 48px); }
.s-hero__lead { margin-top: 16px; max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .78); }
.s-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.s-hero__split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .s-hero__split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.s-hero .s-eyebrow { margin-bottom: 16px; }
.s-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .86rem; color: rgba(255, 255, 255, .65); list-style: none; }
.s-crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.s-crumbs a:hover { color: #fff; text-decoration: underline; }
.s-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.s-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; list-style: none; }

/* Cards / panels */
.s-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.s-card, .s-card--link { color: inherit; text-decoration: none; }
a.s-card:hover, .s-card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22, 35, 78, .22); color: inherit; }
.s-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #4F46E5); }
.s-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.s-card:hover .s-card__media img { transform: scale(1.04); }
.s-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.s-card__title { font-size: 1.1rem; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-card__text { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9rem; }
.s-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.s-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
a.s-card:hover .s-card__more svg { transform: translateX(3px); }
.s-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.s-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.s-panel__head h2, .s-panel__head h3 { font-size: 1.1rem; }
.s-panel__body { padding: 22px; }
.s-panel + .s-panel { margin-top: 20px; }

.s-icon-tile { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(22, 35, 78, .07); color: var(--navy); }
.s-icon-tile svg { width: 24px; height: 24px; }
.s-icon-tile--brand { background: var(--brand-soft); color: var(--brand); }
.s-icon-tile--ok { background: var(--ok-bg); color: var(--ok); }
.s-icon-tile--warn { background: var(--warn-bg); color: var(--warn); }
.s-icon-tile--info { background: var(--info-bg); color: var(--info); }
.s-icon-tile--violet { background: #F5F3FF; color: #6D28D9; }

/* Tabs / filters / pagination */
.s-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.s-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.s-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.s-tabs a:hover { color: var(--navy); background: var(--paper); }
.s-tabs a.is-active { background: var(--navy); color: #fff; }
.s-tabs .count { font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: rgba(22, 35, 78, .08); }
.s-tabs a.is-active .count { background: rgba(255, 255, 255, .2); }
.s-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.s-filters .s-input, .s-filters .s-select { min-height: 44px; width: auto; }
.s-filters .s-input { min-width: 220px; flex: 1; }
@media (max-width: 639px) { .s-filters { width: 100%; } .s-filters > * { flex: 1 1 100%; } }
.s-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; list-style: none; }
.s-pagination a, .s-pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font-weight: 600; text-decoration: none; }
.s-pagination a:hover { border-color: var(--navy); }
.s-pagination .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.s-pagination .is-disabled { opacity: .45; }
.s-pagination svg { width: 18px; height: 18px; }

/* Empty / alerts */
.s-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.s-empty__icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--muted-2); }
.s-empty__icon svg { width: 26px; height: 26px; }
.s-empty h3 { color: var(--ink); font-size: 1.1rem; }
.s-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: .94rem; margin-bottom: 20px; }
.s-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.s-alert--ok { background: var(--ok-bg); color: #065F46; border-color: var(--ok-line); }
.s-alert--bad { background: var(--bad-bg); color: #991B1B; border-color: var(--bad-line); }
.s-alert--info { background: var(--info-bg); color: #075985; border-color: var(--info-line); }
.s-alert--warn { background: var(--warn-bg); color: #92400E; border-color: var(--warn-line); }

/* Date tile, facts, definition list, avatars */
.s-date { width: 64px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; border-radius: 14px; background: var(--paper); color: var(--navy); line-height: 1.05; }
.s-date b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.s-date span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.s-date--brand { background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; }
.s-date--brand span { color: rgba(255, 255, 255, .8); }
.s-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; }
.s-meta span { display: inline-flex; align-items: center; gap: 6px; }
.s-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.s-dl { display: grid; gap: 0; margin: 0; }
.s-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.s-dl > div:last-child { border-bottom: 0; }
.s-dl dt { color: var(--muted); }
.s-dl dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; word-break: break-word; }
.s-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; font-weight: 700; }
.s-avatar img { width: 100%; height: 100%; object-fit: cover; }
.s-avatar--lg { width: 88px; height: 88px; font-size: 1.6rem; }
.s-person { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.s-person b { display: block; color: var(--ink); }
.s-person small { color: var(--muted); }
.s-list { list-style: none; }
.s-list > li + li { border-top: 1px solid var(--line); }
.s-list__item { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: inherit; text-decoration: none; }
a.s-list__item:hover .s-list__title { color: var(--brand); }
.s-list__title { display: block; color: var(--ink); font-weight: 600; }
.s-list__sub { display: block; font-size: .86rem; color: var(--muted); }

/* Rich text */
.s-rich, .tr-rich { color: var(--ink-2); line-height: 1.8; font-size: 1.02rem; overflow-wrap: anywhere; }
.s-rich > * + *, .tr-rich > * + * { margin-top: .9em; }
.s-rich h2, .tr-rich h2 { font-size: 1.4rem; margin-top: 1.6em; }
.s-rich h3, .tr-rich h3 { font-size: 1.15rem; margin-top: 1.4em; }
.s-rich ul, .tr-rich ul { list-style: disc; padding-left: 1.4rem; }
.s-rich ol, .tr-rich ol { list-style: decimal; padding-left: 1.4rem; }
.s-rich li + li, .tr-rich li + li { margin-top: .35em; }
.s-rich a, .tr-rich a { color: var(--brand); }
.s-rich blockquote, .tr-rich blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--brand); color: var(--muted); font-style: italic; }
.s-rich table, .tr-rich table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.s-rich td, .s-rich th, .tr-rich td, .tr-rich th { border: 1px solid var(--line); padding: 8px 10px; }
.s-prose-plain { white-space: pre-line; }

/* ============ 7. Forms ============ */
.s-form { display: grid; gap: 18px; }
.s-fields { display: grid; gap: 16px 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .s-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s-fields .s-full { grid-column: 1 / -1; } }
.s-field label, .s-label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.s-field label .req { color: var(--brand); }
.s-input, .s-select, .s-textarea {
    display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
    background: #fff; color: var(--ink); font-size: .97rem; transition: border-color .15s, box-shadow .15s;
}
.s-input::placeholder, .s-textarea::placeholder { color: var(--muted-2); }
.s-input:hover, .s-select:hover, .s-textarea:hover { border-color: #94A3B8; }
.s-input:focus, .s-select:focus, .s-textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22, 35, 78, .12); }
.s-textarea { min-height: 120px; resize: vertical; }
.s-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.s-input.is-invalid, .s-select.is-invalid, .s-textarea.is-invalid { border-color: #DC2626; background-color: var(--bad-bg); }
.s-error { margin-top: 6px; font-size: .84rem; color: #DC2626; }
.s-hint { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.s-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.s-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.s-input-group { position: relative; }
.s-input-group .s-input { padding-right: 48px; }
.s-input-group__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.s-input-group__btn:hover { background: var(--paper); color: var(--navy); }
.s-input-group__btn svg { width: 18px; height: 18px; }
.s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ============ 8. Page blocks ============ */
/* Stats band */
.s-stats { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 1024px) { .s-stats { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
.s-stat { padding: 26px 22px; background: var(--surface); }
.s-stat b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.s-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.s-stats--dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .12); }
.s-stats--dark .s-stat { background: rgba(15, 24, 48, .55); }
.s-stats--dark .s-stat b { color: #fff; }
.s-stats--dark .s-stat span { color: rgba(255, 255, 255, .7); }

/* CTA band */
.s-cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); color: rgba(255, 255, 255, .82); background: radial-gradient(600px 300px at 100% 0, rgba(228, 37, 40, .4), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .s-cta { grid-template-columns: 1fr auto; } }
.s-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1.1px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.s-cta > * { position: relative; }
.s-cta h2 { color: #fff; }
.s-cta p { margin-top: 10px; max-width: 56ch; }

/* Home: spotlight card in the hero */
.s-spot { display: block; overflow: hidden; border-radius: var(--r-xl); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; text-decoration: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transition: transform .3s var(--ease), background .3s; }
a.s-spot:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); color: #fff; }
.s-spot__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--navy-2), #4F46E5); }
.s-spot__kicker { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 6px 16px -6px rgba(228, 37, 40, .8); }
.s-spot__kicker--static { position: static; display: inline-block; margin: 0 0 8px; }
.s-spot__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.s-spot__title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.s-spot__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.s-spot__meta svg, .s-spot__cta svg { width: 16px; height: 16px; }
.s-spot__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #FCA5A5; font-weight: 600; }
.s-spot--links { padding: 22px; display: grid; gap: 8px; }
.s-spot__link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s; }
.s-spot__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.s-spot__link svg { width: 20px; height: 20px; }
.s-spot__link svg:last-child { margin-left: auto; opacity: .6; }

.s-stats-wrap { position: relative; margin-top: -40px; padding-top: 0; z-index: 2; }
.s-stats-wrap .s-stats { box-shadow: var(--shadow); }
.s-home-split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .s-home-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.s-event-row { flex-direction: row; align-items: center; gap: 16px; padding: 16px; color: inherit; text-decoration: none; }
.s-event-row + .s-event-row { margin-top: 12px; }
.s-event-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.s-event-row__body { display: grid; gap: 6px; min-width: 0; flex: 1; justify-items: start; }
.s-event-row__go { width: 20px; height: 20px; color: var(--muted-2); flex-shrink: 0; }
.s-empty--flat { border: 0; padding: 32px 12px; }

/* Event detail: agenda, gallery, registration number */
.s-agenda__day { margin: 18px 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.s-agenda__day:first-child { margin-top: 0; }
.s-agenda { list-style: none; display: grid; gap: 8px; }
.s-agenda li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.s-agenda b { display: block; color: var(--ink); }
.s-agenda small { color: var(--muted); }
.s-agenda__time { color: var(--navy); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .s-agenda li { grid-template-columns: 1fr; gap: 2px; } }
.s-gallery { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .s-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.s-gallery figure { margin: 0; }
.s-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.s-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.s-gallery a:hover img { transform: scale(1.05); }
.s-gallery figcaption { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.s-regno { margin-top: 6px; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--navy); font-family: var(--mono); font-weight: 600; font-size: 1.05rem; text-align: center; letter-spacing: .04em; }
.s-lightbox { width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: #000; overflow: hidden; }
.s-lightbox::backdrop { background: rgba(15, 23, 42, .85); }
.s-lightbox img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.s-lightbox p { margin: 0; padding: 10px 16px; color: #fff; font-size: .9rem; background: rgba(0, 0, 0, .6); }
.s-lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.4rem; cursor: pointer; }

/* Event cards */
.s-event-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }

/* Contact info cards */
.s-contact-card { flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
.s-contact-card__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s-contact-card__value { display: block; margin-top: 2px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
a.s-contact-card__value:hover { color: var(--brand); }

/* Scholarship cards */
.s-scheme__amount { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.s-scheme__amount small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.s-scheme__more summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: .9rem; }
.s-scheme__more p { margin-top: 6px; color: var(--muted); font-size: .9rem; white-space: pre-line; }

/* Leadership cards */
.s-leader { align-items: center; gap: 10px; padding: 28px 20px; text-align: center; }
.s-leader h3 { font-size: 1.05rem; }
.s-leader p { color: var(--brand); font-weight: 600; font-size: .88rem; }

/* Feature (pillar) cards */
.s-feature { display: flex; flex-direction: column; gap: 14px; padding: 26px; height: 100%; }
.s-feature h3 { font-size: 1.12rem; }
.s-feature p { color: var(--muted); font-size: .95rem; }

/* Notices */
.s-notice { display: flex; gap: 16px; padding: 18px 0; color: inherit; text-decoration: none; }
.s-notice + .s-notice { border-top: 1px solid var(--line); }
.s-notice:hover .s-notice__title { color: var(--brand); }
.s-notice__title { color: var(--ink); font-weight: 600; }
.s-notice__text { margin-top: 4px; font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Timeline */
.s-timeline { position: relative; list-style: none; display: grid; gap: 22px; padding-left: 28px; }
.s-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--navy)); border-radius: 2px; }
.s-timeline li { position: relative; }
.s-timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.s-timeline b { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); }
.s-timeline h3 { margin-top: 2px; font-size: 1.05rem; }
.s-timeline p { margin-top: 4px; color: var(--muted); font-size: .94rem; }

/* FAQ */
.s-faq { display: grid; gap: 10px; }
.s-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.s-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* Steps */
.s-steps, .tr-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.s-steps li, .tr-steps li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.s-steps li + li::before, .tr-steps li + li::before { content: ""; width: 24px; height: 2px; background: var(--line-2); border-radius: 2px; }
.s-steps .n, .tr-steps .n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); background: #fff; font-size: .8rem; }
.s-steps .done .n, .tr-steps .done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.s-steps .current, .tr-steps .current { color: var(--navy); }
.s-steps .current .n, .tr-steps .current .n { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Result (verify / status) card */
.s-result { max-width: 720px; margin-inline: auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.s-result__band { display: flex; align-items: center; gap: 16px; padding: 22px 26px; color: #fff; }
.s-result__band h2 { color: #fff; font-size: 1.35rem; }
.s-result__band p { color: rgba(255, 255, 255, .88); font-size: .95rem; margin-top: 2px; }
.s-result__band--ok { background: linear-gradient(135deg, #047857, #10B981); }
.s-result__band--warn { background: linear-gradient(135deg, #B45309, #F59E0B); }
.s-result__band--bad { background: linear-gradient(135deg, #B91C1C, #EF4444); }
.s-result__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); }
.s-result__icon svg { width: 28px; height: 28px; }
.s-result__body { padding: 8px 26px 22px; }
.s-verify-form { display: flex; flex-wrap: wrap; gap: 10px; }
.s-verify-form .s-input { flex: 1 1 260px; min-height: 52px; }
.s-verify-form .s-btn { min-height: 52px; }


/* ============ 9. Trainings (tr-*) ============ */
.tr-fit__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-fit { position: absolute; inset: 0; overflow: hidden; display: block; }
.tr-fit__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.1) brightness(.9); transform: scale(1.15); }
.tr-fit__img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }

.tr-hero { position: relative; overflow: hidden; color: rgba(255, 255, 255, .82); background: radial-gradient(900px 420px at 92% -10%, rgba(228, 37, 40, .3), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); padding-block: clamp(40px, 6vw, 64px) clamp(36px, 5vw, 52px); }
.tr-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.1px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.tr-hero > * { position: relative; }
.tr-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: 24ch; }
.tr-hero p.lede { font-size: 1.05rem; color: rgba(255, 255, 255, .78); max-width: 60ch; margin-top: 14px; }
.tr-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: rgba(22, 35, 78, .06); border: 1px solid rgba(22, 35, 78, .12); }
.tr-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.tr-hero .tr-eyebrow { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }

.tr-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 28px; }
.tr-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.tr-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tr-tabs a:hover { color: var(--navy); background: var(--paper); }
.tr-tabs a.is-active { background: var(--navy); color: #fff; }
.tr-tabs .count { font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: rgba(22, 35, 78, .08); }
.tr-tabs a.is-active .count { background: rgba(255, 255, 255, .2); }
.tr-filters { display: flex; gap: 8px; flex: 1; justify-content: flex-end; min-width: 260px; }
.tr-filters input, .tr-filters select { height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: #fff; color: var(--ink); }
.tr-filters input { flex: 1; max-width: 320px; }
.tr-filters input:focus, .tr-filters select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22, 35, 78, .12); }
.tr-hero .tr-toolbar { margin-top: 32px; }

.tr-section { padding-block: 40px 80px; }
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tr-grid { grid-template-columns: 1fr; } .tr-filters { min-width: 100%; flex-wrap: wrap; } .tr-filters input { max-width: none; } }
.tr-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.tr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22, 35, 78, .22); color: inherit; }
.tr-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #4F46E5); overflow: hidden; }
.tr-card__media > img, .tr-card__media .tr-fit { transition: transform .5s var(--ease); }
.tr-card:hover .tr-card__media > img, .tr-card:hover .tr-card__media .tr-fit { transform: scale(1.04); }
.tr-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.tr-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.tr-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; flex: 1; }
.tr-card__title { font-size: 1.1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .87rem; color: var(--muted); }
.tr-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tr-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.tr-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.tr-price { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.tr-price small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tr-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--brand); }
.tr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.tr-badge--open { background: var(--ok-bg); color: var(--ok); }
.tr-badge--soon { background: var(--warn-bg); color: var(--warn); }
.tr-badge--closed { background: #F1F5F9; color: var(--muted); }
.tr-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tr-empty { text-align: center; padding: 56px 20px; background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }

.tr-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.tr-pagination a, .tr-pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; }
.tr-pagination a:hover { border-color: var(--navy); }
.tr-pagination .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-pagination .is-disabled { opacity: .45; }

.tr-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.tr-brandrow img { height: 38px; width: auto; display: block; }
.tr-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .15s, transform .15s; }
.tr-back:hover { border-color: var(--navy); transform: translateX(-2px); color: var(--navy); }

.tr-dhero { background: radial-gradient(900px 360px at 90% 0%, rgba(228, 37, 40, .08), transparent 60%), radial-gradient(800px 340px at 0% 100%, rgba(79, 70, 229, .08), transparent 60%), var(--paper-2); border-bottom: 1px solid var(--line); }
.tr-dhero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 18px 48px; }
@media (max-width: 959px) { .tr-dhero__grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; } .tr-dhero__media { order: -1; } }
.tr-dhero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 12px; }
.tr-dhero .tr-meta { margin-top: 16px; font-size: .95rem; }
.tr-dhero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-dhero__badges .tr-badge { box-shadow: none; border: 1px solid var(--line); }
.tr-dhero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.tr-dhero__price small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tr-dhero__price b { font-size: 1.7rem; color: var(--navy); }
.tr-dhero__media { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #4F46E5 100%); }
.tr-dhero__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 24px; }
.tr-dhero__placeholder::before, .tr-dhero__placeholder::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.tr-dhero__placeholder::before { width: 320px; height: 320px; top: -120px; right: -80px; }
.tr-dhero__placeholder::after { width: 220px; height: 220px; bottom: -90px; left: -60px; background: rgba(228, 37, 40, .22); border: 0; }
.tr-dhero__placeholder b { position: relative; font-size: 4.5rem; line-height: 1; }
.tr-dhero__placeholder span { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.tr-dhero__mode { position: absolute; left: 14px; bottom: 14px; }

.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-block: 40px 80px; }
@media (max-width: 959px) { .tr-layout { grid-template-columns: 1fr; padding-bottom: 120px; } }
.tr-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.tr-panel + .tr-panel { margin-top: 20px; }
.tr-panel h2 { font-size: 1.25rem; margin-bottom: 14px; }
.tr-schedule { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-schedule li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.tr-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 12px; background: var(--paper); color: var(--navy); line-height: 1.1; }
.tr-date b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.tr-date span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tr-trainers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tr-person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.tr-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.tr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tr-person { align-items: flex-start; }
.tr-person__bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: .82rem; color: var(--muted); }

.tr-fees { position: sticky; top: 24px; scroll-margin-top: 24px; }
@media (max-width: 959px) { .tr-fees { position: static; } }
.tr-fees__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tr-tier { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.tr-tier + .tr-tier { margin-top: 10px; }
.tr-tier:hover { border-color: rgba(22, 35, 78, .35); }
.tr-tier input { position: absolute; opacity: 0; pointer-events: none; }
.tr-tier__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.tr-tier__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .15s; }
.tr-tier__name { flex: 1; font-weight: 600; color: var(--navy); }
.tr-tier__price { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.tr-tier:has(input:checked) { border-color: var(--brand); background: rgba(228, 37, 40, .04); box-shadow: 0 0 0 3px rgba(228, 37, 40, .1); }
.tr-tier:has(input:checked) .tr-tier__dot { border-color: var(--brand); }
.tr-tier:has(input:checked) .tr-tier__dot::after { transform: scale(1); }
.tr-tier input:focus-visible + .tr-tier__dot { outline: 2px solid var(--brand); outline-offset: 2px; }
.tr-apply { width: 100%; margin-top: 16px; min-height: 52px; font-size: 1rem; border-radius: 14px; }
.tr-seats { margin: -6px 0 12px; font-size: .86rem; font-weight: 600; color: var(--ok); }
.tr-seats--few { color: var(--brand); }
.tr-note { font-size: .84rem; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.tr-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.tr-mobilebar { display: none; }
@media (max-width: 959px) {
    .tr-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(22, 35, 78, .25); }
    .tr-mobilebar__price { flex: 1; min-width: 0; }
    .tr-mobilebar__price small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
    .tr-mobilebar__price b { font-size: 1.15rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
}

.tr-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-block: 28px 80px; }
@media (max-width: 959px) { .tr-form-layout { grid-template-columns: 1fr; padding-bottom: 130px; } .tr-summary { order: -1; } }
.tr-fieldset { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tr-fieldset + .tr-fieldset { margin-top: 18px; }
.tr-legend { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 18px; padding: 0; }
.tr-legend i { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(22, 35, 78, .07); color: var(--navy); font-style: normal; }
.tr-legend svg { width: 18px; height: 18px; }
.tr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.tr-fields .full { grid-column: 1 / -1; }
@media (max-width: 639px) { .tr-fields { grid-template-columns: 1fr; } .tr-fieldset { padding: 18px; } }
.tr-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tr-field label .req { color: var(--brand); }
.tr-input { width: 100%; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tr-input::placeholder { color: var(--muted-2); }
.tr-input:hover { border-color: #94A3B8; }
.tr-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22, 35, 78, .12); }
textarea.tr-input { min-height: 96px; resize: vertical; }
.tr-input.is-invalid { border-color: #DC2626; background: var(--bad-bg); }
.tr-error { margin-top: 6px; font-size: .84rem; color: #DC2626; }
.tr-hint { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.tr-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); cursor: pointer; }
.tr-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.tr-check a { color: var(--brand); font-weight: 600; }
.tr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tr-summary { position: sticky; top: 24px; }
@media (max-width: 959px) { .tr-summary { position: static; } }
.tr-summary__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); margin-bottom: 14px; }
.tr-summary dl { margin: 14px 0 0; display: grid; gap: 10px; }
.tr-summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.tr-summary dt { color: var(--muted); }
.tr-summary dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.tr-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tr-total b { font-size: 1.45rem; color: var(--navy); }
.tr-change { font-size: .86rem; color: var(--brand); font-weight: 600; }
.tr-submit { width: 100%; min-height: 54px; font-size: 1.02rem; border-radius: 14px; }
.tr-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.tr-submitbar { margin-top: 20px; }
@media (max-width: 959px) { .tr-submitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(22, 35, 78, .25); } }
.tr-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.tr-secure svg { width: 14px; height: 14px; color: var(--ok); }
.tr-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: .93rem; margin-bottom: 18px; }
.tr-alert--error { background: var(--bad-bg); color: #991B1B; border: 1px solid var(--bad-line); }
.tr-alert--success { background: var(--ok-bg); color: #065F46; border: 1px solid var(--ok-line); }
.tr-alert--info { background: var(--info-bg); color: #075985; border: 1px solid var(--info-line); }
.tr-status { max-width: 640px; margin: 0 auto; padding-block: 56px 80px; text-align: center; }
.tr-status__icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.tr-status__icon svg { width: 44px; height: 44px; }
.tr-status__icon--ok { background: var(--ok-bg); color: #059669; box-shadow: 0 0 0 10px rgba(5, 150, 105, .08); }
.tr-status__icon--wait { background: var(--warn-bg); color: #D97706; box-shadow: 0 0 0 10px rgba(217, 119, 6, .08); }
.tr-status__icon--fail { background: var(--bad-bg); color: #DC2626; box-shadow: 0 0 0 10px rgba(220, 38, 38, .08); }
.tr-status h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.tr-receipt { margin: 28px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.tr-receipt dl { margin: 0; display: grid; gap: 12px; }
.tr-receipt dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .93rem; }
.tr-receipt dt { color: var(--muted); }
.tr-receipt dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.tr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ============ 10. Auth ============ */
.s-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--paper-2); }
@media (min-width: 1024px) { .s-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.s-auth__brand { display: none; position: relative; overflow: hidden; padding: 48px; color: rgba(255, 255, 255, .8); background: radial-gradient(700px 360px at 100% 0, rgba(228, 37, 40, .38), transparent 60%), radial-gradient(600px 360px at 0 100%, rgba(79, 70, 229, .32), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); }
@media (min-width: 1024px) { .s-auth__brand { display: flex; flex-direction: column; justify-content: space-between; } }
.s-auth__brand::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1.1px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.s-auth__brand > * { position: relative; }
.s-auth__brand img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.s-auth__brand h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.4rem); max-width: 16ch; }
.s-auth__points { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.s-auth__points li { display: flex; gap: 12px; align-items: flex-start; }
.s-auth__points svg { width: 22px; height: 22px; flex-shrink: 0; color: #FCA5A5; }
.s-auth__main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 20px 48px; }
.s-auth__top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.s-auth__top img { height: 40px; width: auto; }
@media (min-width: 1024px) { .s-auth__top img { visibility: hidden; } }
.s-auth__card { width: 100%; max-width: 440px; padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.s-auth__card h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.s-auth__card > p.s-muted { margin-top: 8px; }
.s-auth__card form { margin-top: 24px; }
.s-auth__foot { margin-top: 22px; text-align: center; font-size: .92rem; color: var(--muted); }
.s-otp { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .5em; text-align: center; padding-left: calc(14px + .5em); }
.s-auth__foot a { font-weight: 600; color: var(--brand); }

/* ============ 11. Utilities / print ============ */
.s-mt-1 { margin-top: 8px; } .s-mt-2 { margin-top: 16px; } .s-mt-3 { margin-top: 24px; } .s-mt-4 { margin-top: 32px; }
.s-center { text-align: center; }
.s-hide-mobile { display: none; }
@media (min-width: 768px) { .s-hide-mobile { display: initial; } .s-only-mobile { display: none !important; } }
.s-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Only hidden when JS runs (html.js), so content never disappears without it. */
.js .s-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .s-reveal.is-in { opacity: 1; transform: none; }
/* Become a trainer: checkbox chips + "how it works" steps */
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip { position: relative; cursor: pointer; }
.tr-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tr-chip span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.tr-chip:hover span { border-color: var(--navy); }
.tr-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.tr-howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: howto; }
.tr-howto li { position: relative; padding-left: 42px; counter-increment: howto; font-size: .9rem; color: var(--ink-soft, var(--muted)); }
.tr-howto li::before { content: counter(howto); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.tr-howto b { display: block; color: var(--navy); font-size: .95rem; }

/* Our trainers (list + profile) */
.tr-trainer-card .s-card__body { align-items: center; text-align: center; }
.tr-trainer-card__photo, .tr-trainer-hero__photo { display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; font-weight: 800; flex-shrink: 0; }
.tr-trainer-card__photo { width: 96px; height: 96px; font-size: 2rem; margin: 0 auto 14px; box-shadow: 0 0 0 4px var(--paper); }
.tr-trainer-hero__photo { width: 180px; height: 180px; font-size: 4rem; margin-inline: auto; border: 4px solid rgba(255, 255, 255, .25); }
.tr-trainer-card__photo img, .tr-trainer-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.tr-trainer-card__role { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.tr-trainer-card__role span { color: var(--muted); font-size: .85rem; }
.tr-trainer-card__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0; }
aside .tr-trainer-card__tags { justify-content: flex-start; margin-bottom: 0; }
.tr-trainer-card__tags a.s-badge { text-decoration: none; }
.tr-trainer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tr-trainer-layout > div > .tr-panel + .tr-panel { margin-top: 20px; }
@media (max-width: 959px) { .tr-trainer-layout { grid-template-columns: 1fr; } .tr-trainer-layout aside { order: -1; } }
.tr-trainer-sub { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.tr-panel > h2 + .tr-trainer-sub { margin-top: 0; }
.tr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .tr-grid--2 { grid-template-columns: 1fr; } }
.tr-trainer-past { list-style: none; margin: 0; padding: 0; }
.tr-trainer-past li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.tr-trainer-past li:last-child { border-bottom: 0; }
.tr-trainer-past a { color: var(--navy); font-weight: 600; text-decoration: none; }
.tr-trainer-past span { color: var(--muted); white-space: nowrap; }

@media print {
    .s-topbar, .s-header, .s-footer, .s-accent, .tr-mobilebar, .tr-submitbar, .s-no-print { display: none !important; }
    body { background: #fff; }
}
