/* GFHG Hub Restyle: Direction A (Guided, light). Tokens from the GFHG design system. */
.gfhg-hub {
  --h-teal: #0a4d68; --h-teal-ink: #052b38; --h-cyan: #05bfdb; --h-plum: #7a1a4a;
  --h-abyss: #071518; --h-ink: #272626; --h-muted: #56636b; --h-line: #d8d8d8;
  --h-alt: #f5f5f5; --h-m1: #e2ebef; --h-m2: #d0e1e8; --h-m3: #bdd0d9;
  font-family: Roboto, system-ui, -apple-system, Arial, sans-serif;
  color: var(--h-ink);
  line-height: 1.5;
}
.gfhg-hub, .gfhg-hub *, .gfhg-hub *::before, .gfhg-hub *::after { box-sizing: border-box; }
.gfhg-hub a { text-decoration: none; }
.gfhg-hub a:focus-visible, .gfhg-hub button:focus-visible, .gfhg-hub input:focus-visible { outline: 3px solid rgba(5, 191, 219, .55); outline-offset: 3px; }
.gfhg-hub h1, .gfhg-hub h2 { color: var(--h-ink); }

.gfhg-hub-eyebrow { margin: 0; font-family: "Roboto Condensed", Roboto, "Arial Narrow", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; color: var(--h-teal); }
.gfhg-hub-rule { display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--h-cyan); }
.gfhg-hub-wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

/* Buttons */
.gfhg-hub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.gfhg-hub a.gfhg-hub-btn--primary { background: var(--h-teal); color: #fff; }
.gfhg-hub a.gfhg-hub-btn--primary:hover { background: var(--h-teal-ink); color: #fff; }
.gfhg-hub a.gfhg-hub-btn--ghost { border-color: var(--h-teal); color: var(--h-teal); background: transparent; }
.gfhg-hub a.gfhg-hub-btn--ghost:hover { background: var(--h-teal); color: #fff; }
.gfhg-hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Cards */
.gfhg-hub-card { background: var(--h-alt); border-radius: 18px; padding: 24px; }
.gfhg-hub-card--alt { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Hero: copy, search controls, and side card share one grid ---------- */
.gfhg-hub-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 40px; row-gap: 20px; width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; align-items: start; }
.gfhg-hub-hero__copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 18px; }
.gfhg-hub-hero__copy h1 { margin: 0; font-size: clamp(40px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -.055em; font-weight: 700; }
.gfhg-hub-hero__lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; }
.gfhg-hub-side { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.gfhg-hub-side__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.035em; }
.gfhg-hub-side__text { margin: 0; font-size: 15px; color: var(--h-ink); }
.gfhg-hub-side__meta { margin: 0 0 2px; font-size: 13px; color: var(--h-muted); }
.gfhg-hub-side .gfhg-hub-btn { align-self: flex-start; }
.gfhg-hub-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 190px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, var(--h-teal-ink), var(--h-abyss)); }
.gfhg-hub-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gfhg-hub-thumb__play { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 999px; background: var(--h-cyan); }
.gfhg-hub-thumb__time { position: absolute; right: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--h-abyss); color: #fff; font-size: 12px; font-weight: 500; }

/* Segmented progress: one bit per week, filled by completed week in any order */
.gfhg-hub-seg { display: flex; gap: 3px; }
.gfhg-hub-seg__bit { flex: 1; height: 10px; border-radius: 3px; background: var(--h-m2); }
.gfhg-hub-seg__bit.is-done { background: var(--h-teal); }
.gfhg-hub-seg__bit.is-current { box-shadow: inset 0 0 0 2px var(--h-teal); }

/* ---------- The Training Library search, wearing the hub skin ---------- */
.gfhg-hub-hero .gfhg-hub-skin { display: contents; }
.gfhg-hub-hero .gfhg-training-search { display: contents; }
.gfhg-hub-hero .gfhg-training-search__controls { grid-column: 1; grid-row: 2; }
.gfhg-hub-hero .gfhg-training-search__status { grid-column: 1 / -1; grid-row: 3; }
.gfhg-hub-hero .gfhg-training-search__results { grid-column: 1 / -1; grid-row: 4; }

.gfhg-hub-skin .gfhg-training-search { max-width: none; padding: 0; color: var(--h-ink); font-family: inherit; }
.gfhg-hub-skin .gfhg-training-search__controls { gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.gfhg-hub-skin .gfhg-training-search__search { min-height: 52px; border: 1.5px solid var(--h-line); border-radius: 999px; background: #fff; }
.gfhg-hub-skin .gfhg-training-search__search:focus-within { border-color: var(--h-teal); box-shadow: 0 0 0 3px rgba(5, 191, 219, .22); }
.gfhg-hub-skin .gfhg-training-search__search-icon { margin-left: 22px; }
.gfhg-hub-skin .gfhg-training-search__search input { height: 50px; padding: 0 52px 0 12px; font-size: 16px; }
.gfhg-hub-skin .gfhg-training-search__clear { right: 10px; border-radius: 999px; }
.gfhg-hub-skin .gfhg-training-search__filter legend { margin: 0 0 8px; padding: 0; font-family: "Roboto Condensed", Roboto, "Arial Narrow", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--h-muted); }
.gfhg-hub-skin .gfhg-training-search__filter-options { gap: 8px; }
.gfhg-hub-skin .gfhg-training-search__filter-options button { min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--h-line); background: #fff; color: var(--h-ink); font-size: 14px; font-weight: 500; }
.gfhg-hub-skin .gfhg-training-search__filter-options button:hover { border-color: var(--h-teal); }
.gfhg-hub-skin .gfhg-training-search__filter-options button[aria-pressed="true"] { border-color: var(--h-teal); background: var(--h-teal); color: #fff; }
/* With nothing chosen, "All" reads as selected (the library leaves it unpressed). */
.gfhg-hub-skin .gfhg-training-search__filter-options:not(:has(button[aria-pressed="true"])) button:first-child { border-color: var(--h-teal); background: var(--h-teal); color: #fff; }
.gfhg-hub-skin .gfhg-training-search__reset { min-height: 40px; padding: 4px 0; border: 0; background: none; color: var(--h-teal); font-size: 14px; font-weight: 600; text-decoration: underline; }
.gfhg-hub-skin .gfhg-training-search .gfhg-training-search__reset:hover,
.gfhg-hub-skin .gfhg-training-search .gfhg-training-search__reset:focus-visible { border: 0 !important; background: none !important; color: var(--h-teal-ink) !important; transform: none; }
.gfhg-hub-skin .gfhg-training-search__status { margin: 8px 0 0; color: var(--h-muted); }
.gfhg-hub-skin .gfhg-training-search__results { gap: 16px; }
.gfhg-hub-skin .gfhg-training-search__card { border: 0; border-radius: 18px; background: var(--h-alt); box-shadow: none; transform: none; }
.gfhg-hub-skin .gfhg-training-search__card:hover { box-shadow: none; transform: none; }
.gfhg-hub-skin .gfhg-training-search__thumbnail { border-radius: 12px; }
.gfhg-hub-skin .gfhg-training-search__copy h3 { color: var(--h-ink); letter-spacing: -.035em; }
.gfhg-hub-skin .gfhg-training-search__badge { background: #fff; color: var(--h-muted); font-weight: 500; }
.gfhg-hub-skin .gfhg-training-search__badge--program { background: var(--h-m1); color: var(--h-teal); font-weight: 700; }
.gfhg-hub-skin .gfhg-training-search__badge--new { background: var(--h-cyan); color: var(--h-abyss); }
.gfhg-hub-skin .gfhg-training-search__badge--featured { background: var(--h-abyss); color: #fff; }
.gfhg-hub-skin .gfhg-training-search__button { min-height: 46px; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.gfhg-hub-skin .gfhg-training-search__button--watch { background: var(--h-teal); color: #fff; }
.gfhg-hub-skin .gfhg-training-search__button--watch:hover { background: var(--h-teal-ink); }
.gfhg-hub-skin .gfhg-training-search__button--full,
.gfhg-hub-skin .gfhg-training-search__button--join { background: transparent; border: 1.5px solid var(--h-teal); color: var(--h-teal) !important; }
.gfhg-hub-skin .gfhg-training-search__button--full:hover,
.gfhg-hub-skin .gfhg-training-search__button--join:hover { background: var(--h-teal); color: #fff !important; }
.gfhg-hub-skin .gfhg-training-search__resource-links a { color: var(--h-teal); }
.gfhg-hub-skin .gfhg-training-search__resource-links { border-top-color: var(--h-m2); }

/* ---------- Path band ---------- */
/* Full-width tint without breaking out of the theme container: the shadow paints sideways, clip-path trims it. */
.gfhg-hub-band { width: min(1160px, calc(100% - 32px)); padding: 56px 0; margin: 24px auto; }
.gfhg-hub-band--mist { background: var(--h-m1); box-shadow: 0 0 0 100vmax var(--h-m1); clip-path: inset(0 -100vmax); }
.gfhg-hub-path { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.gfhg-hub-path__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gfhg-hub-path__copy h2 { margin: 0; font-size: clamp(30px, 3.4vw, 35px); line-height: 1.12; letter-spacing: -.04em; font-weight: 700; }
.gfhg-hub-path__copy p:not(.gfhg-hub-eyebrow) { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.6; }
.gfhg-hub-path__weeks { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; background: #fff; }
.gfhg-hub-path__phase { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--h-teal); }
.gfhg-hub-path__row { display: flex; flex-wrap: wrap; gap: 6px; }
.gfhg-hub-wk { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--h-m3); border-radius: 999px; color: var(--h-muted); font-size: 14px; font-weight: 700; }
.gfhg-hub-wk.is-done { border-color: var(--h-teal); background: var(--h-teal); color: #fff; }
.gfhg-hub-wk.is-current { border-color: var(--h-plum); background: var(--h-plum); color: #fff; }

/* Dark membership band */
.gfhg-hub-band--dark { background: var(--h-abyss); box-shadow: 0 0 0 100vmax var(--h-abyss); clip-path: inset(0 -100vmax); color: #fff; margin-bottom: 0; }
.gfhg-hub-band--dark h2, .gfhg-hub-band--dark .gfhg-hub-path__copy p { color: #fff; }
.gfhg-hub-band--dark .gfhg-hub-path__copy p { color: var(--h-m1); }
.gfhg-hub-path__actions { flex: 1 1 360px; margin-top: 0; }
.gfhg-hub a.gfhg-hub-btn--light { background: #fff; color: var(--h-abyss); }
.gfhg-hub a.gfhg-hub-btn--light:hover { background: var(--h-m1); color: var(--h-abyss); }
.gfhg-hub a.gfhg-hub-btn--outline-light { border-color: #fff; color: #fff; }
.gfhg-hub a.gfhg-hub-btn--outline-light:hover { background: #fff; color: var(--h-abyss); }

/* ---------- Programs and books ---------- */
.gfhg-hub-section { padding: 56px 0 16px; }
.gfhg-hub-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.gfhg-hub-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 35px); line-height: 1.12; letter-spacing: -.04em; font-weight: 700; }
.gfhg-hub-head p { margin: 0; max-width: 420px; font-size: 15px; color: var(--h-muted); }
.gfhg-hub-programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gfhg-hub-program, .gfhg-hub-book { display: flex; flex-direction: column; gap: 10px; min-height: 220px; color: var(--h-ink); }
.gfhg-hub-program.is-wide { grid-column: span 2; }
.gfhg-hub-program__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gfhg-hub-program__title { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.035em; }
.gfhg-hub-program__text { font-size: 15px; line-height: 1.6; max-width: 560px; }
.gfhg-hub-chip { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--h-plum); color: #fff; }
.gfhg-hub a.gfhg-hub-program:hover { box-shadow: 0 0 0 2px var(--h-cyan); }
.gfhg-hub-program.is-dark, .gfhg-hub-book.is-dark { background: var(--h-abyss); color: #fff; }
.gfhg-hub-book.is-dark { background: var(--h-teal-ink); }
.gfhg-hub-program.is-dark .gfhg-hub-eyebrow, .gfhg-hub-book.is-dark .gfhg-hub-eyebrow { color: var(--h-cyan); }
.gfhg-hub-program.is-dark .gfhg-hub-chip { background: #fff; color: var(--h-abyss); }
.gfhg-hub-program.is-dark .gfhg-hub-program__text, .gfhg-hub-book.is-dark .gfhg-hub-program__text { color: var(--h-m1); }
.gfhg-hub-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gfhg-hub-book { min-height: 0; }
.gfhg-hub-book.is-coming { background: transparent; border: 2px dashed var(--h-m3); }
.gfhg-hub-book.is-coming .gfhg-hub-eyebrow { color: var(--h-plum); }

/* ---------- Daily challenges ([gfhg_daily_challenges] from the Training Library) ---------- */
.gfhg-daily-challenges { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 8px; font-family: Roboto, system-ui, -apple-system, Arial, sans-serif; color: #272626; line-height: 1.5; }
.gfhg-daily-challenges, .gfhg-daily-challenges * { box-sizing: border-box; }
.gfhg-daily-challenges .gfhg-section-heading { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; justify-content: space-between; margin: 0 0 20px; }
.gfhg-daily-challenges .gfhg-section-heading h2 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.035em; font-weight: 700; color: #272626; }
.gfhg-daily-challenges .gfhg-section-heading > p { margin: 0; max-width: 420px; font-size: 15px; color: #56636b; }
.gfhg-daily-challenges .gfhg-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gfhg-daily-challenges a.gfhg-featured-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1.5px solid #d8d8d8; border-radius: 18px; background: #fff; color: #272626; text-decoration: none; }
.gfhg-daily-challenges a.gfhg-featured-card:hover { border-color: #0a4d68; }
.gfhg-daily-challenges .gfhg-featured-meta { font-family: "Roboto Condensed", Roboto, "Arial Narrow", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #0a4d68; }
.gfhg-daily-challenges .gfhg-featured-card strong { font-size: 20px; line-height: 1.25; letter-spacing: -.03em; }
.gfhg-daily-challenges .gfhg-featured-copy { font-size: 15px; line-height: 1.55; }
.gfhg-daily-challenges .gfhg-featured-link { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: #0a4d68; }
@media (max-width: 980px) { .gfhg-daily-challenges .gfhg-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gfhg-daily-challenges .gfhg-featured-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .gfhg-hub-hero { grid-template-columns: minmax(0, 1fr); max-width: 680px; padding-bottom: 32px; }
  .gfhg-hub-side--invite { display: none; }
  .gfhg-hub-hero__copy { grid-column: 1; grid-row: auto; order: 1; }
  .gfhg-hub-hero .gfhg-training-search__controls { grid-column: 1; grid-row: auto; order: 2; }
  .gfhg-hub-side { grid-column: 1; grid-row: auto; order: 3; }
  .gfhg-hub-hero .gfhg-training-search__status { grid-column: 1; grid-row: auto; order: 4; }
  .gfhg-hub-hero .gfhg-training-search__results { grid-column: 1; grid-row: auto; order: 5; }
  .gfhg-hub-programs, .gfhg-hub-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gfhg-hub-program.is-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .gfhg-hub-hero { padding-top: 16px; }
  .gfhg-hub-hero__lead { font-size: 16px; }
  .gfhg-hub-hero__copy h1 { font-size: 40px; }
  .gfhg-hub-band { padding: 40px 0; }
  .gfhg-hub-section { padding-top: 40px; }
  .gfhg-hub-programs, .gfhg-hub-books { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gfhg-hub-program.is-wide { grid-column: auto; }
  .gfhg-hub-program, .gfhg-hub-book { min-height: 0; }
  .gfhg-hub-program__title { font-size: 24px; }
  .gfhg-hub-btn { width: 100%; }
  .gfhg-hub-side .gfhg-hub-btn { align-self: stretch; }
  .gfhg-hub-thumb { height: 170px; }
  /* 17 topics: one swipeable row instead of a wall of pills */
  .gfhg-hub-skin .gfhg-training-search__filter[data-filter="topic"] .gfhg-training-search__filter-options { flex-wrap: nowrap; margin-inline: -16px; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: thin; }
  .gfhg-hub-skin .gfhg-training-search__filter[data-filter="topic"] button { flex: 0 0 auto; }
  .gfhg-hub-skin .gfhg-training-search__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gfhg-hub *, .gfhg-hub *::before, .gfhg-hub *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
