/* ForeFront Page Check. Override these variables in the theme to match brand. */
.ffw-pc {
	--ffw-ink: #212121;
	--ffw-muted: #5b5b5b;
	--ffw-line: #D0D0D0;
	--ffw-bg: #ffffff;
	--ffw-soft: #F8F7F6;
	--ffw-accent: #506055;
	--ffw-pass: #506055;
	--ffw-warn: #B05730;
	--ffw-fail: #A33A2B;
	--ffw-radius: 10px;
	color: var(--ffw-ink);
	max-width: 820px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
.ffw-pc *, .ffw-pc *::before, .ffw-pc *::after { box-sizing: border-box; }

.ffw-pc__form, .ffw-pc__gate {
	background: var(--ffw-bg);
	border: 1px solid var(--ffw-line);
	border-radius: var(--ffw-radius);
	padding: 24px;
}
.ffw-pc__row { margin-bottom: 14px; }
.ffw-pc__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .ffw-pc__row--split { grid-template-columns: 1fr; } }
.ffw-pc label { display: block; font-weight: 600; font-size: 14px; }
.ffw-pc__opt { font-weight: 400; color: var(--ffw-muted); }
.ffw-pc input[type="url"], .ffw-pc input[type="text"], .ffw-pc input[type="email"], .ffw-pc input[type="tel"] {
	display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
	border: 1px solid var(--ffw-line); border-radius: 8px; font-size: 16px; background: #fff; color: var(--ffw-ink);
}
.ffw-pc input:focus { outline: 2px solid var(--ffw-accent); outline-offset: 1px; border-color: var(--ffw-accent); }
.ffw-pc__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.ffw-pc__btn { cursor: pointer; margin-bottom: 0; }
.ffw-pc__btn:not(.forefrontweb-button) {
	display: inline-block; background: var(--ffw-accent); color: #fff !important; border: 2px solid var(--ffw-accent);
	padding: 9px 25px; font-size: 18px; font-weight: 500; text-decoration: none;
}
.ffw-pc__btn:disabled { opacity: .6; cursor: wait; }
.ffw-pc__err { color: var(--ffw-fail); margin: 12px 0 0; font-size: 14px; }

.ffw-pc__loading { display: flex; align-items: center; gap: 10px; padding: 18px 4px; color: var(--ffw-muted); }
.ffw-pc__spinner {
	width: 18px; height: 18px; border: 3px solid var(--ffw-line); border-top-color: var(--ffw-accent);
	border-radius: 50%; animation: ffw-spin .8s linear infinite;
}
@keyframes ffw-spin { to { transform: rotate(360deg); } }

.ffw-pc__results { margin-top: 24px; }
.ffw-pc__score {
	display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: var(--ffw-radius);
	background: var(--ffw-soft); margin-bottom: 20px;
}
.ffw-pc__ring {
	--p: 0; --c: var(--ffw-fail);
	width: 96px; height: 96px; border-radius: 50%; flex: 0 0 96px;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--ffw-line) 0);
	display: grid; place-items: center; position: relative;
}
.ffw-pc__ring::before { content: ""; position: absolute; inset: 10px; background: var(--ffw-soft); border-radius: 50%; }
.ffw-pc__ring--good { --c: var(--ffw-pass); }
.ffw-pc__ring--mid { --c: var(--ffw-warn); }
.ffw-pc__ring-num { position: relative; font-size: 30px; font-weight: 700; }
.ffw-pc__score-meta { min-width: 0; }
.ffw-pc__grade { font-size: 22px; font-weight: 700; }
.ffw-pc__target { font-weight: 600; text-transform: capitalize; }
.ffw-pc__url { color: var(--ffw-muted); font-size: 13px; overflow-wrap: anywhere; }
.ffw-pc__counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ffw-pc__pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid currentColor; }
.ffw-pc__pill--pass { color: var(--ffw-pass); }
.ffw-pc__pill--warn { color: var(--ffw-warn); }
.ffw-pc__pill--fail { color: var(--ffw-fail); }
@media (max-width: 520px) { .ffw-pc__score { flex-direction: column; text-align: center; } .ffw-pc__counts { justify-content: center; } }

.ffw-pc__group { margin-bottom: 22px; }
.ffw-pc__group-title { font-size: 18px; margin: 0 0 10px; }
.ffw-pc__item {
	border: 1px solid var(--ffw-line); border-left-width: 4px; border-radius: 8px;
	padding: 12px 14px; margin-bottom: 8px; background: var(--ffw-bg);
}
.ffw-pc__item--pass { border-left-color: var(--ffw-pass); }
.ffw-pc__item--warn { border-left-color: var(--ffw-warn); }
.ffw-pc__item--fail { border-left-color: var(--ffw-fail); }
.ffw-pc__item--skip, .ffw-pc__item--pending { border-left-color: var(--ffw-line); }
.ffw-pc__item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ffw-pc__badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--ffw-muted); }
.ffw-pc__badge--pass { background: var(--ffw-pass); }
.ffw-pc__badge--warn { background: var(--ffw-warn); }
.ffw-pc__badge--fail { background: var(--ffw-fail); }
.ffw-pc__finding, .ffw-pc__why, .ffw-pc__fix, .ffw-pc__locked { margin: 6px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.ffw-pc__why { color: var(--ffw-muted); }
.ffw-pc__locked { color: var(--ffw-muted); font-size: 13px; }

.ffw-pc__gate { margin-top: 8px; border: 2px solid var(--ffw-accent); }
.ffw-pc__gate h3 { margin: 0 0 4px; }
.ffw-pc__gate > p { margin: 0 0 16px; color: var(--ffw-muted); }
.ffw-pc__cta { text-align: center; padding: 22px; background: var(--ffw-soft); border-radius: var(--ffw-radius); }
.ffw-pc__cta p { margin: 0 0 12px; font-weight: 600; font-size: 18px; }
.ffw-pc [hidden] { display: none !important; }

/* Theme alignment: headings use the site's display serif */
.ffw-pc__grade, .ffw-pc__group-title, .ffw-pc__gate h3, .ffw-pc__ring-num { font-family: 'DM Serif Display', serif; font-weight: 400; }
.ffw-pc__group-title { font-size: 24px; color: var(--ffw-ink); }
.ffw-pc__grade { font-size: 28px; }
.ffw-pc__target { color: var(--ffw-accent); }
.ffw-pc__form, .ffw-pc__gate, .ffw-pc__item, .ffw-pc input, .ffw-pc__score, .ffw-pc__cta { border-radius: 0; }
.ffw-pc__gate { border-color: #C68061; }
