/* /report/enterprise-readiness/ 専用。セレクタは .er- で前置スコープする（他ページへ干渉させない）。
 *
 * 階層:
 *   L1 = index.php（全体サマリ）
 *   L2 = page.php  ?path={area}
 *   L3 = page.php  ?path={area}/{item}
 *   読み手別 = page.php ?path=for/{audience}
 *
 * 図版はすべてHTMLとCSSだけで描く（画像・外部ライブラリを使わない）。
 */

.er-page {
  --er-verified: #16a34a;
  --er-verified-bg: #dcfce7;
  --er-verified-fg: #166534;
  --er-partial: #d97706;
  --er-partial-bg: #fef3c7;
  --er-partial-fg: #92400e;
  --er-planned: #94a3b8;
  --er-planned-bg: #e2e8f0;
  --er-planned-fg: #475569;
  --er-external: #a855f7;
  --er-external-bg: #f3e8ff;
  --er-external-fg: #6b21a8;

  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 68px) 24px 112px;
}

.er-eyebrow { margin: 0 0 12px; color: var(--p); font: 700 13px/1.5 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.er-hero { margin-bottom: clamp(40px, 6vw, 68px); }
.er-hero h1 { max-width: 780px; margin: 0; color: var(--fg); font-size: clamp(30px, 4.8vw, 50px); line-height: 1.18; letter-spacing: -.03em; }
.er-lead { max-width: 780px; margin: 20px 0 0; color: var(--fg-2); font-size: clamp(15.5px, 1.8vw, 18px); line-height: 1.9; }

.er-callout { display: flex; gap: 14px; margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.er-callout .mi { flex: none; color: var(--p); font-size: 22px; }
.er-callout h2, .er-callout h3 { margin: 0 0 8px; font-size: 17px; }
.er-callout p { margin: 0 0 10px; color: var(--fg-2); font-size: 15px; line-height: 1.9; }
.er-callout p:last-child { margin-bottom: 0; }
.er-callout--strong { border-color: #bfdbfe; background: linear-gradient(150deg, #f0f7ff 0%, #f8fbff 100%); }

.er-section { margin-top: clamp(44px, 6.5vw, 76px); }
.er-section > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: clamp(21px, 2.8vw, 29px); letter-spacing: -.02em; }
.er-heading-icon { color: var(--p); font-size: 26px; }
.er-section > p { max-width: 830px; margin: 0 0 22px; color: var(--fg-2); font-size: 15.5px; line-height: 1.95; }
.er-note { max-width: 830px; margin-top: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ===== 文章中のテキストリンク =====
 * コンテナ側に color を指定しているため、子孫の a は放置すると本文と同じ色になり
 * リンクだと分からない。カード全体がリンクのもの（.er-*-card / .er-tree__node /
 * .er-siblings / .er-tag / .er-cta / .er-matrix）は枠と矢印で分かるので対象外。 */
.er-lead a,
.er-note a,
.er-callout p a,
.er-section > p a,
.er-definition li a,
.er-col li a,
.er-before-card p a,
.er-panel > h3 a,
.er-panel > p a,
.er-table th a,
.er-table td a {
  color: var(--p);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 99, 235, .4);
}
.er-lead a:hover,
.er-note a:hover,
.er-callout p a:hover,
.er-section > p a:hover,
.er-definition li a:hover,
.er-col li a:hover,
.er-before-card p a:hover,
.er-panel > h3 a:hover,
.er-panel > p a:hover,
.er-table th a:hover,
.er-table td a:hover {
  color: var(--p-dark);
  text-decoration-color: currentColor;
}
/* 領域チップ（ロードマップ・留保台帳・読み手別ページ）は文章中に置かれるが、
   チップ自身の背景と丸みで分かるので下線を付けない。 */
.er-page a.er-tag { text-decoration: none; color: var(--p-dark); }

/* ===== 状態バッジ ===== */
.er-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.er-status--verified { color: var(--er-verified-fg); background: var(--er-verified-bg); }
.er-status--partial  { color: var(--er-partial-fg);  background: var(--er-partial-bg); }
.er-status--planned  { color: var(--er-planned-fg);  background: var(--er-planned-bg); }
.er-status--external { color: var(--er-external-fg); background: var(--er-external-bg); }
.er-status--sm { padding: 3px 9px; font-size: 11.5px; }

/* ===== 数値サマリ ===== */
.er-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.er-kpi { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.er-kpi__num { display: block; color: var(--fg); font: 700 30px/1.1 Inter, sans-serif; letter-spacing: -.02em; }
.er-kpi__num small { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.er-kpi__label { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.er-kpi--verified .er-kpi__num { color: var(--er-verified-fg); }
.er-kpi--partial  .er-kpi__num { color: var(--er-partial-fg); }
.er-kpi--planned  .er-kpi__num { color: var(--er-planned-fg); }
.er-kpi--external .er-kpi__num { color: var(--er-external-fg); }

/* ===== 積み上げバー ===== */
.er-bar { display: flex; width: 100%; height: 26px; overflow: hidden; border-radius: 999px; background: var(--er-planned-bg); }
.er-bar__seg { display: flex; align-items: center; justify-content: center; min-width: 22px; color: #fff; font: 700 12px/1 Inter, sans-serif; }
.er-bar__seg--verified { background: var(--er-verified); }
.er-bar__seg--partial  { background: var(--er-partial); }
.er-bar__seg--planned  { background: #8fa0b4; }
.er-bar__seg--external { background: var(--er-external); }
.er-bar--sm { height: 8px; }
.er-bar--sm .er-bar__seg { font-size: 0; min-width: 6px; }

.er-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.er-legend li { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); font-size: 13px; }
.er-legend__swatch { width: 12px; height: 12px; border-radius: 3px; }
.er-legend__swatch--verified { background: var(--er-verified); }
.er-legend__swatch--partial  { background: var(--er-partial); }
.er-legend__swatch--planned  { background: #8fa0b4; }
.er-legend__swatch--external { background: var(--er-external); }

/* ===== 証拠の段階（ステッパー） ===== */
.er-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.er-stepper li { position: relative; padding: 0 8px; text-align: center; }
.er-stepper li::before { content: ""; position: absolute; top: 13px; left: 0; width: 100%; height: 2px; background: var(--line); }
.er-stepper li:first-child::before { left: 50%; width: 50%; }
.er-stepper li:last-child::before { width: 50%; }
.er-stepper li.is-done::before { background: var(--p); }
.er-stepper li.is-done:first-child::before { background: var(--p); }
.er-stepper__dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted-2); font: 700 11px/1 Inter, sans-serif; }
.er-stepper li.is-done .er-stepper__dot { border-color: var(--p); background: var(--p); color: #fff; }
.er-stepper li.is-current .er-stepper__dot { box-shadow: 0 0 0 5px rgba(37, 99, 235, .16); }
.er-stepper__label { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.er-stepper li.is-done .er-stepper__label { color: var(--fg-2); font-weight: 700; }
.er-stepper__now { display: block; margin-top: 4px; color: var(--p); font-size: 11px; font-weight: 700; }

.er-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.er-evidence li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.er-evidence__step { flex: none; color: var(--p); font: 700 13px/1 Inter, sans-serif; letter-spacing: .08em; padding-top: 3px; }
.er-evidence h3 { margin: 0 0 6px; font-size: 15.5px; }
.er-evidence p { margin: 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.8; }

/* ===== 階層図 ===== */
.er-tree { margin: 24px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; overflow-x: auto; }
.er-tree ul { margin: 0; padding: 0 0 0 22px; list-style: none; }
.er-tree > ul { padding-left: 0; }
.er-tree li { position: relative; padding: 3px 0 3px 0; }
.er-tree ul ul { position: relative; }
.er-tree ul ul > li { padding-left: 20px; }
.er-tree ul ul > li::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: var(--muted-3); }
.er-tree ul ul > li:last-child::before { height: 16px; }
.er-tree ul ul > li::after { content: ""; position: absolute; top: 16px; left: 0; width: 13px; height: 1px; background: var(--muted-3); }
.er-tree__node { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--fg); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
a.er-tree__node:hover { border-color: var(--p); color: var(--p); }
.er-tree__node--root { border-color: var(--p); background: var(--p); color: #fff; font-weight: 700; }
.er-tree__code { color: var(--muted); font: 700 11px/1 Inter, sans-serif; letter-spacing: .06em; }
.er-tree__node--root .er-tree__code { color: rgba(255,255,255,.8); }
.er-tree__dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.er-tree__dot--verified { background: var(--er-verified); }
.er-tree__dot--partial  { background: var(--er-partial); }
.er-tree__dot--planned  { background: #8fa0b4; }
.er-tree__dot--external { background: var(--er-external); }
.er-tree__level { display: inline-block; margin: 0 0 4px; color: var(--muted-2); font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .12em; }
.er-tree__level--sub { display: block; margin: 14px 0 6px 22px; }

/* ===== 領域カード（L1） ===== */
.er-area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.er-area-card { display: flex; flex-direction: column; padding: 24px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.er-area-card:hover { transform: translateY(-3px); border-color: var(--p-soft-3); box-shadow: 0 20px 46px rgba(37, 99, 235, .12); }
.er-area-card__head { display: flex; align-items: center; gap: 10px; }
.er-area-card__code { color: var(--p); font: 700 12px/1 Inter, sans-serif; letter-spacing: .1em; }
.er-area-card__icon { color: var(--p); font-size: 22px; }
.er-area-card__head .er-status { margin-left: auto; }
.er-area-card h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.45; letter-spacing: -.01em; }
.er-area-card__question { margin: 0 0 16px; color: var(--fg-2); font-size: 14px; line-height: 1.85; }
.er-area-card__meter { margin-top: auto; }
.er-area-card__counts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.er-area-card__counts b { color: var(--fg); }
.er-area-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--p); font-size: 14px; font-weight: 700; }

/* ===== 項目カード（L2） ===== */
.er-item-list { display: grid; gap: 16px; margin-top: 24px; }
.er-item-card { display: block; padding: 22px 24px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.er-item-card:hover { border-color: var(--p-soft-3); box-shadow: 0 14px 34px rgba(37, 99, 235, .1); }
.er-item-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.er-item-card__er { color: var(--p); font: 700 12px/1 Inter, sans-serif; letter-spacing: .08em; }
.er-item-card__head h3 { margin: 0; font-size: 17.5px; letter-spacing: -.01em; flex: 1 1 240px; }
.er-item-card p { margin: 10px 0 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.9; }
.er-item-card__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.er-item-card__stage { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.er-pips { display: inline-flex; gap: 3px; }
.er-pips i { width: 16px; height: 5px; border-radius: 999px; background: var(--line); }
.er-pips i.is-on { background: var(--p); }
.er-item-card__link { margin-left: auto; color: var(--p); font-size: 13.5px; font-weight: 700; }

/* ===== 基準×領域マトリクス ===== */
.er-matrix-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; }
.er-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.er-matrix th, .er-matrix td { border-bottom: 1px solid var(--line); }
.er-matrix thead th { padding: 12px 10px; background: #f8fafc; font-size: 12px; font-weight: 700; color: var(--fg); vertical-align: bottom; }
.er-matrix thead th:last-child, .er-matrix tbody td:last-child { padding-right: 16px; }
.er-matrix thead th:first-child { text-align: left; padding-left: 16px; min-width: 210px; }
.er-matrix thead th a { color: inherit; text-decoration: none; display: block; }
.er-matrix thead th a:hover { color: var(--p); }
.er-matrix thead .er-matrix__code { display: block; color: var(--p); font: 700 10.5px/1.4 Inter, sans-serif; letter-spacing: .06em; }
.er-matrix tbody th { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--fg); }
.er-matrix tbody th a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--muted-3); }
.er-matrix tbody th a:hover { color: var(--p); border-color: var(--p); }
.er-matrix tbody td { padding: 12px 8px; text-align: center; }
.er-matrix tbody tr:last-child th, .er-matrix tbody tr:last-child td { border-bottom: 0; }
.er-matrix__on { display: inline-block; width: 11px; height: 11px; border-radius: 999px; background: var(--p); }
.er-matrix__off { display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--muted-3); }

/* ===== 表 ===== */
.er-table-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; }
.er-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.er-table th, .er-table td { padding: 14px 16px; text-align: left; vertical-align: top; line-height: 1.85; border-bottom: 1px solid var(--line); }
.er-table thead th { color: var(--fg); font-size: 13px; font-weight: 700; letter-spacing: .04em; background: #f8fafc; white-space: nowrap; }
.er-table tbody th { color: var(--fg); font-weight: 700; }
.er-table tbody td { color: var(--fg-2); }
.er-table tbody tr:last-child th, .er-table tbody tr:last-child td { border-bottom: 0; }
.er-table--roadmap { min-width: 900px; }
.er-table__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.er-tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--p-soft-2); color: var(--p-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
a.er-tag:hover { background: var(--p-soft); }

.er-phase { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.er-phase--p0 { color: #9a3412; background: #ffedd5; }
.er-phase--p1 { color: #1e40af; background: #dbeafe; }
.er-phase--opt { color: #475569; background: #e2e8f0; }

/* ===== 読み手別カード ===== */
.er-audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 26px; }
.er-audience-card { display: block; padding: 26px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, #fff 0%, #f7fbff 100%); box-shadow: 0 16px 40px rgba(15, 23, 42, .06); transition: transform .2s ease, box-shadow .2s ease; }
.er-audience-card:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(37, 99, 235, .12); }
.er-audience-card__tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.er-audience-card h3 { margin: 18px 0 8px; font-size: 20px; line-height: 1.45; }
.er-audience-card p { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.85; }
.er-audience-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--p); font-size: 14px; font-weight: 700; }

/* ===== 詳細ブロック（L2・L3の本文） ===== */
.er-panel { margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.er-panel > h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.01em; }
.er-panel--target { border-left: 3px solid var(--p); border-radius: 0 16px 16px 0; background: #f1f6ff; }

.er-panel > .er-panel__title { margin: 14px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.er-panel__body { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.9; }
.er-panel__body--lead { margin-bottom: 14px; }
.er-panel--nested { margin-top: 16px; }
.er-table-wrap--stacked { margin-top: 18px; }
.er-area-card__counts--spaced { margin-top: 10px; }
.er-stepper-note { margin-top: 18px; }

.er-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.er-col h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 15px; letter-spacing: .01em; }
.er-col h3 .mi { font-size: 19px; color: var(--er-verified); }
.er-col--remaining h3 .mi { color: var(--er-partial); }
.er-col--acceptance h3 .mi { color: var(--p); }
.er-col ul { margin: 0; padding-left: 20px; }
.er-col li { margin-bottom: 10px; color: var(--fg-2); font-size: 14px; line-height: 1.9; }
.er-col li:last-child { margin-bottom: 0; }
.er-col code { padding: 1px 5px; border-radius: 4px; background: #f1f5f9; font-size: 12.5px; word-break: break-all; }

.er-evidence-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.er-evidence-table th, .er-evidence-table td { padding: 11px 0; text-align: left; vertical-align: top; line-height: 1.8; border-bottom: 1px solid var(--line); }
.er-evidence-table th { width: 40%; padding-right: 18px; color: var(--fg); font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-word; }
.er-evidence-table td { color: var(--fg-2); }
.er-evidence-table tr:last-child th, .er-evidence-table tr:last-child td { border-bottom: 0; }
.er-empty { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ===== 兄弟ナビ ===== */
.er-siblings { margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.er-siblings h2 { margin: 0 0 14px; font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.er-siblings ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.er-siblings a { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); font-size: 14px; text-decoration: none; }
.er-siblings a:hover { border-color: var(--p); color: var(--p); }
.er-siblings li.is-current span { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--p); border-radius: 12px; background: var(--p-soft-2); color: var(--p-dark); font-size: 14px; font-weight: 700; }

/* ===== 定義リスト・カード・CTA ===== */
.er-definition { margin: 0; padding-left: 20px; max-width: 860px; }
.er-definition li { margin-bottom: 12px; color: var(--fg-2); font-size: 15px; line-height: 1.95; }

.er-before-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.er-before-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.er-before-card h3 { margin: 0 0 8px; font-size: 16px; }
.er-before-card p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.85; }

.er-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 13px 24px; border-radius: 999px; color: #fff; background: var(--p); font-size: 15px; font-weight: 700; text-decoration: none; }
.er-cta:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
  .er-panel { padding: 20px; }
  .er-area-card { padding: 20px; }
  .er-item-card { padding: 18px 20px; }
  .er-stepper { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .er-stepper li:nth-child(2)::before { width: 50%; }
  .er-stepper li:nth-child(3)::before { left: 50%; width: 50%; }
  .er-evidence-table th { width: auto; display: block; padding-bottom: 4px; border-bottom: 0; }
  .er-evidence-table td { display: block; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .er-area-card, .er-item-card, .er-audience-card { transition: none; }
  .er-area-card:hover, .er-audience-card:hover { transform: none; }
}

/* Weighted internal readiness score; separate from adoption decisions. */
.er-scoring { scroll-margin-top: 100px; }
.er-score-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); padding: var(--space-6); background: var(--p-soft); border: 1px solid var(--line); border-radius: var(--r); }
.er-scoring .er-score-value { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.er-score-value strong { font-size: clamp(36px, 6vw, 56px); line-height: 1.2; }
.er-score-value span { font-size: var(--fs-xl); white-space: nowrap; }
.er-score-summary > p { margin: 0; }
.er-score-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.er-score-table-wrap { border-radius: var(--r); }
.er-score-table-wrap:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.er-score-table { min-width: 760px; }
.er-score-table caption { text-align: left; padding: var(--space-4); color: var(--fg-2); }
.er-score-table tbody th { min-width: 180px; }
.er-score-table tfoot { background: var(--p-soft); }
.er-score-method { margin-top: var(--space-6); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 100px; }
.er-score-method summary { cursor: pointer; font-weight: 700; color: var(--fg); }
.er-score-method summary:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.er-score-method li { margin-block: var(--space-2); line-height: 1.85; }
@media (max-width: 640px) {
  .er-score-summary { padding: var(--space-4); gap: var(--space-4); }
}
