/* Didatec — Campus page (DIDATEC CAMPUS presentation).
   Layout of the page Didatec supplied (standalone HTML, 28/10/2026): split
   hero with a visual, steps band, two feature cards, teaching band,
   closing call to action. Each element keeps the site's own design:
   ribbons, chapôs, key figure cards, company page tiles (.axis-card in
   page.css), timeline cards, tags, blue button style. Loaded only when the
   content carries campus-* classes (axfrost_content_uses_campus(),
   enqueue.php).

   Breakpoints: 600 and 1024 as in the rest of the theme, plus 1300 (the
   header's own switch) for the two rows that need the full desktop width to
   sit on one line: the steps band and the hero signature. */

/* Shared ------------------------------------------------------------------ */

/* Columns stack at the theme breakpoint (1024px) instead of core's 782px. */
@media (max-width: 1023px) {
  .wp-block-columns.campus-stack {
    flex-wrap: wrap !important;
  }

  .wp-block-columns.campus-stack > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* A ribbon labels what follows it: closer than the block gap. */
:is(.wp-block-column, .wp-block-group, .wp-block-cover__inner-container)
  > .ribbon
  + * {
  margin-block-start: var(--wp--preset--spacing--40);
}

.campus-footnote.has-tiny-font-size {
  margin-block-start: var(--wp--preset--spacing--60);
  line-height: 1.4;
}

/* Section header: ribbon and h2 on the left, chapô on the right. */
.campus-header.wp-block-columns {
  gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--90);
}

.campus-header__aside p {
  max-width: 560px;
}

@media (min-width: 1024px) {
  .campus-header__aside p {
    max-width: 360px;
    margin-inline-start: auto;
  }
}

.campus-header + .wp-block-columns {
  margin-block-start: var(--wp--preset--spacing--80);
}

/* Hero -------------------------------------------------------------------- */

.campus-hero.section {
  padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--100);
}

.campus-hero__grid.wp-block-columns {
  gap: var(--wp--preset--spacing--80) var(--wp--preset--spacing--90);
}

/* The logo comes from a flattened board (off-white #fefefe background):
   multiply melts it into the page, as with the product photos. */
.campus-logo img {
  width: clamp(150px, calc(150px + 50 * (100vw - 600px) / 520), 200px);
  height: auto;
  mix-blend-mode: multiply;
}

.wp-block-column > .campus-logo + * {
  margin-block-start: var(--wp--preset--spacing--80);
}

.campus-hero__lead {
  line-height: 1.3;
}

.wp-block-column > h1 + .campus-hero__lead {
  margin-block-start: var(--wp--preset--spacing--60);
}

.campus-hero__desc {
  max-width: 470px;
}

/* Signature: label above tagline, side by side with a rule once the column
   is wide enough for both on one line. */
.wp-block-column > .campus-signature.wp-block-group {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-block-start: var(--wp--preset--spacing--80);
  padding-block-start: var(--wp--preset--spacing--50);
  border-block-start: 1px solid var(--wp--preset--color--black-20);
}

.campus-signature__brand {
  font-weight: 500;
  letter-spacing: -0.03em;
}

@media (min-width: 1300px) {
  .wp-block-column > .campus-signature.wp-block-group {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .campus-signature > p + p {
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--wp--preset--color--black-20);
  }
}

/* The visual is a company page tile (.axis-card, page.css) on the wide hero
   picture, its focal point set on the machine. Stacked on a tablet, the
   tile's mobile ratio would fill the screen: it goes landscape instead. */
@media (min-width: 600px) and (max-width: 1023px) {
  .campus-visual.axis-card.wp-block-cover {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 599px) {
  /* The lead's line break is set for desktop; on a phone it would leave a
     one-word line, so the sentence flows instead. */
  .campus-hero__lead br {
    display: none;
  }
}

/* Steps band: intro and three key figure cards ---------------------------- */

/* Intro on its own row, the cards below; all four on one row from 1300px,
   the first width where each card holds its value on one line. */
.campus-steps.section {
  padding-block: var(--wp--preset--spacing--60);
}

.campus-steps__grid.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.campus-steps__grid > .wp-block-column > * {
  margin-block: 0;
}

.campus-steps__intro.wp-block-column {
  grid-column: 1 / -1;
}

@media (min-width: 1300px) {
  .campus-steps__grid.wp-block-columns {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    column-gap: 16px;
  }

  .campus-steps__intro.wp-block-column {
    grid-column: auto;
  }
}

@media (max-width: 599px) {
  .campus-steps__grid.wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* Key figure card (blocks/key-figures.css), white on the grey band. The
   icon is the theme's SVG drawn as a mask, picked by modifier class. */
.campus-figure.wp-block-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 16px 24px 16px 64px;
  border-radius: 5px;
  background-color: var(--wp--preset--color--white);
}

.campus-figure::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: var(--wp--preset--color--blue);
  -webkit-mask: var(--campus-icon) center / contain no-repeat;
  mask: var(--campus-icon) center / contain no-repeat;
}

.campus-figure--book-open {
  --campus-icon: url(../icons/book-open.svg);
}

.campus-figure--test-tube {
  --campus-icon: url(../icons/test-tube.svg);
}

.campus-figure--star-plus {
  --campus-icon: url(../icons/star-plus.svg);
}

.campus-figure__value {
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.campus-figure .has-tiny-font-size {
  line-height: 1.2;
}

/* Three cards across a tablet leave too little room beside the icon: the
   values broke over two lines. The icon moves above the text. */
@media (min-width: 600px) and (max-width: 1023px) {
  .campus-figure.wp-block-column {
    justify-content: flex-start;
    padding: 16px 20px;
  }

  .campus-figure::before {
    position: static;
    flex: none;
    margin-block-end: 8px;
    transform: none;
  }
}

/* Experiences: two cards ------------------------------------------------ */

/* Side by side down to 600px, as in the supplied page. */
.campus-cards.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
}

@media (max-width: 599px) {
  .campus-cards.wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.campus-card.wp-block-column > * {
  margin-block: 0;
}

.campus-card.wp-block-column > * + * {
  margin-block-start: 12px;
}

.campus-card.wp-block-column > .axis-card + * {
  margin-block-start: var(--wp--preset--spacing--50);
}

/* The company page tiles are 468px high from 1024px: here they head a card,
   framed as the news visuals (blocks/news.css) instead. */
.campus-card > .axis-card.wp-block-cover {
  min-height: 0;
  aspect-ratio: 640 / 390;
}

.campus-card h3 {
  line-height: 1.1;
}

/* Tags: the look of .tag (base.css), without its hover: these are labels,
   not links. */
.campus-tags.wp-block-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.campus-tags li {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 5px;
  background-color: var(--wp--preset--color--black-5);
  font-family: var(--wp--preset--font-family--headline);
  font-size: var(--wp--preset--font-size--tiny);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--wp--preset--color--black-80);
}

/* Teaching band (CAMPUS COMPLET): timeline cards on white ---------------- */

/* The band was black and came last but one. Since the client moved it to the
   end of the page it merged with the black footer, so it turns white. The
   page content still carries the dark presets (black background, white
   texts, light ribbons): each is brought back to its light counterpart here.
   Core sets the preset classes with !important, hence the same flag. */
.campus-teaching.wp-block-group.has-background {
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--black) !important;
}

.campus-teaching .has-white-80-color {
  color: var(--wp--preset--color--black-80) !important;
}

.campus-teaching p.has-white-70-color {
  color: var(--wp--preset--color--field-text) !important;
}

/* Accent of the heading: blue, as in the hero. */
.campus-teaching mark.has-white-70-color {
  color: var(--wp--preset--color--blue) !important;
}

.campus-teaching .ribbon--light {
  background-color: var(--wp--preset--color--blue-20);
}

.campus-teaching__top.wp-block-columns {
  gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--90);
}

.campus-teaching__intro .has-h-4-font-size {
  line-height: 1.3;
}

/* Bordered card of the timeline (blocks/timeline.css), with the icon of a
   key figure: Lucide sparkles drawn as a mask. */
.wp-block-column > .campus-max.wp-block-group {
  position: relative;
  margin-block-start: var(--wp--preset--spacing--60);
  padding: var(--wp--preset--spacing--60);
  padding-inline-start: calc(var(--wp--preset--spacing--60) + 40px);
  border: 1px solid var(--wp--preset--color--black-20);
  border-radius: 5px;
}

.campus-max.wp-block-group > * {
  margin-block: 0;
}

.campus-max.wp-block-group > * + * {
  margin-block-start: 8px;
}

.campus-max::before {
  content: "";
  position: absolute;
  top: var(--wp--preset--spacing--60);
  left: var(--wp--preset--spacing--60);
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url(../icons/sparkles.svg) center / contain no-repeat;
  mask: url(../icons/sparkles.svg) center / contain no-repeat;
}

.campus-max__title {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Three timeline cards side by side down to 600px. */
.campus-teaching__steps.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: var(--wp--preset--spacing--100);
}

@media (max-width: 599px) {
  .campus-teaching__steps.wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.campus-teaching__steps > .wp-block-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: var(--wp--preset--spacing--60);
  border: 1px solid var(--wp--preset--color--black-20);
  border-radius: 5px;
}

.campus-teaching__steps > .wp-block-column > * {
  margin-block: 0;
}

.campus-teaching__steps h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Closing call to action ------------------------------------------------- */

.campus-final__grid.wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--90);
}

.campus-final__grid p:not(.ribbon) {
  max-width: 520px;
}

.campus-final__actions.wp-block-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.campus-final__actions.wp-block-column > * {
  margin-block: 0;
}

@media (max-width: 1023px) {
  .campus-final__grid.wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .campus-final__actions.wp-block-column {
    align-items: flex-start;
  }
}
