/* YFcloud Editorial Official — Warm Ivory & Terracotta */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F3EFEA;
  --ink: #1C1917;
  --muted: #57534E;
  --accent: #C2410C;
  --accent-light: #FFEDD5;
  --border: #E7E5E4;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.75; overflow-x: hidden;
}
h1, h2, h3, .serif { font-family: "Georgia", "Noto Serif SC", "Songti SC", serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Masthead */
.ed-masthead {
  background: var(--ink); color: #FAF8F5; text-align: center;
  padding: 7px 16px; font-size: 12px; letter-spacing: 0.6px;
}
.ed-masthead span { color: #FDBA74; font-weight: 700; }

/* Header */
.ed-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.94); backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}
.ed-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.ed-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.ed-brand img { width: 34px; height: 34px; border-radius: 8px; }
.ed-brand-name { font-size: 19px; font-weight: 800; }
.ed-brand-name span { color: var(--accent); font-style: italic; }
.ed-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ed-nav::-webkit-scrollbar { display: none; }
.ed-nav a {
  padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--muted);
  border-radius: 6px; transition: all 0.2s; white-space: nowrap !important; flex-shrink: 0 !important;
}
.ed-nav a:hover, .ed-nav a.active { color: var(--accent); background: var(--accent-light); }
.btn-terracotta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 6px; background: var(--accent); color: #FFF;
  font-size: 14px; font-weight: 700; transition: background 0.2s; border: none; cursor: pointer;
  white-space: nowrap !important; flex-shrink: 0 !important;
}
.btn-terracotta:hover { background: #9A3412; }
.btn-ink-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 6px; border: 1.5px solid var(--ink); color: var(--ink);
  font-size: 14px; font-weight: 700; transition: all 0.2s;
  white-space: nowrap !important; flex-shrink: 0 !important;
}
.btn-ink-outline:hover { background: var(--ink); color: #FFF; }

/* Cover Hero */
.cover-hero { padding: 60px 0 50px; border-bottom: 1px solid var(--border); }
.cover-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: start; }
.issue-tag {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--accent); border-bottom: 2px solid var(--accent);
  padding-bottom: 4px; margin-bottom: 18px;
}
.cover-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.18; margin-bottom: 18px; }
.cover-hero p.lead { font-size: 17px; color: var(--muted); margin-bottom: 26px; }
.metrics-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border);
}
.m-val { font-size: 26px; font-weight: 800; color: var(--accent); font-family: Georgia, serif; }
.m-lbl { font-size: 12px; color: var(--muted); }

.sidebar-digest { background: var(--surface); border: 1.5px solid var(--ink); padding: 24px; border-radius: 8px; box-shadow: 6px 6px 0 var(--ink); }
.digest-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.digest-item:last-child { border-bottom: none; }
.digest-meta { font-size: 12px; color: var(--accent); font-weight: 700; }
.digest-title { font-size: 15px; font-weight: 700; margin-top: 4px; display: block; }
.digest-title:hover { color: var(--accent); }

/* Sections & Cards */
.section { padding: 60px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.filter-pill.active { background: var(--ink); color: #FFF; border-color: var(--ink); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 26px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08); }
.art-cat { font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 10px; letter-spacing: 0.5px; }
.art-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.art-excerpt { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.art-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }

/* Benchmark Chart */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 30px; }
.bar-row { margin-bottom: 16px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.bar-track { height: 12px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #C2410C, #EA580C); border-radius: 999px; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; }
.price-box.pop { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(194,65,12,0.1); }
.price-num { font-size: 36px; font-weight: 800; color: var(--accent); font-family: Georgia, serif; margin: 12px 0; }
.price-ul { list-style: none; margin: 14px 0 24px; flex: 1; font-size: 14px; color: var(--muted); }
.price-ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); }

/* Table */
.ed-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--surface-alt); font-weight: 700; }

/* Ecosystem & Footer */
.yf-eco-section { padding: 50px 0; background: var(--surface-alt); border-top: 1px solid var(--border); }
.yf-eco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.yf-eco-card { display: block; padding: 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); transition: all 0.2s; }
.yf-eco-card:hover, .yf-eco-active { border-color: var(--accent); }
.yf-eco-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px; }
.yf-eco-dom { font-size: 12px; font-weight: 700; color: var(--accent); }
.yf-eco-badge { font-size: 11px; padding: 2px 6px; background: var(--accent-light); color: var(--accent); border-radius: 4px; font-weight: 700; }
.yf-eco-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.yf-eco-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ed-footer { padding: 32px 0; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }

@media (max-width: 960px) {
  .cover-grid, .article-grid, .pricing-grid, .yf-eco-grid { grid-template-columns: 1fr; }
}
