@charset "UTF-8";
/* CSS Document */

/* ==========================================================================
   CARD VARIABLES
   Change a number here and the card AND its image update together.
   ========================================================================== */

:root {
  /* Card hover scales */
  --card-scale-shrink:       .95;   /* white-card, pub-card */
  --card-scale-shrink-light: .98;   /* cta-card */
  --card-scale-grow:         1.02;  /* home-card, mp-home-card */

  /* Timing */
  --card-duration-base: .4s;
  --card-duration-slow: .5s;

  /* Shadows */
  --card-shadow-colour:      rgba(128, 128, 128, .15);
  --card-shadow:             0 10px 10px 5px var(--card-shadow-colour);
  --card-shadow-hover:       0 16px 32px 5px var(--card-shadow-colour);
  --card-shadow-hover-dark:  0 16px 32px 0 rgba(0, 0, 0, .15);       /* home-card */
  --card-shadow-hover-light: 0 16px 32px 0 rgba(255, 255, 255, .15); /* mp-home-card */

  /* Spacing */
  --card-list-gap: 1.67rem;
}


/* ==========================================================================
   SHARED CARD BEHAVIOUR
   Every card gets the same base + hover mechanics. Individual cards only
   override the custom properties (--card-*) below.

   Per-card properties:
     --card-bg                background colour
     --card-shadow            resting shadow
     --card-shadow-hover      hover shadow
     --card-hover-scale       card scale on hover
     --card-img-hover-scale   image scale on hover
     --card-duration          transition length
   ========================================================================== */

.white-card,
.pub-card,
.cta-card,
.home-card,
.mp-home-card {
  /* defaults (shrink-on-hover card) */
  --card-bg:              var(--white);
  --card-shadow:          0 10px 10px 5px var(--card-shadow-colour);
  --card-shadow-hover:    0 16px 32px 5px var(--card-shadow-colour);
  --card-hover-scale:     var(--card-scale-shrink);
  --card-duration:        var(--card-duration-base);
  /* image grows by the amount the card shrinks: 0.95 -> 1.05 */
  --card-img-hover-scale: calc(2 - var(--card-hover-scale));

  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transform: scale(1);
  transition: all var(--card-duration) ease;
}

.white-card:hover,
.pub-card:hover,
.cta-card:hover,
.home-card:hover,
.mp-home-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: scale(var(--card-hover-scale));
}


/* ---- Card images: zoom in step with the card ---- */

/* Clip the zoomed image to its container so it doesn't spill over the card */
:is(.white-card, .pub-card, .cta-card, .home-card, .mp-home-card)
  :is(.media, .media-wrapper, figure) {
  overflow: hidden;
}

:is(.white-card, .pub-card, .cta-card, .home-card, .mp-home-card) img {
  transform: scale(1);
  transition: transform var(--card-duration) ease;
}

:is(.white-card, .pub-card, .cta-card, .home-card, .mp-home-card):hover img {
  transform: scale(var(--card-img-hover-scale));
}


/* ==========================================================================
   CARD VARIANTS (only what differs from the shared defaults)
   ========================================================================== */

/* cta-card: shrinks slightly less */
.cta-card {
  --card-hover-scale: var(--card-scale-shrink-light);
}

/* pub-card: offset resting shadow */
.pub-card {
  --card-shadow: 16px 14px 10px 0 var(--card-shadow-colour);
}

@media (max-width: 768px) {
  .pub-card {
    --card-shadow:       0 -5px 10px 5px var(--card-shadow-colour);
    --card-shadow-hover: 0 -3px 10px 3px var(--card-shadow-colour);
  }
}

/* home cards: grow on hover, no background or resting shadow, slower */
.home-card,
.mp-home-card {
  --card-bg:              transparent;
  --card-shadow:          none;
  --card-hover-scale:     var(--card-scale-grow);
  --card-img-hover-scale: var(--card-hover-scale); /* image grows by the same amount as the card */
  --card-duration:        var(--card-duration-slow);
}

.home-card {
  --card-shadow-hover: var(--card-shadow-hover-dark);
}

.mp-home-card {
  --card-shadow-hover: var(--card-shadow-hover-light);
}

.home-card p,
.mp-home-card {
  font-size: .9rem;
  padding: 2px 0;
  transition: all var(--card-duration-slow) ease;
}

.home-card:hover p {
  padding: 2px 6px;
}


/* ==========================================================================
   WHITE-CARD SIZING
   ========================================================================== */

.white-card.sidebar,
.white-card.no-white {
  min-height: auto;
}

@media (max-width: 575px) {
  .white-card {
    min-height: auto;
  }
}


/* ==========================================================================
   SAME-HEIGHT ROWS (make all cards the same height on the same row)
   ========================================================================== */

div.same_height {
  display: flex;
}

div.list {
  flex: 1;
}

div.white-card {
  height: 100% !important;
}


/* ==========================================================================
   LIST CONTENT
   ========================================================================== */

.list > ul > li:last-child {
  margin-bottom: var(--card-list-gap);
  /* padding-bottom: 1rem !important;  <- original had "important" without "!", so it was ignored */
  border-bottom: none;
}

.list h3,
.list h4 {
  margin: 5px 0;
}

.list h3 { font-size: 1.3rem; }
.list h4 { font-size: 1.1rem; }

.summary-wrapper .list h3 {
  margin: 20px 0 5px;
  font-size: 1.2rem;
}

.list .row {
  margin-left: 0;
}


/* ==========================================================================
   CTA CARD
   ========================================================================== */

h3.cta_title {
  font-size: 1.6rem;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  font-weight: 700;
}


/* ==========================================================================
   VOICES CARD
   ========================================================================== */

.voices-card__row {
  position: relative;
}

.voices-card .media-wrapper {
  width: 60%;
  flex: 0 0 60%;
}

.voices-card .media-wrapper img,
.voices-card .media-wrapper a {
  display: block;
  width: 100%;
  border-bottom: none !important;
}

.voices-card .summary-wrapper {
  width: 50%;
  flex: 0 0 50%;
  margin-left: -10%;
  position: relative;
  z-index: 2;
  background: var(--eu-warm-yellow);
}

.voices-card .summary-wrapper p {
  margin: 0;
}

@media (max-width: 991px) {
  .voices-card .voices-card__row {
    flex-direction: column;
  }

  .voices-card .media-wrapper {
    width: 100%;
    flex: 0 0 100%;
  }

  .voices-card .summary-wrapper {
    width: 80%;
    flex: 0 0 80%;
    margin-left: 0;
    margin-right: 0;
    margin-top: -10%;
    align-self: center;
  }
}


/* ==========================================================================
   PUBLICATION CARDS
   ========================================================================== */

.bleu-bg {
  background: var(--eu-bleu);
}

/* Special publication: grey scheme, card does not scale (image doesn't either) */
.special-publication.pub-card {
  --card-hover-scale:     1;
  --card-img-hover-scale: 1;
}

.special-publication .bleu-bg {
  background: var(--eu-grey-light);
}

.special-publication a.btn--blue,
.special-publication input.btn--blue {
  color: var(--white) !important;
  background: var(--eu-grey-light);
  border: 1px solid transparent !important;
  text-decoration: none;
  border-radius: 0;
}

.special-publication a.btn--blue:hover,
.special-publication a.btn--blue:focus,
.special-publication .btn--blue a:hover,
.special-publication input.btn--blue:hover,
.special-publication input.btn--blue:focus,
.special-publication input.btn--blue a:hover {
  color: var(--eu-grey-light) !important;
  background: var(--white) !important;
  border: 1px solid var(--eu-grey-light) !important;
  text-decoration: none;
}

.special-publication .summary-wrapper {
  background: rgba(230, 230, 230, 1);
}

.special-publication .current {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  font-variant: all-small-caps;
  line-height: 1.2rem;
  padding: 8px 10px;
}

.special-publication h3 {
  color: var(--eu-grey-light);
}


/* ==========================================================================
   NEWS ITEM CARD
   ========================================================================== */

.news-item-card {
  background: var(--white);
  padding: 20px;
}