/*
 * The cookie banner (D-225), public/ui/consent.js. In the page's own colours: the
 * agency's theme on its pages, the platform's on the platform's. "Reject all" and
 * "Accept all" share one style, so neither is pushed over the other.
 */
.flc { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: var(--sp-4, 1rem); font-size: var(--text-sm, 0.9375rem); line-height: 1.5; color: var(--ink, #1b1f24); }
.flc--modal { top: 0; align-items: center; background: rgba(15, 18, 24, 0.55); overflow-y: auto; }
.flc--bar { pointer-events: none; }
.flc--bar .flc-box { pointer-events: auto; }
.flc-box { position: relative; width: 100%; max-width: 44rem; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--paper, #fff); border: 1px solid var(--line-strong, #9aa3ad); border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); padding: var(--sp-5, 1.25rem) var(--sp-5, 1.25rem) var(--sp-4, 1rem); }
.flc h2.flc-title, .flc .flc-group h3 { font-family: inherit; text-transform: none; letter-spacing: normal; color: var(--ink, #1b1f24); }
.flc h2.flc-title { margin: 0 0 var(--sp-2, 0.5rem); font-size: var(--text-lg, 1.2rem); font-weight: 700; line-height: 1.3; padding-right: 2rem; }
/* The heading takes the focus when the dialog opens, for screen readers; it is not a control. */
.flc h2.flc-title:focus, .flc h2.flc-title:focus-visible { outline: none; }
.flc-text { margin: 0 0 var(--sp-2, 0.5rem); }
.flc-links { display: flex; flex-wrap: wrap; gap: var(--sp-4, 1rem); margin: 0 0 var(--sp-4, 1rem); }
.flc-links a { color: var(--gold-deep, #0b5cad); font-weight: 600; text-underline-offset: 0.15em; }
.flc-close { position: absolute; top: var(--sp-2, 0.5rem); right: var(--sp-2, 0.5rem); width: 44px; height: 44px;
  border: 0; border-radius: var(--radius, 8px); background: transparent; color: var(--ink-muted, #57606a); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.flc-close:hover { background: var(--paper-tint, #f3f4f6); color: var(--ink, #1b1f24); }
.flc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2, 0.5rem); }
.flc-btn { flex: 1 1 10rem; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: var(--radius, 8px); font: inherit;
  font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.flc-btn--choice { background: var(--action-bg, #0b5cad); color: var(--action-fg, #fff); }
.flc-btn--choice:hover { background: var(--gold-hover, var(--action-bg, #0a4f96)); }
.flc-btn--more { background: var(--paper, #fff); color: var(--ink, #1b1f24); border-color: var(--line-strong, #9aa3ad); }
.flc-btn--more:hover { background: var(--paper-tint, #f3f4f6); }
.flc-btn:disabled { opacity: 0.6; cursor: progress; }
.flc :focus-visible { outline: 3px solid var(--gold, #0b5cad); outline-offset: 2px; }
.flc-error { margin: 0 0 var(--sp-3, 0.75rem); padding: var(--sp-2, 0.5rem) var(--sp-3, 0.75rem); border-radius: var(--radius, 8px);
  background: var(--urgent-wash, #ffebe9); color: var(--urgent, #a40e26); font-weight: 600; }
.flc-details { border-top: 1px solid var(--line, #d0d7de); margin: 0 0 var(--sp-4, 1rem); }
.flc-group { padding: var(--sp-3, 0.75rem) 0; border-bottom: 1px solid var(--line, #d0d7de); }
.flc-group__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3, 0.75rem); }
.flc-group h3 { margin: 0; font-size: 1rem; }
.flc-group h3 label { cursor: pointer; }
.flc-group__text { margin: var(--sp-1, 0.25rem) 0 var(--sp-2, 0.5rem); color: var(--ink-soft, #424a53); }
.flc-always { font-size: var(--text-xs, 0.8125rem); font-weight: 600; color: var(--ok, #116329); white-space: nowrap; }
.flc-switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 2.75rem; height: 1.5rem; margin: 0;
  border-radius: 999px; border: 1px solid var(--line-strong, #9aa3ad); background: var(--paper-tint, #e6e9ed); cursor: pointer; transition: background-color .15s; }
.flc-switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px);
  border-radius: 50%; background: var(--ink-muted, #57606a); transition: transform .15s, background-color .15s; }
.flc-switch input:checked { background: var(--action-bg, #0b5cad); border-color: var(--action-bg, #0b5cad); }
.flc-switch input:checked::before { transform: translateX(1.25rem); background: var(--action-fg, #fff); }
.flc-table { overflow-x: auto; }
.flc-table table { width: 100%; border-collapse: collapse; font-size: var(--text-xs, 0.8125rem); }
.flc-table th, .flc-table td { text-align: left; vertical-align: top; padding: 0.35rem 0.5rem 0.35rem 0; border-top: 1px solid var(--line, #d0d7de); }
.flc-table th { color: var(--ink-muted, #57606a); font-weight: 600; white-space: nowrap; }
.flc-table code { font-size: 0.95em; white-space: nowrap; }
.flc-foot-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 30rem) {
  .flc { padding: var(--sp-2, 0.5rem); }
  .flc-box { padding: var(--sp-4, 1rem); }
  .flc-btn { flex-basis: 100%; }
  /* On a phone each item is a small card, its column names beside the values. */
  .flc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .flc-table table, .flc-table tbody, .flc-table tr, .flc-table td { display: block; }
  .flc-table tr { padding: var(--sp-2, 0.5rem) 0; border-top: 1px solid var(--line, #d0d7de); }
  .flc-table td { border: 0; padding: 0.1rem 0; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--sp-2, 0.5rem); }
  .flc-table td::before { content: attr(data-label); color: var(--ink-muted, #57606a); font-weight: 600; }
  .flc-table code { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .flc * { transition: none !important; } }
