/* Editorial hub - the nav overlay's language applied to the insights hub.
   Numbered rows, gradient underline sweeps, oversized type. Both themes. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[data-filterable].is-filtered-out {
  display: none;
}

/* --- Featured hero --- */
.hub-hero {
  padding: 88px 0 40px;
}

.hub-hero .eyebrow {
  margin-bottom: 14px;
}

.hub-hero-link {
  text-decoration: none;
}

.hub-hero-title {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text-primary);
  /* Reset the global h2 gradient-text treatment (main.css): as an h2 this
     title inherits clip:text + transparent fill, which renders the glyphs
     invisible against the 0%-width underline-sweep background. */
  -webkit-text-fill-color: var(--text-primary);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  display: inline;
  background-image: linear-gradient(90deg, #3EAE2C, #006CC1);
  background-repeat: no-repeat;
  background-size: 0% 0.08em;
  background-position: 0 96%;
  transition: background-size 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.hub-hero-link:hover .hub-hero-title {
  background-size: 100% 0.08em;
}

.hub-hero-dek {
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 720px;
  margin: 18px 0 16px;
}

.hub-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hub-hero-supporting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hub-supporting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.hub-supporting-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hub-supporting-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.25s ease;
}

.hub-supporting-item:hover .hub-supporting-title {
  color: var(--green, #3EAE2C);
}

.hub-supporting-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* --- Topics index (numbered rows) --- */
.hub-topics {
  padding: 48px 0;
}

.topics-index {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.topic-entry {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.topic-entry:first-child {
  border-top: 1px solid var(--border);
}

.topic-entry-num {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.topic-entry-main {
  flex: 1;
  min-width: 0;
}

.topic-entry-title {
  display: inline;
  font-size: var(--fs-subsection);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-primary);
  background-image: linear-gradient(90deg, #3EAE2C, #006CC1);
  background-repeat: no-repeat;
  background-size: 0% 0.07em;
  background-position: 0 96%;
  transition: background-size 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.topic-entry:hover .topic-entry-title {
  background-size: 100% 0.07em;
}

.topic-entry:hover .topic-entry-num {
  color: var(--green, #3EAE2C);
}

.topic-entry-intro {
  display: block;
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-top: 6px;
}

.topic-entry-count {
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Curated collections --- */
.hub-collections {
  padding: 48px 0;
}

.hub-section-title {
  font-size: var(--fs-section);
  margin: 10px 0 24px;
  color: var(--text-primary);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.collection-card:hover {
  border-color: rgba(62, 174, 44, 0.45);
  transform: translateY(-2px);
}

.collection-card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.collection-card > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.collection-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.collection-card li {
  border-top: 1px solid var(--border);
}

.collection-card li a {
  display: block;
  padding: 10px 0;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.collection-card li a:hover {
  color: var(--green, #3EAE2C);
  padding-left: 6px;
}

.collection-card--tools {
  background:
    radial-gradient(60% 50% at 25% 15%, rgba(62, 174, 44, 0.08), transparent 65%),
    radial-gradient(60% 50% at 80% 90%, rgba(0, 108, 193, 0.08), transparent 65%),
    var(--surface);
}

/* --- Latest editorial index --- */
.hub-latest {
  padding: 48px 0 24px;
}

.latest-index {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.insight-row {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.insight-row:first-child {
  border-top: 1px solid var(--border);
}

.insight-row-num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  flex-shrink: 0;
  width: 2em;
  transition: color 0.25s ease;
}

.insight-row-main {
  flex: 1;
  min-width: 0;
}

.insight-row-title {
  display: inline;
  font-size: var(--fs-row);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background-image: linear-gradient(90deg, #3EAE2C, #006CC1);
  background-repeat: no-repeat;
  background-size: 0% 0.07em;
  background-position: 0 96%;
  transition: background-size 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.insight-row:hover .insight-row-title {
  background-size: 100% 0.07em;
}

.insight-row:hover .insight-row-num {
  color: var(--green, #3EAE2C);
}

.insight-row-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.insight-row-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
}

.insight-row:hover .insight-row-arrow {
  transform: translateX(6px);
  color: var(--green, #3EAE2C);
}

/* --- Newsletter band --- */
.hub-newsletter {
  padding: 48px 0 80px;
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.newsletter-band-title {
  font-size: var(--fs-subsection);
  margin: 10px 0 10px;
  color: var(--text-primary);
}

.newsletter-band-copy p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.topic-back {
  margin: 26px 0 0;
}

.topic-back a {
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hub-hero-supporting,
  .collections-grid,
  .newsletter-band {
    grid-template-columns: 1fr;
  }

  /* Rows stack their meta under the title - type and date stay visible */
  .insight-row {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 18px 0;
  }

  .insight-row-num {
    width: auto;
  }

  .insight-row-main {
    flex-basis: calc(100% - 3em);
  }

  .insight-row-meta {
    flex-basis: 100%;
    padding-left: calc(2em + 16px);
    font-size: 12px;
    gap: 10px;
  }

  .insight-row-meta .type-chip {
    font-size: 10px;
    padding: 2px 9px;
  }

  .insight-row-arrow {
    display: none;
  }

  .insight-row-desc {
    -webkit-line-clamp: 3;
  }

  .topic-entry {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .topic-entry-count {
    flex-basis: 100%;
    padding-left: calc(0.9rem + 24px);
    font-size: 12.5px;
  }

  .newsletter-band .email-gate-input {
    min-width: 0;
    width: 100%;
  }

  .newsletter-band .email-gate-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Article header: full-bleed editorial (overrides the boxed banner) --- */
.article-banner {
  min-height: 0;
  padding: 96px 2rem 8px;
  justify-content: flex-start;
  background-color: transparent;
}

.article-banner::before,
.article-banner::after {
  content: none;
}

.article-banner-content {
  text-align: left;
  max-width: 880px;
  width: 100%;
}

.article-eyebrow {
  background: linear-gradient(90deg, #3EAE2C, #006CC1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 0.72rem;
  margin-bottom: 1.4rem;
}

.article-banner-content h1 {
  font-size: var(--fs-display);
  line-height: 1.08;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}

.article-subtitle {
  margin: 0 0 1.8rem;
  max-width: 760px;
  font-size: var(--fs-lead);
}

.article-banner-meta {
  justify-content: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 0.8rem;
}

/* --- Radar header inherits the same editorial feel --- */
.radar-header .radar-title {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
}

/* --- Overlay: topics group --- */
.nav-overlay-topics {
  margin-bottom: 26px;
}

.nav-overlay-topics ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-overlay-topics a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-overlay-topics a:hover {
  color: var(--text-primary);
}

.nav-overlay-topics .nav-topic-num {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.nav-overlay-topics a:hover .nav-topic-num {
  color: var(--green, #3EAE2C);
}

.nav-overlay-topics .nav-topic-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-overlay-topics a:hover .nav-topic-count {
  opacity: 1;
  transform: translateX(0);
}

/* --- Homepage skills pack band --- */
.skills-band-section {
  padding: 72px 0;
}

.skills-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  background:
    radial-gradient(55% 60% at 20% 10%, rgba(62, 174, 44, 0.09), transparent 65%),
    radial-gradient(55% 60% at 85% 90%, rgba(0, 108, 193, 0.09), transparent 65%),
    var(--surface);
}

.skills-band-copy h2 {
  font-size: var(--fs-section, clamp(1.8rem, 4vw, 2.6rem));
  margin: 10px 0 12px;
  color: var(--text-primary);
}

.skills-band-copy .section-lead {
  margin-bottom: 22px;
}

.skills-band-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.skills-band-chip {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-elevated);
}

.skills-band-chip:nth-child(3n+1) {
  border-color: rgba(62, 174, 44, 0.4);
}

.skills-band-chip:nth-child(3n+2) {
  border-color: rgba(0, 155, 133, 0.4);
}

.skills-band-chip:nth-child(3n) {
  border-color: rgba(0, 108, 193, 0.4);
}

.skills-band-chip:last-child {
  background: linear-gradient(90deg, #3EAE2C, #006CC1);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 768px) {
  .skills-band {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .skills-band-visual {
    justify-content: flex-start;
  }
}
