/**
 * lol242 Smart Search styles.
 *
 * Colour rule: every piece of text is solid black (#000) on white (#fff).
 * No grey text anywhere — hierarchy comes from size, weight and spacing.
 * Bahama Drama accents (aquamarine #00778b, gold #ffc72c) are used only for
 * borders, rules, focus rings and highlight fills.
 *
 * @package lol242-smart-search
 */

.lol242-ss,
.lol242-ss * {
	box-sizing: border-box;
}

.lol242-ss {
	--l242-ink: #000000;
	--l242-paper: #ffffff;
	--l242-aqua: #00778b;
	--l242-gold: #ffc72c;
	--l242-rule: #000000;

	position: relative;
	display: block;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--l242-ink);
	text-align: left;
}

/* ---------------------------------------------------------------- Bar */

.lol242-ss-bar {
	width: 100%;
	background: var(--l242-paper);
	border-bottom: 3px solid var(--l242-aqua);
	padding: 12px 16px;
}

.lol242-ss--floating {
	max-width: 100%;
}

.lol242-ss-bar .lol242-ss--floating {
	max-width: 760px;
}

/* -------------------------------------------------------------- Label */

.lol242-ss__label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--l242-ink);
	letter-spacing: 0.01em;
}

.lol242-ss--floating .lol242-ss__label,
.lol242-ss--theme .lol242-ss__label {
	/* Visually hidden but still read by screen readers. */
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Row */

.lol242-ss__row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

.lol242-ss__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 10px 14px;
	/* 16px keeps iOS from zooming the page on focus. */
	font-size: 16px;
	line-height: 1.4;
	font-family: inherit;
	color: var(--l242-ink);
	background: var(--l242-paper);
	border: 2px solid var(--l242-ink);
	border-radius: 6px;
	-webkit-appearance: none;
	appearance: none;
}

.lol242-ss__input::placeholder {
	/* Solid black, softened only by weight — never grey. */
	color: var(--l242-ink);
	opacity: 1;
	font-weight: 400;
}

.lol242-ss__input:focus,
.lol242-ss__input:focus-visible {
	outline: 3px solid var(--l242-aqua);
	outline-offset: 2px;
	border-color: var(--l242-aqua);
}

.lol242-ss__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.lol242-ss__submit {
	flex: 0 0 auto;
	min-height: 48px;
	min-width: 88px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--l242-ink);
	background: var(--l242-gold);
	border: 2px solid var(--l242-ink);
	border-radius: 6px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.lol242-ss__submit:hover {
	background: #ffd45c;
}

.lol242-ss__submit:focus,
.lol242-ss__submit:focus-visible {
	outline: 3px solid var(--l242-aqua);
	outline-offset: 2px;
}

/* -------------------------------------------------------------- Panel */

.lol242-ss__panel {
	position: absolute;
	z-index: 99990;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: var(--l242-paper);
	border: 2px solid var(--l242-ink);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.lol242-ss__panel[hidden] {
	display: none;
}

.lol242-ss__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 68vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.lol242-ss__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--l242-ink);
}

.lol242-ss__item:last-child {
	border-bottom: 0;
}

.lol242-ss__item.is-active,
.lol242-ss__item:hover {
	background: var(--l242-gold);
}

.lol242-ss__link {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	min-height: 48px;
	text-decoration: none;
	color: var(--l242-ink);
}

.lol242-ss__link:hover,
.lol242-ss__link:focus {
	color: var(--l242-ink);
	text-decoration: none;
}

.lol242-ss__thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border: 2px solid var(--l242-ink);
	border-radius: 4px;
	background: var(--l242-paper);
}

.lol242-ss__itembody {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
}

.lol242-ss__itemtitle {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--l242-ink);
}

.lol242-ss__itemmeta {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--l242-ink);
}

.lol242-ss__itemsnippet {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--l242-ink);
}

.lol242-ss__empty {
	list-style: none;
	margin: 0;
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--l242-ink);
}

.lol242-ss__more {
	display: block;
	padding: 12px 14px;
	border-top: 2px solid var(--l242-ink);
	background: var(--l242-paper);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	color: var(--l242-ink);
}

.lol242-ss__more:hover,
.lol242-ss__more:focus {
	background: var(--l242-gold);
	color: var(--l242-ink);
	text-decoration: none;
}

.lol242-ss__more[hidden] {
	display: none;
}

/* ---------------------------------------------------------- Highlight */

.lol242-hl {
	background: var(--l242-gold, #ffc72c);
	color: #000000;
	padding: 0 1px;
	border-radius: 2px;
	font-weight: 700;
}

/* ------------------------------------------------------------- Status */

.lol242-ss__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------- Results page */

.lol242-ssr {
	background: #ffffff;
	color: #000000;
	padding: 28px 16px 64px;
}

.lol242-ssr__inner {
	max-width: 820px;
	margin: 0 auto;
}

.lol242-ssr__heading {
	margin: 0 0 18px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	color: #000000;
	word-break: break-word;
}

.lol242-ssr__form {
	margin: 0 0 22px;
}

.lol242-ssr__form .lol242-ss {
	max-width: 100%;
	margin: 0;
}

.lol242-ssr__count,
.lol242-ssr__didyoumean,
.lol242-ssr__empty {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
}

.lol242-ssr__didyoumean strong {
	color: #000000;
	border-bottom: 3px solid #ffc72c;
}

.lol242-ssr__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 3px solid #00778b;
}

.lol242-ssr__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 0;
	border-bottom: 1px solid #000000;
}

.lol242-ssr__thumb {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.lol242-ssr__thumb img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 2px solid #000000;
	border-radius: 4px;
	display: block;
}

.lol242-ssr__body {
	flex: 1 1 auto;
	min-width: 0;
}

.lol242-ssr__title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 800;
}

.lol242-ssr__title a {
	color: #000000;
	text-decoration: none;
	border-bottom: 2px solid #00778b;
}

.lol242-ssr__title a:hover,
.lol242-ssr__title a:focus {
	color: #000000;
	background: #ffc72c;
}

.lol242-ssr__meta {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #000000;
}

.lol242-ssr__terms::before {
	content: "  ·  ";
}

.lol242-ssr__snippet {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	font-weight: 400;
	color: #000000;
}

.lol242-ssr__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 26px;
}

.lol242-ssr__pagelink {
	display: inline-block;
	min-height: 44px;
	padding: 11px 16px;
	font-size: 16px;
	font-weight: 700;
	color: #000000;
	background: #ffffff;
	border: 2px solid #000000;
	border-radius: 6px;
	text-decoration: none;
}

.lol242-ssr__pagelink:hover,
.lol242-ssr__pagelink:focus {
	background: #ffc72c;
	color: #000000;
}

.lol242-ssr__pageinfo {
	font-size: 15px;
	font-weight: 700;
	color: #000000;
}

/* --------------------------------------------------------- Responsive */

@media (max-width: 600px) {
	.lol242-ss-bar {
		padding: 10px 12px;
	}

	.lol242-ss__submit {
		min-width: 64px;
		padding: 10px 12px;
	}

	.lol242-ss__thumb {
		width: 48px;
		height: 48px;
	}

	.lol242-ss__list {
		max-height: 60vh;
	}

	.lol242-ssr__heading {
		font-size: 23px;
	}

	.lol242-ssr__item {
		gap: 12px;
	}

	.lol242-ssr__thumb img {
		width: 60px;
		height: 60px;
	}

	.lol242-ssr__title {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lol242-ss *,
	.lol242-ssr * {
		animation: none !important;
		transition: none !important;
	}
}

/* High contrast / forced colours: let the OS take over cleanly. */
@media (forced-colors: active) {
	.lol242-ss__panel,
	.lol242-ss__input,
	.lol242-ss__submit {
		border: 2px solid CanvasText;
	}

	.lol242-hl {
		background: Highlight;
		color: HighlightText;
	}
}
