/* Percentage-only operating-cost comparison. Uses the supplied brand fonts. */
#comparison .comparison-lead { max-width: 1000px; margin-bottom: 36px; }
#comparison .comparison-lead p { max-width: 900px; }
#comparison .operating-cost-content { order: 2; min-width: 0; }
.cost-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 36px; }
.cost-highlight { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 30px; border-top: 2px solid var(--cyan); background: var(--surface-soft); }
.cost-highlight:nth-child(2) { border-color: var(--navy); }
.cost-highlight img { width: clamp(140px, 15vw, 200px); background: #f6f8fa; border-radius: 6px; }
.cost-highlight > div { text-align: right; }
.cost-highlight span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.cost-highlight strong { display: block; font-family: var(--font-data); font-size: clamp(36px, 4vw, 56px); font-weight: 600; line-height: 1.3; color: var(--navy); }
.cost-highlight small { margin-left: 4px; font-size: .55em; font-weight: 500; }
.operating-cost-chart { --cost-label-width: 260px; --cost-value-width: 100px; position: relative; margin: 0; padding: clamp(22px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cost-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cost-connectors path { fill: none; stroke: color-mix(in srgb, var(--cyan-strong) 45%, var(--line)); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.cost-connectors rect { fill: var(--surface-soft); }
.cost-connectors text { fill: var(--ink); font-family: var(--font-data); font-size: 14px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.cost-chart-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 30px; }
.cost-chart-heading h3 { margin: 0 0 6px; color: var(--ink); font-size: 24px; font-weight: 600; }
.cost-chart-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.cost-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; white-space: nowrap; }
.cost-legend > span { display: inline-flex; gap: 8px; align-items: center; }
.cost-legend i { width: 12px; height: 12px; border-radius: 2px; }
.cost-energy { background: var(--chart-steel, #2c5d8a); }
.cost-liquid { background: var(--chart-ice, #7ecbea); }
.cost-row-brand {
  margin-inline: -12px;
  padding-inline: 12px;
  border-radius: 0 6px 6px 0;
  background: var(--chart-hero-tint, #f2f7fb);
  box-shadow: inset 3px 0 0 var(--navy);
}
.cost-row-brand[data-row-id="xun"] { box-shadow: inset 3px 0 0 var(--cyan); }
.cost-row-brand .cost-energy { background: var(--navy); }
.cost-row-brand .cost-liquid { background: var(--cyan); }
.cost-axis { display: flex; justify-content: space-between; margin: 0 var(--cost-value-width) 8px var(--cost-label-width); font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.cost-axis span { width: 0; display: flex; justify-content: center; }
.cost-axis span:first-child { justify-content: flex-start; }
.cost-axis span:last-child { justify-content: flex-end; }
.cost-bars { list-style: none; margin: 0; padding: 0; }
.cost-row { display: grid; grid-template-columns: var(--cost-label-width) minmax(0, 1fr) var(--cost-value-width); align-items: center; min-height: 72px; }
.cost-row:last-child { border-bottom: 0; }
.cost-step-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.cost-label { padding-right: 104px; }
.cost-label strong { display: block; font-size: 16px; font-weight: 500; }
.cost-label > span { display: block; font-size: 11px; color: var(--muted); }
/* Align the visible symbol, compensating for the asset's 58 / 866 left clear space. */
.cost-series-logo { width: 90px; max-width: 100%; height: auto; object-fit: contain; transform: translateX(-6.69746%); }
html[data-theme="dark"] .cost-series-logo { background: #f6f8fa; border-radius: 3px; }
.cost-track { display: flex; align-items: center; height: 72px; background-image: linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px); background-size: 25% 100%; border-right: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.cost-track > span { display: block; flex-shrink: 0; height: 14px; }
.cost-track > span:first-child { border-radius: 2px 0 0 2px; }
.cost-percent { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 20px; white-space: nowrap; }
.cost-percent small { font-size: .65em; font-weight: 500; margin-left: 2px; }
.cost-row-brand .cost-label strong { font-weight: 600; color: var(--navy); }
.cost-method { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.cost-method p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.cost-method strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.cost-detail { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cost-detail summary { cursor: pointer; padding: 18px 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.cost-detail summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cost-detail-scroll { overflow-x: auto; }
.cost-detail table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cost-detail caption { text-align: left; padding-bottom: 12px; font-size: 13px; color: var(--muted); }
.cost-detail th, .cost-detail td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 500; }
.cost-detail th:first-child { text-align: left; }
.cost-detail td { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.cost-detail thead { background: var(--surface-soft); }
.cost-detail > p { font-size: 12px; color: var(--muted); padding: 16px 0; margin: 0; }
html[data-theme="dark"] .cost-highlight strong,
html[data-theme="dark"] .cost-row-brand .cost-label strong { color: var(--ink); }
html[data-theme="dark"] .cost-energy { background: #4f82b0; }
html[data-theme="dark"] .cost-liquid { background: #7ecbea; }
html[data-theme="dark"] .cost-row-brand {
  background: color-mix(in srgb, #08a9e6 11%, var(--surface));
  box-shadow: inset 3px 0 0 #7ecbea;
}
html[data-theme="dark"] .cost-row-brand[data-row-id="xun"] { box-shadow: inset 3px 0 0 var(--cyan); }
html[data-theme="dark"] .cost-row-brand .cost-energy { background: #3b8ad1; }
html[data-theme="dark"] .cost-row-brand .cost-liquid { background: var(--cyan); }
html[data-theme="dark"] .cost-highlight:nth-child(2) { border-color: #b2c4d6; }
@media (max-width: 900px) {
  .cost-highlights { gap: 16px; }
  .cost-highlight { padding: 20px; gap: 12px; flex-wrap: wrap; }
  .cost-highlight > div { flex: 1; }
  .cost-highlight img { width: 150px; }
  .operating-cost-chart { --cost-label-width: 220px; --cost-value-width: 80px; }
  .cost-method { gap: 24px; }
}
@media (max-width: 600px) {
  #comparison .comparison-lead h2 { font-size: 32px; line-height: 1.3; }
  .cost-highlights { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .cost-highlight { flex-wrap: nowrap; }
  .cost-highlight img { width: 120px; }
  .cost-highlight span { font-size: 11px; }
  .cost-highlight strong { font-size: 36px; }
  .operating-cost-chart { padding: 20px 16px; }
  .cost-chart-heading { display: block; margin-bottom: 18px; }
  .cost-chart-heading h3 { font-size: 21px; }
  .cost-chart-heading p { font-size: 12px; }
  .cost-legend { margin-top: 14px; font-size: 12px; }
  .cost-axis { margin: 0 0 8px; }
  .cost-row { grid-template-columns: 1fr auto; padding: 14px 0; gap: 8px; }
  .cost-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
  .cost-label { padding-right: 0; }
  .cost-bars { margin-left: 64px; }
  .cost-axis { margin-left: 64px; }
  .cost-connectors text { font-size: 13px; }
  .cost-label strong { font-size: 14px; }
  .cost-label > span { font-size: 10px; }
  .cost-percent { grid-column: 2; grid-row: 1; font-size: 18px; }
  .cost-track { grid-column: 1 / -1; grid-row: 2; height: 24px; }
  .cost-track > span { height: 12px; }
  .cost-method { grid-template-columns: 1fr; gap: 16px; }
  .cost-detail table { font-size: 12px; }
  .cost-detail th, .cost-detail td { padding: 10px 5px; }
}

/* Full section width with compact typography and vertical spacing. */
#comparison { width: 100%; padding-block: clamp(48px, 5vw, 84px); padding-inline: max(24px, calc((100vw - var(--max)) / 2)); }
#comparison > .comparison-lead,
#comparison > .operating-cost-content { width: 100%; max-width: var(--max); margin-inline: auto; }
#comparison .comparison-lead { margin-bottom: 26px; }
#comparison .comparison-lead h2 { font-size: clamp(28px, 3.05vw, 42px); line-height: 1.2; margin-bottom: 12px; }
#comparison .comparison-lead p { font-size: 15px; }
.cost-highlights { gap: 18px; margin-bottom: 26px; }
.cost-highlight { padding: 16px 20px; gap: 16px; }
.cost-highlight img { width: 140px; }
.cost-highlight span { font-size: 11px; }
.cost-highlight strong { font-size: 39px; }
.operating-cost-chart { padding: 28px; border-radius: 9px; }
.cost-chart-heading { gap: 14px; margin-bottom: 20px; }
.cost-chart-heading h3 { font-size: 19px; margin-bottom: 4px; }
.cost-chart-heading p, .cost-legend { font-size: 12px; }
.cost-legend { gap: 14px; }
.cost-legend i { width: 9px; height: 9px; }
.cost-method { gap: 28px; margin-top: 20px; }
.cost-method p { font-size: 12px; line-height: 1.8; }
.cost-method strong { font-size: 13px; }
.cost-detail { margin-top: 18px; }
.cost-detail summary { padding: 13px 0; font-size: 13px; }
.cost-step-note { margin-top: 14px; font-size: 11px; }
@media (max-width: 680px) {
  #comparison { padding-inline: 16px; }
}
@media (min-width: 601px) {
  .operating-cost-chart { --cost-label-width: 210px; --cost-value-width: 70px; --cost-connector-gap: 52px; }
  .cost-row { min-height: 52px; }
  .cost-track { height: 52px; }
  .cost-track > span { height: 11px; }
  .cost-label { padding-right: 92px; }
  .cost-label strong { font-size: 13px; }
  .cost-label > span { font-size: 10px; }
  .cost-percent { font-size: 16px; }
  .cost-connectors text { font-size: 12px; }
  .cost-axis { font-size: 11px; }
}
@media (max-width: 600px) {
  #comparison .comparison-lead h2 { font-size: 28px; }
  #comparison .comparison-lead p { font-size: 14px; }
  .cost-highlights { gap: 10px; margin-bottom: 20px; }
  .cost-highlight { padding: 14px 16px; gap: 12px; }
  .cost-highlight img { width: 100px; }
  .cost-highlight strong { font-size: 30px; }
  .operating-cost-chart { padding: 18px 14px; }
  .cost-row { padding-block: 7px; gap: 3px; min-height: 0; }
  .cost-row-brand { margin-inline: -8px; padding-inline: 8px; }
  .cost-chart-heading { margin-bottom: 14px; }
  .cost-chart-heading h3 { font-size: 17px; }
  .cost-chart-heading p, .cost-legend { font-size: 11px; }
  .cost-legend { margin-top: 10px; gap: 12px; }
  .cost-legend i { width: 7px; height: 7px; }
  .cost-bars, .cost-axis { margin-left: 54px; }
  .cost-axis { font-size: 10px; margin-bottom: 6px; }
  .cost-label strong { font-size: 12px; line-height: 1.5; }
  .cost-series-logo { width: 72px; }
  .cost-label > span { font-size: 10px; }
  .cost-percent { font-size: 15px; line-height: 1.5; }
  .cost-track { height: 18px; }
  .cost-track > span { height: 8px; }
  .cost-connectors text { font-size: 11px; }
  .cost-connectors path { stroke-width: 1; }
  .cost-method { gap: 16px; }
}
