/* ============================================================
   Yapuka Presse — front-end styles (scoped under .ypresse-doc)
   ============================================================ */

.ypresse-doc {
  --yp-ink: #1a1814;
  --yp-ink-soft: #3a352d;
  --yp-muted: #6a6357;
  --yp-line: #d9d3c4;
  --yp-paper: #faf7f0;
  --yp-paper-warm: #f2ecdd;
  --yp-accent: #b4691f;
  --yp-accent-soft: #e7c9a3;

  color: var(--yp-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* Reset defensive — the theme has * { margin:0; padding:0 } + ul{list-style:none} */
.ypresse-doc p,
.ypresse-doc h2,
.ypresse-doc h3,
.ypresse-doc h4,
.ypresse-doc ul,
.ypresse-doc ol,
.ypresse-doc table {
  margin: 0 0 16px;
}

.ypresse-doc h2,
.ypresse-doc h3,
.ypresse-doc h4 {
  font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--yp-ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.ypresse-doc h2 {
  font-size: 32px;
  margin: 0 0 20px;
}

.ypresse-doc h3 {
  font-size: 20px;
  color: var(--yp-ink-soft);
  margin: 28px 0 10px;
}

.ypresse-doc h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yp-accent);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin: 20px 0 8px;
}

.ypresse-doc p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--yp-ink-soft);
}

.ypresse-doc strong {
  color: var(--yp-ink);
  font-weight: 600;
}

.ypresse-doc em {
  color: var(--yp-ink-soft);
  font-style: italic;
}

.ypresse-doc a {
  color: var(--yp-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ypresse-doc a:hover,
.ypresse-doc a:focus {
  color: var(--yp-ink);
}

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

.ypresse-doc .ypresse-section {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--yp-line);
}

.ypresse-doc .ypresse-section:first-child {
  padding-top: 8px;
}

.ypresse-doc .ypresse-section:last-of-type {
  border-bottom: none;
}

.ypresse-doc .ypresse-lead h2 {
  font-size: 36px;
}

.ypresse-doc .ypresse-warning {
  background: var(--yp-paper);
  border: 1px solid var(--yp-accent-soft);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 32px;
}

.ypresse-doc .ypresse-warning h2 {
  color: var(--yp-ink);
}

/* ---------- Kicker ---------- */

.ypresse-doc .ypresse-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yp-accent);
  font-weight: 700;
  margin: 0 0 12px;
}

/* ---------- Bulleted lists ---------- */

.ypresse-doc ul:not(.ypresse-cards) {
  list-style: disc;
  padding-left: 24px;
}

.ypresse-doc ul:not(.ypresse-cards) li {
  margin-bottom: 8px;
  color: var(--yp-ink-soft);
  line-height: 1.65;
}

.ypresse-doc ul:not(.ypresse-cards) li strong {
  color: var(--yp-ink);
}

/* ---------- Cards grid (3 up) ---------- */

.ypresse-doc .ypresse-cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.ypresse-doc .ypresse-cards li {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--yp-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ypresse-doc .ypresse-cards li strong {
  color: var(--yp-ink);
  font-size: 16px;
}

/* ---------- Pills ---------- */

.ypresse-doc .ypresse-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--yp-paper-warm);
  color: var(--yp-ink-soft);
  align-self: flex-start;
}

.ypresse-doc .ypresse-pill--accent {
  background: var(--yp-accent);
  color: #fff;
}

.ypresse-doc .ypresse-pill--outline {
  background: transparent;
  color: var(--yp-ink);
  border: 1px solid var(--yp-ink);
  padding: 2px 11px;
}

/* ---------- Key/value tables ---------- */

.ypresse-doc table.ypresse-kv {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 15px;
}

.ypresse-doc table.ypresse-kv th,
.ypresse-doc table.ypresse-kv td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--yp-line);
  vertical-align: top;
}

.ypresse-doc table.ypresse-kv th {
  color: var(--yp-muted);
  font-weight: 500;
  width: 40%;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.ypresse-doc table.ypresse-kv td {
  color: var(--yp-ink);
  font-weight: 500;
}

.ypresse-doc table.ypresse-kv tr:last-child th,
.ypresse-doc table.ypresse-kv tr:last-child td {
  border-bottom: none;
}

/* ---------- Placeholder badge ---------- */

.ypresse-doc .yapuka-presse-placeholder {
  background: #fff3d6;
  color: #7a5a10;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- CTA / download button block ---------- */

.ypresse-doc .ypresse-cta {
  margin: 40px 0 8px;
  text-align: center;
}

/* ---------- Two-column layout ---------- */

.ypresse-doc .ypresse-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 16px 0 24px;
}

/* ---------- Callout (blockquote-style highlight) ---------- */

.ypresse-doc .ypresse-callout {
  border-left: 3px solid var(--yp-accent);
  padding: 12px 0 12px 20px;
  margin: 20px 0;
  color: var(--yp-ink-soft);
  font-family: 'Bricolage Grotesque', 'Inter', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
}

/* ---------- Content cards (grid of h4 + p, for 8 modules Trader etc.) ---------- */

.ypresse-doc .ypresse-content-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0 24px;
}

.ypresse-doc .ypresse-content-cards .ypresse-card {
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Content card (standalone box) ---------- */

.ypresse-doc .ypresse-card {
  background: #fff;
  border: 1px solid var(--yp-line);
  border-radius: 10px;
  padding: 20px 22px;
  color: var(--yp-ink-soft);
}

.ypresse-doc .ypresse-card h3,
.ypresse-doc .ypresse-card h4 {
  margin-top: 0;
  margin-bottom: 6px;
}

.ypresse-doc .ypresse-card h4 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  color: var(--yp-ink);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.ypresse-doc .ypresse-card--warm {
  background: var(--yp-paper);
  border-color: var(--yp-accent-soft);
}

.ypresse-doc .ypresse-card p {
  font-size: inherit;
}

.ypresse-doc .ypresse-card table.ypresse-kv {
  margin: 8px 0 0;
}

/* ---------- Specs table (variant of ypresse-kv with uppercase small labels) ---------- */

.ypresse-doc table.ypresse-kv--specs th {
  color: var(--yp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  width: 38%;
}

/* ---------- Galaxie SVG container ---------- */

.ypresse-doc .ypresse-galaxie {
  background: var(--yp-paper);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin: 20px 0 8px;
}

.ypresse-doc .ypresse-galaxie svg,
.ypresse-doc .ypresse-galaxie img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ypresse-doc .ypresse-caption {
  font-size: 13px;
  color: var(--yp-muted);
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ---------- Lead paragraph (sub-headline) ---------- */

.ypresse-doc .ypresse-lead-p {
  font-family: 'Bricolage Grotesque', 'Inter', Georgia, serif;
  font-size: 19px;
  color: var(--yp-ink-soft);
  line-height: 1.5;
  margin: 4px 0 20px;
}

/* ---------- Muted / disclaimer paragraphs ---------- */

.ypresse-doc .ypresse-muted {
  color: var(--yp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ypresse-doc .ypresse-disclaimer {
  font-size: 13px;
  color: var(--yp-muted);
  line-height: 1.55;
  border-top: 1px solid var(--yp-line);
  padding-top: 16px;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .ypresse-doc .ypresse-cards,
  .ypresse-doc .ypresse-content-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .ypresse-doc {
    font-size: 16px;
    padding: 8px 0 32px;
  }
  .ypresse-doc h2 { font-size: 26px; }
  .ypresse-doc .ypresse-lead h2 { font-size: 28px; }
  .ypresse-doc h3 { font-size: 18px; }
  .ypresse-doc .ypresse-cards,
  .ypresse-doc .ypresse-content-cards {
    grid-template-columns: 1fr;
  }
  .ypresse-doc .ypresse-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ypresse-doc .ypresse-galaxie {
    padding: 16px 12px;
  }
  .ypresse-doc .ypresse-callout,
  .ypresse-doc .ypresse-lead-p {
    font-size: 17px;
  }
  .ypresse-doc table.ypresse-kv th {
    width: 45%;
    font-size: 13px;
  }
  .ypresse-doc table.ypresse-kv,
  .ypresse-doc table.ypresse-kv th,
  .ypresse-doc table.ypresse-kv td {
    font-size: 14px;
  }
}
