/* base.css -- brand-agnostic reset + shared layout primitives.
   Loaded by every page, before the page's own tokens-*.css and brand.css.
   No colour, font-family, or brand-specific values belong here. */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Respect reduced-motion preferences everywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible, consistent keyboard focus. Each brand.css may restyle the
   colour via its own token, but every interactive element must keep
   a visible outline -- never remove this without replacing it. */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 12px 20px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Shared container -- each brand sets --gtd-maxw / --telus-maxw etc,
   so this reads a generic --page-maxw with a sane fallback. */
.container {
  width: 100%;
  max-width: var(--page-maxw, 1120px);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 800px) {
  .container {
    padding-inline: 48px;
  }
}

/* Generic section rhythm -- brand.css can override padding per section type. */
.section {
  padding-block: 64px;
}

@media (min-width: 800px) {
  .section {
    padding-block: 96px;
  }
}

/* ---- Media section: copy + image/panel, alternating sides. Brand-neutral
   layout primitive -- kills single-column dead space beside a narrow text
   measure on wide viewports. Ported up front from the GTD build (where it
   was added mid-build as .gtd-mediasec) so no brand needs to retrofit it.
   Brand CSS may still add colour/shadow to .mediasec__media. */
.mediasec .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 820px) {
  .mediasec .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .mediasec--reverse .mediasec__media {
    order: -1;
  }
}

.mediasec__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Centred statement section -- for short reflective copy that would
   otherwise hug the left edge of a wide container. */
.section--centred .container {
  max-width: 74ch;
  margin-inline: auto;
  text-align: left;
}
