/* SMS gap check tool (brief H12). Prototype styles mapped to the site theme.
 * Page sections around the tool use the breach checker and SMS template styles. */
.sms-gap-check-page {
	--gc-bg: #f3f7f4; --gc-surface: #fff; --gc-border: #dfe8e2; --gc-text: #083423; --gc-muted: #5f6c64;
	--gc-brand: #083423; --gc-accent: #ff6b2c;
	--gc-good: #0f6b3f; --gc-good-bg: #e3f3e9;
	--gc-mid: #8a5a00; --gc-mid-bg: #fdf0cf;
	--gc-gap: #b3261e; --gc-gap-bg: #fdeceb;
}
.sms-gap-check-page .st-tool { padding: 0 0 72px; background: linear-gradient(#083423 0 120px, var(--gc-bg) 120px); }
.sms-gap-check-page [hidden] { display: none !important; }
.gc { max-width: 900px; margin: 0 auto; color: var(--gc-text); font: 400 16px/1.55 var(--font-body); }
.gc-card { padding: 32px; border: 1px solid var(--gc-border); border-radius: 22px; background: var(--gc-surface); box-shadow: 0 18px 40px rgba(8, 52, 35, .12); }
.gc-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: #cfe7da; font: 600 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; scroll-margin-top: 110px; }
.gc-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.gc-bar span { display: block; width: 0; height: 100%; background: var(--gc-accent); transition: width .2s; }
.gc-eyebrow { margin: 0 0 8px; color: var(--gc-accent); font: 600 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.gc h2.gc-step-title { margin: 0 0 6px; color: var(--gc-text); font: 700 26px/1.2 var(--font-display); letter-spacing: -.01em; }
.gc-intro { margin: 0 0 12px; color: var(--gc-muted); }
.gc-q { padding: 18px 0; border-top: 1px solid var(--gc-border); }
.gc-q:first-of-type { border-top: 0; }
.gc-q fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.gc-q legend { margin-bottom: 12px; padding: 0; color: var(--gc-text); font: 600 16.5px/1.45 var(--font-body); }
.gc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 140px)); gap: 10px; }
.gc-opts label { position: relative; margin: 0; }
.gc-opts input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gc-opts span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--gc-border); border-radius: 12px; background: #fff; color: var(--gc-text); font: 600 15px/1 var(--font-mono); cursor: pointer; transition: border-color .15s, background .15s; }
.gc-opts span:hover { border-color: var(--gc-brand); }
.gc-opts input:checked + span { border-color: var(--gc-brand); background: var(--gc-brand); color: #fff; }
.gc-opts input:focus-visible + span { outline: 3px solid var(--gc-accent); outline-offset: 2px; }
.gc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.gc-btn { min-height: 48px; padding: 12px 24px; border: 1.5px solid var(--gc-accent); border-radius: 99px; background: var(--gc-accent); color: #fff; font: 600 15px/1 var(--font-mono); cursor: pointer; transition: transform .15s; }
.gc-btn:hover:not([disabled]) { transform: translateY(-1px); }
.gc-btn[disabled] { opacity: .4; cursor: not-allowed; }
.gc-btn.secondary { border-color: var(--gc-brand); background: #fff; color: var(--gc-brand); }
.gc-msg { margin: 14px 0 0; color: var(--gc-gap); font-weight: 600; }
.gc-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 22px; }
.gc-score { color: var(--gc-text); font: 700 64px/1 var(--font-display); letter-spacing: -.03em; }
.gc-band { display: inline-block; padding: 6px 14px; border-radius: 99px; font: 700 14px/1.2 var(--font-body); }
.b-good { background: var(--gc-good-bg); color: var(--gc-good); }
.b-mid { background: var(--gc-mid-bg); color: var(--gc-mid); }
.b-gap { background: var(--gc-gap-bg); color: var(--gc-gap); }
.gc-el { margin-top: 14px; padding: 20px; border: 1px solid var(--gc-border); border-radius: 16px; }
.gc-el-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.gc-el h3 { margin: 0; color: var(--gc-text); font: 700 19px/1.3 var(--font-display); }
.gc-meter { height: 8px; margin: 12px 0; overflow: hidden; border-radius: 99px; background: var(--gc-border); }
.gc-meter span { display: block; height: 100%; }
.gc-el p { margin: 8px 0; color: #34463c; }
.gc-el ul { margin: 6px 0 0; padding-left: 20px; color: #34463c; }
.gc-el li { margin: 4px 0; }
.gc a { color: var(--gc-good); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gc-small { margin-top: 20px; color: var(--gc-muted); font-size: 13.5px; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#gc-results { scroll-margin-top: 110px; }

/* Hero sits on the tool: the dark band continues behind the top of the tool card. */
.sms-gap-check-page .st-hero-single { padding-bottom: 32px; }
.sms-gap-check-page .st-hero-single .st-intro { max-width: 760px; margin-bottom: 0; }

/* "What your score means" bands table. */
.sms-gap-check-page .st-band { display: inline-block; padding: 4px 12px; border-radius: 99px; font: 700 14px/1.3 var(--font-body); }

@media (max-width: 640px) {
	.sms-gap-check-page .st-tool { background: linear-gradient(#083423 0 80px, var(--gc-bg) 80px); }
	.gc-card { padding: 20px 16px; border-radius: 18px; }
	.gc-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.gc-opts span { padding: 8px 4px; font-size: 14px; }
	.gc-score { font-size: 52px; }
	.gc-btn { padding: 12px 18px; }
	.gc-actions .gc-btn { flex: 1 1 100%; }
	.sms-gap-check-page .st-table-bands td:nth-of-type(1)::before { content: "Score"; }
	.sms-gap-check-page .st-table-bands td:nth-of-type(2)::before { content: "What it means"; }
}

/* Print or save results: only the results card (site header, footer and other sections hidden). */
@media print {
	body.sms-gap-check-page > *:not(#page):not(main):not(.site):not(#primary) { display: none !important; }
	body.sms-gap-check-page header:not(.st-hero), body.sms-gap-check-page footer, body.sms-gap-check-page nav,
	body.sms-gap-check-page .st-hero, body.sms-gap-check-page main > section:not(.st-tool),
	body.sms-gap-check-page .gc-progress, body.sms-gap-check-page #gc-form, body.sms-gap-check-page .gc-actions { display: none !important; }
	body.sms-gap-check-page .st-tool { padding: 0; background: none; }
	body.sms-gap-check-page .gc-card { padding: 0; border: 0; box-shadow: none; }
	.gc-meter span, .gc-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.gc-el { break-inside: avoid; }
}
