/* =========================================================================
   SoS Name Checker — Homepage Frontend CSS
   All rules scoped to .sos-hp-body or #sos-hp-main to prevent theme bleed.
   CSS custom properties scoped to .sos-hp-body (NOT :root).
   ========================================================================= */

body.sos-hp-body {
	--hp-blue:      #2663EB;
	--hp-blue-dark: #1a4fc4;
	--hp-blue-light:#dce8fd;
	--hp-black:     #0a0a0a;
	--hp-white:     #ffffff;
	--hp-g50:       #f9f9f9;
	--hp-g100:      #f2f2f2;
	--hp-g200:      #e4e4e4;
	--hp-g400:      #aaaaaa;
	--hp-g600:      #666666;
	--hp-g800:      #333333;
	--hp-red:       #c0392b;
	--hp-font:      'Source Sans Pro', sans-serif;
	--hp-mono:      'Roboto Mono', monospace;
	font-family: var(--hp-font);
	background: #F8F9F9;
	color: var(--hp-g800);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

body.sos-hp-body #sos-hp-main *,
body.sos-hp-body #sos-hp-main *::before,
body.sos-hp-body #sos-hp-main *::after {
	box-sizing: border-box;
}

/* ── Full-width override ────────────────────────────────────────────────────── */

body.sos-hp-body #sos-hp-main {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hide GP page title and the wrapper that introduces a gap above the content */
body.sos-hp-body .inside-article,
body.sos-hp-body .entry-title,
body.sos-hp-body h1.entry-title,
body.sos-hp-body .page-title,
body.sos-hp-body h1.page-title {
	display: none !important;
}

/* ── Shared layout ─────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 48px;
}

body.sos-hp-body .sos-hp-eyebrow {
	font-family: var(--hp-mono);
	font-size: 10.5px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hp-blue);
	margin-bottom: 10px;
}

body.sos-hp-body .sos-hp-sec-title {
	font-family: var(--hp-font);
	font-size: clamp(22px, 2.8vw, 34px);
	font-weight: 700;
	color: var(--hp-black);
	line-height: 1.15;
	letter-spacing: -0.4px;
	margin-bottom: 10px;
}

body.sos-hp-body .sos-hp-sec-desc {
	font-family: var(--hp-font);
	font-size: 16px;
	color: var(--hp-g600);
	max-width: 660px;
	line-height: 1.7;
	margin-bottom: 36px;
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-hero {
	background: var(--hp-white);
	padding: 72px 48px 60px;
	text-align: center;
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-h1 {
	font-family: var(--hp-font);
	font-size: clamp(30px, 4.5vw, 54px);
	font-weight: 700;
	color: var(--hp-black);
	line-height: 1.1;
	letter-spacing: -1px;
	margin-bottom: 16px;
	text-align: center;
}

body.sos-hp-body .sos-hp-hero-sub {
	font-family: var(--hp-font);
	font-size: 18px;
	font-weight: 300;
	color: var(--hp-g600);
	max-width: 620px;
	margin: 0 auto 24px;
	line-height: 1.7;
	text-align: center;
}

/* ── Hero high-specificity overrides (defeat theme styles) ─────────────────── */

body.sos-hp-body #sos-hp-main .sos-hp-hero {
	text-align: center !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-h1 {
	text-align: center !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-hero-sub {
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 620px !important;
	display: block !important;
	font-weight: 300 !important;
	font-size: 18px !important;
	color: #666666 !important;
	line-height: 1.7 !important;
}

/* ── Name-check widget overrides ───────────────────────────────────────────── */

body.sos-hp-body .sos-hp-name-check {
	max-width: 860px;
	margin: 0 auto 24px;
	text-align: left;
}

/* Strip card frame from the embedded .sos-nc-card */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

body.sos-hp-body .sos-hp-widget-inner {
	background: var(--hp-white);
	border: 1.5px solid var(--hp-g200);
	border-radius: 8px;
	padding: 24px 28px 22px;
	box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

body.sos-hp-body .sos-hp-widget-title {
	font-family: var(--hp-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 4px;
}

body.sos-hp-body .sos-hp-widget-sub {
	font-family: var(--hp-font);
	font-size: 13px;
	color: var(--hp-g400);
	margin-bottom: 14px;
}

body.sos-hp-body .sos-hp-widget-row {
	display: flex;
	border: 1.5px solid #b8d0f8;
	border-radius: 5px;
	overflow: hidden;
	max-width: 860px;
	margin: 0 auto;
}

body.sos-hp-body .sos-hp-widget-input {
	flex: 1;
	border: none !important;
	padding: 12px 16px;
	font-family: var(--hp-font);
	font-size: 15px;
	color: var(--hp-g800);
	outline: none;
	background: var(--hp-white);
}

body.sos-hp-body .sos-hp-widget-input::placeholder {
	color: var(--hp-g400);
}

body.sos-hp-body .sos-hp-widget-btn {
	background: var(--hp-blue) !important;
	border: none !important;
	padding: 0 20px;
	color: var(--hp-white) !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s;
}

body.sos-hp-body .sos-hp-widget-btn:hover {
	background: var(--hp-blue-dark) !important;
}

/* Result containers */
body.sos-hp-body .sos-hp-widget-results {
	max-width: 860px;
	margin: 16px auto 0;
	text-align: left;
}

body.sos-hp-body .sos-hp-widget-instance .sos-nc-result-available,
body.sos-hp-body .sos-hp-widget-instance .sos-nc-result-unavailable,
body.sos-hp-body .sos-hp-widget-instance .sos-nc-result-error {
	border-radius: 6px;
	padding: 16px 20px;
	font-family: var(--hp-font);
}

/* ── Hero stats bar ────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-hero-stats {
	display: flex;
	justify-content: center;
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	overflow: hidden;
	max-width: 1080px;
	margin: 0 auto;
}

body.sos-hp-body .sos-hp-hero-stat {
	flex: 1;
	padding: 22px 14px 16px;
	border-right: 1px solid var(--hp-g200);
	background: var(--hp-g50);
}

body.sos-hp-body .sos-hp-hero-stat:last-child {
	border-right: none;
}

body.sos-hp-body .sos-hp-hero-stat-num {
	font-family: var(--hp-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--hp-blue);
	line-height: 1;
	margin-bottom: 5px;
}

body.sos-hp-body .sos-hp-hero-stat-label {
	font-family: var(--hp-font);
	font-size: 10px;
	font-weight: 600;
	color: var(--hp-g600);
	letter-spacing: 0.3px;
	text-transform: uppercase;
	margin-bottom: 4px;
}

body.sos-hp-body .sos-hp-hero-stat-src {
	font-family: var(--hp-mono);
	font-size: 9px;
	color: var(--hp-g400);
	letter-spacing: 0.2px;
}

/* ── DIRECTORY TABLE ───────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-table-sec {
	padding: 36px 0 80px;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-tbl-wrap {
	border: 1.5px solid #e4e4e4;
	border-radius: 6px;
	overflow-x: auto !important;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 2px 16px rgba(0,0,0,0.05);
	width: 100%;
}

body.sos-hp-body .sos-hp-tbl-wrap table {
	width: 100%;
	min-width: 900px;
	border-collapse: collapse;
	font-size: 13.5px;
}

body.sos-hp-body .sos-hp-tbl-wrap thead tr {
	background: var(--hp-black);
}

body.sos-hp-body .sos-hp-tbl-wrap thead th {
	padding: 13px 14px;
	text-align: left;
	font-family: var(--hp-mono);
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #aaa;
	font-weight: 500;
	white-space: nowrap;
	user-select: none;
}

body.sos-hp-body .sos-hp-tbl-wrap thead th.sortable {
	cursor: pointer;
}

body.sos-hp-body .sos-hp-tbl-wrap thead th.sortable:hover {
	color: var(--hp-white);
}

body.sos-hp-body .sos-hp-tbl-wrap thead th.asc::after {
	content: ' ▲';
	font-size: 8px;
	color: var(--hp-blue);
}

body.sos-hp-body .sos-hp-tbl-wrap thead th.desc::after {
	content: ' ▼';
	font-size: 8px;
	color: var(--hp-blue);
}

body.sos-hp-body .sos-hp-tbl-wrap tbody tr {
	border-bottom: 1px solid var(--hp-g200);
	transition: background 0.1s;
}

body.sos-hp-body .sos-hp-tbl-wrap tbody tr:last-child {
	border-bottom: none;
}

body.sos-hp-body .sos-hp-tbl-wrap tbody tr:nth-child(even) {
	background: var(--hp-g50);
}

body.sos-hp-body .sos-hp-tbl-wrap tbody tr:hover {
	background: var(--hp-blue-light) !important;
}

body.sos-hp-body .sos-hp-tbl-wrap td {
	padding: 12px 14px;
	vertical-align: middle;
}

body.sos-hp-body .sos-hp-td-name {
	font-family: var(--hp-font);
	font-weight: 700;
	font-size: 14px;
	color: var(--hp-black);
}

body.sos-hp-body .sos-hp-td-abbr {
	font-family: var(--hp-mono);
	font-size: 10px;
	color: var(--hp-g400);
	display: block;
	letter-spacing: 1px;
	margin-top: 1px;
}

body.sos-hp-body .sos-hp-td-off {
	font-family: var(--hp-font);
	font-size: 12.5px;
	color: var(--hp-g600);
	max-width: 170px;
}

body.sos-hp-body .sos-hp-td-who {
	font-family: var(--hp-font);
	font-weight: 600;
	font-size: 13.5px;
	white-space: nowrap;
	color: var(--hp-g800);
}

/* Party badges */
body.sos-hp-body .sos-hp-badge {
	display: inline-block;
	font-family: var(--hp-mono);
	font-size: 9px;
	letter-spacing: 0.5px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 6px;
	font-weight: 500;
	text-transform: uppercase;
}

body.sos-hp-body .sos-hp-badge-D   { background: #dbeafe; color: #1a4fc4; }
body.sos-hp-body .sos-hp-badge-R   { background: #fee2e2; color: #c0392b; }
body.sos-hp-body .sos-hp-badge-ALT { background: var(--hp-g100); color: var(--hp-g600); }

/* Links */
body.sos-hp-body .sos-hp-td-lnk a {
	font-family: var(--hp-mono);
	font-size: 11px;
	color: var(--hp-blue);
	text-decoration: none;
	word-break: break-all;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}

body.sos-hp-body .sos-hp-td-lnk a:hover {
	border-color: var(--hp-blue);
}

/* Entity bar */
body.sos-hp-body .sos-hp-td-ent {
	font-family: var(--hp-mono);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--hp-g800);
}

body.sos-hp-body .sos-hp-ebar {
	height: 4px;
	background: var(--hp-g200);
	border-radius: 2px;
	margin-top: 4px;
	overflow: hidden;
}

body.sos-hp-body .sos-hp-efill {
	height: 100%;
	background: var(--hp-blue);
	border-radius: 2px;
}

body.sos-hp-body .sos-hp-ent-pct {
	font-family: var(--hp-mono);
	font-size: 9.5px;
	color: var(--hp-g400);
	margin-top: 3px;
	letter-spacing: 0.1px;
}

body.sos-hp-body .sos-hp-td-src {
	font-family: var(--hp-mono);
	font-size: 10px;
	color: var(--hp-g400);
}

/* Table footer note */
body.sos-hp-body .sos-hp-tbl-foot {
	padding: 14px 18px;
	background: var(--hp-g50);
	border-top: 1px solid var(--hp-g200);
	font-family: var(--hp-font);
	font-size: 12px;
	color: var(--hp-g600);
	line-height: 1.6;
}

/* ── FACTS ─────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-facts-sec {
	padding: 72px 0 64px;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1px;
	background: var(--hp-g200);
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	overflow: hidden;
}

body.sos-hp-body .sos-hp-fact-card {
	background: var(--hp-white);
	padding: 28px 26px 22px;
	transition: background 0.15s;
}

body.sos-hp-body .sos-hp-fact-card:hover {
	background: var(--hp-g50);
}

body.sos-hp-body .sos-hp-fact-highlight {
	border-top: 3px solid var(--hp-blue);
}

body.sos-hp-body .sos-hp-fact-big {
	font-family: var(--hp-font);
	font-size: 36px;
	font-weight: 700;
	color: var(--hp-blue);
	line-height: 1;
	margin-bottom: 10px;
}

body.sos-hp-body .sos-hp-fact-card h3 {
	font-family: var(--hp-font);
	font-size: 16px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 8px;
	line-height: 1.3;
}

body.sos-hp-body .sos-hp-fact-card p {
	font-family: var(--hp-font);
	font-size: 14px;
	color: var(--hp-g600);
	line-height: 1.65;
}

body.sos-hp-body .sos-hp-fact-src {
	font-family: var(--hp-mono);
	font-size: 10px;
	color: var(--hp-g400);
	margin-top: 12px;
}

body.sos-hp-body .sos-hp-fact-src a {
	color: var(--hp-blue);
	text-decoration: none;
}

/* ── TRENDS ────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-trend-sec {
	padding: 72px 0 64px;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-trend-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

/* Bar chart */
body.sos-hp-body .sos-hp-bar-chart {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.sos-hp-body .sos-hp-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

body.sos-hp-body .sos-hp-bar-year {
	font-family: var(--hp-mono);
	font-size: 12px;
	color: var(--hp-g600);
	width: 36px;
	flex-shrink: 0;
	text-align: right;
}

body.sos-hp-body .sos-hp-bar-track {
	flex: 1;
	background: var(--hp-g100);
	border-radius: 3px;
	height: 30px;
	overflow: hidden;
}

body.sos-hp-body .sos-hp-bar-fill {
	height: 100%;
	border-radius: 3px;
	display: flex;
	align-items: center;
	padding-left: 10px;
}

body.sos-hp-body .sos-hp-bar-pre    { background: var(--hp-g200); }
body.sos-hp-body .sos-hp-bar-surge  { background: #93c5fd; }
body.sos-hp-body .sos-hp-bar-peak   { background: var(--hp-blue); }
body.sos-hp-body .sos-hp-bar-mid    { background: #3b82f6; }
body.sos-hp-body .sos-hp-bar-latest { background: var(--hp-blue-dark); }

body.sos-hp-body .sos-hp-bar-val {
	font-family: var(--hp-font);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

body.sos-hp-body .sos-hp-bar-val-lt { color: var(--hp-g600); }
body.sos-hp-body .sos-hp-bar-val-dk { color: var(--hp-white); }

body.sos-hp-body .sos-hp-bar-tag {
	font-family: var(--hp-mono);
	font-size: 9px;
	color: var(--hp-g400);
	width: 72px;
	flex-shrink: 0;
}

/* Trend box (right panel) */
body.sos-hp-body .sos-hp-trend-box {
	background: var(--hp-g50);
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	padding: 32px;
}

body.sos-hp-body .sos-hp-trend-box h3 {
	font-family: var(--hp-font);
	font-size: 20px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 20px;
	line-height: 1.3;
}

body.sos-hp-body .sos-hp-trend-stats {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 20px;
}

body.sos-hp-body .sos-hp-trend-num {
	font-family: var(--hp-font);
	font-size: 30px;
	font-weight: 700;
	color: var(--hp-blue);
	line-height: 1;
	margin-bottom: 4px;
}

body.sos-hp-body .sos-hp-trend-desc {
	font-family: var(--hp-font);
	font-size: 13.5px;
	color: var(--hp-g600);
	line-height: 1.55;
}

body.sos-hp-body .sos-hp-trend-body-text {
	font-family: var(--hp-font);
	font-size: 13.5px;
	color: var(--hp-g600);
	line-height: 1.65;
}

body.sos-hp-body .sos-hp-trend-footer {
	font-family: var(--hp-mono);
	font-size: 10px;
	color: var(--hp-g400);
	margin-top: 16px;
	border-top: 1px solid var(--hp-g200);
	padding-top: 14px;
}

body.sos-hp-body .sos-hp-trend-footer a {
	color: var(--hp-blue);
	text-decoration: none;
}

/* ── ROLES ─────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-roles-sec {
	padding: 72px 0 64px;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-roles-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--hp-g200);
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	overflow: hidden;
}

body.sos-hp-body .sos-hp-role-card {
	background: var(--hp-white);
	padding: 24px 22px;
	transition: background 0.15s;
}

body.sos-hp-body .sos-hp-role-card:hover {
	background: var(--hp-g50);
}

body.sos-hp-body .sos-hp-role-num {
	font-family: var(--hp-mono);
	font-size: 11px;
	color: var(--hp-blue);
	letter-spacing: 1px;
	margin-bottom: 10px;
}

body.sos-hp-body .sos-hp-role-card h4 {
	font-family: var(--hp-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 6px;
	line-height: 1.3;
}

body.sos-hp-body .sos-hp-role-card p {
	font-family: var(--hp-font);
	font-size: 13.5px;
	color: var(--hp-g600);
	line-height: 1.6;
}

/* ── HOW-TO ────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-howto-sec {
	padding: 72px 0 64px;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-howto-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

/* Steps */
body.sos-hp-body .sos-hp-steps {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
}

body.sos-hp-body .sos-hp-step {
	counter-increment: step;
	display: flex;
	gap: 16px;
	margin-bottom: 28px;
	align-items: flex-start;
}

body.sos-hp-body .sos-hp-step::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--hp-mono);
	font-size: 20px;
	font-weight: 500;
	color: var(--hp-blue);
	flex-shrink: 0;
	min-width: 34px;
	line-height: 1.1;
	padding-top: 2px;
}

body.sos-hp-body .sos-hp-step h4 {
	font-family: var(--hp-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 5px;
	margin-top: 0;
	line-height: 1.3;
}

body.sos-hp-body .sos-hp-step p {
	font-family: var(--hp-font);
	font-size: 14px;
	color: var(--hp-g600);
	line-height: 1.65;
	margin: 0;
}

/* Info box */
body.sos-hp-body .sos-hp-info-box {
	background: var(--hp-g50);
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	padding: 32px;
}

body.sos-hp-body .sos-hp-info-box h3 {
	font-family: var(--hp-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 12px;
}

body.sos-hp-body .sos-hp-info-box p {
	font-family: var(--hp-font);
	font-size: 14px;
	color: var(--hp-g600);
	margin-bottom: 16px;
	line-height: 1.65;
}

body.sos-hp-body .sos-hp-info-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.sos-hp-body .sos-hp-info-box li {
	font-family: var(--hp-font);
	font-size: 13.5px;
	color: var(--hp-g800);
	padding: 8px 0;
	border-bottom: 1px solid var(--hp-g200);
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.5;
}

body.sos-hp-body .sos-hp-info-box li:last-child {
	border-bottom: none;
}

body.sos-hp-body .sos-hp-info-box li::before {
	content: '✓';
	color: #16a34a;
	flex-shrink: 0;
	font-weight: 700;
}

/* Pro tip box */
body.sos-hp-body .sos-hp-pro-tip {
	margin-top: 16px;
	background: var(--hp-blue-light);
	border: 1.5px solid #b8d0f8;
	border-radius: 6px;
	padding: 20px 22px;
}

body.sos-hp-body .sos-hp-pro-tip h4 {
	font-family: var(--hp-font);
	font-size: 14px;
	font-weight: 700;
	color: var(--hp-blue-dark);
	margin-bottom: 6px;
}

body.sos-hp-body .sos-hp-pro-tip p {
	font-family: var(--hp-font);
	font-size: 13.5px;
	color: var(--hp-blue-dark);
	line-height: 1.65;
	opacity: 0.85;
}

/* ── CTA ───────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-cta-sec {
	padding: 72px 0 64px;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-g200);
}

body.sos-hp-body .sos-hp-cta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--hp-g200);
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	overflow: hidden;
}

body.sos-hp-body .sos-hp-cta-card {
	background: var(--hp-white);
	padding: 32px 28px;
	text-align: center;
	transition: background 0.15s;
}

body.sos-hp-body .sos-hp-cta-card:hover {
	background: var(--hp-g50);
}

body.sos-hp-body .sos-hp-cta-card h3 {
	font-family: var(--hp-font);
	font-size: 19px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 8px;
}

body.sos-hp-body .sos-hp-cta-card p {
	font-family: var(--hp-font);
	font-size: 14px;
	color: var(--hp-g600);
	line-height: 1.65;
	margin-bottom: 20px;
}

body.sos-hp-body #sos-hp-main .sos-hp-btn {
	display: inline-block !important;
	padding: 11px 24px !important;
	border-radius: 4px !important;
	font-family: var(--hp-font) !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: opacity 0.15s !important;
	cursor: pointer !important;
	line-height: 1 !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-btn:hover {
	opacity: 0.88 !important;
	text-decoration: none !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-btn-blue {
	background: #2663EB !important;
	color: #ffffff !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-btn-blue:hover {
	color: #ffffff !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-btn-dark {
	background: #0a0a0a !important;
	color: #ffffff !important;
}

body.sos-hp-body #sos-hp-main .sos-hp-btn-dark:hover {
	color: #ffffff !important;
}

/* ── RESOURCES ─────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-res-sec {
	padding: 72px 0 80px;
	background: var(--hp-white);
}

body.sos-hp-body .sos-hp-res-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

body.sos-hp-body .sos-hp-res-card {
	border: 1.5px solid var(--hp-g200);
	border-radius: 6px;
	padding: 22px 22px 18px;
	background: var(--hp-white);
	transition: border-color 0.15s, box-shadow 0.15s;
}

body.sos-hp-body .sos-hp-res-card:hover {
	border-color: var(--hp-blue);
	box-shadow: 0 4px 16px rgba(38, 99, 235, 0.1);
}

body.sos-hp-body .sos-hp-res-card h4 {
	font-family: var(--hp-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--hp-black);
	margin-bottom: 7px;
}

body.sos-hp-body .sos-hp-res-card p {
	font-family: var(--hp-font);
	font-size: 13.5px;
	color: var(--hp-g600);
	line-height: 1.6;
	margin-bottom: 14px;
}

body.sos-hp-body .sos-hp-res-link {
	font-family: var(--hp-mono);
	font-size: 11px;
	color: var(--hp-blue);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}

body.sos-hp-body .sos-hp-res-link:hover {
	border-color: var(--hp-blue);
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-footer {
	background: var(--hp-black);
	padding: 52px 48px 32px;
	border-top: 3px solid var(--hp-blue);
}

body.sos-hp-body .sos-hp-footer-grid {
	max-width: 1280px;
	margin: 0 auto 40px;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
}

body.sos-hp-body .sos-hp-footer-brand-name {
	font-family: var(--hp-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--hp-white);
	margin-bottom: 12px;
}

body.sos-hp-body .sos-hp-footer-brand p {
	font-family: var(--hp-font);
	font-size: 13px;
	color: #666;
	line-height: 1.65;
	margin-bottom: 10px;
}

body.sos-hp-body .sos-hp-footer-col h5 {
	font-family: var(--hp-mono);
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hp-blue);
	margin-bottom: 14px;
}

body.sos-hp-body .sos-hp-footer-col a,
body.sos-hp-body .sos-hp-footer-col .sos-hp-nav-menu li a {
	font-family: var(--hp-font);
	display: block;
	font-size: 13px;
	color: #888;
	text-decoration: none;
	padding: 4px 0;
	transition: color 0.15s;
	opacity: 1;
}

body.sos-hp-body .sos-hp-footer-col a:hover,
body.sos-hp-body .sos-hp-footer-col .sos-hp-nav-menu li a:hover {
	color: var(--hp-white);
}

body.sos-hp-body .sos-hp-footer-col .sos-hp-nav-menu {
	display: block;
}

body.sos-hp-body .sos-hp-footer-bottom {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid #1a1a1a;
	flex-wrap: wrap;
	gap: 12px;
}

body.sos-hp-body .sos-hp-footer-bottom p {
	font-family: var(--hp-font);
	font-size: 12px;
	color: #555;
}

body.sos-hp-body .sos-hp-footer-bottom a {
	color: #666;
	text-decoration: none;
}

/* ── FADE-IN ANIMATION ─────────────────────────────────────────────────────── */

body.sos-hp-body .sos-hp-fade {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s, transform 0.5s;
}

body.sos-hp-body .sos-hp-fade.sos-hp-show {
	opacity: 1;
	transform: none;
}

/* ── PULSE ANIMATION (FRED dot) ────────────────────────────────────────────── */

@keyframes sos-hp-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
body.sos-hp-body .sos-hp-trend-grid {
		grid-template-columns: 1fr;
	}
body.sos-hp-body .sos-hp-roles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
body.sos-hp-body .sos-hp-site-header,
body.sos-hp-body .sos-hp-hero,
body.sos-hp-body .sos-hp-footer {
		padding-left: 20px;
		padding-right: 20px;
	}
body.sos-hp-body .sos-hp-wrap {
		padding: 0 20px;
	}
body.sos-hp-body .sos-hp-hero-stats {
		flex-wrap: wrap;
	}
body.sos-hp-body .sos-hp-hero-stat {
		min-width: 130px;
	}
body.sos-hp-body .sos-hp-howto-grid {
		grid-template-columns: 1fr;
	}
body.sos-hp-body .sos-hp-cta-grid {
		grid-template-columns: 1fr;
	}
body.sos-hp-body .sos-hp-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
body.sos-hp-body .sos-hp-h1 {
		font-size: 26px;
	}
body.sos-hp-body .sos-hp-roles-grid {
		grid-template-columns: 1fr;
	}
body.sos-hp-body .sos-hp-footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ── WIDGET INSTANCE OVERRIDES ─────────────────────────────────────────────── */
/* Scoped to .sos-hp-widget-instance to defeat sos-name-checker.css conflicts. */

/* Force the widget row to be a proper flex container */
body.sos-hp-body .sos-hp-widget-instance .sos-hp-widget-row {
	display: flex !important;
	border: 1.5px solid #b8d0f8 !important;
	border-radius: 5px !important;
	overflow: hidden !important;
	max-width: 860px !important;
	margin: 0 auto !important;
	position: static !important;
}

/* Override sos-name-checker.css input styles */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-input {
	flex: 1 !important;
	border: none !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	outline: none !important;
	background: #ffffff !important;
	width: auto !important;
	position: static !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

/* Override sos-name-checker.css button styles */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-search-btn {
	position: static !important;
	background: #2663EB !important;
	border: none !important;
	padding: 0 20px !important;
	color: #ffffff !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0 !important;
	margin: 0 !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;
}

body.sos-hp-body .sos-hp-widget-instance .sos-nc-search-btn:hover {
	background: #1a4fc4 !important;
}

/* Strip the .sos-nc-card wrapper styles inside the homepage widget */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

/* Hide the existing widget heading since we output our own */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-heading {
	display: none !important;
}

/* Hide state indicator since homepage widget searches all states */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-state-indicator {
	display: none !important;
}

/* Contain the results below the widget inner box */
body.sos-hp-body .sos-hp-widget-instance .sos-nc-results {
	max-width: 860px !important;
	margin: 16px auto 0 !important;
}

/* ── STATE LINK (directory table) ──────────────────────────────────────────── */

body.sos-hp-body .sos-hp-state-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

body.sos-hp-body .sos-hp-state-link:hover .sos-hp-td-name {
	color: var(--hp-blue);
	text-decoration: underline;
}

body.sos-hp-body .sos-hp-state-link:hover .sos-hp-td-abbr {
	color: var(--hp-blue);
}
