/*
 * Inspection report: the result document shared by the URL scanner
 * (index.html) and the QR scanner (qr_scan.html). Both pages' scripts
 * set .result-box state classes (safe / uncertain / phishing), fill the
 * ids, and add .inspecting to replay the UV sweep.
 */
/* ── Loading: skeleton of the report that is coming ── */
.loading { display: none; margin-top: 8px; padding: 22px; }
.loading p { font-weight: 700; color: var(--accent); }
.loading .sub { font-weight: 400; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.skeleton-line {
    height: 12px;
    margin-top: 14px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--paper-deep) 0%, var(--paper-deep) 50%, var(--paper-deep) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}
.skeleton-line:nth-child(3) { width: 72%; }
.skeleton-line:nth-child(4) { width: 48%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Inspection report ── */
/* Deep-purple glass panel; verdict colors are reserved for result states. */
.result-box {
    --verdict: var(--accent);
    --verdict-rgb: var(--violet-rgb);
    display: none;
    position: relative;
    margin-top: 8px;
    background:
        radial-gradient(70% 60% at 0% 0%, rgba(var(--verdict-rgb),0.12), transparent 60%) padding-box,
        linear-gradient(180deg, #211232, #130a1e) padding-box,
        linear-gradient(155deg, rgba(var(--verdict-rgb),0.85), rgba(92,43,138,0.55) 32%, rgba(59,28,90,0.55) 70%, rgba(var(--verdict-rgb),0.5)) border-box;
    border: 1px solid transparent;
    border-radius: var(--r-doc);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 60px -30px rgba(0,0,0,0.95), 0 0 40px -18px rgba(var(--verdict-rgb),0.55);
    overflow: hidden;
}
.result-box.safe      { --verdict: var(--genuine);    --verdict-rgb: 52,211,153; }
.result-box.uncertain { --verdict: var(--unverified); --verdict-rgb: 251,191,36; }
.result-box.phishing  { --verdict: var(--forged);     --verdict-rgb: 248,113,113; }

.result-banner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 26px 180px 24px 24px;
    border-bottom: 1px solid rgba(var(--verdict-rgb),0.45);
    box-shadow: 0 1px 0 rgba(var(--verdict-rgb),0.15);
}
.result-shield {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 24px;
}
.result-box.safe .result-shield      { color: var(--genuine); background: var(--genuine-bg); }
.result-box.uncertain .result-shield { color: var(--unverified); background: var(--unverified-bg); }
.result-box.phishing .result-shield  { color: var(--forged); background: var(--forged-bg); }

.result-title {
    font-family: var(--font-display);
    font-stretch: 115%;
    font-weight: 800;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.1;
    text-wrap: balance;
}
.result-box.safe .result-title      { color: var(--genuine); }
.result-box.uncertain .result-title { color: var(--unverified); }
.result-box.phishing .result-title  { color: var(--forged); }

.result-url {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
    overflow-wrap: anywhere;
}
/* Forged parts of the inspected URL, circled in red (url-marks.js). */
.result-url { line-height: 2.1; }
.result-url .url-mark {
    color: var(--forged);
    border: 2px solid var(--forged);
    border-radius: 999px;
    padding: 1px 5px;
    margin: 0 1px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.result-url .url-kw { background: var(--forged-bg); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
    .result-box.inspecting .url-mark { animation: mark-in 420ms var(--ease-out) both; animation-delay: calc(480ms + var(--m, 0) * 110ms); }
}
@keyframes mark-in { from { border-color: transparent; color: var(--ink); } }

.result-url-note { display: none; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.result-url-note.visible { display: block; }
.result-url-note .analyzed-url { font-family: var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; }

.risk-pill {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
    display: inline-flex;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-family: var(--font-display);
    font-stretch: 118%;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.risk-pill.low    { color: var(--genuine);    background: var(--genuine-bg); }
.risk-pill.medium { color: var(--unverified); background: var(--unverified-bg); }
.risk-pill.high   { color: var(--forged);     background: var(--forged-bg); }

.verdict-stamp {
    position: absolute;
    top: 18px;
    right: 26px;
    width: 128px;
    height: 128px;
    font-size: 15px;
    line-height: 1.1;
}
.verdict-stamp small { display: block; font-size: 11px; letter-spacing: 0.04em; margin-top: 4px; }

/* Five stat tiles, each with a lit top edge. */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(var(--violet-rgb),0.18);
}
.stat-item {
    position: relative;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(var(--violet-rgb),0.08), rgba(19,10,30,0.45));
    box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb),0.16);
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--tile, var(--accent)), transparent);
    box-shadow: 0 0 12px var(--tile, var(--accent));
}
.stat-item:has(.phishing-text) { --tile: var(--forged); }
.stat-item:has(.unknown-text)  { --tile: var(--unverified); }
.stat-item:has(.safe-text)     { --tile: var(--genuine); }
.stat-label { font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { margin-top: 4px; font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--ink); }
.phishing-text { color: var(--forged); }
.unknown-text  { color: var(--unverified); }
.safe-text     { color: var(--genuine); }
.blue-text     { color: var(--accent); }

.result-body {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.progress-section { padding: 22px 24px; border-right: 1px solid rgba(var(--violet-rgb),0.16); background: linear-gradient(180deg, rgba(19,10,30,0.55), rgba(19,10,30,0.28)); }
.risk-details { padding: 22px 24px; }
.section-title { font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

.progress-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 5.4em; align-items: center; gap: 10px; padding: 8px 0; }
.progress-label { font-size: 14px; color: var(--ink-2); }
.progress-bar {
    height: 10px; padding: 2px;
    border-radius: 999px;
    background: rgba(19,10,30,0.9);
    box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb),0.18);
}
/* Glowing line; bar-glow.js adds the box particles. */
.progress-fill {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    box-shadow: 0 0 6px currentColor, 0 0 16px currentColor, 0 0 30px -4px currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms var(--ease-out);
}
.progress-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-align: right; }

/* Findings: each one a small card with a tinted edge. */
#risksList, #safeList { display: grid; gap: 10px; }
#safeList:not(:empty) { margin-top: 10px; }
.risk-item, .safe-item, .info-item {
    --f-rgb: var(--violet-rgb);
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(var(--f-rgb),0.10), rgba(var(--f-rgb),0.02) 60%);
    box-shadow: inset 0 0 0 1px rgba(var(--f-rgb),0.22), inset 3px 0 0 rgba(var(--f-rgb),0.9);
}
.risk-item { --f-rgb: 248,113,113; }
.safe-item { --f-rgb: 52,211,153; }
.info-item { --f-rgb: 251,191,36; }
.risk-item > .icon, .safe-item > .icon, .info-item > .icon {
    width: 30px; height: 30px; padding: 6px;
    border-radius: 50%;
    color: rgb(var(--f-rgb));
    background: rgba(var(--f-rgb),0.14);
    box-shadow: 0 0 12px rgba(var(--f-rgb),0.35);
}
.finding-body { display: grid; gap: 4px; }
.finding-label { font-weight: 700; color: var(--ink); }
.risk-item .finding-label { color: var(--forged); }
.info-item .finding-label { color: var(--unverified); }
.finding-explain { font-size: 15px; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.no-risks {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 10px;
    font-weight: 700; color: var(--genuine);
    background: rgba(52,211,153,0.06); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.2);
}
.no-risks .icon { width: 22px; height: 22px; }

/* ── Why this verdict (verdict-explain.js) ── */
.why { padding: 22px 24px 24px; border-bottom: 1px solid rgba(var(--violet-rgb),0.16); }
.why-meter { margin: 4px 0 18px; }
.why-meter-track {
    position: relative; height: 14px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(52,211,153,0.55), rgba(var(--violet-rgb),0.4) 35%, rgba(251,191,36,0.4) 62%, rgba(248,113,113,0.6));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 14px -2px rgba(var(--verdict-rgb),0.55), 0 0 32px -8px rgba(var(--violet-rgb),0.6);
}
.why-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: rgba(232,241,251,0.55); }
.why-mark span { position: absolute; top: 100%; margin-top: 6px; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.why-needle {
    position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    background: #eaf4ff; border: 3px solid var(--verdict);
    box-shadow: 0 0 0 4px rgba(var(--verdict-rgb),0.25), 0 0 18px rgba(var(--verdict-rgb),0.9);
    transition: left 900ms var(--ease-out);
}
.why-scale { display: flex; justify-content: space-between; margin-top: 26px; font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.why-scale .s { color: var(--genuine); }
.why-scale .p { color: var(--forged); }
.why-score { font-family: var(--font-mono); font-weight: 700; color: var(--verdict); }
.why-reasons { display: grid; gap: 8px; margin-bottom: 18px; padding: 0; list-style: none; }
.why-reasons li { position: relative; padding-left: 20px; color: var(--ink-2); line-height: 1.55; max-width: 90ch; }
.why-reasons li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--verdict); box-shadow: 0 0 8px var(--verdict); }
.why-drivers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.why-col { padding: 14px 16px; border-radius: 10px; background: rgba(19,10,30,0.5); box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb),0.14); }
.why-col h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.why-col.up h4 { color: var(--forged); }
.why-col.down h4 { color: var(--genuine); }
.why-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 7px 0; }
.why-row + .why-row { border-top: 1px dashed rgba(var(--violet-rgb),0.16); }
.why-row-label { font-size: 14px; color: var(--ink); }
.why-row-val { grid-column: 1; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.why-row-pts { grid-row: 1; grid-column: 2; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.why-col.up .why-row-pts { color: var(--forged); }
.why-col.down .why-row-pts { color: var(--genuine); }
.why-bar { grid-column: 1 / -1; height: 5px; margin-top: 4px; border-radius: 999px; background: rgba(var(--violet-rgb),0.12); }
.why-bar span { display: block; height: 100%; border-radius: inherit; transform-origin: left; transition: transform 800ms var(--ease-out); }
.why-col.up .why-bar span { background: linear-gradient(90deg, #fb923c, #f87171 60%, #fecaca); box-shadow: 0 0 6px rgba(248,113,113,0.9), 0 0 16px rgba(248,113,113,0.55); }
.why-col.down .why-bar span { background: linear-gradient(90deg, #c084fc, #34d399 60%, #a7f3d0); box-shadow: 0 0 6px rgba(52,211,153,0.9), 0 0 16px rgba(52,211,153,0.55); }

/* Particle overlay from bar-glow.js: decorative, never takes clicks. */
.result-box > .bar-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; border-radius: inherit; }
.why-empty { font-size: 14px; color: var(--ink-3); }
.why-foot { margin-top: 12px; font-size: 13px; color: var(--ink-3); max-width: 90ch; }
@media (max-width: 760px) { .why-drivers { grid-template-columns: minmax(0, 1fr); } .why { padding: 20px; } }

.ask-ai-btn { margin-top: 14px; }

.result-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 24px;
    border-top: 1px solid rgba(var(--violet-rgb),0.16);
    background: rgba(19,10,30,0.5);
}
.timestamp { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-right: auto; }
.feedback-link { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; padding: 8px 4px; }

.feedback-panel { display: none; padding: 20px 24px 24px; border-top: 1px solid var(--rule); }
.feedback-panel.open { display: block; }
.feedback-panel-title { font-weight: 700; margin-bottom: 10px; }
.feedback-reasons { display: grid; gap: 8px; margin-bottom: 12px; }
.feedback-reasons label { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.feedback-reasons input { accent-color: var(--accent); width: 18px; height: 18px; }
/* .feedback-comment takes the shared field style from site.css. */
.feedback-comment { display: block; font-size: 15px; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.feedback-status { font-size: 14px; font-weight: 700; }

/* Signature: the UV lamp passes over the document, then the
   circled findings and the stamp appear. */
.uv-beam {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, rgba(var(--violet-rgb),0) 0%, rgba(var(--violet-rgb),0.24) 55%, rgba(var(--pink-rgb),0.42) 80%, rgba(var(--violet-rgb),0) 100%);
}
@media (prefers-reduced-motion: no-preference) {
    .result-box.inspecting .uv-beam { animation: uv-sweep 900ms var(--ease-in-out) forwards; }
    .result-box.inspecting .risk-item,
    .result-box.inspecting .safe-item,
    .result-box.inspecting .info-item,
    .result-box.inspecting .no-risks { animation: reveal 360ms var(--ease-out) both; animation-delay: calc(520ms + var(--i, 0) * 70ms); }
    .result-box.inspecting .verdict-stamp { animation: stamp 420ms var(--ease-out) 760ms both; }
}
@keyframes uv-sweep {
    0%   { opacity: 1; transform: translateX(-100%); }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(270%); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
@keyframes stamp {
    from { opacity: 0; transform: rotate(-9deg) scale(1.35); }
    to   { opacity: 1; transform: rotate(-9deg) scale(1); }
}


@media (max-width: 960px) {
    .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .result-body { grid-template-columns: 1fr; }
    .progress-section { border-right: 0; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 640px) {
    .result-banner { padding: 20px; grid-template-columns: 1fr; }
    .result-shield { display: none; }
    .risk-pill { grid-column: 1; }
    .verdict-stamp { position: relative; top: auto; right: auto; justify-self: end; width: 104px; height: 104px; font-size: 13px; margin-top: -8px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
    .stat-item { padding: 12px 14px; }
    .progress-section, .risk-details { padding: 20px; }
}
/* Radar sweep while a link is being inspected. */
.loading { position: relative; padding-left: 108px !important; min-height: 116px; }
.loading::before {
    content: '';
    position: absolute;
    left: 22px; top: 22px;
    width: 68px; height: 68px;
    border-radius: 50%;
    border: 1px solid rgba(var(--violet-rgb),0.4);
    background:
        radial-gradient(circle, transparent 0 30%, rgba(var(--violet-rgb),0.14) 31% 32%, transparent 33% 62%, rgba(var(--violet-rgb),0.14) 63% 64%, transparent 65%),
        conic-gradient(from 0deg, rgba(var(--violet-rgb),0.58), rgba(var(--pink-rgb),0.2) 18%, transparent 30%);
}
@media (prefers-reduced-motion: no-preference) {
    .loading::before { animation: radar 1.4s linear infinite; }
}
@keyframes radar { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
    .loading { padding-left: 22px !important; padding-top: 104px !important; }
}

/* ── Feature help: (i) symbol and hover explanation in "Why this verdict" ── */
.why-row-label.has-help { position: relative; cursor: help; }
.why-info {
    display: inline-grid; place-items: center;
    width: 18px; height: 18px;
    margin-left: 7px; padding: 0;
    border: 1.5px solid currentColor; border-radius: 50%;
    background: none;
    color: var(--ink-3);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1;
    vertical-align: 1px;
    cursor: help;
    transition: color 160ms ease, background-color 160ms ease;
}
.why-row-label.has-help:hover .why-info,
.why-info:focus-visible,
.why-row-label.is-open .why-info { color: var(--accent); background: rgba(var(--violet-rgb),0.16); }
.why-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.why-tip {
    position: absolute; left: 0; top: calc(100% + 10px); z-index: 30;
    width: max-content; max-width: min(320px, 78vw);
    padding: 10px 12px;
    border: 1px solid var(--rule-strong); border-radius: 10px;
    background: #1a0d2a;
    box-shadow: 0 16px 36px -14px rgba(0,0,0,0.9), 0 0 0 1px rgba(var(--violet-rgb),0.2);
    color: var(--ink);
    font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5;
    letter-spacing: normal; text-transform: none; text-align: left; white-space: normal;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    pointer-events: none;
}
/* Small pointer joining the box to the feature name. */
.why-tip::before {
    content: ''; position: absolute; left: 18px; top: -6px;
    width: 10px; height: 10px;
    background: #1a0d2a;
    border-left: 1px solid var(--rule-strong); border-top: 1px solid var(--rule-strong);
    transform: rotate(45deg);
}
.why-row-label.has-help:hover .why-tip,
.why-info:focus-visible + .why-tip,
.why-row-label.is-open .why-tip { opacity: 1; visibility: visible; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .why-tip, .why-info { transition: none; }
}
/* ── Scan progress: real stages, not a timer ── */
.scan-steps { list-style: none; display: grid; gap: 8px; margin: 14px 0 6px; }
.scan-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-3); }
.scan-steps .step-dot {
    flex: none; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--rule-strong); background: transparent;
}
.scan-steps li.done { color: var(--ink-2); }
.scan-steps li.done .step-dot { border-color: var(--genuine); background: var(--genuine); }
.scan-steps li.active { color: var(--ink); font-weight: 700; }
.scan-steps li.active .step-dot { border-color: var(--accent); animation: step-pulse 1s ease-in-out infinite; }
@keyframes step-pulse { 50% { box-shadow: 0 0 0 5px rgba(var(--violet-rgb), 0.25); } }
@media (prefers-reduced-motion: reduce) { .scan-steps li.active .step-dot { animation: none; background: var(--accent); } }

/* ── Input help and inline error ── */
.scan-help { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.field-error {
    margin-top: 10px; padding: 8px 12px;
    border-left: 3px solid var(--forged); background: var(--forged-bg);
    color: #fecaca; font-size: 15px;
}
.url-input[aria-invalid="true"] { border-color: var(--forged); }

/* ── What to do now ── */
.next-steps { padding: 18px 24px; border-top: 1px solid rgba(var(--violet-rgb),0.16); }
.next-steps ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.result-box.phishing .next-steps { background: linear-gradient(90deg, var(--forged-bg), transparent 70%); }
.result-box.uncertain .next-steps { background: linear-gradient(90deg, var(--unverified-bg), transparent 70%); }

/* ── Technical details (model inputs) ── */
.tech-details { border-top: 1px solid rgba(var(--violet-rgb),0.16); }
.tech-details > summary {
    cursor: pointer; padding: 14px 24px; min-height: 44px;
    font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
    font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
}
.tech-details > summary span { margin-left: 8px; font-family: var(--font-ui); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.tech-details > summary:focus-visible { outline: 2px solid var(--uv); outline-offset: -2px; }
.tech-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; padding: 4px 24px 16px; }
.tech-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.tech-meta dd { font-family: var(--font-mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.tech-warn { grid-column: 1 / -1; color: var(--unverified); }
.tech-table td, .tech-table th { padding: 8px 24px; }
.tech-table .imp-up { color: #fca5a5; }
.tech-table .imp-down { color: var(--genuine); }
@media (max-width: 640px) {
    /* The shared ledger turns rows into cards on phones; this table is
       short and three columns, so keep it a table. */
    .tech-table thead { display: table-header-group; }
    .tech-table { display: table; }
    .tech-table tbody { display: table-row-group; }
    .tech-table tr { display: table-row; }
    .tech-table td, .tech-table th { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--rule); font-size: 13px; }
    .ledger.tech-table td:nth-child(n), .ledger.tech-table th:nth-child(n) {
        display: table-cell; grid-area: auto; max-width: none;
        overflow-wrap: normal; white-space: normal; justify-self: auto;
        font-size: 13px;
    }
    .ledger.tech-table td.num { white-space: nowrap; }
    .tech-meta, .next-steps { padding-inline: 16px; }
    .tech-details > summary { padding-inline: 16px; }
}
