/* SERP Climb — a mock results page showing where a keyword ranked then and now.
   The point of the design is the contrast between one real card and a page of
   grey, so everything here works to keep the eye on the card. */

.sg-serp { --sg-serp-gap: 26px; }

/* ── client tabs ──
   Kit-armored: theme and Elementor kit `button` rules are broad enough to
   repaint these, so every property they touch is stated and the paint ones
   are forced. */
.sg-serp__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
	background-color: #000;
	padding: 0;
}

.sg-serp__tab {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 16px 26px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	color: #8a8a8a;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.1;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}

.sg-serp__tab.is-active {
	color: #F49D1F;
	background-color: #1c1c1c !important;
}

.sg-serp__tab:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* ── the page ── */
.sg-serp__page {
	background-color: #f7f9fb;
	border-top: 3px solid #1a9bd7;
	padding: 22px 24px 30px;
}

/* ── search bar ── */
.sg-serp__search {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
}

.sg-serp__g { width: 40px; height: 40px; flex: 0 0 auto; display: block; }

.sg-serp__field { position: relative; flex: 1 1 auto; min-width: 0; }

.sg-serp__kw {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 12px 18px !important;
	min-height: 0 !important;
	border: 1px solid #dcdcdc !important;
	border-radius: 999px !important;
	background: #e6e6e6 !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	/* Forced for the same reason as the dropdown options: a kit rule on
	   `button` outspecifies this class, and the keyword text is a span that
	   inherits from here, so an unforced colour renders white on grey. */
	color: #202124 !important;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.sg-serp__kwtext { color: inherit; }

.sg-serp__kwtext { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-serp__caret { width: 18px; height: 18px; flex: 0 0 auto; opacity: .55; transition: transform .18s ease; }
.sg-serp__kw[aria-expanded="true"] .sg-serp__caret { transform: rotate(180deg); }

.sg-serp__kwmenu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 14px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .16);
	max-height: 280px;
	overflow-y: auto;
}

.sg-serp__kwmenu li { margin: 0; }

/* KIT ARMOR. These are <button>s inside a white panel, and a kit rule like
   `.elementor-kit-123 button { color: #fff }` is 0,0,1,1 against this
   selector's 0,0,1,0 -- so it wins, and the options render white on white.
   Colour and background are therefore forced, not merely declared. */
.sg-serp__kwopt {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100%;
	display: block;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 10px 18px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	color: #202124 !important;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease;
}

.sg-serp__kwopt:hover,
.sg-serp__kwopt:focus-visible {
	background-color: #f1f3f4 !important;
	color: #202124 !important;
}

.sg-serp__kwopt:focus-visible { outline: 2px solid #1a73e8; outline-offset: -2px; }
.sg-serp__kwopt[aria-selected="true"] { font-weight: 700; }

/* A real button now, not a label — it opens the keyword list — so it needs the
   same kit armor as the tabs. */
.sg-serp__go {
	appearance: none !important;
	-webkit-appearance: none !important;
	flex: 0 0 auto;
	border: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	background-color: #fff !important;
	background-image: none !important;
	text-shadow: none !important;
	border-radius: 999px !important;
	padding: 10px 22px !important;
	font-size: 15px;
	line-height: 1.3;
	color: #202124 !important;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important;
	white-space: nowrap;
}

.sg-serp__go:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── columns ── */
.sg-serp__cols {
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	gap: 0 var(--sg-serp-gap);
}

/* The divider is the middle grid track, so it spans whatever the taller
   column is without needing a height. */
.sg-serp__cols::before {
	content: "";
	grid-column: 2;
	grid-row: 1;
	background: #dfe3e8;
}

.sg-serp__col:first-of-type { grid-column: 1; }
.sg-serp__col:last-of-type  { grid-column: 3; }
.sg-serp__col { grid-row: 1; min-width: 0; }

.sg-serp__collabel {
	color: #1a73e8;
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 18px;
}

/* ── one result ── */
.sg-serp__row {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 0 12px;
	margin-bottom: 22px;
}

.sg-serp__rank {
	color: #5f6368;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.sg-serp__body { min-width: 0; }

.sg-serp__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.sg-serp__fav {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #dadce0;
	flex: 0 0 auto;
	object-fit: cover;
	display: block;
}

/* Both are spans so the markup stays inside one flex child; they have to be
   told to stack or the site name and the URL run together on one line. */
.sg-serp__site { min-width: 0; display: block; }
.sg-serp__biz { display: block; font-size: 14px; font-weight: 700; color: #202124; line-height: 1.2; }
.sg-serp__url { display: block; font-size: 12px; color: #4d5156; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sg-serp__title {
	color: #1a0dab;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 4px;
}

.sg-serp__snippet { color: #4d5156; font-size: 13px; line-height: 1.45; margin: 0; }

/* ── placeholder rows ── */
.sg-serp__ghost span {
	display: block;
	background-color: #e4e4e4;
	border-radius: 3px;
}

.sg-serp__ghost .is-strong { background-color: #8b8b8b; }

.sg-serp__ghost .g-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sg-serp__ghost .g-dot { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; }
.sg-serp__ghost .g-lines { flex: 1 1 auto; }
.sg-serp__ghost .g-lines span { height: 7px; margin-bottom: 6px; }
.sg-serp__ghost .g-lines span:first-child { width: 34%; }
.sg-serp__ghost .g-lines span:last-child  { width: 92%; margin-bottom: 0; }
.sg-serp__ghost .g-link { height: 11px; width: 88%; margin-bottom: 10px; }
.sg-serp__ghost .g-body { height: 30px; width: 74%; }

.sg-serp__sr,
.screen-reader-text.sg-serp__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 880px) {
	/* Stacked, so the divider track would draw a line across the middle. */
	.sg-serp__cols { grid-template-columns: 1fr; }
	.sg-serp__cols::before { display: none; }
	.sg-serp__col:first-of-type,
	.sg-serp__col:last-of-type { grid-column: 1; }
	.sg-serp__col:last-of-type { grid-row: 2; margin-top: 26px; padding-top: 26px; border-top: 1px solid #dfe3e8; }
	.sg-serp__page { padding: 18px 16px 24px; }
	.sg-serp__tab { padding: 13px 16px !important; font-size: 13px; }
	.sg-serp__search { gap: 10px; }
	.sg-serp__g { width: 30px; height: 30px; }
	.sg-serp__go { display: none; }
}
