/* ==========================================================================
   NOVARIC® Governance Document — CSS Additions v2.0
   Token:   ***
   Date:    2026-08-25
   Extends: governance-document.css (append after existing file)
   
   Sections:
   A.  Root-cause layout fix (nv-gov-layout__inner, flex align-items:start)
   B.  Header-offset and scroll-margin-top corrections
   C.  Category colour token system (10 categories)
   D.  Category-aware accent inheritance (data-gov-category attribute)
   E.  Collection bar (document-family navigation)
   F.  Previous / next document navigation
   G.  Category-aware breadcrumb
   H.  Callout taxonomy (info / warning / prohibited / protection / legal)
   I.  "At a glance" summary panel
   J.  Governance Hub category filter chip colours
   K.  Typography and reading-width improvements
   L.  Responsive three-zone layout (≥1440px)
   M.  Readtime badge (extends existing token from last deploy)
   N.  Reduced-motion safety net extension
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════════════
   A. ROOT-CAUSE LAYOUT FIX
   
   Root cause 1: partner-standards and partner-verification pages use
   <div class="nv-gov-layout__inner"> which has no CSS definition,
   so the flex layout never activates and the TOC stacks above content.
   Fix: define nv-gov-layout__inner as alias for nv-gov-layout.
   
   Root cause 2: nv-gov-layout uses align-items:flex-start which is
   correct BUT the sticky TOC top offset did not account for the
   site header height (~72px), so after scrolling the TOC hides
   behind the header.
   ══════════════════════════════════════════════════════════════════════════ */

/* Alias: let pages using __inner variant get the correct flex layout */
.nv-gov-layout__inner {
  display: grid;
  grid-template-columns: var(--nv-gov-toc-width, 220px) minmax(0, 1fr);
  gap: var(--nv-sp-5, 3rem);
  align-items: start;
  max-width: var(--nv-gov-layout-max, 1200px);
  margin: 0 auto;
  padding: var(--nv-gov-section-gap, 2.5rem) var(--nv-sp-4, 2rem);
}

/* Upgrade existing flex layout to CSS Grid for reliable start alignment */
/* Layout: nv-gov-layout stays flex (from governance-document.css) for pages
   where TOC and content are direct children.
   nv-gov-layout__inner provides the grid for pages with an extra wrapper. */
.nv-gov-layout {
  /* DO NOT override to grid here — nv-gov-layout__inner handles 2-col grid */
  /* Removing display:grid !important that caused 220px column collapse       */
  align-items: start;
}

/* Ensure nv-gov-content fills available width in both flex and grid contexts */
.nv-gov-content {
  min-width: 0 !important;
  width: 100% !important;
  flex: 1 1 0 !important;
}

/* nv-gov-toc is flex/grid-safe in sidebar */
.nv-gov-toc {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   B. HEADER OFFSET AND SCROLL-MARGIN-TOP
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --nv-header-offset: 72px;
}

/* Correct sticky TOC top to clear the site header */
.nv-gov-toc {
  top: calc(var(--nv-header-offset) + 12px) !important;
  max-height: calc(100vh - var(--nv-header-offset) - 24px) !important;
}

/* Correct section scroll target offset to clear sticky header */
.nv-gov-section {
  scroll-margin-top: calc(var(--nv-header-offset) + 16px) !important;
}

/* Section headings should also clear the header when targeted */
.nv-gov-section h2,
.nv-gov-section h3 {
  scroll-margin-top: calc(var(--nv-header-offset) + 16px);
}

/* ══════════════════════════════════════════════════════════════════════════
   C. CATEGORY COLOUR TOKEN SYSTEM
   WCAG contrast tested: all primary colours pass 4.5:1 on white.
   All soft backgrounds pass 4.5:1 with primary colour text.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Corporate Governance — Institutional navy (existing brand) */
  --nv-category-corporate:         #30384B;
  --nv-category-corporate-soft:    #EEF0F4;
  --nv-category-corporate-text:    #ffffff;

  /* Data Protection & Privacy — Trust blue */
  --nv-category-privacy:           #175C8D;
  --nv-category-privacy-soft:      #EAF3FA;
  --nv-category-privacy-text:      #ffffff;

  /* Communications — Connected teal */
  --nv-category-communications:    #007FA3;
  --nv-category-communications-soft: #E8F6FA;
  --nv-category-communications-text: #ffffff;

  /* Employment Governance — Responsible green */
  --nv-category-employment:        #256B4E;
  --nv-category-employment-soft:   #EAF5EF;
  --nv-category-employment-text:   #ffffff;

  /* Health, Safety & Wellbeing — Warm amber */
  --nv-category-safety:            #A34918;
  --nv-category-safety-soft:       #FCF1E9;
  --nv-category-safety-text:       #ffffff;

  /* Ethics, Fraud & Misconduct — Alert crimson */
  --nv-category-ethics:            #9F2D38;
  --nv-category-ethics-soft:       #FBEDEF;
  --nv-category-ethics-text:       #ffffff;

  /* Accessibility — Inclusive violet */
  --nv-category-accessibility:     #68439B;
  --nv-category-accessibility-soft: #F2EDF9;
  --nv-category-accessibility-text: #ffffff;

  /* Legal Terms & Regulatory — Formal brown */
  --nv-category-legal:             #6A4C27;
  --nv-category-legal-soft:        #F6F1E9;
  --nv-category-legal-text:        #ffffff;

  /* Document Governance — Institutional slate */
  --nv-category-documents:         #536476;
  --nv-category-documents-soft:    #EEF2F5;
  --nv-category-documents-text:    #ffffff;

  /* Partnership Governance — Trusted teal */
  --nv-category-partnership:       #0B6B73;
  --nv-category-partnership-soft:  #E8F4F3;
  --nv-category-partnership-text:  #ffffff;

  /* Active category — default (overridden per page via data-gov-category) */
  --nv-cat-accent:  var(--nv-navy, #30384B);
  --nv-cat-soft:    var(--nv-surface, #F4F6F8);
  --nv-cat-text:    #ffffff;
}

/* ══════════════════════════════════════════════════════════════════════════
   D. CATEGORY-AWARE ACCENT INHERITANCE
   Set data-gov-category on <body data-gov-doc data-gov-category="...">
   ══════════════════════════════════════════════════════════════════════════ */
[data-gov-category="corporate"]     { --nv-cat-accent: var(--nv-category-corporate);     --nv-cat-soft: var(--nv-category-corporate-soft);     --nv-cat-text: var(--nv-category-corporate-text); }
[data-gov-category="privacy"]       { --nv-cat-accent: var(--nv-category-privacy);       --nv-cat-soft: var(--nv-category-privacy-soft);       --nv-cat-text: var(--nv-category-privacy-text); }
[data-gov-category="communications"]{ --nv-cat-accent: var(--nv-category-communications);--nv-cat-soft: var(--nv-category-communications-soft);--nv-cat-text: var(--nv-category-communications-text); }
[data-gov-category="employment"]    { --nv-cat-accent: var(--nv-category-employment);    --nv-cat-soft: var(--nv-category-employment-soft);    --nv-cat-text: var(--nv-category-employment-text); }
[data-gov-category="safety"]        { --nv-cat-accent: var(--nv-category-safety);        --nv-cat-soft: var(--nv-category-safety-soft);        --nv-cat-text: var(--nv-category-safety-text); }
[data-gov-category="ethics"]        { --nv-cat-accent: var(--nv-category-ethics);        --nv-cat-soft: var(--nv-category-ethics-soft);        --nv-cat-text: var(--nv-category-ethics-text); }
[data-gov-category="accessibility"] { --nv-cat-accent: var(--nv-category-accessibility); --nv-cat-soft: var(--nv-category-accessibility-soft); --nv-cat-text: var(--nv-category-accessibility-text); }
[data-gov-category="legal"]         { --nv-cat-accent: var(--nv-category-legal);         --nv-cat-soft: var(--nv-category-legal-soft);         --nv-cat-text: var(--nv-category-legal-text); }
[data-gov-category="documents"]     { --nv-cat-accent: var(--nv-category-documents);     --nv-cat-soft: var(--nv-category-documents-soft);     --nv-cat-text: var(--nv-category-documents-text); }
[data-gov-category="partnership"]   { --nv-cat-accent: var(--nv-category-partnership);   --nv-cat-soft: var(--nv-category-partnership-soft);   --nv-cat-text: var(--nv-category-partnership-text); }

/* Category-aware hero accent stripe */
.nv-gov-hero::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--nv-cat-accent, var(--nv-cyan, #009AE4));
  margin-bottom: var(--nv-sp-3, 1.5rem);
  opacity: .9;
}

/* Category-aware metadata panel accent */
.nv-gov-meta {
  border-left-color: var(--nv-cat-accent, var(--nv-gov-meta-accent)) !important;
}

/* Category-aware section heading underline */
.nv-gov-section__heading h2 {
  border-bottom-color: var(--nv-cat-accent, var(--nv-cyan, #009AE4)) !important;
}

/* Category-aware TOC active indicator */
.nv-gov-toc__list a.is-active {
  border-left-color: var(--nv-cat-accent, var(--nv-cyan, #009AE4)) !important;
}

/* Category label in hero */
.nv-gov-hero__category {
  display: inline-block;
  background: var(--nv-cat-accent, var(--nv-navy, #30384B));
  color: var(--nv-cat-text, #fff);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 3px;
  margin-bottom: .5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   E. DOCUMENT COLLECTION BAR
   "In this collection" — document family navigation
   Positioned between metadata panel and two-column layout.
   ══════════════════════════════════════════════════════════════════════════ */
.nv-gov-collection {
  background: var(--nv-cat-soft, var(--nv-surface, #F4F6F8));
  border: 1px solid color-mix(in srgb, var(--nv-cat-accent, var(--nv-border, #D9DFE7)) 25%, transparent);
  border-left: 4px solid var(--nv-cat-accent, var(--nv-cyan, #009AE4));
  border-radius: 0 4px 4px 0;
  padding: .75rem var(--nv-sp-4, 2rem);
  max-width: var(--nv-gov-layout-max, 1200px);
  margin: 0 auto 0;
}
.nv-gov-collection__header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem .75rem;
  margin-bottom: .6rem;
}
.nv-gov-collection__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--nv-cat-accent, var(--nv-text-muted, #4D5A6B));
}
.nv-gov-collection__title {
  font-size: .85rem; font-weight: 600; color: var(--nv-navy, #30384B);
}
.nv-gov-collection__hub-link {
  font-size: .78rem; color: var(--nv-action, #0072A9); text-decoration: none;
  white-space: nowrap;
}
.nv-gov-collection__hub-link:hover { text-decoration: underline; }

.nv-gov-collection__list {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nv-gov-collection__list li { margin: 0; }
.nv-gov-collection__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 3px;
  font-size: .8rem; font-weight: 500;
  text-decoration: none; transition: background .12s, color .12s;
  border: 1px solid color-mix(in srgb, var(--nv-cat-accent, #009AE4) 30%, transparent);
  color: var(--nv-text-muted, #4D5A6B);
  background: #fff;
}
.nv-gov-collection__link:hover {
  background: color-mix(in srgb, var(--nv-cat-accent, #009AE4) 10%, white);
  color: var(--nv-cat-accent, var(--nv-navy, #30384B));
  border-color: color-mix(in srgb, var(--nv-cat-accent, #009AE4) 50%, transparent);
}
.nv-gov-collection__link:focus-visible {
  outline: 3px solid var(--nv-focus, #0072A9); outline-offset: 2px;
}
.nv-gov-collection__link[aria-current="page"] {
  background: var(--nv-cat-accent, var(--nv-navy, #30384B));
  color: #fff;
  border-color: var(--nv-cat-accent, var(--nv-navy, #30384B));
  font-weight: 700;
  cursor: default;
}
.nv-gov-collection__link[aria-current="page"]:hover {
  background: var(--nv-cat-accent, var(--nv-navy, #30384B));
  color: #fff;
}
/* Cross-listed indicator */
.nv-gov-collection__cross-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 2px;
  background: color-mix(in srgb, var(--nv-category-ethics, #9F2D38) 15%, white);
  color: var(--nv-category-ethics, #9F2D38);
  border: 1px solid color-mix(in srgb, var(--nv-category-ethics, #9F2D38) 30%, transparent);
}
/* Mobile collapse */
@media (max-width: 640px) {
  .nv-gov-collection__list {
    flex-direction: column;
  }
  .nv-gov-collection__link {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   F. PREVIOUS / NEXT DOCUMENT NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */
.nv-gov-docnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nv-sp-2, 1rem);
  margin-top: var(--nv-gov-section-gap, 2.5rem);
}
.nv-gov-docnav__item {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .85rem var(--nv-sp-2, 1rem);
  border: 1px solid var(--nv-border, #D9DFE7); border-radius: 4px;
  text-decoration: none; color: inherit;
  background: #fff; transition: background .12s, border-color .12s;
  border-left: 3px solid var(--nv-cat-accent, var(--nv-navy, #30384B));
}
.nv-gov-docnav__item:hover {
  background: var(--nv-cat-soft, var(--nv-surface, #F4F6F8));
  border-left-color: var(--nv-cat-accent, var(--nv-navy, #30384B));
}
.nv-gov-docnav__item:focus-visible {
  outline: 3px solid var(--nv-focus, #0072A9); outline-offset: 2px;
}
.nv-gov-docnav__item--next {
  text-align: right;
  border-left-width: 1px;
  border-right-width: 3px;
  border-right-color: var(--nv-cat-accent, var(--nv-navy, #30384B));
}
.nv-gov-docnav__direction {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--nv-text-muted, #4D5A6B);
}
.nv-gov-docnav__name {
  font-size: .9rem; font-weight: 600; color: var(--nv-action, #0072A9);
}
.nv-gov-docnav__type {
  font-size: .75rem; color: var(--nv-text-muted, #4D5A6B);
}
.nv-gov-docnav__arrow {
  font-size: .9rem; color: var(--nv-cat-accent, var(--nv-navy, #30384B));
}
@media (max-width: 580px) {
  .nv-gov-docnav { grid-template-columns: 1fr; }
  .nv-gov-docnav__item--next { text-align: left; border-left-width: 3px; border-right-width: 1px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   G. CATEGORY BREADCRUMB ENHANCEMENT
   ══════════════════════════════════════════════════════════════════════════ */
.nv-gov-cat-crumb {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 600;
  color: var(--nv-cat-accent, var(--nv-action, #0072A9));
  text-decoration: none;
}
.nv-gov-cat-crumb::before {
  content: '';
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--nv-cat-accent, var(--nv-action, #0072A9));
  flex-shrink: 0;
}
.nv-gov-cat-crumb:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   H. CALLOUT TAXONOMY
   Five callout types + default note variant
   ══════════════════════════════════════════════════════════════════════════ */
.nv-gov-callout {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem var(--nv-sp-2, 1rem);
  border-radius: 0 4px 4px 0; border-left: 4px solid;
  margin: var(--nv-sp-2, 1rem) 0; font-size: .9rem;
}
.nv-gov-callout__icon {
  flex-shrink: 0; font-size: 1rem; line-height: 1.4;
  font-style: normal; /* override em if used */
}
.nv-gov-callout__body { flex: 1; }
.nv-gov-callout__body strong { display: block; margin-bottom: .2rem; }
.nv-gov-callout__body p { margin: 0; }

/* Info */
.nv-gov-callout--info {
  background: var(--nv-surface-2, #F0F7FD);
  border-color: var(--nv-action, #0072A9);
  color: var(--nv-text, #1E2732);
}
/* Important requirement */
.nv-gov-callout--requirement {
  background: #FFF8E5;
  border-color: #B8791A;
  color: #4A2F00;
}
/* Prohibited action */
.nv-gov-callout--prohibited {
  background: #FEF2F2;
  border-color: #DC2626;
  color: #7F1D1D;
}
/* Candidate/worker protection */
.nv-gov-callout--protection {
  background: var(--nv-category-employment-soft, #EAF5EF);
  border-color: var(--nv-category-employment, #256B4E);
  color: #1A3D2B;
}
/* Legal or regulatory notice */
.nv-gov-callout--legal {
  background: var(--nv-category-legal-soft, #F6F1E9);
  border-color: var(--nv-category-legal, #6A4C27);
  color: #3D2B0E;
}
/* Category-aware callout — inherits current category */
.nv-gov-callout--category {
  background: var(--nv-cat-soft, var(--nv-surface-2, #F0F7FD));
  border-color: var(--nv-cat-accent, var(--nv-action, #0072A9));
  color: var(--nv-text, #1E2732);
}

/* ══════════════════════════════════════════════════════════════════════════
   I. "AT A GLANCE" SUMMARY PANEL
   ══════════════════════════════════════════════════════════════════════════ */
.nv-gov-summary {
  background: var(--nv-cat-soft, var(--nv-surface, #F4F6F8));
  border: 1px solid color-mix(in srgb, var(--nv-cat-accent, var(--nv-border, #D9DFE7)) 30%, transparent);
  border-radius: 4px; overflow: hidden;
  margin-bottom: var(--nv-gov-section-gap, 2.5rem);
}
.nv-gov-summary__header {
  background: var(--nv-cat-accent, var(--nv-navy, #30384B));
  color: #fff; padding: .5rem var(--nv-sp-2, 1rem);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.nv-gov-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.nv-gov-summary__item {
  padding: .65rem var(--nv-sp-2, 1rem);
  border-right: 1px solid color-mix(in srgb, var(--nv-cat-accent, #009AE4) 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--nv-cat-accent, #009AE4) 15%, transparent);
}
.nv-gov-summary__item:last-child { border-right: none; }
.nv-gov-summary__key {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--nv-cat-accent, var(--nv-text-muted, #4D5A6B));
  display: block; margin-bottom: .15rem;
}
.nv-gov-summary__value {
  font-size: .88rem; color: var(--nv-text, #1E2732);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════════
   J. GOVERNANCE HUB CATEGORY FILTER CHIP COLOURS
   Targets .nv-eu-governance__cat-btn on the hub page
   Uses data-category-filter attribute for colour mapping
   ══════════════════════════════════════════════════════════════════════════ */
.nv-eu-governance__cat-btn {
  position: relative;
  padding-left: calc(.75rem + 14px); /* space for colour dot */
}
.nv-eu-governance__cat-btn::before {
  content: '';
  position: absolute;
  left: .65rem;
  top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--nv-border, #D9DFE7);
}

/* Category-specific dot colours */
.nv-eu-governance__cat-btn[data-category-filter="Corporate Governance"]::before         { background: var(--nv-category-corporate, #30384B); }
.nv-eu-governance__cat-btn[data-category-filter="Data Protection & Privacy"]::before    { background: var(--nv-category-privacy, #175C8D); }
.nv-eu-governance__cat-btn[data-category-filter="Communications Governance"]::before    { background: var(--nv-category-communications, #007FA3); }
.nv-eu-governance__cat-btn[data-category-filter="Employment Governance"]::before        { background: var(--nv-category-employment, #256B4E); }
.nv-eu-governance__cat-btn[data-category-filter="Health, Safety & Wellbeing"]::before  { background: var(--nv-category-safety, #A34918); }
.nv-eu-governance__cat-btn[data-category-filter="Ethics, Fraud & Misconduct"]::before  { background: var(--nv-category-ethics, #9F2D38); }
.nv-eu-governance__cat-btn[data-category-filter="Accessibility"]::before               { background: var(--nv-category-accessibility, #68439B); }
.nv-eu-governance__cat-btn[data-category-filter="Legal Terms & Regulatory"]::before    { background: var(--nv-category-legal, #6A4C27); }
.nv-eu-governance__cat-btn[data-category-filter="Document Governance"]::before         { background: var(--nv-category-documents, #536476); }
.nv-eu-governance__cat-btn[data-category-filter="Partnership Governance"]::before      { background: var(--nv-category-partnership, #0B6B73); }

/* Active state — category-coloured background */
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Corporate Governance"]         { background: var(--nv-category-corporate-soft, #EEF0F4); border-color: var(--nv-category-corporate, #30384B); color: var(--nv-category-corporate, #30384B); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Data Protection & Privacy"]    { background: var(--nv-category-privacy-soft, #EAF3FA); border-color: var(--nv-category-privacy, #175C8D); color: var(--nv-category-privacy, #175C8D); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Communications Governance"]    { background: var(--nv-category-communications-soft, #E8F6FA); border-color: var(--nv-category-communications, #007FA3); color: var(--nv-category-communications, #007FA3); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Employment Governance"]        { background: var(--nv-category-employment-soft, #EAF5EF); border-color: var(--nv-category-employment, #256B4E); color: var(--nv-category-employment, #256B4E); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Health, Safety & Wellbeing"]  { background: var(--nv-category-safety-soft, #FCF1E9); border-color: var(--nv-category-safety, #A34918); color: var(--nv-category-safety, #A34918); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Ethics, Fraud & Misconduct"]  { background: var(--nv-category-ethics-soft, #FBEDEF); border-color: var(--nv-category-ethics, #9F2D38); color: var(--nv-category-ethics, #9F2D38); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Accessibility"]               { background: var(--nv-category-accessibility-soft, #F2EDF9); border-color: var(--nv-category-accessibility, #68439B); color: var(--nv-category-accessibility, #68439B); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Legal Terms & Regulatory"]    { background: var(--nv-category-legal-soft, #F6F1E9); border-color: var(--nv-category-legal, #6A4C27); color: var(--nv-category-legal, #6A4C27); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Document Governance"]         { background: var(--nv-category-documents-soft, #EEF2F5); border-color: var(--nv-category-documents, #536476); color: var(--nv-category-documents, #536476); }
.nv-eu-governance__cat-btn[aria-pressed="true"][data-category-filter="Partnership Governance"]      { background: var(--nv-category-partnership-soft, #E8F4F3); border-color: var(--nv-category-partnership, #0B6B73); color: var(--nv-category-partnership, #0B6B73); }

/* Hub register table — category row colour markers */
.nv-eu-governance__register tr[data-category="Corporate Governance"]          td:first-child::before,
.nv-eu-governance__register tr[data-category="Partnership Governance"]        td:first-child::before,
.nv-eu-governance__register tr[data-category="Ethics, Fraud & Misconduct"]    td:first-child::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.nv-eu-governance__register tr[data-category="Corporate Governance"] td:first-child::before         { background: var(--nv-category-corporate, #30384B); }
.nv-eu-governance__register tr[data-category="Data Protection & Privacy"] td:first-child::before    { background: var(--nv-category-privacy, #175C8D); }
.nv-eu-governance__register tr[data-category="Communications Governance"] td:first-child::before    { background: var(--nv-category-communications, #007FA3); }
.nv-eu-governance__register tr[data-category="Employment Governance"] td:first-child::before        { background: var(--nv-category-employment, #256B4E); }
.nv-eu-governance__register tr[data-category="Health, Safety & Wellbeing"] td:first-child::before  { background: var(--nv-category-safety, #A34918); }
.nv-eu-governance__register tr[data-category="Ethics, Fraud & Misconduct"] td:first-child::before  { background: var(--nv-category-ethics, #9F2D38); }
.nv-eu-governance__register tr[data-category="Accessibility"] td:first-child::before               { background: var(--nv-category-accessibility, #68439B); }
.nv-eu-governance__register tr[data-category="Legal Terms & Regulatory"] td:first-child::before    { background: var(--nv-category-legal, #6A4C27); }
.nv-eu-governance__register tr[data-category="Document Governance"] td:first-child::before         { background: var(--nv-category-documents, #536476); }
.nv-eu-governance__register tr[data-category="Partnership Governance"] td:first-child::before      { background: var(--nv-category-partnership, #0B6B73); }

/* ══════════════════════════════════════════════════════════════════════════
   K. TYPOGRAPHY AND READING WIDTH IMPROVEMENTS
   ══════════════════════════════════════════════════════════════════════════ */

/* Comfortable article reading width */
.nv-gov-content {
  max-width: 78ch; /* soft cap; grid handles actual width */
}

/* Body text — improve line height and spacing */
.nv-gov-content p,
.nv-gov-content li {
  line-height: 1.68;
  color: var(--nv-text, #1E2732);
}

/* Section spacing clarity */
.nv-gov-section + .nv-gov-section {
  margin-top: .5rem; /* flex/grid handles gap; this is backup */
}

/* Trademark spacing — prevent collision */
.novaric-brand {
  letter-spacing: -.01em;
}
.novaric-registered {
  letter-spacing: 0;
  margin-left: .05em;
}

/* Heading hierarchy in document sections */
.nv-gov-content h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--nv-navy, #30384B);
  margin: 1.5rem 0 .6rem;
  scroll-margin-top: calc(var(--nv-header-offset, 72px) + 16px);
}
.nv-gov-content h4 {
  font-size: .95rem; font-weight: 700;
  color: var(--nv-navy, #30384B);
  margin: 1.2rem 0 .4rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   L. RESPONSIVE THREE-ZONE LAYOUT (≥1440px)
   Left: family nav | Centre: article | Right: in-page TOC
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  /* On very wide screens, allow a wider layout */
  .nv-gov-layout__inner {
    grid-template-columns: 230px minmax(0, 780px);
    max-width: 1300px;
  }
}

/* Mobile: stack everything into single column */
@media (max-width: 860px) {
  .nv-gov-layout {
    flex-direction: column !important;
  }
  .nv-gov-layout__inner {
    grid-template-columns: 1fr !important;
  }
  .nv-gov-collection__list { gap: .25rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   M. READTIME BADGE (extends previous deploy token)
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --nv-gov-badge-readtime-bg: rgba(0, 154, 228, .15);
  --nv-gov-badge-readtime-border: rgba(0, 154, 228, .40);
  --nv-gov-badge-readtime-text: #BAE6FD;
}
.nv-gov-badge--readtime {
  background: var(--nv-gov-badge-readtime-bg);
  border-color: var(--nv-gov-badge-readtime-border);
  color: var(--nv-gov-badge-readtime-text);
}

/* ══════════════════════════════════════════════════════════════════════════
   N. REDUCED MOTION SAFETY NET EXTENSION
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .nv-gov-collection__link,
  .nv-gov-docnav__item,
  .nv-gov-callout,
  .nv-gov-summary { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   O. PRINT — ADDITIONS (extend existing @media print block)
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
  .nv-gov-collection,
  .nv-gov-docnav { display: none !important; }
  .nv-gov-callout { border-left-width: 3px !important; }
}

/* ── Badge tokens — corporate conservative (OD-BRAND-001 compliant) ────────
   Uses NOVARIC® navy palette; colour only as supporting cue + text label.    */
:root {
  --nv-gov-badge-published-bg:     rgba(11, 107, 115, 0.15);   /* partnership teal tint */
  --nv-gov-badge-published-border: rgba(11, 107, 115, 0.50);
  --nv-gov-badge-published-text:   #0B4F56;                    /* dark teal, 7.1:1 on white */

  --nv-gov-badge-review-bg:     rgba(83, 100, 118, 0.12);      /* slate tint */
  --nv-gov-badge-review-border: rgba(83, 100, 118, 0.40);
  --nv-gov-badge-review-text:   #36444F;

  --nv-gov-badge-draft-bg:     rgba(83, 100, 118, 0.08);
  --nv-gov-badge-draft-border: rgba(83, 100, 118, 0.30);
  --nv-gov-badge-draft-text:   #4D5A6B;

  --nv-gov-badge-superseded-bg:     rgba(106, 76, 39, 0.12);   /* legal brown tint */
  --nv-gov-badge-superseded-border: rgba(106, 76, 39, 0.35);
  --nv-gov-badge-superseded-text:   #5A3D1A;
}

/* Hero badges — on navy background, use lighter tints */
.nv-gov-hero .nv-gov-badge--published {
  background: rgba(11, 107, 115, 0.25);
  border-color: rgba(11, 107, 115, 0.60);
  color: #A8E6EC;
}

/* Status pill — corporate conservative */
.nv-gov-pill--published {
  background: rgba(11, 107, 115, 0.10) !important;
  border: 1px solid rgba(11, 107, 115, 0.40) !important;
  color: #0B4F56 !important;
}
.nv-gov-pill--published::before { content: "\25CF"; color: #0B6B73; font-size: .5rem; }

/* ── nv-gov-layout > .nv-wrap: apply two-column flex ───────────────────────
   Pages where the TOC and content are wrapped in .nv-wrap inside .nv-gov-layout
   need .nv-wrap to behave as a flex row container, not just a max-width wrapper. */
.nv-gov-layout > .nv-wrap {
  display: flex;
  gap: var(--nv-sp-5, 3rem);
  align-items: start;
  width: 100%;
  max-width: var(--nv-gov-layout-max, 1200px);
}
.nv-gov-layout > .nv-wrap > .nv-gov-toc {
  flex-shrink: 0;
  width: var(--nv-gov-toc-width, 220px);
}
.nv-gov-layout > .nv-wrap > .nv-gov-content {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 860px) {
  .nv-gov-layout > .nv-wrap {
    flex-direction: column;
    gap: var(--nv-sp-2, 1rem);
  }
  .nv-gov-layout > .nv-wrap > .nv-gov-toc {
    width: 100%;
  }
}

/* ── Breadcrumb — both class variants, no visible list markers ─────────────── */
/* ── nv-gov-breadcrumb — complete horizontal layout ──────────────────────────
   design-tokens.css defines .nv-breadcrumb but pages use .nv-gov-breadcrumb.
   This block provides the equivalent flex layout and separator.               */
.nv-gov-breadcrumb {
  font-size: .82rem;
  padding: var(--nv-sp-2, 1rem) 0 0;
}
/* Breadcrumb ol — hardened selectors to survive CSS cascade */
nav.nv-gov-breadcrumb ol,
nav[aria-label="Breadcrumb"].nv-gov-breadcrumb ol,
.nv-gov-breadcrumb .nv-wrap ol,
nav[aria-label="Breadcrumb"] .nv-wrap ol {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .25rem .35rem !important;
  list-style: none !important;
  counter-reset: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  flex-direction: row !important;
}
nav.nv-gov-breadcrumb li,
nav[aria-label="Breadcrumb"].nv-gov-breadcrumb li,
.nv-gov-breadcrumb .nv-wrap ol li,
nav[aria-label="Breadcrumb"] .nv-wrap ol li {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  color: var(--nv-text-muted, #4D5A6B);
  flex-shrink: 0;
}
.nv-gov-breadcrumb li::marker,
nav[aria-label="Breadcrumb"] li::marker {
  display: none !important;
  content: "" !important;
}
.nv-gov-breadcrumb li::before,
nav[aria-label="Breadcrumb"] li::before {
  display: none !important;
  content: none !important;
}
.nv-gov-breadcrumb li + li::before,
nav[aria-label="Breadcrumb"] li + li::before {
  content: "/" !important;
  display: inline !important;
  margin-right: .35rem;
  color: var(--nv-border, #D9DFE7);
}
.nv-gov-breadcrumb a,
nav[aria-label="Breadcrumb"] a {
  color: var(--nv-text-muted, #4D5A6B);
  text-decoration: none;
}
.nv-gov-breadcrumb a:hover,
nav[aria-label="Breadcrumb"] a:hover { text-decoration: underline; }
.nv-gov-breadcrumb [aria-current="page"],
nav[aria-label="Breadcrumb"] [aria-current="page"] {
  color: var(--nv-text, #1E2732); font-weight: 500;
}
.nv-gov-breadcrumb .nv-gov-cat-crumb {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600;
  color: var(--nv-cat-accent, var(--nv-action, #0072A9));
  text-decoration: none;
}
.nv-gov-breadcrumb .nv-gov-cat-crumb::before {
  content: '';
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--nv-cat-accent, var(--nv-action, #0072A9)); flex-shrink: 0;
}
.nv-gov-breadcrumb .nv-gov-cat-crumb:hover { text-decoration: underline; }

/* ── Tables inside governance content — prevent narrow column collapse ─────── */
.nv-gov-content table,
.nv-gov-callout table {
  table-layout: fixed;
  width: 100%;
  word-break: break-word;
}
.nv-gov-content table td,
.nv-gov-content table th,
.nv-gov-callout table td,
.nv-gov-callout table th {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
