/*
Theme Name: SGTime v2
Theme URI: https://sgtime.ai
Author: RecodeX
Description: 狮城时间 2026-12 改版：时间为主角的新闻台版式。系统字体、深浅色、无网络字体。站点逻辑（Telegram 推送、无限滚动、阅读量）在 sgtime-core 插件 inc/theme-bridge.php。
Version: 2.0.0
Requires PHP: 8.0
Text Domain: sgtime-v2
*/


:root {
  --paper: #F5F7F6;        /* cool off-white, not cream */
  --surface: #FFFFFF;
  --ink: #13202A;          /* deep straits ink */
  --ink-2: #374651;
  --muted: #66737D;
  --rule: #DDE3E5;
  --rule-strong: #B7C1C6;
  --red: #C8102E;          /* flag red, deepened for text contrast; only for now / breaking */
  --red-soft: #FBE9EC;
  --teal: #0B6A64;         /* provenance: sources and original links */
  --teal-soft: #E4F0EE;
  --focus: #0B6A64;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "STSong", -apple-system, "PingFang SC", "Microsoft YaHei", serif;
  --num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C141A; --surface: #121D25; --ink: #E6ECEE; --ink-2: #C2CCD1; --muted: #8B99A2;
    --rule: #22303A; --rule-strong: #3A4A55; --red: #FF5D66; --red-soft: rgba(255, 93, 102, .12);
    --teal: #5DC3B8; --teal-soft: rgba(93, 195, 184, .10); --focus: #5DC3B8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C141A; --surface: #121D25; --ink: #E6ECEE; --ink-2: #C2CCD1; --muted: #8B99A2;
  --rule: #22303A; --rule-strong: #3A4A55; --red: #FF5D66; --red-soft: rgba(255, 93, 102, .12);
  --teal: #5DC3B8; --teal-soft: rgba(93, 195, 184, .10); --focus: #5DC3B8; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.75 var(--sans); letter-spacing: .01em;
  font-feature-settings: "palt" 0; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Masthead ---------- */
.mast { background: var(--surface); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: .06em; }
.brand-sub { display: block; font: 500 12px/1 var(--num); color: var(--muted); letter-spacing: .02em; margin-top: 6px; }
.mast-date { margin-left: 28px; padding-left: 24px; border-left: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.mast-date b { display: block; font-weight: 600; color: var(--ink); font-size: 15px; }
.clock { margin-left: auto; display: flex; align-items: baseline; gap: 10px; }
.clock-time { font: 600 40px/1 var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.clock-zone { font-size: 13px; line-height: 1.35; color: var(--muted); }
.clock-zone strong { display: block; color: var(--red); font-weight: 600; }
.mast-actions { display: flex; gap: 8px; margin-left: 20px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--rule-strong); color: var(--ink); }

.nav { border-top: 1px solid var(--rule); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 12px 12px 11px; font-size: 15px; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.nav a:hover { color: var(--ink); }

/* ---------- 12-hour ribbon: the signature element ---------- */
.ribbon { background: var(--surface); border-bottom: 1px solid var(--rule); }
.ribbon-inner { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding-top: 14px; padding-bottom: 12px; }
.ribbon-label { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ribbon-label b { color: var(--ink); font-weight: 600; font-size: 14px; }
.track { position: relative; height: 40px; }
.track-base { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--rule-strong); }
.tick { position: absolute; top: 6px; width: 2px; height: 24px; margin-left: -1px; background: var(--ink); opacity: .32; border-radius: 1px; }
.tick.sg { opacity: .62; }
.tick.hot { background: var(--red); opacity: 1; }
.hour { position: absolute; top: 30px; font: 500 11px/1 var(--num); color: var(--muted); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.hour::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 5px; background: var(--rule-strong); }
.now { position: absolute; right: 0; top: 0; width: 2px; height: 30px; background: var(--red); }
.now::after { content: ""; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.night { position: absolute; top: 6px; height: 24px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rule) 4px 5px); opacity: .7; }

/* ---------- Page grid ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 32px; padding-bottom: 64px; }
.aside > section + section { margin-top: 36px; }
.h-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: 700 18px/1.3 var(--sans); }
.h-sec small { font-weight: 400; font-size: 13px; color: var(--muted); }

/* ---------- Lead ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.kicker { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.kicker .cat { color: var(--ink); font-weight: 600; }
.kicker .breaking { color: var(--red); font-weight: 700; }
.lead-title { font: 700 36px/1.36 var(--serif); letter-spacing: .01em; margin: 0 0 14px; text-wrap: pretty; }
.lead-title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.orig { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.orig .src { color: var(--teal); font-weight: 600; }
.orig i { font-style: normal; color: var(--ink-2); }
.lead-side { border-left: 1px solid var(--rule); padding-left: 28px; display: flex; flex-direction: column; }
.lead-side article + article { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.side-title { font: 700 18px/1.5 var(--serif); margin: 0 0 8px; }

/* ---------- Stream ---------- */
.live-note { display: none; margin: 16px 0 0; width: 100%; padding: 10px 14px; border: 1px solid var(--red); border-radius: 6px; background: var(--red-soft); color: var(--red); font: 600 14px/1.4 var(--sans); cursor: pointer; text-align: left; }
.live-note.show { display: block; }
.day { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 0; padding: 0 0 8px; border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 600; color: var(--ink); }
.day span { color: var(--muted); font-weight: 400; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.row time { font: 600 15px/1.65 var(--num); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.row.hot time { color: var(--red); }
.row-title { font-size: 16.5px; line-height: 1.65; font-weight: 500; margin: 0; text-wrap: pretty; }
.row-title .tag { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; font-weight: 700; vertical-align: 2px; }
.row-meta { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.row-meta .src { color: var(--teal); }
.more { display: block; width: 100%; margin-top: 24px; padding: 12px; border: 1px solid var(--rule-strong); border-radius: 6px; background: transparent; color: var(--ink); font: 600 15px/1.4 var(--sans); cursor: pointer; }
.more:hover { border-color: var(--ink); }

/* ---------- Aside: digest, hot, subscribe ---------- */
.digest { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 22px 22px 20px; }
:root[data-theme="dark"] .digest { background: #1B2A34; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .digest { background: #1B2A34; color: var(--ink); } }
.digest-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; opacity: .75; }
.digest h3 { font: 900 24px/1.25 var(--serif); letter-spacing: .08em; margin: 10px 0 4px; opacity: 1; }
.digest .digest-title { font: 600 16px/1.55 var(--sans); margin: 0 0 12px; }
.digest ul { margin: 0; padding: 0 0 0 1.1em; font-size: 14px; line-height: 1.65; opacity: .86; }
.digest li + li { margin-top: 6px; }
.digest a.read { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.digest a.read:hover { color: inherit; opacity: .8; }

.hot ol { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.hot li { counter-increment: hot; display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.6; }
.hot li::before { content: counter(hot); font: 700 18px/1.35 var(--num); color: var(--muted); }
.hot li:first-child::before { color: var(--red); }

.subs a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.subs a:hover { color: inherit; }
.subs a:hover strong { color: var(--teal); }
.subs .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.subs strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.subs span span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Detail page ---------- */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--ink-2); }
.crumb a + span::before, .crumb a + a::before { content: "/"; margin: 0 8px; color: var(--rule-strong); }
.d-time { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.d-time .num { font-weight: 600; color: var(--ink); }
.d-title { font: 700 34px/1.42 var(--serif); margin: 0 0 28px; max-width: 30em; text-wrap: pretty; }
.prov { border: 1px solid var(--rule); border-left: 3px solid var(--teal); border-radius: 6px; background: var(--surface); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.prov-label { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.prov-name { font-size: 18px; font-weight: 700; line-height: 1.4; }
.prov-name small { font: 400 13px/1 var(--num); color: var(--muted); margin-left: 8px; }
.prov-title { grid-column: 1; margin: 2px 0 0; font: 400 15px/1.55 Georgia, "Times New Roman", var(--serif); color: var(--ink-2); }
.btn-src { grid-column: 2; grid-row: 2 / span 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; background: var(--teal); color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.btn-src:hover { color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .btn-src { color: #08201E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-src { color: #08201E; } }
.ai-note { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 6px; background: var(--paper); border: 1px dashed var(--rule-strong); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.ai-note svg { margin-top: 3px; color: var(--muted); }
.ai-note strong { color: var(--ink); }
.ai-note a { color: var(--teal); }
.share { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.share .icon-btn { width: 36px; height: 36px; }
.related { margin-top: 44px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.pn a { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; line-height: 1.55; }
.pn a small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pn a:last-child { text-align: right; }

/* ---------- Archive ---------- */
.arch-head { padding-top: 28px; }
.arch-head h1 { font: 900 40px/1.2 var(--serif); margin: 0 0 8px; letter-spacing: .04em; }
.arch-head p { margin: 0 0 20px; color: var(--ink-2); max-width: 40em; }
.aside .digest-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.55; }
.aside .digest-list small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--surface); padding: 40px 0 28px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.foot ul small { color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 10px; line-height: 1.7; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mast-date { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .mast-row { min-height: 64px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 21px; white-space: nowrap; letter-spacing: .04em; }
  .brand-sub { display: none; }
  .brand svg { width: 28px; height: 28px; }
  .clock { gap: 5px; }
  .clock-time { font-size: 26px; }
  .clock-zone { font-size: 11px; line-height: 1.2; }
  .clock-zone strong { font-size: 11px; }
  .clock-zone .utc { display: none; }
  .mast-actions { margin-left: 4px; gap: 4px; }
  .mast-actions .icon-btn { width: 34px; height: 34px; border: 0; }
  .mast-actions .hide-m { display: none; }
  .nav a { padding: 10px 10px 9px; font-size: 15px; }
  .ribbon-inner { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; }
  .ribbon-label br { display: none; }
  .ribbon-label b { margin-right: 8px; }
  .layout { padding-top: 20px; }
  .lead { grid-template-columns: 1fr; gap: 20px; }
  .lead-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
  .lead-title { font-size: 25px; line-height: 1.42; }
  .side-title { font-size: 17px; }
  .row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .row time { font-size: 14px; }
  .row-title { font-size: 16px; }
  .d-title { font-size: 25px; line-height: 1.48; }
  .prov { grid-template-columns: 1fr; }
  .btn-src { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 8px; }
  .pn { grid-template-columns: 1fr; }
  .pn a:last-child { text-align: left; }
  .arch-head h1 { font-size: 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ======================================================================
   Additions for the WordPress build (not in the static mockup)
   ====================================================================== */

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
.sr { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 4px; font-weight: 600; }
.skip:focus { top: 8px; color: var(--paper); }
main:focus { outline: none; }
.teal { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon-btn:focus-visible { outline-offset: 1px; }
.icon-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--rule-strong); }
.brand:hover { color: inherit; }
.clock-time { color: var(--ink); }

/* Search bar under the masthead */
.search-bar { border-top: 1px solid var(--rule); background: var(--surface); padding: 12px 0; }
.search-bar .wrap, .search-inline { display: flex; gap: 8px; }
.search-bar input, .search-inline input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font: 400 16px/1 var(--sans); }
.search-bar input::placeholder, .search-inline input::placeholder { color: var(--muted); opacity: 1; }
.search-bar button, .search-inline button { height: 42px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--sans); cursor: pointer; }
.search-inline { max-width: 560px; margin: 4px 0 16px; }

/* Ribbon ticks that fell outside the window */
.tick[hidden], .night[hidden] { display: none; }

/* Stream */
h1.h-sec { font-size: 18px; }
.lead .lead-title, .lead .side-title { text-wrap: pretty; }
.lead-side:empty { display: none; }
.lead > article:only-child { grid-column: 1 / -1; }
.row-title a { display: block; }
.row-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.side-title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.loader { margin-top: 24px; min-height: 48px; }
.loader .more { text-align: center; margin-top: 0; }
.loader .more[aria-busy] { color: var(--muted); }
.loader .end { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.more { text-align: center; }
.more-inline { display: inline-block; width: auto; padding: 10px 22px; }
.empty { color: var(--ink-2); padding: 24px 0; }
.live-note { position: sticky; top: 8px; z-index: 5; }

/* Aside extras */
.digest-name { font: 900 24px/1.25 var(--serif); letter-spacing: .08em; margin: 10px 0 4px; }
.digest a.read:focus-visible { outline-color: currentColor; }
.hot li a:hover { color: var(--teal); }
.h-sec small a { color: var(--teal); }
.aside .digest-list a:hover small { color: var(--muted); }

/* Detail */
.detail { min-width: 0; }
.crumb a + a::before { content: "/"; margin: 0 8px; color: var(--rule-strong); }
.d-title .tag, .row-title .tag { display: inline-block; margin-right: 10px; padding: 0 6px; border-radius: 3px; background: var(--red); color: #fff; font: 700 13px/22px var(--sans); vertical-align: 5px; }
:root[data-theme="dark"] .d-title .tag, :root[data-theme="dark"] .row-title .tag { color: #2A0306; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .d-title .tag, :root:not([data-theme="light"]) .row-title .tag { color: #2A0306; } }
.prov-name { word-break: break-word; }
.prov-title { word-break: break-word; }
.btn-src:focus-visible { outline-color: var(--ink); }
.ai-note p { margin: 0; }
.share .copied { font-size: 13px; color: var(--teal); }
.pn a:hover { border-color: var(--rule-strong); color: inherit; }
.pn a.pn-next:only-child { grid-column: 2; }
.pn a.pn-prev:only-child { grid-column: 1; }
.pn a.pn-prev { text-align: left; }

/* Digest / weekend guide / long posts / static pages */
.paper-head { border-top: 4px double var(--ink); border-bottom: 1px solid var(--rule); padding: 14px 0 18px; margin-bottom: 24px; }
.paper-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.paper-name { font: 900 30px/1.2 var(--serif); letter-spacing: .1em; margin: 10px 0 8px; }
.paper-head .d-title { margin: 0; font-size: 26px; }
.entry { font-size: 17px; line-height: 1.85; color: var(--ink); max-width: 40em; }
.entry > :first-child { margin-top: 0; }
.entry p { margin: 0 0 1.1em; }
.entry h2 { font: 700 22px/1.4 var(--serif); margin: 1.8em 0 .6em; }
.entry h3 { display: flex; align-items: baseline; gap: 10px; font: 700 16px/1.4 var(--sans); margin: 2em 0 .4em; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.entry ul, .entry ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.entry li + li { margin-top: .4em; }
.entry a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry strong { font-weight: 700; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.entry blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--rule-strong); color: var(--ink-2); }
.entry img { border-radius: 4px; }
.entry-figure { margin: 0 0 24px; }
/* Legacy classes hard-coded in stored digest HTML */
.entry .digest-intro { font: 400 19px/1.8 var(--serif); color: var(--ink); padding: 0 0 18px; margin: 0 0 8px; border-bottom: 1px solid var(--rule); }
.entry .digest-list { list-style: none; padding: 0; margin: 0 0 8px; }
.entry .digest-list li { position: relative; padding: 12px 0 12px 18px; margin: 0; border-bottom: 1px solid var(--rule); font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.entry .digest-list li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); }
.entry .digest-list li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.entry .digest-list li a:hover { color: var(--teal); text-decoration: underline; }
.entry .digest-list li strong { color: var(--red); font-weight: 700; }
.entry .digest-outro { margin-top: 1.6em; padding: 14px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; color: var(--ink-2); }
.entry .ai-disclaimer { font-size: 13px; color: var(--muted); }
.digest-entry .entry hr:has(+ .ai-disclaimer), .digest-entry .entry .ai-disclaimer { display: none; } /* replaced by .ai-note below the body */
.page-entry .entry h2:first-child { margin-top: 0; }
.updated { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* Archive of issues */
.issues .issue { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.issue .kicker { margin-bottom: 6px; }
.issue-points { margin: 8px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.issue-ex { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.pager { margin-top: 28px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; font: 600 14px/1 var(--num); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* Search */
.res-date { margin-top: 18px; font-size: 13px; color: var(--muted); }
.results .row { border-bottom: 1px solid var(--rule); }

/* 404 */
.page-404 .e-code { margin: 0; font: 700 64px/1 var(--num); color: var(--rule-strong); }
.page-404 .d-title { margin: 8px 0 12px; }

/* Footer */
.foot-h { margin: 0 0 12px; font-size: 14px; color: var(--ink); font-weight: 700; }
.foot a:hover { color: var(--teal); }

/* Admin bar (logged-in) */
.admin-bar .live-note { top: 40px; }

@media (max-width: 720px) {
  .paper-name { font-size: 24px; }
  .paper-head .d-title { font-size: 21px; }
  .entry { font-size: 16.5px; }
  .entry .digest-intro { font-size: 17px; }
  .search-bar input, .search-inline input { font-size: 16px; }
  .d-title .tag { vertical-align: 3px; }
  .pn a.pn-next:only-child { grid-column: 1; }
  .page-404 .e-code { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .mast-actions, .nav, .ribbon, .aside, .share, .pn, .foot, .loader, .live-note, .search-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
}

/* WordPress core helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.layout.page-arch { padding-top: 8px; }
