/* PV8 suite screens. A server-selected link identifies the product before first paint.
   Private workspaces share the existing explicit dark-theme preference. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400;
  src: url("/ui/suite-fonts/plus-jakarta-sans-400.woff") format("woff"); font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600;
  src: url("/ui/suite-fonts/plus-jakarta-sans-600.woff") format("woff"); font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700;
  src: url("/ui/suite-fonts/plus-jakarta-sans-700.woff") format("woff"); font-display: swap;
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 600;
  src: url("/ui/suite-fonts/archivo-600.woff") format("woff"); font-display: swap;
}
@font-face {
  font-family: Fraunces; font-style: normal; font-weight: 500;
  src: url("/ui/suite-fonts/fraunces-500.woff") format("woff"); font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400;
  src: url("/ui/suite-fonts/ibm-plex-mono-400.woff") format("woff"); font-display: swap;
}

:root:has(link[data-pv8-product]) {
  --suite-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --suite-mono: "IBM Plex Mono", ui-monospace, monospace;
  --suite-editorial: Fraunces, Georgia, serif;
  --suite-display: Archivo, var(--suite-sans);
  --pv8-font: var(--suite-sans);
  --pv8-mono: var(--suite-mono);
  --suite-canvas: #f7f9fb;
  --suite-surface: #fff;
  --suite-subtle: #f1f5f9;
  --suite-text: #0f172a;
  --suite-secondary: #475569;
  --suite-border: #cbd5e1;
  --suite-action: #1d4ed8;
  --suite-hover: #173ba3;
  --suite-on-action: #fff;
  --suite-selected: #eaf0fc;
  --suite-radius: 6px;
  --suite-map: #dce4df;
  --suite-positive: #0e6b54;
  --suite-warning: #99500b;
}
:root:has(link[data-pv8-product="move"]) {
  --suite-canvas: #f1f3f5;
  --suite-action: #0f172a;
  --suite-hover: #25364c;
  --suite-radius: 2px;
}
:root:has(link[data-pv8-product="date"]) {
  --suite-canvas: #faf9f6;
  --suite-subtle: #f5f3ee;
  --suite-text: #0b1f3a;
  --suite-action: #0b1f3a;
  --suite-hover: #193654;
  --suite-border: #cbcbd0;
  --suite-selected: #edeae3;
  --suite-radius: 0px;
  --suite-positive: #14532d;
}
:root[data-theme="dark"]:has(link[data-pv8-product]) {
  --suite-canvas: #191d20;
  --suite-surface: #242c31;
  --suite-subtle: #2c353c;
  --suite-text: #e9edf0;
  --suite-secondary: #b0bac1;
  --suite-border: #48545e;
  --suite-action: #abcde0;
  --suite-hover: #cce3ee;
  --suite-on-action: #14242e;
  --suite-selected: #293e4b;
  --suite-map: #263631;
  --suite-positive: #9dceb2;
  --suite-warning: #e8c17e;
}

/* Map the existing workspace, landing and form palettes onto the product. */
html:root:has(link[data-pv8-product]) {
  --pv8-paper: var(--suite-canvas);
  --pv8-ink: var(--suite-text);
  --pv8-muted: var(--suite-secondary);
  --pv8-action: var(--suite-action);
  --pv8-action-hover: var(--suite-hover);
  --pv8-on-action: var(--suite-on-action);
  --pv8-soft: var(--suite-subtle);
  --pv8-rule: var(--suite-border);
  --pv8-selection: var(--suite-selected);
  --pv8-positive: var(--suite-positive);
  --pv8-attention: var(--suite-warning);
  --surface-1: var(--suite-surface);
  --pv8-radius: var(--suite-radius);
  --pv8-radius-md: var(--suite-radius);
  --pv8-radius-lg: var(--suite-radius);
}
body { font-family: var(--suite-sans); }
:where(input, select, textarea, button) { font-family: inherit; }

html:root:has(body > .pv8-suite-header) {
  --chapter-header: 64px; --landing-header: 64px; --move-nav-height: 64px;
}
body > header.pv8-public-header.pv8-suite-header {
  height: 64px;
  --suite-ink: var(--suite-text);
  --suite-muted: var(--suite-secondary);
  --suite-paper: var(--suite-surface);
  --suite-line: var(--suite-border);
  --suite-font: var(--suite-sans);
  --suite-wash: var(--suite-subtle);
}
.pv8-suite-header .pv8-product-tabs {
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
.pv8-suite-header .pv8-product-tabs a {
  border-radius: 0; border-block-end: 3px solid transparent;
}
.pv8-suite-header .pv8-product-tabs a[aria-current] {
  border-color: var(--suite-action); color: var(--suite-action); background: transparent;
}
.pv8-suite-header .pv8-product-tabs a:hover { background: var(--suite-subtle); color: var(--suite-text); }
body > header.pv8-public-header.pv8-suite-header .landing-nav > .landing-register,
body[data-mobile-public-nav] > header.pv8-public-header.pv8-suite-header .landing-mobile-register {
  background: var(--suite-action); color: var(--suite-on-action);
  border-color: var(--suite-action); border-radius: var(--suite-radius);
}
body > header.pv8-public-header.pv8-suite-header #pv8LangToggle {
  border-radius: var(--suite-radius); background: var(--suite-surface);
}
.pv8-suite-header :is(.pv8-product-picker > summary, .pv8-product-options, .pv8-suite-menu[open] > nav) {
  border-radius: var(--suite-radius);
}

/* Next: the register and specialist tools share the fleet's metric strip and map surfaces. */
body.pv8-portfolio .portfolio-pulse,
body.pv8-portfolio .portfolio-panel,
body.pv8-library .vdw-boundary,
body.pv8-profile .profile-metrics {
  background: var(--suite-surface); border: 1px solid var(--suite-border);
  border-radius: var(--suite-radius); box-shadow: none;
}
body.pv8-portfolio .portfolio-pulse article { background: transparent; }
body.pv8-portfolio .portfolio-pulse b,
body.pv8-profile .profile-metrics b,
.vdw :is(input[type="number"], output),
.gw :is(.gw-hm-head, .gw-hm-row, .gw-matrix td) {
  font-family: var(--suite-mono); font-variant-numeric: tabular-nums;
}
body.pv8-portfolio .portfolio-hero h1,
body.pv8-welcome .hero[data-landing-chapter] h1 {
  font-family: var(--suite-sans); letter-spacing: -.04em; font-weight: 600;
}
body.pv8-portfolio #portfolioAssetMap:not([hidden]), .vdw-land-map #landMapBox {
  background-color: var(--suite-map); border-radius: var(--suite-radius);
}
body.pv8-welcome .hero .v2-form {
  background: var(--suite-surface); border: 1px solid var(--suite-border); border-radius: var(--suite-radius);
}

/* Move: the same evidence hierarchy on the public brief and authenticated desks. */
:root:has(link[data-pv8-product="move"]) body {
  --ink: var(--suite-text); --deep: var(--suite-text); --muted: var(--suite-secondary);
  --paper: var(--suite-canvas); --line: var(--suite-border); --wash: var(--suite-subtle);
  color: var(--suite-text); background: var(--suite-canvas);
}
:root:has(link[data-pv8-product="move"]) :is(h1,h2,h3),
.gw .gw-steps :is(h2,h3) { font-family: var(--suite-display); }
.move-workspace :is(.book-case,.book-form,.book-documents,.book-agenda,.book-table,.book-button,.book-import-table),
.rule-library :is(input,select,button), #move :is(.case-input-row,.explore,#brief-search) {
  border-radius: 2px;
}
body.move-workspace :is(.book-case,.book-form,.book-documents,.book-agenda,.book-table) {
  background: var(--suite-surface); border-color: var(--suite-border);
}
.move-workspace :is(.book-facts dd,.book-review-facts dd,time), #move :is(time,.data-table td),
.gw .gw-step-nav, :root:has(link[data-pv8-product="move"]) #location { font-family: var(--suite-mono); font-variant-numeric: tabular-nums; }
body.move-workspace .book-table th { background: var(--suite-subtle); color: var(--suite-secondary); }
body.move-workspace .book-open { color: var(--series-1); }
.gw .gw-step-nav button, .gw .gw-steps .gw-context article { border-radius: 2px; }
.gw .gw-step-nav button[aria-selected="true"] {
  background: var(--suite-text); color: var(--suite-canvas); border-color: var(--suite-text);
}

/* Date: a ruled ledger for published proceedings, citations and approved obligations. */
:root:has(link[data-pv8-product="date"]) body {
  --paper: var(--suite-canvas); --ink: var(--suite-text); --line: var(--suite-border);
  --green: var(--suite-action); --muted: var(--suite-secondary); --lime: var(--suite-selected);
  --sans: var(--suite-sans); --serif: var(--suite-editorial);
  background: var(--paper); color: var(--ink); font-family: var(--sans);
}
:root:has(link[data-pv8-product="date"]) main :is(h1,h2) {
  font-family: var(--suite-editorial); font-weight: 500; letter-spacing: -.025em;
}
:root:has(link[data-pv8-product="date"]) main :is(.button,.outline,input,select,.notice-examples,.site-form,.market-coverage,.rule-follow) {
  border-radius: 0;
}
:root:has(link[data-pv8-product="date"]) :is(.notice-examples,.site-form,.market-coverage,.rule-follow,.watch-actions,.matrix-scroll) {
  background: var(--suite-surface); border-color: var(--suite-border);
}
:root:has(link[data-pv8-product="date"]) :is(time,.row-date,.section-strip,.record-lead strong) {
  font-family: var(--suite-mono); font-variant-numeric: tabular-nums;
}
.matrix-page .matrix thead th, .matrix-page .matrix tfoot th { background: var(--suite-subtle); }
.matrix-page .matrix th[scope="row"] { background: var(--suite-surface); }
#pv8-contract-desk {
  --pc-paper: light-dark(#faf9f6,#191d20);
  --pc-ink: light-dark(#0b1f3a,#e9edf0);
  --pc-white: light-dark(#fff,#242c31);
  --pc-wash: light-dark(#f5f3ee,#2c353c);
  --pc-line: light-dark(#cbcbd0,#48545e);
  --pc-muted: light-dark(#475569,#b0bac1);
  --pc-plum: light-dark(#0b1f3a,#abcde0);
  --pc-green: light-dark(#14532d,#9dceb2);
  font-family: var(--suite-sans);
}
#pv8-contract-desk :is(.pc-screen-title,h2,.pc-bigdate) { font-family: var(--suite-editorial); font-weight: 500; }
#pv8-contract-desk :is(.pc-asof,.pc-days,.pc-due,.pc-code,.pc-qty) { font-family: var(--suite-mono); font-variant-numeric: tabular-nums; }
#pv8-contract-desk :is(.pc-button,.pc-chip,.pc-input,.pc-section,.pc-item) { border-radius: 0; }
#pv8-contract-desk .pc-heading { padding-bottom: .75rem; border-bottom: 2px solid var(--pc-ink); }

/* The fleet register mounts after the workspace shell and supplies its own component styles. */
.portfolio-rethink .portfolio-rethink-head h1 { font-family: var(--suite-sans); letter-spacing: -.04em; }
.portfolio-rethink :is(.portfolio-section,.portfolio-kpi,.portfolio-chart,.portfolio-map-disclosure,
                       .portfolio-analytics-disclosure,.portfolio-runs-disclosure) {
  background: var(--suite-surface); border: 1px solid var(--suite-border);
  border-radius: var(--suite-radius); box-shadow: none;
}
.portfolio-rethink .portfolio-summary {
  padding: .85rem 1rem; margin-block: .75rem; border-block: 1px solid var(--suite-border);
}
.portfolio-rethink :is(.portfolio-summary strong,.portfolio-cliff-date,.portfolio-kpi > strong,.portfolio-coverage dd) {
  font-family: var(--suite-mono); font-variant-numeric: tabular-nums;
}
.portfolio-rethink .portfolio-location-map { background-color: var(--suite-map); border-radius: var(--suite-radius); }
.portfolio-rethink .portfolio-table th { color: var(--suite-secondary); background: var(--suite-subtle); }
.portfolio-rethink .portfolio-filter-bar button[aria-pressed="true"] {
  color: var(--suite-on-action); background: var(--suite-action); border-color: var(--suite-action);
}
.portfolio-rethink .portfolio-filter-bar button:focus-visible { outline-offset: 3px; }

/* Keep the smaller validation note within the map label’s existing line box. */
.vdw-area-mark .vdw-area-note { line-height: 1; }

@media (max-width: 760px) {
  .site-scene .scene-comparison .scene-table { table-layout: fixed; }
}

@media (min-width: 64em) {
  body[data-product-landing="date"] main > .cover:has(#publication) {
    grid-template-columns: minmax(0,7fr) minmax(0,5fr);
    gap: clamp(2rem,4vw,4rem); text-align: start; align-items: center;
  }
  body[data-product-landing="date"] .cover-copy :is(h1,.lede,.audience) { margin-inline: 0; }
  body[data-product-landing="date"] .cover :is(.location-entry,.cover-links) { justify-content: start; }
  body[data-product-landing="date"] .upcoming-dates { grid-template-columns: minmax(0,1fr); }
}
