/* =====================================================================
   RSI · enterrsi.si · rsi-d.css (v1.15.0, Nov 27, 2026)
   The Docket, What They Can Touch, The Companion Check, January 1 and
   The Whistle Desk. Uses the site's tokens and the shared pieces of
   rsi-g, rsi-o, rsi-s, rsi-r, rsi-x and rsi-t (cards, chips, tiles,
   rows that span). Every card opens its area. Nothing runs past its box.
   ===================================================================== */

/* the facts of an entry: court, case number, date, parties */
.dk-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px clamp(16px, 2.4vw, 32px); margin: 0; }
.dk-meta > div { display: grid; gap: 4px; align-content: start; min-width: 0; padding-left: 12px; border-left: 2px solid rgba(79, 163, 255, .35); }
.dk-meta dt { margin: 0; color: var(--mute); }
.dk-meta dd { margin: 0; color: var(--ice, #d6deeb); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.dk-meta dd .dk-n { font-family: var(--f-display); font-size: 18px; color: var(--ion); }

/* an entry: head, facts, rows that span, sources */
.dk-case .xd-eh .h3, .dk-agent .xd-eh .h3, .dk-app .xd-eh .h3, .dk-law .xd-eh .h3, .dk-lawcard .xd-eh .h3, .dk-place .xd-eh .h3 { overflow-wrap: anywhere; }
.dk-case .tk-g .body-copy, .dk-lawcard .tk-g .body-copy, .dk-place .tk-g .body-copy, .dk-check .body-copy { margin: 0; color: var(--ice, #d6deeb); font-size: 15.5px; line-height: 1.6; max-width: none; }
.dk-case .tk-g .sw-small { margin: 0; }
.dk-case .xd-srcs .k, .dk-case .xd-srcs p { margin: 0; }
.dk-case .xd-srcs { display: grid; gap: 8px; }
.dk-four .tk-g { flex: 1 1 260px; }
@media (min-width: 1500px) { .dk-four .tk-g { flex-basis: 22%; } }
.dk-check { align-content: start; }
.dk-check .sw-chips { margin: 0; }
.dk-warn { margin: 0; padding: 10px 14px; border-left: 2px solid rgba(255, 180, 94, .55); color: var(--ice, #d6deeb); background: rgba(255, 180, 94, .05); border-radius: 0 10px 10px 0; }
.dk-place .dk-ch { color: #fff; font-weight: 600; }
.card .dk-go { margin: 4px 0 0; padding: 0; justify-content: flex-start; }
.dk-place .tk-g .dk-go .btn { margin: 0; }
.dk-laws { margin-top: clamp(16px, 2.2vw, 26px); }
@media (min-width: 900px) { .dk-laws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); } .dk-laws > .card { margin: 0; } }
.dk-laws + .sw-note { margin-top: clamp(16px, 2vw, 24px); }

/* tables of the five records: the look of the shared table card, with every column kept on a phone
   (the tables on phones block of the site stylesheet turns a table that does not fit into one card per row) */
.dk-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dk-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dk-table th, .dk-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dk-table th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dk-table thead th { white-space: nowrap; }
.dk-table td { color: var(--mute); }
.dk-table td a { color: var(--ice); }
.dk-table td time { white-space: nowrap; }
.dk-table .sw-chip { white-space: nowrap; }

/* the two laws side by side: the requirement is the row label */
.dk-lawtable tbody th { text-align: left; font-weight: 600; color: #fff; min-width: 9em; white-space: normal; }
.dk-lawtable td, .dk-lawtable th { white-space: normal; overflow-wrap: normal; word-break: normal; vertical-align: top; }
.dk-lawtable td { min-width: 14em; }
.dk-none { color: var(--mute); }

/* the help line under the counts */
.dk-help { text-align: center; margin: clamp(16px, 2vw, 24px) auto 0; max-width: 92ch; }
.dk-help a { font-family: var(--f-display); color: var(--ion); }
.dk-help + .dk-help2 { margin-top: 6px; }

/* later dates and the four related records */
.dk-later > li { flex: 1 1 320px; display: grid; gap: 8px; align-content: start; }
.dk-later > li > * { margin: 0; }
.dk-later .h3 { font-size: clamp(16px, 1.4vw, 20px); }
.dk-rels { margin-bottom: clamp(20px, 3vw, 36px); }
.dk-rel { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.dk-rel > * { margin: 0; min-width: 0; }
.dk-rel .peek { font-family: var(--f-display); color: var(--ion); font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.dk-rel .peek small { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-left: 6px; }
.dk-rel .link-arrow { margin-top: auto; }

/* the home band: five cards, three then two, no empty cell */
.dk-home { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dk-home > a.card { grid-column: span 2; text-decoration: none; }
.dk-home > a.card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1023px) { .dk-home > a.card { grid-column: span 3; } .dk-home > a.card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .dk-home > a.card, .dk-home > a.card:nth-child(n+4) { grid-column: 1 / -1; } }
