/* Prompt & Verdict (promptverdict.space): AI tools cross-examined in chat transcripts.
   Loaded only on this title's pages. Every class and keyframe is prefixed promptverdict-.
   All three faces (Hedvig Letters Serif / Sans, Fragment Mono) exist in weight 400 only:
   hierarchy comes from size, colour and case, never from synthesized bold. */

#site-root[data-site="promptverdict"] { --pv-ink: #16140f; --pv-mint: #2f9e6e; --pv-mint-bg: #dff3e8; --pv-grey: #efeae0; }
#site-root[data-site="promptverdict"] h1,
#site-root[data-site="promptverdict"] h2,
#site-root[data-site="promptverdict"] h3 { font-weight: 400; }

/* ---------- logo caret + composer caret ---------- */
.promptverdict-caret { animation: promptverdict-blink 1.06s steps(1, end) infinite; }
@keyframes promptverdict-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }

/* ---------- live pulse: three typing dots that resolve into a check every 4s ---------- */
.promptverdict-typing > i { display: block; width: 5px; height: 5px; border-radius: 999px; background: currentColor; animation: promptverdict-bounce 4s ease-in-out infinite; }
.promptverdict-typing > i:nth-child(2) { animation-delay: .14s; }
.promptverdict-typing > i:nth-child(3) { animation-delay: .28s; }
.promptverdict-typing-check { opacity: 0; transform: scale(.6); animation: promptverdict-check 4s ease-in-out infinite; }
@keyframes promptverdict-bounce {
  0%, 8%, 16%, 24%, 32%, 40%, 48%, 56%, 64%, 100% { transform: translateY(0); opacity: 1; }
  4%, 20%, 36%, 52% { transform: translateY(-3px); }
  70%, 92% { transform: translateY(0) scale(.2); opacity: 0; }
}
@keyframes promptverdict-check { 0%, 66% { opacity: 0; transform: scale(.6); } 72%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }

/* ---------- three-dot section divider (typing indicator at rest) ---------- */
.promptverdict-divider { display: flex; justify-content: center; gap: 7px; }
.promptverdict-divider > i { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); opacity: .55; }
.promptverdict-divider > i:nth-child(2) { opacity: .8; }
.promptverdict-divider > i:nth-child(3) { opacity: 1; background: var(--accent); }

/* ---------- pill buttons: 1.5px ink border, 0 3px 0 ink shadow that collapses on press ---------- */
.promptverdict-pill { border: 1.5px solid var(--pv-ink); border-radius: 999px; box-shadow: 0 3px 0 var(--pv-ink); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease; }
.promptverdict-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--pv-ink); }
.promptverdict-pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pv-ink); }
.promptverdict-pill-light { border-color: var(--bg); box-shadow: 0 3px 0 var(--bg); }
.promptverdict-pill-light:hover { box-shadow: 0 4px 0 var(--bg); }

/* ---------- link + headline underlines: 2px raspberry dotted, solid on hover ---------- */
.promptverdict-h { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.group:hover .promptverdict-h, .group:focus-visible .promptverdict-h { text-decoration-color: var(--accent); text-decoration-style: solid; }
.promptverdict-link { text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 4px; }
.promptverdict-link:hover { text-decoration-style: solid; }

/* ---------- yellow marker band behind highlighted prompt text ---------- */
.promptverdict-marker { background: linear-gradient(to bottom, transparent 52%, var(--accent2) 52%, var(--accent2) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .12em; }

/* ---------- bubble cards ---------- */
.promptverdict-lift { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.promptverdict-lift:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--pv-ink); }
.promptverdict-grey { background: var(--pv-grey); }

/* ---------- edge fade for horizontal scrollers ---------- */
.promptverdict-fade { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent); }

/* ---------- phone menu: bottom sheet rising ---------- */
.promptverdict-sheet { animation: promptverdict-rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes promptverdict-rise { from { transform: translateY(24px); } to { transform: none; } }

/* ---------- browser-window frame for in-article figures ---------- */
.promptverdict-window { border: 1.5px solid var(--pv-ink); border-radius: 1rem; overflow: hidden; background: var(--surface); box-shadow: 0 4px 0 var(--pv-ink); }
.promptverdict-window-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1.5px solid var(--pv-ink); background: var(--bg); }
.promptverdict-window-bar > i { width: 9px; height: 9px; border-radius: 999px; border: 1.5px solid var(--pv-ink); }
.promptverdict-window-bar > i:first-child { background: var(--accent); }
.promptverdict-window-bar > i:nth-child(2) { background: var(--accent2); }

/* ---------- article prose ---------- */
.promptverdict-story { counter-reset: promptverdict-h2; }
.promptverdict-prose { font-size: 18px; line-height: 1.72; }
@media (min-width: 768px) { .promptverdict-prose { font-size: 19px; } }
.promptverdict-prose > * + * { margin-top: 1.15em; }
.promptverdict-prose p { text-wrap: pretty; }
.promptverdict-prose a { color: inherit; text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 4px; transition: color .15s; }
.promptverdict-prose a:hover { color: var(--accent); text-decoration-style: solid; }
.promptverdict-prose strong, .promptverdict-prose b { font-weight: 400; background: linear-gradient(to bottom, transparent 58%, color-mix(in srgb, var(--accent2) 70%, transparent) 58%, color-mix(in srgb, var(--accent2) 70%, transparent) 92%, transparent 92%); }
.promptverdict-prose em { font-style: italic; }
.promptverdict-prose h2 { font-family: var(--font-head), Georgia, serif; font-size: 27px; line-height: 1.18; margin-top: 2em; counter-increment: promptverdict-h2; scroll-margin-top: 88px; }
.promptverdict-prose h2::before { content: "Q" counter(promptverdict-h2, decimal-leading-zero); display: block; width: max-content; margin-bottom: .55em; padding: 4px 10px 3px; font-family: var(--f-mono), ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; line-height: 1.2; color: var(--accent); border: 1.5px solid currentColor; border-radius: 999px 999px 4px 999px; }
@media (min-width: 768px) { .promptverdict-prose h2 { font-size: 32px; } }
.promptverdict-prose h3 { font-family: var(--font-head), Georgia, serif; font-size: 22px; line-height: 1.25; margin-top: 1.6em; }
.promptverdict-prose h2 + *, .promptverdict-prose h3 + * { margin-top: .6em; }

/* Lead paragraph opens with a raspberry mono Q:, the conclusion with A: */
.promptverdict-prose .promptverdict-q::before, .promptverdict-prose .promptverdict-a::before {
  display: inline-block; margin-right: .5em; padding: 1px 8px; border-radius: 999px 999px 999px 4px;
  font-family: var(--f-mono), ui-monospace, monospace; font-size: .78em; line-height: 1.5; vertical-align: .08em;
  color: var(--on-accent); background: var(--accent);
}
.promptverdict-prose .promptverdict-q::before { content: "Q:"; }
.promptverdict-prose .promptverdict-a::before { content: "A:"; background: var(--pv-ink); color: var(--bg); }
.promptverdict-prose .promptverdict-q { font-size: 1.1em; line-height: 1.6; }

/* Bullets: tiny raspberry speech bubbles. Ordered lists: drawn circled numerals. */
.promptverdict-prose ul { list-style: none; padding-left: 0; }
.promptverdict-prose ul > li { position: relative; padding-left: 1.6em; }
.promptverdict-prose ul > li + li, .promptverdict-prose ol > li + li { margin-top: .55em; }
.promptverdict-prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .58em; height: .46em; background: var(--accent); border-radius: 999px 999px 999px 1px; }
.promptverdict-prose ol { list-style: none; padding-left: 0; counter-reset: promptverdict-ol; }
.promptverdict-prose ol > li { position: relative; padding-left: 2.2em; counter-increment: promptverdict-ol; }
.promptverdict-prose ol > li::before { content: counter(promptverdict-ol); position: absolute; left: 0; top: .18em; display: grid; place-items: center; width: 1.45em; height: 1.45em; border: 1.5px solid var(--pv-ink); border-radius: 999px; font-family: var(--f-mono), ui-monospace, monospace; font-size: .74em; line-height: 1; }

/* Pull quotes: oversized reply bubbles, preceded by a typing indicator that animates once. */
.promptverdict-prose blockquote { position: relative; margin: 2.4em 0 2em; padding: 1.1em 1.3em 1.2em; background: var(--pv-grey); border-radius: 1.6rem 1.6rem 1.6rem .4rem; font-family: var(--font-head), Georgia, serif; font-size: 1.32em; line-height: 1.32; }
.promptverdict-prose blockquote::before { content: ""; position: absolute; left: 0; top: -38px; width: 58px; height: 28px; border-radius: 999px 999px 999px 4px; background:
  radial-gradient(circle, var(--muted) 3.5px, transparent 4px) 13px 50% / 10px 10px no-repeat,
  radial-gradient(circle, var(--muted) 3.5px, transparent 4px) 24px 50% / 10px 10px no-repeat,
  radial-gradient(circle, var(--muted) 3.5px, transparent 4px) 35px 50% / 10px 10px no-repeat,
  var(--pv-grey); animation: promptverdict-type 1.4s ease-in-out 3; }
.promptverdict-prose blockquote > * + * { margin-top: .5em; }
.promptverdict-prose blockquote p:last-child { margin-bottom: 0; }
@keyframes promptverdict-type { 0%, 100% { background-position: 13px 50%, 24px 50%, 35px 50%, 0 0; } 25% { background-position: 13px 30%, 24px 50%, 35px 50%, 0 0; } 50% { background-position: 13px 50%, 24px 30%, 35px 50%, 0 0; } 75% { background-position: 13px 50%, 24px 50%, 35px 30%, 0 0; } }
@media (min-width: 768px) { .promptverdict-prose blockquote { font-size: 1.5em; } }
@media (min-width: 1024px) { .promptverdict-prose blockquote { margin-right: -2rem; } }

/* Tables: the only hard rectangle on the site (the scorecard). */
.promptverdict-prose table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--pv-ink); font-size: 15px; line-height: 1.45; display: block; overflow-x: auto; }
@media (min-width: 640px) { .promptverdict-prose table { display: table; } }
.promptverdict-prose thead th { background: var(--pv-ink); color: var(--bg); font-family: var(--f-mono), ui-monospace, monospace; font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 10px 12px; }
.promptverdict-prose td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.promptverdict-prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent2) 14%, transparent); }
.promptverdict-prose hr { border: 0; height: 7px; margin: 2.4em auto; width: 37px; background: radial-gradient(circle, var(--muted) 3.5px, transparent 4px) 0 0 / 15px 7px repeat-x; }
.promptverdict-prose code { font-family: var(--f-mono), ui-monospace, monospace; font-size: .86em; padding: .05em .35em; border-radius: .4em; background: color-mix(in srgb, var(--accent2) 45%, transparent); }

/* ---------- comments restyled as a left-aligned chat thread ---------- */
.promptverdict-comments h2 { font-family: var(--font-head), Georgia, serif; font-weight: 400; }
.promptverdict-comments form { border-radius: 1.5rem 1.5rem 1.5rem .35rem; border: 1.5px solid var(--pv-ink); background: var(--surface); }
.promptverdict-comments form input, .promptverdict-comments form textarea { border-radius: 999px; background: var(--bg); }
.promptverdict-comments form textarea { border-radius: 1.1rem; }
.promptverdict-comments form button { box-shadow: 0 3px 0 var(--pv-ink); border: 1.5px solid var(--pv-ink); font-weight: 400; font-family: var(--f-mono), ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
.promptverdict-comments ul { border: 0; }
.promptverdict-comments ul > li { border: 0; padding-top: .45rem; padding-bottom: .45rem; align-items: flex-end; }
.promptverdict-comments ul > li > span { font-weight: 400; }
.promptverdict-comments ul > li > div { max-width: 36rem; padding: .7rem 1rem .8rem; background: var(--pv-grey); border-radius: 1.3rem 1.3rem 1.3rem .3rem; }
.promptverdict-comments ul > li > div span.font-semibold { font-weight: 400; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .promptverdict-caret, .promptverdict-typing > i, .promptverdict-typing-check, .promptverdict-sheet, .promptverdict-prose blockquote::before { animation: none; }
  .promptverdict-pill, .promptverdict-lift, .promptverdict-h { transition: none; }
  .promptverdict-lift:hover, .promptverdict-pill:hover { transform: none; }
}
