/* ==========================================================================
   Școala Gimnazială Nr. 3 Negrești-Oaș - site styles
   Built on Bootstrap 5.3.
   Palette pulled from the school crest (blue, green) + brand magenta/sky +
   a warm yellow accent. No pure black anywhere - "ink" is a soft navy.
   ========================================================================== */

:root {
  /* ============================================================
     BRAND SYSTEM — 3 colors + accent.
     Rose is the primary. Pink is its bright tint (use for CTAs &
     accents). Navy is the secondary (titles, deep contrast).
     Yellow is the warm accent.  No sky-blue, no green in the UI.
     ============================================================ */

  /* PRIMARY · Rose scale */
  --rose-100:        #FFE6F0;
  --rose-300:        #FF6FA9;
  --brand-pink:      #ED287E;   /* bright tint */
  --brand-pink-700:  #c81e6a;
  --reach-rose:      #A30444;   /* THE brand color */
  --reach-rose-700:  #7C0334;
  --reach-rose-300:  #BC0550;
  --reach-rose-900:  #5A0220;

  /* SECONDARY · Navy (from school crest) */
  --crest-navy:      #1E4A8C;
  --crest-navy-700:  #14305f;
  --crest-navy-300:  #4397F7;   /* used only as gradient inflection */

  /* ACCENT · Sun yellow */
  --sun-yellow:      #FFC42E;
  --sun-yellow-700:  #FF9E1B;
  --sun-yellow-100:  #fff4cf;

  /* INK + warm neutrals (no pure black anywhere) */
  --ink:        #1f2a44;
  --ink-2:      #3b4661;
  --muted:      #7a6f7a;     /* warm gray for body subtext */
  --line:       #ece1e5;     /* rose-tinted hairline */
  --soft:       #faf3f5;     /* warm cream-rose surface */
  --cream:      #fff8ee;

  /* Legacy aliases — kept for backwards-compat; do not use in new code */
  --brand-blue:  var(--crest-navy);
  --brand-blue-700: var(--crest-navy-700);
  --crest-green: #2EA866;
  --crest-green-700: #1f8550;

  /* Bootstrap overrides */
  --bs-primary: #ED287E;
  --bs-primary-rgb: 237, 40, 126;
  --bs-secondary: #1E4A8C;
  --bs-secondary-rgb: 30, 74, 140;
  --bs-link-color: #1E4A8C;
  --bs-link-color-rgb: 30, 74, 140;
  --bs-link-hover-color: #A30444;
  --bs-body-color: #1f2a44;
  --bs-body-bg: #ffffff;
  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-border-radius: .85rem;
  --bs-border-radius-lg: 1.4rem;
}

.btn-primary {
  --bs-btn-bg: var(--brand-pink);
  --bs-btn-border-color: var(--brand-pink);
  --bs-btn-hover-bg: var(--brand-pink-700);
  --bs-btn-hover-border-color: var(--brand-pink-700);
  --bs-btn-active-bg: var(--brand-pink-700);
  --bs-btn-active-border-color: var(--brand-pink-700);
  --bs-btn-disabled-bg: var(--brand-pink);
  --bs-btn-disabled-border-color: var(--brand-pink);
  --bs-btn-focus-shadow-rgb: 237, 40, 126;
}
.btn-light { --bs-btn-color: var(--brand-pink); }

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.topbar {
  background: linear-gradient(90deg, #A30444 0%, #7C0334 100%);
  color: #fff;
  font-size: .85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .55rem 0;
}
.topbar-contact { display: flex; gap: 1.4rem; flex-wrap: wrap; min-width: 0; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: color .15s ease;
  min-width: 0;
  max-width: 100%;
}
.topbar-item span { overflow-wrap: anywhere; word-break: break-word; }
.topbar-item:hover { color: var(--sun-yellow); }
.topbar-item i { color: var(--sun-yellow); font-size: .9rem; flex-shrink: 0; }

.topbar-tools { display: flex; align-items: center; gap: .85rem; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .25rem .55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
  background: #fff;
  color: #A30444;
}
.lang-flag {
  width: 16px; height: 11px;
  display: inline-block;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  flex: 0 0 16px;
}
/* Romanian flag: blue/yellow/red */
.lang-flag-ro {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #002B7F 0 33.33%, #FCD116 33.33% 66.66%, #CE1126 66.66% 100%);
}
/* Union Jack abstracted to red+white+blue */
.lang-flag-en {
  position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%),
    #012169;
}
.lang-flag-en::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, transparent 40%, #C8102E 40% 60%, transparent 60%),
    linear-gradient(90deg, transparent 40%, #C8102E 40% 60%, transparent 60%);
}
/* Hungarian flag: red/white/green */
.lang-flag-hu {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #CE2939 0 33.33%, #ffffff 33.33% 66.66%, #477050 66.66% 100%);
}

@media (max-width: 575px) {
  .topbar-inner { font-size: .78rem; }
  .topbar-contact { gap: .9rem; }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(31,42,68,.06);
  padding-top: .65rem;
  padding-bottom: .65rem;
  transition: box-shadow .2s ease, background .2s ease;
}
.site-nav.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 24px -18px rgba(31,42,68,.3);
}
.brand-logo {
  width: auto;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(31,42,68,.18));
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-line-1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--crest-navy);
  letter-spacing: -.01em;
}
.brand-line-2 { font-size: .82rem; color: var(--muted); font-weight: 500; }
/* Brand name split into two parts (see _base_public.html): each stays on one
   line; on phones the first part becomes a block so the second wraps below,
   keeping the brand narrow enough for the burger to sit on the same row. */
.brand-name-a, .brand-name-b { white-space: nowrap; }

.site-nav .nav-link {
  font-weight: 500;
  color: var(--ink-2);
  padding: .5rem .85rem;
  border-radius: 999px;
  margin: 0 1px;
  transition: color .15s ease, background .15s ease;
}
.site-nav .nav-link:hover { color: var(--brand-pink); }
.site-nav .nav-link.active {
  color: var(--reach-rose);
  background: rgba(163, 4, 68, 0.08);
}

.btn-portal {
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  box-shadow: 0 10px 22px -12px rgba(237,40,126,.6);
}
.btn-portal i { font-size: 1rem; }

/* ==========================================================================
   ENROLLMENT STRIP (above hero)
   ========================================================================== */
.enroll-strip {
  background: var(--soft);
  padding: 2rem 0 1.5rem;
  position: relative;
}
.enroll-strip::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
  margin-top: 1.5rem;
}

.enroll-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 130px;
}
.enroll-card::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: -1;
  background-image:
    radial-gradient(140px 140px at 90% 50%, rgba(255,255,255,.45), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 22px);
}
.enroll-card--pink {
  background: linear-gradient(120deg, #ED287E 0%, #FF6FA9 55%, #FFC42E 130%);
  box-shadow: 0 16px 36px -22px rgba(237,40,126,.7);
}
.enroll-card--blue {
  background: linear-gradient(120deg, #14305f 0%, #1E4A8C 60%, #2a5fa8 130%);
  box-shadow: 0 16px 36px -22px rgba(20,48,95,.7);
}
.enroll-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -22px rgba(31,42,68,.5);
  color: #fff;
}

.enroll-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  flex-shrink: 0;
}
.enroll-card-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.enroll-card-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.enroll-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  margin: 0;
  color: #fff;
  line-height: 1.1;
}
.enroll-card-text {
  margin: .25rem 0 0;
  font-size: .92rem;
  color: rgba(255,255,255,.92);
  line-height: 1.45;
}
.enroll-card-cta {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.36);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.enroll-card:hover .enroll-card-cta {
  background: #fff;
  color: var(--ink);
  transform: translateX(4px);
}
@media (max-width: 575px) {
  .enroll-card { grid-template-columns: auto 1fr; padding: 1.25rem; }
  .enroll-card-cta { display: none; }
  .enroll-card-icon { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 14px; }
  .enroll-card-title { font-size: 1.3rem; }
}

/* ==========================================================================
   SECTIONS - shared
   ========================================================================== */
.section-pad   { padding: 5.5rem 0; }
.section-soft  { background: var(--soft); }
.section-head  { margin-bottom: 2rem; max-width: 760px; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
  flex-wrap: wrap;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-pink);
  margin-bottom: .75rem;
}
.section-kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand-pink);
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.1;
  margin: 0;
  color: var(--crest-navy);
}
.section-lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  line-height: 1.6;
}

.btn-cta-outline {
  border-radius: 999px;
  padding: .9rem 1.6rem;
  font-weight: 600;
  border-width: 1.5px;
  background: rgba(255,255,255,.06);
}

/* ==========================================================================
   FOOTER
   Light cream-rose surface (matches .section-soft) so it reads as a calm
   resolution after the vivid CTA strip rather than another bold rose slab.
   ========================================================================== */
.site-footer {
  background: var(--soft);
  color: var(--ink-2);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-brand { color: var(--ink); text-decoration: none; }
.footer-logo {
  height: 62px; width: auto;
  /* Logo PNG already has its own surface; no white pad needed on cream. */
}
.footer-brand-1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crest-navy);
}
.footer-brand-2 { font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.footer-blurb {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
  max-width: 420px;
  line-height: 1.6;
}
.footer-h {
  color: var(--crest-navy);
  font-family: "Manrope", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li {
  margin-bottom: .65rem;
  font-size: .92rem;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-list li i { color: var(--reach-rose); margin-top: .15rem; }
.footer-list a { color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.footer-list a:hover { color: var(--reach-rose); }

.footer-social { display: flex; gap: .65rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--reach-rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.footer-social a:hover {
  background: var(--reach-rose);
  color: #fff;
  border-color: var(--reach-rose);
  transform: translateY(-2px);
}

.footer-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0 1.25rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--reach-rose); }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 991px) {
  .site-nav .nav-link.active { background: transparent; }
  .navbar-collapse { padding-top: .5rem; }
  .btn-portal { margin-top: .5rem; align-self: flex-start; }
}
@media (max-width: 576px) {
  .section-pad { padding: 4rem 0; }
  .brand-line-1 { font-size: .95rem; }
  .brand-line-2 { font-size: .72rem; }
  .brand-logo { height: 44px; }
  .brand-name-a { display: block; }
}


/* ==========================================================================
   site-v3.css - concatenated below (consolidation only, no edits)
   ========================================================================== */

/* ==========================================================================
   site-v3.css - layer on top of site.css for the v3 ("Today-first") layout.
   Reuses brand tokens; adds the new components.
   ========================================================================== */

/* Photographic placeholder label (used by news cards without featured_image) */
.ph-label {
  display: block;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--reach-rose);
}

/* ==========================================================================
   TOPBAR · Adservio CTA
   ========================================================================== */
.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--sun-yellow);
  color: #1f2a44;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .01em;
  padding: .35rem .8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.topbar-cta:hover {
  background: #fff;
  color: var(--reach-rose);
  transform: translateY(-1px);
}
.topbar-cta i { font-size: .9rem; }

@media (max-width: 575px) {
  .topbar-cta span { display: none; }
  .topbar-cta { width: 30px; height: 30px; padding: 0; justify-content: center; }
}

/* ==========================================================================
   HERO · TODAY
   The marketing slogan is gone. This is a live information panel.
   ========================================================================== */
.today {
  background:
    radial-gradient(800px 380px at 8% 0%, rgba(163,4,68,.04), transparent 60%),
    radial-gradient(700px 340px at 100% 100%, rgba(30,74,140,.04), transparent 60%),
    #fff;
  padding: 3.5rem 0 4rem;
}

.today-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.today-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.today-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--reach-rose);
  margin-bottom: .25rem;
}
.today-date {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--crest-navy);
  margin: 0;
  text-wrap: balance;
}

/* Status pill */
.today-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: #e6f6ec;
  color: #1f8550;
  border: 1px solid #b8e3c8;
}
.today-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2EA866;
  box-shadow: 0 0 0 4px rgba(46,168,102,.18);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.12); opacity: .8; }
}
.today-status[data-state="break"] {
  background: #fff4cf; color: #8a6500; border-color: #ffe19a;
}
.today-status[data-state="break"] .today-status-dot { background: var(--sun-yellow); box-shadow: 0 0 0 4px rgba(255,196,46,.22); }
.today-status[data-state="closed"] {
  background: var(--soft); color: var(--ink-2); border-color: var(--line);
}
.today-status[data-state="closed"] .today-status-dot {
  background: var(--muted); animation: none; box-shadow: none;
}

.today-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}
.today-lead strong { color: var(--reach-rose); font-weight: 700; }

/* Bell schedule */
.bells {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1rem .75rem;
}
.bells-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem .9rem;
}
@media (max-width: 575px) { .bells-grid { grid-template-columns: 1fr; } }

.bell-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .55rem .65rem;
  border-radius: .55rem;
  font-size: .9rem;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.bell-row .bell-time {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -.01em;
}
.bell-row .bell-label { font-weight: 500; }
.bell-row .bell-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.bell-row.is-active {
  background: #fff;
  color: var(--reach-rose);
  box-shadow: 0 4px 14px -10px rgba(163,4,68,.4);
  border-left: 3px solid var(--reach-rose);
  padding-left: .35rem;
}
.bell-row.is-active .bell-time { color: var(--reach-rose); }
.bell-row.is-active .bell-label { font-weight: 700; }
.bell-row.is-active .bell-tag { color: var(--reach-rose); }

.bell-row.is-past   { opacity: .45; }
.bell-row.is-break  { color: var(--sun-yellow-700); font-style: italic; }

/* Quick actions */
.today-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
@media (max-width: 767px) { .today-actions { grid-template-columns: 1fr; } }

.action {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: .9rem;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -22px rgba(31,42,68,.25);
  color: var(--ink);
  border-color: transparent;
}
.action i {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}
.action span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.action-title { font-weight: 700; font-size: .92rem; }
.action-sub   { font-size: .78rem; color: var(--muted); margin-top: .1rem; }

.action--rose   i { background: linear-gradient(135deg, #ED287E, #A30444); }
.action--yellow i { background: linear-gradient(135deg, #FFD45A, #FF9E1B); color: #1f2a44; }
.action--navy   i { background: linear-gradient(135deg, #2a5fa8, #14305f); }

/* School photo */
.school-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
}
.school-photo-img {
  flex: 1;
  width: 100%;
  min-height: 380px;
  max-height: 560px;
  border-radius: 1.4rem;
  object-fit: cover;
  object-position: center;
  display: block;
}
.school-photo-cap {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  font-size: .85rem;
}
.cap-name { font-weight: 700; color: var(--ink); }
.cap-loc  { color: var(--muted); font-size: .82rem; margin-top: .15rem; }

/* ==========================================================================
   BY THE NUMBERS
   ========================================================================== */
.numbers {
  background: var(--reach-rose);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 240px at 95% 10%, rgba(255,196,46,.18), transparent 60%),
    radial-gradient(500px 240px at 5% 100%, rgba(237,40,126,.20), transparent 60%);
  pointer-events: none;
}
.numbers-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem 2rem;
}
@media (max-width: 991px) { .numbers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }

.num { display: flex; flex-direction: column; gap: .35rem; }
.num-big {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
}
.num-plus {
  font-size: .55em;
  color: var(--sun-yellow);
  margin-left: .1rem;
  font-weight: 800;
}
.num-label {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
  max-width: 22ch;
  text-wrap: balance;
}

/* ==========================================================================
   PARENTAL TOOLS
   ========================================================================== */
.tools { background: var(--soft); padding: 4rem 0 4.5rem; }
.tool {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -24px rgba(31,42,68,.25);
  border-color: var(--reach-rose);
  color: var(--ink);
}
.tool-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ED287E, #A30444);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.tool-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.tool-title { font-weight: 700; font-size: 1rem; color: var(--crest-navy); }
.tool-sub   { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.tool-arrow { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.tool:hover .tool-arrow { color: var(--reach-rose); transform: translateX(3px); }

/* ==========================================================================
   NEWS · 1 big + 3 small
   ========================================================================== */
.news-v3 { padding-top: 5rem; padding-bottom: 5rem; }
.news-big {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-big:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -32px rgba(31,42,68,.28); }
.news-big-media {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(45deg,
      rgba(163,4,68,.06) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, var(--soft), #fff);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .25rem;
  padding: 1.5rem;
}
.news-big-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.news-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  background: var(--reach-rose);
  color: #fff;
  border-radius: 999px;
}
.news-tag--rose   { background: var(--brand-pink); }
.news-tag--yellow { background: var(--sun-yellow); color: #1f2a44; }
.news-tag--navy   { background: var(--crest-navy); }
.news-date {
  font-size: .82rem;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.news-big-title { margin: 0; font-size: 1.55rem; line-height: 1.2; font-family: "Fraunces", Georgia, serif; }
.news-big-title a {
  color: var(--crest-navy);
  text-decoration: none;
  background-image: linear-gradient(var(--reach-rose), var(--reach-rose));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size .3s ease;
  padding-bottom: 2px;
}
.news-big-title a:hover { background-size: 100% 2px; }
.news-big-text { color: var(--muted); font-size: .98rem; margin: 0; line-height: 1.6; }

.news-small {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.news-small:last-of-type { border-bottom: 0; }
.news-small-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.news-small-meta .news-tag { font-family: "Manrope", sans-serif; padding: .2rem .5rem; font-size: .65rem; }
.news-small-title { margin: 0; font-size: 1.15rem; line-height: 1.3; font-family: "Fraunces", Georgia, serif; }
.news-small-title a {
  color: var(--crest-navy);
  text-decoration: none;
  transition: color .15s ease;
}
.news-small-title a:hover { color: var(--reach-rose); }
.news-small-text { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   FOOTER · the tagline lives here
   ========================================================================== */
.footer-v3 .footer-tag {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-v3 .footer-tag-1 { color: var(--crest-navy); }
.footer-v3 .footer-tag-2 { color: var(--sun-yellow-700); }
.footer-v3 .footer-tag-3 { color: var(--reach-rose); }

@media (max-width: 575px) {
  .today { padding: 2.5rem 0 3rem; }
  .school-photo { min-height: 320px; margin-top: .5rem; }
  .today-actions { gap: .5rem; }
  .numbers-grid { gap: 1.25rem 1rem; }
  .num-big { font-size: 2.1rem; }
}


/* ==========================================================================
   site-v4.css - concatenated below (consolidation only, no edits)
   ========================================================================== */

/* ==========================================================================
   site-v4.css - v4 overrides on top of v3.
   Reach Rose primary buttons, enrollment strip, single-Adservio hero tile.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Primary CTAs in v4 = Reach Rose (not the brand pink)
   -------------------------------------------------------------------------- */
body.v4 .btn-primary {
  --bs-btn-bg: var(--reach-rose);
  --bs-btn-border-color: var(--reach-rose);
  --bs-btn-hover-bg: var(--reach-rose-700);
  --bs-btn-hover-border-color: var(--reach-rose-700);
  --bs-btn-active-bg: var(--reach-rose-700);
  --bs-btn-active-border-color: var(--reach-rose-700);
  --bs-btn-disabled-bg: var(--reach-rose);
  --bs-btn-disabled-border-color: var(--reach-rose);
  --bs-btn-focus-shadow-rgb: 163, 4, 68;
}
body.v4 .btn-portal {
  box-shadow: 0 10px 22px -12px rgba(163, 4, 68, .55);
}

/* --------------------------------------------------------------------------
   Enrollment strip · sits between sticky navbar and the "Astăzi" hero.
   Reuses the .enroll-card markup from v1, but with v4-tuned palette so
   the two cards sit in the brand's rose/navy duality.
   -------------------------------------------------------------------------- */
body.v4 .enroll-v4 {
  background: #fff;
  padding: 1.75rem 0 .5rem;
}
body.v4 .enroll-v4 .enroll-card { min-height: 140px; }

body.v4 .enroll-card--rose {
  background: linear-gradient(120deg, #ED287E 0%, #A30444 60%, #7C0334 130%);
  box-shadow: 0 16px 36px -22px rgba(163, 4, 68, .65);
}
body.v4 .enroll-card--navy {
  background: linear-gradient(120deg, #14305f 0%, #1E4A8C 60%, #2a5fa8 130%);
  box-shadow: 0 16px 36px -22px rgba(20, 48, 95, .65);
}

/* --------------------------------------------------------------------------
   Stats band · v4 has 4 numbers, evenly distributed, text centered.
   -------------------------------------------------------------------------- */
body.v4 .numbers-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.5rem;
}
body.v4 .num {
  align-items: center;
  text-align: center;
}
body.v4 .num-big { justify-content: center; }
body.v4 .num-label { max-width: none; text-align: center; }

@media (max-width: 991px) {
  body.v4 .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  body.v4 .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Scroll-to-top button · floating circular control, brand-coloured,
   appears after the user scrolls past the hero. (Definitions further down.)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Section background rhythm · alternate cool blue tint with the rose tint
   so the bottom half of the page doesn't read as one continuous pink slab.
   Same lightness as --soft (#faf3f5), just hue-shifted toward navy.
   -------------------------------------------------------------------------- */
:root { --soft-blue: #eef2fa; }

body.v4 .tools     { background: var(--soft-blue); }
body.v4 .news-v3   { background: var(--soft-blue); }
/* .partners-v3 stays rose; .site-footer stays rose. Alternation gives:
   numbers(rose) → stories(white) → tools(blue) → note(white)
   → partners(rose) → news(blue) → footer(rose). */

/* --------------------------------------------------------------------------
   MAYOR · thanks-to-the-Primărie section above the stats band.
   Calm cream-blue surface so the colourful municipal crest can sing without
   competing with our brand rose.
   -------------------------------------------------------------------------- */
body.v4 .mayor {
  background: var(--soft-blue);
  padding: 2rem 0 4rem;
}
body.v4 .mayor-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}
body.v4 .mayor-card::before {
  /* subtle warm wash from the rose family, hinting at brand continuity */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at -10% 110%, rgba(163,4,68,.04), transparent 60%);
  pointer-events: none;
}
@media (max-width: 767px) {
  body.v4 .mayor-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }
}

body.v4 .mayor-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
body.v4 .mayor-crest img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(20, 48, 95, .15));
}
@media (max-width: 767px) {
  body.v4 .mayor-crest img { max-height: 200px; width: auto; }
}

body.v4 .mayor-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.v4 .mayor-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--reach-rose);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
body.v4 .mayor-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--reach-rose);
}
@media (max-width: 767px) {
  body.v4 .mayor-eyebrow { justify-content: center; }
}

body.v4 .mayor-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--reach-rose);
  margin: 0;
  text-wrap: balance;
}
body.v4 .mayor-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
@media (max-width: 767px) {
  body.v4 .mayor-text { margin-left: auto; margin-right: auto; }
}
body.v4 .mayor-text--quiet { color: var(--muted); font-size: .92rem; }

body.v4 .mayor-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .25rem;
  padding: .7rem 1.1rem;
  border: 1.5px solid var(--reach-rose);
  border-radius: 999px;
  color: var(--reach-rose);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
body.v4 .mayor-link:hover {
  background: var(--reach-rose);
  color: #fff;
  transform: translateY(-1px);
}
body.v4 .mayor-link i:last-child { font-size: .8rem; opacity: .8; }
@media (max-width: 767px) {
  body.v4 .mayor-link { align-self: center; }
}
body.v4 .scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--crest-navy);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 14px 28px -10px rgba(30, 74, 140, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease, visibility .2s linear .2s;
}
body.v4 .scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, background .15s ease, visibility 0s linear 0s;
}
body.v4 .scroll-top:hover { background: #163a70; transform: translateY(-2px); }
body.v4 .scroll-top:focus-visible { outline: 3px solid var(--sun-yellow); outline-offset: 3px; }

/* Tenant override: soft-blue navbar background. */
body.v4 .site-nav {
  background: var(--soft-blue);
}
body.v4 .site-nav.is-scrolled {
  background: var(--soft-blue);
}

/* --------------------------------------------------------------------------
   Transparență (public): category grid + per-category year-grouped list.
   -------------------------------------------------------------------------- */
body.v4 .transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
body.v4 .transparency-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.25rem 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.v4 .transparency-card:hover {
  transform: translateY(-2px);
  border-color: var(--crest-navy);
  box-shadow: 0 14px 28px -18px rgba(20, 48, 95, .35);
}
body.v4 .transparency-card.is-empty { opacity: .65; }
body.v4 .transparency-card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
}
body.v4 .transparency-card-head i {
  font-size: 1.4rem;
  color: var(--reach-rose);
  flex-shrink: 0;
}
body.v4 .transparency-card-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--crest-navy);
  line-height: 1.3;
}
body.v4 .transparency-card-latest {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
}
body.v4 .transparency-card-latest-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
body.v4 .transparency-card-latest-title {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.35;
}
body.v4 .transparency-card-latest-meta {
  font-size: .78rem;
  color: var(--muted);
}
body.v4 .transparency-card-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--reach-rose);
}
body.v4 .transparency-card-empty {
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}

body.v4 .transparency-groups {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 2rem;
}
body.v4 .transparency-group-title {
  margin: 0 0 1rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--crest-navy);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--reach-rose);
  display: inline-block;
}
body.v4 .transparency-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
body.v4 .transparency-doc-link {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .75rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body.v4 .transparency-doc-link:hover {
  border-color: var(--reach-rose);
  background: #fff8fb;
  box-shadow: 0 10px 22px -16px rgba(163, 4, 68, .25);
}
body.v4 .transparency-doc-link > i {
  font-size: 1.5rem;
  color: var(--reach-rose);
  flex-shrink: 0;
  margin-top: .1rem;
}
body.v4 .transparency-doc-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
body.v4 .transparency-doc-title {
  font-weight: 700;
  font-size: .98rem;
  color: var(--crest-navy);
  line-height: 1.35;
}
body.v4 .transparency-doc-summary {
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.45;
}
body.v4 .transparency-doc-meta {
  font-size: .78rem;
  color: var(--muted);
}
body.v4 .transparency-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  text-align: center;
}
body.v4 .transparency-empty i {
  font-size: 2.5rem;
  color: var(--muted);
}
body.v4 .transparency-empty p {
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Consiliul de Administrație (public + portal)
   -------------------------------------------------------------------------- */
.council-section-h {
  margin: 3rem 0 1.5rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--crest-navy);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--reach-rose);
  display: inline-block;
}
.council-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.council-member-card {
  padding: 1.25rem 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.council-mandate-pill {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  background: var(--reach-rose);
  color: #fff;
  border-radius: 999px;
}
.council-member-name {
  margin: .35rem 0 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--crest-navy);
  line-height: 1.3;
}
.council-member-meta {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.council-decisions {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.council-decision-row { margin: 0; }
.council-decision-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .75rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.council-decision-link:hover {
  border-color: var(--reach-rose);
  background: #fff8fb;
  box-shadow: 0 10px 22px -16px rgba(163, 4, 68, .25);
}
.council-decision-number {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--reach-rose);
  min-width: 70px;
}
.council-decision-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.council-decision-title {
  font-weight: 700;
  color: var(--crest-navy);
  line-height: 1.35;
}
.council-decision-meta {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .15rem;
}
.council-decision-link > i {
  color: var(--reach-rose);
  font-size: 1.1rem;
}

.council-attachment-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.council-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--crest-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: background .15s ease, border-color .15s ease;
}
.council-attachment-link:hover {
  background: #fff;
  border-color: var(--reach-rose);
  color: var(--reach-rose);
}

/* Portal tabs across the three council resources */
.council-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.council-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: .5rem .5rem 0 0;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
  margin-bottom: -1px;
}
.council-tab:hover { color: var(--reach-rose); background: var(--soft); }
.council-tab.is-active {
  color: var(--reach-rose);
  border-color: var(--line) var(--line) transparent var(--line);
  border-bottom-color: #fff;
  background: #fff;
}

/* --------------------------------------------------------------------------
   Înscriere (public + portal)
   -------------------------------------------------------------------------- */
.enrollment-hero { display: flex; flex-direction: column; gap: .75rem; }
.enrollment-archive-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 0;
  padding: .5rem .85rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink-2);
  font-size: .92rem;
  align-self: flex-start;
}
.enrollment-deadline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 0;
  padding: .65rem 1rem;
  background: linear-gradient(135deg, #fff, var(--soft));
  border: 1px solid var(--line);
  border-left: 4px solid var(--reach-rose);
  border-radius: .65rem;
  color: var(--ink);
  font-size: 1rem;
  align-self: flex-start;
}
.enrollment-deadline strong { color: var(--reach-rose); }

.enrollment-document-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.enrollment-document-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--crest-navy);
  text-decoration: none;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.enrollment-document-link:hover {
  border-color: var(--reach-rose);
  background: #fff8fb;
  color: var(--reach-rose);
  box-shadow: 0 10px 22px -16px rgba(163, 4, 68, .25);
}
.enrollment-document-link > i { color: var(--reach-rose); font-size: 1.2rem; }

.enrollment-contact-block {
  white-space: pre-wrap;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.enrollment-contact-text { white-space: pre-wrap; }

.enrollment-criteria { background: var(--soft-blue); padding: 1.5rem 1.75rem; border-radius: 1rem; }
.enrollment-criteria h2 { margin-top: 0; }

/* --------------------------------------------------------------------------
   Notificări + Jurnal de audit
   -------------------------------------------------------------------------- */
.portal-notif {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.portal-notif:hover { background: var(--soft-blue); color: var(--reach-rose); }
.portal-notif > i { font-size: 1.2rem; }
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--reach-rose);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.notif-row { margin: 0; }
.notif-row-form { margin: 0; }
.notif-row-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.notif-row.is-unread .notif-row-button {
  border-left: 4px solid var(--reach-rose);
  background: #fff8fb;
}
.notif-row-button:hover {
  border-color: var(--reach-rose);
  box-shadow: 0 10px 22px -16px rgba(163, 4, 68, .2);
}
.notif-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .78rem;
  color: var(--muted);
}
.notif-kind { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.notif-title { font-weight: 700; color: var(--crest-navy); line-height: 1.35; }
.notif-body { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.notif-badge-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--reach-rose);
}

.notif-pref-form .form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* Audit log */
.audit-row td code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .25rem;
  padding: 0 .35rem;
  color: var(--reach-rose);
  font-size: .82rem;
}
.audit-tampered {
  background: #fbe9eb !important;
  color: #A30444 !important;
  border-color: #A30444 !important;
}
.audit-payload {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .85rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 480px;
}
.status-pill.is-danger {
  background: #fbe9eb;
  color: #A30444;
  border-color: #A30444;
}

/* Icon-size utilities (replace inline style="font-size: ...") */
.icon-lg { font-size: 2rem; }
.icon-xl { font-size: 2.5rem; color: var(--muted); }

/* ==========================================================================
   NAVBAR · brand-styled dropdown ("Despre noi" -> sub-pages)
   ========================================================================== */
body.v4 .site-nav .nav-link.dropdown-toggle::after {
  margin-left: .35rem;
  vertical-align: .15em;
  border-top-color: currentColor;
  opacity: .7;
}
body.v4 .site-nav .nav-item.dropdown.show > .nav-link {
  color: var(--reach-rose);
  background: rgba(163, 4, 68, .08);
}
body.v4 .site-dropdown {
  min-width: 320px;
  padding: .65rem;
  margin-top: .5rem !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px -22px rgba(20, 48, 95, .25);
}
body.v4 .site-dropdown .dropdown-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  column-gap: .75rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  white-space: normal;
}
body.v4 .site-dropdown .dropdown-item i {
  color: var(--reach-rose);
  font-size: 1rem;
  margin-top: .2rem;
}
body.v4 .site-dropdown .dropdown-item strong {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  color: var(--crest-navy);
  line-height: 1.2;
}
body.v4 .site-dropdown .dropdown-item em {
  display: block;
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .15rem;
  line-height: 1.3;
}
body.v4 .site-dropdown a.dropdown-item:hover,
body.v4 .site-dropdown a.dropdown-item:focus {
  background: var(--soft);
  color: var(--ink);
}
body.v4 .site-dropdown a.dropdown-item:hover strong,
body.v4 .site-dropdown a.dropdown-item:focus strong { color: var(--reach-rose); }
/* Single-line --quiet items center-align icon + label (the two-line default
   `align-items: start` only makes sense when there's a <strong> + <em>). */
body.v4 .site-dropdown .dropdown-item--quiet {
  align-items: center;
}
body.v4 .site-dropdown .dropdown-item--quiet i {
  color: var(--ink-2);
  margin-top: 0;
}
body.v4 .site-dropdown .dropdown-item--quiet strong { color: var(--ink-2); }
body.v4 .site-dropdown .dropdown-item--soon {
  cursor: default;
  opacity: .55;
}
body.v4 .site-dropdown .dropdown-item--soon i { color: var(--muted); }
body.v4 .site-dropdown .dropdown-item--soon strong { color: var(--ink-2); }
body.v4 .site-dropdown .dropdown-divider {
  margin: .35rem 0;
  border-top-color: var(--line);
}
@media (max-width: 991px) {
  body.v4 .site-dropdown {
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 .5rem 1rem;
    margin: 0 !important;
    min-width: 0;
  }
  body.v4 .site-dropdown .dropdown-item { padding: .55rem .65rem; }
  body.v4 .site-dropdown a.dropdown-item:hover,
  body.v4 .site-dropdown a.dropdown-item:focus { background: transparent; }
}

/* ==========================================================================
   HEAD MASTER NOTE ("Mesajul directorului")
   ========================================================================== */
.note { background: #fff; padding-bottom: 5rem; }
.note-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 2.25rem 2.5rem;
  align-items: start;
}
@media (max-width: 767px) {
  .note-card { grid-template-columns: 1fr; padding: 1.75rem; }
}
/* No director portrait on file: message spans the full card, no empty column. */
.note-card--solo { grid-template-columns: 1fr; }
.note-portrait {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg,
      rgba(163,4,68,.06) 0 12px,
      transparent 12px 24px),
    linear-gradient(180deg, var(--soft), #fff);
  border: 1px dashed rgba(163,4,68,.28);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: 1.25rem;
}
.note-portrait-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
}
.note-body { display: flex; flex-direction: column; gap: 1rem; }
.note-h {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--crest-navy);
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.note-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 65ch;
  text-wrap: pretty;
}
.note-text a { color: var(--reach-rose); text-decoration: underline; text-underline-offset: 3px; }
.note-sign {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.note-sign-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--crest-navy);
  font-weight: 700;
}
.note-sign-meta { font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* ==========================================================================
   PARTNERS - tiered grid (Adservio hero / programs / institutional seals)
   ========================================================================== */
.partners {
  background: var(--soft);
  padding: 5rem 0;
}
.partners .tier-h {
  font-family: "Manrope", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 .85rem;
}
.partners .section-head { margin-bottom: .35rem; }
.partners .section-head .section-lede { margin-bottom: .25rem; }
.partners .plat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.partners .plat:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -28px rgba(31,42,68,.3);
  color: var(--ink);
}
.partners .plat-mono {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  padding: .75rem 1rem;
  border-radius: 14px;
  min-width: 110px;
  text-align: center;
  color: #fff;
  line-height: 1;
}
.partners .plat--rose .plat-mono {
  background: linear-gradient(135deg, #ED287E, #A30444);
}
.partners .plat-body { display: flex; flex-direction: column; line-height: 1.3; }
.partners .plat-name { font-weight: 700; font-size: 1.05rem; color: var(--crest-navy); }
.partners .plat-sub  { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.partners .plat-arrow { color: var(--reach-rose); font-size: 1rem; transition: transform .2s ease; }
.partners .plat:hover .plat-arrow { transform: translate(2px,-2px); }
.partners .plat-hero {
  padding: 1.75rem 2rem;
}
.partners .plat-hero .plat-mono {
  font-size: 1.6rem;
  min-width: 140px;
  padding: 1rem 1.25rem;
}
.partners .plat-hero .plat-name { font-size: 1.2rem; }
.partners .plat-hero .plat-sub  { font-size: .95rem; max-width: 56ch; }
.partners .plat-hero .plat-arrow { font-size: 1.15rem; }
@media (max-width: 575px) {
  .partners .plat-hero { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; gap: .85rem; }
  .partners .plat-hero .plat-arrow { display: none; }
}
.partners .plat-sm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  padding: 1.1rem .9rem;
  min-height: 110px;
  justify-content: center;
}
.partners .plat-mono-sm {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  padding: .5rem .8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD45A, #FF9E1B);
  color: var(--crest-navy);
  line-height: 1;
}
.partners .plat-name-sm { font-size: .85rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.partners .plat--yellow:hover { border-color: var(--sun-yellow); }
.partners .inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 991px) { .partners .inst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .partners .inst-grid { grid-template-columns: 1fr; } }
/* The featured card (ISJ) spans the full grid width on the first row. */
.partners .inst-card--featured { grid-column: 1 / -1; }
.partners .inst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: .65rem;
  padding: 1.25rem 1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.partners .inst-card::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0;
  height: 3px;
  background: var(--sun-yellow);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity .2s ease, left .25s ease, right .25s ease;
}
.partners .inst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -26px rgba(20, 48, 95, .35);
  border-color: var(--crest-navy);
  color: var(--ink);
}
.partners .inst-card:hover::before { opacity: 1; left: 12%; right: 12%; }
.partners .inst-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: .55rem .65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a5fa8, #14305f);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}
.partners .inst-name {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: var(--crest-navy);
  line-height: 1.25;
}
.partners .inst-sub {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.35;
  text-wrap: balance;
}

/* Colored card variants - re-use the EXACT enrollment-card gradient + the
   diagonal-stripe overlay so the partners band matches the Clasa
   pregătitoare / Clasa a VIII-a hero cards at the top of the page. */
.partners .inst-card--navy,
.partners .inst-card--rose {
  border-color: transparent;
  color: #fff;
  isolation: isolate;
}
.partners .inst-card--navy {
  background: linear-gradient(120deg, #14305f 0%, #1E4A8C 60%, #2a5fa8 130%);
  box-shadow: 0 16px 36px -22px rgba(20, 48, 95, .65);
}
.partners .inst-card--rose {
  background: linear-gradient(120deg, #ED287E 0%, #A30444 60%, #7C0334 130%);
  box-shadow: 0 16px 36px -22px rgba(163, 4, 68, .65);
}
.partners .inst-card--navy::before,
.partners .inst-card--rose::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: -1;
  background-image:
    radial-gradient(140px 140px at 90% 50%, rgba(255,255,255,.45), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 22px);
  /* Override the yellow underline accent that the default .inst-card uses. */
  height: auto; bottom: 0; left: 0; right: 0;
  background-color: transparent;
  border-radius: 0;
}
.partners .inst-card--navy:hover,
.partners .inst-card--rose:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -22px rgba(31,42,68,.5);
  border-color: transparent;
}
.partners .inst-card--navy:hover::before,
.partners .inst-card--rose:hover::before { opacity: .35; left: 0; right: 0; }
.partners .inst-card--navy .inst-name,
.partners .inst-card--rose .inst-name { color: #fff; }
.partners .inst-card--navy .inst-sub,
.partners .inst-card--rose .inst-sub { color: rgba(255, 255, 255, .82); }
/* Badge on colored variants: white pill, brand-colored serif text. */
.partners .inst-card--navy .inst-badge {
  background: #fff;
  color: var(--crest-navy);
}
.partners .inst-card--rose .inst-badge {
  background: #fff;
  color: var(--reach-rose);
}
/* Featured variant (ISJ) gets a roomier badge + slightly larger text. */
.partners .inst-card--featured {
  padding: 1.5rem 1.5rem 1.75rem;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}
.partners .inst-card--featured .inst-badge {
  width: auto;
  min-width: 140px;
  font-size: 1.35rem;
  min-height: 64px;
  flex-shrink: 0;
}
.partners .inst-card--featured .inst-name { font-size: 1.1rem; }
.partners .inst-card--featured .inst-sub { font-size: .88rem; }
@media (max-width: 575px) {
  .partners .inst-card--featured { flex-direction: column; text-align: center; }
  .partners .inst-card--featured .inst-badge { width: 100%; min-width: 0; }
}

/* ==========================================================================
   FOOTER CREDITS (centered row under .footer-bottom)
   ========================================================================== */
.footer-credits {
  margin-top: .75rem;
  text-align: center;
}
.footer-credits small {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.footer-credits a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-credits a:hover { color: var(--reach-rose); }

/* ==========================================================================
   "Despre noi" + reusable CMS shells (article meta, version cards, forms)
   Used by the about app; intentionally generic so other content apps can
   adopt them later.
   ========================================================================== */
.cms-archive-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 0;
  padding: .5rem .85rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink-2);
  font-size: .92rem;
  align-self: flex-start;
}
.cms-archive-note a {
  color: var(--reach-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cms-article-media {
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cms-article-media img { width: 100%; height: auto; display: block; }
.cms-article-empty {
  margin-top: 1.5rem;
  color: var(--muted);
  font-style: italic;
}
.cms-article-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.cms-article-foot a { color: var(--reach-rose); text-decoration: none; }
.cms-article-foot a:hover { text-decoration: underline; }

.cms-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .75rem;
  margin-bottom: 1.5rem;
}
.cms-meta > div { display: flex; flex-direction: column; gap: .15rem; }
.cms-meta strong { color: var(--ink); font-weight: 700; }

.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .card-grid-2 { grid-template-columns: 1fr; } }

.card-tile {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -22px rgba(20, 48, 95, .25);
  border-color: var(--crest-navy);
  color: var(--ink);
}
.card-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.card-tile-kicker {
  font-family: "Manrope", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-tile-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--crest-navy);
  line-height: 1.25;
}
.card-tile-title em { font-style: italic; color: var(--muted); font-weight: 500; }
.card-tile-meta {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
}
.card-tile-foot {
  margin: .5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
}
.card-tile-foot .cell-arrow { color: var(--reach-rose); transition: transform .2s ease; }
.card-tile:hover .cell-arrow { transform: translateX(3px); }

.cms-form { display: flex; flex-direction: column; gap: 1rem; }
.cms-form-meta {
  padding: .75rem 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--crest-navy);
  border-radius: .65rem;
  color: var(--ink-2);
}
.form-row--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 767px) { .form-row--grid { grid-template-columns: 1fr; } }
.form-row--grid > div { display: flex; flex-direction: column; gap: .35rem; }
.form-row--grid > div label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.form-hint { color: var(--muted); font-size: .8rem; }
.form-error { color: var(--reach-rose); font-size: .8rem; }

.inline-form { display: inline; }
.inline-form button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* ==========================================================================
   Branded error hero (400 / 403 / 403_csrf / 404 - all extend _base_public).
   500 uses standalone /static/css/error.css and does NOT reach this rule.
   ========================================================================== */
.error-hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  box-shadow: 0 20px 48px -28px rgba(20, 48, 95, .2);
}
.error-hero-code {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 4.5rem;
  letter-spacing: -.02em;
  color: var(--reach-rose);
  line-height: 1;
}
.error-hero-icon {
  display: block;
  font-size: 2.5rem;
  color: var(--crest-navy);
  margin: .5rem auto 1rem;
}
.error-hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--crest-navy);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.error-hero-text {
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}
.error-hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.error-hero-links {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: .92rem;
}
.error-hero-links a {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.error-hero-links a i { color: var(--reach-rose); }
.error-hero-links a:hover { color: var(--reach-rose); }
@media (max-width: 575px) {
  .error-hero { padding: 2rem 1.25rem; }
  .error-hero-code { font-size: 3.5rem; }
}

/* Tables inside .cms-article (legal pages, content articles) */
.cms-article table,
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.cms-article th,
.cms-article td,
.cookies-table th,
.cookies-table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cms-article thead th,
.cookies-table thead th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
}
.cms-article code,
.cookies-table code {
  background: var(--soft);
  padding: .12em .4em;
  border-radius: 4px;
  font-size: .9em;
  color: var(--reach-rose);
}

/* Pager for public list pages (events, projects, future news). */
.public-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.public-pager-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--crest-navy);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.public-pager-link:hover {
  background: var(--crest-navy);
  color: #fff;
  border-color: var(--crest-navy);
}
.public-pager-page {
  font-size: .9rem;
  color: var(--muted);
}

/* ==========================================================================
   Honeypot field wrapper - off-screen but present in the DOM.
   `display: none` is reliably detected by bots; left:-10000px keeps the
   field rendered (and tab-reachable only via tabindex=-1 from the widget).
   ========================================================================== */
.honeypot-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Public messages - banner row between navbar and content.
   ========================================================================== */
.public-messages { padding: 1.25rem 0 0; }
.public-message {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: .65rem;
  font-size: .95rem;
  margin-bottom: .5rem;
}
.public-message i { font-size: 1.05rem; margin-top: .1rem; flex-shrink: 0; }
.public-message--success { background: #e9f7ee; color: #14532d; border: 1px solid #bbf0cc; }
.public-message--success i { color: #14532d; }
.public-message--error,
.public-message--danger { background: #fbe9eb; color: #9b0e2e; border: 1px solid #f4c0c8; }
.public-message--error i,
.public-message--danger i { color: #9b0e2e; }
.public-message--warning { background: #fff4d6; color: #7c4a00; border: 1px solid #f3d896; }
.public-message--warning i { color: #7c4a00; }
.public-message--info { background: #e9eef9; color: var(--crest-navy); border: 1px solid #c6d3ea; }
.public-message--info i { color: var(--crest-navy); }

/* ==========================================================================
   Contact page Leaflet map.
   Leaflet renders into whatever container you point it at and inherits its
   height. We pin BOTH `height` and `min-height` so a stale cache, a parent
   flex/grid context, or another tenant's CSS reset can't collapse the map
   back to 0px. The `#map.contact-map` compound selector also wins over
   anything that targets just `#map` or just `.contact-map`.
   ========================================================================== */
#map.contact-map,
.contact-map {
  display: block;
  width: 100%;
  height: 380px;
  min-height: 380px;
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -22px rgba(20, 48, 95, .2);
  background: var(--soft);
  overflow: hidden;
}
.contact-map .leaflet-control-attribution {
  font-size: .7rem;
  background: rgba(255, 255, 255, .85);
}
.contact-map .leaflet-popup-content {
  font-family: "Manrope", sans-serif;
  font-size: .92rem;
  margin: .6rem .85rem;
  color: var(--ink);
}

/* ==========================================================================
   Hero quotes carousel (homepage) - shown on days with no classes, where the
   bell schedule would be. Fixed height so the hero never jumps regardless of
   quote length; quotes crossfade. Attribution uses a hyphen (no em-dash).
   ========================================================================== */
.hero-quotes {
  position: relative;
  height: 15rem;
  margin: .25rem 0 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, var(--soft, #f4f6fb) 0%, #fff 100%);
  overflow: hidden;
}
.hero-quotes-track { position: absolute; inset: 1.5rem 1.75rem; }
.hero-quote {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero-quote.is-active { opacity: 1; transform: none; }
/* Quotation mark sits in-flow directly above each quote, so it is always the
   same distance above the text regardless of the quote's length. */
.hero-quote-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  line-height: .5;
  color: var(--crest-navy, #1f2a44);
  opacity: .2;
}
.hero-quote-text {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.42;
  color: var(--crest-navy, #1f2a44);
  text-wrap: balance;
  /* safety net: only clamps an unusually long custom quote, never the seeds */
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-quote-author {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  letter-spacing: .01em;
}
.hero-quote-author::before { content: "- "; }
@media (max-width: 576px) {
  .hero-quotes { height: 17rem; padding: 1.25rem; }
  .hero-quotes-track { inset: 1.25rem; }
  .hero-quote-text { -webkit-line-clamp: 9; }
  .hero-quote-mark { font-size: 2.6rem; }
}
