/* News page aligned with the site's periwinkle palette. */
body.news-tool-page.light-theme .news-hero {
  border-color:#c5d0f1 !important;
  background:radial-gradient(circle at 8% 8%,#fff,transparent 34%),radial-gradient(circle at 88% 14%,#cbd7ff,transparent 36%),linear-gradient(145deg,#f6f8ff,#dce4ff) !important;
  box-shadow:0 24px 60px rgba(73,84,145,.14),inset 0 1px 0 #fff !important;
}
body.news-tool-page.light-theme .news-eyebrow,
body.news-tool-page.light-theme .news-kicker { color:#6075c7 !important; }
body.news-tool-page.light-theme .news-eyebrow-icon {
  border-color:#cbd5f5 !important;color:#6075c7 !important;background:#e7edff !important;
}
body.news-tool-page.light-theme .news-hero h1 strong {
  color:#5368bb !important;background:none !important;-webkit-text-fill-color:currentColor !important;
}
body.news-tool-page.light-theme .news-hero-meta span {
  border:0 !important;color:#53618e !important;background:transparent !important;
}

body.news-tool-page.light-theme .news-featured {
  border-color:#c5d0f1 !important;background:#f8faff !important;
  box-shadow:0 24px 52px rgba(65,78,144,.16),inset 0 1px 0 #fff !important;
}
body.news-tool-page.light-theme .news-featured-art {
  border-color:#d0daf3 !important;color:#6075c7 !important;background:#edf2ff !important;
}
body.news-tool-page.light-theme .news-featured-art::before { border-color:#c2ceef !important;box-shadow:0 0 45px #d6e0ff !important; }
body.news-tool-page.light-theme .news-featured-symbol {
  border-color:#bdc9ec !important;color:#fff !important;background:linear-gradient(145deg,#91a5eb,#667bd0) !important;
  box-shadow:0 12px 26px rgba(70,88,168,.2),inset 0 1px 0 rgba(255,255,255,.3) !important;
}
body.news-tool-page.light-theme .news-featured-label,
body.news-tool-page.light-theme .news-meta span {
  border-color:#c8d2ef !important;color:#5368bb !important;background:#e7edff !important;
}
body.news-tool-page.light-theme .news-featured-cover-copy span { color:#6075c7 !important; }

/* The feed is a section, not another large card. */
body.news-tool-page.light-theme .news-library {
  border-color:transparent !important;background:transparent !important;box-shadow:none !important;
}
body.news-tool-page.light-theme .news-filters { border-color:#ccd6f2 !important;background:#edf2ff !important; }
body.news-tool-page.light-theme .news-filter {
  border-color:#ccd6f2 !important;color:#5e698f !important;background:#fff !important;
}
body.news-tool-page.light-theme .news-filter:hover,
body.news-tool-page.light-theme .news-filter.active {
  border-color:#aebde9 !important;color:#fff !important;background:#667bd0 !important;
  box-shadow:0 7px 16px rgba(70,88,168,.16),inset 0 1px 0 rgba(255,255,255,.28) !important;
}
body.news-tool-page.light-theme .news-card {
  border-color:#ccd6f2 !important;background:#fff !important;
  box-shadow:0 10px 24px rgba(65,78,144,.07),inset 0 1px 0 #fff !important;
}
body.news-tool-page.light-theme .news-card:hover {
  border-color:#aebde9 !important;box-shadow:0 17px 34px rgba(65,78,144,.13),inset 0 1px 0 #fff !important;
}
body.news-tool-page.light-theme .news-card-art,
body.news-tool-page.light-theme :is(.news-art-purple,.news-art-orange,.news-art-blue,.news-art-red,.news-art-pink,.news-art-green) {
  border-color:#d4dcf3 !important;color:#667bd0 !important;background:#edf2ff !important;
}
body.news-tool-page.light-theme .news-card-art::before { background:#c9d5fb !important;opacity:.45 !important; }
body.news-tool-page.light-theme .news-card-art svg { stroke:#667bd0 !important;filter:drop-shadow(0 5px 10px rgba(70,88,168,.15)) !important; }
body.news-tool-page.light-theme .news-card-index { color:#667bd0 !important; }
body.news-tool-page.light-theme .news-read-btn,
body.news-tool-page.light-theme .news-admin-toggle {
  border:1px solid #bdc9ec !important;border-radius:10px !important;color:#fff !important;background:#667bd0 !important;
  box-shadow:0 7px 16px rgba(70,88,168,.15),inset 0 1px 0 rgba(255,255,255,.28) !important;
}

/* Discord CTA uses Discord's own brand colors. */
body.news-tool-page.light-theme .news-community {
  border-color:#adb6ff !important;background:#eef0ff !important;
  box-shadow:0 18px 42px rgba(88,101,242,.14),inset 0 1px 0 #fff !important;
}
body.news-tool-page.light-theme .news-community::after { background:#c4c9ff !important;opacity:1 !important; }
body.news-tool-page.light-theme .news-discord-logo {
  border-color:#7884f6 !important;background:#5865f2 !important;box-shadow:0 10px 24px rgba(88,101,242,.3) !important;
}
body.news-tool-page.light-theme .news-community .news-kicker { color:#5865f2 !important; }
body.news-tool-page.light-theme .news-community > a {
  border:1px solid #6f79ef !important;color:#fff !important;background:#5865f2 !important;
  box-shadow:0 10px 24px rgba(88,101,242,.28),inset 0 1px 0 rgba(255,255,255,.22) !important;
}
body.news-tool-page.light-theme .news-community > a:hover { background:#4752c4 !important; }

/* =========================================================
   NEWS & UPDATES — REPDATABASE DREAMY PERIWINKLE THEME
   Discord CTA intentionally keeps official Discord branding.
   ========================================================= */
body.news-tool-page.light-theme {
  --nw-ink:#19182a;
  --nw-copy:#625e74;
  --nw-line:rgba(91,88,128,.17);
  --nw-line-strong:rgba(91,88,128,.28);
  --nw-lilac:#e7d8ff;
  --nw-periwinkle:#b8c0ff;
  --nw-surface:#fbfaff;
  --nw-soft:#f1edff;
  --nw-gradient:linear-gradient(135deg,#e7d8ff 0%,#ddd6ff 45%,#c9c8ff 72%,#b8c0ff 100%);
}
body.news-tool-page.light-theme .news-hero {
  border-color:var(--nw-line)!important;
  color:var(--nw-ink)!important;
  background:radial-gradient(circle at 91% 5%,rgba(255,255,255,.56),transparent 29%),var(--nw-gradient)!important;
  box-shadow:0 24px 58px rgba(80,76,126,.15),inset 0 1px 0 rgba(255,255,255,.82)!important;
}
body.news-tool-page.light-theme .news-hero-glow { display:none!important;background:transparent!important; }
body.news-tool-page.light-theme :is(.news-eyebrow,.news-kicker) { color:#615c78!important; }
body.news-tool-page.tool-periwinkle-page.light-theme .news-eyebrow {
  border-color:transparent!important;
  color:#615c78!important;
  background:transparent!important;
  outline-color:rgba(231,216,255,.8)!important;
}
body.news-tool-page.light-theme .news-eyebrow-icon {
  border-color:var(--nw-line)!important;
  color:#514c68!important;
  background:linear-gradient(145deg,#f4eeff,#d9daff)!important;
}
body.news-tool-page.light-theme .news-hero h1,
body.news-tool-page.light-theme .news-hero h1 strong {
  color:var(--nw-ink)!important;
  background:none!important;
  -webkit-text-fill-color:var(--nw-ink)!important;
}
body.news-tool-page.light-theme .news-hero-copy>p { color:var(--nw-copy)!important; }
body.news-tool-page.light-theme .news-hero-meta span {
  border-color:transparent!important;
  color:#59546b!important;
  background:transparent!important;
  outline-color:rgba(231,216,255,.8)!important;
}

body.news-tool-page.light-theme .news-featured {
  border-color:var(--nw-line)!important;
  color:var(--nw-ink)!important;
  background:linear-gradient(155deg,#fff,#f0ebff)!important;
  box-shadow:0 24px 52px rgba(72,68,112,.14),inset 0 1px 0 #fff!important;
}
body.news-tool-page.light-theme .news-featured-art {
  border-color:var(--nw-line)!important;
  color:#514c68!important;
  background:linear-gradient(145deg,#f7f3ff,#dfe0ff)!important;
}
body.news-tool-page.light-theme .news-featured-art::before { border-color:var(--nw-line)!important;box-shadow:0 0 45px rgba(231,216,255,.72)!important; }
body.news-tool-page.light-theme .news-featured-symbol {
  border-color:rgba(255,255,255,.84)!important;
  color:#403b55!important;
  background:linear-gradient(145deg,#e7d8ff,#b8c0ff)!important;
  box-shadow:0 12px 26px rgba(72,68,112,.17),inset 0 1px 0 rgba(255,255,255,.76)!important;
}
body.news-tool-page.light-theme :is(.news-featured-label,.news-meta span) {
  border-color:var(--nw-line)!important;
  color:#565168!important;
  background:#f1ecff!important;
}
body.news-tool-page.light-theme .news-featured-cover-copy span { color:#615c78!important; }
body.news-tool-page.light-theme .news-featured-body :is(h2,h3,strong) { color:var(--nw-ink)!important; }
body.news-tool-page.light-theme .news-featured-body>p { color:var(--nw-copy)!important; }

body.news-tool-page.light-theme .news-library { border-color:transparent!important;background:transparent!important;box-shadow:none!important; }
body.news-tool-page.light-theme .news-filters {
  border-color:var(--nw-line)!important;
  background:linear-gradient(145deg,#f5f0ff,#dedfff)!important;
}
body.news-tool-page.light-theme .news-filter {
  border-color:var(--nw-line)!important;
  color:#5d586d!important;
  background:#fff!important;
  outline-color:rgba(231,216,255,.8)!important;
}
body.news-tool-page.tool-periwinkle-page.light-theme .news-filter {
  border-color:var(--nw-line)!important;
  color:#5d586d!important;
  background:#fff!important;
}
body.news-tool-page.light-theme .news-filter:hover,
body.news-tool-page.light-theme .news-filter.active,
body.news-tool-page.tool-periwinkle-page.light-theme .news-filter:hover,
body.news-tool-page.tool-periwinkle-page.light-theme .news-filter.active {
  border-color:rgba(255,255,255,.84)!important;
  color:#302c42!important;
  background:linear-gradient(135deg,#e7d8ff,#b8c0ff)!important;
  box-shadow:0 8px 18px rgba(72,68,112,.15),inset 0 1px 0 rgba(255,255,255,.76)!important;
}
body.news-tool-page.light-theme .news-card {
  border-color:var(--nw-line)!important;
  color:var(--nw-ink)!important;
  background:linear-gradient(155deg,#fff,#f3efff)!important;
  box-shadow:0 10px 24px rgba(72,68,112,.07),inset 0 1px 0 #fff!important;
}
body.news-tool-page.light-theme .news-card:hover {
  border-color:var(--nw-line-strong)!important;
  box-shadow:0 18px 35px rgba(72,68,112,.13),inset 0 1px 0 #fff!important;
}
body.news-tool-page.light-theme .news-card :is(h2,h3,strong) { color:var(--nw-ink)!important; }
body.news-tool-page.light-theme .news-card-body>p { color:var(--nw-copy)!important; }
body.news-tool-page.light-theme .news-card-art,
body.news-tool-page.light-theme :is(.news-art-purple,.news-art-orange,.news-art-blue,.news-art-red,.news-art-pink,.news-art-green) {
  border-color:var(--nw-line)!important;
  color:#514c68!important;
  background:linear-gradient(145deg,#f7f3ff,#dfe0ff)!important;
}
body.news-tool-page.light-theme .news-card-art::before { background:#e7d8ff!important;opacity:.55!important; }
body.news-tool-page.light-theme .news-card-art svg { color:#5b566d!important;stroke:#5b566d!important;filter:drop-shadow(0 5px 10px rgba(72,68,112,.13))!important; }
body.news-tool-page.light-theme .news-card-index { color:#615c78!important; }
body.news-tool-page.light-theme .news-card-alert { border-color:rgba(159,84,105,.22)!important; }
body.news-tool-page.light-theme .news-alert-label {
  border-color:rgba(159,84,105,.2)!important;
  color:#83485a!important;
  background:#fbeaf0!important;
}

body.news-tool-page.light-theme :is(.news-read-btn,.news-admin-toggle,.news-create-btn,.news-save-btn) {
  border:1px solid rgba(255,255,255,.84)!important;
  color:#302c42!important;
  background:linear-gradient(135deg,#e7d8ff,#b8c0ff)!important;
  box-shadow:0 8px 18px rgba(72,68,112,.15),inset 0 1px 0 rgba(255,255,255,.76)!important;
  transition:transform .22s ease,background .22s ease,box-shadow .22s ease!important;
}
body.news-tool-page.light-theme :is(.news-read-btn,.news-admin-toggle,.news-create-btn,.news-save-btn):hover {
  border-color:rgba(255,255,255,.92)!important;
  color:#19182a!important;
  background:linear-gradient(135deg,#efe4ff,#c6ccff)!important;
  box-shadow:0 12px 24px rgba(72,68,112,.2),inset 0 1px 0 #fff!important;
  transform:translateY(-2px)!important;
}
body.news-tool-page.light-theme .news-empty {
  border-color:var(--nw-line)!important;
  color:var(--nw-copy)!important;
  background:linear-gradient(145deg,#fff,#f1ecff)!important;
}

/* Admin editor and all generated list states. */
body.news-tool-page.light-theme .news-editor-backdrop { background:rgba(25,24,42,.52)!important;backdrop-filter:blur(7px)!important; }
body.news-tool-page.light-theme .news-editor-dialog {
  border-color:var(--nw-line)!important;
  color:var(--nw-ink)!important;
  background:linear-gradient(145deg,#fbf9ff,#e9e5ff)!important;
  box-shadow:0 30px 80px rgba(54,50,88,.28),inset 0 1px 0 #fff!important;
}
body.news-tool-page.light-theme .news-editor-header,
body.news-tool-page.light-theme .news-editor-list-panel { border-color:var(--nw-line)!important;background:rgba(255,255,255,.62)!important; }
body.news-tool-page.tool-periwinkle-page.light-theme .news-editor-list-panel { border-color:var(--nw-line)!important; }
body.news-tool-page.light-theme .news-editor-close {
  border-color:var(--nw-line)!important;
  color:#5d586d!important;
  background:#f3eeff!important;
}
body.news-tool-page.light-theme .news-editor-close:hover { border-color:var(--nw-line-strong)!important;color:#292638!important;background:linear-gradient(135deg,#e7d8ff,#d5d6ff)!important; }
body.news-tool-page.light-theme .news-editor-field :is(input,textarea,select),
body.news-tool-page.light-theme :is(.news-editor-field input,.news-editor-field textarea,.news-editor-field select) {
  border-color:var(--nw-line)!important;
  border-radius:12px!important;
  color:var(--nw-ink)!important;
  background:#fff!important;
  box-shadow:inset 0 1px 0 #fff!important;
}
body.news-tool-page.light-theme .news-editor-field :is(input,textarea,select):focus {
  border-color:var(--nw-line-strong)!important;
  outline:0!important;
  box-shadow:0 0 0 4px rgba(231,216,255,.72)!important;
}
body.news-tool-page.light-theme .news-editor-field label { color:#575269!important; }
body.news-tool-page.light-theme .news-editor-list-item {
  border-color:var(--nw-line)!important;
  color:var(--nw-ink)!important;
  background:#fff!important;
}
body.news-tool-page.light-theme .news-editor-list-item:hover,
body.news-tool-page.light-theme .news-editor-list-item.active {
  border-color:var(--nw-line-strong)!important;
  background:linear-gradient(145deg,#f3edff,#dedfff)!important;
}
body.news-tool-page.light-theme .news-editor-list-empty { color:var(--nw-copy)!important; }
body.news-tool-page.light-theme .news-editor-check>span {
  border-color:var(--nw-line)!important;
  background:#fff!important;
}
body.news-tool-page.light-theme .news-editor-check input:checked+span { border-color:rgba(105,100,145,.3)!important;background:linear-gradient(135deg,#e7d8ff,#b8c0ff)!important; }
body.news-tool-page.light-theme .news-delete-btn {
  border-color:rgba(159,84,105,.22)!important;
  color:#83485a!important;
  background:#fbeaf0!important;
}
body.news-tool-page.light-theme .news-delete-btn:hover { border-color:rgba(159,84,105,.32)!important;background:#f8dce6!important; }
body.news-tool-page.light-theme .news-save-message { color:#625e74!important; }
body.news-tool-page.light-theme .news-save-message.success { color:#356347!important; }
body.news-tool-page.light-theme .news-save-message.error { color:#83485a!important; }

/* Discord keeps its official identity. */
body.news-tool-page.light-theme .news-community {
  border-color:rgba(255,255,255,.2)!important;
  color:#fff!important;
  background:
    radial-gradient(circle at 8% 18%,rgba(176,185,255,.5),transparent 28%),
    radial-gradient(circle at 73% -25%,rgba(184,147,255,.48),transparent 36%),
    radial-gradient(circle at 96% 78%,rgba(105,214,255,.24),transparent 31%),
    linear-gradient(118deg,#3842b7 0%,#5865f2 38%,#724cd4 72%,#404eed 100%)!important;
  box-shadow:0 24px 56px rgba(66,55,175,.3),inset 0 1px 0 rgba(255,255,255,.3),inset 0 -1px 0 rgba(25,28,112,.24)!important;
}
body.news-tool-page.light-theme .news-community::before {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:
    linear-gradient(105deg,rgba(255,255,255,.14),transparent 26%,transparent 68%,rgba(255,255,255,.09)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 15px)!important;
  opacity:.72!important;
}
body.news-tool-page.light-theme .news-community::after {
  width:420px!important;
  height:420px!important;
  right:-120px!important;
  top:-190px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(255,255,255,.16),rgba(184,147,255,.08) 42%,transparent 68%)!important;
  opacity:1!important;
}
body.news-tool-page.light-theme .news-community :is(h2,h3,p) { color:#fff!important; }
body.news-tool-page.light-theme .news-community p { color:rgba(255,255,255,.78)!important; }
body.news-tool-page.light-theme .news-discord-logo {
  border-color:rgba(255,255,255,.4)!important;
  color:#fff!important;
  background:
    radial-gradient(circle at 28% 18%,rgba(255,255,255,.34),transparent 34%),
    linear-gradient(145deg,#8791ff,#5865f2 48%,#3b45bd)!important;
  box-shadow:0 14px 31px rgba(29,31,111,.38),inset 0 1px 0 rgba(255,255,255,.42),inset 0 -1px 0 rgba(30,32,120,.28)!important;
}
body.news-tool-page.light-theme .news-discord-logo img { filter:brightness(0) invert(1)!important;opacity:1!important; }
body.news-tool-page.light-theme .news-community .news-kicker { color:rgba(255,255,255,.76)!important; }
body.news-tool-page.light-theme .news-community>a {
  border-color:rgba(255,255,255,.42)!important;
  color:#4752c4!important;
  background:#fff!important;
  box-shadow:0 11px 26px rgba(35,39,112,.25),inset 0 1px 0 #fff!important;
}
body.news-tool-page.tool-periwinkle-page.light-theme .news-community>a {
  border-color:rgba(255,255,255,.48)!important;
  color:#343eb5!important;
  background:
    radial-gradient(circle at 18% 0,rgba(255,255,255,.95),transparent 42%),
    linear-gradient(135deg,#fff 0%,#e9e7ff 48%,#cbd1ff 100%)!important;
  box-shadow:0 13px 30px rgba(29,31,111,.3),inset 0 1px 0 #fff,inset 0 -1px 0 rgba(79,91,213,.15)!important;
}
body.news-tool-page.light-theme .news-community>a:hover {
  border-color:#fff!important;
  color:#313bb2!important;
  background:#f2f3ff!important;
  box-shadow:0 15px 31px rgba(35,39,112,.31),inset 0 1px 0 #fff!important;
  transform:translateY(-2px)!important;
}
body.news-tool-page.tool-periwinkle-page.light-theme .news-community>a:hover {
  border-color:#fff!important;
  color:#2933a3!important;
  background:
    radial-gradient(circle at 82% 100%,rgba(184,192,255,.7),transparent 46%),
    linear-gradient(135deg,#fff,#eee9ff 52%,#d6d9ff)!important;
  box-shadow:0 18px 38px rgba(29,31,111,.38),inset 0 1px 0 #fff!important;
}
