/* CaseModel website - css/p-theirs.css
   Their affidavits, read line by line (js/theirs.js). Four of their affidavits stand as pages with the register of the kinds of
   finding beside them, what they are read against beneath, and the finding a marked paragraph opens under that. Every kind has
   its colour and its own mark, so it never rests on colour alone: a hatched square where a document contradicts, a solid square
   for an admission, a half square where an affidavit contradicts itself, two bars where two witnesses cannot both be right, a
   struck square for a wrong date or number, a ring where the affidavit is silent and the record speaks. */

/* ---- each kind: its colour (kc), its tint (kb) and the colour of its words (kf) ---- */
.th { --kc: var(--brand-azure); --kb: var(--azure-4); --kf: var(--azure-11); --th-pad: clamp(16px, 2.4vw, 28px); }
.th .k-doc { --kc: var(--adv); --kb: var(--adv-bg); --kf: var(--adv-fg); }
.th .k-adm { --kc: var(--ok); --kb: var(--ok-bg); --kf: var(--ok-fg); }
.th .k-own { --kc: var(--open); --kb: var(--open-bg); --kf: var(--open-fg); }
.th .k-wit { --kc: var(--brand-navy); --kb: var(--slate-4); --kf: var(--brand-navy); }
.th .k-num { --kc: var(--brand-azure); --kb: var(--azure-4); --kf: var(--azure-11); }
.th .k-sil { --kc: var(--pub); --kb: var(--pub-bg); --kf: var(--pub-fg); }

.th-mk { display: inline-block; flex: none; width: 11px; height: 11px; background: var(--kc); vertical-align: -1px; }
.th-mk.k-doc { border: 1px solid var(--adv); background: repeating-linear-gradient(135deg, var(--adv) 0 2px, #ffffff 2px 4px); }
.th-mk.k-own { border: 2px solid var(--open); background: linear-gradient(90deg, var(--open) 50%, #ffffff 50%); }
.th-mk.k-wit { background: linear-gradient(90deg, var(--brand-navy) 0 36%, #ffffff 36% 64%, var(--brand-navy) 64%); }
.th-mk.k-num { border: 2px solid var(--brand-azure); background: linear-gradient(135deg, #ffffff 0 40%, var(--brand-azure) 40% 60%, #ffffff 60%); }
.th-mk.k-sil { border: 2px solid var(--pub); background: #ffffff; }
.th-lab { margin: 0; color: var(--text-3); font: 700 11.5px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

/* ---- the bar: what is shown, and what it is read against ---- */
.th-bar { align-items: flex-end; }
.th-bar-t { min-width: 0; }
.th-bar-t .fig-note { margin-top: 3px; }
.th-against { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---- the desk: the register over the pages, what they are set against beneath, then the finding beside the lines to put ---- */
.th-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; align-items: start; }
.th-reg { grid-column: 1 / -1; grid-row: 1; }
.th-desk { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.th-shelf { grid-column: 1 / -1; grid-row: 3; min-width: 0; }
.th-low { grid-column: 1; grid-row: 4; min-width: 0; }
.th-xq { grid-column: 2; grid-row: 4; margin-top: 30px; }
.th-wires { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; }

/* ---- an affidavit, as a page: every paragraph numbered, the ones that break in their own words ---- */
.th-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.th-pg { display: flex; flex-direction: column; min-width: 0; padding: 13px 11px 10px 9px; font-size: 13.5px; line-height: 1.36; }
.th-pg-k { display: block; margin: 0 0 4px 2px; color: var(--brand-navy); font: 800 10.5px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.th-pg .pg-t, .th-pg .pg-meta { margin-left: 2px; }
.th-pg .pg-meta { margin-top: 2px; margin-bottom: 8px; padding-bottom: 8px; font-size: 12.5px; }
.th-body { position: relative; flex: 1; }
.th-ln { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; height: 13px; }
.th-ln i { padding-right: 6px; color: var(--slate-7); font: 500 9.5px/1 var(--font-mono); font-style: normal; text-align: right; }
.th-ln b { display: block; height: 5px; background: var(--slate-4); transition: background .6s var(--ease); }
.th-ln.rd b { background: var(--azure-4); }
.th-pg-f { margin: 8px 0 0 2px; padding-top: 7px; border-top: 1px solid var(--border-row); color: var(--text-3); font: 500 11px/1.3 var(--font-mono); }

/* a marked paragraph is the control: choose it and its finding opens */
.th-para { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 15px; align-items: start; width: calc(100% + 4px); min-height: 40px; margin: 3px -2px;
  padding: 3px 2px 4px 0; border: 0; border-radius: var(--r-1); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background .2s, opacity .3s, box-shadow .2s; }
.th-no { padding: 1px 6px 0 0; color: var(--slate-9); font: 500 10.5px/1.75 var(--font-mono); text-align: right; transition: color .3s; }
.th-tx { min-width: 0; }
.th-mg { display: flex; justify-content: flex-end; padding-top: 4px; }
.th-mg .th-mk { transform: scale(0); transition: transform .45s var(--spring); }
.th-para.mk .th-no { color: var(--kf); font-weight: 700; }
.th-para.mk .th-mg .th-mk { transform: none; }
.th .th-para mark.hl { background-image: linear-gradient(var(--kb), var(--kb)); }
.th-para:hover, .th-para.hot { background: var(--sky-2); }
.th-para[aria-pressed="true"] { background: #ffffff; box-shadow: 0 0 0 2px var(--kc); }
.th .th-para.dim { opacity: .34; }
.th .th-para.dim mark.hl { background-size: 0% 86%; }
.th-bd { display: none; }

/* the reading: a band down the page, the lines it has read turning pale blue behind it */
.th-band { position: absolute; left: -9px; right: -11px; top: 0; z-index: 2; height: 2px; background: var(--brand-azure); opacity: 0; pointer-events: none; transition: opacity .3s; }
.th-band::before { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 24px; background: linear-gradient(transparent, var(--sky-4)); mix-blend-mode: multiply; }
.th-pg.rding .th-band { opacity: 1; }

/* ---- what they are set against: documents, the dated record, or each other ---- */
.th-shelf { position: relative; padding-top: 86px; }
.th-tg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.th-tg > li { display: flex; flex: 1 1 0; min-width: min-content; }
.th-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 62px; padding: 8px 9px 9px;
  border: 1px solid var(--slate-6); border-radius: var(--r-2); background: #ffffff; color: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, opacity .3s, background .2s; }
.th-t:hover, .th-t.hot { border-color: var(--brand-azure); box-shadow: 0 0 0 1px var(--brand-azure); }
.th-t.pub { border-color: var(--pub); }
.th-t.pub:hover, .th-t.pub.hot { box-shadow: 0 0 0 1px var(--pub); }
.th-t.dim { opacity: .42; }
.th-t-r { color: var(--azure-11); font: 600 12px/1.25 var(--font-mono); white-space: nowrap; }
.th-t.pub .th-t-r { color: var(--pub-fg); }
.th-t-d { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-navy); font: 600 12px/1.25 var(--font-mono); white-space: nowrap; }
.th-t-d .sq { width: 9px; height: 9px; }
.th-t-w { color: var(--text-2); font: 400 12.5px/1.3 var(--font-ui); hyphens: auto; }
.th-tg-p .th-t { border-left: 3px solid var(--kc); }
.th-tg-p .th-t:hover, .th-tg-p .th-t.hot { border-color: var(--kc); border-left-color: var(--kc); box-shadow: 0 0 0 1px var(--kc); }
.th-tg-p .th-t-d { color: var(--kf); font: 700 11.5px/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.th-tg-p .th-t-r { color: var(--brand-navy); }
.th-tg-p .th-t[aria-pressed="true"] { background: var(--sky-2); }
.th-shelf-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 0; }
.th-shelf-s { color: var(--text-3); font-size: 14px; line-height: 1.4; }

/* the lines: drawn in, then lit or dimmed with what is chosen */
.th-w { fill: none; stroke: var(--kc); stroke-width: 1.3; opacity: .5; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .55s var(--ease), opacity .25s, stroke-width .2s; }
.th-w.drop { transition-duration: .3s, .25s, .2s; }
.th-w.arc { stroke-width: 1.8; opacity: .8; }
.th-w.pre { stroke-dashoffset: 1; transition: none; }
.th-w.hot { opacity: 1; stroke-width: 2.2; }
.th-w.dim { opacity: .08; }
.th-wt { fill: var(--kc); opacity: .9; transition: opacity .3s, fill-opacity .25s; }
.th-wt.pre { opacity: 0; transition: none; }
.th-wt.dim { fill-opacity: .12; }

/* where there are no lines, badges under each paragraph name what it is set against */
.th-nolines .th-shelf { padding-top: 20px; }
.th-nolines .th-bd { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2 / 4; margin-top: 5px; }
.th-nolines .th-bd:empty { display: none; }
.th-bd b { padding: 1px 6px; border: 1px solid var(--slate-6); border-radius: var(--r-1); background: #ffffff; color: var(--azure-11); font: 600 13px/1.4 var(--font-mono); white-space: nowrap; }
.th-bd b.pub { border-color: var(--pub); color: var(--pub-fg); }
.th-bd b.k-own, .th-bd b.k-wit { border-color: var(--kc); color: var(--kf); }

/* ---- the register: the kinds of finding, each a switch ---- */
.th-reg { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 26px; align-items: center; margin-bottom: 24px; padding: 14px 16px 12px;
  border: 1px solid var(--slate-6); border-radius: var(--r-3); background: var(--sky-1); transition: box-shadow .3s; }
.th-fund .th-reg { box-shadow: 0 0 0 2px var(--brand-azure); }
.th-tot { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 8px; }
.th-tot .num { font-size: 50px; }
.th-tot-s { display: grid; gap: 1px; padding-bottom: 4px; color: var(--text-2); font-size: 14px; line-height: 1.3; }
.th-tied { color: var(--azure-11); font-weight: 600; opacity: 0; transition: opacity .5s var(--ease) .6s; }
.th-done .th-tied { opacity: 1; }
.th-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.th-kind { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: start; gap: 0 9px; width: 100%; min-height: 44px; padding: 8px 8px 13px;
  border: 1px solid transparent; border-radius: var(--r-2); background: none; color: inherit; text-align: left; cursor: pointer;
  transition: background .2s, border-color .2s, opacity .3s, box-shadow .2s; }
.th-kind .th-mk { margin-top: 3px; }
.th-kind-n { color: var(--brand-navy); font: 600 13.5px/1.28 var(--font-display); letter-spacing: -0.005em; }
.th-kind-c { color: var(--text); font: 600 14px/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.th-kind-bar { position: absolute; left: 29px; right: 8px; bottom: 5px; height: 3px; background: var(--slate-3); }
.th-kind-bar i { display: block; width: 0; height: 100%; background: var(--kc); transition: width 3.2s var(--ease); }
.th-go .th-kind-bar i { width: var(--w); }
.th-kind:hover { border-color: var(--slate-5); background: #ffffff; }
.th-kind[aria-pressed="true"] { border-color: var(--kc); background: #ffffff; box-shadow: inset 3px 0 0 var(--kc); }
.th-kind.dim { opacity: .5; }
.th-reg-f { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.35; }

/* ---- ready for cross-examination ---- */
.th-xq { border: 1px solid var(--slate-6); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-2); overflow: hidden; }
.th-xq-h { padding: 13px 15px 11px; border-bottom: 1px solid var(--border-row); }
.th-xq-k { margin: 0; color: var(--adv); font: 700 11px/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.th-xq-n { margin: 4px 0 0; color: var(--brand-navy); font: 700 17px/1.25 var(--font-display); letter-spacing: -0.01em; }
.th-xq-s { margin: 2px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.35; }
.th-xl { margin: 0; padding: 0; list-style: none; }
.th-xl li + li { border-top: 1px solid var(--slate-3); }
.th-xb { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 5px 8px; width: 100%; min-height: 44px; padding: 10px 15px 11px; border: 0; background: none; color: inherit;
  text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
.th-xb:hover { background: var(--sky-2); }
.th-xb:focus-visible { outline-offset: -2px; }
.th-xb[aria-pressed="true"] { background: var(--sky-3); box-shadow: inset 3px 0 0 var(--brand-azure); }
.th-xb-p { color: var(--kf); font: 700 13px/1.45 var(--font-mono); white-space: nowrap; }
.th-xb-q { color: var(--text); font: italic 400 14.5px/1.38 var(--font-serif); }
.th-xb-c { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2; }

/* ---- every finding tied to its page ---- */
.th-low { margin-top: 30px; }
.th-ix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.th-ix li { display: flex; transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 70ms + 200ms); }
.th-pre .th-ix li { opacity: 0; transform: translateY(8px); }
.th-ixb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; width: 100%; min-height: 44px; padding: 7px 12px; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: #ffffff;
  color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.th-ixb:hover { border-color: var(--kc); background: var(--sky-1); }
.th-ix-a { flex: none; color: var(--brand-navy); font: 600 13.5px/1.25 var(--font-mono); white-space: nowrap; }
.th-to { position: relative; flex: none; width: 15px; height: 1.5px; background: var(--slate-7); }
.th-to::after { content: ''; position: absolute; right: 0; top: -2.75px; width: 5px; height: 5px; border-top: 1.5px solid var(--slate-7); border-right: 1.5px solid var(--slate-7); transform: rotate(45deg); }
.th-ix-b { color: var(--azure-11); font: 500 13.5px/1.25 var(--font-mono); white-space: nowrap; }
.th-more { margin: 12px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }

/* ---- a finding: what was sworn, the verdict, what answers it ---- */
.th-find { animation: th-in .45s var(--ease) both; }
@keyframes th-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes th-pop { from { opacity: 0; transform: scale(.84); } to { opacity: 1; transform: none; } }
.th-fh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; }
.th-fh-k { display: inline-flex; align-items: center; gap: 8px; color: var(--kf); font: 700 12px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.th-fh-r { color: var(--brand-navy); font: 600 14px/1.35 var(--font-mono); }
.th-fh-to { color: var(--text-3); font: 400 14px/1.35 var(--font-ui); }
.th-back { min-height: 40px; margin-left: auto; font-size: 14.5px; }
.th-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px; }
.th-q { align-self: stretch; margin: 0; padding: 14px 16px 13px; border: 1px solid var(--slate-6); border-left: 3px solid var(--kc); border-radius: var(--r-2); background: #ffffff;
  box-shadow: var(--shadow-1); animation: th-in .5s var(--ease) both; }
.th-q.b { border-left-color: var(--brand-navy); animation-delay: .12s; }
.th-q.b[class*=" k-"] { border-left-color: var(--kc); }
.th-q.b.pub { border-left-color: var(--pub); }
.th-q-k { margin: 0 0 7px; color: var(--text-3); font: 700 11.5px/1.3 var(--font-display); letter-spacing: .07em; text-transform: uppercase; }
.th-q-t { margin: 0; color: var(--text); font: italic 400 17px/1.45 var(--font-serif); }
.th-q-p { margin: 0; color: var(--brand-navy); font: 600 18px/1.32 var(--font-display); letter-spacing: -0.015em; }
.th-q-l { margin: 8px 0 0; color: var(--text); font: 400 16px/1.4 var(--font-serif); }
.th-q-u { margin: 3px 0 0; color: var(--text-3); font: 500 12.5px/1.4 var(--font-mono); }
.th-q-s { margin: 10px 0 0; color: var(--text-3); font: 500 12.5px/1.45 var(--font-mono); }
.th-q-o { margin: 8px 0 0; color: var(--text-3); font: 500 12.5px/1.45 var(--font-mono); }
.th-q-o span { color: var(--brand-navy); font: italic 400 15px/1.4 var(--font-serif); }
.th-q-n { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--border-row); color: var(--text-2); font-size: 15px; line-height: 1.42; }
.th .th-q mark.hl { background-image: linear-gradient(var(--kb), var(--kb)); }
.th .th-q.b:not([class*=" k-"]) mark.hl { background-image: linear-gradient(var(--azure-4), var(--azure-4)); }
.th .th-q.b.pub mark.hl { background-image: linear-gradient(var(--pub-bg), var(--pub-bg)); }
.th-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 2px 0 0; border-top: 1px solid var(--border-row); }
.th-rows dt, .th-rows dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--border-row); }
.th-rows dt { color: var(--text-2); font-size: 15px; line-height: 1.4; }
.th-rows dd { padding-left: 14px; color: var(--brand-navy); font: 600 15px/1.4 var(--font-mono); text-align: right; }
.th-ql { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-row); }
.th-ql li { display: grid; grid-template-columns: 10px 88px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border-row); color: var(--text); font-size: 15px; line-height: 1.38; }
.th-ql .sq { width: 9px; height: 9px; }
.th-ql-d { color: var(--pub-fg); font: 600 12.5px/1.4 var(--font-mono); }
.th-vd { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 9.5em; margin: 0; padding: 9px 12px 10px;
  border: 1.5px solid var(--kc); border-radius: var(--r-2); background: #ffffff; color: var(--kf); font: 700 14px/1.25 var(--font-display); text-align: center;
  animation: th-pop .5s var(--spring) .26s both; }
.th-vd::before, .th-vd::after { content: ''; position: absolute; top: 50%; width: 24px; height: 1.5px; background: var(--kc); }
.th-vd::before { right: 100%; }
.th-vd::after { left: 100%; }
/* what else this paragraph was read against */
.th-ra { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; margin-top: 14px; }
.th-ra-l { align-self: center; max-width: 9em; padding-right: 4px; }
.th-rab { display: grid; align-content: start; gap: 3px; min-height: 44px; padding: 8px 10px 9px; border: 1px solid var(--slate-5); border-radius: var(--r-2); background: var(--sky-1);
  color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.th-rab b { color: var(--text-3); font: 700 11px/1.3 var(--font-display); letter-spacing: .07em; text-transform: uppercase; }
.th-rab span { color: var(--brand-navy); font: 500 13px/1.4 var(--font-mono); }
.th-rab.none span { color: var(--text-3); font: 400 14px/1.35 var(--font-ui); }
.th-rab:hover { border-color: var(--brand-azure); }
.th-rab[aria-pressed="true"] { border-color: var(--brand-navy); background: #ffffff; box-shadow: inset 0 -2px 0 var(--brand-navy); }

/* ---- narrower desks: smaller references so a row of ten still fits, two columns of ties ---- */
@media (min-width: 1060px) and (max-width: 1259px) {
  .th-main { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 24px; }
  .th-reg { grid-template-columns: 200px minmax(0, 1fr); column-gap: 20px; }
  .th-tot { flex-wrap: wrap; gap: 2px 12px; }
  .th-tg { gap: 6px; }
  .th-t { padding: 7px 7px 8px; }
  .th-t-r, .th-t-d { font-size: 11px; }
  .th-t-d { gap: 5px; }
  .th-t-w { font-size: 12px; }
  .th-ix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-ra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .th-ra-l { grid-column: 1 / -1; max-width: none; }
}

/* ---- the pages in a row of their own, the rest beneath ---- */
@media (max-width: 1059px) {
  .th-main { display: flex; flex-direction: column; align-items: stretch; }
  .th-desk { order: 1; }
  .th-low { order: 2; margin-top: 22px; }
  .th-shelf { order: 3; }
  .th-reg { order: 4; grid-template-columns: minmax(0, 1fr); margin: 24px 0 0; }
  .th-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
  .th-xq { order: 5; margin-top: 18px; }
  .th-fund .th-reg { order: 0; margin: 0 0 22px; }
  .th-scroll { margin: 0 calc(var(--th-pad) * -1); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--th-pad); scrollbar-width: thin; }
  .th-pages { display: flex; gap: 14px; width: max-content; padding: 4px var(--th-pad) 12px; }
  .th-pg { flex: none; width: 260px; scroll-snap-align: start; font-size: 14px; }
  .th-tg { flex-wrap: wrap; }
  .th-tg > li { flex: 1 1 calc(50% - 4px); }
  .th-ix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-pair { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .th-vd { justify-self: center; flex-direction: row; max-width: none; }
  .th-vd::before, .th-vd::after { left: 50%; right: auto; top: auto; width: 1.5px; height: 24px; margin-left: -.75px; }
  .th-vd::before { bottom: 100%; }
  .th-vd::after { top: 100%; }
  .th-ra { grid-template-columns: minmax(0, 1fr); }
  .th-ra-l { max-width: none; }
  .th-against { flex: 1 1 100%; min-width: 0; }
  .th .seg { width: 100%; }
  .th .seg button { flex: 1 1 auto; min-height: 40px; padding: 0 8px; }
}
@media (max-width: 640px) {
  .th-ln i { visibility: hidden; }
  .th-para { grid-template-columns: 26px minmax(0, 1fr) 15px; }
  .th-ln { grid-template-columns: 26px minmax(0, 1fr); height: 10px; }
  .th-ln b { height: 4px; }
  .th-pg { line-height: 1.34; }
  .th-no { font-size: 14px; line-height: 1.45; }
  .th-pg .pg-meta, .th-pg-f { font-size: 14px; }
  .th-pg-k, .th-lab, .th-xq-k, .th-fh-k, .th-q-k, .th-rab b, .th-tg-p .th-t-d { font-size: 12.5px; }
  .th-ix, .th-kinds { grid-template-columns: minmax(0, 1fr); }
  .th-ix-a, .th-ix-b, .th-t-r, .th-t-d, .th-t-w, .th-kind-n, .th-xb-p, .th-q-s, .th-q-o, .th-q-u, .th-ql-d, .th-rab span, .th-bd b { font-size: 14px; }
  .th-xb-q { font-size: 15px; }
  .th-q-t { font-size: 16px; }
  .th-q-p { font-size: 17px; }
  .th .cite { font-size: 14px; }
  .th-fh-r, .th-fh-to { font-size: 14px; }
  .th-back { margin-left: 0; }
  .th-tot .num { font-size: 44px; }
}
