/* ==========================================================================
   GameShapeHQ — stylesheet
   Design direction: a coach's planning grid. Cool bone paper, deep slate ink,
   and a three-step intensity ramp borrowed from training-zone charts. The
   colour ramp encodes effort level; it is data, not decoration.

   FONTS: deliberately self-hosted / system only. No Google Fonts CDN call.
   Embedding fonts from fonts.googleapis.com transmits visitor IP addresses to
   a third party on page load, which a German court has already ruled a GDPR
   breach, and it happens before the cookie banner can ask anyone anything.
   To add a display face, drop the .woff2 into /assets/fonts/ and uncomment
   the @font-face block below.
   ========================================================================== */

/*
@font-face {
  font-family: 'Display';
  src: url('../fonts/display.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}
*/

:root {
  /* Ink + paper */
  --ink:          #14202e;
  --ink-soft:     #33465a;
  --muted:        #5d6c79;
  --paper:        #f7f8f6;
  --surface:      #ffffff;
  --surface-sunk: #eef1ee;
  --rule:         #e2e6e2;
  --rule-strong:  #c8d0c9;

  /* Interactive accent */
  --accent:       #0f5f5a;
  --accent-hover: #0b4a46;
  --accent-tint:  #e4f0ee;

  /* Intensity ramp — zone 1 easy, zone 2 moderate, zone 3 hard */
  --zone-1:       #2f7d77;
  --zone-2:       #d1932a;
  --zone-3:       #b8433c;
  --zone-rest:    #d5dbd6;

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --radius: 4px;
  --radius-lg: 10px;

  --shell: 1180px;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0 0 1.15em; }

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

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.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;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }

.btn--small { padding: 0.55rem 1rem; font-size: 0.85rem; }

.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 246, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img, .brand svg { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.nav a[aria-current='page'] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* The in-nav CTA is the mobile duplicate; only one is ever visible. */
.nav > .btn { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 20px 40px -24px rgba(20,32,46,.3);
  }
  .nav[data-open='true'] { transform: translateY(0); }
  .nav a { padding: 0.9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav > .btn { display: inline-flex; margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Signature: the training-week planner
   -------------------------------------------------------------------------- */
.planner {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 24px 48px -34px rgba(20, 32, 46, 0.45);
}

.planner__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.planner__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.planner__total {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
}

.planner__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.planner__day { display: flex; flex-direction: column; gap: 6px; }

.planner__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2px;
}

.planner__block {
  border-radius: 3px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.planner__block[data-zone='1'] { background: var(--zone-1); }
.planner__block[data-zone='2'] { background: var(--zone-2); }
.planner__block[data-zone='3'] { background: var(--zone-3); }
.planner__block[data-zone='rest'] {
  background: repeating-linear-gradient(
    45deg, var(--surface-sunk), var(--surface-sunk) 4px, #fff 4px, #fff 8px
  );
  color: var(--muted);
  border: 1px solid var(--rule);
}

.planner__key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.planner__key span { display: inline-flex; align-items: center; gap: 0.4rem; }

.planner__swatch {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}
.planner__swatch[data-zone='1'] { background: var(--zone-1); }
.planner__swatch[data-zone='2'] { background: var(--zone-2); }
.planner__swatch[data-zone='3'] { background: var(--zone-3); }

.planner__note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sunk { background: var(--surface-sunk); border-block: 1px solid var(--rule); }
.section--paper { background: var(--surface); border-block: 1px solid var(--rule); }

.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 0.9rem; }
.section__head p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Library index — numbered because it is a genuine progression
   -------------------------------------------------------------------------- */
.library { border-top: 1px solid var(--rule-strong); }

.library__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: 1.75rem 0.75rem 1.75rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background-color .18s ease, padding-inline .18s ease;
  position: relative;
}

.library__row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background-color .18s ease;
}

.library__row:hover { background: var(--surface); }
.library__row:hover::before { background: var(--zone-1); }
.library__row[data-zone='2']:hover::before { background: var(--zone-2); }
.library__row[data-zone='3']:hover::before { background: var(--zone-3); }

.library__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 0.35rem;
  letter-spacing: 0.04em;
}

.library__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.library__summary { display: block; color: var(--muted); margin: 0; font-size: 0.95rem; max-width: 56ch; }

.library__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.library__row:hover .library__meta { color: var(--ink); }

@media (max-width: 640px) {
  .library__row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .library__meta { grid-column: 2; padding-top: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Guide cards (category pages)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -26px rgba(20,32,46,.4);
  color: inherit;
}

.card h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Source callout — the credibility anchor
   -------------------------------------------------------------------------- */
.source-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  background: var(--accent-tint);
  border: 1px solid #c2ddd8;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}

.source-note__icon { color: var(--accent); padding-top: 2px; }
.source-note__body { font-size: 0.94rem; }
.source-note__body p:last-child { margin-bottom: 0; }
.source-note__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 560px) {
  .source-note { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Disclosure blocks
   -------------------------------------------------------------------------- */
.disclosure {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0 0;
  max-width: 62ch;
}

.disclosure strong { color: var(--ink-soft); }
.disclosure a { color: var(--accent); }

.disclosure--banner {
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-inline: 0;
  border-top: 0;
  text-align: center;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; color: #fff; }
.cta-band p { color: #b6c2cd; max-width: 52ch; }
.cta-band .btn--primary { background: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: #e7ecea; color: var(--ink); }
.cta-band .disclosure {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: #a9b6c2;
}
.cta-band .disclosure strong { color: #d7dfe6; }
.cta-band .disclosure a { color: #8fd0c8; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.article { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 940px) {
  .article__layout { grid-template-columns: 1fr; }
  .toc { position: static !important; order: -1; }
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.25rem; }

.article__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 2.75rem 0 1rem;
  scroll-margin-top: 90px;
}
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.5rem; }
.prose > p:first-of-type { font-size: 1.1rem; color: var(--ink-soft); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.75rem 0; }

.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.35rem;
  border-left: 3px solid var(--rule-strong);
  color: var(--ink-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--rule-strong);
}
.data-table td:first-child { font-weight: 600; }

.table-wrap { overflow-x: auto; }

/* Table of contents */
.toc { position: sticky; top: 92px; }
.toc__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.85rem;
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.15rem; }
.toc a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a[data-active='true'] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Legal / long-form documents
   -------------------------------------------------------------------------- */
.doc { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.85rem; }
.doc__updated {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.25rem;
}
.doc h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.9rem;
  padding-top: 0.35rem;
  scroll-margin-top: 90px;
}
.doc h3 { font-size: 1.02rem; margin: 1.75rem 0 0.6rem; }
.doc p, .doc li { font-size: 0.97rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.55rem; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field__hint { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 0; }

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
}
.checkbox-row input { width: auto; margin-top: 0.2rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #9aa9b6;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.9rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand img, .footer__brand svg { height: 28px; margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; font-size: 0.86rem; line-height: 1.6; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f8090;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.55rem; }
.footer__col a { color: #9aa9b6; text-decoration: none; font-size: 0.88rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; }

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6f8090;
}

.footer__legal-note {
  max-width: 70ch;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6f8090;
  margin: 1.5rem 0 0;
}

.cookie-settings-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #9aa9b6;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.cookie-settings-btn:hover { color: #fff; border-color: rgba(255,255,255,0.45); }

/* --------------------------------------------------------------------------
   Cookie consent
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  z-index: 300;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(20,32,46,.45);
  padding: 1.5rem;
  display: none;
}
.consent[data-visible='true'] { display: block; animation: consent-in .35s cubic-bezier(.4,0,.2,1); }

@keyframes consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.consent h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.consent p { font-size: 0.87rem; color: var(--muted); margin-bottom: 1.1rem; }
.consent p a { color: var(--accent); }

.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent__actions .btn { flex: 1 1 auto; justify-content: center; }

.consent__prefs { display: none; margin: 0 0 1.25rem; }
.consent[data-mode='prefs'] .consent__prefs { display: block; }
.consent[data-mode='prefs'] .consent__intro { display: none; }

.consent__group {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.consent__group:last-child { border-bottom: 0; }
.consent__group input { margin-top: 0.25rem; flex-shrink: 0; }
.consent__group h3 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.consent__group p { font-size: 0.8rem; margin: 0; }

@media (max-width: 420px) {
  .planner { padding: 1.15rem 0.9rem; }
  .planner__week { gap: 4px; }
  .planner__block { min-height: 24px; font-size: 0.55rem; }
}

@media (max-width: 560px) {
  .consent { left: 0; right: 0; bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-inline: 0; border-bottom: 0; }
  .consent__actions .btn { flex-basis: 100%; }
}
