/* NineBrief public-tools shell. Canonical tokens; no customer-document styling. */
.site-brand{display:flex;align-items:center;gap:var(--nb-shell-brand-gap,16px);min-width:0;margin-right:var(--nb-shell-brand-margin-right,0)}
.site-brand-link{display:inline-flex;align-items:center;gap:var(--nb-shell-brand-link-gap,9px);min-height:var(--nb-shell-brand-link-min-height,48px);flex:0 0 auto;color:var(--nb-ink);text-decoration:none}
.site-brand-mark{width:var(--nb-shell-brand-mark-width,38px);height:var(--nb-shell-brand-mark-height,48px);flex:0 0 var(--nb-shell-brand-mark-width,38px);display:grid;place-items:center}
.site-brand-mark-image{display:block;width:var(--nb-shell-brand-image-width,37px);height:var(--nb-shell-brand-image-height,47px);object-fit:contain;border:0;background:transparent}
.site-brand-name{display:inline-flex;align-items:baseline;color:var(--nb-ink);font-size:var(--nb-shell-brand-name-size,27px);line-height:1;letter-spacing:var(--nb-shell-brand-name-tracking,-.045em);white-space:nowrap}
.site-brand-name strong,.site-brand-name em{font-size:1em;line-height:1;font-weight:var(--nb-shell-brand-name-weight,800)}
.site-brand-name strong{color:var(--nb-ink)}
.site-brand-name em{margin-left:0;color:var(--nb-green);font-style:normal}
.site-brand-context{display:flex;flex-direction:column;gap:3px;min-width:0;padding-left:var(--nb-shell-context-padding,16px);border-left:1px solid var(--nb-shell-context-border,var(--nb-border))}
.site-brand-context strong{color:var(--nb-shell-context-strong-color,var(--nb-ink));font-size:var(--nb-shell-context-strong-size,13px);font-weight:var(--nb-shell-context-strong-weight,600);line-height:1.3;white-space:var(--nb-shell-context-strong-wrap,normal)}
.site-brand-context>span{color:var(--nb-shell-context-text-color,var(--nb-muted));font-size:var(--nb-shell-context-text-size,12px);line-height:1.4}

.nb-site-header{
  --nb-shell-gutter:max(24px,calc((100% - 1200px)/2));
  --nb-shell-context-border:rgba(255,255,255,.20);
  --nb-shell-context-strong-color:var(--nb-white);
  --nb-shell-context-text-color:var(--nb-muted-light);
  position:sticky;top:0;z-index:70;min-height:76px;
  display:flex;align-items:center;gap:24px;
  padding:12px var(--nb-shell-gutter);box-sizing:border-box;
  border-bottom:1px solid rgba(255,255,255,.14);background:var(--nb-ink);
  color:var(--nb-white);font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
.nb-site-header .site-brand-link{color:var(--nb-white)}
.nb-site-header .site-brand-name strong{color:var(--nb-white)}
.nb-site-header .site-brand-context strong{color:var(--nb-white)}
.nb-site-header .nb-site-nav{margin-left:auto;display:flex;align-items:center;gap:8px;position:static}
:is(.nb-tools-menu,.nb-resources-menu){position:static}
:is(.nb-tools-menu,.nb-resources-menu)>summary{
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:0 14px;border:1px solid transparent;border-radius:10px;background:transparent;
  color:var(--nb-white);list-style:none;cursor:pointer;font:inherit;font-size:14px;font-weight:700;
  line-height:1.4;white-space:nowrap;box-sizing:border-box;
}
:is(.nb-tools-menu,.nb-resources-menu)>summary::-webkit-details-marker{display:none}
:is(.nb-tools-menu,.nb-resources-menu)>summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);flex:0 0 6px;transition:transform 140ms ease}
:is(.nb-tools-menu,.nb-resources-menu)[open]>summary{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
:is(.nb-tools-menu,.nb-resources-menu)[open]>summary::after{transform:translateY(2px) rotate(225deg)}
:is(.nb-tools-menu,.nb-resources-menu)>summary:is(:hover,:focus-visible){background:rgba(255,255,255,.08);color:var(--nb-green)}
:is(.nb-tools-menu,.nb-resources-menu)>summary:focus-visible,.nb-site-header a:focus-visible{outline:3px solid var(--nb-green);outline-offset:3px}
:is(.nb-tools-menu,.nb-resources-menu):not([open]) :is(.nb-tools-popover,.nb-resources-popover){display:none}
:is(.nb-tools-popover,.nb-resources-popover){
  position:absolute;right:var(--nb-shell-gutter);top:calc(100% + 10px);z-index:90;
  width:min(744px,calc(100vw - 48px));box-sizing:border-box;
  display:grid;gap:4px;padding:12px;border:1px solid var(--nb-border);border-radius:16px;
  background:var(--nb-white);box-shadow:0 16px 40px rgba(18,18,18,.1);
  max-height:calc(100vh - var(--nb-shell-header-height,90px) - 24px);
  max-height:calc(100dvh - var(--nb-shell-header-height,90px) - 24px);overflow:auto;overscroll-behavior:contain;
}
.nb-site-header :is(.nb-tools-popover,.nb-resources-popover) a{min-height:44px;display:flex;align-items:center;padding:12px;border-radius:10px;color:var(--nb-ink);font-size:14px;font-weight:700;line-height:1.45;text-decoration:none;box-sizing:border-box}
.nb-site-header :is(.nb-tools-popover,.nb-resources-popover) a:is(:hover,:focus-visible){background:var(--nb-surface);color:var(--nb-link-light)}
:is(.nb-tools-popover,.nb-resources-popover) a:focus-visible{outline:2px solid var(--nb-ink);outline-offset:-2px;background:var(--nb-surface)}
:is(.nb-tools-popover,.nb-resources-popover) a[aria-current="page"]{background:var(--nb-green-soft,color-mix(in srgb,var(--nb-green) 12%,transparent));box-shadow:inset 3px 0 0 var(--nb-green);}
:is(.nb-tools-popover,.nb-resources-popover).nb-tools-enhanced{display:block;padding:0}
.nb-tools-heading{margin:0;padding:22px 24px 10px;color:var(--nb-muted);font-size:12px;font-weight:600;line-height:1.5;letter-spacing:.05em;text-transform:uppercase}
.nb-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:4px 12px 18px}
:is(.nb-tools-popover,.nb-resources-popover) .nb-tool-link{align-items:flex-start;gap:14px;padding:16px 12px;min-width:0;min-height:100px}
.nb-tool-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid var(--nb-border);border-radius:10px;background:var(--nb-surface);color:var(--nb-ink)}
.nb-tool-icon[data-tool-kind] svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.nb-tool-link[aria-current="page"] .nb-tool-icon{border-color:transparent}
.nb-tool-copy{display:flex;min-width:0;flex-direction:column;gap:6px}
.nb-tool-title{font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.nb-tool-description{color:var(--nb-muted);font-size:13px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.nb-tools-bottom{display:flex;align-items:center;padding:8px 16px;border-top:1px solid var(--nb-border);background:var(--nb-surface)}
:is(.nb-tools-popover,.nb-resources-popover) .nb-tools-all{font-size:13px;padding:10px 8px;gap:12px}
.nb-tools-all::after{content:"\2192";font-size:18px;line-height:1}
.nb-language-control{position:relative;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;color:var(--nb-muted-light);font-size:12px;font-weight:600}
.nb-language-control::after{content:"";position:absolute;right:12px;top:50%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-4px) rotate(45deg);pointer-events:none}
.nb-language-control>span{white-space:nowrap}
.nb-language-control select{appearance:none;-webkit-appearance:none;min-height:44px;width:116px;max-width:136px;padding:0 28px 0 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--nb-white);font:inherit;font-size:13px;cursor:pointer;box-sizing:border-box}
.nb-language-control select:hover{border-color:var(--nb-muted)}
.nb-language-control select:focus-visible{outline:3px solid var(--nb-green);outline-offset:3px}

.site-footer.nb-site-footer{display:block;padding:0;border-top:0;background:var(--nb-dark);color:var(--nb-muted-light);font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.nb-footer-main{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,1.5fr) minmax(120px,.6fr);gap:40px;width:min(1200px,calc(100% - 48px));box-sizing:border-box;margin:0 auto;padding:56px 0 40px}
.footer-brand-block{display:flex;flex-direction:column;gap:var(--nb-shell-footer-block-gap,14px);align-items:flex-start}
.footer-brand{display:inline-flex;align-items:center;gap:var(--nb-shell-footer-brand-gap,9px);white-space:nowrap}
.site-footer-mark{display:block;width:28px;height:35px;flex:0 0 28px;object-fit:contain}
.footer-brand .site-brand-name{font-size:24px;line-height:1;letter-spacing:-.035em}
.nb-site-footer .site-brand-name strong{color:var(--nb-white)}
.nb-site-footer .site-brand-name em{color:var(--nb-green)}
.nb-site-footer .footer-brand-block>span:not(.footer-brand){max-width:28ch;color:var(--nb-muted-light);font-size:13px;line-height:1.8}
.nb-footer-tools-block>strong,.nb-footer-resources-block>strong{display:block;margin:3px 0 16px;color:var(--nb-white);font-size:13px;font-weight:600;line-height:1.5;letter-spacing:0;text-transform:none}
.nb-footer-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
.nb-site-footer .nb-footer-tools a,.nb-site-footer .nb-footer-resources a,.nb-site-footer .nb-footer-bottom a{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;color:var(--nb-muted-light);font-size:13px;font-weight:600;line-height:1.6;text-decoration:none;box-sizing:border-box;overflow-wrap:anywhere}
.nb-site-footer :is(.nb-footer-tools,.nb-footer-resources,.nb-footer-bottom) a:is(:hover,:focus-visible){color:var(--nb-link-dark);text-decoration:none}
.nb-site-footer a:focus-visible{outline:2px solid var(--nb-green);outline-offset:4px;border-radius:2px}
.nb-site-footer :is(.nb-footer-tools,.nb-footer-resources) a[aria-current]{font-weight:700}
.nb-site-footer.nb-shell-enhanced .nb-footer-tools a[href="/tools/"]{grid-column:1/-1}
.nb-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;width:min(1200px,calc(100% - 48px));box-sizing:border-box;margin:0 auto;padding:16px 0 20px;border-top:1px solid color-mix(in srgb,var(--nb-white) 14%,transparent);color:var(--nb-muted-light);font-size:12px;line-height:1.6}
.nb-footer-bottom-nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}

@media (max-width:1100px){
  .nb-site-header .site-brand-context{display:none}
  .nb-site-footer .nb-footer-main{grid-template-columns:minmax(140px,.8fr) minmax(0,1.4fr) minmax(110px,.6fr);gap:24px}
}
@media (max-width:1100px){
  .nb-site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;min-height:108px}
  .nb-site-header .site-brand{grid-column:1/-1}
  .nb-site-header .nb-site-nav{margin-left:0;gap:2px;min-width:0;justify-content:flex-start;flex-wrap:wrap;align-content:flex-start}
  .nb-site-header .nb-site-nav>.nb-nav-link{font-size:12px;padding:0 7px}
  :is(.nb-tools-menu,.nb-resources-menu)>summary{font-size:12px;padding:4px 7px;gap:7px;max-width:110px;white-space:normal}
  .nb-language-control>span{display:none}
  .nb-language-control select{width:110px;max-width:110px;padding:0 26px 0 5px;font-size:12px}
  html:has(.nb-site-header){scroll-padding-top:132px}
}
@media (max-width:760px){
  .nb-site-header{--nb-shell-gutter:16px;gap:12px;min-height:68px;padding:10px 16px}
  .nb-site-header .site-brand{gap:8px;min-width:0}
  .nb-site-header .site-brand-link{gap:7px;min-height:44px}
  .nb-site-header .site-brand-mark{width:28px;height:35px;flex-basis:28px}
  .nb-site-header .site-brand-mark-image{width:28px;height:35px}
  .nb-site-header .site-brand-name{font-size:22px}
  :is(.nb-tools-menu,.nb-resources-menu)>summary{padding:0 10px;font-size:13px}
  :is(.nb-tools-popover,.nb-resources-popover){right:16px;left:16px;width:auto;top:calc(100% + 8px)}
  .nb-tools-heading{padding:18px 20px 8px}
  .nb-tool-icon{width:36px;height:36px;flex-basis:36px}
  .nb-tools-grid{gap:4px;padding:4px 8px 12px}
  :is(.nb-tools-popover,.nb-resources-popover) .nb-tool-link{gap:12px;padding:14px 12px}
  .nb-language-control>span{display:none}
  .nb-language-control select{max-width:110px;min-height:44px}
  .nb-site-footer .nb-footer-main{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;padding:36px 0 28px;width:calc(100% - 40px)}
  .nb-footer-bottom{width:calc(100% - 40px);padding:14px 0 18px}
}
@media (max-width:520px){
  .nb-site-header{gap:8px;padding:10px 12px;--nb-shell-gutter:12px;flex-wrap:wrap}
  .nb-site-header .site-brand{flex:1 1 auto}
  .nb-site-header .site-brand-link{gap:6px}
  .nb-site-header .site-brand-name{font-size:20px}
  .nb-site-header .nb-site-nav{margin-left:0}
  :is(.nb-tools-menu,.nb-resources-menu)>summary{padding:4px 8px;gap:8px;font-size:12px;white-space:normal;max-width:94px}
  .nb-language-control select{width:110px;max-width:110px;padding:0 26px 0 5px;font-size:12px}
  .nb-tools-grid{grid-template-columns:minmax(0,1fr)}
  :is(.nb-tools-popover,.nb-resources-popover) .nb-tool-link{min-height:82px}
  .nb-tool-title{font-size:14px}
  .nb-tool-description{font-size:12px}
  .nb-footer-tools{grid-template-columns:minmax(0,1fr);gap:4px}
  .nb-footer-bottom{align-items:flex-start;flex-wrap:wrap;gap:4px 16px}
}
/* Resource links remain native anchors, including without JavaScript. */
.nb-site-header .nb-site-nav>.nb-nav-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;box-sizing:border-box;color:var(--nb-white);font-size:14px;font-weight:700;line-height:1.4;text-decoration:none;border-radius:8px}
.nb-site-header .nb-site-nav>.nb-nav-link:is(:hover,:focus-visible){background:rgba(255,255,255,.08);color:var(--nb-link-dark)}
.nb-site-header .nb-site-nav>.nb-nav-link[aria-current]{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.nb-footer-resources{display:grid;align-content:start;gap:4px}
@media (max-width:760px){
  .nb-site-footer .footer-brand-block{grid-column:1/-1}
  .nb-footer-tools{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  /* DOM and visual order agree: brand, navigation, language. */
  .nb-site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;min-height:108px}
  .nb-site-header .site-brand{grid-column:1/-1}
  .nb-site-header .nb-site-nav{margin-left:0;gap:2px;min-width:0;justify-content:flex-start}
  .nb-site-header .nb-site-nav>.nb-nav-link{font-size:12px;padding:0 7px}
  :is(.nb-tools-menu,.nb-resources-menu)>summary{font-size:12px;padding:4px 7px;gap:7px;max-width:94px;white-space:normal}
  .nb-language-control>span{display:none}
  .nb-language-control select{width:110px;max-width:110px;padding:0 26px 0 5px;font-size:12px}
  html:has(.nb-site-header){scroll-padding-top:132px}
}
/* Shared public link roles (DESIGN.md §8). Never select customer-document output. */
:is(.ed-article,.nb-legal-article,.content-section,.seo-content,.faq-list) :is(p,li,td,dd) a:not([class]),
:is(.nb-legal-contact,.ninebrief-discovery) a,
a:is(.hub-tool-action,.hub-text-link,.ed-text-link),.ed-page a.ed-text-link,
.hub-resource .hub-text-link,.ed-card .ed-card-link{
  color:var(--nb-link-light);font-weight:700;text-decoration:none;
  text-decoration-color:currentColor;text-decoration-thickness:1px;text-underline-offset:4px;
}
:is(.ed-article,.nb-legal-article,.content-section,.seo-content,.faq-list) :is(p,li,td,dd) a:not([class]):is(:hover,:focus-visible),
:is(.nb-legal-contact,.ninebrief-discovery) a:is(:hover,:focus-visible),
a:is(.hub-tool-action,.hub-text-link,.ed-text-link):is(:hover,:focus-visible),
.hub-resource:is(:hover,:focus-visible) .hub-text-link,.ed-card:is(:hover,:focus-visible) .ed-card-link{text-decoration-line:underline}
:is(.ed-article,.nb-legal-article,.content-section,.seo-content) :is(h2,h3,h4) a{color:var(--nb-ink);font-weight:700;text-decoration:none}
:is(.ed-article,.nb-legal-article,.content-section,.seo-content) :is(h2,h3,h4) a:is(:hover,:focus-visible){color:var(--nb-link-light)}
:is(.hub-resource,.ed-card,.related-card) :is(h3,strong){color:var(--nb-ink);text-decoration:none}
:is(.hub-resource,.ed-card,.related-card):is(:hover,:focus-visible) :is(h3,strong){color:var(--nb-link-light)}
:is(.tool-breadcrumb,.breadcrumb,.ed-breadcrumb,.ed-article-header .ed-meta) a{color:var(--nb-muted-light);text-decoration:none}
:is(.tool-breadcrumb,.breadcrumb,.ed-breadcrumb,.ed-article-header .ed-meta) a:is(:hover,:focus-visible){color:var(--nb-link-dark)}
:is(.ed-desktop-toc,.ed-mobile-toc,.nb-legal-aside nav,.nb-legal-breadcrumb,.tool-nav) a{color:var(--nb-ink);text-decoration:none;font-weight:600}
:is(.ed-desktop-toc,.ed-mobile-toc,.nb-legal-aside nav,.nb-legal-breadcrumb,.tool-nav) a:is(:hover,:focus-visible){color:var(--nb-link-light);text-decoration:none}
:is(.ed-article,.nb-legal-article,.content-section,.seo-content,.faq-list,.hub-tool,.hub-workflows,.nb-legal-aside,.ed-collection-body) a:focus-visible{outline:2px solid var(--nb-link-light);outline-offset:4px}
.hub-parent a.hub-text-link:is(:hover,:focus-visible){text-decoration:none}
@media print{:is(.ed-article,.nb-legal-article) :is(p,li,td,dd) a:not([class]),.nb-legal-article a{color:var(--nb-ink);text-decoration:underline}}
@media (prefers-reduced-motion:reduce){:is(.nb-tools-menu,.nb-resources-menu)>summary::after{transition:none}}
@media (forced-colors:active){
  :is(.nb-tools-popover,.nb-resources-popover),.nb-tool-icon{border-color:CanvasText;box-shadow:none}
  :is(.nb-tools-popover,.nb-resources-popover) a[aria-current="page"]{outline:2px solid Highlight;outline-offset:-2px}
  .nb-site-header a:focus-visible,.nb-site-footer a:focus-visible,:is(.nb-tools-menu,.nb-resources-menu)>summary:focus-visible,
  :is(.ed-article,.nb-legal-article,.content-section,.seo-content,.faq-list,.hub-tool,.hub-workflows,.nb-legal-aside,.ed-collection-body) a:focus-visible{outline-color:Highlight}
}
@media print{.nb-site-header,.nb-site-footer{display:none!important}}

/* Approved decorative icon palette, shared by tool navigation, hub and related-document cards. */
.nb-tool-icon[data-tool-kind="invoice"]{color:var(--nb-icon-invoice-fg);background:var(--nb-icon-invoice-bg);border-color:transparent}
.nb-tool-icon[data-tool-kind="quote"]{color:var(--nb-icon-quote-fg);background:var(--nb-icon-quote-bg);border-color:transparent}
.nb-tool-icon[data-tool-kind="order"]{color:var(--nb-icon-order-fg);background:var(--nb-icon-order-bg);border-color:transparent}
.nb-tool-icon[data-tool-kind="delivery"]{color:var(--nb-icon-delivery-fg);background:var(--nb-icon-delivery-bg);border-color:transparent}
@media (forced-colors:active){.nb-tool-icon[data-tool-kind]{color:CanvasText;background:Canvas;border-color:CanvasText}}

.nb-resources-popover{width:min(300px,calc(100vw - 48px));}
.nb-language-control select:hover{border-color:var(--nb-muted-light);background:rgba(255,255,255,.08);}
.nb-language-control select option{background:var(--nb-white);color:var(--nb-ink);}
@media (forced-colors:active){.nb-language-control select{border-color:ButtonText;color:ButtonText;background:Canvas;}}

/* Scoped light editorial/Tools header; the document editors retain the dark default. */
.nb-site-header.nb-site-header-light{
  --nb-shell-context-border:var(--nb-border);
  --nb-shell-context-strong-color:var(--nb-ink);
  --nb-shell-context-text-color:var(--nb-muted);
  background:var(--nb-white);color:var(--nb-ink);
  border-bottom:1px solid var(--nb-border);box-shadow:0 4px 20px color-mix(in srgb,var(--nb-ink) 5%,transparent);
}
.nb-site-header.nb-site-header-light .site-brand-link,
.nb-site-header.nb-site-header-light .site-brand-name strong,
.nb-site-header.nb-site-header-light .site-brand-context strong{color:var(--nb-ink)}
.nb-site-header.nb-site-header-light :is(.nb-tools-menu,.nb-resources-menu)>summary,
.nb-site-header.nb-site-header-light .nb-site-nav>.nb-nav-link{color:var(--nb-ink)}
.nb-site-header.nb-site-header-light :is(.nb-tools-menu,.nb-resources-menu)>summary:is(:hover,:focus-visible),
.nb-site-header.nb-site-header-light .nb-site-nav>.nb-nav-link:is(:hover,:focus-visible),
.nb-site-header.nb-site-header-light :is(.nb-tools-menu,.nb-resources-menu)[open]>summary{
  color:var(--nb-ink);background:color-mix(in srgb,var(--nb-green) 10%,var(--nb-white));border-color:var(--nb-border)
}
.nb-site-header.nb-site-header-light .nb-language-control,
.nb-site-header.nb-site-header-light .nb-language-control select{color:var(--nb-ink)}
.nb-site-header.nb-site-header-light .nb-language-control select:is(:hover,:focus-visible){background:color-mix(in srgb,var(--nb-green) 10%,var(--nb-white));border-color:var(--nb-border)}
@media(forced-colors:active){
  .nb-site-header.nb-site-header-light{background:Canvas;color:CanvasText;border-bottom-color:CanvasText;box-shadow:none}
  .nb-site-header.nb-site-header-light :is(.nb-tools-menu,.nb-resources-menu)>summary,
  .nb-site-header.nb-site-header-light .nb-language-control select{color:CanvasText}
}

/* The approved V5 mega-panel is also used by content:sync on editorial pages.
   Reuse its exact approved navigation CSS and keep all overrides scoped to the
   white-header mega panel. Generator/editor shell markup is unaffected. */
.mega-panel{position:absolute;top:calc(100% - 1px);left:50%;transform:translateX(-50%);z-index:200;width:min(1090px,calc(100vw - 46px));display:grid;grid-template-columns:1.25fr .93fr .84fr;gap:0;background:white;border:1px solid var(--line);border-radius:0 0 13px 13px;box-shadow:0 22px 65px color-mix(in srgb,var(--nb-ink) 17%,transparent);overflow:hidden;padding:15px 16px 18px}.mega-column{min-width:0;padding:18px 20px}.mega-eyebrow{font-size:10px;line-height:1.3;color:var(--nb-link-light);font-weight:800;letter-spacing:.12em;margin-bottom:14px}.mega-item{display:flex;gap:13px;align-items:center;padding:12px 10px;min-height:58px;text-decoration:none;border-radius:8px}.mega-item:hover,.mega-item:focus-visible{background:color-mix(in srgb,var(--nb-green) 8%,var(--nb-white))}.mega-icon{flex:0 0 35px;width:35px;height:35px;display:grid;place-items:center;background:color-mix(in srgb,var(--nb-green) 12%,var(--nb-white));border-radius:8px;font-size:18px;color:var(--nb-link-light);font-weight:800}.mega-item strong{display:block;font-size:13px;line-height:1.4;letter-spacing:-.01em;color:var(--nb-ink)}.mega-item small{display:block;margin-top:2px;font-size:11px;line-height:1.45;color:var(--nb-muted)}.mega-secondary{border-left:1px solid var(--line)}.mega-secondary>a{font-size:13px;display:flex;justify-content:space-between;gap:12px;text-decoration:none;font-weight:750;border-bottom:1px solid var(--nb-border);padding:13px 0}.mega-secondary>a:hover{color:var(--nb-link-light)}.mega-tip{border-radius:8px;background:color-mix(in srgb,var(--nb-green) 10%,var(--nb-white));font-size:12px;color:var(--nb-muted);line-height:1.5;padding:14px;margin-top:21px}.mega-feature{background:color-mix(in srgb,var(--nb-green) 10%,var(--nb-white));margin:0;border-radius:8px;padding:21px;display:flex;flex-direction:column}.mega-preview-paper{margin:8px auto 18px;background:var(--nb-white);border:1px solid var(--nb-border);width:100%;padding:18px 15px;box-shadow:0 10px 20px color-mix(in srgb,var(--nb-ink) 10%,transparent);transform:rotate(-2deg);border-radius:4px}.mega-preview-paper>strong{font-size:17px;display:block;letter-spacing:-.04em}.mega-preview-paper>span{font-size:9px;color:var(--nb-muted);font-weight:800}.mega-preview-paper>div{height:9px;width:100%;background:var(--nb-surface);margin:10px 0}.mega-preview-paper>div:nth-of-type(2){width:67%}.mega-preview-paper>div:nth-of-type(3){width:79%}.mega-preview-paper b{display:flex;justify-content:space-between;gap:8px;background:var(--nb-link-light);padding:9px;font-size:11px;color:var(--nb-white)}.mega-feature h3{font-size:18px;line-height:1.18;margin-bottom:9px}.mega-feature>a{font-size:12px;font-weight:800;color:var(--nb-link-light);text-decoration:underline;text-underline-offset:4px}.resource-mega{width:min(785px,calc(100vw - 46px));grid-template-columns:1.15fr 1fr;gap:15px}.resource-mega>div:first-child{padding:19px}.resource-mega-feature{background:color-mix(in srgb,var(--nb-green) 10%,var(--nb-white));border-radius:10px;padding:30px;display:flex;flex-direction:column;justify-content:center}.resource-mega-feature h3{font-size:28px;max-width:15ch;margin-bottom:16px}.resource-mega-feature p{font-size:14px;color:var(--nb-muted);margin-bottom:25px}
/* Restore the original V5 three-column Tools and two-column Resources mega menus
   only on the canonical white-header hub; editor navigation stays untouched. */
.nb-site-header.nb-site-header-light :is(.nb-tools-menu,.nb-resources-menu):not([open]) > .nb-v5-mega-panel{display:none}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel{
  top:calc(100% - 1px);left:50%;right:auto;z-index:110;
  transform:translateX(-50%);width:min(1090px,calc(100vw - 32px));
  max-height:calc(100dvh - var(--nb-shell-header-height,90px) - 12px);
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  color:var(--nb-ink);box-sizing:border-box
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel > .mega-column{min-width:0}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tools-popover,
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-resources-popover{
  position:static;inset:auto;width:100%;max-height:none;overflow:visible;
  box-shadow:none;border:0;border-radius:0;background:transparent;
  padding:0;margin:0
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tools-heading{display:none}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tools-grid{
  grid-template-columns:minmax(0,1fr);gap:1px;padding:0
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tool-link{
  min-height:65px;padding:8px 10px;gap:11px
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tool-icon{
  width:35px;height:35px;flex:0 0 35px
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tool-copy{gap:2px}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tool-description{font-size:11px;line-height:1.45}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tools-bottom{
  background:transparent;margin-top:4px;padding:2px 5px;border-color:var(--nb-border)
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-secondary>a{
  align-items:center;justify-content:space-between;border-radius:0
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-secondary>a span:last-child{flex:none}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-tip{max-width:none}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-feature{min-width:0}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-feature>a{
  display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:8px
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel.resource-mega{
  width:min(785px,calc(100vw - 32px));grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)
}
.nb-site-header.nb-site-header-light .nb-v5-resources-column{padding:19px}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-resources-popover{display:grid;gap:2px}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-resources-popover .mega-item{
  display:flex;align-items:center;gap:13px;min-height:58px;padding:11px 10px;
  border-radius:8px
}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-item>span:last-child{min-width:0}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-item strong{display:block;font-weight:800}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-item small{display:block;font-weight:500}
.nb-site-header.nb-site-header-light .nb-v5-mega-panel .resource-mega-feature .text-arrow{
  display:inline-flex;align-self:flex-start;gap:8px
}
@media(max-width:950px){
  .nb-site-header.nb-site-header-light .nb-tools-menu>.nb-v5-mega-panel{
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)
  }
  .nb-site-header.nb-site-header-light .nb-tools-menu>.nb-v5-mega-panel .mega-feature{display:none}
}
@media(max-width:760px){
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel,
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel.resource-mega,
  .nb-site-header.nb-site-header-light .nb-tools-menu>.nb-v5-mega-panel{
    grid-template-columns:minmax(0,1fr);width:calc(100vw - 24px);
    left:50%;top:calc(100% + 4px);padding:10px 12px 14px
  }
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-column{padding:12px}
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-secondary{
    border-left:0;border-top:1px solid var(--nb-border)
  }
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel .resource-mega-feature{display:none}
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel .nb-tool-link{min-height:62px}
}
@media(forced-colors:active){
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel{border-color:CanvasText;box-shadow:none}
  .nb-site-header.nb-site-header-light .nb-v5-mega-panel .mega-icon{border:1px solid CanvasText}
}

.nb-site-header.nb-site-header-light .nb-v5-mega-panel{--line:var(--nb-border)}

/* V5 footer parity used across Tools, Guides, Industries and editorial pages.
   Canonical shared tokens preserve the approved black V5 footer while leaving
   customer document-editor footers without this marker unchanged. */
footer.nb-site-footer.nb-v5-footer{
  display:block;
  background:rgb(0 0 0);
  color:var(--nb-white);
  padding:80px 0 32px;
  border-top:1px solid rgb(0 0 0);
}
footer.nb-v5-footer .nb-v5-footer-topline{
  width:min(1200px,calc(100% - 48px));
  margin:0 auto 48px;
  padding:0 0 38px;
  border-bottom:1px solid color-mix(in srgb,var(--nb-white) 24%,transparent);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
footer.nb-v5-footer .nb-v5-footer-topline span:first-child{
  color:color-mix(in srgb,var(--nb-green) 58%,var(--nb-white));
  font-size:12px;
  line-height:1.5;
  font-weight:900;
  letter-spacing:.13em;
}
footer.nb-v5-footer .nb-v5-footer-topline span:last-child{
  color:var(--nb-white);
  font-size:18px;
  line-height:1.5;
  font-weight:750;
}
footer.nb-v5-footer .nb-footer-main.nb-v5-footer-primary{
  width:min(1200px,calc(100% - 48px));
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr);
  align-items:start;
  gap:44px;
  padding:0 0 52px;
}
footer.nb-v5-footer .nb-v5-footer-about{min-width:0}
footer.nb-v5-footer .nb-v5-footer-about .footer-brand{gap:9px}
footer.nb-v5-footer .nb-v5-footer-about .site-footer-mark{
  width:34px;height:34px;flex:0 0 34px;
}
footer.nb-v5-footer .nb-v5-footer-about .site-brand-name{font-size:26px}
footer.nb-v5-footer .nb-v5-footer-description{
  margin:21px 0 0;
  max-width:34ch;
  font-size:14px;
  line-height:1.85;
  font-weight:550;
  color:color-mix(in srgb,var(--nb-white) 88%,var(--nb-green));
}
footer.nb-v5-footer .nb-v5-footer-col{min-width:0}
footer.nb-v5-footer .nb-v5-footer-col>strong{
  display:block;
  margin:5px 0 15px;
  color:var(--nb-white);
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.5;
}
footer.nb-v5-footer .nb-footer-tools{
  grid-template-columns:minmax(0,1fr);
  gap:0;
}
footer.nb-v5-footer :is(.nb-footer-tools,.nb-footer-resources,.nb-footer-company) a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:5px 0;
  color:color-mix(in srgb,var(--nb-white) 90%,var(--nb-green));
  font-size:13px;
  font-weight:600;
  line-height:1.55;
  text-decoration:none;
}
footer.nb-v5-footer :is(.nb-footer-tools,.nb-footer-resources,.nb-footer-company) a:is(:hover,:focus-visible){
  color:color-mix(in srgb,var(--nb-green) 52%,var(--nb-white));
  text-decoration:underline;
  text-underline-offset:4px;
}
footer.nb-v5-footer .nb-footer-bottom{
  width:min(1200px,calc(100% - 48px));
  margin:0 auto;
  padding:24px 0 0;
  border-top:1px solid color-mix(in srgb,var(--nb-white) 24%,transparent);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:color-mix(in srgb,var(--nb-white) 85%,var(--nb-green));
  font-size:12px;
  line-height:1.7;
}
footer.nb-v5-footer .nb-footer-bottom .nb-v5-footer-context{
  color:color-mix(in srgb,var(--nb-white) 80%,var(--nb-green));
  text-align:center;
}
footer.nb-v5-footer .nb-footer-bottom-nav{gap:18px}
footer.nb-v5-footer .nb-footer-bottom a{color:color-mix(in srgb,var(--nb-white) 95%,var(--nb-green))}
footer.nb-v5-footer .nb-footer-bottom a:is(:hover,:focus-visible){
  color:color-mix(in srgb,var(--nb-green) 52%,var(--nb-white));
  text-decoration:underline;
  text-underline-offset:4px;
}
@media(max-width:980px){
  footer.nb-v5-footer .nb-footer-main.nb-v5-footer-primary{
    grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
    gap:32px 42px;
  }
}
@media(max-width:640px){
  footer.nb-site-footer.nb-v5-footer{padding:62px 0 28px}
  footer.nb-v5-footer .nb-v5-footer-topline{
    width:calc(100% - 40px);
    flex-direction:column;
    align-items:flex-start;
    gap:13px;
    margin-bottom:35px;
    padding-bottom:27px;
  }
  footer.nb-v5-footer .nb-v5-footer-topline span:last-child{font-size:16px}
  footer.nb-v5-footer .nb-footer-main.nb-v5-footer-primary{
    width:calc(100% - 40px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 18px;
    padding-bottom:35px;
  }
  footer.nb-v5-footer .nb-v5-footer-about{grid-column:1/-1}
  footer.nb-v5-footer .nb-footer-bottom{
    width:calc(100% - 40px);
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  footer.nb-v5-footer .nb-footer-bottom .nb-v5-footer-context{text-align:left}
}
@media(max-width:400px){
  footer.nb-v5-footer .nb-footer-main.nb-v5-footer-primary{
    grid-template-columns:minmax(0,1fr);
  }
  footer.nb-v5-footer .nb-v5-footer-about{grid-column:auto}
}
