@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #13223f;
  --blue: #2b4570;
  --accent: #1e40af;
  --text: #2A2A2A;
  --muted: #4a5568;
  --rule: #c8d0e0;
  --bg: #ffffff;
  --bg-warm: #fafbfc;
  --bg-panel: #f4f6fa;
  --mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: #012A21;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Base Editorial Layout Components */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 22px 84px;
}

#portfolio-view {
  --navy: #F5F2EA;
  --blue: #A6925C;
  --accent: #E5B465;
  --text: #F5F2EA;
  --muted: #D6D6D1;
  --bronze: #59522B;
  --rule: rgba(229, 180, 101, 0.32);
  --bg: rgba(245, 242, 234, 0.045);
  --bg-warm: #012A21;
  --bg-panel: #1A250F;
  color: var(--text);
  min-height: 100vh;
}

/* Thin Editorial Lines */
hr.thin {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

/* Headers */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.62;
  margin-bottom: 16px;
}

p strong {
  color: var(--navy);
  font-weight: 600;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ── PORTFOLIO LAYOUT (Asymmetrical Two-Column) ── */
.header-archival {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.header-archival .tag-archival {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.15em;
    opacity: 0;
    transform: scale(0.98);
  }

  45% {
    opacity: 0.6;
  }

  100% {
    letter-spacing: 0.045em;
    opacity: 1;
    transform: scale(1);
  }
}

.header-archival h1.title-name {
  font-size: 25px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  grid-column: 2;
  text-align: center;
  color: var(--navy);
  animation: tracking-in-expand 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-archival .tag-affiliation {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}

/* Split Columns */
.portfolio-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 54px;
}

/* Sidebar Context */
.portfolio-sidebar {
  position: sticky;
  top: 48px;
  height: fit-content;
}

.competition-logo-clicker {
  width: 112px;
  min-width: 112px;
  border: 1px solid var(--rule);
  background: #f5f2ea;
  padding: 16px;
  cursor: pointer;
}

.competition-logo-clicker img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
}

.competition-cover-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 24px 0 30px;
}

.competition-cover-lockup img {
  max-width: 150px;
  max-height: 82px;
  object-fit: contain;
}

.competition-cover-lockup .partner-logo {
  max-width: 210px;
}

.competition-team-block {
  margin: 30px 0 38px;
  text-align: center;
}

.competition-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 12px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.competition-team li {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px 16px;
  border-right: 1px solid var(--rule);
  color: var(--navy);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.competition-team li:last-child {
  border-right: 0;
}

.case-overview {
  margin-top: 18px;
}

.case-overview-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.case-overview-heading span,
.case-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-overview-heading h2 {
  margin: 0;
  font-size: 25px;
}

.case-challenge {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.case-challenge p {
  max-width: 760px;
  margin: 8px 0 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy);
}

.case-overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.case-brief {
  padding: 22px 20px 24px;
  border-right: 1px solid var(--rule);
}

.case-brief:first-child {
  padding-left: 0;
}

.case-brief:last-child {
  padding-right: 0;
  border-right: 0;
}

.case-brief ul {
  list-style: none;
  margin-top: 14px;
}

.case-brief ul li {
  position: relative;
  padding-left: 13px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.case-brief ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.case-method ol {
  list-style: none;
  margin-top: 14px;
  counter-reset: method;
}

.case-method li {
  position: relative;
  padding: 0 0 18px 22px;
  font-size: 11.5px;
  line-height: 1.25;
  counter-increment: method;
}

.case-method li::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
}

.case-method li::after {
  content: '\2193';
  position: absolute;
  left: 2px;
  bottom: 2px;
  color: var(--rule);
}

.case-method li:last-child {
  padding-bottom: 0;
}

.case-method li:last-child::after {
  content: none;
}

.case-outcome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
}

.case-outcome .case-label {
  grid-row: 1 / 3;
}

.case-outcome strong {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 23px;
  color: var(--navy);
}

.case-outcome span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--navy);
  text-align: right;
}

.case-outcome small {
  grid-column: 2 / 4;
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
  margin: 28px 0;
}

.metric-strip>div {
  padding: 18px 12px;
  border-right: 1px solid var(--rule);
}

.metric-strip>div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  color: var(--navy);
}

.metric-strip span {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
}

.research-figure {
  margin: 30px 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.research-figure img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: var(--bg-warm);
}

.research-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.research-figure figcaption strong {
  display: block;
  color: var(--navy);
}

.source-note {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  font-size: 12px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.framework-entry {
  border-top: 2px solid var(--navy);
  padding-top: 12px;
}

.framework-entry h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.framework-entry p {
  font-size: 12.5px;
}

.certificate-figure img {
  border: 1px solid var(--rule);
}

/* Competition dossier: publication-grade interactive figures */
.interactive-research-figure {
  margin: 34px 0;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0 20px;
  break-inside: avoid;
}

.interactive-research-figure>header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}

.interactive-research-figure>header span,
.model-chapter-head span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.interactive-research-figure>header h2 {
  margin: 0;
  font-size: 21px;
}

.interactive-research-figure figcaption {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.interactive-research-figure figcaption strong {
  color: var(--navy);
}

.figure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.figure-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--muted);
}

.figure-legend i {
  width: 18px;
  height: 2px;
  display: inline-block;
  background: var(--accent);
}

.figure-legend .legend-cause,
.figure-legend .legend-node {
  height: 9px;
  border: 1px solid var(--navy);
  background: var(--bg);
}

.figure-legend .legend-outcome,
.figure-legend .legend-intervention {
  height: 9px;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
}

.figure-legend .legend-feedback {
  height: 9px;
  border: 1px dashed var(--accent);
  background: transparent;
}

.fishbone-canvas {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 150px;
  grid-template-rows: 1fr 92px 1fr;
  grid-template-areas: 'supply market process callout' '. center center callout' 'external finance information callout';
  gap: 18px 22px;
  padding: 20px 0;
}

.fishbone-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}

.diagram-line,
.diagram-arrow {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.diagram-arrow {
  stroke: var(--accent);
  stroke-width: 3;
}

.fish-node {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 138px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--rule);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.fish-node:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(19, 34, 63, .08);
}

.fish-node h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.fish-node ul {
  list-style: none;
}

.fish-node li {
  margin: 4px 0;
  font-size: 11.5px;
  line-height: 1.3;
}

.fish-node.supply {
  grid-area: supply;
}

.fish-node.market {
  grid-area: market;
}

.fish-node.process {
  grid-area: process;
}

.fish-node.external {
  grid-area: external;
}

.fish-node.finance {
  grid-area: finance;
}

.fish-node.information {
  grid-area: information;
}

.fish-center {
  grid-area: center;
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  width: 178px;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.fish-center span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  opacity: .72;
}

.fish-center strong {
  display: block;
  margin-top: 2px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
}

.fish-callout {
  grid-area: callout;
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 22px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  text-align: center;
}

.fish-callout strong {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 31px;
  color: var(--navy);
}

.fish-callout span,
.fish-callout small {
  display: block;
}

.fish-callout span {
  font-size: 11px;
}

.fish-callout small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.supply-flow-canvas {
  position: relative;
  min-height: 520px;
  padding: 145px 0 130px;
  display: grid;
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  gap: 10px;
}

.supply-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.supply-flow-lines path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  marker-end: url(#agro-arrow);
  vector-effect: non-scaling-stroke;
}

.supply-flow-lines marker path {
  fill: var(--accent);
  stroke: none;
}

.supply-flow-lines .feedback-path {
  stroke: var(--accent);
  stroke-dasharray: 6 5;
}

.flow-node {
  position: relative;
  z-index: 2;
  min-height: 108px;
  padding: 12px 8px;
  border: 1px solid var(--rule);
  background: var(--bg);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}

.flow-node:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.flow-node>span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
}

.flow-node strong {
  display: block;
  margin: 9px 0 7px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  line-height: 1.15;
  color: var(--navy);
}

.flow-node small {
  display: block;
  font-size: 9px;
  line-height: 1.25;
  color: var(--muted);
}

.intervention {
  position: absolute;
  z-index: 2;
  width: 270px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
}

.intervention.climate {
  top: 20px;
  left: 0;
}

.intervention.ml {
  bottom: 18px;
  left: 14%;
}

.intervention>span {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--accent);
}

.intervention strong {
  display: block;
  margin: 3px 0;
  color: var(--navy);
}

.intervention p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
}

/* Competition dossier: technical model chapters */
.model-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 28px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.model-chapter-head strong {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--navy);
}

.model-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 26px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.model-input-grid>div {
  padding: 13px 15px;
  background: var(--bg);
}

.model-input-grid strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  color: var(--navy);
}

.model-input-grid span {
  display: block;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
}

.process-steps {
  list-style: none;
  counter-reset: process;
  margin: 16px 0 26px;
  border-left: 1px solid var(--rule);
}

.process-steps li {
  position: relative;
  padding: 0 0 16px 36px;
  counter-increment: process;
  font-size: 12px;
}

.process-steps li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  left: -12px;
  top: -2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
}

.decision-path {
  display: flex;
  align-items: stretch;
  margin: 24px 0 30px;
  border-block: 1px solid var(--rule);
}

.decision-path span {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 10px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--navy);
}

.decision-path b {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 400;
  transform: rotate(-90deg);
}

.cri-formula {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--rule);
  text-align: center;
  background: var(--bg-panel);
}

.cri-formula span,
.cri-formula small {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.cri-formula span {
  font-size: 9px;
  color: var(--accent);
}

.cri-formula strong {
  display: block;
  margin: 8px 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  color: var(--navy);
}

.cri-formula small {
  font-size: 8px;
  color: var(--muted);
}

.cri-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 30px;
  border: 1px solid var(--rule);
}

.cri-zones>div {
  padding: 18px;
  border-right: 1px solid var(--rule);
}

.cri-zones>div:last-child {
  border-right: 0;
}

.cri-zones strong,
.cri-zones span {
  display: block;
}

.cri-zones strong {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 25px;
  color: var(--navy);
}

.cri-zones span {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--accent);
}

.cri-zones p {
  margin: 8px 0 0;
  font-size: 10.5px;
}

.cri-zones .safe {
  border-top: 3px solid #39745c;
}

.cri-zones .warning {
  border-top: 3px solid #b18433;
}

.cri-zones .red {
  border-top: 3px solid #9a403a;
}

@media (max-width: 700px) {
  .competition-team {
    grid-template-columns: 1fr;
  }

  .competition-team li {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .competition-team li:last-child {
    border-bottom: 0;
  }

  .case-overview-grid {
    grid-template-columns: 1fr;
  }

  .case-brief,
  .case-brief:first-child,
  .case-brief:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .case-brief:last-child {
    border-bottom: 0;
  }

  .case-outcome {
    grid-template-columns: 1fr;
  }

  .case-outcome .case-label,
  .case-outcome small {
    grid-row: auto;
    grid-column: auto;
  }

  .case-outcome span {
    text-align: left;
  }

  .metric-strip,
  .framework-grid {
    grid-template-columns: 1fr 1fr;
  }

  .competition-cover-lockup {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .fishbone-canvas {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 'supply market' 'process external' 'finance information' 'center callout';
  }

  .fishbone-lines {
    display: none;
  }

  .fish-center {
    justify-self: stretch;
    width: auto;
  }

  .fish-callout {
    align-self: stretch;
  }

  .supply-flow-canvas {
    min-height: 0;
    padding: 150px 0 145px;
    grid-template-columns: repeat(2, 1fr);
  }

  .supply-flow-lines {
    display: none;
  }

  .intervention.ml {
    left: 0;
  }

  .model-input-grid {
    grid-template-columns: 1fr;
  }

  .decision-path {
    flex-direction: column;
  }

  .decision-path b {
    min-height: 18px;
    transform: none;
  }

  .decision-path span {
    min-height: 44px;
  }
}

@media (max-width: 460px) {

  .metric-strip,
  .framework-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip>div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .fishbone-canvas,
  .supply-flow-canvas,
  .cri-zones {
    grid-template-columns: 1fr;
  }

  .fishbone-canvas {
    grid-template-areas: 'supply' 'market' 'process' 'external' 'finance' 'information' 'center' 'callout';
  }

  .supply-flow-canvas {
    padding-top: 165px;
  }

  .cri-zones>div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}

@media print {

  .fish-node:hover,
  .flow-node:hover {
    transform: none;
    box-shadow: none;
  }

  .interactive-research-figure,
  .model-input-grid,
  .decision-path,
  .cri-zones {
    break-inside: avoid;
  }
}

.sidebar-desc {
  font-family: Aparajita, 'EB Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.32;
  color: rgba(214, 214, 209, 0.82);
  font-style: italic;
  margin-bottom: 32px;
}

.sidebar-portrait {
  margin: 0 0 28px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sidebar-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.82) contrast(1.04);
}

.sidebar-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sidebar-block {
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 1px solid var(--bronze);
}

.sidebar-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.sidebar-value {
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
}

.sidebar-value-empty {
  min-height: 18px;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.education-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.education-logo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(229, 180, 101, 0.32);
  border-radius: 50%;
  background: #F5F2EA;
  display: grid;
  place-items: center;
  padding: 6px;
  overflow: hidden;
}

.education-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.education-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.education-copy strong {
  color: var(--navy);
  font-size: 12.5px;
  line-height: 1.2;
}

.education-copy span,
.education-copy small {
  color: rgba(214, 214, 209, 0.82);
  font-size: 11px;
  line-height: 1.3;
}

.education-copy small {
  color: rgba(214, 214, 209, 0.66);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--text);
}

.contact-logo {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: var(--transition);
}

.contact-logo svg {
  width: 22px;
  height: 22px;
}

.contact-logo-text {
  color: var(--accent);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.contact-copy strong {
  color: var(--navy);
  font-size: 12.5px;
  line-height: 1.2;
}

.contact-copy small {
  color: rgba(214, 214, 209, 0.72);
  font-size: 10.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-item:hover .contact-logo,
.contact-item:focus-visible .contact-logo {
  box-shadow: none;
  transform: translateY(-1px);
}

.contact-item:hover .contact-copy strong,
.contact-item:focus-visible .contact-copy strong {
  color: var(--accent);
}

.sidebar-links {
  list-style: none;
  margin-top: 16px;
}

.sidebar-links li {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.sidebar-links a {
  display: inline-flex;
  align-items: center;
  color: rgba(245, 242, 234, 0.82);
}

.sidebar-links a::before {
  content: '→';
  margin-right: 6px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.sidebar-links a:hover {
  color: var(--accent);
}

.sidebar-links a:hover::before {
  transform: translateX(3px);
}

/* ── MAIN CONTENT SECTIONS ── */
.portfolio-main section {
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--rule);
}

.section-title-editorial {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

/* ── FEATURED DOSSIER PANEL ── */
.dossier-featured-card {
  border: 1.5px solid var(--navy);
  padding: 32px;
  background: var(--bg);
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.dossier-featured-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(17, 30, 63, 0.04);
}

.dossier-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.dossier-archival-num {
  font-weight: 600;
  color: var(--accent);
}

.dossier-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.dossier-subtitle {
  font-size: 14.5px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.dossier-abstract {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 24px;
}

/* Embedded Diagram Preview (Restrained Monochromatic Wireframe) */
.dossier-diagram-preview {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dossier-diagram-preview svg {
  max-width: 100%;
  height: 80px;
  opacity: 0.75;
  transition: var(--transition);
}

.dossier-featured-card:hover .dossier-diagram-preview svg {
  opacity: 0.95;
}

.dossier-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-mini {
  font-family: var(--mono);
  font-size: 9px;
  background: var(--bg-panel);
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--rule);
}

.dossier-trigger {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.dossier-featured-card:hover .dossier-trigger {
  color: var(--navy);
  transform: translateX(4px);
}

/* ── SYSTEMS / CONCEPTS GRID ── */
.view-switcher {
  display: inline-flex;
  border: 1px solid var(--rule);
  background: var(--bg-panel);
  margin-bottom: 24px;
}

.view-switch {
  min-width: 132px;
  border: none;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: rgba(245, 242, 234, 0.82);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-transform: uppercase;
  transition: var(--transition);
}

.view-switch:last-child {
  border-right: none;
}

.view-switch:hover,
.view-switch.is-active {
  background: rgba(229, 180, 101, 0.14);
  color: var(--accent);
}

.work-panel[hidden] {
  display: none;
}

.publication-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--rule);
  background: linear-gradient(135deg, rgba(245, 242, 234, 0.055), rgba(26, 37, 15, 0.44));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  padding: 24px;
}

#memoranda-panel .publication-item+.publication-item {
  margin-top: 24px;
}

.memorandum-monogram-clicker {
  aspect-ratio: 1;
  width: 100%;
  border: 1px solid rgba(229, 180, 101, 0.42);
  background: #F5F2EA;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 18px;
  transition: var(--transition);
}

.memorandum-monogram-clicker:hover,
.memorandum-monogram-clicker:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.memorandum-monogram {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.memorandum-monogram-clicker img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.palantir-logo-clicker {
  aspect-ratio: 1;
  width: 100%;
  border: 1px solid rgba(229, 180, 101, 0.42);
  background: #F5F2EA;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 22px;
  transition: var(--transition);
}

.palantir-logo-clicker:hover,
.palantir-logo-clicker:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.palantir-logo-clicker img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.publication-copy .dossier-title {
  margin-bottom: 4px;
}

.publication-meta {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.dossier-open-link {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dossier-open-link:hover,
.dossier-open-link:focus-visible {
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform: translateX(4px);
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.concept-block {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  transition: var(--transition);
}

.concept-block:hover {
  border-bottom-color: var(--navy);
}

.concept-index {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 4px;
}

.concept-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.concept-desc {
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--muted);
}

/* ── SELECTED PROJECTS ── */
.projects-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-feature-item,
.project-detail-panel {
  border: 1px solid var(--rule);
  background: linear-gradient(135deg, rgba(245, 242, 234, 0.055), rgba(26, 37, 15, 0.44));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.project-feature-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  transition: var(--transition);
}

.project-feature-item:hover,
.project-detail-panel:hover {
  border-color: rgba(229, 180, 101, 0.62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.project-logo-clicker {
  aspect-ratio: 1;
  width: 120px;
  border: 1px solid rgba(229, 180, 101, 0.42);
  border-radius: 50%;
  background: #F5F2EA;
  cursor: pointer;
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 14px;
  transition: var(--transition);
  overflow: hidden;
}

.project-logo-clicker:hover,
.project-logo-clicker:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.project-logo-clicker img {
  display: block;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.project-title-button {
  background: transparent;
  border: none;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
  transition: var(--transition);
}

.project-title-button:hover,
.project-title-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.project-link {
  color: var(--accent);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-link:hover {
  color: var(--navy);
}

.project-detail-panel {
  padding: 24px 26px;
}

.project-detail-panel[hidden] {
  display: none;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 8px 0 14px;
}

.project-detail-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 14px 0 8px;
  text-transform: uppercase;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.project-title-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.project-award {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--accent);
}

.project-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-desc-text {
  font-size: 12.5px;
  line-height: 1.52;
  color: var(--text);
  margin-bottom: 14px;
}

.project-details-sub {
  list-style: none;
  padding-left: 0;
}

.project-details-sub li {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.46;
  position: relative;
  padding-left: 12px;
  margin-top: 4px;
}

.project-details-sub li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* ── EDITORIAL WRITING FEED ── */
.writing-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.writing-feed-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}

.writing-feed-date {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.writing-feed-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}

.writing-feed-title:hover {
  color: var(--accent);
}

/* ── IMMERSIVE SYSTEMS DOSSIER VIEWER ── */
.dossier-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  overflow-y: scroll;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.dossier-viewer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Reader Shell */
.reader-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  position: relative;
}

/* Locked body scroll */
body.dossier-open {
  overflow: hidden;
}

/* Table of Contents Sticky Sidebar */
.reader-sidebar {
  position: sticky;
  top: 48px;
  height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1.5px solid var(--rule);
  padding-right: 24px;
}

.reader-branding {
  margin-bottom: 24px;
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.reader-back-btn:hover,
.reader-back-btn:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Xpecto / 3C institutional dossier */
.xpecto-cover {
  padding: 26px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.xpecto-cover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--navy);
}

.xpecto-logo-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.xpecto-logo-lockup img {
  max-width: 150px;
  max-height: 58px;
  object-fit: contain;
}

.xpecto-docline {
  text-align: right;
  font: 9px/1.7 var(--mono);
  color: var(--muted);
}

.xpecto-award {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(229, 180, 101, .09);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 20px;
}

.xpecto-award span {
  font: 700 9px var(--mono);
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.xpecto-award strong {
  grid-row: 1/3;
  grid-column: 2;
  align-self: center;
  font: 700 23px 'EB Garamond', serif;
  color: var(--navy);
}

.xpecto-award small {
  color: var(--muted);
}

.xpecto-cover-title span,
.xpecto-meta dt {
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.xpecto-cover-title h1 {
  margin: 6px 0;
  font: 700 34px/1.08 'EB Garamond', serif;
  color: var(--navy);
}

.xpecto-cover-title p {
  margin: 0;
  font: 500 19px 'EB Garamond', serif;
  color: var(--accent);
}

.xpecto-cover-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.xpecto-cover-grid p {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.58;
  text-align: justify;
}

.xpecto-meta {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--rule);
}

.xpecto-meta dl {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 9px 12px;
  margin: 14px 0 0;
}

.xpecto-meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.xpecto-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.btn-secondary.is-disabled {
  opacity: .48;
  cursor: not-allowed;
}

.xpecto-subsection-title {
  margin: 44px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font: 700 25px/1.2 'EB Garamond', Georgia, serif;
  color: var(--navy);
}

.hibs-subsection-title {
  margin-top: 44px !important;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.xpecto-chart,
.xpecto-system,
.xpecto-network,
.xpecto-ecosystem {
  width: 100%;
  height: auto;
  margin: 22px 0;
  border: 1px solid var(--rule);
}

.formula-block {
  margin: 20px 0;
  padding: 16px;
  background: var(--navy);
  color: white;
  text-align: center;
  font: 14px var(--mono);
  overflow: auto;
}

.xpecto-issue-tree,
.xpecto-matrix,
.xpecto-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.xpecto-issue-tree .root {
  grid-column: 1/-1;
  background: var(--navy);
  color: white;
  text-align: center;
}

.xpecto-issue-tree>div,
.xpecto-matrix article,
.xpecto-capabilities span {
  padding: 16px;
  border: 1px solid var(--rule);
  background: var(--bg-panel);
}

.xpecto-issue-tree strong,
.xpecto-issue-tree span,
.xpecto-capabilities small {
  display: block;
}

.xpecto-issue-tree span,
.xpecto-capabilities small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.xpecto-matrix article h3 {
  margin-top: 0;
}

.xpecto-value-chain,
.xpecto-pipeline,
.xpecto-risk-path,
.xpecto-governance {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 22px 0;
  overflow-x: auto;
}

.xpecto-value-chain span,
.xpecto-pipeline span,
.xpecto-risk-path span,
.xpecto-governance span {
  min-width: 120px;
  flex: 1;
  padding: 14px 10px;
  border: 1px solid var(--rule);
  background: var(--bg-panel);
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.xpecto-value-chain small,
.xpecto-governance small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
}

.xpecto-value-chain span+span::before {
  content: '→';
  float: left;
  margin-left: -18px;
  color: var(--accent);
}

.xpecto-pipeline i {
  width: 24px;
  min-width: 24px;
  align-self: center;
  border-top: 2px solid var(--accent);
}

.xpecto-risk-path b,
.xpecto-governance b {
  padding: 15px 7px;
  color: var(--accent);
}

.xpecto-fishbone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.xpecto-fishbone .fish-spine {
  grid-column: 1/-1;
  padding: 16px;
  color: white;
  background: var(--navy);
  text-align: center;
  font-weight: 700;
}

.xpecto-fishbone>div:not(.fish-spine) {
  padding: 15px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
}

.xpecto-fishbone span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.xa-nodes rect,
.xn-node rect,
.xe-node rect {
  fill: white;
  stroke: #94a3b8;
}

.xa-nodes text,
.xn-node text,
.xe-node text {
  text-anchor: middle;
  font: 12px var(--mono);
  fill: #13223f;
}

.xn-links path {
  stroke-dasharray: 10 7;
  animation: xpecto-flow 2.5s linear infinite;
}

@keyframes xpecto-flow {
  to {
    stroke-dashoffset: -34;
  }
}

@media (prefers-reduced-motion:reduce) {
  .xn-links path {
    animation: none;
  }
}

.xpecto-model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.data-table td.good {
  background: #e8f6ef;
}

.data-table td.bad {
  background: #fff0e8;
}

.xpecto-waterfall {
  height: 260px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 25px 0;
  padding: 20px;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.xpecto-waterfall>div {
  height: var(--h);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  background: linear-gradient(180deg, var(--accent), var(--navy));
  color: white;
  font-size: 11px;
}

.xpecto-waterfall small {
  margin-top: 4px;
  opacity: .8;
}

.xpecto-roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}

.xpecto-roadmap article {
  padding: 18px;
  border-top: 4px solid var(--accent);
  border-right: 1px solid var(--rule);
  background: var(--bg-panel);
}

.xpecto-roadmap span {
  font: 700 9px var(--mono);
  color: var(--accent);
  text-transform: uppercase;
}

.xpecto-roadmap h3 {
  margin: 8px 0;
}

.xpecto-heatmap {
  display: grid;
  grid-template-columns: 90px repeat(3, 1fr);
  gap: 5px;
  margin: 24px 0;
}

.xpecto-heatmap>* {
  padding: 14px;
  text-align: center;
  font-style: normal;
}

.xpecto-heatmap strong,
.xpecto-heatmap b {
  font: 10px var(--mono);
  color: var(--muted);
}

.xpecto-heatmap .l {
  background: #dcefe6;
}

.xpecto-heatmap .m {
  background: #fae8b8;
}

.xpecto-heatmap .h {
  background: #f4c5bb;
}

@media (max-width:760px) {

  .xpecto-cover-head,
  .xpecto-logo-lockup {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .xpecto-docline {
    text-align: left;
  }

  .xpecto-cover-grid,
  .xpecto-model-grid {
    grid-template-columns: 1fr;
  }

  .xpecto-issue-tree,
  .xpecto-matrix,
  .xpecto-capabilities,
  .xpecto-roadmap {
    grid-template-columns: 1fr 1fr;
  }

  .xpecto-award {
    grid-template-columns: 1fr;
  }

  .xpecto-award strong {
    grid-row: auto;
    grid-column: auto;
  }
}

.reader-branding .brand-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.reader-branding .brand-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-top: 4px;
}

/* Table of Contents Nav */
.toc-nav {
  list-style: none;
  flex: 1;
  margin-top: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
  padding-right: 8px;
}

.toc-nav::-webkit-scrollbar {
  width: 4px;
}

.toc-nav::-webkit-scrollbar-track {
  background: transparent;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 2px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.toc-nav li {
  margin-bottom: 12px;
}

.toc-nav button {
  background: none;
  border: none;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.toc-nav button .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule);
  display: inline-block;
  transition: var(--transition);
}

.toc-nav button:hover {
  color: var(--navy);
}

.toc-nav button:hover .dot {
  background: var(--navy);
}

.toc-nav button.active {
  color: var(--accent);
  font-weight: 700;
}

.toc-nav button.active .dot {
  background: var(--accent);
  transform: scale(1.4);
}

/* Back Button */
.reader-close-btn {
  background: var(--navy);
  color: var(--bg);
  border: none;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 24px;
}

.reader-close-btn:hover {
  background: var(--accent);
}

/* Immersive Reading Pane */
.reading-pane {
  max-width: 720px;
}

/* Whitepaper Cover style */
.whitepaper-header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.whitepaper-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 600;
}

.whitepaper-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.whitepaper-section-title.cover-heading {
  text-transform: none;
  letter-spacing: 0.04em;
}

.whitepaper-subtitle {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
}

/* Meta Data Grid */
.whitepaper-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.whitepaper-meta-block {
  border-left: 2px solid var(--rule);
  padding-left: 12px;
}

.whitepaper-meta-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}

.whitepaper-meta-value {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Section Header formatting */
.whitepaper-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.whitepaper-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whitepaper-section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 4px;
  margin-bottom: 16px;
  margin-top: 32px;
}

.whitepaper-section-title:first-of-type {
  margin-top: 0;
}

.section-archive-mark {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Academic Sub-titles */
.reading-pane h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.reading-pane h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 18px;
  margin-bottom: 6px;
}

/* Reading Bullet Lists */
ul.bullets {
  list-style: none;
  margin-bottom: 16px;
}

ul.bullets li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  margin-top: 4px;
}

ul.bullets li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: bold;
}

ul.sub-bullets {
  list-style: none;
  padding-left: 16px;
  margin-top: 2px;
}

ul.sub-bullets li {
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--muted);
  padding-left: 12px;
  position: relative;
  margin-top: 2px;
}

ul.sub-bullets li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* Panel Box styling */
.panel-box {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-left: 3.5px solid var(--navy);
  padding: 16px 20px;
  margin: 20px 0;
}

.panel-box .panel-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.panel-box p {
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Computational Governance Meta-Architecture */
.meta-architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
  margin: 24px 0 12px;
}

.meta-map-shell {
  min-width: 0;
}

.meta-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-loop-btn {
  border: 1px solid var(--rule);
  background: var(--bg-panel, #f4f6fa);
  color: var(--navy);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.meta-loop-btn:hover,
.meta-loop-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.complexity-map-svg {
  width: 100%;
  height: auto;
  display: block;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(244, 246, 250, 0.84), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.meta-ring {
  fill: none;
  stroke: rgba(19, 34, 63, 0.14);
  stroke-width: 2;
  stroke-dasharray: 8 16;
}

.meta-ring-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-edge {
  stroke: rgba(19, 34, 63, 0.24);
  stroke-width: 2.2;
  fill: none;
  transition: opacity 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.meta-edge-label {
  fill: rgba(19, 34, 63, 0.48);
  font-family: var(--mono);
  font-size: 16px;
  pointer-events: none;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.meta-node {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.meta-node circle {
  stroke: rgba(19, 34, 63, 0.78);
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(19, 34, 63, 0.14));
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.meta-node text {
  fill: var(--navy);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.meta-node.center text {
  font-size: 25px;
}

.meta-node.dimmed,
.meta-edge.dimmed,
.meta-edge-label.dimmed {
  opacity: 0.12;
}

.meta-node.highlight circle,
.meta-node.active circle {
  stroke: #0f766e;
  stroke-width: 6;
  filter: drop-shadow(0 0 18px rgba(15, 118, 110, 0.44));
}

.meta-edge.highlight,
.meta-edge.active {
  stroke: #0f766e;
  stroke-width: 5;
  opacity: 1;
}

.meta-edge-label.highlight,
.meta-edge-label.active {
  fill: #0f766e;
  font-weight: 700;
  opacity: 1;
}

.meta-math-overlay text {
  fill: rgba(19, 34, 63, 0.42);
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
}

.meta-info-card {
  position: sticky;
  top: 24px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy);
  background: var(--bg-panel, #f4f6fa);
  border-radius: 8px;
  padding: 16px;
}

.meta-info-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.meta-info-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
}

.meta-info-card p,
.meta-info-card dd,
.loop-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.meta-info-card dl {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.meta-info-card dt {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-info-card dd {
  margin: 2px 0 0;
}

.loop-description {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

/* Pull Quotes */
.pullquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-top: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  text-align: center;
}

.pullquote p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16.5px;
  font-style: italic;
  color: var(--navy);
  margin: 0;
  line-height: 1.45;
}

.pullquote .attr {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* Critique Box styling (Dashed outlines) */
.critique-box {
  border: 1.5px dashed var(--navy);
  padding: 16px 20px;
  background: var(--bg-warm);
  margin: 20px 0;
}

.critique-box .critique-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 6px;
}

.critique-box p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.cross-dossier-panel {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
}

.cross-dossier-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.cross-dossier-panel p {
  margin-bottom: 12px;
}

.cross-dossier-link {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.cross-dossier-link:hover,
.cross-dossier-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.inline-dossier-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-dossier-link:hover,
.inline-dossier-link:focus-visible {
  color: var(--navy);
  outline: none;
}

.claim-block {
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  background: var(--bg-warm);
}

.claim-block h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.claim-layer {
  margin-bottom: 14px;
}

.claim-layer:last-child {
  margin-bottom: 0;
}

.claim-layer-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.claim-layer p {
  margin-bottom: 0;
}

.claim-layer .bullets {
  margin-bottom: 0;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 12px;
}

.data-table th {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--navy);
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--navy);
  text-align: left;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  vertical-align: top;
  line-height: 1.42;
}

.data-table tr:hover td {
  background: var(--bg-panel);
}

.data-table .mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

/* System Grid within dossier reading */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.card-block {
  border: 1.5px solid var(--rule);
  padding: 16px;
  background: var(--bg-warm);
  transition: border-color 0.2s ease;
}

.card-block:hover {
  border-color: var(--navy);
}

.card-block.highlight {
  border-top: 3px solid var(--accent);
}

.card-block.subtle {
  border-top: 3px solid var(--muted);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.card-badge {
  font-size: 10px;
  font-style: italic;
  color: var(--accent);
}

.card-body {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Layer Stack blueprint visual */
.layer-stack {
  margin: 20px 0;
}

.layer-row {
  display: flex;
  align-items: stretch;
  margin: 4px 0;
}

.layer-num {
  width: 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px solid var(--rule);
  margin-right: 12px;
  font-weight: 600;
}

.layer-body {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border-left: 3px solid var(--navy);
  background: var(--bg-panel);
}

.layer-label {
  font-weight: 700;
  color: var(--navy);
}

.layer-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-style: italic;
}

.layer-arrow {
  text-align: center;
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
  margin: 2px 0;
  font-weight: 700;
}

/* Achievement and Literature Reference lists */
.ref-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ref-list li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 14px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.ref-list li:last-child {
  border-bottom: none;
}

.ref-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 1px;
}

.ref-list li strong {
  color: var(--navy);
}

/* ── BLUEPRINT GRAPH WRAPPER & SVG CUSTOM STYLING ── */
.diagram-wrap {
  margin: 24px 0;
  background: var(--bg-warm);
  border: 1.5px solid var(--rule);
  padding: 20px;
}

.diagram-caption {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

svg rect {
  fill: #ffffff !important;
  stroke: var(--navy) !important;
  stroke-width: 0.8px !important;
  rx: 2px !important;
}

svg text {
  fill: var(--text) !important;
  font-family: 'Source Sans 3', sans-serif !important;
}

svg text.th {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  fill: var(--navy) !important;
}

svg text.ts {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 9.5px !important;
  fill: var(--muted) !important;
}

svg line,
svg path {
  stroke: var(--navy) !important;
  stroke-width: 0.8px !important;
}

svg marker path {
  fill: var(--navy) !important;
  stroke: none !important;
}

svg .c-gray rect {
  fill: var(--bg-panel) !important;
  stroke: var(--rule) !important;
}

svg .c-blue rect {
  fill: #f1f5f9 !important;
  stroke: var(--blue) !important;
  stroke-width: 1px !important;
}

svg .c-teal rect {
  fill: var(--bg-warm) !important;
  stroke: var(--rule) !important;
}

svg .c-amber rect {
  fill: #f5f8ff !important;
  stroke: var(--navy) !important;
  stroke-width: 1.6px !important;
}

svg .c-amber text.th {
  fill: var(--accent) !important;
  font-weight: 700 !important;
}

svg .c-purple rect {
  fill: #ffffff !important;
  stroke: var(--rule) !important;
}

svg .c-coral rect {
  fill: #ffffff !important;
  stroke: var(--rule) !important;
}

.footnote {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin-top: 24px;
  font-style: italic;
  line-height: 1.45;
}

.cover-framework-lead {
  margin-bottom: 0;
}

.cover-framework-block {
  margin: 14px 0 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--navy);
  background: var(--bg-panel);
}

.cover-framework-item {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 12px;
  color: var(--navy);
  white-space: pre-wrap;
}

.cover-framework-item:last-child {
  margin-bottom: 0;
}

.spoiler-reveal {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  vertical-align: baseline;
  position: relative;
}

.spoiler-reveal .spoiler-mask {
  background: var(--navy);
  color: var(--navy);
  border-radius: 3px;
  padding: 1px 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 0.25s ease, background 0.25s ease;
}

.spoiler-reveal:not(.is-revealed):hover .spoiler-mask {
  background: #0a1628;
  color: #0a1628;
}

.spoiler-reveal:not(.is-revealed)::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--bg);
  background: var(--navy);
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 5;
}

.spoiler-reveal:not(.is-revealed):hover::after,
.spoiler-reveal:not(.is-revealed):focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.spoiler-reveal.is-revealed {
  cursor: default;
  pointer-events: none;
}

.spoiler-reveal.is-revealed .spoiler-mask {
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  padding: 0;
}

/* ── RESPONSIVE STYLING ── */
@media (max-width: 992px) {
  .meta-architecture-layout {
    grid-template-columns: 1fr;
  }

  .meta-info-card {
    position: static;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portfolio-sidebar {
    position: relative;
    top: 0;
    border-bottom: 1.5px solid var(--rule);
    padding-bottom: 32px;
  }

  .reader-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 96px;
  }

  .reader-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--bg);
    border-right: none;
    border-bottom: 1.5px solid var(--rule);
    padding: 12px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
  }

  .reader-branding {
    margin-bottom: 0;
  }

  .toc-nav {
    display: none;
    /* Hide TOC on mobile reading screens to keep real estate */
  }

  .reader-close-btn {
    width: auto;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .header-archival {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .header-archival h1.title-name {
    grid-column: 1;
    font-size: 22px;
    line-height: 1.18;
  }

  .view-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .view-switch {
    min-width: 0;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .project-feature-item,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-feature-item,
  .project-detail-panel {
    padding: 22px;
  }

  .palantir-logo-clicker,
  .project-logo-clicker {
    max-width: 180px;
  }

  .concepts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .dossier-featured-card {
    padding: 24px;
  }

  .dossier-title {
    font-size: 20px;
  }

  .whitepaper-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .container,
  .reader-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .portfolio-sidebar,
  .reader-sidebar,
  hr.thin {
    display: none !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .dossier-viewer {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .whitepaper-section {
    display: block !important;
    page-break-after: always;
  }

  .whitepaper-section:last-child {
    page-break-after: avoid;
  }
}

/* ── Screen reader utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Archival footer ── */
.footer-archival {
  margin-top: 96px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  text-align: center;
}

.footer-archival p {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Dynamic dossier panels (registry-driven) ── */
.dossier-dynamic-panels {
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dossier-meta-panel {
  border: 1px solid var(--rule);
  background: var(--bg-panel);
  padding: 20px 24px;
}

.dmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px 24px;
}

.dmp-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.dmp-value {
  font-size: 13px;
  color: var(--navy);
}

.dmp-value.mono {
  font-family: var(--mono);
  font-size: 12px;
}

.dmp-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dmp-status--published {
  background: #d1fae5;
  color: #065f46;
}

.dmp-repo-link {
  color: var(--accent);
  text-decoration: none;
}

.dmp-repo-link:hover {
  text-decoration: underline;
}

/* ── GitHub panel ── */
.github-panel {
  border: 1px solid var(--rule);
  background: var(--bg-warm);
  padding: 20px 24px;
}

.github-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.github-panel-icon {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.github-panel-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.github-panel-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 20px;
  margin-bottom: 16px;
}

.github-meta-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.github-meta-value {
  font-size: 13px;
  color: var(--navy);
}

.github-meta-value.mono {
  font-family: var(--mono);
  font-size: 12px;
}

.github-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
  vertical-align: middle;
}

.github-panel-cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.github-panel-cta:hover {
  background: var(--accent);
}

/* ── Version history ── */
.version-history-panel {
  border: 1px solid var(--rule);
  padding: 20px 24px;
}

.vh-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.vh-table {
  width: 100%;
}

/* ── Companion / related research ── */
.companion-panel {
  border: 1px solid var(--rule);
  background: var(--bg-panel);
  padding: 20px 24px;
}

.companion-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.companion-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.companion-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.companion-arrow {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

.companion-docid {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.companion-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.companion-relation {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.companion-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.companion-link:hover,
.companion-link:focus-visible {
  text-decoration: underline;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Downloads panel ── */
.downloads-panel {
  border: 1px solid var(--rule);
  padding: 20px 24px;
}

.downloads-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.downloads-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
}

.download-btn:hover,
.download-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Generated bibliography ── */
.bibliography-section {
  margin-top: 8px;
}

.bib-generated-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.bib-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 20px 0 10px;
}

.bib-list .ref-annotation {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}

.ref-url {
  color: var(--accent);
  font-size: 12px;
}

/* Inline citation hover preview */
a.citation-link {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

a.citation-link:hover::after,
a.citation-link:focus-visible::after {
  content: attr(data-cite-preview);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  min-width: 200px;
  max-width: 320px;
  padding: 8px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 4px;
  font-style: normal;
  font-weight: 400;
  pointer-events: none;
  white-space: normal;
}

/* ── Lazy diagram rendering ── */
figure.diagram-wrap.diagram-lazy {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* ── Mobile Warning Overlay ── */
.mobile-warning-overlay {
  --navy: #F5F2EA;
  --blue: #A6925C;
  --accent: #E5B465;
  --text: #F5F2EA;
  --muted: #D6D6D1;
  --bronze: #59522B;
  --rule: rgba(229, 180, 101, 0.32);
  --bg: rgba(245, 242, 234, 0.045);
  --bg-warm: #012A21;
  --bg-panel: #1A250F;

  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-warning-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-warning-container {
  max-width: 560px;
  width: 100%;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  padding: 48px 40px;
  box-shadow: 0 12px 32px rgba(19, 34, 63, 0.08);
  text-align: center;
}

.mobile-warning-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mobile-warning-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
  text-align: left;
}

.mobile-warning-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.mobile-warning-btn-primary {
  background: var(--navy);
  color: var(--bg-warm);
  border: 1px solid var(--navy);
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-warning-btn-primary:hover,
.mobile-warning-btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-warm);
}

.mobile-warning-btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-warning-btn-secondary:hover,
.mobile-warning-btn-secondary:focus-visible {
  color: var(--navy);
}

.mobile-warning-help {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  text-align: left;
  display: none;
}

.mobile-warning-help.is-expanded {
  display: block;
}

.mobile-warning-help-browser {
  margin-bottom: 16px;
}

.mobile-warning-help-browser:last-child {
  margin-bottom: 0;
}

.mobile-warning-help-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

/* ── HIBS CASE STUDY COMPONENTS ── */

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0;
}

.competition-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-panel);
  padding: 8px 16px;
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}

.achievement-badge {
  display: inline-block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(229, 180, 101, 0.15);
  padding: 12px 24px;
  border: 2px solid var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  font-style: italic;
}

.hero-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(229, 180, 101, 0.1);
}

/* Issue Tree */
.issue-tree {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.issue-root {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.issue-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.issue-branch {
  text-align: center;
}

.issue-node {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 12px 16px;
  border: 1px solid var(--rule);
  margin-bottom: 12px;
}

.issue-subnodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Root Cause Grid */
.root-cause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.cause-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.cause-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(19, 34, 63, 0.08);
}

.cause-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.cause-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.cause-card p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* ML Pipeline */
.ml-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.pipeline-step {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg);
  padding: 12px 20px;
  border: 1px solid var(--rule);
  min-width: 200px;
  text-align: center;
  transition: var(--transition);
}

.pipeline-step.highlight {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.pipeline-arrow {
  font-size: 20px;
  color: var(--accent);
}

.rf-rationale {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
}

.rf-rationale h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.feature-card h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 11px;
  color: var(--muted);
}

/* Risk Table */
.risk-table {
  margin: 24px 0;
}

.risk-badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.risk-badge.low {
  background: rgba(57, 116, 92, 0.15);
  color: #39745c;
  border: 1px solid #39745c;
}

.risk-badge.medium {
  background: rgba(177, 132, 51, 0.15);
  color: #b18433;
  border: 1px solid #b18433;
}

.risk-badge.high {
  background: rgba(154, 64, 58, 0.15);
  color: #9a403a;
  border: 1px solid #9a403a;
}

/* Segmentation Flows */
.segmentation-flows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.segment-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.segment-node {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg);
  padding: 10px 16px;
  border: 1px solid var(--rule);
  text-align: center;
  min-width: 140px;
}

.segment-node.outcome {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.segment-arrow {
  font-size: 16px;
  color: var(--accent);
}

/* SWOT Matrix */
.swot-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 24px 0;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.swot-quadrant {
  background: var(--bg);
  padding: 24px;
}

.swot-quadrant h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.swot-quadrant ul {
  list-style: none;
  padding: 0;
}

.swot-quadrant li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.swot-quadrant li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* BCG Matrix */
.bcg-container {
  margin: 24px 0;
}

.bcg-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.bcg-quadrant {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--rule);
  text-align: center;
}

.bcg-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.bcg-item {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.bcg-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.bcg-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 11px;
  color: var(--navy);
}

.bcg-path span {
  background: var(--bg-panel);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}

/* Airbnb Comparison */
.airbnb-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin: 32px 0;
  align-items: start;
}

.airbnb-side {
  text-align: center;
}

.airbnb-side h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.airbnb-img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  margin-bottom: 12px;
}

.airbnb-divider {
  font-size: 32px;
  color: var(--accent);
  align-self: center;
}

.airbnb-side p {
  font-size: 12px;
  color: var(--muted);
}

.transformation-factors {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.transformation-factors h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.factor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.factor-item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg);
  padding: 8px 12px;
  border: 1px solid var(--rule);
}

.hoat-connection {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
}

.hoat-connection h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.connection-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--navy);
}

.connection-flow span {
  background: var(--bg-panel);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.connection-flow span.outcome {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* MVP Carousel */
.mvp-carousel {
  position: relative;
  margin: 32px 0;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.mvp-slide {
  display: none;
  text-align: center;
}

.mvp-slide.active {
  display: block;
}

.mvp-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: var(--transition);
}

.mvp-image:hover {
  transform: scale(1.02);
}

.mvp-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-btn {
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--navy);
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
}

/* Architecture Flow */
.architecture-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}

.arch-node {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg);
  padding: 10px 16px;
  border: 1px solid var(--rule);
  min-width: 180px;
  text-align: center;
  transition: var(--transition);
}

.arch-node.highlight {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.arch-node.outcome {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}

.arch-arrow {
  font-size: 18px;
  color: var(--accent);
}

/* Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.impact-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.impact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.impact-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.impact-card h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.impact-card p {
  font-size: 11px;
  color: var(--muted);
}

/* Skills Chips */
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.skill-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg-panel);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  transition: var(--transition);
}

.skill-chip:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.resource-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--navy);
  transition: var(--transition);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.resource-btn:hover {
  border-color: var(--accent);
  background: var(--bg-panel);
  transform: translateY(-2px);
}

.resource-icon {
  font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .issue-branches {
    grid-template-columns: 1fr;
  }

  .airbnb-comparison {
    grid-template-columns: 1fr;
  }

  .airbnb-divider {
    transform: rotate(90deg);
    margin: 16px 0;
  }

  .swot-matrix {
    grid-template-columns: 1fr;
  }

  .bcg-matrix {
    grid-template-columns: 1fr;
  }

  .segmentation-flows {
    grid-template-columns: 1fr;
  }

  .connection-flow {
    flex-direction: column;
  }

  .connection-flow span {
    width: 100%;
    text-align: center;
  }
}

.mobile-warning-help-steps {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════════
   EXECUTIVE CONSULTING INTERACTIVE DOSSIER STYLES (CD-HIBS-26)
   ══════════════════════════════════════════════════════════════════════ */

/* General Typography & Clean Borders */
.dossier-viewer .whitepaper-section h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.dossier-viewer .whitepaper-section h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 16px;
}

.dossier-viewer .whitepaper-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}

/* Consultation Dossier Alert/Callout Panels */
.dossier-callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}

.dossier-callout-header {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.dossier-callout-content {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

.dossier-callout-content p:last-child {
  margin-bottom: 0;
}

/* Interactive SVG Styling Standards */
.consulting-svg {
  width: 100%;
  height: auto;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition);
}

.consulting-svg:hover {
  border-color: var(--accent);
}

/* Interaction Highlights & Transitions */
.interactive-node {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    fill 0.25s ease,
    stroke-width 0.25s ease;
}

.interactive-node:hover {
  transform-origin: center;
}

/* Causal Loop & Network Styling */
.cl-node {
  fill: var(--bg);
  stroke: var(--rule);
  stroke-width: 1.5;
}

.cl-node:hover {
  stroke: var(--accent);
  fill: var(--bg-panel);
}

.cl-link {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-dasharray: none;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.cl-link.positive {
  stroke: #39745c;
}

.cl-link.negative {
  stroke: #9a403a;
}

.cl-link:hover {
  stroke-width: 2.5;
}

.cl-indicator {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: bold;
}

.cl-indicator.plus {
  fill: #39745c;
}

.cl-indicator.minus {
  fill: #9a403a;
}

/* Customer Journey Map styles */
.cjm-stage {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cjm-stage:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.cjm-line {
  stroke: var(--rule);
  stroke-width: 2;
  fill: none;
}

.cjm-sentiment-curve {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.cjm-dropoff-marker {
  fill: #9a403a;
  stroke: var(--bg);
  stroke-width: 1.5;
}

/* BCG Matrix styling */
.bcg-svg-grid {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.bcg-svg-axis {
  stroke: var(--navy);
  stroke-width: 1.5;
}

.bcg-quadrant-bg {
  fill: var(--bg);
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.bcg-quadrant-bg:hover {
  opacity: 0.8;
}

.bcg-trajectory {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  fill: none;
}

.bcg-bubble {
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.bcg-bubble:hover {
  filter: brightness(0.95);
}

/* Feature Importance and Heatmap styles */
.bar-chart-rect {
  fill: var(--navy);
  opacity: 0.85;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.bar-chart-rect:hover {
  opacity: 1;
  fill: var(--accent);
}

.correlation-tile {
  cursor: pointer;
  transition: stroke 0.15s ease, filter 0.15s ease;
}

.correlation-tile:hover {
  stroke: var(--accent);
  stroke-width: 2;
  filter: brightness(1.05);
}

/* Dashboard Scorecards */
.dossier-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.metric-scorecard {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-scorecard:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.metric-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.metric-value {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-delta {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.metric-delta.positive {
  color: #39745c;
}

.metric-delta.negative {
  color: #9a403a;
}

/* SWOT Offset Connection styles */
.swot-interactive-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.swot-details-card {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 4px;
  min-height: 160px;
  transition: opacity 0.25s ease;
}

.swot-details-card h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 12px;
}

.swot-details-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.swot-details-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  margin-bottom: 12px;
}

/* Table styling for Executive Data Views */
.dossier-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.5;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}

.dossier-data-table th,
.dossier-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.dossier-data-table th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg-panel);
}

.dossier-data-table tr:hover {
  background: rgba(229, 180, 101, 0.03);
}

/* Collapsible sections styling */
.dossier-accordion {
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 16px 0;
  overflow: hidden;
}

.dossier-accordion-header {
  background: var(--bg-panel);
  padding: 16px 20px;
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--transition);
}

.dossier-accordion-header:hover {
  background: rgba(229, 180, 101, 0.05);
}

.dossier-accordion-content {
  padding: 24px;
  border-top: 1px solid var(--rule);
  display: none;
  background: var(--bg);
}

.dossier-accordion.is-open .dossier-accordion-content {
  display: block;
}

.dossier-accordion-toggle-icon {
  font-family: var(--mono);
  font-size: 10px;
  transition: transform 0.2s ease;
}

.dossier-accordion.is-open .dossier-accordion-toggle-icon {
  transform: rotate(90deg);
}

/* Citations & Footnotes */
.footnote-ref {
  vertical-align: super;
  font-size: 9px;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  margin-left: 2px;
}

.footnote-ref:hover {
  text-decoration: underline;
}

.footnote-section {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.footnote-list {
  padding-left: 20px;
}

.footnote-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ── QUESTIONS & FEEDBACK BUTTON & MODAL ── */
.reader-feedback-btn {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--rule);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
}

.reader-feedback-btn:hover {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}

.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(1, 42, 33, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-content {
  background: var(--bg-warm);
  border: 1.5px solid var(--rule);
  width: 90%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.contact-modal-overlay.active .contact-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.contact-modal-close:hover {
  color: var(--accent);
}

.contact-modal-header {
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--rule);
  padding-bottom: 16px;
}

.contact-modal-kicker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}

.contact-modal-desc {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-links-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-modal-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  color: var(--text) !important;
  transition: var(--transition);
  text-decoration: none;
}

.contact-modal-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-modal-link-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 180, 101, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-modal-link-card .card-details {
  display: flex;
  flex-direction: column;
}

.contact-modal-link-card .card-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-modal-link-card .card-value {
  font-size: 14px;
  color: var(--navy);
  word-break: break-all;
}

/* ══════════════════════════════════════════════════ HDFC CRISIS CONSULTING THEME */
#hdfc-dossier-viewer {
  --navy: #0f172a;        /* Deep Slate Navy */
  --blue: #1e293b;        /* Charcoal Blue */
  --accent: #b59410;      /* Muted Corporate Gold */
  --accent-light: #fef08a;/* Soft gold highlight */
  --text: #334155;        /* Charcoal body text */
  --muted: #64748b;       /* Muted slate */
  --rule: #cbd5e1;        /* Crisp border gray */
  --bg: #ffffff;          /* Pure white paper background */
  --bg-warm: #f8fafc;     /* Slate tint panel */
  --bg-panel: #f1f5f9;    /* Light Slate panel background */
  --bronze: #854d0e;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-warm);
  color: var(--text);
}

/* HDFC Layout elements */
.hdfc-memo-header {
  border-bottom: 3px double var(--navy);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.hdfc-logo-sec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hdfc-logo-wrapper {
  width: 90px;
  height: 90px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hdfc-logo-wrapper img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}

.hdfc-memo-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.hdfc-title-main {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 38px;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.hdfc-meta-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  padding: 18px 24px;
  margin-bottom: 32px;
}

.hdfc-meta-item dt {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.hdfc-meta-item dd {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

/* Exec Summary Layout */
.hdfc-exec-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.hdfc-summary-panel {
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-top: 4px solid var(--navy);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hdfc-summary-panel.accent-panel {
  border-top-color: var(--accent);
}

.hdfc-summary-panel h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.hdfc-summary-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hdfc-summary-panel li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
}

.hdfc-summary-panel li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* TIMELINE STYLES */
.hdfc-timeline {
  position: relative;
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--navy);
}

.hdfc-timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.hdfc-timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.hdfc-timeline-item.major-event::before {
  background: var(--accent);
  width: 14px;
  height: 14px;
  left: -32px;
}

.hdfc-timeline-date {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hdfc-timeline-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.hdfc-timeline-desc {
  font-size: 13px;
  line-height: 1.5;
}

/* EVIDENCE CARDS */
.hdfc-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}

.hdfc-evidence-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 20px;
  transition: var(--transition);
}

.hdfc-evidence-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hdfc-evidence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.hdfc-evidence-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  background: var(--bg-panel);
  color: var(--navy);
  padding: 3px 8px;
  border: 1px solid var(--rule);
  font-weight: 600;
}

.hdfc-evidence-badge.alleged {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.hdfc-evidence-badge.verified {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.hdfc-evidence-badge.finding {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.hdfc-evidence-body h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.hdfc-evidence-body p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hdfc-evidence-toggle {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.hdfc-evidence-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-warm);
  border-top: 0px solid var(--rule);
  margin-top: 0px;
  padding: 0 16px;
}

.hdfc-evidence-details.expanded {
  max-height: 400px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
  padding: 12px 16px;
}

.hdfc-evidence-details dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 12px;
}

.hdfc-evidence-details dt {
  font-weight: 700;
  color: var(--navy);
}

.hdfc-evidence-details dd {
  margin: 0;
}

/* RACI TABLE */
.hdfc-raci-container {
  overflow-x: auto;
  margin: 24px 0;
}

.hdfc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.hdfc-table th, .hdfc-table td {
  padding: 12px 16px;
  border: 1px solid var(--rule);
}

.hdfc-table th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
}

.hdfc-table tr:nth-child(even) td {
  background: var(--bg-panel);
}

.raci-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.raci-badge.r { background: #dbeafe; color: #1e40af; border: 1.5px solid #bfdbfe; }
.raci-badge.a { background: #fef3c7; color: #92400e; border: 1.5px solid #fde68a; }
.raci-badge.c { background: #dcfce7; color: #166534; border: 1.5px solid #bbf7d0; }
.raci-badge.i { background: #f3f4f6; color: #374151; border: 1.5px solid #e5e7eb; }

/* RISK HEAT MAP */
.hdfc-risk-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.hdfc-risk-tile {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 16px;
  border-top: 4px solid #cbd5e1;
}

.hdfc-risk-tile.critical { border-top-color: #ef4444; background: #fff5f5; }
.hdfc-risk-tile.high { border-top-color: #f97316; background: #fff7ed; }
.hdfc-risk-tile.medium { border-top-color: #eab308; background: #fefdf0; }
.hdfc-risk-tile.low { border-top-color: #22c55e; background: #f0fdf4; }

.hdfc-risk-tile h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.hdfc-risk-score {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.critical .hdfc-risk-score { color: #b91c1c; }
.high .hdfc-risk-score { color: #c2410c; }
.medium .hdfc-risk-score { color: #854d0e; }
.low .hdfc-risk-score { color: #15803d; }

.hdfc-risk-desc {
  font-size: 12px;
  line-height: 1.4;
}

/* DYNAMIC SWITCHER */
.hdfc-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.hdfc-switch-btn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.hdfc-switch-btn.active {
  color: var(--navy);
  border-color: var(--rule);
  background: var(--bg-panel);
}

/* GENERAL DIAGRAM CONTAINER */
.hdfc-diagram-wrapper {
  background: var(--bg);
  border: 1.5px solid var(--rule);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hdfc-diagram-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  text-align: center;
}

.hdfc-diagram-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}

.hdfc-alert-box {
  background: var(--bg-panel);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.55;
}

.hdfc-alert-box strong {
  color: var(--navy);
}

/* RECOMMENDATIONS TABS */
.hdfc-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.hdfc-rec-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 20px;
  border-left: 4px solid var(--accent);
}

.hdfc-rec-card.rec-board { border-left-color: var(--navy); }
.hdfc-rec-card.rec-risk { border-left-color: var(--muted); }
.hdfc-rec-card.rec-reg { border-left-color: var(--bronze); }

.hdfc-rec-card h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.hdfc-rec-card ul {
  padding-left: 16px;
  margin: 0;
}

.hdfc-rec-card li {
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* HDFC Landing Card Logo Button Overrides */
button[data-dossier="hdfc"].memorandum-monogram-clicker {
  background: #FFFFFF !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

button[data-dossier="hdfc"].memorandum-monogram-clicker img {
  width: 90% !important;
  height: 90% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}