/*
 * Base layer: reset, type scale, links, lists, forms, the one button
 * component (C5), focus ring, reduced motion. Tokens from tokens.css only.
 * Page lanes never restyle elements here; they add ve-* classes in their own
 * files.
 */

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
iframe { border: 0; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------- type */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  font-family: var(--font-sans);
  color: var(--c-ink);
  margin: 1.2em 0 0.5em;
  letter-spacing: normal;
  text-wrap: balance;
}
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
h1, .h1 { font-size: var(--fs-h1); font-weight: 300; line-height: var(--lh-tight); margin-top: 0; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 300; line-height: var(--lh-heading); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); }
h4 { font-size: 18px; font-weight: 500; line-height: var(--lh-heading); }
h5, h6 { font-size: var(--fs-body); font-weight: 600; }
p { margin: 0 0 1.1em; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-small); }
.ve-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.ve-small { font-size: var(--fs-small); line-height: 1.7; }
.ve-muted { color: var(--c-muted); }
.ve-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--c-pink);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
}
.ve-eyebrow strong { font-weight: 700; }

/* ------------------------------------------------------------------ links */
a { color: var(--c-pink); text-decoration: none; transition: color var(--dur-fast) var(--ease-std); }
a:hover { color: var(--c-pink-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ve-prose a:not([class]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ve-prose a:not([class]):hover { text-decoration-thickness: 2px; }
/* Pink on #333 body copy is 2.5:1, so inline links in running text carry an
   underline (WCAG 1.4.1); buttons, cards, nav and footer links keep their own look. */
main p a:not([class]), main li a:not([class]), .ve-heading-intro a, .ve-acc-body a, .ve-page-lead a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
main p a:not([class]):hover, main li a:not([class]):hover, .ve-heading-intro a:hover, .ve-acc-body a:hover, .ve-page-lead a:hover { text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ lists */
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
/* Plain lists (Zach 09-28: "just lists", never a box around each item).
   Three shared patterns, nothing else:
   - .ve-list          text lines with a small gold dot (content bullets)
   - .ve-related       link list on hairlines with a pink arrow (chrome.css)
   - .ve-inline-list   short links in a wrapping row, spaced apart (topics,
                       jump links)
   Cards stay only where an item carries a photo. */
.ve-inline-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.ve-inline-list li { display: inline-flex; align-items: center; margin: 0; }
.ve-inline-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--c-ink); font-weight: 500; }
main .ve-inline-list li a, main .ve-inline-list li a:hover { text-decoration: none; }
.ve-inline-list a:hover { color: var(--c-pink); }
.ve-inline-list-count { color: var(--c-muted); font-weight: 400; font-size: 0.9em; }
@media (max-width: 767px) { .ve-inline-list a { min-height: 44px; } }
.ve-list { list-style: none; padding-left: 0; }
.ve-list li { position: relative; padding-left: 22px; }
.ve-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
}
.ve-prose ul:not([class]) { list-style: none; padding-left: 0; }
.ve-prose ul:not([class]) > li { position: relative; padding-left: 22px; }
.ve-prose ul:not([class]) > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
}

blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--c-pink-tint);
  color: var(--c-ink);
}
blockquote p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; }
th, td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--c-ink); }

/* ------------------------------------------------------------------ forms */
input, select, textarea, button { font: inherit; color: inherit; }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='number'],
input[type='search'], input[type='url'], input[type='password'], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--c-field-line);
  border-radius: var(--radius-btn);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-std), box-shadow var(--dur-fast) var(--ease-std);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c-pink); outline: none; box-shadow: 0 0 0 3px rgb(216 19 104 / 0.15); }
input::placeholder, textarea::placeholder { color: var(--c-muted); opacity: 1; }
label { display: inline-block; font-weight: 500; color: var(--c-ink); }
.ve-field { margin-bottom: 18px; }
.ve-field label { margin-bottom: 6px; }
.ve-field-hint { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--c-muted); }
.ve-field-error { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--c-pink-deep); }

/* ------------------------------------------------------------- focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-radius: var(--radius-btn); }

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

/* -------------------------------------------------------- buttons (C5) */
.ve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 26px;
  border: 2px solid var(--c-pink);
  border-radius: var(--radius-btn);
  background: var(--c-pink);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: var(--fs-btn);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-base) var(--ease-std), color var(--dur-base) var(--ease-std),
    border-color var(--dur-base) var(--ease-std), transform var(--dur-fast) var(--ease-std);
}
.ve-btn:hover { background: var(--c-pink-deep); border-color: var(--c-pink-deep); color: var(--c-white); text-decoration: none; }
.ve-btn:active { transform: translateY(1px); }
.ve-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ve-btn svg { flex: 0 0 auto; width: 1.15em; height: 1.15em; }
.ve-btn--lg { min-height: 52px; padding: 15px 32px; font-size: var(--fs-btn-lg); }
.ve-btn--sm { min-height: 38px; padding: 7px 16px; font-size: var(--fs-small); }
.ve-btn--block { display: flex; width: 100%; }
.ve-btn--icon { padding: 0; width: 44px; min-width: 44px; }

.ve-btn--outline { background: transparent; color: var(--c-pink); border-color: var(--c-pink); }
.ve-btn--outline:hover { background: var(--c-pink); color: var(--c-white); border-color: var(--c-pink); }

.ve-btn--outline-light { background: rgb(3 48 79 / 0.28); color: var(--c-white); border-color: var(--c-white); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ve-btn--outline-light:hover { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); }

/* navy outline: the header's secondary button (Premier's grey-outline role) */
.ve-btn--outline-navy { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.ve-btn--outline-navy:hover { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

.ve-btn--white { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); }
.ve-btn--white:hover { background: var(--c-gold); color: var(--c-navy-deep); border-color: var(--c-gold); }

.ve-btn--gold { background: var(--c-gold); color: var(--c-navy-deep); border-color: var(--c-gold); }
.ve-btn--gold:hover { background: var(--c-gold-deep); color: var(--c-navy-deep); border-color: var(--c-gold-deep); }

.ve-btn--ghost { background: transparent; color: var(--c-pink); border-color: transparent; padding-left: 12px; padding-right: 12px; }
.ve-btn--ghost:hover { background: var(--c-pink-tint); color: var(--c-pink-deep); border-color: transparent; }

.ve-btn[aria-disabled='true'], .ve-btn:disabled, .ve-btn[aria-busy='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.ve-btn[aria-busy='true'] .ve-btn-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ve-spin 0.8s linear infinite;
}
@keyframes ve-spin { to { transform: rotate(360deg); } }

.ve-btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ve-btn-row--center { justify-content: center; }
@media (max-width: 480px) {
  .ve-btn-row--stack .ve-btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------- containers */
.ve-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ve-container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.ve-container--narrow { max-width: calc(780px + 2 * var(--gutter)); }
.ve-section { padding: var(--section-y) 0; }
.ve-section--tight { padding: calc(var(--section-y) * 0.6) 0; }
.ve-section--surface { background: var(--c-surface); }
.ve-section--tint { background: var(--c-pink-tint); }
.ve-section--brand { background: var(--grad-brand); color: var(--c-white); }
.ve-section--brand h1, .ve-section--brand h2, .ve-section--brand h3, .ve-section--brand p, .ve-section--brand a { color: var(--c-white); }
.ve-stack > * + * { margin-top: var(--block-gap); }
.ve-center { text-align: center; }
.ve-img { display: block; width: 100%; height: auto; border-radius: var(--radius-img); object-fit: cover; }
.ve-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-card); padding: 24px; }

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