/* ============================================================
   ProtonBusMods — Skill Body v2 Skeleton (PRO-274A)

   Canonical CSS for the v2 mod-body content authored in liam.
   9 section types mirrored verbatim from
   c:\temp\bsc\ds\pages\mod-detail.html lines 148-177 (CONTENT CARDS
   + FAQ accordion + CTA banner).

   .aside.callout-* synthesized on-brand using semantic accent tokens
   (--good / --warn / --blue-2) — the source spec doesn't define
   callouts, but the card description (PRO-274) requires them as the
   9th section type.

   Depends on PRO-271 tokens (--bg-1, --line, --blue, --mono, --t-*).
   Served globally via includes/header.php after ds-flags.css. Existing
   skill bodies (`tb_mod_bus.seo_html_user` with `skill_body_v2 = 0`)
   don't use these classes — pure addition, zero regression.

   Drift gate: keep the CONTENT CARDS / FAQ / CTA blocks byte-identical
   to the source spec. The .aside.callout-* block is local-original
   (no upstream to drift against).

   Consumed by future cards: PRO-283 (Liam toolbar pastes these
   skeletons), PRO-284 (mod-page-writer skill emits this shape).
   ============================================================ */

/* ============================================================
   CONTENT CARDS (verbatim from mod-detail.html L148-162)
   ============================================================ */

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.card h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.card p {
  font-size: 13.5px;
  color: var(--t-2);
  line-height: 1.65;
  margin: 0 0 10px;
}
.card p.caption {
  font-size: 12px;
  color: var(--t-3);
  font-style: italic;
}

/* Tag chips inside .card (description block) */
.card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.card .tags .mtag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--t-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   HIGHLIGHTS LIST (verbatim L153-155)
   ============================================================ */

.feat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.feat-list li {
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}
.feat-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

/* ============================================================
   TWO-COLUMN LAYOUT + KV (Compatibility & Tech) (verbatim L156-158)
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.kv h4,
.perf h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.kv .spec-row:first-of-type {
  border-top: 0;
}

/* .spec-row from L137-139 (also used inside .kv and .specs) */
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.spec-row .k {
  color: var(--t-3);
}
.spec-row .v {
  color: var(--t-1);
  font-weight: 600;
}

/* ============================================================
   PERFORMANCE GRID (verbatim L159-162)
   ============================================================ */

.perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.perf-cell {
  background: var(--bg-2);
  padding: 14px;
}
.perf-cell .pl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.perf-cell .pv {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-1);
}

/* ============================================================
   FAQ ACCORDION (verbatim L165-171)
   ============================================================ */

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:first-of-type {
  border-top: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--t-1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .chev {
  color: var(--t-3);
  transition: transform .15s;
}
.faq details[open] summary .chev {
  transform: rotate(90deg);
}
.faq .ans {
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.6;
  padding: 0 0 14px 24px;
}

/* ============================================================
   DOWNLOAD BANNER (verbatim L174-177)
   ============================================================ */

.dl-banner {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin: 8px 0 16px;
}
.dl-banner .dl-ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, .15);
  color: var(--blue-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
}
.dl-banner h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.dl-banner p {
  font-size: 13.5px;
  color: var(--t-3);
  margin: 0 0 18px;
}

/* .btn-primary used inside .dl-banner is defined in styles.css L521-525
   (DS) and mirrored in views/components/button.php. No need to redefine
   here — when the v2 markup pastes <a class="btn btn-primary">, it picks
   up the global rules. */

/* ============================================================
   ASIDE / CALLOUTS — synthesized on-brand (no upstream spec)

   3 variants: info (blue accent), warn (orange --warn), tip (green --good).
   Same shape as .card but with a left border accent + small icon slot,
   so authors can quickly mark "good to know" / "watch out" / "pro tip"
   blocks without cluttering the page hierarchy.
   ============================================================ */

.aside {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.aside .ico {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.aside .body {
  flex: 1;
  min-width: 0;
}
.aside .body h4 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--t-1);
}
.aside .body p {
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.5;
  margin: 0;
}
.aside.callout-info {
  border-left-color: var(--blue-2);
}
.aside.callout-info .ico {
  color: var(--blue-2);
}
.aside.callout-warn {
  border-left-color: var(--warn);
}
.aside.callout-warn .ico {
  color: var(--warn);
}
.aside.callout-tip {
  border-left-color: var(--good);
}
.aside.callout-tip .ico {
  color: var(--good);
}

/* ============================================================
   RESPONSIVE — collapse two-col + perf-grid on small viewports
   (mirrors mod-detail.html L228 .two-col mobile rule)
   ============================================================ */

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .perf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 18px 20px;
  }
  .dl-banner {
    padding: 28px 20px;
  }
}
