/**
 * RECENTRE Hub – Participant dashboard styles
 */

/* ----- Full-screen shell — suppress all Eduma chrome ----- */
body.recentre-hub-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}
body.recentre-hub-page #main-nav,
body.recentre-hub-page .site-header,
body.recentre-hub-page header.site-header,
body.recentre-hub-page .topbar-mobile,
body.recentre-hub-page .site-footer,
body.recentre-hub-page footer.site-footer,
body.recentre-hub-page .breadcrumb,
body.recentre-hub-page #breadcrumbs,
body.recentre-hub-page .thim-ekits-heading,
body.recentre-hub-page #back-to-top {
  display: none !important;
}
body.recentre-hub-page #page,
body.recentre-hub-page .site,
body.recentre-hub-page #content,
body.recentre-hub-page .site-content,
body.recentre-hub-page .entry-content,
body.recentre-hub-page .container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/*
 * Embedded hub (theme chrome ON): widen only wrappers that contain the hub.
 * Keeps staging/Elementor/boxed pages from pinning the dashboard to ~1140–1200px.
 */
body.recentre-hub-active:not(.recentre-hub-page)
  article:has(#recentre-hub)
  .entry-content:not(.recentre-hub) {
  box-sizing: border-box;
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.recentre-hub-active:not(.recentre-hub-page)
  .elementor-section:has(#recentre-hub)
  > .elementor-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (min-width: 769px) {
  body.recentre-hub-active:not(.recentre-hub-page) {
    overflow-x: hidden;
  }
  body.recentre-hub-active:not(.recentre-hub-page) .recentre-hub {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(-50%);
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  body.recentre-hub-active:not(.recentre-hub-page) .recentre-hub {
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }
}

/* ----- Variables ----- */
.recentre-hub {
  /* Figma sage-green palette */
  --rh-pink: #6a9e76; /* medium green — avatar circles, icon fills    */
  --rh-pink-dark: #2d5a27; /* dark green   — active states, CTAs           */
  --rh-pink-bg: #e8ede6; /* sage green   — sidebar bg, card tints        */
  --rh-progress: #e8718a; /* coral        — progress bar fill             */
  /* Secondary palette (habit-trend cards — unchanged) */
  --rh-blue: #7eb8da;
  --rh-blue-dark: #5a9bc4;
  --rh-blue-bg: #e8f4fc;
  --rh-purple: #b8a9c9;
  --rh-purple-dark: #8f7ba8;
  --rh-purple-bg: #f0ecf5;
  /* Neutrals */
  --rh-text: #333;
  --rh-text-muted: #666;
  --rh-border: #dde6db;
  --rh-radius: 12px;
  --rh-radius-sm: 8px;
  --rh-sidebar-w: 260px;
  /* Sidebar card (mint / purple mock) */
  --rh-sidebar-accent: #76c07e;
  --rh-sidebar-mint: #f0f7f0;
  --rh-sidebar-purple: #9ba3d0;
  --rh-sidebar-logout: #d87d7d;
  --rh-sidebar-border: #c5e6c9;
  --rh-sidebar-card-radius: 22px;
  --rh-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  /* Welcome hero (overview) */
  --rh-welcome-heading: #1a1c1e;
  --rh-welcome-accent: #9a9abf;
  --rh-welcome-meta: #666;
  --rh-welcome-tagline: #999;
  /* Round icon buttons (Daily Affirmation refresh, Resources carousel arrows) */
  --rh-hub-icon-btn-size: 36px;
  --rh-hub-icon-btn-fill: #42b768;
  --rh-hub-icon-btn-color: #fff;
  --rh-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, sans-serif;
  --rh-shell-inset: 24px;
}

/* ----- Base — full-screen grid ----- */
.recentre-hub {
  font-family: var(--rh-font);
  color: var(--rh-text);
  background: #fff;
  /* Full viewport — topbar row + content row, sidebar col + main col */
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: var(--rh-sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 0;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}
.recentre-hub
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    button,
    span,
    label,
    input,
    textarea,
    select
  ) {
  font-family: var(--rh-font) !important;
}
.recentre-hub__topbar {
  grid-column: 1 / -1;
  grid-row: 1;
}
.recentre-hub__sidebar {
  grid-column: 1;
  grid-row: 2;
  overflow-y: visible;
  overflow-x: hidden;
  align-self: start;
}
.recentre-hub__main {
  grid-column: 2;
  grid-row: 2;
  overflow-y: visible;
  padding: var(--rh-shell-inset);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Hub page in normal WP layouts: hide title/banner strip only on pages that render hub */
body:has(.recentre-hub) .top_site_main {
  display: none !important;
}

.recentre-hub :is(.recentre-hub__card-title, .recentre-hub__affirmation-title) {
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.recentre-hub *,
.recentre-hub *::before,
.recentre-hub *::after {
  box-sizing: border-box;
}

/* ----- Top bar ----- */
.recentre-hub__topbar {
  background: #fff;
  border-bottom: 1px solid var(--rh-border);
  padding: 12px var(--rh-shell-inset);
}
.recentre-hub__topbar-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recentre-hub__breadcrumb {
  font-size: 14px;
  color: var(--rh-text-muted);
}
.recentre-hub__breadcrumb a {
  color: var(--rh-pink-dark);
  text-decoration: none;
}
.recentre-hub__breadcrumb a:hover {
  text-decoration: underline;
}
.recentre-hub__breadcrumb-sep {
  margin: 0 6px;
}
.recentre-hub__user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.recentre-hub__user-name {
  font-weight: 600;
}
.recentre-hub__user-step {
  color: var(--rh-text-muted);
}
.recentre-hub__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rh-pink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

/* ----- Layout ----- */
.recentre-hub__layout {
  display: flex;
  max-width: none;
  width: 100%;
  margin: 24px auto 0;
  padding: 0 24px 40px;
}

/* ----- Sidebar (card — white panel, mint header, purple journal block) ----- */
.recentre-hub__sidebar {
  width: var(--rh-sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--rh-sidebar-border);
  border-radius: var(--rh-sidebar-card-radius);
  padding: 0;
  margin: var(--rh-shell-inset) 32px 32px 0;
  height: fit-content;
  position: sticky;
  top: var(--rh-shell-inset);
  box-shadow: 0 4px 24px rgba(45, 90, 39, 0.06);
}
.recentre-hub__logo {
  margin: 0;
}
.recentre-hub__logo-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--rh-sidebar-mint);
  border-radius: calc(var(--rh-sidebar-card-radius) - 2px)
    calc(var(--rh-sidebar-card-radius) - 2px) 0 0;
}
.recentre-hub__logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--rh-sidebar-accent);
  color: #fff;
}
.recentre-hub__logo-icon svg {
  width: 22px;
  height: 22px;
}
.recentre-hub__logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.recentre-hub__logo-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-sidebar-accent);
}
.recentre-hub__logo-tagline--purple {
  color: var(--rh-sidebar-purple);
}
.recentre-hub__logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rh-text);
  line-height: 1.15;
}
.recentre-hub__journal-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 6px;
  margin: 12px 0 0;
  border-top: 1px solid #f1f2f7;
}
.recentre-hub__journal-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--rh-sidebar-purple);
  color: #fff;
}
.recentre-hub__journal-intro-icon svg {
  width: 22px;
  height: 22px;
}
.recentre-hub__journal-intro-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.recentre-hub__nav {
  padding: 8px 12px 6px;
}
.recentre-hub__nav-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rh-sidebar-accent);
  margin: 0 0 7px;
  padding: 0 6px;
}
.recentre-hub__progress-sidebar .recentre-hub__nav-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-sidebar-accent);
  margin: 0 0 8px;
  padding: 0;
}
.recentre-hub__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recentre-hub__menu-item {
  margin-bottom: 3px;
}
.recentre-hub__sidebar .recentre-hub__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  color: #405642 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.recentre-hub__sidebar .recentre-hub__menu-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--rh-sidebar-accent);
  opacity: 1;
}
.recentre-hub__sidebar .recentre-hub__menu-link:hover,
.recentre-hub__sidebar .recentre-hub__menu-link:focus-visible,
.recentre-hub__sidebar
  .recentre-hub__menu-item--active
  .recentre-hub__menu-link {
  background: var(--rh-sidebar-mint);
  color: var(--rh-text) !important;
}
.recentre-hub__sidebar .recentre-hub__menu-link:focus-visible {
  outline: 2px solid rgba(118, 192, 126, 0.55);
  outline-offset: 1px;
}
.recentre-hub__sidebar .recentre-hub__menu-link:hover .recentre-hub__menu-icon,
.recentre-hub__sidebar
  .recentre-hub__menu-link:focus-visible
  .recentre-hub__menu-icon,
.recentre-hub__sidebar
  .recentre-hub__menu-item--active
  .recentre-hub__menu-link
  .recentre-hub__menu-icon {
  color: var(--rh-sidebar-accent);
}
.recentre-hub__sidebar .recentre-hub__menu-link--logout {
  color: var(--rh-sidebar-logout) !important;
}
.recentre-hub__sidebar
  .recentre-hub__menu-link--logout
  .recentre-hub__menu-icon {
  color: var(--rh-sidebar-logout);
}
.recentre-hub__sidebar .recentre-hub__menu-link--logout:hover,
.recentre-hub__sidebar .recentre-hub__menu-link--logout:focus-visible {
  background: #fbf4f4;
  color: var(--rh-sidebar-logout) !important;
}
.recentre-hub__sidebar
  .recentre-hub__menu-link--logout:hover
  .recentre-hub__menu-icon,
.recentre-hub__sidebar
  .recentre-hub__menu-link--logout:focus-visible
  .recentre-hub__menu-icon {
  color: var(--rh-sidebar-logout);
}
.recentre-hub__menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-left: auto;
  opacity: 0.8;
}
.recentre-hub__menu-status {
  margin-left: auto;
  font-style: italic;
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 400;
  white-space: nowrap;
}
.recentre-hub__progress-sidebar {
  margin: 8px 12px 16px;
  padding: 16px 18px 17px;
  border-top: none;
  border-radius: 16px;
  background: #f7faf7;
}
.recentre-hub__progress-text {
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rh-text);
}
.recentre-hub__progress-bar {
  height: 9px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid #eaf3ea;
}
.recentre-hub__progress-fill {
  height: 100%;
  background: var(--rh-sidebar-accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.recentre-hub__progress-bar--large {
  height: 12px;
  margin: 12px 0;
}
.recentre-hub__progress-bar--thin {
  height: 6px;
}
.recentre-hub__progress-fill--pink {
  background: var(--rh-progress);
}
.recentre-hub__progress-fill--blue {
  background: var(--rh-blue-dark);
}
.recentre-hub__progress-fill--purple {
  background: var(--rh-purple-dark);
}
.recentre-hub__progress-label {
  font-size: 13px;
  color: var(--rh-sidebar-accent);
  margin: 0;
}
.recentre-hub__weekly-dual {
  margin: 16px 0 20px;
}

.recentre-hub__weekly-dual-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 28px;
  margin-bottom: 16px;
}

.recentre-hub__weekly-dual-item--expected {
  justify-self: end;
}

@media (max-width: 640px) {
  .recentre-hub__weekly-dual-legend {
    grid-template-columns: 1fr;
  }
  .recentre-hub__weekly-dual-item--expected {
    justify-self: start;
  }
}

.recentre-hub__weekly-dual-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.recentre-hub__weekly-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
}

.recentre-hub__weekly-swatch--actual {
  background: #42b768;
}

.recentre-hub__weekly-swatch--expected {
  background: #cfd4dc;
}

.recentre-hub__weekly-dual-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
}

.recentre-hub__weekly-dual-item--actual .recentre-hub__weekly-dual-label {
  color: #53947c;
}

.recentre-hub__weekly-dual-item--expected .recentre-hub__weekly-dual-label {
  color: #8f98a6;
}

.recentre-hub__weekly-dual-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #252525;
}

.recentre-hub__weekly-dual-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #d7dbe2;
  overflow: hidden;
  box-shadow: none;
}

.recentre-hub__weekly-dual-expected,
.recentre-hub__weekly-dual-actual {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  max-width: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.recentre-hub__weekly-dual-expected {
  z-index: 1;
  background: linear-gradient(180deg, #e6eaf0 0%, #cfd4dc 100%);
}

.recentre-hub__weekly-dual-actual {
  z-index: 2;
  background: linear-gradient(180deg, #72c287 0%, #3aa85c 100%);
}

/* ----- Cards ----- */
.recentre-hub__card {
  background: #fff;
  border-radius: var(--rh-radius);
  box-shadow: var(--rh-shadow);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--rh-border);
}

/* Overview: section accent rail (matches programme visual hierarchy) */
.recentre-hub__card.recentre-hub__welcome {
  border-top: 4px solid #b8b5d4;
}
.recentre-hub__card.recentre-hub__weekly {
  border-top: 4px solid #f0843a;
}
.recentre-hub__card.recentre-hub__habit-trends {
  border-top: 4px solid #42b768;
}
.recentre-hub__card.recentre-hub__resources {
  border-top: 4px solid #df6d8f;
}

.recentre-hub__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.recentre-hub__card-header--wrap {
  flex-wrap: wrap;
}
.recentre-hub__card-header--row {
  flex-direction: row;
  align-items: center;
}
.recentre-hub__card-title {
  margin: 0 0 4px;
}
.recentre-hub__card-subtitle {
  font-size: 14px;
  color: var(--rh-text-muted);
  margin: 0;
}
.recentre-hub__badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #ebf4ed;
  color: #53947c;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.recentre-hub__badge--pink {
  background: var(--rh-pink-bg);
  color: var(--rh-pink-dark);
}
.recentre-hub__badge--success {
  background: #ebf4ed;
  color: #2d7a55;
}
.recentre-hub__badge--small {
  font-size: 12px;
  padding: 4px 10px;
}

/* Overview: combined Hello + Daily Affirmation (two-column hero) */
.recentre-hub__card.recentre-hub__hero-combined {
  border-top: 4px solid #b8b5d4;
  padding: 0;
}
.recentre-hub__hero-combined-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
  align-items: stretch;
}
.recentre-hub__hero-combined-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: 22px;
  width: 1px;
  transform: translateX(-50%);
  background: #cfd4d8;
  pointer-events: none;
  z-index: 1;
}
.recentre-hub__hero-combined-accent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #c0bae1 0%, #b8b5d4 100%);
  border: 1px solid #e9e9f1;
  box-shadow: 0 2px 10px rgba(70, 60, 120, 0.12);
  pointer-events: none;
}
.recentre-hub__hero-combined-accent-icon {
  font-size: 13px;
  line-height: 1;
  color: #fff;
}
.recentre-hub__hero-combined-welcome {
  padding: 24px;
  min-width: 0;
}
.recentre-hub__hero-combined-affirmation.recentre-hub__affirmation {
  padding: 22px 24px;
  min-width: 0;
  background: #fbfbfd;
  margin: 0;
}
.recentre-hub__hero-combined .recentre-hub__affirmation-header {
  margin-bottom: 10px;
}
.recentre-hub__hero-combined .recentre-hub__affirmation-title {
  font-size: 0.72rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-welcome-accent, #9a9abf);
  font-weight: 700;
}
.recentre-hub__hero-combined .recentre-hub__affirmation-quote {
  color: #6c6d87;
  font-style: italic;
  font-weight: 600;
}
.recentre-hub__hero-combined .recentre-hub__affirmation-refresh {
  background: var(--rh-welcome-accent, #9a9abf);
}
.recentre-hub__hero-combined .recentre-hub__affirmation-dots span.active {
  background: var(--rh-welcome-accent, #9a9abf);
}
@media (max-width: 767px) {
  .recentre-hub__hero-combined-inner {
    grid-template-columns: 1fr;
  }
  .recentre-hub__hero-combined-inner::before {
    display: none;
  }
  .recentre-hub__hero-combined-accent {
    display: none;
  }
  .recentre-hub__hero-combined-affirmation.recentre-hub__affirmation {
    border-top: 1px solid var(--rh-border);
  }
}

/* ----- Welcome (overview hero) ----- */
.recentre-hub__welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.recentre-hub__welcome-heading {
  margin: 0;
  font-size: clamp(22px, 4.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--rh-welcome-heading, #1a1c1e);
}

.recentre-hub__welcome-hello {
  color: var(--rh-welcome-heading, #1a1c1e);
}

.recentre-hub__welcome-name {
  color: var(--rh-welcome-accent, #9a9abf);
}

.recentre-hub__welcome-wave {
  font-weight: 400;
  white-space: nowrap;
}

.recentre-hub__welcome-meta {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--rh-welcome-meta, #666);
}

.recentre-hub__welcome-meta-label {
  color: var(--rh-welcome-meta, #666);
}

.recentre-hub__welcome-meta-step {
  color: var(--rh-welcome-accent, #9a9abf);
  font-weight: 600;
}

.recentre-hub__welcome-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--rh-welcome-tagline, #999);
  font-weight: 400;
}

/* ----- Weekly progress + step cards (pill top band + tinted body) ----- */
.recentre-hub__steps-row {
  display: grid;
  grid-template-columns: repeat(var(--rh-step-columns, 5), minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.recentre-hub__step-card {
  --step-accent: #949db8;
  --step-surface-7: #f0f1f6;
  --step-surface-12: #eaebf2;
  --step-weeks-fg: #7a8199;
  --step-shadow-soft: rgba(155, 163, 208, 0.22);
  position: relative;
  border-radius: 16px;
  padding: 20px 14px 18px;
  padding-top: 22px;
  text-align: center;
  overflow: hidden;
  background: var(--step-surface-7);
  border: none;
  box-shadow:
    0 4px 14px rgba(15, 25, 40, 0.08),
    0 2px 6px rgba(15, 25, 40, 0.04);
}

/* Solid colour band aligned with rounded top (matches mock header strip) */
.recentre-hub__step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 11px;
  background: var(--step-accent);
  border-radius: 15px 15px 0 0;
  pointer-events: none;
}

.recentre-hub__step-card--num-0 {
  --step-accent: #2d6b43;
  --step-surface-7: #f4faf6;
  --step-surface-12: #edf7f0;
  --step-weeks-fg: #3f7b54;
  --step-shadow-soft: rgba(45, 107, 67, 0.28);
}

/* Muted Step 0 when not active: solid hexes (no filter) */
.recentre-hub__step-card--num-0:not(.recentre-hub__step-card--active) {
  --step-accent: #4d6b58;
  --step-surface-7: #e8eeea;
  --step-surface-12: #dfe8e3;
  --step-weeks-fg: #5f6f66;
  --step-shadow-soft: rgba(70, 90, 78, 0.2);
  background: var(--step-surface-7);
}

.recentre-hub__step-card--num-1 {
  --step-accent: #9ba3d0;
  --step-surface-7: #fafafc;
  --step-surface-12: #f6f6fa;
  --step-weeks-fg: #838aab;
  --step-shadow-soft: rgba(155, 163, 208, 0.28);
}

.recentre-hub__step-card--num-2 {
  --step-accent: #f0a068;
  --step-surface-7: #fefaf8;
  --step-surface-12: #fdf6f3;
  --step-weeks-fg: #c08867;
  --step-shadow-soft: rgba(240, 160, 104, 0.28);
}

.recentre-hub__step-card--num-3 {
  --step-accent: #53b96e;
  --step-surface-7: #f8fbf8;
  --step-surface-12: #f2f8f3;
  --step-weeks-fg: #57996a;
  --step-shadow-soft: rgba(83, 185, 110, 0.28);
}

.recentre-hub__step-card--num-4 {
  --step-accent: #df6d8f;
  --step-surface-7: #fdf8f9;
  --step-surface-12: #fbf3f5;
  --step-weeks-fg: #b4677f;
  --step-shadow-soft: rgba(223, 109, 143, 0.28);
}

.recentre-hub__step-card--num-5 {
  --step-accent: #c85a7a;
  --step-surface-7: #fcf6f8;
  --step-surface-12: #f9eef2;
  --step-weeks-fg: #a85a72;
  --step-shadow-soft: rgba(200, 90, 122, 0.26);
}

.recentre-hub__step-card--num-5:not(.recentre-hub__step-card--active) {
  --step-accent: #8f6174;
  --step-surface-7: #ebe4e8;
  --step-surface-12: #e4d9df;
  --step-weeks-fg: #756370;
  --step-shadow-soft: rgba(115, 85, 100, 0.2);
  background: var(--step-surface-7);
}

.recentre-hub__step-card--active {
  background: var(--step-surface-12);
  box-shadow:
    0 14px 36px var(--step-shadow-soft),
    0 6px 18px rgba(15, 25, 40, 0.1),
    0 2px 6px rgba(15, 25, 40, 0.05);
}

.recentre-hub__step-card--locked:not(.recentre-hub__step-card--active) {
  opacity: 0.9;
}

.recentre-hub__step-card-title {
  display: block;
  position: relative;
  z-index: 1;
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--step-accent);
  letter-spacing: -0.02em;
}

.recentre-hub__step-icons {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.recentre-hub__step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.recentre-hub__step-icon--check {
  background: var(--step-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.recentre-hub__step-icon--current {
  background: #fff;
  border: none;
  box-shadow: 0 0 0 2px var(--step-accent);
  box-sizing: border-box;
}

.recentre-hub__step-icon-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--step-accent);
}

.recentre-hub__step-icon--lock {
  background: #f8f8f8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  opacity: 0.78;
}

.recentre-hub__step-icon--form {
  background: #fff;
  color: var(--step-accent);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.recentre-hub__step-icon--form svg {
  display: block;
}

.recentre-hub__step-weeks {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--step-weeks-fg);
  margin: 0;
}

.recentre-hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  margin-top: 8px;
  line-height: 1.2;
  min-height: 38px;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.recentre-hub__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(45, 90, 39, 0.16);
}
.recentre-hub__btn:focus-visible {
  outline: 2px solid #2d5a27;
  outline-offset: 2px;
}
.recentre-hub__btn--primary {
  background: var(--rh-pink-dark);
  color: #fff;
}
.recentre-hub__btn--sm {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 30px;
  margin-top: 0;
  border-radius: 8px;
}
.recentre-hub__card-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.recentre-hub a.recentre-hub__btn--primary,
.recentre-hub a.recentre-hub__btn--primary:visited,
.recentre-hub a.recentre-hub__btn--primary:hover,
.recentre-hub a.recentre-hub__btn--primary:focus-visible {
  color: #fff !important;
}
.recentre-hub__btn--primary * {
  color: inherit !important;
}
.recentre-hub__btn--primary:hover,
.recentre-hub__btn--primary:focus-visible {
  background: #244f22;
  color: #fff;
}
.recentre-hub__btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.recentre-hub__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

/* ----- Program Steps list ----- */
.recentre-hub__steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recentre-hub__steps-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--rh-radius-sm);
  margin-bottom: 10px;
  background: #f9f9f9;
  border: 1px solid var(--rh-border);
}
.recentre-hub__steps-list-item--active {
  background: var(--rh-pink-bg);
  border-color: var(--rh-pink);
}
.recentre-hub__steps-list-item--locked {
  opacity: 0.8;
}
.recentre-hub__steps-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rh-pink-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.recentre-hub__steps-lock {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}
.recentre-hub__steps-list-content {
  flex: 1;
  min-width: 0;
}
.recentre-hub__steps-list-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.recentre-hub__steps-list-desc {
  margin: 0;
  font-size: 14px;
  color: var(--rh-text-muted);
}
.recentre-hub__chevron {
  font-size: 18px;
  color: var(--rh-pink-dark);
}

/* ----- Daily Affirmation ----- */
.recentre-hub__affirmation {
  background: var(--rh-pink-bg);
  border-color: rgba(0, 0, 0, 0.06);
  padding: 18px 24px;
}
.recentre-hub__affirmation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.recentre-hub__affirmation-title {
  color: var(--rh-text);
  margin: 0;
  flex: 1;
}
.recentre-hub__affirmation-refresh {
  width: var(--rh-hub-icon-btn-size);
  height: var(--rh-hub-icon-btn-size);
  min-width: var(--rh-hub-icon-btn-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: none;
  box-sizing: border-box;
  background: var(--rh-hub-icon-btn-fill);
  color: var(--rh-hub-icon-btn-color) !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: none;
}

/* Resources carousel: smaller, light controls (left-aligned in partial) */
.recentre-hub__resources-arrow {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-sizing: border-box;
  background: #fbfbfc;
  color: rgba(0, 0, 0, 0.38) !important;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.recentre-hub__resources-arrow svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.recentre-hub__affirmation-refresh:hover,
.recentre-hub__affirmation-refresh:focus-visible {
  background: var(--rh-hub-icon-btn-fill);
  color: var(--rh-hub-icon-btn-color) !important;
  transform: none;
  box-shadow: none;
}

.recentre-hub__resources-arrow:hover,
.recentre-hub__resources-arrow:focus-visible {
  background: #f3f4f6;
  color: rgba(0, 0, 0, 0.55) !important;
  transform: none;
  box-shadow: none;
  outline: none;
}

.recentre-hub__resources-arrow:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.recentre-hub__resources-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.recentre-hub__affirmation-quote {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.4;
  color: #53947c;
  text-align: left !important;
}
.recentre-hub__affirmation-quote::before {
  content: none;
}
.recentre-hub__affirmation-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.recentre-hub__affirmation-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}
.recentre-hub__affirmation-dots span.active {
  background: var(--rh-pink-dark);
}

/* ----- Habit Trends (habit-trends partial) ----- */
.recentre-hub__habit-trends-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.recentre-hub__toggle {
  display: inline-flex;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0;
}
.recentre-hub__toggle-btn {
  padding: 4px 10px;
  border: 1px solid #cad8d1 !important;
  border-radius: 999px;
  background: transparent !important;
  color: #53947c !important;
  font-size: 12px !important;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.recentre-hub__toggle-btn.active {
  background: transparent !important;
  color: #2d5a27 !important;
  border-color: #2d5a27 !important;
  box-shadow: none !important;
}
.recentre-hub__toggle-btn:hover,
.recentre-hub__toggle-btn:focus-visible {
  background: transparent !important;
  color: #2d5a27 !important;
  border-color: #2d5a27 !important;
}
.recentre-hub__habit-trends-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.recentre-hub__habit-trends-card {
  border-radius: var(--rh-radius);
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: var(--rh-shadow);
  background: #fff;
  border: 1px solid var(--rh-border);
}
.recentre-hub__habit-trends-media {
  border-radius: var(--rh-radius) var(--rh-radius) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.recentre-hub__habit-trends-banner {
  position: relative;
  min-height: 128px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.recentre-hub__habit-trends-banner .recentre-hub__habit-trends-check {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
  opacity: 1;
}
.recentre-hub__habit-trends-banner-bar {
  height: 6px;
  flex-shrink: 0;
}
.recentre-hub__habit-trends-card--pink .recentre-hub__habit-trends-banner-bar {
  background: var(--rh-progress);
}
.recentre-hub__habit-trends-card--blue .recentre-hub__habit-trends-banner-bar {
  background: var(--rh-blue-dark);
}
.recentre-hub__habit-trends-card--purple
  .recentre-hub__habit-trends-banner-bar {
  background: var(--rh-purple-dark);
}
.recentre-hub__habit-trends-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom-left-radius: var(--rh-radius);
  border-bottom-right-radius: var(--rh-radius);
}
.recentre-hub__habit-trends-card--pink .recentre-hub__habit-trends-card-body {
  background: var(--rh-pink-bg);
}
.recentre-hub__habit-trends-card--blue .recentre-hub__habit-trends-card-body {
  background: var(--rh-blue-bg);
}
.recentre-hub__habit-trends-card--purple .recentre-hub__habit-trends-card-body {
  background: var(--rh-purple-bg);
}
/* Legacy: emoji badge when no banner is present */
.recentre-hub__habit-trends-card > .recentre-hub__habit-trends-check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}
.recentre-hub__habit-trends-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.recentre-hub__ideal-tip {
  position: relative;
  flex-shrink: 0;
  margin-top: -2px;
}
.recentre-hub__ideal-tip-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #bfbfbf;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rh-text-muted);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.recentre-hub__ideal-tip-trigger:hover,
.recentre-hub__ideal-tip-trigger:focus-visible {
  border-color: var(--rh-text);
  color: var(--rh-text);
  outline: none;
}
.recentre-hub__ideal-tip-trigger:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}
.recentre-hub__ideal-tip-popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(300px, 78vw);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--rh-text);
  background: #fff;
  border: 1px solid var(--rh-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.recentre-hub__ideal-tip:hover .recentre-hub__ideal-tip-popup,
.recentre-hub__ideal-tip:focus-within .recentre-hub__ideal-tip-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .recentre-hub__ideal-tip-popup {
    transition: none;
  }
}
.recentre-hub__habit-trends-check--blue,
.recentre-hub__habit-trends-check--purple {
  opacity: 1;
}
.recentre-hub__habit-trends-label {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.recentre-hub__habit-trends-value {
  font-size: 28px;
  margin: 0 0 8px;
}
.recentre-hub__habit-trends-value strong {
  color: var(--rh-pink-dark);
}
.recentre-hub__habit-trends-value span {
  font-size: 16px;
  color: var(--rh-text-muted);
  font-weight: 400;
}
.recentre-hub__habit-trends-value--blue strong {
  color: var(--rh-blue-dark);
}
.recentre-hub__habit-trends-value--purple strong {
  color: var(--rh-purple-dark);
}
.recentre-hub__habit-trends-meta {
  font-size: 12px;
  color: var(--rh-text-muted);
  margin-top: auto;
  padding-top: 10px;
  margin-bottom: 0;
}

/* ----- Additional Resources: carousel + arrows (dots match affirmation row) ----- */
.recentre-hub__resources-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  flex-wrap: wrap;
}

.recentre-hub__resources-pagination-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0;
  border: 0 !important;
  cursor: pointer;
  line-height: 0;
  color: inherit;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

.recentre-hub__resources-pagination-btn:hover,
.recentre-hub__resources-pagination-btn:active {
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

.recentre-hub__resources-pagination-btn:focus {
  outline: none;
  background: transparent !important;
}

.recentre-hub__resources-pagination-btn:focus-visible {
  outline: 2px solid var(--rh-pink-dark);
  outline-offset: 2px;
  border-radius: 4px;
  background: transparent !important;
}

/* Inner dot colours (neutral + active sage); overrides theme span/button tinting */
.recentre-hub__resources-pagination-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.recentre-hub__resources-pagination
  .is-active
  .recentre-hub__resources-pagination-dot {
  background: var(--rh-pink-dark) !important;
  background-image: none !important;
}

.recentre-hub__resources-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.recentre-hub__resources-heading-text {
  min-width: 0;
}

.recentre-hub__resources-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.recentre-hub__resources-scroll {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.recentre-hub__resources-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.recentre-hub__resources-scroll:focus-visible {
  outline: 2px solid rgba(45, 90, 39, 0.55);
  outline-offset: 4px;
}

.recentre-hub__resources-slide {
  flex: 0 0 clamp(260px, 72vw, 320px);
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.recentre-hub__resources-slide > .recentre-hub__resource-card {
  margin: 0;
  border-radius: var(--rh-radius);
  padding: 0;
  min-height: 320px;
  height: 100%;
  overflow: hidden;
}

.recentre-hub__resource-card {
  border-radius: var(--rh-radius);
  padding: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rh-border);
  box-shadow: var(--rh-shadow);
}
.recentre-hub__resource-media {
  border-radius: var(--rh-radius) var(--rh-radius) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.recentre-hub__resource-card--pink,
.recentre-hub__resource-card--blue,
.recentre-hub__resource-card--purple {
  background: #fff;
}
.recentre-hub__resource-banner {
  position: relative;
  min-height: 136px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.recentre-hub__resource-banner-bar {
  height: 8px;
  flex-shrink: 0;
}
.recentre-hub__resource-card--pink .recentre-hub__resource-banner-bar {
  background: var(--rh-progress);
}
.recentre-hub__resource-card--blue .recentre-hub__resource-banner-bar {
  background: var(--rh-blue-dark);
}
.recentre-hub__resource-card--purple .recentre-hub__resource-banner-bar {
  background: var(--rh-purple-dark);
}
.recentre-hub__resource-type {
  align-self: flex-end;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin: 12px 12px 0;
}
.recentre-hub__resource-type--on-banner {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.recentre-hub__resource-type--on-banner.recentre-hub__resource-type--video {
  border: 2px solid var(--rh-pink-dark);
  color: var(--rh-pink-dark) !important;
}
.recentre-hub__resource-type--on-banner.recentre-hub__resource-type--article {
  border: 2px solid var(--rh-blue-dark);
  color: var(--rh-blue-dark) !important;
}
.recentre-hub__resource-type--on-banner.recentre-hub__resource-type--guide {
  border: 2px solid var(--rh-purple-dark);
  color: var(--rh-purple-dark) !important;
}
.recentre-hub__resource-type--video:not(
  .recentre-hub__resource-type--on-banner
) {
  background: var(--rh-pink-dark);
  color: #fff;
}
.recentre-hub__resource-type--article:not(
  .recentre-hub__resource-type--on-banner
) {
  background: var(--rh-blue-dark);
  color: #fff;
}
.recentre-hub__resource-type--guide:not(
  .recentre-hub__resource-type--on-banner
) {
  background: var(--rh-purple-dark);
  color: #fff;
}
.recentre-hub__resource-card-inner {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.recentre-hub__resource-card--pink .recentre-hub__resource-card-inner {
  background: var(--rh-pink-bg);
}
.recentre-hub__resource-card--blue .recentre-hub__resource-card-inner {
  background: var(--rh-blue-bg);
}
.recentre-hub__resource-card--purple .recentre-hub__resource-card-inner {
  background: var(--rh-purple-bg);
}
.recentre-hub__resource-category {
  font-size: 14px;
  margin: 0 0 6px;
}
.recentre-hub__resource-card--pink .recentre-hub__resource-category {
  color: var(--rh-pink-dark);
}
.recentre-hub__resource-card--blue .recentre-hub__resource-category {
  color: var(--rh-blue-dark);
}
.recentre-hub__resource-card--purple .recentre-hub__resource-category {
  color: var(--rh-purple-dark);
}
.recentre-hub__resource-duration {
  color: var(--rh-text-muted);
  font-weight: 400;
}
.recentre-hub h3.recentre-hub__resource-title,
.recentre-hub .recentre-hub__resource-title {
  font-size: 18px !important;
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.3;
}
.recentre-hub__resource-desc {
  font-size: 14px;
  color: var(--rh-text-muted);
  margin: 0 0 14px;
  flex: 1;
  line-height: 1.4;
}
.recentre-hub__resource-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    opacity 0.15s ease,
    background-color 0.15s ease;
}

.recentre-hub__resource-card--pink .recentre-hub__resource-cta {
  color: #c7667a !important;
  border-color: rgba(232, 113, 138, 0.35);
  background: rgba(255, 255, 255, 0.7);
}

.recentre-hub__resource-card--blue .recentre-hub__resource-cta {
  color: #5081a0 !important;
  border-color: rgba(90, 155, 196, 0.32);
  background: rgba(255, 255, 255, 0.72);
}

.recentre-hub__resource-card--purple .recentre-hub__resource-cta {
  color: #756787 !important;
  border-color: rgba(143, 123, 168, 0.3);
  background: rgba(255, 255, 255, 0.72);
}

.recentre-hub__resource-cta:hover {
  opacity: 0.92;
  filter: none;
}

.recentre-hub__resource-cta:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.15);
  outline-offset: 2px;
}
.recentre-hub .screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
}

.recentre-hub__footer-meta {
  font-size: 14px;
  color: var(--rh-text-muted);
  margin: 0;
  padding-top: 8px;
}

/* ----- Sidebar sub-menu (details/summary, no JS) ----- */
.recentre-hub__sidebar .recentre-hub__menu-item--journal-wrap {
  margin-bottom: 2px;
}
.recentre-hub__sidebar .recentre-hub__menu-details {
  margin-bottom: 0;
}
.recentre-hub__sidebar .recentre-hub__menu-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--rh-sidebar-purple) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
  -webkit-user-select: none;
  user-select: none;
}
.recentre-hub__sidebar
  .recentre-hub__menu-details
  > summary
  .recentre-hub__menu-icon {
  color: var(--rh-sidebar-purple);
}
.recentre-hub__sidebar
  .recentre-hub__menu-details
  > summary
  .recentre-hub__menu-summary-chevron {
  color: var(--rh-sidebar-purple);
  font-weight: 600;
}
.recentre-hub__menu-details > summary::-webkit-details-marker {
  display: none;
}
.recentre-hub__menu-details > summary::marker {
  content: "";
}
.recentre-hub__sidebar .recentre-hub__menu-details > summary:hover,
.recentre-hub__sidebar .recentre-hub__menu-details > summary:focus-visible {
  background: #f3f4f9;
  color: var(--rh-sidebar-purple) !important;
}
.recentre-hub__sidebar .recentre-hub__menu-details > summary:focus-visible {
  outline: 2px solid rgba(155, 163, 208, 0.45);
  outline-offset: 1px;
}
.recentre-hub__sidebar .recentre-hub__menu-details[open] > summary {
  background: #f7f8fb;
  font-weight: 600;
}
.recentre-hub__sidebar .recentre-hub__menu-details[open] > summary:hover {
  background: #f1f2f8;
  color: var(--rh-sidebar-purple) !important;
}
.recentre-hub__sidebar .recentre-hub__menu-details--active > summary {
  font-weight: 600;
}

/* Chevron indicator */
.recentre-hub__menu-summary-chevron {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s;
}
.recentre-hub__sidebar
  .recentre-hub__menu-details[open]
  .recentre-hub__menu-summary-chevron {
  transform: rotate(90deg);
}

/* Sub-items — journal palette */
.recentre-hub__sidebar .recentre-hub__submenu {
  list-style: none;
  margin: 2px 0 4px 12px;
  padding: 0 0 0 8px;
  border-left: 2px solid rgba(155, 163, 208, 0.35);
}
.recentre-hub__sidebar .recentre-hub__submenu-item {
  margin-bottom: 2px;
}
.recentre-hub__sidebar .recentre-hub__submenu-link {
  display: block;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rh-sidebar-purple) !important;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.recentre-hub__sidebar .recentre-hub__submenu-link:hover,
.recentre-hub__sidebar .recentre-hub__submenu-link:focus-visible {
  background: #f3f4f9;
  color: var(--rh-sidebar-purple) !important;
}
.recentre-hub__sidebar
  .recentre-hub__submenu-item--active
  .recentre-hub__submenu-link {
  background: #edeef7;
  font-weight: 600;
}

/* ----- Disabled nav item (Chat Assistant — coming soon) ----- */
.recentre-hub__menu-item--disabled .recentre-hub__menu-link,
.recentre-hub__menu-link--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.recentre-hub__badge--soon {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: #e5e7f3;
  color: var(--rh-sidebar-purple);
  letter-spacing: 0.04em;
  border: 1px solid #e3e5f2;
}

/* ----- Nav section divider ----- */
.recentre-hub__nav-divider {
  border: none;
  border-top: 1px solid #d8e6d9;
  margin: 9px 10px;
}

/* ----- Hamburger button (hidden on desktop) ----- */
.recentre-hub__sidebar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--rh-radius-sm);
  flex-shrink: 0;
}
.recentre-hub__sidebar-toggle:hover {
  background: var(--rh-pink-bg);
}
.recentre-hub__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.recentre-hub__hamburger span {
  display: block;
  height: 2px;
  background: var(--rh-text);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
/* X state when sidebar open */
.recentre-hub--sidebar-open .recentre-hub__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.recentre-hub--sidebar-open .recentre-hub__hamburger span:nth-child(2) {
  opacity: 0;
}
.recentre-hub--sidebar-open .recentre-hub__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* Sidebar + grid layout: inset from viewport to match inner main gutter (desktop / tablet only) */
@media (min-width: 769px) {
  .recentre-hub {
    padding-left: var(--rh-shell-inset);
    padding-top: var(--rh-shell-inset);
  }
}

/* Tablet: allow step tiles to wrap, habit cards single col */
@media (max-width: 1024px) {
  .recentre-hub__layout {
    flex-direction: column;
  }
  .recentre-hub__steps-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .recentre-hub__habit-trends-cards {
    grid-template-columns: 1fr;
  }
}

/* Mobile: off-canvas sidebar, scrollable single-column layout */
@media (max-width: 768px) {
  /* Kill the fixed-height grid — switch to normal flow */
  .recentre-hub {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  body.recentre-hub-page {
    overflow: auto;
  }

  /* Topbar spans full width, show hamburger */
  .recentre-hub__sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .recentre-hub__topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
  }

  /* Off-canvas sidebar */
  .recentre-hub__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(300px, 88vw);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    border-right: 1px solid var(--rh-sidebar-border);
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }
  .recentre-hub--sidebar-open .recentre-hub__sidebar {
    transform: translateX(0);
  }

  .recentre-hub__logo-strip {
    border-radius: 0;
  }

  /* Overlay behind open sidebar */
  .recentre-hub__sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 190;
  }
  .recentre-hub--sidebar-open .recentre-hub__sidebar-overlay {
    display: block;
  }

  /* Main content full width */
  .recentre-hub__main {
    padding: 16px;
  }

  /* Card adjustments */
  .recentre-hub__steps-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .recentre-hub__card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .recentre-hub__habit-trends-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .recentre-hub__topbar-inner {
    gap: 8px;
  }
  .recentre-hub__user-step {
    display: none; /* save space — step shown in sidebar */
  }
}

/* =====================================================================
   Lessons Panel
   ===================================================================== */

.recentre-hub__panel-lessons .recentre-hub__lessons-progress {
  margin: 8px 0 16px;
}

.recentre-hub__lessons-empty {
  padding: 24px 0;
  color: var(--rh-text-muted);
  font-size: 0.95rem;
}

.recentre-hub__lessons-cta {
  margin-top: 20px;
}

/* --- Accordion wrapper --- */
.recentre-hub__lessons-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* --- Program course / step group --- */
.recentre-hub__program-course {
  --rh-program-accent: #53947c;
  --rh-program-accent-soft: #f4f7f6;
  --rh-program-accent-border: #cedad5;
  border: 1px solid var(--rh-program-accent-border);
  border-radius: var(--rh-radius);
  background: #fff;
  overflow: hidden;
}
.recentre-hub__program-course[open] {
  border-color: var(--rh-program-accent);
  box-shadow: inset 0 4px 0 var(--rh-program-accent);
}
.recentre-hub__program-course--step-1 {
  --rh-program-accent: #9d9dce;
  --rh-program-accent-soft: #f7f7fb;
  --rh-program-accent-border: #ddddec;
}
.recentre-hub__program-course--step-2 {
  --rh-program-accent: #fbae68;
  --rh-program-accent-soft: #fff8f5;
  --rh-program-accent-border: #fde2d1;
}
.recentre-hub__program-course--step-3 {
  --rh-program-accent: #42b768;
  --rh-program-accent-soft: #f4f9f5;
  --rh-program-accent-border: #cce4d1;
}
.recentre-hub__program-course--step-4 {
  --rh-program-accent: #e36a8d;
  --rh-program-accent-soft: #fcf5f7;
  --rh-program-accent-border: #f4d1d9;
}
.recentre-hub__program-course + .recentre-hub__program-course {
  margin-top: 10px;
}
.recentre-hub__program-course-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #252525;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.recentre-hub__program-course-summary:hover {
  background: var(--rh-program-accent);
  color: #fff;
}
.recentre-hub__program-course-summary:focus-visible {
  outline: 2px solid var(--rh-program-accent);
  outline-offset: 2px;
}
.recentre-hub__program-course-summary::-webkit-details-marker {
  display: none;
}
.recentre-hub__program-course-summary::marker {
  display: none;
}
.recentre-hub__program-course-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rh-program-accent);
  border: 1px solid var(--rh-program-accent-border);
  background: #fff;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.recentre-hub__program-course[open]
  > .recentre-hub__program-course-summary
  .recentre-hub__program-course-chevron {
  transform: rotate(90deg);
}
.recentre-hub__program-course-title {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.recentre-hub__program-course-title-main {
  color: #252525;
  font-weight: 700;
  line-height: 1.25;
}
.recentre-hub__program-course-title-sub {
  color: #6a6a6a;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.25;
}
.recentre-hub__program-course-summary:hover
  .recentre-hub__program-course-title-main,
.recentre-hub__program-course-summary:hover
  .recentre-hub__program-course-title-sub {
  color: #fff;
}
.recentre-hub__program-course-count {
  min-width: 44px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rh-program-accent-soft);
  color: var(--rh-program-accent);
  font-size: 13px;
  font-weight: 700;
}
.recentre-hub__program-course-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

/* --- Section <details> block (week rows — inherit --rh-program-accent from parent step) --- */
.recentre-hub__lesson-section {
  --rh-program-accent: #53947c;
  --rh-surface-7: #f8f9f9;
  --rh-surface-10: #f4f7f6;
  --rh-surface-12: #f2f5f4;
  --rh-surface-14: #f0f4f2;
  --rh-surface-20: #e9efec;
  --rh-surface-22: #e7edea;
  --rh-surface-24: #e5ebe8;
  --rh-surface-38: #d3ded9;
  --rh-surface-42: #cedad5;
  --rh-chevron-muted: #5c8273;
  border: 1px solid var(--rh-surface-24);
  border-radius: var(--rh-radius-sm);
  overflow: hidden;
  background: #fff;
}
.recentre-hub__lesson-section--done {
  background: var(--rh-surface-10);
  border-color: var(--rh-surface-42);
}
.recentre-hub__lesson-section[open] {
  border-color: var(--rh-surface-42);
  box-shadow: inset 0 3px 0 var(--rh-program-accent);
}

/* --- Section <summary> header --- */
.recentre-hub__lesson-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rh-program-accent);
  background: var(--rh-surface-7);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.recentre-hub__lesson-section-header:hover {
  background: var(--rh-program-accent);
  color: #fff;
}
.recentre-hub__lesson-section-header:focus-visible {
  outline: 2px solid var(--rh-program-accent);
  outline-offset: 2px;
}
.recentre-hub__lesson-section-header::-webkit-details-marker {
  display: none;
}
.recentre-hub__lesson-section-header::marker {
  display: none;
}
.recentre-hub__lesson-section--done .recentre-hub__lesson-section-header {
  color: var(--rh-program-accent);
}
/* Completed rows: `--done … header` ties base `:hover`; force white labels on accent hover */
.recentre-hub
  .recentre-hub__lesson-section--done
  .recentre-hub__lesson-section-header:hover {
  color: #fff !important;
}
.recentre-hub
  .recentre-hub__lesson-section-header:hover
  .recentre-hub__lesson-section-title {
  color: #fff !important;
}
.recentre-hub__lesson-section-header:hover
  .recentre-hub__lesson-section-chevron,
.recentre-hub__lesson-section-header:hover .recentre-hub__lesson-section-count {
  color: #fff;
}
.recentre-hub__lesson-section-header:hover .recentre-hub__lesson-section-count {
  background: rgba(255, 255, 255, 0.22);
}

/* Title-driven week bands — same tokens as course curriculum (data-recentre-week-band). */
.recentre-hub__lesson-section[data-recentre-week-band="intro"] {
  --rh-program-accent: #53947c;
  --rh-surface-7: #f8f9f9;
  --rh-surface-10: #f4f7f6;
  --rh-surface-12: #f2f5f4;
  --rh-surface-14: #f0f4f2;
  --rh-surface-20: #e9efec;
  --rh-surface-22: #e7edea;
  --rh-surface-24: #e5ebe8;
  --rh-surface-38: #d3ded9;
  --rh-surface-42: #cedad5;
  --rh-chevron-muted: #5c8273;
}
.recentre-hub__lesson-section[data-recentre-week-band="w1-3"] {
  --rh-program-accent: #9d9dce;
  --rh-surface-7: #fafafc;
  --rh-surface-10: #f7f7fb;
  --rh-surface-12: #f6f6fa;
  --rh-surface-14: #f4f4f9;
  --rh-surface-20: #f0f0f6;
  --rh-surface-22: #eeeef5;
  --rh-surface-24: #ececf4;
  --rh-surface-38: #e0e0ee;
  --rh-surface-42: #ddddec;
  --rh-chevron-muted: #8888a9;
}
.recentre-hub__lesson-section[data-recentre-week-band="w4-6"] {
  --rh-program-accent: #fbae68;
  --rh-surface-7: #fffaf8;
  --rh-surface-10: #fff8f5;
  --rh-surface-12: #fff7f3;
  --rh-surface-14: #fef6f1;
  --rh-surface-20: #fef2eb;
  --rh-surface-22: #fef0e8;
  --rh-surface-24: #feefe6;
  --rh-surface-38: #fde5d6;
  --rh-surface-42: #fde2d1;
  --rh-chevron-muted: #ca9367;
}
.recentre-hub__lesson-section[data-recentre-week-band="w7-9"] {
  --rh-program-accent: #42b768;
  --rh-surface-7: #f7fbf8;
  --rh-surface-10: #f4f9f5;
  --rh-surface-12: #f2f8f3;
  --rh-surface-14: #f0f7f1;
  --rh-surface-20: #e9f3eb;
  --rh-surface-22: #e6f2e8;
  --rh-surface-24: #e4f0e6;
  --rh-surface-38: #d1e7d6;
  --rh-surface-42: #cce4d1;
  --rh-chevron-muted: #559967;
}
.recentre-hub__lesson-section[data-recentre-week-band="w10-12"] {
  --rh-program-accent: #e36a8d;
  --rh-surface-7: #fdf8f9;
  --rh-surface-10: #fcf5f7;
  --rh-surface-12: #fcf3f5;
  --rh-surface-14: #fbf1f3;
  --rh-surface-20: #faebee;
  --rh-surface-22: #f9e9ec;
  --rh-surface-24: #f9e6ea;
  --rh-surface-38: #f5d6dd;
  --rh-surface-42: #f4d1d9;
  --rh-chevron-muted: #b9687d;
}

.recentre-hub__lesson-section-chevron {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--rh-chevron-muted);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  transform: rotate(0deg);
  flex-shrink: 0;
}
.recentre-hub__lesson-section[open]
  > .recentre-hub__lesson-section-header
  .recentre-hub__lesson-section-chevron {
  transform: rotate(90deg);
}

.recentre-hub__lesson-section-title {
  flex: 1;
}

.recentre-hub__lesson-section-meta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
}
.recentre-hub__lesson-section-count {
  color: var(--rh-program-accent);
  background: var(--rh-surface-14);
  padding: 2px 8px;
  border-radius: 20px;
}
.recentre-hub__lesson-section-badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.recentre-hub__lesson-section-badge--done {
  background: var(--rh-pink);
  color: #fff;
}

/* --- Lesson list --- */
.recentre-hub__lesson-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  border-top: none;
}
.recentre-hub__lesson-section--done .recentre-hub__lesson-list {
  border-top-color: transparent;
}

.recentre-hub__lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 16px;
  border-bottom: none;
  color: #4a4a4a;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.recentre-hub__lesson-item:hover {
  background: var(--rh-program-accent);
  color: #fff;
}
.recentre-hub__lesson-item:hover .recentre-hub__lesson-icon {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.recentre-hub__lesson-item--done:hover {
  background: var(--rh-surface-12);
  color: #4a4a4a;
}
.recentre-hub__lesson-item--done:hover .recentre-hub__lesson-icon {
  background: var(--rh-pink);
  color: #fff;
}
.recentre-hub__lesson-item:last-child {
  border-bottom: none;
}
.recentre-hub__lesson-item--done {
  color: #4a4a4a;
}

.recentre-hub__lesson-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f0f0f0;
  color: var(--rh-text-muted);
}
.recentre-hub__lesson-item--done .recentre-hub__lesson-icon {
  background: var(--rh-pink);
  color: #fff;
}

.recentre-hub__lesson-title {
  flex: 1;
  line-height: 1.4;
  font-size: 16px;
  font-weight: 500;
  color: #4a4a4a;
}

.recentre-hub .recentre-hub__lesson-link,
.recentre-hub .recentre-hub__lesson-link:visited {
  color: #4a4a4a !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px !important;
}
.recentre-hub .recentre-hub__lesson-link:hover {
  color: #fff !important;
  text-decoration: none;
}
.recentre-hub__program-course .recentre-hub__lesson-link:focus-visible {
  outline: 2px solid var(--rh-program-accent);
  outline-offset: 2px;
  border-radius: 3px;
  color: var(--rh-program-accent) !important;
  text-decoration: none;
}
.recentre-hub__lesson-item:hover .recentre-hub__lesson-link,
.recentre-hub__lesson-item:hover .recentre-hub__lesson-link:focus-visible {
  color: #fff !important;
}

/* =====================================================================
   Contact / Participant Support Panel
   ===================================================================== */

.recentre-hub__panel-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Emergency banner */
.recentre-hub__contact-emergency-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff3cd;
  border: 1px solid #f0c060;
  border-left: 4px solid #e8a020;
  border-radius: var(--rh-radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #5c4000;
}
.recentre-hub__contact-emergency-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.recentre-hub__contact-emergency-banner p {
  margin: 0;
  font-size: 0.85rem;
}
.recentre-hub__contact-emergency-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Section card title */
.recentre-hub__contact-card {
  margin: 0;
}
.recentre-hub__contact-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rh-text-muted);
  margin: 0 0 12px;
}

/* Team contact */
.recentre-hub__contact-team-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.recentre-hub__contact-details {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recentre-hub__contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.recentre-hub__contact-detail-icon {
  color: var(--rh-pink);
  flex-shrink: 0;
}
.recentre-hub__contact-link {
  color: var(--rh-pink-dark);
  text-decoration: none;
  font-weight: 500;
}
.recentre-hub__contact-link:hover {
  text-decoration: underline;
}
.recentre-hub__contact-note {
  font-size: 0.82rem;
  color: var(--rh-text-muted);
  margin: 6px 0 0;
  border-top: 1px solid var(--rh-border);
  padding-top: 8px;
}
.recentre-hub__contact-placeholder {
  font-size: 0.88rem;
  color: var(--rh-text-muted);
  font-style: italic;
}

/* Support lines */
.recentre-hub__contact-support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recentre-hub__contact-support-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rh-border);
}
.recentre-hub__contact-support-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recentre-hub__contact-support-label {
  font-weight: 600;
  font-size: 0.9rem;
  grid-column: 1;
  grid-row: 1;
}
.recentre-hub__contact-support-note {
  font-size: 0.8rem;
  color: var(--rh-text-muted);
  margin: 0;
  grid-column: 1;
  grid-row: 2;
}
.recentre-hub__contact-support-number {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rh-pink-dark);
  text-decoration: none;
  white-space: nowrap;
}
.recentre-hub__contact-support-number:hover {
  text-decoration: underline;
}

/* FAQ accordion */
.recentre-hub__faq-list {
  display: flex;
  flex-direction: column;
}
.recentre-hub__faq-item {
  border-bottom: 1px solid var(--rh-border);
}
.recentre-hub__faq-item:last-child {
  border-bottom: none;
}
.recentre-hub__faq-question {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rh-text);
  -webkit-user-select: none;
  user-select: none;
}
.recentre-hub__faq-question::-webkit-details-marker {
  display: none;
}
.recentre-hub__faq-question::marker {
  display: none;
}
.recentre-hub__faq-chevron {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--rh-text-muted);
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}
.recentre-hub__faq-item[open]
  > .recentre-hub__faq-question
  .recentre-hub__faq-chevron {
  transform: rotate(90deg);
}
.recentre-hub__faq-answer {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--rh-text-muted);
  padding: 0 0 14px 20px;
  margin: 0;
}

/* =====================================================================
   Profile Panel
   ===================================================================== */

.recentre-hub__panel-profile {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Profile header card */
.recentre-hub__profile-header-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fff 0%, #f9fafa 100%);
}
.recentre-hub__profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #53947c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.recentre-hub__profile-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #252525;
}
.recentre-hub__profile-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--rh-text-muted);
  margin: 0;
}

/* Stats grid */
.recentre-hub__profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 12px;
}
.recentre-hub__profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f6f8f7;
  border: 1px solid #ecf0ee;
  border-radius: var(--rh-radius-sm);
  padding: 14px 10px;
  text-align: center;
}
.recentre-hub__profile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #2d5a27;
  line-height: 1;
  margin-bottom: 8px;
}
.recentre-hub__profile-stat-label {
  font-size: 11px;
  color: var(--rh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.recentre-hub__profile-start-date {
  font-size: 13px;
  color: var(--rh-text-muted);
  margin: 6px 0 0;
  border-top: 1px solid var(--rh-border);
  padding-top: 10px;
}

/* Account details dl */
.recentre-hub__profile-dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 18px;
  font-size: 14px;
  margin: 16px 0 12px;
}
.recentre-hub__profile-dl dt {
  font-weight: 600;
  color: var(--rh-text-muted);
}
.recentre-hub__profile-dl dd {
  margin: 0;
  color: #252525;
  font-weight: 500;
  word-break: break-word;
}
.recentre-hub__profile-readonly-note {
  font-size: 13px;
  color: var(--rh-text-muted);
  border-top: 1px solid var(--rh-border);
  padding-top: 10px;
  margin: 0;
}

/* Edit form */
.recentre-hub__profile-field {
  margin: 16px 0;
}
.recentre-hub__profile-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #252525;
}
.recentre-hub__profile-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid #e7edea;
  border-radius: var(--rh-radius-sm);
  font-size: 14px;
  font-family: var(--rh-font);
  color: #252525;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.recentre-hub__profile-input:focus {
  outline: none;
  border-color: #53947c;
  box-shadow: 0 0 0 3px rgba(106, 158, 118, 0.15);
}
.recentre-hub__profile-field-note {
  font-size: 13px;
  color: var(--rh-text-muted);
  margin: 6px 0 0;
}
.recentre-hub__profile-actions {
  margin-top: 4px;
}

/* Save indicator (reuses journal pattern) */
.recentre-hub__profile-save-indicator {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--rh-radius-sm);
  margin-bottom: 12px;
}
.recentre-hub__profile-save-indicator.is-saving {
  background: var(--rh-pink-bg);
  color: var(--rh-pink-dark);
}
.recentre-hub__profile-save-indicator.is-saved {
  background: #e8f5e9;
  color: #2e7d32;
}
.recentre-hub__profile-save-indicator.is-error {
  background: #fdecea;
  color: #c62828;
}

@media (max-width: 768px) {
  .recentre-hub__profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .recentre-hub__profile-dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .recentre-hub__profile-dl dt {
    margin-top: 8px;
  }
  .recentre-hub__contact-support-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .recentre-hub__contact-support-number {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.1rem;
    margin: 4px 0;
  }
  .recentre-hub__contact-support-note {
    grid-row: 3;
  }
}

/* ==========================================================================
   ONBOARDING — Needs Assessment gate
   ========================================================================== */

.recentre-hub--onboarding {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--rh-bg, #f4f6f4);
  font-family: "Inter", sans-serif;
}

.recentre-hub__onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e0e8e0;
}

.recentre-hub__onboarding-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rh-program-accent, #53947c);
}

.recentre-hub__onboarding-logout {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}
.recentre-hub__onboarding-logout:hover {
  color: var(--rh-program-accent, #53947c);
}

.recentre-hub__onboarding-main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 32px auto 64px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recentre-hub__onboarding-intro {
  text-align: center;
  padding: 32px 28px;
}

.recentre-hub__onboarding-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2e1a;
  margin: 0 0 12px;
}

.recentre-hub__onboarding-subtitle {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 8px;
}
.recentre-hub__onboarding-subtitle:last-child {
  margin-bottom: 0;
}

/* Domain cards */
.recentre-hub__na-domain {
  padding: 12px 16px;
}

/* Title + Yes/No on one row */
.recentre-hub__na-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recentre-hub__na-domain-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2e1a;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.recentre-hub__na-yesno {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.recentre-hub__na-yesno-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border: 2px solid #dde6db;
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  position: relative;
  z-index: 0;
}
/* Override any theme that hides or resets radio inputs */
.recentre-hub__na-yesno-option input[type="radio"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--rh-program-accent, #53947c);
}
.recentre-hub__na-yesno-option:has(input:checked) {
  border-color: var(--rh-program-accent, #53947c);
  background: color-mix(in srgb, var(--rh-program-accent, #53947c) 8%, #fff);
}

.recentre-hub__na-notes {
  margin-top: 8px;
}

.recentre-hub__na-notes-label {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 4px;
}

.recentre-hub__na-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dde6db;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  color: #333;
  resize: vertical;
  line-height: 1.4;
  transition: border-color 0.15s;
}
.recentre-hub__na-textarea:focus {
  outline: none;
  border-color: var(--rh-program-accent, #53947c);
}

/* Actions row */
.recentre-hub__na-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 16px;
}

.recentre-hub__na-submit {
  width: 100%;
  max-width: 360px;
  justify-content: center;
  font-size: 1rem;
}

/* Status notice */
.recentre-hub__na-notice {
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.recentre-hub__na-notice.is-saving {
  background: #f0f4f0;
  color: #555;
}
.recentre-hub__na-notice.is-error {
  background: #fdf0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

@media (max-width: 480px) {
  .recentre-hub__onboarding-main {
    margin-top: 20px;
  }
  .recentre-hub__na-domain {
    padding: 10px 12px;
  }
  .recentre-hub__na-domain-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .recentre-hub__onboarding-intro {
    padding: 24px 16px;
  }
}

/* ── Onboarding two-step stepper ───────────────────────────────────────── */

.recentre-hub__ob-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
}

.recentre-hub__ob-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.recentre-hub__ob-step-bubble {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.recentre-hub__ob-step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  transition: color 0.2s;
}

.recentre-hub__ob-step-check {
  display: none;
}

.recentre-hub__ob-step.is-active .recentre-hub__ob-step-bubble {
  background: var(--rh-green, #2d7a55);
  color: #fff;
}

.recentre-hub__ob-step.is-active .recentre-hub__ob-step-label {
  color: var(--rh-green, #2d7a55);
  font-weight: 600;
}

.recentre-hub__ob-step.is-done .recentre-hub__ob-step-bubble {
  background: var(--rh-green, #2d7a55);
  color: #fff;
}

.recentre-hub__ob-step.is-done .recentre-hub__ob-step-label {
  color: var(--rh-green, #2d7a55);
}

.recentre-hub__ob-step.is-done .recentre-hub__ob-step-n {
  display: none;
}

.recentre-hub__ob-step.is-done .recentre-hub__ob-step-check {
  display: block;
}

.recentre-hub__ob-connector {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 0.75rem;
  min-width: 1rem;
}

/* Step 2 locked state — dimmed and non-interactive until step 1 is done */
.recentre-hub__ob-section.is-locked {
  opacity: 0.45;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Ensure smooth reveal animation when is-locked is removed by JS */
.recentre-hub__ob-section {
  transition: opacity 0.3s ease;
}

/* Scroll offset so sticky header doesn't cover the section heading */
#rh-ob-section-2 {
  scroll-margin-top: 5rem;
}
