/* Copied by build.py from the website's assets/css/styles.css: edit them there. */

/* -------------------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------------------- */
.btn-cc {
  --btn-bg: var(--cc-primary);
  --btn-fg: var(--cc-on-primary);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--cc-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: normal;   /* wraps rather than being clipped when the button is narrower than its label (large text, narrow cards) */
  max-width: 100%;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-cc:hover,
.btn-cc:focus-visible {
  color: var(--btn-fg-hover, var(--btn-fg));
  background: var(--btn-bg-hover, var(--cc-primary-hover));
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(var(--cc-primary-rgb), 0.7);
}
.btn-cc:active { transform: translateY(0); box-shadow: none; }
.btn-cc i { transition: transform 0.2s ease; }
.btn-cc:hover i.fa-arrow-right,
.btn-cc:focus-visible i.fa-arrow-right { transform: translateX(4px); }

.btn-cc--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-bg-hover: rgba(255, 255, 255, 0.14);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-cc--ghost:hover, .btn-cc--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}

.btn-cc--dark {
  --btn-bg: var(--cc-ink-900);
  --btn-bg-hover: var(--cc-ink-700);
  --btn-fg: #fff;
}
.btn-cc--dark:hover, .btn-cc--dark:focus-visible { box-shadow: 0 14px 30px -14px rgba(11, 18, 32, 0.7); }
[data-bs-theme="dark"] .btn-cc--dark {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-bg-hover: var(--cc-primary);
  --btn-fg: #fff;
  --btn-fg-hover: var(--cc-on-primary);
  --btn-bd: rgba(255, 255, 255, 0.24);
}
[data-bs-theme="dark"] .btn-cc--dark:hover, [data-bs-theme="dark"] .btn-cc--dark:focus-visible { border-color: var(--cc-primary); box-shadow: 0 14px 30px -14px rgba(var(--cc-primary-rgb), 0.7); }

.btn-cc--outline {
  --btn-bg: transparent;
  --btn-bg-hover: var(--cc-heading);
  --btn-fg: var(--cc-heading);
  --btn-fg-hover: var(--cc-bg);
  --btn-bd: var(--cc-border-strong);
}
.btn-cc--outline:hover, .btn-cc--outline:focus-visible {
  border-color: var(--cc-heading);
  box-shadow: 0 14px 30px -14px rgba(11, 18, 32, 0.6);
}

.btn-cc--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 12px; }
.btn-cc--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.08rem; border-radius: 16px; }
.btn-cc--block { display: flex; width: 100%; }
@media (max-width: 991.98px) { .btn-cc--block[data-pick-tld] { padding-inline: 0.75rem; gap: 0.4rem; } } /* three narrow cards per row on tablets: keep the label inside the button */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cc-font-display);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow i { transition: transform 0.2s ease; font-size: 0.85em; }
.link-arrow:hover i, .link-arrow:focus-visible i { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   17c. Cookie consent: banner, preferences dialog, footer link, cookie list
   ------------------------------------------------------------------------- */
.footer-link-btn { padding: 0.35rem 0; margin: 0; font: inherit; color: #b5c3db; background: none; border: 0; cursor: pointer; }
.footer-link-btn:hover { color: #fff; text-decoration: underline; }
html:not(.js) .cc-only-js { display: none; }

/* While the banner is up, keep the page reachable beneath it (WCAG 2.4.11: focus must not be hidden). */
html.cc-banner-open { scroll-padding-bottom: calc(var(--cc-banner-h, 0px) + 1rem); }
html.cc-banner-open body { padding-bottom: var(--cc-banner-h, 0px); }
html.cc-banner-open .back-to-top { bottom: calc(var(--cc-banner-h, 0px) + 1.5rem); }
html.cc-lock { overflow: hidden; }

.cc-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
  padding: 0 clamp(0.5rem, 2vw, 1.25rem) calc(clamp(0.5rem, 2vw, 1.25rem) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.cc-consent__card {
  pointer-events: auto;
  display: grid; gap: 1rem 2rem;
  max-width: 980px; margin-inline: auto;
  max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); overflow-y: auto;
  padding: 1.25rem 1.5rem;
  color: var(--cc-text-on-dark); background: var(--cc-ink-850);
  border: 1px solid rgba(147, 197, 253, 0.3); border-radius: 22px;
  box-shadow: 0 -10px 40px -14px rgba(0, 0, 0, 0.6), 0 28px 60px -22px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cc-consent.is-in .cc-consent__card { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .cc-consent__card { grid-template-columns: minmax(0, 1fr) minmax(300px, auto); align-items: center; padding: 1.4rem 1.75rem; }
}
.cc-consent__title { margin: 0 0 0.35rem; font-family: var(--cc-font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.cc-consent__text p:not(.cc-consent__title) { margin: 0; font-size: 0.94rem; line-height: 1.6; color: var(--cc-text-on-dark); }
.cc-consent__text a { color: var(--cc-primary-300); text-decoration: underline; }
.cc-consent__text a:hover { color: #fff; }
.cc-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
/* Reject and Accept share one class on purpose: same size, colour and weight (equal prominence). */
.cc-choice { white-space: normal; min-height: 48px; padding: 0.6rem 0.9rem; font-size: 0.95rem; }
.cc-linkbtn {
  grid-column: 1 / -1; justify-self: center;
  min-height: 44px; padding: 0.55rem 0.75rem;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--cc-primary-300);
  background: none; border: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.cc-linkbtn:hover { color: #fff; }
@media (max-width: 575.98px) {
  .cc-consent__card { gap: 0.75rem; padding: 1rem 1.1rem; }
  .cc-consent__title { font-size: 1.05rem; }
  .cc-consent__text p:not(.cc-consent__title) { font-size: 0.88rem; line-height: 1.5; }
  .cc-choice { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
}
@media (max-width: 359.98px) { .cc-consent__actions { grid-template-columns: 1fr; } }
/* Landscape phones are short: put the text beside the buttons so the banner leaves most of the page visible */
@media (min-width: 560px) and (max-height: 520px) {
  .cc-consent__card { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: center; gap: 0.5rem 1.25rem; padding: 0.8rem 1.25rem; }
  .cc-consent__title { margin-bottom: 0.15rem; font-size: 1rem; }
  .cc-consent__text p:not(.cc-consent__title) { font-size: 0.82rem; line-height: 1.42; }
  .cc-consent__actions { grid-template-columns: 1fr; gap: 0.4rem; }
  .cc-choice { min-height: 44px; padding: 0.35rem 0.6rem; }
  .cc-linkbtn { min-height: 40px; padding: 0.3rem 0.5rem; }
}

.cc-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(680px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem);
  color: var(--cc-text-on-dark); background: var(--cc-ink-850);
  border: 1px solid rgba(147, 197, 253, 0.3); border-radius: 24px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.cc-dialog[open] { display: flex; flex-direction: column; }
.cc-dialog::backdrop { background: rgba(6, 11, 22, 0.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cc-dialog__panel { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); }
.cc-dialog__head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cc-dialog__title { margin: 0; font-size: 1.35rem; color: #fff; }
.cc-dialog__close {
  display: grid; flex: none; place-items: center; width: 44px; height: 44px;
  color: #dbe7fb; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer;
  transition: background-color 0.2s ease;
}
.cc-dialog__close:hover { background: rgba(255, 255, 255, 0.16); }
.cc-dialog__body { flex: 1 1 auto; min-height: 0; padding: 1.1rem 1.5rem 0.5rem; overflow-y: auto; }
.cc-dialog__body p { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--cc-text-on-dark); }
.cc-dialog__body a { color: var(--cc-primary-300); }
.cc-dialog__body a:hover { color: #fff; }
.cc-dialog__foot { display: grid; flex: none; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 1rem 1.5rem 1.25rem; background: var(--cc-ink-900); border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 575.98px) {
  .cc-dialog__foot { grid-template-columns: 1fr; }
  .cc-dialog__head { padding-left: 1.1rem; }
  .cc-dialog__body { padding-inline: 1.1rem; }
}
/* Short landscape screens: keep the three buttons in one row and the header slim so the cookie list still has room to read */
@media (max-height: 520px) and (min-width: 440px) {
  .cc-dialog__head { padding: 0.45rem 0.9rem 0.45rem 1.25rem; }
  .cc-dialog__title { font-size: 1.15rem; }
  .cc-dialog__body { padding-block: 0.8rem 0.4rem; }
  .cc-dialog__foot { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.6rem 1.1rem 0.7rem; }
  .cc-dialog__foot .cc-choice { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
}

.cc-cat { margin-top: 1rem; padding: 1.1rem 0 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.cc-cat h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.cc-cat p { color: var(--cc-text-on-dark-muted); }
.cc-cat__always { font-size: 0.88rem; font-weight: 600; color: var(--cc-green); }
.cc-cat__note { padding: 0.6rem 0.8rem; background: rgba(var(--cc-primary-rgb), 0.14); border: 1px solid rgba(var(--cc-primary-rgb), 0.35); border-radius: 12px; }
.cc-dialog__body .cc-cat__note { color: var(--cc-text-on-dark); }
.cc-cat__more { margin: 0.2rem 0 0.4rem; }
.cc-cat__more summary { display: list-item; min-height: 36px; padding: 0.3rem 0; font-size: 0.9rem; font-weight: 600; color: var(--cc-primary-300); cursor: pointer; }
.cc-cat__more summary:hover { color: #fff; }
.cc-cookie-items { margin: 0.3rem 0 0.5rem; padding-left: 1.1rem; font-size: 0.88rem; color: var(--cc-text-on-dark-muted); }
.cc-cookie-items li { margin-bottom: 0.5rem; }
.cc-cookie-items .mono { color: #fff; }
.cc-cookie-meta { display: block; color: #8fa0bd; }
.cc-cat__none { font-size: 0.88rem !important; }

/* Switch: the real checkbox sits on top (opacity 0) so it stays focusable and clickable. */
.cc-switch { position: relative; display: inline-flex; flex: none; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch__ui { position: relative; flex: none; width: 52px; height: 30px; background: var(--cc-ink-700); border: 2px solid #94a3b8; border-radius: 999px; transition: background-color 0.2s ease, border-color 0.2s ease; }
.cc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #e6edf8; border-radius: 50%; transition: transform 0.2s ease; }
.cc-switch input:checked + .cc-switch__ui { background: var(--cc-primary); border-color: var(--cc-primary); }
.cc-switch input:checked + .cc-switch__ui::after { background: #fff; transform: translateX(22px); }
.cc-switch input:focus-visible + .cc-switch__ui { outline: 3px solid var(--cc-primary-300); outline-offset: 3px; }
.cc-switch__state { min-width: 2.1em; font-size: 0.9rem; font-weight: 600; color: var(--cc-text-on-dark); }

/* Cookie list on the Cookies Policy page */
.cc-table--cookies { min-width: 640px; font-size: 0.92rem; }
.cc-table--cookies th, .cc-table--cookies td { padding: 0.75rem 0.9rem; vertical-align: top; }
.cc-table--cookies thead th { white-space: normal; }
.cc-cookie-note { margin: 1rem 0 0; color: var(--cc-text-muted); }

@media (forced-colors: active) {
  .cc-switch__ui { border-color: ButtonText; }
  .cc-switch__ui::after { background: ButtonText; }
  .cc-switch input:checked + .cc-switch__ui { background: Highlight; border-color: Highlight; }
  .cc-switch input:checked + .cc-switch__ui::after { background: HighlightText; }
}
@media print { .cc-consent, .cc-dialog { display: none !important; } }
