/* SBR2 Search — /sok. One purpose, zero chrome, instant response. */

.sbr2-sok-wrap {
	--s2s-ink: #16232e;
	--s2s-muted: #5b6b78;
	--s2s-accent: #0b5fff;
	--s2s-ok: #157347;
	--s2s-warn: #b45309;
	--s2s-stolen: #b91c1c;
	--s2s-line: #e3e8ee;
	--s2s-card: #ffffff;
	--s2s-bg: #f7f9fb;
	background: var(--s2s-bg);
	color: var(--s2s-ink);
	min-height: 70vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.s2s-search { max-width: 760px; margin: 0 auto; padding: 9vh 20px 0; }
/* [sok_bat] on a WP page: the page supplies the vertical rhythm. */
.sbr2-sok-embed { min-height: 0; border-radius: 18px; }
.sbr2-sok-embed .s2s-search { padding-top: 40px; }

.s2s-hero { text-align: center; }
.s2s-wordmark { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.s2s-tagline { color: var(--s2s-muted); margin: 0 auto 28px; max-width: 46ch; font-size: 1.02rem; }

.s2s-inputwrap {
	display: flex; align-items: center; gap: 8px;
	background: var(--s2s-card); border: 1px solid var(--s2s-line); border-radius: 999px;
	padding: 6px 6px 6px 18px;
	box-shadow: 0 1px 2px rgba(22, 35, 46, 0.05), 0 8px 24px rgba(22, 35, 46, 0.06);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.s2s-inputwrap:focus-within { border-color: var(--s2s-accent); box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12); }
.s2s-inputicon { color: var(--s2s-muted); flex: none; }
/* The input is INVISIBLE chrome inside the pill — the pill is the box. Themes
   (Flatsome et al.) give inputs their own border/background/inset shadow, which
   reads as "a field inside a box": neutralize hard. What the visitor types is
   set like the registration vinyl on a hull — Helvetica Bold Italic caps. */
#s2s-q {
	flex: 1; min-width: 0; color: inherit;
	border: 0 !important; outline: 0 !important; background: transparent !important;
	box-shadow: none !important; border-radius: 0 !important; margin: 0 !important;
	height: auto !important;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-style: italic; font-weight: 700;
	font-size: 1.7rem; line-height: 1.2; letter-spacing: 0.05em; text-transform: uppercase;
	padding: 9px 4px 9px 0;
}
/* The empty state stays a quiet hint — the vinyl look belongs to the number. */
#s2s-q::placeholder {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-style: normal; font-weight: 400;
	font-size: 1.02rem; letter-spacing: 0.01em; text-transform: none;
	color: var(--s2s-muted); opacity: 1;
}
#s2s-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.s2s-go {
	border: 0; background: var(--s2s-accent); color: #fff; font-weight: 600;
	padding: 12px 26px; border-radius: 999px; cursor: pointer; font-size: 1rem;
}
.s2s-go:hover { filter: brightness(1.08); }
.s2s-hint { color: var(--s2s-muted); font-size: 0.85rem; margin-top: 14px; letter-spacing: 0.01em; }

/* Results */
.s2s-results { margin-top: 34px; }
.s2s-skel div { height: 84px; border-radius: 14px; background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: s2s-shimmer 1.1s infinite; margin-bottom: 12px; }
@keyframes s2s-shimmer { to { background-position: -200% 0; } }

/* Alignment is PINNED, not inherited. `[sok_bat]` is dropped into page-builder
   columns, and a Flatsome section set to centre its text centres the whole card:
   the verdict heading and its lead, every fact label over its value, and the
   profile link. Nothing the JS renders into #s2s-results is meant to be centred —
   the fact tiles are icon-left/label-over-value by design — so pin it here rather
   than fight the theme per element. Same reasoning as the start form's pinned
   colours in sbr2-registrations. */
.s2s-results { text-align: left; }

.s2s-verdict {
	background: var(--s2s-card); border: 1px solid var(--s2s-line); border-radius: 16px;
	padding: 26px 28px; box-shadow: 0 1px 2px rgba(22, 35, 46, 0.04);
	border-top: 4px solid var(--s2s-line);
	animation: s2s-pop 0.18s ease;
}
@keyframes s2s-pop { from { opacity: 0; transform: translateY(6px); } }
.s2s-verdict--ok { border-top-color: var(--s2s-ok); }
.s2s-verdict--warn, .s2s-verdict--pending { border-top-color: var(--s2s-warn); }
.s2s-verdict--stolen { border-top-color: var(--s2s-stolen); background: #fff7f7; }
.s2s-verdict--miss { border-top-color: #94a3b8; }

.s2s-vhead { display: flex; gap: 16px; align-items: flex-start; }
.s2s-vicon {
	flex: none; width: 44px; height: 44px;
	border-radius: 50%; display: grid; place-items: center;
	font-size: 1.3rem; font-weight: 700; background: var(--s2s-bg); color: var(--s2s-muted);
}
.s2s-verdict--ok .s2s-vicon { background: #e7f5ee; color: var(--s2s-ok); }
.s2s-verdict--warn .s2s-vicon, .s2s-verdict--pending .s2s-vicon { background: #fdf3e7; color: var(--s2s-warn); }
.s2s-verdict--stolen .s2s-vicon { background: #fdecec; color: var(--s2s-stolen); }
.s2s-vhead h2 { margin: 2px 0 4px; font-size: 1.3rem; letter-spacing: -0.01em; }
.s2s-verdict--stolen h2 { color: var(--s2s-stolen); }
.s2s-vhead p { margin: 0; color: var(--s2s-muted); }

/* Fact tiles — knowledge-panel style: icon square, small label over value. */
.s2s-vfacts {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px 20px; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--s2s-line);
}
.s2s-fact { display: flex; align-items: center; gap: 11px; min-width: 0; }
.s2s-fact-ico {
	flex: none; width: 36px; height: 36px; border-radius: 10px;
	background: var(--s2s-bg); color: var(--s2s-muted);
	display: grid; place-items: center;
}
.s2s-fact-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.s2s-fact-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s2s-muted); }
.s2s-fact-value { font-weight: 600; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
/* The number is the boat's identity — set it like the hull vinyl. */
.s2s-fact--reg .s2s-fact-ico { background: #e8effc; color: var(--s2s-accent); }
.s2s-fact--reg .s2s-fact-value {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-style: italic; font-weight: 700; font-size: 1.08rem;
	letter-spacing: 0.04em; text-transform: uppercase;
}
.s2s-verdict--stolen .s2s-fact-ico { background: #fdf1f1; }

.s2s-vnote { margin: 16px 0 0; color: var(--s2s-muted); }
.s2s-vstolen { margin: 14px 0 0; font-weight: 600; color: var(--s2s-stolen); }
.s2s-vcta { margin: 18px 0 0; color: var(--s2s-muted); }
.s2s-vcta a { color: var(--s2s-accent); font-weight: 600; text-decoration: none; }
.s2s-vlink {
	display: inline-block; margin-top: 20px; font-weight: 700; color: var(--s2s-accent);
	text-decoration: none; font-size: 1.02rem;
}
.s2s-vlink:hover { text-decoration: underline; }
.s2s-suggest { border: 0; background: none; color: var(--s2s-accent); font-weight: 700; cursor: pointer; font-size: inherit; padding: 0; }

/* Browse grid */
.s2s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.s2s-cardlink {
	display: block; background: var(--s2s-card); border: 1px solid var(--s2s-line); border-radius: 14px;
	overflow: hidden; text-decoration: none; color: inherit;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.s2s-cardlink:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 35, 46, 0.1); }
.s2s-thumb { display: block; aspect-ratio: 16 / 9; background: #dde5ec center/cover no-repeat; }
.s2s-thumb--empty { background: #dde5ec url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="40" height="40" fill="%23a8b6c2"><path d="M3 13.5 12 4l9 9.5-1.5 1.5L12 7 4.5 15zM5 17h14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2"/></svg>') center no-repeat; }
.s2s-cardbody { display: block; padding: 12px 14px 14px; }
.s2s-cardbody strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.s2s-cardbody span { display: block; color: var(--s2s-muted); font-size: 0.86rem; }
.s2s-cardstat { margin-top: 6px; font-weight: 600; }

.s2s-noscript { text-align: center; color: var(--s2s-muted); margin-top: 30px; }
.s2s-foot { text-align: center; color: var(--s2s-muted); font-size: 0.85rem; margin-top: 70px; padding: 0 20px 60px; }

@media (max-width: 560px) {
	.s2s-search { padding-top: 6vh; }
	.s2s-wordmark { font-size: 2rem; }
	#s2s-q { font-size: 1.35rem; }
	#s2s-q::placeholder { font-size: 0.95rem; }
	.s2s-go { padding: 12px 18px; }
	.s2s-verdict { padding: 20px; }
}
