/* 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;
  --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);

    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);
  }
.footer-col ul {
    gap: var(--footer-mobile-list-gap);
  }
.footer-description {
    max-width: 210px;
  }
}

@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;}

@media (max-width:768px) {
.app-footer{
    --footer-title-size:clamp(.94rem,3.2vw,1.04rem);
    --footer-link-size:clamp(.80rem,2.75vw,.88rem);
    --footer-report-size:clamp(.82rem,2.8vw,.90rem);
    --footer-description-size:clamp(.86rem,2.85vw,.95rem);
    --footer-title-icon-box:1.05em;
    --footer-title-icon-size:1em;
    --footer-title-gap:.42em;
    --footer-link-icon-box:1em;
    --footer-link-icon-size:.74em;
    --footer-link-gap:.42em;
  }
.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.22;
    overflow:visible;
  }
.footer-col h3 > span{
    display:block;
    min-width:0;
    max-width:100%;
    overflow:visible;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:auto;
  }
.footer-col ul li a{
    grid-template-columns:var(--footer-link-icon-box) minmax(0,1fr);
    align-items:center;
    max-width:100%;
    width:fit-content;
    line-height:1.3;
  }
.footer-col ul li a > i:first-child{
    width:var(--footer-link-icon-box);
    min-width:var(--footer-link-icon-box);
    height:var(--footer-link-icon-box);
    font-size:var(--footer-link-icon-size);
    line-height:1;
  }
.footer-col ul li a > span{
    display:block;
    min-width:0;
    line-height:1.3;
    overflow-wrap:normal;
    word-break:normal;
  }
}

@media (max-width:390px) {
.app-footer{
    --footer-title-size:clamp(.90rem,3.65vw,1.00rem);
    --footer-link-size:clamp(.78rem,3.25vw,.85rem);
    --footer-title-gap:.36em;
    --footer-link-gap:.36em;
  }
}
