/* News shell: article-style menu bar + blue-grey dark mode.
   Light-mode content rules stay in each page. This file only paints the
   shared header, and dark colours under html.dark. */

.omg-b2 .site-head{
  --bg:hsl(45,29%,97%);
  --fg:hsl(120,4%,10%);
  --card:#fff;
  --primary:hsl(139,23%,36%);
  --accent:#f59e0b;
  --border:hsl(139,10%,85%);
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:400;letter-spacing:0;color:var(--fg);
}
.omg-b2 .site-head .wrap{
  max-width:1200px;margin:0 auto;padding:0 20px;
  display:flex;align-items:center;gap:26px;height:64px;
}
.omg-b2 .site-head .brand{
  display:flex;align-items:center;gap:9px;min-width:0;
  font-weight:800;font-size:1.05rem;color:var(--fg);
  text-decoration:none;white-space:nowrap;
}
.omg-b2 .site-head .brand svg{color:var(--accent);flex:none}
/* Header badge from the 3 Dec news shell. White letters kept.
   Plate deepened from #C95A12 (4.24:1) to #C25212 (4.66:1). */
.omg-b2 .site-head .brand .logo{
  width:30px;height:30px;min-width:30px;min-height:30px;flex:0 0 30px;
  box-sizing:border-box;border-radius:3px;background:#C25212;color:#fff;
  display:grid;place-items:center;
  font:600 12px/1 "Plex Mono",monospace;letter-spacing:.02em;
}
html.dark .omg-b2 .site-head .brand .logo{background:#C25212;color:#fff}
.omg-b2 .site-head .nav{
  margin-left:auto;display:flex;gap:22px;font-size:.92rem;align-items:center;
}
.omg-b2 .site-head .nav a{
  color:var(--fg);opacity:1;text-decoration:none;white-space:nowrap;
  overflow-wrap:normal;word-break:normal;
}
.omg-b2 .site-head .nav a:hover{text-decoration:underline;text-underline-offset:4px;color:var(--fg)}
html.dark .omg-b2 .site-head .nav a:hover{color:var(--primary)}
.omg-b2 .site-head .nav a[aria-current="page"],
.omg-b2 .site-head .nav-panel a[aria-current="page"]{
  color:var(--fg);font-weight:800;
  text-decoration:underline;text-underline-offset:4px;
}
.omg-b2 .site-head .theme-btn{
  margin-left:6px;border:1px solid var(--border);background:var(--card);color:var(--fg);
  width:36px;height:36px;border-radius:10px;cursor:pointer;display:grid;place-items:center;
  flex:none;overflow:hidden;padding:0;font-size:0;line-height:0;
}
.omg-b2 .site-head .theme-btn:hover{background:var(--card);color:var(--fg)}
.omg-b2 .site-head .theme-btn svg{display:block}
.omg-b2 .site-head .nav-menu{display:none;margin-left:auto;position:relative}
.omg-b2 .site-head .nav-menu summary{
  list-style:none;cursor:pointer;width:36px;height:36px;border-radius:10px;
  border:1px solid var(--border);background:var(--card);color:var(--fg);
  display:grid;place-items:center;padding:0;
}
.omg-b2 .site-head .nav-menu summary::-webkit-details-marker{display:none}
.omg-b2 .site-head .nav-burger,
.omg-b2 .site-head .nav-burger::before,
.omg-b2 .site-head .nav-burger::after{
  display:block;width:16px;height:2px;background:currentColor;border-radius:1px;position:relative;
}
.omg-b2 .site-head .nav-burger::before,
.omg-b2 .site-head .nav-burger::after{content:"";position:absolute;left:0}
.omg-b2 .site-head .nav-burger::before{top:-5px}
.omg-b2 .site-head .nav-burger::after{top:5px}
.omg-b2 .site-head .nav-panel{
  position:absolute;right:0;top:calc(100% + 8px);z-index:70;
  width:min(280px,calc(100vw - 24px));
  background:var(--card);color:var(--fg);
  border:1px solid var(--border);border-radius:12px;
  box-shadow:0 12px 32px rgba(18,23,31,.18);
  padding:8px;display:grid;
}
.omg-b2 .site-head .nav-panel a{
  color:var(--fg);text-decoration:none;padding:10px 12px;min-height:44px;
  display:flex;align-items:center;border-radius:8px;font-size:.95rem;font-weight:600;
}
.omg-b2 .site-head .nav-panel a:hover{background:color-mix(in srgb,var(--primary) 12%,transparent);text-decoration:none}
@media(max-width:980px){
  .omg-b2 .site-head .nav{display:none}
  .omg-b2 .site-head .nav-menu{display:block}
  .omg-b2 .site-head .wrap{gap:10px;padding:0 12px}
  .omg-b2 .site-head .theme-btn{margin-left:0}
}

/* Blue-grey dark mode. Page #12171f, cards and panels #1a2029, amber kept. */
html.dark .omg-b2{
  --ink:#e5ebf0;
  --muted:#b7c2ce;
  --steel:#92ceb0;
  --red:#f6968e;
  --paper:#1a2029;
  --table:#1a2029;
  --line:#3a4350;
  --orange-bg:#302717;
  --pale:#2a3340;
  background-color:#12171f;
  color:#e5ebf0;
  background-image:linear-gradient(rgba(229,235,240,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(229,235,240,.05) 1px,transparent 1px);
}
html.dark .omg-b2 .site-head{
  --bg:#12171f;--fg:#e5ebf0;--card:#1a2029;--primary:#92ceb0;--accent:#f5ab3d;--border:#3a4350;
}
html.dark .omg-b2 h1,
html.dark .omg-b2 h2,
html.dark .omg-b2 h3,
html.dark .omg-b2 h4,
html.dark .omg-b2 .prose h2,
html.dark .omg-b2 .prose h3,
html.dark .omg-b2 .prose strong,
html.dark .omg-b2 .ncard h2,
html.dark .omg-b2 .ln-card h3,
html.dark .omg-b2 .gcard h3,
html.dark .omg-b2 .toc a,
html.dark .omg-b2 .ogm-toc a,
html.dark .omg-b2 .ogm-toc summary,
html.dark .omg-b2 .tb-strip,
html.dark .omg-b2 .art-copy .tbf,
html.dark .omg-b2 .out b,
html.dark .omg-b2 .stats b,
html.dark .omg-b2 .gname,
html.dark .omg-b2 .ncard .dek{
  color:#e5ebf0;
}
html.dark .omg-b2 .sf,
html.dark .omg-b2 .prose,
html.dark .omg-b2 .toc,
html.dark .omg-b2 .ogm-summary,
html.dark .omg-b2 .ogm-toc,
html.dark .omg-b2 .next,
html.dark .omg-b2 .author-box,
html.dark .omg-b2 .gear,
html.dark .omg-b2 .go-deeper,
html.dark .omg-b2 .gcard,
html.dark .omg-b2 .ncard,
html.dark .omg-b2 .ln-card,
html.dark .omg-b2 .latest-news,
html.dark .omg-b2 .card,
html.dark .omg-b2 .stats,
html.dark .omg-b2 .sheet,
html.dark .omg-b2 .tblock,
html.dark .omg-b2 footer,
html.dark .omg-b2 .art-copy .tbf{
  background:#1a2029;
  color:#e5ebf0;
  border-color:#6d7d90;
}
html.dark .omg-b2 .ogm-summary{border-left-color:#f5ab3d}
html.dark .omg-b2 .prose h2{border-top-color:#6d7d90}
html.dark .omg-b2 .prose h2 .no{background:#C95A12;color:#fff}
html.dark .omg-b2 .kicker,
html.dark .omg-b2 .sub,
html.dark .omg-b2 .byline,
html.dark .omg-b2 .fine,
html.dark .omg-b2 .crumbs,
html.dark .omg-b2 .gwhy,
html.dark .omg-b2 .gear-lede,
html.dark .omg-b2 .ln-card .when,
html.dark .omg-b2 .prose h2[id^=sources]+ol{color:#b7c2ce}
html.dark .omg-b2 .checked,
html.dark .omg-b2 .art-copy .tbf span:last-child,
html.dark .omg-b2 .ft .tbf span:last-child,
html.dark .omg-b2 figcaption .mono,
html.dark .omg-b2 .card .no,
html.dark .omg-b2 .toc a::before,
html.dark .omg-b2 .table-scroll td::before,
html.dark .omg-b2 .sch td.mono{color:#f6968e}
html.dark .omg-b2 a{color:#92ceb0}
html.dark .omg-b2 .prose a.button,
html.dark .omg-b2 .gcard .button,
html.dark .omg-b2 a.button{color:#fff;background:#163F54}
html.dark .omg-b2 a.button:hover,
html.dark .omg-b2 .gcard .button:hover{background:#0f2f40;color:#fff}
html.dark .omg-b2 .button.ghost{background:transparent;color:#e5ebf0;border-color:#6d7d90}
html.dark .omg-b2 .button.ghost:hover{background:#1a2029;color:#e5ebf0}
html.dark .omg-b2 a.gcard,
html.dark .omg-b2 a.ncard{color:#e5ebf0}
html.dark .omg-b2 .gcta,
html.dark .omg-b2 .ncard:hover h2,
html.dark .omg-b2 .ln-card:hover h3,
html.dark .omg-b2 .latest-news .ln-head a,
html.dark .omg-b2 h1 em,
html.dark .omg-b2 h2 em{color:#f5ab3d}
html.dark .omg-b2 .disc,
html.dark .omg-b2 .gear-disc.top{
  background:#302717;color:#e5ebf0;border-left-color:#f5ab3d;
}
/* Hero column stretches to the copy. Spare space under the caption is the
   card colour. A light plate sits only on diagram images and inline SVGs. */
html.dark .omg-b2 .fig{
  background:#1a2029;color:#e5ebf0;border-color:#6d7d90;
}
html.dark .omg-b2 .fig > img,
html.dark .omg-b2 .fig > svg{
  background:#FBFAF6;display:block;
}
html.dark .omg-b2 .fig figcaption,
html.dark .omg-b2 .art-img figcaption,
html.dark .omg-b2 figcaption{
  background:#1a2029;color:#b7c2ce;border-top-color:#6d7d90;
}
html.dark .omg-b2 .art-img,
html.dark .omg-b2 .art-img img,
html.dark .omg-b2 .art-img img.ogm-hero,
html.dark .omg-b2 .ncard,
html.dark .omg-b2 .ncard img{
  background:#1a2029;
}
html.dark .omg-b2 .art-img{border-color:#6d7d90}
/* Don't stretch the hero figure past the caption, or the column's
   background shows as an empty band under the caption. */
html.dark .omg-b2 .art-hero{align-items:start}
html.dark .omg-b2 .table-scroll table,
html.dark .omg-b2 .sch{background:#1a2029;color:#e5ebf0}
html.dark .omg-b2 .table-scroll td,
html.dark .omg-b2 .table-scroll tbody th,
html.dark .omg-b2 .sch td{
  background:#1a2029;color:#e5ebf0;border-color:#6d7d90;
}
html.dark .omg-b2 .table-scroll thead th,
html.dark .omg-b2 .sch th{
  background:#163F54;color:#fff;border-color:#6d7d90;
}
html.dark .omg-b2 .check li::before{background:#1a2029;border-color:#e5ebf0}
html.dark .omg-b2 input,
html.dark .omg-b2 select{background:#12171f;color:#e5ebf0;border-color:#6d7d90}
html.dark .omg-b2 .gcard img,
html.dark .omg-b2 .ncard img,
html.dark .omg-b2 .ln-card img{border-color:#6d7d90}
