/* Shoette · Product Hub — V3 Ivory + Gold
   Ivory paper, ink-black text, brushed-gold accents.
   No vertical color rules. Tag-shaped tags but discreet (outlined, soft tint).
*/
:root {
  --bg: #F9F6ED;          /* lighter ivory */
  --bg-soft: #FEFAEF;
  --bg-card: #FFFEF8;
  --ink: #111111;
  --ink-2: #2A2825;
  --ink-3: #6A645A;
  --ink-4: #9C9588;
  --rule: #E2DAC4;
  --rule-soft: #ECE5D2;

  --gold: #B68E3B;        /* primary accent — brushed gold */
  --gold-deep: #8C6A22;
  --gold-soft: #F2E7C8;
  --gold-bg: #FAF3DD;

  --tag-event: #8C6A22;   /* gold-brown */
  --tag-deliv: #B85C1F;   /* warm orange */
  --tag-tool: #5C5A55;    /* light grey */

  --tag-event-bg: #F7EFD3;
  --tag-deliv-bg: #FBE9D8;
  --tag-tool-bg: #EEECE6;
  --tag-event-bd: #E5D4A1;
  --tag-deliv-bd: #ECC9A6;
  --tag-tool-bd: #D9D5CB;

  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(249, 246, 237, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 11px;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #C9A24A 0%, #8C6A22 100%);
  display: grid; place-items: center;
  color: #FBF7EC; font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.brand-text .dot { color: var(--ink-4); margin: 0 7px; font-weight: 400; }
.brand-text .sub { color: var(--ink-3); font-style: italic; }

.nav { display: flex; gap: 2px; }
.nav-pill {
  padding: 8px 4px;
  margin: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
  border-bottom: 1.5px solid transparent;
  letter-spacing: 0.01em;
}
.nav-pill:hover { color: var(--ink); }
.nav-pill.active { color: var(--ink); border-bottom-color: var(--gold); }

/* ── Page shell ─────────────────────────────────────────── */
.page {
  padding-top: 100px;
  padding-bottom: 120px;
  transition: padding-right 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.page.has-panel { padding-right: 380px; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 11px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.page-title {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.02;
}
.page-title em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
.page-subtitle {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-3);
  margin: 0 0 36px;
  max-width: 880px;
  line-height: 1.45;
}

/* ── Control bar ────────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.controls-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.pill-group { display: flex; gap: 0; }
.pill-btn {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 4px 10px;
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  transition: all 0.15s ease;
}
.pill-btn:hover { color: var(--ink); }
.pill-btn.active { color: var(--ink); border-bottom-color: var(--gold); }
.controls-sep { width: 1px; height: 16px; background: var(--rule); }
.toggle-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: none; background: transparent;
  font: inherit;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.toggle-btn:hover { color: var(--ink); }
.toggle-btn .switch {
  width: 26px; height: 14px; border-radius: 999px;
  background: var(--rule); position: relative;
  transition: background 0.18s ease;
}
.toggle-btn .switch::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-soft); box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.toggle-btn.on .switch { background: var(--gold); }
.toggle-btn.on .switch::after { transform: translateX(12px); }

/* ── Legend ─────────────────────────────────────────────── */
.legend {
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  padding: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }

/* ── Tree — no left rules. Hierarchy via type + numbers ─── */
.tree { display: flex; flex-direction: column; gap: 0; }

.node { position: relative; }
.node-children {
  margin-top: 20px;
  margin-left: 32px;
  display: flex; flex-direction: column;
}

.node-row {
  position: relative;
  padding: 22px 14px 24px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.18s ease;
  margin: 0 -14px;
  border-radius: 6px;
}
.node-row:hover { background: var(--bg-soft); }
.node-row:hover .raci-trigger { opacity: 1; transform: translateY(0); }

.card-head { display: flex; align-items: flex-start; gap: 14px; }

.expand-btn {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  display: grid; place-items: center;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 12px; font-weight: 500;
  transition: all 0.15s ease;
  margin-top: 6px;
  font-family: var(--mono);
  line-height: 1;
}
.expand-btn:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: var(--gold-bg); }
.expand-btn.empty { visibility: hidden; }

.card-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold-deep);
  margin-top: 8px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  font-weight: 500;
  min-width: 36px;
}

.card-titles { flex: 1; min-width: 0; }
.card-title {
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
}
.l1 .card-title { font-size: 36px; font-weight: 400; letter-spacing: -0.012em; }
.l2 .card-title { font-size: 25px; font-weight: 500; letter-spacing: -0.008em; }
.l3 .card-title { font-size: 16px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

.card-purpose {
  margin: 6px 0 0;
  font-style: italic;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}
.l1 .card-purpose { font-size: 19px; }
.l3 .card-purpose { font-size: 15.5px; }

.card-desc {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 88ch;
}
.l3 .card-desc { font-size: 13.5px; max-width: 78ch; }

/* RACI trigger */
.raci-trigger {
  position: absolute;
  top: 22px; right: 14px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
  color: var(--ink-3);
  font-weight: 500;
}
.raci-trigger:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-bg); }
.raci-trigger.active { opacity: 1; color: var(--gold-deep); border-color: var(--gold); background: var(--gold-bg); }
.raci-trigger .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── Tags — pill shaped, soft tinted, discreet ──────────── */
.tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 16px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid;
  cursor: default;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.16s ease;
  line-height: 1.5;
  background: white;
}
.tag .tag-icon {
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.tag.event { background: var(--tag-event-bg); color: var(--tag-event); border-color: var(--tag-event-bd); }
.tag.deliverable { background: var(--tag-deliv-bg); color: var(--tag-deliv); border-color: var(--tag-deliv-bd); cursor: pointer; }
.tag.tool { background: var(--tag-tool-bg); color: var(--tag-tool); border-color: var(--tag-tool-bd); }
.tag:hover { transform: translateY(-1px); }
.tag.deliverable:hover { box-shadow: 0 2px 6px -2px rgba(184, 92, 31, 0.25); }

/* ── Density control (Lecture) ─────────────────────────── */
.density-control {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  background: transparent;
  padding: 0;
}
.density-step {
  border: none;
  background: transparent;
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 4px 6px 5px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 64px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.density-step:hover { color: var(--ink); background: rgba(182, 142, 59, 0.06); }
.density-step .density-bar {
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--rule);
  transition: background 0.18s ease, transform 0.18s ease;
}
.density-step.filled .density-bar { background: var(--gold); }
.density-step.current .density-bar { background: var(--gold-deep); transform: scaleY(1.4); }
.density-step.current .density-label { color: var(--ink); }
/* ── Phase rail (left margin, sticky) ───────────────────── */
.phase-rail {
  position: fixed;
  top: 110px;
  left: 22px;
  width: 150px;
  z-index: 40;
  font-family: var(--mono);
}
.phase-rail-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
  padding-left: 16px;
}
.phase-rail-list {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.phase-rail-list::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--rule);
}
.phase-rail-item { position: relative; margin: 0; }
.phase-rail-btn {
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  width: 100%;
  padding: 8px 0 8px 18px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-3);
  transition: color 0.18s ease;
}
.phase-rail-btn:hover { color: var(--ink); }
.phase-rail-dot {
  position: absolute;
  left: 0; top: 14px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  transition: all 0.2s ease;
}
.phase-rail-num {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  font-weight: 500;
}
.phase-rail-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: inherit;
  font-weight: 500;
}
.phase-rail-item.active .phase-rail-dot {
  background: var(--gold);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px var(--gold-bg);
}
.phase-rail-item.active .phase-rail-num { color: var(--gold-deep); }
.phase-rail-item.active .phase-rail-name { color: var(--ink); }

/* ── Phase divider (inline in flow) ─────────────────────── */
.phase-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 8px;
  margin-top: 0;
}
.phase-divider-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  flex-shrink: 0;
}
.phase-divider-line {
  flex: 1;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'><path d='M0 3 Q 3 0, 6 3 T 12 3 T 18 3 T 24 3' fill='none' stroke='%23ffffff' stroke-width='1' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 24px 6px;
  opacity: 1;
}
.phase-divider-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
  color: var(--ink-2);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.phase-divider-hidden {
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

@media (min-width: 1281px) {
  .container { padding-left: 140px; }
}
@media (max-width: 1280px) {
  .phase-rail { display: none; }
}

/* ── Slide-in panel ─────────────────────────────────────── */
.panel {
  position: fixed;
  top: 0; right: 0;
  width: 360px;
  height: 100vh;
  background: var(--bg-soft);
  border-left: 1px solid var(--rule);
  box-shadow: -16px 0 40px -12px rgba(60, 50, 30, 0.10);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex; flex-direction: column;
}
.panel.open { transform: translateX(0); }
.panel-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}
.panel-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--gold-deep); text-transform: uppercase;
  margin: 0 0 6px;
}
.panel-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.panel-close {
  width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid var(--rule);
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-top: 2px;
}
.panel-close:hover { color: var(--ink); border-color: var(--ink); }

.panel-body { flex: 1; overflow-y: auto; padding: 22px 26px 36px; }

/* RACI table */
.raci-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.raci-row:last-child { border-bottom: none; }
.raci-person { display: flex; align-items: center; gap: 12px; }
.raci-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.raci-name { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.raci-sub { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; }
.raci-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  border: 1.5px solid;
  background: var(--bg-card);
}
.raci-badge.R { color: var(--gold-deep); border-color: var(--gold); }
.raci-badge.A { color: var(--ink); border-color: var(--ink); }
.raci-badge.C { color: var(--ink-2); border-color: var(--ink-3); }
.raci-badge.I { color: var(--ink-4); border-color: var(--ink-4); }

.raci-legend {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3);
}
.raci-legend div { display: flex; align-items: center; gap: 9px; }
.raci-legend .raci-badge { width: 22px; height: 22px; font-size: 10px; border-width: 1.2px; }

/* Deliverable */
.deliv-desc {
  font-family: var(--serif);
  font-size: 16px; font-style: italic;
  color: var(--ink-2);
  margin: 0 0 22px;
  line-height: 1.55;
}
.deliv-section-label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--gold-deep); text-transform: uppercase;
  margin: 0 0 12px;
}
.deliv-sections {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule-soft);
}
.deliv-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 14px;
}
.deliv-section .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 500;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 24px;
}
.deliv-cta {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0;
  background: transparent;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  cursor: pointer; border: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: gap 0.16s ease;
}
.deliv-cta:hover { gap: 12px; color: var(--ink); border-bottom-color: var(--ink); }

/* ── Placeholder pages ──────────────────────────────────── */
.placeholder {
  text-align: left;
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule);
}
.placeholder-icon {
  font-size: 36px;
  margin-bottom: 24px;
  display: block;
  color: var(--gold-deep);
  font-family: var(--serif);
}
.placeholder-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 56px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.015em;
  line-height: 1.02;
}
.placeholder-desc {
  margin: 0;
  max-width: 560px;
  color: var(--ink-3); font-size: 16px;
  font-family: var(--serif); font-style: italic;
  line-height: 1.5;
}
.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.node, .placeholder { animation: fadeSlide 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@keyframes collapse { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 4000px; } }
.node-children { animation: collapse 0.32s ease both; overflow: hidden; }

.panel-body::-webkit-scrollbar { width: 8px; }
.panel-body::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 8px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1100px) { .page.has-panel { padding-right: 28px; } }
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .panel { width: 100%; }
  .page-title { font-size: 44px; }
}

/* ─────────────────────────────────────────────────────────────
   French translation toggle — banner + header positioning
   The banner is non-sticky (scrolls away); the header becomes
   sticky on FR pages so the banner sits naturally above it.
   ───────────────────────────────────────────────────────────── */
.trans-banner {
  display: none; /* hidden on EN pages */
  background: var(--gold-bg);
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid var(--gold-soft);
}
body.fr .trans-banner { display: block; }
body.fr .header-cpo { position: sticky !important; }
/* The fixed-header padding compensation is no longer needed on FR pages.
   Page wrappers get a small visual breathing room instead. */
body.fr .page,
body.fr .page-deliv { padding-top: 32px !important; }

/* ─────────────────────────────────────────────────────────────
   New CPO Playbook header (replaces .header on every page)
   ───────────────────────────────────────────────────────────── */
.header-cpo {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(249, 246, 237, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
  font-family: var(--sans);
}
.hc-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.hc-brand:hover { color: var(--gold-deep); }
.hc-brand em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}
.hc-sep {
  width: 1px;
  height: 22px;
  background: var(--rule);
  margin: 0 22px;
  flex-shrink: 0;
}
.hc-page {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.hc-spacer { flex: 1; min-width: 16px; }
.hc-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.hc-meta .hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4EA72E;
  display: inline-block;
  flex-shrink: 0;
}
.hc-author {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hc-author svg { color: var(--ink-3); flex-shrink: 0; }
.hc-author strong { color: var(--ink); font-weight: 600; }
.hc-author.review { font-style: italic; color: var(--ink-3); }
.hc-author.review strong { color: var(--ink-3); font-weight: 500; }
.hc-lang {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
}
.hc-lang a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.hc-lang a:hover { color: var(--ink); }
.hc-lang a.on { color: var(--ink); font-weight: 500; }
.hc-lang .disabled {
  color: var(--ink-4);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.55;
}
.hc-login {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s ease;
}
.hc-login:hover { color: var(--gold-deep); }
.hc-login svg { color: var(--ink-3); flex-shrink: 0; }
@media (max-width: 1100px) {
  .header-cpo .hc-meta,
  .header-cpo .hc-meta + .hc-sep { display: none; }
}
@media (max-width: 880px) {
  .header-cpo { padding: 0 16px; }
  .header-cpo .hc-sep { margin: 0 12px; }
  .header-cpo .hc-author,
  .header-cpo .hc-author + .hc-sep,
  .header-cpo .hc-login,
  .header-cpo .hc-login ~ .hc-sep { display: none; }
}
@media (max-width: 640px) {
  .header-cpo .hc-lang,
  .header-cpo .hc-lang + .hc-sep { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Page-type backgrounds
   - deliverable: very light orange
   - knowledge:   very light blue
   ───────────────────────────────────────────────────────────── */
body[data-page-type="deliverable"] {
  background: #FBF1E6;
}
body[data-page-type="knowledge"] {
  background: #F5F9FC;
}
body[data-page-type="events"] {
  background: #FDF8E1;
}
/* Match the fixed header tint to the page-type bg so the blur stays consistent */
body[data-page-type="deliverable"] .header-cpo {
  background: rgba(251, 241, 230, 0.92);
}
body[data-page-type="knowledge"] .header-cpo {
  background: rgba(245, 249, 252, 0.92);
}
body[data-page-type="events"] .header-cpo {
  background: rgba(253, 248, 225, 0.92);
}
/* Clickable event tag (rendered as <a>) — show pointer & lift on hover */
a.tag.event.linkable {
  cursor: pointer;
  color: var(--tag-event);
  text-decoration: none;
}
a.tag.event.linkable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px -2px rgba(140, 106, 34, 0.25);
}

/* Discreet inline link — invisible until hover */
a.discreet-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
a.discreet-link:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}
