/*
 * Re-skin layer for every page that uses the shared site chrome (resorts, guides, comparisons,
 * blog, legal, features, watches, press and their nl/fr/de copies). Loaded last, after the
 * page's own <style>. Colours inside those pages are remapped at build time
 * (scripts/build-site.mjs, PALETTE); this file sets type, shared tokens and the chrome.
 */
:root {
  --bg: #081018;
  --bg-alt: #0b1620;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: #1f3242;
  --border-strong: #2a4256;
  --text: #eaf2f6;
  --text-strong: #ffffff;
  --text-muted: #8597a8;
  --text-dim: #7d8fa1;
  --accent: #38e8ff;
  --accent-strong: #0a7d91;
  --accent-text: #7af0ff;
  --accent-tint: rgba(56, 232, 255, 0.1);
  --accent-border: rgba(56, 232, 255, 0.3);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --font: "Manrope", system-ui, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;

  --sc-bg: #081018;
  --sc-border: #1f3242;
  --sc-border-strong: #2a4256;
  --sc-text: #eaf2f6;
  --sc-text-strong: #ffffff;
  --sc-text-muted: #8597a8;
  --sc-text-dim: #7d8fa1;
  --sc-accent: #38e8ff;
  --sc-accent-strong: #38e8ff;
  --sc-radius-sm: 4px;
  --sc-font: "Manrope", system-ui, sans-serif;
}

html, body { background: var(--bg); }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
/* Card headings in the wide display face need air: a looser line height and a real gap before the text. */
.feature-card h3, .card h3 { line-height: 1.3; margin-bottom: 12px; }
h1 { font-weight: 700; }
::selection { background: rgba(56, 232, 255, 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- square corners instead of pills ----------
 * Found by measuring every page family (rounded elements wider than tall). Circles such as
 * .step-num and .howto-number keep their rounding. Same selectors as the pages' own rules, loaded
 * later, so these win. */
.category-chip, .roadmap-tag, .device-tag, .video-jump, .map-frame .map-hint,
.related li a, .jump-links a, .quick-jump a, .logo-card a { border-radius: 4px; }

/* ---------- header ---------- */
.site-header { background: rgba(8, 16, 24, 0.95); backdrop-filter: none; border-bottom-color: var(--sc-border); }
.site-header .header-inner { max-width: none; padding: 14px clamp(20px, 6vw, 96px); }
.site-header .brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; gap: 10px; }
.site-header .brand img { width: 36px; height: 36px; object-fit: contain; }
.site-header .site-nav a { font-size: 0.95rem; }
.site-header .site-nav a[aria-current="page"] { color: var(--sc-accent); }
.site-header .btn-download { background: var(--accent); color: #031219; border-radius: 4px; padding: 10px 18px; }
.site-header .btn-download:hover { filter: none; box-shadow: 0 8px 30px -8px rgba(56, 232, 255, 0.6); }
.site-header .menu-toggle, .site-header .lang-switch summary { border-radius: 4px; }

/* ---------- footer ---------- */
footer.footer { background: #050b11; border-top-color: var(--sc-border); }
footer.footer .container, footer.footer .footer-attribution { max-width: none; padding-left: clamp(20px, 6vw, 96px); padding-right: clamp(20px, 6vw, 96px); }
footer.footer .footer-col h3 { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 600; }
footer.footer .footer-col a { color: var(--sc-text); }
footer.footer .footer-col a:hover { color: var(--sc-accent); }
footer.footer .footer-social a { width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--sc-border); border-radius: 4px; color: var(--sc-text-muted); }
footer.footer .footer-social a:hover { color: var(--sc-accent); border-color: var(--sc-accent); }

.lang-suggest-banner { background: rgba(8, 16, 24, 0.97); backdrop-filter: none; border-radius: 6px; }
