.newnav-favorite button,
.newnav-favorite__login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--newnav-border);
	border-radius: 8px;
	background: var(--newnav-surface);
	color: var(--newnav-text);
	font: inherit;
	font-size: 0.875rem;
	text-decoration: none;
	cursor: pointer;
}

.newnav-favorite > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.newnav-favorite button[aria-pressed="true"] {
	border-color: var(--newnav-accent);
	background: var(--newnav-surface-muted);
}

.newnav-favorite button:disabled {
	cursor: default;
	opacity: 0.7;
}

.newnav-favorite [role="status"] {
	display: block;
	margin-top: 4px;
	color: var(--newnav-text-muted);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.newnav-favorite [role="status"]:empty {
	display: none;
}

.newnav-site-card > .newnav-favorite,
.newnav-site-card > .newnav-favorite__login {
	margin-top: 8px;
	align-self: flex-start;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--newnav-accent);
	color: #f8faff;
	transform: translateY(-160%);
}

.skip-link:focus {
	color: #f8faff;
	transform: translateY(0);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 280px;
	min-width: 0;
	flex: 0 1 auto;
}

.custom-logo {
	max-height: 44px;
	width: auto;
}

.site-title {
	margin: 0;
	overflow: hidden;
	font-size: 1.25rem;
	font-weight: 720;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-title a {
	color: var(--newnav-text);
	text-decoration: none;
}

.site-branding__copy {
	min-width: 0;
}

.site-tagline {
	margin: 2px 0 0;
	overflow: hidden;
	color: var(--newnav-text-muted);
	font-size: 0.75rem;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-navigation ul,
.site-footer ul {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-navigation a,
.site-footer a {
	color: var(--newnav-text-muted);
	font-weight: 600;
	text-decoration: none;
}

.site-navigation {
	min-width: 0;
	overflow: hidden;
}

.site-navigation ul {
	flex-wrap: wrap;
	row-gap: 4px;
}

.site-navigation a {
	display: block;
	padding-block: 8px;
	white-space: nowrap;
}

.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a,
.site-navigation a:hover,
.site-footer a:hover {
	color: var(--newnav-text);
}

.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: var(--newnav-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	white-space: nowrap;
}

.header-action {
	color: var(--newnav-text);
	font-weight: 700;
	text-decoration: none;
}

.site-header__actions a {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
}

.header-control,
.search-close {
	min-height: 44px;
	padding: 9px 13px;
	border: 1px solid var(--newnav-border);
	border-radius: 8px;
	background: var(--newnav-surface);
	color: var(--newnav-text);
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.header-control:hover,
.header-control[aria-expanded="true"],
.search-close:hover {
	border-color: var(--newnav-accent);
	background: var(--newnav-surface-muted);
}

.header-control:active,
.search-close:active,
.newnav-button:active {
	transform: translateY(1px);
}

.header-control--menu {
	display: none;
}

.site-search-form {
	max-width: none;
	flex: 1;
	flex-direction: column;
	gap: 8px;
}

.search-label {
	font-size: 0.875rem;
	font-weight: 700;
}

.search-form__row {
	display: flex;
	gap: 12px;
}

.page-header {
	margin-bottom: 32px;
}

.page-title,
.entry-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.entry-title a {
	color: var(--newnav-text);
	text-decoration: none;
}

.page-description,
.entry-summary,
.entry-meta,
.site-description,
.site-info {
	color: var(--newnav-text-muted);
}

.entry-meta {
	margin-top: 8px;
	font-size: 0.875rem;
}

.search-form {
	display: flex;
	align-items: stretch;
	gap: 12px;
	max-width: 640px;
}

.search-field {
	min-width: 0;
	flex: 1;
	padding: 12px 14px;
	border: 1px solid var(--newnav-border);
	border-radius: 8px;
	background: var(--newnav-surface);
	color: var(--newnav-text);
}

.search-submit,
.newnav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--newnav-accent);
	color: var(--newnav-on-accent);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.search-submit:hover,
.newnav-button:hover {
	background: var(--newnav-accent-hover);
	color: var(--newnav-on-accent);
}

.newnav-button--compact {
	min-height: 40px;
	padding: 8px 14px;
}

.newnav-notice {
	padding: 16px 18px;
	border: 1px solid var(--newnav-border);
	border-radius: 8px;
	background: var(--newnav-surface-muted);
	color: var(--newnav-text-muted);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.site-footer__title,
.site-footer__description,
.site-footer__meta p {
	margin: 0;
}

.site-footer__title {
	font-size: 1.1rem;
	font-weight: 750;
}

.site-footer__description {
	max-width: 34ch;
	margin-top: 6px;
	color: var(--newnav-text-muted);
	font-size: 0.875rem;
}

.site-footer__friend-link {
	width: fit-content;
}

.newnav-state {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--newnav-border);
	border-radius: var(--newnav-radius);
	background: var(--newnav-surface);
}

.newnav-state__title,
.newnav-state__message {
	margin: 0;
}

.newnav-state__title {
	font-size: 1.25rem;
}

.newnav-state__message {
	margin-top: 6px;
	color: var(--newnav-text-muted);
}

.newnav-state--error {
	border-color: var(--newnav-accent);
}

.newnav-state__skeleton {
	display: grid;
	gap: 9px;
	width: min(32vw, 280px);
}

.newnav-state__skeleton span {
	display: block;
	height: 10px;
	border-radius: 8px;
	background: var(--newnav-surface-muted);
}

.newnav-state__skeleton span:nth-child(2) {
	width: 78%;
}

.newnav-state__skeleton span:nth-child(3) {
	width: 56%;
}
