/* base.css — shared reset + bespoke utility layer used by every page */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --focus-ring: 3px solid #2c6ef2;
}

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

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

/* utilities */

.u-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.u-container--narrow {
  max-width: 760px;
}

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

.u-skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: #111;
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s ease;
}

.u-skip-link:focus {
  top: var(--space-4);
}

.u-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #d9d9d9;
}

.u-media img,
.u-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-media--video {
  aspect-ratio: 16 / 9;
}

.u-media--tall {
  aspect-ratio: 4 / 5;
}

.u-media--wide {
  aspect-ratio: 16 / 10;
}

.u-media--square {
  aspect-ratio: 1 / 1;
}

.u-media__caption {
  font-size: 13px;
  color: #6b7280;
  margin-top: var(--space-2);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* ---- shared disclaimer + footer (identical structure on every page) ---- */

.site-disclaimer {
  display: block;
  padding: var(--space-6) var(--space-4);
  font-size: 14px;
  line-height: 1.6;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.site-disclaimer a {
  text-decoration: underline;
  font-weight: 600;
}

.site-footer {
  padding: var(--space-6) var(--space-4) var(--space-8);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-footer__company {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-block;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__meta {
  font-size: 12px;
  opacity: .75;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-6);
  }
}

/* ---- shared cookie consent banner (no tracking; local dismiss only) ---- */

.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 80;
  background: #111826;
  color: #eef1f6;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-banner__btn {
  background: #fff;
  color: #111826;
  border: 0;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  min-height: 40px;
}

@media (min-width: 520px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
