/* ==========================================================================
   Header — Logo
   ========================================================================== */

.site-branding__heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.site-title {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	text-decoration: none;
}

.site-title:hover {
	text-decoration: none;
	color: inherit;
}

.site-logo-icon {
	color: #fff;
	flex-shrink: 0;
}

.site-logo-text {
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	font-size: var(--fs-lg);
	color: var(--color-text);
}

/* ==========================================================================
   Header — Right group (nav + search)
   ========================================================================== */

.site-header__right {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

/* ==========================================================================
   Header — Search button
   ========================================================================== */

.header-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: var(--space-1);
	cursor: pointer;
	color: #bbb;
	flex-shrink: 0;
	transition: color 0.15s;
	line-height: 0;
}

.header-search-btn:hover,
.header-search-btn[aria-expanded="true"] {
	color: #fff;
}

/* ==========================================================================
   Header — Search form (slide-down)
   ========================================================================== */

.header-search-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.22s ease;
	background: var(--color-card);
}

.header-search-wrap.is-open {
	max-height: 80px;
}

.header-search-inner {
	max-width: var(--container-archive);
	margin: 0 auto;
	padding: var(--space-3) var(--space-4);
}

.header-search-inner form {
	display: flex;
	align-items: center;
}

.header-search-inner input[type="search"] {
	flex: 1;
	background: none;
	border: none;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
	font-size: var(--fs-base);
	font-family: var(--font-base);
	padding: var(--space-2) 0;
	outline: none;
	-webkit-appearance: none;
}

.header-search-inner input[type="search"]::placeholder {
	color: var(--color-text-mute);
}

.header-search-inner input[type="search"]:focus {
	border-bottom-color: var(--color-accent);
}

/* ==========================================================================
   Footer — ao-footer (editorial)
   ========================================================================== */

.ao-footer {
	background: var(--color-card);
	padding-bottom: var(--space-12);
	margin-top: var(--space-12);
	color: #888;
	font-size: var(--fs-sm);
}

.ao-footer__accent {
	height: 1px;
	background: var(--color-accent);
	max-width: var(--container-archive);
	width: 100%;
	margin: 0 auto;
}

.ao-footer__inner {
	max-width: var(--container-archive);
	margin: 0 auto;
	padding: var(--space-8) var(--space-4) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-6);
}

.ao-footer__brand {
	text-align: center;
}

.ao-footer__logo {
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	color: var(--color-text);
	margin-bottom: var(--space-2);
}

.ao-footer__tagline {
	font-size: var(--fs-sm);
	color: var(--color-text-mute);
}

.ao-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-6);
}

.ao-footer__nav a {
	color: #bbb;
	font-size: var(--fs-sm);
	text-decoration: none;
	transition: color 0.15s;
}

.ao-footer__nav a:hover {
	color: #fff;
	text-decoration: none;
}

.ao-footer__operator {
	color: #777;
	font-size: 12px;
	text-align: center;
	line-height: var(--lh-base);
}

.ao-footer__operator p + p {
	margin-top: var(--space-1);
}

.ao-footer__copyright {
	color: #666;
	font-size: 11px;
	text-align: center;
	margin-top: var(--space-2);
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 640px) {
	.site-header__right {
		width: 100%;
		justify-content: space-between;
	}

	.ao-footer__nav {
		flex-direction: column;
		align-items: center;
		gap: var(--space-3);
	}
}
