/* ==========================================================================
   Content Hub (page-hub.php)
   Layout follows the Lovable hub prototypes; visual language follows the
   ParentData design system (Lora headings, DM Sans body, #282828 ink,
   #FDEDA9 yellow CTAs, #FEF7D8 tinted panels, 24px card radius).
   ========================================================================== */

.content-hub {
  --hub-ink: #282828;
  --hub-muted: #9c9c9c;
  --hub-yellow: #fdeda9;
  --hub-cream: #fef7d8;
  --hub-tan: #e5dcb5;
  --hub-border: rgba(40, 40, 40, 0.16);

  font-family: "DM Sans", sans-serif;
  color: var(--hub-ink);
  overflow-x: clip;
}

.content-hub section {
  margin-block: 75px;
}

@media (max-width: 767px) {
  .content-hub section {
    margin-block: 38px;
  }
}

.content-hub h1,
.content-hub h2,
.content-hub h3 {
  font-family: "Lora", serif;
  font-weight: 400;
  color: var(--hub-ink);
  letter-spacing: 0.0125em;
}

.content-hub section > .custom-container > h2,
.content-hub .hub-ask__panel h2 {
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .content-hub section > .custom-container > h2,
  .content-hub .hub-ask__panel h2 {
    font-size: 26px;
  }
}

/* Centered intro line under section headings */
.hub-ask__intro,
.hub-tools__intro,
.hub-instagram__intro {
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--hub-ink);
  max-width: 640px;
  margin: 0 auto 40px;
}

.content-hub button {
  cursor: pointer;
}

/* The parent theme styles bare <button> elements (blue bg, white text,
   Public Sans 600, and color:#fff + inset glow on hover/focus). Neutralize
   it for hub controls so labels/icons never flash white. */
.content-hub .hub-mt-pill:hover,
.content-hub .hub-mt-pill:focus,
.content-hub .hub-mt-pill:active,
.content-hub .hub-mt-tab:hover,
.content-hub .hub-mt-tab:focus,
.content-hub .hub-mt-tab:active,
.content-hub .hub-age-pill:hover,
.content-hub .hub-age-pill:focus,
.content-hub .hub-age-pill:active,
.content-hub .hub-topic-pill:hover,
.content-hub .hub-topic-pill:focus-visible,
.content-hub .hub-topic-pill:active,
.content-hub .hub-ask__chip:hover,
.content-hub .hub-ask__chip:focus,
.content-hub .hub-ask__chip:active,
.content-hub .hub-tool-card:hover,
.content-hub .hub-tool-card:focus,
.content-hub .hub-tool-card:active,
.content-hub .hub-other-hubs__arrow:hover,
.content-hub .hub-other-hubs__arrow:focus,
.content-hub .hub-other-hubs__arrow:active,
.content-hub .hub-newsletter__tab:hover,
.content-hub .hub-newsletter__tab:focus,
.content-hub .hub-newsletter__tab:active,
.content-hub .btn-yellow:hover,
.content-hub .btn-yellow:focus,
.content-hub .btn-yellow:active,
.content-hub .btn-outline:hover,
.content-hub .btn-outline:focus,
.content-hub .btn-outline:active {
  color: var(--hub-ink);
}

.content-hub .btn-yellow,
.content-hub .btn-outline {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}

/* .btn-outline was written for links; reset native/theme button styling so
   button.btn-outline (e.g. the Load more control) matches the anchor look. */
.content-hub button.btn-outline {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid #282828;
  color: var(--hub-ink);
  cursor: pointer;
}

.content-hub .btn-yellow:hover,
.content-hub .btn-yellow:focus,
.content-hub .btn-outline:hover,
.content-hub .btn-outline:focus,
.content-hub .hub-topic-pill:hover,
.content-hub .hub-topic-pill:focus-visible {
  box-shadow: none;
}

.content-hub .btn-yellow,
.content-hub .btn-outline {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.content-hub .btn-yellow:hover {
  background-color: #fce285;
}

.content-hub .btn-outline:hover {
  background-color: var(--hub-yellow);
}

/* The global .btn-outline clamps to 80px on small screens; hub CTAs need the full label */
@media (max-width: 545px) {
  .content-hub .btn-outline {
    max-width: none;
    padding: 8px 28px;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.content-hub .hub-hero {
  margin-top: -12px;
}

.hub-hero .custom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hub-hero h1 {
  font-size: 50px;
  line-height: 1.2;
  margin-bottom: 0;
}

.hub-hero p {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: #555;
  max-width: 560px;
  margin: 0;
}

.hub-hero__media {
  width: 100%;
  max-width: 712px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(40, 40, 40, 0.16);
}

.hub-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-hero__media--placeholder {
  background: var(--hub-cream);
  box-shadow: none;
}

@media (max-width: 767px) {
  .content-hub .hub-hero {
    margin-top: 0;
  }

  .hub-hero .custom-container {
    gap: 16px;
  }

  .hub-hero h1 {
    font-size: 34px;
  }

  .hub-hero p {
    font-size: 15px;
  }

  .hub-hero__media {
    border-radius: 14px;
  }
}

/* ── Age selector ──────────────────────────────────────────────────────── */

.hub-age-selector .custom-container {
  background: var(--hub-cream);
  border-radius: 24px;
  width: calc(100% - 32px);
  padding: 40px 45px;
  text-align: center;
}

.hub-age-selector__title {
  font-size: 22px;
  margin-bottom: 4px;
}

.hub-age-selector__subtitle {
  font-size: 14px;
  color: var(--hub-ink);
  opacity: 0.7;
  margin-bottom: 24px;
}

.hub-age-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hub-age-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 34px;
  border: 1px solid var(--hub-border);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  color: var(--hub-ink);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-age-pill:hover,
.hub-age-pill:focus-visible {
  background: var(--hub-yellow);
  border-color: var(--hub-tan);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
  transform: translateY(-1px);
}

.hub-age-pill.active {
  background: var(--hub-yellow);
  border-color: var(--hub-tan);
}

.hub-age-pill__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.hub-age-pill__sub {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--hub-muted);
}

.hub-age-pill.active .hub-age-pill__sub {
  color: var(--hub-ink);
  opacity: 0.7;
}

/* Scroll arrows are mobile-only (shown via media query below). */
.hub-age-pills__arrow { display: none; }

@media (max-width: 767px) {
  .hub-age-selector .custom-container {
    padding: 27px 21px;
  }

  /* Mirrors the essential-reading carousel: a relatively-positioned wrap with
     edge gradient fades + arrow buttons that sit in the side gutter (the track
     reserves padding so pills never slide under the arrows). */
  .hub-age-pills-wrap {
    position: relative;
    margin-inline: -16px;
    isolation: isolate;
  }

  .hub-age-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 4px 48px 4px 16px;
    gap: 8px;
  }

  .hub-age-pills::-webkit-scrollbar {
    display: none;
  }

  /* Edge fades, shown only when there is more to scroll in that direction. */
  .hub-age-pills-wrap::before,
  .hub-age-pills-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .hub-age-pills-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--hub-cream), transparent);
  }

  .hub-age-pills-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--hub-cream), transparent);
  }

  .hub-age-pills-wrap.can-scroll-left::before,
  .hub-age-pills-wrap.can-scroll-right::after {
    opacity: 1;
  }

  .hub-age-pills__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--hub-border);
    background: #fff;
    color: var(--hub-ink);
    box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
    transition: background-color 0.2s ease;
    cursor: pointer;
  }

  .hub-age-pills__arrow:hover {
    background: var(--hub-yellow);
  }

  .hub-age-pills__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .hub-age-pills__arrow--prev { left: 4px; }
  .hub-age-pills__arrow--next { right: 4px; }

  .hub-age-pills-wrap.can-scroll-left .hub-age-pills__arrow--prev,
  .hub-age-pills-wrap.can-scroll-right .hub-age-pills__arrow--next {
    display: flex;
  }

  .hub-age-pill {
    flex-shrink: 0;
    min-height: 44px;
    padding: 7px 14px;
  }
}

/* ── Article grid ──────────────────────────────────────────────────────── */

#hub-section-heading {
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 28px;
}

#hub-section-heading .hub-age-label {
  background: var(--hub-yellow);
  border-radius: 4px;
  padding: 0 8px;
  white-space: nowrap;
  text-transform: lowercase;
}

@media (max-width: 767px) {
  #hub-section-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

.hub-topic-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.hub-topic-pill {
  padding: 7px 16px;
  border-radius: 34px;
  border: 1px solid var(--hub-border);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--hub-ink);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-topic-pill:hover,
.hub-topic-pill:focus-visible {
  background: var(--hub-yellow);
  border-color: var(--hub-tan);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.16);
  transform: translateY(-1px);
}

.hub-topic-pill.active {
  background: var(--hub-yellow);
  border-color: var(--hub-tan);
}

/* Scroll arrows are mobile-only (shown via media query below). */
.hub-topic-pills__arrow { display: none; }

@media (max-width: 767px) {
  /* Same scroll-arrow pattern as the age pills above. */
  .hub-topic-pills-wrap {
    position: relative;
    margin-inline: -16px;
    margin-bottom: 28px;
    isolation: isolate;
  }

  .hub-topic-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 4px 48px 4px 16px;
    margin-bottom: 0;
  }

  .hub-topic-pills::-webkit-scrollbar {
    display: none;
  }

  .hub-topic-pill {
    flex-shrink: 0;
  }

  .hub-topic-pills-wrap::before,
  .hub-topic-pills-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .hub-topic-pills-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--hub-cream), transparent);
  }

  .hub-topic-pills-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--hub-cream), transparent);
  }

  .hub-topic-pills-wrap.can-scroll-left::before,
  .hub-topic-pills-wrap.can-scroll-right::after {
    opacity: 1;
  }

  .hub-topic-pills__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--hub-border);
    background: #fff;
    color: var(--hub-ink);
    box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
    transition: background-color 0.2s ease;
    cursor: pointer;
  }

  .hub-topic-pills__arrow:hover {
    background: var(--hub-yellow);
  }

  .hub-topic-pills__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .hub-topic-pills__arrow--prev { left: 4px; }
  .hub-topic-pills__arrow--next { right: 4px; }

  .hub-topic-pills-wrap.can-scroll-left .hub-topic-pills__arrow--prev,
  .hub-topic-pills-wrap.can-scroll-right .hub-topic-pills__arrow--next {
    display: flex;
  }
}

.hub-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: opacity 0.2s ease;
}

.hub-articles-grid[data-loading] {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hub-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 639px) {
  .hub-articles-grid {
    grid-template-columns: 1fr;
  }
}

.hub-article-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(40, 40, 40, 0.08);
  color: var(--hub-ink);
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hub-article-card:hover,
.hub-article-card:focus {
  color: var(--hub-ink);
  box-shadow: 0 8px 32px -8px rgba(40, 40, 40, 0.2);
  transform: translateY(-2px);
}

.hub-article-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.content-hub .hub-article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
  will-change: transform;
}

.content-hub .hub-article-card:hover .hub-article-card__img {
  transform: scale(1.04);
}

.hub-article-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
}

.hub-article-card__meta {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.0125em;
  color: var(--hub-muted);
}

.hub-article-card__title {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.0125em;
  margin: 0;
}

.hub-article-card__author {
  font-size: 12px;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.0125em;
  color: var(--hub-muted);
  margin: 0;
}

/* Mobile: compact horizontal cards (per prototype) */
@media (max-width: 639px) {
  .hub-article-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 14px;
  }

  .hub-article-card__media {
    flex-shrink: 0;
    width: 110px;
    aspect-ratio: 1 / 1;
  }

  .hub-article-card__body {
    justify-content: center;
    padding: 12px 16px;
  }

  .hub-article-card__title {
    font-size: 15px;
  }
}

.hub-articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  color: var(--hub-muted);
  padding-block: 40px;
}

.hub-see-all-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ── Ask us anything ───────────────────────────────────────────────────── */

.hub-ask__panel {
  background: var(--hub-cream);
  border-radius: 24px;
  padding: 56px 48px;
}

/* Flex (not a 3-col grid) so any question count — including one — stays centered */
.hub-ask__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 28px;
}

.hub-ask__chip {
  flex: 0 1 282px;
  text-align: left;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--hub-tan);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--hub-ink);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-ask__chip:hover,
.hub-ask__chip:focus {
  border-color: var(--hub-tan);
  background: var(--hub-yellow);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.15);
  transform: translateY(-1px);
}

.hub-ask__chip.active {
  background: var(--hub-yellow);
  border-color: var(--hub-tan);
}

.hub-ask__form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.hub-ask__form input {
  flex: 1;
  min-width: 0;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid var(--hub-border);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--hub-ink);
  outline: none;
}

.hub-ask__form input:focus {
  border-color: var(--hub-ink);
}

.hub-ask__form input::placeholder {
  color: var(--hub-muted);
}

@media (max-width: 1023px) {
  .hub-ask__chips {
    gap: 10px;
  }

  .hub-ask__chip {
    flex-basis: 100%;
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .hub-ask__panel {
    padding: 30px 21px;
  }

  .hub-ask__form {
    flex-direction: column;
  }

  .hub-ask__form .btn-yellow {
    width: 100%;
    text-align: center;
  }
}

/* ── Tools and Guides ──────────────────────────────────────────────────── */

.hub-tools__carousel {
  position: relative;
  max-width: calc(100vw - 32px);
  margin-inline: auto;
  padding-inline: 54px;
}

.hub-tools__grid {
  display: flex;
  align-items: stretch;
  gap: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-block: 4px 10px;
}

.hub-tools__grid::-webkit-scrollbar {
  display: none;
}

.hub-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 300px;
  width: 300px;
  min-height: 214px;
  gap: 12px;
  text-align: left;
  padding: 16px 24px 24px;
  scroll-snap-align: start;
  border-radius: 18px;
  border: 1px solid rgba(40, 40, 40, 0.12);
  background: #fff;
  color: var(--hub-ink);
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hub-tool-card:hover,
.hub-tool-card:focus {
  color: var(--hub-ink);
  border-color: var(--hub-ink);
  box-shadow: 0 8px 32px -8px rgba(40, 40, 40, 0.16);
  transform: translateY(-2px);
}

.hub-tool-card__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 34px;
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.hub-tool-card--toolkit .hub-tool-card__type {
  background: var(--hub-yellow);
}

.hub-tool-card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.hub-tool-card__ext {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 2px;
  color: var(--hub-muted);
}

.hub-tool-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--hub-ink);
  opacity: 0.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-tool-card small {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  font-style: italic;
  line-height: 1.35;
  color: var(--hub-muted);
}

/* ── Tool card with image ──────────────────────────────────────────────── */

.hub-tool-card--has-image {
  flex-basis: 360px;
  width: 360px;
  min-height: 364px;
  padding: 0;
  overflow: hidden;
}

.hub-tool-card__image {
  position: relative;
  width: 100%;
  height: 218px;
  overflow: hidden;
}

.hub-tool-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hub-tool-card:hover .hub-tool-card__image img,
.hub-tool-card:focus .hub-tool-card__image img {
  transform: scale(1.06);
}

.hub-tool-card--has-image .hub-tool-card__type {
  position: absolute;
  top: 16px;
  left: 24px;
}

.hub-tool-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  flex: 1;
}

.hub-tool-card--has-image .hub-tool-card__body h3 {
  font-size: 18px;
  line-height: 1.25;
}

.hub-tools__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hub-border);
  background: #fff;
  color: var(--hub-ink);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hub-tools__arrow:hover,
.hub-tools__arrow:focus {
  background: var(--hub-yellow);
  color: var(--hub-ink);
  transform: translateY(calc(-50% - 1px));
}

.hub-tools__arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hub-tools__prev {
  left: 4px;
}

.hub-tools__next {
  right: 4px;
}

@media (min-width: 1200px) {
  .hub-tools__carousel {
    max-width: 1230px;
  }
}

@media (max-width: 767px) {
  .hub-tools__carousel {
    max-width: 100%;
    padding-inline: 0;
  }

  .hub-tools__grid {
    gap: 16px;
    padding-inline: 18px;
  }

  .hub-tool-card {
    flex-basis: clamp(240px, 72vw, 300px);
    width: clamp(240px, 72vw, 300px);
    min-height: 196px;
    padding: 16px 20px 22px;
  }

  .hub-tool-card--has-image {
    flex-basis: clamp(268px, 82vw, 330px);
    width: clamp(268px, 82vw, 330px);
    min-height: 338px;
    padding: 0;
  }

  .hub-tool-card__image {
    height: 190px;
  }

  .hub-tool-card__body {
    padding: 16px 20px 20px;
  }

  .hub-tools__arrow {
    display: none;
  }
}

/* ── Other content areas ───────────────────────────────────────────────── */

@property --hub-ring-progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ── Essential Reading carousel ────────────────────────────────────────── */

.hub-essential-reading {
  padding: 56px 0;
  background: var(--hub-cream);
}

.hub-essential-reading__title {
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 32px;
}

.hub-essential-reading__carousel-wrap {
  position: relative;
  /* Creates a stacking context so ::before/::after gradients (z-index:1)
     and arrow buttons (z-index:2) are ordered within this element only. */
  isolation: isolate;
}

/* Gradient fades on both edges */
.hub-essential-reading__carousel-wrap::before,
.hub-essential-reading__carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.hub-essential-reading__carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--hub-cream), transparent);
}

.hub-essential-reading__carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--hub-cream), transparent);
}

.hub-essential-reading__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 4px 60px 16px;
}

.hub-essential-reading__track::-webkit-scrollbar {
  display: none;
}

.hub-essential-reading__item {
  flex-shrink: 0;
  width: 300px;
}

.hub-essential-reading__item .hub-article-card {
  height: 100%;
}

.hub-essential-reading__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hub-border);
  background: #fff;
  color: var(--hub-ink);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
  transition: background-color 0.2s ease;
}

.hub-essential-reading__arrow:hover {
  background: var(--hub-yellow);
}

.hub-essential-reading__arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hub-essential-reading__prev { left: 16px; }
.hub-essential-reading__next { right: 16px; }

@media (max-width: 767px) {
  .hub-essential-reading {
    padding: 40px 0;
  }

  .hub-essential-reading__title {
    font-size: 24px;
  }

  .hub-essential-reading__item {
    width: 260px;
  }

  .hub-essential-reading__arrow {
    display: none;
  }
}

/* ── Other hubs ────────────────────────────────────────────────────────── */

.hub-other-hubs {
  text-align: center;
}

.hub-other-hubs__carousel {
  position: relative;
  max-width: calc(1178px + 32px);
  margin-inline: auto;
  padding-inline: 16px;
}

.hub-other-hubs__track {
  display: flex;
  align-items: center;
  gap: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-block: 8px;
}

.hub-other-hubs__track::-webkit-scrollbar {
  display: none;
}

.hub-other-hubs__circle {
  --hub-ring-progress: 0deg;

  position: relative;
  isolation: isolate;
  width: 153.5px;
  height: 153.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-color: var(--background, var(--hub-cream));
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: var(--hub-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-other-hubs__circle::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    rgba(40, 40, 40, 0.22) 0 var(--hub-ring-progress),
    transparent var(--hub-ring-progress) calc(360deg - var(--hub-ring-progress)),
    rgba(40, 40, 40, 0.22) calc(360deg - var(--hub-ring-progress)) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  transition: --hub-ring-progress 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease;
}

.hub-other-hubs__circle:hover,
.hub-other-hubs__circle:focus {
  color: var(--hub-ink);
  border-color: transparent;
  box-shadow:
    0 8px 24px -16px rgba(40, 40, 40, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.62);
}

.hub-other-hubs__circle:hover::before,
.hub-other-hubs__circle:focus::before,
.hub-other-hubs__circle.is-current::before {
  --hub-ring-progress: 180deg;
  opacity: 1;
}

.hub-other-hubs__circle.is-current {
  border-color: transparent;
  box-shadow:
    0 8px 24px -16px rgba(40, 40, 40, 0.28),
    0 0 0 8px rgba(255, 255, 255, 0.62);
}

.hub-other-hubs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hub-border);
  background: #fff;
  color: var(--hub-ink);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
  transition: background-color 0.2s ease;
}

.hub-other-hubs__arrow:hover {
  background: var(--hub-yellow);
}

.hub-other-hubs__arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hub-other-hubs__prev {
  left: 4px;
}

.hub-other-hubs__next {
  right: 4px;
}

.hub-other-hubs__hint {
  font-size: 12px;
  color: var(--hub-muted);
  margin-top: 12px;
}

.hub-other-hubs__cta {
  margin-top: 28px;
}

@media (max-width: 767px) {
  .hub-other-hubs__circle {
    width: 110px;
    height: 110px;
    padding: 15px 10px;
    font-size: 12px;
  }

  .hub-other-hubs__arrow {
    display: none;
  }
}

/* ── Newsletter ────────────────────────────────────────────────────────── */

.hub-newsletter .custom-container {
  background: var(--hub-cream);
  border-radius: 24px;
  width: calc(100% - 32px);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 64px 24px;
}

.hub-newsletter__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(40, 40, 40, 0.1);
  gap: 3px;
}

.hub-newsletter__tab {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(40, 40, 40, 0.62);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 22px;
  min-width: 118px;
  box-shadow: none;
}

.hub-newsletter__tab--active {
  background: #fff;
  color: var(--hub-ink);
  box-shadow: 0 2px 8px rgba(40, 40, 40, 0.12);
}

.hub-newsletter__card {
  max-width: 580px;
  margin-inline: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px -4px rgba(40, 40, 40, 0.12);
  padding: 48px 40px;
  text-align: center;
}

.hub-newsletter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hub-yellow);
  color: var(--hub-ink);
  margin-bottom: 18px;
}

.hub-newsletter h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hub-newsletter__tagline {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--hub-ink);
  opacity: 0.75;
  margin-bottom: 16px;
}

.hub-newsletter__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--hub-ink);
  max-width: 440px;
  margin: 0 auto 24px;
}

.hub-newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin-inline: auto;
}

.hub-newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--hub-border);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--hub-ink);
  outline: none;
  background: #fff;
}

.hub-newsletter__form input:focus {
  border-color: var(--hub-ink);
}

.hub-newsletter__form input::placeholder {
  color: var(--hub-muted);
}

.hub-newsletter__form .btn-yellow,
.hub-newsletter__profile-link {
  font-size: 14px;
  line-height: 1.3;
  padding: 10px 30px;
  min-width: 0;
}

.hub-newsletter__card--subscribed .hub-newsletter__icon {
  background: var(--hub-yellow);
}

.hub-newsletter__card--subscribed .hub-newsletter__desc {
  margin-bottom: 24px;
}

.hub-newsletter__profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hub-newsletter .custom-container {
    padding: 30px 16px;
  }

  .hub-newsletter__tabs {
    width: 100%;
    margin-bottom: 18px;
    overflow-x: auto;
    justify-content: center;
  }

  .hub-newsletter__tab {
    font-size: 14px;
    min-width: 0;
    padding: 9px 18px;
  }

  .hub-newsletter__card {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
  }

  .hub-newsletter h2 {
    font-size: 24px;
  }

  .hub-newsletter__tagline {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hub-newsletter__desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hub-newsletter__form {
    flex-direction: column;
  }

  .hub-newsletter__form input {
    width: 100%;
    font-size: 15px;
  }

  .hub-newsletter__form .btn-yellow {
    width: 100%;
    text-align: center;
  }

  .hub-newsletter__profile-link {
    width: 100%;
    font-size: 14px;
  }
}

/* ── Instagram ─────────────────────────────────────────────────────────── */

.hub-instagram .custom-container > h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hub-instagram__carousel {
  position: relative;
  max-width: 890px;
  margin-inline: auto;
  padding-inline: 50px;
  overflow: hidden;
}

.hub-instagram__grid {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-block: 4px 8px;
}

.hub-instagram__grid::-webkit-scrollbar {
  display: none;
}

.hub-instagram__reel {
  display: block;
  width: 240px;
  flex: 0 0 240px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--hub-ink);
}

.hub-instagram__arrow {
  position: absolute;
  top: 120px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hub-border);
  background: #fff;
  color: var(--hub-ink);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hub-instagram__arrow:hover,
.hub-instagram__arrow:focus {
  background: var(--hub-yellow);
  color: var(--hub-ink);
  transform: translateY(-1px);
}

.hub-instagram__prev {
  left: 0;
}

.hub-instagram__next {
  right: 0;
}

@media (max-width: 900px) {
  .hub-instagram .custom-container > h2 {
    gap: 10px;
    font-size: 30px;
  }

  .hub-instagram .custom-container > h2 svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }

  .hub-instagram__intro {
    max-width: 520px;
    margin-bottom: 28px;
    padding-inline: 18px;
    font-size: 16px;
  }

  .hub-instagram__carousel {
    padding-inline: 0;
  }

  .hub-instagram__grid {
    gap: 18px;
    padding-inline: 18px;
  }

  .hub-instagram__reel {
    width: clamp(200px, 58vw, 230px);
    flex: 0 0 clamp(200px, 58vw, 230px);
  }

  .hub-instagram__arrow {
    display: none;
  }
}

@media (max-width: 545px) {
  .hub-instagram .custom-container > h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  .hub-instagram__intro {
    font-size: 15px;
    line-height: 1.35;
  }

  .hub-instagram__reel {
    width: clamp(190px, 62vw, 220px);
    flex-basis: clamp(190px, 62vw, 220px);
  }

}

.hub-instagram__reel:hover,
.hub-instagram__reel:focus {
  color: var(--hub-ink);
}

.hub-instagram__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--hub-cream);
  box-shadow: 0 4px 16px -4px rgba(40, 40, 40, 0.12);
}

.hub-instagram__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
  will-change: transform;
}

.hub-instagram__reel:hover .hub-instagram__media img {
  transform: scale(1.04);
}

.hub-instagram__open-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hub-ink);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.hub-instagram__open-icon svg {
  width: 15px;
  height: 15px;
}

.hub-instagram__reel:hover .hub-instagram__open-icon,
.hub-instagram__reel:focus .hub-instagram__open-icon {
  opacity: 1;
  background: #fff;
  transform: translateY(0);
}

@media (max-width: 545px) {
  .hub-instagram__open-icon {
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
  }

  .hub-instagram__open-icon svg {
    width: 13px;
    height: 13px;
  }
}

.hub-instagram__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.hub-instagram__reel:hover .hub-instagram__overlay {
  background: rgba(0, 0, 0, 0.35);
}

.hub-instagram__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hub-ink);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hub-instagram__play svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
}

.hub-instagram__reel:hover .hub-instagram__play {
  transform: scale(1.1);
}

@media (max-width: 545px) {
  .hub-instagram__play {
    width: 38px;
    height: 38px;
  }

  .hub-instagram__play svg {
    width: 15px;
    height: 15px;
  }
}

.hub-instagram__title {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.hub-instagram__cta {
  text-align: center;
  margin-top: 40px;
}

.hub-instagram__view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hub-instagram__view-all svg {
  width: 18px;
  height: 18px;
}

/* ── Milestone Tracker (Milestones & Development hub only) ───────────────── */
.hub-mt {
  margin-block: 75px;
}

.hub-mt .custom-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Age slider */
.hub-mt-slider {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  border-radius: 24px;
  padding: 28px 32px 34px;
}

.hub-mt-slider__head {
  text-align: center;
}

.hub-mt-slider__title {
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--hub-ink);
}

.hub-mt-slider__sub {
  font-size: 14px;
  color: var(--hub-muted);
  margin-top: 2px;
}

.hub-mt-slider__value {
  text-align: center;
}

.hub-mt-slider__age {
  font-family: "Lora", serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--hub-ink);
}

.hub-mt-slider__stage {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-ink);
  background: var(--hub-yellow);
  padding: 2px 12px;
  border-radius: 20px;
}

.hub-mt-slider__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--hub-tan);
  outline: none;
}

.hub-mt-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hub-ink);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(40, 40, 40, 0.3);
  cursor: pointer;
}

.hub-mt-slider__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hub-ink);
  border: 3px solid #fff;
  cursor: pointer;
}

.hub-mt-slider__ticks {
  position: relative;
  height: 14px;
  font-size: 10px;
  color: var(--hub-muted);
}

.hub-mt-slider__ticks span {
  position: absolute;
  transform: translateX(-50%);
}

/* Heading */
.hub-mt-heading {
  text-align: center;
}

.hub-mt-heading__title {
  font-family: "Lora", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--hub-ink);
}

.hub-mt-heading__sub {
  font-size: 15px;
  color: var(--hub-muted);
  max-width: 540px;
  margin: 10px auto 0;
  line-height: 1.5;
}

.hub-mt-notice {
  font-size: 13px;
  color: var(--hub-ink);
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  border-radius: 10px;
  padding: 10px 16px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* Domain tabs */
.hub-mt-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.hub-mt-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid var(--hub-border);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--hub-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.hub-mt-tab:hover {
  color: var(--hub-ink);
  border-color: rgba(40, 40, 40, 0.4);
}

.hub-mt-tab.active {
  background: var(--hub-ink);
  color: #fff;
  border-color: var(--hub-ink);
}

.hub-mt-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hub-mt-tab.active .hub-mt-tab__dot {
  background: rgba(255, 255, 255, 0.7) !important;
}

.hub-mt-tab__count {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.65;
}

/* Pill strip */
.hub-mt-pills-wrap {
  position: relative;
}

.hub-mt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hub-mt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--hub-border);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hub-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-mt-pill:hover {
  border-color: rgba(40, 40, 40, 0.4);
  box-shadow: 0 2px 8px -2px rgba(40, 40, 40, 0.2);
}

.hub-mt-pill__icon {
  font-size: 15px;
}

/* Selected milestone info */
.hub-mt-info {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.hub-mt-info__title {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--hub-ink);
}

.hub-mt-info__desc {
  font-size: 14px;
  color: var(--hub-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.hub-mt-info__note {
  font-size: 12px;
  font-style: italic;
  color: var(--hub-muted);
  margin-top: 8px;
}

/* Chart */
.hub-mt-chart {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hub-border);
  border-radius: 16px;
  padding: 16px 16px 8px;
}

.hub-mt-chart__svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  overflow: visible;
}

.hub-mt-grid {
  stroke: rgba(40, 40, 40, 0.08);
  stroke-width: 1;
}

.hub-mt-axis {
  fill: var(--hub-muted);
  font-size: 11px;
  font-family: "DM Sans", sans-serif;
}

.hub-mt-area {
  fill: rgba(95, 182, 220, 0.22);
}

.hub-mt-line {
  fill: none;
  stroke: #5fb6dc;
  stroke-width: 2;
}

.hub-mt-ref {
  stroke: var(--hub-ink);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.hub-mt-ref-label {
  fill: var(--hub-ink);
  font-size: 11px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

/* Hover crosshair */
.hub-mt-hover-line {
  stroke: rgba(40, 40, 40, 0.3);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.hub-mt-hover-dot {
  fill: #5fb6dc;
  stroke: #fff;
  stroke-width: 2;
  pointer-events: none;
}

/* Hover tooltip (SVG foreignObject) */
.hub-mt-tooltip-bg {
  fill: #282828;
  stroke: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

.hub-mt-tooltip-age {
  fill: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

.hub-mt-tooltip-pct {
  fill: rgba(255,255,255,.72);
  font-size: 11px;
  font-family: "DM Sans", sans-serif;
}

/* Range legend */
.hub-mt-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--hub-muted);
}

.hub-mt-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hub-mt-legend__sw {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.hub-mt-legend__sw--early {
  background: rgba(95, 182, 200, 0.45);
}

.hub-mt-legend__sw--typical {
  background: #6bbfcc;
}

.hub-mt-legend__sw--late {
  background: rgba(40, 40, 40, 0.22);
}

/* Sources button */
.hub-mt-sources {
  margin-top: 24px;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
}

.hub-mt-sources__toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--hub-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.hub-mt-sources__toggle:hover,
.hub-mt-sources__toggle:focus {
  background: transparent;
  border-color: transparent;
  color: var(--hub-ink);
  box-shadow: none;
  outline: none;
}

.hub-mt-sources__panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  font-size: 13px;
  line-height: 1.55;
  color: var(--hub-ink);
  text-align: left;
  z-index: 10;
}

.hub-mt-sources__head {
  font-weight: 600;
  color: var(--hub-ink);
  margin-bottom: 8px;
}

.hub-mt-sources__list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--hub-ink);
}

.hub-mt-sources__list a {
  color: var(--hub-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-mt-sources__list a:hover {
  opacity: 0.7;
}

.hub-mt-sources__note {
  font-size: 11px;
  font-style: italic;
  color: var(--hub-muted);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--hub-border);
}

/* Checkpoint card */
.hub-mt-checkpoint {
  width: 100%;
}

.hub-mt-cp {
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(40,40,40,.06);
}

.hub-mt-cp__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hub-muted);
  margin-bottom: 6px;
}

.hub-mt-cp__age {
  font-family: "Lora", serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--hub-ink);
  line-height: 1.1;
}

.hub-mt-cp__note {
  font-size: 14px;
  color: var(--hub-muted);
  margin: 8px 0 12px;
}

.hub-mt-cp__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hub-muted);
}

.hub-mt-cp__src {
  color: var(--hub-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-mt-cp__src:hover {
  opacity: .7;
}

/* Domain grid */
.hub-mt-domains {
  width: 100%;
}

.hub-mt-domain-grid {
  display: grid;
  grid-template-areas:
    "social    cognitive"
    "language  movement";
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  align-items: start;
}

@media (max-width: 600px) {
  .hub-mt-domain-grid {
    grid-template-areas:
      "social"
      "language"
      "cognitive"
      "movement";
    grid-template-columns: 1fr;
  }
}

.hub-mt-domain {
  margin: 0 !important;
  padding: 0 !important;
}

.hub-mt-domain--social    { grid-area: social; }
.hub-mt-domain--language  { grid-area: language; }
.hub-mt-domain--cognitive { grid-area: cognitive; }
.hub-mt-domain--movement  { grid-area: movement; }

.hub-mt-domain__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hub-mt-domain__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hub-mt-domain__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--hub-ink);
  margin: 0;
}

.hub-mt-domain__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-mt-domain__list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--hub-ink);
  line-height: 1.5;
  margin: 0 !important;
  padding: 0 !important;
}

.hub-mt-domain__list li::before {
  content: '•';
  color: var(--hub-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.hub-mt-domain__list li::after {
  display: none;
}

/* Disclaimer */
.hub-mt-disclaimer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hub-mt-disclaimer__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--hub-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color .15s;
}

.hub-mt-disclaimer__btn:hover,
.hub-mt-disclaimer__btn:focus {
  color: var(--hub-ink);
}

.hub-mt-disclaimer__icon {
  flex-shrink: 0;
}

.hub-mt-disclaimer__panel {
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hub-ink);
}

.hub-mt-disclaimer__panel p {
  margin: 0;
}

.hub-mt-disclaimer__panel p + p {
  margin-top: 8px;
}

.hub-mt-disclaimer__source {
  font-size: 11px;
  color: var(--hub-muted);
  font-style: italic;
}

/* Empty state */
.hub-mt-empty {
  text-align: center;
  padding: 32px 16px;
}

.hub-mt-empty__icon {
  font-size: 36px;
}

.hub-mt-empty h4 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 8px;
}

.hub-mt-empty p {
  font-size: 14px;
  color: var(--hub-muted);
}

/* ==========================================================================
   Hub Guide System — visual design (rebuild June 2026)
   Matches ParentData brand: yellow #fdeda9 fills + #282828 ink outlines,
   cream #fef7d8 tints, tan #e5dcb5 borders, Lora headings + DM Sans body.
   Tokens scoped to .hub-guide-modal cascade to all injected guide content.
   ========================================================================== */

.hub-guide-modal {
  --g-ink:          #282828;
  --g-ink-soft:     #555555;
  --g-muted:        #9c9c9c;
  --g-line:         #efe7cf;
  --g-line-strong:  #e5dcb5;
  --g-surface:      #ffffff;
  --g-cream:        #fef7d8;
  --g-cream-deep:   #faf1cf;
  --g-yellow:       #fdeda9;
  --g-yellow-deep:  #fce285;
  --g-yellow-line:  #e9d488;
  --g-gold:         #f3c84b;
  --g-accent-ink:   #8a6a0e;
  --g-green:        #4f9d69;
  --g-green-bg:     #eef6f0;
  --g-rose:         #c4744a;
  --g-rose-bg:      #f7ece3;
  --g-radius-xl:    20px;
  --g-radius-lg:    14px;
  --g-radius-md:    12px;
  --g-shadow:       0 24px 60px -28px rgba(40, 40, 40, .42), 0 8px 22px -14px rgba(40, 40, 40, .2);
  --g-shadow-card:  0 8px 20px -14px rgba(40, 40, 40, .26);
  --g-font-head:    'Lora', Georgia, serif;
  --g-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--g-font-body);
  color: var(--g-ink);
}

/* Neutralize the parent theme's bare <button> styling — it flips label text
   to #fff and adds an inset glow on hover/focus, which made guide labels and
   the close × vanish on hover. ID selector keeps this above the theme rule. */
#hub-guide-modal button:hover,
#hub-guide-modal button:focus,
#hub-guide-modal button:active {
  color: var(--g-ink);
  box-shadow: none;
}

/* ── Modal shell ──────────────────────────────────────────────────────────── */

.hub-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.hub-guide-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hub-guide-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hub-guide-modal.is-open .hub-guide-modal__overlay {
  animation: pdGuideFadeIn .22s ease both;
}

.hub-guide-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  background: var(--g-surface);
  border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow);
  overflow: hidden;
}
.hub-guide-modal.is-open .hub-guide-modal__panel {
  animation: pdGuidePanelIn .28s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes pdGuideFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pdGuidePanelIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.hub-guide-modal__panel.is-wide {
  max-width: 860px;
}

.hub-guide-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--g-line);
  flex: 0 0 auto;
}
.hub-guide-modal__title {
  margin: 0;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--g-ink);
}
.hub-guide-modal__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;       /* no circle/border by default — just the × */
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.hub-guide-modal__close svg { display: block; }
.hub-guide-modal__close:hover {
  background: var(--g-cream);
  color: var(--g-ink);
}
.hub-guide-modal__close:focus { outline: none; }
.hub-guide-modal__close:focus-visible {
  outline: 2px solid var(--g-ink);
  outline-offset: 2px;
}

.hub-guide-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 24px 26px;
}
.hub-guide-modal__body::-webkit-scrollbar { width: 9px; }
.hub-guide-modal__body::-webkit-scrollbar-thumb {
  background: var(--g-line-strong);
  border-radius: 100px;
  border: 3px solid var(--g-surface);
}

@media (max-width: 600px) {
  .hub-guide-modal.is-open { padding: 0; align-items: flex-end; }
  .hub-guide-modal__panel {
    max-width: none;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .hub-guide-modal__header { padding: 14px 18px; }
  .hub-guide-modal__body { padding: 18px 18px 24px; }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.hub-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .1s;
}
.hub-guide-btn--primary {
  background: var(--g-yellow);
  border-color: var(--g-ink);
  color: var(--g-ink);
}
.hub-guide-btn--primary:hover {
  background: var(--g-yellow-deep);
  transform: translateY(-1px);
}
.hub-guide-btn--primary:active { transform: translateY(0); }
.hub-guide-btn--outline {
  background: var(--g-surface);
  border-color: var(--g-line-strong);
  color: var(--g-ink);
}
.hub-guide-btn--outline:hover {
  border-color: var(--g-ink);
  background: var(--g-cream);
}
.hub-guide-btn.is-disabled,
.hub-guide-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */

.hub-guide-progress {
  height: 7px;
  background: var(--g-cream-deep);
  border-radius: 100px;
  overflow: hidden;
}
.hub-guide-progress__bar {
  height: 100%;
  width: var(--pct, 0%);
  border-radius: 100px;
  background: var(--g-gold);
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}
.hub-guide-progress__label {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--g-muted);
  text-align: right;
}

/* ── step_by_step ─────────────────────────────────────────────────────────── */

.hub-guide-step__progress { margin-bottom: 22px; }
.hub-guide-step__progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hub-guide-step__count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g-ink-soft);
}
.hub-guide-step__pct {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g-accent-ink);
}
.hub-guide-step__question {
  margin: 0 0 18px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  color: var(--g-ink);
}
.hub-guide-step__answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.hub-guide-answer {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hub-guide-answer::before {
  content: "";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--g-line-strong);
  background: var(--g-surface);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hub-guide-answer:hover {
  border-color: var(--g-ink);
  background: var(--g-cream);
}
.hub-guide-answer.is-selected {
  border-color: var(--g-ink);
  background: var(--g-yellow);
}
.hub-guide-answer.is-selected::before {
  border-color: var(--g-ink);
  background: var(--g-ink);
  box-shadow: inset 0 0 0 3.5px var(--g-yellow);
}
.hub-guide-step__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hub-guide-step__nav .hub-guide-step__next { flex: 1 1 auto; }
.hub-guide-step__nav .hub-guide-step__back { flex: 0 0 auto; }

/* ── Result layouts (shared) ──────────────────────────────────────────────── */

.hub-guide-result__header {
  text-align: center;
  margin-bottom: 20px;
}
.hub-guide-result__title {
  margin: 0;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  color: var(--g-ink);
}
.hub-guide-result__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--g-muted);
}
.hub-guide-result__desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--g-ink-soft);
}

/* highlight (recommendation_detailed method card) */
.hub-guide-result__highlight {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: var(--g-yellow);
  border: 1px solid var(--g-yellow-line);
  border-left: 4px solid var(--g-ink);
  border-radius: var(--g-radius-lg);
}
.hub-guide-result__method-name {
  margin: 0 0 7px;
  font-family: var(--g-font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--g-ink);
}
.hub-guide-result__highlight p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--g-ink-soft);
}

/* Section headings inside results */
.hub-guide-result__tips h4,
.hub-guide-result__articles h4,
.hub-guide-result__missing h4 {
  margin: 0 0 12px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--g-ink);
}

/* Tips */
.hub-guide-result__tips { margin-bottom: 22px; }
.hub-guide-result__tips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hub-guide-result__tips li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--g-ink-soft);
}
.hub-guide-result__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23282828' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hub-guide-result__tips li span { display: none; }

/* Disclaimer */
.hub-guide-result__disclaimer {
  margin: 20px 0 0;
  padding: 11px 15px;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
  color: var(--g-muted);
  background: var(--g-cream);
  border-radius: 10px;
}

/* Actions */
.hub-guide-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hub-guide-result__actions .hub-guide-btn { flex: 1 1 auto; }
.hub-guide-result__restart { margin-top: 20px; width: 100%; }
.hub-guide-result__actions .hub-guide-result__restart { margin-top: 0; width: auto; }

/* Pros / Cons */
.hub-guide-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.hub-guide-proscons__col {
  padding: 16px 18px;
  background: var(--g-cream);
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-lg);
}
.hub-guide-proscons__heading {
  margin: 0 0 11px;
  font-family: var(--g-font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hub-guide-proscons__heading--pros { color: var(--g-green); }
.hub-guide-proscons__heading--cons { color: var(--g-rose); }
.hub-guide-proscons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hub-guide-proscons__list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--g-ink-soft);
}
.hub-guide-proscons__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.hub-guide-proscons__icon--pro { background: var(--g-green); }
.hub-guide-proscons__icon--con { background: var(--g-rose); }

@media (max-width: 540px) {
  .hub-guide-proscons { grid-template-columns: 1fr; }
}

/* Score result (weighted checklist) */
.hub-guide-result--score .hub-guide-result__score-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}
.hub-guide-result__pct {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--g-accent-ink);
}
.hub-guide-status-icon {
  display: block;
  width: 52px;
  height: 52px;
  padding: 11px;
  border-radius: 50%;
}
.hub-guide-status-icon--ready     { color: var(--g-green); background: var(--g-green-bg); }
.hub-guide-status-icon--almost    { color: #b08a16; background: var(--g-yellow); }
.hub-guide-status-icon--not-ready { color: var(--g-rose);  background: var(--g-rose-bg); }

.hub-guide-result__missing {
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
}
.hub-guide-result__missing ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hub-guide-result__missing li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--g-ink-soft);
}
.hub-guide-result__missing li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--g-rose);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

/* ── Article cards (shared) ───────────────────────────────────────────────── */

.hub-guide-result__articles .hub-guide-article-card { margin-bottom: 10px; }
.hub-guide-article-card {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.hub-guide-article-card:hover {
  border-color: var(--g-ink);
  box-shadow: var(--g-shadow-card);
  transform: translateY(-1px);
}
.hub-guide-article-card__img {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  object-fit: cover;
}
.hub-guide-article-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 15px;
}
.hub-guide-article-card__title {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--g-ink);
}
.hub-guide-article-card__meta {
  font-size: 12px;
  color: var(--g-muted);
}

/* ── progress_checklist ───────────────────────────────────────────────────── */

.hub-guide-checklist .hub-guide-progress { margin-bottom: 0; }
.hub-guide-checklist .hub-guide-progress__label { margin-bottom: 18px; }

.hub-guide-checklist__section { margin-bottom: 18px; }
.hub-guide-checklist__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.hub-guide-checklist__section-label {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--g-ink);
}
.hub-guide-checklist__section-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--g-ink);
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  padding: 2px 9px;
  border-radius: 100px;
}

.hub-guide-checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 7px;
  border: 1.5px solid var(--g-line);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hub-guide-checklist__item:last-child { margin-bottom: 0; }
.hub-guide-checklist__item:hover {
  border-color: var(--g-ink);
  background: var(--g-cream);
}
.hub-guide-checklist__item-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--g-line-strong);
  color: transparent;
  background: var(--g-surface);
  transition: background .15s, border-color .15s, color .15s;
}
.hub-guide-checklist__item-text { flex: 1 1 auto; line-height: 1.4; }
.hub-guide-checklist__item.is-checked {
  border-color: var(--g-ink);
  background: var(--g-yellow);
}
.hub-guide-checklist__item.is-checked .hub-guide-checklist__item-icon {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: var(--g-yellow);
}
.hub-guide-checklist__item.is-checked .hub-guide-checklist__item-text {
  color: var(--g-ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--g-yellow-line);
}

.hub-guide-checklist__print-btn { margin-top: 16px; }

.hub-guide-share {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.hub-guide-share .hub-guide-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hub-guide-share .hub-guide-btn svg {
  flex-shrink: 0;
}

/* checklist tabs mode */
.hub-guide-checklist__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.hub-guide-checklist__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 100px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.hub-guide-checklist__tab:hover { border-color: var(--g-ink); }
.hub-guide-checklist__tab.is-active {
  background: var(--g-yellow);
  border-color: var(--g-ink);
  color: var(--g-ink);
}
.hub-guide-checklist__tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  background: var(--g-cream);
  color: var(--g-ink);
}
.hub-guide-checklist__tab.is-active .hub-guide-checklist__tab-count {
  background: rgba(40, 40, 40, .12);
}

/* ── weighted_checklist ───────────────────────────────────────────────────── */

.hub-guide-weighted .hub-guide-progress { margin-bottom: 0; }
.hub-guide-weighted .hub-guide-progress__label { margin-bottom: 16px; }
.hub-guide-weighted__intro {
  font-size: 13px;
  color: var(--g-muted);
  margin: 0 0 14px;
}
.hub-guide-weighted__signs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.hub-guide-weighted__signs .hub-guide-checklist__item { margin-bottom: 0; }
.hub-guide-weighted__sign-label {
  display: block;
  font-weight: 500;
}
.hub-guide-weighted__sign-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--g-muted);
  margin-top: 2px;
}
.hub-guide-weighted__critical-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--g-accent-ink);
  background: var(--g-cream);
  border-radius: 100px;
  vertical-align: middle;
}
.hub-guide-weighted__weight {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--g-muted);
  background: var(--g-cream);
  padding: 3px 9px;
  border-radius: 100px;
}
.hub-guide-weighted__submit { width: 100%; }

/* ── data_dashboard ───────────────────────────────────────────────────────── */

.hub-guide-dashboard__chart { margin-bottom: 26px; }
.hub-guide-dashboard__chart-title {
  margin: 0 0 5px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--g-ink);
}
.hub-guide-dashboard__chart-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-ink-soft);
}
.hub-guide-dashboard__iframe-wrap {
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
  overflow: hidden;
  background: var(--g-surface);
}
.hub-guide-dashboard__iframe-wrap iframe { display: block; }
.hub-guide-dashboard__footer {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--g-line);
}
.hub-guide-dashboard__source {
  margin: 0 0 11px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--g-muted);
}
.hub-guide-dashboard__article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--g-ink);
  text-decoration: underline;
  text-decoration-color: var(--g-yellow-line);
  text-underline-offset: 3px;
}
.hub-guide-dashboard__article-link:hover { text-decoration-color: var(--g-ink); }

/* ==========================================================================
   Custom templates — shared primitives
   ========================================================================== */

.hub-guide-custom { color: var(--g-ink); }

/* ── hub-calc (nutrition / education / college-savings / milk-formula / sleep) ── */

.hub-calc__intro { text-align: left; font-size: 14px; line-height: 1.55; color: var(--g-ink-soft); margin-bottom: 20px; }

/* Milk-formula specific layout */
.hub-calc__age-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hub-calc__age-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g-ink);
}
.hub-calc--milk-formula .hub-calc__age-display {
  display: inline;
  text-align: right;
  font-family: var(--g-font-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--g-ink);
  margin-bottom: 0;
}
.hub-calc__results-card {
  margin-top: 20px;
  padding: 18px;
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
}
.hub-calc__stage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--g-ink);
}
.hub-calc__stage-name {
  font-family: var(--g-font-head);
  font-size: 17px;
  font-weight: 500;
  color: var(--g-ink);
}
.hub-calc__results-card .hub-calc__stats { margin-bottom: 14px; }
.hub-calc__results-card .hub-calc__stat-value { font-size: 14px; font-weight: 600; font-family: var(--g-font-body); }
.hub-calc--milk-formula .hub-calc__stats { grid-template-columns: 1fr; }
.hub-calc--milk-formula .hub-calc__stat { text-align: left; }
.hub-calc__results-card .hub-calc__notes {
  display: block;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--g-ink-soft);
  background: none;
  border: none;
  border-radius: 0;
}
.hub-calc__info-box {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--g-ink-soft);
}
.hub-calc__info-box svg { flex-shrink: 0; margin-top: 1px; color: var(--g-ink-soft); }
.hub-calc__intro-heading,
.hub-calc__heading {
  margin: 0 0 9px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--g-ink);
}
.hub-calc__intro p,
.hub-calc__intro .hub-calc__sub {
  margin: 0 auto 20px;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--g-ink-soft);
}

/* Slider */
.hub-calc__slider-wrap { margin: 22px 0 20px; }
.hub-calc__age-display,
.hub-calc__slider-value-badge {
  display: block;
  text-align: center;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 24px;
  color: var(--g-ink);
  margin-bottom: 14px;
}
.hub-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 100px;
  background: var(--g-cream-deep);
  outline: none;
  cursor: pointer;
}
.hub-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--g-yellow);
  border: 2px solid var(--g-ink);
  cursor: pointer;
  transition: transform .12s;
}
.hub-calc__slider::-webkit-slider-thumb:hover { transform: scale(1.08); }
.hub-calc__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--g-yellow);
  border: 2px solid var(--g-ink);
  cursor: pointer;
}
.hub-calc__slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12px;
  color: var(--g-muted);
}

/* Fields / inputs */
.hub-calc__field-group,
.hub-calc__selector-group { margin-bottom: 16px; }
.hub-calc__field-label,
.hub-calc__selector-label,
.hub-calc__section-label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--g-ink-soft);
}
.hub-calc__field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}
.hub-calc__field-row:focus-within {
  border-color: var(--g-ink);
  box-shadow: 0 0 0 3px var(--g-yellow);
}
.hub-calc__field-prefix,
.hub-calc__field-unit { color: var(--g-muted); font-size: 14.5px; }
.hub-calc__number-input,
.hub-calc__field-row input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 0;
  font-family: var(--g-font-body);
  font-size: 15px;
  color: var(--g-ink);
}

/* Segmented type buttons / selector buttons */
.hub-calc__btn-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.hub-calc__type-btn,
.hub-calc__selector-btn {
  flex: 1 0 auto;
  max-width: calc(50% - 4px);
  padding: 11px 14px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.hub-calc__type-btn:hover,
.hub-calc__selector-btn:hover { border-color: var(--g-ink); }
.hub-calc__type-btn--active,
.hub-calc__selector-btn--active,
.hub-calc__selector-btn.is-selected,
.hub-calc__type-btn.is-active {
  border-color: var(--g-ink);
  background: var(--g-yellow);
  color: var(--g-ink);
}
.hub-calc__selector-btn { text-align: left; }

/* Calculator action buttons — yellow primary / outline, override site .btn-yellow */
.hub-guide-modal .hub-calc__cta-btn,
.hub-guide-modal .hub-calc__recalc-btn,
.hub-guide-modal .hub-calc__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin-top: 4px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--g-ink);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .1s;
}
.hub-guide-modal .hub-calc__cta-btn,
.hub-guide-modal .hub-calc__submit-btn {
  background: var(--g-yellow);
  color: var(--g-ink);
}
.hub-guide-modal .hub-calc__cta-btn:hover,
.hub-guide-modal .hub-calc__submit-btn:hover { background: var(--g-yellow-deep); transform: translateY(-1px); }
.hub-guide-modal .hub-calc__recalc-btn {
  background: var(--g-surface);
  border-color: var(--g-line-strong);
  color: var(--g-ink);
}
.hub-guide-modal .hub-calc__recalc-btn:hover { border-color: var(--g-ink); background: var(--g-cream); }
.hub-guide-modal .hub-calc__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1.5px solid var(--g-line-strong);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.hub-guide-modal .hub-calc__back-btn:hover { border-color: var(--g-ink); color: var(--g-ink); }

/* Stats row */
.hub-calc__stats,
.hub-calc__result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.hub-calc__stat,
.hub-calc__result-box,
.hub-calc__calories-box,
.hub-calc__monthly-needed {
  padding: 16px 14px;
  text-align: center;
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
}
.hub-calc__stat-value,
.hub-calc__result-box-value,
.hub-calc__calories-value,
.hub-calc__monthly-needed-value {
  display: block;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  color: var(--g-ink);
}
.hub-calc__stat-label,
.hub-calc__result-box-label,
.hub-calc__calories-label,
.hub-calc__monthly-needed-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--g-muted);
}
.hub-calc__stat-value,
.hub-calc__result-box-value {
  margin-top: 0;
}
.hub-calc__result-box-value--gap { color: var(--g-rose); }
.hub-calc__result-box-value--surplus { color: var(--g-green); }
.hub-calc__result-box--savings { background: var(--g-yellow); border-color: var(--g-yellow-line); }
.hub-calc__result-box--gap { background: var(--g-rose-bg); border-color: #e9d2c2; }

/* Result header / age */
.hub-calc__result-header,
.hub-calc__result-age {
  text-align: center;
  margin-bottom: 18px;
}
.hub-calc__result-age {
  font-family: var(--g-font-head);
  font-size: 20px;
  color: var(--g-ink);
}
.hub-calc__result-label { font-size: 12.5px; color: var(--g-muted); }

/* Calories big box */
.hub-calc__calories-box { margin-bottom: 20px; }
.hub-calc__calories-value { font-size: 30px; }

/* Plate bar (nutrition) */
.hub-calc__plate-wrap { margin-bottom: 20px; }
.hub-calc__plate {
  display: flex;
  height: 26px;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--g-line-strong);
}
.hub-calc__plate-seg { height: 100%; }
.hub-calc__plate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 12px;
}
.hub-calc__plate-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--g-ink-soft);
}
.hub-calc__plate-swatch { width: 11px; height: 11px; border-radius: 3px; }

/* Food group cards */
.hub-calc__groups-wrap {
  margin-bottom: 20px;
}

.hub-calc__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.hub-calc__group-card {
  padding: 14px 16px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
}
.hub-calc__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.hub-calc__group-name {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--g-ink);
}
.hub-calc__group-servings {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--g-ink);
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  padding: 2px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.hub-calc__group-examples {
  font-size: 13px;
  line-height: 1.5;
  color: var(--g-muted);
}

/* Cost rows (education) */
.hub-calc__costs { margin-bottom: 20px; }
.hub-calc__cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 7px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
}
.hub-calc__cost-row--primary {
  background: var(--g-yellow);
  border-color: var(--g-yellow-line);
}
.hub-calc__cost-label { font-size: 14px; color: var(--g-ink-soft); }
.hub-calc__cost-row--primary .hub-calc__cost-label { font-weight: 600; color: var(--g-ink); }
.hub-calc__cost-value {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--g-ink);
  white-space: nowrap;
}
.hub-calc__cost-context { margin: 3px 0 0; font-size: 12.5px; color: var(--g-muted); }

/* Tips / notes */
.hub-calc__tips-wrap { margin-top: 20px; margin-bottom: 20px; }
.hub-calc__tips { margin: 0 0 20px; padding: 0; list-style: none; }
.hub-calc__tips-heading {
  margin: 0 0 12px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--g-ink);
}
.hub-calc__articles-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--g-ink);
}
.hub-calc__tip {
  position: relative;
  padding: 11px 14px 11px 38px;
  margin-bottom: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--g-ink-soft);
  background: var(--g-cream);
  border-radius: var(--g-radius-md);
}
.hub-calc__tip::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--g-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23282828' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.hub-calc__notes,
.hub-calc__aap-note {
  display: flex;
  gap: 9px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--g-ink-soft);
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
}
.hub-calc__disclaimer {
  margin-top: 16px;
  padding: 11px 15px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--g-muted);
  background: var(--g-cream);
  border-radius: 10px;
}
.hub-calc__validation { margin-top: 7px; font-size: 12.5px; color: var(--g-rose); }

/* Calc article cards */
.hub-calc__articles { margin-top: 22px; margin-bottom: 6px; }
.hub-calc__article-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 11px 13px;
  margin-bottom: 9px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.hub-calc__article-card:hover {
  border-color: var(--g-ink);
  box-shadow: var(--g-shadow-card);
  transform: translateY(-1px);
}
.hub-calc__article-title {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--g-ink);
}
.hub-calc__article-desc { margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--g-muted); }

/* Graph (college savings / sleep) */
.hub-calc__graph-header { text-align: center; margin-bottom: 12px; }
.hub-calc__graph-title {
  margin: 0;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--g-ink);
}
.hub-calc__graph-subtitle { margin: 3px 0 0; font-size: 12.5px; color: var(--g-muted); }
.hub-calc__chart-wrap {
  position: relative;
  padding: 14px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
  margin-bottom: 18px;
}
.hub-calc__chart-unavailable,
.hub-calc__chart-wrap canvas { max-width: 100%; }
.hub-calc__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  justify-content: center;
  margin-top: 12px;
}
.hub-calc__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--g-ink-soft);
}
.hub-calc__legend-swatch { width: 13px; height: 13px; border-radius: 3px; }
.hub-calc__legend-swatch--mean { background: var(--g-gold); }
.hub-calc__legend-swatch--band { background: var(--g-yellow); }

@media (max-width: 540px) {
  .hub-calc__stats,
  .hub-calc__result-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-calc__groups,
  .hub-calc__groups-wrap { grid-template-columns: 1fr; }
}

/* ── hub-survey (Member Survey: Potty Training) ───────────────────────────── */

.hub-survey__intro {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--g-ink-soft);
}

/* Headline stat cards */
.hub-survey__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.hub-survey__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  text-align: center;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
}
.hub-survey__stat-value {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  color: var(--g-gold);
}
.hub-survey__stat-label {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--g-ink-soft);
}

/* Two-up section cards */
.hub-survey__sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.hub-survey__section {
  min-width: 0;
  padding: 20px 22px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
}
.hub-survey__section-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.hub-survey__section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g-cream);
  color: var(--g-accent-ink);
}
.hub-survey__section-eyebrow {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--g-accent-ink);
}
.hub-survey__section-title {
  margin: 0 0 8px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--g-ink);
}
.hub-survey__section-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--g-ink-soft);
}
.hub-survey__canvas-wrap { position: relative; height: 240px; }
.hub-survey__canvas-wrap canvas { max-width: 100%; }
.hub-survey__canvas-wrap--donut { height: 300px; }
.hub-survey__canvas-wrap--tall  { height: 300px; }

/* Methods chart legend */
.hub-survey__legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--g-ink-soft);
}
.hub-survey__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-survey__legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.hub-survey__legend-swatch--tried  { background: var(--g-line); border: 1px solid var(--g-line-strong); }
.hub-survey__legend-swatch--worked { background: var(--g-gold); border: 1px solid var(--g-yellow-line); }

.hub-survey__source {
  margin: 16px 0 0;
  font-size: 12.5px;
  font-style: italic;
  color: var(--g-muted);
}
.hub-survey__no-chart { padding: 22px; text-align: center; color: var(--g-muted); }

@media (max-width: 560px) {
  .hub-survey__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── hub-feeding-schedule ─────────────────────────────────────────────────── */

.hub-feeding-schedule__progress { margin-bottom: 22px; }
.hub-feeding-schedule__step-counter {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g-ink-soft);
}
.hub-feeding-schedule__progress-bar-wrap {
  height: 7px;
  background: var(--g-cream-deep);
  border-radius: 100px;
  overflow: hidden;
}
.hub-feeding-schedule__progress-bar {
  height: 100%;
  border-radius: 100px;
  background: var(--g-gold);
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}
.hub-feeding-schedule__question-text {
  margin: 0 0 18px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  color: var(--g-ink);
}
.hub-feeding-schedule__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.hub-feeding-schedule__option-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hub-feeding-schedule__option-btn::before {
  content: "";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--g-line-strong);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hub-feeding-schedule__option-btn:hover { border-color: var(--g-ink); background: var(--g-cream); }
.hub-feeding-schedule__option-btn--selected { border-color: var(--g-ink); background: var(--g-yellow); }
.hub-feeding-schedule__option-btn--selected::before {
  border-color: var(--g-ink);
  background: var(--g-ink);
  box-shadow: inset 0 0 0 3.5px var(--g-yellow);
}
.hub-feeding-schedule__nav { display: flex; gap: 10px; }
.hub-feeding-schedule__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .1s;
}
.hub-feeding-schedule__nav-btn--back {
  flex: 0 0 auto;
  background: var(--g-surface);
  border-color: var(--g-line-strong);
  color: var(--g-ink);
}
.hub-feeding-schedule__nav-btn--back:hover { border-color: var(--g-ink); background: var(--g-cream); }
.hub-feeding-schedule__nav-btn--next {
  flex: 1 1 auto;
  background: var(--g-yellow);
  border-color: var(--g-ink);
  color: var(--g-ink);
}
.hub-feeding-schedule__nav-btn--next:hover { background: var(--g-yellow-deep); transform: translateY(-1px); }
.hub-feeding-schedule__nav-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.hub-feeding-schedule__result-heading {
  margin: 0 0 5px;
  text-align: center;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 22px;
  color: var(--g-ink);
}
.hub-feeding-schedule__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
  overflow: hidden;
}
.hub-feeding-schedule__table th {
  background: var(--g-cream);
  font-family: var(--g-font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--g-ink-soft);
  text-align: left;
  padding: 11px 15px;
}
.hub-feeding-schedule__table td {
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--g-ink-soft);
  border-top: 1px solid var(--g-line);
}
.hub-feeding-schedule__tbl-time { font-weight: 600; color: var(--g-ink); white-space: nowrap; }
.hub-feeding-schedule__tbl-activity { color: var(--g-ink); }
.hub-feeding-schedule__tips { margin-top: 20px; }
.hub-feeding-schedule__tips-heading {
  margin: 0 0 12px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--g-ink);
}
.hub-feeding-schedule__tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hub-feeding-schedule__tip-item {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-ink-soft);
}
.hub-feeding-schedule__tip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23282828' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.hub-feeding-schedule__retake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  padding: 12px 22px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 10px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hub-feeding-schedule__retake-btn:hover { border-color: var(--g-ink); background: var(--g-cream); }

/* ── hub-cpq (What to Ask Your Care Provider) ─────────────────────────────── */

.hub-cpq__intro {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--g-ink-soft);
}

/* Picker */
.hub-cpq__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-cpq__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-lg);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.hub-cpq__option:hover {
  border-color: var(--g-gold);
  background: var(--g-cream);
  transform: translateY(-1px);
}
.hub-cpq__option-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--g-cream);
  color: var(--g-accent-ink);
}
.hub-cpq__option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-cpq__option-text strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.hub-cpq__option-text span {
  font-size: 13px;
  color: var(--g-ink-soft);
}

/* Questions header */
.hub-cpq__questions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hub-cpq__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  font-family: var(--g-font-body);
  font-size: 12.5px;
  color: var(--g-ink-soft);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hub-cpq__back:hover { color: var(--g-ink); }
.hub-cpq__questions-meta { flex: 1 1 auto; }
.hub-cpq__questions-title {
  margin: 0 0 3px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--g-ink);
}
.hub-cpq__counter {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g-accent-ink);
}
.hub-cpq__print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 100px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g-ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.hub-cpq__print:hover { border-color: var(--g-ink); color: var(--g-ink); }

/* Sections */
.hub-cpq__sections { display: flex; flex-direction: column; gap: 20px; }
.hub-cpq__section-name {
  margin: 0 0 10px;
  font-family: var(--g-font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--g-accent-ink);
}
.hub-cpq__item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hub-cpq__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--g-line);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  transition: border-color .15s, background .15s;
}
.hub-cpq__item:has(.hub-cpq__checkbox:checked) {
  border-color: var(--g-line-strong);
  background: var(--g-cream);
}
.hub-cpq__checkbox {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--g-ink);
  cursor: pointer;
}
.hub-cpq__item-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-ink);
  cursor: pointer;
}
.hub-cpq__item-label--done {
  color: var(--g-ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--g-yellow-line);
}

/* Disclaimer */
.hub-cpq__disclaimer {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--g-line);
  font-size: 12.5px;
  font-style: italic;
  color: var(--g-muted);
}

/* ── hub-ppd (Postpartum Depression EPDS Quiz) ────────────────────────────── */

.hub-ppd__intro-note {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--g-cream);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--g-ink-soft);
}

/* Progress */
.hub-ppd__progress { margin-bottom: 18px; }
.hub-ppd__progress-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--g-ink-soft);
}
.hub-ppd__progress-bar {
  height: 6px;
  background: var(--g-line);
  border-radius: 3px;
  overflow: hidden;
}
.hub-ppd__progress-fill {
  height: 100%;
  background: var(--g-gold);
  border-radius: 3px;
  transition: width .3s ease;
}

/* Question */
.hub-ppd__question {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--g-ink);
}

/* Options */
.hub-ppd__options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hub-ppd__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hub-ppd__option:hover { border-color: var(--g-gold); background: var(--g-cream-deep); }
.hub-ppd__option--selected { border-color: var(--g-gold); background: var(--g-cream); }
.hub-ppd__radio { flex: 0 0 auto; accent-color: var(--g-ink); cursor: pointer; }
.hub-ppd__option-label { flex: 1; font-size: 14px; line-height: 1.45; color: var(--g-ink); cursor: pointer; }

/* Next / restart buttons — extend shared hub-guide-btn */
.hub-ppd__next-btn { width: 100%; justify-content: center; }

/* Results */
.hub-ppd__results { display: flex; flex-direction: column; gap: 16px; }

/* Alert */
.hub-ppd__alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--g-radius-md);
  border: 2px solid var(--g-rose);
  background: var(--g-rose-bg);
}
.hub-ppd__alert-icon { flex: 0 0 auto; color: var(--g-rose); margin-top: 1px; }
.hub-ppd__alert-heading { margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--g-rose); }
.hub-ppd__alert-body { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--g-ink); }

/* Score card */
.hub-ppd__score-card {
  padding: 16px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
}
.hub-ppd__score-label { margin: 0 0 10px; font-size: 13.5px; color: var(--g-ink-soft); }
.hub-ppd__score-bar { height: 10px; background: var(--g-line); border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.hub-ppd__score-fill { height: 100%; border-radius: 5px; transition: width .4s ease; }
.hub-ppd__score-fill--low    { background: var(--g-green); }
.hub-ppd__score-fill--medium { background: var(--g-gold); }
.hub-ppd__score-fill--high   { background: var(--g-rose); }
.hub-ppd__score-message { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--g-ink-soft); }

/* Doctor guidance */
.hub-ppd__guidance {
  padding: 16px;
  background: var(--g-cream);
  border: 1.5px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
}
.hub-ppd__guidance-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hub-ppd__guidance-icon { color: var(--g-accent-ink); }
.hub-ppd__guidance-title { margin: 0; font-weight: 700; font-size: 14px; color: var(--g-ink); }
.hub-ppd__guidance-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--g-ink);
}

/* Crisis resources */
.hub-ppd__crisis {
  padding: 14px 16px;
  background: var(--g-green-bg);
  border: 1px solid #c3dfc9;
  border-radius: var(--g-radius-md);
}
.hub-ppd__crisis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hub-ppd__crisis-icon { color: var(--g-green); }
.hub-ppd__crisis-title { margin: 0; font-weight: 600; font-size: 13.5px; color: var(--g-ink); }
.hub-ppd__crisis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-ppd__crisis-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--g-ink-soft);
}
.hub-ppd__crisis-list li svg { flex: 0 0 auto; margin-top: 2px; color: var(--g-green); }

/* Recommended Reading */
.hub-ppd__reading {
  padding-top: 14px;
  border-top: 1px solid var(--g-line);
}
.hub-ppd__reading-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--g-accent-ink);
}
.hub-ppd__reading-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--g-ink);
}
.hub-ppd__reading-article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--g-surface);
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hub-ppd__reading-article:hover { background: var(--g-cream); border-color: var(--g-gold); }
.hub-ppd__reading-img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.hub-ppd__reading-text { min-width: 0; }
.hub-ppd__reading-text h6 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--g-ink);
}
.hub-ppd__reading-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--g-ink-soft);
}

/* Disclaimer + restart */
.hub-ppd__disclaimer {
  font-size: 12px;
  font-style: italic;
  color: var(--g-muted);
  margin: 0;
}
.hub-ppd__actions { display: flex; flex-direction: column; gap: 10px; }
.hub-ppd__download-btn,
.hub-ppd__restart-btn { width: 100%; justify-content: center; }

/* ── hub-cog-tracker ──────────────────────────────────────────────────────── */

.hub-cog-tracker__tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.hub-cog-tracker__tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 100px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.hub-cog-tracker__tab-btn:hover { border-color: var(--g-ink); }
.hub-cog-tracker__tab-btn--active {
  background: var(--g-yellow);
  border-color: var(--g-ink);
  color: var(--g-ink);
}
.hub-cog-tracker__cat-icon { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.hub-cog-tracker__tab-progress {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  background: var(--g-cream);
  color: var(--g-ink);
}
.hub-cog-tracker__tab-btn--active .hub-cog-tracker__tab-progress { background: rgba(40, 40, 40, .12); }
.hub-cog-tracker__age-heading {
  margin: 20px 0 11px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--g-ink);
}
.hub-cog-tracker__age-heading:first-child { margin-top: 0; }
.hub-cog-tracker__items { display: flex; flex-direction: column; gap: 7px; }
.hub-cog-tracker__item-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid var(--g-line);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hub-cog-tracker__item-btn:hover { border-color: var(--g-ink); background: var(--g-cream); }
.hub-cog-tracker__item-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--g-line-strong);
  color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.hub-cog-tracker__item-text { flex: 1 1 auto; }
.hub-cog-tracker__item-btn--checked { border-color: var(--g-ink); background: var(--g-yellow); }
.hub-cog-tracker__item-btn--checked .hub-cog-tracker__item-icon {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: var(--g-yellow);
}
.hub-cog-tracker__item-btn--checked .hub-cog-tracker__item-text {
  color: var(--g-ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--g-yellow-line);
}
.hub-cog-tracker__icon-unchecked { display: inline-flex; }
.hub-cog-tracker__icon-checked { display: none; }
.hub-cog-tracker__item-btn--checked .hub-cog-tracker__icon-unchecked { display: none; }
.hub-cog-tracker__item-btn--checked .hub-cog-tracker__icon-checked { display: inline-flex; }

/* ── hub-dev-screening ────────────────────────────────────────────────────── */

.hub-dev-screening__heading {
  margin: 0 0 14px;
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--g-ink);
}
.hub-dev-screening__age-heading {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--g-accent-ink);
}
.hub-dev-screening__age-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.hub-dev-screening__age-btn {
  padding: 9px 15px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 100px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.hub-dev-screening__age-btn:hover { border-color: var(--g-ink); }
.hub-dev-screening__age-btn.is-active,
.hub-dev-screening__age-btn--active {
  background: var(--g-yellow);
  border-color: var(--g-ink);
  color: var(--g-ink);
}
.hub-dev-screening__questions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.hub-dev-screening__question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--g-line-strong);
  border-radius: var(--g-radius-md);
  background: var(--g-surface);
}
.hub-dev-screening__question-text { flex: 1 1 auto; font-size: 14px; line-height: 1.45; color: var(--g-ink); }
.hub-dev-screening__yn-group { flex: 0 0 auto; display: inline-flex; gap: 6px; }
.hub-dev-screening__yn-btn {
  min-width: 50px;
  padding: 7px 13px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 100px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--g-ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.hub-dev-screening__yn-btn:hover { border-color: var(--g-ink); }
.hub-dev-screening__yn-btn--active {
  background: var(--g-yellow);
  border-color: var(--g-ink);
  color: var(--g-ink);
}
.hub-dev-screening__toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hub-dev-screening__footer { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.hub-dev-screening__submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1.5px solid var(--g-ink);
  border-radius: 10px;
  background: var(--g-yellow);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--g-ink);
  cursor: pointer;
  transition: background .16s, transform .1s;
}
.hub-dev-screening__submit-btn:hover { background: var(--g-yellow-deep); transform: translateY(-1px); }
.hub-dev-screening__back-btn,
.hub-dev-screening__restart-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border: 1.5px solid var(--g-line-strong);
  border-radius: 10px;
  background: var(--g-surface);
  font-family: var(--g-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--g-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hub-dev-screening__back-btn:hover,
.hub-dev-screening__restart-btn:hover { border-color: var(--g-ink); background: var(--g-cream); }
.hub-dev-screening__result {
  text-align: center;
  padding: 24px 22px;
  border-radius: var(--g-radius-lg);
  margin-bottom: 18px;
}
.hub-dev-screening__result--good     { background: var(--g-green-bg); border: 1px solid #cfe6d6; }
.hub-dev-screening__result--moderate { background: var(--g-cream); border: 1px solid var(--g-line-strong); }
.hub-dev-screening__result--warn     { background: var(--g-yellow); border: 1px solid var(--g-yellow-line); }
.hub-dev-screening__result--concern  { background: var(--g-rose-bg); border: 1px solid #e9d2c2; }
.hub-dev-screening__result-score {
  font-family: var(--g-font-head);
  font-weight: 500;
  font-size: 26px;
  color: var(--g-ink);
}
.hub-dev-screening__result-msg { margin-top: 7px; font-size: 14.5px; line-height: 1.55; color: var(--g-ink-soft); }
.hub-dev-screening__disclaimer {
  padding: 11px 15px;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
  color: var(--g-muted);
  background: var(--g-cream);
  border-radius: 10px;
}


/* ── rich_text guide (WYSIWYG output) ──────────────────────────────────────── */
.hub-guide-richtext { font-size: 15px; line-height: 1.6; color: var(--g-ink-soft); }
.hub-guide-richtext h1,
.hub-guide-richtext h2,
.hub-guide-richtext h3,
.hub-guide-richtext h4 {
  font-family: var(--g-font-head);
  font-weight: 500;
  color: var(--g-ink);
  line-height: 1.3;
  margin: 0 0 12px;
}
.hub-guide-richtext h2 { font-size: 22px; }
.hub-guide-richtext h3 { font-size: 19px; }
.hub-guide-richtext h4 { font-size: 16px; }
.hub-guide-richtext p { margin: 0 0 14px; }
.hub-guide-richtext p:last-child { margin-bottom: 0; }
.hub-guide-richtext a {
  color: var(--g-ink);
  text-decoration: underline;
  text-decoration-color: var(--g-yellow-line);
  text-underline-offset: 3px;
}
.hub-guide-richtext a:hover { text-decoration-color: var(--g-ink); }
.hub-guide-richtext ul,
.hub-guide-richtext ol { margin: 0 0 14px; padding-left: 22px; }
.hub-guide-richtext li { margin-bottom: 6px; }
.hub-guide-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: var(--g-radius-lg);
  margin: 6px 0;
}
.hub-guide-richtext figure { margin: 0 0 14px; }
.hub-guide-richtext figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--g-muted);
  text-align: center;
}
.hub-guide-richtext blockquote {
  margin: 0 0 14px;
  padding: 12px 18px;
  border-left: 4px solid var(--g-yellow-line);
  background: var(--g-cream);
  border-radius: 0 var(--g-radius-md) var(--g-radius-md) 0;
  font-style: italic;
}
.hub-guide-richtext iframe { max-width: 100%; border: none; border-radius: var(--g-radius-md); }

/* ── Sleep Training Quiz (hub-stq) ───────────────────────────────────────── */

/* Intro: center the Start Now button */
.hub-stq__view[data-stq-intro] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 0 4px;
}

/* Gap between progress bar top row and progress bar, and between bar and question */
.hub-stq__progress {
  margin-bottom: 24px;
}
.hub-stq__progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--hub-muted, #9c9c9c);
}
.hub-stq__question {
  margin-top: 20px;
  margin-bottom: 16px;
}

/* Nav: space-between when both visible; center when back is hidden */
.hub-guide-step__nav {
  justify-content: space-between;
}
.hub-guide-step__nav [data-stq-back].is-hidden {
  visibility: hidden;
}
/* When back is invisible (step 1), next sits alone — center it */
.hub-guide-step__nav [data-stq-back].is-hidden ~ [data-stq-next] {
  margin-left: auto;
  margin-right: auto;
}
.hub-stq [data-stq-next] {
  min-width: 140px;
}

/* ── hub-srq (Solids Readiness Quiz) ─────────────────────────────────────── */

.hub-srq__progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.hub-srq__progress-bar-track {
  height: 6px;
  background: var(--hub-tan);
  border-radius: 99px;
  overflow: hidden;
}

.hub-srq__progress-bar {
  height: 100%;
  width: 0;
  background: var(--hub-gold);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.hub-srq__progress-label {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--hub-muted);
  text-align: right;
  margin: 0;
}

.hub-srq__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-srq__row {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: "DM Sans", sans-serif;
}

.hub-srq__row:hover {
  border-color: var(--hub-tan);
  background: var(--hub-cream);
}

.hub-srq__item--checked .hub-srq__row {
  border-color: var(--hub-gold);
  background: var(--hub-yellow);
}

.hub-srq__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hub-srq__item--checked .hub-srq__radio {
  border-color: var(--hub-ink);
  background: var(--hub-ink);
  box-shadow: inset 0 0 0 3px #fff;
}

.hub-srq__label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--hub-ink);
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-srq__must-have {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--hub-yellow);
  border: 1px solid var(--hub-tan);
  color: var(--hub-ink);
  text-transform: uppercase;
  vertical-align: middle;
}

.hub-srq__badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.hub-srq__badge--w3 {
  background: #fde8e8;
  color: #b91c1c;
}

.hub-srq__badge--w2 {
  background: var(--hub-yellow);
  color: var(--hub-ink);
  border: 1px solid var(--hub-tan);
}

.hub-srq__badge--w1 {
  background: var(--hub-cream);
  color: var(--hub-muted);
  border: 1px solid var(--hub-border);
}

.hub-srq__check-btn {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--hub-yellow);
  border: 1.5px solid var(--hub-ink);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--hub-ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.hub-srq__check-btn:hover {
  background: var(--hub-tan);
}

/* Result */
.hub-srq__result-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-srq__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.hub-srq__status--ready   { background: #e6f9ec; }
.hub-srq__status--almost  { background: var(--hub-yellow); }
.hub-srq__status--not-ready { background: #fde8e8; }

.hub-srq__status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}

.hub-srq__status--ready   .hub-srq__status-icon { background: #bbf7d0; }
.hub-srq__status--almost  .hub-srq__status-icon { background: var(--hub-tan); }
.hub-srq__status--not-ready .hub-srq__status-icon { background: #fecaca; }

.hub-srq__status-title {
  font-family: "Lora", serif;
  font-size: 20px;
  color: var(--hub-ink);
  margin: 0;
}

.hub-srq__status-pct {
  font-size: 28px;
  font-weight: 700;
  color: var(--hub-ink);
  margin: 0;
}

.hub-srq__status-msg {
  font-size: 14px;
  color: var(--hub-muted);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.hub-srq__missed {
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  border-radius: 10px;
  padding: 14px 16px;
}

.hub-srq__missed-head {
  font-weight: 600;
  font-size: 13px;
  color: var(--hub-ink);
  margin: 0 0 8px;
}

.hub-srq__missed-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--hub-muted);
}

.hub-srq__disclaimer {
  font-size: 12px;
  font-style: italic;
  color: var(--hub-muted);
  text-align: center;
  margin: 0;
}

.hub-srq__reset-btn {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px solid var(--hub-ink);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--hub-ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.hub-srq__reset-btn:hover {
  background: var(--hub-cream);
}

.hub-srq__reading {
  background: var(--hub-cream);
  border: 1px solid var(--hub-tan);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-srq__reading-head {
  font-weight: 600;
  font-size: 13px;
  color: var(--hub-ink);
  margin: 0;
}

.hub-srq__reading-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hub-ink);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
  border-top: 1px solid var(--hub-border);
  transition: opacity 0.15s;
}

.hub-srq__reading-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.hub-srq__reading-item:hover {
  opacity: 0.7;
}

.hub-srq__reading-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--hub-tan);
  display: block;
}

/* --------------------------------------------------------------------------
   Carousel/scroll arrows — hover visibility fix
   At rest these circular controls are white (#fff). Their previous hover
   state went to pale yellow with no border change, which blended into the
   light/cream hub background and made the icon hard to see. Use the brand
   yellow on hover/focus with a black icon (svg uses currentColor) and a
   crisp dark border so the circle stays clearly defined against the cream
   page. Higher specificity (.content-hub …) intentionally overrides each
   component's own :hover and the shared hover group above.
   -------------------------------------------------------------------------- */
.content-hub .hub-age-pills__arrow:hover,
.content-hub .hub-age-pills__arrow:focus,
.content-hub .hub-topic-pills__arrow:hover,
.content-hub .hub-topic-pills__arrow:focus,
.content-hub .hub-essential-reading__arrow:hover,
.content-hub .hub-essential-reading__arrow:focus,
.content-hub .hub-other-hubs__arrow:hover,
.content-hub .hub-other-hubs__arrow:focus,
.content-hub .hub-other-hubs__arrow:active,
.content-hub .hub-tools__arrow:hover,
.content-hub .hub-tools__arrow:focus,
.content-hub .hub-instagram__arrow:hover,
.content-hub .hub-instagram__arrow:focus {
  background: var(--hub-yellow);
  border-color: var(--hub-ink);
  color: var(--hub-ink);
}
