.dg { font-family: var(--sans); font-size: 13px; line-height: 1.5; padding: 26px 0 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: #233c66; }
.dg-title { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 8px; }
.dg-subtitle { max-width: 760px; font-size: 13px; line-height: 1.6; color: #686f76; margin-bottom: 26px; }
.dg-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-plot svg text { font-family: var(--sans); font-size: 13px; fill: #555; }
.dg-controls { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; margin-top: 14px; }
.dg-controls button { font: inherit; cursor: pointer; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 4px 0; color: #777e85; }
.dg-controls button[aria-pressed="true"] { color: #233c66; border-bottom-color: #233c66; }
.dg-controls button:focus-visible, .dg-region-panels:focus-visible { outline: 2px solid #89afc4; outline-offset: 5px; }
.dg-detail, .body .dg-detail { min-height: 40px; margin: 18px 0 0; color: #727980; font-size: 12px; line-height: 1.6; }
.dg-summary, .body .dg-summary { margin: 15px 0 0; color: #727980; font-size: 12px; line-height: 1.6; }
.dg-legend { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 11px; color: #737a81; margin: 20px 0 0; }
.dg-legend i { display: block; width: 180px; height: 7px; }
.dg-vote-ramp { background: linear-gradient(to right,#ac4950,#daa6a5,#f6f5f3,#a8c8d7,#233c66); }
.dg-gap-ramp { background: linear-gradient(to right,#c8dee7,#649ab8,#233c66); }
.dg-legend-label { margin-left: 8px; }

.dg-flow { display: grid; grid-template-columns: minmax(0,1fr) 180px minmax(0,1fr); gap: 32px; align-items: center; }
.dg-flow-heading { font-size: 12px; color: #727980; margin-bottom: 14px; }
.dg-input { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 14px; align-items: center; margin: 0 0 18px; min-height: 72px; }
.dg-input > img, .dg-input > svg, .dg-mini-twins { display: block; width: 78px; height: 68px; object-fit: cover; background: #f1f5f7; }
.dg-input > svg { padding: 3px; }
.dg-input strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; }
.dg-input span { display: block; font-size: 11px; color: #727980; margin-top: 4px; line-height: 1.4; }
.dg-dimension { display: grid; place-items: center; width: 78px; height: 68px; color: #89afc4; font-size: 36px; font-weight: 500; background: #f1f5f7; letter-spacing: -.05em; }
.dg-mini-twins { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dg-mini-twins img { height: 68px; width: 100%; object-fit: cover; }
.dg-input > .dg-mini-arcs { object-fit: contain; }
.dg-flow-model { position: relative; padding-top: 56px; align-self: start; }
.dg-model-name { border-top: 1px solid #a9c4d2; border-bottom: 1px solid #a9c4d2; padding: 24px 8px; text-align: center; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.dg-model-name span { display: block; font-size: 11px; color: #727980; font-weight: 400; margin-top: 5px; letter-spacing: 0; }
.dg-model-name::before, .dg-model-name::after { position: absolute; top: 102px; color: #a9c4d2; font-size: 20px; font-weight: 400; }
.dg-model-name::before { content: '\2192'; left: -24px; }
.dg-model-name::after { content: '\2192'; right: -24px; }
.dg-holdout { font-size: 10px; color: #727980; text-align: center; margin-top: 10px; }
.dg-target { text-align: center; margin-top: 32px; padding-top: 16px; position: relative; }
.dg-target::before { content: '\2191'; position: absolute; top: -5px; left: 50%; color: #a9c4d2; }
.dg-target strong { display: block; font-size: 11px; font-weight: 500; }
.dg-target span { display: block; color: #727980; font-size: 10px; margin-top: 3px; }

.dg-bars { padding: 4px 0 16px; }
.dg-bar-row { display: grid; grid-template-columns: 230px minmax(0,1fr) 54px; column-gap: 18px; align-items: center; margin-bottom: 19px; }
.dg-bar-label { font-size: 13px; line-height: 1.4; text-align: right; }
.dg-bar-track { position: relative; height: 23px; background: #f8f9fa; }
.dg-bar-track i { position: absolute; display: block; top: 0; height: 100%; }
.dg-zero { position: absolute; width: 1px; height: 100%; background: #bfc7ce; }
.dg-bar-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.dg-bar-axis { display: grid; grid-template-columns: 230px minmax(0,1fr) 54px; column-gap: 18px; }
.dg-bar-axis > div { grid-column: 2; position: relative; height: 20px; border-top: 1px solid #dfe5e9; }
.dg-bar-axis span { position: absolute; font-size: 11px; color: #727980; top: 7px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }

.dg-region-panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.dg-region-panel { min-width: 0; }
.dg-panel-label { display: flex; flex-direction: column; min-height: 48px; gap: 3px; font-size: 13px; line-height: 1.4; font-weight: 500; }
.dg-panel-label span { font-size: 11px; color: #727980; font-weight: 400; }
.dg-panel-value { min-height: 24px; padding-top: 7px; font-size: 11px; color: #727980; font-variant-numeric: tabular-nums; }
.dg-region-panels .dg-linked { stroke: #fff; stroke-width: 1.4; opacity: .84; }

.dg-twins-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.dg-twin-column { min-width: 0; }
.dg-pair-number { font-size: 11px; color: #727980; margin-bottom: 12px; }
.dg-twin-member { margin-bottom: 24px; }
.dg-twin-member img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; height: auto; }
.dg-place { margin: 10px 0 12px; font-weight: 500; font-size: 12px; min-height: 36px; line-height: 1.4; }
.dg-vote { position: relative; min-height: 29px; margin: 4px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #727980; }
.dg-vote i { position: absolute; bottom: 0; height: 2px; left: 0; }
.dg-vote b { font-weight: 400; font-variant-numeric: tabular-nums; color: #233c66; }
.dg-pair-summary, .body .dg-pair-summary { padding-top: 10px; border-top: 1px solid #e4e9ec; margin: 0; font-size: 11px; color: #727980; line-height: 1.8; }
.dg-pair-summary strong { font-weight: 500; color: #233c66; }
.dg-pair-summary span, .dg-pair-summary strong { display: block; }
.dg-arcs-map { display: block; width: 100%; height: auto; }
.dg-arc-stats { display: grid; grid-template-columns: repeat(3,1fr); column-gap: 20px; margin: 10px 0 24px; text-align: center; }
.dg-arc-stats strong { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.dg-arc-stats span { display: block; font-size: 11px; line-height: 1.5; color: #727980; margin-top: 5px; }

@media (max-width: 760px) {
  .dg-flow { grid-template-columns: minmax(0,1fr) 145px minmax(0,1fr); gap: 24px; }
  .dg-input { grid-template-columns: 1fr; gap: 8px; min-height: 130px; }
  .dg-input > img, .dg-input > svg, .dg-mini-twins, .dg-dimension { width: 100%; height: 85px; }
  .dg-mini-twins img { height: 85px; }
  .dg-flow-model { padding-top: 120px; }
  .dg-model-name::before, .dg-model-name::after { top: 165px; }
  .dg-model-name::before { left: -21px; }.dg-model-name::after { right: -21px; }
  .dg-twins-grid { gap: 20px; }
  .dg-bar-row, .dg-bar-axis { grid-template-columns: 190px minmax(0,1fr) 44px; gap: 14px; }
}
@media (max-width: 540px) {
  .dg { padding-top: 22px; }
  .dg-title { font-size: 17px; }
  .dg-subtitle { font-size: 12px; margin-bottom: 20px; }
  .dg-flow { grid-template-columns: 1fr; gap: 10px; }
  .dg-flow-side { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 12px; }
  .dg-flow-heading { grid-column: 1 / -1; }
  .dg-input { margin-bottom: 8px; align-content: start; }
  .dg-input strong { font-size: 11px; }.dg-input span { font-size: 10px; }
  .dg-flow-model { padding: 16px 0 30px; }
  .dg-model-name { width: 62%; margin: 0 auto; padding: 14px 8px; font-size: 24px; }
  .dg-model-name::before { content: '\2193'; top: -4px; left: 50%; }.dg-model-name::after { content: '\2193'; top: auto; bottom: 2px; right: auto; left: 50%; }
  .dg-holdout { margin-top: 6px; }
  .dg-target { margin-top: 12px; padding-top: 9px; }.dg-target::before { display: none; }
  .dg-bar-row { grid-template-columns: minmax(0,1fr) 50px; gap: 6px 12px; margin-bottom: 17px; }
  .dg-bar-label { text-align: left; font-size: 12px; }
  .dg-bar-value { grid-column: 2; grid-row: 1; text-align: right; font-size: 12px; }
  .dg-bar-track { grid-column: 1 / -1; grid-row: 2; height: 10px; }
  .dg-bar-axis { grid-template-columns: 1fr; }.dg-bar-axis > div { grid-column: 1; }
  .dg-controls { column-gap: 16px; }.dg-controls button { font-size: 11px; }
  .dg-region-panels { gap: 10px; }.dg-panel-label { font-size: 11px; min-height: 50px; }.dg-panel-label span { font-size: 10px; }
  .dg-panel-value { font-size: 10px; min-height: 32px; }
  .dg-detail, .body .dg-detail { font-size: 11px; }
  .dg-legend-label { margin-left: 0; flex-basis: 100%; text-align: center; }
  .dg-twins-grid { grid-template-columns: 1fr; gap: 24px; }
  .dg-twin-column { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .dg-pair-number { grid-column: 1 / -1; }.dg-pair-summary { grid-column: 1 / -1; }
  .dg-twin-member { margin-bottom: 14px; }.dg-place { min-height: 0; }
  .dg-arc-stats { column-gap: 12px; margin-top: 18px; }.dg-arc-stats strong { font-size: 18px; }.dg-arc-stats span { font-size: 10px; }
}
@media print { .dg-controls, .dg-detail { display: none; }.dg { break-inside: avoid; }.dg-twins-grid { grid-template-columns: repeat(3,1fr); }.dg-twin-column { display: block; } }
