/* ==========================================================================
   Find Instructor - premium monochrome theme for the public website
   Loaded only on the public site and auth pages (body.site-theme).

   Type system
   - Display: Inter Tight 600 (headings, names, prices, numbers)
   - Body:    Inter 400/500
   - Accent:  Instrument Serif italic, only inside headings
   ========================================================================== */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../vendor/inter-tight/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../vendor/instrument-serif/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../../vendor/instrument-serif/instrument-serif-latin-400-italic.woff2") format("woff2"); }

.site-theme {
    --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

    --ink: #0a0a0a;
    --ink-2: #171717;
    --ink-3: #2a2a2a;
    --body: #404040;
    --muted: #737373;
    --muted-2: #a3a3a3;
    --line: #ececec;
    --line-strong: #d9d9d9;
    --paper: #ffffff;
    --paper-2: #fafafa;
    --paper-3: #f3f3f3;
    --wa: #25d366;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -16px rgba(0, 0, 0, .14);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .04), 0 30px 60px -30px rgba(0, 0, 0, .32);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --fi-primary: var(--ink);
    --fi-primary-rgb: 10, 10, 10;
    --fi-primary-dark: #000;
    --fi-primary-soft: var(--paper-3);
    --fi-ink: var(--ink);
    --fi-muted: var(--muted);
    --fi-line: var(--line);
    --fi-canvas: var(--paper);
    --bs-primary: var(--ink);
    --bs-primary-rgb: 10, 10, 10;
    --bs-link-color: var(--ink);
    --bs-link-color-rgb: 10, 10, 10;
    --bs-link-hover-color: #000;
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--body);
    --bs-body-font-family: var(--font-body);
    --bs-border-color: var(--line);
    --bs-focus-ring-color: rgba(10, 10, 10, .15);

    background: var(--paper);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -.006em;
    text-rendering: optimizeLegibility;
}

.site-theme ::selection { background: var(--ink); color: #fff; }
.site-theme h1, .site-theme h2, .site-theme h3, .site-theme h4, .site-theme h5, .site-theme h6,
.site-theme .h1, .site-theme .h2, .site-theme .h3, .site-theme .h4, .site-theme .h5, .site-theme .h6 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.site-theme .text-muted, .site-theme .text-secondary { color: var(--muted) !important; }
.site-theme strong, .site-theme b { color: var(--ink); font-weight: 600; }
.site-theme .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.012em; font-size: 1.06em; }
.site-theme .container { max-width: 1240px; --bs-gutter-x: 2.5rem; }
@media (min-width: 768px) { .site-theme .container { --bs-gutter-x: 4rem; } }
.site-theme .small-caps { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }

/* Buttons ---------------------------------------------------------------- */
.site-theme .btn { border-radius: 999px; font-family: var(--font-body); --bs-btn-font-weight: 500; letter-spacing: -.005em; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.site-theme .btn:active { transform: scale(.98); }
.site-theme .btn .bi-arrow-right, .site-theme .btn .bi-arrow-up-right { transition: transform .25s var(--ease); }
.site-theme .btn:hover .bi-arrow-right { transform: translateX(3px); }
.site-theme .btn:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
.site-theme .btn-lg { --bs-btn-padding-y: .9rem; --bs-btn-padding-x: 1.65rem; --bs-btn-font-size: 1rem; }
.site-theme .btn-primary { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--ink-3); --bs-btn-hover-border-color: var(--ink-3); --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000; --bs-btn-disabled-bg: var(--ink); --bs-btn-disabled-border-color: var(--ink); --bs-btn-focus-shadow-rgb: 10, 10, 10; }
.site-theme .btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.site-theme .btn-soft { --bs-btn-bg: var(--paper); --bs-btn-border-color: var(--line-strong); --bs-btn-color: var(--ink); --bs-btn-hover-bg: var(--paper); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--paper-2); --bs-btn-active-border-color: var(--ink); box-shadow: none; }
.site-theme .btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--ink); --bs-btn-hover-bg: #e9e9e9; --bs-btn-hover-border-color: #e9e9e9; --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: #dedede; --bs-btn-active-color: var(--ink); }
.site-theme .btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .28); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: #e9e9e9; --bs-btn-active-color: var(--ink); }
.site-theme .btn-whatsapp { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--ink-3); --bs-btn-hover-border-color: var(--ink-3); --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000; --bs-btn-focus-shadow-rgb: 10, 10, 10; }
.site-theme .btn-whatsapp .bi-whatsapp { color: var(--wa); }
.site-theme .btn-link { --bs-btn-color: var(--ink); --bs-btn-hover-color: var(--ink); text-decoration: none; }
.site-theme .link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem; transition: border-color .25s var(--ease), gap .25s var(--ease); }
.site-theme .link-arrow:hover { border-color: var(--ink); gap: .7rem; color: var(--ink); }

/* Forms ------------------------------------------------------------------ */
.site-theme .form-label { color: var(--ink); font-weight: 500; font-size: .82rem; }
.site-theme .form-control, .site-theme .form-select { border-color: var(--line-strong); border-radius: 14px; box-shadow: none; background-color: var(--paper); color: var(--ink); }
.site-theme .form-control:focus, .site-theme .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .07); }
.site-theme .form-control::placeholder { color: var(--muted-2); }
/* Input groups ("£ [price] per hour", "[60] minutes"): one joined control with matching corners and colours. */
.site-theme .input-group-text { border-color: var(--line-strong); border-radius: 14px; background: #f6f6f5; color: var(--muted); font-size: .9375rem; }
.site-theme .input-group > .form-control:has(+ .input-group-text),
.site-theme .input-group > .input-group-text:has(+ .form-control) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.site-theme .input-group > .input-group-text + .form-control,
.site-theme .input-group > .form-control + .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.site-theme .input-group:focus-within .input-group-text { border-color: var(--ink); }
.site-theme .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.site-theme .form-check-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .07); }
.site-theme .input-icon > .bi { color: var(--muted-2); }

/* Badges & chips --------------------------------------------------------- */
.site-theme .badge { font-weight: 500; letter-spacing: 0; }
.site-theme .badge-soft-success, .site-theme .badge-soft-primary, .site-theme .badge-soft-secondary { background: var(--paper-3); color: var(--ink); }
.site-theme .badge-soft-accent { background: var(--ink); color: #fff; }
.site-theme .chip { background: var(--paper); border: 1px solid var(--line); color: var(--ink-3); padding: .3rem .72rem; font-weight: 500; }
.site-theme .chip .bi { color: var(--muted); }
.site-theme .featured-ribbon { background: var(--ink); color: #fff; box-shadow: none; top: -.7rem; font-weight: 500; letter-spacing: .02em; padding: .25rem .7rem; }
.site-theme .avatar { background: var(--paper-3); color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.site-theme .avatar-lg { border-radius: 16px; }

/* Navigation ------------------------------------------------------------- */
.site-theme .site-nav { padding: .85rem 0; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.site-theme .site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-theme .site-nav .nav-link { color: var(--muted); font-weight: 500; font-size: .94rem; position: relative; }
.site-theme .site-nav .nav-link:hover, .site-theme .site-nav .nav-link.active { color: var(--ink); }
@media (min-width: 1200px) {
    .site-theme .site-nav .navbar-nav { padding: .3rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); }
    .site-theme .site-nav .nav-link { padding: .45rem 1rem !important; border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease); }
    .site-theme .site-nav .nav-link:hover { background: var(--paper-3); }
    .site-theme .site-nav .nav-link.active { background: var(--ink); color: #fff; }
}
@media (max-width: 1199.98px) {
    .site-theme .site-nav .navbar-collapse { margin-top: .9rem; padding-top: .25rem; border-top: 1px solid var(--line); }
    .site-theme .site-nav .nav-link { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; padding: .8rem 0 !important; color: var(--ink); border-bottom: 1px solid var(--line); }
}
.site-theme .brand { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.03em; font-size: 1.12rem; }
.site-theme .brand .brand-accent { font-family: var(--font-body); color: var(--ink); font-weight: 500; letter-spacing: -.035em; }
.site-theme .brand-mark { background: var(--ink); box-shadow: none; border-radius: 10px; width: 2.1rem; height: 2.1rem; }
.site-theme .brand-mark .l-plate { font-family: var(--font-display); font-weight: 600; }
.site-theme .brand.brand-light, .site-theme .brand.brand-light:hover { color: #fff; }
.site-theme .brand.brand-light .brand-accent { color: rgba(255, 255, 255, .65); }
.site-theme .brand.brand-light .brand-mark { background: #fff; color: var(--ink); }

/* Section scaffolding ---------------------------------------------------- */
.site-theme .section { padding: 7rem 0; }
@media (max-width: 767.98px) { .site-theme .section { padding: 4.5rem 0; } }
.site-theme .eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-theme .eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.site-theme .display-title { font-family: var(--font-display); font-size: clamp(2.15rem, 4.4vw, 3.5rem); font-weight: 600; letter-spacing: -.042em; line-height: 1.04; color: var(--ink); }
.site-theme .lead-text { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); line-height: 1.7; max-width: 36rem; }
.site-theme .section-head { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .site-theme .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* Hero ------------------------------------------------------------------- */
.site-theme .hero-premium { position: relative; overflow: hidden; padding: 3.5rem 0 5rem; }
@media (min-width: 992px) { .site-theme .hero-premium { padding: 5.5rem 0 7rem; } }
.site-theme .hero-premium::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--paper-3) 1px, transparent 1px), linear-gradient(90deg, var(--paper-3) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 65% 60% at 75% 35%, #000 15%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 65% 60% at 75% 35%, #000 15%, transparent 72%); pointer-events: none; }
.site-theme .hero-premium::after { content: ""; position: absolute; width: 42rem; height: 42rem; right: -10rem; top: -12rem; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .05), transparent 65%); pointer-events: none; }
.site-theme .hero-premium > .container { position: relative; z-index: 1; }
.site-theme .hero-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .95rem .35rem .4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .86rem; font-weight: 500; color: var(--ink-3); box-shadow: var(--shadow-soft); }
.site-theme .hero-badge .count { display: inline-flex; align-items: center; gap: .35rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .2rem .65rem; font-family: var(--font-display); font-weight: 600; font-size: .8rem; }
.site-theme .hero-badge .count::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); }
.site-theme .hero-headline { font-family: var(--font-display); font-size: clamp(2.8rem, 6.8vw, 5.5rem); font-weight: 600; letter-spacing: -.05em; line-height: .98; color: var(--ink); margin: 1.75rem 0 1.5rem; }
.site-theme .hero-headline .serif { letter-spacing: -.02em; padding-right: .05em; }
.site-theme .hero-search { display: flex; align-items: center; gap: .25rem; padding: .45rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-lift); max-width: 36rem; }
.site-theme .hero-search .field { flex: 1; display: flex; align-items: center; gap: .55rem; padding: 0 1rem; min-width: 0; cursor: pointer; }
.site-theme .hero-search .field + .field { border-left: 1px solid var(--line); }
.site-theme .hero-search .field .bi { color: var(--muted); }
.site-theme .hero-search .form-select { border: 0; padding: .7rem 1.8rem .7rem 0; background-position: right 0 center; font-weight: 500; box-shadow: none !important; background-color: transparent; cursor: pointer; }
.site-theme .hero-search .btn { flex-shrink: 0; padding: .85rem 1.6rem; }
@media (max-width: 575.98px) {
    .site-theme .hero-search { flex-direction: column; align-items: stretch; border-radius: 22px; padding: .6rem; }
    .site-theme .hero-search .field { padding: .1rem .6rem; }
    .site-theme .hero-search .field + .field { border-left: 0; border-top: 1px solid var(--line); }
    .site-theme .hero-search .btn { margin-top: .35rem; }
}
.site-theme .hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }
.site-theme .hero-points span { display: inline-flex; align-items: center; gap: .45rem; }
.site-theme .hero-points .bi { color: var(--ink); }

.site-theme .hero-stack { position: relative; max-width: 25.5rem; margin-left: auto; padding: 2.5rem 0 3rem 2rem; }
.site-theme .hero-stack .ghost { position: absolute; inset: 1rem 2.5rem 4rem 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); transform: rotate(-7deg); }
.site-theme .hero-stack .ghost.two { transform: rotate(-3deg); background: var(--paper); box-shadow: var(--shadow-soft); }
.site-theme .hero-stack .instructor-card { position: relative; box-shadow: var(--shadow-lift); }
.site-theme .hero-stack .instructor-card:hover { transform: translateY(-4px); }
.site-theme .hero-float { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1.05rem .7rem .7rem; border-radius: 18px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500; line-height: 1.3; box-shadow: var(--shadow-lift); z-index: 2; animation: fi-float 6s ease-in-out infinite; }
.site-theme .hero-float .icon { width: 2.2rem; height: 2.2rem; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.site-theme .hero-float .icon .bi-whatsapp { color: var(--wa); }
.site-theme .hero-float small { display: block; color: rgba(255, 255, 255, .6); font-size: .74rem; font-weight: 400; }
.site-theme .hero-float.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); animation-delay: -3s; }
.site-theme .hero-float.light .icon { background: var(--paper-3); }
.site-theme .hero-float.light small { color: var(--muted); }
@keyframes fi-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Stats strip ------------------------------------------------------------ */
.site-theme .stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.site-theme .stats-strip .stat { padding: 2.25rem 1.25rem; text-align: center; }
.site-theme .stats-strip .stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 767.98px) {
    .site-theme .stats-strip .stat:nth-child(odd) { border-left: 0; }
    .site-theme .stats-strip .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.site-theme .stats-strip .value { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.site-theme .stats-strip .label { margin-top: .6rem; font-size: .86rem; color: var(--muted); }

/* Instructor cards ------------------------------------------------------- */
.site-theme .instructor-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.site-theme .instructor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.site-theme .instructor-card .card-top { padding: 1.5rem 1.5rem 1.1rem; }
.site-theme .instructor-card .card-mid { padding: 0 1.5rem; }
.site-theme .instructor-card .card-price { margin: .45rem 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.site-theme .instructor-card .card-actions { padding: 1.1rem 1.5rem 1.5rem; }
.site-theme .instructor-card .name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.025em; color: var(--ink); }
.site-theme .instructor-card .name:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-theme .instructor-card .meta { color: var(--muted); }
.site-theme .instructor-card .price { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.04em; color: var(--ink); }
.site-theme .instructor-card .price small { font-family: var(--font-body); letter-spacing: 0; }
.site-theme .service-line { border-top-color: var(--line); color: var(--body); font-size: .86rem; }
.site-theme .service-line strong { font-family: var(--font-display); font-weight: 600; }

/* How it works (dark) ---------------------------------------------------- */
.site-theme .section-dark { background: var(--ink); color: rgba(255, 255, 255, .7); }
.site-theme .section-dark .display-title { color: #fff; }
.site-theme .section-dark .eyebrow { color: rgba(255, 255, 255, .5); }
.site-theme .section-dark .lead-text { color: rgba(255, 255, 255, .6); }
.site-theme .step { height: 100%; padding: 2.1rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease); }
.site-theme .step:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); transform: translateY(-4px); }
.site-theme .step .number { font-family: var(--font-serif); font-style: italic; font-size: 3.6rem; line-height: 1; color: rgba(255, 255, 255, .3); }
.site-theme .step h3 { color: #fff; font-size: 1.35rem; margin: 1.75rem 0 .65rem; }
.site-theme .step p { color: rgba(255, 255, 255, .6); margin: 0; }
.site-theme .step .step-icon-mono { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 1.2rem; }

/* Cities ----------------------------------------------------------------- */
.site-theme .city-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.5rem; min-height: 9rem; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: var(--paper); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.site-theme .city-card .name { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: break-word; }
.site-theme .city-card .meta { font-size: .85rem; color: var(--muted); margin-top: .35rem; transition: color .35s var(--ease); }
.site-theme .city-card .arrow { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); flex-shrink: 0; transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.site-theme .city-card:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-4px); }
.site-theme .city-card:hover .meta { color: rgba(255, 255, 255, .6); }
.site-theme .city-card:hover .arrow { background: #fff; color: var(--ink); border-color: #fff; transform: rotate(-45deg); }
@media (max-width: 575.98px) {
    .site-theme .city-card { position: relative; min-height: 8rem; padding: 1.15rem; }
    .site-theme .city-card .arrow { position: absolute; top: .9rem; right: .9rem; width: 2.1rem; height: 2.1rem; }
    .site-theme .city-card .name { font-size: 1.1rem; }
}

/* FAQ -------------------------------------------------------------------- */
.site-theme .faq { border-top: 1px solid var(--line); }
.site-theme .faq-item { border-bottom: 1px solid var(--line); }
.site-theme .faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: -.02em; color: var(--ink); }
.site-theme .faq-item summary::-webkit-details-marker { display: none; }
.site-theme .faq-item summary .toggle { width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.site-theme .faq-item[open] summary .toggle { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.site-theme .faq-item .answer { padding: 0 3.5rem 1.6rem 0; color: var(--muted); max-width: 46rem; }

/* CTA -------------------------------------------------------------------- */
.site-theme .cta-premium { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: rgba(255, 255, 255, .7); padding: 3rem 1.5rem; }
@media (min-width: 768px) { .site-theme .cta-premium { padding: 4.75rem 4.25rem; } }
.site-theme .cta-premium::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px); pointer-events: none; }
.site-theme .cta-premium::after { content: ""; position: absolute; width: 40rem; height: 40rem; right: -14rem; top: -20rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 65%); pointer-events: none; }
.site-theme .cta-premium > * { position: relative; z-index: 1; }
.site-theme .cta-premium .display-title { color: #fff; }
.site-theme .cta-premium .eyebrow { color: rgba(255, 255, 255, .5); }
.site-theme .cta-premium .check-list li { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.site-theme .cta-premium .check-list li:last-child { border-bottom: 0; }
.site-theme .cta-premium .check-list .bi { color: #fff; }

/* Page header (directory, legal) ----------------------------------------- */
.site-theme .page-hero { position: relative; padding: 3.25rem 0 2.75rem; border-bottom: 1px solid var(--line); }
.site-theme .page-hero .display-title { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.site-theme .breadcrumb { --bs-breadcrumb-divider-color: var(--muted-2); --bs-breadcrumb-item-active-color: var(--muted); font-size: .85rem; }
.site-theme .breadcrumb a { color: var(--muted); }
.site-theme .breadcrumb a:hover { color: var(--ink); }

/* Directory toolbar ------------------------------------------------------ */
.site-theme .filter-bar { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; background: var(--paper); box-shadow: var(--shadow-soft); }
.site-theme .results-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; margin: 2rem 0 1.4rem; font-size: .92rem; color: var(--muted); }
.site-theme .results-meta strong { font-family: var(--font-display); }
.site-theme .active-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.site-theme .active-filters .chip { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Profile page ----------------------------------------------------------- */
.site-theme .profile-hero { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; }
.site-theme .profile-cover { height: 150px; background: var(--ink); }
.site-theme .profile-cover::after { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px); mask-image: none; -webkit-mask-image: none; }
.site-theme .profile-hero .avatar-xl { border-radius: 24px; background: var(--paper-3); }
.site-theme .profile-hero h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.035em; }
.site-theme .card { --bs-card-border-color: var(--line); --bs-card-border-radius: var(--radius-lg); --bs-card-inner-border-radius: calc(var(--radius-lg) - 1px); box-shadow: none; }
.site-theme .card-header { padding: 1.2rem 1.6rem; }
.site-theme .card-body { padding: 1.6rem; }
.site-theme .card-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 1.08rem; }
.site-theme .contact-card { border: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow-lift); }
.site-theme .contact-card .h3 { font-family: var(--font-display); letter-spacing: -.04em; }
.site-theme .service-icon { background: var(--paper-3); color: var(--ink); border-radius: 12px; }
.site-theme .service-item .fw-bold, .site-theme .detail-list .value { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.site-theme .detail-list li { border-bottom-color: var(--line); }

/* Misc ------------------------------------------------------------------- */
.site-theme .pagination { --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-color: var(--ink); --bs-pagination-hover-color: var(--ink); --bs-pagination-border-color: var(--line); }
.site-theme .pagination .page-link { border-radius: 999px !important; min-width: 2.5rem; text-align: center; }
.site-theme .empty-state .empty-icon { background: var(--paper-3); color: var(--ink); border-radius: 50%; }
.site-theme .alert-info { --bs-alert-bg: var(--paper-2); --bs-alert-border-color: var(--line); --bs-alert-color: var(--ink); }
.site-theme .legal-content { color: var(--body); }
.site-theme .legal-content h2 { font-size: 1.25rem; letter-spacing: -.025em; margin-top: 2rem; }
.site-theme .legal-content p, .site-theme .legal-content li { color: var(--body); line-height: 1.75; }

/* Footer ----------------------------------------------------------------- */
.site-theme .site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .6); }
.site-theme .site-footer a:not(.btn) { color: rgba(255, 255, 255, .62); transition: color .25s var(--ease); }
.site-theme .site-footer a:not(.btn):hover { color: #fff; }
.site-theme .site-footer .btn { color: var(--bs-btn-color); }
.site-theme .site-footer .btn:hover { color: var(--bs-btn-hover-color); }
.site-theme .site-footer .footer-title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; color: #fff; }
.site-theme .site-footer .footer-heading { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin-bottom: 1.1rem; }
.site-theme .site-footer .footer-links { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.site-theme .site-footer .footer-divider { border-color: rgba(255, 255, 255, .1); opacity: 1; margin: 0; }

/* Auth pages ------------------------------------------------------------- */
.site-theme .auth-aside { background: var(--ink); }
.site-theme .auth-aside::before { border-color: rgba(255, 255, 255, .05); }
.site-theme .auth-aside h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; color: #fff; }
.site-theme .auth-aside .feature-list .bi { color: #fff; }
.site-theme .auth-quote { border-radius: var(--radius); }
.site-theme .auth-card h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; }

/* Reveal on scroll ------------------------------------------------------- */
.site-theme.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.site-theme.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .site-theme.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
    .site-theme .instructor-card, .site-theme .city-card, .site-theme .btn, .site-theme .step { transition: none; }
    .site-theme .hero-float { animation: none; }
}
.site-theme .hero-stack .featured-ribbon { display: none; }

/* Directory (search page) ------------------------------------------------ */
.site-theme .directory-hero { padding-bottom: 1.5rem; }
.site-theme .directory { padding: 1.25rem 0 4.5rem; }
@media (min-width: 992px) { .site-theme .directory { padding: 2.5rem 0 6rem; } }

.site-theme .city-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .5rem; margin: 0 calc(var(--bs-gutter-x) * -.5); padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent); }
.site-theme .city-chips::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .site-theme .city-chips { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; margin: 0; padding-left: 0; padding-right: 0; } }
.site-theme .city-chip { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-3); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.site-theme .city-chip .count { font-family: var(--font-display); font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--paper-3); border-radius: 999px; padding: .05rem .5rem; transition: inherit; }
.site-theme .city-chip:hover { border-color: var(--ink); color: var(--ink); }
.site-theme .city-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-theme .city-chip.active .count { background: rgba(255, 255, 255, .16); color: #fff; }

/* Search bar (filters in one row on desktop) */
.site-theme .search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "search search" "city city" "gearbox price" "phone phone" "submit submit";
    margin-bottom: 1.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}
.site-theme .sb-search { grid-area: search; }
.site-theme .sb-city { grid-area: city; }
.site-theme .sb-gearbox { grid-area: gearbox; }
.site-theme .sb-instructor { grid-area: instructor; }
.site-theme .sb-price { grid-area: price; }
.site-theme .sb-phone { grid-area: phone; cursor: text; }
.site-theme .sb-submit { grid-area: submit; }

.site-theme .sb-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-width: 0; margin: 0; padding: .85rem 1.1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; cursor: pointer; }
.site-theme .sb-search { cursor: text; }
.site-theme .sb-price { border-left: 1px solid var(--line); }
.site-theme .sb-label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.2; transition: color .2s var(--ease); }
.site-theme .sb-field:hover .sb-label, .site-theme .sb-field:focus-within .sb-label { color: var(--ink); }
/* Keyboard and click focus: a thin underline, never a filled box */
.site-theme .sb-field::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .45rem; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); pointer-events: none; }
.site-theme .sb-field:focus-within::after { transform: scaleX(1); }
.site-theme .hero-search .field { position: relative; }
.site-theme .hero-search .field::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -.3rem; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); pointer-events: none; }
.site-theme .hero-search .field:focus-within::after { transform: scaleX(1); }
.site-theme :is(a, button, .btn, summary, .city-chip, .filter-pill):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: none; }
.site-theme .sb-control { display: flex; align-items: center; gap: .5rem; min-height: 1.75rem; }
.site-theme .sb-control .bi { color: var(--muted); font-size: .9rem; }
.site-theme .sb-control input { width: 100%; min-width: 0; border: 0; border-radius: 0; outline: 0; padding: 0; background: transparent; font-size: .98rem; font-weight: 500; color: var(--ink); box-shadow: none; }
.site-theme .sb-control input::placeholder { color: var(--muted-2); font-weight: 400; }
.site-theme .sb-control input::-webkit-search-cancel-button { cursor: pointer; }
.site-theme .sb-field .form-select { width: 100%; max-width: 100%; min-height: 1.75rem; align-self: stretch; border: 0; border-radius: 0; padding: 0 1.35rem 0 0; background-color: transparent; background-position: right 0 center; background-size: 12px 9px; font-size: .98rem; font-weight: 500; color: var(--ink); box-shadow: none !important; outline: 0; cursor: pointer; text-overflow: ellipsis; }
.site-theme .sb-submit { margin: .6rem; padding: .85rem 1.5rem; }

/* Tablet: search + button on top, the four filters in one row below */
@media (min-width: 768px) {
    .site-theme .search-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas: "search search search submit" "city gearbox price phone";
        border-radius: 26px;
    }
    .site-theme .sb-field { border-bottom: 0; }
    .site-theme .sb-search { border-bottom: 1px solid var(--line); }
    .site-theme .sb-city, .site-theme .sb-gearbox, .site-theme .sb-instructor, .site-theme .sb-price { border-left: 0; }
    .site-theme .sb-gearbox, .site-theme .sb-price, .site-theme .sb-phone { border-left: 1px solid var(--line); }
    .site-theme .sb-submit { align-self: center; margin: .5rem .6rem .5rem 0; border-bottom: 0; }
    .site-theme .search-bar::after { content: ""; grid-row: 1; grid-column: 4; border-bottom: 1px solid var(--line); pointer-events: none; }
}

/* Desktop: everything in a single pill */
@media (min-width: 992px) {
    .site-theme .search-bar {
        grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr) auto;
        grid-template-areas: "search city gearbox price phone submit";
        align-items: stretch;
        border-radius: 999px;
        padding-left: .6rem;
    }
    .site-theme .search-bar::after { content: none; }
    .site-theme .sb-field, .site-theme .sb-search { border: 0; padding: .7rem 1.1rem; }
    .site-theme .sb-field:not(.sb-search) { border-left: 1px solid var(--line); margin: .9rem 0; padding-top: 0; padding-bottom: 0; }
    .site-theme .sb-field:not(.sb-search)::after { bottom: -.5rem; }
    .site-theme .sb-submit { margin: .4rem .4rem .4rem .6rem; padding: .95rem 1.7rem; }
}
@media (min-width: 1200px) {
    .site-theme .sb-field, .site-theme .sb-search { padding-left: 1.4rem; padding-right: 1.4rem; }
}

/* Results */
.site-theme .results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.site-theme .results-count { color: var(--muted); font-size: .95rem; }
.site-theme .results-count strong { font-family: var(--font-display); }
.site-theme .results-tools { display: flex; align-items: center; gap: .5rem; }
.site-theme .sort-select { position: relative; }
.site-theme .sort-select .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--muted); pointer-events: none; }
.site-theme .sort-select .form-select { border-radius: 999px; padding: .45rem 2.2rem .45rem 2.1rem; font-size: .88rem; font-weight: 500; min-width: 11.5rem; }

.site-theme .active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.site-theme .filter-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .55rem .38rem .85rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500; transition: background .2s var(--ease); }
.site-theme .filter-pill .bi { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(255, 255, 255, .15); font-size: .6rem; }
.site-theme .filter-pill:hover { background: var(--ink-3); color: #fff; }
.site-theme .filter-clear { margin-left: .25rem; font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-theme .filter-clear:hover { color: var(--ink); }

.site-theme .directory-empty { text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.site-theme .directory-empty .empty-icon { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); color: var(--ink); font-size: 1.4rem; }

.site-theme .instructor-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
.site-theme .instructor-card .card-actions { flex-wrap: wrap; }
.site-theme .instructor-card .card-actions .btn { flex: 1 1 8.5rem; white-space: nowrap; }

/* ==========================================================================
   Panels (admin and instructor) - same monochrome system as the website
   ========================================================================== */
.panel-theme { --bs-body-bg: var(--paper-2); background: var(--paper-2); font-size: .9375rem; }
.panel-theme .panel-main { background: var(--paper-2); min-height: 100vh; }

/* Sidebar */
/* The sidebar carries the same glow as the site's dark bands. */
.panel-theme .sidebar, .panel-theme .sidebar-inner {
    background:
        radial-gradient(95% 55% at 12% 0%, rgba(37, 99, 235, .42), transparent 62%),
        radial-gradient(75% 45% at 98% 14%, rgba(124, 58, 237, .34), transparent 64%),
        #0b1020;
    --bs-offcanvas-bg: #0b1020;
}
.panel-theme .sidebar-role { border-radius: 12px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); }
.panel-theme .sidebar-role .bi { color: #9db6ff; }
.panel-theme .sidebar-heading { color: rgba(255, 255, 255, .35); letter-spacing: .12em; }
.panel-theme .sidebar-link { border-radius: 12px; color: rgba(255, 255, 255, .68); }
.panel-theme .sidebar-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.panel-theme .sidebar-link.active { background: #2563eb; color: #fff; box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .9); }
.panel-theme .sidebar-link .badge { background: #7c3aed; color: #fff; }
.panel-theme .sidebar-link.active .badge { background: rgba(255, 255, 255, .22); color: #fff; }
.panel-theme .sidebar-footer { border-top-color: rgba(255, 255, 255, .08); }
.panel-theme .sidebar .avatar { background: rgba(147, 180, 255, .18); color: #cfdcff; }

/* Top bar */
.panel-theme .topbar { background: color-mix(in srgb, var(--paper-2) 85%, transparent); border-bottom-color: var(--line); }
.panel-theme .user-chip { border-color: var(--line); }
.panel-theme .user-chip:hover { border-color: var(--line-strong); }
.panel-theme .dropdown-menu { --bs-dropdown-link-active-bg: #2563eb; border-radius: 16px; }

/* Headings and stats */
.panel-theme .page-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.panel-theme .stat-card { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: none; }
.panel-theme .stat-value { font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; }
.panel-theme .stat-icon { border-radius: 14px; }
.panel-theme .tone-primary, .panel-theme .tone-violet, .panel-theme .tone-slate { background: var(--paper-3); color: var(--ink); }
@media (max-width: 575.98px) {
    .panel-theme .stat-card { flex-direction: column; gap: .75rem; padding: 1rem; }
    .panel-theme .stat-icon { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; }
    .panel-theme .stat-value { font-size: 1.35rem; }
    .panel-theme .stat-hint { display: none; }
}

/* Tables, filters and misc */
.panel-theme .table-card { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: none; }
.panel-theme .table thead th { background: var(--paper-2); color: var(--muted); }
.panel-theme .table { --bs-table-hover-bg: var(--paper-2); }
.panel-theme .filter-bar { box-shadow: none; }
.panel-theme .list-row { border-bottom-color: var(--line); }
.panel-theme .checklist .bi-check-circle-fill { color: var(--ink); }
.panel-theme .profile-cover { height: 110px; }
.panel-theme .photo-preview { border-radius: 18px; }
.panel-theme .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }

/* Error pages */
.site-theme .error-shell { background: var(--paper); }
.site-theme .error-code { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: -.06em; }

/* Panel tables: keep rows inside their card at every width */
.panel-theme .cell-truncate { max-width: 95px; }
@media (min-width: 400px) { .panel-theme .cell-truncate { max-width: 140px; } }
@media (min-width: 576px) { .panel-theme .cell-truncate { max-width: 170px; } }
@media (min-width: 1400px) { .panel-theme .cell-truncate { max-width: 230px; } }
@media (min-width: 768px) { .panel-theme .cell-primary { min-width: 200px; } }
.panel-theme .table .btn-sm { --bs-btn-padding-x: .75rem; }
.panel-theme .table .btn-icon.btn-sm { --bs-btn-padding-x: 0; }

/* Listing availability and specialities */
.site-theme .card-specialisms { color: var(--muted); }
.site-theme .card-specialisms .more { background: var(--paper-3); color: var(--ink); }
.site-theme .specialism-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: .6rem; }
.site-theme .specialism-list a { display: flex; align-items: center; gap: .65rem; height: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .9rem; font-weight: 500; color: var(--ink); transition: border-color .2s var(--ease); }
.site-theme .specialism-list a:hover { border-color: var(--ink); }
.site-theme .specialism-list .bi { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper-3); font-size: .9rem; flex-shrink: 0; }
.site-theme .refine-chips .bi { font-size: .85rem; }

/* Mobile number in the search bar */
.site-theme .sb-phone.is-invalid .sb-label { color: #b42318; }
.site-theme .search-error { margin: -.75rem 0 .75rem; color: #b42318; font-size: .875rem; font-weight: 500; }

/* Sign-in and sign-up: a driving photo fills the dark side, shaded so the white text stays readable. */
.site-theme .auth-aside {
    background:
        linear-gradient(180deg, rgba(17, 17, 16, .72) 0%, rgba(17, 17, 16, .38) 32%, rgba(17, 17, 16, .55) 58%, rgba(17, 17, 16, .94) 100%),
        url('../../images/auth-driving.jpg') center 35% / cover no-repeat,
        var(--ink);
}
.site-theme .auth-aside::before { display: none; }
.site-theme .auth-aside p, .site-theme .auth-aside .feature-list li { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.site-theme .auth-aside h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.site-theme .auth-quote { background: rgba(17, 17, 16, .55); border-color: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Panel sidebar: tighter spacing so the menu fits, and no visible inner scrollbar (it still scrolls on short screens). */
.panel-theme .sidebar-nav { scrollbar-width: none; -ms-overflow-style: none; }
.panel-theme .sidebar-nav::-webkit-scrollbar { display: none; }
.panel-theme .sidebar-heading { padding: .85rem .75rem .35rem; }
.panel-theme .sidebar-link { padding: .55rem .75rem; margin-bottom: .1rem; }
.panel-theme .sidebar-brand { padding: 1.1rem 1.25rem .85rem; }
.panel-theme .sidebar-role { margin-bottom: .5rem; }
.panel-theme .sidebar-footer { padding: .85rem 1rem; }

/* Instructor gallery on the public listing: a strip that swipes, with arrows when there is more to see. */
.fi-carousel { position: relative; }
.fi-carousel-track { display: flex; gap: .6rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fi-carousel-track::-webkit-scrollbar { display: none; }
.fi-carousel-track > li { flex: 0 0 calc((100% - 1.8rem) / 4); scroll-snap-align: start; }
.fi-carousel-track a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.fi-carousel-track img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fi-carousel-track a:hover img, .fi-carousel-track a:focus-visible img { transform: scale(1.04); }
.fi-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--fi-line, #e2e8f0); border-radius: 50%; background: #fff; color: #0f172a; font-size: 1.1rem; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); cursor: pointer; }
.fi-carousel-nav:hover, .fi-carousel-nav:focus-visible { background: #0f172a; color: #fff; }
.fi-carousel-nav[hidden] { display: none; }
.fi-carousel-prev { left: -.75rem; }
.fi-carousel-next { right: -.75rem; }
@media (max-width: 991.98px) { .fi-carousel-track > li { flex-basis: calc((100% - 1.2rem) / 3); } }
@media (max-width: 575.98px) { .fi-carousel-track > li { flex-basis: calc((100% - .6rem) / 2); } .fi-carousel-prev { left: 0; } .fi-carousel-next { right: 0; } }

/* The three big cards under the hero: find, browse, list. */
.fi-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fi-cta-card { position: relative; display: flex; flex-direction: column; min-height: 20rem; padding: 2rem; border-radius: var(--radius-lg); color: #fff; overflow: hidden; text-decoration: none; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fi-cta-card:hover, .fi-cta-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: #fff; }
.fi-cta-find { background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 100%); }
.fi-cta-centres { background: linear-gradient(150deg, #4c1d95 0%, #7c3aed 100%); }
.fi-cta-list { background: linear-gradient(150deg, #0f766e 0%, #14b8a6 100%); }
/* A soft light behind the text, so the artwork never fights the words. */
.fi-cta-card::after { content: ""; position: absolute; right: -18%; bottom: -28%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); z-index: -1; }
.fi-cta-ico { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; margin-bottom: 1.5rem; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #0f172a; font-size: 1.35rem; }
.fi-cta-card h2 { font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 .85rem; }
.fi-cta-card p { font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .88); margin: 0 0 1.75rem; max-width: 22rem; }
.fi-cta-go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.25rem; border-radius: 12px; background: #fff; color: #0f172a; font-weight: 700; font-size: .95rem; }
.fi-cta-go svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.fi-cta-card:hover .fi-cta-go svg, .fi-cta-card:focus-visible .fi-cta-go svg { transform: translateX(3px); }
@media (max-width: 991.98px) { .fi-ctas { grid-template-columns: 1fr; } .fi-cta-card { min-height: 0; } .fi-cta-card br { display: none; } }

/* ---------------------------------------------------------------------------
   The site's colours. The page stays light and roomy; the hero, the two band
   sections and the footer carry a dark mesh backdrop, so the page reads as bands
   of colour rather than one flat sheet. Three colours, the ones on the cards
   under the hero: blue, violet and teal.
   --------------------------------------------------------------------------- */
/* Where the design fills a button, chip or badge, it fills with the brand blue and writes in white. */
body.theme-color { --fill: #2563eb; --fill-ink: #ffffff; --fill-hover: #1d4ed8; }
body.theme-color :is(.btn-primary, .btn-whatsapp) {
    --bs-btn-bg: var(--fill);
    --bs-btn-border-color: var(--fill);
    --bs-btn-color: var(--fill-ink);
    --bs-btn-hover-bg: var(--fill-hover);
    --bs-btn-hover-border-color: var(--fill-hover);
    --bs-btn-hover-color: var(--fill-ink);
    --bs-btn-active-bg: var(--fill-hover);
    --bs-btn-active-border-color: var(--fill-hover);
    --bs-btn-active-color: var(--fill-ink);
    --bs-btn-disabled-bg: var(--fill);
    --bs-btn-disabled-border-color: var(--fill);
    --bs-btn-disabled-color: var(--fill-ink);
}
body.theme-color :is(
    .city-chip.active, .active-filters .chip, .badge-soft-accent, .featured-ribbon,
    .hero-badge .count, .filter-pill, .site-nav .nav-link.active
) { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
body.theme-color .city-chip.active .count { background: rgba(255, 255, 255, .2); color: var(--fill-ink); }
body.theme-color :is(.city-card:hover, .faq-item[open] summary .toggle) { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
body.theme-color ::selection { background: var(--fill); color: var(--fill-ink); }
body.theme-color {
    --blue: #2563eb;
    --violet: #7c3aed;
    --teal: #14b8a6;
    --ds-plate: #2563eb;
    --ds-plate-tint: rgba(37, 99, 235, .12);
    --ds-line: #dde4f5;
    --ds-line-strong: #b9c6e8;
    --ds-paper: #f6f8fd;
    --ds-surface-sunk: #e9eefb;
    --paper: #f6f8fd;
    --paper-2: #fafbff;
    --paper-3: #e9eefb;
    --line: #dde4f5;
    --line-strong: #b9c6e8;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #1d4ed8;
    --bs-link-hover-color: #1e3a8a;
    --bs-focus-ring-color: rgba(37, 99, 235, .25);
    --fi-primary: #2563eb;
    --fi-primary-rgb: 37, 99, 235;
}

/* --- The dark bands -------------------------------------------------------- */
/* Everything inside a dark band turns light at once, because the design reads its
   colours from these tokens. */
body.theme-color .fi-hero,
body.theme-color .fi-band-in,
body.theme-color .fi-cta {
    --ds-ink: #ffffff;
    --ds-ink-muted: rgba(233, 238, 255, .8);
    --ds-ink-faint: rgba(233, 238, 255, .64);
    --ds-line: rgba(255, 255, 255, .2);
    --ds-line-strong: rgba(255, 255, 255, .34);
    --ds-surface: rgba(255, 255, 255, .1);
    --ds-paper: #0b1020;
    --ds-plate: #8ab4ff;
    color: #fff;
}
body.theme-color .fi-hero { background: #0b1020; padding-bottom: 72px; }
/* The three card colours, blurred, are what makes the band look like more than a dark box. */
body.theme-color .fi-hero::after,
body.theme-color .fi-band-in::after,
body.theme-color .fi-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(45% 55% at 18% 25%, rgba(37, 99, 235, .75), transparent 70%),
        radial-gradient(42% 52% at 78% 30%, rgba(124, 58, 237, .7), transparent 70%),
        radial-gradient(48% 55% at 50% 95%, rgba(20, 184, 166, .55), transparent 70%);
    filter: blur(10px);
}
body.theme-color .fi-hero::after { z-index: -3; }
/* A band is wide and short, so its three colours sit side by side instead of stacked. */
body.theme-color :is(.fi-band-in, .fi-cta)::after {
    background:
        radial-gradient(55% 90% at 8% 15%, rgba(37, 99, 235, .8), transparent 72%),
        radial-gradient(50% 95% at 52% 105%, rgba(124, 58, 237, .65), transparent 72%),
        radial-gradient(52% 90% at 98% 25%, rgba(20, 184, 166, .5), transparent 72%);
}
body.theme-color :is(.fi-band-in, .fi-cta) { background: #0b1020; isolation: isolate; }
body.theme-color :is(.fi-band-in, .fi-cta) > * { position: relative; z-index: 1; }
body.theme-color .fi-hero::before { opacity: .16; }
body.theme-color .fi-glow { display: none; }
/* Cards over a band read as glass. */
body.theme-color :is(.fi-search, .fi-stats, .fi-pill, .fi-steps li, .fi-chat) {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
body.theme-color .fi-seg { background: rgba(255, 255, 255, .12); }
body.theme-color .fi-seg input:checked + span { background: #fff; color: #0b1020; box-shadow: none; }
body.theme-color .fi-hero .fi-btn-ink { background: #fff; color: #0b1020; }
body.theme-color .fi-hero .fi-trust svg { color: #5eead4; }
/* One colour each for the three steps, so they are told apart at a glance. */
body.theme-color .fi-steps li:nth-child(1) .fi-num { color: #93c5fd; }
body.theme-color .fi-steps li:nth-child(2) .fi-num { color: #c4b5fd; }
body.theme-color .fi-steps li:nth-child(3) .fi-num { color: #5eead4; }
body.theme-color :is(.fi-band, .fi-cta) .fi-eyebrow { color: #93c5fd; }
body.theme-color .fi-checks li::before { color: #5eead4; }

/* --- The light sections ---------------------------------------------------- */
/* Popular centres sits on a tinted sheet, so two white sections never run together. */
body.theme-color #cities {
    background: linear-gradient(180deg, rgba(37, 99, 235, .11), rgba(20, 184, 166, .09));
    border-block: 1px solid rgba(37, 99, 235, .12);
    /* The tint runs edge to edge; its contents stay on the same 1280px column as every section. */
    max-width: none;
    padding-left: max(var(--g), calc((100% - 1280px) / 2 + var(--g)));
    padding-right: max(var(--g), calc((100% - 1280px) / 2 + var(--g)));
}
/* That section's bottom padding now belongs to its tinted sheet, so the next one needs its own
   space back instead of starting hard against the tint. */
body.theme-color #cities + .fi-sec { padding-top: var(--ds-space-24); }
body.theme-color .fi-eyebrow { color: var(--blue); }
body.theme-color #featured .fi-eyebrow { color: var(--violet); }
body.theme-color #cities .fi-eyebrow { color: var(--teal); }
body.theme-color .fi-card:hover { border-color: rgba(37, 99, 235, .45); box-shadow: 0 18px 40px -22px rgba(37, 99, 235, .55); }
body.theme-color .instructor-card:hover { border-color: rgba(37, 99, 235, .4); }
body.theme-color .fi-btn-ink { background: var(--blue); color: #fff; }
/* The WhatsApp mark is green for a black button; on the blue one it reads as white. */
body.theme-color .fi-btn-ink .fi-wa { fill: currentColor !important; }
body.theme-color .fi-btn-ink:hover { background: #1d4ed8; }
/* The pages away from home keep the same colour, without the bands. */
body.theme-color .profile-cover { background: linear-gradient(140deg, #2563eb 0%, #7c3aed 100%); }
/* The sign-in picture stays; it is tinted with the brand colours instead of plain black. */
body.theme-color .auth-aside {
    background:
        linear-gradient(170deg, rgba(30, 58, 138, .82) 0%, rgba(76, 29, 149, .62) 45%, rgba(11, 16, 32, .92) 100%),
        url('../../images/auth-driving.jpg') center 35% / cover no-repeat,
        #0b1020;
}
body.theme-color :is(.cta-premium, .section-dark) { background: linear-gradient(140deg, #1e3a8a 0%, #4c1d95 55%, #0f766e 100%); }
/* The footer closes the page the same way the bands break it up. */
body.theme-color .fi-foot { position: relative; isolation: isolate; background: #0b1020; overflow: hidden; }
body.theme-color .fi-foot::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(55% 90% at 8% 10%, rgba(37, 99, 235, .6), transparent 72%),
        radial-gradient(50% 95% at 55% 110%, rgba(124, 58, 237, .5), transparent 72%),
        radial-gradient(52% 90% at 98% 20%, rgba(20, 184, 166, .38), transparent 72%);
    filter: blur(10px);
}
body.theme-color .site-footer { background: linear-gradient(140deg, #111827 0%, #1e3a8a 100%); }
/* With colour on the page, the WhatsApp button may as well be WhatsApp's own green. */
body.theme-color .btn-whatsapp {
    --bs-btn-bg: var(--ds-whatsapp);
    --bs-btn-border-color: var(--ds-whatsapp);
    --bs-btn-hover-bg: #178f45;
    --bs-btn-hover-border-color: #178f45;
    --bs-btn-active-bg: #178f45;
    --bs-btn-active-border-color: #178f45;
    --bs-btn-disabled-bg: var(--ds-whatsapp);
    --bs-btn-disabled-border-color: var(--ds-whatsapp);
}

/* Two sections in a row each brought their own 96px, which left a 192px hole between them.
   One section's bottom padding is the whole gap. */
.fi-sec + .fi-sec { padding-top: 0; }
/* The closing "Ready to start" block sits in the layout, so it is not a sibling .fi-sec. */
.fi-sec + .fi-final { padding-top: 0; }

/* The FAQ used to put its heading in a column of its own beside the questions, which left a tall
   hole under it. The heading now sits above the questions and they take the full width. */
/* design.css loads after this file, so these need to outrank its plain .fi-faq rule. */
.site-theme .fi-faq { grid-template-columns: 1fr; gap: 2.5rem; }
.site-theme .fi-faq-l { max-width: 40rem; }

/* The logo mark is a badge that draws its own circle, so its old framed box is gone. */
.site-theme .fi-mark { background: none; border: 0; border-radius: 0; width: 40px; height: 40px; }
/* The wordmark grows with the badge so the pair still reads as one lockup. */
.site-theme .fi-logo { font-size: 19px; gap: 11px; }
@media (max-width: 400px) { .site-theme .fi-mark { width: 36px; height: 36px; } .site-theme .fi-logo { font-size: 17px; gap: 9px; } }
/* The phone menu was set at headline size; these are links, not headings. */
.site-theme .fi-menu-in > a:not(.fi-btn) { padding: 12px 2px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.site-theme .fi-menu-actions { padding-top: 14px; gap: 8px; }
.site-theme .fi-menu-actions .fi-btn { font-size: 14px; }
.site-theme .fi-mark .logo-mark { width: 100%; height: 100%; }
/* On a dark header the badge turns inside out, the way the brand sheet shows it. */
.site-theme .fi-logo-dark .fi-mark { background: none; border: 0; box-shadow: none; --logo-ink: #f4f2ec; --logo-paper: #0b1020; --logo-accent: #8ab4ff; }

/* The wordmark: ink "GetMe" with the second half in the brand blue, the colour the rest of the
   site is built on. On a dark band both go lighter so they keep their contrast. */
.site-theme .fi-logo-first, .site-theme .brand .brand-first { font-weight: 650; letter-spacing: -.035em; }
.site-theme .fi-logo-rest, .site-theme .brand .brand-accent { font-weight: 650; letter-spacing: -.035em; color: #2563eb; }
.site-theme .fi-logo-dark .fi-logo-rest, .site-theme .brand.brand-light .brand-accent { color: #8ab4ff; }

/* design.css frames both marks in a white rounded box, which the badge does not need: it draws its
   own circle. These outrank it (design.css is loaded after this file). */
body.theme-color .brand-mark,
body.theme-color .brand.brand-light .brand-mark,
body.site-theme .fi-mark,
body.site-theme .fi-logo-dark .fi-mark {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
body.theme-color .brand-mark .logo-mark { width: 100%; height: 100%; }
/* On the dark sign-in panel the badge turns inside out, as the brand sheet shows it. */
body.theme-color .brand.brand-light .brand-mark { --logo-ink: #f4f2ec; --logo-paper: #0b1020; --logo-accent: #8ab4ff; }
/* The footer greys every link, which left the wordmark's "GetMe" dull beside its red half. */
body.theme-color .fi-foot .fi-logo-dark { color: var(--ds-night-ink); }
/* The page the visitor is on is marked in the header with the brand blue, not black. */
body.theme-color .fi-links a.active,
body.theme-color .fi-links a.active:hover { background: var(--fill); color: var(--fill-ink); }
/* The page you are on in a results list, in the brand blue like every other filled control. */
body.theme-color .pagination { --bs-pagination-active-bg: var(--fill); --bs-pagination-active-border-color: var(--fill); --bs-pagination-active-color: var(--fill-ink); }
/* The hero's Search button is white on the dark band, so its hover stays light rather than
   turning into the blue the buttons on the light sections use. */
body.theme-color .fi-hero .fi-btn-ink:hover,
body.theme-color .fi-hero .fi-btn-ink:focus-visible { background: #dfe6ff; color: #0b1020; }
/* The directory's one-line introduction sits under its title, not in a column beside it. */
.site-theme .directory-note { margin-top: .6rem; max-width: 34rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* Photos opened over the page: a dark sheet, the picture centred, the others an arrow away. */
.fi-lightbox .modal-content { background: transparent; border: 0; box-shadow: none; }
.fi-lightbox .carousel-item { text-align: center; }
.fi-lightbox .carousel-item img { max-width: 100%; max-height: 76vh; width: auto; border-radius: 14px; background: #0b1020; }
.fi-lightbox .carousel-control-prev, .fi-lightbox .carousel-control-next { width: 12%; opacity: .85; }
.fi-lightbox .carousel-control-prev:hover, .fi-lightbox .carousel-control-next:hover { opacity: 1; }
.fi-lightbox-close { position: absolute; top: -2.75rem; right: 0; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: .95rem; cursor: pointer; }
.fi-lightbox-close:hover, .fi-lightbox-close:focus-visible { background: #fff; color: #0b1020; }
.fi-lightbox + .modal-backdrop, .modal-backdrop.show { opacity: .8; }
@media (max-width: 575.98px) { .fi-lightbox-close { top: -2.5rem; } }

/* The number an imported listing already carries, shown on the claim page but not editable. */
.claim-number { display: grid; gap: .25rem; padding: 1rem 1.15rem; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.claim-number-k { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.claim-number-v { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.claim-number-v .bi { color: var(--fill, #2563eb); margin-right: .35rem; }
.claim-number-note { font-size: .8125rem; color: var(--muted); }
/* The rest of the design's black fills: the FAQ toggle, the verified badge and the featured ribbon. */
body.theme-color :is(.fi-faq details[open] summary i, .fi-badge-v, .fi-card .fi-featured, .fi-featured) { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
body.theme-color .fi-city:hover { border-color: var(--fill); }
body.theme-color :is(.fi :focus-visible, .fi-card :focus-visible, .site-theme :is(a, button, .btn, summary, .city-chip, .filter-pill):focus-visible) { outline-color: var(--fill); }
/* Ticks, radios and the little underline under an open search field. */
body.theme-color .form-check-input:checked { background-color: var(--fill); border-color: var(--fill); }
body.theme-color :is(.sb-field::after, .hero-search .field::after, .hero-float) { background: var(--fill); }

/* The signed-in panels follow the same brand blue as the public site: they are the same product. */
body.panel-theme { --fill: #2563eb; --fill-ink: #ffffff; --fill-hover: #1d4ed8; }
body.panel-theme :is(.btn-primary, .btn-whatsapp) {
    --bs-btn-bg: var(--fill);
    --bs-btn-border-color: var(--fill);
    --bs-btn-color: var(--fill-ink);
    --bs-btn-hover-bg: var(--fill-hover);
    --bs-btn-hover-border-color: var(--fill-hover);
    --bs-btn-hover-color: var(--fill-ink);
    --bs-btn-active-bg: var(--fill-hover);
    --bs-btn-active-border-color: var(--fill-hover);
    --bs-btn-active-color: var(--fill-ink);
    --bs-btn-disabled-bg: var(--fill);
    --bs-btn-disabled-border-color: var(--fill);
    --bs-btn-disabled-color: var(--fill-ink);
}
body.panel-theme .form-check-input:checked { background-color: var(--fill); border-color: var(--fill); }
body.panel-theme .pagination { --bs-pagination-active-bg: var(--fill); --bs-pagination-active-border-color: var(--fill); --bs-pagination-active-color: var(--fill-ink); }
body.panel-theme :is(.badge-soft-accent, .sidebar-link.active .badge, .featured-ribbon) { background: var(--fill); color: var(--fill-ink); }
body.panel-theme ::selection { background: var(--fill); color: var(--fill-ink); }

/* ---------------------------------------------------------------------------
   The test date exchange: learners offering their driving test to another learner.
   --------------------------------------------------------------------------- */
.site-theme .swap-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.site-theme .swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: 1.25rem; }
.site-theme .swap-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-soft); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.site-theme .swap-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .4); box-shadow: var(--shadow-lift); }
.site-theme .swap-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.site-theme .swap-card-k { margin: 0 0 .15rem; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-theme .swap-card-centre { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.site-theme .swap-card-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; }
.site-theme .swap-card-facts dt { font-size: .75rem; font-weight: 500; color: var(--muted); margin-bottom: .1rem; }
.site-theme .swap-card-facts dd { margin: 0; font-weight: 600; }
.site-theme .swap-card-wants ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.site-theme .swap-card-wants a, .site-theme .swap-card-any { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: rgba(37, 99, 235, .1); color: #1d4ed8; font-size: .8125rem; font-weight: 500; }
.site-theme .swap-card-any { background: rgba(124, 58, 237, .12); color: #6d28d9; font-weight: 600; }
.site-theme .swap-card-wants a:hover { background: rgba(37, 99, 235, .18); }
.site-theme .swap-card-notes { margin: 0; padding-left: .85rem; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.site-theme .swap-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.site-theme .swap-card-posted { font-size: .8125rem; color: var(--muted); }
.site-theme .swap-card-actions { display: flex; gap: .5rem; }
.site-theme .swap-form { max-width: 52rem; }
/* The exchange has its own filters, so the directory's fixed grid areas do not apply. */
.site-theme .swap-filters { display: grid; grid-template-areas: none; grid-template-columns: repeat(4, 1fr) auto; align-items: stretch; }
.site-theme .swap-filters .sb-field { grid-area: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.site-theme .swap-filters .swap-filters-date { border-right: 0; }
.site-theme .swap-filters .swap-filters-go { grid-area: auto; margin: .5rem; }
@media (max-width: 767.98px) {
    .site-theme .swap-filters { grid-template-columns: 1fr 1fr; }
    .site-theme .swap-filters .sb-field { border-right: 0; border-bottom: 1px solid var(--line); }
    .site-theme .swap-filters .swap-filters-go { grid-column: 1 / -1; }
}
/* Posting a test: the numbered steps and the note beside the form. */
.site-theme .swap-step { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .5rem; border-radius: 50%; background: var(--fill, #2563eb); color: #fff; font-size: .8125rem; font-weight: 700; }
.site-theme .swap-how { margin: 0 0 1.25rem; padding-left: 1.1rem; display: grid; gap: .7rem; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.site-theme .swap-how b { color: var(--ink); font-weight: 600; }
.site-theme .swap-how-note { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.55; }
.site-theme .swap-how-note .bi { color: var(--fill, #2563eb); margin-right: .25rem; }
/* The panel that opens from a card on the exchange. */
.site-theme .swap-modal .modal-content { border: 0; border-radius: 12px; }
.site-theme .swap-modal .modal-dialog { max-width: min(68rem, calc(100vw - 2rem)); }
.site-theme .swap-modal .modal-body { padding: 1.5rem 1.75rem 1.75rem; }
.site-theme .swap-modal-head { align-items: center; gap: .85rem; padding: 1.1rem 1.75rem; border-bottom: 1px solid var(--line); }
.site-theme .swap-modal-head .btn-close { margin: 0 0 0 auto; }
.site-theme .swap-modal-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: linear-gradient(140deg, #2563eb, #7c3aed); color: #fff; font-size: 1.25rem; }
.site-theme .swap-modal-sub { font-size: .8125rem; color: var(--muted); }
.site-theme .swap-modal-k { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-theme .swap-modal-facts { display: grid; gap: .6rem; margin: 0; }
.site-theme .swap-modal-facts > div { padding: .75rem .9rem; border-radius: 8px; background: var(--paper-3); }
.site-theme .swap-modal-facts dt { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.site-theme .swap-modal-facts dd { margin: 0; font-weight: 600; line-height: 1.45; }
.site-theme .swap-contact { padding: 1.25rem; border: 1px solid rgba(37, 99, 235, .3); border-radius: 10px; background: rgba(37, 99, 235, .06); }
.site-theme .swap-modal-note { margin: .9rem 0 0; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.site-theme .swap-modal-note .bi { margin-right: .35rem; color: #1d4ed8; }
.site-theme .swap-contact-rule { margin: .35rem 0 0; border-top: 1px solid rgba(37, 99, 235, .2); opacity: 1; }
.site-theme .swap-contact .form-label { font-size: .8125rem; font-weight: 600; }
.site-theme .swap-contact-soon { margin: .85rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

/* --- The panels wear the same colours as the website ----------------------- */
/* The admin and instructor panels used their own navy and a warmer blue. They now read the same
   tokens as the site, so one brand runs from the home page through to the dashboard. */
body.panel-theme {
    --fi-navy: #0b1020;
    --fi-navy-2: #141c36;
    --fi-primary-soft: #e9eefb;
    --fi-accent: #7c3aed;
}

/* --- The cookie question --------------------------------------------------- */
/* It only appears when Google Analytics is switched on, and only until it is answered. */
.site-theme .cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom)); background: #0b1020; color: rgba(233, 238, 255, .9); box-shadow: 0 -10px 30px -18px rgba(11, 16, 32, .9); }
.site-theme .cookie-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; max-width: 64rem; margin: 0 auto; }
.site-theme .cookie-bar-text { margin: 0; font-size: .875rem; line-height: 1.5; }
.site-theme .cookie-bar-text a { color: #9db6ff; text-decoration: underline; }
.site-theme .cookie-bar-actions { display: flex; gap: .5rem; margin-left: auto; }
.site-theme .cookie-bar .btn-soft { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.site-theme .cookie-bar .btn-soft:hover { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 575.98px) { .site-theme .cookie-bar-actions { margin-left: 0; width: 100%; } .site-theme .cookie-bar-actions .btn { flex: 1; } }

/* --- Plans and pricing ----------------------------------------------------- */
.site-theme .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1.25rem; align-items: stretch; }
.site-theme .plan-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.site-theme .plan-card.is-featured { border-color: rgba(37, 99, 235, .45); box-shadow: 0 24px 48px -32px rgba(37, 99, 235, .6); background: #fff; }
.site-theme .plan-flag { position: absolute; top: -.7rem; left: 1.5rem; padding: .2rem .6rem; border-radius: 999px; background: #2563eb; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.site-theme .plan-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.site-theme .plan-tagline { margin: 0; font-size: .875rem; color: var(--muted); }
.site-theme .plan-price { margin: .6rem 0 1rem; font-size: .875rem; color: var(--muted); }
.site-theme .plan-price span { display: block; font-family: var(--font-display, inherit); font-size: 2.3rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); line-height: 1.05; }
.site-theme .plan-features { display: grid; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .9rem; }
.site-theme .plan-features li { display: flex; gap: .55rem; align-items: flex-start; }
.site-theme .plan-features .bi { color: #2563eb; }
.site-theme .plan-note { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.site-theme .plan-note ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
