:root {
    --body-font-family: "Outfit";
    --header-font-family: "Libre Baskerville";

    --primary-color: #0a66e0;
    --primary-contrast-color: #ffffff;
    --primary-hover-color: #2375e3;
    --primary-soft-color: #ebf3fd;

    --secondary-color: #1b1446;
    --secondary-contrast-color: #ffffff;
    --secondary-hover-color: #322c59;
    --secondary-soft-color: #e4e3e9;

    --bg-color: #ffffff;
    --bg-alt-color: #f7f7f7;
    --surface-color: #ffffff;
    --surface-muted-color: #f5f5f5;
    --surface-contrast-color: #000000;

    --text-color: #3d3d4d;
    --text-muted-color: #83838d;
    --text-soft-color: #aeaeb4;

    --accent-color: #2fb579;
    --accent-contrast-color: #ffffff;
    --accent-hover-color: #2aa36d;

    --border-color: #e0e0e0;
    --header-footer-foreground: #ffffff;
    --header-footer-muted: #ffffff;

    --menu-badge-bg-color: #1b1446;
    --menu-badge-text-color: #ffffff;
    --menu-button-bg-color: #1b1446;
    --menu-button-text-color: #ffffff;
    --menu-button-border-color: #1b1446;

    --footer-input-bg-color: #ffffff;
    --footer-input-text-color: #3d3d4d;
    --footer-input-border-color: #dbdbdb;

    --cta-bg-color: #0a66e0;
    --cta-text-color: #ffffff;
    --cta-hover-bg-color: #0852b5;
    --cta-hover-text-color: #ffffff;
    --cta-font-size: 14px;
    --border-radius: 2px;

    --boxed-layout-bg-color: #ffffff;
    --contrast-layout-bg-color: #000000;
    --layout-pattern-img: url('');
}


:root {
  --font-base: var(--body-font-family);
  --font-display: var(--header-font-family);

  /* Spacing scale (balanced density) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Radius: square, as in the designs */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-pill: 999px;

  /* Shadows: almost none; depth comes from photography and colour bands */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--secondary-color) 6%, transparent);
  --shadow-md: 0 10px 30px color-mix(in srgb, var(--secondary-color) 10%, transparent);
  --shadow-lg: 0 20px 50px color-mix(in srgb, var(--secondary-color) 16%, transparent);

  /* Semantic colours (fixed, not tenant-themed) */
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;

  /* Motion: subtle */
  --transition-fast: 160ms ease;
  --transition-med: 300ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 100px;
  --topbar-height: 46px;
}

body {
  --primary: var(--primary-color);
  --secondary: var(--secondary-color);
  --bg: var(--bg-color);
  --text: var(--text-color);
  --accent: var(--accent-color);

  --primary-dark: var(--primary-hover-color);
  --primary-light: var(--primary-soft-color);
  --surface: var(--surface-color);
  --text-muted: var(--text-muted-color);
  --border: var(--border-color);
  --on-primary: var(--primary-contrast-color);
  --on-secondary: var(--secondary-contrast-color);

  /* The accent is for eyebrow labels, rules and links on dark bands. */
  --rule: var(--accent-color);

  /* Section background bands (auto / light / alt / dark). The dark band comes from the
     secondary colour, never from the text colour, so dark presets still get a dark band. */
  --band-light-bg: var(--bg-color);
  --band-alt-bg: var(--bg-alt-color);
  --band-dark-bg: var(--secondary-color);
  --band-dark-text: var(--secondary-contrast-color);
}
/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Headings: classical serif, set in capitals with wide tracking (the designs' signature) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: 0.95rem; }

p { color: var(--text-muted); max-width: 75ch; font-size: 0.97rem; }
.text-center p, p.mx-auto { margin-left: auto; margin-right: auto; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

section { padding: var(--space-7) 0; }

.container { max-width: var(--container-max); }

/* Section heading: small caption, uppercase serif title, short accent underline */
.t6-heading { max-width: 720px; margin: 0 auto var(--space-5); text-align: center; }
.t6-heading h2 { margin-bottom: var(--space-3); }
.t6-heading p { font-size: 1rem; margin-left: auto; margin-right: auto; }
.t6-heading.is-left { margin-left: 0; text-align: left; }
.t6-eyebrow {
  display: block;
  color: var(--accent);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-2);
}
.rs-home-section-shell:not(.home-section-bg-dark) .t6-eyebrow { color: var(--text-muted); }
.t6-rule { display: block; width: 60px; height: 3px; background: var(--rule); margin: var(--space-3) auto 0; }
.is-left .t6-rule, .t6-rule.is-left { margin-left: 0; }

/* Focus visibility (AA) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.visually-hidden-focusable:focus { z-index: 2100; }

@media (max-width: 575.98px) {
  section { padding: var(--space-6) 0; }
}
body {
  --action-bg: var(--cta-bg-color);
  --action-color: var(--cta-text-color);
  --action-border: 2px solid transparent;
  --action-radius: var(--border-radius);
  --action-shadow: none;
  --action-bg-image: none;
  --action-decoration: none;
  --action-hover-bg: var(--cta-hover-bg-color);
  --action-hover-color: var(--cta-hover-text-color);
  --action-hover-border: 2px solid transparent;
  --action-hover-shadow: none;
  --action-hover-bg-image: none;
  --action-outline-color: var(--cta-bg-color);
  --action-outline-hover-color: var(--cta-text-color);
  --action-band-bg: var(--cta-bg-color);
  --action-band-color: var(--cta-text-color);
  --action-band-border: 2px solid transparent;
  --action-band-hover-bg: var(--cta-hover-bg-color);
  --action-band-hover-color: var(--cta-hover-text-color);
  --action-band-hover-border: 2px solid transparent;
  --action-dark-bg: var(--cta-bg-color);
  --action-dark-color: var(--cta-text-color);
  --action-dark-border: 2px solid transparent;
  --action-dark-hover-bg: var(--cta-hover-bg-color);
  --action-dark-hover-color: var(--cta-hover-text-color);
  --action-dark-hover-border: 2px solid transparent;
}

/* ---------- BUTTONS: square, small bold capitals ---------- */
.t6-btn,
.t6-body .sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--action-bg);
  background-image: var(--action-bg-image);
  color: var(--action-color);
  border: var(--action-border);
  border-radius: var(--action-radius);
  text-decoration: var(--action-decoration);
  font-family: var(--font-base);
  font-size: var(--cta-font-size, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.95rem 1.9rem;
  box-shadow: var(--action-shadow);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.t6-btn:hover, .t6-btn:focus-visible,
.t6-body .sx-btn:hover, .t6-body .sx-btn:focus-visible {
  background: var(--action-hover-bg);
  background-image: var(--action-hover-bg-image);
  color: var(--action-hover-color);
  border: var(--action-hover-border);
  box-shadow: var(--action-hover-shadow);
}
.t6-btn.is-sm { padding: 0.65rem 1.25rem; font-size: 0.78rem; }
.t6-btn.is-block { display: flex; width: 100%; }

/* Primary / generic buttons on dark surfaces use the light variant above */
.home-section-bg-dark :is(.t6-btn, .sx-btn),
.t6-cta :is(.t6-btn, .sx-btn),
.t6-hero :is(.t6-btn, .sx-btn),
.t6-navbar :is(.t6-btn, .sx-btn),
.t6-footer :is(.t6-btn, .sx-btn) {
  background: var(--action-dark-bg);
  color: var(--action-dark-color);
  border: var(--action-dark-border);
}
.home-section-bg-dark :is(.t6-btn, .sx-btn):is(:hover, :focus-visible),
.t6-cta :is(.t6-btn, .sx-btn):is(:hover, :focus-visible),
.t6-hero :is(.t6-btn, .sx-btn):is(:hover, :focus-visible),
.t6-navbar :is(.t6-btn, .sx-btn):is(:hover, :focus-visible),
.t6-footer :is(.t6-btn, .sx-btn):is(:hover, :focus-visible) {
  background: var(--action-dark-hover-bg);
  color: var(--action-dark-hover-color);
  border: var(--action-dark-hover-border);
}

/* The CTA band's button (Customization → CTA section) */
.t6-cta :is(.t6-btn, .sx-btn) { background: var(--action-band-bg); color: var(--action-band-color); border: var(--action-band-border); }
.t6-cta :is(.t6-btn, .sx-btn):is(:hover, :focus-visible) { background: var(--action-band-hover-bg); color: var(--action-band-hover-color); border: var(--action-band-hover-border); }

/* A CTA band on a light / soft / auto-light section is a light surface: its buttons use the normal Button style */
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta :is(.t6-btn, .sx-btn) { background: var(--action-bg); background-image: var(--action-bg-image); color: var(--action-color); border: var(--action-border); }
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta :is(.t6-btn, .sx-btn):is(:hover, :focus-visible) { background: var(--action-hover-bg); background-image: var(--action-hover-bg-image); color: var(--action-hover-color); border: var(--action-hover-border); }

/* Forms are always light panels, even inside a dark section: their buttons use the normal Button style, not the on-dark variant */
.rs-home-section-shell :is(.t6-touch__form, .t6-contactform__form) :is(.t6-btn, .sx-btn) { background: var(--action-bg); background-image: var(--action-bg-image); color: var(--action-color); border: var(--action-border); }
.rs-home-section-shell :is(.t6-touch__form, .t6-contactform__form) :is(.t6-btn, .sx-btn):is(:hover, :focus-visible) { background: var(--action-hover-bg); background-image: var(--action-hover-bg-image); color: var(--action-hover-color); border: var(--action-hover-border); }

/* Outline buttons on dark surfaces: a light outline that fills on hover */
.home-section-bg-dark :is(.t6-btn-outline, .sx-btn--ghost),
.t6-cta :is(.t6-btn-outline, .sx-btn--ghost),
.t6-footer :is(.t6-btn-outline, .sx-btn--ghost) { color: var(--secondary-contrast-color); border-color: var(--secondary-contrast-color); }
.home-section-bg-dark :is(.t6-btn-outline, .sx-btn--ghost):is(:hover, :focus-visible),
.t6-cta :is(.t6-btn-outline, .sx-btn--ghost):is(:hover, :focus-visible),
.t6-footer :is(.t6-btn-outline, .sx-btn--ghost):is(:hover, :focus-visible) { background: var(--cta-bg-color); color: var(--cta-text-color); border-color: var(--cta-bg-color); }

/* Outline: always an outline, whatever the tenant's style, for secondary actions. It takes the tenant's button colour,
   radius and font size (Appearance → Button), so it always matches the primary button beside it. */
.t6-btn-outline,
.t6-body .sx-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--action-outline-color);
  border: 2px solid var(--action-outline-color);
  border-radius: var(--action-radius);
  font-size: var(--cta-font-size, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.95rem 1.9rem;
  box-shadow: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.t6-btn-outline:hover, .t6-btn-outline:focus-visible,
.t6-body .sx-btn--ghost:hover, .t6-body .sx-btn--ghost:focus-visible { background: var(--action-outline-color); color: var(--action-outline-hover-color); border-color: var(--action-outline-color); }
.t6-btn-outline.is-sm { padding: 0.65rem 1.25rem; font-size: 0.78rem; }

/* On dark bands and over image overlays */
.t6-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--band-dark-text);
  border: 2px solid currentColor;
  border-radius: var(--action-radius);
  font-size: var(--cta-font-size, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.95rem 1.9rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.t6-btn-light:hover, .t6-btn-light:focus-visible { background: var(--cta-bg-color); color: var(--cta-text-color); border-color: var(--cta-bg-color); }

/* Text link with a thin underline, used for "Read more" */
.t6-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.t6-link-more i { transition: transform var(--transition-fast); }
.t6-link-more:hover i { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .t6-btn, .t6-btn-outline, .t6-btn-light, .t6-link-more i { transition: none; transform: none !important; }
}
/* ---------- SECTION BANDS (auto / light / alt / dark) ---------- */
.rs-home-section-shell {
  --sec-bg: var(--band-light-bg);
  --sec-text: var(--text);
  --sec-muted: var(--text-muted);
  --sec-border: var(--border);
  --sec-surface: var(--surface);
  background: var(--sec-bg);
  color: var(--sec-text);
}
.rs-home-section-shell.home-section-bg-light { --sec-bg: var(--band-light-bg); }
.rs-home-section-shell.home-section-bg-alt { --sec-bg: var(--band-alt-bg); }
.rs-home-section-shell.home-section-bg-dark {
  --sec-bg: var(--band-dark-bg);
  --sec-text: var(--band-dark-text);
  --sec-muted: color-mix(in srgb, var(--band-dark-text) 80%, transparent);
  --sec-border: color-mix(in srgb, var(--band-dark-text) 22%, transparent);
  --sec-surface: color-mix(in srgb, var(--band-dark-text) 8%, var(--band-dark-bg));
}
.rs-home-section-shell > section { background: var(--sec-bg); color: var(--sec-text); }
.rs-home-section-shell h2, .rs-home-section-shell h3, .rs-home-section-shell h4 { color: var(--sec-text); }
.rs-home-section-shell p { color: var(--sec-muted); }
.rs-home-section-shell.home-section-bg-dark a:not(.t6-btn):not(.t6-btn-outline):not(.t6-btn-light) { color: var(--band-dark-text); }
.rs-home-section-shell.home-section-bg-dark .t6-eyebrow { color: var(--accent); }
/* Cards and panels that have their own light background keep the normal text colours inside a dark band. (Without this their
   titles and links take the band's white and disappear on the light card.) Cards with no background, such as course and event
   cards, sit on the band itself and correctly keep the band's colours. */
.rs-home-section-shell :is(.t6-card.is-raised, .t6-panel, .t6-topper, .t6-quote, .t6-stat, .t6-drive) { --sec-text: var(--text); --sec-muted: var(--text-muted); --sec-border: var(--border); --sec-surface: var(--surface); color: var(--text); }
.rs-home-section-shell.home-section-bg-dark :is(.t6-card.is-raised, .t6-panel, .t6-topper, .t6-quote, .t6-stat, .t6-drive) a:not(.t6-btn):not(.t6-btn-outline):not(.t6-btn-light):not(.t6-link-more) { color: var(--text); }
.rs-home-section-shell.home-section-bg-dark :is(.t6-card.is-raised, .t6-panel, .t6-topper, .t6-quote, .t6-stat, .t6-drive) a:not(.t6-btn):not(.t6-btn-outline):not(.t6-btn-light):not(.t6-link-more):hover { color: var(--primary); }
.rs-home-section-shell.home-section-bg-dark :is(.t6-card.is-raised, .t6-panel, .t6-topper, .t6-quote, .t6-stat, .t6-drive) a.t6-link-more:not(.t6-btn):not(.t6-btn-outline):not(.t6-btn-light) { color: var(--primary); }
.rs-home-section-shell.home-section-bg-dark :is(.t6-card.is-raised, .t6-panel, .t6-topper, .t6-quote, .t6-stat, .t6-drive) .t6-eyebrow { color: var(--primary); }
.home-split-row { display: flex; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .home-split-row > .rs-home-section-shell { width: 100% !important; }
}

/* ---------- CARDS: flat, image first, no shadow ---------- */
.t6-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.t6-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-light); }
.t6-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.t6-card:hover .t6-card-media img { transform: scale(1.04); }
.t6-card-media.is-portrait { aspect-ratio: 4 / 5; }
.t6-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4) 0 0; }
.t6-card-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.t6-card-title { font-size: 1.05rem; line-height: 1.5; margin-bottom: var(--space-2); }
.t6-card-title a { color: inherit; }
.t6-card-title a:hover { color: var(--primary); }
.t6-card-text { font-size: 0.93rem; margin-bottom: var(--space-3); }
.t6-card-foot { margin-top: auto; }

/* Raised card (news): white box that lifts a little on hover */
.t6-card.is-raised { background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-med); }
.t6-card.is-raised:hover { box-shadow: var(--shadow-md); }
.t6-card.is-raised .t6-card-body { padding: var(--space-4); }

.t6-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 0;
}

/* Frame kept while an image loads; theme art fills it when a tenant has no photo */
.t6-media-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--primary); font-size: 2.5rem; }

/* ---------- FORMS: square, white inputs ---------- */
.form-control, .form-select {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.8rem 1rem;
  font-size: 0.93rem;
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.form-label { font-weight: 500; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ---------- TABLES: blue header row ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); color: var(--text); }
.table thead th { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.table tbody td, .table tbody th { background: var(--bg-alt-color); }
.table-responsive { border-radius: 0; border: 0; }

/* ---------- PAGINATION: round numbers ---------- */
.pagination { gap: 0.4rem; }
.pagination .page-link { width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50% !important; color: var(--text); background: var(--bg-alt-color); border: 0; font-weight: 600; font-size: 0.85rem; }
.pagination .page-link:hover { background: var(--primary-light); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); color: var(--on-primary); }
.pagination .page-item.disabled .page-link { opacity: 0.5; }
.pagination .page-link:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }

/* ---------- ALERTS ---------- */
.t6-alert { border-radius: 0; padding: var(--space-3) var(--space-4); border: 1px solid transparent; border-left-width: 4px; margin-bottom: var(--space-4); }
.t6-alert.is-success { background: color-mix(in srgb, var(--success) 10%, var(--bg)); border-color: var(--success); color: var(--text); }
.t6-alert.is-error { background: color-mix(in srgb, var(--danger) 8%, var(--bg)); border-color: var(--danger); color: var(--text); }

/* ---------- RICH TEXT (safe_html output) ---------- */
.t6-prose { color: var(--text); }
.t6-prose p { color: var(--text-muted); max-width: none; }
.t6-prose a { text-decoration: underline; }
.t6-prose img { border-radius: 0; }
.t6-prose ul, .t6-prose ol { color: var(--text-muted); }
.t6-prose ul { list-style: none; padding-left: 0; }
.t6-prose ul li { position: relative; padding-left: 1.7rem; margin-bottom: 0.4rem; }
.t6-prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 0.7rem; border: 2px solid var(--primary); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 5px var(--primary); }
.t6-prose ol { padding-left: 1.25rem; }
.t6-prose table { width: 100%; }
.t6-prose blockquote { border-left: 4px solid var(--rule); padding: var(--space-2) var(--space-4); margin: var(--space-4) 0; color: var(--text-muted); font-family: var(--font-display); font-size: 1.1rem; }
/* ---------- SCROLL-TO-TOP BUTTON ---------- */
#scrollUp {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast), background var(--transition-fast);
}
#scrollUp.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollUp:hover { background: var(--primary-dark); }

/* WhatsApp float (themes/shared/whatsapp-button): stacked above #scrollUp */
:root { --sx-wa-right: calc(var(--space-4) - 3px); --sx-wa-bottom: calc(var(--space-4) + 58px); }
@media (max-width: 575.98px) {
  #scrollUp { right: var(--space-3); bottom: var(--space-3); width: 42px; height: 42px; }
  :root { --sx-wa-right: calc(var(--space-3) - 5px); --sx-wa-bottom: calc(var(--space-3) + 54px); }
}

/* ---------- SUBTLE REVEAL (gentle fade, small rise) ---------- */
[data-animate] { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-animate].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Without JavaScript nothing stays hidden */
.no-js [data-animate] { opacity: 1; transform: none; }

/* Shared navigation submenu token rules */
.navigation-submenu-bg-light {
    --submenu-panel-bg: var(--surface-color);
    --submenu-section-bg: var(--bg-color);
    --submenu-border-color: var(--border-color);
    --submenu-heading-color: var(--heading-color, var(--text-color));
    --submenu-text-color: var(--text-color);
    --submenu-muted-color: var(--text-muted-color);
    --submenu-hover-bg: var(--primary-soft-color);
    --submenu-hover-text-color: var(--primary-color);
}

.navigation-submenu-bg-dark {
    --submenu-panel-bg: var(--text-color);
    --submenu-section-bg: var(--text-color);
    --submenu-border-color: color-mix(in srgb, var(--bg-color), transparent 82%);
    --submenu-heading-color: var(--bg-color);
    --submenu-text-color: var(--bg-color);
    --submenu-muted-color: color-mix(in srgb, var(--bg-color), var(--text-color) 18%);
    --submenu-hover-bg: var(--primary-color);
    --submenu-hover-text-color: var(--primary-contrast-color);
}

.navigation-submenu-bg-brand {
    --submenu-panel-bg: var(--primary-color);
    --submenu-section-bg: var(--primary-color);
    --submenu-border-color: color-mix(in srgb, var(--primary-contrast-color), transparent 82%);
    --submenu-heading-color: var(--primary-contrast-color);
    --submenu-text-color: var(--primary-contrast-color);
    --submenu-muted-color: color-mix(in srgb, var(--primary-contrast-color), var(--primary-color) 20%);
    --submenu-hover-bg: color-mix(in srgb, var(--primary-contrast-color), transparent 88%);
    --submenu-hover-text-color: var(--primary-contrast-color);
}

.navigation-submenu-bg-contrast {
    --submenu-panel-bg: var(--secondary-color);
    --submenu-section-bg: var(--secondary-color);
    --submenu-border-color: color-mix(in srgb, var(--secondary-contrast-color), transparent 82%);
    --submenu-heading-color: var(--secondary-contrast-color);
    --submenu-text-color: var(--secondary-contrast-color);
    --submenu-muted-color: color-mix(in srgb, var(--secondary-contrast-color), var(--secondary-color) 20%);
    --submenu-hover-bg: color-mix(in srgb, var(--secondary-contrast-color), transparent 88%);
    --submenu-hover-text-color: var(--secondary-contrast-color);
}
/* Shared footer scheme token rules */
.footer-scheme-light {
    --footer-bg: var(--surface-color);
    --footer-bottom-bg: var(--bg-alt-color);
    --footer-contact-bg: var(--bg-alt-color);
    --footer-heading-color: var(--text-color);
    --footer-text-color: var(--text-color);
    --footer-muted-color: var(--text-muted-color);
    --footer-link-color: var(--text-color);
    --footer-link-hover-color: var(--primary-color);
    --footer-link-hover-bg: var(--primary-soft-color);
    --footer-border-color: var(--border-color);
}

.footer-scheme-dark {
    --footer-bg: var(--text-color);
    --footer-bottom-bg: color-mix(in srgb, var(--text-color), var(--bg-color) 8%);
    --footer-heading-color: var(--bg-color);
    --footer-text-color: var(--bg-color);
    --footer-muted-color: color-mix(in srgb, var(--bg-color), var(--text-color) 22%);
    --footer-link-color: var(--bg-color);
    --footer-link-hover-color: var(--primary-color);
    --footer-link-hover-bg: color-mix(in srgb, var(--bg-color), transparent 90%);
    --footer-border-color: color-mix(in srgb, var(--bg-color), transparent 82%);
}

.footer-scheme-brand {
    --footer-bg: var(--primary-color);
    --footer-bottom-bg: var(--primary-hover-color);
    --footer-heading-color: var(--primary-contrast-color);
    --footer-text-color: var(--primary-contrast-color);
    --footer-muted-color: color-mix(in srgb, var(--primary-contrast-color), var(--primary-color) 22%);
    --footer-link-color: var(--primary-contrast-color);
    --footer-link-hover-color: var(--accent-color);
    --footer-link-hover-bg: color-mix(in srgb, var(--primary-contrast-color), transparent 90%);
    --footer-border-color: color-mix(in srgb, var(--primary-contrast-color), transparent 82%);
}

.footer-scheme-contrast {
    --footer-bg: var(--secondary-color);
    --footer-bottom-bg: var(--secondary-hover-color);
    --footer-heading-color: var(--secondary-contrast-color);
    --footer-text-color: var(--secondary-contrast-color);
    --footer-muted-color: color-mix(in srgb, var(--secondary-contrast-color), var(--secondary-color) 22%);
    --footer-link-color: var(--secondary-contrast-color);
    --footer-link-hover-color: var(--secondary-contrast-color);
    --footer-link-hover-bg: color-mix(in srgb, var(--secondary-contrast-color), transparent 90%);
    --footer-border-color: color-mix(in srgb, var(--secondary-contrast-color), transparent 82%);
}

.footer-scheme-custom {
    --footer-bg: var(--footer-custom-bg, var(--text-color));
    --footer-bottom-bg: color-mix(in srgb, var(--footer-custom-bg, var(--text-color)), var(--bg-color) 8%);
    --footer-contact-bg: color-mix(in srgb, var(--footer-custom-bg, var(--text-color)), var(--bg-color) 16%);
    --footer-heading-color: var(--header-footer-foreground);
    --footer-text-color: var(--header-footer-foreground);
    --footer-muted-color: var(--header-footer-muted);
    --footer-link-color: var(--header-footer-foreground);
    --footer-link-hover-color: var(--accent-color);
    --footer-link-hover-bg: color-mix(in srgb, var(--header-footer-foreground), transparent 90%);
    --footer-border-color: color-mix(in srgb, var(--header-footer-foreground), transparent 82%);
}
/* ---------- LAYOUT STYLE (wide / boxed) ---------- */
.theme-layout-boxed body.t6-body {
  max-width: 1320px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}
.theme-layout-boxed { background: var(--boxed-layout-bg-color); }
.theme-layout-boxed.boxed-bg-type-pattern { background-image: var(--layout-pattern-img); }

/* ---------- NOTICE TICKER ---------- */
.t6-ticker { background: var(--primary); color: var(--on-primary); font-size: 0.85rem; }
.t6-ticker[hidden] { display: none; }
.t6-ticker__inner { display: flex; align-items: center; gap: var(--space-3); padding-top: 0.45rem; padding-bottom: 0.45rem; }
.t6-ticker__label { flex: 0 0 auto; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.t6-ticker__wrap { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.t6-ticker__track { display: inline-flex; white-space: nowrap; gap: var(--space-3); animation: t6-ticker 38s linear infinite; padding-left: 100%; }
.t6-ticker:hover .t6-ticker__track, .t6-ticker:focus-within .t6-ticker__track { animation-play-state: paused; }
.t6-ticker__item, .t6-ticker__item:hover { color: var(--on-primary); }
.t6-ticker__item:hover { text-decoration: underline; }
.t6-ticker__close { flex: 0 0 auto; background: none; border: 0; color: var(--on-primary); padding: 0.2rem 0.4rem; cursor: pointer; }
@keyframes t6-ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .t6-ticker__track { animation: none; padding-left: 0; white-space: normal; flex-wrap: wrap; }
}

/* ---------- HEADER: dark top bar, then a transparent bar over the hero ---------- */
.t6-header { position: relative; z-index: 1030; }
.t6-topbar { background: var(--secondary); color: var(--on-secondary); font-size: 0.85rem; position: relative; z-index: 2; }
.t6-topbar .container { min-height: var(--topbar-height); }
.t6-topbar a { color: var(--on-secondary); display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; }
.t6-topbar a:hover { color: var(--accent); }
.t6-topbar a.is-contact { color: color-mix(in srgb, var(--on-secondary) 55%, var(--accent)); }

.t6-navbar { position: absolute; left: 0; right: 0; top: var(--topbar-height); padding: 0; background: transparent; transition: background var(--transition-med); z-index: 1; }
.t6-header:not(:has(.t6-topbar)) .t6-navbar { top: 0; }
.t6-header.is-sticky.is-scrolled .t6-navbar { position: fixed; top: 0; background: var(--secondary); box-shadow: var(--shadow-md); }
.t6-navbar__inner { min-height: var(--header-height); }
.t6-brand { margin: 0; }
.t6-brand .theme-brand-logo__text { color: var(--on-secondary); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.t6-brand .theme-brand-logo__image { --theme-brand-logo-square-size: 72px; --theme-brand-logo-height: 64px; }
.t6-navbar .nav-link {
  position: relative;
  color: var(--on-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 0.95rem;
  transition: color var(--transition-fast);
}
.t6-navbar .nav-link:hover, .t6-navbar .nav-link.active, .t6-navbar .show > .nav-link { color: var(--accent); }
.t6-navbar .dropdown-toggle::after { margin-left: 0.4em; vertical-align: 0.15em; }
.t6-nav-badge { background: var(--accent); color: var(--secondary); font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.4rem; margin-left: 0.3rem; vertical-align: middle; }

.t6-navbar .navbar-toggler { border: 1px solid color-mix(in srgb, var(--on-secondary) 45%, transparent); padding: 0.4rem 0.6rem; margin-left: auto; }
.t6-navbar .navbar-toggler-icon { filter: invert(1); }
.t6-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }

/* Dropdown + mega panel colours follow the menu's submenu background setting */
.t6-navbar .dropdown-menu {
  background: var(--submenu-panel-bg, var(--surface));
  border: 0;
  border-top: 3px solid var(--primary);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0;
  margin-top: 0;
  min-width: 14rem;
}
.t6-navbar .dropdown-item { color: var(--submenu-text-color, var(--text)); padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.t6-navbar .dropdown-item:hover, .t6-navbar .dropdown-item:focus, .t6-navbar .dropdown-item.active {
  background: var(--submenu-hover-bg, var(--primary-light));
  color: var(--submenu-hover-text-color, var(--primary));
}

/* Mega menu: light panel under the bar, container width, 3 link columns plus a soft promo column */
.t6-mega-item { position: static; }
.t6-mega-panel { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; width: min(var(--container-max), calc(100% - 2rem)); padding: 0 !important; border-top: 0 !important; background: var(--bg-alt-color) !important; }
.t6-mega-panel .container { max-width: none; padding: 0; }
.t6-mega-panel .sx-mega { display: grid; gap: 0; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.t6-mega-panel .sx-mega--cols-1 { --cols: 1; }
.t6-mega-panel .sx-mega--cols-2 { --cols: 2; }
.t6-mega-panel .sx-mega--cols-3 { --cols: 3; }
.t6-mega-panel .sx-mega--cols-4 { --cols: 4; }
.t6-mega-panel .sx-mega__section { padding: var(--space-5) var(--space-4); background: transparent; border-right: 1px solid var(--border); }
.t6-mega-panel .sx-mega__section:last-child { border-right: 0; }
.t6-mega-panel .sx-mega__heading { font-family: var(--font-base); font-weight: 600; font-size: 1.05rem; color: var(--text); margin-bottom: var(--space-4); }
.t6-mega-panel .sx-mega__text { color: var(--text-muted); font-size: 0.9rem; }
.t6-mega-panel .sx-mega__links, .t6-mega-panel .sx-mega__contact { list-style: none; padding: 0; margin: 0; }
.t6-mega-panel .sx-mega__link { display: block; padding: 0.55rem 0; color: var(--text-muted); font-size: 0.93rem; }
.t6-mega-panel .sx-mega__link:hover { color: var(--primary); }
.t6-mega-panel .sx-mega__contact-item, .t6-mega-panel .sx-mega__contact-item a { color: var(--text-muted); font-size: 0.9rem; }
.t6-mega-panel .sx-mega__social-link { color: var(--text-muted); margin-right: var(--space-3); font-size: 0.9rem; }
.t6-mega-panel .sx-mega__button { display: inline-block; margin-top: var(--space-3); background: var(--cta-bg-color); color: var(--cta-text-color); padding: 0.65rem 1.3rem; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.t6-mega-panel .sx-mega__button:hover { background: var(--cta-hover-bg-color); color: var(--cta-hover-text-color); }

.t6-lang-toggle { background: transparent; border: 1px solid color-mix(in srgb, var(--on-secondary) 45%, transparent); color: var(--on-secondary); border-radius: 0; padding: 0.5rem 0.8rem; font-weight: 500; font-size: 0.82rem; }
.t6-lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
/* Language dropdown in the top bar: compact, pushed to the right end, and always visible (also on phones) */
.t6-topbar__lang { margin-left: auto; position: relative; z-index: 3; }
.t6-topbar .t6-lang-toggle { padding: 0.2rem 0.6rem; font-size: 0.8rem; }
.t6-topbar .lang-switcher__menu { z-index: 1080; background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 0.25rem 0; min-width: 11rem; box-shadow: var(--shadow-md); }
/* The top bar makes its links white; the menu is a light surface, so its items use the dark text colour */
.t6-topbar .lang-switcher__menu .lang-switcher__option { display: flex; justify-content: space-between; gap: var(--space-3); color: var(--text); background: transparent; font-weight: 500; padding: 0.5rem 1rem; }
.t6-topbar .lang-switcher__menu .lang-switcher__native, .t6-topbar .lang-switcher__menu .lang-switcher__label { color: inherit; }
.t6-topbar .lang-switcher__menu .lang-switcher__label { opacity: 0.7; font-weight: 400; }
.t6-topbar .lang-switcher__menu .lang-switcher__option:hover, .t6-topbar .lang-switcher__menu .lang-switcher__option:focus { color: var(--text); background: var(--bg-alt-color); }
.t6-topbar .lang-switcher__menu .lang-switcher__option.active { color: var(--text); background: var(--bg-alt-color); font-weight: 700; }

/* xl and above: three-column grid, menu halves either side of the centred logo */
@media (min-width: 1200px) {
  .navbar.t6-navbar > .t6-navbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-content: normal; column-gap: var(--space-4); }
  .navbar.t6-navbar .navbar-toggler { display: none; }
  .navbar.t6-navbar .navbar-collapse.collapse { display: contents !important; }
  .navbar.t6-navbar .t6-brand { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
  .navbar.t6-navbar .t6-nav--left { grid-column: 1; grid-row: 1; justify-self: end; flex-direction: row; margin: 0; }
  .navbar.t6-navbar .t6-nav--right { grid-column: 3; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: var(--space-3); }
  .navbar.t6-navbar .t6-nav--right .navbar-nav { flex-direction: row; }
  .t6-navbar .dropdown.is-open > .dropdown-menu { display: block; }
  .t6-mega-panel { max-height: calc(100vh - 200px); overflow-y: auto; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .t6-navbar .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.85rem; }
  .t6-nav__actions .t6-btn { padding: 0.6rem 0.9rem; }
}

/* Below xl: solid bar, logo left, menu collapses */
@media (max-width: 1199.98px) {
  .t6-navbar { position: relative; top: 0; background: var(--secondary); }
  .t6-header.is-sticky.is-scrolled .t6-navbar { position: sticky; }
  .t6-navbar .navbar-collapse { padding: var(--space-3) 0 var(--space-4); max-height: calc(100vh - 140px); overflow-y: auto; }
  .t6-navbar .nav-link { padding: 0.75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--on-secondary) 18%, transparent); }
  .t6-navbar .dropdown-menu { background: color-mix(in srgb, var(--on-secondary) 6%, var(--secondary)); box-shadow: none; border-top: 0; border-left: 3px solid var(--accent); margin: 0 0 var(--space-2) var(--space-2); }
  .t6-navbar .dropdown-item { color: var(--on-secondary); }
  .t6-navbar .dropdown-item:hover { background: transparent; color: var(--accent); }
  .t6-mega-panel { position: static !important; transform: none !important; width: auto; background: transparent !important; }
  .t6-mega-panel .sx-mega { grid-template-columns: 1fr; }
  .t6-mega-panel .sx-mega__section { border-right: 0; padding: var(--space-3) var(--space-3); }
  .t6-mega-panel .sx-mega__heading, .t6-mega-panel .sx-mega__link, .t6-mega-panel .sx-mega__text { color: var(--on-secondary); }
  .t6-nav__actions { margin-top: var(--space-3); flex-wrap: wrap; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .t6-mega-panel .sx-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .t6-topbar__list span { display: none; }
}
/* Mobile: no contact details or social icons in the top bar; the login link and the language dropdown stay, and a bar with nothing left is dropped. */
@media (max-width: 767.98px) {
  .t6-topbar .t6-topbar__extra { display: none !important; } /* beats Bootstrap's .d-flex !important */
  .t6-topbar:not(.has-login):not(.has-lang) { display: none !important; }
  :root:has(.t6-topbar:not(.has-login):not(.has-lang)) { --topbar-height: 0px; }
}

/* ---------- FOOTER: dark, four columns ----------
   The platform's "dark" scheme paints the footer with the text colour; the designs use the deep indigo secondary
   colour instead, so in this theme "dark" takes the secondary tokens (same values as the "contrast" scheme). */
.t6-footer.footer-scheme-dark {
  --footer-bg: var(--secondary-color);
  --footer-bottom-bg: var(--secondary-hover-color);
  --footer-heading-color: var(--secondary-contrast-color);
  --footer-text-color: var(--secondary-contrast-color);
  --footer-muted-color: color-mix(in srgb, var(--secondary-contrast-color), var(--secondary-color) 22%);
  --footer-link-color: var(--secondary-contrast-color);
  --footer-link-hover-color: var(--accent-color);
  --footer-link-hover-bg: color-mix(in srgb, var(--secondary-contrast-color), transparent 90%);
  --footer-border-color: color-mix(in srgb, var(--secondary-contrast-color), transparent 82%);
}
.t6-footer { background: var(--footer-bg); color: var(--footer-text-color); }
.t6-footer__main { padding: var(--space-6) 0 var(--space-5); }
.t6-footer h4 { color: var(--footer-heading-color); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.t6-footer p { color: var(--footer-muted-color); font-size: 0.93rem; }
.t6-footer ul { list-style: none; padding: 0; margin: 0; }
.t6-footer li { margin-bottom: 0.65rem; }
.t6-footer a { color: var(--footer-link-color); }
.t6-footer a:hover { color: var(--footer-link-hover-color); }
.t6-footer .t6-footer__widget li a { font-size: 0.95rem; }
.t6-footer__summary p { margin-bottom: var(--space-2); }
.t6-footer__more { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.t6-footer__more:hover { color: var(--footer-link-hover-color); }
.t6-footer address { margin: 0; }
.t6-footer__contact-label { color: var(--footer-heading-color); font-weight: 600; }
.t6-footer__socials { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.t6-footer__socials li { margin: 0; }
.t6-footer__socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--footer-border-color); font-size: 1rem; }
.t6-footer__socials a:hover { background: var(--footer-link-hover-bg); color: var(--accent); border-color: var(--accent); }
.t6-footer__widget .t6-btn { margin-top: var(--space-2); }
.t6-footer__logo { margin-bottom: var(--space-4); }
/* The footer logo is larger than the platform default (square 54px / rectangle 52px) */
.t6-footer__logo .theme-brand-logo__image { --theme-brand-logo-square-size: 104px; --theme-brand-logo-height: 80px; --theme-brand-logo-max-width: 280px; --theme-brand-logo-mobile-square-size: 88px; --theme-brand-logo-mobile-height: 68px; --theme-brand-logo-mobile-max-width: 240px; }
.t6-footer__logo .theme-brand-logo__text { color: var(--footer-heading-color); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; }
.t6-footer__contact li { display: flex; gap: 0.7rem; color: var(--footer-text-color); font-size: 0.93rem; }
.t6-footer__contact li:last-child { color: var(--accent); }
.t6-footer__contact i { color: var(--accent); margin-top: 0.3rem; }
.t6-footer__bottom { background: transparent; border-top: 0; padding: var(--space-4) 0 var(--space-5); font-size: 0.88rem; }
.t6-footer__bottom p { margin: 0; color: var(--footer-text-color); max-width: none; }
.t6-footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; }
.t6-footer__social a:hover { color: var(--accent); }

/* Platform newsletter widget inside the footer */
.t6-footer .mu-subscribe-form { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.t6-footer .mu-subscribe-form input[type="email"] { flex: 1 1 160px; min-width: 0; background: var(--footer-input-bg-color, transparent); color: var(--footer-input-text-color, var(--footer-text-color)); border: 1px solid var(--footer-input-border-color, var(--footer-border-color)); border-radius: 0; padding: 0.7rem 0.9rem; }
.t6-footer .mu-subscribe-btn { background: var(--cta-bg-color); color: var(--cta-text-color); border: 0; border-radius: 0; padding: 0.7rem 1.2rem; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.t6-footer .mu-subscribe-btn:hover { background: var(--cta-hover-bg-color); color: var(--cta-hover-text-color); }
/* ---------- INNER-PAGE BANNER: tall photo, eyebrow, big uppercase title bottom-left ---------- */
.t6-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  padding: calc(var(--topbar-height) + var(--header-height) + var(--space-5)) 0 var(--space-5);
  background-color: var(--secondary);
  background-size: cover;
  background-position: center;
  color: var(--on-secondary);
  isolation: isolate;
  overflow: hidden;
}
.t6-banner.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--secondary) 55%, transparent); }
.t6-banner.has-art .t6-banner__art { position: absolute; inset: 0; z-index: -1; opacity: 0.55; }
.t6-banner.has-art .t6-banner__art .t6-art { width: 100%; height: 100%; }
.t6-banner__inner { position: relative; }
.t6-banner__eyebrow { display: block; color: var(--accent); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: var(--space-2); }
.t6-banner__title { color: var(--on-secondary); font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin: 0; max-width: 20ch; }
@media (max-width: 1199.98px) { .t6-banner { padding-top: var(--space-6); min-height: 300px; } }

/* Breadcrumb row under the banner */
.t6-crumbs { padding: var(--space-3) 0; font-size: 0.78rem; letter-spacing: 0.04em; }
.t6-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
.t6-crumbs li + li::before { content: ">"; margin-right: 0.5rem; color: var(--text-muted); }
.t6-crumbs a { color: var(--text-muted); }
.t6-crumbs a:hover { color: var(--primary); }
.t6-crumbs li[aria-current] { color: var(--primary); }

/* ---------- UI KIT FRAMES ---------- */
.t6ui-page, .t6ui-section { padding: var(--space-6) 0; }

.t6-empty { text-align: center; padding: var(--space-6) var(--space-4); background: var(--bg-alt-color); }
.t6-empty i { font-size: 2.2rem; color: var(--primary); }
.t6-empty h3 { margin: var(--space-3) 0 var(--space-2); }
.t6-empty p { margin: 0 auto var(--space-3); }

/* Accordion: solid primary bars with a plus / minus marker */
.t6-accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: transparent; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-btn-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); --bs-accordion-active-bg: var(--primary); --bs-accordion-active-color: var(--on-primary); display: grid; gap: var(--space-2); }
.t6-accordion .accordion-item { background: transparent; border: 0; }
.t6-accordion .accordion-button { background: var(--bg-alt-color); color: var(--primary); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 400; font-size: 0.9rem; padding: 1.1rem 1.4rem; box-shadow: none; border-radius: 0; }
.t6-accordion .accordion-button:not(.collapsed) { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.t6-accordion .accordion-button::after { background-image: none; content: "+"; font-size: 1.4rem; line-height: 1; width: auto; height: auto; color: inherit; transform: none; }
.t6-accordion .accordion-button:not(.collapsed)::after { content: "\2212"; }
.t6-accordion .accordion-body { padding: var(--space-4) 0.4rem 0.4rem; color: var(--text-muted); }
/* ================= HOME PAGE ================= */

/* ---------- HERO: full-bleed, sits under the transparent header ---------- */
.t6-hero { position: relative; background: var(--secondary); color: var(--band-dark-text); isolation: isolate; overflow: hidden; padding: 0; }
.t6-hero.is-small  { --t6-hero-h: clamp(380px, 48svh, 520px); }
.t6-hero.is-medium { --t6-hero-h: clamp(500px, 68svh, 700px); }
.t6-hero.is-full   { --t6-hero-h: max(600px, calc(100svh - var(--topbar-height))); }
.t6-hero__media, .t6-hero .carousel-inner, .t6-hero .carousel-item { height: var(--t6-hero-h); }
.t6-hero__media { position: relative; }
.t6-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t6-hero .carousel-item { transition-duration: var(--t6-hero-speed, 800ms); }
.t6-hero.has-overlay .t6-hero__media:not(.carousel)::after,
.t6-hero.has-overlay .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--secondary) var(--t6-overlay, 50%), transparent);
  pointer-events: none;
}
.t6-hero__caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding: var(--header-height) 0 var(--space-6); pointer-events: none; }
.t6-hero.vp-top .t6-hero__caption { align-items: flex-start; padding-top: calc(var(--header-height) + var(--space-5)); }
.t6-hero.vp-bottom .t6-hero__caption { align-items: flex-end; padding-bottom: var(--space-6); }
.t6-hero__caption .container, .t6-hero__copy a, .t6-hero__copy button { pointer-events: auto; }
.t6-hero__copy { max-width: 820px; }
.t6-hero.tp-center .t6-hero__copy { margin-left: auto; margin-right: auto; text-align: center; }
.t6-hero.tp-right .t6-hero__copy { margin-left: auto; text-align: right; }
.t6-hero.tp-center .t6-hero__actions { justify-content: center; }
.t6-hero.tp-right .t6-hero__actions { justify-content: flex-end; }
.t6-hero__eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 500; color: var(--band-dark-text); margin-bottom: var(--space-3); }
.t6-hero__title { color: inherit; font-size: clamp(2.2rem, 6vw, 4.0rem); letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.t6-hero__text { color: color-mix(in srgb, currentColor 92%, transparent); font-size: 1.05rem; max-width: 56ch; }
.t6-hero.tp-center .t6-hero__text { margin-left: auto; margin-right: auto; }
.t6-hero.tp-right .t6-hero__text { margin-left: auto; }
.t6-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.t6-hero.tc-dark { color: var(--secondary); }
.t6-hero.tc-dark .t6-hero__title, .t6-hero.tc-dark .t6-hero__text, .t6-hero.tc-dark .t6-hero__eyebrow { color: var(--secondary); }
.t6-hero.tc-dark .t6-btn-light { color: var(--secondary); }
.t6-hero.tc-dark .t6-btn-light:hover { background: var(--secondary); color: var(--band-dark-text); }

.t6-hero .carousel-indicators { z-index: 3; margin-bottom: var(--space-3); }
.t6-hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--band-dark-text); opacity: 0.5; }
.t6-hero .carousel-indicators .active { opacity: 1; background: var(--accent); }
.t6-hero .carousel-control-prev, .t6-hero .carousel-control-next { z-index: 3; width: 64px; opacity: 1; }
.t6-hero__arrow { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--secondary) 55%, transparent); color: var(--band-dark-text); transition: background var(--transition-fast); }
.t6-hero .carousel-control-prev:hover .t6-hero__arrow, .t6-hero .carousel-control-next:hover .t6-hero__arrow, .t6-hero .carousel-control-prev:focus-visible .t6-hero__arrow, .t6-hero .carousel-control-next:focus-visible .t6-hero__arrow { background: var(--primary); color: var(--on-primary); }
.t6-hero-toggle { position: absolute; right: var(--space-3); bottom: var(--space-3); z-index: 4; width: 40px; height: 40px; border: 0; background: color-mix(in srgb, var(--secondary) 70%, transparent); color: var(--band-dark-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.t6-hero-toggle:hover { background: var(--primary); color: var(--on-primary); }

@media (max-width: 1199.98px) { .t6-hero__caption { padding-top: 0; } .t6-hero.is-full { --t6-hero-h: clamp(480px, 82svh, 700px); } }
@media (max-width: 767.98px) {
  .t6-hero.hide-caption-m .t6-hero__copy { display: none; }
  .t6-hero.hide-cta-m .t6-hero__actions { display: none; }
  .t6-hero .carousel-control-prev, .t6-hero .carousel-control-next { width: 44px; }
  .t6-hero__arrow { width: 36px; height: 36px; }
}

/* Theme art (default images drawn with the palette) fills its frame */
.t6-art { display: block; width: 100%; height: 100%; }

/* ---------- ABOUT: centred intro, optional image ---------- */
.t6-about__intro { max-width: 820px; margin: 0 auto; }
.t6-about__media { position: relative; margin: 0; }
.t6-about__media img, .t6-about__media .t6-art { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.t6-pillar { display: flex; gap: var(--space-3); height: 100%; padding: var(--space-4); background: var(--bg-alt-color); }
.t6-pillar__icon { flex: 0 0 48px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.7rem; }
.t6-pillar h3 { font-size: 0.95rem; margin-bottom: var(--space-1); }
.t6-pillar .t6-prose p { margin: 0; font-size: 0.92rem; }

/* ---------- COURSES: 2-column image cards. The band colour follows the section's background mode (auto / light / alt / dark). ---------- */
.t6-meta-list { margin: 0 0 var(--space-3); font-size: 0.85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.25rem var(--space-3); }
.t6-meta-list li { display: inline-flex; gap: 0.4rem; align-items: center; }
.t6-meta-list i { color: var(--primary); }

/* ---------- CTA: full-width blue band over a photo ---------- */
.t6-cta { position: relative; display: flex; align-items: center; min-height: 420px; padding: var(--space-7) 0; background: var(--secondary); color: var(--band-dark-text); isolation: isolate; overflow: hidden; }
.rs-home-section-shell.home-section-bg-dark > .t6-cta { background-color: var(--secondary); color: var(--band-dark-text); }
/* Auto / light / soft section background: the CTA follows it. A light band with dark text; the photo (if any) stays as a faint wash. */
.rs-home-section-shell:not(.home-section-bg-dark) > .t6-cta { background-color: var(--sec-bg); color: var(--sec-text); min-height: 0; }
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta::before { background: var(--sec-bg); opacity: 0.9; }
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta__caption { color: var(--sec-muted); }
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta h2 { color: var(--sec-text); }
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta .t6-btn-light { color: var(--action-outline-color); }
.rs-home-section-shell:not(.home-section-bg-dark) .t6-cta .t6-btn-light:hover, .rs-home-section-shell:not(.home-section-bg-dark) .t6-cta .t6-btn-light:focus-visible { background: var(--action-outline-color); color: var(--action-outline-hover-color); border-color: var(--action-outline-color); }
.t6-cta__bg { position: absolute; inset: 0; z-index: -2; }
.t6-cta__bg img, .t6-cta__bg .t6-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.t6-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--primary) 38%, var(--secondary)); opacity: 0.78; }
.t6-cta__inner { width: 100%; text-align: center; }
.t6-cta.is-left .t6-cta__inner { text-align: left; }
.t6-cta__caption { display: block; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-dark-text); margin: 0 auto var(--space-3); max-width: 60ch; }
.t6-cta h2 { color: var(--band-dark-text); font-size: clamp(1.9rem, 4.6vw, 3.4rem); letter-spacing: 0.06em; max-width: 26ch; margin: 0 auto var(--space-5); }
.t6-cta.is-left .t6-cta__caption, .t6-cta.is-left h2 { margin-left: 0; }
.t6-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.t6-cta.is-left .t6-cta__actions { justify-content: flex-start; }

/* ---------- KEY HIGHLIGHTS: line icon, caption, text. The band follows the section's background mode: on a dark band the icon and
   caption are green and the text white (the design); on a light or grey band the icon and caption are the primary colour. ---------- */
.t6-highlights h2 { color: var(--sec-text); }
/* Centred grid: --t6-cols comes from the item count; the last row stays centred */
.t6-highlights__grid { --t6-gap: clamp(1.5rem, 3vw, 3rem); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5) var(--t6-gap); }
.t6-highlights__cell { flex: 0 0 calc((100% - var(--t6-gap) * (var(--t6-cols, 3) - 1)) / var(--t6-cols, 3)); min-width: 0; }
.t6-highlights__cell .t6-highlight { text-align: center; max-width: 380px; margin-inline: auto; }
.t6-highlights__cell .t6-highlight p { margin-inline: auto; }
@media (max-width: 991.98px) { .t6-highlights__cell { flex-basis: calc((100% - var(--t6-gap)) / 2); } }
@media (max-width: 575.98px) { .t6-highlights__cell { flex-basis: 100%; } }
.t6-highlight__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; color: var(--primary); font-size: 2.2rem; margin-bottom: var(--space-3); }
.t6-highlight__icon img { width: 44px; height: 44px; object-fit: contain; }
.t6-highlight h3 { color: var(--primary); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.06em; }
.t6-highlight p { color: var(--sec-muted); font-size: 0.95rem; margin: 0; }
.home-section-bg-dark .t6-highlight__icon, .home-section-bg-dark .t6-highlight h3 { color: var(--accent); }

/* ---------- FACTS & FIGURES ---------- */
/* The band follows the section's background mode. With an uploaded photo it is always a dark tint with white text, as in the design. */
.t6-facts { position: relative; background-size: cover; background-position: center; isolation: isolate; }
.rs-home-section-shell > .t6-facts.has-image { background-color: var(--sec-bg); background-size: cover; background-position: center; }
.rs-home-section-shell.home-section-bg-dark > .t6-facts.has-image { background-color: var(--secondary); }
.t6-facts.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--sec-bg) 88%, transparent); }
.home-section-bg-dark .t6-facts.has-image::before { background: color-mix(in srgb, var(--secondary) 80%, transparent); }
.t6-facts h2 { color: var(--sec-text); }
.home-section-bg-dark .t6-facts.has-image { --sec-text: var(--on-secondary); --sec-muted: color-mix(in srgb, var(--on-secondary) 82%, transparent); }
.home-section-bg-dark .t6-facts.has-image h2, .home-section-bg-dark .t6-facts.has-image .t6-eyebrow { color: var(--on-secondary); }
.t6-fact { padding: var(--space-3); }
.t6-fact__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; color: var(--primary); font-size: 2.1rem; margin-bottom: var(--space-2); }
.t6-fact__icon img { width: 44px; height: 44px; object-fit: contain; }
.t6-fact__number { font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.1; color: var(--primary); letter-spacing: 0.02em; }
.t6-fact__label { margin-top: var(--space-2); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sec-muted); }
.home-section-bg-dark .t6-fact__icon, .home-section-bg-dark .t6-fact__number { color: var(--sec-text); }

/* ---------- FACULTY: edge-to-edge portrait strip ---------- */
.t6-faculty { padding-bottom: var(--space-6); }
/* ---------- Reviews (carousel of quote cards) ---------- */
.t6-reviews { position: relative; padding: var(--space-7) 0; background-size: cover; background-position: center; isolation: isolate; }
.t6-reviews .t6-quote { background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.t6-reviews.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--secondary) 80%, transparent); }
.t6-reviews.has-image { --sec-text: var(--on-secondary); }
.t6-reviews.has-image h2, .t6-reviews.has-image .t6-eyebrow, .t6-reviews.has-image .t6-heading p { color: var(--on-secondary); }
.t6-reviews.has-image .t6-carousel__btn { border-color: var(--on-secondary); color: var(--on-secondary); }
.t6-reviews.has-image .t6-carousel__btn:hover:not(:disabled) { background: var(--cta-bg-color); border-color: var(--cta-bg-color); color: var(--cta-text-color); }
/* ---------- Toppers / results ---------- */
.t6-toppers { padding: var(--space-7) 0; }
.t6-topper { height: 100%; padding: var(--space-3); text-align: center; background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); transition: transform var(--transition-med), box-shadow var(--transition-med); }
.t6-topper:hover { transform: translateY(-4px); box-shadow: 0 14px 30px color-mix(in srgb, var(--text) 12%, transparent); }
.t6-topper__photo { position: relative; aspect-ratio: 1 / 1; max-width: 190px; margin: 0 auto var(--space-3); overflow: hidden; background: var(--bg-alt-color); border-bottom: 3px solid var(--accent); }
.t6-topper__photo img, .t6-topper__photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.t6-topper__rank { position: absolute; left: 0; top: 0; min-width: 2.6rem; padding: 0.3rem 0.7rem; background: var(--primary); color: var(--on-primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-align: center; }
.t6-topper__name { font-size: 1.05rem; margin: 0 0 0.25rem; }
.t6-topper__course { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.t6-topper__score { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 1.7rem; color: var(--primary); line-height: 1.1; }
.t6-topper__year { margin: 0.35rem 0 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
/* Wide strip: portraits with a generous gap, the first flush with the page edge, name and role set below (home design) */
.t6-strip { display: grid; grid-template-columns: repeat(var(--t6-strip-cols, 5), minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 3.1rem); padding-right: clamp(0px, 1vw, 1rem); }
.t6-strip__item { display: flex; flex-direction: column; color: var(--text); }
.t6-strip__photo { display: block; aspect-ratio: 340 / 416; overflow: hidden; background: var(--primary-light); }
.t6-strip__photo img, .t6-strip__photo .t6-art { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 700ms ease; }
.t6-strip__item:hover .t6-strip__photo img, .t6-strip__item:hover .t6-strip__photo .t6-art { transform: scale(1.04); }
.t6-strip__name { margin-top: var(--space-5); padding: 0 0 0 var(--space-3); font-family: var(--font-display); font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase; color: var(--secondary); }
.t6-strip__role { margin-top: 0.3rem; padding: 0 0 0 var(--space-3); font-size: clamp(0.9rem, 1.1vw, 1.1rem); color: var(--text-muted); }
.t6-strip__item:hover .t6-strip__name { color: var(--primary); }

/* Auto-scrolling strip: two identical sets side by side, the track slides left by exactly one set, then repeats */
.t6-marquee { position: relative; overflow: hidden; }
.t6-marquee.is-static .t6-marquee__set { display: grid; grid-template-columns: repeat(var(--t6-strip-cols, 5), minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 3.1rem); padding-inline: var(--space-3); }
.t6-marquee.is-scrolling .t6-marquee__track { display: flex; width: max-content; animation: t6-marquee calc(var(--t6-marquee-count, 6) * 5s) linear infinite; will-change: transform; }
.t6-marquee__set { display: flex; flex: 0 0 auto; gap: clamp(1rem, 2.6vw, 3.1rem); padding-right: clamp(1rem, 2.6vw, 3.1rem); }
.t6-marquee.is-scrolling .t6-strip__item { flex: 0 0 auto; width: clamp(200px, 19vw, 340px); }
.t6-marquee:hover .t6-marquee__track, .t6-marquee:focus-within .t6-marquee__track, .t6-marquee.is-paused .t6-marquee__track { animation-play-state: paused; }
@keyframes t6-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.t6-marquee__toggle { position: absolute; right: var(--space-3); top: var(--space-3); z-index: 3; width: 38px; height: 38px; border: 0; background: color-mix(in srgb, var(--secondary) 80%, transparent); color: var(--on-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.t6-marquee__toggle:hover { background: var(--primary); color: var(--on-primary); }
@media (prefers-reduced-motion: reduce) {
  .t6-marquee.is-scrolling .t6-marquee__track { animation: none; width: auto; display: block; }
  .t6-marquee.is-scrolling { overflow-x: auto; }
  .t6-marquee.is-scrolling .t6-marquee__set + .t6-marquee__set { display: none; }
  .t6-marquee.is-scrolling .t6-marquee__set { padding-inline: var(--space-3); }
  .t6-marquee__toggle { display: none; }
}
@media (max-width: 991.98px) { .t6-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: var(--space-3); } }
@media (max-width: 575.98px) { .t6-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } .t6-strip__name { margin-top: var(--space-3); padding-left: 0; } .t6-strip__role { padding-left: 0; } }

/* ---------- NEWS: raised white cards ---------- */
/* NEWS: the band follows the section's background mode */
.t6-news .t6-card-meta .t6-badge { background: transparent; color: var(--text-muted); padding: 0; }

/* ---------- EVENTS: image, then a big blue date beside the title ---------- */
.t6-event { height: 100%; }
.t6-event__body { display: flex; flex-direction: column; flex: 1 1 auto; padding-top: var(--space-4); }
.t6-event__info { display: flex; flex-direction: column; flex: 1 1 auto; }
/* "View details" and, when registration is open, the button: pinned to the bottom so cards of different lengths line up */
.t6-event__actions { min-height: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); }
/* Date tile on the corner of the image */
.t6-event__date { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 0.55rem 0.8rem; line-height: 1; background: var(--primary); color: var(--on-primary); text-align: center; }
.t6-event__date strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; color: inherit; }
.t6-event__date span { margin-top: 0.3rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: inherit; }
.t6-event__info .t6-card-title { margin-bottom: var(--space-2); }
.t6-event__meta { margin: 0 0 var(--space-3); font-size: 0.84rem; color: var(--sec-muted, var(--text-muted)); }
.t6-event__meta i { color: var(--primary); }
.t6-event__meta li { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.2rem; }

/* ---------- TRUST BAR: quiet logo strip ---------- */
.t6-trust { padding: var(--space-5) 0; background: var(--bg); border-top: 1px solid var(--border); }
.t6-trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-5); }
.t6-trust__item { display: flex; }
.t6-trust__link { color: inherit; }
.t6-trust__link, .t6-trust__item { align-items: center; gap: var(--space-3); }
.t6-trust__link { display: inline-flex; }
.t6-trust__mark { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.8rem; flex: 0 0 auto; overflow: hidden; }
.t6-trust__mark img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter var(--transition-fast), opacity var(--transition-fast); }
a.t6-trust__link:hover .t6-trust__mark img { filter: none; opacity: 1; }
.t6-trust__text { display: flex; flex-direction: column; line-height: 1.25; }
.t6-trust__value { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-muted); }
.t6-trust__label { font-weight: 500; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-muted); }
.t6-trust__desc { color: var(--text-muted); font-size: 0.78rem; }
a.t6-trust__link:hover .t6-trust__label { color: var(--primary); }

/* ---------- GET IN TOUCH: form on a light card ---------- */
/* GET IN TOUCH: the band follows the section's background mode */
/* The address panel stays light (like the form) whatever the section background is. */
.t6-touch__info { background: var(--bg); color: var(--text); padding: var(--space-5); margin: 0; height: 100%; }
.t6-touch__info li { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); color: var(--text); }
.t6-touch__info li:last-child { margin-bottom: 0; }
.t6-touch__info i { color: var(--primary); font-size: 1.2rem; margin-top: 0.15rem; }
.t6-touch__info a { color: var(--text); }
/* Both panels are light surfaces whatever the section background is: inside them, text uses the normal colours */
.t6-touch__info, .t6-touch__form { --sec-text: var(--text); --sec-muted: var(--text-muted); --sec-border: var(--border); }
.rs-home-section-shell.home-section-bg-dark .t6-touch__info.t6-touch__info a:not(.t6-btn):not(.t6-btn-outline):not(.t6-btn-light) { color: var(--text); }
.rs-home-section-shell.home-section-bg-dark .t6-touch__info.t6-touch__info a:not(.t6-btn):not(.t6-btn-outline):not(.t6-btn-light):hover { color: var(--primary); }
.t6-touch__form .form-control, .t6-touch__form .form-select { color: var(--text); background-color: var(--bg); border-color: var(--border); }
.t6-touch__form .form-control::placeholder { color: var(--text-muted); opacity: 1; }
@media (max-width: 575.98px) { .t6-touch__info { padding: var(--space-4); } }
.t6-touch__form { background: var(--bg); border: 0; padding: var(--space-5); }
@media (max-width: 575.98px) { .t6-touch__form { padding: var(--space-4); } }

/* ---------- Dark / grey band support: text colours that must follow the section's background mode ---------- */
.t6-pillar { background: color-mix(in srgb, var(--sec-text) 5%, var(--sec-bg)); }
.t6-meta-list { color: var(--sec-muted); }
.home-section-bg-dark .t6-meta-list i { color: var(--accent); }
.t6-strip__item { color: var(--sec-text); }
.t6-strip__role { color: var(--sec-muted); }
.home-section-bg-dark .t6-strip__name { color: var(--sec-text); }
.t6-trust { background: transparent; border-top-color: var(--sec-border); }
.t6-trust__mark, .t6-trust__value, .t6-trust__label, .t6-trust__desc { color: var(--sec-muted); }
.home-section-bg-dark .t6-trust__mark img { filter: grayscale(1) brightness(1.6); }
.t6-news .t6-card.is-raised, .t6-touch__form { color: var(--text); }
.home-section-bg-dark .t6-card.is-raised h3 a, .home-section-bg-dark .t6-card.is-raised p { color: var(--text); }
/* ================= INNER PAGES & SECTIONS ================= */
.t6-block { padding: var(--space-6) 0; }
.t6-stack { display: flex; flex-direction: column; gap: var(--space-4); }

.t6-group + .t6-group { margin-top: var(--space-6); }
.t6-group__title { font-size: 1.2rem; margin-bottom: var(--space-4); padding-bottom: var(--space-3); position: relative; border-bottom: 1px solid var(--border); }
.t6-group__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 3px; background: var(--rule); }
.t6-group__icon { color: var(--primary); margin-right: 0.35rem; }

.t6-panel { background: var(--bg-alt-color); border: 0; padding: var(--space-4); }
.t6-side__title { font-size: 1rem; margin-bottom: var(--space-3); }
.t6-side__list li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.t6-side__list li:last-child { border-bottom: 0; }
.t6-side__list a { color: var(--text); }
.t6-side__list a:hover { color: var(--primary); }

.t6-dl { margin: 0 0 var(--space-3); }
.t6-dl > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.t6-dl > div:last-child { border-bottom: 0; }
.t6-dl dt { font-weight: 600; color: var(--text); }
.t6-dl dd { margin: 0; color: var(--text-muted); text-align: right; }

.t6-feature-media { margin: 0 0 var(--space-4); }
.t6-feature-media img, .t6-feature-media .t6-art { width: 100%; object-fit: cover; }
.t6-feature-media.is-portrait .t6-art, .t6-feature-media.is-portrait img { aspect-ratio: 4 / 5; }

.t6-avatar { display: inline-block; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--primary-light); }
.t6-avatar img, .t6-avatar .t6-art { width: 100%; height: 100%; object-fit: cover; }
.t6-avatar.is-sm { flex-basis: 44px; width: 44px; height: 44px; }
.t6-avatar.is-lg { flex-basis: 120px; width: 120px; height: 120px; }
.t6-avatar__initials { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1em; color: var(--primary-dark); }
.t6-avatar.is-lg .t6-avatar__initials { font-size: 2.2rem; }
.t6-person-row { display: flex; gap: var(--space-3); align-items: flex-start; }

.t6-card-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: var(--space-3); }

.t6-partner { text-align: center; height: 100%; }
/* Company logos fill a full-width square tile (whole logo visible, centred on white) */
.t6-partner__logo, .t6-body .sx-panel .sx-logo { display: block; width: 100%; max-width: none; height: auto; max-height: none; aspect-ratio: 1 / 1; object-fit: contain; padding: var(--space-3); margin: 0 0 var(--space-3); background: #fff; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); filter: none; opacity: 1; box-sizing: border-box; }

.t6-caption { caption-side: top; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; color: var(--text); padding: 0 0 var(--space-3); }
.table tr.is-total th, .table tr.is-total td { background: var(--primary-light); color: var(--text); font-weight: 700; }
.t6-note { font-size: 0.88rem; color: var(--text-muted); border-left: 3px solid var(--rule); padding-left: var(--space-3); max-width: none; }

.t6-prose--letter { font-size: 1.05rem; }
.t6-prose--letter p { color: var(--text); }
.t6-prose--letter p:first-child::first-letter { font-family: var(--font-display); font-size: 3.2rem; float: left; line-height: 0.9; padding: 0.3rem 0.5rem 0 0; color: var(--primary); }

/* ---------- Dark pillar band (about, vision, department): icon, green caption, white text ---------- */
.t6-pillars { padding: var(--space-6) 0; background: var(--secondary); color: var(--on-secondary); position: relative; }
.t6-pillars__icon { display: inline-flex; font-size: 2.1rem; color: var(--accent); margin-bottom: var(--space-3); }
.t6-pillars__item h3 { color: var(--accent); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.t6-pillars__item .t6-prose p, .t6-pillars__item .t6-prose li { color: color-mix(in srgb, var(--on-secondary) 90%, transparent); }
.t6-pillars__item .t6-prose { color: var(--on-secondary); }
/* Success stories: featured split + quote cards */
.t6-story-lead { padding: var(--space-5); background: var(--bg-alt-color); border-left: 4px solid var(--accent); }
.t6-story-lead__photo { display: block; aspect-ratio: 1 / 1; max-width: 280px; margin-inline: auto; overflow: hidden; background: var(--bg); }
.t6-story-lead__photo img, .t6-story-lead__photo .t6-art { width: 100%; height: 100%; object-fit: cover; }
.t6-story-lead__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: var(--space-2) 0 var(--space-3); }
.t6-story-lead__quote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.7; color: var(--text); margin-bottom: var(--space-3); }
.t6-story-who { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: var(--space-3); }
.t6-story-who span { font-size: 0.85rem; color: var(--text-muted); }
.t6-story { height: 100%; }
/* Card carousel: scroll-snap track, 1 card on phones, 2 on tablets, 3 on desktop */
.t6-carousel__bar { display: flex; justify-content: flex-end; gap: var(--space-2); margin-bottom: var(--space-3); }
.t6-carousel.is-static .t6-carousel__bar { display: none; }
.t6-carousel__btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary); background: transparent; color: var(--primary); transition: background var(--transition-med), color var(--transition-med); }
.t6-carousel__btn:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); }
.t6-carousel__btn:disabled { opacity: 0.35; cursor: default; }
.t6-carousel__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.t6-carousel__track::-webkit-scrollbar { display: none; }
.t6-carousel__item { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 768px) { .t6-carousel__item { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 992px) { .t6-carousel__item { flex-basis: calc((100% - 48px) / 3); } }
/* Placement statistics: light totals band, filter bar, record cards */
.t6-pstats { padding: var(--space-5) 0; background: var(--bg-alt-color); color: var(--text); }
.t6-pstats__icon { display: inline-flex; font-size: 1.8rem; color: var(--primary); margin-bottom: var(--space-2); }
.t6-pstats__value { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; color: var(--primary); }
.t6-pstats__label { margin-top: var(--space-2); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.t6-filterbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; margin-bottom: var(--space-5); padding: var(--space-4); background: var(--bg-alt-color); }
.t6-filterbar .form-control { background: var(--bg); }
.t6-filterbar__actions { display: flex; align-items: center; gap: var(--space-3); }
@media (max-width: 991.98px) { .t6-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t6-filterbar__actions { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .t6-filterbar { grid-template-columns: minmax(0, 1fr); } }
.t6-stat { height: 100%; padding: var(--space-4); background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-top: 3px solid var(--accent); }
.t6-stat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.t6-stat__dept { margin: 0 0 var(--space-3); font-size: 0.85rem; color: var(--text-muted); }
.t6-stat__rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 var(--space-2); }
.t6-stat__rate strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--primary); }
.t6-stat__rate span { font-size: 0.85rem; color: var(--text-muted); }
.t6-stat__bar { height: 6px; background: var(--bg-alt-color); }
.t6-stat__bar span { display: block; height: 100%; background: var(--accent); }
.t6-stat__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.t6-stat__figures dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--text-muted); }
.t6-stat__figures dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--text); }
/* Placement drive card: date block on the left, details on the right */
.t6-drive { display: flex; height: 100%; background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); transition: transform var(--transition-med), box-shadow var(--transition-med); }
.t6-drive:hover { transform: translateY(-3px); box-shadow: 0 12px 28px color-mix(in srgb, var(--text) 12%, transparent); }
.t6-drive__date { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-3) var(--space-2); background: var(--primary); color: var(--on-primary); text-align: center; line-height: 1.15; }
.t6-drive__date strong { font-family: var(--font-display); font-size: 2rem; }
.t6-drive__date span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.t6-drive__date small { margin-top: 0.25rem; opacity: 0.85; }
.t6-drive__body { flex: 1 1 auto; min-width: 0; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.t6-drive__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.t6-drive__status { padding: 0.15rem 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--bg-alt-color); color: var(--text); }
.t6-drive__status.is-live { background: var(--accent); color: var(--on-accent, var(--on-primary)); }
.t6-drive__status.is-danger { background: var(--text); color: var(--bg); }
.t6-drive__title { font-size: 1.15rem; margin: 0; }
.t6-drive__title a { color: var(--text); }
.t6-drive__title a:hover { color: var(--primary); }
.t6-drive__company { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: 600; color: var(--text); }
.t6-drive__company img { width: 28px; height: 28px; object-fit: contain; background: #fff; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.t6-drive__company i { color: var(--primary); }
.t6-drive__seats small { display: block; margin-top: 0.3rem; color: var(--text-muted); font-size: 0.75rem; }
.t6-drive__bar { height: 6px; background: var(--bg-alt-color); }
.t6-drive__bar span { display: block; height: 100%; background: var(--accent); }
.t6-drive .t6-link-more { margin-top: auto; padding-top: var(--space-2); }
@media (max-width: 575.98px) { .t6-drive__date { flex-basis: 70px; } }
.t6-story__mark { display: block; font-size: 2.6rem; line-height: 1; color: var(--accent); margin-bottom: var(--space-2); }
.t6-story__who { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.t6-story__who .t6-avatar { flex-basis: 52px; width: 52px; height: 52px; }
.t6-story__who strong, .t6-story__who small { display: block; }
.t6-story__who small { font-size: 0.78rem; color: var(--text-muted); }
/* Awards: image with year tag, trophy mark, meta lines */
.t6-award .t6-card-media { position: relative; }
.t6-award__date { position: absolute; left: 0; bottom: 0; padding: 0.35rem 0.9rem; background: var(--primary); color: var(--on-primary); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; }
.t6-award__icon { display: inline-flex; font-size: 1.5rem; color: var(--accent); margin-bottom: var(--space-2); }
.t6-award .t6-meta-list { flex-direction: column; }
/* Careers: job cards and the careers filter bar */
.t6-filterbar--jobs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.t6-filterbar--jobs .t6-filterbar__actions { align-self: end; }
.t6-filterbar__check { grid-column: 1 / -1; margin: 0; }
.t6-job { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; padding: var(--space-5); background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); transition: box-shadow var(--transition-med), transform var(--transition-med); }
.t6-job:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.t6-job.is-expired { border-left-color: var(--border); opacity: 0.8; }
.t6-job__main { flex: 1 1 420px; min-width: 0; }
.t6-job__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.t6-job__title { font-size: 1.2rem; margin: var(--space-2) 0; }
.t6-job__title a { color: var(--text); }
.t6-job__title a:hover { color: var(--primary); }
.t6-job .t6-meta-list { margin-bottom: var(--space-2); }
.t6-job__text { margin: 0; max-width: 70ch; }
.t6-job__actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); flex: 0 0 auto; }
@media (max-width: 767.98px) { .t6-job__actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } .t6-job { padding: var(--space-4); } }
.t6-apply { padding: var(--space-5); }
.t6-apply .form-control[type="file"] { padding: 0.5rem 0.75rem; background: var(--bg); }
/* Feedback: visible choice controls and separated questions */
.t6-panel .form-check-input, .t6-question .form-check-input { border: 2px solid var(--text-muted); background-color: var(--bg); width: 1.15em; height: 1.15em; }
.t6-panel .form-check-input:checked, .t6-question .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.t6-question .form-check { margin-bottom: var(--space-2); }
.t6-question { padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.t6-question:last-child { border-bottom: 0; }
.t6-likert__option span { border: 1px solid var(--border); background: var(--bg); }
.t6-likert__option input:checked + span { border-color: var(--primary); }
/* Event details */
.t6-block section.t6-group { padding: 0; }
.t6-lead { font-size: 1.1rem; color: var(--text-muted); max-width: none; }
.t6-event-hero img { width: 100%; height: auto; display: block; }
.t6-venue__name { font-weight: 600; color: var(--text); margin-bottom: var(--space-1); }
.t6-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.t6-event-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.t6-event-shot figcaption { margin-top: var(--space-2); font-size: 0.8rem; color: var(--text-muted); }
.t6-sticky { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
@media (max-width: 991.98px) { .t6-sticky { position: static; } }
.t6-event-status, .t6-venue, .t6-sticky .t6-panel { padding: var(--space-5); }
.t6-info-list > div { display: flex; flex-direction: column; gap: 0.15rem; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.t6-info-list > div:first-child { padding-top: 0; }
.t6-info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.t6-info-list dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.t6-info-list dd { margin: 0; color: var(--text); }
.t6-related > li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.t6-related > li:first-child { padding-top: 0; }
.t6-related > li:last-child { border-bottom: 0; padding-bottom: 0; }
.t6-related__date { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; padding: 0.4rem 0; background: var(--primary); color: var(--on-primary); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.1; }
.t6-related__date strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; letter-spacing: 0; }
.t6-related__text { min-width: 0; }
.t6-related__text a { display: block; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.t6-related__text a:hover { color: var(--primary); }
.t6-related__text small { display: block; margin-top: 0.25rem; color: var(--text-muted); }
.t6-related__text small i { color: var(--primary); }
.t6-badge.is-live { background: var(--accent); color: var(--secondary-color); }
.t6-badge.is-danger { background: var(--text); color: var(--bg); }
/* Leaders: one per row, image and text alternate sides */
.t6-leaders { display: grid; gap: var(--space-6); }
.t6-leader__media { display: block; max-width: 420px; margin-inline: auto; }
.t6-leader__body .t6-card-title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: var(--space-2); }
.t6-leader__body .t6-card-text { margin-top: var(--space-3); }
/* Light variant (vision & mission): page background, dark text, values as a full-width panel below */
.t6-pillars.is-light { background: var(--bg, var(--background)); color: var(--text); }
.t6-pillars.is-light .t6-pillars__item h3 { color: var(--primary); }
.t6-pillars.is-light .t6-pillars__item .t6-prose, .t6-pillars.is-light .t6-pillars__item .t6-prose p, .t6-pillars.is-light .t6-pillars__item .t6-prose li { color: var(--text); }
.t6-pillars.is-light .t6-pillars__item { height: 100%; padding: var(--space-4); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: color-mix(in srgb, var(--text) 3%, var(--bg, var(--background))); }
.t6-pillars.is-light .t6-pillars__item--wide { height: auto; }

/* ---------- Course detail: blue info bar, lead line, call-to-action band ---------- */
.t6-infobar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); padding: var(--space-4); background: var(--primary); color: var(--on-primary); }
.t6-infobar > div { display: flex; gap: 0.6rem; font-size: 0.9rem; }
.t6-infobar dt { font-weight: 600; }
.t6-infobar dd { margin: 0; opacity: 0.92; }
@media (max-width: 767.98px) { .t6-infobar { grid-template-columns: 1fr 1fr; } }
.t6-lead-line { color: var(--primary); font-size: 1.15rem; line-height: 1.6; padding-bottom: var(--space-3); border-bottom: 2px solid var(--primary); margin-bottom: var(--space-4); max-width: none; }
.t6-actionband { padding: var(--space-6) 0; background: var(--secondary); color: var(--on-secondary); }
.t6-actionband .t6-eyebrow { color: var(--accent); }
.t6-actionband__text { color: var(--on-secondary); font-size: 1.15rem; line-height: 1.7; margin-bottom: var(--space-4); }

/* ---------- Department: navy information card ---------- */
.t6-navycard { background: var(--secondary); color: var(--on-secondary); padding: var(--space-4); }
.t6-navycard h3 { color: var(--on-secondary); font-size: 0.95rem; margin-bottom: var(--space-3); }
.t6-navycard__accent { color: var(--accent); font-weight: 500; }
.t6-navycard .t6-dl > div { border-color: color-mix(in srgb, var(--on-secondary) 22%, transparent); }
.t6-navycard .t6-dl dt { color: var(--on-secondary); }
.t6-navycard .t6-dl dd { color: color-mix(in srgb, var(--on-secondary) 82%, transparent); }
.t6-navycard li { padding: 0.4rem 0; }
.t6-navycard a { color: var(--on-secondary); }
.t6-navycard a:hover { color: var(--accent); }

/* ---------- Sub-navigation row ---------- */
.t6-subnav { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-5); justify-content: center; }
.t6-subnav a { display: inline-block; padding: 0.55rem 1.1rem; background: var(--bg-alt-color); color: var(--text); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.t6-subnav a:hover { background: var(--primary-light); color: var(--primary); }
.t6-subnav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.t6-actions-end { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; text-align: right; width: 100%; max-width: none; margin-inline: 0; }
@media (max-width: 575.98px) { .t6-actions-end { justify-content: stretch; } .t6-actions-end > a { flex: 1 1 100%; text-align: center; } }
.t6-subnav.is-start { justify-content: flex-start; }
.t6-subnav.is-small a { padding: 0.35rem 0.8rem; font-size: 0.74rem; }

/* Numbered steps */
.t6-steps { list-style: none; counter-reset: t6step; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.t6-steps li { counter-increment: t6step; position: relative; padding: var(--space-3) var(--space-3) var(--space-3) 4rem; background: var(--bg-alt-color); }
.t6-steps li::before { content: counter(t6step); position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

/* ---------- Filters and pills ---------- */
.t6-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); justify-content: center; margin: 0 0 var(--space-5); }
.t6-filter .form-select { width: auto; min-width: 200px; }
.t6-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-5); }
.t6-pill { padding: 0.5rem 1.1rem; border: 0; background: var(--bg-alt-color); color: var(--text); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all var(--transition-fast); }
.t6-pill:hover { background: var(--primary-light); color: var(--primary); }
.t6-pill.is-active { background: var(--primary); color: var(--on-primary); }

/* ---------- Gallery grid + lightbox ---------- */
.t6-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-2); }
.t6-gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-light); }
.t6-gallery__item[hidden] { display: none; }
.t6-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.t6-gallery__item:hover img, .t6-gallery__item:focus-visible img { transform: scale(1.06); }
.t6-gallery__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center; padding: var(--space-3); color: var(--band-dark-text); background: color-mix(in srgb, var(--secondary) 62%, transparent); opacity: 0; transition: opacity var(--transition-med); font-weight: 500; letter-spacing: 0.04em; }
.t6-gallery__item:hover .t6-gallery__overlay, .t6-gallery__item:focus-visible .t6-gallery__overlay { opacity: 1; }
.t6-gallery__overlay i { font-size: 1.6rem; }
.t6-lightbox .modal-content { background: var(--secondary); color: var(--band-dark-text); border: 0; border-radius: 0; position: relative; }
.t6-lightbox .modal-header { border-bottom-color: color-mix(in srgb, var(--band-dark-text) 20%, transparent); }
.t6-lightbox .modal-title { color: var(--band-dark-text); }
.t6-lightbox .modal-body { padding: 0; }
.t6-lightbox__close { position: absolute; right: var(--space-3); top: var(--space-3); z-index: 5; filter: invert(1) grayscale(1); opacity: 1; }
.t6-lightbox .modal-header .btn-close { position: static; filter: invert(1) grayscale(1); }
.t6-lightbox__img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.t6-lightbox__caption { margin: 0; padding: var(--space-3); text-align: center; color: var(--band-dark-text); }
.t6-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border: 0; background: color-mix(in srgb, var(--secondary) 75%, transparent); color: var(--band-dark-text); cursor: pointer; }
.t6-lightbox__prev { left: var(--space-3); }
.t6-lightbox__next { right: var(--space-3); }
.t6-lightbox__nav:hover { background: var(--primary); color: var(--on-primary); }
.t6-doc-frame { width: 100%; height: 75vh; border: 0; background: var(--bg); }
.t6-doc-image { display: block; max-width: 100%; margin: 0 auto; }

/* Video cards */
.t6-video { text-decoration: none; color: inherit; }
.t6-video .t6-card-media { position: relative; }
.t6-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; transition: transform var(--transition-fast); }
.t6-video:hover .t6-video__play { transform: translate(-50%, -50%) scale(1.1); }

/* ---------- Document list ---------- */
.t6-doclist { display: flex; flex-direction: column; gap: var(--space-3); }
.t6-doc { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--bg-alt-color); }
.t6-doc__icon { flex: 0 0 52px; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-size: 1.6rem; overflow: hidden; }
.t6-doc__icon img { width: 100%; height: 100%; object-fit: cover; }
.t6-doc__body { flex: 1 1 280px; min-width: 0; }
.t6-doc__desc { font-size: 0.92rem; color: var(--text-muted); }
.t6-doc__desc button { background: none; border: 0; padding: 0; }
.t6-doc__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Posts (blog, news, articles) ---------- */
.t6-post { margin-bottom: var(--space-6); }
.t6-post__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-light); margin-bottom: var(--space-4); }
.t6-post__media img, .t6-post__media .t6-art { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.t6-post:hover .t6-post__media img, .t6-post:hover .t6-post__media .t6-art { transform: scale(1.03); }
.t6-post__flag { position: absolute; left: 0; bottom: 0; background: var(--secondary); color: var(--on-secondary); padding: 0.35rem 0.8rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.t6-post__title { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: var(--space-2); }
.t6-post__title a { color: var(--text); }
.t6-post__title a:hover { color: var(--primary); }
.t6-post__text { margin-bottom: var(--space-3); }
.t6-widget { background: var(--bg); }
.t6-widget__title { font-size: 0.9rem; padding: 0.7rem var(--space-3); background: var(--bg-alt-color); border-bottom: 2px solid var(--primary); margin-bottom: var(--space-3); }
.t6-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.t6-tags a { background: var(--primary); color: var(--on-primary); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; }
.t6-tags a:hover { background: var(--primary-dark); color: var(--on-primary); }
.t6-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.t6-share a, .t6-share button { width: 38px; height: 38px; border: 0; background: var(--bg-alt-color); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); }
.t6-share a:hover, .t6-share button:hover { background: var(--primary); color: var(--on-primary); }
.t6-comment { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.t6-comment--reply { margin-left: var(--space-4); border-bottom: 0; }
.t6-comment__avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.t6-comment__head time { color: var(--text-muted); font-size: 0.82rem; margin-left: var(--space-2); }
.t6-comment p { margin: 0.25rem 0 0; }
.t6-recent { display: flex; gap: var(--space-3); padding: 0.6rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.t6-recent:last-child { border-bottom: 0; }
.t6-recent__thumb { flex: 0 0 72px; width: 72px; height: 56px; overflow: hidden; background: var(--primary-light); }
.t6-recent__thumb img, .t6-recent__thumb .t6-art { width: 100%; height: 100%; object-fit: cover; }
.t6-recent__text { display: flex; flex-direction: column; font-size: 0.88rem; line-height: 1.4; }
.t6-recent__text small { color: var(--text-muted); }

/* ---------- Contact: dark info band, form on grey, full-width map, social row ---------- */
.t6-contactband { padding: var(--space-6) 0; background: var(--bg); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.t6-contactband i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: var(--space-3); }
.t6-contactband h3 { color: var(--text); font-size: 1.15rem; margin-bottom: var(--space-3); }
.t6-contactband p { color: var(--text); }
.t6-contactband a { color: var(--primary); font-weight: 500; }
.t6-contactform { padding: var(--space-7) 0; background: var(--bg-alt-color); }
.t6-contactform__form { max-width: 680px; margin: 0 auto; }
.t6-contactform .form-control, .t6-contactform .form-select { background: var(--bg); }
.t6-btn.is-block { display: flex; width: 100%; }
.t6-map iframe { width: 100%; height: 400px; border: 0; display: block; }
.t6-map--full iframe { height: 420px; }
.t6-socialrow { padding: var(--space-5) 0; }
.t6-socialrow a { color: var(--text); font-size: 1.15rem; }
.t6-socialrow a:hover { color: var(--primary); }
.t6-contact-list li { display: flex; gap: var(--space-3); margin-bottom: var(--space-3); color: var(--text-muted); }
.t6-contact-list i { color: var(--primary); margin-top: 0.2rem; }
.t6-method { text-align: center; height: 100%; }
.t6-method__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; color: var(--primary); font-size: 1.8rem; margin-bottom: var(--space-3); }
.t6-thanks { max-width: 560px; margin: 0 auto; text-align: center; background: var(--bg-alt-color); border-top: 4px solid var(--rule); padding: var(--space-6) var(--space-5); }
.t6-thanks__icon { display: inline-flex; width: 76px; height: 76px; border-radius: 50%; align-items: center; justify-content: center; background: color-mix(in srgb, var(--success) 14%, var(--bg)); color: var(--success); font-size: 2.2rem; margin-bottom: var(--space-3); }
.t6-thanks p { margin: var(--space-3) auto var(--space-4); }
.t6-feature-panel { height: 100%; }

/* ---------- People ---------- */
.t6-profile-head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); }
.t6-topper { position: relative; }
.t6-topper__rank { position: absolute; z-index: 2; left: 0; top: var(--space-3); min-width: 34px; height: 34px; padding: 0 0.7rem; background: var(--secondary); color: var(--on-secondary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; }
.t6-topper.rank-1 .t6-topper__rank { background: var(--accent); color: var(--secondary); }
.t6-topper__score { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); }
.t6-quote { height: 100%; margin: 0; padding: var(--space-5) var(--space-4) var(--space-4); background: var(--bg-alt-color); display: flex; flex-direction: column; position: relative; }
.t6-quote__mark { position: absolute; right: var(--space-3); top: var(--space-2); font-size: 3rem; color: var(--primary-light); }
.t6-quote blockquote { margin: 0 0 var(--space-4); flex: 1; }
.t6-quote figcaption { display: flex; align-items: center; gap: var(--space-3); }
.t6-quote figcaption small { display: block; color: var(--text-muted); }

/* ---------- Grievance timeline, forms, feedback ---------- */
.t6-timeline { list-style: none; margin: var(--space-3) 0 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--border); }
.t6-timeline li { position: relative; padding: 0 0 var(--space-4) var(--space-4); color: var(--text-muted); }
.t6-timeline li::before { content: ""; position: absolute; left: -2.1rem; top: 0.2rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); }
.t6-timeline li.is-done::before { background: var(--primary); border-color: var(--primary); }
.t6-timeline li.is-current::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
.t6-timeline li.is-done { color: var(--text); }
.t6-timeline small { display: block; color: var(--text-muted); }
.t6-support { background: var(--primary-light); }
.t6-fieldset { border: 1px solid var(--border); padding: var(--space-4); margin: 0 0 var(--space-4); }
.t6-fieldset legend { float: none; width: auto; padding: 0 var(--space-2); margin-bottom: var(--space-2); font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.t6-fieldset legend small { font-family: var(--font-base); font-size: 0.8rem; color: var(--text-muted); text-transform: none; }
.t6-question { margin-bottom: var(--space-4); }
.t6-question__label { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 600; }
.t6-question__num { flex: 0 0 28px; width: 28px; height: 28px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.82rem; }
.t6-question__hint { margin: 0.25rem 0 var(--space-2) 2.4rem; font-size: 0.88rem; }
.t6-question__input { margin-left: 2.4rem; }
.t6-question__error { margin: 0.4rem 0 0 2.4rem; color: var(--danger); font-size: 0.88rem; }
.t6-likert { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.t6-likert__option { position: relative; }
.t6-likert__option input { position: absolute; opacity: 0; }
.t6-likert__option span { display: inline-block; padding: 0.45rem 1rem; background: var(--bg-alt-color); cursor: pointer; font-size: 0.9rem; }
.t6-likert__option input:checked + span { background: var(--primary); color: var(--on-primary); }
.t6-likert__option input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.t6-rating { display: inline-flex; gap: 0.2rem; }
.t6-rating__star { font-size: 1.7rem; color: var(--border); cursor: pointer; line-height: 1; transition: color var(--transition-fast); }
.t6-rating__star.is-selected { color: var(--accent); }
.t6-rating input:focus-visible + .t6-rating__star { outline: 3px solid var(--primary); outline-offset: 2px; }
.t6-rating__labels { display: flex; justify-content: space-between; max-width: 15rem; font-size: 0.8rem; color: var(--text-muted); }
.t6-btn-outline.is-block { display: flex; width: 100%; }

/* ---------- Maintenance ---------- */
.t6-maintenance__main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-5) var(--space-3); background: var(--secondary); }
.t6-maintenance__card { max-width: 560px; width: 100%; text-align: center; background: var(--bg); border-top: 4px solid var(--rule); padding: var(--space-6) var(--space-5); }
.t6-maintenance__card h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: var(--space-4) 0 var(--space-3); }
.t6-maintenance__card p { margin-left: auto; margin-right: auto; }
.t6-maintenance__sign { font-family: var(--font-display); font-style: italic; margin-top: var(--space-4); }

/* ================= BASE-LAYER BRIDGE =================
   Pages that still use the platform's neutral sx- markup (careers, placements, committee, infrastructure,
   event details, MoUs, alumni stories...) are restyled here by overriding the variables the base styles read,
   so they match the rest of the theme: square, flat, blue buttons, uppercase serif headings. */
.t6-body .sx-page {
  --sx-radius: 0;
  --sx-surface: var(--bg);
  --sx-soft: var(--bg-alt-color);
  --sx-border: var(--border);
  --sx-text: var(--text);
  --sx-muted: var(--text-muted);
  --sx-primary: var(--primary);
  --sx-on-primary: var(--on-primary);
  --sx-primary-soft: var(--primary-light);
  padding-block: var(--space-6);
}
.t6-body .sx-head h2, .t6-body .sx-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.t6-body .sx-head h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--rule); margin: var(--space-3) auto 0; }
.t6-body .sx-eyebrow { color: var(--text-muted); font-weight: 500; letter-spacing: 0.18em; font-size: 0.78rem; }
.t6-body .sx-section-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; }
.t6-body .sx-card { border: 0; background: transparent; }
.t6-body .sx-card__body { padding-inline: 0; }
.t6-body .sx-card__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; }
.t6-body .sx-panel { border: 0; background: var(--bg-alt-color); }
.t6-body .sx-link { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.t6-body .sx-badge { border-radius: 0; background: var(--primary); color: var(--on-primary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; }
.t6-body .sx-badge--muted { background: var(--bg-alt-color); color: var(--text-muted); }
.t6-body .sx-tab, .t6-body .sx-pill, .t6-body .sx-subnav a { border: 0; border-radius: 0; background: var(--bg-alt-color); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 500; }
.t6-body .sx-tab.is-active, .t6-body .sx-pill.is-active, .t6-body .sx-subnav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.t6-body .sx-table thead th { background: var(--primary); color: var(--on-primary); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.t6-body .sx-table tbody td, .t6-body .sx-table tbody th { background: var(--bg-alt-color); }
.t6-body .sx-table-wrap { border: 0; }
.t6-body .sx-pagination a, .t6-body .sx-pagination span { border: 0; border-radius: 50%; background: var(--bg-alt-color); }
.t6-body .sx-pagination [aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.t6-body .sx-steps li::marker { color: var(--primary); font-weight: 700; }
.t6-body .sx-dl > div { border-color: var(--border); }
.t6-body .sx-field input, .t6-body .sx-field select, .t6-body .sx-field textarea { border-radius: 0; background: var(--bg); }
/* Splash / lead popup (the base <dialog>): the base layer defines its --sx-* variables only under .sx-page, so give the dialog its own */
.t6-body .sx-dialog { --sx-radius: 0; --sx-surface: var(--bg); --sx-soft: var(--bg-alt-color); --sx-border: var(--border); --sx-text: var(--text); --sx-muted: var(--text-muted); --sx-primary: var(--primary); --sx-on-primary: var(--on-primary); width: min(520px, calc(100% - 32px)); }
.t6-body .sx-dialog__body { padding: var(--space-5); gap: var(--space-3); }
.t6-body .sx-dialog .sx-title { font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; margin: 0; }
.t6-body .sx-dialog .sx-form { gap: var(--space-3); }
.t6-body .sx-dialog .sx-field label { font-size: 0.82rem; letter-spacing: 0.04em; }
.t6-body .sx-dialog .sx-field input, .t6-body .sx-dialog .sx-field textarea, .t6-body .sx-dialog .sx-field select { border: 1px solid var(--border); padding: 0.7rem 0.85rem; background: var(--bg); color: var(--text); }
.t6-body .sx-dialog .sx-field input:focus, .t6-body .sx-dialog .sx-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.t6-body .sx-dialog .sx-btn { width: 100%; }
.t6-body .sx-dialog__close { border-radius: 0; }
.t6-body .sx-dialog small { color: var(--text-muted); }
.t6-body .sx-alert { border-radius: 0; border-left-width: 4px; }
.t6-body .sx-hero-media, .t6-body .sx-hero-media img, .t6-body .sx-prose img, .t6-body .sx-card__media img { border-radius: 0; }

@media (max-width: 575.98px) { .t6-block { padding: var(--space-5) 0; } .t6-maintenance__card { padding: var(--space-5) var(--space-4); } }
