/* Portal de Aprendizaje Fraijanes: brand layer for the Municipalidad de Fraijanes demo (branch demo-fraijanes only).
   Loaded last on every page, so it only re-colours and re-types; layout stays the app's own. */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fj-teal: #02474d;
  --fj-teal-2: #035a61;
  --fj-teal-3: #0a6f75;
  --fj-lime: #e2fa04;
  --fj-lime-soft: #f3ff9e;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f1f6f5;
}
html[data-theme="dark"] { --bg: #020f11; }

/* ---------- brand ---------- */
.brand-mark {
  width: 40px !important;
  height: 40px !important;
  padding: 3px;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--fj-teal) !important;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--fj-lime) 55%, transparent), 0 8px 20px rgba(2, 71, 77, .22) !important;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand strong {
  animation: none !important;
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--fj-teal) !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
}
.brand small { line-height: 1.25 !important; letter-spacing: .08em !important; }
html[data-theme="dark"] .brand strong { color: var(--fj-lime) !important; }

/* Headings in the municipal typeface. */
h1, h2, .td-hello h1 { font-family: var(--font-display); letter-spacing: -.025em; }

/* ---------- primary button: deep teal with a lime shine ---------- */
.shiny-cta {
  --btn-bg: var(--fj-teal);
  --btn-bg-subtle: var(--fj-teal-2);
  --btn-fg: #fff;
  --btn-highlight: var(--fj-lime);
  --btn-highlight-soft: var(--fj-lime-soft);
}

/* ---------- sidebar: the municipal teal, lime for "you are here" ---------- */
.sidebar {
  --text: #f2fbf9;
  --text-2: rgba(236, 250, 247, .80);
  --text-3: rgba(226, 244, 240, .64);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --surface: rgba(255, 255, 255, .06);
  --surface-soft: rgba(255, 255, 255, .07);
  --surface-strong: rgba(255, 255, 255, .10);
  --glass-border: rgba(255, 255, 255, .12);
  --inset-highlight: rgba(255, 255, 255, .06);
  --nav-active: rgba(255, 255, 255, .10);
  --accent-ink: var(--fj-lime);
  color: var(--text);
  background:
    radial-gradient(240px 200px at 0% 0%, rgba(226, 250, 4, .10), transparent 70%),
    radial-gradient(260px 260px at 100% 100%, rgba(226, 250, 4, .06), transparent 70%),
    linear-gradient(180deg, #035860 0%, #02474d 55%, #023a3f 100%) !important;
  border-right-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-theme="dark"] .sidebar {
  background:
    radial-gradient(240px 200px at 0% 0%, rgba(226, 250, 4, .07), transparent 70%),
    linear-gradient(180deg, #032e33 0%, #02242a 100%) !important;
}
.sidebar .brand strong { color: #fff !important; }
.sidebar .brand-mark { background: transparent !important; box-shadow: none !important; padding: 0; }
.sidebar .brand small { color: var(--fj-lime) !important; opacity: .9; }
.sidebar .nav-item:not(.is-active):hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.sidebar .nav-item.is-active,
.sidebar .nav-item.is-active:hover {
  background: var(--fj-lime) !important;
  color: var(--fj-teal) !important;
  box-shadow: 0 10px 26px rgba(226, 250, 4, .16) !important;
  animation: none !important;
  font-weight: 700;
}
.sidebar .nav-item.is-active svg { color: var(--fj-teal) !important; opacity: 1; }
.sidebar .nav-item.is-active .nav-badge { background: var(--fj-teal) !important; color: var(--fj-lime) !important; }
.sidebar .nav-item.is-active .nav-dot { background: var(--fj-teal) !important; box-shadow: none !important; }
.sidebar .nav-item.is-active::before, .sidebar .nav-item.is-active::after { display: none !important; }

/* Custom swatch for the default accent. */
.swatch-mint { --swatch: #1fa597 !important; }

/* ---------- login (auth): the welcome side in municipal teal ---------- */
.shiny-cta { --btn-highlight: #3cc7b6; --btn-highlight-soft: #9ff0e4; }
.welcome-stage {
  background:
    radial-gradient(700px 520px at 85% 0%, rgba(226, 250, 4, .12), transparent 65%),
    radial-gradient(800px 600px at 0% 100%, rgba(31, 165, 151, .28), transparent 70%),
    linear-gradient(160deg, #035860 0%, #02474d 50%, #01363b 100%) !important;
  border-right: 0 !important;
}
.welcome-stage .ambient-grid { opacity: .10; }
.welcome-stage .brand strong { color: #fff !important; }
.welcome-stage .brand small { color: var(--fj-lime) !important; }
.welcome-stage .brand-mark { background: transparent !important; box-shadow: none !important; width: 52px !important; height: 52px !important; padding: 0; }
.welcome-stage .brand-status { color: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); box-shadow: none; }
.welcome-stage .brand-status i { background: var(--fj-lime); box-shadow: 0 0 0 4px rgba(226, 250, 4, .18); }
.welcome-copy .eyebrow { color: var(--fj-lime); }
.welcome-copy .eyebrow i { background: var(--fj-lime); }
.welcome-copy h1 { color: #fff; font-weight: 800 !important; letter-spacing: -.035em !important; }
.welcome-copy h1 span { color: var(--fj-lime) !important; }
.welcome-copy p { color: rgba(255, 255, 255, .80) !important; }
.welcome-footer, .welcome-footer span { color: rgba(255, 255, 255, .70) !important; }
.welcome-footer .footer-separator { background: rgba(255, 255, 255, .4) !important; }
.experience-card { background: rgba(255, 255, 255, .96) !important; border-color: transparent !important; box-shadow: 0 24px 60px rgba(0, 20, 22, .30) !important; }
html[data-theme="dark"] .experience-card { background: rgba(10, 28, 30, .94) !important; }
/* "Máximo 72 bytes" means nothing to a student; the field still enforces it (maxlength). */
.label-row > span { display: none; }
@media (max-width: 900px) {
  .welcome-stage { min-height: 0 !important; padding: 20px 20px 24px !important; gap: 14px !important; }
  .welcome-stage .brand-status { display: none; }
  .welcome-copy h1 { font-size: 34px !important; margin-top: 10px !important; }
  .welcome-copy p { display: none; }
  .welcome-stage .brand-mark { width: 44px !important; height: 44px !important; }
}

/* Phones: the "do this now" card's drawing sat under the (wider) title; drop the drawing, keep the text clear. */
@media (max-width: 760px) {
  [class*="next-art"] { display: none !important; }
  .td-next h2, .td-next-sub { max-width: 100% !important; }
}
