/* hugo/assets/css/homepage.css
   New developer homepage styles. Uses Horizon CSS tokens per project precedent.
   Reference: hugo/assets/css/home.css for token names and spacing rhythm.
*/

/* ===== Per-band partials =====
   Hugo's asset pipeline uses `resources.Get` here (no postcss), so raw
   @import statements emit as literal CSS @import — the browser then
   404s on /css/homepage/*.css because Hugo doesn't publish the partial
   files as static assets. Everything band-specific must live inline
   below. Source of truth for the events-band chunk is
   hugo/assets/css/homepage/_events-band.css (kept in sync manually). */

/* Events band (#1030) */
.events-band__chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.events-band__chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--sapContent_ForegroundBorderColor, #ccc);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--sapTextColor, #32363a);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.events-band__chip--active {
  background: var(--sapButton_Selected_Background, #0854a0);
  color: var(--sapButton_Selected_TextColor, #fff);
  border-color: transparent;
}
.events-band__chip:focus-visible {
  outline: 2px solid var(--sapContent_FocusColor, #0854a0);
  outline-offset: 2px;
}
.events-band__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .events-band__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .events-band__cards { grid-template-columns: 1fr; } }
.event-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  text-decoration: none;
  border: 1px solid var(--sapContent_ForegroundBorderColor, #e5e5e5);
  border-radius: 8px;
  color: inherit;
  background: var(--sapBaseColor, #fff);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.event-card:hover {
  border-color: var(--sapButton_Selected_Background, #0854a0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.event-card__type {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* Readable pill: brand-link text over a neutral hover tint. Both tokens are
     defined with proper light/dark values in sap-theme-vars.css, so contrast
     holds in both themes. The prior `color: --sapButton_Selected_Background`
     rendered text and fill in the same hue → invisible label (#1116 regress). */
  color: var(--sapLinkColor, #0064d9);
  background: var(--sapList_Hover_Background, rgba(0, 112, 242, 0.06));
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.event-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sapTextColor, #32363a);
  margin: 0.25rem 0 0.75rem;
  line-height: 1.4;
  /* Clamp to 2 lines so cards stay same height across a row */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--sapContent_LabelColor, #6a6d70);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sapContent_ForegroundBorderColor, #eaecee);
}
.event-card__date { font-weight: 600; color: var(--sapTextColor, #32363a); }

/* Skeleton loader */
.events-band__chips--skeleton .events-band__chip--skeleton {
  display: inline-block;
  width: 5rem;
  height: 2rem;
  border-color: transparent;
  background: linear-gradient(90deg, #f4f4f4 25%, #ececec 50%, #f4f4f4 75%);
  background-size: 200% 100%;
  animation: eventskel 1.5s infinite;
  cursor: default;
}
.events-band__chips--skeleton .events-band__chip--skeleton:first-child { width: 3.5rem; }
.event-card--skeleton {
  min-height: 8rem;
  background: linear-gradient(90deg, #f4f4f4 25%, #ececec 50%, #f4f4f4 75%);
  background-size: 200% 100%;
  animation: eventskel 1.5s infinite;
  border-color: transparent;
}
@keyframes eventskel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.events-band__loading,
.events-band__empty {
  padding: 1rem 0;
  color: var(--sapContent_LabelColor, #6a6d70);
}
.events-band__empty a { color: var(--sapLinkColor, #0070f3); }
.events-band__empty a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .event-card--skeleton,
  .events-band__chips--skeleton .events-band__chip--skeleton { animation: none; }
  .event-card { transition: none; }
}

/* ===== Page shell ===== */
.developer-homepage {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===== Hero (row 1) ===== */
.hp-hero {
  padding: 2.5rem 0;
  text-align: center;
}

.hp-hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--sapTextColor, #32363a);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hp-hero p {
  font-size: 1.125rem;
  color: var(--sapContent_LabelColor, #6a6d70);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Verb spine (row 2) ===== */
.hp-verbs {
  display: grid;
  /* (#1029) 7 columns since MODEL was added. Breakpoints below tuned to
     avoid a lonely orphan tile at intermediate widths — 4+3 wrap at
     901–1200px instead of 3+3+1, and full 7-across only kicks in above
     1200px where the ~163px/col leaves room for "Extend with AI". */
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .hp-verbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  /* (#1029) Intermediate widths: 4-col wrap so 7 tiles land as 4+3, not
     3+3+1 with an orphan on the last row. The old 3-col rule at
     ≤1100px produced a lonely tile whenever the spine grew past 6. */
  .hp-verbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hp-verb {
  padding: 1rem;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
  border-radius: 8px;
  background: var(--sapList_Background, #fff);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hp-verb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--sapLink_Color, #0070f3);
  text-decoration: none;
}

.hp-verb__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hp-verb__label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sapTextColor, #32363a);
  margin-bottom: 0.35rem;
}

.hp-verb__preview {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--sapContent_LabelColor, #6a6d70);
  line-height: 1.4;
}

.hp-verb__preview li {
  padding: 0.1rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Shared band styles (rows 3, 4, 6) ===== */
.hp-band {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--sapList_HeaderBackground, #f5f6f7);
}

.hp-band__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sapTextColor, #32363a);
  margin: 0 0 1rem;
}

/* ===== Events band (row 3) ===== */
#hp-events {
  min-height: 4rem;
}

/* ===== Video band (row 4) ===== */
#hp-videos {
  min-height: 4rem;
}

/* ===== Tutorials teaser (row 5) ===== */
.hp-teaser {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-teaser__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hp-teaser__header .hp-band__title {
  margin: 0;
}

.hp-teaser__see-all {
  font-size: 0.9rem;
  color: var(--sapLinkColor, #0070f3);
  text-decoration: none;
  white-space: nowrap;
}

.hp-teaser__see-all:hover {
  text-decoration: underline;
}

.hp-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ===== Community lane (row 6) ===== */
#hp-community {
  min-height: 4rem;
}

.hp-community__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 700px) {
  .hp-community__cols {
    grid-template-columns: 1fr;
  }
}

/* ===== Directory footer (row 7) ===== */
.hp-directory {
  display: grid;
  /* (#1029) auto-fit with a 180px minimum lets the browser fit as many
     columns as the container comfortably holds — 7 across at ~1440px,
     dropping to 6/5/4 at narrower widths without an explicit
     breakpoint per verb count. Each column stays wide enough that
     link titles like "SAP Business Application Studio" don't wrap
     to three lines. */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--sapList_BorderColor, #e5e5e5);
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .hp-directory {
    /* On narrow viewports pin to 2 cols so the mobile stack stays
       predictable — auto-fit would otherwise let a single column
       expand to full width and destroy the section rhythm. */
    grid-template-columns: repeat(2, 1fr);
  }
}

.hp-directory__col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sapContent_LabelColor, #6a6d70);
  margin: 0 0 0.75rem;
}

.hp-directory__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-directory__col li {
  margin-bottom: 0.4rem;
}

.hp-directory__col a {
  color: var(--sapLinkColor, #0070f3);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
}

.hp-directory__col a:hover {
  text-decoration: underline;
}

/* Utility links row — spans full width below the 7 verb columns */
.hp-directory__utility {
  grid-column: 1 / -1;
  border-top: 1px solid var(--sapList_BorderColor, #e5e5e5);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.hp-directory__utility ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hp-directory__utility a {
  color: var(--sapContent_LabelColor, #6a6d70);
  text-decoration: none;
  font-size: 0.85rem;
}

.hp-directory__utility a:hover {
  color: var(--sapLinkColor, #0070f3);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .hp-verb {
    transition: none;
  }
}

/* (#1651) Sign-in-required padlock. Rendered inline after a link title in the
   directory footer + verb sub-pages (and by the link-explainer Vue island
   after hydration). Muted so it reads as a hint, not a warning. */
.hp-login-lock {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  margin-left: 0.25rem;
  color: var(--sapContent_LabelColor, #6a6d70);
  line-height: 0;
}
.hp-login-lock svg {
  width: 0.7em;
  height: 0.7em;
}

/* ===== Verb sub-pages (Task 19) ===== */
.verb-page { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.verb-page__hero { padding: 2rem 0 1rem; border-bottom: 1px solid var(--sapList_BorderColor, #e5e5e5); margin-bottom: 2rem; }
.verb-page__hero h1 { font-size: 2.5rem; font-weight: 600; color: var(--sapTextColor, #32363a); margin: 0 0 0.5rem; }
.verb-page__hero p { font-size: 1.125rem; color: var(--sapContent_LabelColor, #6a6d70); margin: 0; max-width: 720px; }
/* Long-form whyItMatters paragraphs (same copy as the homepage flip-tile
   rollover). Rendered as a subparagraph below the short tagline — smaller
   than the tagline, body-copy line-height, wider max-width so multi-line
   paragraphs breathe. */
.verb-page__hero-why { margin: 0.75rem 0 0; max-width: 780px; }
.verb-page__hero-why p { font-size: 1rem; line-height: 1.6; color: var(--sapContent_LabelColor, #6a6d70); margin: 0 0 0.75rem; max-width: none; }
.verb-page__hero-why p:last-child { margin-bottom: 0; }

/* Optional editorial body from _index.md (#1035 — Joule Studio) */
.verb-page__body { max-width: 780px; margin: 0 0 2.5rem; color: var(--sapTextColor, #32363a); font-size: 1rem; line-height: 1.6; }
.verb-page__body h2 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--sapTextColor, #32363a); }
.verb-page__body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--sapTextColor, #32363a); }
.verb-page__body p { margin: 0 0 1rem; }
.verb-page__body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.verb-page__body a { color: var(--sapLinkColor, #0064d9); }

.verb-shelf { margin-bottom: 2.5rem; }
.verb-shelf h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sapContent_LabelColor, #6a6d70); font-weight: 700; margin: 0 0 1rem; }
.verb-shelf__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.verb-shelf__list li a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
  border-radius: 6px;
  background: var(--sapList_Background, #fff);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.verb-shelf__list li a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--sapLinkColor, #0070f3);
}
.verb-shelf__list li strong { display: block; color: var(--sapLinkColor, #0070f3); font-weight: 600; margin-bottom: 0.25rem; }
.verb-shelf__list li p { font-size: 0.85rem; color: var(--sapContent_LabelColor, #6a6d70); margin: 0.25rem 0 0; }

/* #794 — The link-explainer-popover Vue island (hugo-apps/src/homepage-explainers/
 * LinkExplainerPopover.vue) renders an .hp-popover-anchor wrapper containing
 * the card link (<a class="hp-popover-link">) followed by a sibling ⓘ button
 * (<button class="hp-popover-icon">). The component's default styling makes
 * the anchor `display: inline` so multi-line link text wraps naturally in
 * the directory-footer surface (popover.css comment #759 hotfix).
 *
 * On the verb-page, the verb-shelf__list li a rule above makes the inner <a>
 * `display: block` to form the card chrome. An inline-block sibling button
 * after a block-level <a> wraps to the next line → the ⓘ icon visually
 * dangles below the card.
 *
 * Fix: scope the popover-anchor to `display: block` and anchor-position the
 * ⓘ in the card's top-right corner ON THIS SURFACE ONLY. The directory-footer
 * surface keeps the inline icon flow. */
.verb-shelf__list .hp-popover-anchor {
  display: block;
}
/* Reserve room for the absolute-positioned ⓘ at top-right so long titles
 * don't run into the icon. Applied to every card on the verb page; harmless
 * (small extra right-whitespace) on the few cards whose entry has no
 * explainer content and therefore no rendered icon. */
.verb-shelf__list .hp-popover-link {
  padding-right: 2rem;
}
.verb-shelf__list .hp-popover-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  margin-left: 0;
  z-index: 1;
}

.badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.badge--new          { background: #16a34a; color: white; }
.badge--updated      { background: #2563eb; color: white; }
.badge--hidden_gem   { background: #ca8a04; color: white; }
.badge--third_party  { background: #6b7280; color: white; }

/* ===== Verb extras ===== */
.verb-extra { margin-top: 3rem; padding: 1.5rem; background: var(--sapList_HeaderBackground, #f5f6f7); border-radius: 8px; }
.verb-extra h2 { font-size: 1.25rem; margin: 0 0 1rem; }

.verb-extra__cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--sapButton_Emphasized_Background, #0070f2);
  color: var(--sapButton_Emphasized_TextColor, white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 0.5rem;
}
.verb-extra__cta:hover { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .verb-shelf__list li a {
    transition: none;
  }
}

/* ===== (#763) Personalization skeleton / CLS guards =====
   Reserve slot height before Vue islands hydrate so the page does not
   shift when content is injected. [data-personalize][hidden] keeps the
   for-you row invisible until the coordinator un-hides it.
*/
[data-personalize] {
  min-height: 1px; /* baseline — prevents zero-height collapse */
}
[data-personalize="verb-order"] { min-height: 240px; }
[data-personalize="for-you"][hidden] { display: none; }
/* No min-height reservation on the for-you row: the coordinator hides
   the section entirely for anonymous / unmatched users, so pre-hydration
   we don't want to occupy 200px of blank space above the events band. */

/* For-you row header — h2 + "because" chip on one line. */
.for-you-row__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.for-you-row__header .hp-band__title { margin: 0; }
.for-you-row__because {
  font-size: 0.8125rem;
  color: var(--sapContent_LabelColor, #6a6d70);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sapButton_Lite_Background, #eaecee);
}
.for-you-row__because:empty { display: none; }

/* For-you cards — horizontal grid, matches the .cards grammar used by
   tutorial-teaser and the featured carousel. */
.for-you-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .for-you-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .for-you-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .for-you-cards { grid-template-columns: 1fr; } }

.for-you-card {
  display: flex;
  flex-direction: column;
  background: var(--sapBaseColor, #fff);
  border: 1px solid var(--sapContent_ForegroundBorderColor, #e4e7ed);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.for-you-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.for-you-card__body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.for-you-card__kind {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sapContent_LabelColor, #6a6d70);
}
.for-you-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: var(--sapTextColor, #32363a);
}
.for-you-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--sapContent_LabelColor, #6a6d70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-personalize="teaser-rerank"] { min-height: 320px; }
.personalized-badge-slot { min-height: 32px; padding: .25rem .5rem; }
.personalized-badge { display: flex; gap: .5em; align-items: center; }

/* Row 5 featured topics carousel — #1032 */
.hp-featured-carousel { position: relative; }
/* When the baked snapshot is empty (deploy raced the nightly job, or JSON
   was never refreshed), the Vue island hydrates from /homepage/featuredTopics()
   on mount. Hide the empty shell during that window so users don't see a
   lonely "Featured missions" header with no cards. If JS is disabled or the
   fetch fails, the row simply stays hidden — the same UX as the pre-fix
   behavior. */
.hp-featured-carousel--pending { display: none; }
.hp-featured-carousel__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.hp-featured-carousel__viewport { position: relative; min-height: 22rem; }
.hp-featured-carousel__slide { transition: opacity 300ms ease, transform 300ms ease; opacity: 1; transform: translateX(0); }
.hp-featured-carousel__slide.hidden { display: none; }
.hp-featured-carousel__slide.is-fading-out { opacity: 0; transform: translateX(-10px); }
.hp-featured-carousel__slide.is-fading-in  { opacity: 0; transform: translateX(10px); }
.hp-featured-carousel__topic { font-size: 1.125rem; margin-bottom: 0.75rem; }
.hp-featured-carousel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .hp-featured-carousel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .hp-featured-carousel__grid { grid-template-columns: 1fr; } }
.hp-featured-carousel__controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; justify-content: center; }
.hp-featured-carousel__controls button { background: transparent; border: 1px solid var(--sapList_BorderColor, #e5e5e5); border-radius: 4px; padding: 0.25rem 0.5rem; cursor: pointer; }
.hp-featured-carousel__dots { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.375rem; }
.hp-featured-carousel__dots button {
  width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 0;
  background: var(--sapContent_LabelColor, #6a6d70); opacity: 0.35;
  cursor: pointer; padding: 0;
}
.hp-featured-carousel__dots button[aria-selected="true"] { opacity: 1; }
.hp-featured-carousel__see-all { color: var(--sapLinkColor, #0070f3); text-decoration: none; }
.hp-featured-carousel__see-all:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .hp-featured-carousel__slide,
  .hp-featured-carousel__slide.is-fading-out,
  .hp-featured-carousel__slide.is-fading-in { transition: none; transform: none; }
}

/* ===== Topic cluster band (#1170) ===== */
.hp-topic-clusters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.hp-topic-clusters__cluster {
  padding: 1rem;
  border-radius: 8px;
  background: var(--sapBaseColor, #fff);
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

.hp-topic-clusters__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sapTextColor, #32363a);
  margin: 0 0 0.25rem;
}

.hp-topic-clusters__rationale {
  font-size: 0.85rem;
  color: var(--sapContent_LabelColor, #6a6d70);
  margin: 0 0 0.5rem;
}

.hp-topic-clusters__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hp-topic-clusters__links a {
  color: var(--sapLinkColor, #0070f3);
  text-decoration: none;
}

.hp-topic-clusters__links a:hover {
  text-decoration: underline;
}
