/* ============================================================
   W2G Guest Home, Direction B: Competition Energy
   Scoped to the public #home route. Authenticated, Admin,
   Organizer, and other public discovery surfaces are untouched.
   ============================================================ */

body.app-shell-guest #home,
body.app-shell-guest:has(#home.active-view) {
  --w2g-bg: #FFFFFF;
  --w2g-surface: #FFFFFF;
  --w2g-surface-2: #F7F7F7;
  --w2g-line: #E5E7EB;
  --w2g-line-strong: #D1D5DB;
  --w2g-ink: #18181B;
  --w2g-body: #3F3F46;
  --w2g-muted: #71717A;
  --w2g-faint: #A1A1AA;
  --w2g-orange: #EA580C;
  --w2g-orange-strong: #C2410C;
  --w2g-orange-soft: #FFF4ED;
  --w2g-orange-line: #FED7AA;
  --w2g-orange-ink: #C2410C;
  --w2g-success: #16A34A;
  --w2g-guest-font: 'DM Sans', 'Bai Jamjuree', 'Noto Sans Thai', system-ui, sans-serif;
  background: var(--w2g-bg);
}

/* Preserve the existing dark-theme token block unchanged. */
html[data-theme="dark"] body.app-shell-guest #home,
html[data-theme="dark"] body.app-shell-guest:has(#home.active-view) {
  --w2g-bg:          #17130D;
  --w2g-surface:     #211A11;
  --w2g-surface-2:   #2B2217;
  --w2g-line:        #3B3021;
  --w2g-line-strong: #4A3D2A;

  --w2g-ink:    #F3E9D7;
  --w2g-body:   #D9CDB6;
  --w2g-muted:  #B7A98C;
  --w2g-faint:  #8A7D64;

  --w2g-orange:        #F2790F;
  --w2g-orange-strong: #F0A868;
  --w2g-orange-soft:   rgba(234, 88, 12, 0.16);
  --w2g-orange-line:   rgba(234, 88, 12, 0.32);
  --w2g-orange-ink:    #F0A868;

  --w2g-success: #4C9E3C;
}

body.app-shell-guest:has(#home.active-view) {
  overflow-x: clip;
}

body.app-shell-guest:has(#home.active-view) > .page-shell {
  padding: 0;
}

body.app-shell-guest:has(#home.active-view) > .page-shell > #home.view {
  width: 100%;
  max-width: none;
}

body.app-shell-guest #home .home-mission-v2 {
  width: 100%;
  gap: 0;
}

/* Guest header */
body.app-shell-guest:has(#home.active-view) > .topbar {
  min-height: 68px;
  padding-inline: max(40px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 253, 248, 0.14) !important;
  background: #241D14 !important;
  color: #FFFDF8 !important;
  box-shadow: none !important;
  transition: none !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar .brand,
body.app-shell-guest:has(#home.active-view) > .topbar .brand strong,
body.app-shell-guest:has(#home.active-view) > .topbar .main-nav button {
  color: #E4D6BC !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar .brand strong {
  color: #FFFDF8 !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar .brand-mark {
  border: 0 !important;
  background: #EA580C !important;
  color: #FFFDF8 !important;
  box-shadow: none !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar .main-nav button.active {
  border-color: transparent !important;
  background: rgba(255, 253, 248, 0.12) !important;
  color: #FFFDF8 !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar #loginShortcut {
  border-color: transparent !important;
  background: transparent !important;
  color: #E4D6BC !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut {
  border-color: #EA580C !important;
  background: #EA580C !important;
  color: #FFFDF8 !important;
}

body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut:hover {
  border-color: #C2410C !important;
  background: #C2410C !important;
  color: #FFFDF8 !important;
}

/* Root and shared atoms */
body.app-shell-guest #home .ghb,
body.app-shell-guest #home .ghb h1,
body.app-shell-guest #home .ghb h2,
body.app-shell-guest #home .ghb h3,
body.app-shell-guest #home .ghb p,
body.app-shell-guest #home .ghb button,
body.app-shell-guest #home .ghb a {
  font-family: var(--w2g-guest-font);
}

body.app-shell-guest #home .ghb {
  --gh-motion-fast: 150ms;
  --gh-motion-interaction: 190ms;
  --gh-motion-enter: 520ms;
  --gh-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: var(--w2g-bg);
  color: var(--w2g-body);
}

body.app-shell-guest #home .ghb *,
body.app-shell-guest #home .ghb *::before,
body.app-shell-guest #home .ghb *::after {
  box-sizing: border-box;
  min-width: 0;
}

body.app-shell-guest #home .ghb h1,
body.app-shell-guest #home .ghb h2,
body.app-shell-guest #home .ghb h3,
body.app-shell-guest #home .ghb strong {
  color: var(--w2g-ink);
}

body.app-shell-guest #home .ghb h1,
body.app-shell-guest #home .ghb h2,
body.app-shell-guest #home .ghb h3 {
  text-wrap: balance;
}

body.app-shell-guest #home .ghb p {
  text-wrap: pretty;
}

body.app-shell-guest #home .ghb h1,
body.app-shell-guest #home .ghb h2,
body.app-shell-guest #home .ghb h3,
body.app-shell-guest #home .ghb p,
body.app-shell-guest #home .ghb button,
body.app-shell-guest #home .ghb a,
body.app-shell-guest #home .ghb dd {
  overflow-wrap: anywhere;
}

body.app-shell-guest #home .ghb-kicker,
body.app-shell-guest #home .ghb-section-label {
  margin: 0;
  color: var(--w2g-orange-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

body.app-shell-guest #home .ghb-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.app-shell-guest #home .ghb-kicker::before {
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--w2g-orange);
  content: '';
}

body.app-shell-guest #home .ghb-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--gh-motion-interaction) var(--gh-motion-ease),
    border-color var(--gh-motion-interaction) var(--gh-motion-ease),
    color var(--gh-motion-interaction) var(--gh-motion-ease),
    transform var(--gh-motion-fast) var(--gh-motion-ease);
}

body.app-shell-guest #home .ghb-button-primary {
  border-color: var(--w2g-orange);
  background: var(--w2g-orange);
  color: #FFFDF8;
}

body.app-shell-guest #home .ghb-button-primary:hover {
  border-color: var(--w2g-orange-strong);
  background: var(--w2g-orange-strong);
}

body.app-shell-guest #home .ghb-button-outline {
  border-color: var(--w2g-ink);
  background: transparent;
  color: var(--w2g-ink);
}

body.app-shell-guest #home .ghb-button-outline:hover {
  background: var(--w2g-ink);
  color: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-button-dark-outline {
  border-color: rgba(255, 253, 248, 0.56);
  background: transparent;
  color: #FFFDF8;
}

body.app-shell-guest #home .ghb-button-dark-outline:hover {
  border-color: #FFFDF8;
  background: rgba(255, 253, 248, 0.1);
}

body.app-shell-guest #home .ghb-button:active {
  transform: translateY(1px);
}

body.app-shell-guest #home .ghb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 1px;
  border: 0;
  background: transparent;
  color: var(--w2g-ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--w2g-line-strong);
  text-underline-offset: 5px;
  cursor: pointer;
}

body.app-shell-guest #home .ghb-link:hover {
  color: var(--w2g-orange-ink);
  text-decoration-color: currentColor;
}

body.app-shell-guest #home .ghb-button > span[aria-hidden="true"],
body.app-shell-guest #home .ghb-link > span[aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--gh-motion-interaction) var(--gh-motion-ease);
}

body.app-shell-guest #home .ghb-button:hover > span[aria-hidden="true"],
body.app-shell-guest #home .ghb-link:hover > span[aria-hidden="true"] {
  transform: translateX(3px);
}

body.app-shell-guest #home .ghb :is(a, button):focus-visible {
  outline: 3px solid var(--w2g-orange);
  outline-offset: 3px;
}

/* Hero */
body.app-shell-guest #home .ghb-hero {
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  grid-template-columns: minmax(0, 1fr) 452px;
  grid-template-areas:
    'kicker visual'
    'title visual'
    'lead visual'
    'actions visual'
    'journey visual';
  align-items: start;
  gap: 0 60px;
  margin: 0 auto;
  padding: 60px 0 80px;
}

body.app-shell-guest #home .ghb-hero > .ghb-kicker {
  grid-area: kicker;
}

body.app-shell-guest #home .ghb-title {
  display: flex;
  grid-area: title;
  flex-direction: column;
  align-items: flex-start;
  margin: 18px 0 0;
  color: var(--w2g-ink);
  font-size: clamp(54px, 4.72vw, 68px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

body.app-shell-guest #home .ghb-title .ghb-accent {
  color: var(--w2g-orange-ink);
}

body.app-shell-guest #home .ghb-lead {
  max-width: 47ch;
  grid-area: lead;
  margin: 22px 0 0;
  color: var(--w2g-body);
  font-size: 17.5px;
  line-height: 1.72;
}

body.app-shell-guest #home .ghb-hero > .ghb-actions {
  display: flex;
  grid-area: actions;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 28px;
}

body.app-shell-guest #home .ghb-journey {
  display: grid;
  grid-area: journey;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--w2g-line);
  list-style: none;
}

body.app-shell-guest #home .ghb-journey li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  padding: 18px 18px 0;
  border-right: 1px solid var(--w2g-line);
}

body.app-shell-guest #home .ghb-journey li:first-child {
  padding-left: 0;
}

body.app-shell-guest #home .ghb-journey li:last-child {
  padding-right: 0;
  border-right: 0;
}

body.app-shell-guest #home .ghb-journey li > span {
  color: var(--w2g-orange-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-journey strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-journey p {
  margin: 4px 0 0;
  color: var(--w2g-body);
  font-size: 13px;
  line-height: 1.55;
}

body.app-shell-guest #home .ghb-hero-visual {
  display: grid;
  grid-area: visual;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
}

body.app-shell-guest #home .ghb-hero-poster-rail {
  display: contents;
}

body.app-shell-guest #home .ghb-hero-poster-card,
body.app-shell-guest #home .ghb-showcase-poster {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body.app-shell-guest #home .ghb-hero-poster-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--w2g-surface);
  box-shadow: 0 10px 28px rgba(36, 29, 20, 0.16);
  transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

body.app-shell-guest #home .ghb-hero-poster-card:hover,
body.app-shell-guest #home .ghb-hero-poster-card:focus-visible {
  box-shadow: 0 16px 34px rgba(36, 29, 20, 0.2);
  transform: translateY(-2px);
}

body.app-shell-guest #home .ghb-poster-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--w2g-surface-2);
  transition: aspect-ratio 0.15s ease-out;
}

/* Shared poster-orientation system: the frame's aspect-ratio adapts to the
   classified orientation (set by posterOrientationOnload in script.js) so
   portrait, landscape, and square posters each get a box close to their own
   shape instead of being force-cropped into one fixed ratio. */
body.app-shell-guest #home .ghb-poster-frame.is-landscape {
  aspect-ratio: 4 / 3;
}

body.app-shell-guest #home .ghb-poster-frame.is-square {
  aspect-ratio: 1 / 1;
}

body.app-shell-guest #home .ghb-poster-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-area: 1 / 1;
  object-fit: contain;
  background: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-poster-fallback {
  display: none;
  grid-area: 1 / 1;
  place-content: center;
  padding: 28px;
  background: var(--w2g-surface-2);
  color: var(--w2g-muted);
  text-align: center;
}

body.app-shell-guest #home .ghb-poster-frame.is-missing .ghb-poster-fallback {
  display: grid;
}

body.app-shell-guest #home .ghb-poster-fallback strong {
  color: #A28E68;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

body.app-shell-guest #home .ghb-poster-fallback span {
  margin-top: 9px;
  color: var(--w2g-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-hero-poster-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
}

body.app-shell-guest #home .ghb-hero-poster-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.app-shell-guest #home .ghb-urgency,
body.app-shell-guest #home .ghb-comp-cat,
body.app-shell-guest #home .ghb-beginner {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

body.app-shell-guest #home .ghb-urgency {
  border: 1px solid var(--w2g-orange-line);
  background: var(--w2g-orange-soft);
  color: var(--w2g-orange-ink);
}

body.app-shell-guest #home .ghb-comp-cat {
  background: var(--w2g-ink);
  color: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-beginner {
  border: 1px solid var(--w2g-line);
  background: var(--w2g-surface-2);
  color: var(--w2g-body);
}

body.app-shell-guest #home .ghb-hero-team-card,
body.app-shell-guest #home .ghb-hero-competition-empty {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--w2g-line);
  border-radius: 12px;
  background: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-hero-team-card {
  position: relative;
  padding-top: 22px;
}

body.app-shell-guest #home .ghb-hero-team-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--w2g-orange);
  content: '';
}

body.app-shell-guest #home .ghb-hero-team-card.is-empty::before {
  background: var(--w2g-line-strong);
}

body.app-shell-guest #home .ghb-hero-team-label {
  margin: 0;
  color: var(--w2g-orange-ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-hero-team-card h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

body.app-shell-guest #home .ghb-hero-team-card > p:not(.ghb-hero-team-label),
body.app-shell-guest #home .ghb-hero-competition-empty p {
  margin: 0;
  color: var(--w2g-body);
  font-size: 14px;
  line-height: 1.55;
}

body.app-shell-guest #home .ghb-hero-competition-empty strong {
  font-size: 17px;
}

/* Category discovery */
body.app-shell-guest #home .ghb-categories {
  width: 100%;
  padding-bottom: 80px;
}

body.app-shell-guest #home .ghb-category-ticker {
  width: 100%;
  overflow: hidden;
  background: #241D14;
  color: #FFFDF8;
}

body.app-shell-guest #home .ghb-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  animation: ghbTicker 34s linear infinite;
}

body.app-shell-guest #home .ghb-category-ticker span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-category-ticker i {
  color: #EA580C;
  font-size: 8px;
  font-style: normal;
}

body.app-shell-guest #home .ghb-category-head {
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 40px;
  align-items: end;
  margin: 0 auto;
  padding: 54px 0 26px;
}

body.app-shell-guest #home .ghb-category-head h2,
body.app-shell-guest #home .ghb-showcase-head h2,
body.app-shell-guest #home .ghb-section-head h2,
body.app-shell-guest #home .ghb-loop h2 {
  margin: 7px 0 0;
  color: var(--w2g-ink);
  font-size: clamp(32px, 2.64vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

body.app-shell-guest #home .ghb-category-head p,
body.app-shell-guest #home .ghb-showcase-head p,
body.app-shell-guest #home .ghb-recruiting-copy,
body.app-shell-guest #home .ghb-loop-copy {
  max-width: 65ch;
  margin: 0;
  color: var(--w2g-body);
  font-size: 16px;
  line-height: 1.7;
}

body.app-shell-guest #home .ghb-category-head > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

body.app-shell-guest #home .ghb-category-marquee {
  width: min(calc(100% - 80px), 1180px);
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

body.app-shell-guest #home .ghb-category-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: ghbCategoryRail 42s linear infinite;
  will-change: transform;
}

body.app-shell-guest #home .ghb-category-marquee:hover .ghb-category-track,
body.app-shell-guest #home .ghb-category-marquee:focus-within .ghb-category-track,
body.app-shell-guest #home .ghb-category-marquee.is-dragging .ghb-category-track {
  animation-play-state: paused;
}

body.app-shell-guest #home .ghb-category-grid {
  display: flex;
  gap: 10px;
}

body.app-shell-guest #home .ghb-category-card {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 10px;
  border: 1px solid var(--w2g-line);
  border-radius: 999px;
  background: var(--w2g-surface);
  color: var(--w2g-ink);
  cursor: pointer;
  transition: background-color var(--gh-motion-interaction) var(--gh-motion-ease),
    border-color var(--gh-motion-interaction) var(--gh-motion-ease),
    transform var(--gh-motion-interaction) var(--gh-motion-ease);
}

body.app-shell-guest #home .ghb-category-card:hover,
body.app-shell-guest #home .ghb-category-card:focus-visible {
  border-color: var(--w2g-orange);
  background: var(--w2g-orange-soft);
}

body.app-shell-guest #home .ghb-category-card:active {
  transform: translateY(1px);
}

body.app-shell-guest #home .ghb-category-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--w2g-surface-2);
  color: var(--w2g-orange-ink);
}

body.app-shell-guest #home .ghb-category-icon svg {
  width: 18px;
  height: 18px;
}

body.app-shell-guest #home .ghb-category-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

body.app-shell-guest #home .ghb-category-arrow {
  color: var(--w2g-orange-ink);
  font-size: 16px;
  font-weight: 800;
}

/* Competition showcase */
body.app-shell-guest #home .ghb-showcase {
  width: min(calc(100% - 80px), 1180px);
  margin: 0 auto;
  padding-bottom: 80px;
}

body.app-shell-guest #home .ghb-showcase-head,
body.app-shell-guest #home .ghb-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--w2g-line);
}

body.app-shell-guest #home .ghb-showcase-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.app-shell-guest #home .ghb-showcase-list {
  display: flex;
  flex-direction: column;
}

body.app-shell-guest #home .ghb-showcase-row {
  display: grid;
  grid-template-columns: 580px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--w2g-line);
}

body.app-shell-guest #home .ghb-showcase-row-reverse .ghb-showcase-poster {
  order: 2;
}

body.app-shell-guest #home .ghb-showcase-row-reverse .ghb-showcase-copy {
  order: 1;
}

body.app-shell-guest #home .ghb-showcase-row-reverse {
  grid-template-columns: minmax(0, 1fr) 580px;
}

body.app-shell-guest #home .ghb-showcase-poster {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(36, 29, 20, 0.12);
}

body.app-shell-guest #home .ghb-showcase-poster .ghb-poster-frame {
  min-height: 280px;
}

body.app-shell-guest #home .ghb-showcase-poster .ghb-poster-fallback {
  min-height: 340px;
}

body.app-shell-guest #home .ghb-showcase-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.app-shell-guest #home .ghb-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.app-shell-guest #home .ghb-showcase-index {
  position: absolute;
  top: -9px;
  right: 0;
  color: #DCC9A4;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
}

body.app-shell-guest #home .ghb-showcase-copy h3 {
  max-width: 22ch;
  margin: 18px 0 0;
  padding-right: 42px;
  color: var(--w2g-ink);
  font-size: clamp(34px, 2.92vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

body.app-shell-guest #home .ghb-showcase-copy h3.is-long {
  font-size: clamp(30px, 2.36vw, 34px);
  line-height: 1.3;
}

body.app-shell-guest #home .ghb-showcase-description {
  display: -webkit-box;
  max-width: 66ch;
  margin: 18px 0 0;
  overflow: hidden;
  color: var(--w2g-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.app-shell-guest #home .ghb-showcase-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 14px 0 0;
  color: var(--w2g-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

body.app-shell-guest #home .ghb-showcase-attribution span {
  color: var(--w2g-line-strong);
}

body.app-shell-guest #home .ghb-showcase-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

body.app-shell-guest #home .ghb-showcase-facts > div {
  padding: 13px 14px;
  border: 1px dashed var(--w2g-line-strong);
  border-radius: 10px;
  background: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-showcase-facts dt {
  color: var(--w2g-muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-showcase-facts dd {
  margin: 6px 0 0;
  color: var(--w2g-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-comp-team-bridge {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 11px;
  background: var(--w2g-orange-soft);
}

body.app-shell-guest #home .ghb-comp-team-bridge strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

body.app-shell-guest #home .ghb-comp-team-bridge p {
  margin: 4px 0 0;
  color: var(--w2g-body);
  font-size: 13px;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-comp-team-bridge .ghb-link {
  flex: 0 0 auto;
  font-size: 13.5px;
}

body.app-shell-guest #home .ghb-showcase-actions {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

/* Connector and recruiting teams */
body.app-shell-guest #home .ghb-connector {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 27px max(40px, calc((100% - 1180px) / 2));
  background: #241D14;
  color: #FFFDF8;
}

body.app-shell-guest #home .ghb-connector h2 {
  max-width: 640px;
  margin: 0;
  color: #FFFDF8;
  font-size: clamp(24px, 2.22vw, 32px);
  font-weight: 800;
  line-height: 1.3;
}

body.app-shell-guest #home .ghb-connector p {
  max-width: 430px;
  margin: 0;
  color: #E4D6BC;
  font-size: 15px;
  line-height: 1.65;
}

body.app-shell-guest #home .ghb-recruiting {
  width: 100%;
  padding: 72px max(40px, calc((100% - 1180px) / 2)) 80px;
  background: var(--w2g-surface-2);
}

body.app-shell-guest #home .ghb-section-head {
  border-color: var(--w2g-line-strong);
}

body.app-shell-guest #home .ghb-recruiting-copy {
  margin-top: 18px;
}

body.app-shell-guest #home .ghb-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

body.app-shell-guest #home .ghb-team-card,
body.app-shell-guest #home .ghb-team-create-card {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--w2g-line);
  border-radius: 14px;
  background: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-team-cap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--w2g-orange);
}

body.app-shell-guest #home .ghb-team-card.has-no-roles .ghb-team-cap {
  background: var(--w2g-line-strong);
}

body.app-shell-guest #home .ghb-team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.app-shell-guest #home .ghb-team-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #E7F6EC;
  color: #16713A;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

body.app-shell-guest #home .ghb-team-status > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--w2g-success);
}

body.app-shell-guest #home .ghb-team-capacity {
  color: var(--w2g-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-team-card h3,
body.app-shell-guest #home .ghb-team-create-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--w2g-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.app-shell-guest #home .ghb-team-competition {
  margin: -4px 0 0;
  color: var(--w2g-body);
  font-size: 13.5px;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-team-competition > span:first-child {
  color: var(--w2g-muted);
  font-weight: 700;
}

body.app-shell-guest #home .ghb-team-role-block {
  padding: 16px;
  border-radius: 11px;
  background: var(--w2g-orange-soft);
}

body.app-shell-guest #home .ghb-team-role-block.is-empty {
  background: var(--w2g-surface-2);
}

body.app-shell-guest #home .ghb-team-role-block > strong {
  display: block;
  color: var(--w2g-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-team-role-block > p {
  margin: 6px 0 0;
  color: var(--w2g-body);
  font-size: 13px;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-team-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

body.app-shell-guest #home .ghb-team-roles.is-mobile {
  display: none;
}

body.app-shell-guest #home .ghb-team-roles span {
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--w2g-orange-line);
  border-radius: 7px;
  background: var(--w2g-surface);
  color: var(--w2g-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

body.app-shell-guest #home .ghb-team-meta {
  margin: 0;
  color: var(--w2g-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-team-actions {
  display: flex;
  margin-top: auto;
}

body.app-shell-guest #home .ghb-team-actions .ghb-button {
  width: 100%;
}

body.app-shell-guest #home .ghb-team-create-card {
  justify-content: center;
  background: transparent;
  border-style: dashed;
}

body.app-shell-guest #home .ghb-team-create-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--w2g-surface);
  color: var(--w2g-orange-ink);
  font-size: 26px;
  font-weight: 700;
}

body.app-shell-guest #home .ghb-team-create-card p {
  margin: 0;
  color: var(--w2g-body);
  font-size: 14px;
  line-height: 1.6;
}

body.app-shell-guest #home .ghb-team-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 30px;
  border: 1px dashed var(--w2g-line-strong);
  border-radius: 14px;
  background: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-team-empty h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

body.app-shell-guest #home .ghb-team-empty p {
  max-width: 60ch;
  margin: 8px 0 0;
  color: var(--w2g-body);
  font-size: 15px;
  line-height: 1.6;
}

/* How it works */
body.app-shell-guest #home .ghb-loop {
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.8fr);
  gap: 64px;
  align-items: start;
  margin: 0 auto;
  padding: 80px 0;
}

body.app-shell-guest #home .ghb-loop-intro {
  position: sticky;
  top: 92px;
}

body.app-shell-guest #home .ghb-loop-copy {
  margin-top: 18px;
}

body.app-shell-guest #home .ghb-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--w2g-line);
  list-style: none;
}

body.app-shell-guest #home .ghb-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--w2g-line);
  border-bottom: 1px solid var(--w2g-line);
}

body.app-shell-guest #home .ghb-step:nth-child(even) {
  border-right: 0;
}

body.app-shell-guest #home .ghb-step-num {
  color: #B8A47C;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

body.app-shell-guest #home .ghb-step strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

body.app-shell-guest #home .ghb-step p {
  margin: 7px 0 0;
  color: var(--w2g-body);
  font-size: 14px;
  line-height: 1.65;
}

/* Closing CTA and footer */
body.app-shell-guest #home .ghb-close {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 54px max(40px, calc((100% - 1180px) / 2));
  background: #241D14;
  color: #FFFDF8;
}

body.app-shell-guest #home .ghb-close h2 {
  max-width: 680px;
  margin: 0;
  color: #FFFDF8;
  font-size: clamp(30px, 2.64vw, 38px);
  font-weight: 800;
  line-height: 1.25;
}

body.app-shell-guest #home .ghb-close p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: #E4D6BC;
  font-size: 15px;
  line-height: 1.65;
}

body.app-shell-guest #home .ghb-close .ghb-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

body.app-shell-guest #home .ghb-footer {
  display: grid;
  width: 100%;
  grid-template-columns: 1.5fr repeat(2, minmax(150px, 0.7fr));
  gap: 40px;
  padding: 46px max(40px, calc((100% - 1180px) / 2)) 0;
  border-top: 1px solid var(--w2g-line);
  background: var(--w2g-surface);
}

body.app-shell-guest #home .ghb-footer > div,
body.app-shell-guest #home .ghb-footer > nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

body.app-shell-guest #home .ghb-footer-bottom {
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--w2g-line);
}

body.app-shell-guest #home .ghb-footer-bottom p.ghb-footer-copyright {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--w2g-muted);
}

body.app-shell-guest #home .ghb-footer-bottom p.ghb-footer-trust {
  font-size: 12px;
  color: var(--w2g-muted);
  line-height: 1.55;
}

body.app-shell-guest #home .ghb-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--w2g-ink);
  text-decoration: none;
}

body.app-shell-guest #home .ghb-footer .brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--w2g-orange);
  color: #FFFDF8;
  font-size: 12px;
  font-weight: 800;
}

body.app-shell-guest #home .ghb-footer .brand strong,
body.app-shell-guest #home .ghb-footer > div > strong,
body.app-shell-guest #home .ghb-footer > nav > strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-footer .brand small {
  display: block;
  margin-top: 2px;
  color: var(--w2g-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

body.app-shell-guest #home .ghb-footer p {
  margin: 0;
  color: var(--w2g-body);
  font-size: 14px;
  line-height: 1.65;
}

body.app-shell-guest #home .ghb-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--w2g-body);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

body.app-shell-guest #home .ghb-footer button:hover {
  color: var(--w2g-orange-ink);
}

/* Motion enhances visible defaults; content never depends on it. */
body.app-shell-guest #home .gh-motion-ready > .ghb-hero > * {
  animation: ghbMotionEnter var(--gh-motion-enter) var(--gh-motion-ease) both;
}

body.app-shell-guest #home .gh-motion-ready > .ghb-hero > :nth-child(2) { animation-delay: 45ms; }
body.app-shell-guest #home .gh-motion-ready > .ghb-hero > :nth-child(3) { animation-delay: 85ms; }
body.app-shell-guest #home .gh-motion-ready > .ghb-hero > :nth-child(4) { animation-delay: 110ms; }
body.app-shell-guest #home .gh-motion-ready > .ghb-hero > :nth-child(5) { animation-delay: 145ms; }
body.app-shell-guest #home .gh-motion-ready > .ghb-hero > :nth-child(6) { animation-delay: 175ms; }

body.app-shell-guest #home .ghb-motion-reveal {
  animation: ghbMotionReveal 460ms var(--gh-motion-ease) both;
  animation-delay: calc(var(--ghb-reveal-index, 0) * 55ms);
}

@keyframes ghbMotionEnter {
  from { opacity: 0.68; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ghbMotionReveal {
  from { opacity: 0.76; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ghbTicker {
  /* --ghb-ticker-cycle is set by setupGuestCategoryTicker() to the exact px
     width of one logical category sequence (JS measures it from the DOM,
     after topping up how many repeated sequences are rendered so wide
     viewports stay covered). Translating by exactly one cycle -- rather than
     a percentage of the whole, now variable-length, track -- keeps speed and
     loop-point math correct no matter how many copies were needed. The
     16.6667% fallback (1/6) matches the 6 sequences rendered before JS runs. */
  to { transform: translateX(calc(-1 * var(--ghb-ticker-cycle, 16.6667%))); }
}

@keyframes ghbCategoryRail {
  to { transform: translateX(calc(-50% - 5px)); }
}

@media (max-width: 1050px) {
  body.app-shell-guest:has(#home.active-view) > .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 64px;
    padding: 10px 40px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar > .mobile-menu-button {
    grid-column: 3;
    grid-row: 1;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar > .auth-actions {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar > .auth-actions > :not(#signupShortcut) {
    display: none !important;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut {
    display: inline-flex !important;
    min-height: 44px;
    padding: 0 14px;
  }

  body.app-shell-guest.mobile-menu-open:has(#home.active-view) > .topbar > .main-nav.open,
  body.app-shell-guest.guest-menu-closing:has(#home.active-view) > .topbar > .main-nav.open.guest-menu-closing {
    top: 64px !important;
  }

  body.app-shell-guest #home .ghb-hero {
    width: calc(100% - 80px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'kicker'
      'title'
      'lead'
      'visual'
      'actions'
      'journey';
    padding: 48px 0 64px;
  }

  body.app-shell-guest #home .ghb-title {
    font-size: 54px;
  }

  body.app-shell-guest #home .ghb-lead {
    max-width: 58ch;
  }

  body.app-shell-guest #home .ghb-hero-visual {
    display: flex;
    width: 100%;
    gap: 14px;
    margin-top: 28px;
    padding: 3px 3px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  body.app-shell-guest #home .ghb-hero-poster-rail {
    display: contents;
  }

  body.app-shell-guest #home .ghb-hero-poster-card {
    flex: 0 0 min(40vw, 280px);
    scroll-snap-align: start;
  }

  body.app-shell-guest #home .ghb-hero-team-card,
  body.app-shell-guest #home .ghb-hero-competition-empty {
    flex: 0 0 min(46vw, 340px);
    scroll-snap-align: start;
  }

  body.app-shell-guest #home .ghb-category-head,
  body.app-shell-guest #home .ghb-category-marquee,
  body.app-shell-guest #home .ghb-showcase,
  body.app-shell-guest #home .ghb-loop {
    width: calc(100% - 80px);
  }

  body.app-shell-guest #home .ghb-showcase-row {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 40px;
  }

  body.app-shell-guest #home .ghb-showcase-row-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  }

  body.app-shell-guest #home .ghb-showcase-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-shell-guest #home .ghb-showcase-facts > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  body.app-shell-guest #home .ghb-loop {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body.app-shell-guest #home .ghb-loop-intro {
    position: static;
  }
}

@media (max-width: 900px) {
  body.app-shell-guest #home .ghb-showcase-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.app-shell-guest #home .ghb-showcase-row-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-shell-guest #home .ghb-showcase-row-reverse .ghb-showcase-poster,
  body.app-shell-guest #home .ghb-showcase-row-reverse .ghb-showcase-copy {
    order: initial;
  }

  body.app-shell-guest #home .ghb-showcase-copy h3 {
    max-width: 26ch;
  }

  body.app-shell-guest #home .ghb-connector,
  body.app-shell-guest #home .ghb-close {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  body.app-shell-guest #home .ghb-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-shell-guest #home .ghb-close .ghb-actions {
    flex-wrap: wrap;
  }

  body.app-shell-guest #home .ghb-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-shell-guest #home .ghb-footer-brand,
  body.app-shell-guest #home .ghb-footer > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.app-shell-guest:has(#home.active-view) > .topbar {
    gap: 7px;
    padding: 7px 16px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar .brand {
    gap: 7px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar .brand strong {
    font-size: 13px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 13px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar > .mobile-menu-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.app-shell-guest #home .ghb-hero {
    width: calc(100% - 40px);
    padding: 26px 0 34px;
  }

  body.app-shell-guest #home .ghb-kicker,
  body.app-shell-guest #home .ghb-section-label {
    font-size: 13px;
  }

  body.app-shell-guest #home .ghb-kicker::before {
    display: none;
  }

  body.app-shell-guest #home .ghb-title {
    margin-top: 12px;
    font-size: 36px;
    line-height: 1.24;
  }

  body.app-shell-guest #home .ghb-lead {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.72;
  }

  body.app-shell-guest #home .ghb-hero-visual {
    width: calc(100% + 20px);
    margin-top: 20px;
    padding-right: 20px;
  }

  body.app-shell-guest #home .ghb-hero-poster-card {
    min-height: 0;
    flex-basis: min(72vw, 252px);
  }

  body.app-shell-guest #home .ghb-hero-team-card,
  body.app-shell-guest #home .ghb-hero-competition-empty {
    flex-basis: min(82vw, 292px);
  }

  body.app-shell-guest #home .ghb-hero > .ghb-actions {
    width: 100%;
    flex-direction: column;
    margin-top: 20px;
  }

  body.app-shell-guest #home .ghb-button {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
    font-size: 15.5px;
  }

  body.app-shell-guest #home .ghb-journey {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
  }

  body.app-shell-guest #home .ghb-journey li,
  body.app-shell-guest #home .ghb-journey li:first-child,
  body.app-shell-guest #home .ghb-journey li:last-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--w2g-line);
  }

  body.app-shell-guest #home .ghb-journey strong {
    font-size: 16px;
  }

  body.app-shell-guest #home .ghb-journey p {
    font-size: 13.5px;
  }

  body.app-shell-guest #home .ghb-categories {
    padding-bottom: 34px;
  }

  body.app-shell-guest #home .ghb-ticker-track {
    padding-block: 13px;
    animation: none;
  }

  body.app-shell-guest #home .ghb-category-head,
  body.app-shell-guest #home .ghb-showcase,
  body.app-shell-guest #home .ghb-loop {
    width: calc(100% - 40px);
  }

  body.app-shell-guest #home .ghb-category-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 30px 0 18px;
  }

  body.app-shell-guest #home .ghb-category-head h2,
  body.app-shell-guest #home .ghb-showcase-head h2,
  body.app-shell-guest #home .ghb-section-head h2,
  body.app-shell-guest #home .ghb-loop h2 {
    font-size: 27px;
    line-height: 1.28;
  }

  body.app-shell-guest #home .ghb-category-head p,
  body.app-shell-guest #home .ghb-showcase-head p,
  body.app-shell-guest #home .ghb-recruiting-copy,
  body.app-shell-guest #home .ghb-loop-copy {
    font-size: 14.5px;
    line-height: 1.65;
  }

  body.app-shell-guest #home .ghb-category-marquee {
    width: calc(100% - 20px);
    margin-right: 0;
    margin-left: 20px;
    padding: 2px 20px 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  body.app-shell-guest #home .ghb-category-track {
    animation: none;
  }

  body.app-shell-guest #home .ghb-category-grid-clone {
    display: none;
  }

  body.app-shell-guest #home .ghb-category-card {
    min-height: 50px;
    scroll-snap-align: start;
  }

  body.app-shell-guest #home .ghb-showcase {
    padding-bottom: 34px;
  }

  body.app-shell-guest #home .ghb-showcase-head,
  body.app-shell-guest #home .ghb-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 17px;
  }

  body.app-shell-guest #home .ghb-showcase-row {
    gap: 20px;
    padding: 28px 0;
  }

  body.app-shell-guest #home .ghb-showcase-poster .ghb-poster-frame {
    min-height: 220px;
  }

  body.app-shell-guest #home .ghb-showcase-poster .ghb-poster-fallback {
    min-height: 250px;
  }

  body.app-shell-guest #home .ghb-showcase-index {
    top: -4px;
    font-size: 42px;
  }

  body.app-shell-guest #home .ghb-showcase-copy h3,
  body.app-shell-guest #home .ghb-showcase-copy h3.is-long {
    max-width: none;
    margin-top: 14px;
    padding-right: 38px;
    font-size: 25px;
    line-height: 1.3;
  }

  body.app-shell-guest #home .ghb-showcase-description {
    margin-top: 13px;
    font-size: 15px;
  }

  body.app-shell-guest #home .ghb-showcase-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  body.app-shell-guest #home .ghb-showcase-facts > div {
    padding: 12px;
  }

  body.app-shell-guest #home .ghb-showcase-facts dd {
    font-size: 14.5px;
  }

  body.app-shell-guest #home .ghb-comp-team-bridge {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
  }

  body.app-shell-guest #home .ghb-showcase-actions {
    margin-top: 16px;
  }

  body.app-shell-guest #home .ghb-connector {
    gap: 10px;
    padding: 24px 20px;
  }

  body.app-shell-guest #home .ghb-connector h2 {
    font-size: 24px;
    line-height: 1.35;
  }

  body.app-shell-guest #home .ghb-connector p {
    font-size: 14.5px;
  }

  body.app-shell-guest #home .ghb-recruiting {
    padding: 32px 20px 34px;
  }

  body.app-shell-guest #home .ghb-team-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
  }

  body.app-shell-guest #home .ghb-team-card,
  body.app-shell-guest #home .ghb-team-create-card {
    min-height: 0;
    padding: 20px;
  }

  body.app-shell-guest #home .ghb-team-card h3,
  body.app-shell-guest #home .ghb-team-create-card h3 {
    font-size: 21px;
    -webkit-line-clamp: 3;
  }

  body.app-shell-guest #home .ghb-team-roles.is-desktop {
    display: none;
  }

  body.app-shell-guest #home .ghb-team-roles.is-mobile {
    display: flex;
  }

  body.app-shell-guest #home .ghb-team-empty {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 20px;
    padding: 20px;
  }

  body.app-shell-guest #home .ghb-loop {
    gap: 22px;
    padding: 34px 0;
  }

  body.app-shell-guest #home .ghb-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-shell-guest #home .ghb-step,
  body.app-shell-guest #home .ghb-step:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
  }

  body.app-shell-guest #home .ghb-close {
    padding: 32px 20px;
  }

  body.app-shell-guest #home .ghb-close h2 {
    font-size: 27px;
  }

  body.app-shell-guest #home .ghb-close .ghb-actions {
    width: 100%;
    flex-direction: column;
  }

  body.app-shell-guest #home .ghb-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
    padding: 34px 20px 0;
  }

  body.app-shell-guest #home .ghb-footer-brand,
  body.app-shell-guest #home .ghb-footer > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 370px) {
  body.app-shell-guest:has(#home.active-view) > .topbar {
    padding-inline: 12px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar .brand strong {
    max-width: 76px;
  }

  body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut {
    padding-inline: 9px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-shell-guest #home .ghb *,
  body.app-shell-guest #home .ghb *::before,
  body.app-shell-guest #home .ghb *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.app-shell-guest #home .ghb-category-track,
  body.app-shell-guest #home .ghb-ticker-track {
    transform: none !important;
    animation: none !important;
  }

  body.app-shell-guest #home .ghb-category-marquee {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body.app-shell-guest #home .ghb-category-grid-clone {
    display: none;
  }
}

/* Approved Light Color System rollout: Guest Home only. */
html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar {
  border-bottom-color: #E5E7EB !important;
  background: #FFFFFF !important;
  color: #18181B !important;
}

html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar .brand,
html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar .brand strong,
html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar .main-nav button,
html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar #loginShortcut,
html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar > .mobile-menu-button {
  color: #3F3F46 !important;
}

html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar .brand strong {
  color: #EA580C !important;
}

html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar .main-nav button.active {
  border-color: #FED7AA !important;
  background: #FFF4ED !important;
  color: #C2410C !important;
}

html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut,
html[data-theme="light"] body.app-shell-guest #home .ghb-button-primary {
  border-color: #C2410C !important;
  background: #C2410C !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar #signupShortcut:hover,
html[data-theme="light"] body.app-shell-guest #home .ghb-button-primary:hover {
  border-color: #9A3412 !important;
  background: #9A3412 !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] body.app-shell-guest #home .ghb-category-ticker,
html[data-theme="light"] body.app-shell-guest #home .ghb-connector,
html[data-theme="light"] body.app-shell-guest #home .ghb-close {
  background: #18181B;
  color: #FFFFFF;
}

html[data-theme="light"] body.app-shell-guest #home .ghb-connector h2,
html[data-theme="light"] body.app-shell-guest #home .ghb-close h2 {
  color: #FFFFFF;
}

html[data-theme="light"] body.app-shell-guest #home .ghb-connector p,
html[data-theme="light"] body.app-shell-guest #home .ghb-close p {
  color: #D4D4D8;
}

html[data-theme="light"] body.app-shell-guest #home .ghb-poster-fallback strong,
html[data-theme="light"] body.app-shell-guest #home .ghb-showcase-index,
html[data-theme="light"] body.app-shell-guest #home .ghb-step-num {
  color: #71717A;
}

html[data-theme="light"] body.app-shell-guest:has(#home.active-view) > .topbar .brand-mark {
  border-color: #EA580C !important;
  background: #EA580C !important;
  color: #18181B !important;
}

html[data-theme="light"] body.app-shell-guest #home .ghb-button-dark-outline {
  color: #FFFFFF !important;
}
