footer.sd-site-footer {
  --foot-ink: #f5faf7;
  --foot-muted: #c6d9ce;
  --foot-line: #406151;
  box-sizing: border-box;
  width: 100%;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: 0;
  background: #102d22;
  color: var(--foot-ink);
  text-align: left;
  line-height: 1.5;
}

.sd-site-footer *,
.sd-site-footer *::before,
.sd-site-footer *::after {
  box-sizing: border-box;
}

.sd-foot-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 40px 32px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.sd-site-footer a {
  color: inherit;
  text-decoration: none;
}

.sd-site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sd-site-footer :is(a, summary):focus-visible {
  outline: 2px solid #bdedce;
  outline-offset: 2px;
}

.sd-foot-heading,
.sd-foot-dates,
.sd-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.sd-foot-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.sd-foot-brand p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--foot-muted);
}

.sd-site-footer .sd-foot-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid #6b8b7a;
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 650;
}

.sd-foot-camera {
  width: 17px;
  height: 17px;
  flex: none;
  display: inline-block;
  position: relative;
  border: 1.7px solid currentColor;
  border-radius: 5px;
}

.sd-foot-camera::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.sd-foot-camera::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.sd-site-footer h2,
.sd-foot-areas summary {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
  color: var(--foot-ink);
}

.sd-foot-dates {
  margin-top: 24px;
  padding-block: 16px;
  border-block: 1px solid var(--foot-line);
}

.sd-foot-date-links {
  width: 100%;
  max-width: 33rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sd-site-footer .sd-foot-date-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #587966;
  border-radius: 8px;
  background: #203e30;
  font-size: 1rem;
  font-weight: 700;
}

.sd-site-footer .sd-foot-date-links a:last-child {
  background: #d4efcf;
  border-color: #d4efcf;
  color: #153a28;
}

.sd-foot-directory {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding-block: 24px 18px;
}

.sd-foot-directory > * {
  flex: 1 1 0;
  min-width: 0;
}

.sd-site-footer .sd-foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.sd-foot-links a,
.sd-foot-bottom a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--foot-muted);
}

.sd-foot-areas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--foot-line);
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}

.sd-foot-areas:not([open]) > .sd-foot-links {
  display: none;
}

.sd-foot-areas summary::-webkit-details-marker {
  display: none;
}

.sd-foot-areas summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--foot-muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

.sd-foot-areas[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.sd-foot-areas .sd-foot-links {
  padding-inline: 12px;
}

.sd-foot-bottom {
  justify-content: flex-end;
  border-top: 1px solid var(--foot-line);
}

.sd-foot-bottom a {
  white-space: nowrap;
  gap: 7px;
  font-size: 0.875rem;
}

@media (max-width: 850px) {
  .sd-foot-directory > nav {
    flex: 1 1 35%;
  }

  .sd-foot-directory > .sd-foot-areas {
    flex: 0 0 100%;
  }
}

@media (max-width: 600px) {
  .sd-foot-inner {
    padding: 24px 16px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .sd-foot-heading {
    gap: 8px;
  }

  .sd-site-footer .sd-foot-social {
    padding-inline: 10px;
  }

  .sd-foot-dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .sd-foot-date-links {
    width: 100%;
    gap: 6px;
  }

  .sd-foot-directory {
    gap: 12px 16px;
    padding-block: 18px 14px;
  }

  .sd-foot-directory nav .sd-foot-links {
    display: block;
    margin-top: 4px;
  }
}

@media print {
  footer.sd-site-footer {
    display: none;
  }
}
