/* Schoolep component architecture: footer only. */
#navbar-logo-slot,
#mobile-logo-slot,
#footer-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

:root {
  
  --footer-bg: var(--secondary);
  --footer-text: #ffffff;
  --footer-muted: #cbd5e1;
  --footer-muted-2: #94a3b8;
  --footer-title-icon-color: var(--primary-light);
  --footer-report-color: #ff0400;
  --footer-report-hover-color: #ff3b30;
  --footer-max-width: 1400px;

  
  --footer-pc-padding-y: 25px;
  --footer-pc-padding-x: 4%;
  --footer-pc-bottom-padding: 15px;
  --footer-pc-margin-top: 30px;
  --footer-pc-column-gap: 20px;
  --footer-pc-row-gap: 20px;
  --footer-pc-list-gap: 8px;
  --footer-bottom-gap: 20px;
  --footer-bottom-padding-top: 12px;

  
  --footer-mobile-padding-y: 25px;
  --footer-mobile-padding-x: 4%;
  --footer-mobile-column-gap: 10px;
  --footer-mobile-row-gap: 20px;
  --footer-mobile-list-gap: 8px;

  
  --footer-title-size: 1.10rem;
  --footer-link-size: 0.90rem;
  --footer-report-size: 0.92rem;
  --footer-description-size: 1rem;
  --footer-copyright-size: 0.80rem;

  /* V229.34 — mobile footer typography: one authority. */
  /* V229.74 — unified mobile footer typography across every public page family. */
  --footer-mobile-title-size: clamp(0.94rem, 3.45vw, 1.02rem);
  --footer-mobile-link-size: clamp(0.76rem, 2.9vw, 0.84rem);
  --footer-mobile-report-size: clamp(0.88rem, 3.15vw, 0.96rem);
  --footer-mobile-description-size: clamp(0.84rem, 2.8vw, 0.94rem);
  --footer-title-line-height: 1.20;
  --footer-link-line-height: 1.25;
  --footer-description-line-height: 1.65;

  
  --footer-title-icon-box: 1.15em;
  --footer-title-icon-size: 1.05em;
  --footer-title-gap: 8px;
  --footer-link-icon-box: 14px;
  --footer-link-icon-size: 12px;
  --footer-link-gap: 8px;
  --footer-report-icon-size: 0.95rem;

  
  --footer-pc-ar-title-icon-y: 0px;
  --footer-pc-ar-title-text-y: 0px;
  --footer-pc-ar-link-icon-y: 0px;
  --footer-pc-ar-link-text-y: 0px;
  --footer-pc-ar-report-icon-y: 0px;
  --footer-pc-ar-report-text-y: 0px;

  
  --footer-pc-fr-title-icon-y: 0px;
  --footer-pc-fr-title-text-y: 0px;
  --footer-pc-fr-link-icon-y: 0px;
  --footer-pc-fr-link-text-y: 0px;
  --footer-pc-fr-report-icon-y: 0px;
  --footer-pc-fr-report-text-y: 0px;

  
  --footer-mobile-ar-title-icon-y: 0px;
  --footer-mobile-ar-title-text-y: 0px;
  --footer-mobile-ar-link-icon-y: 0px;
  --footer-mobile-ar-link-text-y: 0px;
  --footer-mobile-ar-report-icon-y: 0px;
  --footer-mobile-ar-report-text-y: 0px;

  
  --footer-mobile-fr-title-icon-y: 0px;
  --footer-mobile-fr-title-text-y: 0px;
  --footer-mobile-fr-link-icon-y: 0px;
  --footer-mobile-fr-link-text-y: 0px;
  --footer-mobile-fr-report-icon-y: 0px;
  --footer-mobile-fr-report-text-y: 0px;
}

html.dark-mode,
body.dark-mode {
  --footer-title-icon-color: #bae6fd;
}

.app-footer {
  --footer-title-icon-y: var(--footer-pc-ar-title-icon-y);
  --footer-title-text-y: var(--footer-pc-ar-title-text-y);
  --footer-link-icon-y: var(--footer-pc-ar-link-icon-y);
  --footer-link-text-y: var(--footer-pc-ar-link-text-y);
  --footer-report-icon-y: var(--footer-pc-ar-report-icon-y);
  --footer-report-text-y: var(--footer-pc-ar-report-text-y);
  --footer-hover-x: -5px;

  margin-top: var(--footer-pc-margin-top);
  padding: var(--footer-pc-padding-y) var(--footer-pc-padding-x) var(--footer-pc-bottom-padding);
  background: var(--footer-bg);
  color: var(--footer-text);
}

html[dir="ltr"] .app-footer,
body[dir="ltr"] .app-footer {
  --footer-title-icon-y: var(--footer-pc-fr-title-icon-y);
  --footer-title-text-y: var(--footer-pc-fr-title-text-y);
  --footer-link-icon-y: var(--footer-pc-fr-link-icon-y);
  --footer-link-text-y: var(--footer-pc-fr-link-text-y);
  --footer-report-icon-y: var(--footer-pc-fr-report-icon-y);
  --footer-report-text-y: var(--footer-pc-fr-report-text-y);
  --footer-hover-x: 5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--footer-pc-row-gap) var(--footer-pc-column-gap);
  max-width: var(--footer-max-width);
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: start;
}

.footer-col:first-child {
  align-items: center;
  text-align: center;
}

.footer-col:first-child > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.footer-description {
  max-width: 260px;
  color: var(--footer-text);
  font-size: var(--footer-description-size);
  line-height: var(--footer-description-line-height);
}

.footer-col h3 {
  display: grid;
  grid-template-columns: var(--footer-title-icon-box) minmax(0, max-content);
  align-items: center;
  gap: var(--footer-title-gap);
  margin: 0 0 12px;
  color: var(--footer-text);
  font-size: var(--footer-title-size);
  font-weight: 900;
  line-height: var(--footer-title-line-height);
  white-space: nowrap;
}

.footer-col h3 > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--footer-title-icon-box);
  min-width: var(--footer-title-icon-box);
  height: var(--footer-title-icon-box);
  color: var(--footer-title-icon-color);
  font-size: var(--footer-title-icon-size);
  line-height: 1;
  transform: translateY(var(--footer-title-icon-y));
}

.footer-col h3 > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: var(--footer-title-line-height);
  transform: translateY(var(--footer-title-text-y));
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--footer-pc-list-gap);
  width: 100%;
}

.footer-col ul li {
  min-width: 0;
}

.footer-col ul li a {
  display: grid;
  grid-template-columns: var(--footer-link-icon-box) minmax(0, max-content);
  align-items: center;
  gap: var(--footer-link-gap);
  width: fit-content;
  max-width: 100%;
  color: var(--footer-muted);
  font-size: var(--footer-link-size);
  font-weight: 500;
  line-height: var(--footer-link-line-height);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-col ul li a > i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--footer-link-icon-box);
  min-width: var(--footer-link-icon-box);
  height: var(--footer-link-icon-box);
  color: currentColor;
  font-size: var(--footer-link-icon-size);
  line-height: 1;
  transform: translateY(var(--footer-link-icon-y));
}

.footer-col ul li a > i.fa-chevron-left:first-child::before,
.footer-col ul li a > i.fas.fa-chevron-left:first-child::before {
  content: "";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  line-height: 1;
}

html[dir="rtl"] .footer-col ul li a > i:first-child,
html[dir="ltr"] .footer-col ul li a > i:first-child,
body[dir="rtl"] .footer-col ul li a > i:first-child,
body[dir="ltr"] .footer-col ul li a > i:first-child {
  rotate: 0deg;
}

.footer-col ul li a > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: var(--footer-link-line-height);
  transform: translateY(var(--footer-link-text-y));
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
  color: var(--footer-text);
  outline: none;
  transform: translateX(var(--footer-hover-x));
}

.footer-report-issue-item {
  margin-top: 2px;
}

.footer-col ul li a.footer-report-issue-link,
.footer-report-issue-link {
  font-size: var(--footer-report-size);
  font-weight: 900;
  color: var(--footer-text);
}

.footer-report-issue-link > i:first-child {
  color: var(--footer-report-color);
  font-size: var(--footer-report-icon-size);
  transform: translateY(var(--footer-report-icon-y));
}

.footer-report-issue-link > span {
  transform: translateY(var(--footer-report-text-y));
}

.footer-report-issue-link:hover > i:first-child,
.footer-report-issue-link:focus-visible > i:first-child {
  color: var(--footer-report-hover-color);
}

html[data-report-page] .footer-report-issue-item {
  display: none;
}

.footer-bottom {
  max-width: var(--footer-max-width);
  margin: var(--footer-bottom-gap) auto 0;
  padding-top: var(--footer-bottom-padding-top);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--footer-muted-2);
  font-size: var(--footer-copyright-size);
  text-align: center;
}

@media (max-width: 768px) {
  .app-footer {
    --footer-title-icon-y: var(--footer-mobile-ar-title-icon-y);
    --footer-title-text-y: var(--footer-mobile-ar-title-text-y);
    --footer-link-icon-y: var(--footer-mobile-ar-link-icon-y);
    --footer-link-text-y: var(--footer-mobile-ar-link-text-y);
    --footer-report-icon-y: var(--footer-mobile-ar-report-icon-y);
    --footer-report-text-y: var(--footer-mobile-ar-report-text-y);

    /* Mobile typography ownership lives here only. */
    --footer-title-size: var(--footer-mobile-title-size);
    --footer-link-size: var(--footer-mobile-link-size);
    --footer-report-size: var(--footer-mobile-report-size);
    --footer-description-size: var(--footer-mobile-description-size);

    --footer-title-icon-box: 1.08em;
    --footer-title-icon-size: 1em;
    --footer-title-gap: 0.44em;
    --footer-link-icon-box: 1em;
    --footer-link-icon-size: 0.74em;
    --footer-link-gap: 0.38em;

    padding: var(--footer-mobile-padding-y) var(--footer-mobile-padding-x) var(--footer-pc-bottom-padding);
  }

  html[dir="ltr"] .app-footer,
  body[dir="ltr"] .app-footer {
    --footer-title-icon-y: var(--footer-mobile-fr-title-icon-y);
    --footer-title-text-y: var(--footer-mobile-fr-title-text-y);
    --footer-link-icon-y: var(--footer-mobile-fr-link-icon-y);
    --footer-link-text-y: var(--footer-mobile-fr-link-text-y);
    --footer-report-icon-y: var(--footer-mobile-fr-report-icon-y);
    --footer-report-text-y: var(--footer-mobile-fr-report-text-y);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--footer-mobile-row-gap) var(--footer-mobile-column-gap);
    align-items: start;
  }

  .footer-col:first-child { order: 1; grid-column: auto; }
  .footer-col:nth-child(3) { order: 2; }
  .footer-col[data-footer-col="resources"],
  .footer-col:nth-child(2) { order: 3; }
  .footer-col:last-child { order: 4; }

  .footer-col h3 {
    grid-template-columns: var(--footer-title-icon-box) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.20;
  }

  .footer-col h3 > span {
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  .footer-col ul { gap: var(--footer-mobile-list-gap); }

  .footer-col ul li a {
    grid-template-columns: var(--footer-link-icon-box) minmax(0, 1fr);
    max-width: 100%;
    width: fit-content;
    line-height: 1.28;
  }

  .footer-col ul li a > span {
    display: block;
    min-width: 0;
    line-height: 1.28;
  }

  .footer-description { max-width: 210px; }

  /* Keep the existing compact French mobile aliases, but typography inherits
     from the one mobile authority above instead of defining competing sizes. */
  html[lang="fr"] .app-footer [data-mobile-fr] {
    font-size: 0;
    line-height: 1;
  }
  html[lang="fr"] .app-footer [data-mobile-fr]::after {
    content: attr(data-mobile-fr);
    font-size: var(--footer-link-size);
    line-height: 1.28;
  }
  html[lang="fr"] .app-footer h3 [data-mobile-fr]::after {
    font-size: var(--footer-title-size);
    font-weight: 900;
    line-height: 1.20;
  }
  html[lang="fr"] .app-footer .footer-report-issue-link [data-mobile-fr]::after {
    font-size: var(--footer-report-size);
    font-weight: 900;
    line-height: 1.20;
  }
}

@media (max-width: 768px) {
#navbar-slot,
  #sidebar-slot,
  #footer-slot {
    contain: layout style;
  }
}

html.schoolep-stable-page #footer-slot {
  display: block;
  min-height: 210px;
  contain: layout style;
}

@media (max-width: 768px) {
html.schoolep-stable-page #footer-slot {
    min-height: 320px;
  }
}

.footer-description{color:#cbd5e1;line-height:1.6;text-align:center;}


/* V229.13 — French footer chevrons point forward (right) only. */
html[lang="fr"] .footer-col ul li a > i.fa-chevron-left:first-child,
html[lang="fr"] .footer-col ul li a > i.fas.fa-chevron-left:first-child {
  transform: translateY(var(--footer-link-icon-y)) scaleX(-1);
}

/* V229.56 — footer social icons, one brand-color authority.
   No social heading; recognizable platform colors carry the identity. */
.footer-social{display:grid;justify-items:center;margin-top:14px}
.footer-social-links{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
.footer-social-link{
  --social-color:var(--footer-text);
  --social-rgb:226,232,240;
  display:grid;place-items:center;width:34px;height:34px;
  border:1px solid rgba(var(--social-rgb),.38);border-radius:50%;
  background:rgba(var(--social-rgb),.10);color:var(--social-color);
  text-decoration:none;font-size:.94rem;
  transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.footer-social-link[aria-label="SchoolEP"]{--social-color:#60a5fa;--social-rgb:96,165,250}
.footer-social-link[data-social-platform="facebook"]{--social-color:#1877f2;--social-rgb:24,119,242}
.footer-social-link[data-social-platform="instagram"]{--social-color:#e1306c;--social-rgb:225,48,108}
.footer-social-link[data-social-platform="youtube"]{--social-color:#ff0000;--social-rgb:255,0,0}
.footer-social-link:hover,.footer-social-link:focus-visible{transform:translateY(-2px);background:rgba(var(--social-rgb),.18);border-color:rgba(var(--social-rgb),.65);box-shadow:0 7px 18px rgba(var(--social-rgb),.16);outline:0}
.footer-social-placeholder{opacity:1}
@media(max-width:768px){.footer-social{margin-top:10px}.footer-social-link{width:30px;height:30px;font-size:.84rem}}
@media(prefers-reduced-motion:reduce){.footer-social-link{transition:none}.footer-social-link:hover{transform:none}}
