/* Zentek — cookie consent banner

   Loaded by every page after the page's own inline <style>, like the other
   shared sheets, so these rules win on order without needing to escalate
   specificity. Tokens (--paper, --ink, --green ...) are defined in each page's
   :root; the fallbacks after each var() keep the bar readable if this file is
   ever served somewhere those are missing. */

.cc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;                 /* above the sticky nav's 50 */
  background: var(--dark, #0c0e0c);
  color: #faf9f6;
  border-top: 1px solid rgba(250, 249, 246, .16);
  /* Sits below the fold until shown; transform keeps the reveal off the main
     thread and off layout. */
  transform: translateY(100%);
  transition: transform .26s ease;
}
.cc-bar.cc-open { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .cc-bar { transition: none; }
}

.cc-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
}

.cc-copy {
  margin: 0;
  flex: 1 1 420px;
  min-width: 0;                /* so the text may shrink rather than overflow */
  font-size: 13.5px;
  line-height: 1.6;
  /* 12.8:1 on --dark. The footer's dimmer .4 white is a known contrast gap on
     this site; consent text is not the place to repeat it. */
  color: rgba(250, 249, 246, .88);
}
.cc-copy a {
  color: #faf9f6;
  border-bottom: 1px solid rgba(250, 249, 246, .5);
}
.cc-copy a:hover { border-bottom-color: #faf9f6; }

.cc-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

/* Accept and Decline are deliberately the same size, weight and colour. A
   Decline that reads as secondary is a dark pattern and a GDPR finding, so the
   only difference between them is the label. */
.cc-btn {
  font-family: 'Aptos', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  /* 44px tall: the WCAG 2.2 target-size floor, which the site's other controls
     mostly miss. */
  padding: 14px 26px;
  min-height: 44px;
  color: var(--ink, #111311);
  background: #faf9f6;
  border: 1px solid #faf9f6;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cc-btn:hover {
  background: var(--green, #0e7a4a);
  border-color: var(--green, #0e7a4a);
  color: #faf9f6;
}
.cc-btn:focus-visible {
  outline: 2px solid #faf9f6;
  outline-offset: 3px;
}

/* Footer re-entry point, injected by /js/cookie-consent.js into .legal-links.
   Styled to sit in that row as if it were one of its links. */
.cc-settings {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(250, 249, 246, .62);
}
.cc-settings:hover { color: #fff; }
/* missiongrade/ calls its footer legal row .f-legal rather than .legal-links,
   and it is not the same flex row with its own gap, so the button needs its own
   separation there. */
.f-legal .cc-settings { margin-left: 12px; text-decoration: underline; }
.cc-settings:focus-visible {
  outline: 2px solid rgba(250, 249, 246, .8);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cc-in {
    padding: 16px 20px;
    gap: 14px;
    align-items: stretch;
  }
  .cc-copy { flex-basis: 100%; font-size: 13px; }
  /* Full-width halves rather than a stack: keeps both choices on one row and
     equally easy to hit with a thumb. */
  .cc-actions { width: 100%; }
  .cc-btn { flex: 1 1 0; padding: 14px 12px; }
}
