/* ---------- evidence (exhibits) ---------- */
.evd-mono { font-family: var(--f-mono); }
.evd-sub { font-size: var(--step-1); margin: 32px 0 6px; }
.evd-plain { margin: 0; padding-left: 1.2em; font-size: 0.95rem; }

/* exhibit sticker */
.evd-sticker { display: inline-grid; grid-template-rows: auto 1fr; min-width: 52px; border: 1.5px solid var(--ex); border-radius: 3px; background: var(--bg); text-align: center; font-family: var(--f-ui); line-height: 1; flex: none; box-shadow: 2px 2px 0 var(--line-strong); }
.evd-sticker-k { background: var(--ex); color: var(--bg); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 5px 3px; }
.evd-sticker-id { font-weight: 900; font-size: 1.35rem; padding: 7px 6px 5px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.evd-sticker.df { border-color: var(--df); }
.evd-sticker.df .evd-sticker-k { background: var(--df); }
.evd-sticker.big { min-width: 88px; transform: rotate(-2deg); }
.evd-sticker.big .evd-sticker-k { font-size: 0.72rem; padding: 5px 6px 4px; }
.evd-sticker.big .evd-sticker-id { font-size: 2.7rem; padding: 12px 10px 9px; }

/* index: evidence log */
.evd-log-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.evd-log-note { margin: 0; max-width: 60ch; }
.evd-log-head, .evd-log-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 230px; gap: 20px; }
.evd-log-head { padding: 0 8px 8px; font-size: 0.8rem; font-weight: 800; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.evd-log { list-style: none; margin: 0; padding: 0; }
.evd-log-row { align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background 160ms; }
.evd-log-row:hover { background: var(--hi-soft); color: var(--ink); }
.evd-log-row .evd-sticker { justify-self: start; transition: transform 200ms var(--ease); }
.evd-log-row:hover .evd-sticker { transform: rotate(-3deg); }
.evd-log-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.evd-log-what { display: block; font-family: var(--f-read); color: var(--ink-2); font-size: 0.98rem; line-height: 1.45; margin-top: 4px; }
.evd-log-meta { display: grid; gap: 2px; font-size: 0.86rem; color: var(--ink-2); }
.evd-log-kind { font-weight: 750; color: var(--ink); }
.evd-log-pages { font-family: var(--f-mono); font-size: 0.8rem; }
.evd-log-date { font-size: 0.82rem; color: var(--ink-3); }
.evd-log.by-made .evd-log-date { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) {
  .evd-log-head { display: none; }
  .evd-log-row { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
  .evd-log-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 12px; }
}

/* detail head */
.evd-head-row { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; }
.evd-head-txt { min-width: 0; }
.evd-fulltitle { color: var(--ink-2); font-size: 0.95rem; margin: 8px 0 10px; }
.evd-head-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.evd-pages { font-size: 0.85rem; color: var(--ink-2); }
.evd-dates { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--ink-2); }
.evd-dates li { display: flex; gap: 8px; align-items: baseline; }
.evd-dates li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-2); flex: none; transform: translateY(-2px); }
.evd-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.evd-jumps .btn { min-height: 40px; }
@media (max-width: 520px) {
  .evd-head-row { align-items: flex-start; }
  .evd-sticker.big { min-width: 64px; }
  .evd-sticker.big .evd-sticker-id { font-size: 1.9rem; padding: 9px 6px 7px; }
}

.evd-docstrip { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 12px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin-bottom: 18px; font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-2); }
.evd-docstrip span:first-child { font-weight: 700; color: var(--ink); }

/* ---------- A: weights chart ---------- */
.evd-a-chart { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.6vw, 26px); background: var(--bg); --lab: 210px; --num: 96px; }
.evd-a-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.evd-a-chart-head h3 { font-size: 1.15rem; }
.evd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.evd-bar { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--num); gap: 14px; align-items: center; }
.evd-bar-label b { display: block; line-height: 1.2; }
.evd-bar-role { display: block; font-size: 0.84rem; color: var(--ink-2); line-height: 1.3; margin-top: 2px; }
.evd-bar-track { position: relative; height: 28px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.evd-bar-fill { position: absolute; inset: 0; transform-origin: 0 50%; background: var(--olive-2); border-radius: 6px; transition: transform 520ms var(--ease), background 300ms; }
.evd-bar-ghost { position: absolute; top: 3px; bottom: 3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); opacity: 0; transition: opacity 300ms; }
.evd-a[data-mode="acrp"] .evd-bar-ghost { opacity: 0.6; }
.evd-a[data-mode="acrp"] .is-down .evd-bar-fill { background: var(--ink-3); }
.evd-a[data-mode="acrp"] .is-up .evd-bar-fill { background: var(--olive); }
.evd-bar-num { display: grid; justify-items: end; gap: 3px; }
.evd-bar-val { font-family: var(--f-mono); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.evd-bar-delta { font-size: 0.74rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.evd-a[data-mode="acrp"] .evd-bar-delta { opacity: 1; transform: none; }
.is-up .evd-bar-delta { background: var(--hi); color: oklch(0.2 0.02 110); }
.is-down .evd-bar-delta { background: var(--surface-2); color: var(--ink); }
.is-same .evd-bar-delta { color: var(--ink-3); }
.evd-axis { position: relative; height: 20px; margin: 8px calc(var(--num) + 14px) 0 calc(var(--lab) + 14px); border-top: 1px solid var(--line); }
.evd-axis span { position: absolute; top: 3px; transform: translateX(-50%); font: 600 0.72rem var(--f-mono); color: var(--ink-3); }
.evd-axis span:first-child { transform: none; }
.evd-axis span:last-child { transform: translateX(-100%); }
.evd-a-cap { margin-top: 16px; min-height: 4.6em; font-size: 0.95rem; color: var(--ink-2); }
.evd-a-cap p { margin: 0; }
.evd-a-cap b { color: var(--ink); }
.evd-printed { margin-top: 16px; }
.evd-printed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 18px; }
.evd-printed-grid h4 { font-size: 0.92rem; margin-top: 6px; }
.evd-printed-grid .table-wrap { margin: 8px 0; }
.evd-print-t th { white-space: normal; }
@media (max-width: 640px) {
  .evd-a-chart { --lab: 0px; --num: 84px; }
  .evd-bar { grid-template-columns: minmax(0, 1fr) var(--num); gap: 6px 12px; }
  .evd-bar-label { grid-column: 1 / -1; }
  .evd-axis { margin-left: 0; margin-right: calc(var(--num) + 12px); }
}

.evd-a-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 18px; }
.evd-a-trigger, .evd-a-valid { padding: clamp(16px, 2.4vw, 22px); border-radius: var(--r-lg); border: 1px solid var(--line); }
.evd-a-trigger h3, .evd-a-valid h3 { font-size: 1.08rem; margin-bottom: 10px; }
.evd-a-valid { background: var(--hi-soft); border-color: color-mix(in oklch, var(--hi) 70%, var(--ink) 10%); }
.evd-a-valid h4 { font-size: 0.9rem; margin: 12px 0 4px; }
.evd-a-valid .read { margin: 0; }
.evd-para { margin: 6px 0 0; }
.evd-code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 0.9rem; }
.evd-a-trigger .kv { margin: 6px 0 12px; }
.evd-def { font-size: 0.98rem; margin: 0; }

.evd-sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 40px; margin-top: 28px; }
.evd-sig { display: grid; gap: 3px; }
.evd-sig-name { font-family: var(--f-read); font-style: italic; font-size: 1.55rem; color: var(--ink); padding-left: 10px; line-height: 1.1; }
.evd-sig-line { height: 1px; background: var(--ink); }
.evd-sig-meta { font-size: 0.9rem; font-weight: 700; }
.evd-sig-date { font-size: 0.86rem; color: var(--ink-2); }

/* ---------- B: EDR ---------- */
.evd-edr { font-family: var(--f-mono); font-size: 0.86rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(14px, 2.6vw, 28px); }
.evd-edr .evd-docstrip { margin-bottom: 12px; }
.evd-edr-title { text-align: center; font-weight: 700; margin: 0 0 8px; }
.evd-edr-h { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; margin: 20px 0 8px; padding-bottom: 5px; border-bottom: 1px dashed var(--line-strong); }
.evd-edr-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 6px 24px; margin: 0; }
.evd-edr-kv div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px; }
.evd-edr-kv dt { color: var(--ink-3); }
.evd-edr-kv dd { margin: 0; font-weight: 600; }
.evd-edr-row { display: grid; grid-template-columns: 1fr 1.1fr 1.5fr 1.2fr; gap: 6px 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.evd-edr-th { color: var(--ink-3); font-size: 0.76rem; padding: 2px 0 6px; }
.evd-edr-row .c-s { font-weight: 700; }
.evd-edr-row .c-c b { display: block; font-size: 1rem; }
.evd-meter { display: block; height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 5px; max-width: 150px; }
.evd-meter span { display: block; height: 100%; background: var(--olive-2); transform-origin: 0 50%; animation: evd-grow 900ms var(--ease) both; }
@keyframes evd-grow { from { transform: scaleX(0); } }
.evd-edr-row.is-deg .evd-meter span { background: var(--ink-3); }
.evd-edr-row.is-deg .c-st { background: var(--hi-mark); border-radius: 3px; padding: 0 4px; justify-self: start; }
.evd-edr-why { grid-column: 1 / -1; justify-self: start; font: 700 0.8rem var(--f-ui); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2); border-radius: 8px; padding: 0 12px; min-height: 40px; cursor: pointer; }
.evd-edr-why:hover { color: var(--ink); border-color: var(--ink-3); }
.evd-edr-int { grid-column: 1 / -1; font-family: var(--f-ui); font-size: 0.94rem; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.evd-guide { font-weight: 800; font-size: 0.74rem; color: var(--olive); margin-right: 4px; }
.evd-edr-dec { margin: 0; padding: 14px 16px; background: var(--hi-soft); border: 1.5px solid var(--hi); border-radius: 8px; display: grid; gap: 5px; font-weight: 700; }
.evd-edr-dec div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.evd-edr-dec dt { color: var(--ink-2); font-weight: 600; }
.evd-edr-dec dd { margin: 0; color: var(--ink); }
.evd-edr-dec .is-key dd { background: var(--hi-mark); padding: 0 4px; border-radius: 3px; }
.evd-edr-foot { margin: 14px 0 0; color: var(--ink-2); font-size: 0.8rem; }
.evd-edr-cite { margin: 6px 0 0; text-align: right; }
@media (max-width: 680px) {
  .evd-edr-th { display: none; }
  .evd-edr-row { grid-template-columns: 1fr 1fr; }
  .evd-edr-row .c-s { grid-column: 1 / -1; font-size: 0.95rem; }
  .evd-edr-row .c-o { grid-column: 1 / -1; }
  .evd-edr-row [data-l]:not(.c-s)::before { content: attr(data-l); display: block; font-size: 0.68rem; color: var(--ink-3); }
  .evd-edr-kv div { grid-template-columns: 1fr; gap: 0; }
}

.evd-b-cmp { margin-top: 32px; }
.evd-b-cmp h3 { font-size: 1.15rem; margin-bottom: 8px; }
.evd-b-cmp .read { max-width: var(--read); }
.evd-b-cmp-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.evd-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.evd-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-conf { background: var(--ink-3); }
.k-wt { background: var(--olive-2); }
.evd-pairs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.evd-pairs li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
.evd-pair-bars { display: grid; gap: 4px; }
.evd-pb { display: grid; grid-template-columns: minmax(0, 1fr) 6em; gap: 10px; align-items: center; font-size: 0.86rem; }
.evd-pb-track { display: block; height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.evd-pb-fill { display: block; height: 100%; transform-origin: 0 50%; transition: transform 520ms var(--ease); }
@media (max-width: 560px) { .evd-pairs li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- C: maps ---------- */
.evd-c-veh { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 6px 24px; margin: 0 0 20px; font-size: 0.9rem; }
.evd-c-veh div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px; }
.evd-c-veh dt { color: var(--ink-2); font-weight: 650; }
.evd-c-veh dd { margin: 0; }
.evd-c-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.evd-c-bar p { margin: 0; }
.evd-c-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .evd-c-side { grid-template-columns: 1fr; } }
.evd-map-fig { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.evd-map-head { display: grid; gap: 2px; text-align: center; padding: 9px 10px 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.84rem; transition: background 200ms; }
.evd-map-sub { font-size: 0.74rem; font-weight: 750; color: var(--ink-2); }
.evd-map { width: 100%; height: auto; }
.evd-map-call { font-size: 0.88rem; padding: 10px 12px; margin: 0; color: var(--ink-2); border-top: 1px solid var(--line); }
.evd-map .m-paper { fill: #f3ecdf; }
.evd-map .m-grid { stroke: #e6dbc6; stroke-width: 1; fill: none; }
.evd-map .m-blk { fill: #d6d0c4; stroke: #bdb5a6; }
.evd-map .m-lot { fill: #fbf8f1; stroke: #c4baa8; stroke-width: 1.5; }
.evd-map .m-stall { stroke: #cfc6b5; stroke-width: 1.2; }
.evd-map .m-drive { fill: #fbf8f1; stroke: #c4baa8; }
.evd-map .m-center { stroke: #8f8676; stroke-width: 1.6; stroke-dasharray: 6 5; fill: none; }
.evd-map .m-edge { stroke: #ada390; stroke-width: 1.4; fill: none; }
.evd-map .m-bldg { fill: #5b5b5b; stroke: #3c3c3c; stroke-width: 1.5; }
.evd-map .m-bt { font: 800 10px var(--f-ui); fill: #fff; text-anchor: middle; letter-spacing: 0.04em; }
.evd-map .m-bs { font: 700 7px var(--f-ui); fill: #e8e8e8; text-anchor: middle; letter-spacing: 0.06em; }
.evd-map .m-annex { fill: #ddd6c8; stroke: #b6ad9d; }
.evd-map .m-end { stroke: #6f675a; stroke-width: 2; }
.evd-map .m-call { fill: #fff; stroke: #c4baa8; }
.evd-map .m-ct { font: 600 8px var(--f-ui); fill: #4a4438; text-anchor: middle; }
.evd-map .m-lab { fill: #fbf8f1; }
.evd-map .m-lt { font: 800 8.5px var(--f-ui); fill: #5d5546; text-anchor: middle; letter-spacing: 0.04em; }
.evd-map .m-small { font: 700 7.5px var(--f-ui); fill: #6f6757; letter-spacing: 0.04em; }
.evd-map .m-mid { text-anchor: middle; }
.evd-map .m-arrow { stroke: #2b2b2b; stroke-width: 2; fill: none; }
.evd-map .m-arrow-h { fill: #2b2b2b; }
.evd-map .m-dot { fill: #262626; }
.evd-map .m-pr { font: 700 10px var(--f-mono); fill: #3b3b3b; }
.evd-map .m-n { font: 800 10px var(--f-ui); fill: #3b3b3b; text-anchor: middle; }
.evd-map .m-scale { stroke: #3b3b3b; stroke-width: 1.4; fill: none; }
.evd-map .m-ghost { fill: transparent; stroke: transparent; stroke-width: 2.5; stroke-dasharray: 6 4; }
.evd-map .m-ghost-t { font: 800 10px var(--f-ui); text-anchor: middle; fill: transparent; letter-spacing: 0.06em; }
.evd-c[data-hl="road"] .evd-map .hl-road { stroke: #e2b400; stroke-width: 5; stroke-dasharray: none; }
.evd-c[data-hl="bldg"] .evd-map .m-bldg { stroke: #f0c400; stroke-width: 6; }
.evd-c[data-hl="bldg"] .evd-map .m-ghost { stroke: #c79f00; fill: rgba(250, 226, 90, 0.35); }
.evd-c[data-hl="bldg"] .evd-map .m-ghost-t { fill: #6b5a00; }
.evd-c[data-hl="upd"] .evd-map-head { background: var(--hi-soft); }
.evd-c[data-hl="upd"] .evd-map-sub { background: var(--hi-mark); justify-self: center; padding: 0 6px; border-radius: 3px; color: var(--ink); }
.evd-c[data-hl="upd"] .evd-swipe-tag { background: oklch(0.86 0.16 103); color: oklch(0.2 0.02 110); }

.evd-swipe { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; max-width: 620px; margin: 0 auto; --x: 50%; }
.evd-swipe-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.evd-swipe-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--hi); box-shadow: 0 0 0 1px oklch(0 0 0 / 0.3); pointer-events: none; }
.evd-swipe-tag { position: absolute; top: 50%; transform: translateY(-50%); font: 750 0.74rem var(--f-ui); background: oklch(0.18 0.02 110 / 0.86); color: #fff; padding: 4px 8px 3px; border-radius: 5px; }
.evd-swipe-tag.l { left: 10px; } .evd-swipe-tag.r { right: 10px; }
.evd-swipe-ctl { display: grid; gap: 4px; max-width: 620px; margin: 12px auto 0; font-size: 0.88rem; font-weight: 650; color: var(--ink-2); }
.evd-swipe-ctl input { width: 100%; height: 40px; accent-color: var(--olive); cursor: ew-resize; }

.evd-status { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 10px; }
.evd-status-row { display: grid; grid-template-columns: 0.8fr 1.1fr 1.1fr; gap: 14px; padding: 12px 14px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.evd-status-row:last-child { border-bottom: 0; }
button.evd-status-row { cursor: pointer; min-height: 44px; transition: background 160ms; }
button.evd-status-row:hover { background: var(--surface); }
button.evd-status-row[aria-pressed="true"] { background: var(--hi-soft); }
.evd-status-th { background: var(--surface); font-weight: 800; font-size: 0.78rem; color: var(--ink-2); }
.evd-status-row .s-f { font-weight: 750; }
.evd-c-cite { text-align: right; margin: 6px 0 0; }
@media (max-width: 640px) {
  .evd-status-th { display: none; }
  .evd-status-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .evd-status-row .s-f { grid-column: 1 / -1; }
  .evd-status-row [data-l]::before { content: attr(data-l); display: block; font-size: 0.7rem; font-weight: 800; color: var(--ink-3); }
  .evd-c-veh div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- D: rider ---------- */
.evd-d-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.evd-d-bar p { margin: 0; }
.evd-d-bar .btn { min-height: 40px; }
.evd-prov > summary { align-items: center; min-height: 52px; flex-wrap: wrap; }
.evd-prov > summary:hover { background: var(--surface); border-radius: var(--r); }
.evd-prov-h { display: flex; gap: 12px; align-items: baseline; }
.evd-prov-n { font-family: var(--f-mono); font-size: 0.84rem; font-weight: 700; color: var(--olive); min-width: 3em; }
.evd-prov-meta { display: flex; gap: 10px; align-items: center; margin-left: auto; font-weight: 600; }
.evd-prov-count { font-size: 0.76rem; font-weight: 750; background: var(--surface-2); padding: 2px 8px; border-radius: 99px; color: var(--ink-2); white-space: nowrap; }
.evd-prov .fold-body .read { margin-bottom: 12px; }
.evd-quote { margin: 0 0 12px; padding: 0 0 0 1.4em; font-family: var(--f-read); font-style: italic; color: var(--ink); }
.evd-emph { color: var(--ink-2); margin: 0 0 8px; }
.evd-prov-args h4 { font-size: 0.92rem; margin: 16px 0 8px; }
.evd-prov-args ul { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.evd-prov-args li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; line-height: 1.5; }
.evd-prov-args li > span:last-child { flex-basis: 100%; }
.evd-from { font-size: 0.8rem; font-weight: 750; }
.evd-d-sig { max-width: 380px; margin-top: 26px; display: grid; gap: 3px; }
.evd-d-sig p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- E: emails ---------- */
.evd-tl { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 16px 12px; margin-bottom: 18px; }
.evd-tl-axis { position: relative; height: 112px; margin: 0 8px; }
.evd-tl-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 55px; height: 2px; background: var(--line-strong); border-radius: 1px; }
.evd-tl-pt { position: absolute; top: 0; bottom: 0; width: 72px; margin-left: -36px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); border-radius: 8px; pointer-events: none; }
.evd-tl-pt > span { pointer-events: auto; }
.evd-tl-dot::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; }
.evd-tl-pt:hover .evd-tl-dot { transform: scale(1.2); }
.evd-tl-dot { position: absolute; left: 50%; top: 48px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--olive-2); transition: transform 220ms var(--ease), background 220ms; }
.evd-tl-pt[aria-pressed="true"] .evd-tl-dot { background: var(--hi); border-color: var(--olive); transform: scale(1.3); }
.evd-tl-date, .evd-tl-who { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; }
.evd-tl-date { font-weight: 800; font-size: 0.84rem; color: var(--ink); }
.evd-tl-who { font-size: 0.78rem; }
.evd-tl-pt:nth-child(odd) .evd-tl-date { top: 70px; } .evd-tl-pt:nth-child(odd) .evd-tl-who { top: 88px; }
.evd-tl-pt:nth-child(even) .evd-tl-date { top: 4px; } .evd-tl-pt:nth-child(even) .evd-tl-who { top: 22px; }
.evd-tl-pt[aria-pressed="true"] .evd-tl-date { background: var(--hi-mark); border-radius: 3px; }
.evd-tl-after { margin: 4px 0 0; color: var(--ink-2); }
.evd-e-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.evd-e-bar p { margin: 0; }
.evd-inbox { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.evd-inbox[hidden], .evd-thread[hidden] { display: none; }
.evd-inbox-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); background: var(--surface); }
.evd-inbox-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 13px 14px; cursor: pointer; color: var(--ink); font: inherit; transition: background 160ms; }
.evd-inbox-item:hover { background: var(--surface-2); }
.evd-inbox-item[aria-pressed="true"] { background: var(--hi-soft); }
.evd-av { grid-row: span 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.evd-av.is-wit { background: var(--df-soft); color: var(--df); box-shadow: inset 0 0 0 1.5px var(--df-line); }
.evd-inbox-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.93rem; }
.evd-inbox-date { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; }
.evd-inbox-subj { font-size: 0.84rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evd-inbox-sum { font-size: 0.84rem; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evd-reader { padding: clamp(16px, 2.8vw, 30px); min-width: 0; }
.evd-reader-pane { animation: evd-fade 260ms var(--ease) both; }
@keyframes evd-fade { from { opacity: 0.001; transform: translateY(4px); } }
.evd-mail-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.evd-mail-head h3 { font-size: var(--step-1); margin-bottom: 12px; overflow-wrap: anywhere; }
.evd-mail-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.9rem; }
.evd-mail-kv dt { color: var(--ink-3); font-weight: 700; }
.evd-mail-kv dd { margin: 0; }
.evd-wit { display: inline-block; font-size: 0.74rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--df-soft); color: var(--df); text-decoration: none; margin-left: 4px; }
.evd-mail-sum { margin: 16px 0 12px; }
.evd-mail h4 { font-size: 0.95rem; margin: 8px 0 2px; }
.evd-reader-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.evd-reader-nav .btn { min-height: 40px; }
.evd-thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.evd-thread > li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.8vw, 30px); }
@media (max-width: 820px) {
  .evd-inbox { grid-template-columns: 1fr; }
  .evd-inbox-list { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- F: photos ---------- */
.evd-f-bar { margin-bottom: 4px; }
.evd-f .callout { max-width: 820px; }
.evd-f-stage { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.evd-f-stage > .evd-f-fig { grid-area: 1 / 1; transition: opacity 380ms var(--ease), visibility 0s; }
.evd-f[data-view="before"] [data-photo="after"], .evd-f[data-view="after"] [data-photo="before"] { opacity: 0; visibility: hidden; transition: opacity 380ms var(--ease), visibility 0s linear 380ms; }
.evd-f[data-view="both"] .evd-f-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 16px; }
.evd-f[data-view="both"] .evd-f-stage > .evd-f-fig { grid-area: auto; }
@media (max-width: 700px) { .evd-f[data-view="both"] .evd-f-stage { grid-template-columns: minmax(0, 1fr); } }
.evd-f-fig { margin: 0; }
.evd-f-art { position: relative; }
.evd-f-badge { position: absolute; bottom: 10px; left: 10px; font: 800 0.72rem var(--f-ui); background: oklch(0.18 0.02 110 / 0.86); color: #fff; padding: 4px 8px 3px; border-radius: 5px; }
.evd-f-fig figcaption { font-size: 0.92rem; margin-top: 8px; }
.evd-f .scene .car { display: none; }
.evd-f-desc { margin-top: 18px; max-width: var(--read); }
.evd-f-desc h4 { font-size: 1rem; margin-bottom: 4px; }
.evd-f[data-view="before"] [data-desc="after"], .evd-f[data-view="after"] [data-desc="before"] { display: none; }
.evd-f[data-view="both"] .evd-f-desc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 8px 28px; max-width: none; }
.evd-f-after .evd-f-crack { fill: none; stroke: #6a6a6a; stroke-width: 1.6; stroke-linejoin: round; }
.evd-f-after .evd-f-hole { fill: #141414; }
.evd-f-after .evd-f-debris path { fill: #262626; }
.evd-f-after .evd-f-shadow { fill: rgba(0, 0, 0, 0.3); }
.evd-f-after .evd-f-body { fill: #c9cdd2; stroke: #858b92; stroke-width: 1.5; }
.evd-f-after .evd-f-glass { fill: #56626e; }
.evd-f-after .evd-f-crumple { fill: none; stroke: #4b4f55; stroke-width: 2; }
.evd-f-after .evd-f-tire { fill: #222; }
.evd-f-after .evd-f-rim { fill: #a7adb3; }
.evd-f-after .evd-f-tail { fill: #c8372c; }

/* ---------- D1: driver record ---------- */
.evd-rec { border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(14px, 2.8vw, 30px); background: var(--bg); }
.evd-rec-title { text-align: center; font-weight: 850; font-size: 1.05rem; letter-spacing: 0.02em; line-height: 1.3; margin: 0 auto 6px; max-width: 34ch; }
.evd-rec-cert { text-align: center; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); margin: 0 0 18px; }
.evd-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px 18px; margin: 0 0 20px; }
.evd-rec-grid > div { min-width: 0; }
.evd-rec-grid dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; color: var(--ink-3); }
.evd-rec-grid dd { margin: 0; font-family: var(--f-mono); font-size: 0.86rem; overflow-wrap: anywhere; }
.evd-rec-grid .is-wide { grid-column: 1 / -1; }
.evd-rec-grid .is-hi dd { display: inline-block; background: var(--hi-mark); padding: 0 6px; border-radius: 3px; }
.evd-rec-t table.t td { transition: background 160ms; }
.evd-rec-t tr.is-on td { background: var(--surface-2); }
.evd-rec-t td:first-child { white-space: nowrap; }
.evd-flag { display: inline-block; font-size: 0.74rem; font-weight: 800; line-height: 1.35; padding: 2px 8px; border-radius: 6px; background: var(--hi); color: oklch(0.2 0.02 110); font-family: var(--f-ui); }
.evd-rec-status { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 16px; font-family: var(--f-mono); font-size: 0.86rem; }
.evd-rec-status div { display: flex; gap: 8px; flex-wrap: wrap; }
.evd-rec-status dt { color: var(--ink-3); }
.evd-rec-status dd { margin: 0; font-weight: 700; }
.evd-rec-codes h4 { font-size: 0.9rem; }
.evd-rec-codes ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 0.92rem; }
.evd-rec-codes li.is-hi { font-weight: 750; }
.evd-rec-certify { font-size: 0.86rem; color: var(--ink-2); margin: 18px 0 0; }
.evd-rec-sig { max-width: 300px; margin: 20px 0 0 auto; }

.evd-dtl { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px 12px; margin-top: 12px; }
.evd-dtl-years { position: relative; height: 22px; border-bottom: 1px solid var(--line-strong); margin-bottom: 6px; }
.evd-dtl-years span { position: absolute; bottom: 4px; transform: translateX(-50%); font: 700 0.74rem var(--f-mono); color: var(--ink-3); }
.evd-dtl-years span:first-child { transform: none; }
.evd-dtl-years span:last-child { transform: translateX(-100%); }
.evd-dtl-body { position: relative; padding: 4px 0 44px; }
.evd-dtl-mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--ink); pointer-events: none; }
.evd-dtl-mark.abs { border-left: 2px dotted var(--ink-3); }
.evd-dtl-mark span { position: absolute; right: 6px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; color: var(--ink); background: var(--bg); padding: 0 3px; }
.evd-dtl-mark.crash span { bottom: 4px; }
.evd-dtl-mark.abs span { bottom: 22px; color: var(--ink-2); }
.evd-dtl-row { position: relative; display: block; width: 100%; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 6px; color: var(--ink); font: inherit; }
.evd-dtl-row:hover, .evd-dtl-row.is-on { background: var(--surface-2); }
.evd-dtl-lbl { position: absolute; top: 5px; left: 6px; font-size: 0.76rem; font-weight: 750; color: var(--ink-2); white-space: nowrap; }
.evd-dtl-span { position: absolute; top: 31px; height: 4px; background: var(--line-strong); border-radius: 2px; }
.evd-dtl-row.is-late .evd-dtl-span { background: var(--hi); height: 6px; top: 30px; }
.evd-dtl-dot { position: absolute; top: 27px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.evd-dtl-dot.ev, .k-ev { background: var(--ink); }
.evd-dtl-dot.po, .k-po { background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--ink); }
.evd-legend .k-ev, .evd-legend .k-po { border-radius: 50%; }
.evd-dtl-legend { margin-top: 6px; }

/* ---------- shared lower sections ---------- */
.evd-stips { list-style: none; padding: 0; margin: 0; display: grid; }
.evd-stips li { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.evd-stip-n { font-family: var(--f-mono); font-weight: 700; font-size: 0.84rem; color: var(--court); background: var(--court-soft); border-radius: 5px; text-align: center; padding: 4px 0 3px; text-decoration: none; }
.evd-stip-n:hover { color: var(--court); outline: 1px solid var(--court); }
.evd-pbp { margin-top: 18px; }
.evd-pbp-h { font-size: 0.95rem; margin: 14px 0 2px; }
.evd-pbp-h:first-child { margin-top: 0; }

.evd-uses-note { margin: -8px 0 14px; }
.evd-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evd-uses[data-show="pl"] .evd-use.df, .evd-uses[data-show="df"] .evd-use.pl { display: none; }
.evd-uses[data-show="pl"], .evd-uses[data-show="df"] { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.evd-use { border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 24px); border: 1px solid; animation: evd-fade 300ms var(--ease) both; }
.evd-use.pl { background: var(--pl-soft); border-color: var(--pl-line); }
.evd-use.df { background: var(--df-soft); border-color: var(--df-line); }
.evd-use h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.evd-use ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-family: var(--f-read); font-size: 1rem; line-height: 1.55; }
.evd-use.pl li::marker { color: var(--pl); } .evd-use.df li::marker { color: var(--df); }
@media (max-width: 760px) { .evd-uses { grid-template-columns: minmax(0, 1fr); } }

.evd-watch { counter-reset: w; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 36px; }
.evd-watch li { counter-increment: w; display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.evd-watch li::before { content: counter(w); font-family: var(--f-mono); font-weight: 700; font-size: 0.8rem; background: var(--hi-mark); border-radius: 4px; text-align: center; height: 1.75em; line-height: 1.85em; }

.evd-where { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.evd-where a { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.evd-where a:hover { background: var(--hi-soft); color: var(--ink); }
.evd-where-n { font-family: var(--f-mono); color: var(--ink-3); font-size: 0.8rem; }
.evd-where-c { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }

.evd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evd-pg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color 200ms, transform 200ms var(--ease); }
.evd-pg:hover { border-color: var(--olive-2); transform: translateY(-2px); color: var(--ink); }
.evd-pg.next { justify-content: flex-end; text-align: right; }
.evd-pg-k { display: block; font-size: 0.8rem; color: var(--ink-3); font-weight: 700; }
.evd-pg b { line-height: 1.25; }
@media (max-width: 560px) { .evd-pager { grid-template-columns: 1fr; } }

.evd [hidden] { display: none !important; }
.evd-dtl-dot.po { width: 16px; height: 16px; margin-left: -8px; top: 25px; }
.evd-dtl-dot.ev { z-index: 1; }
@media (max-width: 600px) {
  .evd-rec-t { border: 0; overflow: visible; }
  .evd-rec-t table.t, .evd-rec-t tbody, .evd-rec-t tr { display: block; }
  .evd-rec-t thead { display: none; }
  .evd-rec-t tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
  .evd-rec-t td { display: block; border-bottom: 0; padding: 8px 12px; }
  .evd-rec-t td[data-l]::before { content: attr(data-l); display: block; font: 800 0.68rem var(--f-ui); color: var(--ink-3); }
  .evd-rec-t .evd-rec-desc { grid-column: 1 / -1; order: -1; background: var(--surface); border-bottom: 1px solid var(--line); }
  .evd-rec-t .evd-rec-fl { grid-column: 1 / -1; padding-top: 0; }
  .evd-rec-t .evd-rec-fl:empty { display: none; }
}
