/* ==========================================================================
   NFCR search (0.9.42)
   1. Search form (results page + header panel)
   2. Header panel (overlay)
   3. Phone menu field
   4. Results page
   Laptop first; the 1024px and 767px rules below are the tablet and phone layouts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Search form: white pill, icon left, orange button right
   -------------------------------------------------------------------------- */
.nfcr-sf {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 6px 6px 6px 22px;
	border: 1px solid var(--nfcr-line-chip);
	border-radius: var(--nfcr-r-bar);
	background: var(--nfcr-white);
	box-shadow: var(--nfcr-shadow);
	font-family: var(--nfcr-font);
	color: var(--nfcr-navy);
}
.nfcr-sf:focus-within { border-color: var(--nfcr-navy); box-shadow: 0 0 0 3px rgba(0, 44, 118, .18), var(--nfcr-shadow); }
.nfcr-sf__icon { display: flex; flex-shrink: 0; color: var(--nfcr-navy); }
.nfcr-sf .nfcr-sf__input,
.nfcr-sf .nfcr-sf__input:focus {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-family: var(--nfcr-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--nfcr-navy);
}
.nfcr-sf .nfcr-sf__input::placeholder { color: var(--nfcr-text-2); opacity: 1; }
.nfcr-sf .nfcr-sf__input::-webkit-search-decoration,
.nfcr-sf .nfcr-sf__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nfcr-sf .nfcr-sf__button {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: var(--nfcr-r-pill);
	background: var(--nfcr-orange);
	font-family: var(--nfcr-font);
	font-size: var(--nfcr-fs-ui);
	font-weight: 600;
	line-height: 1;
	color: var(--nfcr-white);
	cursor: pointer;
	transition: background-color .15s ease;
}
.nfcr-sf .nfcr-sf__button:hover { background: var(--nfcr-orange-hover); }
.nfcr-sf .nfcr-sf__button:focus-visible { outline: var(--nfcr-focus); outline-offset: 2px; }
.nfcr-sf .nfcr-sf__button svg { flex-shrink: 0; }

/* On the results page: a larger pill */
.nfcr-sf.nfcr-sf--page { padding-left: 26px; }
.nfcr-sf.nfcr-sf--page .nfcr-sf__input { height: 58px; font-size: 18px; }
.nfcr-sf.nfcr-sf--page .nfcr-sf__button { height: 58px; padding: 0 32px; }

/* In the header panel: soft grey pill on the white panel */
.nfcr-sf.nfcr-sf--panel { border-color: transparent; background: var(--nfcr-surface); box-shadow: none; }
.nfcr-sf.nfcr-sf--panel:focus-within { border-color: var(--nfcr-navy); background: var(--nfcr-white); box-shadow: 0 0 0 3px rgba(0, 44, 118, .15); }
.nfcr-sf.nfcr-sf--panel .nfcr-sf__input { height: 56px; font-size: 18px; }
.nfcr-sf.nfcr-sf--panel .nfcr-sf__button { height: 56px; }

/* --------------------------------------------------------------------------
   2. Header panel (opened by the top bar "Search" link)
   -------------------------------------------------------------------------- */
html.nfcr-sx-open { overflow: hidden; }
.nfcr-sx {
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: var(--nfcr-font);
}
.nfcr-sx[hidden] { display: none; }
.nfcr-sx__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 27, 74, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .2s ease;
}
.nfcr-sx.is-open .nfcr-sx__backdrop { opacity: 1; }
.nfcr-sx__panel {
	position: absolute;
	top: 96px;
	left: 50%;
	box-sizing: border-box;
	width: min(880px, calc(100% - 48px));
	max-height: calc(100% - 120px);
	overflow-y: auto;
	padding: 22px 30px 30px;
	border-radius: var(--nfcr-r-section);
	background: var(--nfcr-white);
	box-shadow: var(--nfcr-shadow-raised);
	opacity: 0;
	transform: translate(-50%, -12px);
	transition: opacity .2s ease, transform .2s ease;
}
.nfcr-sx.is-open .nfcr-sx__panel { opacity: 1; transform: translate(-50%, 0); }
.nfcr-sx__top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.nfcr-sx .nfcr-sx__title {
	margin: 0;
	font-size: var(--nfcr-fs-label);
	font-weight: 700;
	letter-spacing: .8px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--nfcr-label);
}
.nfcr-sx .nfcr-sx__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--nfcr-surface);
	color: var(--nfcr-navy);
	cursor: pointer;
}
.nfcr-sx .nfcr-sx__close:hover { background: var(--nfcr-line-chip); }
.nfcr-sx .nfcr-sx__close:focus-visible { outline: var(--nfcr-focus); outline-offset: 2px; }
.nfcr-sx .nfcr-sx__label {
	margin: 24px 0 10px;
	font-size: var(--nfcr-fs-label);
	font-weight: 700;
	letter-spacing: .8px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--nfcr-label);
}

/* "Popular searches" buttons (panel and results page) */
.nfcr-sx__chips { margin: 0; padding: 0; list-style: none; }
.nfcr-sx__chips .nfcr-chip { padding: 0; }
.nfcr-sx__chips .nfcr-chip a {
	display: block;
	padding: 8px 16px;
	border-radius: var(--nfcr-r-chip);
	color: inherit;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.nfcr-sx__chips .nfcr-chip a:hover,
.nfcr-sx__chips .nfcr-chip a:focus-visible { background: var(--nfcr-navy); color: var(--nfcr-white); }
.nfcr-sx__chips .nfcr-chip a:focus-visible { outline: var(--nfcr-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Phone menu: search field at the top of the full-screen menu
   -------------------------------------------------------------------------- */
.nfcr-sx-drawer {
	box-sizing: border-box;
	display: none; /* desktop: the menu wrapper is display: contents, so the field must not exist there */
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 640px; /* same width as the menu card under it */
	margin: 0 auto 12px;
	padding: 5px 5px 5px 18px;
	border-radius: var(--nfcr-r-pill);
	background: var(--nfcr-white);
	box-shadow: var(--nfcr-shadow);
	color: var(--nfcr-navy);
}
@media (max-width: 1024px) { .nfcr-sx-drawer { display: flex; } }
.nfcr-sx-drawer:focus-within { box-shadow: 0 0 0 3px rgba(0, 44, 118, .25), var(--nfcr-shadow); }
.nfcr-sx-drawer__icon { display: flex; flex-shrink: 0; }
.nfcr-sx-drawer .nfcr-sx-drawer__input,
.nfcr-sx-drawer .nfcr-sx-drawer__input:focus {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-family: var(--nfcr-font);
	font-size: 16px;
	line-height: 1.3;
	color: var(--nfcr-navy);
}
.nfcr-sx-drawer .nfcr-sx-drawer__input::placeholder { color: var(--nfcr-text-2); opacity: 1; }
.nfcr-sx-drawer .nfcr-sx-drawer__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nfcr-sx-drawer .nfcr-sx-drawer__go {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--nfcr-navy);
	color: var(--nfcr-white);
	cursor: pointer;
}
.nfcr-sx-drawer .nfcr-sx-drawer__go:focus-visible { outline: var(--nfcr-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   4. Results page
   -------------------------------------------------------------------------- */
.nfcr-section.nfcr-srch__head { margin-bottom: 34px !important; padding-top: 64px; } /* the air between the header bar and the title, as on the other pages */
.nfcr-srch__form { max-width: 780px; margin-top: 30px; }
.nfcr-section.nfcr-srch__body { margin-bottom: 40px !important; }

/* count + filter buttons */
.nfcr-srch__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 22px; }
.nfcr-srch__body .nfcr-srch__count { margin: 0; font-size: var(--nfcr-fs-small); line-height: 1.5; color: var(--nfcr-text-2); }
.nfcr-srch__body .nfcr-srch__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nfcr-srch__body .nfcr-srch__filters li { margin: 0; padding: 0; }
.nfcr-srch__body .nfcr-srch__filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--nfcr-line-chip);
	border-radius: var(--nfcr-r-chip);
	background: var(--nfcr-white);
	font-size: var(--nfcr-fs-meta);
	font-weight: 600;
	line-height: 1.3;
	color: var(--nfcr-heading-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nfcr-srch__body .nfcr-srch__filter:hover { border-color: var(--nfcr-navy); color: var(--nfcr-navy); }
.nfcr-srch__body .nfcr-srch__filter:focus-visible { outline: var(--nfcr-focus); outline-offset: 2px; }
.nfcr-srch__body .nfcr-srch__filter.is-current { border-color: var(--nfcr-navy); background: var(--nfcr-navy); color: var(--nfcr-white); }
.nfcr-srch__filter-n { font-size: 12.5px; font-weight: 700; color: var(--nfcr-label); }
.nfcr-srch__filter.is-current .nfcr-srch__filter-n { color: var(--nfcr-on-dark-muted); }

/* result cards */
.nfcr-srch__list { display: flex; flex-direction: column; gap: 14px; }
.nfcr-res {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 26px 32px;
	border-radius: var(--nfcr-r-card);
	background: var(--nfcr-white);
	box-shadow: var(--nfcr-shadow);
	transition: box-shadow .2s ease;
}
.nfcr-res:hover { box-shadow: var(--nfcr-shadow-hover); }
.nfcr-res__main { flex: 1; min-width: 0; }
.nfcr-srch__body .nfcr-res__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; font-size: var(--nfcr-fs-meta); line-height: 1.4; color: var(--nfcr-text-2); }
.nfcr-res__type {
	display: inline-block;
	padding: 4px 11px;
	border-radius: var(--nfcr-r-chip);
	background: var(--nfcr-orange-tint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--nfcr-orange-deep);
}
.nfcr-res__date::before,
.nfcr-res__trail::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 10px 2px 0;
	border-radius: 50%;
	background: var(--nfcr-line-soft);
	vertical-align: middle;
}
.nfcr-srch__body .nfcr-res__title { margin: 0 0 8px; font-family: var(--nfcr-font); font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--nfcr-navy); }
.nfcr-srch__body .nfcr-res__title a { color: inherit; text-decoration: none; }
.nfcr-srch__body .nfcr-res__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nfcr-srch__body .nfcr-res__title a:focus-visible { outline: var(--nfcr-focus); outline-offset: 3px; border-radius: 4px; }
.nfcr-srch__body .nfcr-res__snippet { margin: 0 0 14px; font-size: var(--nfcr-fs-body); line-height: 1.65; color: var(--nfcr-text); }
.nfcr-srch__body mark {
	padding: 0 3px;
	border-radius: 4px;
	background: var(--nfcr-orange-tint);
	font-weight: 600;
	color: var(--nfcr-orange-deep);
}
.nfcr-srch__body .nfcr-res__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--nfcr-fs-small);
	font-weight: 600;
	line-height: 1.4;
	color: var(--nfcr-orange);
	text-decoration: none;
}
.nfcr-srch__body .nfcr-res__more svg { transition: transform .15s ease; }
.nfcr-srch__body .nfcr-res__more:hover { color: var(--nfcr-orange-hover); }
.nfcr-srch__body .nfcr-res__more:hover svg { transform: translateX(3px); }
.nfcr-srch__body .nfcr-res__more:focus-visible { outline: var(--nfcr-focus); outline-offset: 3px; border-radius: 4px; }
.nfcr-res__thumb { flex: 0 0 200px; display: block; }
.nfcr-res__thumb .nfcr-res__img { display: block; width: 200px; height: 132px; border-radius: 16px; object-fit: cover; }

/* page numbers */
.nfcr-srch__pager { margin: 34px 0 0; }
.nfcr-srch__pager ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nfcr-srch__pager li { margin: 0; padding: 0; }
.nfcr-srch__pager .page-numbers {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--nfcr-line-chip);
	border-radius: var(--nfcr-r-pill);
	background: var(--nfcr-white);
	font-size: var(--nfcr-fs-small);
	font-weight: 600;
	line-height: 1;
	color: var(--nfcr-heading-muted);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nfcr-srch__pager a.page-numbers:hover { border-color: var(--nfcr-navy); color: var(--nfcr-navy); }
.nfcr-srch__pager a.page-numbers:focus-visible { outline: var(--nfcr-focus); outline-offset: 2px; }
.nfcr-srch__pager .page-numbers.current { border-color: var(--nfcr-navy); background: var(--nfcr-navy); color: var(--nfcr-white); }
.nfcr-srch__pager .page-numbers.dots { min-width: 0; padding: 0 4px; border: 0; background: none; }
.nfcr-srch__pager .page-numbers.prev,
.nfcr-srch__pager .page-numbers.next { padding: 0 20px; color: var(--nfcr-orange); }
.nfcr-srch__pager .page-numbers svg { flex-shrink: 0; }
.nfcr-srch__body .nfcr-srch__pageof { display: none; margin: 14px 0 0; text-align: center; font-size: var(--nfcr-fs-meta); color: var(--nfcr-text-2); }

/* nothing found / nothing typed yet */
.nfcr-srch__empty {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px 28px;
	align-items: start;
	margin: 0 0 40px;
	padding: 34px 40px;
	border-radius: var(--nfcr-r-section);
	background: var(--nfcr-white);
	box-shadow: var(--nfcr-shadow);
}
.nfcr-srch__empty-icon { display: flex; align-items: center; justify-content: center; grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; background: var(--nfcr-surface); color: var(--nfcr-navy); }
.nfcr-srch__body .nfcr-srch__empty-title { margin: 2px 0 10px; font-family: var(--nfcr-font); font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--nfcr-navy); overflow-wrap: anywhere; }
.nfcr-srch__body .nfcr-srch__tips { margin: 0; padding: 0; list-style: none; }
.nfcr-srch__body .nfcr-srch__tips li { position: relative; margin: 0 0 6px; padding-left: 22px; font-size: var(--nfcr-fs-body); line-height: 1.6; color: var(--nfcr-text); }
.nfcr-srch__body .nfcr-srch__tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: var(--nfcr-dot); height: var(--nfcr-dot); border-radius: 50%; background: var(--nfcr-accent); transform: translateY(-50%) scale(.7); }
.nfcr-srch__body .nfcr-srch__tips a { font-weight: 600; color: var(--nfcr-orange); text-decoration: none; white-space: nowrap; }
.nfcr-srch__body .nfcr-srch__tips a:hover { text-decoration: underline; }
.nfcr-srch__body .nfcr-srch__label { margin: 0 0 12px; font-size: var(--nfcr-fs-label); font-weight: 700; letter-spacing: .8px; line-height: 1.2; text-transform: uppercase; color: var(--nfcr-label); }
.nfcr-srch__popular { margin: 0 0 40px; }
.nfcr-srch__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.nfcr-srch__cards li { margin: 0; padding: 0; }
.nfcr-srch__body .nfcr-srch__card {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 24px 64px 26px 28px;
	border-radius: var(--nfcr-r-card);
	background: var(--nfcr-white);
	box-shadow: var(--nfcr-shadow);
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}
.nfcr-srch__body .nfcr-srch__card:hover { box-shadow: var(--nfcr-shadow-hover); transform: translateY(-2px); }
.nfcr-srch__body .nfcr-srch__card:focus-visible { outline: var(--nfcr-focus); outline-offset: 3px; }
.nfcr-srch__card-title { font-size: var(--nfcr-fs-h3); font-weight: 700; line-height: 1.3; color: var(--nfcr-navy); }
.nfcr-srch__card-text { font-size: var(--nfcr-fs-small); line-height: 1.55; color: var(--nfcr-text-2); }
.nfcr-srch__card-go { position: absolute; top: 22px; right: 22px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--nfcr-surface); color: var(--nfcr-orange); transition: background-color .15s ease, color .15s ease; }
.nfcr-srch__card:hover .nfcr-srch__card-go { background: var(--nfcr-orange); color: var(--nfcr-white); }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.nfcr-section.nfcr-srch__head { padding-top: 44px; }
	.nfcr-srch__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nfcr-res { padding: 24px 28px; gap: 24px; }
	.nfcr-res__thumb { flex-basis: 160px; }
	.nfcr-res__thumb .nfcr-res__img { width: 160px; height: 110px; }
}

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.nfcr-section.nfcr-srch__head { padding-top: 28px; }
	.nfcr-srch__form { margin-top: 22px; }
	.nfcr-sf { padding: 5px 5px 5px 16px; }
	.nfcr-sf .nfcr-sf__input,
	.nfcr-sf.nfcr-sf--page .nfcr-sf__input,
	.nfcr-sf.nfcr-sf--panel .nfcr-sf__input { height: 48px; font-size: 16px; }
	.nfcr-sf .nfcr-sf__button,
	.nfcr-sf.nfcr-sf--page .nfcr-sf__button,
	.nfcr-sf.nfcr-sf--panel .nfcr-sf__button { width: 48px; height: 48px; padding: 0; }
	.nfcr-sf .nfcr-sf__button-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

	/* panel: a sheet from the top edge of the screen */
	.nfcr-sx__panel { top: 12px; width: calc(100% - 24px); max-height: calc(100% - 24px); padding: 16px 16px 22px; border-radius: 22px; }
	.nfcr-sx__top { margin-bottom: 12px; }
	.nfcr-sx .nfcr-sx__label { margin-top: 20px; }

	/* count and filters */
	.nfcr-srch__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; margin-bottom: 16px; }
	.nfcr-srch__body .nfcr-srch__filters { flex-wrap: nowrap; margin: 0 calc(var(--nfcr-gutter) * -1); padding: 2px var(--nfcr-gutter) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.nfcr-srch__body .nfcr-srch__filters::-webkit-scrollbar { display: none; }

	/* cards: text only, comfortable to read */
	.nfcr-srch__list { gap: 12px; }
	.nfcr-res { padding: 20px 20px 22px; border-radius: 20px; }
	.nfcr-res__thumb { display: none; }
	.nfcr-srch__body .nfcr-res__title { font-size: 19px; }
	.nfcr-srch__body .nfcr-res__snippet { font-size: 15.5px; }

	/* page numbers: Previous / Next and "Page 2 of 5" */
	.nfcr-srch__pager { margin-top: 26px; }
	.nfcr-srch__pager ul { justify-content: space-between; }
	.nfcr-srch__pager li:has(.page-numbers.next) { margin-left: auto; }
	.nfcr-srch__pager .page-numbers:not(.prev):not(.next) { display: none; }
	.nfcr-srch__pager li:has(.page-numbers:not(.prev):not(.next)) { display: none; }
	.nfcr-srch__body .nfcr-srch__pageof { display: block; }

	/* nothing found */
	.nfcr-srch__empty { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 30px; padding: 24px 22px; border-radius: 22px; }
	.nfcr-srch__empty-icon { grid-row: auto; width: 52px; height: 52px; margin-bottom: 10px; }
	.nfcr-srch__body .nfcr-srch__empty-title { font-size: 21px; }
	.nfcr-srch__popular { margin-bottom: 30px; }
	.nfcr-srch__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.nfcr-srch__body .nfcr-srch__card { padding: 20px 60px 22px 22px; }
}
