/* ═══════════════════════════════════════════════════════════
   thenewchandigarh.com: site-nc.css (loaded only on nc, after site.css,
   via Site::cfg('css_extra')). Restyles MA components to the nc palette.
   Text contrast (WCAG): every text/background pair used here is >= 4.5:1.
   #149668 (mid), #B7791F (amber) and #2B7A8C (lake) are below 4.5 as text
   on the light background, so they are used only for fills/borders.
═══════════════════════════════════════════════════════════ */

/* 2026-11-18: self-hosted (was a Google Fonts @import); weight 700 for the nc wordmark */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plex-sans-700-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF, U+FFFD; }

:root {
  --nc:        #0F7A52;
  --nc-d:      #0A5C3E;
  --nc-mid:    #149668;
  --nc-l:      #C0ECD8;
  --nc-tint:   #EAF6F0;
  --nc-lake:   #2B7A8C;
  --nc-amber:  #B7791F;
  --nc-amber-ink: #8A5A12;

  --bg:      #F5F2EB;
  --bg2:     #EAF6F0;
  --bg3:     #C0ECD8;
  --ink:     #14211A;
  --accent-on-dark: #C0ECD8;   /* 2026-11-18: accent TEXT on dark backgrounds (MA uses #e8520d) */
  --accent:  #0F7A52;   /* 4.78:1 on --bg, white on it 5.35:1 */
  --accent2: #0A5C3E;   /* hover: 7.19:1 on --bg, white on it 8.04:1 */
  --green:   #0F7A52;
  --blue:    #0A5C3E;   /* default link colour */
}

/* ── Top status bar (dark ink) ───────────────────── */
html body #topbar { background: var(--ink); }
html body #topbar span[style*="#6b6760"], html body #topbar span[style*="#8a857c"] { color: #A09A90 !important; }   /* MA grey became #8a857c on 2026-11-18 */   /* 5.96:1 on #14211A */

/* ── Header: green bar with the lettering wordmark ── */
html body #site-header {
  background: var(--nc-d);
  border-bottom: 1px solid var(--nc);
  --accent: #C0ECD8;    /* "Sign in" and hover accents on the bar: 6.21:1 */
}
#nc-wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  color: #fff; font-family: var(--sans); line-height: 1; padding: 4px 2px;
}
#nc-wordmark .nc-wm-the  { font-weight: 700; font-size: 10px; letter-spacing: .32em; margin-left: .32em; }
#nc-wordmark .nc-wm-name { font-weight: 700; font-size: 25px; letter-spacing: -.005em; margin-top: 4px; white-space: nowrap; }
.nc-wm-accent            { color: var(--nc-l); }
#nc-wordmark .nc-wm-rule { display: block; width: 62%; height: 2px; background: var(--nc-l); margin: 7px 0 6px; }
#nc-wordmark .nc-wm-tag  { font-family: var(--mono); font-size: 8.5px; font-weight: 500; letter-spacing: .2em; color: #fff; white-space: nowrap; }
#nc-wordmark .nc-wm-dot  { color: var(--nc-l); }
html body #site-subtitle { color: var(--nc-l); }
html body #site-subtitle .sub-line { color: var(--nc-tint); }
html body #lang-switcher .lang-btn { border-color: rgba(255,255,255,.35); color: var(--nc-tint); background: transparent; }
html body #lang-switcher .lang-btn.active { background: var(--nc-l); border-color: var(--nc-l); color: var(--nc-d); }
html body #lang-switcher .lang-btn:hover:not(.active) { border-color: var(--nc-l); color: #fff; }
html body #header-controls a[href="/auth/me"] { color: var(--nc-tint) !important; border-color: rgba(255,255,255,.35) !important; }
html body #header-controls a[href="/admin"]   { color: var(--nc-tint) !important; }
html body #nav-toggle { border-color: rgba(255,255,255,.35); color: #fff; }
@media (max-width: 640px) {
  #nc-wordmark .nc-wm-the  { font-size: 8px; }
  #nc-wordmark .nc-wm-name { font-size: 19px; margin-top: 3px; }
  #nc-wordmark .nc-wm-rule { margin: 5px 0 4px; }
  #nc-wordmark .nc-wm-tag  { font-size: 7px; letter-spacing: .16em; }
}

/* ── Ticker ──────────────────────────────────────── */
html body #ticker { background: var(--nc); border-bottom: 2px solid var(--nc-d); color: #fff; }   /* 5.35:1 */
html body #ticker .tick-item .pocket { color: #fff; font-weight: 700; }
html body #ticker a.tick-item:hover { color: #fff; text-decoration: underline; }

/* ── Main nav (light tint bar) ───────────────────── */
html body #site-nav { background: var(--nc-tint); }
html body .nav-link:hover,
html body .nav-link:active { background: var(--nc-l); color: var(--nc-d); }                      /* 6.21:1 */
html body .nav-link.active { background: var(--nc); color: #fff; }                                 /* 5.35:1 */
html body .nav-dd-panel { border-top-color: var(--nc); }
@media (max-width: 900px) {
  html body #site-nav { background: var(--nc-d) !important; }
  html body #site-nav .nav-link { color: var(--nc-tint) !important; border-bottom-color: rgba(255,255,255,.12) !important; }   /* 7.25:1 */
  html body #site-nav .nav-link.active { color: var(--nc-l) !important; border-left-color: var(--nc-l) !important; }
  html body #site-nav .nav-link:hover { background: var(--nc) !important; color: #fff !important; }
  html body .nav-dd-panel { background: #084A32 !important; }
  html body .nav-dd-panel a { color: var(--nc-tint) !important; border-bottom-color: rgba(255,255,255,.10) !important; }
  html body .nav-dd-panel a:hover { color: #fff !important; background: var(--nc) !important; }
}

/* ── Footer (dark ink, scoped light tokens) ──────── */
html body #site-footer {
  background: var(--ink) !important;
  border-top: 3px solid var(--nc) !important;
  --accent: #C0ECD8;   /* column titles: 12.86:1 on #14211A */
  --ink2:   #F5F2EB;
  --ink3:   #A09A90;   /* 5.96:1 */
  --rule:   #3A4A40;
}
html body #site-footer a,
html body #site-footer #footer-links a { color: var(--ink3) !important; }
html body #site-footer a:hover,
html body #site-footer #footer-links a:hover { color: var(--nc-l) !important; }
html body #site-footer #footer-links { color: var(--ink3); }
html body #site-footer div[style*="#2a2620"] { border-color: #2C3A31 !important; }
.nc-wordmark-sm { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; font-family: var(--sans); padding: 6px 4px; }
.nc-wordmark-sm .nc-wm-the  { font-weight: 700; font-size: 8px; letter-spacing: .32em; margin-left: .32em; }
.nc-wordmark-sm .nc-wm-name { font-weight: 700; font-size: 17px; margin-top: 3px; white-space: nowrap; }

/* ── PWA banner and mobile bottom bar ────────────── */
html body #pwa-banner { background: var(--ink); border-top-color: var(--nc); --accent: #C0ECD8; --ink3: #A09A90; }
html body #pwa-install-btn { background: var(--nc); color: #fff; }
html body #mobile-nav { background: var(--ink); border-top-color: var(--nc); }
html body .mob-nav-item { color: var(--nc-tint); }                                                /* 15:1 */
html body .mob-nav-item:hover,
html body .mob-nav-item.active { color: #fff; background: var(--nc-d); }                           /* 8.04:1 */

/* ── Urgent notices: amber, not red (2026-11-13). Red stays for real warnings and errors. ── */
html body .notice-card.nc-high { border-left-color: var(--nc-amber); }
html body .badge.b-high,
html body .nb-urgent-high { color: var(--nc-amber-ink); border-color: var(--nc-amber); background: #FBF3E6; }   /* text 6.07:1 on #FBF3E6 */
html body .notice-card.urg-high { border-left-color: var(--nc-amber); background: #FBF3E6; }   /* /news Authority Watch */
