:root {
  --bg: #eceee9;
  --paper: #ffffff;
  --ink: #1e2022;
  --muted: #4a4e51;
  --line: #d8ddd7;
  --blue: #4b6584;
  --green: #57606f;
  --moss: #5f6f61;
  --oat: #f5f4ef;
  --amber: #a7804e;
  --shadow: 0 14px 32px rgba(30, 32, 34, 0.075);
  --radius: 8px;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(30,32,34,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,32,34,.026) 1px, transparent 1px),
    radial-gradient(circle at 25% 12%, rgba(255,255,255,.72), transparent 32%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, 100% 100%, auto;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(236,238,233,.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(30,32,34,.14); }
.nav-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 6px; background: var(--paper); color: var(--blue); font-size: 18px; box-shadow: inset 0 0 0 3px var(--oat); }
img.brand-mark { object-fit: cover; padding: 0; box-shadow: none; background: var(--paper); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.site-nav a, .nav-download { min-height: 38px; padding: 8px 11px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font: inherit; white-space: nowrap; }
.site-nav a:hover, .nav-download:hover { background: rgba(75,101,132,.1); color: var(--ink); }
.nav-download { border: 1px solid rgba(75,101,132,.32); background: var(--paper); color: var(--blue); }
.section, .hero-inner, .footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { min-height: 86vh; display: flex; align-items: center; padding: 54px 0 34px; }
.hero-inner { display: grid; grid-template-columns: minmax(0,.95fr) minmax(420px,1.05fr); gap: 34px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--blue); font-size: 13px; font-weight: 700; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--blue); }
h1, h2, h3 { line-height: 1.22; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 76px); max-width: 9em; }
.hero-subtitle { margin: 18px 0 0; font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); max-width: 680px; }
.hero-copy { margin: 20px 0 0; max-width: 720px; font-size: 16px; color: #33383b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius); border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; font: inherit; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(75,101,132,.18); }
.hero-media { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(30,32,34,.22); box-shadow: var(--shadow); background: var(--paper); aspect-ratio: 16 / 10; padding: 10px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 0; border: 10px solid rgba(255,255,255,.72); pointer-events: none; }
.dossier-strip { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dossier-strip span { padding: 9px 10px; border: 1px solid rgba(30,32,34,.14); background: rgba(245,244,239,.92); color: var(--ink); border-radius: 6px; font-size: 12px; font-weight: 800; text-align: center; }
.section { padding: 58px 0; }
.section.compact { padding-top: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); }
.section-head h2::after, .article-block h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 700px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card, .fact-panel, .timeline-item, .faq-item, .article-block { position: relative; background: rgba(255,255,255,.97); border: 1px solid rgba(30,32,34,.14); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(30,32,34,.045); }
.card { padding: 20px; }
.card::before, .article-block::before, .fact-panel::before { content: ""; position: absolute; left: 14px; top: -1px; width: 54px; height: 3px; background: var(--blue); border-radius: 0 0 3px 3px; opacity: .8; }
.card h3, .article-block h2, .article-block h3 { margin-top: 0; }
.card h3 { color: var(--ink); }
.card h3::before, .faq-item h3::before {
  content: "//";
  margin-right: 8px;
  color: var(--blue);
  font-weight: 800;
}
.card p, .article-block p, .faq-item p { color: #3c4245; margin-bottom: 0; }
.card ul, .article-block ul, .article-block ol { padding-left: 20px; color: #34393c; }
.media-card { overflow: hidden; padding: 0; }
.media-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-card .card-body { padding: 18px; }
.media-card::before { width: 72px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 5px 9px; border: 1px solid rgba(75,101,132,.22); border-radius: 999px; background: var(--oat); color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.fact-panel { padding: 22px; }
.fact-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fact-list div { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--oat); }
.fact-list dt { color: var(--muted); font-size: 13px; }
.fact-list dd { margin: 2px 0 0; font-weight: 800; }
.callout { padding: 22px; border-left: 4px solid var(--blue); background: rgba(75,101,132,.08); border-radius: var(--radius); }
.timeline { display: grid; gap: 12px; }
.timeline-item { padding: 16px 18px; display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.timeline-item strong { color: var(--blue); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.article-hero { padding: 46px 0 26px; }
.article-hero h1 { max-width: 980px; font-size: clamp(34px, 5.8vw, 62px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-top: 18px; font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.article-block { padding: 24px; margin-bottom: 16px; }
.article-block > img, .article-block .grid img {
  border: 1px solid rgba(30,32,34,.16);
  border-radius: 6px;
  background: var(--oat);
  padding: 6px;
}
.side-panel { position: sticky; top: 88px; display: grid; gap: 12px; }
.index-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--blue); font-weight: 700; }
.friend-links { display: flex; flex-wrap: wrap; gap: 10px; }
.friend-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--muted); }
.site-footer { padding: 38px 0; border-top: 1px solid rgba(30,32,34,.1); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.download-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); transition: opacity .2s ease, transform .2s ease; z-index: 100; }
.download-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a, .nav-download { justify-content: flex-start; width: 100%; }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-inner, .facts, .article-layout { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid.three, .grid.four, .grid.five, .grid.two { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
@media (max-width: 560px) {
  .section, .hero-inner, .footer-inner, .nav-wrap { width: min(100% - 24px, 1180px); }
  .hero { padding-bottom: 18px; }
  .dossier-strip { position: static; padding: 10px; grid-template-columns: 1fr; background: #fff; }
  .hero-media { aspect-ratio: auto; background: #fff; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .fact-list { grid-template-columns: 1fr; }
  .article-block, .card, .fact-panel { padding: 18px; }
}

/* Protocol-only additions for generated news and managed download confirmation. */
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 18px; background: rgba(30,32,34,.66); backdrop-filter: blur(8px); }
.download-confirm-panel { width: min(460px,100%); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.download-confirm-panel h2 { margin: 0 0 10px; line-height: 1.2; }
.download-confirm-panel p { margin: 0; color: var(--muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.download-confirm-cancel, .download-confirm-continue { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 800; cursor: pointer; }
.download-confirm-cancel { background: var(--paper); color: var(--ink); }
.download-confirm-continue { border-color: var(--blue); background: var(--blue); color: #fff; }
body.my-news-page { background: var(--bg); }
.my-news-shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 72px; }
.my-news-back { display: inline-flex; margin-bottom: 28px; color: var(--blue); font-weight: 800; }
.my-news-header { margin-bottom: 30px; }
.my-news-header h1 { margin: 0 0 8px; }
.my-news-header p, .my-news-meta { color: var(--muted); }
.my-news-grid { display: grid; gap: 16px; }
.my-news-card, .my-news-article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.my-news-card h2, .my-news-card h3, .my-news-article h1 { margin-top: 0; }
.my-news-card time { display: block; color: var(--muted); font-size: .9rem; }
.my-news-card p, .my-news-content { color: var(--muted); }
.my-news-card a, .my-news-nav a { color: var(--blue); font-weight: 800; }
.my-news-summary { color: var(--ink); font-weight: 700; }
.my-news-content { margin-top: 24px; }
.my-news-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
@media (max-width: 560px) { .my-news-shell { width: min(100% - 24px, 900px); padding: 36px 0 56px; } .download-confirm-actions { justify-content: stretch; } .download-confirm-cancel, .download-confirm-continue { flex: 1 1 120px; } }
