:root {
  --footer-bg: #0b5d57;
  --footer-text: #ffffff;
  --footer-muted: #d8eee8;
  --footer-line: rgba(255, 255, 255, 0.2);
}

footer,
.site-footer {
  margin-block-start: clamp(48px, 7vw, 88px);
  padding: 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  color: var(--footer-text);
  background: var(--footer-bg);
  box-shadow: 0 -12px 32px rgba(11, 93, 87, 0.14);
  overflow: hidden;
}

footer .footer-grid,
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(170px, 0.75fr) minmax(240px, 1fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
  padding-block: clamp(52px, 7vw, 84px);
}

footer .footer-grid section,
.site-footer .footer-grid section {
  min-width: 0;
  padding: 0;
}

footer .footer-grid h2,
.site-footer .footer-grid h2 {
  margin: 0 0 22px;
  color: var(--footer-text);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

footer .footer-grid section:first-child h2,
.site-footer .footer-grid section:first-child h2 {
  max-width: 290px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

footer .footer-grid p,
footer .footer-grid li,
footer .footer-grid .small,
.site-footer .footer-grid p,
.site-footer .footer-grid li {
  color: var(--footer-muted);
  font-size: 1rem;
  line-height: 1.7;
}

footer .footer-grid p,
.site-footer .footer-grid p {
  max-width: 440px;
  margin: 0 0 16px;
}

footer .footer-links,
.site-footer .footer-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer a,
.site-footer a {
  color: var(--footer-text);
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

footer a:hover,
.site-footer a:hover {
  color: #c9fff1;
  text-decoration-color: currentColor;
}

footer a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #9df2dc;
  outline-offset: 4px;
  border-radius: 3px;
}

footer .footer-grid section + section,
.site-footer .footer-grid section + section {
  border-inline-start: 1px solid var(--footer-line);
  padding-inline-start: clamp(24px, 3vw, 42px);
}

@media (max-width: 820px) {
  footer,
  .site-footer {
    border-radius: 22px 22px 0 0;
  }

  footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 28px;
    padding-block: 48px 56px;
  }

  footer .footer-grid section:first-child,
  .site-footer .footer-grid section:first-child {
    grid-column: 1 / -1;
  }

  footer .footer-grid section:nth-child(2),
  .site-footer .footer-grid section:nth-child(2) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
}

@media (max-width: 560px) {
  footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 42px 48px;
  }

  footer .footer-grid section:first-child,
  .site-footer .footer-grid section:first-child {
    grid-column: auto;
  }

  footer .footer-grid section + section,
  .site-footer .footer-grid section + section {
    border-inline-start: 0;
    border-block-start: 1px solid var(--footer-line);
    padding-block-start: 28px;
    padding-inline-start: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer a,
  .site-footer a {
    transition: none;
  }
}

.article-meta {
  margin: 10px 0 20px;
  color: var(--muted, #54707a);
  font-size: 0.95rem;
}

.article-meta a {
  font-weight: 700;
}
