/* =========================================================================
   Trial guide (#/trial, .trl-*) and Objections (#/objections, .obj-*)
   ========================================================================= */

/* ---------- shared: sticky in-page jump nav ---------- */
.trl-jump { position: sticky; top: 60px; z-index: 10; margin: 0 0 clamp(28px, 4vw, 44px); background: color-mix(in oklch, var(--bg) 98%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.trl-jump-in { max-width: var(--maxw); margin: 0 auto; padding: 6px var(--gutter); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.trl-jump-in::-webkit-scrollbar { display: none; }
.trl-jump a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; border-radius: 8px; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.trl-jump a:hover { color: var(--ink); background: var(--surface); }
.trl-jump a[aria-current] { color: var(--ink); background: var(--hi-soft); box-shadow: inset 0 -2px 0 var(--hi); }
.trl-sec, .obj-sec, .obj-item, .obj-rule, .obj-anchor, .trl-step, #practice-timer, #planner, #judge-checklist, #extrapolation, #hearsay-exceptions { scroll-margin-top: 56px; }
.obj-sec.obj-intro { margin-top: 0; }

/* section titles */
.trl-st { display: block; margin-bottom: 18px; }
.trl-st-sub { margin: 6px 0 0; max-width: 64ch; }
.trl-h3, .obj-h3 { font-size: var(--step-1); margin: 0 0 10px; }
.trl-h4 { font-size: 1rem; margin: 22px 0 8px; }
.trl-intro { max-width: var(--read); color: var(--ink-2); }
.trl-two { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; margin-top: 28px; }
.trl-fold { margin-top: 14px; }
.trl-fold > summary { min-height: 44px; align-items: center; }
.trl-tap button, .obj-tap button { min-height: 40px; }
.trl-n { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-3); margin-left: 3px; }
.trl-filter, .obj-art-seg { margin-bottom: 16px; }
.trl q, .obj q { font-family: var(--f-read); font-style: italic; }
.trl q::before, .obj q::before { content: "“"; } .trl q::after, .obj q::after { content: "”"; }

/* ---------- order of trial ---------- */
.trl-order-bar { display: flex; gap: 12px 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.trl-order-bar .trl-intro { margin: 0; flex: 1 1 340px; }
.trl-order-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.trl-order-tools .btn { min-height: 40px; }
.trl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.86rem; color: var(--ink-2); margin-bottom: 14px; }
.trl-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.trl-dot:first-child { margin-left: 0; }
.trl-dot.pl { background: var(--pl); } .trl-dot.df { background: var(--df); } .trl-dot.ct { background: var(--ink-3); }
.trl-phase { display: grid; grid-template-columns: minmax(150px, 13rem) minmax(0, 1fr); gap: 4px 24px; border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 18px; }
.trl-phase-h { font-size: 1.02rem; padding-top: 8px; }
@media (max-width: 760px) { .trl-phase { grid-template-columns: 1fr; } }
.trl-steps { list-style: none; margin: 0; padding: 0; }
.trl-step { border-bottom: 1px solid var(--line); }
.trl-step:last-child { border-bottom: 0; }
.trl-step-btn { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 14px; gap: 4px 14px; align-items: center; text-align: left; padding: 10px 6px; min-height: 56px; border: 0; background: none; cursor: pointer; border-radius: 8px; transition: background 160ms; }
.trl-step-btn:hover { background: var(--surface); }
.trl-step-btn::after { content: ""; width: 8px; height: 8px; border: solid var(--ink-3); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-3px); transition: transform 220ms var(--ease); justify-self: end; }
.trl-step.is-open .trl-step-btn::after { transform: rotate(225deg) translateY(-1px); }
.trl-step.is-open .trl-step-btn { background: var(--hi-soft); }
.trl-step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 0.92rem; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.a-pl .trl-step-n { background: var(--pl-soft); color: var(--pl); box-shadow: inset 0 0 0 1.5px var(--pl-line); }
.a-df .trl-step-n { background: var(--df-soft); color: var(--df); box-shadow: inset 0 0 0 1.5px var(--df-line); }
.trl-step-main { display: grid; gap: 1px; min-width: 0; }
.trl-step-name { font-weight: 750; line-height: 1.3; }
.trl-step-who { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; }
.trl-step-time { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 3px 8px 2px; white-space: nowrap; max-width: 15em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .trl-step-btn { grid-template-columns: 34px minmax(0, 1fr) 14px; }
  .trl-step-time { grid-column: 2; grid-row: 2; justify-self: start; white-space: normal; max-width: none; }
  .trl-step-btn::after { grid-column: 3; grid-row: 1; }
}
.trl-step-body { padding: 4px 6px 16px 54px; animation: rise 360ms var(--ease) both; }
@media (max-width: 560px) { .trl-step-body { padding-left: 6px; } }
.trl-step-body .read { margin: 6px 0 12px; max-width: var(--read); }
.trl-step-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.trl-step-nav { display: flex; gap: 8px; }
.trl-step-nav .btn { min-height: 40px; }
.trl-actor { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.trl-actor.pl { color: var(--pl); background: var(--pl-soft); } .trl-actor.df { color: var(--df); background: var(--df-soft); }

/* ---------- the clock ---------- */
.trl-clock-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 18px; }
.trl-check { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-weight: 650; font-size: 0.93rem; color: var(--ink-2); cursor: pointer; }
.trl-check input, .trl-crit input, .obj-quiz-tog input { accent-color: var(--olive); width: 18px; height: 18px; flex: none; }
.trl-strip { display: flex; gap: 2px; height: 20px; border-radius: 6px; overflow: hidden; }
.trl-strip-seg { flex-basis: 0; min-width: 2px; transition: opacity 260ms var(--ease); }
.trl-strip-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--ink-3); margin: 6px 0 18px; }
.trl-strip-cap span:nth-child(2) { text-align: center; }
.trl-clock .k-pl { background: var(--pl); color: var(--bg); }
.trl-clock .k-df { background: var(--df); color: var(--bg); }
.trl-clock .k-ct { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.trl-clock .k-pl.opt { background: repeating-linear-gradient(135deg, var(--pl) 0 3px, var(--pl-soft) 3px 7px); color: var(--pl); box-shadow: inset 0 0 0 1px var(--pl); }
.trl-clock .k-df.opt { background: repeating-linear-gradient(135deg, var(--df) 0 3px, var(--df-soft) 3px 7px); color: var(--df); box-shadow: inset 0 0 0 1px var(--df); }
.trl-clock[data-opt="off"] .opt { display: none; }
.trl-clock[data-only="pl"] [data-side]:not([data-side="pl"]),
.trl-clock[data-only="df"] [data-side]:not([data-side="df"]) { opacity: 0.16; }
.trl-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.trl-total { display: grid; padding: 12px 14px 10px; gap: 0; }
.trl-total + .trl-total { border-left: 1px solid var(--line); }
.trl-total span { font-size: 0.84rem; font-weight: 700; color: var(--ink-2); }
.trl-total b { font-size: var(--step-3); font-weight: 850; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.trl-total small { font-size: 0.8rem; color: var(--ink-3); }
.trl-total.pl b { color: var(--pl); } .trl-total.df b { color: var(--df); }
.trl-clock[data-only="pl"] .trl-total.df, .trl-clock[data-only="df"] .trl-total.pl { opacity: 0.4; }
@media (max-width: 520px) { .trl-totals { grid-template-columns: 1fr 1fr; } .trl-total.ct { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
.trl-gantt { list-style: none; margin: 0; padding: 0; }
.trl-g-row { display: grid; grid-template-columns: minmax(140px, 14rem) minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.trl-g-row.ph-pl + .trl-g-row.ph-df, .trl-g-row.ph-before + .trl-g-row, .trl-g-row.ph-open + .trl-g-row.ph-pl, .trl-g-row.ph-df + .trl-g-row.ph-close { border-top: 1px solid var(--line-strong); }
.trl-g-label { display: grid; line-height: 1.25; }
.trl-g-label b { font-size: 0.93rem; }
.trl-g-label small { font-size: 0.8rem; color: var(--ink-2); }
.trl-g-bar { display: flex; gap: 2px; min-width: 0; }
.trl-seg { height: 28px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity 260ms var(--ease); flex: none; }
.trl-seg b { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 700; }
.trl-seg.opt b { background: var(--bg); color: var(--ink); border-radius: 3px; padding: 1px 3px 0; line-height: 1.2; }
.trl-seg.upto { background: var(--bg); box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--ink-2); }
@media (max-width: 640px) { .trl-g-row { grid-template-columns: 1fr; } .trl-g-label { grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; } }
.trl-g-key { margin-top: 12px; line-height: 1.8; }
.trl-key-box { display: inline-block; width: 22px; height: 12px; border-radius: 3px; vertical-align: -1px; background: var(--ink-3); margin: 0 3px 0 6px; }
.trl-key-box:first-child { margin-left: 0; }
.trl-key-box.kopt { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, var(--surface-2) 3px 7px); }
.trl-key-box.kupto { background: none; border: 1.5px dashed var(--line-strong); }
.trl-facts li { padding: 8px 0; }
.trl-tnote { margin: 4px 0 0; }

/* practice timer */
.trl-timer { position: sticky; top: 128px; }
@media (max-width: 860px) { .trl-timer { position: static; } }
.trl-field { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); margin: 12px 0; }
.trl-field select { font: inherit; font-size: 1rem; font-weight: 650; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; min-height: 44px; padding: 0 10px; }
.trl-readout { font-family: var(--f-mono); font-size: clamp(3rem, 2.2rem + 3vw, 4.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: center; padding: 14px 0 10px; border-radius: var(--r); transition: background 260ms, color 260ms; }
.trl-meter { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.trl-meter span { display: block; height: 100%; background: var(--olive-2); transform-origin: 0 50%; transition: transform 260ms linear; }
.trl-timer-status { min-height: 1.5em; margin: 10px 0; font-weight: 700; text-align: center; color: var(--ink-2); }
.trl-timer-btns { display: flex; gap: 8px; justify-content: center; }
.trl-timer-btns .btn { min-height: 44px; min-width: 7.5em; justify-content: center; }
.trl-timer.warn .trl-readout { background: var(--hi-soft); }
.trl-timer.warn .trl-timer-status { color: var(--ink); }
.trl-timer.done .trl-readout { color: var(--df); background: var(--df-soft); }
.trl-timer.done .trl-timer-status { color: var(--df); }

/* ---------- who does what ---------- */
.trl-benches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 10px; }
.trl-bench { border-radius: var(--r-lg); padding: 14px 16px; border: 1px solid var(--line); }
.trl-bench.pl { background: var(--pl-soft); border-color: var(--pl-line); }
.trl-bench.df { background: var(--df-soft); border-color: var(--df-line); }
.trl-bench h3 { font-size: 1.02rem; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.trl-bench.pl h3 { color: var(--pl); } .trl-bench.df h3 { color: var(--df); }
.trl-bench h3 small { font-weight: 600; color: var(--ink-2); font-size: 0.86rem; }
.trl-bench ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trl-tok { font-size: 0.86rem; font-weight: 700; padding: 5px 10px 4px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-strong); }
.trl-tok.att { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.trl-tok.tk { border-style: dashed; color: var(--ink-2); }
.trl-planner { margin: 22px 0; }
.trl-planner-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; margin-bottom: 12px; }
.trl-planner-head > div:first-child { flex: 1 1 360px; }
.trl-planner-head p { margin: 0; }
.trl-plan-grid { display: grid; border-top: 1px solid var(--line); }
.trl-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.trl-plan-row > span:first-child { display: grid; line-height: 1.25; }
.trl-plan-row small { font-size: 0.8rem; color: var(--ink-2); }
.trl-plan-row.speech b { font-weight: 800; }
.trl-plan-row.own b { color: var(--ink); }
.trl-plan-fixed { font-weight: 800; padding: 0 12px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 9px; background: var(--surface-2); }
.trl-plan-status { margin: 12px 0 6px; }
.trl-plan-check { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; }
.trl-plan-check li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.trl-plan-check li span { font-size: 0.74rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px 1px; border-radius: 5px; }
.trl-plan-check li.ok span { background: color-mix(in oklch, var(--ok) 16%, var(--bg)); color: var(--ok); }
.trl-plan-check li.bad span { background: var(--df-soft); color: var(--df); }
.trl-ok { color: var(--ok); font-weight: 650; } .trl-bad { color: var(--df); font-weight: 650; }
.trl-objmap { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: om; }
.trl-objmap li { counter-increment: om; display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.trl-objmap li::before { content: counter(om); font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); grid-row: span 2; }
.trl-objmap li small { grid-column: 2 / -1; color: var(--ink-2); font-size: 0.82rem; }
.trl-objmap b { font-size: 0.86rem; padding: 3px 9px 2px; border-radius: 99px; white-space: nowrap; }
.trl-who-A { background: var(--ink); color: var(--bg); }
.trl-who-B { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.trl-objwhen td:first-child { min-width: 11em; }
.trl-objwhen td:nth-child(2) { min-width: 12em; }

/* ---------- rules lists ---------- */
.trl-rules { list-style: none; margin: 0; padding: 0; }
.trl-rules li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.trl-rules li:last-child { border-bottom: 0; }
.trl-rules li p { margin: 0; display: inline; }
.trl-rule { display: inline-block; font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600; color: var(--court); background: var(--court-soft); border-radius: 5px; padding: 2px 7px 1px; margin-right: 4px; vertical-align: 0.1em; white-space: nowrap; }

/* extrapolation */
.trl-xtrap { margin-bottom: 8px; }
.trl-xtrap-defs { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.trl-xtrap-defs p { margin: 0 0 8px; }
.trl-xq { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; counter-reset: xq; }
.trl-xq > li { counter-increment: xq; padding: 12px 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }
.trl-xq-line { margin: 0; }
.trl-xq > li > .seg { justify-self: start; }
.trl-xq-line .read { font-size: 1.06rem; }
.trl-xq-line::before { content: counter(xq) "."; font-weight: 850; margin-right: 6px; color: var(--ink-3); }
.trl-xq-fb p { margin: 0; }
.trl-xq-fb { animation: rise 320ms var(--ease) both; }
.trl-xq > li.right { border-color: color-mix(in oklch, var(--ok) 45%, var(--line)); }
.trl-xq > li.right .trl-verdict { color: var(--ok); }
.trl-xq > li.wrong { border-color: var(--df-line); }
.trl-xq > li.wrong .trl-verdict { color: var(--df); }

/* not allowed */
.trl-na { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 28px; }
.trl-na li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.trl-na li p { margin: 0; }
.trl-no, .obj-na-x { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--df); margin-top: 2px; }
.trl-no::after, .obj-na-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 15px; background: var(--df); transform: translate(-50%, -50%) rotate(45deg); }

/* ---------- courtroom ---------- */
.trl-room-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 820px) { .trl-room-wrap { grid-template-columns: 1fr; } }
.trl-room { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto minmax(44px, 1fr) auto auto; gap: 10px 8px; padding: 14px; min-height: 380px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.trl-room > * { font: inherit; font-size: 0.82rem; font-weight: 750; line-height: 1.2; text-align: center; padding: 8px 6px; min-height: 44px; border-radius: 6px; border: 1.5px solid var(--ink-2); background: var(--bg); color: var(--ink); display: grid; place-items: center; }
.trl-room > button { cursor: pointer; transition: transform 160ms var(--ease), background 160ms; }
.trl-room > button:hover { transform: translateY(-1px); background: var(--hi-soft); }
.trl-room > button[aria-pressed="true"] { background: var(--hi-soft); box-shadow: 0 0 0 3px var(--hi); }
.trl-room-judge { grid-column: 3 / 5; grid-row: 1; }
.trl-room-bailiff { grid-column: 1 / 3; grid-row: 2; }
.trl-room-stand { grid-column: 4 / 6; grid-row: 2; }
.trl-room-jury { grid-column: 6; grid-row: 2 / 5; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.1em; text-transform: uppercase; }
.trl-room-dtable { grid-column: 1 / 3; grid-row: 4; }
.trl-room-ptable { grid-column: 4 / 6; grid-row: 4; }
.trl-room-dtable.df { border-color: var(--df); background: var(--df-soft); color: var(--df); }
.trl-room-ptable.pl { border-color: var(--pl); background: var(--pl-soft); color: var(--pl); }
.trl-room-aud1, .trl-room-aud2 { grid-row: 5; border-style: dashed !important; border-color: var(--line-strong) !important; color: var(--ink-2) !important; font-weight: 650 !important; }
.trl-room-aud1 { grid-column: 1 / 3; } .trl-room-aud2 { grid-column: 4 / 6; }
.trl-room-static { opacity: 0.6; }
.trl-room-cap { margin-top: 10px; }
.trl-role-card { min-height: 160px; }
.trl-role-card h3 { font-size: var(--step-1); margin-bottom: 6px; }
.trl-role-card .read { margin: 6px 0 0; }
.trl-role-place { font-size: 0.82rem; font-weight: 750; color: var(--ink-3); margin: 0 0 2px; }
.trl-roles-off .btn { min-height: 40px; }
.trl-roles-off .btn[aria-pressed="true"] { background: var(--hi-soft); border-color: color-mix(in oklch, var(--hi) 70%, var(--ink) 15%); }

/* ---------- competition road ---------- */
.trl-road { list-style: none; margin: 18px 0 12px; padding: 0 0 4px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.trl-road li { flex: 1 0 auto; position: relative; display: flex; }
.trl-road li + li::before { content: ""; align-self: center; width: 18px; height: 2px; background: var(--line-strong); flex: none; }
.trl-road button { flex: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 750; font-size: 0.9rem; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.trl-road button:hover { color: var(--ink); }
.trl-road button[aria-selected="true"] { color: var(--ink); background: var(--hi-soft); border-color: color-mix(in oklch, var(--hi) 70%, var(--ink) 15%); }
.trl-road-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--bg); font-size: 0.8rem; font-weight: 850; flex: none; }
.trl-road-panel { animation: rise 320ms var(--ease) both; max-width: 80ch; }

/* ---------- scoring ---------- */
.trl-scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin: 8px 0 14px; }
.trl-band { display: grid; gap: 2px; padding: 12px 14px; }
.trl-band:nth-child(1) { background: var(--surface); }
.trl-band:nth-child(2) { background: var(--olive-soft); }
.trl-band:nth-child(3) { background: var(--hi-soft); }
.trl-band + .trl-band { border-left: 1px solid var(--line); }
.trl-band-r { font-family: var(--f-mono); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.trl-band span:last-child { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 560px) { .trl-scale { grid-template-columns: 1fr; } .trl-band + .trl-band { border-left: 0; border-top: 1px solid var(--line); } }
.trl-scale-rules { margin: 0 0 22px; padding-left: 1.2em; }
.trl-scale-rules li { margin-bottom: 4px; }
.trl-judge { margin: 8px 0 30px; }
.trl-judge-head p { margin: 0 0 12px; max-width: 72ch; }
.trl-judge-tabs { margin-bottom: 12px; }
.trl-judge-tabs button { min-height: 44px; }
.trl-judge-tabs { flex-wrap: wrap; row-gap: 0; }
.trl-crit { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 24px; }
.trl-crit li { border-bottom: 1px dashed var(--line); }
.trl-crit label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; min-height: 40px; cursor: pointer; }
.trl-crit input { margin-top: 2px; }
.trl-crit label:has(input:checked) span { color: var(--ink); }
.trl-crit label:has(input:checked) { background: linear-gradient(var(--hi-soft), var(--hi-soft)) no-repeat; }
.trl-band-out { margin: 12px 0; min-height: 2.6em; }
.trl-band-out p { margin: 0; }
.trl-band-res { display: grid; gap: 8px; }
.trl-band-meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; max-width: 420px; }
.trl-band-meter span { display: block; height: 100%; background: var(--olive-2); transform-origin: 0 50%; transition: transform 360ms var(--ease); }
.trl-band-res .trl-band-r { font-size: 1em; }
.trl-sheet td { text-align: center; } .trl-sheet td:first-child { text-align: left; }
.trl-pd { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-weight: 850; font-size: 0.82rem; }
.trl-pd.pl { background: var(--pl-soft); color: var(--pl); box-shadow: inset 0 0 0 1px var(--pl-line); }
.trl-pd.df { background: var(--df-soft); color: var(--df); box-shadow: inset 0 0 0 1px var(--df-line); }

/* ---------- prep ---------- */
.trl-prep-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.trl-prep-count { font-weight: 750; font-size: 0.9rem; color: var(--olive); }
.trl-prep { grid-template-columns: 1fr; }
.trl-hard { list-style: none; margin: 0; padding: 0; }
.trl-hard li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.trl-hard li p { margin: 0; }
.trl-hard-l { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--bg); font-weight: 850; font-size: 0.9rem; }

/* ---------- glossary ---------- */
.trl-gloss-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.trl-search, .obj-search { flex: 1 1 280px; max-width: 520px; display: block; }
.trl-search input, .obj-search input { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 46px; padding: 0 14px; }
.trl-search input:focus-visible, .obj-search input:focus-visible { outline-offset: 0; }
.trl-gloss { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 28px; }
.trl-gloss-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.trl-gloss dt { font-weight: 800; }
.trl-gloss dd { margin: 2px 0 0; color: var(--ink-2); }

/* ========================================================================
   Objections
   ======================================================================== */
.obj-keys { padding-left: 1.3em; margin: 0; display: grid; gap: 6px; }
.obj-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.obj-tool-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.obj-tool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.obj-tool-l { font-size: 0.84rem; font-weight: 750; color: var(--ink-2); }
.obj-count { margin: 0; }

.obj-list { border-top: 2px solid var(--ink); }
.obj-item { border-bottom: 1px solid var(--line); }
.obj-item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 2px 16px; align-items: baseline; padding: 14px 4px; min-height: 56px; border-radius: 8px; transition: background 160ms; }
.obj-item > summary::-webkit-details-marker { display: none; }
.obj-item > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--ink-3); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); align-self: center; transition: transform 220ms var(--ease); grid-row: 1; grid-column: 3; }
.obj-item[open] > summary::after { transform: rotate(225deg); }
.obj-item > summary:hover { background: var(--surface); }
.obj-item[open] > summary { background: var(--hi-soft); }
.obj-sum-name { font-weight: 800; font-size: 1.08rem; }
.obj-sum-rule { font-family: var(--f-mono); font-size: 0.78rem; color: var(--court); white-space: nowrap; }
.obj-sum-mean { grid-column: 1 / 3; color: var(--ink-2); font-size: 0.93rem; line-height: 1.4; }
.obj-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 32px; padding: 14px 4px 22px; animation: rise 360ms var(--ease) both; }
@media (max-width: 820px) { .obj-body { grid-template-columns: 1fr; } }
.obj-say { margin: 0 0 16px; padding: 14px 16px 12px; border-radius: var(--r); background: var(--hi-soft); border: 1px solid color-mix(in oklch, var(--hi) 55%, var(--line)); }
.obj-say figcaption { font-size: 0.82rem; font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }
.obj-say blockquote { margin: 0; }
.obj-say blockquote p { font-family: var(--f-read); font-size: 1.16rem; line-height: 1.45; margin: 0 0 4px; }
.obj-dl { margin: 0; display: grid; gap: 12px; }
.obj-dl dt, .obj-meta dt { font-size: 0.84rem; font-weight: 800; color: var(--ink-2); margin-bottom: 2px; }
.obj-dl dd { margin: 0; font-family: var(--f-read); line-height: 1.6; }
.obj-ex { padding: 12px 14px; border-radius: 4px; background: var(--ex-soft); border: 1px solid var(--ink-3); margin-bottom: 14px; }
.obj-ex-k { display: block; font-size: 0.82rem; font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }
.obj-ex-setup { margin: 0 0 2px; font-weight: 700; font-size: 0.92rem; }
.obj-ex-line { margin: 0 0 6px; font-size: 1.04rem; }
.obj-ex-ctx { margin: 0; color: var(--ink-2); }
.obj-meta { margin: 0 0 12px; display: grid; gap: 10px; }
.obj-meta dd { margin: 0; }
.obj-rule-pill { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; color: var(--court); background: var(--court-soft); border-radius: 6px; padding: 2px 9px; margin: 0 6px 4px 0; text-decoration: none; }
.obj-rule-pill:hover { text-decoration: underline; color: var(--court); }
.obj-phases { display: flex; flex-wrap: wrap; gap: 5px; }
.obj-ph { font-size: 0.8rem; font-weight: 700; padding: 3px 9px 2px; border-radius: 99px; color: var(--ink-3); background: var(--surface); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.obj-ph.on { color: var(--olive); background: var(--olive-soft); text-decoration: none; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--olive) 30%, transparent); }
.obj-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.obj-actions .btn { min-height: 40px; }
.obj-sheet td { min-width: 9em; }
.obj-sheet td:nth-child(3) { font-family: var(--f-read); min-width: 18em; }
.obj-sheet a { font-weight: 750; }
.obj-mono { font-family: var(--f-mono); font-size: 0.82rem; white-space: nowrap; }

/* drill */
.obj-drill { background: var(--bg); border-color: var(--line-strong); }
.obj-drill:focus { outline: none; }
.obj-drill-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 16px; }
.obj-drill-prog { display: grid; gap: 6px; flex: 1 1 220px; font-weight: 750; font-size: 0.92rem; color: var(--ink-2); }
.obj-drill-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; max-width: 360px; }
.obj-drill-bar span { display: block; height: 100%; background: var(--olive-2); transform-origin: 0 50%; transform: scaleX(0); transition: transform 360ms var(--ease); }
.obj-drill-stats { display: flex; gap: 22px; margin: 0; }
.obj-drill-stats dt { font-size: 0.78rem; font-weight: 750; color: var(--ink-3); }
.obj-drill-stats dd { margin: 0; font-weight: 850; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.obj-dr-card { padding: clamp(16px, 2.6vw, 24px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.obj-dr-card.fresh { animation: rise 360ms var(--ease) both; }
.obj-dr-setup { margin: 0 0 6px; font-weight: 750; color: var(--ink-2); font-size: 0.95rem; }
.obj-dr-line { font-family: var(--f-read); font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.45; margin: 0; }
.obj-dr-ctx { margin: 12px 0 0; font-size: 0.92rem; color: var(--ink-2); padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.obj-dr-ctx span { font-weight: 800; color: var(--ink); margin-right: 4px; }
.obj-dr-ask { font-weight: 800; margin: 18px 0 10px; }
.obj-dr-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .obj-dr-choices { grid-template-columns: 1fr; } }
.obj-dr-choice { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 54px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--bg); font-weight: 750; cursor: pointer; transition: transform 160ms var(--ease), background 160ms, border-color 160ms, opacity 200ms; }
.obj-dr-choice:hover { background: var(--surface); transform: translateY(-1px); }
.obj-dr-choice[aria-disabled="true"] { cursor: default; transform: none; }
.obj-dr-key { font-family: var(--f-mono); font-size: 0.78rem; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-2); flex: none; }
.obj-dr-choice.is-right { border-color: var(--ok); background: color-mix(in oklch, var(--ok) 13%, var(--bg)); }
.obj-dr-choice.is-right .obj-dr-key { background: var(--ok); color: var(--bg); border-color: var(--ok); }
.obj-dr-choice.is-wrong { border-color: var(--df); background: var(--df-soft); }
.obj-dr-choice.is-wrong .obj-dr-key { background: var(--df); color: var(--bg); border-color: var(--df); }
.obj-dr-choice.is-dim { opacity: 0.5; }
.obj-dr-fb { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); animation: rise 360ms var(--ease) both; }
.obj-dr-fb p { margin: 0 0 8px; max-width: 72ch; }
.obj-dr-verdict { font-size: 1.15rem; font-weight: 850; }
.obj-dr-fb.right .obj-dr-verdict { color: var(--ok); }
.obj-dr-fb.wrong .obj-dr-verdict { color: var(--df); }
.obj-dr-rule { font-family: var(--f-mono); font-size: 0.8rem; color: var(--court); background: var(--court-soft); border-radius: 5px; padding: 2px 7px 1px; margin-right: 4px; }
.obj-dr-say { margin: 10px 0 12px; padding: 10px 14px; border-radius: var(--r); background: var(--hi-soft); font-family: var(--f-read); font-size: 1.06rem; }
.obj-dr-fb .btn, .obj-dr-end .btn { min-height: 44px; margin-top: 4px; }
.obj-dr-end { text-align: center; padding: 14px 0 6px; animation: rise 360ms var(--ease) both; }
.obj-dr-big { font-size: var(--step-4); font-weight: 900; line-height: 1; margin: 0 0 10px; letter-spacing: -0.03em; }
.obj-dr-big span { font-size: 0.4em; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.obj-chip { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.84rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink); text-decoration: none; margin: 0 4px 4px 0; border: 1px solid var(--line); }
a.obj-chip:hover { border-color: var(--olive-2); color: var(--ink); }
.obj-chip.static { color: var(--ink-2); }
.obj-drill-note { margin-top: 10px; max-width: 80ch; }

/* procedure */
.obj-flow { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.obj-flow li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.obj-flow li p { margin: 0; font-size: 0.95rem; }
.obj-flow-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--bg); font-weight: 850; font-size: 0.86rem; }
.obj-rulings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-bottom: 10px; }
.obj-ruling { padding: 12px 14px; border-radius: var(--r); border: 1px solid; }
.obj-ruling p { margin: 2px 0 0; font-size: 0.95rem; }
.obj-ruling.ok { border-color: color-mix(in oklch, var(--ok) 40%, var(--line)); background: color-mix(in oklch, var(--ok) 9%, var(--bg)); }
.obj-ruling.ok b { color: var(--ok); }
.obj-ruling.no { border-color: var(--line-strong); background: var(--surface); }
.obj-seqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; margin: 26px 0; }
.obj-seq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.obj-quiz-tog { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; min-height: 40px; cursor: pointer; color: var(--ink-2); }
.obj-seq-list { list-style: none; margin: 4px 0 8px; padding: 0; }
.obj-seq-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.obj-seq-list li:last-child { border-bottom: 0; }
.obj-seq-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 0.9rem; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--olive); color: var(--olive); }
.obj-seq-t { margin: 0; }
.obj-seq-list li.is-hidden .obj-seq-t { display: none; }
.obj-reveal { min-height: 40px; }
.obj-proc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); }
.obj-proc-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.obj-proc-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.obj-proc-item p { margin: 0; font-family: var(--f-read); line-height: 1.6; }

/* rules of evidence */
.obj-article { margin-bottom: 30px; }
.obj-art-h { font-size: var(--step-1); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.obj-art-h span { color: var(--olive); }
.obj-art-h .cite { font-size: 0.6em; }
.obj-rule { padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.obj-anchor { position: absolute; top: 0; }
.obj-rule header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.obj-rule-num { font-family: var(--f-mono); font-weight: 700; font-size: 0.84rem; color: var(--court); background: var(--court-soft); border-radius: 6px; padding: 3px 8px 2px; }
.obj-rule h4 { font-size: 1.04rem; }
.obj-rule-plain { margin: 0 0 8px; max-width: var(--read); }
.obj-rule-objs { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.obj-rule-objs .obj-chip { margin: 0; }
.obj-more > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; font-weight: 750; font-size: 0.9rem; color: var(--olive); }
.obj-more > summary:hover { text-decoration: underline; }
.obj-more p { margin: 4px 0 10px; max-width: var(--read); font-size: 0.96rem; }
.obj-casenote { background: var(--olive-soft); padding: 10px 12px; border-radius: var(--r-sm); }

/* hearsay */
.obj-hs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; margin-bottom: 26px; }
@media (max-width: 820px) { .obj-hs { grid-template-columns: 1fr; } }
.obj-hs-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; }
.obj-hs-steps li { counter-increment: hs; padding: 10px 0; border-bottom: 1px dashed var(--line); animation: rise 300ms var(--ease) both; }
.obj-hs-steps li p { margin: 0 0 8px; }
.obj-hs-steps li p::before { content: counter(hs) ". "; font-weight: 850; color: var(--ink-3); }
.obj-hs-out { margin: 12px 0 10px; }
.obj-hs-res { padding: 12px 14px; border-radius: var(--r); animation: rise 300ms var(--ease) both; }
.obj-hs-res.yes { background: var(--df-soft); border: 1px solid var(--df-line); }
.obj-hs-res.yes b { color: var(--df); }
.obj-hs-res.not { background: color-mix(in oklch, var(--ok) 10%, var(--bg)); border: 1px solid color-mix(in oklch, var(--ok) 40%, var(--line)); }
.obj-hs-res.not b { color: var(--ok); }
#hsReset { min-height: 40px; }
.obj-hx { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 28px; }
.obj-hx li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.obj-hx li p { margin: 4px 0 0; }
.obj-hx-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: space-between; }
.obj-hx-type { font-family: var(--f-mono); font-size: 0.74rem; padding: 2px 7px 1px; border-radius: 5px; white-space: nowrap; }
.obj-hx-type.not { background: var(--olive-soft); color: var(--olive); }
.obj-hx-type.exc { background: var(--court-soft); color: var(--court); }
.obj-hx-type.other { background: var(--surface-2); color: var(--ink-2); }

/* not allowed */
.obj-na { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 28px; }
.obj-na li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.obj-na li p { margin: 2px 0 0; color: var(--ink-2); }

/* long multi-source cites must wrap on phones instead of widening the page */
.trl .cite, .obj .cite { white-space: normal; }
.trl [hidden], .obj [hidden] { display: none !important; }
@media (min-width: 1100px) { .obj-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .obj-flow { grid-template-columns: 1fr; } }
