/* Nexus Desk — public news pages. Scoped so other pages stay as they are. */

.nx-desk,
.nx-story {
  --ink: #142033;
  --muted: #5c6b80;
  --line: #d7e0ea;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --navy: #0C2C55;
  --gold: #c4a15a;
  background: var(--paper);
  color: var(--ink);
  padding: 28px 0 72px;
}
.nx-desk h1, .nx-desk h2, .nx-desk h3,
.nx-story h1, .nx-story .nx-item-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nx-mast {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 18px 32px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 28px;
}
.nx-mast-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.nx-mast-kicker i { color: var(--gold); }
.nx-mast h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  margin: 0 0 8px;
  font-weight: 700;
}
.nx-mast p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.nx-search { position: relative; }
.nx-search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #8aa; font-size: 13px;
}
.nx-search input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 4px;
  padding: 0 14px 0 38px; font-size: 14px; background: var(--wash); color: var(--ink);
}
.nx-search input:focus { outline: 2px solid rgba(12,44,85,.25); background: #fff; }
.nx-front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.nx-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.nx-lead:hover .nx-lead-title { color: var(--navy); }
.nx-photo {
  background: var(--wash);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}
.nx-photo img { width: 100%; height: auto; max-height: 440px; object-fit: contain; display: block; }
.nx-photo-empty { color: #8aa; font-size: 28px; }
.nx-kicker {
  display: inline-block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.nx-lead-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin: 0 0 12px; font-weight: 700; }
.nx-deck { font-size: 17px; line-height: 1.55; color: #314155; margin: 0 0 16px; }
.nx-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.nx-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; flex: 0 0 42px;
}
.nx-byline-name { font-weight: 800; font-size: 14px; color: var(--ink); display: block; line-height: 1.2; }
.nx-byline-role { font-size: 12px; color: var(--muted); }
.nx-byline-meta { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.45; }
.nx-list { margin-top: 8px; }
.nx-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.nx-item:hover .nx-item-title { color: var(--navy); }
.nx-thumb {
  width: 112px; height: 84px; background: var(--wash); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nx-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.nx-item-title { font-size: 20px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.nx-item p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.nx-meta { font-size: 12px; color: var(--muted); }
.nx-meta strong { color: var(--ink); font-weight: 700; }
.nx-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.nx-rail-box { border-top: 3px solid var(--navy); padding-top: 12px; }
.nx-rail-box h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: 800;
}
.nx-trend { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.nx-trend b { font-family: Georgia, serif; font-size: 20px; color: var(--navy); line-height: 1; }
.nx-trend span { font-size: 14px; font-weight: 700; line-height: 1.35; }
.nx-trend small, .nx-also small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
.nx-also {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; font-size: 14px; font-weight: 700; line-height: 1.35;
}
.nx-also:hover { color: var(--navy); }
.nx-note { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.nx-note a { color: var(--navy); font-weight: 700; }
.nx-pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.nx-pager a, .nx-pager span {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 700; background: #fff;
}
.nx-pager .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.nx-result { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.nx-result a { color: var(--navy); font-weight: 700; margin-left: 8px; }

/* Article */
.nx-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}
.nx-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.nx-crumbs a { color: var(--navy); text-decoration: none; font-weight: 700; }
.nx-story h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 0 0 14px; font-weight: 700; }
.nx-story .nx-byline { margin: 4px 0 22px; }
.nx-story-figure { margin: 0 0 22px; background: var(--wash); border: 1px solid var(--line); }
.nx-story-figure img { width: 100%; height: auto; display: block; object-fit: contain; }
.nx-story-figure figcaption { font-size: 12px; color: var(--muted); padding: 8px 12px 10px; }
.nx-prose {
  font-size: 18px;
  line-height: 1.75;
  color: #1b2838;
  max-width: 68ch;
}
.nx-prose > p:first-of-type {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .01em;
}
.nx-prose p { margin: 0 0 1.05em; }
.nx-prose h2, .nx-prose h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.nx-prose h2 {
  font-size: 1.45rem;
  margin: 1.6em 0 .55em;
  padding-top: .9em;
  border-top: 1px solid var(--line);
}
.nx-prose h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.nx-prose ul, .nx-prose ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.nx-prose li { margin: .35em 0; }
.nx-prose a { color: var(--navy); }
.nx-prose figure { margin: 1.4em 0; }
.nx-prose img { max-width: 100%; height: auto !important; }
.nx-prose figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.nx-prose blockquote {
  margin: 1.2em 0; padding: .2em 0 .2em 16px;
  border-left: 3px solid var(--navy); color: #243246;
}
.nx-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.nx-topics a, .nx-topics span {
  border: 1px solid var(--line); color: var(--navy); text-decoration: none;
  font-size: 12px; font-weight: 700; padding: 5px 10px; background: var(--wash);
}
.nx-share { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.nx-share a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 8px 12px; border: 1px solid var(--line); color: var(--ink); background: #fff;
}
.nx-author-end {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 28px; padding: 16px 0; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line);
}
.nx-author-end p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 991.98px) {
  .nx-mast, .nx-front, .nx-lead, .nx-story-grid { grid-template-columns: 1fr; }
  .nx-rail { position: static; }
  .nx-byline-meta { margin-left: 0; text-align: left; }
  .nx-byline { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  .nx-item { grid-template-columns: 84px minmax(0, 1fr); }
  .nx-thumb { width: 84px; height: 68px; }
  .nx-prose { font-size: 16.5px; }
  .nx-lead-title, .nx-story h1 { font-size: 30px; }
}

[data-mdb-theme="dark"] .nx-desk,
[data-mdb-theme="dark"] .nx-story {
  --ink: #e8eef7;
  --muted: #b7c3d4;
  --line: #2a3a52;
  --paper: #0b1220;
  --wash: #121b2c;
  --navy: #9ec0ee;
  background: #0b1220;
  color: #e8eef7;
}
[data-mdb-theme="dark"] .nx-deck,
[data-mdb-theme="dark"] .nx-prose { color: #d5deea; }
[data-mdb-theme="dark"] .nx-search input,
[data-mdb-theme="dark"] .nx-share a,
[data-mdb-theme="dark"] .nx-pager a { background: #121b2c; color: #e8eef7; border-color: #2a3a52; }
[data-mdb-theme="dark"] .nx-avatar { background: #14345f; }

.nx-desk .nx-deck,
.nx-story .nx-deck { color: #314155; }
.nx-desk .nx-mast p,
.nx-desk .nx-note,
.nx-story .nx-note,
.nx-desk .nx-meta,
.nx-item p,
.nx-byline-role,
.nx-byline-meta,
.nx-story-figure figcaption { color: var(--muted); }
.nx-prose p { color: #1b2838; }
[data-mdb-theme="dark"] .nx-prose p,
[data-mdb-theme="dark"] .nx-desk .nx-deck,
[data-mdb-theme="dark"] .nx-story .nx-deck { color: #d5deea !important; }
