/*
 * KidsLingua public pages — matches kidslingua.io ("Storybook Night").
 * Used by layouts/kidslingua-site. Plain CSS, no build step.
 *
 * Tokens are copied from the website (kidslingua-website/src/app/globals.css); keep them in sync.
 * Loaded after Bootstrap 5, so the second half restyles the Bootstrap / Select2 / intl-tel-input /
 * SweetAlert pieces the existing sign-up forms use, in light and dark.
 */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --background: #fbf8f1;
  --surface-1: #ffffff;
  --surface-2: #f2ecdf;
  --border: #e2d9c6;
  --input: #5e6781;
  --foreground: #0b1020;
  --muted-foreground: #46506a;
  --subtle-foreground: #5e6781;

  --primary: #f29b4c;
  --primary-hover: #e8862f;
  --primary-foreground: #0b1020;
  --primary-ink: #9a4a08;

  --accent-ink: #1e5fcc;
  --brand-blue: #2b7df0;
  --leaf: #1c7a4e;
  --berry: #c02b45;

  --ring: #1e5fcc;
  --glow: rgb(242 155 76 / 0.35);

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;

  --font-sans: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fredoka", "Nunito Sans", ui-rounded, sans-serif;
  color-scheme: light;
}

.dark {
  --background: #0b1020;
  --surface-1: #141a2e;
  --surface-2: #1e2640;
  --border: #2a3352;
  --input: #8c95ad;
  --foreground: #f7f4ec;
  --muted-foreground: #b4bcd0;
  --subtle-foreground: #8c95ad;

  --primary-hover: #ffb46b;
  --primary-ink: #f29b4c;

  --accent-ink: #5b9bff;
  --leaf: #5fd9a0;
  --berry: #ff7a8a;

  --ring: #ffd45c;
  --glow: rgb(242 155 76 / 0.28);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────── */
html {
  font-size: 87.5%; /* same compact density as the website; a % so the visitor's own font size is honoured */
  -webkit-text-size-adjust: 100%;
}
body.kl-site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.kl-site h1, .kl-site h2, .kl-site h3, .kl-site h4, .kl-site h5, .kl-site h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}
.kl-site a { color: var(--accent-ink); text-underline-offset: 3px; }
.kl-site a:hover { color: var(--accent-ink); }
.kl-site p { text-wrap: pretty; }
.kl-site :focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: none;
}
.kl-site ::selection { background: var(--primary); color: var(--primary-foreground); }
.kl-site svg { flex-shrink: 0; }

.kl-container {
  width: 100%;
  max-width: 88.5rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) { .kl-container { padding-inline: 1.5rem; } }
@media (min-width: 64rem) { .kl-container { padding-inline: 2rem; } }

.kl-main { flex: 1 0 auto; padding-block: 2.5rem 4.5rem; outline: none; }

.kl-skip {
  position: absolute; left: -9999px; top: 0.75rem; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground) !important; font-weight: 700; text-decoration: none;
}
.kl-skip:focus { left: 0.75rem; }

/* ── Buttons ────────────────────────────────────────────── */
.kl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding: 0 1.25rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.kl-btn svg { width: 1.25rem; height: 1.25rem; }
.kl-btn:active { transform: translateY(1px); }
.kl-btn--primary, .kl-site a.kl-btn--primary { background: var(--primary); color: var(--primary-foreground); }
.kl-btn--primary:hover, .kl-site a.kl-btn--primary:hover { background: var(--primary-hover); color: var(--primary-foreground); box-shadow: 0 0 0 1px var(--glow), 0 10px 40px -8px var(--glow); }
.kl-btn--ghost, .kl-site a.kl-btn--ghost { background: transparent; color: var(--foreground); }
.kl-btn--ghost:hover, .kl-site a.kl-btn--ghost:hover { background: var(--surface-2); color: var(--foreground); }
.kl-btn--outline, .kl-site a.kl-btn--outline { background: transparent; color: var(--foreground); border-color: color-mix(in srgb, var(--input) 60%, transparent); }
.kl-btn--outline:hover, .kl-site a.kl-btn--outline:hover { border-color: var(--foreground); background: var(--surface-2); color: var(--foreground); }
.kl-btn--lg { height: 3.5rem; padding: 0 1.75rem; font-size: 1.125rem; }
.kl-btn--icon { width: 2.75rem; padding: 0; }

/* ── Header ─────────────────────────────────────────────── */
.kl-header {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.kl-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.kl-logo-link { display: inline-flex; text-decoration: none; }
.kl-logo__word { background: var(--brand-blue); }
.dark .kl-logo__word { background: var(--primary); }
@media (max-width: 39.99rem) {
  .kl-logo__icon { width: 2.5rem !important; height: 2.5rem !important; }
  .kl-logo__word { width: 9.3rem !important; height: 1.75rem !important; }
}

.kl-nav { display: none; }
@media (min-width: 64rem) { .kl-nav { display: block; } }
.kl-nav ul { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.kl-nav a {
  display: block; padding: 0.625rem 1rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  color: var(--muted-foreground);
  transition: background-color .2s, color .2s;
}
.kl-site .kl-nav a:hover { background: var(--surface-2); color: var(--foreground); }

.kl-header__actions { display: flex; align-items: center; gap: 0.25rem; }
@media (min-width: 40rem) { .kl-header__actions { gap: 0.5rem; } }
.kl-hide-sm { display: none !important; }
@media (min-width: 40rem) { .kl-hide-sm { display: inline-flex !important; } }
@media (min-width: 64rem) { .kl-hide-lg { display: none !important; } }

/* Theme menu */
.kl-theme { position: relative; }
.kl-theme .kl-icon-moon { display: none; }
.dark .kl-theme .kl-icon-sun { display: none; }
.dark .kl-theme .kl-icon-moon { display: block; }
.kl-theme__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 1040;
  width: 18rem; padding: 0.375rem;
  background: var(--surface-1); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 1rem;
  box-shadow: 0 12px 40px -12px rgb(11 16 32 / 0.35);
}
.kl-theme__menu[hidden] { display: none; }
.kl-theme__label { margin: 0; padding: 0.5rem 0.75rem 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); }
.kl-theme__item {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.625rem 0.75rem; border: 0; border-radius: 0.75rem;
  background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.kl-theme__item:hover, .kl-theme__item:focus-visible { background: var(--surface-2); }
.kl-theme__item svg { width: 1.25rem; height: 1.25rem; color: var(--primary-ink); }
.kl-theme__item span { display: flex; flex-direction: column; line-height: 1.35; }
.kl-theme__item strong { font-weight: 600; }
.kl-theme__item small { font-size: 0.875rem; color: var(--muted-foreground); }
.kl-theme__item .kl-check { margin-left: auto; visibility: hidden; }
.kl-theme__item[aria-checked="true"] .kl-check { visibility: visible; }

/* Mobile menu (native <dialog>) */
.kl-sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: 100%; max-width: 24rem; height: 100%; max-height: none;
  padding: 0; border: 0; border-left: 1px solid var(--border);
  background: var(--background); color: var(--foreground);
}
.kl-sheet[open] { display: flex; flex-direction: column; }
.kl-sheet::backdrop { background: rgb(11 16 32 / 0.55); }
.kl-sheet__top { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; padding: 0 1.25rem; border-bottom: 1px solid var(--border); }
.kl-sheet nav { padding: 1rem 0.75rem; }
.kl-sheet ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.kl-sheet nav a { display: block; padding: 0.875rem 1rem; border-radius: 1rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--foreground); text-decoration: none; }
.kl-sheet nav a:hover { background: var(--surface-2); color: var(--foreground); }
.kl-sheet__actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-top: 1px solid var(--border); }

/* ── Footer ─────────────────────────────────────────────── */
.kl-footer { flex-shrink: 0; background: var(--surface-1); border-top: 1px solid var(--border); color: var(--foreground); }
.kl-footer__grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 64rem) { .kl-footer__grid { grid-template-columns: 4fr 5fr 3fr; padding-block: 5rem; } }
.kl-footer p, .kl-footer address { color: var(--muted-foreground); }
.kl-footer__about p { max-width: 24rem; margin: 1.25rem 0 0; }
.kl-footer__badge { display: inline-block; margin-top: 1.5rem; }
.kl-footer__badge img { height: 3.5rem; width: auto; }
.kl-socials { display: flex; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.kl-socials a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: var(--surface-2); color: var(--foreground); transition: background-color .2s, color .2s;
}
.kl-site .kl-socials a:hover { background: var(--primary); color: var(--primary-foreground); }
.kl-socials svg { width: 1.25rem; height: 1.25rem; }
.kl-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 40rem) { .kl-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kl-footer h2 { margin: 0; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); }
.kl-footer h2.kl-footer__title { font-family: var(--font-display); font-size: clamp(1.375rem, 1.3rem + 0.3vw, 1.625rem); letter-spacing: 0; text-transform: none; color: var(--foreground); }
.kl-footer ul.kl-links { margin: 1rem 0 0; padding: 0; list-style: none; }
.kl-footer .kl-links a { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0; color: var(--muted-foreground); text-decoration: none; }
.kl-site .kl-footer .kl-links a:hover { color: var(--foreground); text-decoration: underline; }
.kl-footer .kl-links svg { width: 1rem; height: 1rem; }
.kl-footer address { margin-top: 1.5rem; font-size: 0.95rem; font-style: normal; display: flex; flex-direction: column; gap: 0.5rem; }
.kl-footer address a, .kl-footer address p { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--muted-foreground); text-decoration: none; }
.kl-site .kl-footer address a:hover { color: var(--foreground); }
.kl-footer address svg { width: 1rem; height: 1rem; }
.kl-footer__bottom { border-top: 1px solid var(--border); }
.kl-footer__bottom .kl-container { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.5rem; font-size: 0.875rem; color: var(--subtle-foreground); }
@media (min-width: 40rem) { .kl-footer__bottom .kl-container { flex-direction: row; align-items: center; justify-content: space-between; } }
.kl-footer__bottom p { margin: 0; color: var(--subtle-foreground); }
.kl-linkbtn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Platform home ──────────────────────────────────────── */
.kl-home { display: grid; gap: 2.5rem; align-items: center; padding-block: 1.5rem 2rem; }
@media (min-width: 64rem) { .kl-home { grid-template-columns: 1.05fr 1fr; gap: 4rem; padding-block: 3rem; } }
.kl-eyebrow { display: inline-block; margin-bottom: 1rem; padding: 0.375rem 0.875rem; border-radius: 999px; background: var(--surface-2); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; color: var(--primary-ink); }
.kl-home h1 { margin: 0; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); line-height: 1.05; }
.kl-lead { margin: 1.25rem 0 0; max-width: 34rem; font-size: clamp(1.125rem, 1.08rem + 0.2vw, 1.3125rem); line-height: 1.55; color: var(--muted-foreground); }
.kl-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.kl-home__app { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--muted-foreground); font-size: 0.95rem; }
.kl-home__app img { height: 3.25rem; width: auto; }
.kl-home__art { justify-self: center; width: 100%; max-width: 36rem; height: auto; }

/* ── Existing page content (Bootstrap + plugins) ────────── */
.kl-site .container { max-width: 88.5rem; }
.kl-site .section, .kl-site .site-content { padding: 0; background: transparent; }
.kl-site .top-margin, .kl-site .m-top-30 { margin-top: 0; }

.kl-site .card {
  background: var(--surface-1); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgb(11 16 32 / 0.04);
}
.kl-site .card.border-0 { border: 1px solid var(--border) !important; }
.kl-site .card-header, .kl-site .card-footer { background: transparent; border-color: var(--border); }
.kl-site .text-black, .kl-site .text-dark { color: var(--foreground) !important; }
.kl-site .text-muted { color: var(--muted-foreground) !important; }
.kl-site .bg-white, .kl-site .bg-light { background-color: var(--surface-1) !important; color: var(--foreground); }
.kl-site .text-primary { color: var(--primary-ink) !important; }
.kl-site hr { border-color: var(--border); opacity: 1; }

.kl-site label, .kl-site .form-label, .kl-site .col-form-label { font-weight: 600; color: var(--foreground); }
.kl-site .form-label.mb-0 { margin-bottom: 0.375rem !important; }
.kl-site .form-control,
.kl-site .form-select {
  min-height: 3rem;
  padding: 0.5rem 0.875rem;
  font-size: 1rem;
  color: var(--foreground);
  background-color: var(--surface-1);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.kl-site textarea.form-control { min-height: 6rem; }
.kl-site .form-control-lg { font-size: 1.05rem; border-radius: var(--radius-md); }
.kl-site .form-control::placeholder { color: var(--subtle-foreground); opacity: 1; }
.kl-site .form-control:focus,
.kl-site .form-select:focus {
  color: var(--foreground);
  background-color: var(--surface-1);
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 35%, transparent);
  outline: none;
}
.kl-site .form-control:disabled, .kl-site .form-control[readonly] { background-color: var(--surface-2); }
.dark .kl-site .form-select,
.dark.kl-site .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b4bcd0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.kl-site .is-invalid { border-color: var(--berry) !important; }
.kl-site .form-text { color: var(--muted-foreground); }
.kl-site .form-check-input.is-invalid ~ .form-check-label { color: var(--berry); }
.kl-site .invalid-feedback { color: var(--berry); }

.kl-site .form-check-input { width: 1.25em; height: 1.25em; margin-top: 0.2em; background-color: var(--surface-1); border: 1.5px solid var(--input); }
.kl-site .form-check-input:checked { background-color: var(--accent-ink); border-color: var(--accent-ink); }
.kl-site .form-check-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 35%, transparent); border-color: var(--ring); }
.kl-site .form-check-label { font-weight: 400; }

/* Buttons used by the existing forms (.thm-btn came from the old WordPress theme). */
.kl-site .btn { border-radius: 999px; font-weight: 600; padding: 0.625rem 1.5rem; }
.kl-site .btn.thm-btn,
.kl-site .btn-primary,
.kl-site .btn-warning {
  min-height: 2.75rem;
  background: var(--primary); border: 1px solid var(--primary); color: var(--primary-foreground);
}
.kl-site .btn.thm-btn:hover,
.kl-site .btn-primary:hover,
.kl-site .btn-warning:hover {
  background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-foreground);
  box-shadow: 0 0 0 1px var(--glow), 0 10px 40px -8px var(--glow);
}
.kl-site .btn:disabled, .kl-site .btn.disabled { opacity: 0.5; }
.kl-site .btn-secondary, .kl-site .btn-light, .kl-site .btn-outline-secondary, .kl-site .btn-outline-primary {
  background: transparent; color: var(--foreground); border: 1px solid color-mix(in srgb, var(--input) 60%, transparent);
}
.kl-site .btn-secondary:hover, .kl-site .btn-light:hover, .kl-site .btn-outline-secondary:hover, .kl-site .btn-outline-primary:hover {
  background: var(--surface-2); color: var(--foreground); border-color: var(--foreground);
}
.kl-site .btn-link { color: var(--accent-ink); }

.kl-site .alert { border-radius: var(--radius-md); }
.kl-site .alert-danger { background: color-mix(in srgb, var(--berry) 12%, var(--surface-1)); border-color: color-mix(in srgb, var(--berry) 45%, transparent); color: var(--foreground); }
.kl-site .alert-success { background: color-mix(in srgb, var(--leaf) 12%, var(--surface-1)); border-color: color-mix(in srgb, var(--leaf) 45%, transparent); color: var(--foreground); }
.kl-site .alert-info, .kl-site .alert-warning { background: var(--surface-2); border-color: var(--border); color: var(--foreground); }
.kl-site .alert li { margin-left: 1rem; }

.kl-site .modal-content { background: var(--surface-1); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.kl-site .modal-header, .kl-site .modal-footer { border-color: var(--border); }
.dark .kl-site .btn-close, .dark.kl-site .btn-close { filter: invert(1) grayscale(1) brightness(2); }

.kl-site .table { color: var(--foreground); border-color: var(--border); }
.kl-site .list-group-item, .kl-site .dropdown-menu { background: var(--surface-1); color: var(--foreground); border-color: var(--border); }
.kl-site .dropdown-item { color: var(--foreground); }
.kl-site .dropdown-item:hover { background: var(--surface-2); color: var(--foreground); }

/* Sign-up pages (parent, teacher, content worker): the intro panel is desktop-only in the markup,
   which left phones with no heading. Show its text everywhere; keep the picture for wide screens. */
.kl-site .card-registration img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
@media (max-width: 1199.98px) {
  .kl-site .card-registration .col-xl-5.d-none { display: block !important; padding: 1.5rem 1.5rem 0; }
  .kl-site .card-registration .col-xl-5 img,
  .kl-site .card-registration .col-xl-5 br { display: none; }
}

/* Login (?direct=1) and password pages are shared with other organisations and use utility class
   names this template doesn't load. Give their panel the card look, and use the brand button
   instead of the inline organisation colour. */
.kl-site .bg-white.rounded-md {
  max-width: 40rem; margin: 0 auto; padding: 2rem 2.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgb(11 16 32 / 0.04);
}
.kl-site .bg-white.rounded-md button[style*="background-color"] {
  background: var(--primary) !important; border-color: var(--primary) !important; color: var(--primary-foreground) !important;
}

/* Sidebar widgets used by the content pages */
.kl-site .sidebar .widget { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }

/* Offline notice on the sign-up forms */
.kl-site .offline-flag span { display: inline-block; margin-bottom: 1rem; padding: 0.375rem 0.875rem; border-radius: 999px; background: var(--surface-2); color: var(--foreground); }

/* Select2 */
.kl-site .select2-container--default .select2-selection--single {
  height: 3rem; display: flex; align-items: center;
  background: var(--surface-1); border: 1px solid var(--input); border-radius: var(--radius-md);
}
.kl-site .select2-container--default .select2-selection--single { position: relative; }
.kl-site .select2-container--default .select2-selection--single .select2-selection__rendered { width: 100%; color: var(--foreground); font-size: 1rem; line-height: 1.5; padding-left: 0.875rem; padding-right: 4rem; }
.kl-site .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--subtle-foreground); }
.kl-site .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: 0.5rem; }
.kl-site .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--muted-foreground); }
.kl-site .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute; right: 2.25rem; top: 50%; transform: translateY(-50%); margin: 0;
  height: auto; padding: 0 0.375rem; border: 0; background: transparent;
  color: var(--muted-foreground); font-size: 1.25rem; line-height: 1;
}
.kl-site .select2-results__option { font-size: 1rem; }
.kl-site .select2-container--default.select2-container--focus .select2-selection--single,
.kl-site .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 35%, transparent); }
.kl-site .select2-dropdown { background: var(--surface-1); color: var(--foreground); border-color: var(--border); border-radius: var(--radius-md); overflow: hidden; }
.kl-site .select2-search--dropdown .select2-search__field { background: var(--surface-1); color: var(--foreground); border: 1px solid var(--input); border-radius: var(--radius-sm); padding: 0.375rem 0.625rem; }
.kl-site .select2-container--default .select2-results__option--highlighted[aria-selected],
.kl-site .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--accent-ink); color: #fff; }
.kl-site .select2-container--default .select2-results__option[aria-selected="true"],
.kl-site .select2-container--default .select2-results__option--selected { background: var(--surface-2); color: var(--foreground); }

/* intl-tel-input */
.kl-site .iti { width: 100%; }
.kl-site .iti__dropdown-content, .kl-site .iti__country-list { background: var(--surface-1); color: var(--foreground); border-color: var(--border); border-radius: var(--radius-md); }
.kl-site .iti__search-input { background: var(--surface-1); color: var(--foreground); border-color: var(--border); }
.kl-site .iti__country.iti__highlight { background: var(--surface-2); }
.kl-site .iti__dial-code { color: var(--muted-foreground); }

/* SweetAlert (v1) */
.sweet-alert { background: var(--surface-1) !important; color: var(--foreground); border-radius: var(--radius-lg) !important; font-family: var(--font-sans) !important; }
.sweet-alert h2 { font-family: var(--font-display) !important; color: var(--foreground) !important; }
.sweet-alert p { color: var(--muted-foreground) !important; }
.sweet-alert button { border-radius: 999px !important; font-weight: 600 !important; }
.sweet-alert button.confirm { background-color: var(--primary) !important; color: var(--primary-foreground) !important; box-shadow: none !important; }
.sweet-alert button.cancel { background-color: var(--surface-2) !important; color: var(--foreground) !important; }
.dark .sweet-alert .sa-icon.sa-success .sa-fix,
.dark .sweet-alert .sa-icon.sa-success::before,
.dark .sweet-alert .sa-icon.sa-success::after { background: var(--surface-1) !important; }
.sweet-overlay { background-color: rgb(11 16 32 / 0.55) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
