:root {
  --trend-ink: #101820;
  --trend-paper: #f3efe4;
  --trend-white: #fffdf7;
  --trend-muted: #667078;
  --trend-line: rgba(16, 24, 32, 0.16);
  --trend-prc: #a5414d;
  --trend-stable: #9a7725;
  --trend-partner: #286f87;
  --trend-unknown: #6f747a;
  --trend-accent: #286f87;
  --trend-deep: #102a43;
  --trend-pale: #e4eef1;
}

.economic-trend-body {
  --trend-ink: #071d16;
  --trend-muted: #65716c;
  --trend-line: rgba(7, 29, 22, 0.16);
  --trend-prc: #b14e31;
  --trend-stable: #917126;
  --trend-partner: #0a6e49;
  --trend-accent: #0a6e49;
  --trend-deep: #082d22;
  --trend-pale: #e4efe9;
}

.trend-body {
  color: var(--trend-ink);
}

.trend-shell {
  max-width: 1440px;
}

.trend-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 86px);
  min-height: 610px;
  margin-top: 14px;
  padding: clamp(30px, 6vw, 72px);
  overflow: hidden;
  border-radius: 40px;
  color: white;
  background:
    radial-gradient(circle at 84% 15%, rgba(80, 179, 203, 0.28), transparent 24rem),
    linear-gradient(145deg, #0e1820, var(--trend-deep) 64%, #214c63);
  box-shadow: 0 30px 85px rgba(16, 24, 32, 0.24);
}

.economic-trend-body .trend-hero {
  background:
    radial-gradient(circle at 86% 13%, rgba(184, 255, 92, 0.26), transparent 24rem),
    linear-gradient(145deg, #07140f, var(--trend-deep) 62%, #15513c);
}

.trend-hero::after {
  content: "←   —   →";
  position: absolute;
  right: -0.05em;
  bottom: -0.18em;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(8rem, 23vw, 21rem);
  font-weight: 1000;
  letter-spacing: -0.18em;
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
}

.trend-hero-copy,
.trend-hero-meta {
  position: relative;
  z-index: 1;
}

.trend-hero-copy {
  align-self: end;
}

.trend-hero-copy > span,
.trend-reading-copy > span,
.trend-section-head > div > span,
.trend-data-callout > div > span {
  color: #9fcbd9;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.economic-trend-body .trend-hero-copy > span,
.economic-trend-body .trend-reading-copy > span,
.economic-trend-body .trend-section-head > div > span,
.economic-trend-body .trend-data-callout > div > span {
  color: #a8dbb8;
}

.trend-hero h1 {
  max-width: 12ch;
  margin: 22px 0 0;
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

@media (min-width: 721px) {
  .defense-trend-body .trend-hero h1 {
    max-width: 15ch;
    font-size: clamp(3.5rem, 5.6vw, 5.7rem);
  }
}

.trend-hero-copy > p {
  max-width: 780px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.94rem, 1.5vw, 1.08rem);
  line-height: 1.68;
}

.trend-hero-meta {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.trend-hero-meta > div {
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.trend-hero-meta > div:nth-child(2n) { border-right: 0; }
.trend-hero-meta > div:nth-last-child(-n + 2) { border-bottom: 0; }

.trend-hero-meta dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trend-hero-meta dd {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.trend-reading {
  margin-top: 20px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--trend-line);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.68);
}

.trend-reading-copy {
  max-width: 900px;
}

.trend-reading h2,
.trend-section-head h2,
.trend-data-callout h2 {
  margin: 13px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.trend-reading-copy p {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--trend-muted);
  font-size: 14px;
  line-height: 1.65;
}

.trend-assessments,
.trend-method {
  margin-top: clamp(54px, 8vw, 100px);
}

.trend-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.trend-section-head h2 {
  max-width: 12ch;
}

.trend-section-head > p {
  margin: 0;
  color: var(--trend-muted);
  font-size: 13px;
  line-height: 1.62;
}

.trend-card-list {
  display: grid;
  gap: 18px;
}

.trend-card {
  scroll-margin-top: 145px;
  overflow: hidden;
  border: 1px solid var(--trend-line);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: 0 18px 58px rgba(16, 24, 32, 0.07);
}

.trend-card-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--trend-line);
}

.trend-card-number {
  align-self: start;
  color: #8b9296;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.trend-card-title > span,
.trend-current-position small,
.trajectory-panel header span,
.trajectory-confidence span,
.trend-drivers-grid > section > span,
.trend-review-strip span {
  color: var(--trend-muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.trend-card-title h3 {
  margin: 7px 0 0;
  font-size: clamp(1.55rem, 3.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.trend-current-position {
  text-align: right;
}

.trend-current-position strong,
.trend-current-position small {
  display: block;
}

.trend-current-position strong {
  font-size: 12px;
  font-weight: 950;
}

.trend-current-position small {
  margin-top: 4px;
}

.trend-current-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  height: 24px;
  margin-top: 10px;
}

.trend-current-axis i {
  display: block;
  height: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.trend-current-axis i:nth-child(1) { background: rgba(165, 65, 77, 0.66); }
.trend-current-axis i:nth-child(2) { background: rgba(207, 102, 86, 0.52); }
.trend-current-axis i:nth-child(3) { background: rgba(176, 138, 42, 0.5); }
.trend-current-axis i:nth-child(4) { background: rgba(66, 141, 157, 0.5); }
.trend-current-axis i:nth-child(5) { background: rgba(35, 91, 126, 0.7); border-right: 0; }

.economic-trend-body .trend-current-axis i:nth-child(4) { background: rgba(73, 153, 112, 0.5); }
.economic-trend-body .trend-current-axis i:nth-child(5) { background: rgba(10, 110, 73, 0.7); }

.trend-current-axis b {
  position: absolute;
  left: var(--position);
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 4px solid var(--trend-white);
  border-radius: 50%;
  background: var(--trend-ink);
  box-shadow: 0 0 0 1px rgba(16, 24, 32, 0.28);
  transform: translateX(-50%);
}

.trend-current-axis .relative-trend-vector.toward-prc { color: var(--trend-prc); }
.trend-current-axis .relative-trend-vector.toward-partners { color: var(--trend-partner); }
.trend-current-axis .relative-trend-vector.stable { color: var(--trend-stable); }

.trajectory-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--trend-line);
}

.trajectory-panel {
  --direction-color: var(--trend-unknown);
  position: relative;
  min-width: 0;
  padding: clamp(23px, 4vw, 40px);
}

.trajectory-panel:first-child { border-right: 1px solid var(--trend-line); }
.trajectory-panel.toward-prc { --direction-color: var(--trend-prc); }
.trajectory-panel.stable { --direction-color: var(--trend-stable); }
.trajectory-panel.toward-partners { --direction-color: var(--trend-partner); }

.trajectory-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--direction-color);
}

.trajectory-panel > header {
  display: block;
}

.trajectory-panel h4 {
  margin: 8px 0 0;
  color: var(--direction-color);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.trajectory-panel > p {
  margin: 24px 0 0;
  color: #4e5960;
  font-size: 13px;
  line-height: 1.66;
}

.trajectory-confidence {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.055);
}

.trajectory-confidence strong {
  color: var(--direction-color);
  font-size: 10px;
}

.trend-evidence-list {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: evidence;
}

.trend-evidence-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--trend-line);
  counter-increment: evidence;
}

.trend-evidence-list li::before {
  content: counter(evidence, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--direction-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
}

.trend-evidence-list p,
.trend-drivers-grid li p {
  margin: 0;
  color: #3f494f;
  font-size: 11px;
  line-height: 1.58;
}

.trend-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.trend-source-chips a {
  padding: 5px 7px;
  border: 1px solid var(--trend-line);
  border-radius: 8px;
  color: var(--trend-accent);
  background: rgba(255, 255, 255, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  font-weight: 900;
  text-decoration: none;
}

.trend-source-chips a:hover { border-color: var(--trend-accent); background: white; }

.overview-eligible,
.overview-withheld {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-eligible { color: var(--trend-partner); background: color-mix(in srgb, var(--trend-partner) 9%, transparent); }
.overview-withheld { color: var(--trend-unknown); background: rgba(111, 116, 122, 0.09); }

.trend-drivers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-drivers-grid > section {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--trend-line);
}

.trend-drivers-grid > section:last-child { border-right: 0; }
.trend-drivers-grid ul { margin: 18px 0 0; padding: 0; list-style: none; }
.trend-drivers-grid li { padding: 13px 0; border-top: 1px solid var(--trend-line); }
.trend-drivers-grid li:first-child { border-top: 0; }

.trend-trigger-panel li {
  position: relative;
  padding: 12px 0 12px 18px;
  color: #3f494f;
  font-size: 11px;
  line-height: 1.45;
}

.trend-trigger-panel li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--trend-accent);
}

.trend-trigger-panel > a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  color: var(--trend-accent);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.trend-trigger-panel > a i { font-style: normal; }

.trend-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--trend-line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.72);
}

.trend-method-grid article {
  min-height: 285px;
  padding: 25px;
  border-right: 1px solid var(--trend-line);
}

.trend-method-grid article:last-child { border-right: 0; }
.trend-method-grid article > b { color: var(--trend-accent); font: 900 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.trend-method-grid h3 { margin: 70px 0 12px; font-size: 1.5rem; line-height: 1; letter-spacing: -0.045em; }
.trend-method-grid p { margin: 0; color: var(--trend-muted); font-size: 11px; line-height: 1.58; }

.trend-review-strip {
  display: grid;
  grid-template-columns: 210px 210px minmax(0, 1fr);
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--trend-line);
  border-radius: 20px;
  background: var(--trend-line);
}

.trend-review-strip > div,
.trend-review-strip > p {
  margin: 0;
  padding: 18px;
  background: var(--trend-white);
}

.trend-review-strip strong { display: block; margin-top: 7px; font-size: 12px; }
.trend-review-strip > p { color: var(--trend-muted); font-size: 11px; line-height: 1.5; }

.trend-data-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 30px;
  align-items: end;
  margin-top: clamp(54px, 8vw, 100px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 30px;
  color: white;
  background: var(--trend-deep);
}

.trend-data-callout h2 { max-width: 12ch; }
.trend-data-callout p { max-width: 720px; margin: 20px 0 0; color: rgba(255, 255, 255, 0.66); font-size: 12px; line-height: 1.6; }
.trend-data-callout nav { display: grid; gap: 7px; }
.trend-data-callout nav a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 13px; color: white; font-size: 10px; font-weight: 900; text-decoration: none; }
.trend-data-callout nav a:hover { background: rgba(255, 255, 255, 0.09); }
.trend-data-callout nav i { font-style: normal; }

@media (max-width: 980px) {
  .trend-hero { grid-template-columns: 1fr; min-height: 670px; }
  .trend-hero-copy { align-self: end; }
  .trend-hero-meta { max-width: 620px; }
  .trend-card-head { grid-template-columns: 44px minmax(0, 1fr) minmax(230px, 0.55fr); }
  .trend-drivers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-drivers-grid > section:nth-child(2) { border-right: 0; }
  .trend-drivers-grid > section:last-child { grid-column: 1 / -1; border-top: 1px solid var(--trend-line); }
  .trend-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-method-grid article { border-bottom: 1px solid var(--trend-line); }
  .trend-method-grid article:nth-child(2n) { border-right: 0; }
  .trend-method-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  .trend-hero { min-height: 720px; padding: 28px 18px; border-radius: 28px; }
  .trend-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.15rem);
    line-height: 0.97;
    letter-spacing: -0.028em;
  }
  .trend-hero-copy > p { font-size: 13px; }
  .trend-hero-meta > div { min-height: 92px; padding: 13px; }
  .trend-hero-meta dd { font-size: 12px; }
  .trend-reading { padding: 24px 18px; border-radius: 24px; }
  .trend-reading h2,
  .trend-section-head h2,
  .trend-data-callout h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .trend-section-head { grid-template-columns: 1fr; gap: 15px; }
  .trend-card { border-radius: 24px; }
  .trend-card-head { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 19px 17px; }
  .trend-card-number { grid-row: 1 / 3; }
  .trend-current-position { grid-column: 2; text-align: left; }
  .trajectory-pair { grid-template-columns: 1fr; }
  .trajectory-panel:first-child { border-right: 0; border-bottom: 1px solid var(--trend-line); }
  .trajectory-panel { padding: 25px 18px; }
  .trend-drivers-grid { grid-template-columns: 1fr; }
  .trend-drivers-grid > section { border-right: 0; border-bottom: 1px solid var(--trend-line); }
  .trend-drivers-grid > section:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .trend-method-grid { grid-template-columns: 1fr; }
  .trend-method-grid article { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--trend-line); }
  .trend-method-grid article:nth-last-child(-n + 2) { border-bottom: 1px solid var(--trend-line); }
  .trend-method-grid article:last-child { border-bottom: 0; }
  .trend-method-grid h3 { margin-top: 45px; }
  .trend-review-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-review-strip > p { grid-column: 1 / -1; }
  .trend-data-callout { grid-template-columns: 1fr; padding: 26px 18px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .trend-source-chips a,
  .trend-data-callout a { transition: none; }
}
