/* Shared style for the article pages (ja: /articles/, en: /en/articles/). */
:root {
  --bg: #f4f5f7; --panel: #fff; --text: #1d2228; --muted: #6b7480; --border: #d9dde3;
  --accent: #2f6fdb; --wire: #9aa3ad; --dim: #d9480f; --code-bg: #eef0f3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c; --panel: #1e2227; --text: #e6e9ed; --muted: #9aa3ad; --border: #333a42;
    --accent: #4f8cf0; --wire: #6b7480; --dim: #ff8a4c; --code-bg: #2a2f36;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.8;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif; font-size: 15px; }
main { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
article { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px; }
h1 { font-size: 24px; margin: 0 0 4px; line-height: 1.4; }
h2 { font-size: 19px; margin: 36px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
h3 { font-size: 16px; margin: 24px 0 8px; }
p, li { margin: 0 0 8px; }
ol, ul { padding-left: 1.4em; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 13px; }
.topnav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.table-wrap { overflow-x: auto; margin: 8px 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 5px 9px; text-align: right; white-space: nowrap; }
th { background: var(--bg); font-weight: 600; text-align: center; }
td.l, th.l { text-align: left; }
code { background: var(--code-bg); border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.note { border-left: 3px solid var(--accent); background: var(--bg); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.cta { display: block; margin: 28px 0 0; padding: 14px 18px; border: 1px solid var(--accent); border-radius: 10px;
  text-decoration: none; color: inherit; }
.cta strong { color: var(--accent); }
.list a.item { display: block; padding: 14px 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.list a.item strong { color: var(--accent); font-size: 16px; }
.list a.item:first-child { border-top: 0; }
figure { margin: 12px 0 20px; }
figure svg { width: 100%; max-width: 520px; height: auto; display: block; }
figcaption { color: var(--muted); font-size: 13px; }
.wire { fill: none; stroke: var(--wire); stroke-linecap: round; }
.dim { stroke: var(--dim); stroke-width: 1.5; fill: none; }
.dim-text { fill: var(--dim); font-size: 15px; font-weight: 700; font-family: inherit; }
.label { fill: var(--muted); font-size: 12px; font-family: inherit; }
footer { margin-top: 24px; font-size: 13px; color: var(--muted); }
