/* Condition Data Explorer, SHARED chart presentation (2026-08-06).
 *
 * The visual half of the explorer-charts.js split: every class the shared
 * chart builders emit lives here, so the interactive page (/dc/explorer) and
 * the export layout (/dc/explorer-export, screenshotted into the PNG/PDF
 * downloads) style identical markup from one stylesheet. Page-only chrome
 * (hero, chips, picker, back link, export buttons) stays inline in
 * explorer.html; nothing here knows about interaction.
 *
 * Reuses the /dc/outcomes visual vocabulary (.oc-*) so the explorer matches it.
 */

/* Basics strip: three compact curated cards, deliberately small real estate */
.ex-basics { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; margin: .8rem 0 1.4rem; }
.ex-basic { background: rgba(127,127,127,.07); border-left: 3px solid var(--color-accent); border-radius: var(--radius-md); padding: .7rem .85rem; }
.ex-basic h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--color-text-muted); margin: 0 0 .3rem; }
.ex-basic p { font-size: .84rem; line-height: 1.45; margin: 0; }

/* Rating ladder chips (print mockup): the percents as colored pills, sentence
   below. Severity buckets: 0 blue, under 30 green, 30-40 gold, 50+ red. */
.ex-pills { display: flex; gap: .45rem; flex-wrap: wrap; margin: 0 0 .45rem; }
.ex-pill { flex: 1; min-width: 44px; text-align: center; color: #fff; font-weight: 700; font-size: .82rem; padding: .28rem .5rem; border-radius: 7px; }
.ex-pill-b { background: #3d6ea5; } .ex-pill-g { background: #3b8a4e; }
.ex-pill-y { background: #d18f1e; } .ex-pill-r { background: #c0492f; }

.oc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .7rem; margin-bottom: 1.4rem; }
.oc-card { background: rgba(127,127,127,.07); border-radius: var(--radius-md); padding: .7rem .85rem; }
.oc-card-l { font-size: .78rem; color: var(--color-text-muted); }
.oc-card-v { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
.oc-card-sub { font-size: .68rem; color: var(--color-text-muted); margin-top: .15rem; line-height: 1.3; }

/* Chart cards */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ex-grid .ex-span { grid-column: 1 / -1; }
.ex-span .oc-bar-l { width: min(340px, 45%); }
.ex-chart { background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.ex-chart[hidden] { display: none; }
.ex-chart h3 { font-size: .95rem; color: var(--color-primary); margin: 0 0 .2rem; }
.ex-chart .note { font-size: .76rem; color: var(--color-text-muted); margin: 0 0 .8rem; line-height: 1.45; }
.ex-chart .src { font-size: .68rem; color: var(--color-text-muted); margin-top: .7rem; }

.oc-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.oc-bar-l { width: 150px; font-size: .8rem; color: var(--color-text); flex: none; line-height: 1.2; }
.oc-bar-track { flex: 1; height: 20px; background: rgba(127,127,127,.12); border-radius: 5px; overflow: hidden; }
.oc-bar-fill { display: block; height: 100%; }
.oc-bar-v { width: 46px; text-align: right; font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.oc-granted { background: #3b8a4e; } .oc-denied { background: #c0492f; } .oc-remanded { background: #d18f1e; }
.oc-dismissed { background: #7a7f87; } .oc-accent { background: var(--color-accent); } .oc-blue { background: #3d6ea5; }

.ex-donut-wrap { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.ex-donut { width: 150px; height: 150px; flex: none; }
.ex-donut-center { font-size: 1.05rem; font-weight: 800; fill: var(--color-text); }
.ex-donut-center-sub { font-size: .55rem; fill: var(--color-text-muted); }
.ex-legend { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.ex-legend li { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.ex-legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ex-legend .v { font-weight: 700; font-variant-numeric: tabular-nums; }

.oc-dockets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.oc-dk { background: rgba(127,127,127,.07); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: .8rem .9rem; }
.oc-dk-h { font-weight: 700; color: var(--color-primary); font-size: .88rem; }
.oc-dk-n { font-weight: 400; color: var(--color-text-muted); font-size: .74rem; }
.oc-dk-note { font-size: .72rem; color: var(--color-text-muted); margin-bottom: .55rem; }
.oc-dk .oc-bar-l { width: 68px; font-size: .76rem; }
.oc-dk .oc-bar-v { width: 40px; }

/* Nexus lift: the two-big-bars comparison */
.ex-lift { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; margin-bottom: .6rem; }
.ex-lift-col { text-align: center; }
.ex-lift-bar { width: 68%; margin: 0 auto .45rem; border-radius: 6px 6px 0 0; min-height: 8px; }
.ex-lift-v { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); }
.ex-lift-l { font-size: .74rem; color: var(--color-text-muted); line-height: 1.3; }
.ex-lift-callout { text-align: center; font-size: .84rem; background: rgba(212,164,23,.12); border-radius: var(--radius-sm); padding: .5rem .7rem; }

.ex-curated-slot { border: 1px dashed var(--color-border-strong, #b8c2d0); border-radius: var(--radius-md); padding: 1rem 1.1rem; background: transparent; }
.ex-curated-slot h3 { font-size: .95rem; color: var(--color-primary); margin: 0 0 .2rem; }
.ex-curated-slot .tag { font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(127,127,127,.16); color: var(--color-text-muted); padding: .14rem .5rem; border-radius: 20px; }
.ex-curated-slot p { font-size: .82rem; color: var(--color-text-muted); line-height: 1.5; margin: .5rem 0 0; }

/* Relationship-shape list in the pair deep dive (2026-08-21). Tokens only, so
   both themes and the light-forced export layout all resolve correctly; the
   translucent grey works on either ground without a second rule. */
.ex-attr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ex-attr-list li { font-size: .84rem; line-height: 1.55; color: var(--color-text); background: rgba(127,127,127,.06); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .5rem .8rem; }
.ex-attr-none { font-size: .84rem; line-height: 1.55; color: var(--color-text); background: rgba(127,127,127,.06); border-left: 3px solid var(--color-border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .5rem .8rem; margin: 0; }

.ex-quote { border-left: 3px solid var(--color-accent); padding: .5rem .8rem; margin: 0 0 .7rem; background: rgba(127,127,127,.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ex-quote p { font-size: .84rem; line-height: 1.5; margin: 0 0 .3rem; font-style: italic; }
.ex-quote a { font-size: .76rem; color: var(--color-primary); font-weight: 600; text-decoration: none; }
.ex-quote a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .oc-bar-l { width: 118px; }
  .ex-grid { grid-template-columns: 1fr; }
}
