/* ============================================================
   base.css — shared reset, tokens and utilities for every page.
   Family stylesheets (publication.css / offer.css / legal.css)
   layer on top of this and set the theme tokens per page family.
   ============================================================ */

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink, #1a1a1a);
  background: var(--bg, #ffffff);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

ul,
ol {
  padding-left: 1.1em;
}

button {
  font-family: inherit;
}

/* Focus states — visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring, #1a6fd6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0;
  top: -100%;
  background: #111;
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 500;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* Generic container */
.container {
  width: 100%;
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 480px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* Buttons — base shapes, themed via variables per family */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  border-radius: var(--btn-radius, 8px);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent, #1a6fd6);
  color: var(--accent-ink, #fff);
  box-shadow: 0 8px 20px -8px var(--accent-shadow, rgba(26, 111, 214, 0.6));
}

.btn--primary:hover {
  background: var(--accent-hover, #155bb0);
}

.btn--ghost {
  background: transparent;
  color: var(--ink, #1a1a1a);
  border-color: currentColor;
}

.btn--block {
  width: 100%;
}

/* Inline text CTA */
.text-cta {
  font-weight: 700;
  color: var(--accent, #1a6fd6);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}

.text-cta:hover {
  text-decoration-thickness: 2px;
}

/* ==================== Cookie consent banner (site-wide) ==================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: #12161c;
  color: #f4f6f8;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__text {
  flex: 1 1 260px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: #9cc4ff;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  min-height: 44px;
  padding: 0.6em 1.3em;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid #f4f6f8;
  background: transparent;
  color: #f4f6f8;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie-banner__btn--accept {
  background: #f4f6f8;
  color: #12161c;
}

.cookie-banner__btn:hover {
  background: #f4f6f8;
  color: #12161c;
}

/* ==================== Shared disclaimer + footer ==================== */
.site-disclaimer {
  display: block;
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  padding: 28px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--disclaimer-ink, #444);
  background: var(--disclaimer-bg, #f3f3f1);
  border-top: 1px solid var(--disclaimer-border, #ddd);
}

@media (min-width: 480px) {
  .site-disclaimer {
    padding: 32px 24px;
  }
}

.site-disclaimer a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.site-footer {
  background: var(--footer-bg, #14181f);
  color: var(--footer-ink, #d7dbe2);
  padding: 32px 16px 120px;
  font-size: 0.9rem;
}

@media (min-width: 480px) {
  .site-footer {
    padding: 40px 24px 120px;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding: 40px 32px 48px;
  }
}

.site-footer__inner {
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__company {
  line-height: 1.6;
}

.site-footer__company p {
  margin: 0 0 4px;
}

.site-footer__company .company-name {
  font-weight: 700;
  color: var(--footer-ink-strong, #fff);
  font-size: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--footer-ink, #d7dbe2);
  display: inline-block;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer__links a:hover {
  color: var(--footer-ink-strong, #fff);
}

.site-footer__bottom {
  font-size: 0.8rem;
  color: var(--footer-ink-muted, #8b93a3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}
