/* Optional full-bleed band behind a main component, plus its header. */
.gt-band {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: var(--gt-section-py);
}

.gt-band--subtle { background: var(--gt-bg-subtle); }

/* Dark band: the tokens are remapped within scope, so whatever sits inside
   renders light-on-dark at AA. The neutrals are --gt-bg-dark mixed towards
   white, the steps the engine's dark palettes take; the brand is
   --gt-primary-inverse, which the engine fits against these percentages
   (DARK_BAND). Root tokens built from var() - the *-soft tints, the focus
   ring - resolve at :root, so the ones a band's content reads are redeclared.
   Accent and status tints keep their light look: each carries its own ground.
   The mixes are in oklab: white and black have no hue, and Chrome mixing them
   in oklch drops the other colour's hue to none and paints it red. */
.gt-band--dark {
  --gt-bg: var(--gt-bg-dark);
  --gt-surface: color-mix(in oklab, var(--gt-bg-dark), white 6%);
  --gt-surface-2: color-mix(in oklab, var(--gt-bg-dark), white 10%);
  --gt-surface-sunken: color-mix(in oklab, var(--gt-bg-dark), white 3%);
  --gt-border: color-mix(in oklab, var(--gt-bg-dark), white 16%);
  --gt-border-2: color-mix(in oklab, var(--gt-bg-dark), white 46%);
  --gt-ink-3: color-mix(in oklab, var(--gt-bg-dark), white 58%);
  --gt-ink-2: color-mix(in oklab, var(--gt-bg-dark), white 72%);
  --gt-ink: color-mix(in oklab, var(--gt-bg-dark), white 94%);
  --gt-primary: var(--gt-primary-inverse);
  --gt-primary-hover: color-mix(in oklab, var(--gt-primary), black 8%);
  --gt-primary-active: color-mix(in oklab, var(--gt-primary), black 16%);
  --gt-primary-soft: color-mix(in srgb, var(--gt-primary) 22%, var(--gt-surface));
  --gt-primary-text: var(--gt-primary);
  --gt-on-primary: var(--gt-bg-dark);
  --gt-link: var(--gt-primary);
  --gt-focus: var(--gt-primary);
  --gt-focus-ring: 0 0 0 3px var(--gt-surface), 0 0 0 5.5px var(--gt-focus);
  background: var(--gt-bg);
  color: var(--gt-ink);
}

/* A band brings its own vertical padding, so the item after one needs no flow gap. */
.gt-flow__item:has(> .gt-band) + .gt-flow__item:has(> .gt-band) { margin-top: 0; }

.gt-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gt-space-6);
  flex-wrap: wrap;
  margin-bottom: var(--gt-space-6);
}
.gt-section__head .gt-eyebrow { color: var(--gt-primary); margin-bottom: 10px; }
.gt-section__title { margin: 0; }

/* Optional sentence or two framing the section. */
.gt-section__summary {
  font-size: var(--gt-text-lg);
  line-height: var(--gt-leading-normal);
  color: var(--gt-ink-2);
  max-width: 64ch;
  margin: 0 0 var(--gt-space-8);
}
/* Sits tight under the heading it explains. */
.gt-section__head + .gt-section__summary { margin-top: calc(var(--gt-space-4) * -1); }

/* Message a band shows in place of its content when the listing has none. */
.gt-section__empty { margin: 0; color: var(--gt-ink-2); }

.gt-eventlist { display: grid; gap: var(--gt-space-4); }

/* .gt-newsgrid moved to css/chrome.css — it is page layout, and the kit owns it
   there with selectors covering both consumers' feature-card markup. */

/* A band beside a sidebar cannot be full-bleed: 100vw from the content column
   overflows the page. It becomes a panel the width of the column. */
.gt-page__layout:has(> .gt-page__sidebar) .gt-band { width: auto; margin-inline: 0; padding-inline: 0; border-radius: var(--gt-radius-card); }

/* Band with a background photo behind a dark scrim (a section's image). */
.gt-band--image { position: relative; isolation: isolate; overflow: hidden; background: var(--gt-bg-dark); }
.gt-band__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; z-index: -1; }

/* A page whose flow holds a webform: the form beside the other panels. */
@media (min-width: 901px) {
  .gt-flow:has(> .gt-flow__item > .gt-webform) { display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 44px; align-items: start; }
  .gt-flow:has(> .gt-flow__item > .gt-webform) > .gt-flow__item { grid-column: 2; }
  .gt-flow:has(> .gt-flow__item > .gt-webform) > .gt-flow__item:has(> .gt-alert) { grid-column: 1 / -1; }
  .gt-flow:has(> .gt-flow__item > .gt-webform) > .gt-flow__item:has(> .gt-webform) { grid-column: 1; grid-row: span 6; }
}
