:root {
  --era-bg: #121a2a;
  --era-panel: #1a2437;
  --era-panel-soft: rgba(26, 36, 55, 0.82);
  --era-line: rgba(148, 163, 184, 0.28);
  --era-text: #dce5f3;
  --era-muted: #9facc0;
  --era-blue: #5aa9ff;
  --era-amber: #f5b942;
  --era-red: #ef5a5a;
  --era-green: #53c58c;
}

.article.news-block .era-article,
.article.news-block .mg-article {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 18px;
  padding: 28px 34px 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 0%, rgba(239, 90, 90, 0.1), transparent 26%),
    linear-gradient(180deg, #162033 0%, #111827 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  color: var(--era-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

.era-article *,
.mg-article * {
  box-sizing: border-box;
}

.era-article p,
.era-article li,
.mg-article p,
.mg-article li {
  color: var(--era-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.era-article p,
.mg-article p {
  margin: 0 0 1.05em;
}

.era-article h2,
.era-article h3,
.era-article h4,
.mg-article h2,
.mg-article h3,
.mg-article h4 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.era-article h2,
.mg-article h2 {
  margin: 2.1em 0 0.8em;
  padding-top: 18px;
  border-top: 1px solid var(--era-line);
  font-size: clamp(28px, 3.2vw, 36px);
}

.era-article h3,
.mg-article h3 {
  margin: 1.5em 0 0.6em;
  font-size: clamp(21px, 2.3vw, 26px);
}

.era-article h4,
.mg-article h4 {
  margin: 1.35em 0 0.45em;
  padding-left: 15px;
  border-left: 3px solid var(--era-amber);
  color: #ffe2a6;
  font-size: 20px;
}

.era-article a,
.mg-article a {
  color: #91c5ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.era-article ul,
.era-article ol,
.mg-article ul,
.mg-article ol {
  margin: 12px 0 24px;
  padding-left: 1.35em;
}

.era-article li,
.mg-article li {
  padding: 0.2em 0 0.2em 0.35em;
}

.era-article li::marker,
.mg-article li::marker {
  color: var(--era-amber);
  font-weight: 700;
}

.era-article blockquote,
.mg-article blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border: 0;
  border-left: 4px solid var(--era-blue);
  border-radius: 0 12px 12px 0;
  background: rgba(90, 169, 255, 0.09);
}

.era-article blockquote p,
.mg-article blockquote p {
  margin: 0;
  color: #f4f8ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.55;
}

.era-cover,
.mg-cover {
  overflow: hidden;
  margin: -28px -34px 26px;
  border-bottom: 1px solid var(--era-line);
  background: #0c1320;
}

.era-cover__image,
.era-cover img,
.mg-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.era-preview,
.mg-preview {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid rgba(90, 169, 255, 0.25);
  border-left: 4px solid var(--era-blue);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(90, 169, 255, 0.13), rgba(245, 185, 66, 0.08));
  color: #f4f8ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
}

.era-label,
.mg-label,
.era-tag,
.mg-tag {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.era-label,
.mg-label {
  margin-bottom: 12px;
  color: #ff9b9b;
}

.era-lead,
.mg-lead {
  position: relative;
  margin: 30px 0 50px;
  padding: 28px 30px 22px;
  border: 1px solid rgba(239, 90, 90, 0.28);
  border-left: 5px solid var(--era-red);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 90, 90, 0.12), rgba(26, 36, 55, 0.92));
}

.era-lead h2,
.mg-lead h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-size: clamp(28px, 3vw, 33px);
}

.era-scenario-grid,
.mg-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 45px;
}

.era-card,
.mg-card {
  padding: 20px 19px 18px;
  border: 1px solid var(--era-line);
  border-top: 4px solid var(--era-blue);
  border-radius: 12px;
  background: var(--era-panel-soft);
}

.era-card--stress,
.mg-card.stress {
  border-top-color: var(--era-amber);
}

.era-card--extreme,
.mg-card.extreme {
  border-top-color: var(--era-red);
}

.era-card--positive {
  border-top-color: var(--era-green);
}

.era-card h3,
.mg-card h3 {
  margin: 5px 0 14px;
  padding: 0;
  border: 0;
  font-size: 21px;
}

.era-card p,
.era-card li,
.mg-card p,
.mg-card li {
  font-size: 15px;
  line-height: 1.6;
}

.era-card--base .era-tag,
.mg-card.base .mg-tag {
  color: var(--era-blue);
}

.era-card--stress .era-tag,
.mg-card.stress .mg-tag {
  color: var(--era-amber);
}

.era-card--extreme .era-tag,
.mg-card.extreme .mg-tag {
  color: #ff9292;
}

.era-card--positive .era-tag {
  color: #8fe1b5;
}

.era-timeline,
.mg-timeline {
  position: relative;
  margin: 22px 0 48px;
  padding-left: 27px;
  border-left: 2px solid rgba(90, 169, 255, 0.45);
}

.era-step,
.mg-time {
  position: relative;
  padding: 2px 0 22px 18px;
}

.era-step::before,
.mg-time::before {
  position: absolute;
  top: 8px;
  left: -34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--era-blue);
  box-shadow: 0 0 0 6px rgba(90, 169, 255, 0.12);
  content: "";
}

.era-step > span,
.mg-time > span {
  color: var(--era-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.era-step h3,
.mg-time h3 {
  margin: 4px 0 9px;
}

.era-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 36px;
}

.era-metrics > div {
  padding: 17px 18px;
  border: 1px solid var(--era-line);
  border-radius: 10px;
  background: rgba(90, 169, 255, 0.07);
}

.era-metrics span {
  display: block;
  margin-bottom: 5px;
  color: var(--era-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.era-metrics strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.era-callout {
  margin: 24px 0 34px;
  padding: 22px 24px 18px;
  border: 1px solid var(--era-line);
  border-radius: 12px;
  background: rgba(90, 169, 255, 0.08);
}

.era-callout--action {
  border-color: rgba(83, 197, 140, 0.3);
  border-left: 4px solid var(--era-green);
  background: rgba(83, 197, 140, 0.08);
}

.era-callout--warning {
  border-color: rgba(245, 185, 66, 0.32);
  border-left: 4px solid var(--era-amber);
  background: rgba(245, 185, 66, 0.08);
}

.era-callout--key {
  border-color: rgba(239, 90, 90, 0.3);
  border-left: 4px solid var(--era-red);
  background: rgba(239, 90, 90, 0.08);
}

.era-callout h3 {
  margin-top: 0;
}

.era-news-card {
  position: relative;
  margin: 14px 0;
  padding: 20px 22px 18px 58px;
  border: 1px solid var(--era-line);
  border-radius: 12px;
  background: rgba(26, 36, 55, 0.72);
}

.era-news-card > span {
  position: absolute;
  top: 22px;
  left: 20px;
  color: var(--era-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.era-news-card h3 {
  margin-top: 0;
}

.era-article table,
.mg-article table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 22px 0 34px;
  border-collapse: collapse;
  border: 1px solid var(--era-line);
  border-radius: 10px;
  background: rgba(12, 19, 32, 0.42);
  -webkit-overflow-scrolling: touch;
}

.era-article th,
.era-article td,
.mg-article th,
.mg-article td {
  min-width: 145px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--era-line);
  color: var(--era-text);
  text-align: left;
  vertical-align: top;
}

.era-article th,
.mg-article th {
  background: rgba(90, 169, 255, 0.1);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.era-article img:not(.era-cover__image),
.mg-article img:not(.era-cover__image) {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.era-article hr,
.mg-article hr {
  margin: 42px 0 24px;
  border: 0;
  border-top: 1px solid var(--era-line);
}

.era-template-politics {
  --era-blue: #5aa9ff;
  --era-amber: #f5b942;
}

.era-template-market,
.era-template-asset {
  --era-blue: #52b7a8;
  --era-amber: #f0c15a;
}

.era-template-blockchain,
.era-template-crypto {
  --era-blue: #8c7cff;
  --era-amber: #51d2a8;
}

@media (max-width: 850px) {
  .article.news-block .era-article,
  .article.news-block .mg-article {
    padding: 20px 18px 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .era-cover,
  .mg-cover {
    margin: -20px -18px 22px;
  }

  .era-scenario-grid,
  .mg-scenarios,
  .era-metrics {
    grid-template-columns: 1fr;
  }

  .era-preview,
  .mg-preview,
  .era-lead,
  .mg-lead {
    padding: 20px 18px;
  }

  .era-news-card {
    padding-left: 50px;
  }
}

@media print {
  .article.news-block .era-article,
  .article.news-block .mg-article {
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #111;
  }

  .era-article p,
  .era-article li,
  .era-article h2,
  .era-article h3,
  .era-article h4 {
    color: #111;
  }
}

