:root {
  --trend-red: #c43b35;
  --trend-blue: #246aa5;
  --trend-ink: #17201f;
  --trend-line: #d8dfdd;
}

.trend-main { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 64px; }
.trend-intro { padding: 28px 0 22px; border-bottom: 1px solid var(--trend-line); }
.trend-kicker { margin: 0 0 8px; color: #0b5f59; font-size: 12px; font-weight: 800; }
.trend-intro h1 { margin: 0; color: var(--trend-ink); font-size: clamp(25px, 4vw, 38px); line-height: 1.3; letter-spacing: 0; }
.trend-lead { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.trend-pattern { padding: 34px 0 38px; border-bottom: 1px solid var(--trend-line); }
.pattern-label { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #b8c8c4; border-radius: 4px; color: #315752; font-size: 11px; font-weight: 800; }
.pattern-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-top: 10px; }
.pattern-heading h2 { margin: 0; max-width: 720px; color: var(--trend-ink); font-size: 21px; line-height: 1.45; letter-spacing: 0; }
.pattern-note { flex: 0 0 auto; margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.metric-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; border-block: 1px solid var(--trend-line); }
.metric { padding: 15px 18px; border-right: 1px solid var(--trend-line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 3px; color: var(--trend-ink); font-size: 23px; line-height: 1.2; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.change-up { color: var(--trend-red) !important; }
.change-down { color: var(--trend-blue) !important; }
.chart-wrap { margin-top: 20px; overflow-x: auto; }
.trend-chart { display: block; width: 100%; min-width: 660px; height: auto; }
.chart-grid { stroke: #e5e9e8; stroke-width: 1; }
.chart-axis-label { fill: #75807d; font-size: 11px; }
.chart-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-high-line { stroke: #0b5f59; }
.chart-dot { cursor: pointer; stroke: #fff; stroke-width: 3; }
.chart-high-dot { fill: #0b5f59; transition: r .15s ease, fill .15s ease; }
.chart-high-dot:hover, .chart-high-dot:focus, .chart-high-dot.is-selected { fill: #c43b35; r: 9; outline: none; }
.chart-detail { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 10px; padding: 12px 14px; background: #edf5f3; border-left: 3px solid #0b5f59; color: #263633; }
.chart-detail > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.chart-detail-date, .chart-detail-count { color: #58706b; font-size: 12px; }
.chart-detail strong { color: #17201f; font-size: 18px; }
.chart-detail p { margin: 0; font-size: 13px; line-height: 1.5; }
.pattern-caption { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 680px) {
  .trend-main { width: min(100% - 24px, 1040px); padding-top: 16px; }
  .trend-intro { padding-top: 20px; }
  .pattern-heading { display: block; }
  .pattern-note { margin-top: 6px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--trend-line); }
  .metric:last-child { border-bottom: 0; }
  .chart-detail { display: block; }
  .chart-detail p { margin-top: 6px; }
}
