/*
 * Visual edition — September 2026
 * A quiet editorial layer for rajeshrmahapatra.com.
 * Loaded after the legacy styles so every public page shares one rhythm.
 */

:root {
  --ve-paper: #fbfaf7;
  --ve-paper-raised: #fffefb;
  --ve-ink: #14171f;
  --ve-ink-soft: #3f4652;
  --ve-muted: #69717d;
  --ve-line: #d9d8d2;
  --ve-line-strong: #8d929a;
  --ve-blue: #3659d9;
  --ve-blue-soft: #edf0fc;
  --ve-serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --ve-sans: "Space Grotesk", Inter, system-ui, -apple-system, sans-serif;
  --ve-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ve-shell: min(calc(100% - 3rem), 1320px);
  --ve-reading: 48rem;
  --bg: var(--ve-paper);
  --bg-raise: var(--ve-paper-raised);
  --plate: var(--ve-paper-raised);
  --instrument: #f4f3ef;
  --ink: var(--ve-ink);
  --ink-soft: var(--ve-ink-soft);
  --muted: var(--ve-muted);
  --faint: #8a9099;
  --line: var(--ve-line);
  --line-soft: #e9e7e1;
  --phos: var(--ve-blue);
  --f-display: var(--ve-sans);
  --f-body: var(--ve-serif);
  --f-mono: var(--ve-mono);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--ve-paper);
  scroll-padding-top: 4.25rem;
}

body,
body[data-page-kind] {
  margin: 0;
  background: var(--ve-paper);
  color: var(--ve-ink);
  font-family: var(--ve-serif);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { text-underline-offset: .18em; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ve-blue) !important;
  outline-offset: 3px !important;
  border-radius: 0 !important;
}

img,
svg,
video { max-width: 100%; }

.wrap,
.narrow {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.kbd,
.tbtn,
.breath,
[data-palette],
.command-dialog { display: none !important; }

/* Navigation: one slim, useful line. */
.gnav {
  position: sticky !important;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .7rem max(1.5rem, calc((100vw - 1320px) / 2)) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  background: color-mix(in srgb, var(--ve-paper) 94%, transparent) !important;
  backdrop-filter: blur(14px);
  box-shadow: none !important;
  font-family: var(--ve-sans);
}

.gnav .brand,
.masthead .brand {
  flex: 0 0 auto;
  color: var(--ve-ink) !important;
  font: 650 .9rem/1.15 var(--ve-sans) !important;
  letter-spacing: -.025em !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.gnav .brand em {
  color: inherit !important;
  font-style: normal;
  border: 0 !important;
}

.gnav .links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.8rem, 2vw, 1.65rem) !important;
  min-width: 0;
}

.gnav .links a {
  padding: .25rem 0 !important;
  border: 0 !important;
  color: var(--ve-muted) !important;
  font: 580 .75rem/1.2 var(--ve-sans) !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.gnav .links a:hover,
.gnav .links a.on { color: var(--ve-ink) !important; }

.gnav .links a.on { box-shadow: inset 0 -1px var(--ve-ink); }

.skip,
.skip-link {
  position: fixed !important;
  top: .55rem !important;
  left: .75rem !important;
  z-index: 1000 !important;
  transform: translateY(-180%);
}

.skip:focus,
.skip-link:focus { transform: none; }

/* Shared editorial typography and spacing. */
.label,
.kicker,
.crumb,
.series,
.eyebrow,
.part-kicker {
  color: var(--ve-muted) !important;
  font: 600 .65rem/1.3 var(--ve-mono) !important;
  letter-spacing: .075em !important;
  text-transform: uppercase;
}

.crumb a { color: inherit !important; }

.hubhero,
.dochead {
  padding-top: clamp(2.8rem, 6vw, 5.8rem) !important;
  padding-bottom: clamp(1.8rem, 3vw, 2.7rem) !important;
}

.hubhero h1,
.dochead h1,
.profilecopy h1,
.catalog-hero h1 {
  max-width: 18ch;
  margin: .5rem 0 .85rem !important;
  color: var(--ve-ink) !important;
  font: 620 clamp(2.8rem, 6.4vw, 6.6rem)/.94 var(--ve-sans) !important;
  letter-spacing: -.06em !important;
  text-wrap: balance;
}

.hubhero .sub,
.dochead .sub,
.profileposition,
.catalog-hero .stand {
  max-width: 62rem !important;
  margin: 0 !important;
  color: var(--ve-ink-soft) !important;
  font: 400 clamp(1.05rem, 1.6vw, 1.35rem)/1.52 var(--ve-serif) !important;
  text-align: left !important;
  hyphens: none !important;
}

.btn,
.collection-link,
.doorgo {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  min-height: 0 !important;
  padding: .18rem 0 .22rem !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ve-ink) !important;
  font: 650 .76rem/1.25 var(--ve-sans) !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.btn:hover,
.collection-link:hover,
.doorgo:hover { color: var(--ve-blue) !important; }

.btn.primary {
  padding: .72rem .95rem !important;
  border: 1px solid var(--ve-ink) !important;
  background: var(--ve-ink) !important;
  color: white !important;
}

/* Homepage: a single editorial composition, not a stack of cards. */
body[data-page-kind="home"] .hero3 {
  padding: clamp(3.4rem, 7vw, 7rem) 0 clamp(2.5rem, 5vw, 4.8rem) !important;
  border: 0 !important;
  background: var(--ve-paper) !important;
}

body[data-page-kind="home"] .hero3grid {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

body[data-page-kind="home"] .hero3text {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  column-gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  padding: 0 !important;
}

body[data-page-kind="home"] .hero3text > .label {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
  color: var(--ve-blue) !important;
}

body[data-page-kind="home"] .herostmt {
  grid-column: 1;
  grid-row: 2 / span 3;
  max-width: 15ch !important;
  margin: 0 !important;
  color: var(--ve-ink) !important;
  font: 620 clamp(3.3rem, 7.2vw, 7.35rem)/.91 var(--ve-sans) !important;
  letter-spacing: -.07em !important;
  text-wrap: balance;
}

body[data-page-kind="home"] .hero3text .sub {
  grid-column: 2;
  grid-row: 2;
  max-width: 36rem !important;
  margin: .25rem 0 0 !important;
  color: var(--ve-ink-soft) !important;
  font: 400 clamp(1.05rem, 1.45vw, 1.28rem)/1.56 var(--ve-serif) !important;
  text-align: left !important;
  hyphens: none !important;
}

body[data-page-kind="home"] .hero-actions {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem !important;
  margin-top: 1.5rem !important;
}

body[data-page-kind="home"] .hero3index,
body[data-page-kind="home"] .practice-strip,
body[data-page-kind="home"] .paths { display: none !important; }

body[data-page-kind="home"] .collection-feature {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(2.5rem, 5vw, 4.75rem) 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr) !important;
  gap: clamp(2rem, 7vw, 7rem) !important;
  align-items: end !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page-kind="home"] .collection-feature--text {
  grid-template-columns: minmax(0, 1fr) minmax(240px, .38fr) !important;
}

body[data-page-kind="home"] .collection-feature--text::after {
  content: "01 / Foundations to production";
  align-self: start;
  justify-self: end;
  color: var(--ve-muted);
  font: 500 .68rem/1.4 var(--ve-mono);
  letter-spacing: .04em;
}

body[data-page-kind="home"] .collection-feature:not(.collection-feature--text)::before {
  content: "02 / Intelligence across systems and minds";
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  color: var(--ve-muted);
  font: 500 .68rem/1.4 var(--ve-mono);
  letter-spacing: .04em;
}

body[data-page-kind="home"] .collection-feature h2 {
  max-width: 18ch;
  margin: .45rem 0 .8rem !important;
  color: var(--ve-ink) !important;
  font: 600 clamp(2.25rem, 4.8vw, 4.8rem)/.96 var(--ve-sans) !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}

body[data-page-kind="home"] .collection-feature p {
  max-width: 48rem !important;
  margin: 0 0 1rem !important;
  color: var(--ve-ink-soft) !important;
  font: 400 1.02rem/1.58 var(--ve-serif) !important;
  text-align: left !important;
  hyphens: none !important;
}

body[data-page-kind="home"] .collection-feature img {
  grid-column: 2;
  width: 100% !important;
  max-height: 19rem !important;
  border: 0 !important;
  filter: saturate(.75) contrast(.96);
  object-fit: cover;
}

body[data-page-kind="home"] .worksec {
  margin: clamp(2rem, 5vw, 4.5rem) 0 0 !important;
  padding: clamp(3rem, 6vw, 6rem) 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-ink) !important;
  border-bottom: 1px solid var(--ve-ink) !important;
  background: transparent !important;
}

body[data-page-kind="home"] .worksec .hubhead,
body[data-page-kind="home"] .seriessec .hubhead,
body[data-page-kind="home"] .obsec .hubhead {
  margin-bottom: 1.2rem;
}

body[data-page-kind="home"] .worksec .hubhead h2,
body[data-page-kind="home"] .seriessec .hubhead h2,
body[data-page-kind="home"] .obsec .hubhead h2 {
  margin: .35rem 0 !important;
  font: 600 clamp(2.1rem, 4.2vw, 4.2rem)/.98 var(--ve-sans) !important;
  letter-spacing: -.05em !important;
}

body[data-page-kind="home"] .work-context {
  max-width: 55rem;
  margin: 0 0 2rem !important;
  color: var(--ve-ink-soft) !important;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left !important;
  hyphens: none !important;
}

body[data-page-kind="home"] .workgrid {
  display: block !important;
  counter-reset: work;
}

body[data-page-kind="home"] .wcard,
body[data-page-kind="home"] .wcard:first-child {
  counter-increment: work;
  position: relative;
  display: grid !important;
  grid-template-columns: 3.5rem minmax(0, .82fr) minmax(310px, .58fr) !important;
  grid-template-rows: auto auto 1fr;
  gap: .55rem clamp(1.2rem, 3.5vw, 3.5rem) !important;
  min-height: 0 !important;
  padding: 2rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ve-ink) !important;
  text-decoration: none !important;
}

body[data-page-kind="home"] .wcard::before {
  content: "0" counter(work);
  grid-column: 1;
  grid-row: 1;
  color: var(--ve-muted);
  font: 500 .68rem/1.4 var(--ve-mono);
}

body[data-page-kind="home"] .wcard .wdiag,
body[data-page-kind="home"] .wcard:first-child .wdiag {
  grid-column: 3;
  grid-row: 1 / 5;
  width: 100%;
  max-height: 15rem !important;
  overflow: hidden;
  border: 0 !important;
  background: var(--ve-paper-raised) !important;
}

body[data-page-kind="home"] .wcard .wdiag svg { width: 100%; height: auto; }

body[data-page-kind="home"] .wcard h3,
body[data-page-kind="home"] .wcard:first-child h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ve-ink) !important;
  font: 600 clamp(1.55rem, 2.8vw, 2.65rem)/1.04 var(--ve-sans) !important;
  letter-spacing: -.045em !important;
}

body[data-page-kind="home"] .wcard p {
  grid-column: 2;
  grid-row: 2;
  max-width: 44rem;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ve-ink-soft) !important;
  font: 400 .96rem/1.55 var(--ve-serif) !important;
}

body[data-page-kind="home"] .wcard .doorgo {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  margin-top: .7rem;
}

body[data-page-kind="home"] .seriessec,
body[data-page-kind="home"] .obsec {
  margin: 0 !important;
  padding: clamp(3rem, 6vw, 6rem) 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body[data-page-kind="home"] .seriesgrid {
  display: block !important;
  counter-reset: writing;
  border-top: 1px solid var(--ve-ink);
}

body[data-page-kind="home"] .seriescard {
  counter-increment: writing;
  display: grid !important;
  grid-template-columns: 3.5rem minmax(260px, .7fr) minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  align-items: baseline;
  padding: 1.4rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ve-ink) !important;
  text-decoration: none !important;
}

body[data-page-kind="home"] .seriescard::before {
  content: "0" counter(writing);
  color: var(--ve-muted);
  font: 500 .68rem/1.4 var(--ve-mono);
}

body[data-page-kind="home"] .seriescard .label { display: none; }

body[data-page-kind="home"] .seriescard h3 {
  margin: 0 !important;
  color: inherit !important;
  font: 600 clamp(1.2rem, 2.1vw, 1.8rem)/1.12 var(--ve-sans) !important;
  letter-spacing: -.035em !important;
}

body[data-page-kind="home"] .seriescard p {
  margin: 0 !important;
  color: var(--ve-muted) !important;
  font: 400 .92rem/1.5 var(--ve-serif) !important;
}

body[data-page-kind="home"] .seriesfoot {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem !important;
}

body[data-page-kind="home"] .obsgrid {
  display: block !important;
  border-top: 1px solid var(--ve-ink);
}

body[data-page-kind="home"] .obs {
  display: grid !important;
  grid-template-columns: 12rem minmax(220px, .5fr) minmax(0, 1fr) !important;
  grid-column: auto !important;
  grid-row: auto !important;
  gap: 1.5rem;
  align-items: baseline;
  min-height: 0 !important;
  padding: 1.2rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ve-ink) !important;
  text-decoration: none !important;
}

body[data-page-kind="home"] .obs .label { grid-column: 1; }

body[data-page-kind="home"] .obs h3 {
  grid-column: 2;
  margin: 0 !important;
  color: var(--ve-ink) !important;
  font: 600 1.25rem/1.2 var(--ve-sans) !important;
}

body[data-page-kind="home"] .obs p {
  grid-column: 3;
  margin: 0 !important;
  color: var(--ve-muted) !important;
  font: 400 .9rem/1.5 var(--ve-serif) !important;
}

body[data-page-kind="home"] .obs svg { display: none !important; }

body[data-page-kind="home"] .contact {
  padding: clamp(2.8rem, 5vw, 5rem) 0 !important;
  border-top: 1px solid var(--ve-ink);
}

body[data-page-kind="home"] .contact h2 {
  max-width: 34ch;
  margin: 0 0 1.35rem !important;
  font: 560 clamp(1.55rem, 3vw, 2.75rem)/1.12 var(--ve-sans) !important;
  letter-spacing: -.04em;
}

/* Index pages: lead with the catalogue and make discovery immediate. */
.hubvisual,
.library-routes,
.dossfig,
.mp-viz { display: none !important; }

.featured {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid var(--ve-ink);
}

.feat {
  min-height: 0 !important;
  padding: 1.3rem 1.3rem 1.4rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.feat + .feat { padding-left: 1.3rem !important; border-left: 1px solid var(--ve-line) !important; }
.feat h3 { font: 600 1.15rem/1.2 var(--ve-sans) !important; letter-spacing: -.025em; }
.feat p { color: var(--ve-muted) !important; font: 400 .86rem/1.48 var(--ve-serif) !important; }

.terrgrid { display: none !important; }

/* Older generated writing hubs placed a duplicate featured/topics preamble
   before the filterable catalogue. Hide that whole wrapper until regenerated. */
body:has(#hublist) .wrap:has(> .featured) { display: none !important; }

.hubbar {
  position: sticky;
  top: 3.35rem;
  z-index: 60;
  display: flex !important;
  align-items: center;
  gap: .45rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 1.4rem 0 0 !important;
  padding: .7rem max(1.5rem, calc((100vw - 1320px) / 2)) !important;
  overflow-x: auto;
  border-block: 1px solid var(--ve-line) !important;
  background: color-mix(in srgb, var(--ve-paper) 95%, transparent) !important;
  backdrop-filter: blur(12px);
}

.hubbar input,
.catalog-controls input,
.catalog-controls select,
.radar-controls input {
  min-height: 2.45rem !important;
  padding: .58rem .7rem !important;
  border: 1px solid var(--ve-line-strong) !important;
  border-radius: 0 !important;
  background: var(--ve-paper-raised) !important;
  box-shadow: none !important;
  color: var(--ve-ink) !important;
  font: 550 .78rem/1.2 var(--ve-sans) !important;
}

.hubbar input { flex: 0 0 min(26rem, 42vw); }

.chip,
.radar-filter {
  flex: 0 0 auto;
  min-height: 2.15rem !important;
  padding: .46rem .7rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ve-muted) !important;
  font: 600 .68rem/1.1 var(--ve-sans) !important;
  white-space: nowrap;
}

.chip.on,
.radar-filter.on,
.chip:hover,
.radar-filter:hover {
  background: var(--ve-ink) !important;
  color: white !important;
}

#hublist { padding-top: clamp(2rem, 4vw, 4rem) !important; }

.hubsec { margin: 0 0 clamp(3rem, 6vw, 6rem) !important; }

body[data-page-kind="hub"] .seriesgrid {
  display: block !important;
  border-top: 1px solid var(--ve-ink);
}

body[data-page-kind="hub"] .seriescard {
  display: grid !important;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1fr) !important;
  gap: 2rem !important;
  align-items: baseline;
  min-height: 0 !important;
  padding: 1.1rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ve-ink) !important;
  text-decoration: none !important;
}

body[data-page-kind="hub"] .seriescard h3 {
  margin: 0 !important;
  color: inherit !important;
  font: 600 clamp(1.2rem, 2vw, 1.7rem)/1.15 var(--ve-sans) !important;
  letter-spacing: -.035em !important;
}

body[data-page-kind="hub"] .seriescard p {
  margin: 0 !important;
  color: var(--ve-muted) !important;
  font: 400 .92rem/1.5 var(--ve-serif) !important;
}

body[data-page-kind="hub"] .workgrid {
  display: block !important;
  border-top: 1px solid var(--ve-ink);
}

body[data-page-kind="hub"] .workgrid .wcard {
  display: grid !important;
  grid-template-columns: minmax(0, .75fr) minmax(300px, .55fr) !important;
  grid-template-rows: auto auto 1fr;
  gap: .5rem clamp(1.5rem, 4vw, 4rem) !important;
  min-height: 0 !important;
  padding: 1.6rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-page-kind="hub"] .workgrid .wdiag {
  grid-column: 2;
  grid-row: 1 / 5;
  max-height: 14rem !important;
  border: 0 !important;
  background: var(--ve-paper-raised) !important;
}

body[data-page-kind="hub"] .workgrid .wcard h3,
body[data-page-kind="hub"] .workgrid .wcard p,
body[data-page-kind="hub"] .workgrid .wcard .doorgo {
  grid-column: 1;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body[data-page-kind="hub"] .workgrid .wcard h3 {
  margin-block: 0 !important;
  font: 600 clamp(1.4rem, 2.6vw, 2.35rem)/1.08 var(--ve-sans) !important;
  letter-spacing: -.04em !important;
}

body[data-page-kind="hub"] .workgrid .wcard p {
  margin-block: 0 !important;
  color: var(--ve-muted) !important;
  font: 400 .93rem/1.5 var(--ve-serif) !important;
}

.hubsec .hubhead {
  display: grid !important;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  padding: 0 0 .85rem !important;
  border-bottom: 2px solid var(--ve-ink) !important;
}

.hubsec .hubhead h2 {
  margin: 0 !important;
  font: 600 clamp(1.8rem, 3.5vw, 3.45rem)/1 var(--ve-sans) !important;
  letter-spacing: -.05em !important;
}

.irow,
.hubrow,
.hubrow.compact {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  align-items: baseline;
  padding: .9rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ve-ink) !important;
  text-decoration: none !important;
}

.irow:hover,
.hubrow:hover { color: var(--ve-blue) !important; background: transparent !important; }

.hubrow .ht {
  font: 600 .94rem/1.32 var(--ve-sans) !important;
  letter-spacing: -.015em;
}

.hub-taxonomy {
  color: var(--ve-muted) !important;
  font: 500 .7rem/1.4 var(--ve-mono) !important;
}

/* Collection catalogue: filters and essays stay together; no empty stage. */
.canon-catalog {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 0 3rem !important;
}

.catalog-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .45fr) !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  align-items: end !important;
  margin: 0 !important;
  padding: clamp(2.8rem, 6vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-ink) !important;
}

.catalog-hero .cover { margin: 0 !important; }

.catalog-hero .cover img {
  width: 100%;
  max-height: 22rem;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  filter: saturate(.78) contrast(.96);
}

.catalog-download { margin: 1rem 0 0 !important; }

.catalog-download a {
  display: inline-flex !important;
  width: fit-content;
  padding: .18rem 0 .22rem !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ve-ink) !important;
  font: 650 .76rem/1.3 var(--ve-sans);
  text-decoration: none !important;
}

.catalog-argument { display: none !important; }

.catalog-controls {
  position: sticky !important;
  top: 3.35rem !important;
  z-index: 50;
  display: grid !important;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .55fr) minmax(180px, .55fr) !important;
  gap: .65rem !important;
  margin: 0 !important;
  padding: .8rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  background: color-mix(in srgb, var(--ve-paper) 96%, transparent) !important;
  backdrop-filter: blur(12px);
}

.catalog-status {
  min-height: 0 !important;
  display: flex !important;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 !important;
  padding: .75rem 0 !important;
  color: var(--ve-muted) !important;
  font: 550 .68rem/1.3 var(--ve-mono) !important;
}

.paper-catalog {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 2px solid var(--ve-ink);
  counter-reset: catalogue;
}

.paper-card {
  counter-increment: catalogue;
  display: grid !important;
  grid-template-columns: 3.2rem minmax(210px, .32fr) minmax(300px, .68fr) !important;
  gap: 1.5rem !important;
  align-items: baseline;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1.05rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ve-ink) !important;
  text-decoration: none !important;
}

.paper-card::before {
  content: counter(catalogue, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--ve-muted);
  font: 500 .62rem/1.4 var(--ve-mono);
}

.paper-card .series {
  grid-column: 2;
  grid-row: 1;
}

.paper-card h2 {
  grid-column: 3;
  grid-row: 1;
  margin: 0 !important;
  color: inherit !important;
  font: 600 clamp(1.08rem, 1.7vw, 1.45rem)/1.2 var(--ve-sans) !important;
  letter-spacing: -.025em !important;
}

.paper-card p {
  grid-column: 3;
  grid-row: 2;
  margin: .15rem 0 0 !important;
  color: var(--ve-muted) !important;
  font: 400 .88rem/1.48 var(--ve-serif) !important;
}

.paper-card .topics { display: none !important; }

.catalog-more { margin: 1.5rem 0 0 !important; }

/* Long-form reading: remove the outer card and let the argument breathe. */
.m-paper,
.canon-shell,
body[data-page-kind="canon-paper"] { background: var(--ve-paper) !important; }

.paper-tldr,
.tldr,
.canon-tldr { display: none !important; }

.m-paper { border-top: 0 !important; padding-bottom: 0 !important; }

.m-paper .dochead {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr);
  gap: 1rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  border-bottom: 1px solid var(--ve-ink);
}

.m-paper .dochead .crumb { grid-column: 1 / -1; }

.m-paper .dochead h1 {
  grid-column: 1;
  max-width: 20ch !important;
  font-size: clamp(2.75rem, 5.8vw, 6rem) !important;
}

.paper-brief,
.article-taxonomy {
  grid-column: 2;
  margin: 0 0 1rem !important;
  color: var(--ve-muted) !important;
  font: 400 1rem/1.5 var(--ve-serif) !important;
}

.leadvisual {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 1.5rem 0 2rem !important;
}

.reading {
  width: var(--ve-shell) !important;
  max-width: 1100px !important;
  display: grid !important;
  grid-template-columns: minmax(0, var(--ve-reading)) minmax(180px, 13rem) !important;
  gap: clamp(2.5rem, 7vw, 6rem) !important;
  align-items: start;
  margin: 0 auto !important;
  padding: clamp(2rem, 4vw, 4rem) 0 0 !important;
}

.prose,
.canon-prose {
  min-width: 0;
  max-width: var(--ve-reading) !important;
  color: #282c34 !important;
  font: 400 clamp(17px, 1.22vw, 19px)/1.72 var(--ve-serif) !important;
  letter-spacing: 0 !important;
}

.prose p,
.prose li,
.canon-prose p,
.canon-prose li {
  text-align: left !important;
  hyphens: none !important;
}

.prose > p:first-of-type,
.canon-prose > p:first-of-type {
  max-width: none !important;
  color: var(--ve-ink) !important;
  font-size: 1.13em !important;
  line-height: 1.6 !important;
}

.prose h2,
.canon-prose h2 {
  margin: 2.5em 0 .65em !important;
  padding: .5em 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  color: var(--ve-ink) !important;
  font: 600 clamp(1.75rem, 3.1vw, 2.75rem)/1.08 var(--ve-sans) !important;
  letter-spacing: -.045em !important;
}

.prose h3,
.canon-prose h3 {
  margin: 2em 0 .6em !important;
  color: var(--ve-ink) !important;
  font: 600 clamp(1.28rem, 2vw, 1.7rem)/1.2 var(--ve-sans) !important;
  letter-spacing: -.03em !important;
}

.prose figure,
.canon-prose .figure,
.figure {
  margin: 2.2rem 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.prose svg,
.figure-frame,
.figure-frame.dense,
.mermaid-frame {
  padding: clamp(.55rem, 1.4vw, 1.1rem) !important;
  border: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: var(--ve-paper-raised) !important;
  box-shadow: none !important;
}

.prose .decision-box,
.prose .framework-box,
.prose .evidence-box,
.prose .control-box,
.thought,
.worked,
.mechanism,
.evidence,
.hypothesis,
.boundary,
.decision-rule,
.opening-case,
.lab-intro,
.decision-ending {
  max-width: var(--ve-reading) !important;
  margin: 1.8rem auto !important;
  padding: .9rem 0 .9rem 1.15rem !important;
  border: 0 !important;
  border-left: 2px solid var(--ve-blue) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.prose blockquote,
.canon-prose blockquote {
  margin: 1.8rem 0 !important;
  padding: .2rem 0 .2rem 1.15rem !important;
  border: 0 !important;
  border-left: 2px solid var(--ve-line-strong) !important;
  background: transparent !important;
  color: var(--ve-ink-soft) !important;
}

.prose table,
.canon-prose table {
  border-collapse: collapse !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-ink) !important;
  border-bottom: 1px solid var(--ve-ink) !important;
  background: transparent !important;
  font-size: .82em !important;
}

.prose th,
.canon-prose th {
  background: transparent !important;
  border-bottom: 1px solid var(--ve-ink) !important;
}

.prose td,
.canon-prose td { border-bottom: 1px solid var(--ve-line) !important; }

.mtoc,
.canon-toc,
.toc {
  position: sticky !important;
  top: 5rem !important;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-ink) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ve-muted) !important;
  font-family: var(--ve-sans) !important;
}

.mtoc summary,
.canon-toc > h2,
.toc > h2 {
  padding: .72rem 0 !important;
  border: 0 !important;
  color: var(--ve-ink) !important;
  font: 650 .7rem/1.3 var(--ve-mono) !important;
  letter-spacing: .06em !important;
  text-transform: uppercase;
}

.mtoc nav,
.canon-toc ol,
.toc ol { columns: 1 !important; }

.mtoc a,
.canon-toc a,
.toc a {
  display: block;
  padding: .32rem 0 !important;
  border: 0 !important;
  color: var(--ve-muted) !important;
  font: 500 .68rem/1.4 var(--ve-sans) !important;
  text-decoration: none !important;
}

/* Standalone convergence essays share the same reading canvas. */
body[data-page-kind="canon-paper"] .paper {
  width: var(--ve-shell) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(2.8rem, 6vw, 6rem) 0 3rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page-kind="canon-paper"] .page-grid {
  width: var(--ve-shell) !important;
  max-width: 1180px !important;
  display: block !important;
  margin: 0 auto !important;
}

body[data-page-kind="canon-paper"] .page-grid > article {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page-kind="canon-paper"] .page-grid .reading-column {
  max-width: none !important;
}

body[data-page-kind="canon-paper"] .hero {
  max-width: 100% !important;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ve-ink);
}

body[data-page-kind="canon-paper"] .hero h1 {
  max-width: 17ch !important;
  margin: .65rem 0 1rem !important;
  color: var(--ve-ink) !important;
  font: 620 clamp(2.8rem, 6.3vw, 6.5rem)/.94 var(--ve-sans) !important;
  letter-spacing: -.06em !important;
  text-wrap: balance;
}

body[data-page-kind="canon-paper"] .brief {
  max-width: 56rem !important;
  margin: 0 !important;
  color: var(--ve-ink-soft) !important;
  font: 400 clamp(1.05rem, 1.55vw, 1.3rem)/1.52 var(--ve-serif) !important;
}

.canon-route {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  background: transparent !important;
}

.canon-route a {
  min-width: 0;
  padding: .75rem 1rem .8rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ve-muted) !important;
  text-decoration: none !important;
}

.canon-route a + a { padding-left: 1rem !important; border-left: 1px solid var(--ve-line) !important; }
.canon-route span { font: 500 .58rem/1.3 var(--ve-mono) !important; letter-spacing: .05em; text-transform: uppercase; }
.canon-route strong { display: block; margin-top: .2rem; color: var(--ve-ink) !important; font: 600 .72rem/1.3 var(--ve-sans) !important; }

.masthead { display: none !important; }

body[data-page-kind="canon-paper"] .layout:has(> .canon-layout) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Older essays wrapped the canonical reader inside a second, incompatible
   sidebar grid. Flatten only that ancestor chain before rebuilding one
   consistent prose + contents composition below. */
body[data-page-kind="canon-paper"] :is(main, article, section, div):has(.canon-layout):not(.canon-layout):not(.canon-shell):not(.paper) {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body[data-page-kind="canon-paper"] .canon-layout:has(> .canon-prose) {
  display: grid !important;
  grid-template-columns: minmax(0, var(--ve-reading)) minmax(180px, 13rem) !important;
  gap: clamp(2.5rem, 7vw, 6rem) !important;
  align-items: start;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.75rem) !important;
}

body[data-page-kind="canon-paper"] .canon-layout > .canon-prose:is(main, article, div, section) {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body[data-page-kind="canon-paper"] .canon-layout > .canon-toc {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.paper-taxonomy,
.related,
.references,
.glossary {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Profile, library, books and work: useful content without tiles. */
.profilehero {
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  padding-top: clamp(2.8rem, 6vw, 6rem) !important;
}

.profileportrait {
  width: 150px !important;
  margin: 2rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.profileportrait img { height: auto !important; filter: grayscale(.18) contrast(1.02); }

.editorial-section {
  width: var(--ve-shell);
  max-width: 1320px;
  margin: 0 auto !important;
  padding: clamp(2.5rem, 5vw, 5rem) 0 !important;
  border-top: 1px solid var(--ve-line);
}

.editorial-section > header,
.section-intro {
  display: grid;
  grid-template-columns: minmax(240px, .48fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.editorial-section > header h2,
.section-intro h2 {
  margin: 0 !important;
  font: 600 clamp(1.9rem, 3.7vw, 3.6rem)/1 var(--ve-sans) !important;
  letter-spacing: -.05em !important;
}

.editorial-section > header p,
.section-intro p { margin: 0 !important; color: var(--ve-muted) !important; }

.practice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 2rem !important;
  border-top: 1px solid var(--ve-ink);
}

.practice-card {
  padding: 1.4rem 1.5rem 1.5rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.practice-card:nth-child(even) { padding-left: 1.5rem !important; border-left: 1px solid var(--ve-line) !important; }
.practice-card h3 { font: 600 1.25rem/1.2 var(--ve-sans) !important; letter-spacing: -.03em; }
.practice-card p,
.practice-card li { color: var(--ve-muted) !important; font-size: .9rem; }

.machine-panel,
.book-card,
.work-card,
.dossier,
.apane {
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Footer stays quiet and close to the content. */
.gfoot {
  width: var(--ve-shell) !important;
  max-width: 1320px !important;
  min-height: 0 !important;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: clamp(2.5rem, 5vw, 5rem) auto 0 !important;
  padding: 1.15rem 0 1.8rem !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-ink) !important;
  background: transparent !important;
  color: var(--ve-muted) !important;
  font: 500 .68rem/1.4 var(--ve-sans) !important;
}

.gfoot .links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem !important; }
.gfoot a { color: inherit !important; text-decoration: none !important; }
.gfoot a:hover { color: var(--ve-ink) !important; }

/* Responsive rules keep the editorial hierarchy without horizontal drift. */
@media (max-width: 980px) {
  :root { --ve-shell: min(calc(100% - 2rem), 1320px); }

  body[data-page-kind="home"] .hero3text,
  body[data-page-kind="home"] .collection-feature,
  body[data-page-kind="home"] .collection-feature--text,
  .catalog-hero,
  .m-paper .dochead,
  .editorial-section > header,
  .section-intro {
    grid-template-columns: 1fr !important;
  }

  body[data-page-kind="home"] .herostmt,
  body[data-page-kind="home"] .hero3text .sub,
  body[data-page-kind="home"] .hero-actions,
  .paper-brief,
  .article-taxonomy,
  body[data-page-kind="home"] .collection-feature img {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body[data-page-kind="home"] .hero3text .sub { margin-top: 1.5rem !important; }
  body[data-page-kind="home"] .collection-feature--text::after,
  body[data-page-kind="home"] .collection-feature:not(.collection-feature--text)::before { display: none; }
  body[data-page-kind="home"] .collection-feature img { max-width: 34rem; }

  .reading,
  body[data-page-kind="canon-paper"] .canon-layout:has(> .canon-prose) {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: var(--ve-reading) !important;
  }

  .mtoc,
  .canon-toc,
  .toc {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-height: none;
    margin-bottom: 1.5rem !important;
  }

  body[data-page-kind="canon-paper"] .canon-layout > .canon-prose:is(main, article, div, section) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
}

@media (max-width: 760px) {
  :root { --ve-shell: calc(100% - 1.35rem); }

  .gnav {
    gap: 1rem;
    padding-inline: .675rem !important;
  }

  .gnav .brand {
    max-width: 7.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gnav .links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gnav .links::-webkit-scrollbar { display: none; }

  body[data-page-kind="home"] .hero3 { padding-top: 2.8rem !important; }
  body[data-page-kind="home"] .herostmt { font-size: clamp(2.85rem, 13vw, 4.5rem) !important; }

  body[data-page-kind="home"] .wcard,
  body[data-page-kind="home"] .wcard:first-child {
    grid-template-columns: 2rem minmax(0, 1fr) !important;
  }

  body[data-page-kind="home"] .wcard .wdiag,
  body[data-page-kind="home"] .wcard:first-child .wdiag {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: .8rem;
    max-height: 13rem !important;
  }

  body[data-page-kind="home"] .seriescard {
    grid-template-columns: 2rem minmax(0, 1fr) !important;
  }

  body[data-page-kind="home"] .seriescard p { grid-column: 2; }

  body[data-page-kind="home"] .obs {
    grid-template-columns: 1fr !important;
    gap: .35rem !important;
  }

  body[data-page-kind="home"] .obs .label,
  body[data-page-kind="home"] .obs h3,
  body[data-page-kind="home"] .obs p { grid-column: 1; }

  .featured,
  .practice-grid { grid-template-columns: 1fr !important; }

  .feat,
  .feat + .feat,
  .practice-card,
  .practice-card:nth-child(even) {
    padding: 1.1rem 0 !important;
    border-left: 0 !important;
  }

  .hubbar {
    top: 3.35rem;
    padding-inline: .675rem !important;
  }

  .hubbar input { flex-basis: min(19rem, 70vw); }

  .hubsec .hubhead,
  .irow,
  .hubrow,
  .hubrow.compact {
    grid-template-columns: 1fr !important;
    gap: .25rem !important;
  }

  body[data-page-kind="hub"] .seriescard,
  body[data-page-kind="hub"] .workgrid .wcard {
    grid-template-columns: 1fr !important;
    gap: .45rem !important;
  }

  body[data-page-kind="hub"] .workgrid .wdiag {
    grid-column: 1;
    grid-row: 4;
    margin-top: .65rem;
  }

  .catalog-controls {
    position: static !important;
    grid-template-columns: 1fr !important;
  }

  .paper-card {
    grid-template-columns: 2rem minmax(0, 1fr) !important;
    gap: .35rem .75rem !important;
  }

  .paper-card .series,
  .paper-card h2,
  .paper-card p {
    grid-column: 2;
    grid-row: auto;
  }

  .canon-route { grid-template-columns: 1fr 1fr; }
  .canon-route .route-centre { display: none; }

  .prose,
  .canon-prose { font-size: 17px !important; line-height: 1.66 !important; }

  .table-wrap,
  .prose figure,
  .canon-prose .figure { overflow-x: auto !important; }

  .prose table,
  .canon-prose table { min-width: 36rem; }

  .profilehero { grid-template-columns: 1fr !important; }
  .profileportrait { grid-row: 1; width: 105px !important; margin-top: 0 !important; }

  .gfoot { flex-direction: column; }
  .gfoot .links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .gnav,
  .gfoot,
  .canon-route,
  .hubbar,
  .catalog-controls,
  .mtoc,
  .canon-toc { display: none !important; }

  body,
  .paper,
  .m-paper { background: white !important; }
}


/* Home as a house: one breath, three doors, two research rooms. */
body[data-page-kind="home"] .herostmt {
  font: 620 clamp(2.65rem, 5.6vw, 5.45rem)/.94 var(--ve-sans) !important;
  letter-spacing: -.06em !important;
  max-width: 13ch !important;
}

body[data-page-kind="home"] .hero-actions { display: none !important; }

body[data-page-kind="home"] .home-doors {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.85rem;
  margin-top: 1.65rem;
}

body[data-page-kind="home"] .home-doors a {
  color: var(--ve-ink);
  font: 650 .86rem/1.2 var(--ve-sans);
  letter-spacing: -.01em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: .12rem 0 .18rem;
}

body[data-page-kind="home"] .home-doors a:hover { color: var(--ve-blue); }

body[data-page-kind="home"] .home-rooms {
  width: var(--ve-shell);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 4.2rem) 0 clamp(2.8rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--ve-line);
}

body[data-page-kind="home"] .home-room {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-top: .15rem;
}

body[data-page-kind="home"] .home-room .kicker {
  display: block;
  margin-bottom: .55rem;
  color: var(--ve-muted);
  font: 500 .68rem/1.4 var(--ve-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-page-kind="home"] .home-room h2 {
  max-width: 16ch;
  margin: 0 0 .7rem;
  color: var(--ve-ink);
  font: 600 clamp(1.55rem, 2.6vw, 2.35rem)/1.05 var(--ve-sans);
  letter-spacing: -.04em;
  text-wrap: balance;
}

body[data-page-kind="home"] .home-room p {
  max-width: 36rem;
  margin: 0;
  color: var(--ve-ink-soft);
  font: 400 1.02rem/1.55 var(--ve-serif);
}

body[data-page-kind="home"] .home-room:hover h2 { color: var(--ve-blue); }

body[data-page-kind="home"] .wdiag { display: none !important; }

body[data-page-kind="home"] .worksec,
body[data-page-kind="home"] .seriessec,
body[data-page-kind="home"] .obsec {
  padding-top: clamp(2rem, 4vw, 3.6rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.6rem) !important;
}

@media (max-width: 820px) {
  body[data-page-kind="home"] .hero3text { grid-template-columns: 1fr !important; }
  body[data-page-kind="home"] .herostmt,
  body[data-page-kind="home"] .hero3text .sub,
  body[data-page-kind="home"] .home-doors {
    grid-column: 1;
    grid-row: auto;
  }
  body[data-page-kind="home"] .home-rooms { grid-template-columns: 1fr; }
}


/* Inner rooms of the house: Work, Writing, Research, Library, Profile. */
body:has(.hubsec) .featured,
body:has(.hubsec) .terrgrid,
body:has(.workgrid):not([data-page-kind="home"]) .workgrid {
  gap: clamp(1rem, 3vw, 2.2rem) clamp(1.4rem, 4vw, 3rem) !important;
}

body:has(.hubsec) .feat,
body:has(.hubsec) .feat + .feat,
body:has(.hubsec) .terrcell,
body:has(.hubsec) .practice-card {
  padding: 1.15rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:has(.hubsec) .btn.primary,
body:has(.profilehero) .btn.primary {
  padding: .18rem 0 .22rem !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  background: transparent !important;
  color: var(--ve-ink) !important;
}

body:has(.workgrid):not([data-page-kind="home"]) .wdiag {
  display: none !important;
}

body:has(.profilehero) .profilehero {
  gap: clamp(1.4rem, 4vw, 3.2rem) !important;
  padding-top: clamp(2.2rem, 5vw, 4.2rem) !important;
}

body:has(.hubbar) .hubbar {
  border-bottom: 1px solid var(--ve-line);
}

body:has(.obsgrid) .obs {
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* Rooms of the house: work, writing, research, library, profile. */
body[data-page-kind="hub"] .hubhero,
body[data-page-kind="profile"] .profilehero {
  padding-top: clamp(3.2rem, 7vw, 6.4rem) !important;
  padding-bottom: clamp(2.2rem, 4.2vw, 3.8rem) !important;
}

body[data-page-kind="hub"] .hubhero h1,
body[data-page-kind="profile"] .profilecopy h1 {
  max-width: 14ch;
  margin-bottom: .7rem !important;
  font: 620 clamp(2.35rem, 5vw, 4.6rem)/.94 var(--ve-sans) !important;
  letter-spacing: -.055em !important;
}

body[data-page-kind="hub"] .hubhero .sub,
body[data-page-kind="profile"] .profileposition {
  max-width: 42rem !important;
  font: 400 clamp(1.02rem, 1.4vw, 1.22rem)/1.55 var(--ve-serif) !important;
}

body[data-page-kind="hub"] .kicker,
body[data-page-kind="profile"] .kicker {
  margin-bottom: .35rem;
  color: var(--ve-muted) !important;
  font: 500 .62rem/1.4 var(--ve-mono) !important;
  letter-spacing: .055em !important;
}

body[data-page-kind="hub"] .hubvisual,
body[data-page-kind="hub"] .wdiag,
body[data-page-kind="hub"] .dossfig,
body[data-page-kind="hub"] .mp-viz,
body[data-page-kind="hub"] .minihisto,
body[data-page-kind="hub"] .miniradar,
body[data-page-kind="hub"] .minigraph { display: none !important; }

body[data-page-kind="hub"] .flaggrid.workgrid,
body[data-page-kind="hub"] .workgrid {
  display: block !important;
  grid-template-columns: none !important;
  margin-top: .4rem;
  border-top: 1px solid var(--ve-ink);
}

body[data-page-kind="hub"] .workgrid .wcard,
body[data-page-kind="hub"] .workgrid .wcard:first-child {
  display: grid !important;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 1.2rem 2.5rem !important;
  align-items: baseline;
  min-height: 0 !important;
  padding: 1.35rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-page-kind="hub"] .workgrid .wcard h3,
body[data-page-kind="hub"] .workgrid .wcard p,
body[data-page-kind="hub"] .workgrid .wcard .doorgo {
  grid-column: auto !important;
  grid-row: auto !important;
}

body[data-page-kind="hub"] .workgrid .wcard h3 {
  margin: 0 !important;
  font: 600 clamp(1.2rem, 2vw, 1.7rem)/1.12 var(--ve-sans) !important;
  letter-spacing: -.03em !important;
}

body[data-page-kind="hub"] .workgrid .wcard p {
  margin: 0 !important;
  color: var(--ve-muted) !important;
  font: 400 .95rem/1.5 var(--ve-serif) !important;
}

body[data-page-kind="hub"] .workgrid .wcard .doorgo { display: none !important; }

body[data-page-kind="hub"] .morework { margin-top: 2.2rem !important; }

body[data-page-kind="hub"] .hubbar {
  margin-top: .2rem !important;
  padding-block: .55rem !important;
  border-block: 0 !important;
  border-bottom: 1px solid var(--ve-line) !important;
  background: color-mix(in srgb, var(--ve-paper) 96%, transparent) !important;
}

body[data-page-kind="hub"] .chip {
  min-height: 0 !important;
  padding: .22rem 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ve-muted) !important;
  font: 600 .72rem/1.2 var(--ve-sans) !important;
}

body[data-page-kind="hub"] .chip.on,
body[data-page-kind="hub"] .chip:hover {
  background: transparent !important;
  color: var(--ve-ink) !important;
  box-shadow: inset 0 -1px var(--ve-ink);
}

body[data-page-kind="hub"] .hubsec { margin-bottom: clamp(2.4rem, 5vw, 4.5rem) !important; }

body[data-page-kind="hub"] .hubsec .hubhead {
  padding-bottom: .7rem !important;
  border-bottom: 1px solid var(--ve-ink) !important;
}

body[data-page-kind="hub"] .hubsec .hubhead h2 {
  font: 600 clamp(1.45rem, 2.6vw, 2.4rem)/1.05 var(--ve-sans) !important;
}

body[data-page-kind="hub"] .irow,
body[data-page-kind="hub"] .hubrow {
  padding: 1.05rem 0 !important;
}

body[data-page-kind="hub"] .seriesgrid { margin-top: .2rem; }

.dossier,
.dossier.flip {
  margin: 0 !important;
  padding: clamp(2.2rem, 4.5vw, 3.8rem) 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dossgrid {
  display: block !important;
  grid-template-columns: none !important;
}

.dossq {
  max-width: 36ch;
  margin: .45rem 0 0 !important;
  color: var(--ve-ink) !important;
  font: 600 clamp(1.35rem, 2.3vw, 2.15rem)/1.14 var(--ve-sans) !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

.dossthesis,
.dosscontrib,
.dossfind {
  max-width: 46rem;
  color: var(--ve-ink-soft) !important;
  font: 400 1rem/1.58 var(--ve-serif) !important;
}

.dossbody .ctlinks { margin-top: 1.1rem; }

body[data-page-kind="hub"] .btn.primary,
body[data-page-kind="profile"] .btn.primary {
  padding: .18rem 0 .22rem !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  background: transparent !important;
  color: var(--ve-ink) !important;
}

body[data-page-kind="hub"] .machine-panel {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1.7rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ve-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page-kind="hub"] .machine-panel:first-of-type { border-top: 1px solid var(--ve-ink) !important; }

body[data-page-kind="hub"] .machine-panel h2 {
  max-width: 16ch;
  margin: .35rem 0 .55rem !important;
  font: 600 clamp(1.45rem, 2.5vw, 2.2rem)/1.08 var(--ve-sans) !important;
  letter-spacing: -.035em !important;
}

body[data-page-kind="hub"] .machine-panel p {
  max-width: 40rem;
  margin: 0 !important;
  color: var(--ve-ink-soft) !important;
  font: 400 1rem/1.55 var(--ve-serif) !important;
}

body[data-page-kind="profile"] .profilehero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) !important;
  gap: clamp(1.8rem, 5vw, 4.5rem) !important;
  align-items: end !important;
}

body[data-page-kind="profile"] .profileportrait {
  width: 230px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-page-kind="profile"] .profileportrait img {
  width: 100%;
  height: auto !important;
  filter: grayscale(.08) contrast(1.03);
}

body[data-page-kind="profile"] .profilerole {
  margin: 0 0 .85rem !important;
  color: var(--ve-muted) !important;
  font: 500 .78rem/1.35 var(--ve-sans) !important;
  letter-spacing: .02em;
}

body[data-page-kind="profile"] .profileactions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.7rem;
  margin-top: 1.45rem;
}

body[data-page-kind="profile"] .aboutsplit {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(1.6rem, 5vw, 4rem) !important;
  margin-top: clamp(2rem, 4vw, 3.4rem);
  padding-top: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--ve-line);
}

body[data-page-kind="profile"] .apane {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body[data-page-kind="profile"] .tchip {
  display: inline !important;
  margin: 0 .7rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ve-muted) !important;
  font: 500 .74rem/1.7 var(--ve-sans) !important;
}

body[data-page-kind="profile"] .facts {
  margin-top: 2.4rem !important;
  max-width: 46rem;
}

body[data-page-kind="profile"] .facts dl {
  display: grid;
  grid-template-columns: minmax(9rem, .32fr) minmax(0, 1fr);
  gap: .55rem 1.5rem;
}

body[data-page-kind="profile"] .facts dt {
  color: var(--ve-muted);
  font: 500 .72rem/1.45 var(--ve-mono);
}

body[data-page-kind="profile"] .facts dd {
  margin: 0;
  font: 400 .95rem/1.5 var(--ve-serif);
}

@media (max-width: 760px) {
  body[data-page-kind="hub"] .workgrid .wcard,
  body[data-page-kind="hub"] .workgrid .wcard:first-child,
  body[data-page-kind="profile"] .aboutsplit {
    grid-template-columns: 1fr !important;
    gap: .35rem !important;
  }
  body[data-page-kind="profile"] .profilehero {
    grid-template-columns: 1fr !important;
  }
  body[data-page-kind="profile"] .profileportrait {
    grid-row: 1;
    width: 120px !important;
  }
  body[data-page-kind="profile"] .facts dl {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
}
/* Voice: strip report chrome. Keep figures and the prose. */
.article-taxonomy,
.series-mark,
.tag-mark,
.series-compass,
.series-route,
.paper-tldr,
.paper-brief,
.reading-note,
.box-label,
.mtoc,
.kbd,
.tbtn,
.dv-index,
.canon-route,
.article-taxonomy + .label { display: none !important; }

.crumb.label { color: var(--ve-muted); font-size: .78rem; letter-spacing: 0; text-transform: none; }

.evidence-box {
  border: 0 !important;
  border-left: 2px solid var(--ve-line) !important;
  background: transparent !important;
  padding: .4rem 0 .4rem 1rem !important;
  box-shadow: none !important;
}

.prose > p { margin: 0 0 1.15em !important; }
.prose h2 { margin: 2.1em 0 .7em !important; }
.leadvisual { margin: 1.4rem 0 2rem !important; }
