/**
 * GEO content scorer — module styles.
 * Shared components (inputs, buttons, mode toggle, notices, CTA banner,
 * attribution) come from the shared stylesheet; the citability dial,
 * weighted factor bars, quote box and fix cards live here. All
 * selectors are svt-geo- prefixed so the module never interferes with
 * other tools.
 */

.svt-wrap[data-tool="geo-scorer"] {
	max-width: 1040px;
}

/* ---------- Form ---------- */

.svt-wrap[data-tool="geo-scorer"] .svt-geo-form {
	display: block;
}

.svt-geo-modes {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 16px;
}

/* The shared .svt-field display rules would override the [hidden]
   attribute — make hidden panels win regardless. */
.svt-geo-form [data-geo-panel][hidden] {
	display: none !important;
}

.svt-geo-field-url {
	width: 100%;
}

.svt-geo-field-url .svt-input {
	width: 100%;
}

.svt-geo-textarea {
	width: 100%;
	min-height: 180px;
	resize: vertical;
	line-height: 1.55;
}

.svt-geo-bottomrow {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 14px;
	width: 100%;
	margin-top: 14px;
}

.svt-geo-field-target {
	flex: 1 1 auto;
	min-width: 0;
}

.svt-geo-field-submit {
	flex: 0 0 auto;
}

.svt-geo-field-submit .svt-button {
	/* Match the 49px rendered height of the input beside it. */
	height: 49px;
	padding-top: 0;
	padding-bottom: 0;
	white-space: nowrap;
}

/* ---------- Hero: dial + weighted bars ---------- */

.svt-geo-hero {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 26px;
	align-items: center;
	margin: 24px 0;
	padding: 22px 26px;
	background: var(--svt-tile);
	border: 2px solid var(--svt-border);
	border-radius: var(--svt-radius-sm);
}

.svt-geo-dial {
	position: relative;
	width: 220px;
	margin: 0 auto;
}

.svt-geo-dial svg {
	display: block;
	width: 100%;
	height: auto;
}

.svt-geo-track {
	fill: none;
	stroke: #e8eaf2;
	stroke-width: 18;
}

.svt-geo-dialvalue {
	position: absolute;
	top: 44%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	text-align: center;
	font-size: 40px;
	font-weight: 800;
	color: var(--svt-text);
	font-variant-numeric: tabular-nums;
}

.svt-geo-diallabel {
	position: absolute;
	top: 64%;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--svt-slate);
	line-height: 1.35;
}

.svt-geo-bars {
	display: flex;
	flex-direction: column;
	gap: 13px;
	min-width: 0;
}

.svt-geo-barhead {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	font-weight: 700;
	color: var(--svt-text);
	margin-bottom: 5px;
}

.svt-geo-barhead em {
	font-style: normal;
	font-weight: 600;
	font-size: 11.5px;
	color: var(--svt-muted);
}

.svt-geo-barhead strong {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.svt-geo-bartrack {
	height: 9px;
	border-radius: 999px;
	background: #e8eaf2;
	overflow: hidden;
}

.svt-geo-barfill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.svt-geo-completeness {
	font-size: 12.5px;
	color: var(--svt-muted);
	margin-top: 2px;
}

.svt-geo-completeness strong {
	color: var(--svt-text);
}

/* ---------- Quote box ---------- */

.svt-geo-boxtitle {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--svt-slate);
	margin-bottom: 10px;
}

.svt-geo-quotebox {
	border: 2px solid #b7e4c7;
	background: #f2fbf5;
	border-radius: var(--svt-radius-sm);
	padding: 18px 22px;
	margin: 0 0 18px;
}

.svt-geo-quote {
	margin: 0 0 10px;
	padding: 12px 16px;
	background: #e2f7e9;
	border-left: 4px solid #22c55e;
	border-radius: 8px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #14532d;
	font-weight: 500;
}

.svt-geo-quote:last-child {
	margin-bottom: 0;
}

.svt-geo-noquote {
	margin: 0;
	font-size: 13.5px;
	color: var(--svt-muted);
}

/* ---------- Fix cards ---------- */

.svt-geo-fixes {
	margin: 0 0 18px;
}

.svt-geo-fixcard {
	border: 2px solid var(--svt-border);
	border-radius: var(--svt-radius-sm);
	padding: 14px 18px;
	margin: 0 0 10px;
	background: var(--svt-bg);
}

.svt-geo-fixcard.is-high {
	border-color: #f5c2c2;
}

.svt-geo-fixcard.is-medium {
	border-color: #fce2b3;
}

.svt-geo-impact {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #eceef5;
	color: var(--svt-muted);
}

.svt-geo-fixcard.is-high .svt-geo-impact {
	background: #fde8e8;
	color: #a12626;
}

.svt-geo-fixcard.is-medium .svt-geo-impact {
	background: #fff4dc;
	color: #8a5a00;
}

.svt-geo-fixtext {
	margin: 9px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--svt-text);
}

.svt-geo-rewrite {
	margin: 8px 0 0;
	padding: 10px 14px;
	background: var(--svt-tile);
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--svt-text);
}

/* ---------- Re-score ---------- */

.svt-geo-rescore {
	text-align: center;
	margin: 0 0 6px;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
	.svt-geo-hero {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.svt-geo-bottomrow {
		flex-wrap: wrap;
	}

	.svt-geo-field-target {
		flex: 1 1 100%;
	}

	.svt-geo-field-submit {
		flex: 1 1 100%;
	}

	.svt-geo-field-submit .svt-button {
		width: 100%;
	}
}
