/* NEET DREAMERS - News & Update pages: Layout 2 (purple + pink) colours and a readable Night mode.  Layout 1 (no .nd-l2) is not touched by the first block. */
html.nd-l2{--navy:#2F104B;--teal:#B02A74;--text:#2B2233;--muted:#6B5B7A;--bg:#FDF4F5;--card:#fff;--line:#EADCF0}
html.nd-l2 .tag{background:#FBE3EE;color:#9B1F5A}
html.nd-l2 .badge{background:linear-gradient(135deg,#2F104B,#4B1875 58%,#8F2A6A);color:#FFD1E3}
html.nd-l2 .cta{background:linear-gradient(135deg,#2F104B 0%,#4B1875 58%,#8F2A6A 100%)}
html.nd-l2 .cta a{color:#FFD1E3}
html.nd-l2 th{background:#F6E9F3}
html.nd-l2 .toc,html.nd-l2 table,html.nd-l2 th,html.nd-l2 td{border-color:#EADCF0}
html.nd-l2 .card{box-shadow:0 8px 22px rgba(75,24,117,.10)}
html.nd-l2 .note{background:#FFF1F6;border-left-color:#E03E78}
html.nd-l2 .nd-art a{color:var(--teal)}
/* dark (the student's Night mode, or the phone's dark setting) */
html[data-theme="dark"]{--card:#10264A;--line:#1F3A66}
html[data-theme="dark"] .toc,html[data-theme="dark"] table{background:var(--card)}
html[data-theme="dark"] th{background:#14305C;color:#fff}
html[data-theme="dark"] th,html[data-theme="dark"] td,html[data-theme="dark"] .toc{border-color:var(--line)}
html[data-theme="dark"] .brand,html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .card h2 a,html[data-theme="dark"] .nd-top a{color:#fff}
html[data-theme="dark"] .tag{background:#12385F;color:#7FE6CB}
html[data-theme="dark"] .note{background:#2A2410;color:#F3E7B8}
html.nd-l2[data-theme="dark"]{--navy:#4B1875;--teal:#FF9FC6;--text:#F3EAF8;--muted:#C9B6DA;--bg:#1B0B2E;--card:#2A1344;--line:#47235F}
html.nd-l2[data-theme="dark"] .tag{background:#4B1B63;color:#FFC0DA}
html.nd-l2[data-theme="dark"] th{background:#3B1858;color:#fff}
html.nd-l2[data-theme="dark"] .note{background:#33162F;color:#F6D3E3}
html.nd-l2[data-theme="dark"] .cta{background:linear-gradient(135deg,#3A1360,#5B1F86 58%,#9B2F72)}
@media (prefers-color-scheme: dark){
  html.nd-l2:not([data-theme="light"]):not([data-theme="dark"]){--navy:#4B1875;--teal:#FF9FC6;--text:#F3EAF8;--muted:#C9B6DA;--bg:#1B0B2E;--card:#2A1344;--line:#47235F}
  html.nd-l2:not([data-theme="light"]) .tag{background:#4B1B63;color:#FFC0DA}
  html.nd-l2:not([data-theme="light"]) .brand,html.nd-l2:not([data-theme="light"]) h1,html.nd-l2:not([data-theme="light"]) h2,html.nd-l2:not([data-theme="light"]) h3{color:#fff}
}
