.cr-fiber-production {
  --tf-surface-base: #ffffff;
  --tf-surface-card: #f3f2f5;
  --tf-ink: #3c3c3e;
  --tf-text-body: #6e6e70;
  --tf-text-faint: #b2b2b3;
  --tf-fill-strong: #3c3c3e;
  --tf-rule: #dcdcde;
  --tf-trend: var(--cr-problem-ink, #d70015);
  color: var(--tf-ink);
  background: var(--tf-surface-base);
  font-family: Inter, var(--font-sans);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .cr-fiber-production {
  --tf-surface-base: #000000;
  --tf-surface-card: #1c1c1e;
  --tf-ink: #ffffff;
  --tf-text-body: #a1a1a6;
  --tf-text-faint: #6e6e70;
  --tf-fill-strong: #ffffff;
  --tf-rule: #333336;
}
.tf-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.cr-fiber-production h3 { color: var(--tf-ink); font-size: 20px; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0; }
.tf-footnote { color: var(--tf-text-body); font-size: 12px; font-weight: 400; line-height: 1.4; vertical-align: super; }
.cr-fiber-production .tf-header p { margin: 8px 0 0; color: var(--tf-text-body); font-size: 14px; font-weight: 400; line-height: 1.5; }
.tf-callouts { display: flex; flex: none; gap: 32px; text-align: right; }
.tf-callouts > span { display: grid; gap: 8px; color: var(--tf-text-body); font-size: 14px; font-weight: 400; line-height: 1.5; }
.tf-callouts strong { color: var(--tf-ink); font-size: 48px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.tf-summary { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tf-plot { position: relative; height: 220px; margin: 48px 0 48px 32px; }
.cr-fiber-production .tf-svg { position: absolute; inset: 0; min-width: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tf-grid { fill: none; stroke: var(--tf-rule); stroke-width: 1; }
.tf-baseline { stroke: var(--tf-text-faint); }
.tf-trend-svg { z-index: 2; }
.tf-total-line { fill: none; stroke: var(--tf-trend); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tf-point { position: absolute; z-index: 3; width: 6px; height: 6px; box-sizing: content-box; border: 2px solid var(--tf-surface-base); border-radius: 50%; background: var(--tf-trend); transform: translate(-50%, -50%); pointer-events: none; }
.tf-unit { position: absolute; top: -24px; left: -32px; color: var(--tf-text-body); font-size: 12px; font-weight: 400; line-height: 1.4; }
.tf-tick { position: absolute; left: -32px; top: 0; transform: translateY(-50%); color: var(--tf-text-faint); font-size: 12px; font-weight: 400; line-height: 1.4; }
.tf-column { display: contents; }
.tf-bar-control { position: absolute; appearance: none; bottom: 0; left: var(--x); width: 4.6%; height: var(--h); transform: translateX(-50%); background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; color: var(--tf-ink); cursor: pointer; font: inherit; }
.tf-bar { display: block; box-sizing: border-box; width: 100%; height: 100%; border: 0; border-radius: 0; background: var(--tf-fill-strong); }
.tf-projected .tf-bar { border: 1px solid var(--tf-fill-strong); background: var(--tf-surface-base); }
.tf-hatch { display: block; width: 100%; height: 100%; overflow: hidden; }
.tf-hatch-base { fill: var(--tf-surface-base); }
.tf-hatch-stripe { fill: none; stroke: var(--tf-fill-strong); stroke-width: 1; }
.tf-bar-control:is(:hover, :focus-visible) { outline: 2px solid var(--tf-ink); outline-offset: 3px; }
.tf-value { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); color: var(--tf-ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.tf-year { position: absolute; top: calc(100% + 8px); left: var(--x); transform: translateX(-50%); color: var(--tf-text-faint); font-size: 12px; font-weight: 400; line-height: 1.4; }
.tf-tooltip { display: none; position: absolute; z-index: 5; left: clamp(0px, calc(var(--x) - 120px), calc(100% - 240px)); top: 32px; box-sizing: border-box; width: 240px; border: 1px solid var(--tf-rule); border-radius: 0; padding: 16px; background: var(--tf-surface-card); color: var(--tf-ink); font-size: 12px; font-weight: 400; line-height: 1.4; pointer-events: none; }
.tf-tooltip > * { display: block; }
.tf-tooltip strong { font-weight: 600; margin-bottom: 8px; }
.tf-tooltip small { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--tf-text-body); margin-top: 8px; }
.tf-column:has(.tf-bar-control:is(:hover, :focus-visible)) .tf-tooltip { display: block; }
.tf-legend { display: flex; flex-wrap: wrap; gap: 16px 24px; color: var(--tf-ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.tf-legend > span { display: flex; align-items: center; gap: 8px; }
.tf-key { width: 12px; height: 12px; display: inline-block; flex: none; box-sizing: border-box; }
.tf-key-total { background: var(--tf-fill-strong); }
.tf-key-trend { position: relative; display: inline-block; width: 16px; height: 2px; background: var(--tf-trend); }
.tf-key-trend::after { content: ''; position: absolute; width: 6px; height: 6px; top: -2px; left: 5px; border-radius: 50%; background: var(--tf-trend); }
.tf-key-projected { border: 1px solid var(--tf-fill-strong); background: var(--tf-surface-base); }
.cr-fiber-production > figcaption { max-width: 68ch; margin-top: 16px; color: var(--tf-text-body); font-size: 12px; font-weight: 400; line-height: 1.4; }
@container (max-width: 650px) {
  .tf-header { display: block; }
  .tf-callouts { margin-top: 24px; text-align: left; }
}
@container (max-width: 480px) {
  .tf-plot { height: 210px; margin-right: 8px; }
  .tf-column:not([data-year="1975"]):not([data-year="2000"]):not([data-year="2025"]):not([data-year="2030"]) :is(.tf-year, .tf-value) { display: none; }
  .tf-column[data-year="2025"] .tf-year { transform: translateX(calc(-50% - 4px)); }
  .tf-projected .tf-year { transform: translateX(calc(-50% + 4px)); }
}

/* Retain the four reference years while keeping every total legible on phones. */
@media (max-width: 650px) {
  .tf-header { display: block; }
  .cr-fiber-production h3 { font-size: 19px; line-height: 1.35; }
  .tf-callouts { gap: 24px; margin-top: 24px; text-align: left; }
  .tf-callouts strong { font-size: 36px; }
  .tf-callouts > span { gap: 6px; font-size: 13px; }
  .tf-plot { height: 250px; margin: 52px 8px 52px 32px; }
  .tf-tick, .tf-year { color: var(--tf-text-body); }
  .tf-column[data-year] .tf-value { display: block; font-size: 12px; }
  .tf-column:not([data-year="1975"]):not([data-year="2000"]):not([data-year="2025"]):not([data-year="2030"]) .tf-year { display: none; }
  .tf-column[data-year="2025"] .tf-year { top: calc(100% + 8px); transform: translateX(calc(-50% - 8px)); }
  .tf-projected .tf-year { top: calc(100% + 28px); transform: translateX(-50%); }
  .tf-tooltip { width: min(240px, calc(100% + 24px)); left: clamp(-24px, calc(var(--x) - 120px), calc(100% - 240px)); }
  .tf-legend { gap: 14px 20px; }
}
