/* EU funding section — standalone styles (works without Tailwind rebuild) */
.eu-title-accent {
  color: #003399;
}

.eu-section__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -30;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.eu-section__wash {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -20;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.95),
    rgba(255, 243, 238, 0.35),
    rgba(0, 51, 153, 0.1)
  );
}

.eu-section__fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0.75), transparent);
}

.eu-section__glow--warm {
  pointer-events: none;
  position: absolute;
  top: 25%;
  left: -6rem;
  z-index: -10;
  height: 28rem;
  width: 28rem;
  border-radius: 9999px;
  background: rgba(255, 112, 91, 0.1);
  filter: blur(64px);
  user-select: none;
}

.eu-section__glow--eu {
  pointer-events: none;
  position: absolute;
  right: -8rem;
  bottom: 0;
  z-index: -10;
  height: 22rem;
  width: 22rem;
  border-radius: 9999px;
  background: rgba(0, 51, 153, 0.1);
  filter: blur(64px);
  user-select: none;
}

@media (min-width: 768px) {
  .eu-section__glow--warm {
    left: -10rem;
  }

  .eu-section__glow--eu {
    bottom: 25%;
  }
}

/* Shared card tokens */
.eu-ref-card,
.eu-highlight-card,
.eu-marks-panel {
  min-width: 0;
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
}

/* Three-card bento grid */
.eu-grid {
  display: grid;
  gap: 1.25rem;
  margin-inline: auto;
  max-width: 72rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .eu-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 1.25rem;
    max-width: 1100px;
  }

  .eu-ref-card {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .eu-highlight-card {
    grid-column: 1 / 8;
    grid-row: 2;
  }

  .eu-marks-panel {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
  }
}

.eu-ref-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 51, 153, 0.15);
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 51, 153, 0.08);
}

@media (min-width: 640px) {
  .eu-ref-card {
    padding: 2rem;
  }
}

.eu-ref-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0.25rem;
  background: linear-gradient(to bottom, rgba(0, 51, 153, 0.7), rgba(0, 51, 153, 0.45), rgba(255, 112, 91, 0.4));
}

@media (min-width: 640px) {
  .eu-ref-card__accent {
    width: 0.375rem;
  }
}

.eu-ref-card__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: rgba(48, 48, 48, 0.75);
}

@media (min-width: 640px) {
  .eu-ref-card__id {
    font-size: 0.875rem;
  }
}

.eu-ref-card__title {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.375;
  color: #303030;
}

@media (min-width: 640px) {
  .eu-ref-card__title {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .eu-ref-card__title {
    font-size: 1.25rem;
  }
}

.eu-highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 112, 91, 0.18);
  background: linear-gradient(to bottom right, rgba(255, 243, 238, 0.85), #fff, #fff);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(255, 112, 91, 0.1);
}

@media (min-width: 640px) {
  .eu-highlight-card {
    padding: 2rem;
  }
}

.eu-highlight-card__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

@media (min-width: 768px) {
  .eu-highlight-card__inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.eu-highlight-card__stat-wrap {
  flex-shrink: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .eu-highlight-card__stat-wrap {
    width: 11rem;
    text-align: left;
  }
}

.eu-highlight-card__stat {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #ff705b;
}

@media (min-width: 640px) {
  .eu-highlight-card__stat {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .eu-highlight-card__stat {
    font-size: 4.5rem;
  }
}

.eu-highlight-card__stat-label {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.625;
  color: #959595;
}

@media (min-width: 768px) {
  .eu-highlight-card__stat-label {
    max-width: none;
  }
}

.eu-highlight-card__challenge {
  margin: 0;
  min-width: 0;
  flex: 1;
  text-wrap: pretty;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(48, 48, 48, 0.9);
}

@media (min-width: 768px) {
  .eu-highlight-card__challenge {
    font-size: 1.125rem;
  }
}

.eu-marks-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 51, 153, 0.09);
}

@media (min-width: 640px) {
  .eu-marks-panel {
    padding: 2rem;
  }
}

.eu-marks-panel__accent {
  margin: 0 auto 1.25rem;
  height: 0.25rem;
  width: 3rem;
  border-radius: 9999px;
  background: linear-gradient(to right, #003399, #ff705b);
  flex-shrink: 0;
}

.eu-marks-panel__title {
  margin: 0 0 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .eu-marks-panel__title {
    margin-bottom: 1.5rem;
  }
}

.eu-marks-panel__logos {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  min-height: 0;
}

@media (min-width: 640px) {
  .eu-marks-panel__logos {
    gap: 1.5rem;
  }
}

.eu-marks-panel__logo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.eu-marks-panel__logo:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .eu-marks-panel__logo {
    min-height: 6.5rem;
    padding: 1.5rem;
  }
}

.eu-marks-panel__img {
  height: auto;
  width: 100%;
  max-height: 5.5rem;
  max-width: min(100%, 260px);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.eu-marks-panel__logo:hover .eu-marks-panel__img {
  transform: scale(1.02);
}

.eu-marks-panel__img--tall {
  max-height: 6rem;
}

@media (min-width: 640px) {
  .eu-marks-panel__img {
    max-height: 6.5rem;
  }

  .eu-marks-panel__img--tall {
    max-height: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eu-marks-panel__img {
    transition: none;
  }

  .eu-marks-panel__logo:hover .eu-marks-panel__img {
    transform: none;
  }
}
