/**
 * Interface components.
 *
 * Header, navigation, buttons, cards, forms, footer.
 * Loaded on every page.
 */

/* ==================================================================== Header */

.ite-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--ite-bg) 82%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--ite-border);
	transition: border-color 0.25s var(--ite-ease);
}

/* Browsers without backdrop-filter get a solid bar rather than an
   unreadable translucent one. */
@supports not (backdrop-filter: blur(1px)) {
	.ite-header {
		background: var(--ite-bg);
	}
}

.ite-header.is-scrolled {
	border-bottom-color: var(--ite-border-bright);
	box-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.ite-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ite-4);
	min-height: var(--ite-header-h);
}

/* ====================================================================== Logo */

.ite-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--ite-2);
	color: var(--ite-text);
	text-decoration: none;
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -0.025em;
	flex-shrink: 0;
}

.ite-logo:hover {
	color: var(--ite-text);
}

.ite-logo__mark {
	color: var(--ite-accent);
	transition: transform 0.4s var(--ite-ease);
}

.ite-logo:hover .ite-logo__mark {
	transform: rotate(90deg);
}

/* ================================================================ Navigation */

.ite-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--ite-border-bright);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-surface);
	cursor: pointer;
	color: var(--ite-text);
}

.ite-nav-toggle__bars,
.ite-nav-toggle__bars::before,
.ite-nav-toggle__bars::after {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s var(--ite-ease), opacity 0.2s var(--ite-ease);
}

.ite-nav-toggle__bars {
	position: relative;
}

.ite-nav-toggle__bars::before,
.ite-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.ite-nav-toggle__bars::before { top: -5px; }
.ite-nav-toggle__bars::after  { top: 5px; }

.ite-nav-toggle[aria-expanded="true"] .ite-nav-toggle__bars {
	background: transparent;
}

.ite-nav-toggle[aria-expanded="true"] .ite-nav-toggle__bars::before {
	transform: translateY(5px) rotate(45deg);
}

.ite-nav-toggle[aria-expanded="true"] .ite-nav-toggle__bars::after {
	transform: translateY(-5px) rotate(-45deg);
}

.ite-nav {
	display: none;
}

.ite-nav.is-open {
	display: block;
	position: fixed;
	inset: var(--ite-header-h) 0 0 0;
	overflow-y: auto;
	padding: var(--ite-6) var(--ite-gutter) var(--ite-16);
	background: var(--ite-bg);
	animation: ite-fade-in 0.2s var(--ite-ease);
}

@keyframes ite-fade-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

.ite-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ite-nav__item {
	position: relative;
}

.ite-nav__link {
	display: block;
	padding: var(--ite-3) 0;
	color: var(--ite-text);
	text-decoration: none;
	font-weight: 550;
	font-size: 1.0625rem;
	border-bottom: 1px solid var(--ite-border);
}

.ite-nav__link:hover {
	color: var(--ite-accent);
}

/* The disclosure button sits beside the parent link on mobile so the
   link itself stays tappable. */
.ite-nav__item--has-panel > .ite-nav__link {
	display: inline-block;
	border-bottom: 0;
}

.ite-nav__disclosure {
	position: absolute;
	top: 0.35rem;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--ite-border);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-surface);
	color: var(--ite-text-muted);
	cursor: pointer;
	transition: transform 0.2s var(--ite-ease), color 0.2s var(--ite-ease);
}

.ite-nav__disclosure:hover {
	color: var(--ite-accent);
	border-color: var(--ite-accent-border);
}

.ite-nav__disclosure[aria-expanded="true"] {
	transform: rotate(180deg);
	color: var(--ite-accent);
}

.ite-nav__item--has-panel {
	border-bottom: 1px solid var(--ite-border);
	padding-bottom: var(--ite-1);
}

.ite-nav__panel {
	display: none;
	padding-block: var(--ite-2) var(--ite-3);
}

.ite-nav__panel.is-open {
	display: block;
}

.ite-nav__sub {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ite-1);
}

.ite-nav__sub .ite-nav__link {
	padding: var(--ite-2) var(--ite-3);
	border: 0;
	border-radius: var(--ite-radius-sm);
	font-size: var(--ite-text-sm);
	font-weight: 500;
	color: var(--ite-text-muted);
}

.ite-nav__sub .ite-nav__link:hover {
	background: var(--ite-surface-2);
	color: var(--ite-text);
}

.ite-nav__sub-title {
	display: block;
	color: var(--ite-text);
	font-weight: 550;
}

.ite-nav__sub-desc {
	display: block;
	margin-top: 1px;
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
	line-height: 1.4;
}

.ite-nav__actions {
	display: flex;
	align-items: center;
	gap: var(--ite-2);
	margin-top: var(--ite-6);
	padding-top: var(--ite-6);
	border-top: 1px solid var(--ite-border);
}

.ite-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	height: 2.375rem;
	border: 1px solid var(--ite-border-bright);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-surface);
	color: var(--ite-text-muted);
	cursor: pointer;
	transition: color 0.2s var(--ite-ease), border-color 0.2s var(--ite-ease);
}

.ite-search-toggle:hover {
	color: var(--ite-accent);
	border-color: var(--ite-accent-border);
}

.ite-nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 2.75rem;
	padding: 0 var(--ite-4);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-accent);
	color: #fff;
	text-decoration: none;
	font-size: var(--ite-text-sm);
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s var(--ite-ease), transform 0.15s var(--ite-ease);
}

.ite-nav__cta:hover {
	background: var(--ite-accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

/* ------------------------------------------------- Desktop navigation */

@media (min-width: 62em) {
	.ite-nav-toggle {
		display: none;
	}

	.ite-nav {
		display: flex;
		align-items: center;
		gap: var(--ite-6);
		position: static;
		padding: 0;
		background: none;
		overflow: visible;
		animation: none;
	}

	.ite-nav__list {
		display: flex;
		align-items: center;
		gap: var(--ite-1);
	}

	.ite-nav__item--has-panel {
		border-bottom: 0;
		padding-bottom: 0;
		display: flex;
		align-items: center;
	}

	.ite-nav__link {
		padding: var(--ite-2) var(--ite-3);
		border: 0;
		border-radius: var(--ite-radius-sm);
		font-size: var(--ite-text-sm);
		font-weight: 550;
		color: var(--ite-text-muted);
		white-space: nowrap;
	}

	.ite-nav__link:hover {
		background: var(--ite-surface-2);
		color: var(--ite-text);
	}

	.ite-nav__item.is-current > .ite-nav__link {
		color: var(--ite-text);
	}

	.ite-nav__item--has-panel > .ite-nav__link {
		display: inline-block;
		padding-right: var(--ite-1);
	}

	.ite-nav__disclosure {
		position: static;
		width: 1.25rem;
		height: 1.25rem;
		border: 0;
		background: none;
		margin-left: -2px;
	}

	/* The panel is positioned relative to the list item, opens on hover
	   and on keyboard focus, and animates from slightly above so the
	   motion reads as unfolding rather than appearing. */
	.ite-nav__panel {
		display: block;
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0;
		z-index: 50;
		min-width: 20rem;
		padding: var(--ite-2);
		background: var(--ite-surface);
		border: 1px solid var(--ite-border-bright);
		border-radius: var(--ite-radius);
		box-shadow: var(--ite-shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.18s var(--ite-ease), transform 0.18s var(--ite-ease), visibility 0.18s;
	}

	.ite-nav__item--has-panel:hover > .ite-nav__panel,
	.ite-nav__item--has-panel:focus-within > .ite-nav__panel,
	.ite-nav__panel.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	/* A small bridge over the gap so the panel does not close when the
	   pointer crosses from the trigger to the panel. */
	.ite-nav__item--has-panel::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: 0.5rem;
	}

	.ite-nav__sub .ite-nav__link {
		padding: var(--ite-2) var(--ite-3);
		white-space: normal;
	}

	.ite-nav__actions {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.ite-nav__cta {
		flex: 0 0 auto;
	}
}

/* ================================================================ Search bar */

.ite-search-bar {
	border-top: 1px solid var(--ite-border);
	background: var(--ite-surface);
	padding-block: var(--ite-3);
	animation: ite-fade-in 0.2s var(--ite-ease);
}

.ite-search-bar__form {
	display: flex;
	align-items: center;
	gap: var(--ite-2);
	position: relative;
}

.ite-search-bar__icon {
	position: absolute;
	left: var(--ite-3);
	color: var(--ite-text-dim);
	pointer-events: none;
}

.ite-search-bar__input {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0 var(--ite-3) 0 2.5rem;
	border: 1px solid var(--ite-border-bright);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-bg);
	color: var(--ite-text);
	font-size: var(--ite-text-base);
}

.ite-search-bar__input::placeholder {
	color: var(--ite-text-dim);
}

/* =================================================================== Buttons */

.ite-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ite-2);
	min-height: 2.875rem;
	padding: var(--ite-3) var(--ite-6);
	border: 1px solid transparent;
	border-radius: var(--ite-radius-sm);
	font-size: var(--ite-text-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	background: none;
	transition: background-color 0.2s var(--ite-ease),
		border-color 0.2s var(--ite-ease),
		transform 0.15s var(--ite-ease),
		box-shadow 0.2s var(--ite-ease);
}

.ite-button--sm {
	min-height: 2.75rem;
	padding: var(--ite-2) var(--ite-3);
	font-size: var(--ite-text-xs);
}

.ite-button--lg {
	min-height: 3.25rem;
	padding: var(--ite-4) var(--ite-8);
	font-size: var(--ite-text-base);
}

.ite-button--primary {
	background: var(--ite-accent);
	border-color: var(--ite-accent);
	color: #fff;
}

.ite-button--primary:hover {
	background: var(--ite-accent-hover);
	border-color: var(--ite-accent-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px var(--ite-accent-dim);
}

.ite-button--primary:active {
	transform: none;
}

.ite-button--secondary {
	background: var(--ite-surface-2);
	border-color: var(--ite-border-bright);
	color: var(--ite-text);
}

.ite-button--secondary:hover {
	background: var(--ite-surface-3);
	border-color: var(--ite-accent-border);
	color: var(--ite-text);
	transform: translateY(-1px);
}

.ite-button--ghost {
	color: var(--ite-text-muted);
	padding-inline: var(--ite-3);
}

.ite-button--ghost:hover {
	color: var(--ite-text);
	background: var(--ite-surface-2);
}

.ite-button__arrow {
	transition: transform 0.2s var(--ite-ease);
}

.ite-button:hover .ite-button__arrow {
	transform: translateX(3px);
}

/* ===================================================================== Cards */

.ite-card {
	display: flex;
	flex-direction: column;
	background: var(--ite-surface);
	border: 1px solid var(--ite-border);
	border-radius: var(--ite-radius);
	overflow: hidden;
	position: relative;
	transition: border-color 0.25s var(--ite-ease),
		transform 0.25s var(--ite-ease),
		box-shadow 0.25s var(--ite-ease);
}

.ite-card:hover {
	border-color: var(--ite-border-bright);
	transform: translateY(-3px);
	box-shadow: var(--ite-shadow);
}

/* A hairline highlight along the top edge on hover, which reads as the
   card lifting toward the light rather than as a border colour change. */
.ite-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ite-accent), transparent);
	opacity: 0;
	transition: opacity 0.25s var(--ite-ease);
}

.ite-card:hover::before {
	opacity: 0.7;
}

.ite-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--ite-surface-2);
	overflow: hidden;
}

.ite-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ite-ease);
}

.ite-card:hover .ite-card__image {
	transform: scale(1.03);
}

.ite-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--ite-2);
	padding: var(--ite-6);
	flex: 1;
}

.ite-card__eyebrow {
	font-size: var(--ite-text-xs);
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--ite-accent);
}

.ite-card__title {
	margin: 0;
	font-size: var(--ite-text-lg);
	line-height: var(--ite-leading-snug);
	letter-spacing: -0.015em;
}

.ite-card__title a {
	color: var(--ite-text);
	text-decoration: none;
}

/* The whole card is clickable via a stretched pseudo-element, while the
   accessible name and focus target remain the title link. */
.ite-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ite-card:hover .ite-card__title a {
	color: var(--ite-accent);
}

.ite-card__excerpt {
	margin: 0;
	font-size: var(--ite-text-sm);
	color: var(--ite-text-muted);
	line-height: var(--ite-leading-snug);
}

.ite-card__meta {
	margin: auto 0 0;
	padding-top: var(--ite-3);
	display: flex;
	flex-wrap: wrap;
	gap: var(--ite-2);
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
}

/* =============================================================== Breadcrumbs */

.ite-breadcrumbs {
	padding-block: var(--ite-6) 0;
}

.ite-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ite-2);
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
}

.ite-breadcrumbs__item {
	display: flex;
	gap: var(--ite-2);
	align-items: center;
}

.ite-breadcrumbs__sep {
	color: var(--ite-border-bright);
}

.ite-breadcrumbs a {
	color: var(--ite-text-dim);
	text-decoration: none;
}

.ite-breadcrumbs a:hover {
	color: var(--ite-accent);
	text-decoration: underline;
}

/* ===================================================================== Forms */

.ite-form__field {
	margin-bottom: var(--ite-4);
}

.ite-form__label {
	display: block;
	margin-bottom: var(--ite-2);
	font-size: var(--ite-text-sm);
	font-weight: 600;
}

.ite-form__input {
	width: 100%;
	min-height: 2.875rem;
	padding: var(--ite-3);
	border: 1px solid var(--ite-border-bright);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-surface);
	color: var(--ite-text);
	font-size: var(--ite-text-base);
	transition: border-color 0.2s var(--ite-ease), box-shadow 0.2s var(--ite-ease);
}

.ite-form__input:focus {
	outline: none;
	border-color: var(--ite-accent);
	box-shadow: 0 0 0 3px var(--ite-accent-dim);
}

.ite-form__input::placeholder {
	color: var(--ite-text-dim);
}

.ite-form__textarea {
	min-height: 10rem;
	resize: vertical;
	line-height: var(--ite-leading);
}

.ite-form__help {
	margin: var(--ite-2) 0 0;
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
}

.ite-form__note {
	margin-top: var(--ite-4);
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
}

.ite-form__honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ite-search-form {
	margin-bottom: var(--ite-8);
}

.ite-search-form__row {
	display: flex;
	gap: var(--ite-2);
}

.ite-search-form__row .ite-form__input {
	flex: 1;
	min-width: 0;
}

/* =================================================================== Notices */

.ite-alert,
.ite-notice {
	padding: var(--ite-4) var(--ite-6);
	border-radius: var(--ite-radius);
	border: 1px solid var(--ite-border);
	border-left-width: 3px;
	background: var(--ite-surface);
	margin-bottom: var(--ite-6);
	font-size: var(--ite-text-sm);
}

.ite-alert p:last-child,
.ite-notice p:last-child {
	margin-bottom: 0;
}

.ite-alert--success {
	background: var(--ite-success-dim);
	border-left-color: var(--ite-success);
}

.ite-alert--error {
	background: var(--ite-error-dim);
	border-left-color: var(--ite-error);
}

.ite-notice--info {
	background: var(--ite-accent-dim);
	border-left-color: var(--ite-accent);
}

/* ==================================================================== Footer */

.ite-footer {
	margin-top: var(--ite-24);
	padding-block: var(--ite-16) var(--ite-6);
	background: var(--ite-surface);
	border-top: 1px solid var(--ite-border);
	font-size: var(--ite-text-sm);
}

.ite-footer__top {
	display: grid;
	gap: var(--ite-8);
	padding-bottom: var(--ite-12);
}

@media (min-width: 40em) {
	.ite-footer__top { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64em) {
	.ite-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.ite-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--ite-2);
	margin: 0 0 var(--ite-3);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ite-text);
	text-decoration: none;
}

.ite-footer__tagline {
	margin: 0 0 var(--ite-3);
	color: var(--ite-text-muted);
	max-width: 34ch;
	line-height: var(--ite-leading-snug);
}

.ite-footer__heading {
	margin: 0 0 var(--ite-3);
	font-size: var(--ite-text-xs);
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ite-text-dim);
}

.ite-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ite-2);
}

.ite-footer__list a {
	color: var(--ite-text-muted);
	text-decoration: none;
}

.ite-footer__list a:hover {
	color: var(--ite-accent);
}

.ite-footer__bottom {
	padding-top: var(--ite-6);
	border-top: 1px solid var(--ite-border);
	display: grid;
	gap: var(--ite-3);
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
}

.ite-footer__copyright,
.ite-footer__disclaimer {
	margin: 0;
}

.ite-footer__disclaimer {
	max-width: 76ch;
	line-height: var(--ite-leading-snug);
}

/* ================================================================= Ad slots */

.ite-ad {
	margin-block: var(--ite-8);
	padding-top: var(--ite-2);
	border-top: 1px solid var(--ite-border);
	text-align: center;
}

.ite-ad__label {
	display: block;
	margin-bottom: var(--ite-2);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ite-text-dim);
}

.ite-ad__body {
	display: flex;
	justify-content: center;
}

/* ============================================================ Empty states */

.ite-empty {
	padding: var(--ite-16) var(--ite-6);
	text-align: center;
	border: 1px solid var(--ite-border);
	border-radius: var(--ite-radius-lg);
	background: var(--ite-surface);
}

.ite-empty__message {
	margin-bottom: var(--ite-4);
	color: var(--ite-text-muted);
}

.ite-empty__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ite-4);
	justify-content: center;
}

/* ================================================================ Pagination */

.ite-pagination {
	margin-top: var(--ite-16);
}

.ite-pagination__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ite-2);
	justify-content: center;
}

.ite-pagination__item a,
.ite-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 var(--ite-3);
	border: 1px solid var(--ite-border);
	border-radius: var(--ite-radius-sm);
	background: var(--ite-surface);
	text-decoration: none;
	font-size: var(--ite-text-sm);
	color: var(--ite-text-muted);
	transition: all 0.2s var(--ite-ease);
}

.ite-pagination__item a:hover {
	border-color: var(--ite-accent-border);
	color: var(--ite-accent);
}

.ite-pagination__item .current {
	background: var(--ite-accent);
	border-color: var(--ite-accent);
	color: #fff;
	font-weight: 650;
}

/* ===================================================================== Badge */

.ite-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--ite-1);
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	background: var(--ite-accent-dim);
	border: 1px solid var(--ite-accent-border);
	color: var(--ite-accent);
	font-size: var(--ite-text-xs);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.ite-badge--muted {
	background: var(--ite-surface-2);
	border-color: var(--ite-border);
	color: var(--ite-text-muted);
}

/* ------------------------------------------------- Footer legal row */

.ite-footer__contact a {
	color: var(--ite-text-muted);
	text-decoration: none;
}

.ite-footer__contact a:hover {
	color: var(--ite-accent);
}

.ite-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ite-3) var(--ite-6);
}

.ite-footer__legal-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ite-4);
}

.ite-footer__legal-links a {
	color: var(--ite-text-dim);
	text-decoration: none;
}

.ite-footer__legal-links a:hover {
	color: var(--ite-accent);
}

/* ============================================================ Main and comments */

/*
 * The main landmark sets the floor height so a short page still pushes the
 * footer to the bottom of the viewport rather than leaving it floating in
 * the middle of the screen.
 */
.ite-main {
	display: block;
	min-height: 60vh;
}

.ite-comments {
	padding-block: var(--ite-24) var(--ite-8);
	border-top: 1px solid var(--ite-border);
	margin-top: var(--ite-24);
}

.ite-comments__title,
.ite-comments__reply-title {
	font-size: var(--ite-text-xl);
	letter-spacing: -0.02em;
	margin: 0 0 var(--ite-6);
}

.ite-comments__list {
	list-style: none;
	margin: 0 0 var(--ite-16);
	padding: 0;
	display: grid;
	gap: var(--ite-6);
}

.ite-comments__closed {
	color: var(--ite-text-muted);
	font-size: var(--ite-text-sm);
}

/*
 * Each footer column is one grid cell holding its own heading and list.
 * `display: contents` here would lift both out of the nav and place them
 * in the grid separately, which puts every heading in one column and its
 * links in another.
 */
.ite-footer__nav {
	display: block;
}

.ite-logo__text {
	white-space: nowrap;
}

/* ========================================================= Search suggestions */

/*
 * The suggestion list hangs below the search field rather than pushing the
 * page down, so the header does not jump as a visitor types.
 */
.ite-search-bar__suggestions {
	position: absolute;
	top: calc(100% + var(--ite-2));
	left: 0;
	right: 0;
	z-index: 60;
	list-style: none;
	margin: 0;
	padding: var(--ite-1);
	max-height: 60vh;
	overflow-y: auto;
	background: var(--ite-surface-2);
	border: 1px solid var(--ite-border-bright);
	border-radius: var(--ite-radius);
	box-shadow: var(--ite-shadow-lg);
}

.ite-search-bar__suggestion {
	margin: 0;
}

.ite-search-bar__suggestion-link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ite-4);
	min-height: 2.75rem;
	padding: var(--ite-2) var(--ite-3);
	border-radius: var(--ite-radius-sm);
	color: var(--ite-text);
	text-decoration: none;
	line-height: var(--ite-leading-snug);
}

.ite-search-bar__suggestion-link:hover,
.ite-search-bar__suggestion.is-active .ite-search-bar__suggestion-link {
	background: var(--ite-accent-dim);
	color: var(--ite-text);
}

.ite-search-bar__suggestion-link:focus-visible {
	outline: 2px solid var(--ite-accent);
	outline-offset: -2px;
}

.ite-search-bar__suggestion-title {
	min-width: 0;
	font-size: var(--ite-text-sm);
	font-weight: 500;
}

/* The kind sits to the right and never pushes the title out of the row. */
.ite-search-bar__suggestion-kind {
	flex-shrink: 0;
	font-size: var(--ite-text-xs);
	color: var(--ite-text-dim);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
