/* =========================================================================
   TRENDIUMO LAB — editorial research design system
   ========================================================================= */

:root {
  --font-jp: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --accent: #087f8c;
  --accent-strong: #05616b;
  --accent-soft: #e7f5f6;
  --accent-glow: transparent;
  --danger: #b42318;

  --cool: oklch(0.7 0.13 250);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;

  --maxw: 1300px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-2: #eef1f4;
  --ink: #17212b;
  --ink-soft: #354451;
  --ink-mute: #66737f;
  --line: #dfe4e8;
  --line-strong: #c8d0d7;
  --glass: #ffffff;
  --glass-2: #f3f5f7;
  --glass-hi: #fafbfc;
  --glass-border: #dfe4e8;
  --glass-shadow: 0 8px 24px rgba(23, 33, 43, 0.06);
  --code-bg: #f1f4f6;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151a1f;
  --bg-2: #1c2329;
  --ink: #f3f6f8;
  --ink-soft: #c4cdd4;
  --ink-mute: #8d9aa5;
  --line: #303940;
  --line-strong: #46515a;
  --glass: #1c2329;
  --glass-2: #232c33;
  --glass-hi: #20282f;
  --glass-border: #303940;
  --glass-shadow: none;
  --accent-soft: #153d42;
  --danger: #ff8a80;
  --code-bg: #11171b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  min-height: 100vh;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body::before, body::after { display: none; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--ink); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); background-clip: padding-box; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft);
  background: var(--glass-hi);
  border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 99px;
  transition: all 0.2s var(--ease);
}
.tag:hover { color: var(--accent); border-color: var(--accent); }
.tag .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  border-radius: 6px; padding: 10px 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-hi);
  color: var(--ink);
  transition: all 0.22s var(--ease);
}
.btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-accent {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 22px -6px var(--accent-glow), inset 0 1px 0 oklch(1 0 0 / 0.4);
}
.btn-accent:hover { box-shadow: 0 10px 30px -6px var(--accent-glow), inset 0 1px 0 oklch(1 0 0 / 0.4); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--glass-hi);
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.iconbtn:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.iconbtn svg { width: 19px; height: 19px; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.15), 0 6px 18px -6px var(--accent-glow);
  position: relative;
}
.brand .mark svg { width: 20px; height: 20px; color: #ffffff; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0; }
.brand .name b { color: var(--accent); font-weight: 700; }

.search {
  flex: 1 1 0; min-width: 0; max-width: 440px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 15px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--glass-hi); color: var(--ink-mute);
  transition: all 0.2s var(--ease);
}
.search:hover, .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 17px; height: 17px; flex-shrink: 0; }
.search input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-family: var(--font-jp); font-size: 14px; }
.search input::placeholder { color: var(--ink-mute); }
.search kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--ink-mute); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500; font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 13px; border-radius: 6px;
  transition: all 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--glass-hi); }
.nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--cool), var(--accent));
  flex-shrink: 0;
}

/* ---- FOOTER ---- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0; margin: 0 0 14px; color: var(--ink); }
.site-footer .col a { display: block; color: var(--ink-mute); font-size: 13px; padding: 5px 0; transition: color 0.18s var(--ease); }
.site-footer .col a:hover { color: var(--accent); }
.site-footer .legal { width: 100%; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink-mute); font-size: 12px; font-family: var(--font-mono); }

.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 760px) {
  .search { display: none; }
}

/* =========================================================================
   FEED PAGE
   ========================================================================= */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding-top: 40px; align-items: start; }

.hero {
  position: relative;
  border-radius: 0;
  padding: 28px 0 36px;
  margin-bottom: 24px;
  overflow: hidden;
  --mx: 80%;
  --my: 0%;
}
.hero.glass { background: transparent; border: 0; box-shadow: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background: transparent;
  transition: opacity 0.4s var(--ease);
}
.hero .eyebrow { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hero .eyebrow .live { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 44px;
  line-height: 1.18; letter-spacing: 0;
  margin: 0 0 14px; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--ink-soft); max-width: 52ch; margin: 0 0 24px; font-size: 15px; }
.hero-evidence {
  display: flex;
  max-width: 760px;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-evidence .latest {
  display: flex;
  min-width: 120px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 18px 11px 0;
  color: var(--ink-mute);
  font: 10.5px var(--font-mono);
}
.hero-evidence .latest strong { color: var(--ink); font-size: 12px; }
.hero-evidence .signal { min-width: 0; padding: 10px 18px; border-left: 1px solid var(--line); }
.hero-evidence .signal strong { display: block; color: var(--accent-strong); font: 700 16px var(--font-mono); }
.hero-evidence .signal span { display: block; overflow: hidden; color: var(--ink-mute); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .glyph {
  display: none;
}

.section-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; background: var(--glass-hi); border: 1px solid var(--line); padding: 5px; border-radius: 14px; }
.tabs button {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink-mute); background: none; border: none;
  padding: 8px 16px; border-radius: 9px; transition: all 0.2s var(--ease);
}
.tabs button.active { color: #ffffff; background: linear-gradient(180deg, var(--accent), var(--accent-strong)); box-shadow: 0 4px 14px -5px var(--accent-glow); }
.tabs button:not(.active):hover { color: var(--ink); }
.section-bar .pickrow { display: flex; align-items: center; gap: 10px; color: var(--ink-mute); font-size: 13px; }

.feature-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  border-radius: var(--radius-lg); padding: 26px; margin-bottom: 30px;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), 0 0 0 1px var(--accent-soft); }
.feature-visual {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f6f8;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.feature-visual > a { display: grid; width: 100%; height: 100%; place-items: center; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-visual .fallback { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.emoji-tile {
  border-radius: var(--radius); display: grid; place-items: center;
  font-size: 76px; aspect-ratio: 1; position: relative; overflow: hidden;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.emoji-tile.lg { font-size: 92px; }
.emoji-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, var(--glass-hi)); }
.feature-card .body { display: flex; flex-direction: column; }
.feature-card .kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.feature-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 27px; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; }
.feature-card h2 a:hover { color: var(--accent); }
.feature-card .excerpt { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 auto; }
.feature-card .meta { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.finding-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.finding-row span { display: flex; flex-direction: column; gap: 1px; min-width: 112px; }
.finding-row strong { font-family: var(--font-mono); font-size: 17px; color: var(--accent-strong); }
.finding-row small { font-size: 11px; color: var(--ink-mute); }
.subscription-strip {
  margin: 24px 0 30px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subscription-strip strong { display: block; font-size: 15px; }
.subscription-strip span { display: block; color: var(--ink-mute); font-size: 12.5px; margin-top: 2px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft);
  opacity: 0; transition: opacity 0.28s var(--ease); pointer-events: none;
}
.card .top { display: flex; gap: 15px; align-items: flex-start; }
.card .emoji-sm {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; font-size: 32px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hi);
}
.card h3 { font-family: var(--font-jp); font-weight: 700; font-size: 16.5px; line-height: 1.5; margin: 0; letter-spacing: 0; }
.card h3 a:hover { color: var(--accent); }
.card-summary { margin: -2px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.card-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-findings span { min-width: 0; }
.card-findings strong { display: block; color: var(--accent-strong); font: 700 14px var(--font-mono); }
.card-findings small { display: block; overflow: hidden; color: var(--ink-mute); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.card-capability { display: flex; align-items: center; gap: 7px; color: var(--accent-strong); font-size: 11.5px; font-weight: 650; }
.card-capability::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.card-capability:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.author { display: flex; align-items: center; gap: 9px; }
.author .pic { width: 28px; height: 28px; border-radius: 99px; flex-shrink: 0; border: 1px solid var(--line); }
.author .nm { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.author .dt { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.likes { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); font-weight: 500; }
.likes svg { width: 16px; height: 16px; }
.likes:hover { color: var(--accent); }

.side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 28px); }
.panel { border-radius: var(--radius); padding: 22px; }
.panel h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.panel h4 .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.topiclist { display: flex; flex-direction: column; }
.topiclist a { display: flex; align-items: center; gap: 11px; padding: 11px 8px; border-radius: var(--radius); transition: background 0.18s var(--ease); }
.topiclist a:hover { background: var(--glass-hi); }
.topiclist .tx { flex: 1; min-width: 0; }
.topiclist .tx .t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.topiclist .tx .c { font-size: 11.5px; color: var(--ink-mute); font-family: var(--font-mono); }
.topiclist .rank { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; width: 22px; }

.statwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); background: var(--glass-hi); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--accent); }
.stat .l { font-size: 11.5px; color: var(--ink-mute); font-family: var(--font-mono); margin-top: 2px; }

.show-more { text-align: center; margin-top: 28px; }

.search-empty { margin: 18px 0 8px; padding: 22px 24px; border-radius: var(--radius); color: var(--ink-mute); }
.search-empty p { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.search-feedback { padding-top: 16px; }
.search-feedback-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.search-feedback p { margin: 0; }
.search-feedback [hidden] { display: none; }
.search-feedback #searchEmpty { margin-top: 8px; color: var(--ink-mute); }

.act .btn-circle[data-action='save'].on,
.act .btn-circle[data-action='like'].on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-cloud .tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--glass);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.tag-cloud .tag-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.tag-cloud .tag-chip .count { font-size: 11px; color: var(--ink-mute); }
.tag-cloud .tag-chip.is-label { color: var(--ink-mute); background: transparent; }
.tag-cloud .tag-chip.is-label:hover { border-color: var(--line); transform: none; }

.saved-empty { text-align: center; padding: 40px 24px; color: var(--ink-mute); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.card.is-liked .likes,
.card.is-saved::after { color: var(--accent); }
.card.is-saved { box-shadow: inset 0 0 0 1px var(--accent-soft); }

.reveal { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side .panel { flex: 1; min-width: 280px; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .emoji-tile { max-width: 130px; }
  .feature-visual { aspect-ratio: 16 / 9; }
  .subscription-strip { align-items: flex-start; flex-direction: column; }
  .hero { padding: 14px 0 28px; }
  .hero h1 { font-size: 34px; }
  .hero-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-evidence .latest { grid-column: 1 / -1; padding: 9px 0; }
  .hero-evidence .signal { padding: 10px 12px; border-top: 1px solid var(--line); }
  .hero-evidence .signal:nth-child(2) { border-left: 0; }
  .hero .glyph { display: none; }
}

/* =========================================================================
   ARTICLE PAGE
   ========================================================================= */
.article-layout { display: grid; grid-template-columns: 56px minmax(0,1fr) 280px; gap: 40px; padding-top: 40px; align-items: start; }

.actions-rail { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.act .btn-circle {
  width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px);
  color: var(--ink-soft); transition: all 0.22s var(--ease);
}
.act .btn-circle:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-2px); }
.act .btn-circle.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.act .btn-circle svg { width: 21px; height: 21px; }
.act .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); font-weight: 500; }

.article { min-width: 0; }
.article-head { border-radius: 0; padding: 8px 0 30px; margin-bottom: 34px; position: relative; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: transparent; }
.article-head .emoji-hero {
  width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center; font-size: 52px;
  background: var(--glass-2);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hi), 0 8px 28px -12px var(--accent-glow);
  margin-bottom: 26px;
}
.article-head .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-head h1 {
  font-family: var(--font-jp); font-weight: 900; font-size: 38px;
  line-height: 1.45; letter-spacing: 0; margin: 0 0 26px;
}
.article-head .byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-head .byline .pic { width: 46px; height: 46px; border-radius: 99px; border: 1px solid var(--line-strong); }
.article-head .byline .who .n { font-weight: 700; font-size: 15px; }
.article-head .byline .who .m { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.article-head .byline .fbtn { margin-left: auto; }
.study-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); }
.study-label::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.article-deck { max-width: 70ch; margin: -8px 0 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.article-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 22px; }
.mobile-toc { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.mobile-toc summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 14px; }
.mobile-toc nav { padding: 0 16px 14px; }
.mobile-toc a { display: block; padding: 7px 0; color: var(--ink-soft); font-size: 13px; }
.article-next {
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-next h2 { margin: 0 0 8px; font-size: 20px; }
.article-next p { margin: 0 0 16px; color: var(--ink-soft); }
.article-next .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.next-study-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.next-study-link .label { display: block; margin-bottom: 4px; color: var(--accent-strong); font: 10.5px var(--font-mono); }
.next-study-link strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.55; }
.next-study-link p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
.next-study-link .metric { min-width: 100px; text-align: right; }
.next-study-link .metric b { display: block; color: var(--accent-strong); font: 700 16px var(--font-mono); }
.next-study-link .metric small { display: block; color: var(--ink-mute); font-size: 10.5px; }
.next-study-link:hover strong { color: var(--accent-strong); }
.withdrawn-page { max-width: 920px; padding-top: 54px; padding-bottom: 72px; }
.withdrawn-hero { padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.withdrawn-hero .eyebrow { color: var(--danger); }
.withdrawn-hero h1 { max-width: 760px; margin: 10px 0 14px; font-size: 42px; line-height: 1.25; }
.withdrawn-hero .original { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 17px; }
.withdrawn-status { margin: 30px 0 36px; padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--danger); background: var(--glass); }
.withdrawn-status h2 { margin: 0 0 10px; font-size: 19px; }
.withdrawn-status p { margin: 0 0 16px; color: var(--ink-soft); }
.withdrawn-status dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.withdrawn-status dt { color: var(--ink-mute); }
.withdrawn-status dd { margin: 0; font-weight: 600; }
.withdrawn-next { margin-top: 34px; }
.withdrawn-next > h2 { margin: 0 0 14px; font-size: 21px; }

.prose { font-size: 16.5px; line-height: 1.95; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--ink);
  letter-spacing: 0; margin-top: 2.2em; padding-top: 0.4em;
  display: flex; align-items: center; gap: 12px; scroll-margin-top: 100px;
}
.prose h2 .hash { font-family: var(--font-mono); color: var(--accent); font-size: 19px; opacity: 0.8; }
.prose h3 { font-family: var(--font-jp); font-weight: 700; font-size: 19px; color: var(--ink); margin-top: 1.8em; }
.prose h4 { font-family: var(--font-jp); font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 1.5em; }
.prose p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a.link { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.prose a.link:hover { border-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 1.1em 0; }
.prose li { margin: 0.5em 0; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 16px; margin: 1.3em 0; color: var(--ink-mute); font-style: italic; }

.research-proof { border: 1px solid #b9dfe2; border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); padding: 18px 20px; margin: 0 0 30px; color: var(--ink); }
.research-proof > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.research-proof > div strong { font-size: 15px; }
.research-proof > div span { color: var(--ink-mute); font-size: 12px; }
.research-proof dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; margin: 14px 0; font-size: 13px; }
.research-proof dt { color: var(--ink-mute); }
.research-proof dd { margin: 0; }
.research-proof a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.research-proof .research-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 13px; }

.evidence-explorer {
  margin: 0 0 34px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--glass); color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.explorer-anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.explorer-data-state {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  margin: 18px 0 0; padding: 11px 13px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 13px;
}
.explorer-data-state[hidden] { display: none; }
.explorer-data-state::before {
  content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.evidence-explorer[data-load-state="waiting"] .explorer-data-state::before,
.evidence-explorer[data-load-state="loading"] .explorer-data-state::before { animation: explorer-pulse 1.2s ease-in-out infinite; }
.evidence-explorer[data-load-state="error"] .explorer-data-state { color: var(--ink); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.evidence-explorer[data-load-state="error"] .explorer-data-state::before { background: var(--danger); box-shadow: none; }
.explorer-data-state a { color: var(--accent); font-weight: 700; }
.evidence-explorer [data-explorer-control]:disabled { cursor: wait; opacity: 0.56; }
@keyframes explorer-pulse { 50% { opacity: 0.36; transform: scale(0.8); } }
@media (prefers-reduced-motion: reduce) { .explorer-data-state::before { animation: none !important; } }
.evidence-explorer .explorer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.explorer-share { align-self: end; white-space: nowrap; }
.explorer-share svg { width: 16px; height: 16px; }
.evidence-explorer .explorer-kicker { margin: 0 0 6px; color: var(--accent-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; }
.evidence-explorer h2 { margin: 0; padding: 0; display: block; font-size: 21px; line-height: 1.45; }
.evidence-explorer .explorer-description { margin: 8px 0 0; max-width: 68ch; color: var(--ink-mute); font-size: 13.5px; line-height: 1.7; }
.explorer-controls { display: grid; grid-template-columns: minmax(160px, 210px) minmax(0, 1fr); gap: 18px; margin: 22px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.explorer-control-label { display: block; margin: 0 0 7px; color: var(--ink-mute); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; }
.explorer-select { width: 100%; height: 38px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-hi); color: var(--ink); font: 600 13px var(--font-jp); }
.explorer-metrics { display: inline-flex; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--glass-hi); }
.explorer-metrics button { min-height: 36px; padding: 7px 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink-mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.explorer-metrics button:last-child { border-right: 0; }
.explorer-metrics button.active { background: var(--accent); color: #fff; }
.explorer-context { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 8px; color: var(--ink-mute); font-size: 12px; }
.explorer-bars { border-top: 1px solid var(--line); }
.explorer-row { width: 100%; display: grid; grid-template-columns: minmax(122px, 190px) minmax(120px, 1fr) 72px; gap: 12px; align-items: center; min-height: 48px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.explorer-row:hover, .explorer-row.active { background: var(--glass-hi); }
.explorer-row.active .explorer-row-label { color: var(--accent-strong); }
.explorer-row-label { min-width: 0; font-size: 12.5px; font-weight: 650; line-height: 1.45; }
.explorer-track { position: relative; height: 12px; border-radius: 2px; background: var(--glass-2); overflow: hidden; }
.explorer-track::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--baseline, -10%); width: 1px; background: var(--ink-mute); opacity: var(--baseline-opacity, 0); }
.explorer-fill { position: absolute; top: 0; bottom: 0; left: var(--left, 0%); width: var(--width, 0%); border-radius: 2px; background: var(--accent); }
.explorer-fill.negative { background: #bb514d; }
.explorer-row-value { text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.explorer-detail { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(74px, .6fr)); gap: 12px; align-items: center; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.explorer-detail strong { font-size: 13px; }
.explorer-detail span { display: block; color: var(--ink-mute); font-size: 10.5px; }
.explorer-detail b { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 13px; }
.explorer-table-wrap { margin-top: 14px; overflow-x: auto; }
.explorer-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.explorer-table th, .explorer-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.explorer-table th:first-child, .explorer-table td:first-child { text-align: left; }
.explorer-table th { color: var(--ink-mute); font-family: var(--font-mono); font-weight: 500; }
.explorer-foot { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0 0; color: var(--ink-mute); font-size: 11px; line-height: 1.6; }
.explorer-foot a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.wiki-explorer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wiki-explorer-summary div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.wiki-explorer-summary div:last-child { border-right: 0; }
.wiki-explorer-summary span { display: block; color: var(--ink-mute); font-size: 10.5px; }
.wiki-explorer-summary strong { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 19px; }
.wiki-toolbar { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .75fr) minmax(165px, .8fr); gap: 12px; margin: 18px 0 12px; }
.wiki-search-wrap { position: relative; }
.wiki-search-wrap svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; color: var(--ink-mute); transform: translateY(-50%); pointer-events: none; }
.wiki-search, .wiki-select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-hi); color: var(--ink); font: 13px var(--font-jp); outline: none; }
.wiki-search { padding: 0 12px 0 36px; }
.wiki-select { padding: 0 32px 0 11px; }
.wiki-search:focus, .wiki-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wiki-status { display: inline-flex; max-width: 100%; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--glass-hi); }
.wiki-status button { min-height: 36px; padding: 7px 13px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink-mute); font-size: 12px; font-weight: 650; }
.wiki-status button:last-child { border-right: 0; }
.wiki-status button.active { background: var(--accent); color: #fff; }
.wiki-result-context { display: flex; justify-content: space-between; gap: 12px; min-height: 24px; color: var(--ink-mute); font-size: 12px; }
.wiki-table-head, .wiki-item { display: grid; grid-template-columns: minmax(160px, 1.5fr) 115px 82px 82px 162px; gap: 8px; align-items: center; }
.wiki-table-head { padding: 8px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-mute); font-family: var(--font-mono); font-size: 10.5px; }
.wiki-item { min-height: 68px; padding: 10px; border-bottom: 1px solid var(--line); }
.wiki-item:hover { background: var(--glass-hi); }
.wiki-item.selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.wiki-title { min-width: 0; }
.wiki-title a { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.wiki-title a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.wiki-title small { display: block; overflow: hidden; margin-top: 2px; color: var(--ink-mute); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.wiki-state { display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); font-size: 10.5px; font-weight: 650; }
.wiki-state.missing { border-color: #d59c3d; color: #8a5a08; background: #fff8e8; }
:root[data-theme="dark"] .wiki-state.missing { color: #f1c66f; background: #3b2d13; border-color: #765a25; }
.wiki-meta { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.wiki-cell { min-width: 0; color: var(--ink-soft); font-size: 11.5px; }
.wiki-cell.number { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.wiki-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.wiki-actions a { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.wiki-actions a:hover { border-color: var(--accent); color: var(--accent-strong); }
.wiki-actions .translate { border-color: var(--accent); color: var(--accent-strong); }
.wiki-share { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-mute); }
.wiki-share:hover { border-color: var(--accent); color: var(--accent-strong); }
.wiki-share svg { width: 14px; height: 14px; }
.share-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); max-width: min(90vw, 420px); padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: var(--page); box-shadow: var(--glass-shadow); font-size: 13px; font-weight: 650; text-align: center; }
.share-toast[hidden] { display: none; }
.wiki-empty { padding: 28px 12px; color: var(--ink-mute); text-align: center; }
.wiki-more { display: flex; justify-content: center; padding-top: 14px; }
.wiki-more button[hidden] { display: none; }
.network-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.network-toolbar { grid-template-columns: repeat(4, minmax(135px, 1fr)); }
.network-table-head, .network-item { display: grid; grid-template-columns: minmax(190px, 1.6fr) minmax(120px, 1fr) 110px 96px 88px; gap: 10px; align-items: center; }
.network-table-head { padding: 8px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-mute); font-family: var(--font-mono); font-size: 10.5px; }
.network-item { min-height: 64px; padding: 10px; border-bottom: 1px solid var(--line); }
.network-item:hover { background: var(--glass-hi); }
.network-primary { min-width: 0; }
.network-primary strong { display: block; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.network-primary small { display: block; overflow: hidden; margin-top: 3px; color: var(--ink-mute); font: 10.5px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.network-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px; }
.network-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); font-size: 10px; }
.network-tag.warn { border-color: #d59c3d; color: #8a5a08; background: #fff8e8; }
:root[data-theme="dark"] .network-tag.warn { color: #f1c66f; background: #3b2d13; border-color: #765a25; }
.network-number { color: var(--ink-soft); font: 700 11.5px var(--font-mono); text-align: right; }

.table-wrap { margin: 1.6em 0; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass-hi); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap thead th { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0; text-transform: uppercase; color: var(--ink-mute); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--glass-2); }
.table-wrap tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: var(--glass-hi); }
.table-wrap td code { background: transparent; border: 0; padding: 0; color: var(--accent); font-size: 0.9em; }

.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--code-bg); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; color: var(--accent); }

.codeblock { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--code-bg); backdrop-filter: blur(12px); margin: 1.6em 0; }
.codeblock .bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--glass-hi); }
.codeblock .bar .dots { display: flex; gap: 6px; }
.codeblock .bar .dots i { width: 11px; height: 11px; border-radius: 99px; display: block; }
.codeblock .bar .dots i:nth-child(1){ background: oklch(0.7 0.17 25); }
.codeblock .bar .dots i:nth-child(2){ background: oklch(0.8 0.13 90); }
.codeblock .bar .dots i:nth-child(3){ background: oklch(0.75 0.15 145); }
.codeblock .bar .fn { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); margin-left: 6px; }
.codeblock .bar .lang { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0; }
.codeblock pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: var(--ink); }
.codeblock .k { color: oklch(0.78 0.13 320); }
.codeblock .s { color: oklch(0.78 0.13 145); }
.codeblock .c { color: var(--ink-mute); font-style: italic; }
.codeblock .f { color: var(--accent); }
.codeblock .n { color: oklch(0.78 0.12 230); }

.callout { display: flex; gap: 14px; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--accent-soft); background: var(--accent-soft); margin: 1.6em 0; }
.callout .ic { font-size: 20px; flex-shrink: 0; }
.callout .tx { font-size: 14.5px; color: var(--ink); margin: 0; }
.callout .tx b { color: var(--accent); }

.article-figure { margin: 1.8em 0; }
.article-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass-hi); }
.article-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-mute); font-family: var(--font-mono); text-align: center; }

.author-card { border-radius: var(--radius-lg); padding: 28px; margin-top: 48px; display: flex; gap: 20px; align-items: center; }
.author-card .pic { width: 72px; height: 72px; border-radius: 99px; border: 1px solid var(--line-strong); flex-shrink: 0; }
.author-card .info { flex: 1; min-width: 0; }
.author-card .info .n { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.author-card .info .b { color: var(--ink-mute); font-size: 13.5px; margin-top: 4px; }

.toc-side { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 24px; }
.toc { border-radius: var(--radius); padding: 22px; }
.toc h4 { font-family: var(--font-display); font-weight: 600; font-size: 13px; margin: 0 0 16px; letter-spacing: 0; color: var(--ink-mute); text-transform: uppercase; }
.toc a { display: block; font-size: 13.5px; color: var(--ink-mute); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); transition: all 0.18s var(--ease); }
.toc a:hover, .toc a.active { color: var(--accent); border-color: var(--accent); }

.related { border-radius: var(--radius); padding: 22px; }
.related h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.related h4 .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.related a { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.related a + a { border-top: 1px solid var(--line); }
.related .e { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--glass-2); border: 1px solid var(--line); flex-shrink: 0; }
.related .t { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-soft); }
.related a:hover .t { color: var(--accent); }
.affiliate { margin: 28px 0 6px; padding: 24px 26px; }
.affiliate h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.affiliate h4 .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.affiliate .aff-lead { font-size: 13px; color: var(--ink-mute); margin: 0 0 18px; line-height: 1.7; }
.affiliate .aff-group + .aff-group { margin-top: 22px; }
.affiliate .aff-grouptitle { font-size: 11px; font-weight: 700; color: var(--ink-mute); margin: 0 0 2px; letter-spacing: 0; text-transform: none; }
.affiliate .aff-list { list-style: none; margin: 0; padding: 0; }
.affiliate .aff-list li { padding: 14px 0; }
.affiliate .aff-list li + li { border-top: 1px solid var(--line); }
.affiliate .aff-link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); text-decoration: none; }
.affiliate .aff-link:hover { color: var(--accent); }
.affiliate .aff-link:hover .aff-arrow { transform: translateX(3px); }
.affiliate .aff-arrow { color: var(--accent); opacity: .7; flex-shrink: 0; font-weight: 400; transition: transform .16s ease; }
.affiliate .aff-why { display: block; font-size: 12px; color: var(--ink-mute); line-height: 1.65; margin-top: 6px; }
.affiliate .aff-disclosure { font-size: 11px; color: var(--ink-mute); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.6; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); box-shadow: 0 0 12px var(--accent-glow); z-index: 60; transition: width 0.1s linear; }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 56px minmax(0,1fr); }
  .toc-side { display: none; }
  .mobile-toc { display: block; }
}
@media (max-width: 720px) {
  .article-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .actions-rail { flex-direction: row; position: static; justify-content: center; }
  .article-head { padding: 0 0 24px; }
  .article-head h1 { font-size: 28px; }
  .article-deck { font-size: 15px; }
  .research-proof > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .research-proof dl { grid-template-columns: 58px 1fr; }
  .evidence-explorer { padding: 18px 14px; }
  .evidence-explorer .explorer-head { grid-template-columns: 1fr; }
  .explorer-share { justify-self: start; }
  .explorer-controls { grid-template-columns: 1fr; }
  .explorer-metrics { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .explorer-metrics button { padding: 7px 5px; white-space: normal; }
  .explorer-row { grid-template-columns: minmax(94px, 1.1fr) minmax(90px, 1fr) 61px; gap: 8px; }
  .explorer-detail { grid-template-columns: repeat(3, 1fr); }
  .explorer-detail strong { grid-column: 1 / -1; }
  .explorer-foot { flex-direction: column; }
  .wiki-explorer-summary { grid-template-columns: 1fr; }
  .wiki-explorer-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .wiki-explorer-summary div:last-child { border-bottom: 0; }
  .wiki-toolbar { grid-template-columns: 1fr; }
  .wiki-status { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .wiki-status button { padding: 7px 5px; }
  .wiki-table-head { display: none; }
  .wiki-item { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 2px; }
  .wiki-title { grid-column: 1 / -1; }
  .wiki-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .wiki-item .wiki-class { text-align: right; }
  .wiki-item .wiki-views { grid-column: 1; grid-row: 3; text-align: left; }
  .wiki-item .wiki-time { grid-column: 2; grid-row: 3; text-align: right; }
  .wiki-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 2px; }
  .network-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-summary div:nth-child(2) { border-right: 0; }
  .network-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-table-head { display: none; }
  .network-item { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 13px 2px; }
  .network-primary { grid-column: 1 / -1; }
  .network-tags { grid-column: 1 / -1; }
  .network-number { text-align: left; }
  .network-number:last-child { text-align: right; }
  .next-study-link { grid-template-columns: 1fr; }
  .next-study-link .metric { text-align: left; }
  .withdrawn-page { padding-top: 32px; }
  .withdrawn-hero h1 { font-size: 31px; }
  .withdrawn-status { padding: 18px; }
  .withdrawn-status dl { grid-template-columns: 1fr; gap: 2px; }
  .withdrawn-status dd { margin-bottom: 10px; }
}

@media (max-width: 760px) {
  :root { --header-h: 122px; }
  .site-header { height: auto; min-height: var(--header-h); }
  .site-header .wrap { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .site-header .brand { flex: 1; min-width: 0; gap: 8px; }
  .site-header .brand .mark { flex-shrink: 0; }
  .site-header .brand .name { font-size: 18px; line-height: 1.25; }
  .site-header .search { display: flex; order: 3; flex: 1 0 100%; max-width: none; }
  body[data-page="article"] { --header-h: 64px; }
  body[data-page="article"] .site-header .wrap { flex-wrap: nowrap; }
  body[data-page="article"] .site-header .search { display: none; }
}
