/* Section header and source tabs. The design tokens are mirrored from
   css/base.css and css/models.css because the header and tabs live outside
   the .grc panels where those tokens are declared. */
.grc-section, .grc-section * { box-sizing: border-box; }
.grc-section {
  --grc-text: #1f1f1f;
  --grc-muted: #5f6368;
  --grc-border: #e3e3e3;
  --grc-accent: #1a73e8;
  --grc-card-bg: #ffffff;
  --grc-radius: 16px;
  /* Mirrors --grc-shadow (css/base.css): the elevation used by the cards. */
  --grc-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
  /* Mirrors the background of .grc-card--dark (css/models.css) so the active
     pill reads as the same design as the dark card model. */
  --grc-dark-bg: #1f2933;
  /* Amber of the design mock's eyebrow. Literal because css/base.css has no
     amber/orange token (--grc-star is #fbbc04 yellow, --grc-accent is blue). */
  --grc-amber: #e8a33d;
}

.grc-section__eyebrow {
  max-width: var(--grc-max-width, 1200px);
  margin: 0 auto;
  padding-inline: var(--grc-padding-inline, 1rem);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--grc-amber);
}
.grc-section__title {
  max-width: var(--grc-max-width, 1200px);
  margin: .5rem auto 0;
  padding-inline: var(--grc-padding-inline, 1rem);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--grc-text);
}
.grc-section__description {
  /* Narrower than the 1200px content column so the copy stays readable
     when centered instead of spanning the page. */
  max-width: 40rem;
  margin: .75rem auto 0;
  padding-inline: var(--grc-padding-inline, 1rem);
  font-size: .9375rem;
  line-height: 1.6;
  text-align: center;
  color: var(--grc-muted);
}

.grc-section__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  max-width: var(--grc-max-width, 1200px);
  margin: 1.5rem auto 0;
  padding-inline: var(--grc-padding-inline, 1rem);
}
.grc-section__tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border: 1px solid var(--grc-border);
  border-radius: 999px;
  background: var(--grc-card-bg);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--grc-text);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
/* Elevation only on hover; the active pill carries the same slight shadow
   permanently, and its rule below wins the cascade while hovered. */
.grc-section__tab:hover {
  box-shadow: var(--grc-shadow);
}
.grc-section__tab[aria-selected='true'] {
  /* Same-as-background border keeps the pill the same size when it activates. */
  border-color: var(--grc-dark-bg);
  background: var(--grc-dark-bg);
  color: #fff;
  box-shadow: var(--grc-shadow);
}
.grc-section__tab:focus-visible {
  outline: 2px solid var(--grc-accent);
  outline-offset: 2px;
}
.grc-section__tab-icon {
  height: 1.125rem;
  width: auto;
}

.grc-section__panels { margin-top: 1.5rem; }
.grc-section__panels > [hidden] { display: none; }

@media (max-width: 640px) {
  .grc-section__tab { padding: .5rem 1rem; font-size: .875rem; }
}

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