/* ============================================================
   既発債の実質利回り（money/existing-bond.html）だけの見た目
   タブの形は bond.css・fx-return.css とそろえてある。色は共通の変数だけを使う
   ============================================================ */

.eb-tabs { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--surface); border-radius: var(--r, 10px); box-shadow: var(--shadow); }
.eb-tabs button {
  flex: 1 1 0; min-width: 0; padding: 11px 6px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.35;
  color: var(--ink-2); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.eb-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.eb-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.eb-tabs button small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
@media (max-width: 560px) {
  .eb-tabs button { font-size: 13.5px; padding: 9px 2px; }
  .eb-tabs button small { display: none; }
}

/* 「買」「償還」の札・通貨の名前 */
html[data-ui="v2"] .input-unit .unit.eb-tag { min-width: 0; font-weight: 700; color: var(--ink-2); }
html[data-ui="v2"] .input-unit .unit.eb-cur { max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.eb-btn {
  margin-top: 8px; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--accent); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.eb-btn:hover { background: var(--accent-soft); }
.eb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 結果のそばの注意（為替で元本を割ること） */
.eb-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r, 10px); background: var(--tint-warn, #FFF4E0); color: var(--tint-warn-ink, #8A4B00); font-size: 13.5px; line-height: 1.75; }
.eb-warn:empty { display: none; }

/* 受け取るお金の表は列が多いので、文字を少し小さく */
table.data.eb-tbl { font-size: 13px; }
table.data.eb-tbl td, table.data.eb-tbl th { white-space: nowrap; }
#hist p { font-size: 14px; line-height: 1.8; }
.article code, .formula code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; background: var(--page); padding: 1px 5px; border-radius: 4px; color: var(--ink); overflow-wrap: anywhere; }

/* 過去の為替のまとめ（ラベルと値の2列。狭い画面では縦に） */
.eb-hl { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.eb-hl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.eb-hl li b { font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
@media (max-width: 480px) { .eb-hl li { grid-template-columns: 1fr; gap: 0; } .eb-hl li b { text-align: left; } }
table.data caption.eb-cap { caption-side: bottom; text-align: left; font-size: 12.5px; line-height: 1.7; color: var(--muted); padding-top: 6px; }
.eb-guide p, .eb-guide ul { font-size: 14px; line-height: 1.8; }
.eb-guide table.data { font-size: 13.5px; }
/* 証券会社の画面との対応（2列のリスト。表は狭い入力欄でつぶれるため） */
.eb-map { list-style: none; margin: 10px 0; padding: 0; font-size: 13.5px; line-height: 1.65; }
.eb-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line, #E3E7EE); }
.eb-map li.h { font-size: 12px; color: var(--muted); padding-top: 0; }
.eb-map li span:first-child { font-weight: 600; color: var(--ink); }
.eb-map li.h span:first-child { font-weight: 400; color: var(--muted); }
