
/* French editorial: encre + bordeaux. Readable, memorable, not loud. */
:root {
  --bg: #fafaf9;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --muted-soft: #6b6b6b;
  --line: #e5e5e3;
  --ink: #141414;
  --bordeaux: #7a1f2b;
  --bordeaux-deep: #5c1520;
  --link: #3d4f6f;
  --up: #1f6b45;
  --down: #a33a3a;
  --soft: #f4f1ef;
  --nav: #141414;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang TC", "PingFang SC", "Hiragino Sans GB",
    "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-weight: 600; }
strong, b { font-weight: 600; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }

.topnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: .8rem 1.35rem;
  background: var(--nav);
  color: #f5f5f4;
  border-bottom: 3px solid var(--bordeaux);
}
.topnav a { color: rgba(245,245,244,.78); font-weight: 400; }
.topnav a:hover, .topnav a.active { color: #fff; text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff !important;
  font-size: .95rem;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.05em;
  background: var(--bordeaux);
  border-radius: 1px;
}
.nav-links, .day-nav, .lang-switch {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
}
.lang-switch { font-size: .8rem; letter-spacing: .02em; }
.lang-switch a.active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--bordeaux);
  padding-bottom: 1px;
}
.day-nav { margin-left: auto; font-size: .85rem; font-weight: 400; }
.day-nav .cur { color: #e8c4c8; font-weight: 600; }

.wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.page-h { margin-bottom: 2rem; }
.page-h h1 {
  margin: .4rem 0 .7rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--ink);
}
.eyebrow {
  margin: 0;
  color: var(--bordeaux);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lede {
  color: #333;
  font-weight: 400;
  font-size: .95rem;
  max-width: 42rem;
  line-height: 1.75;
}
.stats {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
  margin-top: .65rem;
}
.muted { color: var(--muted); font-size: .9rem; font-weight: 400; }

.board, .detail, .legal { margin: 2.4rem 0; }
.board h2, .detail h2, .legal h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 .9rem;
  padding: 0 0 .55rem .7rem;
  border-left: 3px solid var(--bordeaux);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* Deep solid header — primary structure cue */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
  font-size: .875rem;
  font-weight: 400;
  border: 1px solid var(--ink);
  box-shadow: 0 1px 0 rgba(20,20,20,.04);
}
.tbl th, .tbl td {
  padding: .62rem .72rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: var(--text);
}
.tbl th {
  background: var(--ink);
  color: #fafafa;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--bordeaux);
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: #faf9f8; }
.tbl tbody tr:hover { background: #f3eeef; }
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-feature-settings: "tnum";
}
.tbl .code,
.card-h .code {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  font-size: .9em;
  letter-spacing: .03em;
  color: var(--ink);
}
/* Rank cell → card anchor; never underline (table clutter) */
a.rank-link {
  color: var(--muted);
  text-decoration: none !important;
  border-bottom: none;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
a.rank-link:hover,
a.rank-link:focus-visible {
  color: var(--bordeaux);
  text-decoration: none !important;
  outline: none;
}

.up { color: var(--up); font-weight: 600; }
.down { color: var(--down); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
  margin: 1.15rem 0;
  box-shadow: none;
  scroll-margin-top: 4.75rem;
}
.card-h h3 {
  margin: 0 0 .4rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.card-h .rank {
  font-weight: 500;
  color: var(--muted);
  font-size: .8rem;
  margin-right: .3rem;
}
.card-h .pct {
  margin-left: .5rem;
  font-size: .92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card .meta {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
}

.chart { margin: 1rem 0; }
.chart img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.chart figcaption {
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted-soft);
  margin-top: .4rem;
}

.lbl {
  display: inline;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--bordeaux-deep);
  margin-right: .4rem;
}
.biz, .analysis {
  margin: .85rem 0;
  font-weight: 400;
  color: var(--text);
  font-size: .94rem;
  line-height: 1.75;
}
.analysis {
  padding: .9rem 1.05rem;
  background: var(--soft);
  border-left: 3px solid var(--bordeaux);
  border-radius: 0 4px 4px 0;
}
.analysis.muted {
  background: transparent;
  border-left-color: var(--line);
  color: var(--muted);
}
.sources {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
  font-weight: 400;
  font-size: .88rem;
  color: var(--muted);
}
.sources a { font-weight: 500; }
.sources li { margin: .25rem 0; }
.src { margin-top: .75rem; }

.day-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.day-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: .5rem 0;
  padding: .75rem 1rem;
  font-weight: 400;
}
.day-list a { font-weight: 500; color: var(--ink); }
.day-list a:hover { color: var(--bordeaux); }

.legal p, .legal li { color: var(--text); font-weight: 400; }
.legal ul { padding-left: 1.2rem; }
.legal h2 { margin-top: 1.5rem; }
.contact { font-size: 1.05rem; font-weight: 600; }
.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  background: #fff;
}
.site-foot p { margin: 0 auto; max-width: 40rem; line-height: 1.7; }

@media (max-width: 640px) {
  .tbl { font-size: .8rem; }
  .tbl th, .tbl td { padding: .45rem .4rem; }
  .day-nav { margin-left: 0; width: 100%; }
  .page-h h1 { font-size: 1.45rem; }
  .wrap { padding-top: 1.5rem; }
}
