:root {
  --bg: #FFFFFF;
  --bg-page: #FFFFFF;
  --bg-subtle: #F6F8FB;
  --bg-quote: #F8FAFD;
  --fg: #0F172A;
  --fg-body: #334155;
  --fg-secondary: #475569;
  --fg-muted: #64748B;
  --line: #E6EAF0;
  --line-strong: #CBD5E1;
  --alert-fg: #B91C1C;
  --alert-bg: #FEF2F2;
  --alert-bd: #FECACA;
  --blue-fg: #1D4ED8;
  --blue-bg: #EFF6FF;
  --blue-bd: #BFDBFE;
  --green-fg: #047857;
  --green-bg: #ECFDF5;
  --green-bd: #A7F3D0;
  --amber-fg: #B45309;
  --amber-bg: #FFFBEB;
  --amber-bd: #FDE68A;
  --purple-fg: #6D28D9;
  --purple-bg: #F5F3FF;
  --purple-bd: #DDD6FE;
  --accent: #2563EB;
  --accent-deep: #1E3A5F;
  --accent-bg: #F0F5FF;
  --accent-bd: #DBEAFE;
  --chip-bg: #F1F5F9;
  --chip-hover: #E2E8F0;
  --link-hover: #1D4ED8;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-quote-en: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #111723;
  --bg-page: #0B0F17;
  --bg-subtle: #161F2E;
  --bg-quote: #131B29;
  --fg: #F1F5F9;
  --fg-body: #CBD5E1;
  --fg-secondary: #94A3B8;
  --fg-muted: #64748B;
  --line: #1E293B;
  --line-strong: #334155;
  --alert-fg: #FCA5A5;
  --alert-bg: rgba(239, 68, 68, 0.13);
  --alert-bd: rgba(239, 68, 68, 0.28);
  --blue-fg: #93C5FD;
  --blue-bg: rgba(59, 130, 246, 0.13);
  --blue-bd: rgba(59, 130, 246, 0.28);
  --green-fg: #6EE7B7;
  --green-bg: rgba(16, 185, 129, 0.13);
  --green-bd: rgba(16, 185, 129, 0.28);
  --amber-fg: #FCD34D;
  --amber-bg: rgba(245, 158, 11, 0.13);
  --amber-bd: rgba(245, 158, 11, 0.28);
  --purple-fg: #C4B5FD;
  --purple-bg: rgba(139, 92, 246, 0.13);
  --purple-bd: rgba(139, 92, 246, 0.28);
  --accent: #60A5FA;
  --accent-deep: #BFDBFE;
  --accent-bg: rgba(37, 99, 235, 0.12);
  --accent-bd: rgba(59, 130, 246, 0.25);
  --chip-bg: #172030;
  --chip-hover: #212E42;
  --link-hover: #60A5FA;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 99;
  transition: width 0.08s linear;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.home-search-bar {
  position: relative;
  margin: 20px 0 6px;
}
.search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
  display: flex;
}
.home-search-bar .search-input {
  width: 100%;
  padding: 10px 28px 10px 24px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.home-search-bar .search-input::placeholder { color: var(--fg-muted); }
.home-search-bar .search-input:focus {
  background: transparent;
  border-bottom-color: var(--accent);
  box-shadow: none;
}
.search-kbd {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.5;
  pointer-events: none;
}
.feed-stream { margin: 26px 0 56px; }
.date-group { margin-bottom: 40px; }
.date-group:last-child { margin-bottom: 0; }
.date-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.date-group-head::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}
.date-group .post-list { margin: 0; }
.post-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.post-row:last-child { border-bottom: none; }
.post-row.has-thumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.post-row-body { flex: 1; min-width: 0; }
.post-thumb {
  flex-shrink: 0;
  display: block;
  width: 104px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}
.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.post-thumb:hover img { transform: scale(1.04); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  margin-bottom: 7px;
}
.post-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.01em;
}
.post-title a { color: var(--fg); text-decoration: none; transition: color 0.15s; }
.post-title a:hover { color: var(--accent); }
.post-excerpt {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.header {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-decoration: none;
}
.brand-icon {
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}
[data-theme="dark"] .brand-icon rect {
  fill: #1E293B;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13.8px;
}
.nav a, .nav button {
  background: none;
  border: none;
  padding: 2px 0;
  font: inherit;
  color: var(--fg-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.nav a:hover, .nav button:hover {
  color: var(--fg);
}
.nav a.active, .nav button.active {
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.search-wrap { margin: 22px 0 6px; }
.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.search-input::placeholder { color: var(--fg-muted); }
.search-input:focus {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.post-list {
  list-style: none;
  margin: 8px 0 56px;
  padding: 0;
}
.date-feed { margin: 18px 0 52px; }
.date-group { margin-bottom: 34px; }
.date-group:last-child { margin-bottom: 0; }
.date-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.date-group-head::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}
.date-group .post-list { margin: 0; }
.post-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.post-row:last-child { border-bottom: none; }
.post-row.has-thumb {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.post-row-body { flex: 1; min-width: 0; }
.post-thumb {
  flex-shrink: 0;
  display: block;
  width: 112px;
  height: 74px;
  margin-top: 2px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}
.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}
.post-thumb:hover img { transform: scale(1.04); }
.post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.row-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue-fg);
  background: var(--blue-bg);
  border: 1px solid var(--blue-bd);
  padding: 1px 7px;
  border-radius: 4px;
}
.row-cat.cat-leaders { color: var(--purple-fg); background: var(--purple-bg); border-color: var(--purple-bd); }
.row-cat.cat-geek { color: var(--amber-fg); background: var(--amber-bg); border-color: var(--amber-bd); }
.row-cat.cat-gallery { color: var(--green-fg); background: var(--green-bg); border-color: var(--green-bd); }
.row-cat.cat-weekly { color: var(--alert-fg); background: var(--alert-bg); border-color: var(--alert-bd); }
.load-more-wrap {
  display: none;
  text-align: center;
  margin: -16px 0 48px;
}
.load-more-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--fg-secondary);
  font: inherit;
  font-size: 13.5px;
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.load-more-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.post-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.post-title a { color: var(--fg); text-decoration: none; }
.post-title a:hover { color: var(--link-hover); }
.post-excerpt {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty {
  display: none;
  padding: 44px 0;
  color: var(--fg-muted);
  font-size: 14px;
}
.tags-page { padding: 34px 0 56px; }
.tags-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.tags-page-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.tags-page-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
}
.tags-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tags-filter-input {
  flex: 1;
  min-width: 200px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  padding: 4px 0;
  outline: none;
}
.tags-filter-input::placeholder { color: var(--fg-muted); }
.sort-switch { display: flex; gap: 12px; font-size: 13px; }
.sort-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--fg-muted);
  cursor: pointer;
}
.sort-btn.active { color: var(--fg); font-weight: 600; }
.tag-cloud-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.tag-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--fg-body);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tag-pill:hover {
  border-color: var(--line-strong);
  background: var(--chip-hover);
  color: var(--fg);
}
.tag-pill.tier-3 { font-size: 15px; font-weight: 600; padding: 7px 16px; }
.tag-pill.tier-2 { font-size: 14px; font-weight: 500; }
.tag-pill.tier-1 { font-size: 13px; color: var(--fg-secondary); }
.tag-pill .cnt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 400;
}
.tag-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.tag-pill.active .cnt { color: #FFFFFF; opacity: 0.8; }
.tag-results-box {
  display: none;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.tag-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.tag-results-title { font-size: 15px; font-weight: 600; margin: 0; }
.tag-clear {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
}
.tag-clear:hover { color: var(--fg); }
.about-page { padding: 44px 0 60px; }
.about-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.about-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}
.about-name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.about-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fg-secondary);
}
.about-section {
  margin-top: 36px;
}
.about-h2 {
  margin: 0 0 14px;
  padding-left: 11px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.4;
}
.about-p {
  margin: 0 0 14px;
  font-size: 15.2px;
  line-height: 1.88;
  color: var(--fg-body);
}
.about-p:last-child { margin-bottom: 0; }
.about-p a {
  color: var(--link-hover);
  text-decoration: none;
}
.about-p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.pillar-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-subtle);
}
.pillar-item p {
  margin: 8px 0 0;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--fg-secondary);
}
.about-note {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 6px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-left: 3.5px solid var(--accent);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--accent-deep);
}
@media (max-width: 600px) {
  .about-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about-avatar { width: 78px; height: 78px; }
  .about-pillars { grid-template-columns: 1fr; }
}
.article-shell { padding: 44px 0 60px; }
.article-head { margin-bottom: 36px; }
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.cat-pill {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 4px;
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.8vw, 31px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--fg);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.article-tag-chip {
  font-size: 12px;
  color: var(--fg-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s;
}
.article-tag-chip:hover {
  border-color: var(--accent-bd);
  background: var(--accent-bg);
  color: var(--accent);
}
.standfirst {
  position: relative;
  margin: 0 0 38px;
  padding: 18px 22px;
  background: var(--accent-bg);
  border-radius: 6px;
  border: 1px solid var(--accent-bd);
  border-left: 3.5px solid var(--accent);
}
.standfirst-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.standfirst p {
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
  color: var(--accent-deep);
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 42px 0 18px;
  padding: 2px 0 2px 12px;
  border-left: 3.5px solid var(--accent);
  scroll-margin-top: 28px;
}
.standfirst + .sec-head { margin-top: 10px; }
.sec-title-group { flex: 1; }
.sec-title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}
.sec-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-left: 2px;
}
.sec-sub { margin: 4px 0 0; font-size: 13px; color: var(--fg-muted); }
.entry-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.entry-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.entry-badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--blue-bg);
  color: var(--blue-fg);
  border: 1px solid var(--blue-bd);
}
.badge-alert {
  background: var(--alert-bg);
  color: var(--alert-fg);
  border-color: var(--alert-bd);
}
.badge-blue {
  background: var(--blue-bg);
  color: var(--blue-fg);
  border-color: var(--blue-bd);
}
.badge-green {
  background: var(--green-bg);
  color: var(--green-fg);
  border-color: var(--green-bd);
}
.badge-amber {
  background: var(--amber-bg);
  color: var(--amber-fg);
  border-color: var(--amber-bd);
}
.badge-purple {
  background: var(--purple-bg);
  color: var(--purple-fg);
  border-color: var(--purple-bd);
}
.anchor-copy {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.38;
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s;
}
.anchor-copy:hover, .anchor-copy.copied {
  opacity: 1;
  color: var(--fg);
}
.brief-card, .leader-card { scroll-margin-top: 24px; }
.leader-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.sec-head + .leader-card { padding-top: 8px; }
.speaker-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.speaker-name { font-size: 15px; font-weight: 700; color: var(--fg); }
.speaker-role { font-size: 13px; color: var(--fg-muted); }
.leader-headline {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.48;
  margin: 0 0 16px;
  color: var(--fg);
}
.quote-card {
  position: relative;
  margin: 14px 0;
  padding: 15px 19px 15px 20px;
  background: var(--bg-quote);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.quote-speaker {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  margin-bottom: 4px;
}
.quote-en {
  margin: 0 0 8px;
  font-family: var(--font-quote-en);
  font-style: italic;
  font-size: 16px;
  line-height: 1.68;
  color: var(--fg);
}
.quote-zh {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-secondary);
}
.quote-main {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--fg);
}
.entry-insight {
  margin: 14px 0 0;
  font-size: 15.2px;
  line-height: 1.85;
  color: var(--fg-body);
}
.insight-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
  background: var(--chip-bg);
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: 1px;
}
.brief-list { margin-bottom: 8px; }
.brief-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brief-card:first-child { padding-top: 4px; }
.brief-card:last-child { border-bottom: none; }
.brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.brief-title {
  flex: 1;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.58;
  margin: 0;
  color: var(--fg);
}
.brief-title .entry-badge {
  vertical-align: 1px;
  margin-right: 7px;
}
.brief-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-right: 2px;
}
.field-label {
  font-weight: 600;
  color: var(--fg);
}
.brief-body {
  margin: 0 0 6px;
  font-size: 14.8px;
  line-height: 1.8;
  color: var(--fg-body);
}
.brief-body a, .weekly-section a, .entry-insight a {
  color: var(--link-hover);
  text-decoration: none;
}
.brief-body a:hover, .weekly-section a:hover, .entry-insight a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 8px;
  font-size: 12.5px;
}
.sources-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-muted);
}
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--link-hover);
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.source-chip:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.source-chip .arrow { font-size: 10px; opacity: 0.7; }
.weekly-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.weekly-card {
  padding: 18px 22px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.weekly-analysis { background: var(--bg); }
.weekly-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.weekly-points ol, .weekly-points ul { margin: 0; padding-left: 20px; }
.weekly-points li {
  margin-bottom: 10px;
  font-size: 15.2px;
  line-height: 1.82;
  color: var(--fg-body);
}
.weekly-points li:last-child { margin-bottom: 0; }
.prose > ol {
  margin: 0 0 24px;
  padding-left: 20px;
}
.prose > ol > li {
  margin-bottom: 14px;
  font-size: 15.4px;
  line-height: 1.85;
  color: var(--fg-body);
}
.gallery-card {
  margin: 0 0 48px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.gallery-card:last-child {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}
.gallery-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.42;
  margin: 0 0 18px;
  color: var(--fg);
}
.gallery-frame {
  display: block;
  margin: 0 0 18px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}
.gallery-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}
.gallery-frame:hover img {
  transform: scale(1.01);
}
.gallery-caption { margin: 0; }
.gallery-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 14px;
}
.gallery-source .entry-sources { margin-top: 0; }
.gallery-credit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.margin-toc { display: none; }
@media (min-width: 1200px) {
  .margin-toc {
    display: block;
    position: fixed;
    top: 124px;
    left: calc(50% + 412px);
    width: 204px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .margin-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    margin-bottom: 10px;
    padding-left: 12px;
  }
  .margin-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1.5px solid var(--line);
  }
  .margin-toc li { margin-bottom: 2px; }
  .margin-toc a {
    color: var(--fg-muted);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    margin-left: -1.5px;
    border-left: 1.5px solid transparent;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s, border-color 0.15s;
  }
  .margin-toc a:hover {
    color: var(--fg);
  }
  .margin-toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
  }
}
.related-box {
  margin-top: 56px;
  padding: 22px 26px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.related-heading {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  margin: 0 0 12px;
}
.related-list { list-style: none; margin: 0; padding: 0; }
.related-item {
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-link {
  font-size: 14.8px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.related-link:hover { color: var(--link-hover); }
.related-shared { font-size: 12px; color: var(--fg-muted); }
.related-shared a { color: var(--fg-muted); text-decoration: none; }
.related-shared a:hover { color: var(--fg); text-decoration: underline; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.pager a { color: var(--fg-secondary); text-decoration: none; max-width: 48%; }
.pager a:hover { color: var(--link-hover); }
.nowrap { white-space: nowrap; }
.footer {
  padding: 26px 0 52px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 20px;
}
.footer span { white-space: nowrap; }
.footer a { color: var(--fg-muted); text-decoration: none; }
.footer a:hover { color: var(--fg); }
.lb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 15, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  backdrop-filter: blur(4px);
}
.lb-backdrop.open { display: flex; }
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1080px;
  flex: 1;
  min-height: 0;
}
.lb-img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.lb-close, .lb-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F4F4F6;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-bar {
  width: 100%;
  max-width: 820px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  color: #E4E4E7;
  font-size: 13.5px;
}
.lb-meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.lb-count { font-family: var(--font-mono); font-size: 12px; color: #A1A1AA; white-space: nowrap; }
.lb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-hd {
  font-size: 12.5px;
  color: #D4D4D8;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.lb-hd:hover { color: #FFFFFF; border-color: #FFFFFF; }
.mob-toc-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.mob-toc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.36);
  display: none;
}
.mob-toc-backdrop.open { display: block; }
.mob-toc-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  max-height: 66vh;
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  padding: 18px 22px 28px;
  transform: translateY(100%);
  transition: transform 0.22s ease;
}
.mob-toc-drawer.open { transform: translateY(0); }
.mob-toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
}
.mob-toc-close {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.mob-toc-drawer ul { list-style: none; margin: 0; padding: 0; }
.mob-toc-drawer li { border-bottom: 1px solid var(--line); }
.mob-toc-drawer li:last-child { border-bottom: none; }
.mob-toc-drawer a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fg-body);
  text-decoration: none;
}
.mob-toc-drawer a:hover { color: var(--fg); }
@media (min-width: 1200px) {
  .mob-toc-btn, .mob-toc-backdrop, .mob-toc-drawer { display: none !important; }
}
@media (max-width: 680px) {
  .latest-grid { grid-template-columns: 1fr; }
  .search-pill { width: 100%; }
  .search-kbd { display: none; }
  .masthead { padding: 24px 0 20px; }
  .archive-ledger { padding: 2px 16px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .header { padding: 24px 0 16px; gap: 12px; }
  .nav { gap: 13px; font-size: 13.5px; }
  .post-row.has-thumb { gap: 12px; }
  .post-thumb { width: 84px; height: 60px; }
  .article-shell { padding: 28px 0 44px; }
  .standfirst { padding: 16px 18px; margin-bottom: 34px; }
  .quote-card { padding: 14px 16px; }
  .related-box { padding: 18px; }
  .pager { flex-direction: column; gap: 12px; }
  .pager a { max-width: 100%; }
  .footer { padding: 22px 0 38px; font-size: 12.5px; }
  .lb-nav { width: 34px; height: 34px; font-size: 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-title { white-space: normal; }
}
