:root {
  --front-bg: #f4f6f8;
  --front-panel: #ffffff;
  --front-panel-soft: #f8fafc;
  --front-text: #16181d;
  --front-muted: #7a8291;
  --front-line: #e7eaf0;
  --front-line-strong: #d9dee7;
  --front-accent: #2563eb;
  --front-accent-soft: #eff6ff;
  --front-chip: #f3f5f8;
  --front-shadow: 0 1px 2px rgba(15,23,42,.025), 0 8px 28px rgba(15,23,42,.035);
}
html.dark {
  --front-bg: #0d0f12;
  --front-panel: #14171c;
  --front-panel-soft: #111419;
  --front-text: #edf0f5;
  --front-muted: #929baa;
  --front-line: #262b33;
  --front-line-strong: #343b46;
  --front-accent: #79a6ff;
  --front-accent-soft: #17233a;
  --front-chip: #1c2128;
  color-scheme: dark;
}
html { background: var(--front-bg); }
body.front-atlas {
  margin: 0;
  min-height: 100vh;
  background: var(--front-bg);
  color: var(--front-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.front-atlas *, .front-atlas *::before, .front-atlas *::after { box-sizing: border-box; }
.front-atlas a { color: inherit; text-decoration: none; }
.front-wrap { width: min(100% - 32px, 1280px); margin-inline: auto; }
.front-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--front-panel) 92%, transparent);
  border-bottom: 1px solid var(--front-line);
  backdrop-filter: blur(16px);
}
.front-header-inner { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.front-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.front-brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--front-text); color: var(--front-panel); font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.front-brand-copy strong { display:block; font-size: 14px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.front-brand-copy small { display:block; margin-top: 3px; color: var(--front-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.front-nav { display:flex; align-items:center; gap:4px; }
.front-nav a { padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--front-muted); transition: .18s ease; }
.front-nav a:hover, .front-nav a.is-active { background: var(--front-chip); color: var(--front-text); }
.front-header-actions { margin-left:auto; display:flex; align-items:center; gap:7px; }
.front-icon-btn { width:34px; height:34px; border:1px solid var(--front-line); border-radius:9px; background:var(--front-panel); color:var(--front-muted); display:grid; place-items:center; cursor:pointer; transition:.18s ease; }
.front-icon-btn:hover { color:var(--front-text); border-color:var(--front-line-strong); transform:translateY(-1px); }
.front-search { width:240px; height:36px; border:1px solid var(--front-line); background:var(--front-panel-soft); border-radius:10px; display:flex; align-items:center; padding:0 10px; gap:7px; }
.front-search:focus-within { border-color:color-mix(in srgb,var(--front-accent) 46%,var(--front-line)); box-shadow:0 0 0 3px color-mix(in srgb,var(--front-accent) 10%,transparent); }
.front-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--front-text); font-size:12px; }
.front-search input::placeholder { color:var(--front-muted); }
.front-mobile-nav { display:none; }
.front-hero { padding: 34px 0 18px; display:flex; align-items:end; justify-content:space-between; gap:24px; }
.front-eyebrow { margin:0 0 8px; color:var(--front-accent); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.front-hero h1 { margin:0; font-size:clamp(28px,3vw,44px); line-height:1.12; letter-spacing:-.045em; font-weight:750; }
.front-hero p { max-width:650px; margin:10px 0 0; color:var(--front-muted); font-size:13px; line-height:1.8; }
.front-count { color:var(--front-muted); font-size:12px; white-space:nowrap; }
.front-count b { color:var(--front-text); font-size:18px; margin-right:4px; font-variant-numeric:tabular-nums; }
.filter-board { border:1px solid var(--front-line); border-radius:14px; background:var(--front-panel); box-shadow:var(--front-shadow); overflow:hidden; margin-bottom:24px; }
.filter-row { display:grid; grid-template-columns:58px minmax(0,1fr); align-items:start; gap:12px; padding:9px 14px; border-bottom:1px solid var(--front-line); }
.filter-row:last-child { border-bottom:0; }
.filter-label { color:var(--front-muted); font-size:11px; font-weight:650; line-height:25px; }
.filter-options { display:flex; align-items:center; flex-wrap:wrap; gap:4px 5px; min-width:0; }
.filter-chip { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:6px; color:var(--front-text); font-size:11px; line-height:1; transition:.16s ease; }
.filter-chip:hover { background:var(--front-chip); }
.filter-chip.is-active { background:var(--front-accent); color:white; font-weight:650; }
html.dark .filter-chip.is-active { color:#08101d; }
.catalog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 12px; }
.catalog-heading h2 { margin:0; font-size:15px; font-weight:700; letter-spacing:-.02em; }
.catalog-heading p { margin:0; color:var(--front-muted); font-size:11px; }
.catalog-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px 16px; }
.catalog-card { min-width:0; }
.catalog-cover { position:relative; display:block; overflow:hidden; aspect-ratio:4/5; border:1px solid var(--front-line); border-radius:11px; background:linear-gradient(135deg,#e8edf3,#f8fafc); box-shadow:0 4px 18px rgba(15,23,42,.045); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.catalog-card:hover .catalog-cover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(15,23,42,.09); border-color:var(--front-line-strong); }
.catalog-cover img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.catalog-card:hover .catalog-cover img { transform:scale(1.018); }
.catalog-placeholder { width:100%; height:100%; display:flex; flex-direction:column; justify-content:space-between; padding:18px; background:linear-gradient(145deg,var(--front-panel-soft),color-mix(in srgb,var(--front-accent-soft) 46%,var(--front-panel))); }
.catalog-placeholder b { max-width:92%; font-size:21px; line-height:1.25; letter-spacing:-.04em; }
.catalog-placeholder small { color:var(--front-muted); font-size:10px; letter-spacing:.08em; }
.catalog-badge { position:absolute; top:9px; right:9px; max-width:calc(100% - 18px); padding:5px 7px; border-radius:6px; background:rgba(15,23,42,.78); color:white; backdrop-filter:blur(8px); font-size:9px; line-height:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catalog-pin { position:absolute; top:9px; left:9px; padding:5px 7px; border-radius:6px; background:#4f46e5; color:#fff; font-size:9px; font-weight:700; }
.catalog-copy { padding:9px 1px 0; }
.catalog-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:38px; margin:0; color:var(--front-text); font-size:13px; line-height:1.45; font-weight:650; letter-spacing:-.014em; }
.catalog-meta { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:4px; color:var(--front-muted); font-size:10px; line-height:1.4; }
.catalog-meta span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catalog-meta i { width:2px; height:2px; border-radius:50%; background:var(--front-line-strong); }
.front-pagination { display:flex; justify-content:center; align-items:center; gap:8px; padding:38px 0 12px; }
.front-page-btn { min-width:36px; height:34px; padding:0 11px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--front-line); border-radius:8px; background:var(--front-panel); color:var(--front-muted); font-size:11px; transition:.18s; }
.front-page-btn:hover { border-color:var(--front-line-strong); color:var(--front-text); }
.front-page-btn.is-current { background:var(--front-text); color:var(--front-panel); border-color:var(--front-text); }
.front-page-btn.is-disabled { opacity:.42; pointer-events:none; }
.front-footer { margin-top:46px; border-top:1px solid var(--front-line); background:var(--front-panel); }
.front-footer-inner { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:18px; color:var(--front-muted); font-size:10px; }
.front-footer strong { color:var(--front-text); font-weight:650; }
.front-fab { position:fixed; right:22px; bottom:22px; display:flex; flex-direction:column; gap:8px; z-index:30; }
.front-fab button,.front-fab a { width:36px;height:36px;border:1px solid var(--front-line);border-radius:50%;background:var(--front-panel);color:var(--front-muted);display:grid;place-items:center;box-shadow:0 5px 18px rgba(15,23,42,.08);cursor:pointer; }

/* Public index pages */
.public-shell { padding:32px 0 10px; }
.public-head { display:flex; align-items:end; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--front-line); }
.public-head h1 { margin:0; font-size:30px; font-weight:750; letter-spacing:-.04em; }
.public-head p { margin:7px 0 0; color:var(--front-muted); font-size:12px; }
.taxonomy-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:18px 0; }
.taxonomy-tile { min-height:96px; padding:16px; border:1px solid var(--front-line); border-radius:11px; background:var(--front-panel); transition:.18s; }
.taxonomy-tile:hover { transform:translateY(-2px); border-color:var(--front-line-strong); box-shadow:var(--front-shadow); }
.taxonomy-tile strong { display:block; font-size:14px; }
.taxonomy-tile small { display:block; margin-top:7px; color:var(--front-muted); font-size:10px; }
.archive-stack { border:1px solid var(--front-line); border-radius:12px; overflow:hidden; background:var(--front-panel); margin-top:18px; }
.archive-item { display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:18px; align-items:center; min-height:58px; padding:0 16px; border-bottom:1px solid var(--front-line); transition:.15s; }
.archive-item:last-child { border-bottom:0; }
.archive-item:hover { background:var(--front-panel-soft); }
.archive-item time { color:var(--front-muted); font:10px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-variant-numeric:tabular-nums; }
.archive-item strong { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:600; }
.archive-item span { color:var(--front-muted); }
.about-card { max-width:800px; margin:18px auto 0; padding:42px clamp(22px,6vw,72px); border:1px solid var(--front-line); border-radius:14px; background:var(--front-panel); }

/* Detail */
.reading-wrap { width:min(100% - 32px,1160px); margin-inline:auto; }
.reading-main { display:grid; grid-template-columns:minmax(0,760px) 256px; justify-content:center; gap:40px; padding:32px 0 60px; }
.reading-article { min-width:0; }
.reading-head { padding:0 0 28px; border-bottom:1px solid var(--front-line); }
.reading-kicker { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:13px; }
.reading-pill { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:6px; background:var(--front-chip); color:var(--front-muted); font-size:10px; }
.reading-title { margin:0; font-size:clamp(24px,3vw,36px); line-height:1.35; letter-spacing:-.035em; font-weight:700; }
.reading-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:15px; color:var(--front-muted); font-size:12px; }
.reading-meta time { font-variant-numeric:tabular-nums; }
.reading-cover { margin-top:22px; overflow:hidden; border-radius:14px; border:1px solid var(--front-line); background:var(--front-panel-soft); max-height:560px; }
.reading-cover img { width:100%; max-height:560px; object-fit:cover; display:block; }
.reading-content { padding-top:26px; }
.reading-content.prose-paper { max-width:none; }
.reading-aside { position:relative; min-width:0; }
.reading-sticky { position:sticky; top:88px; display:grid; gap:12px; }
.reading-panel { border:1px solid var(--front-line); border-radius:11px; background:var(--front-panel); padding:14px; }
.reading-panel-title { display:flex; align-items:center; justify-content:space-between; margin:0 0 9px; font-size:11px; font-weight:700; }
.reading-panel .toc-list { max-height:48vh; overflow:auto; }
.reading-panel .toc-list a { display:block; padding:5px 0; color:var(--front-muted); font-size:12px; line-height:1.5; }
.reading-panel .toc-list a:hover,.reading-panel .toc-list a.is-active { color:var(--front-text); }
.reading-latest a { display:block; padding:8px 0; border-top:1px solid var(--front-line); }
.reading-latest a:first-child { border-top:0; padding-top:0; }
.reading-latest strong { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; font-size:12px; line-height:1.5; }
.reading-latest time { display:block; margin-top:3px; color:var(--front-muted); font-size:11px; font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; }
.reading-actions { display:flex; justify-content:space-between; gap:10px; padding-top:24px; margin-top:28px; border-top:1px solid var(--front-line); }
.reading-action { display:inline-flex; align-items:center; min-height:34px; padding:0 11px; border:1px solid var(--front-line); border-radius:8px; background:var(--front-panel); color:var(--front-muted); font-size:10px; cursor:pointer; }
.reading-action:hover { color:var(--front-text); border-color:var(--front-line-strong); }
.front-atlas .paper-audio-player,.front-atlas .paper-video-shell { margin-top:22px; border-radius:12px; overflow:hidden; }

@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .reading-main { grid-template-columns:minmax(0,1fr); max-width:820px; margin-inline:auto; }
  .reading-aside { display:none; }
  .taxonomy-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .front-wrap,.reading-wrap { width:min(100% - 24px,1280px); }
  .front-header-inner { min-height:56px; gap:12px; }
  .front-brand-copy small,.front-nav,.front-search { display:none; }
  .front-mobile-nav { display:flex; overflow-x:auto; scrollbar-width:none; gap:4px; padding:8px 0; border-top:1px solid var(--front-line); }
  .front-mobile-nav::-webkit-scrollbar { display:none; }
  .front-mobile-nav a { flex:none; padding:6px 9px; border-radius:7px; color:var(--front-muted); font-size:11px; }
  .front-mobile-nav a.is-active { background:var(--front-chip); color:var(--front-text); }
  .front-hero { padding-top:24px; align-items:start; }
  .front-hero h1 { font-size:28px; }
  .front-hero p { font-size:12px; }
  .front-count { display:none; }
  .filter-row { grid-template-columns:44px minmax(0,1fr); gap:7px; padding:8px 10px; }
  .filter-chip { font-size:10px; padding:0 6px; }
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 10px; }
  .catalog-title { font-size:12px; min-height:35px; }
  .catalog-meta { font-size:9px; }
  .taxonomy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .archive-item { grid-template-columns:76px minmax(0,1fr) auto; gap:10px; padding:0 12px; }
  .reading-main { padding-top:26px; }
  .reading-title { font-size:34px; }
  .front-footer-inner { align-items:flex-start; flex-direction:column; justify-content:center; padding:18px 0; }
}
@media (max-width: 420px) {
  .front-wrap,.reading-wrap { width:min(100% - 20px,1280px); }
  .catalog-grid { gap:16px 8px; }
  .catalog-cover { border-radius:9px; }
  .catalog-badge,.catalog-pin { top:6px; }
  .catalog-badge { right:6px; }
  .catalog-pin { left:6px; }
  .taxonomy-grid { grid-template-columns:1fr; }
}

/* ========================================================================== 
   Front v2 · restrained editorial system (Vercel / Linear / Ghost inspired)
   ========================================================================== */
:root {
  --front-bg:#fafafa;
  --front-panel:#fff;
  --front-panel-soft:#f7f7f8;
  --front-text:#18181b;
  --front-muted:#71717a;
  --front-line:#e4e4e7;
  --front-line-strong:#d4d4d8;
  --front-chip:#f4f4f5;
  --front-accent:#27272a;
  --front-accent-soft:#f4f4f5;
  --front-shadow:0 1px 2px rgba(0,0,0,.025),0 8px 30px rgba(0,0,0,.025);
}
html.dark {
  --front-bg:#09090b;
  --front-panel:#111113;
  --front-panel-soft:#18181b;
  --front-text:#f4f4f5;
  --front-muted:#a1a1aa;
  --front-line:#27272a;
  --front-line-strong:#3f3f46;
  --front-chip:#1f1f22;
  --front-accent:#f4f4f5;
  --front-accent-soft:#27272a;
}
.front-minimal,.front-atlas {
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
}
.front-list-shell { padding-bottom:20px; }
.front-list-head { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; padding:40px 0 22px; }
.front-list-head h1 { margin:0; font-size:clamp(28px,3vw,38px); line-height:1.15; font-weight:650; letter-spacing:-.04em; }
.front-list-head p:not(.front-eyebrow) { margin:8px 0 0; color:var(--front-muted); font-size:13px; line-height:1.65; }
.front-list-head .front-eyebrow { margin:0 0 8px; color:var(--front-muted); font-size:10px; font-weight:650; letter-spacing:.14em; }
.front-count { display:flex; align-items:baseline; gap:6px; color:var(--front-muted); font-size:11px; }
.front-count b { margin:0; color:var(--front-text); font-family:"JetBrains Mono",ui-monospace,monospace; font-size:18px; font-weight:500; }

.compact-filter { position:relative; z-index:20; margin-bottom:24px; border:1px solid var(--front-line); border-radius:12px; background:var(--front-panel); box-shadow:0 1px 2px rgba(0,0,0,.02); }
.compact-filter-main { min-height:48px; display:flex; align-items:center; gap:8px; padding:7px 9px; }
.compact-filter-group { display:flex; align-items:center; gap:4px; padding-right:8px; border-right:1px solid var(--front-line); }
.compact-filter-label { padding:0 5px; color:var(--front-muted); font-size:10px; font-weight:600; }
.compact-pill,.compact-filter-menu>summary,.compact-clear { min-height:32px; display:inline-flex; align-items:center; gap:6px; padding:0 10px; border-radius:8px; color:var(--front-muted); font-size:11px; font-weight:500; cursor:pointer; user-select:none; transition:.15s ease; white-space:nowrap; }
.compact-pill:hover,.compact-filter-menu>summary:hover,.compact-clear:hover { background:var(--front-chip); color:var(--front-text); }
.compact-pill.is-active { background:var(--front-text); color:var(--front-panel); }
.compact-filter-menu { position:relative; }
.compact-filter-menu>summary { list-style:none; }
.compact-filter-menu>summary::-webkit-details-marker { display:none; }
.compact-filter-menu[open]>summary { background:var(--front-chip); color:var(--front-text); }
.compact-filter-menu>summary span { color:var(--front-muted); font-size:9px; }
.compact-filter-popover { position:absolute; top:39px; left:0; width:230px; max-height:320px; overflow:auto; padding:6px; border:1px solid var(--front-line); border-radius:11px; background:var(--front-panel); box-shadow:0 16px 40px rgba(0,0,0,.09); }
.compact-filter-tags { width:260px; }
.compact-option { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 9px; border-radius:7px; color:var(--front-muted); font-size:11px; transition:.12s ease; }
.compact-option:hover,.compact-option.is-active { background:var(--front-chip); color:var(--front-text); }
.compact-option.is-active { font-weight:600; }
.compact-option small { font-family:"JetBrains Mono",ui-monospace,monospace; color:var(--front-muted); font-size:9px; }
.compact-clear { margin-left:auto; color:var(--front-muted); }
.compact-filter-mobile { display:none; }

.post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 22px; }
.post-card { min-width:0; }
.post-card-media { position:relative; display:block; aspect-ratio:16/9; overflow:hidden; border:1px solid var(--front-line); border-radius:12px; background:var(--front-panel-soft); }
.post-card-media img { width:100%; height:100%; display:block; object-fit:cover; transform:scale(1.001); transition:transform .38s cubic-bezier(.2,.7,.2,1),filter .25s ease; }
.post-card:hover .post-card-media img { transform:scale(1.035); }
.post-card-placeholder { position:absolute; inset:0; display:flex; align-items:flex-end; padding:14px; overflow:hidden; background-color:var(--front-panel-soft); background-image:linear-gradient(var(--front-line) 1px,transparent 1px),linear-gradient(90deg,var(--front-line) 1px,transparent 1px); background-size:24px 24px; }
.post-card-placeholder::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 20% 15%,color-mix(in srgb,var(--front-panel) 35%,transparent),transparent 52%),linear-gradient(135deg,transparent 20%,color-mix(in srgb,var(--front-panel) 78%,transparent)); }
.post-card-placeholder i { position:relative; z-index:1; width:34px; height:5px; border-radius:999px; background:var(--front-text); opacity:.85; }
.post-card-placeholder b { position:relative; z-index:1; margin-left:auto; color:var(--front-muted); font-size:8px; font-weight:600; letter-spacing:.14em; }
.post-pin { position:absolute; top:10px; left:10px; z-index:3; min-height:23px; display:inline-flex; align-items:center; padding:0 7px; border:1px solid rgba(255,255,255,.32); border-radius:999px; background:rgba(24,24,27,.78); color:#fff; backdrop-filter:blur(10px); font-size:9px; font-weight:600; }
.post-card-body { padding:12px 2px 0; }
.post-card-meta-top { min-height:21px; margin-bottom:5px; }
.post-category { display:inline-flex; align-items:center; min-height:20px; padding:0 7px; border:1px solid var(--front-line); border-radius:999px; color:var(--front-muted); font-size:9px; font-weight:550; transition:.15s; }
.post-category:hover { border-color:var(--front-line-strong); color:var(--front-text); }
.post-card-title { margin:0; color:var(--front-text); font-size:15px; line-height:1.45; font-weight:600; letter-spacing:-.018em; }
.post-card-title a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.post-card-excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:36px; margin:6px 0 0; color:var(--front-muted); font-size:11px; line-height:1.62; }
.post-card-meta { display:flex; align-items:center; gap:6px; margin-top:9px; color:var(--front-muted); font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; }
.post-card-meta>span:nth-child(2) { opacity:.55; }
.post-empty { grid-column:1/-1; padding:76px 20px; border:1px dashed var(--front-line-strong); border-radius:12px; color:var(--front-muted); text-align:center; font-size:12px; }
.front-page-count { color:var(--front-muted); font-family:"JetBrains Mono",ui-monospace,monospace; font-size:10px; }

/* Detail page: editorial proportions and quieter hierarchy */
.reading-wrap { width:min(100% - 36px,1180px); }
.reading-main { grid-template-columns:minmax(0,760px) 270px; gap:56px; padding:48px 0 72px; }
.reading-head { padding-bottom:24px; border-bottom:1px solid var(--front-line); }
.reading-kicker { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.reading-pill { min-height:23px; display:inline-flex; align-items:center; padding:0 8px; border:1px solid var(--front-line); border-radius:999px; background:transparent; color:var(--front-muted); font-size:9px; font-weight:550; }
.reading-pill:hover { color:var(--front-text); border-color:var(--front-line-strong); }
.reading-title { max-width:760px; margin:0; font-size:clamp(30px,3.4vw,42px); line-height:1.18; letter-spacing:-.04em; font-weight:650; color:var(--front-text); }
.reading-meta { display:flex; flex-wrap:wrap; gap:7px 14px; margin-top:15px; color:var(--front-muted); font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; }
.reading-cover { margin:28px 0 0; overflow:hidden; border:1px solid var(--front-line); border-radius:14px; background:var(--front-panel-soft); }
.reading-cover img { width:100%; display:block; aspect-ratio:16/9; object-fit:cover; }
.reading-content { padding-top:30px; }

/* Modern prose overrides: deliberately supersede legacy paper/yellow styling. */
.front-atlas .reading-content.prose-paper { max-width:none; color:color-mix(in srgb,var(--front-text) 88%,var(--front-muted)); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; font-size:16px; line-height:1.82; letter-spacing:0; }
.front-atlas .prose-paper p { margin:1.1em 0; }
.front-atlas .prose-paper h1,.front-atlas .prose-paper h2,.front-atlas .prose-paper h3,.front-atlas .prose-paper h4 { color:var(--front-text); font-family:inherit; font-weight:650; letter-spacing:-.025em; }
.front-atlas .prose-paper h2 { margin:2.25em 0 .8em; padding:0; font-size:1.45rem; }
.front-atlas .prose-paper h2::after,.front-atlas .prose-paper h4::after { display:none!important; content:none!important; }
.front-atlas .prose-paper h3 { margin:1.9em 0 .7em; font-size:1.2rem; }
.front-atlas .prose-paper h4 { margin:1.65em 0 .6em; font-size:1.05rem; }
.front-atlas .prose-paper a { color:var(--front-text); text-decoration:underline; text-decoration-color:var(--front-line-strong); text-underline-offset:3px; }
.front-atlas .prose-paper strong { color:var(--front-text); font-weight:650; }
.front-atlas .prose-paper ul,.front-atlas .prose-paper ol { margin:1.15em 0; padding-left:1.55rem; }
.front-atlas .prose-paper ol { list-style-position:outside; }
.front-atlas .prose-paper li { margin:.4em 0; padding-left:.18rem; }
.front-atlas .prose-paper li::marker { color:var(--front-muted); font-variant-numeric:tabular-nums; }
.front-atlas .prose-paper blockquote { margin:1.6rem 0; padding:.1rem 0 .1rem 1rem; border:0; border-left:2px solid var(--front-line-strong); border-radius:0; background:transparent; box-shadow:none; color:var(--front-muted); font-family:inherit; font-style:normal; }
.front-atlas .prose-paper :not(pre)>code { padding:.13em .36em; border:1px solid var(--front-line); border-radius:5px; background:var(--front-panel-soft); color:var(--front-text); font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.86em; }
.front-atlas .prose-paper img { max-width:100%; margin:1.8rem auto; border:0; border-radius:10px; box-shadow:none; transform:none; }
.front-atlas .prose-paper table { border-collapse:separate; border-spacing:0; border:1px solid var(--front-line); border-radius:8px; overflow:hidden; }
.front-atlas .prose-paper th,.front-atlas .prose-paper td { border:0; border-bottom:1px solid var(--front-line); border-right:1px solid var(--front-line); padding:9px 11px; font-size:.9em; }
.front-atlas .prose-paper tr:last-child td { border-bottom:0; }
.front-atlas .prose-paper th:last-child,.front-atlas .prose-paper td:last-child { border-right:0; }
.front-atlas .prose-paper th { background:var(--front-panel-soft); color:var(--front-text); font-weight:600; }

/* GitHub-dark code treatment with language/copy header and CSS line numbers. */
.front-atlas .code-block-wrapper { margin:1.55rem 0; overflow:hidden; border:1px solid #27272a; border-radius:11px; background:#0d1117; box-shadow:0 8px 24px rgba(0,0,0,.08); }
.front-atlas .code-header { min-height:38px; display:flex; align-items:center; padding:0 8px 0 14px; border:0; border-bottom:1px solid #24292f; background:#161b22; }
.front-atlas .code-header::before { content:""; width:8px; height:8px; margin-right:18px; border-radius:50%; background:#ff5f56; box-shadow:14px 0 #ffbd2e,28px 0 #27c93f; }
.front-atlas .code-language { color:#8b949e; font-family:"JetBrains Mono",ui-monospace,monospace; font-size:9px; font-weight:600; letter-spacing:.08em; }
.front-atlas .code-tools { margin-left:auto; display:flex; align-items:center; gap:3px; }
.front-atlas .copy-code,.front-atlas .collapse-code { width:28px; min-width:28px; height:26px; display:grid; place-items:center; border:0; border-radius:6px; background:transparent!important; color:#8b949e; font-family:"JetBrains Mono",ui-monospace,monospace; font-size:11px; cursor:pointer; }
.front-atlas .copy-code:hover,.front-atlas .collapse-code:hover { background:#21262d!important; color:#f0f6fc; }
.front-atlas .prose-paper .code-block-wrapper pre.code-body { counter-reset:code-line; margin:0!important; padding:12px 0 14px!important; border:0!important; border-radius:0!important; background:#0d1117!important; box-shadow:none!important; color:#c9d1d9!important; font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace!important; font-size:12.5px!important; line-height:1.72!important; }
.front-atlas .prose-paper .code-block-wrapper pre.code-body::before,.front-atlas .prose-paper .code-block-wrapper pre.code-body::after { display:none!important; content:none!important; }
.front-atlas .code-body code { display:block; min-width:max-content; background:transparent!important; }
.front-atlas .code-line { counter-increment:code-line; display:block; min-height:1.72em; padding:0 16px 0 0; }
.front-atlas .code-line::before { content:counter(code-line); display:inline-block; width:46px; padding-right:13px; color:#484f58; text-align:right; user-select:none; }
.front-atlas .code-block-wrapper.is-collapsed .code-body { display:none; }
.front-atlas .hljs { background:transparent!important; color:#c9d1d9!important; }
.front-atlas .hljs-comment,.front-atlas .hljs-quote { color:#8b949e!important; }
.front-atlas .hljs-keyword,.front-atlas .hljs-selector-tag,.front-atlas .hljs-literal { color:#ff7b72!important; }
.front-atlas .hljs-string,.front-atlas .hljs-attr { color:#a5d6ff!important; }
.front-atlas .hljs-title,.front-atlas .hljs-function,.front-atlas .hljs-section { color:#d2a8ff!important; }
.front-atlas .hljs-number,.front-atlas .hljs-symbol { color:#79c0ff!important; }

.reading-aside { min-width:0; }
.reading-sticky { position:sticky; top:86px; display:grid; gap:14px; }
.reading-panel { padding:14px 15px; border:1px solid var(--front-line); border-radius:10px; background:var(--front-panel); box-shadow:none; }
.reading-panel-title { min-height:22px; margin:0 0 8px; padding:0; border:0; background:transparent; color:var(--front-text); font-size:10px; font-weight:650; letter-spacing:.01em; }
.reading-panel .toc-list { position:relative; max-height:46vh; overflow:auto; padding-left:10px; border-left:1px solid var(--front-line); }
.reading-panel .toc-list a { position:relative; padding:5px 5px 5px 9px; color:var(--front-muted); font-size:12px; line-height:1.5; }
.reading-panel .toc-list a::before { content:""; position:absolute; left:-11px; top:7px; bottom:7px; width:2px; border-radius:2px; background:transparent; }
.reading-panel .toc-list a.is-active { color:var(--front-text); font-weight:600; }
.reading-panel .toc-list a.is-active::before { background:var(--front-text); }
.reading-panel .toc-h3 { padding-left:16px!important; }
.reading-panel .toc-h4 { padding-left:23px!important; }
.reading-latest { display:grid; gap:0; }
.reading-latest a { display:block; padding:9px 0; border-top:1px solid var(--front-line); }
.reading-latest a:first-child { border-top:0; padding-top:3px; }
.reading-latest strong { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; color:var(--front-text); font-size:12px; line-height:1.5; font-weight:550; }
.reading-latest time { display:block; margin-top:4px; color:var(--front-muted); font-family:"JetBrains Mono",ui-monospace,monospace; font-size:8px; }

@media (max-width:1024px){
  .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reading-main { grid-template-columns:minmax(0,760px); max-width:800px; gap:0; }
  .reading-aside { display:none; }
}
@media (max-width:760px){
  .front-list-head { padding:28px 0 18px; }
  .front-list-head h1 { font-size:28px; }
  .compact-filter-main { overflow-x:auto; scrollbar-width:none; }
  .compact-filter-main::-webkit-scrollbar { display:none; }
  .compact-filter-popover { position:fixed; left:12px; right:12px; top:116px; width:auto; max-height:54vh; }
  .compact-filter-group { flex:none; }
  .compact-clear { margin-left:0; }
  .post-grid { gap:25px 12px; }
  .post-card-title { font-size:14px; }
  .post-card-excerpt { min-height:0; font-size:10.5px; }
  .reading-title { font-size:31px; line-height:1.2; }
  .front-atlas .reading-content.prose-paper { font-size:15.5px; line-height:1.8; }
}
@media (max-width:520px){
  .front-wrap,.reading-wrap { width:min(100% - 22px,1280px); }
  .front-count { display:none; }
  .post-grid { grid-template-columns:1fr; gap:30px; }
  .post-card-media { border-radius:10px; }
  .post-card-title { font-size:15px; }
  .reading-main { padding-top:30px; }
  .reading-title { font-size:29px; }
  .front-atlas .code-line::before { width:38px; padding-right:10px; }
}
.front-atlas .copy-code { width:auto; min-width:48px; padding:0 8px; font-size:8px; letter-spacing:.05em; }

/* 2026-08-25 — Page canvas hierarchy
   Desktop: muted outer canvas + centered white content sheet.
   Mobile: edge-to-edge content without artificial gutters. */
:root {
  --front-canvas: #f3f4f6;
  --front-sheet-shadow: 0 4px 24px -8px rgba(15, 23, 42, .08);
}
html.dark {
  --front-canvas: #0b0d10;
  --front-sheet-shadow: 0 8px 28px -10px rgba(0,0,0,.38);
}
html,
body.front-atlas {
  background: var(--front-canvas);
}

/* Keep navbar content and page sheet on the exact same optical axis. */
.front-header > .front-wrap,
.front-footer > .front-wrap {
  width: min(calc(100% - 48px), 1240px);
}
.front-header {
  background: color-mix(in srgb, var(--front-panel) 88%, transparent);
  border-bottom-color: color-mix(in srgb, var(--front-line) 82%, transparent);
  box-shadow: 0 1px 0 rgba(15,23,42,.015);
}

/* Shared white page sheet. */
.front-canvas-panel {
  width: min(calc(100% - 48px), 1240px) !important;
  margin-inline: auto;
  background: var(--front-panel);
  border-left: 1px solid color-mix(in srgb, var(--front-line) 82%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--front-line) 82%, transparent);
  box-shadow: var(--front-sheet-shadow);
}

/* List page: content gets deliberate inner gutters instead of touching sheet edges. */
.front-list-shell.front-canvas-panel {
  padding: 0 34px 42px;
  min-height: calc(100vh - 143px);
}
.front-list-shell .front-list-head {
  padding-top: 38px;
}
.front-list-shell .compact-filter {
  border-color: var(--front-line);
  background: color-mix(in srgb, var(--front-panel-soft) 62%, var(--front-panel));
}

/* Public taxonomy/archive/about pages use the same canvas hierarchy. */
.public-shell.front-canvas-panel {
  padding: 38px 34px 44px;
  min-height: calc(100vh - 143px);
}

/* Detail page keeps article + TOC inside the white sheet. */
.reading-wrap.front-canvas-panel {
  padding: 0 38px;
  min-height: calc(100vh - 143px);
}
.reading-wrap.front-canvas-panel .reading-main {
  width: 100%;
  margin-inline: auto;
  padding-top: 46px;
  padding-bottom: 68px;
}

/* Footer rests on canvas while preserving the same alignment boundary. */
.front-footer {
  margin-top: 0;
  background: var(--front-canvas);
  border-top: 1px solid var(--front-line);
}

@media (max-width: 1024px) {
  .front-header > .front-wrap,
  .front-footer > .front-wrap,
  .front-canvas-panel {
    width: min(calc(100% - 32px), 1240px) !important;
  }
  .front-list-shell.front-canvas-panel,
  .public-shell.front-canvas-panel {
    padding-left: 26px;
    padding-right: 26px;
  }
  .reading-wrap.front-canvas-panel {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 640px) {
  /* Phone layout intentionally loses the desktop "sheet" treatment. */
  .front-header > .front-wrap,
  .front-footer > .front-wrap,
  .front-canvas-panel {
    width: 100% !important;
  }
  .front-header > .front-wrap,
  .front-footer > .front-wrap {
    padding-inline: 16px;
  }
  .front-canvas-panel {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .front-list-shell.front-canvas-panel {
    padding: 0 16px 34px;
  }
  .public-shell.front-canvas-panel {
    padding: 28px 16px 36px;
  }
  .reading-wrap.front-canvas-panel {
    padding: 0 17px;
  }
  .reading-wrap.front-canvas-panel .reading-main {
    padding-top: 28px;
    padding-bottom: 48px;
  }
}

/* 2026-08-25 compact article index: first-screen density and integrated cards. */
.front-list-shell.front-canvas-panel {
  padding-top: 22px;
  padding-bottom: 30px;
}
.front-list-shell .compact-filter {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.front-list-shell .compact-filter-main {
  flex: 1 1 auto;
  min-width: 0;
}
.compact-filter-count {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 13px;
  border-left: 1px solid var(--front-line);
  color: var(--front-muted);
  white-space: nowrap;
  font-size: 10px;
}
.compact-filter-count b {
  color: var(--front-text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.post-grid {
  gap: 20px;
}
.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--front-line);
  border-radius: 12px;
  background: var(--front-panel);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post-card:hover {
  border-color: var(--front-line-strong);
  box-shadow: 0 8px 24px rgba(15,23,42,.055);
  transform: translateY(-1px);
}
.post-card-media {
  border: 0;
  border-bottom: 1px solid var(--front-line);
  border-radius: 0;
}
.post-card-body {
  padding: 14px 15px 15px;
}
.post-card-meta-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.post-card-meta-row .post-category {
  flex: 0 1 auto;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-card-title {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.post-card-title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-card-excerpt {
  min-height: 0;
  margin-top: 6px;
  -webkit-line-clamp: 1;
  font-size: 10.5px;
  line-height: 1.55;
}
.post-card-meta {
  flex: none;
  margin-top: 0;
  white-space: nowrap;
  font-size: 8.5px;
}

@media (max-width: 1024px) {
  .post-grid { gap: 18px; }
}
@media (max-width: 640px) {
  .front-list-shell.front-canvas-panel { padding-top: 14px; }
  .front-list-shell .compact-filter { align-items: stretch; margin-bottom: 16px; }
  .compact-filter-count { display: none; }
  .post-grid { gap: 16px; }
  .post-card { border-radius: 10px; }
  .post-card-body { padding: 12px 13px 13px; }
}

/* 2026-08-25 category-controlled content layouts. */
.public-category-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}
.category-layout-badge {
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 10px;
  border:1px solid var(--front-line);
  border-radius:999px;
  background:var(--front-panel-soft);
  color:var(--front-muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:.02em;
  white-space:nowrap;
}

.portrait-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 14px;
}
.poster-card { min-width:0; }
.poster-media {
  position:relative;
  display:block;
  aspect-ratio:3/4;
  overflow:hidden;
  border:1px solid var(--front-line);
  border-radius:10px;
  background:var(--front-panel-soft);
  box-shadow:0 1px 2px rgba(15,23,42,.035);
}
.poster-media img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform:scale(1.001);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),filter .2s ease;
}
.poster-card:hover .poster-media img { transform:scale(1.035); }
.poster-placeholder {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background-color:var(--front-panel-soft);
  background-image:linear-gradient(135deg,color-mix(in srgb,var(--front-line) 55%,transparent),transparent 50%),linear-gradient(var(--front-line) 1px,transparent 1px),linear-gradient(90deg,var(--front-line) 1px,transparent 1px);
  background-size:auto,22px 22px,22px 22px;
}
.poster-placeholder span {
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border:1px solid var(--front-line-strong);
  border-radius:10px;
  background:color-mix(in srgb,var(--front-panel) 84%,transparent);
  color:var(--front-muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  backdrop-filter:blur(8px);
}
.poster-category,
.poster-status {
  position:absolute;
  z-index:2;
  right:7px;
  display:inline-flex;
  align-items:center;
  max-width:calc(100% - 14px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.28);
  border-radius:6px;
  background:rgba(20,20,23,.64);
  color:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.12);
  backdrop-filter:blur(9px);
}
.poster-category {
  top:7px;
  padding:3px 6px;
  font-size:9px;
  font-weight:650;
}
.poster-status {
  bottom:7px;
  padding:3px 6px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:8px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
}
.poster-copy { padding:8px 1px 0; }
.poster-copy h2 {
  margin:0;
  color:var(--front-text);
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  letter-spacing:-.012em;
}
.poster-copy h2 a {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.poster-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-top:4px;
  color:var(--front-muted);
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:8px;
  font-variant-numeric:tabular-nums;
}

.text-list-grid {
  display:grid;
  grid-template-columns:1fr;
  column-gap:48px;
  row-gap:4px;
  border-top:0;
}
.text-list-item {
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px 8px;
  margin-inline:-8px;
  border-bottom:1px solid var(--front-line);
  border-radius:6px;
  color:var(--front-text);
  transition:border-color .15s ease,color .15s ease,background .15s ease;
}
.text-list-item:hover { 
  background:rgba(244,244,245,.8);
  border-color:var(--front-line-strong);
}
.text-list-title {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:500;
}
.text-list-title i {
  display:inline-flex;
  margin-right:7px;
  padding:2px 5px;
  border-radius:5px;
  background:var(--front-chip);
  color:var(--front-muted);
  font-size:8px;
  font-style:normal;
  font-weight:650;
  vertical-align:1px;
}
.text-list-item time {
  flex:none;
  color:var(--front-muted);
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}

@media (min-width:640px) {
  .portrait-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 15px; }
}
@media (min-width:768px) {
  .portrait-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .text-list-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1024px) {
  .portrait-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px 16px; }
}
@media (max-width:640px) {
  .public-category-head { align-items:flex-start; }
  .category-layout-badge { margin-top:3px; }
  .poster-copy h2 { font-size:12px; }
  .poster-meta { font-size:7.5px; }
}

/* refined detail code blocks */
.front-atlas pre {
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:#52525b transparent;
}
.front-atlas pre::-webkit-scrollbar { height:6px; }
.front-atlas pre::-webkit-scrollbar-track { background:transparent; }
.front-atlas pre::-webkit-scrollbar-thumb { background:#52525b; border-radius:999px; }

.text-list-dot{display:inline-block;width:6px;height:6px;border-radius:999px;background:#d4d4d8;margin-right:10px;transition:.18s}
.text-list-item:hover .text-list-dot{background:#18181b}


/* 2026-08-26 — Floating Canvas: detach the white sheet from the top navigation. */
.front-canvas-panel {
  margin-top: 24px !important;
  margin-bottom: 48px !important;
  border: 1px solid color-mix(in srgb, var(--front-line) 86%, transparent) !important;
  border-radius: 18px;
  overflow: clip;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, .10);
}
html.dark .front-canvas-panel {
  box-shadow: 0 8px 26px -10px rgba(0, 0, 0, .42);
}
.front-footer {
  margin-top: 0;
}
@media (max-width: 1024px) {
  .front-canvas-panel {
    margin-top: 20px !important;
    margin-bottom: 36px !important;
    border-radius: 16px;
  }
}
@media (max-width: 640px) {
  .front-canvas-panel {
    margin-top: 12px !important;
    margin-bottom: 24px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }
}

/* 2026-08-26 unified article filter bar: homepage + category pages. */
.article-region { min-width:0; }
.article-region.htmx-request { opacity:.72; transition:opacity .15s ease; }
.unified-filter {
  display:flex;
  align-items:center;
  margin-bottom:20px;
}
.unified-filter .compact-filter-main {
  flex:1 1 auto;
  min-width:0;
}
.filter-dropdown {
  position:relative;
  flex:none;
}
.filter-trigger {
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--front-muted);
  font-size:11px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.filter-trigger:hover {
  background:var(--front-chip);
  color:var(--front-text);
}
.filter-trigger.is-selected {
  border-color:var(--front-line);
  background:var(--front-chip);
  color:var(--front-text);
  font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.025);
}
.filter-trigger svg {
  width:12px;
  height:12px;
  flex:none;
  opacity:.68;
  transition:transform .15s ease;
}
.filter-trigger[aria-expanded="true"] svg { transform:rotate(180deg); }
.filter-popover {
  position:absolute;
  z-index:60;
  top:calc(100% + 7px);
  left:0;
  width:236px;
  max-height:320px;
  overflow:auto;
  padding:6px;
  border:1px solid var(--front-line);
  border-radius:11px;
  background:var(--front-panel);
  box-shadow:0 18px 50px rgba(0,0,0,.10),0 1px 2px rgba(0,0,0,.04);
  scrollbar-width:thin;
  scrollbar-color:var(--front-line-strong) transparent;
}
.filter-popover-tags { width:260px; }
.filter-popover::-webkit-scrollbar { width:6px; }
.filter-popover::-webkit-scrollbar-track { background:transparent; }
.filter-popover::-webkit-scrollbar-thumb { background:var(--front-line-strong); border-radius:999px; }
.unified-filter .compact-clear { margin-left:2px; }

@media (max-width: 760px) {
  .unified-filter { align-items:stretch; }
  .unified-filter .compact-filter-main {
    overflow-x:auto;
    scrollbar-width:none;
  }
  .unified-filter .compact-filter-main::-webkit-scrollbar { display:none; }
  .unified-filter .compact-filter-count { display:none; }
  .filter-popover {
    position:fixed;
    left:12px;
    right:12px;
    top:116px;
    width:auto;
    max-height:54vh;
  }
}

/* Category aggregates use exactly the same top rhythm as the homepage article index. */
.public-shell.category-list-shell.front-canvas-panel {
  padding:22px 34px 30px;
}
.front-canvas-panel { overflow:visible; }
@media (max-width: 640px) {
  .public-shell.category-list-shell.front-canvas-panel { padding:14px 16px 24px; }
}

/* 2026-08-26 detail single-column immersive reading canvas */
.reading-single-canvas {
  width:min(calc(100% - 32px),896px)!important;
  padding:0!important;
  background:var(--front-panel);
}
.reading-article-single { padding:32px 40px 40px; }
.reading-head-single { padding:0 0 24px; margin:0 0 4px; }
.reading-head-single .reading-title {
  max-width:760px;
  font-size:clamp(24px,3vw,30px);
  line-height:1.35;
  letter-spacing:-.03em;
  font-weight:700;
}
.reading-head-single .reading-meta {
  gap:7px;
  margin-top:13px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
.reading-head-single .reading-meta span[aria-hidden="true"] { color:color-mix(in srgb,var(--front-muted) 55%,transparent); }
.reading-stage { width:100%; }
.reading-cover.reading-stage {
  max-height:none;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  background:var(--front-panel-soft);
}
.reading-cover.reading-stage img { width:100%; height:100%; max-height:none; object-fit:cover; }
.reading-article-single .paper-video-shell {
  width:100%;
  margin:24px 0 26px!important;
  padding:0!important;
  border:1px solid var(--front-line)!important;
  border-radius:14px!important;
  background:#09090b!important;
  box-shadow:none!important;
}
.reading-article-single .paper-video-player { width:100%; aspect-ratio:16/9; border-radius:13px; }
.reading-article-single .paper-gallery {
  width:100%;
  max-width:none;
  margin:22px 0 26px;
  column-count:2;
  column-gap:12px;
}
.reading-article-single .paper-photo-card { margin-bottom:12px; }
.reading-article-single .reading-content { padding-top:22px; }
.reading-actions-single { margin-top:34px; padding-top:18px; }
.reading-related { margin-top:36px; padding-top:24px; border-top:1px solid var(--front-line); }
.reading-related-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.reading-related-head span { display:block; margin-bottom:4px; color:var(--front-muted); font-size:9px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.reading-related-head h2 { margin:0; color:var(--front-text); font-size:15px; line-height:1.3; font-weight:650; }
.reading-related-head>a { color:var(--front-muted); font-size:10px; }
.reading-related-head>a:hover { color:var(--front-text); }
.reading-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.reading-related-card { min-width:0; overflow:hidden; border:1px solid var(--front-line); border-radius:11px; background:var(--front-panel); transition:border-color .15s ease,transform .15s ease; }
.reading-related-card:hover { border-color:var(--front-line-strong); transform:translateY(-1px); }
.reading-related-media { position:relative; display:block; aspect-ratio:16/9; overflow:hidden; border-bottom:1px solid var(--front-line); background:var(--front-panel-soft); }
.reading-related-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .22s ease; }
.reading-related-card:hover .reading-related-media img { transform:scale(1.025); }
.reading-related-media.is-placeholder { background:linear-gradient(145deg,color-mix(in srgb,var(--front-panel-soft) 88%,white),var(--front-panel)); }
.reading-related-media.is-placeholder i { position:absolute; inset:0; opacity:.28; background-image:linear-gradient(var(--front-line) 1px,transparent 1px),linear-gradient(90deg,var(--front-line) 1px,transparent 1px); background-size:14px 14px; }
.reading-related-copy { display:block; padding:10px 11px 11px; }
.reading-related-copy strong { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--front-text); font-size:11px; line-height:1.5; font-weight:600; }
.reading-related-copy time { display:block; margin-top:5px; color:var(--front-muted); font-family:"JetBrains Mono",ui-monospace,monospace; font-size:9px; font-variant-numeric:tabular-nums; }
@media (max-width:760px) {
  .reading-single-canvas { width:100%!important; }
  .reading-article-single { padding:24px 20px 30px; }
  .reading-head-single .reading-title { font-size:24px; }
  .reading-related-grid { grid-template-columns:1fr; gap:10px; }
  .reading-related-card { display:grid; grid-template-columns:112px minmax(0,1fr); }
  .reading-related-media { aspect-ratio:16/10; border-bottom:0; border-right:1px solid var(--front-line); }
  .reading-related-copy { align-self:center; }
  .reading-article-single .paper-gallery { column-count:1; }
}

/* 2026-08-26 — unify the whole public site to the same width as the detail canvas. */
:root { --front-unified-width: 896px; }
.front-wrap,
.front-header > .front-wrap,
.front-footer > .front-wrap,
.front-canvas-panel,
.reading-single-canvas {
  width: min(calc(100% - 32px), var(--front-unified-width)) !important;
  max-width: var(--front-unified-width) !important;
}

/* Keep the list compact inside the narrower global canvas. */
.front-list-shell.front-canvas-panel,
.public-shell.front-canvas-panel,
.public-shell.category-list-shell.front-canvas-panel {
  padding-left: 28px;
  padding-right: 28px;
}
.post-grid {
  gap: 18px;
}

/* Landscape list covers follow the uploaded image ratio instead of being force-cropped. */
.post-card:not(.is-no-cover) .post-card-media {
  aspect-ratio: auto;
  background: var(--front-panel-soft);
}
.post-card:not(.is-no-cover) .post-card-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
/* Keep the no-cover placeholder visually stable. */
.post-card.is-no-cover .post-card-media {
  aspect-ratio: 16 / 9;
}

@media (max-width: 1024px) {
  .front-wrap,
  .front-header > .front-wrap,
  .front-footer > .front-wrap,
  .front-canvas-panel,
  .reading-single-canvas {
    width: min(calc(100% - 28px), var(--front-unified-width)) !important;
  }
  .front-list-shell.front-canvas-panel,
  .public-shell.front-canvas-panel,
  .public-shell.category-list-shell.front-canvas-panel {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .front-wrap,
  .front-header > .front-wrap,
  .front-footer > .front-wrap,
  .front-canvas-panel,
  .reading-single-canvas {
    width: 100% !important;
    max-width: none !important;
  }
  .front-header > .front-wrap,
  .front-footer > .front-wrap {
    padding-inline: 16px;
  }
  .front-list-shell.front-canvas-panel,
  .public-shell.front-canvas-panel,
  .public-shell.category-list-shell.front-canvas-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 2026-08-26 — light code blocks + stable two-column text list. */
.front-atlas .code-block-wrapper {
  margin: 1.45rem 0;
  overflow: hidden;
  border: 1px solid rgba(212,212,216,.82);
  border-radius: 12px;
  background: #f6f8fa;
  box-shadow: none;
}
.front-atlas .code-header {
  min-height: 34px;
  padding: 0 8px 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(212,212,216,.72);
  background: rgba(250,250,250,.9);
}
.front-atlas .code-header::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 999px;
  background: #d4d4d8;
  box-shadow: 9px 0 #e4e4e7,18px 0 #d4d4d8;
}
.front-atlas .code-language {
  color: #71717a;
  font-family: "JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: lowercase;
}
.front-atlas .copy-code,
.front-atlas .collapse-code {
  min-width: 28px;
  height: 25px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent !important;
  color: #71717a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background .15s ease,border-color .15s ease,color .15s ease;
}
.front-atlas .copy-code { width: auto; min-width: 42px; padding: 0 8px; }
.front-atlas .copy-code:hover,
.front-atlas .collapse-code:hover {
  border-color: #e4e4e7;
  background: #fff !important;
  color: #18181b;
}
.front-atlas .copy-code.is-copied {
  border-color: #d4d4d8;
  background: #fff !important;
  color: #3f3f46;
}
.front-atlas .prose-paper .code-block-wrapper pre.code-body {
  counter-reset: code-line;
  margin: 0 !important;
  padding: 10px 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f6f8fa !important;
  box-shadow: none !important;
  color: #27272a !important;
  font-family: "JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}
.front-atlas .prose-paper .code-block-wrapper pre.code-body::-webkit-scrollbar { height: 5px; }
.front-atlas .prose-paper .code-block-wrapper pre.code-body::-webkit-scrollbar-track { background: transparent; }
.front-atlas .prose-paper .code-block-wrapper pre.code-body::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 999px; }
.front-atlas .code-body code { display: block; min-width: max-content; background: transparent !important; color: #27272a !important; }
.front-atlas .code-line { min-height: 1.65em; padding-right: 16px; }
.front-atlas .code-line::before {
  width: 42px;
  padding-right: 12px;
  color: #a1a1aa;
  font-size: 11px;
}
.front-atlas .code-block-wrapper.is-single-line .code-header { min-height: 31px; }
.front-atlas .code-block-wrapper.is-single-line .prose-paper pre.code-body,
.front-atlas .prose-paper .code-block-wrapper.is-single-line pre.code-body { padding: 8px 0 !important; }
.front-atlas .code-block-wrapper.is-single-line .code-line { min-height: 1.5em; line-height: 1.5; }

/* Light syntax palette, intentionally overriding highlight.js theme. */
.front-atlas .hljs { background: transparent !important; color: #24292f !important; }
.front-atlas .hljs-comment,.front-atlas .hljs-quote { color: #6e7781 !important; }
.front-atlas .hljs-keyword,.front-atlas .hljs-selector-tag,.front-atlas .hljs-literal,.front-atlas .hljs-doctag { color: #cf222e !important; }
.front-atlas .hljs-string,.front-atlas .hljs-attr,.front-atlas .hljs-regexp { color: #0a3069 !important; }
.front-atlas .hljs-title,.front-atlas .hljs-function,.front-atlas .hljs-section,.front-atlas .hljs-title.function_ { color: #8250df !important; }
.front-atlas .hljs-number,.front-atlas .hljs-symbol,.front-atlas .hljs-variable,.front-atlas .hljs-template-variable { color: #0550ae !important; }
.front-atlas .hljs-built_in,.front-atlas .hljs-type { color: #953800 !important; }
.front-atlas .hljs-meta { color: #57606a !important; }

/* Dark mode keeps the same calm contrast rather than reverting to pure black. */
html.dark .front-atlas .code-block-wrapper { border-color: #3f3f46; background: #1f2937; }
html.dark .front-atlas .code-header { border-bottom-color: #3f3f46; background: #273244; }
html.dark .front-atlas .code-header::before { background: #71717a; box-shadow: 9px 0 #52525b,18px 0 #71717a; }
html.dark .front-atlas .code-language,
html.dark .front-atlas .copy-code,
html.dark .front-atlas .collapse-code { color: #a1a1aa; }
html.dark .front-atlas .copy-code:hover,
html.dark .front-atlas .collapse-code:hover,
html.dark .front-atlas .copy-code.is-copied { border-color: #52525b; background: #334155 !important; color: #f4f4f5; }
html.dark .front-atlas .prose-paper .code-block-wrapper pre.code-body { background: #1f2937 !important; color: #e4e4e7 !important; scrollbar-color: #52525b transparent; }
html.dark .front-atlas .code-body code,
html.dark .front-atlas .hljs { color: #e4e4e7 !important; }
html.dark .front-atlas .code-line::before { color: #71717a; }
html.dark .front-atlas .hljs-comment,html.dark .front-atlas .hljs-quote { color:#94a3b8!important; }
html.dark .front-atlas .hljs-keyword,html.dark .front-atlas .hljs-selector-tag,html.dark .front-atlas .hljs-literal { color:#fda4af!important; }
html.dark .front-atlas .hljs-string,html.dark .front-atlas .hljs-attr { color:#bfdbfe!important; }
html.dark .front-atlas .hljs-title,html.dark .front-atlas .hljs-function,html.dark .front-atlas .hljs-section { color:#ddd6fe!important; }
html.dark .front-atlas .hljs-number,html.dark .front-atlas .hljs-symbol { color:#93c5fd!important; }

.text-list-grid {
  grid-template-columns: 1fr;
  column-gap: 48px;
  row-gap: 4px;
}
.text-list-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-inline: -12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f4f4f5;
  border-radius: 8px;
  color: #27272a;
  transition: background .15s ease,border-color .15s ease,color .15s ease;
}
.text-list-item:hover {
  border-color: transparent;
  background: #fafafa;
  color: #09090b;
}
.text-list-title {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #27272a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  transition: color .15s ease;
}
.text-list-item:hover .text-list-title { color: #09090b; }
.text-list-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-list-pin {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 5px;
  border: 1px solid #e4e4e7;
  border-radius: 5px;
  background: #fafafa;
  color: #71717a;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}
.text-list-item time {
  flex: none;
  margin-left: 16px;
  color: #a1a1aa;
  font-family: "JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.text-list-dot { display: none !important; }
html.dark .text-list-item { border-bottom-color:#27272a; color:#d4d4d8; }
html.dark .text-list-item:hover { border-color:transparent; background:rgba(39,39,42,.62); color:#fafafa; }
html.dark .text-list-title { color:#d4d4d8; }
html.dark .text-list-item:hover .text-list-title { color:#fafafa; }
html.dark .text-list-pin { border-color:#3f3f46; background:#27272a; color:#a1a1aa; }
html.dark .text-list-item time { color:#71717a; }

@media (min-width: 768px) {
  .text-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 48px; row-gap: 4px; }
}
@media (max-width: 640px) {
  .text-list-item { margin-inline: -8px; padding-inline: 8px; }
  .text-list-item time { margin-left: 10px; font-size: 11px; }
}


/* 2026-08-26 — mobile two-column index + scroll-away header. */
.front-header {
  will-change: transform;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease;
}
@media (max-width: 760px) {
  .front-header.is-scroll-hidden {
    transform: translateY(calc(-100% - 1px));
  }
}

/* Homepage landscape cards: two covers per row on phones. Category portrait/text views keep their own layouts. */
@media (max-width: 640px) {
  .front-minimal .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .front-minimal .post-card {
    border-radius: 9px;
  }
  .front-minimal .post-card-media {
    min-width: 0;
  }
  .front-minimal .post-card:not(.is-no-cover) .post-card-media img {
    width: 100%;
    height: auto;
    display: block;
  }
  .front-minimal .post-card-body {
    padding: 9px 9px 10px;
  }
  .front-minimal .post-card-meta-row {
    display: block;
    margin-bottom: 6px;
  }
  .front-minimal .post-category {
    max-width: 100%;
    min-height: 20px;
    padding: 0 6px;
    font-size: 9px;
  }
  .front-minimal .post-card-meta {
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 8px;
  }
  .front-minimal .post-card-title {
    font-size: 12px;
    line-height: 1.4;
  }
  .front-minimal .post-card-excerpt {
    display: none;
  }
  .front-minimal .post-pin {
    top: 6px;
    left: 6px;
    padding: 4px 6px;
    font-size: 8px;
  }
}

/* Detail pages intentionally do not render the article's cover image. */
.reading-cover.reading-stage { display: none !important; }


/* 2026-08-26 nav/filter/poster visual refinement */
.front-nav a,
.front-mobile-nav a {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.front-nav .nav-icon,
.front-mobile-nav .nav-icon {
  width:14px;
  height:14px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.front-nav a { font-weight:500; }

/* Low-saturation segmented sorting; never invert to solid black. */
.compact-pill.is-active,
.unified-filter .compact-pill.is-active {
  background:var(--front-chip);
  color:var(--front-text);
  font-weight:650;
  box-shadow:none;
}
.unified-filter .compact-pill,
.unified-filter .filter-trigger {
  min-height:28px;
  padding:0 9px;
  border-radius:6px;
  font-size:11px;
  line-height:1;
}
.unified-filter .filter-trigger.is-selected {
  padding-left:10px;
  padding-right:10px;
  border-color:transparent;
  background:var(--front-chip);
  color:var(--front-text);
  font-weight:600;
  box-shadow:none;
}
.unified-filter .compact-filter-main { min-height:44px; }

/* Portrait mode is a clean poster flow: image + copy only, no card shell. */
.portrait-grid {
  gap:20px;
}
.poster-card {
  min-width:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.poster-media {
  border:0;
  border-radius:12px;
  box-shadow:none;
  background:var(--front-panel-soft);
}
.poster-media img {
  transform:scale(1.001);
  transition:transform .2s ease;
}
.poster-card:hover .poster-media img { transform:scale(1.05); }
.poster-copy { padding:8px 0 0; }
.poster-copy h2 {
  font-size:13px;
  font-weight:500;
  line-height:1.45;
}
.poster-meta {
  margin-top:3px;
  color:var(--front-muted);
  font-size:10px;
}

@media (min-width:640px) {
  .portrait-grid { gap:20px; }
}
@media (min-width:1024px) {
  .portrait-grid { gap:20px; }
}
@media (max-width:640px) {
  .front-mobile-nav a { gap:5px; }
  .front-mobile-nav .nav-icon { width:13px; height:13px; }
}

/* 2026-08-26 minimal sort indicator + single-column text card flow */
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill {
  position: relative;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 500;
  transition: color .15s ease;
}
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill:hover {
  background: transparent !important;
  color: #3f3f46;
}
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active {
  background: transparent !important;
  color: #18181b;
  font-weight: 650;
}
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: #18181b;
}
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill { color:#71717a; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill:hover { color:#d4d4d8; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active { color:#fafafa; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active::after { background:#fafafa; }

.text-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-card-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(228,228,231,.82);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.text-card-item:hover {
  border-color: #d4d4d8;
  box-shadow: 0 5px 18px -14px rgba(24,24,27,.38);
  background: #fff;
}
.text-card-main {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 16px;
}
.text-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 18px;
}
.text-card-category,
.text-card-tag,
.text-card-pin {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
}
.text-card-category {
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #047857;
}
.text-card-tag {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}
.text-card-pin {
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: #52525b;
}
.text-card-title {
  min-width: 0;
  margin: 7px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #18181b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.015em;
  transition: color .15s ease;
}
.text-card-item:hover .text-card-title { color:#09090b; }
.text-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
  color: #a1a1aa;
  font-family: "JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 11px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.text-card-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  color: #d4d4d8;
  transition: color .15s ease, transform .15s ease;
}
.text-card-item:hover .text-card-arrow {
  color: #71717a;
  transform: translateX(2px);
}
html.dark .text-card-item {
  border-color:#27272a;
  background:#18181b;
}
html.dark .text-card-item:hover {
  border-color:#3f3f46;
  background:#1c1c1f;
  box-shadow:none;
}
html.dark .text-card-category { border-color:#14532d; background:rgba(6,78,59,.26); color:#6ee7b7; }
html.dark .text-card-tag { border-color:#1e3a8a; background:rgba(30,58,138,.25); color:#93c5fd; }
html.dark .text-card-pin { border-color:#3f3f46; background:#27272a; color:#a1a1aa; }
html.dark .text-card-title { color:#f4f4f5; }
html.dark .text-card-item:hover .text-card-title { color:#fff; }
html.dark .text-card-meta { color:#71717a; }
html.dark .text-card-arrow { color:#52525b; }
html.dark .text-card-item:hover .text-card-arrow { color:#a1a1aa; }

@media (min-width:768px) {
  .text-card-item { padding: 18px 20px; }
  .text-card-title { font-size: 17px; }
}
@media (max-width:640px) {
  .text-card-list { gap: 9px; }
  .text-card-item { padding: 13px 14px; border-radius: 10px; }
  .text-card-main { padding-right: 10px; }
  .text-card-title { margin-top: 6px; font-size: 14px; }
  .text-card-meta { gap: 5px; margin-top: 6px; font-size: 9px; }
  .text-card-category,.text-card-tag,.text-card-pin { min-height: 18px; padding:0 5px; font-size:9px; }
  .text-card-arrow { width:14px; height:14px; }
}

/* 2026-08-26 sectioned magazine homepage */
.magazine-feed {
  display:flex;
  flex-direction:column;
  gap:34px;
}
.magazine-section {
  min-width:0;
}
.magazine-section + .magazine-section {
  padding-top:28px;
  border-top:1px solid rgba(228,228,231,.78);
}
.magazine-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:15px;
}
.magazine-section-title {
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
}
.magazine-section-icon {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:none;
  border:1px solid rgba(228,228,231,.9);
  border-radius:9px;
  background:#fafafa;
  color:#52525b;
}
.magazine-section-icon svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.magazine-section-title h2 {
  margin:0;
  color:#18181b;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.015em;
}
.magazine-section-title p {
  margin:2px 0 0;
  color:#a1a1aa;
  font-size:10px;
  line-height:1.4;
}
.magazine-more {
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:none;
  color:#71717a;
  font-size:11px;
  font-weight:500;
  text-decoration:none;
  transition:color .15s ease;
}
.magazine-more span { transition:transform .15s ease; }
.magazine-more:hover { color:#18181b; }
.magazine-more:hover span { transform:translateX(2px); }

.magazine-featured-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.magazine-post-card { min-width:0; }
.magazine-post-media {
  position:relative;
  display:block;
  overflow:hidden;
  aspect-ratio:16/9;
  border:1px solid rgba(228,228,231,.8);
  border-radius:11px;
  background:#f4f4f5;
}
.magazine-post-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}
.magazine-post-card:hover .magazine-post-media img { transform:scale(1.035); }
.magazine-placeholder {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(145deg,#fafafa,#f1f5f9);
  color:#a1a1aa;
  font-size:10px;
  letter-spacing:.16em;
}
.magazine-placeholder::before {
  content:"";
  position:absolute;
  inset:0;
  opacity:.45;
  background-image:linear-gradient(rgba(161,161,170,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(161,161,170,.12) 1px,transparent 1px);
  background-size:18px 18px;
}
.magazine-placeholder b { position:relative; z-index:1; font-weight:600; }
.magazine-pin {
  position:absolute;
  top:8px;
  right:8px;
  padding:3px 6px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:5px;
  background:rgba(24,24,27,.64);
  backdrop-filter:blur(8px);
  color:white;
  font-size:9px;
  font-weight:600;
}
.magazine-post-copy { padding:9px 1px 0; }
.magazine-post-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#a1a1aa;
  font-size:9px;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
}
.magazine-post-meta span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.magazine-post-meta time {
  flex:none;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
}
.magazine-post-copy h3 {
  margin:5px 0 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#18181b;
  font-size:13px;
  font-weight:650;
  line-height:1.45;
  letter-spacing:-.01em;
}
.magazine-post-copy h3 a { color:inherit; text-decoration:none; }

.magazine-poster-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.magazine-poster { min-width:0; }
.magazine-poster-media {
  position:relative;
  display:block;
  overflow:hidden;
  aspect-ratio:3/4;
  border-radius:11px;
  background:#f4f4f5;
}
.magazine-poster-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}
.magazine-poster:hover .magazine-poster-media img { transform:scale(1.05); }
.magazine-poster-copy { padding:7px 0 0; }
.magazine-poster-copy h3 {
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#18181b;
  font-size:11px;
  font-weight:600;
  line-height:1.45;
}
.magazine-poster-copy h3 a { color:inherit; text-decoration:none; }
.magazine-poster-copy>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  margin-top:3px;
  color:#a1a1aa;
  font-size:8px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-variant-numeric:tabular-nums;
}
.magazine-note-list {
  display:flex;
  flex-direction:column;
  gap:9px;
}
.magazine-note-card { padding:14px 16px; }
.magazine-note-card .text-card-title { font-size:14px; }
.magazine-note-card .text-card-meta { margin-top:5px; }

html.dark .magazine-section + .magazine-section { border-top-color:#27272a; }
html.dark .magazine-section-icon { border-color:#27272a; background:#18181b; color:#a1a1aa; }
html.dark .magazine-section-title h2,html.dark .magazine-post-copy h3,html.dark .magazine-poster-copy h3 { color:#f4f4f5; }
html.dark .magazine-post-media,html.dark .magazine-poster-media { border-color:#27272a; background:#18181b; }
html.dark .magazine-placeholder { background:linear-gradient(145deg,#18181b,#20242b); color:#71717a; }
html.dark .magazine-more:hover { color:#fafafa; }

@media (max-width:767px) {
  .magazine-feed { gap:28px; }
  .magazine-section + .magazine-section { padding-top:22px; }
  .magazine-section-head { margin-bottom:12px; }
  .magazine-section-title p { display:none; }
  .magazine-featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .magazine-featured-grid .magazine-post-card:nth-child(3) { display:none; }
  .magazine-post-copy h3 { font-size:12px; }
  .magazine-poster-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .magazine-poster-grid .magazine-poster:nth-child(n+7) { display:none; }
  .magazine-note-card { padding:12px 13px; }
}
@media (max-width:480px) {
  .magazine-poster-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .magazine-poster-grid .magazine-poster:nth-child(n+7) { display:none; }
}

/* 2026-08-26 compact text card items */
.text-card-list {
  gap: 10px;
}
.text-card-item {
  padding: 12px 16px;
  border-radius: 12px;
}
.text-card-main {
  min-width: 0;
  padding-right: 14px;
}
.text-card-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}
.text-card-heading .text-card-title {
  flex: 1 1 auto;
  min-width: 0;
}
.text-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.012em;
}
.text-card-meta {
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
}
.text-card-meta > span:not(.text-card-category) {
  flex: none;
}
.text-card-category {
  flex: none;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}
.text-card-pin {
  flex: none;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
}
.text-card-tag,
.text-card-badges {
  display: none !important;
}
.magazine-note-list {
  gap: 10px;
}
.magazine-note-card {
  padding: 12px 16px;
}
.magazine-note-card .text-card-title {
  margin: 0;
  font-size: 15px;
}
.magazine-note-card .text-card-meta {
  margin-top: 5px;
}
@media (min-width:768px) {
  .text-card-item,
  .magazine-note-card {
    padding: 14px 20px;
  }
  .text-card-title,
  .magazine-note-card .text-card-title {
    font-size: 15px;
  }
}
@media (max-width:640px) {
  .text-card-list,
  .magazine-note-list { gap: 8px; }
  .text-card-item,
  .magazine-note-card { padding: 11px 13px; }
  .text-card-main { padding-right: 8px; }
  .text-card-title,
  .magazine-note-card .text-card-title { font-size: 13px; }
  .text-card-meta { gap: 4px; margin-top: 4px; font-size: 8px; }
  .text-card-category,.text-card-pin { min-height:16px; padding:0 5px; font-size:8px; }
}

/* 2026-08-26 poster 4-col + neutral meta badges + code header cleanup */
/* Portrait collections: 2 columns on small screens, 4 from md upward. */
.portrait-grid,
.magazine-poster-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 640px) {
  .portrait-grid,
  .magazine-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 768px) {
  .portrait-grid,
  .magazine-poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .portrait-grid,
  .magazine-poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Text-card category badges: quiet neutral zinc instead of semantic green. */
.text-card-category,
html.dark .text-card-category {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  border: 1px solid rgba(212, 212, 216, .6);
  border-radius: 4px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}
html.dark .text-card-category {
  border-color: rgba(82, 82, 91, .72);
  background: #27272a;
  color: #a1a1aa;
}

/* Code headers: language + copy only; remove decorative traffic-light dots. */
.front-atlas .code-header {
  min-height: 34px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 212, 216, .6);
}
.front-atlas .code-header::before {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
}
.front-atlas .code-language {
  margin-right: auto;
  color: #a1a1aa;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.front-atlas .code-block-wrapper.is-single-line .code-header {
  min-height: 32px;
  padding-top: 7px;
  padding-bottom: 7px;
}
html.dark .front-atlas .code-header::before {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
}


/* 2026-08-26 — landscape grid: open, borderless article flow. */
.post-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.post-card,
.front-minimal .post-card {
  min-width:0;
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.post-card:hover,
.front-minimal .post-card:hover {
  border:0!important;
  box-shadow:none!important;
  transform:none!important;
}
.post-card-media,
.post-card:not(.is-no-cover) .post-card-media,
.front-minimal .post-card-media {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9!important;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--front-line) 78%,transparent)!important;
  border-radius:12px!important;
  background:var(--front-panel-soft)!important;
}
.post-card:not(.is-no-cover) .post-card-media img,
.front-minimal .post-card:not(.is-no-cover) .post-card-media img {
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
  transform:scale(1.001);
  transition:transform .3s ease-out;
}
.post-card:hover .post-card-media img { transform:scale(1.05); }
.post-card-body,
.front-minimal .post-card-body { padding:11px 0 0!important; }
.post-card-meta-row,
.front-minimal .post-card-meta-row {
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 6px!important;
}
.post-card-meta-row .post-category,
.front-minimal .post-category {
  min-height:0!important;
  max-width:42%!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--front-muted)!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.4!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-card:hover .post-category { color:var(--front-text)!important; }
.post-card-meta,
.front-minimal .post-card-meta {
  display:flex;
  align-items:center;
  gap:5px;
  margin:0!important;
  color:var(--front-muted);
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:10px!important;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.post-card-title,
.front-minimal .post-card-title {
  margin:0;
  color:var(--front-text);
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.38!important;
  letter-spacing:-.02em;
}
.post-card-title a,
.front-minimal .post-card-title a {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-card-excerpt,
.front-minimal .post-card-excerpt { display:none!important; }

/* Homepage featured landscape floor uses the same open-flow language. */
.magazine-featured-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.magazine-post-card { min-width:0; background:transparent; border:0; box-shadow:none; }
.magazine-post-media {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border:1px solid rgba(228,228,231,.78);
  border-radius:12px;
  background:#f4f4f5;
}
.magazine-post-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.001);
  transition:transform .3s ease-out;
}
.magazine-post-card:hover .magazine-post-media img { transform:scale(1.05); }
.magazine-post-copy { padding:11px 0 0; }
.magazine-post-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#a1a1aa;
  font-size:11px;
  line-height:1.4;
}
.magazine-post-meta > span:first-child {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:500;
}
.magazine-post-stats {
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-variant-numeric:tabular-nums;
}
.magazine-post-stats i { font-style:normal; opacity:.7; }
.magazine-post-copy h3 {
  margin:6px 0 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#18181b;
  font-size:15px;
  font-weight:700;
  line-height:1.38;
  letter-spacing:-.02em;
}

@media (max-width:1023px) {
  .post-grid, .magazine-featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 18px; }
}
@media (max-width:767px) {
  .post-grid, .front-minimal .post-grid, .magazine-featured-grid { grid-template-columns:1fr!important; gap:22px!important; }
  .magazine-featured-grid .magazine-post-card:nth-child(3) { display:block!important; }
  .post-card-body, .front-minimal .post-card-body, .magazine-post-copy { padding-top:10px!important; }
  .post-card-meta, .front-minimal .post-card-meta, .magazine-post-meta { font-size:10px!important; }
  .post-card-title, .front-minimal .post-card-title, .magazine-post-copy h3 { font-size:14px!important; }
}

html.dark .magazine-post-media { border-color:#3f3f46; background:#18181b; }

/* 2026-08-26 — Dark mode elevation system (GitHub Dark / Linear / Vercel inspired). */
html.dark {
  --front-bg:#09090b;
  --front-canvas:#09090b;
  --front-panel:#121215;
  --front-panel-soft:#18181b;
  --front-text:#e4e4e7;
  --front-muted:#a1a1aa;
  --front-line:#27272a;
  --front-line-strong:#3f3f46;
  --front-chip:#202024;
  --front-accent:#d4d4d8;
  --front-accent-soft:#1c1c20;
  --front-sheet-shadow:0 12px 34px -14px rgba(0,0,0,.58);
  color-scheme:dark;
}
html.dark,
html.dark body.front-atlas {
  background:#09090b!important;
  color:#d4d4d8;
}

/* Navigation: translucent viewport layer rather than another black slab. */
html.dark .front-header {
  background:rgba(9,9,11,.82)!important;
  border-bottom-color:rgba(63,63,70,.72)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.018);
  backdrop-filter:blur(18px) saturate(125%);
}
html.dark .front-brand-mark {
  border:1px solid #3f3f46;
  background:#27272a;
  color:#e4e4e7;
}
html.dark .front-brand-copy strong,
html.dark .front-nav a.is-active,
html.dark .front-nav a:hover,
html.dark .front-mobile-nav a.is-active,
html.dark .front-mobile-nav a:hover { color:#e4e4e7; }
html.dark .front-brand-copy small,
html.dark .front-nav a,
html.dark .front-mobile-nav a { color:#a1a1aa; }
html.dark .front-nav a:hover,
html.dark .front-nav a.is-active,
html.dark .front-mobile-nav a:hover,
html.dark .front-mobile-nav a.is-active { background:rgba(39,39,42,.72); }
html.dark .front-icon-btn {
  border-color:#27272a;
  background:#121215;
  color:#a1a1aa;
  box-shadow:none;
}
html.dark .front-icon-btn:hover {
  border-color:#52525b;
  background:#18181b;
  color:#d4d4d8;
}
html.dark .front-search {
  border-color:#27272a;
  background:#121215;
}
html.dark .front-search input { color:#d4d4d8; }
html.dark .front-search input::placeholder { color:#71717a; }

/* Main floating sheet: one step brighter than the viewport. */
html.dark .front-canvas-panel,
html.dark .reading-single-canvas {
  background:#121215!important;
  border-color:rgba(63,63,70,.78)!important;
  box-shadow:0 12px 34px -14px rgba(0,0,0,.58)!important;
}
html.dark .front-list-shell .compact-filter,
html.dark .compact-filter,
html.dark .unified-filter {
  border-color:#27272a;
  background:#151518!important;
  box-shadow:none;
}
html.dark .compact-filter-group { border-right-color:#27272a; }
html.dark .compact-filter-label,
html.dark .compact-filter-count,
html.dark .compact-filter-menu>summary span { color:#71717a; }
html.dark .compact-pill,
html.dark .compact-filter-menu>summary,
html.dark .compact-clear { color:#a1a1aa; }
html.dark .compact-pill:hover,
html.dark .compact-filter-menu>summary:hover,
html.dark .compact-clear:hover,
html.dark .compact-filter-menu[open]>summary,
html.dark .compact-option:hover,
html.dark .compact-option.is-active {
  background:#202024;
  color:#d4d4d8;
}
html.dark .compact-filter-popover {
  border-color:#3f3f46;
  background:#18181b;
  box-shadow:0 18px 44px rgba(0,0,0,.42);
}
html.dark .compact-option { color:#a1a1aa; }
html.dark .compact-option small { color:#71717a; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill { color:#71717a; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill:hover { color:#a1a1aa; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active { color:#e4e4e7; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active::after { background:#d4d4d8; }

/* Typography hierarchy: never use pure white as the default reading color. */
html.dark .front-list-head h1,
html.dark .public-head h1,
html.dark .reading-title,
html.dark .reading-head-single .reading-title,
html.dark .magazine-section-title h2,
html.dark .magazine-post-copy h3,
html.dark .magazine-poster-copy h3,
html.dark .post-card-title,
html.dark .poster-copy h2,
html.dark .text-card-title,
html.dark .taxonomy-tile strong,
html.dark .archive-item strong,
html.dark .reading-related-head h2,
html.dark .reading-related-copy strong { color:#e4e4e7!important; }
html.dark .front-atlas .reading-content.prose-paper,
html.dark .front-atlas .prose-paper p,
html.dark .front-atlas .prose-paper li,
html.dark .front-atlas .prose-paper td { color:#d4d4d8; }
html.dark .front-atlas .prose-paper h1,
html.dark .front-atlas .prose-paper h2,
html.dark .front-atlas .prose-paper h3,
html.dark .front-atlas .prose-paper h4,
html.dark .front-atlas .prose-paper strong { color:#e4e4e7; }
html.dark .front-atlas .prose-paper a { color:#d4d4d8; text-decoration-color:#52525b; }
html.dark .front-atlas .prose-paper a:hover { color:#e4e4e7; text-decoration-color:#a1a1aa; }
html.dark .front-list-head p,
html.dark .public-head p,
html.dark .reading-meta,
html.dark .post-card-meta,
html.dark .magazine-post-meta,
html.dark .poster-meta,
html.dark .text-card-meta,
html.dark .taxonomy-tile small,
html.dark .archive-item time,
html.dark .front-count,
html.dark .front-page-count,
html.dark .reading-related-copy time { color:#a1a1aa!important; }

/* Internal cards: low elevation by default, one subtle step on hover. */
html.dark .taxonomy-tile,
html.dark .reading-related-card,
html.dark .text-card-item,
html.dark .reading-panel {
  border-color:#27272a!important;
  background:rgba(24,24,27,.46)!important;
  box-shadow:none!important;
}
html.dark .taxonomy-tile:hover,
html.dark .reading-related-card:hover,
html.dark .text-card-item:hover,
html.dark .reading-panel:hover {
  border-color:#3f3f46!important;
  background:rgba(39,39,42,.52)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.12)!important;
}
html.dark .text-card-item:hover .text-card-title { color:#e4e4e7!important; }
html.dark .text-card-arrow { color:#52525b; }
html.dark .text-card-item:hover .text-card-arrow { color:#a1a1aa; }
html.dark .text-card-category,
html.dark .text-card-pin {
  border-color:rgba(82,82,91,.72)!important;
  background:#27272a!important;
  color:#a1a1aa!important;
}
html.dark .text-card-tag {
  border-color:#3f3f46!important;
  background:#202024!important;
  color:#a1a1aa!important;
}

/* Image surfaces retain just enough edge definition against the raised canvas. */
html.dark .post-card-media,
html.dark .post-card:not(.is-no-cover) .post-card-media,
html.dark .front-minimal .post-card-media,
html.dark .magazine-post-media,
html.dark .magazine-poster-media,
html.dark .poster-media,
html.dark .reading-related-media {
  border-color:rgba(63,63,70,.78)!important;
  background:#18181b!important;
}
html.dark .post-card-placeholder,
html.dark .magazine-placeholder,
html.dark .reading-related-media.is-placeholder {
  background-color:#18181b!important;
  color:#71717a!important;
}
html.dark .post-card-placeholder::after { opacity:.45; }

/* Detail page separators and controls. */
html.dark .reading-head,
html.dark .reading-actions,
html.dark .reading-related { border-color:#27272a; }
html.dark .reading-pill,
html.dark .reading-action {
  border-color:#3f3f46;
  background:#151518;
  color:#a1a1aa;
}
html.dark .reading-pill:hover,
html.dark .reading-action:hover {
  border-color:#52525b;
  background:#202024;
  color:#d4d4d8;
}
html.dark .paper-audio-player,
html.dark .paper-video-shell {
  border-color:#27272a!important;
  background:#151518!important;
}

/* Code blocks: soft graphite instead of black or high-contrast navy. */
html.dark .front-atlas .code-block-wrapper {
  border-color:#3f3f46!important;
  background:#17171a!important;
}
html.dark .front-atlas .code-header {
  border-bottom-color:#303036!important;
  background:#1b1b1f!important;
}
html.dark .front-atlas .code-language,
html.dark .front-atlas .copy-code,
html.dark .front-atlas .collapse-code { color:#8b8b95!important; }
html.dark .front-atlas .copy-code:hover,
html.dark .front-atlas .collapse-code:hover,
html.dark .front-atlas .copy-code.is-copied {
  border-color:#52525b!important;
  background:#27272a!important;
  color:#d4d4d8!important;
}
html.dark .front-atlas .prose-paper .code-block-wrapper pre.code-body {
  background:#17171a!important;
  color:#d4d4d8!important;
  scrollbar-color:#52525b transparent;
}
html.dark .front-atlas .code-body code,
html.dark .front-atlas .hljs { color:#d4d4d8!important; }
html.dark .front-atlas .code-line::before { color:#71717a!important; }

/* Footer / floating utility surfaces use the same elevation scale. */
html.dark .front-footer {
  border-top-color:#27272a;
  background:#09090b;
}
html.dark .front-footer-inner { color:#71717a; }
html.dark .front-footer strong { color:#a1a1aa; }
html.dark .front-fab a,
html.dark .front-fab button {
  border-color:#3f3f46;
  background:#18181b;
  color:#a1a1aa;
  box-shadow:0 8px 20px rgba(0,0,0,.28);
}
html.dark .front-fab a:hover,
html.dark .front-fab button:hover { color:#d4d4d8; border-color:#52525b; }

/* Empty states / dividers. */
html.dark .magazine-section + .magazine-section,
html.dark .public-head,
html.dark .archive-item,
html.dark .reading-related-media { border-color:#27272a; }
html.dark .post-empty { border-color:#3f3f46; color:#71717a; }

/* 2026-08-26 — landscape grid density pass: larger 16:10 covers, tighter canvas. */
.front-list-shell.front-canvas-panel,
.public-shell.category-list-shell.front-canvas-panel {
  padding-left:24px;
  padding-right:24px;
}
.post-grid,
.magazine-featured-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px 20px;
}
.post-card-media,
.post-card:not(.is-no-cover) .post-card-media,
.front-minimal .post-card-media,
.magazine-post-media {
  aspect-ratio:16 / 10!important;
  border-radius:12px!important;
}
.post-card:not(.is-no-cover) .post-card-media img,
.front-minimal .post-card:not(.is-no-cover) .post-card-media img,
.magazine-post-media img {
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
}
.post-card-placeholder {
  align-items:center;
  justify-content:center;
  padding:0;
}
.post-card-placeholder i { display:none; }
.post-card-placeholder b {
  margin:0;
  font-size:10px;
  letter-spacing:.18em;
}
.post-card-body,
.front-minimal .post-card-body,
.magazine-post-copy {
  padding-top:10px!important;
}
.post-card-meta-row,
.front-minimal .post-card-meta-row {
  margin-bottom:4px!important;
}
.magazine-post-copy h3 { margin-top:4px; }
.post-card-title,
.front-minimal .post-card-title,
.magazine-post-copy h3 {
  font-size:16px!important;
  line-height:1.35!important;
}
.post-card-meta-row .post-category,
.front-minimal .post-category,
.magazine-post-meta {
  font-size:11px!important;
}
.post-card-meta,
.front-minimal .post-card-meta,
.magazine-post-stats {
  font-size:10px!important;
}
@media (max-width:1023px) {
  .post-grid,
  .magazine-featured-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 20px;
  }
}
@media (max-width:767px) {
  .front-list-shell.front-canvas-panel,
  .public-shell.category-list-shell.front-canvas-panel {
    padding-left:16px;
    padding-right:16px;
  }
  .post-grid,
  .front-minimal .post-grid,
  .magazine-featured-grid {
    grid-template-columns:1fr!important;
    gap:20px!important;
  }
  .post-card-title,
  .front-minimal .post-card-title,
  .magazine-post-copy h3 {
    font-size:15px!important;
  }
}

/* 2026-08-26 — global typography + minimal sort + locked 3-col landscape grid. */
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill {
  position:relative;
  min-height:30px;
  padding:0 2px 1px;
  margin:0 7px;
  border-radius:0;
  background:transparent!important;
  color:#a1a1aa!important;
  font-size:12px!important;
  font-weight:400!important;
  box-shadow:none!important;
}
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill:hover {
  background:transparent!important;
  color:#3f3f46!important;
}
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active {
  background:transparent!important;
  color:#3f3f46!important;
  font-weight:500!important;
}
.unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active::after {
  content:"";
  position:absolute;
  left:1px;
  right:1px;
  bottom:0;
  height:2px;
  border-radius:999px;
  background:#27272a;
}
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill { color:#71717a!important; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill:hover { color:#a1a1aa!important; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active { color:#a1a1aa!important; }
html.dark .unified-filter .compact-filter-group[aria-label="排序"] .compact-pill.is-active::after { background:#a1a1aa!important; }

/* Landscape: one column on phones, exactly three equal columns from md upward. */
.post-grid,
.magazine-featured-grid {
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
}
.post-card,
.magazine-post-card { width:100%; min-width:0; }
.post-card-media,
.post-card:not(.is-no-cover) .post-card-media,
.front-minimal .post-card-media,
.magazine-post-media {
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:16 / 10!important;
  overflow:hidden!important;
  border:1px solid rgba(228,228,231,.72)!important;
  border-radius:12px!important;
  background:#fafafa!important;
  contain:paint;
}
.post-card-media img,
.post-card:not(.is-no-cover) .post-card-media img,
.front-minimal .post-card-media img,
.magazine-post-media img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
.post-card-placeholder,
.magazine-placeholder { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; }

/* Softer title hierarchy across public pages. */
.post-card-title,
.front-minimal .post-card-title,
.magazine-post-copy h3,
.poster-copy h2,
.magazine-poster-copy h3,
.text-card-title {
  color:#27272a!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.38!important;
  letter-spacing:-.015em!important;
}
.post-card-title a:hover,
.magazine-post-copy h3 a:hover,
.poster-copy h2 a:hover,
.magazine-poster-copy h3 a:hover,
.text-card-item:hover .text-card-title { color:#09090b!important; }
.magazine-section-title h2,
.public-head h1,
.catalog-heading h2 {
  color:#27272a!important;
  font-size:16px!important;
  font-weight:600!important;
}
.reading-title,
.reading-head-single .reading-title {
  color:#27272a!important;
  font-size:clamp(24px,3vw,30px)!important;
  font-weight:600!important;
  line-height:1.28!important;
  letter-spacing:-.025em!important;
}
.post-card-meta,
.post-card-meta-row .post-category,
.magazine-post-meta,
.magazine-post-stats,
.poster-meta,
.text-card-meta,
.magazine-section-title p {
  color:#a1a1aa!important;
  font-weight:400!important;
}
html.dark .post-card-title,
html.dark .front-minimal .post-card-title,
html.dark .magazine-post-copy h3,
html.dark .poster-copy h2,
html.dark .magazine-poster-copy h3,
html.dark .text-card-title,
html.dark .magazine-section-title h2,
html.dark .public-head h1,
html.dark .catalog-heading h2,
html.dark .reading-title,
html.dark .reading-head-single .reading-title { color:#d4d4d8!important; }
html.dark .post-card-title a:hover,
html.dark .magazine-post-copy h3 a:hover,
html.dark .poster-copy h2 a:hover,
html.dark .magazine-poster-copy h3 a:hover,
html.dark .text-card-item:hover .text-card-title { color:#e4e4e7!important; }
html.dark .post-card-media,
html.dark .post-card:not(.is-no-cover) .post-card-media,
html.dark .front-minimal .post-card-media,
html.dark .magazine-post-media { border-color:rgba(63,63,70,.8)!important; background:#18181b!important; }

@media (max-width:767px) {
  .post-grid,
  .front-minimal .post-grid,
  .magazine-featured-grid {
    grid-template-columns:1fr!important;
    gap:22px!important;
  }
  .reading-title,
  .reading-head-single .reading-title { font-size:24px!important; }
}

/* Complete the public heading hierarchy without touching body emphasis. */
.taxonomy-tile strong,
.archive-item strong {
  color:#3f3f46!important;
  font-weight:600!important;
}
.front-atlas .prose-paper h1,
.front-atlas .prose-paper h2,
.front-atlas .prose-paper h3,
.front-atlas .prose-paper h4 {
  color:#3f3f46!important;
  font-weight:600!important;
}
html.dark .taxonomy-tile strong,
html.dark .archive-item strong,
html.dark .front-atlas .prose-paper h1,
html.dark .front-atlas .prose-paper h2,
html.dark .front-atlas .prose-paper h3,
html.dark .front-atlas .prose-paper h4 { color:#d4d4d8!important; }


/* 2026-08-26 — landscape hard fix: full-width equal thirds + softer titles. */
.post-grid,
.front-minimal .post-grid,
.magazine-featured-grid {
  width:100%!important;
  max-width:none!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
  margin-left:0!important;
  margin-right:0!important;
}
.post-card,
.front-minimal .post-card,
.magazine-post-card {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  margin:0!important;
  padding:0!important;
}
.post-card-media,
.post-card:not(.is-no-cover) .post-card-media,
.front-minimal .post-card-media,
.magazine-post-media {
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:none!important;
  aspect-ratio:16 / 10!important;
  overflow:hidden!important;
  flex:none!important;
  border:1px solid rgba(228,228,231,.60)!important;
  border-radius:12px!important;
  background:#fafafa!important;
}
.post-card-media img,
.post-card:not(.is-no-cover) .post-card-media img,
.front-minimal .post-card-media img,
.magazine-post-media img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
.post-card-body,
.front-minimal .post-card-body,
.magazine-post-copy {
  margin-top:10px!important;
  padding:0!important;
}
.post-card-meta-row,
.front-minimal .post-card-meta-row,
.magazine-post-meta {
  margin:0 0 4px!important;
}
.post-card-title,
.front-minimal .post-card-title,
.magazine-post-copy h3 {
  margin:0!important;
  color:#3f3f46!important;
  font-size:15px!important;
  font-weight:500!important;
  line-height:1.375!important;
  letter-spacing:-.01em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.post-card-title a,
.front-minimal .post-card-title a,
.magazine-post-copy h3 a { color:inherit!important; font-weight:500!important; }
.post-card-title a:hover,
.front-minimal .post-card-title a:hover,
.magazine-post-copy h3 a:hover { color:#18181b!important; }
.post-card-meta,
.front-minimal .post-card-meta,
.magazine-post-meta,
.magazine-post-stats {
  color:#a1a1aa!important;
  font-size:12px!important;
  font-weight:400!important;
  font-variant-numeric:tabular-nums!important;
}
.post-card-meta,
.magazine-post-stats { font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace!important; }
html.dark .post-card-title,
html.dark .front-minimal .post-card-title,
html.dark .magazine-post-copy h3 { color:#d4d4d8!important; }
html.dark .post-card-title a:hover,
html.dark .front-minimal .post-card-title a:hover,
html.dark .magazine-post-copy h3 a:hover { color:#e4e4e7!important; }
html.dark .post-card-media,
html.dark .post-card:not(.is-no-cover) .post-card-media,
html.dark .front-minimal .post-card-media,
html.dark .magazine-post-media { border-color:rgba(63,63,70,.72)!important; background:#18181b!important; }
@media (max-width:767px) {
  .post-grid,
  .front-minimal .post-grid,
  .magazine-featured-grid { grid-template-columns:1fr!important; gap:24px!important; }
  .post-card-title,
  .front-minimal .post-card-title,
  .magazine-post-copy h3 { font-size:14px!important; }
}

/* 2026-08-26 — single-row responsive top navigation. */
.front-search-trigger {
  flex:0 0 auto;
  width:18px;
  height:18px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--front-muted);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.front-search-trigger svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.front-search-trigger:hover { color:var(--front-text); }

@media (max-width: 767px) {
  .front-header > .front-wrap {
    width:100%!important;
    max-width:none!important;
    padding-inline:10px!important;
  }
  .front-header-inner {
    position:relative;
    width:100%;
    min-height:52px!important;
    height:52px!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
  }
  .front-brand {
    flex:0 0 auto!important;
    gap:0!important;
  }
  .front-brand-mark {
    width:32px!important;
    height:32px!important;
    border-radius:8px!important;
    font-size:11px!important;
  }
  .front-brand-copy { display:none!important; }

  /* Reuse the desktop nav as the only mobile nav so the header never becomes two rows. */
  .front-nav {
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;
    align-items:center!important;
    gap:1px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch;
    padding-block:1px!important;
  }
  .front-nav::-webkit-scrollbar { display:none!important; }
  .front-nav a {
    flex:0 0 auto!important;
    min-height:28px!important;
    padding:5px 6px!important;
    border-radius:6px!important;
    gap:3px!important;
    font-size:10.5px!important;
    line-height:1!important;
    font-weight:500!important;
    white-space:nowrap!important;
  }
  .front-nav .nav-icon {
    width:12px!important;
    height:12px!important;
    flex:0 0 12px!important;
  }
  .front-mobile-nav { display:none!important; }

  .front-header-actions {
    position:relative;
    z-index:3;
    flex:0 0 auto!important;
    margin-left:0!important;
    gap:4px!important;
  }
  .front-icon-btn {
    width:32px!important;
    height:32px!important;
    border-radius:8px!important;
    flex:0 0 32px!important;
  }
  .front-back-btn { display:none!important; }

  /* Mobile search is icon-only until focused, then expands over the nav without increasing header height. */
  .front-search {
    display:flex!important;
    width:32px!important;
    height:32px!important;
    padding:0!important;
    gap:0!important;
    justify-content:center!important;
    border-radius:8px!important;
    overflow:hidden!important;
    transition:width .18s ease, padding .18s ease, box-shadow .18s ease!important;
  }
  .front-search-trigger {
    width:32px!important;
    height:32px!important;
    flex:0 0 32px!important;
  }
  .front-search-trigger svg { width:14px!important; height:14px!important; }
  .front-search input {
    display:block!important;
    width:0!important;
    min-width:0!important;
    padding:0!important;
    opacity:0!important;
    pointer-events:none!important;
    font-size:11px!important;
    transition:width .18s ease, opacity .15s ease!important;
  }
  .front-search:focus-within {
    position:absolute!important;
    right:36px!important;
    top:0!important;
    width:min(230px, calc(100vw - 92px))!important;
    padding-right:8px!important;
    justify-content:flex-start!important;
    background:var(--front-panel)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.10)!important;
  }
  .front-search:focus-within input {
    width:100%!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

@media (max-width: 390px) {
  .front-header > .front-wrap { padding-inline:7px!important; }
  .front-header-inner { gap:4px!important; }
  .front-nav a { padding-inline:5px!important; font-size:10px!important; }
  .front-nav .nav-icon { width:11px!important; height:11px!important; flex-basis:11px!important; }
  .front-icon-btn,.front-search,.front-search-trigger { width:30px!important; height:30px!important; }
}

html.dark .front-search:focus-within {
  background:#121215!important;
  box-shadow:0 10px 26px rgba(0,0,0,.32)!important;
}

/* =========================================================
   2026-08-26 — prose surfaces + media player theme harmonization
   Quote / callout / table / audio player + softer dark dividers
   ========================================================= */

/* Keep prose surfaces on the same neutral system as the front canvas. */
.front-atlas .prose-paper blockquote {
  margin: 1.45rem 0;
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid #94a3b8;
  border-radius: 10px;
  background: #f6f8fa;
  box-shadow: none;
  color: #52525b;
  font-family: inherit;
  font-style: normal;
}
.front-atlas .prose-paper blockquote > :first-child { margin-top: 0; }
.front-atlas .prose-paper blockquote > :last-child { margin-bottom: 0; }

/* Semantic notes: retain meaning, but lower saturation and remove the old candy colors. */
.front-atlas .prose-paper .paper-callout {
  --callout-bg: #f6f7f8;
  --callout-accent: #a1a1aa;
  display: block;
  margin: 1.35rem 0;
  padding: 15px 18px 15px 20px;
  border: 0 !important;
  border-left: 4px solid var(--callout-accent) !important;
  border-radius: 9px;
  background: var(--callout-bg) !important;
  box-shadow: none !important;
  color: #52525b;
  filter: none !important;
}
.front-atlas .prose-paper .paper-callout .callout-icon { display: none !important; }
.front-atlas .prose-paper .paper-callout .callout-body { font-size: .94rem; line-height: 1.72; }
.front-atlas .prose-paper .paper-callout .callout-title,
.front-atlas .prose-paper details.paper-callout > summary {
  color: #52525b !important;
  font-weight: 600;
}
.front-atlas .prose-paper .callout-default { --callout-bg:#f6f7f8; --callout-accent:#a1a1aa; }
.front-atlas .prose-paper .callout-primary { --callout-bg:#f7f6fa; --callout-accent:#9186ab; }
.front-atlas .prose-paper .callout-info { --callout-bg:#f3f6f9; --callout-accent:#7489a6; }
.front-atlas .prose-paper .callout-success { --callout-bg:#f2f7f4; --callout-accent:#72917d; }
.front-atlas .prose-paper .callout-warning { --callout-bg:#faf7f2; --callout-accent:#ad865d; }
.front-atlas .prose-paper .callout-danger { --callout-bg:#faf4f4; --callout-accent:#ad7477; }
.front-atlas .prose-paper details.paper-callout { padding: 0; overflow: hidden; }
.front-atlas .prose-paper details.paper-callout > summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) 20px;
  gap: 8px;
  align-items: center;
  padding: 15px 18px 15px 20px;
}
.front-atlas .prose-paper details.paper-callout > .callout-body { padding: 0 18px 15px 20px; }
.front-atlas .prose-paper details.paper-callout .callout-chevron { color: var(--callout-accent); }

/* Tables: neutral zinc surface, low-contrast grid, no parchment tint. */
.front-atlas .prose-paper table {
  width: 100%;
  margin: 1.55rem 0;
  border: 1px solid #e4e4e7 !important;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  color: #52525b;
  box-shadow: none;
}
.front-atlas .prose-paper th,
.front-atlas .prose-paper td {
  padding: 9px 11px;
  border: 0 !important;
  border-right: 1px solid #ececf0 !important;
  border-bottom: 1px solid #ececf0 !important;
  background: transparent;
  color: #52525b;
  font-size: .9em;
}
.front-atlas .prose-paper th {
  background: #f7f7f8 !important;
  color: #3f3f46;
  font-weight: 600;
}
.front-atlas .prose-paper tr:last-child > th,
.front-atlas .prose-paper tr:last-child > td { border-bottom: 0 !important; }
.front-atlas .prose-paper th:last-child,
.front-atlas .prose-paper td:last-child { border-right: 0 !important; }
.front-atlas .prose-paper tbody tr:hover td { background: #fafafa; }

/* Horizontal rules use the same quiet separator token as the rest of the site. */
.front-atlas .prose-paper hr {
  height: 1px;
  margin: 1.9rem 0;
  border: 0 !important;
  background: #ececf0;
}

/* Audio player: remove the old warm paper palette and align it with the zinc canvas. */
.front-atlas .paper-audio-player {
  margin: 4px 0 24px;
  border: 1px solid #e4e4e7 !important;
  border-radius: 12px;
  background: #fafafa !important;
  box-shadow: 0 8px 24px rgba(24,24,27,.045) !important;
  color: #52525b;
}
.front-atlas .paper-audio-cover {
  background: linear-gradient(145deg,#e7e7ea,#d6d6da) !important;
  box-shadow: none !important;
}
.front-atlas .paper-audio-cover-fallback { color: #71717a !important; }
.front-atlas .paper-audio-cover i {
  background: rgba(39,39,42,.66) !important;
  border-color: rgba(255,255,255,.55) !important;
  color: #f4f4f5 !important;
}
.front-atlas .paper-audio-player.is-playing .paper-audio-cover i { background: rgba(63,79,70,.78) !important; }
.front-atlas .paper-audio-title-line strong { color: #3f3f46 !important; font-family: Inter,ui-sans-serif,sans-serif !important; font-weight: 600 !important; }
.front-atlas .paper-audio-title-line span,
.front-atlas .paper-audio-time,
.front-atlas .paper-audio-index,
.front-atlas .paper-audio-track-artist,
.front-atlas .paper-audio-credits { color: #a1a1aa !important; }
.front-atlas .paper-audio-progress { background: #e4e4e7 !important; }
.front-atlas .paper-audio-progress::-webkit-slider-thumb {
  background: #71717a !important;
  border-color: #fafafa !important;
  box-shadow: 0 0 0 1px #d4d4d8 !important;
}
.front-atlas .paper-audio-progress::-moz-range-thumb { background: #71717a !important; border-color: #fafafa !important; }
.front-atlas .paper-audio-icon { color: #71717a !important; }
.front-atlas .paper-audio-icon:hover { background: #f0f0f2 !important; color: #3f3f46 !important; }
.front-atlas .paper-audio-playlist { border-top-color: #e8e8eb !important; }
.front-atlas .paper-audio-track {
  border-bottom-color: #ededf0 !important;
  color: #52525b !important;
}
.front-atlas .paper-audio-track:hover { background: #f5f5f6 !important; }
.front-atlas .paper-audio-track.is-active { background: #f0f4f2 !important; color: #50695d !important; }
.front-atlas .paper-audio-track.is-active::before { background: #718d7e !important; }

/* Dark mode: graphite elevation, restrained semantic accents, softer separators. */
html.dark .front-atlas {
  --front-line: #1f2126;
  --front-line-strong: #292c33;
}
html.dark .front-atlas .prose-paper blockquote {
  border-left-color: #596879;
  background: #171b20;
  color: #b7bec8;
}
html.dark .front-atlas .prose-paper .paper-callout {
  color: #b9bbc2;
  background: var(--callout-bg) !important;
}
html.dark .front-atlas .prose-paper .paper-callout .callout-title,
html.dark .front-atlas .prose-paper details.paper-callout > summary { color: #c7c8ce !important; }
html.dark .front-atlas .prose-paper .callout-default { --callout-bg:#18191c; --callout-accent:#666872; }
html.dark .front-atlas .prose-paper .callout-primary { --callout-bg:#1c1a20; --callout-accent:#746b89; }
html.dark .front-atlas .prose-paper .callout-info { --callout-bg:#181c22; --callout-accent:#647791; }
html.dark .front-atlas .prose-paper .callout-success { --callout-bg:#181e1b; --callout-accent:#647d6d; }
html.dark .front-atlas .prose-paper .callout-warning { --callout-bg:#201d19; --callout-accent:#94765a; }
html.dark .front-atlas .prose-paper .callout-danger { --callout-bg:#211a1b; --callout-accent:#906467; }

html.dark .front-atlas .prose-paper table {
  border-color: #24262b !important;
  background: #141519;
  color: #b4b6bd;
}
html.dark .front-atlas .prose-paper th,
html.dark .front-atlas .prose-paper td {
  border-right-color: #22242a !important;
  border-bottom-color: #22242a !important;
  color: #b4b6bd !important;
}
html.dark .front-atlas .prose-paper th {
  background: #191a1f !important;
  color: #c7c8ce !important;
}
html.dark .front-atlas .prose-paper tbody tr:hover td { background: #18191d; }
html.dark .front-atlas .prose-paper hr { background: #202228; }

html.dark .front-atlas .paper-audio-player {
  border-color: #24262b !important;
  background: #16171a !important;
  box-shadow: none !important;
}
html.dark .front-atlas .paper-audio-cover { background: linear-gradient(145deg,#282a2f,#202126) !important; }
html.dark .front-atlas .paper-audio-cover-fallback { color: #8b8d96 !important; }
html.dark .front-atlas .paper-audio-title-line strong { color: #d4d4d8 !important; }
html.dark .front-atlas .paper-audio-title-line span,
html.dark .front-atlas .paper-audio-time,
html.dark .front-atlas .paper-audio-index,
html.dark .front-atlas .paper-audio-track-artist,
html.dark .front-atlas .paper-audio-credits { color: #777983 !important; }
html.dark .front-atlas .paper-audio-progress { background: #2a2c31 !important; }
html.dark .front-atlas .paper-audio-progress::-webkit-slider-thumb {
  background: #8b8d96 !important;
  border-color: #16171a !important;
  box-shadow: 0 0 0 1px #3a3c43 !important;
}
html.dark .front-atlas .paper-audio-progress::-moz-range-thumb { background: #8b8d96 !important; border-color: #16171a !important; }
html.dark .front-atlas .paper-audio-icon { color: #858791 !important; }
html.dark .front-atlas .paper-audio-icon:hover { background: #202126 !important; color: #c7c8ce !important; }
html.dark .front-atlas .paper-audio-playlist { border-top-color: #202228 !important; }
html.dark .front-atlas .paper-audio-track {
  border-bottom-color: #1f2126 !important;
  color: #b4b6bd !important;
}
html.dark .front-atlas .paper-audio-track:hover { background: #1b1c20 !important; }
html.dark .front-atlas .paper-audio-track.is-active { background: #1a211d !important; color: #a8bbb0 !important; }
html.dark .front-atlas .paper-audio-track.is-active::before { background: #708a7b !important; }

/* Final dark separator pass: avoid bright horizontal seams between elevated surfaces. */
html.dark .front-header,
html.dark .front-footer,
html.dark .front-atlas .front-canvas-panel,
html.dark .front-atlas .compact-filter,
html.dark .front-atlas .compact-filter-group,
html.dark .front-atlas .magazine-section + .magazine-section,
html.dark .front-atlas .public-head,
html.dark .front-atlas .archive-item,
html.dark .front-atlas .reading-head,
html.dark .front-atlas .reading-actions,
html.dark .front-atlas .reading-related,
html.dark .front-atlas .reading-related-media {
  border-color: #202228 !important;
}

@media (max-width: 640px) {
  .front-atlas .prose-paper .paper-callout { padding: 13px 14px 13px 16px; }
  .front-atlas .prose-paper details.paper-callout > summary { padding: 13px 14px 13px 16px; }
  .front-atlas .prose-paper details.paper-callout > .callout-body { padding: 0 14px 13px 16px; }
  .front-atlas .prose-paper blockquote { padding: 12px 14px; border-radius: 8px; }
}

/* Landscape card component — poster-style clean alignment (2026-08-26). */
.front-atlas .post-grid,
.front-atlas .magazine-featured-grid {
  width: 100%;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}
.front-atlas .post-card,
.front-atlas .magazine-post-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.front-atlas .post-card-media,
.front-atlas .post-card:not(.is-no-cover) .post-card-media,
.front-atlas .front-minimal .post-card-media,
.front-atlas .magazine-post-media {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid rgba(228,228,231,.7) !important;
  background: #fafafa !important;
}
.front-atlas .post-card-media img,
.front-atlas .post-card:not(.is-no-cover) .post-card-media img,
.front-atlas .front-minimal .post-card-media img,
.front-atlas .magazine-post-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.001);
  transition: transform .3s ease-out;
}
.front-atlas .post-card:hover .post-card-media img,
.front-atlas .magazine-post-card:hover .magazine-post-media img { transform: scale(1.05); }
.front-atlas .post-card .post-pin,
.front-atlas .magazine-post-card .magazine-pin { display: none !important; }
.front-atlas .post-card-body,
.front-atlas .magazine-post-copy { margin-top: 10px !important; }
.front-atlas .post-card-title,
.front-atlas .front-minimal .post-card-title,
.front-atlas .magazine-post-copy h3 {
  margin: 0 !important;
  color: #27272a !important;
  font-size: 15px !important;
  line-height: 1.375 !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
}
.front-atlas .post-card-title a,
.front-atlas .magazine-post-copy h3 a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: inherit !important;
}
.front-atlas .post-card-title a:hover,
.front-atlas .magazine-post-copy h3 a:hover { color: #09090b !important; }
.front-atlas .post-card-meta-row,
.front-atlas .front-minimal .post-card-meta-row,
.front-atlas .magazine-post-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 4px 0 0 !important;
  color: #a1a1aa !important;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
}
.front-atlas .post-card-meta-row .post-category,
.front-atlas .magazine-post-meta > span {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.front-atlas .post-card-meta-row .post-category:hover { color: #71717a !important; }
.front-atlas .post-card-excerpt,
.front-atlas .post-card-meta,
.front-atlas .magazine-post-stats { display: none !important; }
html.dark .front-atlas .post-card-media,
html.dark .front-atlas .post-card:not(.is-no-cover) .post-card-media,
html.dark .front-atlas .front-minimal .post-card-media,
html.dark .front-atlas .magazine-post-media {
  border-color: #27272a !important;
  background: #18181b !important;
}
html.dark .front-atlas .post-card-title,
html.dark .front-atlas .front-minimal .post-card-title,
html.dark .front-atlas .magazine-post-copy h3 { color: #e4e4e7 !important; }
html.dark .front-atlas .post-card-title a:hover,
html.dark .front-atlas .magazine-post-copy h3 a:hover { color: #f4f4f5 !important; }
html.dark .front-atlas .post-card-meta-row,
html.dark .front-atlas .front-minimal .post-card-meta-row,
html.dark .front-atlas .magazine-post-meta { color: #71717a !important; }
html.dark .front-atlas .post-card-meta-row .post-category:hover { color: #a1a1aa !important; }
@media (min-width: 768px) {
  .front-atlas .post-grid,
  .front-atlas .magazine-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .front-atlas .post-grid,
  .front-atlas .magazine-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 2026-08-26 portrait cleanup + compact taxonomies/archive + cold FOUC pass */
:root {
  --front-bg:#f4f4f5;
  --front-panel:#ffffff;
  --front-panel-soft:#fafafa;
  --front-line:#e4e4e7;
  --front-line-strong:#d4d4d8;
}
html.dark {
  --front-bg:#09090b;
  --front-panel:#121215;
  --front-panel-soft:#18181b;
  --front-line:#202228;
  --front-line-strong:#2b2d33;
}
html, body { background:#f4f4f5; }
html.dark, html.dark body { background:#09090b; }
.front-atlas { background:var(--front-bg)!important; }
.front-atlas .front-canvas-panel { background:var(--front-panel)!important; }

/* Portrait poster: image surface is completely clean; metadata lives below. */
.front-atlas .portrait-grid,
.front-atlas .magazine-poster-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.front-atlas .poster-card,
.front-atlas .magazine-poster {
  min-width:0;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.front-atlas .poster-media,
.front-atlas .magazine-poster-media {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:8px!important;
  border:1px solid rgba(228,228,231,.5)!important;
  background:#f4f4f5!important;
}
.front-atlas .poster-media img,
.front-atlas .magazine-poster-media img {
  position:absolute;
  inset:0;
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  transition:transform .3s ease-out;
}
.front-atlas .poster-card:hover .poster-media img,
.front-atlas .magazine-poster:hover .magazine-poster-media img { transform:scale(1.05); }
.front-atlas .poster-category,
.front-atlas .poster-status,
.front-atlas .magazine-poster-media .poster-category { display:none!important; }
.front-atlas .poster-copy,
.front-atlas .magazine-poster-copy { padding:0!important; margin-top:10px!important; }
.front-atlas .poster-copy h2,
.front-atlas .magazine-poster-copy h3 {
  margin:0!important;
  color:#3f3f46!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:500!important;
  letter-spacing:-.01em!important;
}
.front-atlas .poster-copy h2 a,
.front-atlas .magazine-poster-copy h3 a {
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:inherit!important;
}
.front-atlas .poster-copy h2 a:hover,
.front-atlas .magazine-poster-copy h3 a:hover { color:#18181b!important; }
.front-atlas .poster-meta,
.front-atlas .magazine-poster-copy>div {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-top:4px!important;
  color:#a1a1aa!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:400!important;
  font-variant-numeric:tabular-nums;
}
.front-atlas .poster-meta span,
.front-atlas .magazine-poster-copy>div span { color:inherit!important; }
html.dark .front-atlas .poster-media,
html.dark .front-atlas .magazine-poster-media { background:#18181b!important; border-color:#27272a!important; }
html.dark .front-atlas .poster-copy h2,
html.dark .front-atlas .magazine-poster-copy h3 { color:#d4d4d8!important; }
html.dark .front-atlas .poster-copy h2 a:hover,
html.dark .front-atlas .magazine-poster-copy h3 a:hover { color:#f4f4f5!important; }
html.dark .front-atlas .poster-meta,
html.dark .front-atlas .magazine-poster-copy>div { color:#71717a!important; }
@media (min-width:768px) {
  .front-atlas .portrait-grid,
  .front-atlas .magazine-poster-grid { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
}

/* Categories / tags: compact rows rather than tall tiles. */
.front-atlas .taxonomy-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:16px 0 4px;
}
.front-atlas .taxonomy-tile {
  min-height:0!important;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px!important;
  border:1px solid rgba(228,228,231,.7)!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
.front-atlas .taxonomy-tile:hover { background:#fafafa!important; border-color:#d4d4d8!important; }
.front-atlas .taxonomy-tile strong { min-width:0; margin:0!important; color:#3f3f46!important; font-size:14px!important; font-weight:600!important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.front-atlas .taxonomy-tile small { flex:none; margin:0!important; color:#a1a1aa!important; font:400 12px/1.3 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important; white-space:nowrap; }
html.dark .front-atlas .taxonomy-tile { background:rgba(24,24,27,.42)!important; border-color:#202228!important; }
html.dark .front-atlas .taxonomy-tile:hover { background:rgba(39,39,42,.55)!important; border-color:#2b2d33!important; }
html.dark .front-atlas .taxonomy-tile strong { color:#d4d4d8!important; }
html.dark .front-atlas .taxonomy-tile small { color:#71717a!important; }
@media (max-width:640px) {
  .front-atlas .taxonomy-grid { grid-template-columns:1fr; }
}

/* Archive: 20 rows per page, title left/date right, lightweight pagination. */
.front-atlas .archive-stack-compact {
  margin-top:14px;
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.front-atlas .archive-item-compact {
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:0!important;
  padding:10px 10px!important;
  border-bottom:1px solid #f0f0f2!important;
  border-radius:7px;
  background:transparent;
}
.front-atlas .archive-item-compact:hover { background:#fafafa!important; }
.front-atlas .archive-item-compact strong {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#52525b!important;
  font-size:13px!important;
  font-weight:500!important;
}
.front-atlas .archive-item-compact time {
  flex:none;
  color:#a1a1aa!important;
  font:400 11px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
  font-variant-numeric:tabular-nums;
}
.front-atlas .archive-pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:20px;
  font-size:12px;
}
.front-atlas .archive-pagination>a,
.front-atlas .archive-pagination>span,
.front-atlas .archive-pages a {
  min-width:32px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 9px;
  border:1px solid #e4e4e7;
  border-radius:7px;
  background:transparent;
  color:#52525b;
  transition:.15s ease;
}
.front-atlas .archive-pagination>a:hover,
.front-atlas .archive-pages a:hover { color:#18181b; border-color:#d4d4d8; background:#fafafa; }
.front-atlas .archive-pages { display:flex; gap:5px; }
.front-atlas .archive-pages a.is-active { color:#27272a; border-color:#a1a1aa; background:#f4f4f5; }
.front-atlas .archive-pagination .is-disabled { opacity:.38; pointer-events:none; }
html.dark .front-atlas .archive-item-compact { border-bottom-color:#1b1d22!important; }
html.dark .front-atlas .archive-item-compact:hover { background:#17181c!important; }
html.dark .front-atlas .archive-item-compact strong { color:#c7c7ce!important; }
html.dark .front-atlas .archive-item-compact time { color:#656771!important; }
html.dark .front-atlas .archive-pagination>a,
html.dark .front-atlas .archive-pagination>span,
html.dark .front-atlas .archive-pages a { border-color:#24262b; color:#8b8d96; background:transparent; }
html.dark .front-atlas .archive-pagination>a:hover,
html.dark .front-atlas .archive-pages a:hover { color:#d4d4d8; border-color:#32343b; background:#18191d; }
html.dark .front-atlas .archive-pages a.is-active { color:#d4d4d8; border-color:#3a3c43; background:#1b1c20; }

/* Detail title semantic h2: restrained visual hierarchy. */
.front-atlas .reading-head-single .reading-title,
.front-atlas h2.reading-title {
  margin:0!important;
  color:#3f3f46!important;
  font-size:24px!important;
  line-height:1.35!important;
  font-weight:600!important;
  letter-spacing:-.025em!important;
}
html.dark .front-atlas .reading-head-single .reading-title,
html.dark .front-atlas h2.reading-title { color:#d4d4d8!important; }
@media (max-width:767px) {
  .front-atlas .reading-head-single .reading-title,
  .front-atlas h2.reading-title { font-size:20px!important; }
}

/* Cold-neutral guardrail for front-facing legacy paper components. */
.front-atlas .paper-photo-card,
.front-atlas .paper-download-card,
.front-atlas .paper-hide-lock {
  background:#fff!important;
  border-color:#e4e4e7!important;
  color:#52525b!important;
}
.front-atlas .hide-lock-badge,
.front-atlas .hide-lock-form,
.front-atlas .hide-lock-form input { background:#fafafa!important; border-color:#e4e4e7!important; color:#52525b!important; }
html.dark .front-atlas .paper-photo-card,
html.dark .front-atlas .paper-download-card,
html.dark .front-atlas .paper-hide-lock { background:#16171a!important; border-color:#24262b!important; color:#a1a1aa!important; }
html.dark .front-atlas .hide-lock-badge,
html.dark .front-atlas .hide-lock-form,
html.dark .front-atlas .hide-lock-form input { background:#18191d!important; border-color:#24262b!important; color:#c7c7ce!important; }

/* Extra-low luminance separators in dark mode. */
html.dark .front-atlas hr,
html.dark .front-atlas .public-head,
html.dark .front-atlas .reading-head,
html.dark .front-atlas .reading-actions,
html.dark .front-atlas .reading-related,
html.dark .front-atlas .magazine-section + .magazine-section,
html.dark .front-header,
html.dark .front-footer { border-color:#1b1d22!important; }

/* 2026-08-26 — compact code toolbar + softer article typography. */
.front-atlas .code-header {
  min-height: 24px !important;
  height: 24px;
  padding: 0 7px 0 12px !important;
  background: #fafafa;
  border-bottom-color: rgba(212,212,216,.55) !important;
}
.front-atlas .code-block-wrapper.is-single-line .code-header {
  min-height: 24px !important;
  height: 24px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.front-atlas .code-language {
  font-size: 9px !important;
  color: #a1a1aa !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.front-atlas .code-tools {
  gap: 2px !important;
}
.front-atlas .copy-code,
.front-atlas .collapse-code {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  display: grid !important;
  place-items: center;
}
.front-atlas .copy-code svg,
.front-atlas .collapse-code svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.front-atlas .copy-code:hover,
.front-atlas .collapse-code:hover {
  background: #f4f4f5 !important;
  color: #52525b !important;
}
.front-atlas .copy-code.is-copied {
  background: #f4f4f5 !important;
  color: #52525b !important;
}
/* Keep the code content area unchanged; only soften foreground contrast. */
.front-atlas .prose-paper .code-block-wrapper pre.code-body,
.front-atlas .code-body code,
.front-atlas .hljs {
  color: #3f3f46 !important;
}
.front-atlas .code-line::before {
  color: #a1a1aa !important;
}
.front-atlas .reading-content.prose-paper {
  color: #52525b;
}
.front-atlas .prose-paper h1,
.front-atlas .prose-paper h2,
.front-atlas .prose-paper h3,
.front-atlas .prose-paper h4,
.front-atlas .prose-paper strong {
  color: #3f3f46;
}
html.dark .front-atlas .code-header {
  background: #19191d !important;
  border-bottom-color: #25252a !important;
}
html.dark .front-atlas .code-language { color: #777780 !important; }
html.dark .front-atlas .copy-code,
html.dark .front-atlas .collapse-code { color: #7f7f89 !important; }
html.dark .front-atlas .copy-code:hover,
html.dark .front-atlas .collapse-code:hover,
html.dark .front-atlas .copy-code.is-copied {
  background: #232328 !important;
  color: #b8b8c0 !important;
}
html.dark .front-atlas .prose-paper .code-block-wrapper pre.code-body,
html.dark .front-atlas .code-body code,
html.dark .front-atlas .hljs {
  color: #c4c4cc !important;
}
html.dark .front-atlas .reading-content.prose-paper { color: #b8b8c0 !important; }
html.dark .front-atlas .prose-paper h1,
html.dark .front-atlas .prose-paper h2,
html.dark .front-atlas .prose-paper h3,
html.dark .front-atlas .prose-paper h4,
html.dark .front-atlas .prose-paper strong { color: #d4d4da !important; }

/* 2026-08-26 — graphite dotted dark system + vertical archive timeline. */
html.dark {
  --front-bg:#18191c;
  --front-canvas:#18191c;
  --front-panel:#1e2025;
  --front-panel-soft:#26282e;
  --front-text:#d0d5dd;
  --front-muted:#858d9d;
  --front-line:rgba(255,255,255,.055);
  --front-line-strong:rgba(255,255,255,.085);
  --front-chip:#26282e;
  --front-accent:#98a2b3;
  --front-accent-soft:#25272d;
  --front-sheet-shadow:0 18px 48px -24px rgba(0,0,0,.58);
  color-scheme:dark;
}
html.dark,
html.dark body,
html.dark body.front-atlas {
  background-color:#18191c!important;
  color:#d0d5dd!important;
}
html.dark body.front-atlas {
  background-image:radial-gradient(circle, rgba(255,255,255,.085) .7px, transparent .8px)!important;
  background-size:22px 22px!important;
  background-position:0 0!important;
}
html.dark .front-atlas {
  background-color:transparent!important;
  background-image:none!important;
}
html.dark .front-header {
  background:rgba(24,25,28,.84)!important;
  border-bottom-color:rgba(255,255,255,.06)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.018)!important;
  backdrop-filter:blur(18px) saturate(120%);
}
html.dark .front-canvas-panel,
html.dark .reading-single-canvas {
  background:#1e2025!important;
  border-color:rgba(255,255,255,.08)!important;
  box-shadow:0 18px 48px -24px rgba(0,0,0,.58)!important;
}
html.dark .front-brand-mark,
html.dark .front-icon-btn,
html.dark .front-search,
html.dark .compact-filter,
html.dark .unified-filter,
html.dark .front-list-shell .compact-filter {
  background:#24262b!important;
  border-color:rgba(255,255,255,.065)!important;
}
html.dark .front-brand-mark { color:#e4e7ec!important; }
html.dark .front-icon-btn:hover,
html.dark .front-nav a:hover,
html.dark .front-nav a.is-active,
html.dark .front-mobile-nav a:hover,
html.dark .front-mobile-nav a.is-active,
html.dark .compact-pill:hover,
html.dark .compact-filter-menu>summary:hover,
html.dark .compact-filter-menu[open]>summary,
html.dark .compact-option:hover,
html.dark .compact-option.is-active {
  background:#2d3037!important;
}
html.dark .compact-filter-popover {
  background:#26282e!important;
  border-color:rgba(255,255,255,.09)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34)!important;
}
html.dark .front-brand-copy strong,
html.dark .front-list-head h1,
html.dark .public-head h1,
html.dark .reading-title,
html.dark .reading-head-single .reading-title,
html.dark .magazine-section-title h2,
html.dark .reading-related-head h2,
html.dark .front-atlas .prose-paper h1,
html.dark .front-atlas .prose-paper h2,
html.dark .front-atlas .prose-paper h3,
html.dark .front-atlas .prose-paper h4,
html.dark .front-atlas .prose-paper strong {
  color:#e4e7ec!important;
}
html.dark .post-card-title,
html.dark .magazine-post-copy h3,
html.dark .poster-copy h2,
html.dark .magazine-poster-copy h3,
html.dark .text-card-title,
html.dark .taxonomy-tile strong,
html.dark .reading-related-copy strong,
html.dark .front-atlas .reading-content.prose-paper,
html.dark .front-atlas .prose-paper p,
html.dark .front-atlas .prose-paper li,
html.dark .front-atlas .prose-paper td {
  color:#d0d5dd!important;
}
html.dark .front-brand-copy small,
html.dark .front-nav a,
html.dark .front-mobile-nav a,
html.dark .front-list-head p,
html.dark .public-head p,
html.dark .reading-meta,
html.dark .post-card-meta,
html.dark .post-card-meta-row,
html.dark .magazine-post-meta,
html.dark .poster-meta,
html.dark .text-card-meta,
html.dark .taxonomy-tile small,
html.dark .front-count,
html.dark .front-page-count,
html.dark .reading-related-copy time,
html.dark .compact-filter-label,
html.dark .compact-filter-count,
html.dark .compact-filter-menu>summary span {
  color:#858d9d!important;
}
html.dark .front-atlas .prose-paper a {
  color:#b7bec9!important;
  text-decoration-color:#59616e!important;
}
html.dark .front-atlas .prose-paper a:hover { color:#d9dde4!important; text-decoration-color:#858d9d!important; }
html.dark .taxonomy-tile,
html.dark .reading-related-card,
html.dark .text-card-item,
html.dark .reading-panel,
html.dark .paper-photo-card,
html.dark .paper-download-card,
html.dark .paper-hide-lock,
html.dark .front-atlas .paper-audio-player {
  background:#26282e!important;
  border-color:rgba(255,255,255,.06)!important;
  box-shadow:none!important;
}
html.dark .taxonomy-tile:hover,
html.dark .reading-related-card:hover,
html.dark .text-card-item:hover,
html.dark .reading-panel:hover {
  background:#2d3037!important;
  border-color:rgba(255,255,255,.10)!important;
}
html.dark .post-card-media,
html.dark .magazine-post-media,
html.dark .poster-media,
html.dark .magazine-poster-media,
html.dark .reading-related-media {
  background:#26282e!important;
  border-color:rgba(255,255,255,.065)!important;
}
html.dark .front-footer,
html.dark .front-atlas hr,
html.dark .front-atlas .public-head,
html.dark .front-atlas .reading-head,
html.dark .front-atlas .reading-actions,
html.dark .front-atlas .reading-related,
html.dark .front-atlas .magazine-section + .magazine-section {
  border-color:rgba(255,255,255,.045)!important;
}
html.dark .front-atlas .prose-paper table,
html.dark .front-atlas .prose-paper th,
html.dark .front-atlas .prose-paper td,
html.dark .front-atlas .paper-audio-row,
html.dark .front-atlas .paper-audio-main {
  border-color:rgba(255,255,255,.05)!important;
}
html.dark .front-atlas .prose-paper table { background:#22242a!important; }
html.dark .front-atlas .prose-paper th { background:#26282e!important; color:#c6cbd4!important; }
html.dark .front-atlas .code-header { background:#24262b!important; border-bottom-color:rgba(255,255,255,.055)!important; }
html.dark .front-atlas .prose-paper .code-block-wrapper pre.code-body,
html.dark .front-atlas .code-body code,
html.dark .front-atlas .hljs { background:#202227!important; color:#c7cdd6!important; }
html.dark .front-atlas .copy-code:hover,
html.dark .front-atlas .collapse-code:hover,
html.dark .front-atlas .copy-code.is-copied { background:#2d3037!important; color:#c9ced7!important; }

/* Archive timeline — 20 posts/page, grouped by year. */
.front-atlas .archive-timeline {
  margin-top:2px;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.front-atlas .archive-year {
  overflow:hidden;
  border:1px solid rgba(228,228,231,.72);
  border-radius:12px;
  background:#fff;
}
.front-atlas .archive-year-head {
  min-height:64px;
  display:flex;
  align-items:center;
  padding:0 22px;
  background:rgba(20,184,166,.065);
  border-bottom:1px solid rgba(228,228,231,.58);
}
.front-atlas .archive-year-title {
  display:flex;
  align-items:center;
  gap:20px;
  width:100%;
  color:#71717a;
  font-size:12px;
}
.front-atlas .archive-year-title strong {
  color:#3f3f46;
  font:600 25px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.04em;
}
.front-atlas .archive-year-ring {
  width:16px;
  height:16px;
  margin-left:16px;
  border:3px solid #5fae9f;
  border-radius:999px;
  background:#fff;
  box-shadow:0 0 0 4px rgba(95,174,159,.08);
}
.front-atlas .archive-year-list {
  position:relative;
  padding:8px 12px 12px;
}
.front-atlas .archive-year-list::before {
  content:"";
  position:absolute;
  left:105px;
  top:0;
  bottom:10px;
  border-left:2px dashed #e4e4e7;
  pointer-events:none;
}
.front-atlas .archive-timeline-item {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:70px 30px auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-height:42px;
  padding:5px 10px;
  border-radius:7px;
  transition:background .15s ease,color .15s ease;
}
.front-atlas .archive-timeline-item:hover { background:#fafafa; }
.front-atlas .archive-timeline-item time {
  color:#a1a1aa;
  text-align:right;
  font:400 12px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-variant-numeric:tabular-nums;
}
.front-atlas .archive-dot {
  justify-self:center;
  width:6px;
  height:6px;
  border-radius:999px;
  background:#5f887f;
  box-shadow:0 0 0 4px #fff;
}
.front-atlas .archive-category {
  max-width:100px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  padding:2px 6px;
  border-radius:5px;
  background:#f4f4f5;
  color:#71717a;
  font-size:11px;
  font-weight:500;
  line-height:1.45;
}
.front-atlas .archive-timeline-item strong {
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#52525b;
  font-size:14px;
  font-weight:500;
  line-height:1.45;
  transition:color .15s ease;
}
.front-atlas .archive-timeline-item:hover strong { color:#27272a; }
.front-atlas .archive-empty { padding:30px; color:#a1a1aa; font-size:12px; text-align:center; }
.front-atlas .archive-timeline-pagination { margin-top:22px; }

html.dark .front-atlas .archive-year {
  background:#1e2025!important;
  border-color:rgba(255,255,255,.075)!important;
}
html.dark .front-atlas .archive-year-head {
  background:rgba(86,166,151,.07)!important;
  border-bottom-color:rgba(255,255,255,.05)!important;
}
html.dark .front-atlas .archive-year-title { color:#858d9d!important; }
html.dark .front-atlas .archive-year-title strong { color:#e4e7ec!important; }
html.dark .front-atlas .archive-year-ring {
  border-color:#6fae9f!important;
  background:#1e2025!important;
  box-shadow:0 0 0 4px rgba(111,174,159,.07)!important;
}
html.dark .front-atlas .archive-year-list::before { border-left-color:rgba(255,255,255,.10)!important; }
html.dark .front-atlas .archive-timeline-item:hover { background:rgba(38,40,46,.72)!important; }
html.dark .front-atlas .archive-timeline-item time { color:#858d9d!important; }
html.dark .front-atlas .archive-dot { background:#6fae9f!important; box-shadow:0 0 0 4px #1e2025!important; }
html.dark .front-atlas .archive-category {
  background:#26282e!important;
  color:#98a2b3!important;
  border:1px solid rgba(255,255,255,.04);
}
html.dark .front-atlas .archive-timeline-item strong { color:#d0d5dd!important; }
html.dark .front-atlas .archive-timeline-item:hover strong { color:#e4e7ec!important; }
html.dark .front-atlas .archive-pagination>a,
html.dark .front-atlas .archive-pagination>span,
html.dark .front-atlas .archive-pages a {
  color:#858d9d!important;
  border-color:rgba(255,255,255,.07)!important;
  background:#24262b!important;
}
html.dark .front-atlas .archive-pagination>a:hover,
html.dark .front-atlas .archive-pages a:hover,
html.dark .front-atlas .archive-pages a.is-active {
  color:#d0d5dd!important;
  border-color:rgba(255,255,255,.12)!important;
  background:#2d3037!important;
}
@media (max-width:640px) {
  .front-atlas .archive-year-head { min-height:56px; padding:0 14px; }
  .front-atlas .archive-year-title { gap:12px; }
  .front-atlas .archive-year-title strong { font-size:22px; }
  .front-atlas .archive-year-ring { width:13px; height:13px; margin-left:4px; border-width:2px; }
  .front-atlas .archive-year-list { padding:6px 6px 10px; }
  .front-atlas .archive-year-list::before { left:76px; }
  .front-atlas .archive-timeline-item {
    grid-template-columns:52px 18px auto minmax(0,1fr);
    gap:7px;
    min-height:40px;
    padding:4px 6px;
  }
  .front-atlas .archive-timeline-item time { font-size:11px; }
  .front-atlas .archive-category { max-width:72px; font-size:10px; padding-inline:5px; }
  .front-atlas .archive-timeline-item strong { font-size:13px; }
}
