/* Author42 colours for the cookie notice (public/cookie-consent.js).
   The library's own styles are in /vendor/cookieconsent/cookieconsent.css;
   these settings only recolour them to the brand navy and light blue. */
#cc-main {
  --cc-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cc-bg: #ffffff;
  --cc-primary-color: #1c396d;
  --cc-secondary-color: #41474e;
  --cc-link-color: #1c396d;
  --cc-btn-border-radius: 4px;
  --cc-btn-primary-bg: #1c396d;
  --cc-btn-primary-color: #ffffff;
  --cc-btn-primary-border-color: #1c396d;
  --cc-btn-primary-hover-bg: #00314c;
  --cc-btn-primary-hover-color: #ffffff;
  --cc-btn-primary-hover-border-color: #00314c;
  --cc-btn-secondary-bg: #E5F6FF;
  --cc-btn-secondary-color: #1c396d;
  --cc-btn-secondary-border-color: #E5F6FF;
  --cc-btn-secondary-hover-bg: #d2ecfa;
  --cc-btn-secondary-hover-color: #1c396d;
  --cc-btn-secondary-hover-border-color: #d2ecfa;
  --cc-toggle-readonly-bg: #9fb3cc;
  --cc-cookie-category-block-bg: #f4f9fc;
  --cc-cookie-category-block-border: #e3eef5;
  --cc-cookie-category-block-hover-bg: #eaf4fa;
  --cc-cookie-category-block-hover-border: #e3eef5;
  --cc-cookie-category-expanded-block-bg: #f4f9fc;
  --cc-cookie-category-expanded-block-hover-bg: #eaf4fa;
  --cc-footer-bg: #f4f9fc;
  --cc-footer-color: #41474e;
  --cc-footer-border-color: #e3eef5;
}

/* The picture strip across the top of the notice: public/images/cookie-notice.jpg,
   768 x 256 (3:1), shown at half size so it stays sharp on high-density screens.
   The card clips it to its rounded top corners. Grey shows while it loads. */
#cc-main .cm::before {
  content: ""; display: block; flex: none; aspect-ratio: 3 / 1;
  /* ?v=N: images are cached for a year, so bump N whenever the picture is
     replaced (keeping its file name) and every browser fetches the new one. */
  background: #d9d9d9 url("/images/cookie-notice.jpg?v=2") center / cover no-repeat;
}

/* The notice's two choices on one row (owner's choice "C", 2026-12-04):
   OK as a compact navy pill, "See what we store" as a link beside it.
   Only the small notice changes; the "What Author42 stores" window keeps
   the library's buttons. */
#cc-main .cm .cm__btn-group {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
#cc-main .cm .cm__btn[data-role="all"] {
  /* 4px corners: the same rounding as the homepage's navy buttons. */
  flex: none; width: auto; min-height: 44px; padding: 0 30px; border-radius: 4px;
  background: #1c396d; border: 1px solid #1c396d; color: #ffffff;
  font-size: 15px; font-weight: 600;
}
#cc-main .cm .cm__btn[data-role="all"]:hover {
  background: #14284d; border-color: #14284d; color: #ffffff;
}
#cc-main .cm .cm__btn--secondary {
  width: auto; min-height: 0; height: auto; padding: 8px 4px;
  background: none; border: 0; color: #1c396d;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
#cc-main .cm .cm__btn--secondary:hover {
  background: none; color: #1c396d; text-decoration: underline; text-underline-offset: 3px;
}
/* The arrow is decoration: screen readers skip it (the "/ ''" part). */
#cc-main .cm .cm__btn--secondary span::after { content: "\00a0\2192" / ""; }
#cc-main .cm .cm__btn:focus-visible {
  outline: 2px solid #1c396d; outline-offset: 3px;
}
/* On phones the library stacks the choices (with !important); both fit on
   one row there, so keep them side by side. */
@media screen and (max-width: 640px) {
  #cc-main .cm .cm__btn-group { flex-direction: row !important; }
  #cc-main .cm .cm__btn { flex: none !important; }
  #cc-main .cm .cm__btn + .cm__btn { margin: 0 !important; }
}
