/* =========================================================
   Published article layouts 鈥?four editorial templates
   Scoped under .article-page so it can render in an iframe,
   a modal, or a full document.
   ========================================================= */
.article-page {
  --accent: #7c3aed;
  --font-scale: 1;
  --paper: #fbfaf7;
  --paper-ink: #23211d;
  --paper-muted: #787269;
  --paper-line: #e8e3d9;
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.article-page *,
.article-page *::before,
.article-page *::after { box-sizing: border-box; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 20;
  background: transparent;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.preview-strip {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 18px;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #6c6a63;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(40, 36, 28, 0.08);
  backdrop-filter: blur(12px);
}
.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2fba8b;
  box-shadow: 0 0 0 3px rgba(47, 186, 139, 0.12);
}
.preview-sep { color: #c3bfb5; }
.preview-strip .preview-brand { color: #3d394d; font-weight: 650; letter-spacing: 0.03em; }
.preview-strip a {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 550;
}
.preview-strip a:hover { text-decoration: underline; }

.article-shell {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.article-head { margin-bottom: 30px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 17px; height: 1px; background: currentColor; }
.kicker.video-kicker {
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  letter-spacing: 0.1em;
}
.kicker.video-kicker::before { content: "▶"; width: auto; height: auto; background: none; font-size: 7px; line-height: 1; }
.tpl-dark .kicker.video-kicker { background: rgba(34, 211, 238, 0.1); }
.article-head h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--paper-ink);
  text-wrap: balance;
}
.dek {
  margin: 17px 0 0;
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #69655c;
}
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--paper-line);
  font-size: 11px;
  color: #928c80;
}
.byline .author { color: #4b463d; font-weight: 600; }
.byline-dot { width: 3px; height: 3px; border-radius: 50%; background: #c9c4b8; }

.hero {
  margin: 0 0 34px;
  border-radius: 4px;
  overflow: hidden;
  background: #ece8df;
}
.hero img { width: 100%; display: block; aspect-ratio: 16 / 8.5; object-fit: cover; }

.article-toc {
  margin: 28px 0 34px;
  padding: 17px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.48);
  border-radius: 0 6px 6px 0;
}
.toc-title {
  margin-bottom: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin: 4px 0; font-size: 12px; line-height: 1.6; }
.article-toc li.toc-level-3 { padding-left: 18px; }
.article-toc a { color: #575249; text-decoration: none; display: inline-flex; gap: 8px; }
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  color: #a9a294;
  padding-top: 3px;
}
.article-toc a:hover { color: var(--accent); }

.article-body { font-size: 1em; line-height: 1.95; }
.article-body > p { margin: 0 0 1.45em; }
.article-body p.lead, .article-body > p:first-of-type.lead {
  font-size: 1.14em;
  line-height: 1.85;
  color: #45413a;
}
.article-body h2 {
  margin: 2.1em 0 0.7em;
  font-size: 1.62em;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.article-body h3 {
  margin: 1.7em 0 0.6em;
  font-size: 1.24em;
  line-height: 1.5;
  font-weight: 650;
}
.article-body h4 { margin: 1.4em 0 0.5em; font-size: 1.08em; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body strong { font-weight: 700; color: #1d1b18; }
.article-body em { font-style: italic; }
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: #575249;
  font-size: 1.07em;
  line-height: 1.9;
}
.article-body blockquote p { margin: 0.45em 0; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.article-body li { margin: 0.40em 0; padding-left: 3px; }
.article-body li::marker { color: var(--accent); }
.article-body li.task { list-style: none; margin-left: -1.3em; }
.article-body li.task input { accent-color: var(--accent); margin-right: 5px; }
.article-body hr { border: 0; height: 1px; background: var(--paper-line); margin: 2.6em 0; }
.article-body figure { margin: 2em 0; }
.article-body figure img { width: 100%; display: block; }
.article-body figcaption {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.6;
  color: #938d81;
  text-align: center;
}
.article-body img { max-width: 100%; height: auto; }
.article-body video { width: 100%; display: block; border-radius: 4px; background: #000; margin: 1.5em 0; }
.article-body code {
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  font-size: 0.84em;
  background: rgba(30, 28, 23, 0.055);
  padding: 2px 5px;
  border-radius: 3px;
}
.article-body pre {
  margin: 1.8em 0;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 6px;
  background: #201f1c;
  color: #ece8df;
  font-size: 12px;
  line-height: 1.7;
}
.article-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.88em;
  line-height: 1.65;
}
.article-body th, .article-body td {
  padding: 9px 11px;
  border: 1px solid var(--paper-line);
  text-align: left;
  vertical-align: top;
}
.article-body th { background: rgba(255, 255, 255, 0.5); font-weight: 650; font-size: 0.94em; }
.article-body tr:nth-child(even) td { background: rgba(255, 255, 255, 0.3); }

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}
.article-footer .tag {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #6b665c;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--paper-line);
  padding: 3px 8px;
  border-radius: 20px;
}
.article-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 48px;
  color: #b4aea2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
}
.article-end span { width: 36px; height: 1px; background: var(--paper-line); }
.article-end b { font-weight: 500; }

/* Option: rounded images */
.article-page.opt-rounded .hero { border-radius: 14px; }
.article-page.opt-rounded .article-body img { border-radius: 10px; }
.article-page.opt-rounded .article-body figure img { border-radius: 10px; }

/* Option: drop cap */
.article-page.opt-dropcap .article-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em -0.05em 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 3.7em;
  line-height: 0.82;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Template: editorial (magazine) ---------- */
.article-page.tpl-editorial { --paper: #fbfaf7; }
.tpl-editorial .article-shell { padding-top: 30px; }
.tpl-editorial .hero { margin-top: 2px; }
.tpl-editorial .article-head h1 {
  font-family: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", Georgia, serif;
  font-weight: 700;
  font-size: clamp(35px, 5.8vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.tpl-editorial .article-body h2 {
  font-family: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", Georgia, serif;
  font-weight: 700;
}
.tpl-editorial .dek { font-family: "Songti SC", Georgia, serif; font-size: 16px; }
.tpl-editorial .kicker { color: var(--accent); }
.tpl-editorial .article-body > p:first-of-type:not(.lead)::first-letter {
  font-family: "Songti SC", Georgia, serif;
}

/* ---------- Template: minimal (tech) ---------- */
.article-page.tpl-minimal {
  --paper: #ffffff;
  --paper-line: #eceef2;
  --paper-muted: #777d8c;
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(37, 99, 235, 0.045), transparent 60%),
    #fff;
}
.tpl-minimal .article-shell { padding-top: 44px; }
.tpl-minimal .article-head { position: relative; padding-top: 22px; }
.tpl-minimal .article-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.tpl-minimal .article-head h1 {
  font-size: clamp(33px, 4.9vw, 46px);
  font-weight: 680;
  letter-spacing: -0.04em;
}
.tpl-minimal .kicker { letter-spacing: 0.2em; font-weight: 650; }
.tpl-minimal .dek { color: #6f7585; font-size: 15px; }
.tpl-minimal .byline { border-top-color: #eceef2; color: #8f95a3; }
.tpl-minimal .hero { margin-bottom: 32px; border-radius: 4px; }
.tpl-minimal .article-body h2 { font-size: 1.55em; letter-spacing: -0.025em; }
.tpl-minimal .article-body blockquote {
  border-left: 0;
  border-top: 1px solid #e4e7ee;
  border-bottom: 1px solid #e4e7ee;
  padding: 20px 4px;
  margin: 2em 0;
  color: #303645;
  font-size: 1.12em;
  font-weight: 500;
  text-align: center;
}
.tpl-minimal .article-toc { background: #f7f9fd; border-left: 2px solid var(--accent); }
.tpl-minimal .article-body th { background: #f7f8fb; }
.tpl-minimal .article-footer .tag { background: #f8f9fc; border-color: #eceef2; }
.tpl-minimal .article-end { color: #b9bfcb; }
.tpl-minimal .article-end span { background: #eceef2; }

/* ---------- Template: newsletter (briefing) ---------- */
.article-page.tpl-newsletter {
  --paper: #f7f5ef;
  --paper-line: #dfdbcf;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    repeating-linear-gradient(0deg, transparent, transparent 43px, rgba(60, 54, 40, 0.025) 43px, rgba(60, 54, 40, 0.025) 44px),
    #f7f5ef;
}
.tpl-newsletter .article-shell { width: min(100% - 40px, 680px); padding-top: 36px; }
.tpl-newsletter .article-head { text-align: center; padding-bottom: 4px; }
.tpl-newsletter .kicker { justify-content: center; }
.tpl-newsletter .kicker::before, .tpl-newsletter .kicker::after { content: ""; width: 17px; height: 1px; background: currentColor; }
.tpl-newsletter .article-head h1 {
  font-family: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", Georgia, serif;
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
}
.tpl-newsletter .dek { margin-left: auto; margin-right: auto; font-size: 14.5px; color: #777064; }
.tpl-newsletter .byline { justify-content: center; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); padding: 10px 0; margin-top: 18px; }
.tpl-newsletter .hero { margin: 24px 0 28px; border-radius: 2px; }
.tpl-newsletter .hero img { aspect-ratio: 16 / 9; }
.tpl-newsletter .article-body { font-size: 0.99em; line-height: 1.92; }
.tpl-newsletter .article-body h2 {
  margin-top: 1.7em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-line);
  font-family: "Songti SC", Georgia, serif;
  font-size: 1.36em;
}
.tpl-newsletter .article-body h2::before {
  content: "搂";
  color: var(--accent);
  font-size: 0.8em;
  margin-right: 7px;
  vertical-align: 2px;
}
.tpl-newsletter .article-body blockquote {
  border-left: 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  text-align: center;
  padding: 16px 14px;
  font-family: "Songti SC", Georgia, serif;
  color: #5f594e;
}
.tpl-newsletter .article-toc { background: rgba(255, 255, 255, 0.42); }
.tpl-newsletter .article-body figure img { border: 4px solid rgba(255, 255, 255, 0.65); }
.tpl-newsletter .article-footer { justify-content: center; }
.tpl-newsletter .article-footer .tag { background: transparent; }

/* ---------- Template: brand (story) ---------- */
.article-page.tpl-brand {
  --paper: #fffaf8;
  --paper-line: #f0e2dd;
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(219, 39, 119, 0.05), transparent 60%),
    #fffaf8;
}
.tpl-brand .article-shell { width: min(100% - 40px, 780px); padding-top: 26px; }
.tpl-brand .hero { width: calc(100% + 100px); margin-left: -50px; margin-right: 0; border-radius: 0 0 22px 22px; }
.tpl-brand .hero img { aspect-ratio: 16 / 7.4; }
.tpl-brand .article-head { margin-top: 22px; }
.tpl-brand .article-head h1 {
  font-size: clamp(34px, 5.2vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.tpl-brand .kicker { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); padding: 3px 9px; border-radius: 20px; letter-spacing: 0.1em; }
.tpl-brand .kicker::before { display: none; }
.tpl-brand .dek { font-size: 16px; color: #7c6a64; }
.tpl-brand .article-body h2 {
  font-size: 1.5em;
  color: #382c29;
}
.tpl-brand .article-body blockquote {
  border-left: 0;
  padding: 22px 26px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(219, 39, 119, 0.055), rgba(249, 115, 22, 0.045));
  color: #5f4a44;
  font-size: 1.08em;
}
.tpl-brand .article-toc { border-left: 0; border-top: 3px solid var(--accent); border-radius: 0 0 8px 8px; background: rgba(255, 255, 255, 0.7); }
.tpl-brand .article-body table { border-radius: 8px; overflow: hidden; }
.tpl-brand .article-footer .tag { background: #fff; }
.tpl-brand .article-end b { color: var(--accent); }

/* ---------- Template: business (report) ---------- */
.article-page.tpl-business {
  --paper: #ffffff;
  --paper-line: #e4e9f2;
  --paper-muted: #64748b;
  background: #fff;
}
.tpl-business .article-shell { width: min(100% - 40px, 820px); padding-top: 34px; }
.tpl-business .article-head {
  padding-top: 25px;
  border-top: 6px solid #1d4ed8;
  margin-bottom: 26px;
}
.tpl-business .kicker { color: #1d4ed8; letter-spacing: 0.18em; }
.tpl-business .article-head h1 {
  font-size: clamp(31px, 4.4vw, 44px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.tpl-business .dek { color: #5c6b85; font-size: 15px; }
.tpl-business .byline { border-top-color: #e4e9f2; color: #7c8aa1; }
.tpl-business .hero { margin-bottom: 28px; border-radius: 3px; background: #eef2f8; }
.tpl-business .hero img { aspect-ratio: 16 / 7.5; }
.tpl-business .article-body h2 {
  padding-bottom: 0.35em;
  border-bottom: 1px solid #e4e9f2;
  font-size: 1.46em;
  letter-spacing: -0.02em;
}
.tpl-business .article-body h3 { color: #1e3a8a; font-size: 1.15em; }
.tpl-business .article-body blockquote {
  border-left: 0;
  border-top: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
  background: #f6f9ff;
  padding: 16px 18px;
  color: #3f4f68;
  font-size: 1.02em;
}
.tpl-business .article-body th { background: #1e293b; color: #fff; border-color: #1e293b; }
.tpl-business .article-body td { border-color: #e4e9f2; }
.tpl-business .article-body tr:nth-child(even) td { background: #f8fafd; }
.tpl-business .article-toc { background: #f6f9ff; border-left: 3px solid #1d4ed8; }
.tpl-business .article-footer .tag { background: #f6f9ff; border-color: #dbe3ef; color: #4f6080; }
.tpl-business .article-end { color: #9aa8bc; }

/* ---------- Template: dark (night) ---------- */
.article-page.tpl-dark {
  --paper: #0d1117;
  --paper-ink: #e6edf3;
  --paper-line: #30363d;
  --paper-muted: #8b949e;
  background:
    radial-gradient(800px 420px at 90% -8%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(700px 420px at 0% 18%, rgba(124, 92, 255, 0.12), transparent 62%),
    #0d1117;
}
.tpl-dark .preview-strip { background: rgba(13, 17, 23, 0.9); color: #8b949e; border-bottom-color: rgba(255, 255, 255, 0.08); }
.tpl-dark .preview-strip .preview-brand { color: #e6edf3; }
.tpl-dark .preview-strip a { color: #22d3ee; }
.tpl-dark .article-head h1 { color: #f0f6fc; font-weight: 650; }
.tpl-dark .kicker { color: #22d3ee; }
.tpl-dark .dek { color: #9aa5b1; }
.tpl-dark .byline { border-top-color: #30363d; color: #7d8590; }
.tpl-dark .byline .author { color: #c9d1d9; }
.tpl-dark .hero { background: #161b22; border: 1px solid #30363d; }
.tpl-dark .article-body { color: #c9d1d9; }
.tpl-dark .article-body a { color: #67e8f9; }
.tpl-dark .article-body strong { color: #f0f6fc; }
.tpl-dark .article-body h2, .tpl-dark .article-body h3 { color: #f0f6fc; }
.tpl-dark .article-body blockquote {
  background: #161b22;
  border-left-color: #22d3ee;
  color: #c9d1d9;
}
.tpl-dark .article-body code { background: rgba(110, 118, 129, 0.25); color: #e6edf3; }
.tpl-dark .article-body pre { background: #161b22; border: 1px solid #30363d; color: #e6edf3; }
.tpl-dark .article-body th { background: #161b22; color: #e6edf3; border-color: #30363d; }
.tpl-dark .article-body td { border-color: #30363d; }
.tpl-dark .article-body tr:nth-child(even) td { background: #11161d; }
.tpl-dark .article-toc { background: #161b22; border-left-color: #22d3ee; }
.tpl-dark .article-toc a { color: #9aa5b1; }
.tpl-dark .article-toc a:hover { color: #67e8f9; }
.tpl-dark .article-footer .tag { background: #161b22; border-color: #30363d; color: #8b949e; }
.tpl-dark .article-end { color: #484f58; }
.tpl-dark .article-end span { background: #30363d; }
.tpl-dark .article-body figcaption { color: #7d8590; }

/* ---------- Template: lifestyle ---------- */
.article-page.tpl-lifestyle {
  --paper: #fdf9f3;
  --paper-line: #eadfd0;
  --paper-muted: #8b7b68;
  background:
    radial-gradient(680px 420px at 100% 0%, rgba(217, 119, 6, 0.055), transparent 60%),
    #fdf9f3;
}
.tpl-lifestyle .article-shell { width: min(100% - 40px, 780px); padding-top: 42px; }
.tpl-lifestyle .article-head h1 {
  font-family: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif SC", Georgia, serif;
  font-size: clamp(33px, 5vw, 47px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.tpl-lifestyle .kicker { color: #b45309; letter-spacing: 0.2em; }
.tpl-lifestyle .dek {
  font-family: "Songti SC", Georgia, serif;
  color: #7c6a57;
  font-size: 16px;
}
.tpl-lifestyle .byline { border-top-color: #eadfd0; color: #a08f7c; }
.tpl-lifestyle .hero { border-radius: 22px; background: #efe4d4; }
.tpl-lifestyle .hero img { aspect-ratio: 16 / 9.4; }
.tpl-lifestyle .article-body { color: #453b31; }
.tpl-lifestyle .article-body h2 {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1.5em;
  letter-spacing: -0.01em;
}
.tpl-lifestyle .article-body h3 { color: #6b4a2b; }
.tpl-lifestyle .article-body blockquote {
  border-left: 0;
  text-align: center;
  padding: 20px 12px;
  border-top: 1px solid #eadfd0;
  border-bottom: 1px solid #eadfd0;
  font-family: "Songti SC", Georgia, serif;
  color: #7a6754;
  font-size: 1.08em;
}
.tpl-lifestyle .article-toc { background: rgba(255, 252, 246, 0.8); border-left: 2px solid #b45309; }
.tpl-lifestyle .article-body th { background: #fbf3e8; }
.tpl-lifestyle .article-footer .tag { background: #fffaf2; border-color: #eadfd0; color: #866f58; }
.tpl-lifestyle .article-end { color: #b6a793; }

/* ---------- Template: docs ---------- */
.article-page.tpl-docs {
  --paper: #ffffff;
  --paper-line: #e6e8ee;
  --paper-muted: #6b7280;
  background: #fff;
}
.tpl-docs .article-shell { width: min(100% - 40px, 790px); padding-top: 38px; }
.tpl-docs .article-head h1 {
  font-size: clamp(29px, 4.1vw, 39px);
  line-height: 1.3;
  font-weight: 680;
  letter-spacing: -0.03em;
}
.tpl-docs .kicker { color: #0f766e; letter-spacing: 0.17em; }
.tpl-docs .dek { color: #5e6673; font-size: 14.5px; }
.tpl-docs .byline { font-family: "SFMono-Regular", Consolas, monospace; font-size: 9.5px; border-top-color: #e6e8ee; color: #8b919d; }
.tpl-docs .hero { border-radius: 4px; background: #f1f4f7; }
.tpl-docs .hero img { aspect-ratio: 16 / 7; }
.tpl-docs .article-body { font-size: 0.96em; line-height: 1.9; color: #343a46; }
.tpl-docs .article-body h2 {
  padding-left: 12px;
  border-left: 3px solid #0f766e;
  font-size: 1.4em;
  font-weight: 650;
  line-height: 1.45;
}
.tpl-docs .article-body h3 { font-size: 1.12em; color: #0f766e; }
.tpl-docs .article-body h4 { font-size: 1em; }
.tpl-docs .article-body code { background: #f3f4f6; color: #0f766e; }
.tpl-docs .article-body pre { background: #1f2937; color: #e5e7eb; border-radius: 8px; }
.tpl-docs .article-body blockquote {
  background: #f8fafb;
  border-left: 3px solid #94a3b8;
  color: #4b5563;
  font-size: 0.98em;
}
.tpl-docs .article-body th { background: #f3f6f8; border-color: #dfe4ea; }
.tpl-docs .article-body td { border-color: #e6e8ee; }
.tpl-docs .article-toc { background: #f8fafb; border-left: 2px solid #0f766e; }
.tpl-docs .article-footer .tag { background: #f8fafb; border-color: #e6e8ee; color: #5b6472; }
.tpl-docs .article-end { color: #a6adb8; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .article-shell, .tpl-newsletter .article-shell, .tpl-brand .article-shell { width: calc(100% - 32px); padding-top: 34px; padding-bottom: 54px; }
  .tpl-brand .hero { margin-left: 0; margin-right: 0; border-radius: 0 0 14px 14px; }
  .article-head h1 { font-size: clamp(28px, 8vw, 38px); }
  .tpl-editorial .article-head h1 { font-size: clamp(29px, 8vw, 40px); }
  .dek { font-size: 14.5px; }
  .article-body { font-size: 0.98em; line-height: 1.9; }
  .article-body h2 { font-size: 1.45em; }
  .byline { font-size: 10px; gap: 6px; }
  .preview-strip { padding-left: 13px; padding-right: 13px; }
  .article-toc { padding: 14px 15px; }
  .article-body table { font-size: 0.8em; }
  .article-body th, .article-body td { padding: 7px 8px; }
}

