/* now.css — /now/ (Lambda 生成の 1 枚紙) 専用の自己完結 CSS (WAVE-E3 親裁定 2・9)。
   固定名で CI が配信する (ハッシュ化しない — Lambda はハッシュ名を解決できない)。
   色は site.css の検証済みトークンと同値 (番人 tests/e3-guard が同値性を機械検査する。
   値を変えるときは site.css 側の検証と同時に)。ダークは data-theme でなく
   prefers-color-scheme 追随 (この面はテーマ切替 JS を持たない — 申し送り済みの v1 割り切り)。
   CSP: style-src 'self' のため inline style は使えない — % 配置は SVG 属性 (site.css と同じ規律) */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1b2530;
  --sub: #405266;
  --border: #ccd6e0;
  --rule-ink: #1b2530;
  --accent: #27548c;
  --hot: #a43b2f;
  --link: #1e4f8c;
  --scroll-hint: rgba(27, 37, 48, 0.22);
  --tap-min: 44px;
  --viz-hot: #cf4335;
  --viz-cold: #2a6fbe;
  --viz-qdot: #8a5f16;
  --viz-track: #d7dde3;
  --viz-grid: #e8ecef;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --text: #e8ebef;
    --sub: #aab7c4;
    --border: #33404e;
    --rule-ink: #e8ebef;
    --accent: #6f9fd8;
    --hot: #e08578;
    --link: #8ab4e8;
    --scroll-hint: rgba(232, 235, 239, 0.18);
    --viz-hot: #e08578;
    --viz-cold: #7db2dd;
    --viz-qdot: #d4ad41;
    --viz-track: #333e4a;
    --viz-grid: #232c36;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.now-masthead {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
  border-bottom: 3px double var(--rule-ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.now-masthead a {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}
.now-tagline { font-size: 13px; color: var(--sub); letter-spacing: 0.12em; }

h1 {
  font-size: clamp(28px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 10px;
}
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  background: var(--hot);
}
h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 44px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  background: var(--hot);
}
.breadcrumb { margin-bottom: 16px; font-size: 14px; }
.breadcrumb a { display: inline-block; padding: 6px 4px; margin: -6px -4px; }
.date-anchor { margin: 0 0 4px; font-weight: 700; }
.basis-note { margin: 0 0 12px; color: var(--sub); font-size: 14px; }
.stale-note { font-weight: 700; color: var(--hot); }
/* hidden 属性を author style の display 指定より必ず優先させる (site.css と同じ艦隊標準防壁。
   ランキングのタイ打ち切り注記は hidden 出荷 → 超過時のみ Lambda が属性を外す) */
[hidden] { display: none !important; }

/* 行グラフ (site.css の rowviz と同じ幾何・now- 接頭辞で自己完結) */
.nowviz {
  display: grid;
  grid-template-columns: minmax(64px, max-content) 1fr max-content;
  gap: 0 10px;
  align-items: stretch;
  margin: 12px 0 4px;
  max-width: 720px;
}
.nowviz-label {
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
}
.nowviz-track { position: relative; min-height: 30px; }
.nowviz-track svg { display: block; overflow: visible; }
.nowviz-value {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nowviz-lead { stroke: var(--viz-track); stroke-width: 2; stroke-linecap: round; }
.nowviz-dot-hot { fill: var(--viz-hot); }
.nowviz-dot-cold { fill: var(--viz-cold); }
.nowviz-bar { fill: var(--viz-qdot); }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
caption {
  text-align: left;
  font-size: 14px;
  color: var(--sub);
  padding-bottom: 6px;
}
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { border-bottom: 2px solid var(--rule-ink); }
td.num, th.num { text-align: right; }
td.strong { font-weight: 700; }
.table-scroll { overflow-x: auto; }

.cta { margin-top: 44px; }
.cta a { display: inline-flex; align-items: center; min-height: var(--tap-min); }

.sitefooter {
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 16px 32px;
  border-top: 3px double var(--rule-ink);
}
.sitefooter .source-note { color: var(--sub); font-size: 14px; padding-top: 16px; }
.sitefooter nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: 14px;
}
.sitefooter nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.sitefooter .copyright { color: var(--sub); font-size: 13px; }
