:root {
  color-scheme: light;
  --ink: #1f2430;
  --muted: #5c6773;
  --paper: #fafafa;
  --panel: #ffffff;
  --primary: #5c00ff;
  --accent: #d95700;
  --line: #d8dee9;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 0.65rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header,
.site-footer { color: white; background: var(--ink); }
.site-header { padding: 1rem clamp(1rem, 5vw, 4rem); }
.site-header nav,
.site-footer .inner { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; max-width: 72rem; margin: auto; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.site-header a,
.site-footer a { color: white; }
.brand { display: inline-flex; gap: 0.7rem; align-items: center; font-weight: 750; text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; }

main { min-height: 65vh; }
.hero { padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem); color: white; background: linear-gradient(135deg, #1f2430 0%, #343d52 65%, #5c00ff 160%); }
.hero .inner,
.content { max-width: 64rem; margin: auto; }
.eyebrow { color: #ffb454; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; }
h1 { max-width: 18ch; margin: 0.3rem 0 1rem; font-size: clamp(2.3rem, 7vw, 4.5rem); line-height: 1.05; }
.lede { max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.content { padding: clamp(3rem, 7vw, 6rem) 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--panel); box-shadow: 0 0.35rem 1.4rem rgb(31 36 48 / 7%); }
.card h2 { margin-top: 0; }
.cta { display: inline-block; margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 999px; color: white; background: var(--primary); font-weight: 700; text-decoration: none; }
.cta:hover { color: white; background: var(--accent); }
.site-footer { padding: 2rem 1rem; }
.site-footer .inner { flex-wrap: wrap; }

@media (max-width: 44rem) {
  .site-header nav { align-items: flex-start; flex-direction: column; }
}

/* Shared agency shell layered over the portable static exports. */
.agency-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000002;
  transform: translateY(-200%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.25rem;
  color: #1f2430;
  background: #ffb454;
  font: 700 1rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.agency-skip-link:focus { transform: translateY(0); }

.agency-shell {
  position: relative;
  z-index: 1000000;
  color: #fafafa;
  background: #1f2430;
  border-bottom: 3px solid #ffb454;
  font: 600 0.9rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.agency-shell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 76rem);
  min-height: 3.15rem;
  margin: auto;
}

.agency-shell a { color: #fafafa; text-decoration-color: #ffb454; }
.agency-shell a:hover { color: #ffb454; }
.agency-shell__brand { white-space: nowrap; font-weight: 800; text-decoration: none; }
.agency-shell ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; list-style: none; }
.agency-shell [aria-current="page"] { color: #ffb454; }

.agency-archive .mdc-top-app-bar,
.agency-archive .mdc-drawer { top: 3.15rem; }

.agency-archive-context {
  max-width: 70rem;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-left: 0.35rem solid #73d0ff;
  color: #e6edf3;
  background: #273f55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.agency-archive-context a { color: #ffb454; }
.agency-archive-context strong { color: #73d0ff; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffb454 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgb(31 36 48 / 65%);
}

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

.privacy-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000003;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  max-width: 72rem;
  margin: auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid #6c7a89;
  border-radius: 0.65rem;
  color: #fafafa;
  background: #1f2430;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%);
  font-family: system-ui, sans-serif;
}

.privacy-consent h2 { margin: 0 0 0.25rem; color: #ffb454; font-size: 1.1rem; }
.privacy-consent p { margin: 0; }
.privacy-consent a { color: #73d0ff; }
.privacy-consent__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; }
.privacy-consent button,
.privacy-preferences-button,
.external-embed button {
  padding: 0.65rem 0.85rem;
  border: 1px solid #ffb454;
  border-radius: 0.35rem;
  color: #fafafa;
  background: #343d52;
  cursor: pointer;
  font: 700 0.9rem/1.2 system-ui, sans-serif;
}

.privacy-consent .privacy-consent__allow { color: #1f2430; background: #ffb454; }

.privacy-preferences-button {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 999999;
  padding: 0.45rem 0.65rem;
  border-color: #6c7a89;
  font-size: 0.75rem;
}

.external-embed {
  display: grid;
  place-items: center;
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid #6c7a89;
  border-radius: 0.5rem;
  color: #fafafa;
  background: #27313f;
  text-align: center;
}

.external-embed iframe { width: 100%; min-height: 24rem; border: 0; }
.external-embed--loaded { display: block; min-height: 0; padding: 0; border: 0; }

@media (max-width: 48rem) {
  .agency-shell__inner,
  .privacy-consent { grid-template-columns: 1fr; }
  .agency-shell__inner { align-items: flex-start; flex-direction: column; padding: 0.65rem 0; }
  .agency-archive .mdc-top-app-bar,
  .agency-archive .mdc-drawer { top: 5.4rem; }
  .privacy-consent__actions { justify-content: flex-start; }
}

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