/* ================================================================
   NRHS — _base.css  v3
   Design direction:
   ─ Formal, minimalist, corporate with subtle magazine warmth
   ─ #1e3a8a is the dominant identity colour throughout
   ─ Light theme: navy-tinted backgrounds, NOT white
   ─ Dark theme: deep navy, high contrast
   ─ Fonts: Lato (body) + Playfair Display (display/headings)
   ─ Base 18px, generous line-heights
   ─ 90-degree corners everywhere except input fields
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

/* ─────────────────────────────────────────────────────────────
   LIGHT THEME (default)
   The navy #1e3a8a is front and centre:
   · bg  = very pale blue-tinted off-white (not pure white)
   · nav = deep navy bar, not white
   · borders are blue-tinted
   · text is near-black navy
───────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --blue:        #1e3a8a;
  --blue-dark:   #162d6e;
  --blue-mid:    #2a4fa3;
  --blue-light:  #3b6fd4;
  --blue-pale:   #dce8fb;
  --blue-ghost:  #eef4fe;
  --blue-tint:   #f2f5fc;   /* lightest — page bg */
  --sky:         #2563eb;   /* accent */

  /* Backgrounds — all navy-tinted */
  --bg:          #f0f4fb;   /* page base — soft blue-grey, not white */
  --bg2:         #e6ecf7;   /* slightly deeper */
  --bg3:         #d8e2f4;   /* deeper still */
  --surface:     #f8faff;   /* card/surface — near-white with blue tint */
  --surface2:    #eef3fc;

  /* Borders */
  --border:      #c2d0ea;
  --border2:     #a8bce0;

  /* Text */
  --text:        #0b1836;   /* very dark navy */
  --text2:       #2d3f6b;   /* secondary — still navy-blue */
  --text3:       #5a6e99;   /* muted */

  /* Nav — navy bar in light mode too */
  --nav-bg:      #1e3a8a;
  --nav-text:    rgba(255,255,255,.85);
  --nav-text-h:  #ffffff;
  --nav-border:  rgba(255,255,255,.12);

  /* Misc */
  --hero-ov:     rgba(8,20,60,.8);
  --nav-h:       66px;

  /* Fonts */
  --fd: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --fb: 'Lato', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fc: 'Lato', ui-sans-serif, system-ui, sans-serif;   /* condensed labels use Lato 900 + tracking */
}

/* ─────────────────────────────────────────────────────────────
   DARK THEME
───────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #07101f;
    --bg2:       #0c1a30;
    --bg3:       #112240;
    --surface:   #0f1e36;
    --surface2:  #152840;
    --border:    #1c3058;
    --border2:   #243e6e;
    --text:      #e4ecfa;
    --text2:     #8daed8;
    --text3:     #4a6898;
    --nav-bg:    #0c1828;
    --nav-text:  rgba(255,255,255,.82);
    --nav-text-h:#ffffff;
    --nav-border:rgba(255,255,255,.08);
    --hero-ov:   rgba(4,10,28,.88);
    --blue-pale: #172d56;
    --blue-ghost:#0e1e3a;
    --blue-tint: #0e1e3a;
    --sky:       #4a90e2;
  }
}
[data-theme="dark"] {
  --bg:        #07101f;
  --bg2:       #0c1a30;
  --bg3:       #112240;
  --surface:   #0f1e36;
  --surface2:  #152840;
  --border:    #1c3058;
  --border2:   #243e6e;
  --text:      #e4ecfa;
  --text2:     #8daed8;
  --text3:     #4a6898;
  --nav-bg:    #0c1828;
  --nav-text:  rgba(255,255,255,.82);
  --nav-text-h:#ffffff;
  --nav-border:rgba(255,255,255,.08);
  --hero-ov:   rgba(4,10,28,.88);
  --blue-pale: #172d56;
  --blue-ghost:#0e1e3a;
  --blue-tint: #0e1e3a;
  --sky:       #4a90e2;
}
[data-theme="light"] {
  --bg:          #f0f4fb;
  --bg2:         #e6ecf7;
  --bg3:         #d8e2f4;
  --surface:     #f8faff;
  --surface2:    #eef3fc;
  --border:      #c2d0ea;
  --border2:     #a8bce0;
  --text:        #0b1836;
  --text2:       #2d3f6b;
  --text3:       #5a6e99;
  --nav-bg:      #1e3a8a;
  --nav-text:    rgba(255,255,255,.85);
  --nav-text-h:  #ffffff;
  --nav-border:  rgba(255,255,255,.12);
  --hero-ov:     rgba(8,20,60,.8);
  --blue-pale:   #dce8fb;
  --blue-ghost:  #eef4fe;
  --blue-tint:   #f2f5fc;
  --sky:         #2563eb;
}

/* ─────────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;   /* up from 17 */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  line-height: 1.76;
  overflow-x: hidden;
  transition: background .35s, color .35s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─────────────────────────────────────────────────────────────
   TAGS / BADGES
   All sharp corners. Navy tones dominate.
───────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: .2rem .6rem;
  font-family: var(--fc);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  /* no border-radius */
}
.t-default { background: var(--blue-pale);  color: var(--blue); }
.t-on      { background: #d1fae5;           color: #065f46; }
.t-done    { background: #dbeafe;           color: #1e40af; }
.t-up      { background: #fef3c7;           color: #92400e; }
.t-pub     { background: #ede9fe;           color: #4c1d95; }
.t-rep     { background: var(--blue-pale);  color: var(--blue); }
.t-press   { background: #fce7f3;           color: #9d174d; }
.t-evt     { background: #fef9c3;           color: #78350f; }

[data-theme="dark"] .t-on    { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .t-done  { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .t-up    { background: #78350f; color: #fde68a; }
[data-theme="dark"] .t-pub   { background: #3b0764; color: #d8b4fe; }
[data-theme="dark"] .t-rep   { background: #172d56; color: #93c5fd; }
[data-theme="dark"] .t-press { background: #831843; color: #fbcfe8; }
[data-theme="dark"] .t-evt   { background: #713f12; color: #fde68a; }

/* ─────────────────────────────────────────────────────────────
   ARROW LINKS  →
───────────────────────────────────────────────────────────── */
.lk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fc);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  transition: gap .2s, color .2s;
  margin-top: .85rem;
}
.lk::after { content: '→'; font-weight: 400; }
.lk:hover  { gap: 10px; color: var(--blue-mid); }
.lk-white  { color: rgba(255,255,255,.8); }
.lk-white:hover { color: #fff; }
.lk-sky    { color: #93c5fd; }
.lk-sky:hover { color: #bfdbfe; }
.lk-inline { margin-top: 0; margin-left: auto; }

/* ─────────────────────────────────────────────────────────────
   EYEBROW LABELS
───────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--fc);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--blue);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--blue); flex-shrink: 0; }
.eyebrow-white { color: rgba(255,255,255,.55); }
.eyebrow-white::before { background: rgba(255,255,255,.4); }

/* Blue rule underline */
.brule { width: 32px; height: 3px; background: var(--blue); margin-bottom: 1.25rem; flex-shrink: 0; }
.brule-white { background: rgba(255,255,255,.35); }

/* ─────────────────────────────────────────────────────────────
   BOX / TILE SYSTEM
   Magazine grid of flush-tiling panels.
───────────────────────────────────────────────────────────── */
.bx { position: relative; overflow: hidden; background: var(--surface); transition: background .35s; }
.bx-in { padding: 2.25rem; display: flex; flex-direction: column; height: 100%; }
.bx-navy { background: var(--blue) !important; }
.bx-deep { background: var(--blue-dark) !important; }
.bx-alt  { background: var(--bg2) !important; }
.bx-alt2 { background: var(--bg3) !important; }

/* Headings inside boxes */
.bh1 {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}
.bh2 {
  font-family: var(--fd);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin-bottom: .65rem;
}
.bh3 {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .45rem;
}
.bp     { font-size: .95rem; color: var(--text2); line-height: 1.78; }
.bp-sm  { font-size: .88rem; color: var(--text2); line-height: 1.74; }
.bm     { font-size: .72rem; color: var(--text3); margin-top: auto; padding-top: .85rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* Navy box overrides */
.bx-navy .bh1, .bx-navy .bh2, .bx-navy .bh3 { color: #fff; }
.bx-navy .bp,  .bx-navy .bp-sm              { color: rgba(255,255,255,.72); }
.bx-navy .bm                                 { color: rgba(255,255,255,.45); }
.bx-navy .eyebrow                            { color: rgba(255,255,255,.5); }
.bx-navy .eyebrow::before                    { background: rgba(255,255,255,.35); }

/* Photo overlay card */
.ph-bx { position: relative; overflow: hidden; }
.ph-bx img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; position: absolute; inset: 0;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.ph-bx:hover img { transform: scale(1.04); }
.ph-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,15,40,.93) 0%, rgba(5,15,40,.28) 52%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.25rem; z-index: 2;
}

/* Image-top card */
.bimg { overflow: hidden; flex-shrink: 0; }
.bimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.bx:hover .bimg img { transform: scale(1.04); }

/* ─────────────────────────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────────────────────────── */
.prog-wrap { margin-top: .65rem; }
.prog-hd   { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text3); margin-bottom: .32rem; font-weight: 700; letter-spacing: .04em; }
.prog      { height: 3px; background: var(--bg3); }
.pf        { height: 100%; background: var(--blue); }

/* ─────────────────────────────────────────────────────────────
   NAVY STAT BLOCK (inline)
───────────────────────────────────────────────────────────── */
.si   { display: flex; flex-direction: column; gap: 1.35rem; }
.si-i { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem; }
.si-n { font-family: var(--fd); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .2rem; }
.si-l { font-size: .72rem; color: rgba(255,255,255,.5); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ─────────────────────────────────────────────────────────────
   PUBLICATION LIST ROWS
───────────────────────────────────────────────────────────── */
.pub-r  { display: flex; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; transition: background .15s; }
.pub-r:last-child { border-bottom: none; }
.pub-r:hover { background: var(--blue-ghost); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; }
.pub-yr { font-family: var(--fd); font-size: 1.05rem; font-weight: 700; color: var(--blue); min-width: 50px; flex-shrink: 0; padding-top: 2px; }
.pub-t  { font-family: var(--fd); font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.38; margin: .32rem 0 .2rem; }
.pub-a  { font-size: .76rem; color: var(--text3); }
.pub-j  { font-size: .76rem; color: var(--blue); font-style: italic; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   AUTHOR CHIP
───────────────────────────────────────────────────────────── */
.achip { display: flex; align-items: center; gap: 8px; }
.aav   { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--fd); font-size: .6rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.aname { font-size: .78rem; font-weight: 700; color: var(--text2); }
.arole { font-size: .68rem; color: var(--text3); }

/* ─────────────────────────────────────────────────────────────
   QUOTE SECTION
───────────────────────────────────────────────────────────── */
.qt-row {
  background: var(--blue);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.qt-row::before {
  content: '"';
  font-family: var(--fd);
  font-size: 20rem;
  line-height: .8;
  color: rgba(255,255,255,.04);
  position: absolute;
  top: -2rem; left: .5rem;
  pointer-events: none;
  font-weight: 900;
}
.qt-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.qt-txt  {
  font-family: var(--fd);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.qt-cite { font-size: .75rem; color: rgba(255,255,255,.5); font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }

/* ─────────────────────────────────────────────────────────────
   SECTION BANNER (rule with label)
───────────────────────────────────────────────────────────── */
.sec-banner { background: var(--blue); display: flex; align-items: center; border-top: 1px solid var(--border); }
.sec-banner-lbl {
  font-family: var(--fc); font-size: .7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .22em; color: #fff;
  padding: .85rem 2rem; flex-shrink: 0; border-right: 1px solid rgba(255,255,255,.12);
}
.sec-banner-line { flex: 1; }
.sec-banner-link {
  font-family: var(--fc); font-size: .7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65);
  padding: .85rem 2rem; display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s, gap .2s;
}
.sec-banner-link::after { content: '→'; }
.sec-banner-link:hover { color: #fff; gap: 9px; }

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.rv.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  background: var(--blue); color: #fff;
  padding: .95rem 1.6rem;
  font-family: var(--fb); font-size: .9rem; font-weight: 700;
  box-shadow: 0 8px 32px rgba(14,30,90,.35);
  transform: translateY(80px); opacity: 0;
  transition: all .32s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999; max-width: 340px; pointer-events: none;
  letter-spacing: .01em;
}
#toast.show { transform: none; opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  html  { font-size: 16px; }
}
