/* ===== aidevdemo 追加分（styles.css は DocDemo と共通。差分だけここに置く） ===== */
/* 本文の段落に max-width を付けない。幅は親のコンテナ側だけで決める */
.hero-lead, .scenario-brief, .phase-outcome, .harness-lead { max-width: none; }
/* コントラスト 3.0 未満だった薄い灰色を一段濃く */
.scenario-head, .scenario-meta-item dt, .flow-step-tag, .rail-brand { color: var(--ink-3); }
.layers { margin-top: 28px; }
.layers-head { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 10px; }
.layers-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.layer { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; background: var(--bg-soft); min-width: 0; }
.layer-num { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.06em; }
.layer-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.layer-where { font-size: 12px; color: var(--ink-2); margin-top: 6px; font-family: "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.layer-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
@media (max-width: 920px) { .layers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .layers-row { grid-template-columns: 1fr; } }

.phase-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.phase-layer { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--red-line); color: var(--red-deep); background: var(--red-soft); }

.config-section-kind.kind-ci { background: #1f2937; color: #fff; }

.media { margin: 0 0 20px; }
.media-el { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); background: #fff; }
.media-cap { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.media-kind { display: inline-block; font-size: 11px; font-weight: 700; color: var(--red-deep); background: var(--red-soft); border: 1px solid var(--red-line); border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }

.harness { margin: 48px 0 8px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-card); }
.harness-head h2 { font-size: 24px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.harness-lead { color: var(--ink-2); line-height: 1.8; margin: 0 0 20px; }
.harness-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.harness-btn { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: var(--r); background: var(--red); color: #fff; text-decoration: none; min-width: 220px; }
.harness-btn:hover { background: var(--red-deep); }
.harness-btn-label { font-weight: 700; font-size: 15px; }
.harness-btn-sub { font-size: 12px; opacity: 0.85; }
.harness-table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.harness-table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: auto; }
.harness-table th, .harness-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.harness-table th { font-size: 12px; color: var(--ink-3); font-weight: 700; background: var(--bg-soft); }
.harness-table code { font-size: 12.5px; background: var(--bg-code); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.harness-steps { counter-reset: hs; }
.harness-steps .callout-item { counter-increment: hs; }
.harness-steps .callout-title::before { content: counter(hs) ". "; color: var(--red); }
@media (max-width: 720px) { .harness { padding: 20px; } }

.callout-title a { color: inherit; text-decoration: underline; text-decoration-color: var(--red-line); }
.callout-title a:hover { text-decoration-color: var(--red); }
