/* Verify kit: clip pages, the Verify page, the citation sheet and the election banner. Tokens from app.css. */

.vf-page { max-width: 820px; }
.vf-wide { max-width: 960px; }
.vf-page h2 { margin: 0; font: 700 18px/1.3 var(--font-display); letter-spacing: -0.015em; }
.vf-page h3 { margin: 0; font: 650 16px/1.35 var(--font-display); }
.vf-back {
  display: inline-flex; align-items: center; gap: 4px; margin: 18px 0 0; color: var(--accent); font-size: 15px; font-weight: 500;
  text-decoration: none;
}
.vf-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vf-head { padding: 14px 0 16px; }
.vf-title { margin: 6px 0 4px; font: 750 clamp(24px, 4vw, 32px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.vf-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: 14px; }
.vf-fine { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.vf-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--raised); font-size: 15px; line-height: 1.5; }
.vf-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.vf-badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.vf-badge-machine { background: rgba(255, 159, 10, 0.16); color: #a35a00; }
.vf-badge-official, .vf-badge-edited { background: rgba(52, 199, 89, 0.16); color: #1d7a3a; }
.vf-badge-none { background: var(--raised); color: var(--text-2); }
:root[data-theme="dark"] .vf-badge-machine { color: #ffb340; }
:root[data-theme="dark"] .vf-badge-official, :root[data-theme="dark"] .vf-badge-edited { color: #5fd37f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vf-badge-machine { color: #ffb340; }
  :root:not([data-theme="light"]) .vf-badge-official, :root:not([data-theme="light"]) .vf-badge-edited { color: #5fd37f; }
}

.vf-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: transparent; color: var(--text); font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
}
.vf-pill:hover { background: var(--hover); }
.vf-pill.solid { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.vf-pill.solid:hover { background: var(--accent-press); }
.vf-pill:focus-visible, .vf-tab:focus-visible, .vf-seg:focus-visible, .vf-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Player */
.vf-video { display: block; width: 100%; max-height: 60vh; margin: 0 0 12px; border-radius: 14px; background: #000; }
.vf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.vf-play {
  display: grid; flex: none; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
.vf-play:disabled { opacity: 0.45; cursor: default; }
.vf-play svg { width: 26px; height: 26px; fill: currentColor; }
.vf-play .i-pause, .vf-playing .vf-play .i-play { display: none; }
.vf-playing .vf-play .i-pause { display: block; }
.vf-progress { flex: 1 1 220px; min-width: 0; }
.vf-bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.vf-fill { width: 0; height: 100%; background: var(--accent); transition: width 0.2s linear; }
.vf-times { display: flex; justify-content: space-between; margin: 6px 0 0; color: var(--text-2); font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; }
.vf-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }

/* Timed lines */
.vf-segs { margin: 12px 0 0; padding: 0; list-style: none; }
.vf-seg {
  display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font: 17px/1.55 var(--font); text-align: left; cursor: pointer; user-select: text;
}
.vf-seg:hover { background: var(--hover); }
.vf-seg.is-current { background: var(--accent-soft); }
.vf-seg-time { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.vf-narrow { margin-top: 10px; }

/* Citations */
.vf-tabs { display: flex; gap: 6px; margin: 12px 0 10px; overflow-x: auto; scrollbar-width: none; }
.vf-tab {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  color: var(--text-2); font: 500 14px/1 var(--font); white-space: nowrap; cursor: pointer;
}
.vf-tab[aria-selected="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.vf-pre {
  margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised);
  color: var(--text); font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word;
}
.vf-cite-block { margin: 12px 0 0; }
.vf-cite-block .vf-card-head { margin-bottom: 6px; }

/* Source and evidence */
.vf-dl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 16px; margin: 12px 0 0; font-size: 15px; }
.vf-dl dt { color: var(--text-2); }
.vf-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.vf-dl small { display: block; color: var(--text-3); font-size: 12.5px; }
.vf-dl a { color: var(--accent); }
.vf-hashes code, .vf-hashline code { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .vf-dl { grid-template-columns: 1fr; gap: 2px; }
  .vf-dl dd { margin-bottom: 8px; }
}

/* Verify page */
.vf-how summary { cursor: pointer; list-style: none; }
.vf-how summary::-webkit-details-marker { display: none; }
.vf-how summary h2 { display: inline; }
.vf-how summary::after { content: " ▾"; color: var(--text-3); }
.vf-how[open] summary::after { content: " ▴"; }
.vf-how ol { margin: 10px 0 0; padding-left: 22px; line-height: 1.6; }
.vf-q { display: flex; gap: 8px; }
.vf-q input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--text); font: 16px var(--font);
}
.vf-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.vf-filters label { display: grid; gap: 4px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.vf-filters input, .vf-filters select {
  min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  color: var(--text); font: 15px var(--font);
}
.vf-results { margin: 8px 0 20px; }
.vf-list { margin: 10px 0 0; padding: 0; list-style: none; }
.vf-hit { margin: 0 0 12px; }
.vf-hit-title { margin: 6px 0 0; }
.vf-hit-title a { color: var(--text); text-decoration: none; }
.vf-hit-title a:hover { text-decoration: underline; }
.vf-moments { margin: 10px 0 0; padding: 0; list-style: none; }
.vf-moment { display: grid; grid-template-columns: 4.5em 1fr; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.vf-moment .vf-actions { grid-column: 2; }
.vf-time { color: var(--accent); font: 600 15px/1.6 var(--font); font-variant-numeric: tabular-nums; text-decoration: none; }
.vf-said { margin: 0; font-size: 16.5px; line-height: 1.55; }
.vf-hashline { margin: 10px 0 8px; color: var(--text-3); font-size: 12.5px; }
.vf-hit > .vf-actions a:not(.vf-pill) { color: var(--accent); font-size: 14px; }
.vf-moment .vf-actions a:not(.vf-pill), .vf-src .vf-actions a { color: var(--accent); font-size: 14px; }
.vf-story #vf-story-form { margin-top: 12px; }
.vf-facts { margin: 18px 0 0; }
.vf-fact { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.vf-fact-text { margin: 0; font-weight: 600; line-height: 1.45; }
.vf-differ .vf-fact { border-color: rgba(255, 159, 10, 0.5); }
.vf-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.vf-side { padding: 10px 12px; border-radius: 12px; background: var(--raised); }
.vf-side-value { margin: 0; font: 700 17px/1.3 var(--font-display); }
.vf-srcs { margin: 8px 0 0; padding: 0; list-style: none; }
.vf-src { padding: 8px 0; border-top: 1px solid var(--line); }
.vf-quote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line-strong); font-size: 15px; line-height: 1.5; }
@media (max-width: 600px) {
  .vf-q { flex-direction: column; }
  .vf-moment { grid-template-columns: 1fr; }
  .vf-moment .vf-actions { grid-column: 1; }
}

/* Citation sheet (cite.js openCiteSheet) */
.vf-sheet {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.vf-sheet::backdrop { background: rgba(0, 0, 0, 0.35); }
.vf-sheet h2 { margin: 0; font: 700 18px/1.3 var(--font-display); }
.vf-sheet h3 { margin: 0; font: 600 15px/1.3 var(--font); }
.vf-sheet a { color: var(--accent); overflow-wrap: anywhere; }

/* Election banner (election.js) */
.vf-election {
  position: relative; display: grid; gap: 6px; max-width: calc(var(--page-w) + 56px); margin: 12px auto; padding: 12px 48px 12px 16px;
  border: 1px solid rgba(255, 159, 10, 0.45); border-radius: 16px; background: rgba(255, 159, 10, 0.1); color: var(--text);
  font-size: 14.5px; line-height: 1.45;
}
.vf-election p { margin: 0; }
.vf-election-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.vf-election-links a { color: var(--accent); font-weight: 600; }
.vf-election-close {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.vf-election-close:hover { background: var(--hover); }
.vf-election-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Console */
.el-wide { width: 100%; min-height: 36px; font: inherit; }
.el-mid { width: min(320px, 100%); }
.el-num { width: 90px; }
