/* nwsly cookie consent — banner, modal, persistent pill.
 * Self-contained: no dependencies on the page's stylesheet. Uses :where()
 * to keep specificity low so the host page can override if ever needed. */

:where(#nws-cc-banner, #nws-cc-modal, #nws-cc-pill) { box-sizing: border-box; }
:where(#nws-cc-banner *, #nws-cc-modal *) { box-sizing: border-box; }

/* ─── Banner (bottom of viewport) ─────────────────────────────────────── */
#nws-cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483600;
  background: #ffffff; color: #111;
  border-top: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.5;
  animation: nws-cc-rise 220ms ease-out;
}
@keyframes nws-cc-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.nws-cc-banner-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 24px; align-items: center;
  padding: 16px 24px;
}
#nws-cc-banner .nws-cc-copy { flex: 1 1 auto; min-width: 0; }
#nws-cc-banner .nws-cc-copy p { margin: 0; color: #1a1a1a; }
#nws-cc-banner .nws-cc-copy a { color: #1a1a1a; text-decoration: underline; }
#nws-cc-banner .nws-cc-actions {
  display: flex; flex-direction: column; gap: 8px;
  flex: 0 0 auto; align-items: stretch;
}
@media (min-width: 900px) {
  #nws-cc-banner .nws-cc-actions { min-width: 220px; }
}
@media (max-width: 720px) {
  .nws-cc-banner-inner { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  #nws-cc-banner .nws-cc-actions { width: 100%; }
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.nws-cc-btn {
  font: inherit; cursor: pointer;
  padding: 10px 18px; border-radius: 8px;
  border: 1px solid #111; background: #fff; color: #111;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.nws-cc-btn:hover { background: #f4f4f4; }
.nws-cc-btn-solid { background: #111; color: #fff; }
.nws-cc-btn-solid:hover { background: #000; color: #fff; }
.nws-cc-btn-ghost { background: #111; color: #fff; border-color: #111; }
.nws-cc-btn-ghost:hover { background: #000; }
.nws-cc-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ─── Modal ───────────────────────────────────────────────────────────── */
#nws-cc-modal {
  position: fixed; inset: 0; z-index: 2147483601;
  display: none; align-items: stretch; justify-content: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#nws-cc-modal.is-open { display: flex; }
.nws-cc-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.nws-cc-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  background: #fff; color: #111;
  display: flex; flex-direction: column;
  box-shadow: 8px 0 32px rgba(0,0,0,0.2);
  animation: nws-cc-slide 220ms ease-out;
}
@keyframes nws-cc-slide { from { transform: translateX(-24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.nws-cc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nws-cc-modal-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.nws-cc-close {
  background: transparent; border: 0; font-size: 28px; line-height: 1;
  color: #555; cursor: pointer; padding: 0 4px;
}
.nws-cc-close:hover { color: #000; }

.nws-cc-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1 1 auto; font-size: 14px; line-height: 1.55; }
.nws-cc-intro { margin: 0 0 12px; color: #333; }
.nws-cc-intro a { color: #111; text-decoration: underline; }
.nws-cc-rows { margin-top: 8px; }
.nws-cc-row { padding: 18px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.nws-cc-row:first-child { border-top: 0; }
.nws-cc-row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; gap: 12px;
}
.nws-cc-row h3 { margin: 0; font-size: 15px; font-weight: 600; }
.nws-cc-row p { margin: 0; color: #444; font-size: 13.5px; }

/* ─── Toggle switches ─────────────────────────────────────────────────── */
.nws-cc-toggle {
  position: relative; flex: 0 0 auto;
  width: 40px; height: 22px; border-radius: 999px;
  background: #d4d4d4; border: 0; padding: 0; cursor: pointer;
  transition: background 140ms ease;
}
.nws-cc-toggle > span {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: left 140ms ease;
}
.nws-cc-toggle.is-on { background: #111; }
.nws-cc-toggle.is-on > span { left: 20px; }
.nws-cc-toggle-locked { background: #111; cursor: not-allowed; }
.nws-cc-toggle-locked > span { left: 20px; }
.nws-cc-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.nws-cc-modal-foot {
  display: flex; gap: 10px; padding: 16px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  justify-content: flex-end; flex-wrap: wrap;
}
@media (max-width: 520px) {
  .nws-cc-modal-panel { max-width: 100%; }
  .nws-cc-modal-foot .nws-cc-btn { flex: 1 1 auto; }
}

/* ─── Persistent reopener pill (bottom-left) ──────────────────────────── */
#nws-cc-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483500;
  font: 12px/1 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(17,17,17,0.85); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  opacity: 0.7; transition: opacity 140ms ease;
}
#nws-cc-pill:hover { opacity: 1; }
#nws-cc-pill:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; opacity: 1; }

/* ─── CCPA "Do Not Sell or Share" link (US opt-out states only) ───────── */
#nws-cc-dns {
  position: fixed; left: 88px; bottom: 16px; z-index: 2147483500;
  font: 12px/1.2 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.95); color: #111; border: 1px solid rgba(0,0,0,0.18);
  cursor: pointer; max-width: 280px; text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0.92; transition: opacity 140ms ease;
}
#nws-cc-dns:hover { opacity: 1; }
#nws-cc-dns:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; opacity: 1; }
@media (max-width: 600px) {
  /* Stack the DNS pill above Cookies on narrow screens so it isn't clipped. */
  #nws-cc-dns { left: 16px; bottom: 52px; }
}
@media print { #nws-cc-banner, #nws-cc-modal, #nws-cc-pill, #nws-cc-dns { display: none !important; } }
