/* Consumer choice uses E20's type, spacing and Pearl–Basalt figure frame.
   Only the story's native diagrams, evidence rows and compact contents live here. */

/* Responsive rules previously loaded before this stylesheet via site.css.
   Keep them before the story rules to preserve cascade precedence. */
@media (max-width: 1024px) {
  .choices-story .choices-contents summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--e20-limestone);
    cursor: pointer;
  }
  .choices-story .choices-contents summary::after {
    content: "+";
    font-size: 20px;
  }
  .choices-story .choices-contents[open] summary::after {
    content: "−";
  }
  .choices-story .choices-contents ol {
    padding-top: 12px;
  }
}
@media (max-width: 760px) {
  .choices-story .choices-viz__stage {
    padding: 18px;
  }
  .choices-story .choices-viz__stage--ranked {
    padding: 8px 0 0;
  }
  .choices-story .choices-viz__note {
    padding: 0 18px 18px;
  }
  .choices-story .choices-viz__stage > .choices-viz__note {
    padding: 0;
  }
  .choices-story .choices-share__labels {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .choices-story .choices-mechanism {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .choices-story .choices-records > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media print {
  .choices-story .article-contents,
  .choices-story .e20-viz__actions,
  .choices-story .e20-viz__status {
    display: none;
  }
  .choices-story .choices-network,
  .choices-story .choices-mechanism,
  .choices-story .choices-records > div {
    break-inside: avoid;
  }
}

.choices-story {
  --choices-focus: var(--e20-blue);
  --choices-comparison: var(--e20-brass);
  --choices-section-space: 64px;
  --choices-figure-space: 32px;
  --choices-text-space: 16px;
}

.choices-story .article-section {
  padding-top: var(--choices-section-space);
}
.choices-story .e20-opening {
  padding-bottom: var(--choices-section-space);
}
.choices-story .article-section__intro {
  margin-bottom: var(--choices-figure-space);
}
.choices-story .article-section__intro > p:not(.eyebrow),
.choices-story .e20-explanation p + p {
  margin-top: var(--choices-text-space);
}
.choices-story .e20-bridge,
.choices-story .e20-explanation {
  margin-top: 24px;
}
.choices-story .article-section__intro + .e20-explanation {
  margin-top: 0;
}
.choices-story .e20-viz--follow {
  margin-top: var(--choices-figure-space);
}
.choices-story .article-conclusion {
  margin-top: var(--choices-figure-space);
  padding-top: 0;
}
@media (max-width: 760px) {
  .choices-story {
    --choices-section-space: 48px;
    --choices-figure-space: 24px;
  }
}

.choices-story .e20-opening + .article-section {
  padding-top: 0;
}

.choices-contents summary {
  margin-bottom: 14px;
  color: var(--e20-basalt);
  font-size: var(--article-type-supporting);
  font-weight: 700;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

.choices-contents summary::-webkit-details-marker {
  display: none;
}

.choices-story .article-contents li {
  padding-block: 9px;
  padding-left: 0;
  border: 0;
}

.choices-story .article-contents a[aria-current="location"] {
  color: var(--e20-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.choices-viz__stage {
  padding: 24px 28px;
}

.choices-viz__stage--ranked {
  padding: 12px 14px 0;
}

.choices-viz__note {
  margin: 0;
  padding: 0 28px 24px;
  color: var(--graphite);
  font-size: var(--article-type-caption);
  line-height: var(--article-leading-caption);
}

.choices-share__unit,
.choices-network > p,
.choices-mechanism__term,
.choices-data-heading {
  color: var(--graphite);
  font-size: var(--article-type-caption);
  line-height: var(--article-leading-caption);
}

.choices-share__bar {
  display: flex;
  height: 32px;
  margin-top: 16px;
  overflow: hidden;
}

.choices-share__segment {
  width: var(--share);
  height: 100%;
  flex-shrink: 0;
  border-right: 2px solid var(--e20-pearl);
}

.choices-share__segment:last-child {
  border-right: 0;
}

.choices-series--0 {
  background: var(--choices-focus);
}
.choices-series--1 {
  background: var(--choices-comparison);
}
.choices-series--2 {
  background: var(--e20-basalt);
}
.choices-series--3 {
  background: var(--mist);
}
.choices-share__segment:last-child,
.choices-share__labels li:last-child .choices-share__swatch {
  background: var(--mist);
}

.choices-share__labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--article-type-caption);
  line-height: var(--article-leading-caption);
}

.choices-share__labels li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.choices-share__label {
  position: relative;
  padding-left: 22px;
}
.choices-share__swatch {
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
}
.choices-share__labels strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.choices-mechanism {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-block: 24px;
  border-top: 1px solid var(--e20-limestone);
}

.choices-mechanism:first-child {
  border-top: 0;
  padding-top: 0;
}
.choices-mechanism:last-child {
  padding-bottom: 0;
}
.choices-mechanism h4,
.choices-network h4 {
  font-size: var(--article-type-subheading);
  line-height: var(--article-leading-caption);
}
.choices-mechanism__term {
  margin-top: 8px;
}
.choices-mechanism p:not(.choices-mechanism__term, .choices-evidence) {
  font-size: var(--article-type-body);
  line-height: var(--article-leading-body);
}

.choices-story .choices-evidence {
  margin-top: 12px;
  color: var(--e20-muted);
  font-size: var(--article-type-supporting);
  line-height: var(--article-leading-supporting);
}

.choices-network {
  padding-top: 24px;
  border-top: 1px solid var(--e20-limestone);
}
.choices-network h4 {
  color: var(--e20-ink);
  font-family: var(--font-sans);
  font-size: var(--article-type-figure-heading);
  line-height: 1.28;
}
.choices-network__illustration {
  display: block;
  max-width: 600px;
  margin: 24px auto 0;
}
.choices-network__illustration img {
  display: block;
  width: 100%;
  height: auto;
}
.choices-story .choices-network__caption {
  max-width: 66ch;
  margin: 12px 0 0;
  color: var(--e20-muted);
  font-size: var(--article-type-supporting);
  line-height: var(--article-leading-supporting);
}
@media (max-width: 600px) {
  .choices-network__illustration {
    max-width: 320px;
    margin-top: 18px;
  }
}
.choices-viz__stage > .choices-viz__note {
  margin-block: 24px;
  padding: 0;
}

.choices-records > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--e20-limestone);
}
.choices-records > div:first-child {
  border: 0;
  padding-top: 0;
}
.choices-records > div:last-child {
  padding-bottom: 0;
}
.choices-records dt {
  font-size: var(--article-type-body);
  line-height: var(--article-leading-body);
}
.choices-records dt span {
  display: block;
  margin-bottom: 8px;
  color: var(--e20-muted);
  font-size: var(--article-type-meta);
}
.choices-records dd {
  font-family: var(--font-sans);
  font-size: var(--article-type-section-heading);
  line-height: 1.2;
}

.choices-story .choices-sources {
  margin-top: var(--choices-section-space);
  padding-top: 0;
}
.choices-sources h3 {
  font-family: var(--font-sans);
  font-size: var(--article-type-subheading);
}
.choices-sources ol + h3 {
  margin-top: 32px;
}
.choices-sources h3 + p {
  margin-top: 12px;
  font-size: var(--article-type-caption);
  line-height: var(--article-leading-caption);
}
.choices-data-heading {
  margin-block: 24px 12px;
  font-weight: 700;
}
.choices-story .e20-data-panel > a {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--article-type-caption);
}
.choices-story .e20-viz__actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}
.choices-story .e20-viz__actions a,
.choices-story .e20-viz__actions button {
  min-width: 44px;
  min-height: 44px;
}

/* Three short profiles share a reading rhythm, rather than a flowchart. */
.choices-markets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 0;
}
.choices-market {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  min-width: 0;
  padding-inline: 22px;
}
.choices-market:first-child {
  padding-left: 0;
}
.choices-market:last-child {
  padding-right: 0;
}
.choices-market + .choices-market {
  border-left: 1px solid var(--e20-limestone);
}
.choices-market h4 {
  color: var(--e20-ink);
  font-size: var(--article-type-subheading);
  line-height: var(--article-leading-caption);
}
.choices-market__names {
  display: grid;
  gap: 6px;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}
.choices-market__names li {
  min-width: 0;
}
.choices-market__names strong {
  display: block;
  color: var(--e20-ink);
  font-family: var(--font-sans);
  font-size: var(--article-type-card-heading);
  line-height: 1.3;
}
.choices-market__names span {
  display: block;
  color: var(--e20-muted);
  font-size: var(--article-type-meta);
  line-height: 1.5;
}
.choices-market__names abbr {
  text-decoration: none;
}
.choices-story .choices-market__fact {
  margin: 0 0 12px;
  color: var(--e20-ink);
  font-size: var(--article-type-caption);
  line-height: var(--article-leading-caption);
  font-weight: 700;
}
.choices-story .choices-market__note {
  margin: 0;
  color: var(--graphite);
  font-size: var(--article-type-caption);
  line-height: var(--article-leading-caption);
}
.choices-story .choices-market__measure {
  margin: 16px 0 0;
  color: var(--e20-muted);
  font-size: var(--article-type-supporting);
  line-height: var(--article-leading-supporting);
}
.choices-market a {
  text-underline-offset: 3px;
}
.choices-story .choices-market > * {
  margin: 0;
}
.choices-market__names {
  align-content: start;
}
@media (max-width: 1100px) {
  .choices-markets {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choices-market,
  .choices-market:first-child,
  .choices-market:last-child {
    display: block;
    padding: 0;
  }
  .choices-market + .choices-market {
    margin-top: 24px;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--e20-limestone);
  }
  .choices-story .choices-market > * + * {
    margin-top: 12px;
  }
  .choices-market__names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 12px 0 16px;
  }
}
@media (max-width: 760px) {
  .choices-viz__stage:not(.choices-viz__stage--ranked) {
    padding-inline: 14px;
  }

  .choices-market__names strong {
    font-size: var(--article-type-figure-heading);
  }
}

/* Detail stays beside the mark; the reading layout never expands. */

.choices-share {
  position: relative;
}
.choices-share[data-interactive="true"] .choices-share__segment {
  cursor: pointer;
}
.choices-share__bar[data-preview="true"]
  .choices-share__segment[data-active="false"] {
  opacity: 0.45;
}
.choices-share__segment {
  transition: opacity 120ms ease;
}
.choices-share__control {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.choices-share__control:hover .choices-share__label,
.choices-share__control:focus-visible .choices-share__label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.choices-share__control:focus-visible {
  outline: 2px solid var(--choices-focus);
  outline-offset: 3px;
}
.choices-story .choices-share__hint {
  margin: 8px 0 0;
  color: var(--e20-muted);
  font-size: var(--article-type-supporting);
  line-height: var(--article-leading-supporting);
}
.choices-share__tooltip {
  position: absolute;
  z-index: 6;
  width: min(300px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  background: #202629;
  color: var(--white);
  font-size: var(--article-type-meta);
  line-height: 1.5;
  box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
  font-variant-numeric: tabular-nums;
}
.choices-share__tooltip[hidden] {
  display: none;
}
.choices-share__tooltip > strong,
.choices-share__tooltip > span {
  display: block;
}
.choices-share__tooltip > strong {
  margin-bottom: 3px;
}
.choices-share__tooltip dl {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #747c7f;
}
.choices-share__tooltip dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 2px;
}
.choices-share__tooltip dd {
  margin: 0;
  white-space: nowrap;
}
.choices-share__tooltip-note {
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .choices-share__segment {
    transition: none;
  }
}
@media print {
  .choices-share__bar .choices-share__segment {
    opacity: 1;
  }
  .choices-market {
    break-inside: avoid;
  }
  .choices-share__tooltip,
  .choices-share__hint {
    display: none;
  }
}
