:root {
  --bg: #eef4ef;
  --bg-soft: #f7faf7;
  --surface: rgba(255,255,255,0.88);
  --surface-strong: #ffffff;
  --line: #dce8dd;
  --line-soft: #e9f1ea;
  --green: #2a7a2a;
  --green-dark: #1d5c1d;
  --green-soft: #e8f5e8;
  --green-mid: #4caf50;
  --gold: #f0b429;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --red: #dc2626;
  --red-soft: #fff5f5;
  --slate: #64748b;
  --slate-soft: #f8fafc;
  --text: #455245;
  --text-soft: #6c7b6c;
  --shadow: 0 18px 42px rgba(17, 54, 20, 0.08);
  --shadow-soft: 0 12px 28px rgba(17, 54, 20, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76,175,80,0.12), transparent 28%),
    linear-gradient(180deg, #eef4ef 0%, #f7faf7 48%, #edf3ee 100%);
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(219,231,220,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(17, 54, 20, 0.05);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1c5a1d 0%, #3f9350 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-family: "Segoe UI", Arial, sans-serif;
  box-shadow: 0 14px 28px rgba(29,92,29,0.22), 0 2px 0 rgba(255,255,255,0.15) inset;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.05;
  letter-spacing: -0.4px;
}

.brand-subtitle {
  font-size: 11px;
  color: #b8c8ba;
  margin-top: 4px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  appearance: none;
  text-decoration: none;
  color: var(--green-dark);
  background: #f7fbf8;
  border: 1px solid #dae7db;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  background: #eef7ef;
  border-color: #bdd4bf;
  box-shadow: 0 8px 18px rgba(29,92,29,0.07);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #1d5c1d 0%, #3e8c49 100%);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(29,92,29,0.16);
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 26px 22px 54px;
}

.hero-card,
.section-shell,
.panel-card,
.table-card,
.cta-card,
.statement-card {
  background: var(--surface);
  border: 1px solid rgba(223,233,224,0.95);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  padding: 28px;
}

.hero-card.hero-strong {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.17), transparent 28%),
    linear-gradient(135deg, #123f1f 0%, #1d5c1d 52%, #2d7a3a 100%);
  color: #fff;
  border: none;
  box-shadow: 0 26px 52px rgba(18,63,31,0.22);
}

.hero-kicker,
.section-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero-kicker {
  color: rgba(255,255,255,0.72);
  margin-bottom: 12px;
}

.section-kicker {
  color: var(--green);
  margin-bottom: 6px;
}

.hero-card h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -1px;
}

.hero-card.hero-strong p,
.hero-card.hero-strong .hero-sub {
  color: rgba(255,255,255,0.82);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 840px;
}

.home-stage {
  overflow: hidden;
  text-align: center;
  padding: 34px 32px 40px;
}

.home-stage .hero-sub {
  margin: 0 auto;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

.home-brand-center {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 26px;
}

.home-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ffffff;
  border: none;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 16px 32px rgba(8,28,10,0.28), 0 2px 0 rgba(255,255,255,0.6) inset;
}

.home-logo-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
  width: 100%;
}

.home-logo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  height: 140px;
  padding: 20px 28px;
  border-radius: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 22px 48px rgba(8,28,10,0.18);
  backdrop-filter: blur(10px);
}

.home-logo-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.home-logo-card.institution {
  animation: floatCard 6s ease-in-out infinite;
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.5);
}

.home-logo-card.medcof {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.5);
  animation: floatCard 7.2s ease-in-out infinite .45s;
}

.home-institution-logo {
  display: block;
  height: clamp(54px, 7vw, 76px);
  width: auto;
  max-width: min(82vw, 280px);
  filter: drop-shadow(0 18px 30px rgba(7,24,9,0.18));
}

.home-institution-badge {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 18px 30px rgba(7,24,9,0.18);
}

.home-logo-connector {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 8px 18px rgba(8,28,10,0.12);
  animation: pulseBadge 4.8s ease-in-out infinite;
}

/* Vertical divider on larger screens */
@media (min-width: 860px) {
  .home-logo-connector {
    width: 1px;
    height: 72px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    border: none;
    font-size: 0;
    box-shadow: none;
    animation: none;
  }
}

.medcof-logo-svg {
  display: block;
  height: clamp(54px, 7vw, 76px);
  width: auto;
  max-width: min(84vw, 300px);
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(7,24,9,0.18));
}

.medcof-logo-svg .medcof-sphere,
.medcof-logo-svg .medcof-ring {
  transform-box: fill-box;
  transform-origin: center;
}

.medcof-logo-svg .medcof-sphere {
  animation: medcofCore 7s ease-in-out infinite;
}

.medcof-logo-svg .ring-1 {
  animation: medcofRing 6.4s ease-in-out infinite;
}

.medcof-logo-svg .ring-2 {
  animation: medcofRing 7s ease-in-out infinite .25s;
}

.medcof-logo-svg .ring-3 {
  animation: medcofRing 7.5s ease-in-out infinite .45s;
}

.medcof-logo-svg .ring-4 {
  animation: medcofRing 8s ease-in-out infinite .6s;
}

.medcof-group-text {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  fill: #2a33ff;
  letter-spacing: -.4px;
}

.medcof-name-text {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 84px;
  font-weight: 800;
  fill: #ff1c13;
  letter-spacing: -3px;
}

.home-map-section {
  padding-top: 28px;
}

.home-map-head h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.home-map-head p {
  max-width: 760px;
  font-size: 15px;
}

.home-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.home-page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 252px;
  padding: 0;
  border-radius: 28px;
  text-decoration: none;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 48px rgba(0,0,0,0.10);
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.16);
}

/* Faixa de cor no topo do card */
.home-page-card-stripe {
  height: 6px;
  width: 100%;
  flex-shrink: 0;
}

/* Corpo interno do card */
.home-page-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}

.home-page-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.7px;
}

.home-page-card p {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

/* Ícone do card */
.home-page-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.home-page-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.home-page-index {
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.home-page-link {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Card 1 — Inicial: Verde institucional */
.home-page-card-neutral {
  background: #ffffff;
}
.home-page-card-neutral .home-page-card-stripe {
  background: linear-gradient(90deg, #1d5c1d, #4caf50);
}
.home-page-card-neutral .home-page-icon {
  background: #e8f5e9;
  color: #1d5c1d;
}
.home-page-card-neutral .home-page-index {
  background: #e8f5e9;
  color: #1d5c1d;
}
.home-page-card-neutral h3 {
  color: #1d5c1d;
}
.home-page-card-neutral p {
  color: #4a5e4a;
}
.home-page-card-neutral .home-page-link {
  color: #1d5c1d;
  border-top-color: #d4e9d4;
}

/* Card 2 — Engajamento: Azul elétrico */
.home-page-card-green {
  background: #ffffff;
}
.home-page-card-green .home-page-card-stripe {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}
.home-page-card-green .home-page-icon {
  background: #eff6ff;
  color: #1e40af;
}
.home-page-card-green .home-page-index {
  background: #eff6ff;
  color: #1e40af;
}
.home-page-card-green h3 {
  color: #1e3a8a;
}
.home-page-card-green p {
  color: #3d4f6e;
}
.home-page-card-green .home-page-link {
  color: #1e40af;
  border-top-color: #dbeafe;
}

/* Card 3 — Período: Violeta/Índigo */
.home-page-card-blue {
  background: #ffffff;
}
.home-page-card-blue .home-page-card-stripe {
  background: linear-gradient(90deg, #5b21b6, #8b5cf6);
}
.home-page-card-blue .home-page-icon {
  background: #f5f3ff;
  color: #5b21b6;
}
.home-page-card-blue .home-page-index {
  background: #f5f3ff;
  color: #5b21b6;
}
.home-page-card-blue h3 {
  color: #4c1d95;
}
.home-page-card-blue p {
  color: #4e4068;
}
.home-page-card-blue .home-page-link {
  color: #5b21b6;
  border-top-color: #ede9fe;
}

/* Card 4 — Simulado: Âmbar/Dourado */
.home-page-card-gold {
  background: #ffffff;
}
.home-page-card-gold .home-page-card-stripe {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}
.home-page-card-gold .home-page-icon {
  background: #fffbeb;
  color: #b45309;
}
.home-page-card-gold .home-page-index {
  background: #fef3c7;
  color: #92400e;
}
.home-page-card-gold h3 {
  color: #92400e;
}
.home-page-card-gold p {
  color: #5c4a2a;
}
.home-page-card-gold .home-page-link {
  color: #b45309;
  border-top-color: #fde68a;
}

body.theme-unisc {
  --bg: #eaf1ff;
  --bg-soft: #f4f7ff;
  --surface: rgba(255,255,255,0.9);
  --surface-strong: #ffffff;
  --line: #d7e4ff;
  --line-soft: #e4ecff;
  --green: #1f4ea8;
  --green-dark: #163b80;
  --green-soft: #e9f0ff;
  --green-mid: #3d78d8;
  --blue: #215fcb;
  --blue-soft: #ebf2ff;
  --gold: #f59e0b;
  --orange: #ea580c;
  --text: #1f2f4f;
  --text-soft: #4f6388;
  --shadow: 0 18px 42px rgba(24, 49, 99, 0.1);
  --shadow-soft: 0 12px 28px rgba(24, 49, 99, 0.08);
}

body.theme-unisc {
  background:
    radial-gradient(circle at top left, rgba(45,108,212,0.14), transparent 30%),
    linear-gradient(180deg, #eaf1ff 0%, #f4f7ff 48%, #e9f0ff 100%);
}

body.theme-unisc .topbar {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(210,225,252,0.95);
  box-shadow: 0 8px 28px rgba(20, 55, 120, 0.08);
}

body.theme-unisc .brand-mark,
body.theme-unisc .nav-link.active,
body.theme-unisc .roadmap-index {
  background: linear-gradient(135deg, #163b80 0%, #2962c5 100%);
  box-shadow: 0 12px 24px rgba(22,59,128,0.2);
}

body.theme-unisc .brand-mark::after {
  border-color: rgba(255,255,255,0.34);
}

body.theme-unisc .nav-link {
  color: #163b80;
  background: #f4f8ff;
  border-color: #d7e4ff;
}

body.theme-unisc .nav-link:hover {
  background: #ecf3ff;
  border-color: #b9cff8;
  box-shadow: 0 8px 18px rgba(24, 63, 136, 0.12);
}

body.theme-unisc .hero-card.hero-strong {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(135deg, #0f2f6d 0%, #1d4f9f 55%, #2e6bc3 100%);
  box-shadow: 0 26px 52px rgba(16, 46, 103, 0.26);
}

body.theme-unisc .section-kicker,
body.theme-unisc .home-page-link,
body.theme-unisc .cta-link {
  color: #215fcb;
}

body.theme-unisc .home-page-card:hover {
  border-color: #b9cff8;
  box-shadow: 0 24px 44px rgba(24, 63, 136, 0.16);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 32px rgba(8,28,10,0.16); }
  50% { transform: scale(1.05); box-shadow: 0 22px 42px rgba(8,28,10,0.22); }
}

@keyframes medcofCore {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-2deg); }
}

@keyframes medcofRing {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-2px) scaleX(1.03); }
}

.hero-chip-row,
.bench-row,
.cta-grid,
.feature-grid,
.grid-2,
.grid-3,
.kpi-grid,
.period-selector-grid,
.insight-grid,
.distribution-grid,
.highlight-grid,
.spotlight-grid {
  display: grid;
  gap: 14px;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip,
.info-pill,
.metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.hero-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.info-pill {
  color: var(--green-dark);
  background: #f3faf4;
  border: 1px solid #d6e7d8;
}

.metric-tag {
  color: #446544;
  background: #f7fbf8;
  border: 1px solid #dce7dd;
}

.section-shell {
  padding: 22px;
  margin-top: 18px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2,
.panel-card h3,
.table-card h3 {
  margin: 0;
  color: var(--green-dark);
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.panel-card h3,
.table-card h3 {
  font-size: 21px;
  line-height: 1.1;
}

.section-head p,
.panel-copy,
.helper-text {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
  max-width: 800px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.grid-3,
.feature-grid,
.cta-grid,
.distribution-grid,
.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.kpi-card,
.mini-card,
.feature-card,
.cta-card,
.highlight-card,
.insight-card,
.benchmark-card,
.period-selector,
.distribution-card,
.statement-card,
.panel-card {
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.kpi-card,
.mini-card,
.feature-card,
.benchmark-card,
.distribution-card,
.highlight-card,
.insight-card,
.statement-card {
  padding: 18px;
}

.panel-card,
.table-card {
  padding: 20px;
}

.kpi-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--green-dark);
}

.kpi-label {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #7a8b7a;
}

.kpi-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.feature-card h3,
.cta-card h3,
.statement-card h3,
.distribution-card h3,
.highlight-card h3,
.insight-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.12;
  color: var(--green-dark);
}

.feature-card p,
.cta-card p,
.statement-card p,
.distribution-card p,
.highlight-card p,
.insight-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.feature-card.tinted-green { background: linear-gradient(180deg, #f0faf2 0%, #ffffff 100%); }
.feature-card.tinted-blue { background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); }
.feature-card.tinted-gold { background: linear-gradient(180deg, #fff8eb 0%, #ffffff 100%); }
.feature-card.tinted-red { background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%); }

.cta-card {
  padding: 22px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cta-card:hover {
  transform: translateY(-2px);
  border-color: #b9d0bb;
  box-shadow: 0 18px 34px rgba(17, 54, 20, 0.09);
}

.cta-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.roadmap {
  display: grid;
  gap: 12px;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: #fbfdfb;
  border: 1px solid var(--line-soft);
}

.roadmap-index {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d5c1d 0%, #4caf50 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.roadmap-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--green-dark);
}

.roadmap-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.chart-frame {
  background: linear-gradient(180deg, #fbfdfb 0%, #f4faf4 100%);
  border: 1px solid #e3ece4;
  border-radius: 20px;
  padding: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-legend-prominent {
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid #e3ece4;
  border-radius: 14px;
  width: fit-content;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #355535;
}

.chart-legend-item-lg {
  font-size: 13px;
  gap: 10px;
}

.chart-legend-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2a4a2a;
  line-height: 1.2;
}

.chart-legend-axis {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #88a088;
  margin-top: 1px;
}

.chart-legend-swatch {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.chart-legend-swatch.questions {
  background: linear-gradient(90deg, rgba(45,122,58,0.94) 0%, rgba(76,175,80,0.72) 100%);
}

.chart-legend-swatch.hours {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9b85b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(158,122,20,0.38);
}

.chart-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-summary,
.insight-list,
.results-list,
.profile-list {
  display: grid;
  gap: 10px;
}

.summary-card,
.list-row,
.insight-item,
.profile-item {
  border-radius: 16px;
  background: #fbfdfb;
  border: 1px solid var(--line-soft);
  padding: 14px 15px;
}

.summary-label,
.list-label,
.insight-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #7a8b7a;
}

.summary-value,
.list-value {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: var(--green-dark);
}

.summary-meta,
.list-meta,
.insight-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.spotlight-grid {
  grid-template-columns: 1fr 1fr;
}

.spotlight-card {
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.spotlight-card.top {
  background: linear-gradient(180deg, #f1faf3 0%, #ffffff 100%);
}

.spotlight-card.bottom {
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.spotlight-title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--green-dark);
}

.spotlight-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf3ee;
}

.spotlight-row:last-child {
  border-bottom: none;
}

.spotlight-rank {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf6ee;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.spotlight-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}

.spotlight-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

.spotlight-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark);
}

.period-selector-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.period-selector {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  width: 100%;
  min-height: 112px;
  text-align: left;
  appearance: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.period-selector:hover {
  transform: translateY(-1px);
  border-color: #bad0bc;
}

.period-selector.active {
  background: linear-gradient(135deg, #1d5c1d 0%, #3e8c49 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(29,92,29,0.16);
}

.period-selector.active .period-sub,
.period-selector.active .period-meta {
  color: rgba(255,255,255,0.8);
}

.period-label {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
}

.period-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.period-meta {
  margin-top: 10px;
  font-size: 11px;
  color: #7a8b7a;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fbfdfb;
  border: 1px solid var(--line-soft);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #7a8b7a;
}

.filter-group input,
.filter-group select {
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #d9e6db;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #98bd9b;
}

.results-count {
  margin-left: auto;
  align-self: end;
  font-size: 12px;
  font-weight: 700;
  color: #7a8b7a;
}

.table-card {
  overflow: hidden;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pg-btn {
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #d7e5d8;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.pg-btn:hover {
  transform: translateY(-1px);
  border-color: #b7d0b9;
  background: #f3faf4;
}

.pg-btn.active {
  background: linear-gradient(135deg, #1d5c1d 0%, #3e8c49 100%);
  color: #fff;
  border-color: transparent;
}

.table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.table-wrap,
.ranking-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

thead tr {
  background: var(--green-dark);
}

th,
td {
  padding: 11px 13px;
  text-align: left;
}

th {
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid #edf3ee;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) td {
  background: #fbfdfb;
}

tbody tr:hover td {
  background: var(--green-soft);
}

.num {
  text-align: right;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.badge-g { background: #c8e6c9; color: #1b5e20; }
.badge-y { background: #fff4c2; color: #7b5800; }
.badge-r { background: #ffcdd2; color: #7b1a1a; }
.badge-b { background: #dbeafe; color: #1d4ed8; }
.badge-o { background: #ffedd5; color: #9a3412; }
.badge-s { background: #e5e7eb; color: #374151; }

.priority-critical,
.priority-high,
.priority-mid,
.priority-low {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.priority-critical { background: #ffcdd2; color: #7b1a1a; }
.priority-high { background: #ffedd5; color: #9a3412; }
.priority-mid { background: #fff9c4; color: #7b5800; }
.priority-low { background: #c8e6c9; color: #1b5e20; }

.benchmark-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benchmark-card.emphasis {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 38px rgba(23,44,78,0.18);
}

.benchmark-card.emphasis.rank-national {
  background: linear-gradient(135deg, #143f8f 0%, #2563eb 100%);
}

.benchmark-card.emphasis.rank-regional {
  background: linear-gradient(135deg, #165534 0%, #2f855a 100%);
}

.benchmark-card.emphasis .kpi-value {
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.benchmark-card.emphasis .kpi-label {
  color: rgba(255,255,255,0.92);
}

.benchmark-card.emphasis .kpi-meta {
  color: rgba(255,255,255,0.84);
}

.export-card {
  background: linear-gradient(180deg, #eef8f1 0%, #fbfefc 100%);
  border: 1px solid #d5e7d9;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(29,92,29,0.08);
}

.export-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.export-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--green-dark);
}

.export-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.export-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #d9efe0 0%, #eef7f2 100%);
  border: 1px solid #cfe4d5;
}

.export-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.export-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a887a;
}

.export-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.check-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #deeadf;
  background: #fbfdfb;
}

.check-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.check-chip span {
  font-size: 12px;
  font-weight: 600;
  color: #466646;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
}

.btn-export,
.btn-select-all {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-export {
  background: linear-gradient(135deg, #1d5c1d 0%, #3f8c48 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29,92,29,0.16);
}

.btn-select-all {
  background: #eff5ef;
  color: var(--green-dark);
  border: 1px solid #dbe8dc;
}

.btn-export:hover,
.btn-select-all:hover {
  transform: translateY(-1px);
}

.export-hint {
  font-size: 11px;
  color: #7a887a;
}

.context-callout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.context-callout {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.context-callout.scope-institution {
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border-color: #d6e3fb;
}

.context-callout.scope-medcof {
  background: linear-gradient(180deg, #eef8f1 0%, #ffffff 100%);
  border-color: #d6e7da;
}

.context-callout-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #678067;
}

.context-callout h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.12;
  color: var(--green-dark);
}

.context-callout p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.distribution-row,
.highlight-row,
.profile-row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.distribution-row {
  grid-template-columns: 150px 1fr auto;
}

.distribution-track {
  height: 10px;
  background: #e7efe8;
  border-radius: 999px;
  overflow: hidden;
}

.distribution-fill {
  height: 100%;
  border-radius: 999px;
}

.distribution-fill.green { background: linear-gradient(90deg, #2a7a2a, #4caf50); }
.distribution-fill.blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.distribution-fill.gold { background: linear-gradient(90deg, #d4a817, #f0c859); }
.distribution-fill.red { background: linear-gradient(90deg, #dc2626, #f87171); }

.highlight-grid {
  grid-template-columns: 1fr 1fr;
}

.highlight-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.highlight-card.top-results {
  background: linear-gradient(180deg, #f7fcf8 0%, #ffffff 100%);
  border-color: #d9ebdd;
}

.highlight-card.attention-results {
  background: linear-gradient(180deg, #fff8f4 0%, #ffffff 100%);
  border-color: #f0ddd0;
}

.highlight-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3ee;
}

.highlight-card-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--green-dark);
}

.highlight-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #6c836d;
}

.highlight-head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.highlight-head-badge.good {
  background: #e8f6ec;
  color: #1b5e20;
}

.highlight-head-badge.alert {
  background: #fff0e5;
  color: #9a3412;
}

.highlight-list {
  display: grid;
  gap: 0;
}

.highlight-row {
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #edf3ee;
}

.highlight-row:first-child {
  border-top: none;
  padding-top: 2px;
}

.rank-pill {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.rank-pill.top {
  background: linear-gradient(135deg, #ffe39a 0%, #f2bf3f 100%);
  color: #7b5800;
  box-shadow: 0 10px 20px rgba(242,191,63,0.22);
}

.rank-pill.attention {
  background: linear-gradient(135deg, #ffd9c5 0%, #ffb48a 100%);
  color: #8b2e12;
  box-shadow: 0 10px 20px rgba(255,180,138,0.2);
}

.highlight-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.highlight-score-chip {
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #deeadf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.highlight-score-chip.top {
  background: linear-gradient(180deg, #edf8ef 0%, #ffffff 100%);
  border-color: #d6e8d8;
}

.highlight-score-chip.attention {
  background: linear-gradient(180deg, #fff3ec 0%, #ffffff 100%);
  border-color: #f1d7c8;
}

.highlight-score-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #7a8b7a;
}

.highlight-value {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 800;
  color: var(--green-dark);
}

.site-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 22px 30px;
  font-size: 11px;
  color: #7c8b7d;
  text-align: center;
}

.site-footer strong {
  color: var(--green-dark);
}

.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
}

.access-modal {
  width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 28px;
  padding: 32px 34px 28px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
}

.access-lock {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 20px;
}

.access-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.access-medcof-logo {
  width: min(100%, 250px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}

.access-medcof-group {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  fill: #2a33ff;
  letter-spacing: -.4px;
}

.access-medcof-name {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 84px;
  font-weight: 800;
  fill: #ff1c13;
  letter-spacing: -3px;
}

.access-rocket {
  font-size: 34px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
  animation: rocketBounce 1.8s ease-in-out infinite;
}

.access-title-row {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.5px;
}

.access-modal p {
  margin: 0 0 16px;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
}

.access-note {
  margin-top: 0;
  margin-bottom: 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5563;
}

.access-note strong {
  color: #111827;
}

.access-field {
  margin-bottom: 14px;
}

.access-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #374151;
}

.access-field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  outline: none;
}

.access-field input::placeholder {
  color: #9ca3af;
}

.access-field input:focus {
  border-color: #2563eb;
}

.access-error {
  min-height: 20px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #b91c1c;
}

.access-button {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #ff1c13 0%, #ff4f45 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(255, 28, 19, 0.26);
}

@keyframes rocketBounce {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .feature-grid,
  .cta-grid,
  .highlight-grid,
  .benchmark-hero,
  .spotlight-grid,
  .context-callout-row {
    grid-template-columns: 1fr;
  }

  .home-page-grid {
    grid-template-columns: 1fr;
  }

  .home-logo-stack {
    flex-direction: column;
  }

  .export-grid {
    grid-template-columns: 1fr;
  }

  .export-actions {
    min-width: 0;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 14px 42px;
  }

  .topbar-inner,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-card,
  .section-shell,
  .panel-card,
  .table-card {
    padding: 18px;
    border-radius: 20px;
  }

  .home-stage {
    padding: 24px 18px 28px;
  }

  .home-stage .hero-sub {
    font-size: 16px;
  }

  .home-logo-card {
    width: 100%;
    min-height: 0;
    padding: 18px;
  }

  .home-institution-logo,
  .medcof-logo-svg {
    max-width: min(100%, 320px);
    height: auto;
  }

  .home-logo-connector {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  .medcof-group-text {
    font-size: 25px;
  }

  .medcof-name-text {
    font-size: 72px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    padding: 14px;
  }

  .filter-group,
  .filter-group input,
  .filter-group select {
    width: 100%;
  }

  .results-count {
    margin-left: 0;
  }

  .distribution-row {
    grid-template-columns: 1fr;
  }

  .home-page-card {
    min-height: 0;
    padding: 22px;
  }

  .home-page-card h3 {
    font-size: 26px;
  }

  .home-page-card p {
    font-size: 15px;
  }

  .highlight-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .highlight-row {
    grid-template-columns: 44px 1fr;
  }

  .highlight-score-chip {
    grid-column: 2;
    justify-self: start;
    min-width: 76px;
  }

  .access-brand-lockup {
    flex-direction: column;
    gap: 8px;
  }

  .access-medcof-logo {
    width: min(100%, 210px);
  }

  .access-medcof-group {
    font-size: 24px;
  }

  .access-medcof-name {
    font-size: 70px;
  }

  .access-modal {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .access-title-row {
    font-size: 23px;
  }
}
