/* Portal Bienestar Social Laboral - Unitrópico */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@600;700;800;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --primary: #006b5b;
  --primary-2: #007c72;
  --primary-dark: #004f45;
  --bronze: #b8a261;
  --bronze-dark: #95843d;
  --olive: #8e8f2a;
  --ink: #1f2f2b;
  --text-primary: #26332f;
  --text-secondary: #5d6864;
  --text-muted: #87918d;
  --bg-base: #f7f8f4;
  --bg-surface: #ffffff;
  --bg-soft: #eef5f1;
  --bg-bronze: #f4f0df;
  --bg-card: #ffffff;
  --bg-card-hover: #fbfcf8;
  --border: #dbe4df;
  --border-hover: rgba(0, 107, 91, 0.36);
  --sidebar-w: 270px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-card: 0 14px 34px rgba(30, 54, 47, 0.11);
  --transition: all 0.24s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #edf2ef; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; }

.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.institutional-bar {
  position: relative;
  z-index: 120;
  background: #493cd6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 48, 99, 0.16);
}
.institutional-bar-inner {
  width: 100%;
  max-width: 1500px;
  min-height: 38px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.institutional-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: 102px;
  height: 31px;
  overflow: hidden;
}
.institutional-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.institutional-links {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}
.institutional-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-left: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.96);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  transition: background 0.2s ease, color 0.2s ease;
}
.institutional-link:hover,
.institutional-link:focus-visible {
  background: rgba(255,255,255,0.14);
  color: #fff;
  outline: none;
}
.institutional-home-link { gap: 6px; white-space: nowrap; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-bottom: 4px solid var(--primary);
  background: linear-gradient(180deg, #fff 0%, #f4faf7 100%);
}
.brand-logo {
  width: 48px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text h1 {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  max-width: 176px;
  font-size: 10.5px;
  line-height: 1.18;
  color: var(--bronze-dark);
  font-weight: 800;
}

.sidebar-nav { flex: 1; padding: 18px 12px; display: flex; flex-direction: column; gap: 5px; }
.nav-label {
  color: var(--bronze-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 10px 10px 4px;
  text-transform: uppercase;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  transition: var(--transition);
}
.nav-item::before {
  content: '';
  position: absolute;
  inset: 7px auto 7px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--bronze);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}
.nav-item:hover { background: var(--bg-soft); color: var(--primary); transform: translateX(3px); }
.nav-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 107, 91, 0.18);
}
.nav-item.active::before {
  opacity: 1;
  transform: translateX(0);
}
.nav-item.is-transitioning {
  background: var(--primary);
  color: #fff;
  transform: translateX(5px) scale(1.01);
}
.nav-item.is-transitioning::before {
  opacity: 1;
  transform: translateX(0);
}
.nav-item.is-transitioning::after {
  animation: navSweep 0.42s ease forwards;
}
.nav-item svg { flex-shrink: 0; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.sidebar-footer-info {
  background: var(--bg-bronze);
  border-left: 4px solid var(--bronze);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
}
.sidebar-footer-info p:first-child { color: var(--text-secondary); }
.sidebar-footer-info p:last-child { color: var(--primary); font-weight: 800; }

.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 66px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.breadcrumb .current { color: var(--primary); font-weight: 800; }
.btn-hamburger {
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
}
.btn-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 107, 91, 0.18);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 28px 50px;
  animation: pageEnter 0.38s ease both;
}
body.page-leaving .content {
  animation: pageLeave 0.2s ease both;
}
body.page-leaving .topbar {
  box-shadow: 0 12px 28px rgba(26,49,42,0.08);
}
#particles-canvas { display: none; }

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes pageLeave {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
}
@keyframes navSweep {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .content,
  body.page-leaving .content {
    animation: none;
  }
  .nav-item,
  .nav-item::before,
  .nav-item::after {
    transition: none;
    animation: none;
  }
  .nav-item:hover {
    transform: none;
  }
  .talibri-widget .talibri-button {
    animation: none !important;
  }
  .talibri-widget,
  .talibri-stage,
  .talibri-layer,
  .talibri-shadow,
  .talibri-eye-shine {
    animation: none !important;
    transform: none !important;
  }
}

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: stretch;
  margin-bottom: 34px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  box-shadow: var(--shadow-card);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0,80,69,0.94) 0%, rgba(0,107,91,0.86) 55%, rgba(184,162,97,0.76) 100%),
    url('../uploads/talento-humano.png') right center / contain no-repeat;
}
.hero-content { position: relative; z-index: 2; padding: 52px; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.94);
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 13px;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  color: #fff;
  font-weight: 900;
  margin: 18px 0 14px;
}
.hero-title span { color: #f3df91; }
.hero-subtitle { color: rgba(255,255,255,0.92); max-width: 560px; font-size: 17px; line-height: 1.65; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: var(--transition);
}
.btn-primary { background: var(--bronze); color: #fff; border: 1px solid var(--bronze); }
.btn-primary:hover { background: var(--bronze-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid rgba(255,255,255,0.8); }
.btn-outline:hover { background: var(--bg-bronze); transform: translateY(-2px); }

.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-heading { min-width: 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--bronze-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 7px;
}
.section-title {
  font-family: 'Nunito Sans', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}
.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.badge-accent { color: var(--primary); background: var(--bg-soft); border-color: rgba(0,107,91,0.18); }
.badge-gold { color: var(--bronze-dark); background: var(--bg-bronze); border-color: rgba(184,162,97,0.3); }

.home-routes {
  margin: 0 0 40px;
}
.home-routes-header {
  align-items: flex-end;
  margin-bottom: 16px;
}
.home-routes-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  background: var(--bg-soft);
  border: 1px solid rgba(0, 107, 91, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.home-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-route-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--route-color);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(26, 49, 42, 0.055);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.home-route-card:hover {
  color: var(--ink);
  border-color: var(--route-color);
  box-shadow: 0 12px 24px rgba(26, 49, 42, 0.11);
  transform: translateY(-3px);
}
.home-route-card:focus-visible {
  outline: 3px solid rgba(0, 107, 91, 0.18);
  outline-offset: 3px;
}
.home-route-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--route-color);
  background: var(--route-soft);
  border-radius: 7px;
  flex-shrink: 0;
}
.home-route-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.home-route-kicker {
  color: var(--route-color);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.home-route-copy strong {
  color: var(--ink);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.home-route-copy small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}
.home-route-arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--route-color);
  border: 1px solid color-mix(in srgb, var(--route-color) 28%, white);
  border-radius: 50%;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.home-route-card:hover .home-route-arrow {
  color: #fff;
  background: var(--route-color);
  transform: translate(2px, -2px);
}

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 38px; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card, .mega-card, .stat-card, .calendar-info, .calendar-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
}
.service-card, .mega-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(18px);
}
.mega-card { position: relative; isolation: isolate; }
.mega-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 3;
  background: var(--card-color, var(--primary));
}
.service-card.visible, .mega-card.visible, .stat-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover, .mega-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.service-card:focus, .mega-card:focus {
  outline: 3px solid rgba(0, 107, 91, 0.18);
  outline-offset: 3px;
}
.card-image, .mega-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-image img, .mega-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 2.4vw, 18px);
  transition: transform 0.28s ease;
}
.card-description-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 79, 69, 0.12) 0%, rgba(0, 79, 69, 0.78) 58%, rgba(0, 54, 48, 0.98) 100%);
  opacity: 0;
  transform: translateY(28%);
  transition: opacity 0.26s ease, transform 0.26s ease;
  pointer-events: none;
}
.mega-card .card-description-overlay p {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.52;
  max-height: 100%;
  overflow: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.48);
}
.service-card:hover .card-image img,
.service-card:focus .card-image img,
.service-card:focus-within .card-image img,
.mega-card:hover .mega-card-image img,
.mega-card:focus .mega-card-image img,
.mega-card:focus-within .mega-card-image img {
  transform: scale(1.03);
}
.service-card:hover .card-description-overlay,
.service-card:focus .card-description-overlay,
.service-card:focus-within .card-description-overlay,
.mega-card:hover .card-description-overlay,
.mega-card:focus .card-description-overlay,
.mega-card:focus-within .card-description-overlay {
  opacity: 1;
  transform: translateY(0);
}
.service-card-content, .mega-card-content { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mega-card-content { padding: 24px; }
.card-icon, .mega-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-card-icon { width: 58px; height: 58px; }
.card-body { flex: 1; }
.card-body h3, .mega-card h2 {
  font-family: 'Nunito Sans', Arial, sans-serif;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}
.card-body h3 { font-size: 17px; margin-bottom: 7px; }
.mega-card h2 { font-size: 21px; }
.card-body p, .mega-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.62; }
.card-link, .mega-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 900;
  transition: var(--transition);
}
.card-link:hover, .mega-card-link:hover { transform: translateX(3px); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.stat-card {
  border-radius: var(--radius-md);
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(12px);
}
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.stat-info strong { display: block; font-family: 'Nunito Sans', Arial, sans-serif; color: var(--primary); font-size: 24px; font-weight: 900; line-height: 1; }
.stat-info span { display: block; color: var(--text-secondary); font-size: 12px; font-weight: 700; margin-top: 2px; }

.calendar-section { display: grid; grid-template-columns: 0.9fr 1.7fr; gap: 20px; margin-bottom: 40px; }
.calendar-info, .calendar-embed { border-radius: var(--radius-lg); padding: 24px; }
.calendar-info h3, .calendar-embed-header h3 { font-family: 'Nunito Sans', Arial, sans-serif; color: var(--primary); font-weight: 900; }
.calendar-info h3 { display: flex; align-items: center; gap: 8px; }
.calendar-info p, .activity-list li { color: var(--text-secondary); font-size: 14px; }
.calendar-pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 17px;
  padding: 11px 12px;
  color: var(--primary);
  background: var(--bg-soft);
  border: 1px solid rgba(0, 107, 91, 0.12);
  border-radius: 8px;
}
.calendar-pulse > svg { color: var(--bronze-dark); flex-shrink: 0; }
.calendar-pulse span { display: grid; gap: 2px; }
.calendar-pulse strong { font-size: 12px; font-weight: 900; }
.calendar-pulse small { color: var(--text-secondary); font-size: 11px; line-height: 1.35; }
.activity-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.activity-list li { display: flex; align-items: center; gap: 10px; }
.activity-dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.calendar-embed-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.calendar-embed-header span { color: var(--text-muted); font-size: 12px; }
.calendar-frame-wrap { min-height: 380px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.calendar-frame-wrap iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.experience-section {
  margin: 12px 0 44px;
}
.experience-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}
.experience-form,
.comment-card,
.comment-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
}
.experience-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  position: sticky;
  top: 86px;
}
.experience-form h3 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.16;
  margin: 12px 0 8px;
}
.experience-form p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.62;
}
.comment-rating,
.comment-emoji-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-rating label,
.comment-emoji-row label {
  cursor: pointer;
}
.comment-rating input,
.comment-emoji-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.comment-rating span,
.comment-emoji-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-weight: 900;
  padding: 7px 11px;
  transition: var(--transition);
}
.comment-rating input:checked + span,
.comment-emoji-row input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.comment-emoji-row span {
  width: 42px;
  font-size: 20px;
  padding: 7px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: var(--transition);
}
.form-field textarea {
  resize: vertical;
  min-height: 116px;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,107,91,0.1);
}
.comment-form-status {
  min-height: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}
.comment-form-status.success {
  color: var(--primary);
}
.comment-form-status.error {
  color: #b42318;
}
.comment-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
}
.comment-card {
  border-radius: 0;
  box-shadow: none;
  border-width: 0 1px 1px;
  padding: 16px 18px 14px;
  transition: background-color 180ms ease, transform 180ms ease;
}
.comment-card:first-child {
  border-top-width: 1px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.comment-card:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.comment-card:hover {
  background: rgba(0, 107, 91, 0.025);
}
.comment-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.comment-emoji {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,107,91,0.14), rgba(184,162,97,0.22));
  font-size: 23px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,107,91,0.10);
}
.comment-main {
  min-width: 0;
  flex: 1;
}
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}
.comment-card h3 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}
.comment-meta span,
.comment-meta time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.comment-main p,
.comment-reply p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.62;
  white-space: pre-wrap;
}
.comment-score {
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 7px;
}
.comment-replies {
  display: grid;
  gap: 0;
  margin: 12px 0 0 56px;
  border-left: 2px solid rgba(83, 100, 113, 0.16);
}
.comment-reply {
  display: flex;
  gap: 10px;
  padding: 10px 0 10px 14px;
  border-bottom: 1px solid rgba(0, 107, 91, 0.08);
}
.comment-reply:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.comment-reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 169, 147, 0.10);
  flex-shrink: 0;
}
.comment-reply-body {
  min-width: 0;
  flex: 1;
}
.comment-reply-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 3px;
}
.comment-reply-head strong {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}
.comment-reply-head span,
.comment-reply-head time {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
}
.comment-actions {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 0 56px;
}
.comment-reply-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  transition: var(--transition);
}
.comment-reply-toggle:hover,
.comment-reply-toggle.is-open {
  background: rgba(0, 169, 147, 0.10);
  color: var(--primary);
}
.comment-reply-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 0 56px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(247, 250, 248, 0.95);
  border: 1px solid rgba(0, 107, 91, 0.10);
}
.comment-reply-form[hidden] {
  display: none;
}
.comment-reply-form .form-field textarea {
  min-height: 82px;
}
.btn-reply-submit {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
}
.comment-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 46px 24px;
}
.comment-empty svg {
  color: var(--primary);
  margin: 0 auto 12px;
}
.comment-empty h3 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
}
.activity-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.activity-feature-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.activity-feature-card::after {
  content: '';
  position: absolute;
  inset: auto -30px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--activity-color) 13%, transparent);
  pointer-events: none;
}
.activity-feature-card:hover,
.activity-feature-card:focus-within,
.activity-feature-card:focus {
  border-color: color-mix(in srgb, var(--activity-color) 42%, var(--border));
  box-shadow: 0 18px 38px rgba(26, 49, 42, 0.13);
  transform: translateY(-5px);
  outline: none;
}
.activity-feature-art {
  position: relative;
  height: 116px;
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.78), transparent 18%),
    linear-gradient(135deg, color-mix(in srgb, var(--activity-color) 82%, #ffffff) 0%, color-mix(in srgb, var(--activity-color) 22%, #ffffff) 100%);
}
.activity-feature-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  color: var(--activity-color);
  box-shadow: 0 10px 24px rgba(26, 49, 42, 0.13);
}
.activity-feature-ring {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,0.64);
  border-radius: 50%;
}
.activity-feature-dot {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}
.activity-feature-dot.dot-a {
  right: 50px;
  bottom: 22px;
  width: 18px;
  height: 18px;
}
.activity-feature-dot.dot-b {
  right: 82px;
  bottom: 42px;
  width: 10px;
  height: 10px;
}
.activity-feature-body {
  position: relative;
  z-index: 1;
  padding: 18px;
}
.activity-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.activity-feature-tag,
.activity-feature-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.activity-feature-tag {
  background: color-mix(in srgb, var(--activity-color) 13%, #ffffff);
  color: var(--activity-color);
  padding: 6px 10px;
}
.activity-feature-meta {
  color: var(--text-muted);
}
.activity-feature-body h3 {
  color: var(--ink);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.16;
  margin-bottom: 7px;
}
.activity-feature-body > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.activity-feature-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.24s ease, opacity 0.24s ease, margin-top 0.24s ease;
}
.activity-feature-detail p {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}
.activity-feature-card:hover .activity-feature-detail,
.activity-feature-card:focus .activity-feature-detail,
.activity-feature-card:focus-within .activity-feature-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 12px;
}
.activity-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--activity-color);
  font-size: 13px;
  font-weight: 900;
  margin-top: 14px;
  transition: transform 0.22s ease;
}
.activity-feature-link:hover {
  transform: translateX(3px);
}

.page-hero {
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 8px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 34px 38px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  background: var(--bg-bronze);
  border-radius: 50%;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-family: 'Nunito Sans', Arial, sans-serif; color: var(--primary); font-size: clamp(28px, 3.5vw, 42px); font-weight: 900; line-height: 1.12; margin: 14px 0 9px; }
.page-hero p { color: var(--text-secondary); font-size: 16px; max-width: 620px; }
.page-hero-icon { position: relative; z-index: 1; opacity: 0.14; color: var(--primary); justify-self: center; }
.page-hero-media {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(260px, 100%);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(26, 49, 42, 0.1);
  padding: 12px;
}
.page-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.detail-intro {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.detail-intro p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.72;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-card-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  margin-bottom: 4px;
}
.detail-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 10px;
}
.detail-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.detail-card h2 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.detail-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}
.detail-card-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid rgba(0,107,91,0.18);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 14px;
  transition: var(--transition);
}
.detail-card-link:hover {
  background: var(--primary);
  color: #fff;
}
.year-section-list { margin-top: 8px; }
.year-card .btn-primary { width: fit-content; margin-top: auto; }
.year-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--bg-bronze);
  border: 1px solid rgba(184, 162, 97, 0.28);
  color: var(--bronze-dark);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.toolkit-section,
.media-library-section {
  margin: 8px 0 34px;
}
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.toolkit-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
}
.toolkit-card summary {
  list-style: none;
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
}
.toolkit-card summary::-webkit-details-marker {
  display: none;
}
.toolkit-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--primary);
}
.toolkit-card strong {
  display: block;
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}
.toolkit-card em {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  margin-top: 5px;
}
.toolkit-card summary > svg {
  color: var(--text-muted);
  transition: transform 0.22s ease;
}
.toolkit-card[open] summary > svg {
  transform: rotate(90deg);
}
.toolkit-card-body {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 16px 18px 18px;
}
.toolkit-card-body p,
.toolkit-card-body li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.58;
}
.toolkit-card-body ul {
  margin-top: 10px;
  padding-left: 18px;
}
.media-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.media-library-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  padding: 24px;
}
.media-library-card h2 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin: 12px 0 8px;
}
.media-library-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.62;
}
.media-link-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.media-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid rgba(0,107,91,0.14);
  color: var(--primary);
  padding: 12px 14px;
  transition: var(--transition);
}
.media-link-item:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(3px);
}
.media-link-item strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}
.media-link-item em {
  display: block;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.35;
  margin-top: 4px;
}
.media-link-item:hover em {
  color: rgba(255,255,255,0.82);
}
.selfcare-game-section {
  margin: 8px 0 34px;
}
.selfcare-game-intro {
  max-width: 820px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
  margin: -6px 0 18px;
}
.selfcare-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.selfcare-game-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  padding: 22px;
}
.selfcare-game-card h2 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.16;
  margin: 12px 0 8px;
}
.selfcare-game-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.62;
}
.selfcare-puzzle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.selfcare-puzzle-tile {
  min-height: 94px;
  text-align: left;
  border: 1px solid rgba(0,107,91,0.16);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--text-secondary);
  padding: 13px;
  transition: var(--transition);
}
.selfcare-puzzle-tile:hover,
.selfcare-puzzle-tile.active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.selfcare-puzzle-tile strong,
.selfcare-puzzle-tile span {
  display: block;
}
.selfcare-puzzle-tile strong {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}
.selfcare-puzzle-tile span {
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 6px;
}
.selfcare-game-feedback {
  border-radius: var(--radius-sm);
  background: var(--bg-bronze);
  color: var(--bronze-dark) !important;
  font-weight: 800;
  padding: 10px 12px;
  margin-top: 14px;
}
.selfcare-riddle-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.selfcare-riddle {
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid rgba(0,107,91,0.14);
  padding: 14px;
}
.selfcare-riddle .detail-card-link {
  margin-top: 10px;
}
.selfcare-riddle-answer {
  display: block;
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 15px;
  margin-top: 10px;
}
.selfcare-word-card {
  background: linear-gradient(180deg, #fff 0%, #f4faf7 100%);
}
.selfcare-word-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.selfcare-word-grid span {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
}
.selfcare-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.selfcare-word-list .year-pill {
  cursor: pointer;
}
.selfcare-word-list .year-pill.found {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: line-through;
}
.pdf-resource-section {
  margin: 8px 0 34px;
}
.pdf-resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.pdf-resource-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
}
.pdf-resource-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-bronze) 100%);
}
.pdf-resource-copy h2 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.16;
}
.pdf-resource-copy p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.68;
}
.pdf-resource-copy .btn-primary {
  width: fit-content;
}
.pdf-viewer-frame {
  min-height: 560px;
  background: #eef2ef;
  border-left: 1px solid var(--border);
}
.pdf-viewer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
}
.integrity-section,
.bulletins-section {
  margin: 8px 0 34px;
}
.integrity-banner {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  margin-bottom: 18px;
}
.integrity-banner img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  background: #fff;
}
.integrity-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.integrity-value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  overflow: hidden;
}
.integrity-value-card summary {
  list-style: none;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
}
.integrity-value-card summary::-webkit-details-marker {
  display: none;
}
.integrity-value-number {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
}
.integrity-value-card strong {
  display: block;
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}
.integrity-value-card em {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  margin-top: 5px;
}
.integrity-value-card summary svg {
  color: var(--text-muted);
  transition: transform 0.22s ease;
}
.integrity-value-card[open] summary svg {
  transform: rotate(90deg);
}
.integrity-value-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 16px 18px 18px;
}
.integrity-value-body h3 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}
.integrity-value-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.58;
}
.bulletin-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bulletin-year-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
  padding: 24px;
}
.bulletin-year-card h2 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin: 12px 0 8px;
}
.bulletin-year-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.62;
}
.bulletin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.detail-card-link.disabled {
  color: var(--text-muted);
  background: #f1f3ef;
  border-color: var(--border);
  cursor: not-allowed;
}
.benefits-section {
  margin: 8px 0 34px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.benefit-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(26, 49, 42, 0.07);
}
.benefit-card-media {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}
.benefit-card-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
}
.benefit-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}
.benefit-kicker {
  width: fit-content;
  border-radius: 999px;
  background: var(--bg-bronze);
  border: 1px solid rgba(184, 162, 97, 0.28);
  color: var(--bronze-dark);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
}
.benefit-card h2 {
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.16;
}
.benefit-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.68;
}
.benefit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  margin-top: auto;
  background: linear-gradient(90deg, #00584c 0%, #007866 100%);
  color: #fff;
  font-size: 15px;
}
.site-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 36px;
  padding: 46px 52px 22px;
}
.footer-brand {
  display: flex;
  justify-content: center;
}
.footer-brand img {
  width: min(320px, 100%);
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-contact,
.footer-window {
  text-align: center;
}
.footer-contact h2,
.footer-window h2 {
  color: var(--bronze);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}
.footer-contact p,
.footer-window a {
  color: #fff;
  display: block;
  font-size: 17px;
  line-height: 1.65;
}
.footer-window a:not(.footer-contact-button):hover,
.site-footer-bottom a:hover {
  text-decoration: underline;
}
.footer-contact-button {
  width: fit-content;
  margin: 16px auto 0;
  background: var(--bronze);
  border-radius: 6px;
  color: #fff !important;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.2 !important;
  padding: 15px 28px;
  text-decoration: none !important;
  transition: var(--transition);
}
.footer-contact-button:hover {
  background: var(--bronze-dark);
  transform: translateY(-1px);
}
.footer-inspection {
  color: var(--bronze);
  font-size: 19px;
  line-height: 1.5;
  text-align: center;
  padding: 8px 24px 30px;
}
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  background: rgba(0, 95, 82, 0.42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 52px;
  font-size: 14px;
}
.site-footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.site-footer-bottom a {
  color: #fff;
}
.site-footer-bottom .footer-text-link {
  color: #fff;
}
.talibri-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  perspective: 900px;
  transform-origin: 100% 100%;
}
.talibri-widget.is-entering {
  animation: talibriEntrance 1.8s cubic-bezier(.2,.9,.2,1) both;
}
.talibri-widget::before,
.talibri-widget::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
.talibri-widget::before {
  content: '✦';
  right: 18px;
  top: 8px;
  color: var(--bronze);
  font-size: 24px;
  text-shadow: 0 4px 10px rgba(184,162,97,0.24);
}
.talibri-widget::after {
  content: 'zzz';
  right: 84px;
  top: 4px;
  color: var(--primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.talibri-widget.fly::before,
.talibri-widget.wild::before,
.talibri-widget.wave::before {
  animation: talibriSpark 1.2s ease both;
}
.talibri-widget.bored::after,
.talibri-widget.sleepy::after,
.talibri-widget.rest::after {
  animation: talibriZzz 1.8s ease both;
}
.talibri-bubble {
  max-width: min(310px, calc(100vw - 150px));
  margin-bottom: 18px;
  border: 1px solid rgba(0, 107, 91, 0.16);
  border-radius: 16px 16px 4px 16px;
  background: rgba(255,255,255,0.96);
  color: var(--text-secondary);
  box-shadow: 0 14px 36px rgba(26, 49, 42, 0.16);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.42;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: auto;
}
.talibri-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.talibri-button {
  width: 78px;
  height: 97px;
  border: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 14px 22px rgba(26, 49, 42, 0.23));
  transform-origin: 50% 100%;
  transition: transform 0.24s ease, filter 0.24s ease;
  pointer-events: auto;
  animation: talibriIdle 3.2s ease-in-out infinite;
}
.talibri-button:hover {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 18px 28px rgba(26, 49, 42, 0.28));
  animation-play-state: paused;
}
.talibri-stage {
  --talibri-img: url('../uploads/talibri-mascota.png');
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 92%;
  transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg));
  transition: transform 0.12s ease-out;
}
.talibri-layer {
  position: absolute;
  inset: 0;
  background-image: var(--talibri-img);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  transform-origin: 50% 88%;
  will-change: transform, opacity, filter;
}
.talibri-shadow {
  position: absolute;
  left: 21%;
  right: 9%;
  bottom: 0;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26,49,42,0.25) 0%, rgba(26,49,42,0.1) 48%, transparent 72%);
  transform-origin: 50% 50%;
  animation: talibriShadowIdle 3.2s ease-in-out infinite;
}
.talibri-base {
  opacity: 0.98;
  animation: talibriLayerBreath 3.2s ease-in-out infinite;
}
.talibri-body {
  clip-path: polygon(19% 24%, 66% 22%, 80% 52%, 70% 85%, 31% 88%, 9% 58%);
  animation: talibriBodyBob 3.2s ease-in-out infinite;
}
.talibri-head {
  clip-path: polygon(14% 0%, 100% 0%, 100% 34%, 71% 38%, 52% 31%, 28% 39%, 6% 27%);
  transform-origin: 58% 31%;
  animation: talibriHeadLook 4.4s ease-in-out infinite;
}
.talibri-wing {
  clip-path: polygon(62% 22%, 96% 25%, 99% 58%, 69% 63%, 54% 45%);
  transform-origin: 66% 43%;
  animation: talibriWingIdle 2.6s ease-in-out infinite;
}
.talibri-tail {
  clip-path: polygon(0% 53%, 38% 55%, 44% 98%, 0% 100%);
  transform-origin: 27% 72%;
  animation: talibriTailSway 2.9s ease-in-out infinite;
}
.talibri-eye-shine {
  position: absolute;
  left: 31%;
  top: 10%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(255,255,255,0.72);
  opacity: 0;
  animation: talibriBlink 5.2s ease-in-out infinite;
}
.talibri-widget.stroll {
  animation: talibriStroll 4.6s ease-in-out both;
}
.talibri-widget.peek {
  animation: talibriPeek 2.8s ease-in-out both;
}
.talibri-widget.walk .talibri-button {
  animation: talibriWalk 1.8s ease-in-out both;
}
.talibri-widget.fly .talibri-button {
  animation: talibriFly 2.1s ease-in-out both;
}
.talibri-widget.rest .talibri-button {
  animation: talibriRest 2.6s ease-in-out both;
}
.talibri-widget.wild .talibri-button {
  animation: talibriWild 1.15s ease-in-out both;
}
.talibri-widget.bored .talibri-button {
  animation: talibriBored 2.8s ease-in-out both;
}
.talibri-widget.wave .talibri-wing {
  animation: talibriWingWave 1.6s ease-in-out both;
}
.talibri-widget.wave .talibri-head {
  animation: talibriHeadNod 1.6s ease-in-out both;
}
.talibri-widget.sleepy .talibri-stage {
  animation: talibriSleepy 2.8s ease-in-out both;
}
.talibri-widget.fly .talibri-wing {
  animation: talibriWingFly 0.34s ease-in-out infinite;
}
.talibri-widget.fly .talibri-tail {
  animation: talibriTailFly 0.68s ease-in-out infinite;
}
.talibri-widget.wild .talibri-head {
  animation: talibriHeadWild 0.58s ease-in-out infinite;
}
.talibri-widget.bored .talibri-head,
.talibri-widget.rest .talibri-head {
  animation: talibriHeadDroop 2.1s ease-in-out both;
}
@keyframes talibriLayerBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.012); }
}
@keyframes talibriShadowIdle {
  0%, 100% { transform: scaleX(1); opacity: 0.82; }
  45% { transform: scaleX(0.86); opacity: 0.58; }
}
@keyframes talibriBodyBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-3px) rotate(-1deg); }
}
@keyframes talibriHeadLook {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-1px, -2px) rotate(-2deg); }
  55% { transform: translate(2px, 1px) rotate(2deg); }
  78% { transform: translate(0, -1px) rotate(-1deg); }
}
@keyframes talibriHeadNod {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(3px) rotate(4deg); }
  66% { transform: translateY(-2px) rotate(-3deg); }
}
@keyframes talibriHeadWild {
  0%, 100% { transform: rotate(0) translate(0,0); }
  25% { transform: rotate(-7deg) translate(-2px,-2px); }
  50% { transform: rotate(8deg) translate(2px,1px); }
  75% { transform: rotate(-4deg) translate(-1px,2px); }
}
@keyframes talibriHeadDroop {
  0%, 100% { transform: rotate(0) translateY(0); }
  45% { transform: rotate(8deg) translateY(5px); filter: saturate(0.82); }
  72% { transform: rotate(5deg) translateY(3px); }
}
@keyframes talibriWingIdle {
  0%, 100% { transform: rotate(0) translateY(0); }
  45% { transform: rotate(-4deg) translateY(-2px); }
}
@keyframes talibriWingWave {
  0%, 100% { transform: rotate(0) translateY(0); }
  18% { transform: rotate(-18deg) translateY(-4px); }
  36% { transform: rotate(12deg) translateY(2px); }
  54% { transform: rotate(-16deg) translateY(-3px); }
  72% { transform: rotate(8deg) translateY(1px); }
}
@keyframes talibriWingFly {
  0%, 100% { transform: rotate(-10deg) translateY(-2px) scaleY(1.02); }
  50% { transform: rotate(16deg) translateY(4px) scaleY(0.96); }
}
@keyframes talibriTailSway {
  0%, 100% { transform: rotate(0) translateY(0); }
  45% { transform: rotate(4deg) translateY(1px); }
}
@keyframes talibriTailFly {
  0%, 100% { transform: rotate(-7deg) translateY(-2px); }
  50% { transform: rotate(8deg) translateY(2px); }
}
@keyframes talibriBlink {
  0%, 8%, 100% { opacity: 0; transform: scale(0.5); }
  10%, 14% { opacity: 0.85; transform: scale(1); }
  16% { opacity: 0; transform: scale(0.5); }
}
@keyframes talibriEntrance {
  0% { transform: translateX(180px) translateY(50px) rotate(12deg) scale(0.68); opacity: 0; }
  55% { transform: translateX(-22px) translateY(-12px) rotate(-6deg) scale(1.08); opacity: 1; }
  78% { transform: translateX(8px) translateY(0) rotate(3deg) scale(0.98); opacity: 1; }
  100% { transform: translateX(0) translateY(0) rotate(0) scale(1); opacity: 1; }
}
@keyframes talibriIdle {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  35% { transform: translateY(-7px) rotate(-2deg) scale(1.015); }
  70% { transform: translateY(-2px) rotate(2deg) scale(1); }
}
@keyframes talibriWalk {
  0%, 100% { transform: translateX(0) rotate(0); }
  12% { transform: translateX(-12px) translateY(-3px) rotate(-4deg); }
  25% { transform: translateX(-24px) translateY(0) rotate(3deg); }
  38% { transform: translateX(-36px) translateY(-3px) rotate(-3deg); }
  52% { transform: translateX(-48px) translateY(0) rotate(3deg); }
  70% { transform: translateX(-26px) translateY(-2px) rotate(-2deg); }
}
@keyframes talibriFly {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  30% { transform: translateY(-34px) rotate(-7deg) scale(1.04); }
  60% { transform: translateY(-18px) rotate(6deg) scale(1.02); }
}
@keyframes talibriRest {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(-10deg) translateY(5px); }
  70% { transform: rotate(-7deg) translateY(3px); }
}
@keyframes talibriWild {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-11deg) scale(1.05); }
  32% { transform: rotate(12deg) scale(0.98); }
  48% { transform: rotate(-8deg) scale(1.04); }
  66% { transform: rotate(9deg) scale(1); }
}
@keyframes talibriBored {
  0%, 100% { transform: translateY(0) rotate(0); filter: grayscale(0); }
  45% { transform: translateY(8px) rotate(4deg); filter: grayscale(0.35); }
  72% { transform: translateY(5px) rotate(2deg); filter: grayscale(0.18); }
}
@keyframes talibriStroll {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-42px); }
  24% { transform: translateX(-84px); }
  36% { transform: translateX(-126px); }
  52% { transform: translateX(-170px); }
  72% { transform: translateX(-92px); }
}
@keyframes talibriPeek {
  0%, 100% { transform: translateX(0) translateY(0); }
  28% { transform: translateX(64px) translateY(6px); }
  58% { transform: translateX(38px) translateY(2px); }
}
@keyframes talibriWave {
  0%, 100% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) rotate(0); }
  20% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) rotate(-5deg) scale(1.03); }
  40% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) rotate(6deg) scale(1.04); }
  62% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) rotate(-4deg) scale(1.02); }
}
@keyframes talibriSleepy {
  0%, 100% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) translateY(0) rotate(0); opacity: 1; }
  38% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) translateY(10px) rotate(-7deg); opacity: 0.86; }
  70% { transform: scaleX(-1) rotateX(var(--talibri-rx, 0deg)) rotateY(var(--talibri-ry, 0deg)) translateY(5px) rotate(-4deg); opacity: 0.94; }
}
@keyframes talibriSpark {
  0% { opacity: 0; transform: translateY(10px) scale(0.6) rotate(0); }
  40% { opacity: 1; transform: translateY(-8px) scale(1.25) rotate(14deg); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.9) rotate(28deg); }
}
@keyframes talibriZzz {
  0% { opacity: 0; transform: translateY(12px) scale(0.8); }
  35% { opacity: 1; transform: translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateY(-26px) scale(1.2); }
}

.text-accent { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.divider { height: 1px; background: var(--border); margin: 26px 0; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(31,47,43,0.42); z-index: 99; }

@media (max-width: 1100px) {
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .home-routes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .calendar-section { grid-template-columns: 1fr; }
  .activity-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-layout { grid-template-columns: 1fr; }
  .experience-form { position: static; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 16px 0 40px rgba(26,49,42,0.18); }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .btn-hamburger { display: inline-flex; }
  .content { padding: 24px 16px 42px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 38px 24px; }
  .page-hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .page-hero-icon { display: none; }
  .page-hero-media { justify-self: stretch; width: 100%; }
  .media-library-grid {
    grid-template-columns: 1fr;
  }
  .selfcare-game-grid {
    grid-template-columns: 1fr;
  }
  .pdf-resource-card {
    grid-template-columns: 1fr;
  }
  .pdf-viewer-frame {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .bulletin-year-grid {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    grid-template-columns: 1fr;
  }
  .benefit-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .benefit-card-media img {
    min-height: 0;
    height: auto;
  }
}
@media (max-width: 640px) {
  .institutional-bar-inner {
    display: block;
    padding: 8px 14px;
  }
  .institutional-brand {
    display: block;
    margin-bottom: 5px;
    width: 88px;
    height: 27px;
  }
  .institutional-links {
    display: grid;
    grid-template-columns: 1fr;
  }
  .institutional-link {
    min-height: 0;
    padding: 6px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 11px;
  }
  .home-routes-grid { grid-template-columns: 1fr; }
  .home-routes-header { align-items: flex-start; }
  .cards-grid, .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .activity-showcase { grid-template-columns: 1fr; }
  .activity-feature-card { min-height: 0; }
  .comment-wall { grid-template-columns: 1fr; }
  .experience-form { padding: 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .benefit-card-content {
    padding: 22px;
  }
  .benefit-card h2 {
    font-size: 21px;
  }
  .toolkit-card summary {
    grid-template-columns: auto 1fr;
  }
  .toolkit-card summary > svg {
    display: none;
  }
  .media-link-item {
    align-items: flex-start;
  }
  .selfcare-game-card {
    padding: 18px;
  }
  .selfcare-puzzle {
    grid-template-columns: 1fr;
  }
  .selfcare-word-grid span {
    font-size: 11px;
  }
  .pdf-resource-copy {
    padding: 22px;
  }
  .pdf-resource-copy .btn-primary {
    width: 100%;
  }
  .pdf-viewer-frame,
  .pdf-viewer-frame iframe {
    min-height: 420px;
  }
  .integrity-value-card summary {
    grid-template-columns: auto 1fr;
  }
  .integrity-value-card summary svg {
    display: none;
  }
  .bulletin-buttons .detail-card-link {
    width: 100%;
    justify-content: center;
  }
  .benefit-actions .btn-primary {
    width: 100%;
  }
  .site-footer-main {
    grid-template-columns: 1fr;
    padding: 36px 22px 20px;
    gap: 24px;
  }
  .footer-contact p,
  .footer-window a {
    font-size: 15px;
  }
  .footer-inspection {
    font-size: 16px;
    padding: 4px 22px 24px;
  }
  .site-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 18px 22px;
  }
  .site-footer-bottom nav {
    justify-content: center;
  }
  .talibri-widget {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }
  .talibri-button {
    width: 62px;
    height: 76px;
  }
  .talibri-bubble {
    max-width: calc(100vw - 96px);
    margin-bottom: 10px;
    font-size: 12.5px;
    padding: 10px 11px;
  }
}
@media (hover: none), (max-width: 640px) {
  .card-image, .mega-card-image {
    aspect-ratio: auto;
    overflow: visible;
  }
  .card-image img, .mega-card-image img {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .card-description-overlay {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 14px 16px;
  }
  .card-description-overlay p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.56;
    text-shadow: none;
  }
}
@media (max-width: 380px) {
  .stats-row { grid-template-columns: 1fr; }
}
