/* ==========================================================================
   e-Pragma site footer
   A proper footer replaces Material's thin "copyright bar" with four
   columns: brand, legal, contact and social.
   ========================================================================== */

.md-footer {
  --epf-bg: #12132e;
  --epf-bg-2: #1c1e42;
  --epf-fg: rgba(255, 255, 255, .78);
  --epf-fg-strong: #fff;
  --epf-muted: rgba(255, 255, 255, .55);
  --epf-line: rgba(255, 255, 255, .12);
  --epf-accent: #ff7a1a;

  background: linear-gradient(135deg, var(--epf-bg) 0%, var(--epf-bg-2) 100%);
  color: var(--epf-fg);
}

[data-md-color-scheme="slate"] .md-footer {
  --epf-bg: #0d0f1c;
  --epf-bg-2: #171a30;
}

/* Material paints the whole footer with --md-footer-bg-color. Override it
   with the gradient above. */
.md-footer-meta {
  background: transparent;
  border-top: 1px solid var(--epf-line);
}

.md-footer-meta__inner {
  padding: 1.4rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- Grid ---------- */

.epf {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.epf__col {
  min-width: 0;
}

.epf__title {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--epf-muted);
  margin: 0 0 16px;
}

.md-typeset .epf__title {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--epf-muted);
  margin: 0 0 16px;
}

/* ---------- Brand ---------- */

.epf__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.epf__logo {
  display: block;
  line-height: 0;
  /* No chip: the mark sits straight on the dark footer. */
  background: transparent;
}

/* The mark is forced to pure white so it reads on the dark footer in both
   the light ("default") and dark ("slate") colour schemes. */
.epf__logo img,
.epf__logo svg {
  height: 54px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.epf__tagline {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--epf-muted);
  max-width: 300px;
  margin: 0;
}

/* ---------- Link lists ---------- */

.epf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-typeset .epf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epf__list a {
  color: var(--epf-fg);
  text-decoration: none;
  font-size: .92rem;
  transition: color .18s ease;
}

.epf__list a:hover {
  color: var(--epf-fg-strong);
  text-decoration: underline;
}

/* ---------- Contact block ---------- */

.epf__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.epf__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--epf-fg);
}

.epf__contact-item svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--epf-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.epf__contact-item a {
  color: var(--epf-fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.epf__contact-item a:hover {
  color: var(--epf-fg-strong);
  text-decoration: underline;
}

/* ---------- Social ---------- */

.epf__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.epf__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--epf-line);
  color: var(--epf-fg);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.epf__social a:hover {
  background: var(--epf-accent);
  border-color: var(--epf-accent);
  color: #fff;
  transform: translateY(-2px);
}

.epf__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Bottom bar ---------- */

.md-typeset .epf__copyright {
  font-size: .84rem;
  color: var(--epf-muted);
  margin: 0;
}

.md-copyright {
  margin: 0;
}

.md-copyright__highlight {
  color: var(--epf-muted);
  font-size: .84rem;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 1024px) {
  .epf {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media screen and (max-width: 600px) {
  .epf {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 18px 32px;
  }

  .md-footer-meta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
