/*
Theme Name: IEMPA Online Academy
Description: IEMPA visual system for the Academy, based on Twenty Twenty-Five.
Template: twentytwentyfive
Version: 0.2.1
Text Domain: iempa-academy
*/

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/26d0ba92e140f0dc-s.p.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/adb45196eddef626-s.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/692df4da22e71021-s.p.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/b6a6f0b43d027304-s.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --iempa-ink: #193e53;
  --iempa-ink-deep: #173647;
  --iempa-copy: #2f5f7e;
  --iempa-muted: #4f7a94;
  --iempa-accent: #3d7392;
  --iempa-gold: #cca973;
  --iempa-paper: #fbfaf7;
  --iempa-sand: #f3f0e9;
  --iempa-canvas: #e7edf1;
}

body {
  color: var(--iempa-copy);
  background: var(--iempa-canvas);
  font-family: "Source Sans 3", Arial, sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.wp-site-blocks {
  width: min(1380px, 100%);
  min-height: 100vh;
  margin-inline: auto;
  background: var(--iempa-paper);
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--iempa-ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 600;
}

:where(a) {
  color: var(--iempa-accent);
  text-decoration-color: var(--iempa-gold);
  text-underline-offset: 0.2em;
}

:where(button, .wp-element-button) {
  border-radius: 2px;
}

/* Keep the WordPress shell aligned with the approved IEMPA identity. */
.wp-block-site-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--iempa-ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.wp-block-site-title a::before {
  width: 3.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  background: url("assets/images/iempa-logo.png") center / contain no-repeat;
  content: "";
}

/* The catalogue shortcode renders its own accessible page heading. */
.home .wp-block-post-title {
  display: none;
}

/* The parent theme ships placeholder footer links. Keep them out of Staging. */
.wp-site-blocks > footer {
  display: none;
}

/* Closed WooCommerce drawers and Tutor tooltips must not widen mobile pages. */
.wc-block-mini-cart__drawer {
  max-width: 100vw;
}

.tutor-course-content-list-item .tooltip-txt {
  max-width: min(13rem, calc(100vw - 2rem));
}

@media (max-width: 600px) {
  .wp-block-site-title a {
    gap: 0.55rem;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .wp-block-site-title a::before {
    width: 2.6rem;
    height: 1.8rem;
  }
}
