/* NSI consent banner, wording set 1. Ported from the set 1 test page of 2026-10-05 without its test-page label. */
#consent, #c-prefs, #c-optout { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
#consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #0d1b2a; color: #e8eef4;
  border-top: 2px solid #3fc1c9; box-shadow: 0 -12px 32px rgba(0,0,0,.45); }
#consent .c-inner { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; gap: 28px; align-items: center; }
#consent h2 { margin: 0 0 6px; font: 700 18px/1.3 'Source Serif 4', Georgia, serif; color: #fff; }
#consent p { margin: 0; font-size: 14px; line-height: 1.55; color: #c9d6e2; }
#consent p + p { margin-top: 6px; }
#consent a, #c-prefs a, #c-optout a { color: #6fd6dd; text-decoration: underline; }
#consent .c-links { margin-top: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
#consent .c-links button { background: none; border: 0; padding: 0; color: #6fd6dd; font: inherit; text-decoration: underline; cursor: pointer; min-width: 0; }
.c-buttons { display: flex; gap: 12px; flex-shrink: 0; }
#consent .c-buttons { display: grid; grid-template-columns: 1fr 1fr; }  /* both buttons take the wider label's width */
.c-btn { min-width: 140px; padding: 12px 18px; border-radius: 999px; border: 2px solid #f7931e; background: #f7931e;
  color: #10151c; font: 700 15px/1 'Inter', Arial, sans-serif; cursor: pointer; }
/* Keyboard focus on a link is the theme header's quiet underline in the label's own colour, never a teal
   ring (operator, 2026-10-07: "no teal outline"). Links already underlined at rest thicken to 2px; a
   focused switch underlines its category name. The pill buttons draw no line and no ring in any state
   (operator, 2026-10-07: "why is there an underline under the button?"); they have no hover look to take. */
.c-btn:focus-visible { outline: none; }
.c-foot-links a:focus-visible { outline: none; text-decoration: underline 1px; text-underline-offset: 4px; }
#consent .c-links button:focus-visible, #consent a:focus-visible, #c-prefs a:focus-visible, #c-optout a:focus-visible { outline: none; text-decoration: underline 2px; text-underline-offset: 4px; }
.c-switch input:focus-visible { outline: none; }
.c-cat:has(.c-switch input:focus-visible) h3 { text-decoration: underline 1px; text-underline-offset: 4px; }
#c-gpc { color: #ffd08a !important; font-weight: 600; }
.c-modal { position: fixed; inset: 0; z-index: 9995; background: rgba(6,17,29,.72); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.c-modal[hidden], #consent[hidden], #c-gpc[hidden], .c-gpc-note[hidden] { display: none; }
.c-panel { background: #0d1b2a; color: #e8eef4; border: 1px solid #2b3a4a; border-top: 3px solid #3fc1c9; border-radius: 10px;
  width: 100%; max-width: 560px; margin: auto 0; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.c-panel h2 { margin: 0 0 8px; font: 700 20px/1.3 'Source Serif 4', Georgia, serif; color: #fff; }
.c-panel p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #c9d6e2; }
.c-cat { border-top: 1px solid #2b3a4a; padding: 14px 0; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.c-cat h3 { margin: 0 0 4px; font: 700 15px/1.3 'Inter', Arial, sans-serif; color: #fff; }
.c-cat p { margin: 0; font-size: 13px; }
.c-gpc-note { flex-shrink: 0; max-width: 120px; font-size: 12px; font-weight: 600; color: #ffd08a; text-align: right; }
.c-switch input:disabled { cursor: not-allowed; }
.c-always { flex-shrink: 0; font-size: 13px; font-weight: 600; color: #5ab4b6; padding-top: 2px; }
.c-switch { flex-shrink: 0; position: relative; display: inline-block; width: 46px; height: 26px; margin-top: 2px; }
.c-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.c-switch span { position: absolute; inset: 0; background: #2b3a4a; border-radius: 999px; transition: background .15s; pointer-events: none; }
.c-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #e8eef4; transition: transform .15s; }
.c-switch input:checked + span { background: #10797c; }
.c-switch input:checked + span::after { transform: translateX(20px); }
.c-panel .c-buttons { flex-wrap: wrap; margin-top: 8px; border-top: 1px solid #2b3a4a; padding-top: 16px; }
.c-panel .c-btn { flex: 1; min-width: 140px; }
.c-btn.c-secondary { background: transparent; color: #f7c58a; }
.c-foot-links { margin: 0; padding: 12px 16px; text-align: center; font-size: 13px; }
.nsi-foot-copyright .c-foot-links { display: inline; padding: 0; }
.c-foot-links a { margin: 0 9px; }
.nsi-foot-copyright .c-foot-links a { margin: 0 0 0 18px; }
@media (max-width: 640px) {
  #consent .c-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  #consent h2 { font-size: 17px; }
  #consent p { font-size: 13.5px; }
  #consent .c-buttons .c-btn { flex: 1; min-width: 0; padding: 12px 10px; font-size: 14px; line-height: 1.2; }
  .c-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .c-switch span, .c-switch span::after { transition: none; } }
