/* One level deeper: the drill-down panel site/assets/drill.js opens, and the
   chart marks that open it. No new tokens, no new card shape: this reuses
   .scrim/.sheet (the share sheet's own frame), .panel-head's "k" label, the
   wire's .num figures, and .note-text for prose, exactly as they already
   read elsewhere on the site (CLAUDE.md, "Consistency, locked"). */

/* ---- the marks: a bar, a row or a point that opens the panel ---- */
.drillable { cursor: pointer; }
.ch-hb-row.drillable { transition: background 120ms var(--ease); border-radius: var(--r-ctl); }
.ch-hb-row.drillable:hover { background: var(--sub); }
[data-drill-params]:focus-visible,
.ch-hit:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.ch-bar.drillable { cursor: pointer; }
.ch-bar.drillable:hover, .ch-bar.drillable:focus-visible { opacity: .82; }
.ch-hit { pointer-events: all; }

/* ---- the panel: a wide sheet on a pointer-sized screen, a full-width
   bottom sheet under 640px, same breakpoint the notes modal already uses ---- */
.drill-panel { width: min(760px, 100%); max-height: min(84vh, 780px); display: flex; flex-direction: column; padding: 22px 22px 18px; position: relative; }
.drill-panel .drill-close { position: absolute; top: 14px; right: 14px; }
.drill-panel .k { margin-top: 2px; }
.drill-h { font-size: 20px; margin: 4px 0 2px; padding-right: 60px; }
.drill-status { color: var(--fg-2); font-size: 13px; min-height: 16px; }
.drill-body { overflow-y: auto; margin-top: 12px; padding-right: 2px; display: grid; gap: 18px; scrollbar-width: thin; }
.drill-foot { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.drill-sec + .drill-sec { padding-top: 4px; border-top: 1px solid var(--line-2); }
.drill-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.drill-sec-head .k { color: var(--fg-3); font: 600 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; }
.drill-pop { font-size: 12.5px; color: var(--fg-2); margin-top: 2px; }
.drill-note { color: var(--fg-2); }
.drill-mk-credit { margin-top: 8px; }
.drill-grid { margin-top: 10px; display: grid; gap: 10px; }
.mk-list.drill-grid { list-style: none; padding: 0; }

@media (max-width: 640px) {
  .drill-scrim { padding: 0; align-items: flex-end; }
  .drill-panel { width: 100%; max-width: none; max-height: 88vh; border-radius: var(--r-box) var(--r-box) 0 0; padding: 18px 16px 16px; }
}
