/**
 * BH National Chains Live Advance
 * Scoped under .bh-nca so it can drop into any theme without bleeding.
 */

.bh-nca {
	--bh-nca-ink: #111214;
	--bh-nca-muted: #6b7280;
	--bh-nca-line: #e5e7eb;
	--bh-nca-soft: #f4f5f7;
	--bh-nca-radius: 8px;
	--bh-nca-pvr: #29355f;
	--bh-nca-inox: #14603a;
	--bh-nca-cinepolis: #9e1b1b;
	--bh-nca-other: #374151;

	/* How wide the chip strip under a film name is allowed to get before it
	   starts scrolling sideways. Raise it to show more chips at rest, at the
	   cost of a wider film column. */
	--bh-nca-tags-max: 230px;

	box-sizing: border-box;
	max-width: 100%;
	color: var(--bh-nca-ink);
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;

	/* The dashboard is usually dropped into a theme content column that is far
	   narrower than the viewport, so the hero sizes itself off this box rather
	   than off the window. */
	container: bh-nca-shell / inline-size;
	/* padding: 25px; */
	margin-top:-0.5rem;
}

.bh-nca *,
.bh-nca *::before,
.bh-nca *::after {
	box-sizing: inherit;
}

.bh-nca p {
	margin: 0;
}

.bh-nca ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bh-nca .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Hero -- */

.bh-nca-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(18px, 3vw, 26px) clamp(16px, 3.2vw, 30px) clamp(16px, 2.6vw, 22px);
	border-radius: var(--bh-nca-radius);
	background: #0b0b0c;
	color: #fff;
}

.bh-nca-hero__main {
	flex: 1 1 320px;
	min-width: 0;
}

.bh-nca-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.bh-nca-hero__title {
	margin: 0;
	padding: 0;
	color: #fff;
	    font-size: clamp(24px, 7cqw, 40px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	border: 0;
}

.bh-nca-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.bh-nca-chip {
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--bh-nca-other);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bh-nca-chip.is-pvr,
.bh-nca-chaincard.is-pvr,
.bh-nca-dot.is-pvr {
	background: var(--bh-nca-pvr);
}

.bh-nca-chip.is-inox,
.bh-nca-chaincard.is-inox,
.bh-nca-dot.is-inox {
	background: var(--bh-nca-inox);
}

.bh-nca-chip.is-cinepolis,
.bh-nca-chaincard.is-cinepolis,
.bh-nca-dot.is-cinepolis {
	background: var(--bh-nca-cinepolis);
}

.bh-nca-hero__aside {
	flex: 0 0 auto;
	min-width: 260px;
	text-align: right;
	margin-left: auto;
}

.bh-nca-hero__label {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.bh-nca-date {
	width: 100%;
	max-width: 320px;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.3;
}

.bh-nca-hero__meta {
	margin-top: 12px;
}

.bh-nca-hero__updated {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------- Chain cards -- */

.bh-nca-chains {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.bh-nca-chaincard {
	container-type: inline-size;
	padding: 14px 16px 16px;
	border-radius: 6px;
	background: var(--bh-nca-other);
	color: #fff;
}

.bh-nca-chaincard__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 10px;
	margin-bottom: 12px;
}

.bh-nca-chaincard__name {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 0;
}

.bh-nca-chaincard__gross {
	font-size: clamp(17px, 9cqw, 26px);
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.bh-nca-chaincard__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.bh-nca-chaincard__stat {
	padding: 7px 9px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.14);
}

.bh-nca-chaincard__label {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.bh-nca-chaincard__value {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------------------------------------------------------- Controls -- */

.bh-nca-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.bh-nca-search {
	flex: 1 1 260px;
	max-width: 380px;
	margin-left: auto;
	margin-right: 8px;
}

/* The field is a shell so the magnifier can sit inside the input's box and
   the whole thing can light up together on hover and focus. */
.bh-nca-search__field {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 42px;
	border: 1px solid var(--bh-nca-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(11, 11, 12, 0.04);
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.bh-nca-search__field:hover {
	border-color: #cbd0d8;
	box-shadow: 0 2px 6px rgba(11, 11, 12, 0.07);
}

/* Focus lives on the shell, not the input, so the ring wraps the icon too. */
.bh-nca-search__field:focus-within {
	border-color: #0b0b0c;
	box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.1);
}

.bh-nca-search__icon {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-left: 14px;
	color: #9aa1ad;
	transition: color 0.16s ease;
}

.bh-nca-search__field:focus-within .bh-nca-search__icon {
	color: var(--bh-nca-ink);
}

/*
 * Themes commonly style `input[type="search"]` by attribute, which outranks a
 * single class and would redraw the theme's own border, radius and padding
 * inside our shell -- a visible double border. The wrapper and element are
 * both named here so the reset outranks any such rule without !important.
 */
.bh-nca .bh-nca-search__field .bh-nca-search__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 10px 16px 10px 10px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	box-shadow: none;
	color: var(--bh-nca-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	/* The same themes hand inputs content-box, which collapses the field. */
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.bh-nca .bh-nca-search__field .bh-nca-search__input::placeholder {
	color: #9aa1ad;
	font-weight: 400;
	opacity: 1;
}

/* The shell already draws the focus state; a second ring inside it reads as
   a double border. */
.bh-nca .bh-nca-search__field .bh-nca-search__input:focus,
.bh-nca .bh-nca-search__field .bh-nca-search__input:focus-visible {
	border: 0;
	outline: 0;
	box-shadow: none;
}

/* WebKit's own clear button is a grey square against a rounded field; this
   turns it into a circular affordance sized like the icon opposite it. */
.bh-nca .bh-nca-search__field .bh-nca-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	margin-right: 2px;
	border-radius: 50%;
	background: #9aa1ad;
	/* Mask so the glyph inherits the circle's colour on hover. */
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M5.5 5.5l5 5m0-5l-5 5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M5.5 5.5l5 5m0-5l-5 5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	cursor: pointer;
}

.bh-nca .bh-nca-search__field .bh-nca-search__input::-webkit-search-cancel-button:hover {
	background: var(--bh-nca-ink);
}

/* ------------------------------------------------------------- Table -- */

.bh-nca-tablewrap {
	margin-top: 14px;
	border: 1px solid var(--bh-nca-line);
	border-radius: var(--bh-nca-radius);
	background: #fff;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.bh-nca-table {
	width: 100%;
	min-width: 860px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 13px;
}

.bh-nca-table thead th {
	padding: 13px 14px;
	border: 0;
	background: #0b0b0c;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
}

.bh-nca-table thead th.is-num {
	width: 56px;
	text-align: center;
}

.bh-nca-table thead th.is-film {
	text-align: left;
}

.bh-nca-table thead th.is-sorted {
	color: #fff;
}

.bh-nca-table tbody td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #eef0f2;
	background: transparent;
	text-align: right;
	vertical-align: middle;
	white-space: nowrap;
}

.bh-nca-table tbody td.is-num {
	color: var(--bh-nca-muted);
	text-align: center;
}

.bh-nca-table tbody td.is-film {
	width: 34%;
	text-align: left;
	white-space: normal;
}

.bh-nca-row:hover td {
	background: #fafbfc;
}

.bh-nca-row.is-open td {
	background: #f7f8fa;
}

.bh-nca-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

/* Capped so the chip strip cannot drag the film column toward its max-content
   width: the name wraps inside this block and the chips scroll within it. */
.bh-nca-toggle__text {
	display: block;
	min-width: 0;
	max-width: var(--bh-nca-tags-max);
	overflow: hidden;
}

/* Format / language chips under the film name. They stay on one line and
   scroll sideways rather than wrapping into a second and third row, which
   pushed the table rows out of rhythm. The bar itself is hidden -- the strip
   is only a chip tall, so a scrollbar under every row reads as clutter -- but
   it still scrolls by drag, wheel and touch. */
.bh-nca-tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 5px;
	max-width: min(100%, var(--bh-nca-tags-max));
	margin-top: 5px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.bh-nca-tags::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

/* A flex item shrinks below its content by default; these must not. */
.bh-nca-tags > .bh-nca-tag {
	flex: 0 0 auto;
}

.bh-nca-tag {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid #e2e4e8;
	border-radius: 999px;
	background: #f4f5f7;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	color: #4b5563;
	white-space: nowrap;
}

.bh-nca-toggle__icon {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid #4b5563;
	border-bottom: 2px solid #4b5563;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.bh-nca-toggle[aria-expanded="true"] .bh-nca-toggle__icon {
	transform: rotate(45deg);
}

/* ------------------------------------------------------ Chain splits -- */

.bh-nca-subrow > td {
	padding: 0 !important;
	background: #f7f8fa !important;
	border-bottom: 1px solid #e8eaee !important;
}

.bh-nca-subrow.is-hidden {
	display: none;
}

.bh-nca-subtable {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 12px;
}

.bh-nca-subtable thead th {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid #e3e6ea;
	background: #f0f2f5;
	color: var(--bh-nca-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
}

.bh-nca-subtable thead th.is-film {
	padding-left: 34px;
	text-align: left;
}

.bh-nca-subtable tbody td {
	padding: 11px 14px;
	border: 0;
	border-bottom: 1px solid #e8eaee;
	background: transparent;
	text-align: right;
	white-space: nowrap;
}

.bh-nca-subtable tbody tr:last-child td {
	border-bottom: 0;
}

.bh-nca-subtable tbody td.is-film {
	padding-left: 34px;
	font-weight: 700;
	text-align: left;
}

.bh-nca-subtable__empty {
	padding: 14px;
	color: var(--bh-nca-muted);
	font-size: 12px;
}

.bh-nca-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--bh-nca-other);
	vertical-align: middle;
}

/* --------------------------------------------------------- Occupancy -- */

.bh-nca-occ {
	display: inline-block;
	min-width: 54px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.bh-nca-occ.is-low {
	background: #fde8ee;
	color: #be123c;
}

.bh-nca-occ.is-average {
	background: #fef3c7;
	color: #92400e;
}

.bh-nca-occ.is-medium {
	background: #ffedd5;
	color: #9a3412;
}

.bh-nca-occ.is-high {
	background: #dcfce7;
	color: #166534;
}

.bh-nca-occ.is-peak {
	background: #15803d;
	color: #fff;
}

/* ------------------------------------------------------------ Pager -- */

.bh-nca-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: -1px;
	padding: 14px 18px;
	border: 1px solid var(--bh-nca-line);
	border-top: 0;
	border-radius: 0 0 var(--bh-nca-radius) var(--bh-nca-radius);
	background: #fff;
}

.bh-nca-pager__count {
	font-size: 12px;
	color: var(--bh-nca-muted);
}

.bh-nca-pager__nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.bh-nca-pagebtn,
.bh-nca-pager__label {
	padding: 8px 14px;
	border: 1px solid var(--bh-nca-line);
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bh-nca-ink);
}

.bh-nca-pagebtn {
	cursor: pointer;
}

.bh-nca-pagebtn:hover:not(:disabled) {
	border-color: #9ca3af;
}

.bh-nca-pagebtn:disabled {
	color: #9ca3af;
	cursor: not-allowed;
	opacity: 0.7;
}

/* -------------------------------------------------- States and notes -- */

.bh-nca-region {
	position: relative;
	transition: opacity 0.15s ease;
}

.bh-nca.is-loading .bh-nca-region {
	opacity: 0.45;
	pointer-events: none;
}

.bh-nca-region--summary:empty {
	display: none;
}

.bh-nca-empty,
.bh-nca-error {
	margin-top: 14px;
	padding: 28px 18px;
	border: 1px solid var(--bh-nca-line);
	border-radius: var(--bh-nca-radius);
	background: #fff;
	color: var(--bh-nca-muted);
	text-align: center;
}

.bh-nca-error__title {
	font-weight: 700;
	color: var(--bh-nca-ink);
}

.bh-nca-error__detail {
	margin-top: 6px;
	font-size: 12px;
}

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

/* Tablet — hero stops sitting side by side, cards fall into one column. */

@media (max-width: 900px) {
	.bh-nca-hero {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.bh-nca-hero__main {
		flex: 0 1 auto;
	}

	.bh-nca-hero__aside {
		min-width: 0;
		width: 100%;
		margin-left: 0;
		text-align: left;
	}

	.bh-nca-hero__label,
	.bh-nca-hero__meta {
		text-align: left;
	}

	.bh-nca-date {
		max-width: 100%;
	}

	.bh-nca-controls {
		margin-top: 18px;
	}

	.bh-nca-search {
		flex: 1 1 100%;
		max-width: none;
		margin-left: 0;
	}
}

/*
 * Same hero stack, keyed to the container instead of the window. A theme
 * content column of ~700px on a wide screen never triggers the media query
 * above, which used to leave the date picker wrapped onto its own row with
 * the title's empty space beside it.
 */

@container bh-nca-shell (max-width: 700px) {
	.bh-nca-hero {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.bh-nca-hero__main {
		flex: 0 1 auto;
	}

	.bh-nca-hero__aside {
		min-width: 0;
		width: 100%;
		margin-left: 0;
		text-align: left;
	}

	.bh-nca-hero__label,
	.bh-nca-hero__meta {
		text-align: left;
	}

	.bh-nca-date {
		max-width: 100%;
	}
}

/* ------------------------------------------------- Table as cards -- */

/*
 * Below this width the nine-column table stops being readable even with a
 * horizontal scroller, so every row becomes a self-contained card and each
 * figure carries its column name from the data-label attribute.
 */

@media (max-width: 900px) {
	.bh-nca-tablewrap {
		margin-top: 12px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		overflow-x: visible;
	}

	.bh-nca-table {
		display: block;
		min-width: 0;
		font-size: 13px;
	}

	.bh-nca-table thead {
		display: none;
	}

	.bh-nca-table > tbody {
		display: block;
	}

	.bh-nca-subrow {
		display: block;
	}

	.bh-nca-row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 14px;
		margin-top: 10px;
		padding: 12px 14px 8px;
		border: 1px solid var(--bh-nca-line);
		border-radius: var(--bh-nca-radius);
		background: #fff;
	}

	.bh-nca-row.is-open {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}

	.bh-nca-row:hover td,
	.bh-nca-row.is-open td {
		background: transparent;
	}

	.bh-nca-table > tbody > tr > td {
		display: block;
		padding: 0;
		border: 0;
		white-space: normal;
	}

	.bh-nca-table > tbody td.is-num {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		min-width: 24px;
		height: 22px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--bh-nca-soft);
		color: var(--bh-nca-muted);
		font-size: 11px;
		font-weight: 800;
	}

	.bh-nca-table > tbody td.is-film {
		flex: 1 1 calc(100% - 38px);
		width: auto;
		min-width: 0;
	}

	.bh-nca-toggle {
		gap: 12px;
		min-height: 34px;
		font-size: 14px;
	}

	.bh-nca-toggle__text {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
	}

	.bh-nca-tags {
		max-width: 100%;
	}

	.bh-nca-toggle__icon {
		order: 2;
	}

	.bh-nca-table > tbody td.is-metric {
		display: flex;
		flex: 1 1 calc(50% - 7px);
		align-items: baseline;
		justify-content: space-between;
		gap: 10px;
		padding: 8px 0;
		border-top: 1px solid #f0f1f3;
		font-weight: 700;
		text-align: right;
	}

	.bh-nca-table > tbody td.is-metric::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--bh-nca-muted);
	}

	/* Expanded chain split, still attached to the card above it. */

	.bh-nca-subrow > td {
		padding: 2px 12px 12px !important;
		border: 1px solid var(--bh-nca-line) !important;
		border-top: 0 !important;
		border-radius: 0 0 var(--bh-nca-radius) var(--bh-nca-radius);
		background: #f7f8fa !important;
	}

	.bh-nca-subtable {
		display: block;
	}

	.bh-nca-subtable thead {
		display: none;
	}

	.bh-nca-subtable tbody,
	.bh-nca-subtable tbody tr {
		display: block;
	}

	.bh-nca-subtable tbody tr {
		display: flex;
		flex-wrap: wrap;
		column-gap: 14px;
		margin-top: 8px;
		padding: 10px 12px 8px;
		border: 1px solid #e3e6ea;
		border-radius: 6px;
		background: #fff;
	}

	.bh-nca-subtable tbody td {
		display: block;
		padding: 0;
		border: 0 !important;
		white-space: normal;
	}

	.bh-nca-subtable tbody td.is-film {
		flex: 0 0 100%;
		padding-left: 0 !important;
		font-size: 13px;
	}

	.bh-nca-subtable tbody td.is-metric {
		display: flex;
		flex: 1 1 calc(50% - 7px);
		align-items: baseline;
		justify-content: space-between;
		gap: 10px;
		padding: 7px 0;
		border-top: 1px solid #f0f1f3 !important;
		font-weight: 700;
		text-align: right;
	}

	.bh-nca-subtable tbody td.is-metric::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--bh-nca-muted);
	}

	.bh-nca-occ {
		min-width: 0;
		padding: 3px 9px;
	}

	.bh-nca-pager {
		margin-top: 12px;
		border-radius: var(--bh-nca-radius);
		border-top: 1px solid var(--bh-nca-line);
	}
}

@media (min-width: 621px) and (max-width: 900px) {
	.bh-nca-table > tbody td.is-metric,
	.bh-nca-subtable tbody td.is-metric {
		flex: 1 1 calc(25% - 11px);
	}
}

/* Phones — two figures a line, full-width controls, no side scroll. */

@media (max-width: 620px) {
	.bh-nca-hero__chips {
		margin-top: 12px;
	}

	.bh-nca-chip {
		padding: 5px 12px;
		font-size: 10px;
	}

	.bh-nca-chaincard {
		padding: 13px 14px 14px;
	}

	.bh-nca-controls {
		align-items: stretch;
		gap: 10px;
	}

	.bh-nca-search {
		flex: 1 1 100%;
		max-width: none;
		margin-left: 0;
	}

	.bh-nca-search__field {
		min-height: 44px;
	}

	.bh-nca-pager {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 13px 14px;
	}

	.bh-nca-pager__nav {
		display: flex;
		margin-left: 0;
	}

	.bh-nca-pagebtn,
	.bh-nca-pager__label {
		flex: 1 1 0;
		min-height: 40px;
		text-align: center;
	}
}

/* Narrow phones — figures get a line of their own rather than colliding. */

@media (max-width: 360px) {
	.bh-nca-table > tbody td.is-metric,
	.bh-nca-subtable tbody td.is-metric {
		flex: 1 1 100%;
	}

	.bh-nca-pager__nav {
		flex-wrap: wrap;
	}

	.bh-nca-pager__label {
		order: -1;
		flex: 1 1 100%;
	}
}

/* Respect reduced-motion and give the toggle a visible focus ring. */

@media (prefers-reduced-motion: reduce) {
	.bh-nca-toggle__icon,
	.bh-nca-region,
	.bh-nca-search__field,
	.bh-nca-search__icon {
		transition: none;
	}
}

.bh-nca-toggle:focus-visible,
.bh-nca-pagebtn:focus-visible {
	outline: 2px solid #0b0b0c;
	outline-offset: 2px;
}

/**
 * Page shell spacing.
 *
 * Scoped to the template's own wrapper so nothing here leaks onto other Box
 * Office pages. Spacing only - the theme keeps ownership of colours.
 */

#bh-national-chains .bh-nca-article {
	margin: 0;
}

#bh-national-chains .bh-rate-fav,
#bh-national-chains .bh-comment-section,
#bh-national-chains .bh-nca-inline-ad {
	margin-top: 20px;
}

#bh-national-chains .bh-nca-inline-ad {
	margin-bottom: 20px;
}


/**
 * Editor content under the dashboard.
 *
 * Whatever the page itself carries — intro copy, an FAQ, related links — is
 * drawn as a card matching the dashboard's own panels. Not scoped to .bh-nca:
 * this content sits outside the dashboard and must not inherit its type scale.
 */

.bh-nca-page-content {
	box-sizing: border-box;
	margin: 20px 0 0;
	padding: 22px 24px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #16181d;
	font-size: 15px;
	line-height: 1.75;
}

.bh-nca-page-content > *:first-child {
	margin-top: 0;
}

.bh-nca-page-content > *:last-child {
	margin-bottom: 0;
}

.bh-nca-page-content p,
.bh-nca-page-content ul,
.bh-nca-page-content ol {
	margin: 0 0 14px;
}

.bh-nca-page-content ul,
.bh-nca-page-content ol {
	padding-left: 22px;
}

.bh-nca-page-content li {
	margin-bottom: 6px;
}

.bh-nca-page-content h2,
.bh-nca-page-content h3,
.bh-nca-page-content h4 {
	margin: 22px 0 10px;
	color: #16181d;
	font-weight: 700;
	line-height: 1.3;
}

.bh-nca-page-content h2 { font-size: 21px; }
.bh-nca-page-content h3 { font-size: 17px; }
.bh-nca-page-content h4 { font-size: 15px; }

.bh-nca-page-content a {
	color: #e01e26;
	text-decoration: underline;
}

.bh-nca-page-content img {
	max-width: 100%;
	height: auto;
}

/* FAQ, however it was authored: the Yoast SEO FAQ block (which also publishes
   the FAQPage schema), core's Details block, or hand written markup. */
.bh-nca-page-content .schema-faq,
.bh-nca-page-content .bh-nca-faq,
.bh-nca-page-content .wp-block-details {
	margin: 18px 0 0;
	padding: 18px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f6f7f9;
}

.bh-nca-page-content .schema-faq + .schema-faq,
.bh-nca-page-content .wp-block-details + .wp-block-details {
	margin-top: 10px;
}

.bh-nca-page-content .schema-faq-section {
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.bh-nca-page-content .schema-faq-section:first-child { padding-top: 0; }

.bh-nca-page-content .schema-faq-section:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bh-nca-page-content .schema-faq-question {
	display: block;
	margin: 0 0 6px;
	color: #16181d;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.bh-nca-page-content .schema-faq-answer {
	display: block;
	margin: 0;
	color: #4b5563;
	font-size: 14.5px;
	line-height: 1.7;
}

.bh-nca-page-content .wp-block-details summary {
	color: #16181d;
	font-weight: 700;
	cursor: pointer;
}

.bh-nca-page-content .wp-block-details[open] summary {
	margin-bottom: 8px;
}

@media (max-width: 640px) {
	.bh-nca-page-content {
		padding: 16px;
		font-size: 14.5px;
	}

	.bh-nca-page-content .schema-faq,
	.bh-nca-page-content .bh-nca-faq,
	.bh-nca-page-content .wp-block-details {
		padding: 14px;
	}
}

/* Breadcrumb (printed by bh_nca_breadcrumb(), off by default). Sits outside
   .bh-nca, so it carries its own values. */
.bh-nca-breadcrumb {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
}

.bh-nca-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bh-nca-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	min-width: 0;
}

.bh-nca-breadcrumb__item a {
	color: inherit;
	text-decoration: none;
}

.bh-nca-breadcrumb__item a:hover,
.bh-nca-breadcrumb__item a:focus {
	color: #111214;
	text-decoration: underline;
}

.bh-nca-breadcrumb__item [aria-current="page"] {
	color: #111214;
	font-weight: 600;
}

.bh-nca-breadcrumb__sep {
	color: #9ca3af;
}

/* == SEO copy and FAQ =====================================================
 *
 * Matches .bh-nca-page-content exactly — same card, same type scale — so the
 * bundled copy and anything an editor types sit as siblings without one
 * looking bolted on. */

.bh-nca-seo {
	box-sizing: border-box;
	margin: 20px 0 0;
	color: #16181d;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.75;
}

.bh-nca-seo *,
.bh-nca-seo *::before,
.bh-nca-seo *::after {
	box-sizing: inherit;
}

.bh-nca-seo__intro,
.bh-nca-seo__faq {
	padding: 22px 24px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.bh-nca-seo__intro + .bh-nca-seo__faq {
	margin-top: 16px;
}

.bh-nca-seo__title {
	margin: 0 0 12px;
	color: #16181d;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.bh-nca-seo__text {
	margin: 0 0 12px;
	color: #374151;
}

.bh-nca-seo__text:last-child {
	margin-bottom: 0;
}

/* -- FAQ accordion --------------------------------------------------------
 *
 * <details>, not a scripted accordion: every answer is in the markup whether
 * the entry is open or shut, so the crawler and a reader with JavaScript off
 * both get the full text, at no script cost. */

.bh-nca-faq__list {
	border-top: 1px solid #e5e7eb;
}

.bh-nca-faq__item {
	border-bottom: 1px solid #e5e7eb;
}

/* display:block rather than flex: Safari mishandles a flex <summary>, and the
   icon is positioned anyway. */
.bh-nca-faq__q {
	display: block;
	position: relative;
	padding: 14px 34px 14px 0;
	color: #16181d;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
}

/* Safari / Chrome still draw their own marker without this. */
.bh-nca-faq__q::-webkit-details-marker {
	display: none;
}

.bh-nca-faq__q:hover,
.bh-nca-faq__item[open] > .bh-nca-faq__q {
	color: #e01e26;
}

.bh-nca-faq__q:focus-visible {
	outline: 2px solid #e01e26;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Chevron, drawn from two borders so the block ships no icon font or SVG. */
.bh-nca-faq__icon {
	position: absolute;
	top: 16px;
	right: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f6f7f9;
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.bh-nca-faq__icon::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 5px;
	width: 7px;
	height: 7px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
}

.bh-nca-faq__item[open] > .bh-nca-faq__q .bh-nca-faq__icon {
	transform: rotate(180deg);
	background: #fdeaea;
}

.bh-nca-faq__item[open] > .bh-nca-faq__q .bh-nca-faq__icon::before {
	border-color: #e01e26;
}

.bh-nca-faq__a {
	padding: 0 34px 16px 0;
}

.bh-nca-faq__a p {
	margin: 0;
	color: #4b5563;
	font-size: 14.5px;
	line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
	.bh-nca-faq__icon {
		transition: none;
	}
}

@media (max-width: 640px) {
	.bh-nca-seo {
		font-size: 14.5px;
	}

	.bh-nca-seo__intro,
	.bh-nca-seo__faq {
		padding: 16px 16px;
	}

	.bh-nca-seo__title {
		font-size: 19px;
	}

	.bh-nca-faq__q {
		font-size: 15px;
	}

	.bh-nca-faq__a {
		padding-right: 0;
	}
}
