/* ===========================================================================
   Base layer - ported from the design system's tokens/base.css, plus the
   landing page's own root overrides.
   Minimal: type defaults, link colours, focus. No opinionated resets.
   =========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-200);
  color: var(--text-primary);
  font-family: var(--font-core);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The landing page opts out of the DS underline treatment: links here are
   navigation and CTAs, not inline prose references. */
a {
  color: var(--text-link);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:active {
  opacity: 0.75;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

/* Tabular figures for anything that is a number the eye has to compare. */
.cl-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.cl-label {
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-track);
  color: var(--text-secondary);
}

/* ===========================================================================
   Cookie consent banner - injected by js/consent.js. Gates Google Analytics:
   nothing loads until the visitor accepts. See privacy.html#s18.
   =========================================================================== */
.consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-hairline);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.consent-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.consent-banner__text a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner__actions {
  display: flex;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

@media (max-width: 480px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .consent-banner__actions { width: 100%; }
  .consent-banner__actions .ds-btn { flex: 1; }
}

/* Screen-reader-only, for skip links and icon-only control labels. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
