.hudPublicLinks,
.hudPublicOverview {
  width: calc(100% - 36px);
  max-width: 694px;
  margin: 0 auto 24px;
  color: #23374b;
}

.hudPublicLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 4px 0 14px;
}

.hudPublicLinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #bcd8cd;
  border-radius: 999px;
  background: #fffdf7;
  color: #176052;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.hudPublicLinks a:hover {
  background: #e7f4ed;
}

.hudPublicLinks a:focus-visible,
.hudPublicOverview a:focus-visible {
  outline: 3px solid #3047ba;
  outline-offset: 4px;
}

.hudPublicOverview {
  margin-bottom: 100px;
  padding: 28px;
  border: 1px solid #e3dfce;
  border-radius: 26px;
  background: #fffdf7;
  box-shadow: 0 6px 20px #23374b09;
  font-size: 16px;
  line-height: 1.7;
}

.hudPublicOverview .hudPublicKicker {
  margin: 0 0 10px;
  color: #276a58;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.hudPublicOverview h2 {
  margin: 0 0 16px;
  color: #254e43;
  font-size: clamp(24px, 5vw, 31px);
  line-height: 1.2;
  text-align: left;
}

.hudPublicOverview h3 {
  margin: 0 0 9px;
  color: #23374b;
  font-size: 19px;
  line-height: 1.35;
}

.hudPublicOverview p {
  margin: 0 0 16px;
}

.hudPublicOverview a {
  color: #215d9a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hudPublicTopics {
  display: grid;
  gap: 23px;
  margin: 25px 0;
}

.hudPublicTopic {
  padding-top: 21px;
  border-top: 1px solid #e3e7db;
}

.hudPublicTopic p:last-child,
.hudPublicRoutine p:last-child {
  margin-bottom: 0;
}

.hudPublicRoutine {
  padding: 20px;
  border-radius: 18px;
  background: #eaf4ec;
}

.hudPublicOverview .hudPublicFooter {
  margin: 21px 0 0;
  color: #53665d;
  font-size: 14px;
}

/* The overview belongs to Home; settings retain the ordinary family links.
   Without JavaScript, no data-page is set and the complete content stays visible. */
body[data-page]:not([data-page="home"]) .hudPublicOverview,
body[data-page]:not([data-page="home"]):not([data-page="parentOpen"]) .hudPublicLinks {
  display: none;
}

body[data-page="parentOpen"] .hudPublicLinks {
  margin-bottom: 100px;
}

@media (min-width: 620px) {
  .hudPublicTopics {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .hudPublicTopic:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hudPublicOverview {
    padding: 23px 20px;
  }

  .hudPublicLinks {
    gap: 7px;
  }

  .hudPublicLinks a {
    padding-inline: 12px;
  }
}
