/* Give the new hub introduction its section palette without restyling the product below it. */
main[data-a11-theme="learn"] {
  --hub-background: #f6f2e8;
  --hub-surface: #fffcf5;
  --hub-ink: #17382b;
  --hub-accent: #245d46;
  --hub-border: #cfccaf;
}

main[data-a11-theme="tools"] {
  --hub-background: #eff8f6;
  --hub-surface: #f8fdfb;
  --hub-ink: #123b3a;
  --hub-accent: #006c67;
  --hub-border: #b8d9d2;
}

main[data-a11-theme="agents"] {
  --hub-background: #111326;
  --hub-surface: #1a1d36;
  --hub-ink: #f4f2ff;
  --hub-accent: #c4b5fd;
  --hub-border: #46486c;
}

main[data-a11-theme="cybersecurity"] {
  --hub-background: #0e161d;
  --hub-surface: #182630;
  --hub-ink: #f1f5f7;
  --hub-accent: #f4bf5b;
  --hub-border: #3c4d58;
}

main[data-a11-theme="rules"] {
  --hub-background: #f7f5ef;
  --hub-surface: #fcfbf6;
  --hub-ink: #26364d;
  --hub-accent: #2e4e8b;
  --hub-border: #d7cfb9;
}

main[data-a11-theme="about"] {
  --hub-background: #f7f0f4;
  --hub-surface: #fffafd;
  --hub-ink: #41293b;
  --hub-accent: #754568;
  --hub-border: #dec6d3;
}

main[data-a11-theme="archive"] {
  --hub-background: #f1f2f4;
  --hub-surface: #f7f9fc;
  --hub-ink: #343a45;
  --hub-accent: #4d5d7b;
  --hub-border: #cbd1dc;
}

main[data-a11-theme] .a11-section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.5rem;
  margin: clamp(.65rem, 1.45vw, 1.2rem) 0 clamp(1rem, 2.6vw, 2rem);
  padding: .75rem clamp(.95rem, 2.8vw, 1.6rem);
  border: 1px solid var(--hub-border);
  border-inline-start: 3px solid var(--hub-accent);
  border-radius: .75rem;
  background: var(--hub-background);
  background-image: linear-gradient(110deg, var(--hub-background), var(--hub-surface));
  color: var(--hub-ink);
}

main[data-a11-theme] .a11-section-intro > p {
  flex: 1 1 22rem;
  min-inline-size: 0;
  max-inline-size: 72ch;
  margin: 0;
  padding: .2rem 0;
  color: var(--hub-ink);
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
  line-height: 1.5;
}

main[data-a11-theme] .a11-section-intro .a11-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main[data-a11-theme] .a11-section-intro .a11-section-links li {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
}

main[data-a11-theme] .a11-section-intro a {
  color: var(--hub-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

main[data-a11-theme] .a11-section-intro .a11-section-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

main[data-a11-theme] .a11-section-intro a:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 3px;
  border-radius: .15rem;
}

@media (max-width: 480px) {
  main[data-a11-theme] .a11-section-intro {
    align-items: stretch;
    flex-direction: column;
  }

  main[data-a11-theme] .a11-section-intro > p {
    flex: none;
  }

  main[data-a11-theme] .a11-section-intro .a11-section-links {
    gap: .1rem 1rem;
  }
}

