/**
 * SERP checker — module styles.
 * Shared components (inputs, buttons, mode toggle, table, notices, CTA
 * banner, attribution, tooltips) come from the shared stylesheet; the
 * feature badges, analysis cards, result rows, DR pills and PAA
 * accordion live here. All selectors are svt-srp- prefixed so the
 * module never interferes with other tools.
 */

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

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

.svt-wrap[data-tool="serp-checker"] .svt-srp-form {
	display: block;
}

.svt-srp-inputrow {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 14px;
	width: 100%;
}

.svt-srp-field-keyword {
	flex: 1 1 auto;
	min-width: 0;
}

.svt-srp-field-market {
	flex: 0 0 180px;
}

.svt-srp-field-market .svt-select {
	width: 100%;
	cursor: pointer;
}

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

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

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

/* ---------- Feature strip ---------- */

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

.svt-srp-features {
	border: 2px solid var(--svt-border);
	border-radius: var(--svt-radius-sm);
	background: var(--svt-tile);
	padding: 16px 20px;
	margin: 22px 0 16px;
}

.svt-srp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.svt-srp-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	background: #e8f0fe;
	color: #1d4fd7;
}

.svt-srp-badge.is-aio {
	background: var(--svt-primary);
	color: #fff;
	box-shadow: 0 0 0 3px var(--svt-primary-soft);
}

.svt-srp-nofeatures {
	font-size: 13.5px;
	color: var(--svt-muted);
}

.svt-srp-aionote {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--svt-muted);
}

.svt-srp-aionote.is-present {
	color: var(--svt-primary);
	font-weight: 600;
}

/* ---------- Analysis cards (backlinks-checker card design) ---------- */

.svt-srp-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0 0 16px;
}

.svt-srp-card {
	background: var(--svt-tile);
	border: 2px solid var(--svt-border);
	border-radius: var(--svt-radius-sm);
	padding: 16px 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 96px;
}

.svt-srp-cardnum {
	font-size: 26px;
	font-weight: 800;
	color: var(--svt-text);
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.svt-srp-cardlabel {
	font-size: 12px;
	color: var(--svt-muted);
}

/* ---------- Top 10 table ---------- */

.svt-srp-th {
	display: inline-block;
	padding: 12px 14px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--svt-slate);
}

.svt-srp-cell-pos {
	width: 52px;
}

.svt-srp-pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--svt-tile);
	border: 2px solid var(--svt-border);
	font-weight: 800;
	font-size: 13px;
	color: var(--svt-text);
	font-variant-numeric: tabular-nums;
}

/* The shared .svt-tbl keeps cells on one line — result titles must
   wrap so the table always fits without horizontal scrolling. */
.svt-srp-tbl td.svt-srp-cell-result {
	min-width: 0;
	white-space: normal;
}

.svt-srp-title {
	font-weight: 700;
	font-size: 14.5px;
	color: var(--svt-primary);
	text-decoration: none;
	display: inline;
	max-width: 100%;
}

.svt-srp-title svg {
	display: inline-block;
	vertical-align: -1px;
	margin-left: 4px;
}

.svt-srp-title:hover {
	text-decoration: underline;
}

.svt-srp-title svg {
	flex: 0 0 auto;
}

.svt-srp-url {
	display: block;
	font-size: 12.5px;
	color: #14683a;
	margin-top: 2px;
	overflow-wrap: anywhere;
}

.svt-srp-lengths {
	display: block;
	font-size: 12px;
	color: var(--svt-muted);
	margin-top: 3px;
}

.svt-srp-aicited {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--svt-primary);
	color: #fff;
	cursor: default;
}

/* Two authority columns with full headings and the suite's shared
   meters (bar + number, same as the bulk DA checker). Fixed widths keep
   the result column short enough that the table never scrolls at
   desktop width. */
.svt-srp-th-auth,
.svt-srp-cell-auth {
	width: 150px;
	white-space: nowrap;
}


.svt-srp-drpill.is-low {
	background: #e2f7e9;
	color: #14683a;
}

.svt-srp-drpill.is-mid {
	background: #fff4dc;
	color: #8a5a00;
}

.svt-srp-drpill.is-high {
	background: #fde8e8;
	color: #a12626;
}

/* ---------- People Also Ask ---------- */

.svt-srp-paa {
	border: 2px solid var(--svt-border);
	border-radius: var(--svt-radius-sm);
	margin: 16px 0 0;
	background: var(--svt-bg);
	overflow: hidden;
}

.svt-srp-paa summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	cursor: pointer;
	list-style: none;
}

.svt-srp-paa summary::-webkit-details-marker {
	display: none;
}

.svt-srp-paa summary svg {
	margin-left: auto;
	flex: 0 0 auto;
	color: var(--svt-slate);
	transition: transform 0.18s ease;
}

.svt-srp-paa[open] summary svg {
	transform: rotate(180deg);
}

.svt-srp-paalist {
	margin: 0;
	padding: 0 20px 16px 40px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--svt-text);
}

/* ---------- Cross-links ---------- */

.svt-srp-crossrow {
	display: flex;
	justify-content: center;
	gap: 26px;
	flex-wrap: wrap;
	margin: 18px 0 6px;
}

.svt-srp-crosslink {
	color: var(--svt-primary);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.svt-srp-crosslink:hover {
	text-decoration: underline;
}

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

@media (max-width: 820px) {
	.svt-srp-inputrow {
		flex-wrap: wrap;
	}

	.svt-srp-field-keyword {
		flex: 1 1 100%;
	}

	.svt-srp-field-market {
		flex: 1 1 auto;
	}
}

@media (max-width: 700px) {
	.svt-srp-field-submit {
		flex: 1 1 100%;
	}

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

	.svt-srp-cards {
		grid-template-columns: 1fr;
	}
}
