/* ============================================================================
   BASE — reset, document defaults and the handful of shared utilities.

   Product-neutral: every value here comes from theme.css. Replaces the old
   main.css, whose literal colours and hover rules are now tokens.

   BREAKPOINTS (fixed across every site on this base — see theme.css):
     1024px  desktop -> tablet
      768px  tablet  -> phone
      480px  small phone
   Design floor 320px.
   ========================================================================= */

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

html {
  /* clears the sticky header on anchor jumps */
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  /* a long unbroken product name must never widen the page */
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-display); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; }
img { height: auto; }

input, textarea, button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* --- utilities ---------------------------------------------------------- */

.dot-grid {
  background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
  background-size: 13px 13px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cta { transition: transform var(--ease), box-shadow var(--ease); }
.cta:hover { transform: translateY(-2px); box-shadow: var(--sh-cta-hover); }

.lift { transition: transform var(--ease), box-shadow var(--ease); }
.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }

/* A container with an inline display:flex needs this to actually hide. */
[hidden] { display: none !important; }

/* Visually hidden but readable to assistive tech and to crawlers. Never used
   for content that should be indexed as body copy. */
.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;
}

/* --- shared page shell -------------------------------------------------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-14);
}

.breadcrumb { padding: var(--sp-1) 0 0; }
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--faint);
}
.breadcrumb a { color: var(--body); font-weight: 500; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* --- section heading ----------------------------------------------------
   The rules either side of an <h2>. They are decoration, so they go when
   space is short rather than squeezing the heading. */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.sec-head h2 { font-size: var(--fs-h2); font-weight: 700; margin: 0; text-align: center; }
.sec-head::before, .sec-head::after {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  flex: none;
}
.sec-sub {
  text-align: center;
  color: var(--body);
  font-size: 14px;
  margin: 0 0 var(--sp-8);
}

@media (max-width: 768px) {
  html { scroll-padding-top: 96px; }
  .wrap { padding: var(--sp-5) var(--sp-4) var(--sp-10); }
  .sec-head { gap: var(--sp-3); }
  .sec-head::before, .sec-head::after { width: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding: var(--sp-4) var(--sp-4) var(--sp-8); }
  .sec-head::before, .sec-head::after { display: none; }
  .sec-sub { font-size: 13.5px; }
}

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