/* Mindanao Daily — news editorial style */
:root {
  --bg: #faf9f7;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #b91c1c;
  --accent-dark: #7f1d1d;
  --navy: #182033;
  --border: #e5e2dd;
  --max: 820px;
  --wide: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

.container { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.header-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; }

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover { color: var(--accent); }

.tagline { font-size: 0.85rem; color: var(--muted); }

.nav { margin-left: auto; display: flex; gap: 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f8fafc;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero h1 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 0.75rem; }
.hero p { opacity: 0.9; max-width: 46rem; font-size: 1rem; }

.eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .eyebrow { color: #fecaca; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary { background: #f8fafc; color: #1e293b; }
.button-secondary { border: 1px solid rgba(248, 250, 252, 0.45); color: #f8fafc; }
.button:hover { transform: translateY(-1px); }

/* Listing */
.section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.project-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.project-highlight h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.project-highlight p { color: var(--muted); max-width: 46rem; }

.project-link {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.card time { font-size: 0.8rem; color: var(--muted); }

.card h2 { font-size: 1.1rem; margin: 0.5rem 0; line-height: 1.4; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }

.excerpt { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.75rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.7rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

/* Article */
.article-page { max-width: var(--max); padding: 2rem 1.25rem 3rem; }

.project-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.project-hero h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.project-hero p { color: var(--muted); margin-bottom: 1rem; }
.project-status { margin: 1rem 0; font-size: 0.95rem; }
.project-keywords { margin-top: 0.75rem; }
.tag-strong { background: #fee2e2; color: #991b1b; }

.breadcrumb {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.answer-box,
.editorial-note,
.evidence-handling,
.entity-panel,
.geo-summary,
.library-intro,
.faq,
.source-notes {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
}

.answer-box {
  border-left: 5px solid var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.answer-box h2,
.editorial-note h2,
.evidence-handling h2,
.entity-panel h2,
.geo-summary h2,
.library-intro h2,
.faq h2,
.source-notes h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.editorial-note,
.evidence-handling {
  background: #fffbeb;
  border-color: #fde68a;
}

.editorial-note p,
.evidence-handling p {
  color: #51422a;
}

.alias-list {
  columns: 2;
  column-gap: 2rem;
  margin-left: 1.25rem;
}

.alias-list li { break-inside: avoid; }

.project-dossier {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
}

.project-dossier h2,
.project-stories h2,
.callout h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.project-stories {
  margin: 2rem 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
}

.project-stories-intro {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.project-story-card {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}

.project-story-card:first-of-type { border-top: 0; }

.project-story-card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0.5rem 0 0.75rem;
}

.story-path-label {
  margin: 0.75rem 0 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-left-width: 5px;
  background: #f8fafc;
}

.story-path-label span {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-path-label p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.story-path-label.path-one {
  border-left-color: #b91c1c;
  background: #fff7f7;
}

.story-path-label.path-one span { color: #991b1b; }

.story-path-label.path-two {
  border-left-color: #1d4ed8;
  background: #eff6ff;
}

.story-path-label.path-two span { color: #1e3a8a; }

.story-path-label.path-open {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.story-path-label.path-open span { color: #92400e; }

.project-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.project-story-meta strong {
  color: var(--accent-dark);
  font-size: 0.85rem;
}

.project-story-facts {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
  padding: 0.8rem;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.project-story-facts div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.7rem;
}

.project-story-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-story-facts dd { font-size: 0.9rem; }

.project-story-text p { margin-bottom: 0.85rem; }

.verification-list {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}

.verification-list h4 {
  margin-bottom: 0.45rem;
  color: #92400e;
  font-size: 0.9rem;
}

.verification-list ul { margin: 0 0 0 1.1rem; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.fact-box {
  padding: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.fact-box span {
  display: block;
  margin-bottom: 0.35rem;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 700;
}

.fact-box strong { display: block; line-height: 1.45; }

.callout {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.project-grid { margin-bottom: 2rem; }

.fraud-pattern {
  margin: 2rem 0;
  padding: 1.25rem;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.fraud-pattern h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.money-path-framework {
  margin: 2rem 0;
  padding: 1.35rem;
  background: #111827;
  color: #f8fafc;
  border: 1px solid #273244;
  border-top: 5px solid var(--accent);
}

.money-path-framework h2 {
  max-width: 46rem;
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.35;
}

.money-path-framework .eyebrow { color: #fecaca; }

.money-path-intro {
  max-width: 52rem;
  color: #cbd5e1;
  margin-bottom: 1.2rem;
}

.money-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.money-path-grid article {
  padding: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}

.money-path-grid h3 {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.money-path-grid p,
.money-path-grid li {
  color: #dbe4ef;
  font-size: 0.94rem;
}

.money-path-grid ol { margin: 0.75rem 0 0 1.2rem; }

.path-pill {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-pill.path-one {
  background: #fee2e2;
  color: #991b1b;
}

.path-pill.path-two {
  background: #dbeafe;
  color: #1e3a8a;
}

.money-path-figure {
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.money-path-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 2px;
}

.money-path-figure figcaption {
  margin-top: 0.55rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.language-switch {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.language-switch a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.english-page p,
.english-page li {
  font-family: Georgia, "Times New Roman", serif;
}

.article-body h1 {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-body > p:first-of-type,
.article-body h1 + p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.article-body h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

.article-body p { margin-bottom: 1rem; }

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1rem 0;
}

.article-body em { display: block; font-size: 0.85rem; color: var(--muted); margin-top: -0.5rem; margin-bottom: 1rem; }

.article-body ul, .article-body ol { margin: 0 0 1rem 1.25rem; }
.article-body li { margin-bottom: 0.35rem; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
  overflow-x: auto;
  display: block;
}

.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.article-body th { background: #f8fafc; }

.article-body a { color: var(--accent); }

.faq details {
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
}

.faq details:first-of-type { border-top: 0; }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq summary:hover { color: var(--accent); }

.faq p { margin: 0.65rem 0 0; color: var(--muted); }

.source-notes {
  background: #f8fafc;
  border-style: dashed;
}

.source-notes li { color: var(--muted); }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.related h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 0.4rem; }
.related a { color: var(--accent); text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 2rem 0;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.disclaimer { margin-top: 0.5rem; font-size: 0.8rem; opacity: 0.85; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.4rem; }
  .article-body h1, .project-hero h1 { font-size: 1.35rem; }
  .nav { width: 100%; margin-left: 0; }
  .project-highlight { display: block; }
  .project-link { display: inline-block; margin-top: 1rem; }
  .button { width: 100%; }
  .alias-list { columns: 1; }
  .answer-box,
  .editorial-note,
  .evidence-handling,
  .entity-panel,
  .geo-summary,
  .library-intro,
  .faq,
  .source-notes,
  .project-dossier,
  .fraud-pattern,
  .money-path-framework,
  .callout { padding: 1rem; }
}
