/* ============================================================
   Strategic Ownership Roadmap — companion site
   Design tokens mirror the printed PDF (Nexus warm palette).
   ============================================================ */

:root {
  /* Palette — matches PDF */
  --bg: #F7F6F2;
  --surface: #F9F8F5;
  --surface-alt: #FBFBF9;
  --tint: #EFEEE7;
  --border: #D4D1CA;
  --border-soft: #E3E0D9;
  --text: #28251D;
  --text-muted: #7A7974;
  --text-faint: #BAB9B4;
  --primary: #01696F;
  --primary-dark: #0C4E54;
  --primary-soft: #DCE9EA;
  --warning: #964219;
  --success: #437A22;
  --gold: #D19900;
  --blue: #006494;
  --error: #A12C7B;

  /* Type */
  --font-display: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: 1rem;
  --text-md: clamp(1.0625rem, 1.04rem + 0.15vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.18rem + 0.4vw, 1.5rem);
  --text-xl: clamp(1.625rem, 1.45rem + 0.9vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-hero: clamp(2.75rem, 2rem + 3.6vw, 4.75rem);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-w: 1160px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 37, 29, 0.04), 0 1px 1px rgba(40, 37, 29, 0.03);
  --shadow-md: 0 6px 16px -8px rgba(40, 37, 29, 0.12), 0 2px 4px rgba(40, 37, 29, 0.04);
}

/* ---------- Base typography ---------- */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.012em; line-height: 1.18; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.brand-word { color: var(--text); }

.site-nav {
  display: flex;
  gap: clamp(10px, 1.5vw, 22px);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a { transition: color 0.18s ease; }
.site-nav a:hover { color: var(--primary-dark); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(ellipse at top right, rgba(1, 105, 111, 0.06), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(150, 66, 25, 0.04), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: var(--space-8);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 14ch;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-dark);
  letter-spacing: -0.005em;
}
.hero-sub {
  margin-top: var(--space-6);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  color: var(--text);
  max-width: 48ch;
  line-height: 1.45;
}
.hero-meta {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.hero-pillars {
  margin-top: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-8);
}
.pillar { display: flex; flex-direction: column; gap: var(--space-1); }
.pillar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.pillar-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 680px) {
  .hero-pillars { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

/* ---------- Band (core message) ---------- */

.band {
  background: var(--primary-dark);
  color: #EFEEE7;
  padding: clamp(40px, 6vw, 80px) 0;
}
.band-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(239, 238, 231, 0.65);
  margin-bottom: var(--space-4);
}
.band-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: #F9F8F5;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(60px, 8vw, 110px) 0;
}
.section-tinted {
  background: var(--tint);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.section-title {
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-bottom: var(--space-6);
}
.lede {
  font-size: var(--text-md);
  color: var(--text);
  line-height: 1.55;
  max-width: 62ch;
  margin-bottom: var(--space-10);
}
.sub-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-5);
  margin-top: var(--space-12);
}

/* ---------- Identity flow ---------- */

.identity-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
  margin: var(--space-10) 0 var(--space-16);
}
.identity-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.identity-step.current {
  border-color: var(--primary);
  background: var(--surface-alt);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.08);
}
.identity-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary-dark);
  letter-spacing: 0.04em;
}
.identity-step h3 {
  font-size: var(--text-lg);
  color: var(--text);
}
.identity-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.identity-arrow {
  align-self: center;
  font-family: var(--font-display);
  color: var(--text-faint);
  font-size: 22px;
}
@media (max-width: 760px) {
  .identity-flow { grid-template-columns: 1fr; }
  .identity-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- Co-architects ---------- */

.co-arch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  position: relative;
}
.co-col p.co-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text);
}
.co-col p.co-role {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary-dark);
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
}
.co-col ul li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.co-col ul li:last-child { border-bottom: none; }

.co-band {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--border);
  text-align: center;
}
.co-band-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.co-band-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--text);
}
@media (max-width: 680px) {
  .co-arch { grid-template-columns: 1fr; }
}

/* ---------- Destination grid ---------- */

.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: var(--space-12);
}
.dest-cell {
  padding: var(--space-6);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dest-cell:nth-child(2n) { border-right: none; }
.dest-cell:nth-last-child(-n+2) { border-bottom: none; }
.dest-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.dest-value {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}
@media (max-width: 640px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest-cell { border-right: none !important; }
  .dest-cell:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
}

/* ---------- Callout ---------- */

.callout {
  margin: 0;
  padding: var(--space-6) var(--space-8);
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.callout p:last-child {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--text);
}
.callout em {
  font-family: var(--font-serif);
  color: var(--primary-dark);
}
.callout-row { margin-top: var(--space-12); }

/* ---------- Thesis ---------- */

.thesis-statement {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.4;
  color: var(--text);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-12);
  letter-spacing: -0.01em;
}
.venn {
  margin: var(--space-12) auto;
  max-width: 480px;
}
.why-now { margin-top: var(--space-16); }
.why-now h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-8);
}
.bullet-grid li {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
  padding-left: var(--space-5);
  position: relative;
}
.bullet-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: rotate(45deg);
}
.bullet-grid li strong { color: var(--primary-dark); font-weight: 600; }
@media (max-width: 640px) { .bullet-grid { grid-template-columns: 1fr; } }

/* ---------- Capital buckets ---------- */

.buckets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin: var(--space-10) 0 var(--space-6);
}
@media (max-width: 980px) { .buckets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .buckets { grid-template-columns: 1fr; } }

.bucket {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.bucket:hover, .bucket:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.bucket.is-active {
  border-color: var(--primary);
  background: var(--surface-alt);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.08);
}
.bucket-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--primary-dark);
  letter-spacing: 0.06em;
}
.bucket-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.3;
  color: var(--text);
}
.bucket-mandate {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

.bucket-detail {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  min-height: 130px;
  transition: opacity 0.2s ease;
}
.bucket-detail-hint {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--text-md);
}
.bucket-detail h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--primary-dark);
  margin-bottom: var(--space-2);
}
.bucket-detail p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text);
  max-width: 70ch;
}

/* ---------- Six layers ---------- */

.layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.layers li {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.layers li > span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: var(--text-md);
  min-width: 24px;
  flex-shrink: 0;
}
.layers li p { flex: 1; }
.layers li strong { font-weight: 600; color: var(--text); }

/* ---------- Ecosystem architecture diagram ---------- */

.ecosystem {
  margin: var(--space-5) 0 0;
}
.ecosystem-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-4);
}
.ecosystem-frame::before,
.ecosystem-frame::after {
  content: "";
  position: absolute;
  top: var(--space-5);
  bottom: var(--space-4);
  width: 1px;
  background: var(--border-soft);
}
.ecosystem-frame::before { left: 14px; }
.ecosystem-frame::after  { right: 14px; }

.ecosystem-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  text-align: center;
}

.strata {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stratum {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--layer-color, var(--primary));
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.stratum:hover {
  transform: translateX(2px);
  box-shadow: 0 1px 0 var(--border-soft), 0 6px 18px -12px rgba(12, 78, 84, 0.25);
}

.stratum-tab {
  background: var(--layer-color, var(--primary));
  color: var(--bg);
  padding: var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
}
.stratum-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: 0.02em;
  line-height: 1;
}
.stratum-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}

.stratum-body {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.stratum-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}
.stratum-body p {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-width: 62ch;
}

.ecosystem-caption {
  margin: var(--space-3) 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
}

@media (max-width: 640px) {
  .ecosystem-frame {
    padding: var(--space-4) var(--space-3) var(--space-3);
  }
  .ecosystem-frame::before { left: 8px; }
  .ecosystem-frame::after  { right: 8px; }
  .stratum {
    grid-template-columns: 72px 1fr;
  }
  .stratum-tab {
    padding: var(--space-2) var(--space-2);
    min-height: 56px;
  }
  .stratum-num { font-size: 14px; }
  .stratum-tag { font-size: 9px; letter-spacing: 0.12em; }
  .stratum-body { padding: var(--space-2) var(--space-3); }
  .stratum-body h4 { font-size: 14px; }
}

/* ---------- Tracks ---------- */

.phase-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: max-content;
  max-width: 100%;
}
.phase-tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
}
.phase-tab:hover { color: var(--text); }
.phase-tab.is-active {
  background: var(--primary-dark);
  color: #F9F8F5;
}

.tracks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.track-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-5);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.track-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #F9F8F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
}
.track-body h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.track-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.track-intensity {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.track-intensity[data-level="primary"] { color: #964219; background: rgba(150, 66, 25, 0.06); }
.track-intensity[data-level="active"]  { color: #01696F; background: rgba(1, 105, 111, 0.06); }
.track-intensity[data-level="light"]   { color: #7A7974; background: rgba(122, 121, 116, 0.06); }

@media (max-width: 640px) {
  .track-row { grid-template-columns: 44px 1fr; }
  .track-intensity { grid-column: 2; justify-self: start; }
}

/* ---------- Filter tool ---------- */

.filter-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: var(--space-12);
}
.filter-input-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.filter-input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-style: italic;
  padding: var(--space-3) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease;
}
.filter-input::placeholder { color: var(--text-faint); }
.filter-input:focus { border-bottom-color: var(--primary); }

.filter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.filter-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.filter-item.is-blocked { opacity: 0.5; }
.filter-item.has-pass { border-color: rgba(67, 122, 34, 0.4); }
.filter-item.has-fail { border-color: rgba(161, 44, 123, 0.4); background: #FBEDF4; }
.filter-item.has-unsure { border-color: rgba(209, 153, 0, 0.4); }

.filter-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.filter-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: var(--text-lg);
  line-height: 1;
  min-width: 24px;
}
.filter-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}
.filter-q {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 55ch;
}

.filter-choice {
  display: flex;
  gap: var(--space-2);
}
.choice {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.16s ease;
}
.choice:hover { color: var(--text); border-color: var(--text-muted); }
.choice[data-val="pass"].is-selected { background: var(--success); color: #F9F8F5; border-color: var(--success); }
.choice[data-val="unsure"].is-selected { background: var(--gold); color: #28251D; border-color: var(--gold); }
.choice[data-val="fail"].is-selected { background: var(--error); color: #F9F8F5; border-color: var(--error); }

.verdict {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--tint);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--text-faint);
  transition: border-color 0.2s ease;
}
.verdict.is-pass { border-left-color: var(--success); }
.verdict.is-fail { border-left-color: var(--error); }
.verdict.is-unsure { border-left-color: var(--gold); }

.verdict-state {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.verdict.is-pass .verdict-state { color: var(--success); }
.verdict.is-fail .verdict-state { color: var(--error); }
.verdict.is-unsure .verdict-state { color: var(--warning); }

.verdict-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--text);
}

.reset {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: var(--space-2) 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}
.reset:hover { color: var(--text); }

@media (max-width: 640px) {
  .filter-item { grid-template-columns: 1fr; }
  .filter-choice { flex-wrap: wrap; }
}

/* ---------- Pre-commitment rules ---------- */

.pre-commit { margin-top: var(--space-16); }
.rule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.rule-list li {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text);
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  position: relative;
}
.rule-list li::before {
  content: "";
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Risks ---------- */

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-10) 0 var(--space-16);
}
.risk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.risk header { display: flex; flex-direction: column; gap: var(--space-2); }
.risk-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warning);
  font-weight: 600;
}
.risk h3 { font-size: var(--text-md); color: var(--text); }
.risk p { font-size: var(--text-sm); line-height: 1.5; color: var(--text); }
.risk-action { color: var(--text-muted); font-size: var(--text-sm); }
.risk-action strong { color: var(--primary-dark); font-weight: 600; }

@media (max-width: 720px) { .risk-grid { grid-template-columns: 1fr; } }

.quarterly { margin-top: var(--space-12); }

/* ---------- Checklist ---------- */

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.checklist label {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.checklist label:hover { border-color: var(--primary); }
.checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--surface-alt);
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}
.checklist input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checklist input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #F9F8F5;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist input[type="checkbox"]:checked + .ck-text {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}
.ck-text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text);
}
.ck-text strong { color: var(--primary-dark); font-weight: 600; }
.ck-progress {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Success list ---------- */

.success-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.success-list li {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.success-list li strong {
  color: var(--primary-dark);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

/* ---------- Closing ---------- */

.closing {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--primary-dark);
  color: #EFEEE7;
  text-align: center;
}
.closing-mark {
  font-family: var(--font-serif);
  font-size: 32px;
  color: rgba(239, 238, 231, 0.4);
  margin-bottom: var(--space-6);
}
.closing-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.45;
  color: #F9F8F5;
  max-width: 50ch;
  margin: 0 auto var(--space-6);
}
.closing-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(239, 238, 231, 0.55);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-meta { color: var(--text-faint); }

/* ============================================================
   Lock screen + numeric keypad
   ============================================================ */

body.is-locked {
  overflow: hidden;
}
body.is-locked .site-header,
body.is-locked main,
body.is-locked footer {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(40, 37, 29, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 1;
  transition: opacity 280ms ease;
}
.lock.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.lock-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 24px 60px -20px rgba(12, 78, 84, 0.45),
    0 8px 22px -10px rgba(40, 37, 29, 0.35);
  animation: lockIn 280ms ease both;
}
@keyframes lockIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.lock-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.lock-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 6px;
}
.lock-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lock-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.lock-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 14px;
  min-height: 28px;
}
.lock-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.lock-dot.is-filled {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: scale(1.05);
}
.lock-dots.is-error .lock-dot {
  border-color: #B0341A;
  background: #B0341A;
  animation: shake 380ms ease;
}
.lock-dots.is-success .lock-dot {
  border-color: var(--success);
  background: var(--success);
}
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.lock-error {
  min-height: 18px;
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #964219;
  letter-spacing: 0.01em;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 14px;
}
.key {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  height: 64px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 120ms ease, transform 100ms ease, border-color 120ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}
.key:hover {
  background: #FFFFFF;
  border-color: var(--primary);
}
.key:active,
.key.is-pressed {
  transform: scale(0.96);
  background: #EEEAE0;
}
.key:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.key-ghost {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}
.key-ghost:hover {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}

.lock-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.lock-foot {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 4px 0 0;
}

@media (max-width: 420px) {
  .lock-card { padding: 24px 18px 18px; max-width: 360px; }
  .lock-title { font-size: 20px; }
  .key { height: 60px; font-size: 24px; }
}
@media (max-height: 720px) {
  .lock-card { padding: 20px 22px 16px; }
  .key { height: 56px; font-size: 23px; }
  .lock-dots { margin-bottom: 10px; }
}

/* ============================================================
   V5 ADDITIONS
   ============================================================ */

/* ---------- Planning Draft banner ---------- */
.draft-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(209, 153, 0, 0.07), rgba(209, 153, 0, 0));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-12);
}
.draft-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.draft-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* ---------- Advisor Quick Read ---------- */
.quickread {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quickread li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.qr-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.quickread h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.quickread p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
@media (max-width: 540px) {
  .quickread li { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
}

/* ---------- Role Charter ---------- */
.charter {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-soft);
}
.charter-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin: 12px 0 var(--space-6);
}
.charter-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius-md);
}
.charter-legend strong { color: var(--text); font-weight: 600; }
.charter-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.charter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}
.charter-table th,
.charter-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  line-height: 1.45;
}
.charter-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}
.charter-table th[scope="row"] {
  font-weight: 600;
  color: var(--text);
  background: var(--surface-alt);
  width: 24%;
}
.charter-table tbody tr:last-child th,
.charter-table tbody tr:last-child td { border-bottom: none; }
.mode {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-right: 4px;
  margin-bottom: 2px;
}
.mode.lead { background: var(--primary); color: #F7F6F2; }
.mode.review { background: var(--blue); color: #F7F6F2; }
.mode.shared { background: var(--text-muted); color: #F7F6F2; }
.mode.veto { background: var(--warning); color: #F7F6F2; }
.charter-note {
  margin-top: var(--space-5);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Real Estate Dashboard ---------- */
.re-dashboard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-top: var(--space-6);
}
.re-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.re-row:last-child { border-bottom: none; }
.re-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warning);
}
.re-value { color: var(--text); }
.re-stop {
  background: linear-gradient(90deg, rgba(150, 66, 25, 0.07), rgba(150, 66, 25, 0));
  border-top: 1px solid var(--border);
}
.re-stop .re-label { color: var(--warning); }
.re-note {
  margin-top: var(--space-5);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: normal;
}
@media (max-width: 640px) {
  .re-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Stop Doing / Not Yet ---------- */
.stopdoing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: var(--space-6);
}
.stopdoing-card {
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
}
.sd-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warning);
  margin: 0 0 8px;
}
.stopdoing-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.stopdoing-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Meeting Agendas ---------- */
.agendas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: var(--space-6) 0 var(--space-5);
}
.agenda {
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.agenda header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.agenda-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #F7F6F2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}
.agenda h3 {
  margin: 0 0 3px;
  font-size: 16.5px;
}
.agenda-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.agenda ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.agenda ul li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 6px;
}
.agenda ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}
.agendas-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius-md);
  margin: var(--space-5) 0 var(--space-10);
}
.agendas-checklist-title { margin-top: var(--space-10); }
.checklist-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}

/* ---------- Decision Log ---------- */
.dlog-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  margin-top: var(--space-6);
}
.dlog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.dlog-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.dlog-span-2 { grid-column: span 2; }
.dlog-field > span,
.dlog-field > legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dlog-field input,
.dlog-field select,
.dlog-field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  width: 100%;
  resize: vertical;
}
.dlog-field input:focus,
.dlog-field select:focus,
.dlog-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.12);
}
.dlog-filters {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px 12px;
  background: var(--bg);
}
.dlog-filters legend { padding: 0 6px; }
.dlog-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.dlog-filters input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.dlog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
}
.dlog-submit,
.dlog-clear {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.06s;
}
.dlog-submit {
  background: var(--primary);
  color: #F7F6F2;
}
.dlog-submit:hover { background: var(--primary-dark); }
.dlog-submit:active { transform: translateY(1px); }
.dlog-clear {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.dlog-clear:hover { color: var(--text); border-color: var(--text-muted); }
.dlog-storage-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-left: auto;
}

.dlog-entries {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dlog-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-style: normal;
  font-size: 14.5px;
  background: var(--tint);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.dlog-entry {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.dlog-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.dlog-entry-decision {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  color: #F7F6F2;
}
.dlog-entry-decision.pursued { background: var(--success); }
.dlog-entry-decision.passed { background: var(--text-muted); }
.dlog-entry-decision.deferred { background: var(--gold); color: #28251D; }
.dlog-entry-decision.killed { background: var(--warning); }
.dlog-entry-opp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  margin: 0;
  flex: 1 1 200px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.dlog-entry-date {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.dlog-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 18px;
  margin-bottom: 12px;
}
.dlog-entry-field {
  font-size: 13.5px;
  line-height: 1.5;
}
.dlog-entry-field strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.dlog-entry-body {
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.dlog-entry-body strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dlog-learned {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(209, 153, 0, 0.08), rgba(209, 153, 0, 0));
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.dlog-learned-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.dlog-learned-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  cursor: text;
  outline: none;
  min-height: 1.55em;
  white-space: pre-wrap;
}
.dlog-learned-text:empty::before {
  content: attr(data-placeholder);
  color: var(--text-faint);
  font-style: normal;
}
.dlog-learned-text:focus {
  background: var(--bg);
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(209, 153, 0, 0.25);
  padding: 2px 4px;
  margin: -2px -4px;
}
.dlog-entry-actions {
  margin-top: 10px;
  text-align: right;
}
.dlog-entry-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}
.dlog-entry-delete:hover { color: var(--warning); }

@media (max-width: 600px) {
  .dlog-grid { grid-template-columns: 1fr; }
  .dlog-span-2 { grid-column: span 1; }
  .dlog-storage-note { margin-left: 0; width: 100%; }
}
