/* Etteplan case study — same shell as the other cases: #111, gold, Sharp Grotesque. */

html.lang-en .ep-pl { display: none !important; }
html.lang-pl .ep-en { display: none !important; }
html:not(.lang-en):not(.lang-pl) .ep-en { display: none !important; }

body.ep-body {
  background: #111;
  color: #f0f0f0;
  font-family: sans-serif;
}

body.ep-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 7.5rem;
  background: linear-gradient(#111 0 5.6rem, rgba(17, 17, 17, 0) 7.5rem);
  z-index: 90;
  pointer-events: none;
}

body.ep-body #card-nav {
  background: #161616;
}

.ep-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: #121826;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.ep-skip:focus {
  top: 0.7rem;
}

.ep {
  --ink: #111111;
  --muted: #9a9a9a;
  --line: #333333;
  --paper: #161616;
  --bg: #111111;
  --accent: #f5c747;
  --cyan: #f5c747;
  --lime: #f5c747;
  color: #f0f0f0;
  background: #111;
}

.ep * { box-sizing: border-box; }

.ep a { color: inherit; }

.ep :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ep-ink :focus-visible { outline-color: var(--lime); }

.ep-chapters {
  position: sticky;
  top: 6.75rem;
  z-index: 40;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.7rem 1.25rem;
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid #333;
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.ep-chapters::-webkit-scrollbar { display: none; }

.ep-chapters a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.ep-chapters a[aria-current="true"] {
  color: #111;
  background: #f5c747;
}

.ep-hero,
.ep-section {
  padding: 4.5rem 1.25rem;
}

.ep-section { border-top: 1px solid #333; }

.ep-case-title {
  font-size: clamp(4.2rem, 11vw, 10.5rem);
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.ep-case-title .text-primary {
  display: block;
  font-size: 0.62em;
  line-height: 0.9;
}

.ep-wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.ep-wide {
  max-width: 1800px;
  margin: 0 auto;
}

.ep-kicker {
  margin: 0 0 1rem;
  font-family: "Sharp Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.ep h1,
.ep h2,
.ep h3 { margin: 0; }

.ep-h1 {
  max-width: 9em;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-transform: uppercase;
}

.ep-lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
}

.ep-result {
  margin-top: 1.75rem;
  max-width: 40rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #c8c8c8;
}

.ep-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.ep-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.ep-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.ep-metric {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.ep-metric b {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ep-denom {
  font-size: 0.42em;
  letter-spacing: 0;
  margin-left: 0.12em;
  color: var(--muted);
  font-weight: 650;
}

.ep-metric span {
  display: block;
  margin-top: 0.35rem;
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.ep-meta {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.ep-meta dt {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.ep-meta dd {
  margin: 0;
  line-height: 1.5;
  max-width: 36ch;
}

.ep-section,
.ep-hero,
.ep-sheet {
  scroll-margin-top: 8rem;
}

.ep-sheet-wrap { margin-top: 3rem; }

.ep-h2 {
  max-width: 18em;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.ep-case {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ep-sticky h2 {
  max-width: 8em;
  margin: 0;
  font-family: "Sharp Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 4.5vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f5c747;
}

.ep-sticky p {
  margin-top: 1.25rem;
  max-width: 22rem;
  color: #9a9a9a;
  font-size: 1.125rem;
  line-height: 1.5;
}

.ep-flow > article,
.ep-flow > div {
  padding: 0 0 2rem;
  margin: 0 0 2rem;
  border-bottom: 1px solid #333;
}

.ep-flow > :last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.ep-flow h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 650;
  margin-bottom: 0.7rem;
}

.ep-flow p,
.ep-flow li {
  color: #c8c8c8;
  line-height: 1.55;
}

.ep-flow .ep-source,
.ep-quote footer {
  color: #9a9a9a;
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

.ep-prose {
  max-width: 66ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #c8c8c8;
}

.ep-prose + .ep-prose,
.ep-prose + .ep-list,
.ep-list + .ep-prose { margin-top: 1rem; }

.ep-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 66ch;
}

.ep-list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.55;
  margin-top: 0.55rem;
}

.ep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.ep-source {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.ep-ink {
  background: var(--ink);
  color: #f7f8f5;
}

.ep-ink .ep-prose { color: rgba(247, 248, 245, 0.82); }
.ep-ink .ep-kicker { color: var(--lime); }
.ep-ink .ep-source { color: rgba(247, 248, 245, 0.62); }

.ep-split {
  display: grid;
  gap: 2rem;
}

.ep-quote {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.ep-quote footer {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(247, 248, 245, 0.62);
}

.ep-score {
  background: transparent;
  color: #f0f0f0;
  border: 0;
  border-top: 1px solid #333;
  border-radius: 0;
  padding: 1.25rem 0 0;
}

.ep-score-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ep-score-top strong {
  font-size: 3rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.ep-score-top span {
  font-size: 0.85rem;
  color: var(--muted);
}

.ep-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }

.ep-bars li {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1.5rem;
  gap: 0.6rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.ep-track {
  height: 0.55rem;
  background: #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
}

.ep-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.ep-friction {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ep-friction article {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ep-friction h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.ep-friction p {
  color: rgba(247, 248, 245, 0.75);
  line-height: 1.5;
  font-size: 0.95rem;
}

.ep-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: #161616;
  line-height: 1.55;
  max-width: 66ch;
}

.ep-ink .ep-note {
  background: transparent;
  border-left-color: var(--lime);
  color: rgba(247, 248, 245, 0.86);
}

.ep-cohorts,
.ep-cards,
.ep-insight-grid,
.ep-decision-grid,
.ep-outcome-grid,
.ep-plate-grid {
  display: grid;
  gap: 0.8rem;
}

.ep-card,
.ep-block,
.ep-insight,
.ep-decision,
.ep-outcome-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  padding: 1.6rem 0;
}

.ep-card b,
.ep-block h3,
.ep-insight h3,
.ep-decision h3,
.ep-outcome-card h3 {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f0f0f0;
  margin-bottom: 0.4rem;
}

.ep-card p,
.ep-block p,
.ep-insight p,
.ep-decision p,
.ep-outcome-card p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.ep-num {
  font-variant-numeric: tabular-nums;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.ep-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ep-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

.ep-steps li:last-child { border-bottom: 1px solid var(--line); }

.ep-steps em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.ep-steps .is-future {
  color: var(--muted);
}

.ep-steps .is-future em { color: var(--muted); }

.ep-steps .is-shipped strong::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset 0 0 0 1px var(--ink);
  vertical-align: middle;
}

.ep-blocks { margin-top: 1.5rem; }

.ep-block header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.ep-block header span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.ep-details {
  margin-top: 2.75rem;
  background: transparent;
  border: 0;
  border-top: 1px solid #333;
  border-radius: 0;
  padding: 0.6rem 0 1.25rem;
}

.ep-details summary {
  cursor: pointer;
  font-weight: 650;
  padding: 1.15rem 0;
}

.ep-q {
  margin: 1.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.ep-q-title {
  margin: 2.5rem 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ep-probe {
  margin: 0.45rem 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.ep-probe li { margin: 0.55rem 0; }

.ep-probe i,
.ep-q i { font-style: italic; }

.ep-gap {
  margin: 1.1rem 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.92rem;
  color: #9a9a9a;
}

.ep-board {
  margin: 2.5rem 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.ep-board img,
.ep-crops img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: #fff;
}

.ep-board figcaption,
.ep-crops figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.3rem 0.2rem;
}

.ep-crops {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.ep-crops figure {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.ep-zoom-body .ep-board {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.ep-zoom-body .ep-board img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  margin-inline: auto;
}

.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.ep-tags li {
  border: 1px solid var(--line);
  background: #161616;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}

.ep-branch {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.ep-branch article {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  padding: 1.1rem 0;
  line-height: 1.45;
}

.ep-branch strong { display: block; margin-bottom: 0.2rem; }

.ep-branch .is-shared { border-color: var(--accent); }

.ep-explorer {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.75rem;
}

.ep-explorer > * { min-width: 0; }

.ep-stage {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ep-explorer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ep-tile,
.ep-toggle,
.ep-cell,
.ep-follow,
.ep-zoom,
.ep-dialog-close {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.ep-tile {
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  padding: 0.55rem 0.2rem;
  min-width: 7.5rem;
}

.ep-tile b {
  display: block;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.ep-tile span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}

.ep-tile[aria-pressed="true"] {
  border-bottom-color: #f5c747;
  color: #f5c747;
  box-shadow: none;
  background: transparent;
}

.ep-toggle {
  margin-left: auto;
  background: #f5c747;
  color: #111;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
}

.ep-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.ep-legend-row span { display: inline-flex; align-items: center; gap: 0.35rem; }

.ep-dot,
.ep-dash-icon {
  width: 0.8rem;
  height: 0.8rem;
  display: inline-block;
}

.ep-dot {
  border-radius: 50%;
  background: #f5c747;
}

.ep-dash-icon {
  position: relative;
}

.ep-dash-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--muted);
}

.ep-matrix-wrap {
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.ep-matrix {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.ep-matrix th,
.ep-matrix td {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem;
  text-align: center;
  vertical-align: bottom;
  background: transparent;
}

.ep-matrix th:first-child,
.ep-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  width: 4.2rem;
  padding-left: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.ep-col {
  width: 100%;
  min-height: 4.4rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  padding: 0.2rem;
}

.ep-col b {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ep-col span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 450;
  line-height: 1.25;
  color: #9a9a9a;
}

.ep-col[aria-pressed="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.ep-col[aria-pressed="true"] span { color: #f5c747; }

.ep-cell {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-grid;
  place-items: center;
}

.ep-cell .ep-dot { width: 0.7rem; height: 0.7rem; }
.ep-cell.is-on .ep-dot { background: #f5c747; }
.ep-cell[aria-pressed="true"] .ep-dot,
.ep-col-on .ep-cell.is-on .ep-dot { background: var(--accent); }

.ep-matrix tr.is-hit td { background: rgba(245, 199, 71, 0.12); }
.ep-matrix tr.is-hit td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

.ep-matrix col.is-hidden,
.ep-hide-col { display: none; }

.ep-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 1.5rem;
}

.ep-panel h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.8rem;
}

.ep-k {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ep-panel p { line-height: 1.6; margin-top: 0.9rem; }

.ep-panel .ep-block-label {
  margin-top: 1.75rem;
}

.ep-flag {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #555;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ep-quote-mini {
  margin-top: 0.45rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent);
  font-size: 1.02rem;
}

.ep-follow {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  background: none;
  padding: 0;
}

.ep-how {
  margin-top: 1.5rem;
}

.ep-how summary { cursor: pointer; font-weight: 650; }

.ep-how ol {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.ep-mobile-list { display: grid; gap: 0.35rem; }

.ep-mobile-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
}

.ep-mobile-list { margin: 0; padding: 0; }

.ep-trail {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: trail;
}

.ep-trail li {
  counter-increment: trail;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  line-height: 1.45;
}

.ep-trail li::before {
  content: counter(trail, decimal-leading-zero);
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  padding-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: transparent;
  color: #f5c747;
}

.ep-insight header {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: baseline;
}

.ep-insight header span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.ep-hmw {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ep-hmw li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.ep-sheet {
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 24px 50px rgba(18, 24, 38, 0.06);
}

.ep-sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.ep-sheet h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.3rem 0;
}

.ep-sheet .ep-sub {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.ep-zoom {
  border: 1px solid #f5c747;
  color: #f0f0f0;
  background: #111;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ep-slot {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #161616;
  min-height: 7rem;
}

.ep-slot b { display: block; margin-bottom: 0.3rem; }
.ep-slot p { color: var(--muted); line-height: 1.4; font-size: 0.92rem; }

.ep-map {
  background: #111;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  min-height: 16rem;
  position: relative;
  overflow: hidden;
}

.ep-map svg { width: 100%; height: 100%; display: block; min-height: 16rem; }

.ep-map figcaption,
.ep-map .ep-map-label {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: #161616;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border: 1px solid var(--line);
}

.ep-two {
  display: grid;
  gap: 0.8rem;
}

.ep-dialog {
  width: min(1080px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  border: 0;
  padding: 0.6rem;
  background: #111;
  border-radius: 1rem;
}

.ep-dialog::backdrop { background: rgba(18, 24, 38, 0.72); }

.ep-dialog-close {
  display: block;
  margin-left: auto;
  margin-bottom: 0.4rem;
  border: 0;
  background: #121826;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.ep-zoom-body { overflow: auto; max-height: calc(100vh - 6rem); }

.ep-table-wrap { overflow-x: auto; margin-top: 1rem; }

.ep-table {
  width: 100%;
  border-collapse: collapse;
  background: #161616;
  min-width: 40rem;
}

.ep-table th,
.ep-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
  font-size: 0.95rem;
}

.ep-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.ep-pill {
  display: inline-block;
  border: 1px solid #555;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ep-outcome-card.is-open {
  background: transparent;
  color: inherit;
  border-color: #333;
}

.ep-outcome-card.is-open p { color: rgba(247, 248, 245, 0.78); }

.ep-outcome-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.ep-outcome-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ep-outcome-card li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.ep-outcome-card.is-open li { border-top-color: rgba(255, 255, 255, 0.14); }

.ep-next {
  display: grid;
  gap: 0.8rem;
}

.ep-next a {
  display: block;
  text-decoration: none;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
}

.ep-next a span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.ep-next a strong {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.ep-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ep-gantt-scroll { overflow-x: auto; }

.ep-gantt {
  position: relative;
  min-width: 52rem;
  height: 26rem;
}

.ep-gantt-mark {
  position: absolute;
  top: 0;
  left: var(--at);
  height: calc(100% - 1.6rem);
  border-left: 1px dashed rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.ep-gantt-mark:first-child { transform: none; }
.ep-gantt-mark:nth-child(5) { transform: translateX(-100%); }

.ep-gantt-mark span {
  position: absolute;
  top: 0;
  left: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #9a9a9a;
  white-space: nowrap;
}

.ep-gantt-mark:first-child span { left: 0; }
.ep-gantt-mark:nth-child(5) span { left: auto; right: 0.45rem; }

.ep-gantt-bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ep-bar {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  min-height: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1.15rem;
  background-color: #f3f3f3;
  background-image: radial-gradient(circle, rgba(70, 70, 70, 0.09) 0.45px, transparent 0.7px);
  background-size: 3px 3px;
  color: #1c1c1c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.ep-bar p,
.ep-bar-len { position: relative; margin: 0; }

.ep-bar p {
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 600;
}

.ep-bar-len {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: #6d6d6d;
  white-space: nowrap;
}

.ep-bar.is-ship {
  background-color: #f0c44a;
  background-image: radial-gradient(circle, rgba(70, 48, 0, 0.1) 0.45px, transparent 0.7px);
  background-size: 3px 3px;
}

.ep-bar.is-ship .ep-bar-len { color: #4a3b12; }

.ep-gantt-ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.15rem;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.72) 0 1px,
    transparent 1px 7px
  );
}

.ep-jmap-scroll {
  overflow-x: auto;
  border: 1px solid #333;
  border-radius: 1.25rem;
  background: #111;
}

.ep-jmap {
  width: 100%;
  min-width: 68rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #111;
}

.ep-jmap-labcol { width: 8.25rem; }

.ep-jmap th,
.ep-jmap td {
  vertical-align: top;
  text-align: left;
  font-weight: 500;
}

.ep-jmap thead th {
  position: relative;
  padding: 0.7rem 0.15rem 0.85rem;
  background: #111;
  overflow: visible;
}

.ep-jmap thead th:nth-child(2) { z-index: 7; }
.ep-jmap thead th:nth-child(3) { z-index: 6; }
.ep-jmap thead th:nth-child(4) { z-index: 5; }
.ep-jmap thead th:nth-child(5) { z-index: 4; }
.ep-jmap thead th:nth-child(6) { z-index: 3; }
.ep-jmap thead th:nth-child(7) { z-index: 2; }
.ep-jmap thead th:nth-child(8) { z-index: 1; }

.ep-chev {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
  margin-right: -0.55rem;
  padding: 0.45rem 1.05rem 0.45rem 1.25rem;
  background: var(--c);
  color: #1c1c1c;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 50%, calc(100% - 0.7rem) 100%, 0 100%, 0.7rem 50%);
}

.ep-jmap thead th:nth-child(2) .ep-chev {
  margin-left: 0.15rem;
  padding-left: 0.7rem;
  clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 50%, calc(100% - 0.7rem) 100%, 0 100%);
  border-radius: 0.7rem 0 0 0.7rem;
}

.ep-jmap thead th:last-child .ep-chev {
  margin-right: 0.15rem;
  border-radius: 0 0.7rem 0.7rem 0;
}

.ep-jmap tbody th {
  padding: 0.85rem 0.55rem 0.85rem 0.65rem;
  border-top: 1px solid #2c2c2c;
  background: #111;
  vertical-align: middle;
}

.ep-jmap tbody th span {
  display: flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  background: #f3f3f3;
  color: #1c1c1c;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
}

.ep-jmap td {
  padding: 0.85rem 0.7rem 0.95rem;
  border-top: 1px solid #2c2c2c;
  border-left: 1px solid #242424;
  color: #c8c8c8;
  font-size: 0.75rem;
  line-height: 1.35;
}

.ep-jmap td ul {
  margin: 0;
  padding-left: 0.95rem;
  list-style: disc;
}

.ep-jmap td li::marker { color: #6e6e6e; }

.ep-jmap td li + li { margin-top: 0.28rem; }

.ep-jmap-response td { color: #e6e6e6; }

.ep-jmap-exp td { padding-top: 0.7rem; padding-bottom: 0.75rem; }

.ep-jmap-plot {
  position: relative;
  height: 5.6rem;
}

.ep-jmap-plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ep-jmap-dots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  pointer-events: none;
}

.ep-jmap-dots i {
  position: relative;
  top: var(--p);
  justify-self: center;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.28rem;
  border-radius: 50%;
  background: #f0c44a;
  box-shadow: 0 0 0 3px #111;
}

.ep-jmap-mood {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.ep-jmap-mood li {
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #9a9a9a;
}

.ep-dotface,
.ep-qboard .ep-q,
.ep-qcol .ep-q {
  border-radius: 1.15rem;
  background-color: #f3f3f3;
  background-image: radial-gradient(circle, rgba(70, 70, 70, 0.09) 0.45px, transparent 0.7px);
  background-size: 3px 3px;
  color: #1c1c1c;
}

.ep-cohort { margin: 0; }

.ep-cohort figcaption {
  margin-bottom: 1rem;
  color: #9a9a9a;
  font-size: 0.95rem;
}

.ep-cohort-row {
  display: grid;
  gap: 0.85rem;
}

.ep-dotface { padding: 1.15rem 1.15rem 1.25rem; }

.ep-dotface p { margin: 0; line-height: 1.35; }

.ep-dotface b {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.ep-dotface .ep-roles {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #555;
}

.ep-people {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.ep-people svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: currentColor;
}

.ep-qgrid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ep-branch-board {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.ep-qcol {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.ep-qboard .ep-q,
.ep-qcol .ep-q {
  margin: 0;
  padding: 0.95rem 1.05rem 1.05rem;
  border: 0;
}

.ep-qboard .ep-q p,
.ep-qcol .ep-q p {
  margin: 0;
  color: #1c1c1c;
  line-height: 1.45;
}

.ep-qboard .ep-q b,
.ep-qcol .ep-q b {
  color: #8a6a12;
  font-variant-numeric: tabular-nums;
  margin-right: 0.3rem;
}

.ep-qboard .ep-probe,
.ep-qcol .ep-probe { color: #555; }

.ep-qcol .ep-gap { color: #666; }

@media (min-width: 720px) {
  .ep-metrics { grid-template-columns: repeat(3, 1fr); }
  .ep-meta { grid-template-columns: 1fr 1fr; }
  .ep-split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .ep-cohorts,
  .ep-cards { grid-template-columns: repeat(3, 1fr); }
  .ep-blocks { grid-template-columns: 1fr 1fr; }
  .ep-insight-grid { grid-template-columns: 1fr; }
  .ep-two,
  .ep-outcome-grid,
  .ep-next,
  .ep-plate-grid { grid-template-columns: 1fr 1fr; }
  .ep-map-span { grid-column: 1 / -1; }
  .ep-branch { grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; }
  .ep-decision-grid { grid-template-columns: 1fr 1fr; }
  .ep-cohort-row,
  .ep-qgrid,
  .ep-branch-board { grid-template-columns: 1fr 1fr; }
  .ep-cohort-row { grid-template-columns: 1fr 1fr 1.15fr; }
  .ep-case { flex-direction: row; align-items: flex-start; gap: 0; }
  .ep-sticky {
    width: 34%;
    position: sticky;
    top: 7.5rem;
    padding-right: 3rem;
    border-right: 1px solid #333;
  }
  .ep-flow { width: 66%; padding-left: 3rem; }
  .ep-crops { grid-template-columns: 1fr 1fr; align-items: start; }
  .ep-plate-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .ep-tile { display: none; }
  .ep-explorer { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .ep-legend-row { grid-column: 1; grid-row: 1; }
  .ep-explorer-bar { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .ep-stage { grid-column: 1 / -1; }
  .ep-how,
  .ep-explorer > .ep-source { grid-column: 1 / -1; }
  .ep-stage {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    align-items: start;
  }
  .ep-matrix-wrap { display: block; grid-column: 1; grid-row: 1; }
  .ep-panel { grid-column: 2; grid-row: 1; position: sticky; top: 8.5rem; }
  .ep-mobile-list { display: none; }
}

@media (max-width: 959px) {
  .ep-matrix-wrap { display: none; }
  .ep-toggle { flex: 1 0 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-chapters { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}
