@layer pages {
/* Ownership: homepage presentation only.
   This file may refine homepage pathway cards, grids and hero composition.
   Shared card anatomy, badges, generic grids and masthead geometry remain in
   their dedicated owners and must not be redefined here. Accent values
   resolve through lightgold.css tokens. */
.home {
  --home-card-border: var(--section-border);
  --home-card-border-hover: var(--highlight);
}

/* Personal dashboard strip: page UI, not a reusable card component. */
body.home .home-dashboard-strip[hidden] { display: none !important; }

body.home .home-dashboard-strip {
  display: grid;
  gap: var(--space-md);
  margin: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid color-mix(in srgb, var(--section-border) 78%, var(--highlight) 22%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--highlight) 5%, transparent), transparent 58%),
    var(--card-soft-bg);
  backdrop-filter: var(--card-soft-backdrop);
  -webkit-backdrop-filter: var(--card-soft-backdrop);
}

body.home .home-dashboard-strip__header { display: grid; gap: 0.25rem; }

body.home .home-dashboard-strip__eyebrow {
  margin: 0;
  color: var(--text-accent);
  font-size: var(--type-eyebrow-size-compact, 0.72rem);
  font-weight: var(--type-weight-bold, 700);
  letter-spacing: var(--type-tracking-eyebrow, 0.12em);
  line-height: var(--type-eyebrow-line-compact, 1.3);
  text-transform: uppercase;
}

body.home .home-dashboard-strip__copy { margin: 0; color: var(--text-secondary); line-height: 1.55; }

body.home .home-dashboard-strip__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--section-border) 72%, var(--highlight) 18%);
}

body.home .home-dashboard-strip__link {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: var(--space-sm) var(--space-md);
  color: inherit;
  text-decoration: none;
}

body.home .home-dashboard-strip__link + .home-dashboard-strip__link {
  border-left: 1px solid color-mix(in srgb, var(--section-border) 72%, var(--highlight) 18%);
}

body.home .home-dashboard-strip__link > span {
  color: var(--text-primary);
  font-family: var(--page-title);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: var(--type-weight-bold, 700);
  line-height: 1.1;
}

body.home .home-dashboard-strip__link small { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.4; }
body.home .home-dashboard-strip__link:hover > span,
body.home .home-dashboard-strip__link:focus-visible > span { color: var(--text-accent); }
body.home .home-dashboard-strip__link:focus-visible { outline: 3px solid var(--highlight); outline-offset: -3px; }

/* Text-only pathway cards retain their real visual hierarchy and footer row. */
body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) {
  --card-radius: 8px;
  --card-bg: transparent;
  --card-soft-backdrop: blur(2px);
  background: transparent;
  backdrop-filter: var(--card-soft-backdrop);
  -webkit-backdrop-filter: var(--card-soft-backdrop);
  border-color: color-mix(in srgb, var(--section-border) 78%, var(--highlight) 22%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--bg-primary) 84%, transparent);
}

body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) .card-link,
body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) .card-body {
  background: transparent;
}

body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) .card-body {
  display: flex;
  flex-direction: column;
  min-height: clamp(13rem, 22vw, 17rem);
  padding: clamp(1.35rem, 2.8vw, 2rem);
  text-align: left;
  border-top: 0;
}

body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) .card-title {
  color: var(--text-primary);
  font-family: var(--page-title);
  font-size: var(--type-card-title-size-large, clamp(1.4rem, 2.6vw, 2rem));
  line-height: var(--type-heading-line, 1.08);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) .card-desc {
  max-width: 62ch;
  margin: 0.7rem 0 0;
  color: var(--text-secondary);
  line-height: var(--type-card-desc-line-editorial, 1.65);
}

body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) .card-body::after {
  content: attr(data-card-enter-label);
  display: flex;
  width: 100%;
  align-self: stretch;
  align-items: center;
  margin-top: auto;
  padding-top: clamp(0.75rem, 1.4vw, 1rem);
  padding-right: clamp(8rem, 26vw, 14rem);
  border-top: 1px solid color-mix(in srgb, var(--section-border) 72%, var(--highlight) 18%);
  color: var(--text-accent);
  font-size: 0.72rem;
  font-weight: var(--type-weight-bold, 700);
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0.82;
  text-transform: uppercase;
}

.home .home-pathways .gnostic-card {
  border-color: var(--home-card-border);
}

.home .home-pathways .gnostic-card {
  --card-bdr: var(--home-card-border);
}

.home .home-pathways .gnostic-card:has(.card-media),
.home .home-live-investigations .gnostic-card:has(.card-media) {
  --card-bg: transparent;
  background: transparent;
  backdrop-filter: var(--card-soft-backdrop);
  -webkit-backdrop-filter: var(--card-soft-backdrop);
}

.home .home-pathways .gnostic-card .card-media {
  border-bottom-color: var(--home-card-border);
}

.home .home-pathways .gnostic-card::after {
  border-color: var(--home-card-border);
}

.home .home-pathways .gnostic-card:hover,
.home .home-pathways .gnostic-card:focus-within {
  border-color: var(--home-card-border-hover);
}

.home .home-pathways .gnostic-card:hover::after,
.home .home-pathways .gnostic-card:focus-within::after {
  border-color: var(--home-card-border-hover);
}

.home .featured-publications__grid .pillar-grid {
  margin: 0;
}

.home .featured-publications__grid .home-card--featured-publication .card-body {
  /* The shared real editorial footer owns its own clearance. */
  padding-top: clamp(1.35rem, 2vw, 1.8rem);
}

.home .featured-publications__grid .home-card--featured-publication .card-title {
  font-size: clamp(1.17rem, 1.35vw, 1.575rem);
  line-height: var(--type-heading-line, 1.08);
}

.home .featured-publications__grid .home-card--featured-publication .card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.55rem;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  line-height: var(--type-card-desc-line-clamped, 1.45);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home .home-pathways .gnostic-card:has(.card-media) .card-desc {
  font-size: var(--type-card-desc-size-excerpt, 0.8em);
}

.home .home-pathways .gnostic-card:has(.card-media) .card-title {
  font-size: clamp(1.134rem, 2.106vw, 1.62rem);
}

.home .home-pathways .gnostic-card:not(:has(.card-media)) .card-title {
  font-size: calc(var(--font-size-md, 1.2rem) * 0.9);
}

.home .home-pathways .gnostic-card:has(.card-media) .card-eyebrow {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--text-accent);
  font-size: 0.72rem;
  font-weight: var(--type-weight-bold, 700);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home .home-pathways .gnostic-card .card-body::after {
  position: relative;
  z-index: 6;
  color: var(--text-accent);
  opacity: 0.9;
}

/* Live Investigations sits outside the pathways wrapper, so its compact
   editorial treatment is intentionally owned here. */
.home .home-live-investigations .gnostic-card .card-body {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-top: 0;
}

.home .home-live-investigations .gnostic-card:has(.editorial-card__footer) .card-body {
  min-height: 0;
}

.home .home-live-investigations .gnostic-card .card-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.home .home-live-investigations .gnostic-card .card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home .join-cta {
  box-sizing: border-box;
  width: 100%;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2rem);
}

.home .join-cta-count {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.45;
}

.home .btn:is(:hover, :focus-visible, :active) {
  color: var(--text-accent) !important;
}

.home .home-hero-masthead__primary:is(:hover, :focus-visible, :active) {
  color: var(--hero-overlay-text) !important;
}

.home .home-hero-masthead__secondary:is(:hover, :focus-visible, :active) {
  color: var(--hero-overlay-subtext) !important;
}

.home .pillar-grid .gnostic-card .card-link {
  position: relative;
  border-radius: inherit;
  --home-outline-hue: 0deg;
  --home-outline-sat: 1;
  --home-outline-opacity: 0;
}

.home .pillar-grid .gnostic-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  opacity: var(--home-outline-opacity);
  border: 1px solid var(--home-card-border-hover);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--highlight) 30%, transparent),
    0 0 16px color-mix(in srgb, var(--shadow-glow) 42%, transparent);
  filter: none;
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.home .pillar-grid .gnostic-card:hover .card-link::after,
.home .pillar-grid .gnostic-card:focus-within .card-link::after,
.home .pillar-grid .gnostic-card .card-link:focus-visible::after {
  --home-outline-opacity: 1;
}

.home .pillar-grid .gnostic-card .card-link[href="/pillars/the-obsidian-key/"] {
  --home-outline-hue: -35deg;
  --home-outline-sat: 1.28;
}

body.home
  .home-pathways
  .gnostic-card:has(.card-media)
  .card-link[href="/pillars/the-obsidian-key/"]
  .card-media img,
body.home
  .home-pathways
  .gnostic-card:has(.card-media):is(:hover, :focus-within)
  .card-link[href="/pillars/the-obsidian-key/"]
  .card-media img {
  filter: none;
}

.home .pillar-grid .gnostic-card .card-link[href="/pillars/the-gnostic-eye/"] {
  --home-outline-hue: 44deg;
  --home-outline-sat: 1.2;
}

body.home
  .home-pathways
  .gnostic-card:has(.card-media)
  .card-link[href="/pillars/the-gnostic-eye/"]
  .card-media img,
body.home
  .home-pathways
  .gnostic-card:has(.card-media):is(:hover, :focus-within)
  .card-link[href="/pillars/the-gnostic-eye/"]
  .card-media img {
  filter: none;
}

.home .pillar-grid .gnostic-card .card-link[href="/pillars/the-teachings/"] {
  --home-outline-hue: 86deg;
  --home-outline-sat: 1.2;
}

body.home
  .home-pathways
  .gnostic-card:has(.card-media)
  .card-link[href="/pillars/the-teachings/"]
  .card-media img,
body.home
  .home-pathways
  .gnostic-card:has(.card-media):is(:hover, :focus-within)
  .card-link[href="/pillars/the-teachings/"]
  .card-media img {
  filter: none;
}

.home .pillar-grid .gnostic-card .card-link[href="/pillars/zoe-speaks/"] {
  --home-outline-hue: 116deg;
  --home-outline-sat: 1.3;
}

.home .pillar-grid .gnostic-card .card-link[href="/pillars/the-vault/"] {
  --home-outline-hue: 14deg;
  --home-outline-sat: 0.88;
}

body.home
  .home-pathways
  .gnostic-card.coming-soon:has(.card-link[href="/pillars/the-vault/"]) {
  filter: saturate(0.72) brightness(0.88);
  opacity: 0.78;
}

body.home
  .home-pathways
  .gnostic-card.coming-soon
  .card-link[href="/pillars/the-vault/"] {
  opacity: 0.92;
}

body.home
  .home-pathways
  .gnostic-card:has(.card-media)
  .card-link[href="/pillars/the-vault/"]
  .card-media img,
body.home
  .home-pathways
  .gnostic-card:has(.card-media):is(:hover, :focus-within)
  .card-link[href="/pillars/the-vault/"]
  .card-media img {
  filter: contrast(0.88) saturate(0.78);
}

.home .pillar-grid .gnostic-card .card-link[href="/pillars/tgk-community/"] {
  --home-outline-hue: 136deg;
  --home-outline-sat: 1.38;
}

.home-pathways {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.home-pathway-group {
  margin: 0;
}

.home-pathway-group--two-up .portal-grid {
  max-width: 100%;
}

.home-pathway-group--two-up .portal-grid > .gnostic-card {
  flex: 0 1 calc((100% - (2 * clamp(1rem, 2.6vw, 2rem))) / 3);
  max-width: calc((100% - (2 * clamp(1rem, 2.6vw, 2rem))) / 3);
}

@media (min-width: 768px) {
  .home .home-pathways .portal-grid:has(> .gnostic-card:nth-child(3)) > .gnostic-card {
    flex: 0 1 calc((100% - (2 * clamp(1rem, 2.6vw, 2rem))) / 3);
    max-width: calc((100% - (2 * clamp(1rem, 2.6vw, 2rem))) / 3);
  }
}

.home .home-live-investigations .portal-grid > .gnostic-card,
.home-pathway-group--knowledge-gateways .portal-grid > .gnostic-card,
.home-pathway-group--shop-gallery .portal-grid > .gnostic-card {
  flex: 0 1 calc((100% - clamp(1rem, 2.6vw, 2rem)) / 2);
  max-width: calc((100% - clamp(1rem, 2.6vw, 2rem)) / 2);
}

.home-pathway-group--shop-gallery .portal-grid {
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.home-pathway-group--two-up.home-pathway-group--standard-cards .portal-grid > .gnostic-card {
  flex: 0 1 calc((100% - clamp(1rem, 2.6vw, 2rem)) / 2);
  max-width: calc((100% - clamp(1rem, 2.6vw, 2rem)) / 2);
  --card-bg: transparent;
  --card-soft-backdrop: blur(2px);
  background: transparent;
  backdrop-filter: var(--card-soft-backdrop);
  -webkit-backdrop-filter: var(--card-soft-backdrop);
}

body.home .home-pathways .home-pathway-group--standard-cards .portal-grid > .gnostic-card:not(:has(.card-media)) {
  --card-bg: transparent;
  background: transparent;
}

html[data-theme="light"] body.home.lightgold .home-pathways .home-pathway-group--standard-cards .gnostic-card:not(:has(.card-media))::before,
html[data-theme="dark"] body.home.lightgold .home-pathways .home-pathway-group--standard-cards .gnostic-card:not(:has(.card-media))::before {
  display: none;
}

.home-pathway-heading {
  max-width: none;
  margin-right: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  margin-left: 0;
  text-align: left;
}

/* Live Investigations is a direct child of the home container, rather than
   a pathway group, so it needs the same section separation explicitly. */
.home .content-container > .home-pathway-heading {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.home-pathway-heading__eyebrow,
.home .featured-publications__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--text-accent);
  font-family: var(--font-ui);
  font-size: var(--type-eyebrow-size, 0.74rem);
  font-weight: var(--type-weight-bold, 700);
  letter-spacing: var(--type-tracking-eyebrow, 0.12em);
  line-height: var(--type-eyebrow-line, 1.35);
  text-transform: uppercase;
}

.home-pathway-heading .section-heading,
.home .featured-publications .section-heading {
  width: 100%;
  max-width: none;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  font-size: var(--type-section-heading-size, clamp(1.8rem, 3vw, 2.7rem));
}

.home-pathway-group--secondary .home-pathway-heading {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.home .home-pathway-heading .section-heading {
  margin-top: 0;
}

.home-pathway-heading p:not(.home-pathway-heading__eyebrow) {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(var(--font-size-base), 1.7vw, var(--font-size-md));
  line-height: var(--type-supporting-copy-line, 1.7);
}

.home-pathways .card-enter-hint {
  display: inline-flex;
  align-self: flex-start;
  margin-top: var(--space-xs);
  padding: 0.08rem 0;
  font-size: 0.72rem;
  font-weight: var(--type-weight-bold, 700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-accent);
  opacity: 0.82;
}

@media (min-width: 768px) {
  .home-pathways {
    gap: clamp(1.75rem, 3.2vw, 2.5rem);
  }

  .home .home-live-investigations + .home-pathways > .home-pathway-group:first-child .section-heading,
  .home .featured-publications .section-heading,
  .home .content-container > .home-pathway-heading .section-heading {
    font-size: var(--type-section-heading-size, clamp(1.8rem, 3vw, 2.7rem));
  }

  .home .main-content > .home-pathway-heading {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
  }

  .home-pathway-group--standard-cards .gnostic-card .card-body {
    padding-top: clamp(1.35rem, 2vw, 1.75rem);
    padding-bottom: clamp(1.5rem, 2.2vw, 1.9rem);
  }
}

.home .site-header .hero-cta-button[hidden] {
  display: none !important;
}

.home-editorial-masthead .site-header.minimal.is-home.with-hero-media {
  /* Content-sized, matching the pillar/series/season masthead treatment
     (pillar-landing-masthead.css) rather than a fixed cinematic minimum
     height, so the homepage hero isn't taller than every other landing
     page's masthead. */
  min-height: 0;
  height: auto;
  margin-top: 0;
  border-bottom: 1px solid var(--header-rule);
  box-shadow: none;
}

.home-editorial-masthead .featured-publications {
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
}

/* Invisible breadcrumb-shaped spacer (topbar.njk): reserves the exact
   same height/margin as a real .pillar-landing-masthead__breadcrumbs
   row on pillar pages, so the eyebrow/title start at an identical
   vertical offset on both, and nothing visibly shifts when navigating
   between the homepage and a pillar landing page. Scoped to
   .home-editorial-masthead since the homepage doesn't carry the
   pillar-editorial-masthead class that the real breadcrumb styling
   (pillar-landing-masthead.css) is keyed off. */
.home-editorial-masthead .pillar-landing-masthead__breadcrumbs {
  margin: 0 0 0.75rem;
}

.home-editorial-masthead .pillar-landing-masthead__breadcrumbs li {
  font-size: var(--type-breadcrumb-size-masthead, clamp(0.66rem, 0.9vw, 0.74rem));
}

.home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-media-image {
  --hero-image-position: center 42%;
  --hero-image-filter: saturate(0.66) contrast(0.94) brightness(0.62);
}

.home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-media-scrim {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg-primary) 86%, transparent), color-mix(in srgb, var(--bg-primary) 64%, transparent) 58%, color-mix(in srgb, var(--bg-primary) 28%, transparent)),
    linear-gradient(0deg, color-mix(in srgb, var(--bg-primary) 66%, transparent), transparent 55%);
}

/* header-main and hero-overlay-top must be taken out of absolute
   positioning (matching pillar-landing-masthead.css's approach) now
   that the outer hero has min-height: 0. Both were still absolutely
   positioned/inset from the site-wide is-home rules; with an
   all-absolutely-positioned-children parent collapsed to 0 height by
   min-height: 0, "top: clamp(...)" pushed the text below the visible
   (now zero-height) box entirely, off screen. */
.home-editorial-masthead .site-header.minimal.is-home.with-hero-media .header-main {
  position: relative;
  inset: auto;
  max-width: var(--header-content-max);
  margin-inline: auto;
  padding: var(--tgk-mobile-masthead-clearance) var(--header-gutter) clamp(1.5rem, 4vw, 2.5rem);
  pointer-events: auto;
}

.home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-overlay-top {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  width: auto;
  padding-top: 0;
  text-align: left;
  transform: none;
}

.home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-title {
  display: block;
  max-width: none;
  font-size: clamp(2.05rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  text-align: left;
  text-transform: none;
  white-space: normal;
  text-wrap: balance;
}

.home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-title::after { display: none; }

.home-hero-masthead__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-accent);
  font-family: var(--font-ui);
  font-size: var(--type-eyebrow-size, 0.74rem);
  font-weight: var(--type-weight-bold, 700);
  letter-spacing: var(--type-tracking-eyebrow, 0.12em);
  line-height: var(--type-eyebrow-line, 1.35);
  text-transform: uppercase;
}

.home-hero-masthead__lead,
.home-hero-masthead__copy { margin: 0; text-align: left; text-shadow: var(--hero-overlay-shadow-copy); }

.home-hero-masthead__lead {
  max-width: 62ch;
  margin-top: 0.9rem;
  color: var(--hero-overlay-text);
  font-family: var(--font-display, inherit);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.28;
}

.home-hero-masthead__copy {
  max-width: 72ch;
  margin-top: 0.7rem;
  color: var(--hero-overlay-subtext);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}

.home-hero-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  pointer-events: auto;
}

.home-hero-masthead__secondary {
  flex: 0 0 auto;
  width: fit-content;
  color: var(--hero-overlay-subtext);
  background: color-mix(in srgb, var(--bg-primary) 38%, transparent);
  border-color: color-mix(in srgb, var(--hero-overlay-rule) 66%, transparent);
  box-shadow: none;
  opacity: 0.7;
}

.home-hero-masthead__primary {
  color: var(--hero-overlay-text);
  background: color-mix(in srgb, var(--bg-primary) 60%, transparent);
  border-color: color-mix(in srgb, var(--highlight) 72%, transparent);
}


@media (max-width: 767px) {
  body.home .home-dashboard-strip__nav { grid-template-columns: 1fr; }
  body.home .home-dashboard-strip__link + .home-dashboard-strip__link { border-top: 1px solid color-mix(in srgb, var(--section-border) 72%, var(--highlight) 18%); border-left: 0; }

  /* Content-sized editorial introduction, not a full-viewport hero: no
     fixed/viewport height, header-main and hero-overlay-top flow normally
     so the header height follows content. Position stays relative (not
     static) so the text keeps painting above the hero-media-scrim. */
  .home-editorial-masthead .site-header.minimal.is-home.with-hero-media {
    min-height: 0;
  }

  .home-editorial-masthead .site-header.minimal.is-home.with-hero-media .header-main {
    position: relative;
    inset: auto;
    padding: var(--tgk-mobile-masthead-clearance) 0.625rem clamp(1.5rem, 6vw, 2rem);
  }

  .home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-overlay-top {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    left: auto;
    width: auto;
    padding-top: 0;
  }

  .home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-media-image {
    --hero-image-position: 62% center;
  }

  .home-editorial-masthead .site-header.minimal.is-home.with-hero-media .hero-title {
    max-width: none;
    font-size: clamp(2.05rem, 9vw, 2.55rem);
    line-height: 1.02;
    white-space: normal;
    text-wrap: balance;
  }

  .home-hero-masthead__eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .home-hero-masthead__lead {
    margin-top: 0.8rem;
    font-size: clamp(1.1rem, 4.7vw, 1.35rem);
    line-height: 1.28;
  }


  .home .featured-publications,
  .home-pathways {
    gap: clamp(1.5rem, 7vw, 2rem);
  }

  .home .home-pathway-heading .section-heading,
  .home .featured-publications .section-heading {
    margin: 0 0 0.75rem;
    font-size: clamp(1.55rem, 7vw, 2rem);
    text-wrap: balance;
  }

  .home-pathway-heading,
  .home-pathway-group--secondary .home-pathway-heading,
  .home .main-content > .home-pathway-heading {
    margin-bottom: clamp(0.85rem, 4vw, 1.25rem);
  }

  .home .content-container > .home-pathway-heading {
    margin-top: clamp(1.5rem, 7vw, 2rem);
  }

  .home-pathway-heading p:not(.home-pathway-heading__eyebrow) {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .home-pathway-group--two-up .portal-grid > .gnostic-card,
  .home-pathway-group--two-up.home-pathway-group--standard-cards .portal-grid > .gnostic-card,
  .home .live-dossiers .portal-grid > .gnostic-card {
    flex: 0 1 calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
  }

  .home-pathway-group--community .gnostic-card .card-media,
  .home-pathway-group--shop-gallery .gnostic-card .card-media {
    aspect-ratio: 16 / 9;
  }

  .home .featured-publications__grid .home-card--featured-publication .card-body,
  .home .home-live-investigations .gnostic-card .card-body,
  .home-pathway-group--community .gnostic-card .card-body,
  .home-pathway-group--shop-gallery .gnostic-card .card-body,
  .home-pathway-group--standard-cards .gnostic-card .card-body {
    padding: 1.25rem 1rem 1.4rem;
  }

  .home .home-pathways .gnostic-card:has(.card-media) .card-title {
    font-size: clamp(1.08rem, 5.2vw, 1.32rem);
    line-height: 1.12;
  }

  .home .home-pathways .gnostic-card:has(.card-media) .card-desc,
  .home .featured-publications__grid .home-card--featured-publication .card-desc {
    font-size: var(--type-card-desc-size-compact, 0.9rem);
    line-height: 1.5;
  }

  .home-pathway-group--knowledge-gateways .gnostic-card .card-desc,
  .home .home-live-investigations .card-desc,
  .home-pathways > .home-pathway-group:first-child .card-desc {
    min-height: 0;
  }

  .home .join-cta {
    margin-top: 1.5rem;
    padding: 1.4rem 1rem 1.5rem;
  }

  .home .join-cta-heading {
    font-size: clamp(1.45rem, 6.5vw, 1.8rem);
    line-height: 1.12;
    text-wrap: balance;
  }

  .home .join-cta-detail,
  .home .join-cta-count {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .home .founder-offer {
    margin-bottom: 1.5rem;
  }

  .home .founder-offer__panel {
    gap: 1rem;
    padding: 1.25rem;
  }

  .home .founder-offer__benefits {
    display: grid;
    gap: 0.4rem;
  }

  .home .founder-offer__benefits li + li::before {
    margin-right: 0.5rem;
  }

  .home .founder-offer__action,
  .home .founder-offer__action .btn {
    width: 100%;
  }

  .home .site-footer .footer-inner {
    padding-inline: 1rem;
  }

  .home .site-footer .footer-links,
  .home .site-footer .footer-note {
    font-size: 0.9em;
  }

  .home .site-footer .footer-links {
    gap: 0.5rem 0.75rem;
  }

  .home .site-header .hero-overlay-bottom {
    bottom: clamp(5.25rem, 14vh, 7rem);
  }
}

@media (max-width: 389px) {
  .home .join-cta-actions .btn {
    width: 100%;
  }

  .home .home-pathways .gnostic-card:has(.card-media) .card-body::after {
    padding-right: 0;
  }

  .home .home-pathways .gnostic-card:has(.card-media) .badge-br {
    position: static;
    align-self: flex-start;
    margin: 0 1rem 1rem;
  }

}
}
