/* Theme 21 — Obsidian palettes and homepage.
   Loaded after main.css and eu.css so these tokens win. */

html[data-palette="black"] {
  color-scheme: dark;
  --ink: #f3f4f7;
  --ink-2: #c9cdd6;
  --ink-3: #9ba1ad;
  --muted: #6b7180;
  --line: rgba(255, 255, 255, .10);
  --bg: #0b0c10;
  --bg-2: #14161e;
  --bg-alt: #0f1117;
  --blue: #d4af37;
  --blue-2: #f1d271;
  --blue-3: #f1d271;
  --gold: #d4af37;
  --gold-2: #b8912a;
  --cyan: #f1d271;
  --on-gold: #241a05;
  --green: #34d399;
  --green-2: #059669;
}

html[data-palette="platinum"] {
  color-scheme: light;
  --ink: #12151c;
  --ink-2: #2c3340;
  --ink-3: #5c6573;
  --muted: #6b7280;
  --line: rgba(18, 21, 28, .12);
  --bg: #f4f6f8;
  --bg-2: #ffffff;
  --bg-alt: #eef1f4;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --blue-3: #60a5fa;
  --gold: #1d4ed8;
  --gold-2: #1e40af;
  --cyan: #2563eb;
  --on-gold: #ffffff;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
}

html[data-palette="gold"] {
  color-scheme: light;
  --ink: #2a2114;
  --ink-2: #4a3b24;
  --ink-3: #7a6848;
  --muted: #8a7760;
  --line: rgba(42, 33, 20, .12);
  --bg: #f7f1e6;
  --bg-2: #fffaf2;
  --bg-alt: #efe6d6;
  --blue: #a67c2d;
  --blue-2: #c4a15a;
  --blue-3: #8a6420;
  --gold: #a67c2d;
  --gold-2: #8a6420;
  --cyan: #c4a15a;
  --on-gold: #2a2114;
  --shadow: 0 8px 24px rgba(42, 33, 20, .08);
  --shadow-lg: 0 16px 40px rgba(42, 33, 20, .12);
}

html[data-palette="aurora"] {
  color-scheme: light;
  --ink: #1e1b4b;
  --ink-2: #312e81;
  --ink-3: #5b5796;
  --muted: #6d6a96;
  --line: rgba(79, 70, 229, .16);
  --bg: #f7f6fb;
  --bg-2: #ffffff;
  --bg-alt: #eef0fa;
  --blue: #4f46e5;
  --blue-2: #6366f1;
  --blue-3: #818cf8;
  --gold: #4f46e5;
  --gold-2: #4338ca;
  --cyan: #6366f1;
  --on-gold: #ffffff;
  --shadow: 0 8px 24px rgba(79, 70, 229, .08);
  --shadow-lg: 0 16px 40px rgba(79, 70, 229, .12);
}

html[data-palette="coral"] {
  color-scheme: light;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --ink-3: #5c5c5c;
  --muted: #6b6b6b;
  --line: rgba(17, 17, 17, .12);
  --bg: #faf8f6;
  --bg-2: #ffffff;
  --bg-alt: #f3efe9;
  --blue: #e15a45;
  --blue-2: #c44836;
  --blue-3: #f0a090;
  --gold: #e15a45;
  --gold-2: #c44836;
  --cyan: #e15a45;
  --on-gold: #ffffff;
  --shadow: 0 8px 24px rgba(17, 17, 17, .06);
  --shadow-lg: 0 16px 40px rgba(17, 17, 17, .08);
}

html[data-palette="platinum"] .btn--primary,
html[data-palette="aurora"] .btn--primary,
html[data-palette="coral"] .btn--primary,
html[data-palette="platinum"] .t21-pill.btn--primary,
html[data-palette="aurora"] .t21-pill.btn--primary,
html[data-palette="coral"] .t21-pill.btn--primary {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: none;
}
html[data-palette="platinum"] .btn--primary:hover,
html[data-palette="aurora"] .btn--primary:hover,
html[data-palette="coral"] .btn--primary:hover {
  background: var(--gold-2);
  color: var(--on-gold);
}
html[data-palette="gold"] .btn--primary,
html[data-palette="gold"] .t21-pill.btn--primary {
  background: linear-gradient(135deg, #e8c872, #a67c2d);
  color: #2a2114;
}

body.t21 h1,
body.t21 h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
}
body.t21 h1 em,
html[data-theme="light"] body.t21 h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: none;
  -webkit-text-fill-color: var(--gold);
  color: var(--gold);
}

.t21-nav .nav__link,
.t21-nav .nav__drop-toggle,
.t21-ghost,
.t21-pal__btn,
.btn {
  font-family: var(--font-body);
}

html[data-palette="black"] .t21-header .t21-logo {
  background: #f6f1e7;
  border-radius: 12px;
  padding: 6px 12px;
  line-height: 0;
}
.t21-header .t21-logo img {
  display: block;
  max-height: 48px;
  max-width: min(220px, 42vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.t21-header {
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--line);
}
.t21-header .t21-nav.nav,
.t21-nav {
  background: transparent;
  border-top: 1px solid var(--line);
}
.t21-goldpill { white-space: nowrap; }

.t21-pal { position: relative; }
.t21-pal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}
.t21-pal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
.t21-pal__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.t21-pal__menu[hidden] { display: none; }
.t21-pal__head {
  margin: 2px 8px 8px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.t21-pal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 10px;
  padding: 8px;
  font: 600 .9rem var(--font-body);
  cursor: pointer;
}
.t21-pal__item:hover,
.t21-pal__item.is-current { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.t21-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  flex: none;
}
.t21-swatch--black { background: radial-gradient(circle at 30% 30%, #f1d271, #0b0c10 62%); }
.t21-swatch--platinum { background: linear-gradient(135deg, #fff, #1d4ed8); }
.t21-swatch--gold { background: linear-gradient(135deg, #fffaf2, #a67c2d); }
.t21-swatch--aurora { background: linear-gradient(135deg, #fff, #4f46e5); }
.t21-swatch--coral { background: linear-gradient(135deg, #fff, #e15a45); }

.t21-hero { padding: 56px 0 28px; }
.t21-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 36px;
  align-items: center;
}
.t21-hero h1 { margin: 0 0 14px; }
.t21-hero__frame {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);
}
.t21-banner__track { position: relative; }
.t21-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.t21-banner__slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.t21-banner__slide a { display: block; }
.t21-hero__frame img,
.t21-banner__slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.t21-banner__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 12, 16, .55);
  cursor: pointer;
}
.t21-banner__nav::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.t21-banner__nav--prev { left: 12px; }
.t21-banner__nav--prev::before { transform: rotate(-135deg); margin-left: 14px; }
.t21-banner__nav--next { right: 12px; }
.t21-banner__nav--next::before { transform: rotate(45deg); margin-right: 14px; }
.t21-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.t21-banner__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.t21-banner__dots button.is-active { background: #fff; }

.t21-trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.t21-trust__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 20px;
}
.t21-trust__row strong {
  display: block;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
}
.t21-trust__row span {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  color: var(--ink-3);
}

.t21-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.t21-ticker__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: t21-marquee 48s linear infinite;
}
.t21-ticker:hover .t21-ticker__track { animation-play-state: paused; }
.t21-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}
.t21-chip:hover { color: var(--gold); border-color: var(--gold); }
@keyframes t21-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.t21-logo-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.t21-logo-row__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.t21-logo-row__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
}
.t21-logo-row__item img {
  max-height: 42px;
  width: auto;
  filter: grayscale(1);
  opacity: .85;
}
html[data-palette="black"] .t21-logo-row__item img {
  filter: grayscale(1) invert(1);
}

.t21-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.t21-svc {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: inherit;
}
.t21-svc:hover { border-color: var(--gold); color: inherit; }
.t21-svc h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.t21-svc p { margin: 0; color: var(--ink-3); font-size: .86rem; }
.t21-svc__media {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  overflow: hidden;
}
.t21-svc__media img { max-height: 56px; width: auto; }
.t21-svc__open {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.t21-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.t21-step-grid li {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.t21-step-grid span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}
.t21-step-grid h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}
.t21-step-grid p { margin: 0; color: var(--ink-3); }

.t21-quote-grid,
.t21-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.t21-news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t21-quote,
.t21-news-card {
  margin: 0;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
}
.t21-quote::before {
  content: "\201C";
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3rem;
  line-height: .8;
  color: var(--gold);
  margin-bottom: 8px;
}
.t21-quote p { color: var(--ink-2); font-size: .98rem; }
.t21-quote footer { display: flex; flex-direction: column; gap: 2px; }
.t21-quote strong { color: var(--ink); font-family: var(--font-body); }
.t21-quote span,
.t21-news-card time {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.t21-news-card {
  border-top: 2px solid var(--gold);
}
.t21-news-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 8px 0;
}
.t21-news-card p {
  color: var(--ink-3);
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t21-news-card a { font-weight: 700; font-size: .88rem; }

body.t21 .footer {
  background: var(--bg-alt);
  color: var(--ink-2);
}
body.t21 .footer a { color: var(--gold); }
body.t21 .footer h4 { color: var(--ink); }
body.t21 .stats { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
body.t21 .stat__label { color: var(--muted); }
body.t21 .slide__eyebrow { color: var(--gold); }

@media (max-width: 992px) {
  .t21-hero__grid,
  .t21-svc-grid,
  .t21-step-grid,
  .t21-quote-grid,
  .t21-news-grid,
  .t21-trust__row { grid-template-columns: 1fr 1fr; }
  .t21-header__actions .t21-ghost[href*="registration"],
  .t21-header__actions .t21-ghost[href*="dashboard"]:not([href*="logout"]) { display: none; }
}
@media (max-width: 720px) {
  .t21-hero__grid,
  .t21-svc-grid,
  .t21-step-grid,
  .t21-quote-grid,
  .t21-news-grid,
  .t21-trust__row { grid-template-columns: 1fr; }
  .t21-header .t21-header__inner {
    grid-template-columns: auto minmax(72px, 1fr) auto;
  }
  .t21-header .t21-logo { min-width: 0; overflow: hidden; }
  .t21-header .t21-logo img { max-width: 100%; max-height: 36px; }
  .fe-lang__label, .fe-lang__chev { display: none; }
  .t21-goldpill { padding: 8px 12px; font-size: .78rem; }
  .t21-pal__btn { font-size: 0; padding: 8px; }
  .t21-pal__dot { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .t21-ticker__track { animation: none; }
}
