/* Marco's own components on top of furoki.css. Colours only from furoki-tokens.css. */
/* localisation: Marco's accent pair (the h1 marker and other accent uses in furoki.css) */
:root { --accent: var(--blue); --accent-2: var(--violet); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-subtle); font-weight: var(--weight-regular); }

/* the audit and unlock forms: a pill input with a button */
.audit-form, #unlock-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.audit-form input, #unlock-form input { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line-strong); background: var(--card); color: var(--text-strong); border-radius: 999px; padding: 11px 18px; font: inherit; font-size: var(--fs-14); }
.audit-form input:focus-visible, #unlock-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cf-turnstile { flex-basis: 100%; }
.form-error { flex-basis: 100%; margin: 0; color: var(--text-strong); font-weight: var(--weight-medium); }
.form-error::before { content: "! "; color: var(--orange); }
.form-ok { flex-basis: 100%; margin: 0; color: var(--text-strong); }

/* the sample on the landing page */
.sample { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 24px; color: var(--glass-text); }
.sample p { margin: 10px 0 0; font-size: var(--fs-13); }
.sample-score { margin: 0 !important; }
.sample-score b, .score b { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: 48px; line-height: 1; letter-spacing: -.02em; color: inherit; }
.sample-score span, .score span { font-size: var(--fs-16); opacity: .7; }

/* progress while an audit runs */
.progress { list-style: none; padding: 0; margin: 28px 0 0; }
.progress li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); color: var(--text-subtle); position: relative; }
.progress li:last-child { border-bottom: 1px solid var(--line); }
.progress li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-strong); }
.progress li.done { color: var(--text-default); }
.progress li.done::before { content: "✓"; border: 0; top: 11px; color: var(--text-strong); font-weight: var(--weight-medium); }
.progress li.now { color: var(--text-strong); font-weight: var(--weight-medium); }
.progress li.now::before { background: var(--orange); border-color: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* the score card */
.score-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 28px; }
@media (max-width: 700px) { .score-card { grid-template-columns: 1fr; } }
.score { color: var(--text-strong); }
.score p { margin: 6px 0 0; color: var(--text-default); }
.cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cat { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 36px; gap: 12px; align-items: center; }
.cat b { text-align: right; }
.cat meter { width: 100%; height: 8px; }
.summary { font-size: var(--fs-16); max-width: 760px; margin: 24px 0 0; color: var(--text-default); }

/* opportunities */
.opps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: opp; display: grid; gap: 12px; }
.opps li { counter-increment: opp; background: var(--alt); border-radius: var(--radius); padding: 22px 24px 22px 64px; position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.opps li::before { content: counter(opp); position: absolute; left: 22px; top: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: var(--weight-medium); font-size: var(--fs-12); color: var(--text-strong); }
.opps h3 { margin: 4px 0 4px; }
.opps p { margin: 0; max-width: 640px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.tag { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: var(--fs-12); color: var(--text-default); white-space: nowrap; }
.tag.marco { background: var(--ink); border-color: var(--ink); color: var(--card); }
.unlock form { flex: 1 1 360px; }

/* findings */
.cat-findings { margin-top: 32px; }
.findings { list-style: none; padding: 0; margin: 12px 0 0; }
.f { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.f p { margin: 0; }
.f .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--green); }
.f.warn .dot { background: var(--yellow); }
.f.fail .dot { background: var(--orange); }
.ev, .ev-urls { color: var(--text-subtle); font-size: var(--fs-12); margin: 4px 0 0; word-break: break-all; }
.ev-urls { padding-left: 16px; }
pre { background: var(--alt); border-radius: 12px; padding: 16px; overflow-x: auto; }

/* PDPA consent line on the report email form */
.unlock .consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.unlock .consent input { margin-top: 0.2rem; }

/* the copy-paste example under a fix in the full report */
.opps li > div { flex: 1 1 420px; min-width: 0; }
.example { margin-top: 14px; max-width: 640px; }
.example-label { font-size: var(--fs-12); font-weight: var(--weight-medium); color: var(--text-subtle); margin: 0 0 6px; }
.example pre { margin: 0; background: var(--card); border: 1px solid var(--line); font-size: var(--fs-12); white-space: pre-wrap; word-break: break-word; }

/* footer column headings are h2 so heading levels never skip; they look like the old small labels */
.foot h2 { margin: 0 0 4px; max-width: none; font-family: var(--font-sans); font-weight: var(--weight-medium); font-size: var(--fs-12); line-height: 1.4; letter-spacing: 0; color: var(--text-strong); }

/* What kind of site Marco read this as, and what marketing means for it */
.kind { margin: 24px 0 0; max-width: 760px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.kind-line { margin: 0 0 8px; color: var(--text-strong); font-size: var(--fs-16); }
.kind-why { margin: 0 0 10px; padding-left: 20px; color: var(--text-default); }
.playbook { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-default); }
.playbook h3 { margin: 0 0 8px; color: var(--text-strong); font-size: var(--fs-16); }
.playbook h4 { margin: 14px 0 4px; color: var(--text-strong); font-size: var(--fs-12); font-weight: var(--weight-medium); text-transform: uppercase; }
.playbook ul { margin: 4px 0 0; padding-left: 20px; }

/* Coverage beside the score, the preliminary grade, the top three actions and what we couldn't assess. */
.score .coverage { margin: 2px 0 0; font-size: 13px; color: var(--text-subtle, #707070); }
.score.preliminary p:first-of-type { font-style: italic; }
.actions { padding-left: 1.2em; display: grid; gap: 18px; }
.actions h3 { margin: 0 0 4px; }
.actions p { margin: 4px 0; }
.actions .ev { font-size: 14px; color: var(--text-default); overflow-wrap: anywhere; }
.gaps { margin-top: 24px; font-size: 14px; }
.gaps ul { padding-left: 1.2em; }
.kind.unsure { border-left: 3px solid #e08a1e; padding-left: 12px; }
