:root {
  color-scheme: light;
  --canvas: #f6f7f5;
  --surface: #ffffff;
  --ink: #18201f;
  --muted: #65706d;
  --line: #cfd6d3;
  --accent-ink: #ffffff;
  --radius: 4px;
  font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); }
body { margin: 0; min-width: 320px; line-height: 1.65; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--site-accent); }
img { display: block; max-width: 100%; height: auto; background: var(--line); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 8px 12px; background: var(--surface); }

.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1.2fr);
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: auto;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 750; text-decoration: none; }
.brand img { width: 36px; height: 36px; background: transparent; }
.site-nav { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--site-accent); font-weight: 700; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.language-switch {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.toolbar-rss-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.toolbar-rss-btn:hover { border-color: var(--site-accent); color: var(--site-accent); }
.toolbar-rss-btn .btn-icon { display: block; flex: 0 0 auto; }
.header-search { display: flex; width: min(100%, 260px); }
.header-search input { min-width: 0; flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 8px 10px; background: var(--surface); color: var(--ink); }
.header-search button { border: 1px solid var(--site-accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 8px 14px; color: var(--accent-ink); background: var(--site-accent); white-space: nowrap; cursor: pointer; }
.header-search button:active { transform: translateY(1px); }

main { max-width: 1180px; margin: auto; padding: 68px 28px 110px; }
.page-intro { max-width: 760px; margin-bottom: 64px; }
.home-intro { display: grid; grid-template-columns: 1fr 2fr; column-gap: 56px; max-width: none; align-items: end; }
.home-intro .eyebrow { grid-row: span 2; align-self: start; }
.page-intro h1 { max-width: 16ch; margin: 0; font-size: 48px; line-height: 1.08; letter-spacing: 0; }
.page-intro > p:last-child { max-width: 58ch; color: var(--muted); }
.eyebrow, .section-label, .story-meta { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }

.lead-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 420px; margin-bottom: 88px; background: var(--surface); border-top: 4px solid var(--site-accent); }
.lead-copy { padding: 44px; align-self: center; }
.lead-copy h2 { margin: 0 0 18px; font-size: 38px; line-height: 1.16; letter-spacing: 0; }
.lead-copy p { color: var(--muted); }
.lead-image { min-height: 420px; overflow: hidden; }
.lead-image img { width: 100%; height: 100%; object-fit: cover; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--site-accent); }

.story-section { margin-top: 82px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: 28px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 30px; }
.story-card { border-top: 1px solid var(--line); padding-top: 18px; }
.story-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; margin-bottom: 18px; }
.story-card h3, .story-rows h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.story-card > p:last-child, .story-rows article > p:last-child { color: var(--muted); }
.story-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.story-rows article { padding: 24px 0; border-top: 1px solid var(--line); }
.story-rows article > p:first-child { color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.filters a[aria-current="page"] { color: var(--site-accent); font-weight: 700; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.archive-list article { padding: 28px 0; border-top: 1px solid var(--line); }
.archive-list h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.25; }
.archive-list article > p:last-child { color: var(--muted); }
.pager { display: flex; justify-content: space-between; margin-top: 42px; }
.empty-state { max-width: 660px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-state h2 { margin-top: 0; }

.article { max-width: 820px; margin: auto; }
.article > header h1 { margin: 0; font-size: 48px; line-height: 1.12; letter-spacing: 0; }
.article-meta { display: flex; gap: 20px; color: var(--muted); }
.article-summary { margin: 30px 0 0; font-size: 21px; color: var(--muted); }
.article figure { margin: 46px -110px; }
.article figure img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.article-body { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 18px; }
.article-body :is(p, ul, ol, blockquote) { max-width: 68ch; margin: 1.4em auto; }
.article-body h2 { margin-top: 2.2em; }
.citations { margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--line); }
.takeaways, .article-faq, .related-panel {
  margin-top: 42px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.takeaways ul { margin: 0; padding-left: 1.2em; }
.article-faq details { margin: 12px 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.article-faq summary { cursor: pointer; font-weight: 700; }
.related-list { display: grid; gap: 14px; margin-top: 16px; }
.related-item { display: grid; gap: 4px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.related-item span { color: var(--muted); font-size: 13px; font-weight: 700; }
.not-found { max-width: 640px; margin: 80px auto; }
.not-found-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-grid a { display: inline-block; margin-right: 14px; }
.source-link { margin-top: 40px; font-weight: 700; }
.about-page { max-width: 820px; overflow-wrap: anywhere; }
.source-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding-left: 20px; }
.article-toolbar { flex-wrap: wrap; }
.share-link-fallback { width: 100%; }
.share-link-fallback input { display: block; width: 100%; min-width: 0; margin-top: 8px; }
body { container-type: inline-size; }
@media(max-width:640px) { .source-directory { grid-template-columns: 1fr; } }
.about-page section { max-width: 66ch; margin: 52px 0; }

.channel-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.channel-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.channel-tabs button[aria-selected="true"] {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: var(--accent-ink);
}
.hot-grid .story-card-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.article-toolbar { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.article-toolbar button { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: var(--surface); cursor: pointer; font-weight: 700; }
.tool-feedback { color: var(--muted); font-size: 13px; }
.reading-micro .article-body p { margin: 0.9em auto; padding-bottom: 0.55em; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.reading-micro .cover { margin-top: 18px; }

.archive-gateway { margin-top: 96px; padding: 42px 0 18px; border-top: 1px solid var(--line); }
.archive-gateway-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 42px; }
.archive-gateway-form { display: flex; gap: 0; margin: 18px 0; }
.archive-gateway-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--ink); border-right: 0; background: var(--surface); }
.archive-gateway-form button { padding: 0 18px; border: 0; background: var(--site-accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; }
.archive-gateway-count { color: var(--muted); }
.archive-gateway-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 12px; }

.site-footer { max-width: 1280px; margin: auto; padding: 32px 28px 46px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer-grid p { margin: 0.35rem 0; }
.footer-contact-area { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-contact {
  width: auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.contact-popover {
  position: fixed;
  z-index: 40;
  min-width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: #151515;
  color: #f5f5f5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.contact-popover-kicker { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #bdbdbd; }
.contact-email-row { display: flex; gap: 10px; align-items: center; }
.contact-email-row a { color: #fff; }
.contact-email-row button { border: 0; background: #2d2d2d; color: #fff; padding: 6px 10px; cursor: pointer; }
.contact-copy-status { display: block; margin-top: 8px; min-height: 1.2em; font-size: 12px; color: #cfcfcf; }

.language-suggestion {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.language-suggestion-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.language-suggestion-actions a,
.language-suggestion-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.language-suggestion-actions a { background: var(--site-accent); color: var(--accent-ink); border-color: var(--site-accent); }
.language-suggestion-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 22px; cursor: pointer; }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; gap: 14px; padding: 12px 18px; }
  .site-nav { gap: 14px; }
  .header-actions { grid-column: 1 / -1; justify-content: stretch; flex-wrap: wrap; }
  .header-search { width: 100%; }
  .toolbar-rss-btn { height: 32px; padding: 0 8px; font-size: 12px; }
  main { padding: 44px 18px 80px; }
  .home-intro, .lead-story, .story-grid, .story-rows, .archive-list, .archive-gateway-inner, .footer-grid, .hot-grid .story-card-lead { grid-template-columns: 1fr; }
  .home-intro { gap: 10px; }
  .home-intro .eyebrow { grid-row: auto; }
  .page-intro h1, .article > header h1 { font-size: 38px; }
  .lead-story { min-height: 0; }
  .lead-copy { padding: 30px 24px; }
  .lead-copy h2 { font-size: 30px; }
  .lead-image { min-height: 260px; }
  .article figure { margin: 34px 0; }
  .article-body { font-size: 17px; line-height: 1.75; }
  .article-body p { margin: 1.15em auto; }
}

@media (max-width: 520px) {
  .site-header { grid-template-columns: 1fr; }
  .site-nav { justify-content: space-between; order: 3; }
  .header-actions { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Mirror approved A theme */
:root { color-scheme:light; --canvas:#FAFAF8; --surface:#FAFAF8; --ink:#171717; --muted:#606662; --line:#E5E6E4; --accent-ink:#fff; --radius:2px; font-family:"PingFang SC","Noto Sans SC",sans-serif; }
* { letter-spacing:0; }
body { min-width:0; }
h1,h2,h3 { text-wrap:pretty; overflow-wrap:anywhere; }
a,button { touch-action:manipulation; }
button { min-height:44px; }
[hidden] { display:none!important; }
.site-header { max-width:1384px; padding:20px 32px; grid-template-columns:auto 1fr; gap:18px 32px; }
.brand {
 display:grid;
 grid-template-columns:40px auto;
 grid-template-rows:auto auto;
 column-gap:12px;
 align-items:center;
 font-weight:850;
 line-height:1;
}
.brand-mark { display:block; grid-row:1 / 3; width:40px; height:40px; flex:none; background:transparent; }
.brand-name { font-size:32px; line-height:1; }
.brand-latin { align-self:end; color:var(--muted); font:700 10px/1.2 "SFMono-Regular", "Roboto Mono", monospace; }
.site-nav { grid-row:2; grid-column:1/-1; border-top:1px solid var(--line); padding-top:12px; gap:28px; flex-wrap:wrap; }
.site-nav a { min-height:36px; display:flex; align-items:center; font-weight:650; }
.header-actions { min-width:0; }
.header-search { width:280px; gap:10px; }
.header-search input { border:1px solid var(--line); border-radius:2px; }
.header-search button { background:var(--ink); border-color:var(--ink); flex-shrink:0; border-radius:2px; }
.header-search button:hover { background:var(--site-accent); }
.language-switch,.toolbar-rss-btn { border:0; padding:0 4px; }
main { max-width:1384px; padding:32px 32px 56px; }
.mirror-section { padding:0 0 32px; margin-bottom:32px; scroll-margin-top:16px; }
.section-heading { margin-bottom:20px; gap:16px; }
.section-heading h2 { font-size:24px; }
.section-heading a { font-size:14px; }
.mirror-edition { font:12px "SFMono-Regular",monospace; color:var(--muted); }
.mirror-contactsheet { display:grid; grid-template-columns:1.8fr 1fr 1fr; gap:24px; align-items:start; }
.mirror-story { min-width:0; }
.mirror-story a { text-decoration:none; }
.mirror-story a:hover { text-decoration:underline; }
.mirror-story img { width:100%; height:155px; object-fit:cover; }
.mirror-story h3 { font-size:17px; line-height:1.5; margin:0; }
.mirror-story .story-meta { margin:12px 0 6px; font-size:12px; font-weight:500; }
.story-meta time { margin-left:6px; font-variant-numeric:tabular-nums; }
.mirror-lead { grid-row:span 2; }
.mirror-lead-carousel { grid-row:span 2; min-width:0; display:flex; flex-direction:column; touch-action:pan-y; }
.mirror-lead-stage { display:grid; isolation:isolate; flex:1; min-height:0; }
.mirror-lead-carousel .mirror-lead { grid-row:auto; grid-area:1/1; min-width:0; opacity:0; pointer-events:none; transition:opacity 180ms ease; }
.mirror-lead-carousel .mirror-lead[hidden] { display:none; }
.mirror-lead-carousel .mirror-lead[data-active="true"] { opacity:1; pointer-events:auto; z-index:1; }
.mirror-lead img { height:430px; object-position:center 25%; }
.mirror-lead h3 { font-size:26px; }
.mirror-carousel-controls { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin-top:12px; border-top:1px solid var(--line); }
.mirror-carousel-controls > span { font-size:12px; font-variant-numeric:tabular-nums; color:var(--muted); }
.mirror-carousel-controls > div { display:flex; gap:2px; }
.mirror-carousel-controls button { display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:0; background:transparent; cursor:pointer; }
.mirror-carousel-controls button:hover { color:var(--site-accent); }
.mirror-carousel-controls .control-icon { width:18px; height:18px; }
@media (prefers-reduced-motion: reduce) {
  .mirror-lead-carousel .mirror-lead { transition: none; }
}
.mirror-contactsheet[data-count="1"] { grid-template-columns:minmax(0,760px); }
.mirror-contactsheet[data-count="2"] { grid-template-columns:1.6fr 1fr; }
.mirror-updates,.mirror-original { border-top:1px solid var(--line); padding-top:28px; }
.mirror-update-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.mirror-update-grid>.empty-state { grid-column:1/-1; }
.mirror-update-grid h3 { font-size:16px; line-height:1.5; margin:0; }
.update-image { display:block; margin-bottom:12px; }
.update-image img { width:100%; height:140px; object-fit:cover; }
.mirror-update-grid a { text-decoration:none; }
.mirror-update-grid a:hover { text-decoration:underline; }
.mirror-topic-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px 24px; }
.mirror-topic-grid img { height:auto; aspect-ratio:1; }
.channel-tabs { gap:24px; }
.channel-tabs button { border:0; border-bottom:3px solid transparent; background:none; border-radius:0; color:var(--muted); padding:8px 4px; }
.channel-tabs button[aria-selected="true"] { background:none; color:var(--ink); border-bottom-color:var(--site-accent); }
.empty-state { border:0; padding:16px 0; background:none; border-radius:0; color:var(--muted); }
.mirror-library { background:#F2F3F1; padding:28px 32px; }
.archive-gateway-form { max-width:680px; }
.archive-gateway-form input { border:1px solid var(--line); }
.archive-gateway-form button { background:var(--ink); white-space:nowrap; }
.archive-gateway-count { font-size:13px; }
.page-intro { margin-bottom:32px; }
.page-intro h1 { font-size:36px; }
.article>header h1 { font-size:40px; line-height:1.35; }
.article figure { margin:32px 0; }
.article figure img { aspect-ratio:auto; object-fit:contain; }
.article-body { overflow-wrap:anywhere; }
.article-body img { height:auto; }
.article-body table { display:block; overflow:auto; max-width:100%; }
.reading-table { overflow-x: auto; max-width: 100%; }
.reading-table table { display: table; border-collapse: collapse; min-width: 100%; }
.reading-table th,.reading-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-meta { flex-wrap:wrap; gap:8px 20px; }
.archive-list { gap:0 40px; }
.archive-list h2 { font-size:22px; line-height:1.5; }
.site-footer { max-width:1384px; padding:28px 32px; font-size:13px; }
.contact-popover,.language-suggestion { border-radius:4px; }
.contact-popover-kicker { letter-spacing:0; }
@media(max-width:1000px) {
 .site-header { grid-template-columns:auto 1fr; }
 .header-actions { grid-column:auto; justify-content:flex-end; flex-wrap:wrap; }
 .header-search { width:240px; }
 .mirror-contactsheet { grid-template-columns:1.4fr 1fr 1fr; gap:16px; }
 .mirror-lead h3 { font-size:23px; }
 .mirror-topic-grid,.mirror-update-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
 .site-header { padding:16px; gap:10px; grid-template-columns:1fr; }
 .brand { grid-template-columns:34px auto; column-gap:9px; }
 .brand-mark { width:34px; height:34px; }
 .brand-name { font-size:28px; }
 .brand-latin { display:none; }
 .header-actions { grid-row:2; grid-column:1; display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:8px; justify-content:stretch; }
 .site-nav { grid-row:3; grid-column:1; order:initial; gap:20px; justify-content:flex-start; }
 .header-search { width:100%; }
 .header-search input { width:100%; }
 .language-switch,.toolbar-rss-btn { min-height:44px; height:44px; padding:0 6px; font-size:12px; }
 main { padding:24px 16px 40px; }
 .section-heading { flex-direction:row; align-items:center; }
 .section-heading h2 { font-size:21px; }
 .mirror-edition { font-size:10px; }
 .mirror-contactsheet,.mirror-contactsheet[data-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; }
 .mirror-lead { grid-column:1/-1; grid-row:auto; }
 .mirror-lead-carousel { grid-column:1/-1; grid-row:auto; }
 .mirror-lead img { height:240px; }
 .mirror-story:not(.mirror-lead) img { height:132px; }
 .mirror-story h3 { font-size:16px; }
 .mirror-lead h3 { font-size:23px; }
 .mirror-update-grid,.mirror-topic-grid { gap:20px 12px; }
 .mirror-section { padding-bottom:24px; margin-bottom:24px; }
 .mirror-library { padding:24px 16px; }
 .site-footer { padding:24px 16px; }
 .article>header h1 { font-size:30px; }
 .page-intro h1 { font-size:30px; }
 .archive-list { grid-template-columns:1fr; }
}
