/* /docs/ecosystem/* — focused-article doc pages. Single column, no sidebar. */

.eco-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
@media (max-width: 720px) {
  .eco-shell { padding: 40px 20px 72px; }
}

.eco-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin: 0 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.eco-eyebrow::before { content: '§'; color: var(--amber-dim); }
.eco-eyebrow a { color: var(--cream-dim); text-decoration: none; }
.eco-eyebrow a:hover { color: var(--amber); }

.eco-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0 0 16px;
  color: var(--cream);
}
.eco-title em { font-style: italic; color: var(--amber); }

.eco-sub {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--cream);
  font-weight: 300;
  margin: 0 0 32px;
  max-width: 60ch;
}

.eco-tldr {
  border-left: 2px solid var(--amber);
  background: var(--ink-2);
  padding: 18px 22px;
  margin: 0 0 40px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream);
}
.eco-tldr strong { color: var(--amber); font-weight: 500; }
.eco-tldr code {
  background: var(--ink-3); padding: 1px 5px; font-family: var(--mono);
  font-size: 13px; color: var(--cream-dim);
}

.eco-shell h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 48px 0 14px;
  color: var(--cream);
}

.eco-shell p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
  margin: 0 0 14px;
  max-width: 70ch;
}

.eco-shell ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.eco-shell li {
  padding: 8px 0 8px 18px;
  border-bottom: 1px dashed var(--hairline);
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
  position: relative;
}
.eco-shell li:last-child { border-bottom: none; }
.eco-shell li::before {
  content: '·';
  color: var(--amber);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.eco-shell li strong { color: var(--amber); font-weight: 500; }
.eco-shell li code {
  background: var(--ink-3); padding: 1px 5px; font-family: var(--mono);
  font-size: 12px; color: var(--cream-dim);
}

table.eco-matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 14px;
  margin: 12px 0 28px;
}
table.eco-matrix th, table.eco-matrix td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--cream);
}
table.eco-matrix thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  background: var(--ink-2);
}
table.eco-matrix td.pick { color: var(--amber); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
table.eco-matrix td.pick.us { color: var(--green); font-weight: 600; }
table.eco-matrix code {
  background: var(--ink-3); padding: 1px 5px; font-family: var(--mono);
  font-size: 12px; color: var(--cream-dim);
}

.eco-code {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream);
  overflow-x: auto;
  margin: 12px 0 28px;
}
.eco-code .ck { color: #fbbf24; }
.eco-code .cs { color: #a3e635; }
.eco-code .cc { color: var(--cream-deep); font-style: italic; }

.eco-other {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.eco-other-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 12px;
}
.eco-other-list {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.eco-other-list a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  transition: all 140ms ease;
}
.eco-other-list a:hover { color: var(--amber); border-color: var(--amber); }
.eco-other-list a[aria-current="page"] {
  color: var(--amber); border-color: var(--amber); background: var(--ink-2);
}

a.eco-link { color: var(--amber); text-decoration: none; }
a.eco-link:hover { text-decoration: underline; }

/* ── Try-Genka-in-60-seconds CTA block ───────────────────────── */
.eco-cta {
  margin-top: 56px;
  padding: 28px 32px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink-3) 100%);
  border: 1px solid var(--amber-dim);
  border-left-width: 3px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.eco-cta-text h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--cream);
}
.eco-cta-text h3 em { font-style: italic; color: var(--amber); }
.eco-cta-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-dim);
  margin: 0 0 12px;
  max-width: 60ch;
}
.eco-cta-snip {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--ink);
  border: 1px solid var(--hairline);
  padding: 12px 16px;
  margin: 0;
  color: var(--cream);
  overflow-x: auto;
  white-space: pre;
}
.eco-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--amber);
  color: var(--ink);
  border: 1px solid var(--amber);
  white-space: nowrap;
  transition: all 160ms ease;
}
.eco-cta-btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  transform: translateY(-1px);
  text-decoration: none;
}
.eco-pricing {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-deep);
  text-align: center;
}
.eco-pricing strong { color: var(--amber); font-weight: 600; }
.eco-pricing a { color: var(--cream-dim); text-decoration: none; border-bottom: 1px dotted var(--cream-deep); }
.eco-pricing a:hover { color: var(--amber); border-color: var(--amber); }

@media (max-width: 700px) {
  .eco-cta { grid-template-columns: 1fr; }
  .eco-cta-btn { justify-content: center; }
}

/* ── In-the-wild quote strip (placeholder until real quotes land) ─── */
.eco-wild {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 16px 0 32px;
}
.eco-wild figure {
  margin: 0;
  padding: 18px 20px;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--amber);
}
.eco-wild blockquote {
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
  color: var(--cream);
  margin: 0 0 12px;
  quotes: "\201C" "\201D";
}
.eco-wild blockquote::before { content: open-quote; color: var(--amber); margin-right: 2px; }
.eco-wild blockquote::after  { content: close-quote; color: var(--amber); margin-left: 2px; }
.eco-wild figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}
@media (max-width: 700px) {
  .eco-wild { grid-template-columns: 1fr; }
}

/* ── Mobile diagram + table polish ──────────────────────────────────
   Diagram is 1400×900 with tiny labels — at phone width it shrinks
   below readability. Solution: keep min-width and let the figure
   scroll horizontally, with a subtle nudge in the caption. */
@media (max-width: 720px) {
  .eco-shell { padding: 32px 16px 64px; }

  .eco-title { font-size: clamp(28px, 7.5vw, 40px); }
  .eco-sub   { font-size: 15px; max-width: none; }
  .eco-tldr  { font-size: 14px; padding: 14px 16px; }

  /* Diagram: scroll horizontally, preserve label readability */
  .eco-diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 18px;
    border-radius: 0;
  }
  .eco-diagram > object,
  .eco-diagram > img {
    min-width: 720px;
    width: 720px;
  }
  .eco-diagram-caption::before {
    content: "↔ swipe horizontally to read the full diagram\A";
    white-space: pre;
    color: var(--amber-dim);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
    display: block;
    margin-bottom: 4px;
  }

  /* Decision matrix: shrink padding + font, allow wrap */
  table.eco-matrix { font-size: 13px; }
  table.eco-matrix th,
  table.eco-matrix td { padding: 9px 6px; vertical-align: top; }
  table.eco-matrix .small { font-size: 11px; }
  table.eco-matrix td.pick { white-space: normal; }
  table.eco-matrix code { font-size: 11px; padding: 1px 4px; }

  /* Code blocks: keep readable */
  .eco-code { font-size: 11px; padding: 14px 16px; }

  /* CTA snippet block: smaller font on phones so the long curl wraps gracefully */
  .eco-cta-snip { font-size: 11px; padding: 10px 12px; }
}

/* Very small phones (iPhone SE etc.) */
@media (max-width: 380px) {
  .eco-shell { padding: 24px 12px 48px; }
  .eco-title { font-size: 26px; line-height: 1.05; }
  .eco-tldr  { font-size: 13.5px; }
  table.eco-matrix { font-size: 12px; }
}
