/* Navallogic shared styles: header, light/dark theme. Loaded last on every page. 2026-11-28 */
:root{
  --heading:var(--navy,#0F2A4A);--surface-bg:var(--white,#FFFFFF);--link:var(--accent,#1E4D88);
  --link-hover:var(--accent-hover,#16395F);--tint:#F3F5F8;--ink-bg:var(--text,#1F2937);
  --nv-bg:#FFFFFF;--nv-text:#33414F;--nv-head:#0F2A4A;--nv-line:#E3E7EC;--nv-tint:#F3F5F8;--nv-muted:#6B7785;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --surface-bg:#0C131B;--paper:#111A24;--rule:#223040;--rule-2:#2D3D50;
  --text:#E2E8F0;--text-2:#C3CDD9;--text-3:#94A3B6;--text-4:#6E8196;
  --heading:#EEF3F9;--link:#8DB8EA;--link-hover:#B7D2F2;--tint:#182433;--ink-bg:#223142;--navy-2:#1A3352;
  --nv-bg:#0C131B;--nv-text:#C3CDD9;--nv-head:#EEF3F9;--nv-line:#223040;--nv-tint:#182433;--nv-muted:#94A3B6;
}
html[data-theme="dark"] body{background:var(--surface-bg);color:var(--text)}

/* The page's own title block must not stick or sit over the menu */
header.article-hdr{position:static;z-index:auto}

/* Site header (same on every page) */
header.site-hdr{position:sticky;top:0;z-index:50;background:var(--nv-bg);border-bottom:1px solid var(--nv-line)}
header.site-hdr .sn{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
header .sn{max-width:1200px;margin:0 auto;padding:0 24px;height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
header .sn *{box-sizing:border-box}
.sn-brand img{height:40px;width:auto;display:block}
.sn-links{display:flex;align-items:center;gap:30px;list-style:none;margin:0 0 0 auto;padding:0}
.sn-links>li{position:relative;margin:0}
.sn-links a,.sn-dd>button{font-family:inherit;font-size:15px;font-weight:500;line-height:1.2;color:var(--nv-text);text-decoration:none;background:none;border:0;cursor:pointer;padding:10px 0;display:inline-block}
.sn-links a:hover,.sn-dd>button:hover,.sn-links>li>a[aria-current=page]{color:var(--nv-head);text-decoration:none}
.sn-links>li>a[aria-current=page]{box-shadow:inset 0 -2px 0 var(--nv-head)}
.sn-dd>button::after{content:"";display:inline-block;margin-left:7px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.sn-menu{position:absolute;top:100%;left:-14px;min-width:250px;background:var(--nv-bg);border:1px solid var(--nv-line);border-radius:6px;box-shadow:0 14px 34px rgba(15,42,74,.16);padding:6px;list-style:none;margin:0;display:none;z-index:60}
.sn-dd:hover .sn-menu,.sn-dd:focus-within .sn-menu,.sn-dd.open .sn-menu{display:block}
.sn-menu li{margin:0}
.sn-menu a{display:block;padding:10px 12px;border-radius:4px;font-size:14.5px;color:var(--nv-head)}
.sn-menu a:hover{background:var(--nv-tint)}
.sn-menu small{display:block;color:var(--nv-muted);font-size:12.5px;margin-top:2px;font-weight:400}
.sn-menu .sn-all{border-top:1px solid var(--nv-line);margin-top:4px;padding-top:12px;font-size:13.5px;color:var(--nv-text)}
.sn-links a.sn-cta{background:#0F2A4A;color:#fff;padding:12px 18px;border-radius:3px;box-shadow:none}
.sn-links a.sn-cta:hover{background:#17375f;color:#fff}
:root[data-theme="dark"] .sn-links a.sn-cta{background:#2A5B97}
:root[data-theme="dark"] .sn-links a.sn-cta:hover{background:#3469AA}
.sn-toggle{display:none;flex-direction:column;gap:4px;padding:8px;background:none;border:0;cursor:pointer}
.sn-toggle span{width:22px;height:2px;background:var(--nv-head)}

/* Light/dark switch */
.sn-theme{flex:none;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;border:1px solid var(--nv-line);border-radius:50%;background:transparent;color:var(--nv-text);cursor:pointer}
.sn-theme:hover{color:var(--nv-head);border-color:var(--nv-muted)}
.sn-theme svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sn-theme .i-sun{display:none}
:root[data-theme="dark"] .sn-theme .i-sun{display:block}
:root[data-theme="dark"] .sn-theme .i-moon{display:none}

@media(max-width:900px){
 .sn-toggle{display:flex}
 .sn-theme{margin-left:auto}
 .sn-links{display:none;position:absolute;top:72px;left:0;right:0;margin:0;background:var(--nv-bg);flex-direction:column;align-items:stretch;gap:0;padding:4px 24px 20px;border-bottom:1px solid var(--nv-line);box-shadow:0 12px 24px rgba(15,42,74,.08);max-height:calc(100vh - 72px);overflow:auto}
 .sn-links.open{display:flex}
 .sn-links>li{border-bottom:1px solid var(--nv-line)}
 .sn-links>li:last-child{border-bottom:0}
 .sn-links a,.sn-dd>button{display:block;width:100%;text-align:left;padding:14px 0}
 .sn-links>li>a[aria-current=page]{box-shadow:none}
 .sn-dd>button::after{display:none}
 .sn-menu{position:static;display:block;box-shadow:none;border:0;padding:0 0 8px 12px;min-width:0}
 .sn-menu a{padding:9px 0}
 .sn-menu small{display:none}
 .sn-links a.sn-cta{text-align:center;margin-top:14px}
}

/* Dark mode: the dark logo, and pieces with fixed light colours */
:root[data-theme="dark"] .sn-brand img,:root[data-theme="dark"] img.nl-logo{content:url(https://navallogic.com/navallogic-logo-horizontal-dark.png)}
:root[data-theme="dark"] header.scrolled{background:rgba(12,19,27,.96)}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background-color:var(--paper);color:var(--text);border-color:var(--rule-2)}

/* Sample page: PDF download bar */
.nl-pdfbar{max-width:1200px;margin:16px auto 0;padding:0 24px;display:flex;justify-content:flex-end}
.nl-pdf{display:inline-flex;align-items:center;gap:8px;font:600 14px/1.2 'Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;background:#0F2A4A;color:#fff;text-decoration:none;padding:11px 16px;border-radius:3px}
.nl-pdf:hover{background:#17375f;color:#fff;text-decoration:none}
:root[data-theme="dark"] .nl-pdf{background:#2A5B97}
.nl-pdf svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Dark mode: fixed light tints on individual pages */
:root[data-theme="dark"] .hc-ex{background:#2A2312;border-color:#8A6420}
:root[data-theme="dark"]{--in:#12302A;--in-ink:#7FD1B9;--out:#1A2330;--out-ink:#94A3B6;--yet:#0C131B;--trade:#2A2312;--trade-ink:#E0B35A}
:root[data-theme="dark"] .now-s,:root[data-theme="dark"] .c-in.soon{color:#E0B35A}
:root[data-theme="dark"]{--warn:#E0B35A;--warn-bg:#2A2312;--bad:#F08A8A;--bad-bg:#34191B;--ok:#3FA88E}
:root[data-theme="dark"] .disclaimer-bar{background:#2A2312;border-bottom-color:#5A4A1E}
:root[data-theme="dark"] .hc-c26{background:#2A1E12;border-color:#5A3A1E;color:#F0B27A}
:root[data-theme="dark"] .hc-grid td.in,:root[data-theme="dark"] .price-tag.user{background:#12302A;color:#7FD1B9}
:root[data-theme="dark"] .hc-grid td.trade,:root[data-theme="dark"] .price-tag,:root[data-theme="dark"] .tag-ind{background:#2A2312;color:#E0B35A}
:root[data-theme="dark"] .note.warn{background:#211C10}
:root[data-theme="dark"] .hc-c26 b{color:#F5C08F}
:root[data-theme="dark"] .hc-btn{background:#1F7A65}
:root[data-theme="dark"] .hc-btn:hover{background:#26907A}
:root[data-theme="dark"] .hc-btn.sec{background:transparent;border-color:var(--rule-2)}
/* keep page-wide list rules out of the site header */
header.site-hdr .sn-links{flex-direction:row;padding:0}
header.site-hdr .sn-menu{flex-direction:column;padding:6px}
@media(max-width:900px){header.site-hdr .sn-links{flex-direction:column;padding:4px 24px 20px}header.site-hdr .sn-menu{padding:0 0 8px 12px}}
.sn-links a,.sn-dd>button{margin:0;letter-spacing:0;word-spacing:0;text-transform:none;-webkit-appearance:none;appearance:none;font-size:15px;font-weight:500;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
.sn-dd>button::after{box-sizing:content-box}
:root[data-theme="dark"] .hc-wrap{background:linear-gradient(180deg,transparent 0,transparent 64px,var(--paper) 64px)}

/* 29 Nov: logo back to its old size (it was 56px before 27 Nov); dark-mode notice bar */
.sn-brand img{height:56px;max-width:240px}
@media(max-width:900px){.sn-brand img{height:44px}}
:root[data-theme="dark"] .disclaimer-bar,:root[data-theme="dark"] .disclaimer-bar *{color:#F0D9A8}
