/* One source per document (from the live page, ADR-T040), drawn in the approved design (bản C, 17/11): a document
   cited in several places is one card that lists them; the chosen place is marked (no passage on the card). Also the
   list under each answer (phones) and the sheet a citation opens on a phone. The live page draws these in polish.css. */

/* ── Sources column: places of one document ── */
.sc.is-group > .sc-n { width: auto; min-width: 26px; padding: 0 5px; font-size: 11.5px; letter-spacing: -.02em; white-space: nowrap; }   /* "1,2" */
.sc-parts { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 2px; padding: 0; list-style: none; }
.sc-part { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 5px 7px; border: 1.5px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; line-height: 18px; text-align: left; cursor: pointer; }
.sc-part:hover { border-color: var(--tdtu-blue-200); background: var(--paper); color: var(--text); }
.sc-part[aria-pressed="true"] { border-color: var(--v-ink); background: var(--v-yellow); color: var(--tdtu-blue-800); font-weight: 600; }
.sc-part:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sc-part .sc-pn { flex: none; min-width: 20px; height: 18px; padding: 0 4px; border-radius: var(--radius-xs); background: var(--primary-soft); color: var(--tdtu-blue-800); font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }
.sc-part[aria-pressed="true"] .sc-pn { background: var(--primary); color: var(--text-inverse); }
.sc-part .sc-pw { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

/* ── The list under each answer (phones): one box per document ── */
.cite-group { border: 1.5px solid var(--tdtu-blue-200); border-radius: var(--radius-md); background: var(--paper); overflow: hidden; }
.cite-group + .cite-group { margin-top: 8px; }
.cite-group-head { padding: 10px 13px 2px; }
.cite-group-title { font-family: var(--font-heading); font-size: 13.5px; line-height: 19px; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.cite-group .cite-card { margin: 0; border: 0; border-radius: 0; background: transparent; }
.cite-group.is-multi .cite-card .cite-title { display: none; }   /* the document's name is the box's title */
.cite-group .cite-card + .cite-card { border-top: 1px dashed var(--rule); }

/* ── Phones: a citation opens its source in a sheet; closing it returns to the same place ── */
.cite-sheet-back { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: flex-end; background: var(--overlay); }
.cite-sheet-back[hidden] { display: none; }
.cite-sheet { width: 100%; max-height: 72vh; overflow: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 2px solid var(--v-ink); border-radius: 16px 16px 0 0; background: var(--paper); box-shadow: 0 -6px 24px rgb(15 30 61 / .18); overscroll-behavior: contain; }
.cite-sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 6px 0 8px; background: var(--paper); }
.cite-sheet-head b { font-family: var(--font-heading); font-size: 15px; color: var(--heading); }
.cite-sheet-x { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--v-ink); border-radius: var(--radius-sm); background: var(--paper); color: var(--v-ink); }
.cite-sheet-x:hover { background: var(--v-yellow); }
.cite-sheet-x .ic { width: 18px; height: 18px; }
.cite-sheet .cite-group { border: 0; }
.cite-sheet .cite-card.is-target { border-radius: var(--radius-sm); background: var(--v-cream); box-shadow: inset 3px 0 0 var(--v-ink); }

/* ── Sources column: no scrollbar at all (owner request 2026-11-28; the fade that said "more below" was removed too).
   It still scrolls by wheel, touchpad, touch and keyboard, and a citation still brings its card into view. ── */
.src-panel { scrollbar-width: none; }
.src-panel::-webkit-scrollbar { display: none; }
