/* Vidranya visibility report */
.audit-results:focus { outline: none; }
.vr-report {
	--vr-ink: var(--ink, #122a25);
	--vr-soft: var(--soft, #415c54);
	--vr-line: var(--line, #dce3d9);
	--vr-paper: var(--paper, #fff);
	--vr-dark: var(--dark, #102d26);
	--vr-lime: var(--lime, #d8fa81);
	--vr-good: #1e8e5a;
	--vr-ok: #5f8f1c;
	--vr-warn: #c27c0e;
	--vr-high: #d9631e;
	--vr-bad: #c8372d;
	--vr-muted: #6a8179;
	display: grid;
	gap: 1.1rem;
	padding-block: clamp(2rem, 5vw, 3.5rem);
	color: var(--vr-ink);
}
.vr-report h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: .2em 0 .15em; overflow-wrap: anywhere; }
.vr-report h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 0 0 .2em; }
.vr-report h4 { font-size: 1.02rem; letter-spacing: -.01em; margin: .5rem 0 .25rem; line-height: 1.3; }
.vr-report p { margin: 0 0 .5em; }
.vr-muted { color: var(--vr-muted); }
.vr-small { font-size: .86rem; }
.vr-tone-good { color: var(--vr-good); } .vr-tone-ok { color: var(--vr-ok); } .vr-tone-warn { color: var(--vr-warn); } .vr-tone-bad { color: var(--vr-bad); }
.vr-bg-good { background: var(--vr-good); } .vr-bg-ok { background: var(--vr-ok); } .vr-bg-warn { background: var(--vr-warn); } .vr-bg-bad { background: var(--vr-bad); }

.vr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.vr-head__tools .btn { min-height: 40px; padding: .5rem .9rem; }

.vr-card {
	background: var(--vr-paper);
	border: 1px solid var(--vr-line);
	border-radius: 1rem;
	padding: clamp(1rem, 2.4vw, 1.5rem);
	box-shadow: var(--surface-shadow, 0 10px 30px -22px #143c3370);
	min-width: 0;
}
.vr-card__head { margin-bottom: 1rem; }
.vr-card__head p { margin: 0; font-size: .92rem; }

/* Overview */
.vr-overview { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.1rem; }
.vr-score { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.8rem); }
.vr-grade { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .25rem !important; }
.vr-counts { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0 !important; margin: .8rem 0 0; }
.vr-pill { display: inline-flex; align-items: center; gap: .15rem; font-size: .84rem; font-weight: 700; border-radius: 2rem; padding: .25rem .65rem .25rem .3rem; }
.vr-pill--pass { background: #e3f4ea; color: #17704a; }
.vr-pill--warn { background: #fbf0dc; color: #93600b; }
.vr-pill--fail { background: #fbe4e1; color: #a32b22; }

.vr-ring {
	--c: var(--vr-ink);
	--size: 8.5rem;
	flex: none;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), #e7ece3 0);
}
.vr-ring.vr-tone-good { --c: var(--vr-good); } .vr-ring.vr-tone-ok { --c: var(--vr-ok); } .vr-ring.vr-tone-warn { --c: var(--vr-warn); } .vr-ring.vr-tone-bad { --c: var(--vr-bad); }
.vr-ring__inner { width: 78%; height: 78%; border-radius: 50%; background: var(--vr-paper); display: grid; place-content: center; text-align: center; line-height: 1; color: var(--vr-ink); }
.vr-ring__inner strong { font-size: 2.6rem; font-weight: 820; letter-spacing: -.05em; }
.vr-ring__inner span { font-size: .72rem; color: var(--vr-muted); margin-top: .25rem; }
.vr-ring--sm { --size: 4.6rem; }
.vr-ring--sm .vr-ring__inner strong { font-size: 1.4rem; }
.vr-ring--sm .vr-ring__inner span { display: none; }

.vr-bars { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .8rem; }
.vr-bars__label { display: flex; justify-content: space-between; font-weight: 650; margin-bottom: .3rem; }
.vr-bar { height: .55rem; background: #e7ece3; border-radius: 1rem; overflow: hidden; }
.vr-bar span { display: block; height: 100%; border-radius: inherit; transition: width .8s ease; }
.vr-bars .vr-small { margin: .25rem 0 0; }

/* Icons */
.vr-icon { display: inline-grid; place-items: center; flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%; font-size: .78rem; font-weight: 900; line-height: 1; color: #fff; background: var(--vr-muted); }
.vr-pill--pass .vr-icon, .vr-check--pass .vr-icon { background: var(--vr-good); }
.vr-pill--warn .vr-icon, .vr-check--warn .vr-icon { background: var(--vr-warn); }
.vr-pill--fail .vr-icon, .vr-check--fail .vr-icon { background: var(--vr-bad); }

/* PageSpeed */
.vr-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.vr-gauge { display: grid; justify-items: center; gap: .45rem; text-align: center; font-weight: 650; font-size: .9rem; }
.vr-skeleton { height: 6.2rem; border-radius: .8rem; background: linear-gradient(90deg, #eef2ea 25%, #f8faf5 50%, #eef2ea 75%); background-size: 200% 100%; animation: vr-shimmer 1.4s infinite; }
.vr-loading { display: flex; align-items: center; gap: .6rem; color: var(--vr-soft); margin-bottom: 1rem; }
.vr-spinner { width: 1.1rem; height: 1.1rem; border: 3px solid #dbe5d6; border-top-color: var(--vr-good); border-radius: 50%; animation: vr-spin .8s linear infinite; }
.vr-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: .6rem; margin: 1.2rem 0 0; }
.vr-metric { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1px solid var(--vr-line); border-left: 4px solid var(--vr-muted); border-radius: .6rem; padding: .55rem .75rem; }
.vr-metric--good { border-left-color: var(--vr-good); } .vr-metric--ok { border-left-color: var(--vr-warn); } .vr-metric--bad { border-left-color: var(--vr-bad); }
.vr-metric dt { display: grid; font-weight: 650; font-size: .9rem; line-height: 1.3; }
.vr-metric dt small { font-weight: 400; font-size: .76rem; }
.vr-metric dd { margin: 0; font-weight: 800; white-space: nowrap; }
.vr-opps { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .4rem; }
.vr-opps li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--vr-line); font-size: .93rem; }
.vr-opps strong { white-space: nowrap; color: var(--vr-good); }
.vr-speed h4 { margin-top: 1.2rem; }

/* Fixes */
.vr-fix-list { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: .8rem; }
.vr-fix { border: 1px solid var(--vr-line); border-top: 4px solid var(--vr-muted); border-radius: .8rem; padding: 1rem; background: #fcfdf9; }
.vr-fix--bad { border-top-color: var(--vr-bad); } .vr-fix--high { border-top-color: var(--vr-high); } .vr-fix--warn { border-top-color: var(--vr-warn); }
.vr-fix__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vr-fix__num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--vr-dark); color: #f5f8ef; font-weight: 800; font-size: .82rem; }
.vr-chip { font-size: .74rem; font-weight: 800; border-radius: 2rem; padding: .18rem .6rem; color: #fff; background: var(--vr-muted); }
.vr-chip--bad { background: var(--vr-bad); } .vr-chip--high { background: var(--vr-high); } .vr-chip--warn { background: var(--vr-warn); }
.vr-fix .vr-muted { font-size: .92rem; }
.vr-fix__how { font-size: .92rem; background: #f1f6ea; border-radius: .5rem; padding: .55rem .7rem; margin: .5rem 0 0 !important; }

/* Google preview */
.vr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 1.1rem; }
.vr-snippet { border: 1px solid #e3e6e8; border-radius: .8rem; padding: 1rem 1.1rem; background: #fff; font-family: Arial, Helvetica, sans-serif; }
.vr-snippet__site { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: #202124; }
.vr-snippet__icon { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #f1f3f4; font-weight: 700; color: #3c4043; }
.vr-snippet__title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin: .4rem 0 .2rem !important; }
.vr-snippet__desc { color: #4d5156; font-size: .9rem; line-height: 1.5; margin: 0 !important; }
.vr-snippet--missing { color: var(--vr-bad) !important; font-style: italic; }
.vr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; }
.vr-facts > div { display: grid; gap: .15rem; background: #f6f8f2; border-radius: .6rem; padding: .7rem .8rem; }
.vr-facts strong { font-size: 1.1rem; }

/* Checklist */
.vr-group { border-top: 1px solid var(--vr-line); }
.vr-group summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: .9rem 0; font-weight: 750; font-size: 1.05rem; list-style: none; }
.vr-group summary::-webkit-details-marker { display: none; }
.vr-group summary span::before { content: '▸'; display: inline-block; width: 1.1rem; transition: transform .2s; color: var(--vr-muted); }
.vr-group[open] summary span::before { transform: rotate(90deg); }
.vr-check-list { list-style: none; padding: 0 0 .8rem !important; margin: 0; display: grid; gap: .5rem; }
.vr-check { display: flex; gap: .7rem; align-items: flex-start; border-radius: .7rem; padding: .7rem .8rem; background: #f8faf5; }
.vr-check--fail { background: #fdf3f1; } .vr-check--warn { background: #fdf8ee; }
.vr-check .vr-icon { margin-top: .1rem; }
.vr-check__main { min-width: 0; flex: 1; }
.vr-check__top { display: flex; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; }
.vr-check__top code { font: .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #fff; border: 1px solid var(--vr-line); border-radius: .35rem; padding: .1rem .4rem; max-width: 100%; overflow-wrap: anywhere; color: var(--vr-soft); }
.vr-check__main .vr-muted { font-size: .9rem; margin: .25rem 0 0; }
.vr-check__fix { font-size: .9rem; margin: .35rem 0 0 !important; }

/* Call to action */
.vr-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; background: radial-gradient(ellipse at 90% 20%, #285447, transparent 60%), var(--vr-dark); color: #f5f8ef; border-radius: 1rem; padding: clamp(1.3rem, 3vw, 2rem); }
.vr-cta h3 { font-size: 1.5rem; }
.vr-cta p { color: #cfe0d6; margin: 0; max-width: 52ch; }
.vr-scope { margin: 0; }

/* Queued */
.vr-queued { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.vr-queued h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .25em 0 .4em; }
.vr-queued__lead { font-size: 1.08rem; }
.vr-queued__badge { flex: none; display: grid; place-content: center; text-align: center; width: 8.5rem; height: 8.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2c5a4c, var(--vr-dark)); color: #f5f8ef; box-shadow: 0 0 0 8px #e5f1d6; }
.vr-queued__badge strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; color: var(--vr-lime); }
.vr-queued__badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-top: .3rem; }
.vr-queued__progress { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .7rem .9rem; border-radius: .7rem; background: #f3f7ee; font-weight: 650; }
@media (max-width: 560px) { .vr-queued { flex-direction: column; text-align: center; } .vr-queued__progress { justify-content: center; text-align: left; } }

@keyframes vr-spin { to { transform: rotate(360deg); } }
@keyframes vr-shimmer { to { background-position: -200% 0; } }

@media (max-width: 820px) {
	.vr-overview { grid-template-columns: 1fr; }
	.vr-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.vr-score { flex-direction: column; text-align: center; }
	.vr-counts { justify-content: center; }
	.vr-ring { --size: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	.vr-spinner, .vr-skeleton { animation: none; }
	.vr-bar span { transition: none; }
}
@media print {
	body * { visibility: hidden; }
	.vr-report, .vr-report * { visibility: visible; }
	.vr-report { position: absolute; inset: 0 auto auto 0; width: 100%; padding: 0; }
	.vr-head__tools, .vr-cta .btn { display: none; }
	.vr-group { break-inside: avoid; }
	.vr-card, .vr-fix { box-shadow: none; break-inside: avoid; }
	.vr-ring, .vr-bar span, .vr-icon, .vr-chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Built-in contact form */
.vr-contact { max-width: 46rem; margin-top: 1.4rem; }
.vr-contact .vr-field { margin-bottom: .2rem; }
.vr-contact textarea { display: block; width: 100%; padding: .65rem .8rem; border-radius: .45rem; border: 1px solid #8da299; color: var(--ink, #122a25); background: #fff; margin-bottom: .75rem; font: inherit; line-height: 1.5; resize: vertical; min-height: 6.5rem; }
.vr-contact textarea:focus-visible { outline: 3px solid #43836e; outline-offset: 4px; }
.vr-contact input::placeholder, .vr-contact textarea::placeholder { color: #7c9188; }
.vr-contact [aria-invalid="true"] { border-color: #c8372d; box-shadow: 0 0 0 1px #c8372d; }
.vr-contact .vr-error { color: #a32b22; font-size: .86rem; font-weight: 650; margin: -.45rem 0 .75rem; }
.vr-contact .cf-turnstile { margin: .4rem 0 .2rem; }
.vr-contact__status { margin: .8rem 0 0; font-weight: 650; color: #a32b22; }
.vr-contact__status:empty { display: none; }
.vr-contact__done { padding: .5rem 0; }
.vr-contact__done:focus { outline: none; }
.vr-contact__done h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .3rem 0 .5rem; }
@media (min-width: 720px) {
	.vr-contact form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
	.vr-contact form > :is(.vr-field:has(textarea), .cf-turnstile, button, p, .audit-trap) { grid-column: 1 / -1; }
	.vr-contact .btn { justify-self: start; width: auto; min-width: 14rem; }
}
