/* Playful consent banner in cream, charcoal, and teal. */
.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 20px 20px;
  max-width: 620px;
  max-height: 75vh;
  overflow: auto;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f7f1e3;
  color: #22303f;
  border: 2px solid #22303f;
  border-radius: 18px;
  box-shadow: 0 6px 0 #22303f22, 0 12px 32px #22303f33;
  font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-art { flex: 0 0 auto; margin-top: 2px; }
.cookie-consent-art svg { display: block; width: 64px; height: 64px; }
.cookie-consent-body { flex: 1 1 auto; }
.cookie-consent h2 {
  margin: 0 0 6px;
  color: #22303f;
  font: 700 24px/1.2 Georgia, "Times New Roman", serif;
}
.cookie-consent p { margin: 0 0 12px; max-width: none; }
.cookie-consent a { color: #0f766e; }
/* Banner actions v2 (Ian AUTH 2026-10-08): Essential only (outline) and
   Yes please (filled primary) sit side by side at equal width; Privacy
   Policy and Do Not Sell or Share sit below as quiet text links. */
.cookie-consent-actions { display: block; }
.cookie-consent-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 360px;
}
.cookie-consent-buttons button { width: 100%; min-width: 0; }
.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  margin-top: 6px;
  color: #5f6b77;
  font: 400 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.cookie-consent .cookie-consent-links a,
.cookie-consent .cookie-consent-links .cookie-consent-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #5f6b77;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cookie-consent .cookie-consent-links a:hover,
.cookie-consent .cookie-consent-links .cookie-consent-link:hover { color: #22303f; }
.cookie-consent-sep { color: #8a939c; }
.cookie-consent button {
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid #0f766e;
  border-radius: 999px;
  background: #f7f1e3;
  color: #0f766e;
  font: 600 16px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}
/* Footer "Cookie preferences" (Ian 2026-10-25): a small inline pill that
   fits the footer sentence — it never wraps mid-pill, never overlaps the
   neighboring links, and its border no longer clips the line above. The
   banner's own buttons keep the full-size rule above. */
[data-cookie-preferences] {
  display: inline-block;
  box-sizing: border-box;
  min-height: 0;
  margin: 4px 0;
  padding: 2px 12px;
  border: 1.5px solid #0f766e;
  border-radius: 999px;
  background: #f7f1e3;
  color: #0f766e;
  font: 600 0.95em/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
}
.cookie-consent button[data-consent-choice="accepted"] {
  background: #0f766e;
  color: #f7f1e3;
}
.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible,
[data-cookie-preferences]:focus-visible {
  outline: 3px solid #22303f;
  outline-offset: 3px;
}
.cookie-consent-status { font-size: 14px; margin: 12px 0 0 !important; }
.privacy-draft-note { font-size: 12px; letter-spacing: 0.06em; }
/* Mobile banner (Ian AUTH 2026-10-08; compact sizing Ian 2026-10-25): fixed
   to the viewport bottom above the safe area, compact so the page stays
   usable, scrolling internally only as a safety net. The cookie floats
   beside the title and text; the two choice buttons span the banner width
   at equal size and the two policy links sit centered below them. */
@media (max-width: 600px) {
  .cookie-consent {
    display: block;
    inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px));
    max-height: min(60vh, 60dvh);
    overflow: auto;
    padding: 12px 14px;
  }
  .cookie-consent-art { float: left; margin: 2px 12px 4px 0; }
  .cookie-consent-art svg { width: 36px; height: 36px; }
  .cookie-consent h2 { font-size: 18px; }
  .cookie-consent p { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
  .cookie-consent-actions { clear: both; }
  .cookie-consent-buttons { max-width: none; gap: 10px; }
  .cookie-consent-buttons button { padding: 10px 8px; font-size: 15px; }
  .cookie-consent .cookie-consent-links a,
  .cookie-consent .cookie-consent-links .cookie-consent-link { min-height: 32px; font-size: 13px; }
  .cookie-consent-links { justify-content: center; margin-top: 4px; }
}
/* Display-only reserve (Ian 2026-10-25): while the banner is open, consent.js
   sets --consent-banner-reserve and this class so the page keeps bottom
   padding and the footer scrolls fully above the banner; both are removed
   when the banner hides. */
html.consent-banner-open body { padding-bottom: var(--consent-banner-reserve, 0px); }
