/* S7 Sections — minimal default styling. Themes are expected to override.
   Everything is scoped under .s7-section so it never leaks. */

.s7-section {
  position: relative;
}

/* Container */
.s7-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.s7-w--wide > .s7-container,
.s7-w--wide .s7-container { max-width: 1440px; }
.s7-w--full > .s7-container,
.s7-w--full .s7-container { max-width: none; }

/* Vertical spacing scale */
.s7-pt--none { padding-top: 0; }
.s7-pt--sm { padding-top: 1.5rem; }
.s7-pt--md { padding-top: 3.5rem; }
.s7-pt--lg { padding-top: 5rem; }
.s7-pt--xl { padding-top: 7rem; }
.s7-pb--none { padding-bottom: 0; }
.s7-pb--sm { padding-bottom: 1.5rem; }
.s7-pb--md { padding-bottom: 3.5rem; }
.s7-pb--lg { padding-bottom: 5rem; }
.s7-pb--xl { padding-bottom: 7rem; }

/* Background colours come from the Section Styles palette — printed inline in
   <head> as :root custom properties + .s7-bg--{name} rules. */

/* Shared bits */
.s7-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  opacity: .75;
  margin: 0 0 .75rem;
}

.s7-prose > :first-child { margin-top: 0; }
.s7-prose > :last-child { margin-bottom: 0; }

.s7-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.s7-btn {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid currentColor;
}
.s7-btn--primary { background: currentColor; }
.s7-btn--primary > * { color: #fff; }
.s7-btn--secondary { background: transparent; }
.s7-btn--ghost { border-color: transparent; padding-inline: 0; text-decoration: underline; }

/* Hero */
.s7-section--hero {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.s7-section--hero.is-h-md { min-height: 45vh; }
.s7-section--hero.is-h-lg { min-height: 65vh; }
.s7-section--hero.is-h-full { min-height: 100vh; }
.s7-section--hero.is-ov-dark::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.s7-section--hero.is-ov-light::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.4); }
.s7-section--hero.is-ov-gradient::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); }
.s7-hero__inner { position: relative; z-index: 1; }
.s7-section--hero.is-align-center .s7-hero__inner { text-align: center; margin-inline: auto; }
.s7-hero__heading { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 1rem; }
.s7-hero__sub { font-size: 1.15rem; max-width: 44ch; }
.s7-section--hero.is-align-center .s7-hero__sub { margin-inline: auto; }
.s7-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Media + text */
.s7-mediatext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.s7-section--media_text.is-media-right .s7-mediatext__media { order: 2; }
.s7-mediatext__img { display: block; width: 100%; height: auto; border-radius: 12px; }
.s7-mediatext__media { position: relative; }
.s7-play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.s7-play::after {
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
@media (max-width: 782px) {
  .s7-mediatext { grid-template-columns: 1fr; }
  .s7-section--media_text.is-media-right .s7-mediatext__media { order: 0; }
}

/* Text block */
.s7-text__inner { max-width: 65ch; }
.s7-section--text.is-w-narrow .s7-text__inner { max-width: 48ch; }
.s7-section--text.is-w-wide .s7-text__inner { max-width: 90ch; }
.s7-section--text.is-align-center .s7-text__inner { margin-inline: auto; text-align: center; }
.s7-section--text.is-align-center .s7-buttons { justify-content: center; }

/* CTA */
.s7-cta__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.s7-section--cta.is-boxed .s7-cta__panel {
  background: #0b5cab;
  color: #fff;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 16px;
}
.s7-cta__text > :first-child { margin-top: 0; }
.s7-cta__buttons { margin-top: 0; }

/* Cards */
.s7-cards__intro { max-width: 60ch; margin-bottom: 2.5rem; }
.s7-cards__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--s7-cols, 3), 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .s7-cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .s7-cards__grid { grid-template-columns: 1fr; } }
.s7-card__inner {
  display: block;
  height: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.s7-section--cards.is-bordered .s7-card__inner { border: 1px solid rgba(0,0,0,.12); }
.s7-section--cards.is-raised .s7-card__inner { box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.s7-card__icon img { width: 48px; height: 48px; object-fit: contain; }
.s7-card__icon i { font-size: 2rem; }
.s7-card__heading { margin: .75rem 0 .5rem; }
.s7-card__body { margin: 0; opacity: .8; }
.s7-card__link { display: inline-block; margin-top: .75rem; font-weight: 600; }

/* Accordion */
.s7-accordion__intro { max-width: 60ch; margin-bottom: 2rem; }
.s7-accordion__item { border-bottom: 1px solid rgba(0,0,0,.12); }
.s7-accordion__heading { margin: 0; font-size: 1rem; }
.s7-accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.s7-accordion__icon {
  width: 14px; height: 14px; flex: none; position: relative;
}
.s7-accordion__icon::before,
.s7-accordion__icon::after {
  content: ""; position: absolute; background: currentColor; inset: 0; margin: auto;
}
.s7-accordion__icon::before { width: 100%; height: 2px; }
.s7-accordion__icon::after { width: 2px; height: 100%; transition: transform .2s ease; }
.s7-accordion__trigger[aria-expanded="true"] .s7-accordion__icon::after { transform: scaleY(0); }
.s7-accordion__panel { padding-bottom: 1.25rem; }

/* Reusable-section edit affordance (logged-in only) */
.s7-reusable-edit {
  position: absolute;
  z-index: 20;
  top: .5rem;
  right: .5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  opacity: .35;
}
.s7-reusable-edit:hover { opacity: 1; }
