/* Daily briefing — reader stylesheet (offline, no JS, no external assets). */

:root {
  color-scheme: light;
  --ink: #1b2733;
  --ink-soft: #3d4c5a;
  --muted: #6c7c8a;
  --faint: #93a2af;
  --paper: #f3f6f8;
  --card: #ffffff;
  --line: #e4eaf0;
  --line-strong: #cfd9e3;
  --accent: #0f766e;
  --accent-ink: #0b5f59;
  --accent-soft: #e6f4f1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 36, 52, .05), 0 10px 26px rgba(18, 36, 52, .05);
  --measure: 800px;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

.shell {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 20px 0 64px;
}

/* --- masthead / intro ---------------------------------------------------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.intro { padding: 46px 0 26px; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.history-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.history-link:hover, footer a:hover, .brand:hover { text-decoration: underline; }

/* --- report surface ------------------------------------------------------ */
.report {
  max-width: var(--measure);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4.4vw, 46px);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}

.report > h1 {
  margin: 0 0 1.1em;
  font-size: 1.7rem;
  line-height: 1.3;
}

.report h2 {
  margin: 2.2em 0 .9em;
  padding-bottom: .38em;
  border-bottom: 1px solid var(--line);
  font-size: 1.28rem;
  line-height: 1.35;
}

.report h2:first-of-type { margin-top: 1.1em; }

.report h3 { font-size: 1.1rem; line-height: 1.4; margin: 1.6em 0 .6em; }

.report p { margin: .85em 0; }

.report a {
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report code {
  background: #edf2f4;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: .9em;
}

.report blockquote {
  margin: 1em 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--accent-soft);
  color: var(--ink-soft);
}

.report ul, .report ol { margin: .8em 0; padding-left: 1.3em; }
.report li { margin: .35em 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8em 0;
}

/* --- news card ----------------------------------------------------------- */
.news-item {
  position: relative;
  margin: 0 0 16px;
  padding: clamp(15px, 3.2vw, 22px) clamp(15px, 3.2vw, 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-soft);
  border-radius: var(--radius-sm);
}

.news-item:last-child { margin-bottom: 0; }

.news-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.news-index {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.news-heading { overflow-wrap: anywhere; }

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}

.meta-part { overflow-wrap: anywhere; }
.meta-part + .meta-part::before {
  content: "·";
  margin: 0 7px;
  color: var(--faint);
}

.news-field {
  margin: .7em 0 0;
  font-size: .96rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.news-field .field-text { overflow-wrap: anywhere; }

.field-label {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: 1px;
}

.news-why .field-label { background: #eef1f5; color: #4d5c6b; }

.news-extra { margin: .7em 0 0; font-size: .96rem; color: var(--ink-soft); }

/* --- sources ------------------------------------------------------------- */
.news-sources { margin-top: 12px; }

.source-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.source-list li {
  margin: 0;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--muted);
}

.source-link {
  color: var(--accent) !important;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-link:hover { text-decoration: underline; }

/* --- status badge -------------------------------------------------------- */
.news-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-top: 12px; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.badge--positive { background: #e7f6ec; color: #1c6b3a; border-color: #bfe3cb; }
.badge--warning  { background: #fdecec; color: #a8322f; border-color: #f3c9c7; }
.badge--platform { background: #fff5e0; color: #8a5a12; border-color: #f1dcae; }
.badge--single   { background: #eef2f6; color: #4a5866; border-color: #d7dfe8; }
.badge--pending  { background: #fff8e1; color: #7a6212; border-color: #ecdfa8; }
.badge--neutral  { background: #eef2f6; color: #4a5866; border-color: #d7dfe8; }

.badge-note { color: var(--muted); font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }

/* --- footer -------------------------------------------------------------- */
footer { color: var(--muted); font-size: .85rem; padding: 26px 0 0; text-align: center; }
footer a { color: var(--accent); text-decoration: none; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.7; }
  .shell { width: calc(100% - 24px); padding-top: 14px; }
  .intro { padding: 30px 0 18px; }
  .report { padding: 18px 15px; border-radius: 10px; }
  .report > h1 { font-size: 1.4rem; }
  .report h2 { font-size: 1.16rem; }
  .news-title { font-size: 1.04rem; }
  .news-item { padding: 15px 14px; }
}

@media (min-width: 720px) {
  .shell { padding-top: 30px; }
}
