/*!
Theme Name: FANA
Author: Alden Darefsky
Author URI: https://aldendarefsky.com
Description: Theme for the Federation of Aboriginal Nations of the Americas.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fana
Tags: custom-logo, custom-menu, featured-images
*/

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("fonts/playfair-display-latin-800-normal.woff2") format("woff2");
}

:root {
	--color-primary: #12261a;
	--color-primary-soft: #1d3a29;
	--color-accent: #9c3b26;
	--color-accent-hover: #7f2e1c;
	--color-gold: #b8923a;
	--color-sage: #4f6b4a;
	--color-bg: #f8f6f0;
	--color-surface: #eeeade;
	--color-border: #dcd6c4;
	--color-border-strong: #c9c1aa;
	--color-text: #16201a;
	--color-text-muted: #55604f;
	--color-text-light: #7a8374;
	--color-white: #fff;
	--color-on-dark: rgba(255, 255, 255, 0.74);
	--font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--max-width: 1160px;
	--gutter: 1.5rem;
	--radius-sm: 6px;
	--radius: 10px;
	--shadow-sm: 0 1px 2px rgba(18, 38, 26, 0.06), 0 2px 8px rgba(18, 38, 26, 0.04);
	--shadow: 0 8px 24px rgba(18, 38, 26, 0.12);
	--trim: linear-gradient(90deg, var(--color-accent), var(--color-gold) 55%, var(--color-sage));
	--transition: 0.18s ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

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

:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.125rem);
}

h3 {
	font-size: 1.25rem;
}

h4 {
	font-size: 1.125rem;
}

p {
	margin: 0 0 1.25em;
}

ul,
ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.75rem;
	border-left: 3px solid var(--color-gold);
	background: var(--color-surface);
	color: var(--color-text-muted);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-style: italic;
}

blockquote p:last-child {
	margin-bottom: 0;
}

hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--color-border);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.9375rem;
	text-align: left;
}

th {
	background: var(--color-surface);
	font-weight: 600;
}

input,
textarea,
select,
button {
	font: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	background: var(--color-white);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-size: 0.9375rem;
	transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(156, 59, 38, 0.15);
}

.container {
	width: 100%;
	max-width: calc(var(--max-width) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

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

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 1001;
	padding: 0.5rem 1rem;
	background: var(--color-accent);
	color: var(--color-white);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
}

.skip-link:focus {
	top: 0;
	color: var(--color-white);
}

.alignleft {
	float: left;
	margin: 0 2rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 2rem;
}

.aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.wp-caption-text,
figcaption {
	margin-top: 0.5rem;
	color: var(--color-text-light);
	font-size: 0.875rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1.5px solid transparent;
	border-radius: var(--radius-sm);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn svg {
	width: 16px;
	height: 16px;
}

.btn--primary {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-white);
}

.btn--primary:hover {
	background: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	color: var(--color-white);
}

.btn--outline {
	background: transparent;
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.btn--outline:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn--outline-white {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--color-white);
}

.btn--outline-white:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn--text {
	padding: 0;
	background: none;
	color: var(--color-accent);
}

.btn--text:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.btn--small {
	padding: 0.5rem 0.9rem;
	font-size: 0.875rem;
}

.btn--block {
	width: 100%;
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(156, 59, 38, 0.08);
	color: var(--color-accent);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.6;
}

.tag--event {
	background: rgba(79, 107, 74, 0.12);
	color: var(--color-sage);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(18, 38, 26, 0.97);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: calc(var(--max-width) + var(--gutter) * 2);
	height: 76px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-branding__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-branding__seal {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-white);
}

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

.site-title {
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.1;
}

.site-branding__link:hover .site-title {
	color: var(--color-gold);
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	position: relative;
	padding: 0.5rem 0;
	color: var(--color-on-dark);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.main-navigation a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--color-gold);
	transform: scaleX(0);
	transition: transform var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--color-white);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: -1rem;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 300px;
	max-height: 70vh;
	padding: 0.5rem;
	overflow-y: auto;
	background: var(--color-primary);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
	display: flex;
}

.main-navigation ul ul a {
	padding: 0.45rem 0.75rem;
	font-size: 0.875rem;
	letter-spacing: 0;
	text-transform: none;
}

.main-navigation ul ul a::after {
	display: none;
}

.main-navigation ul ul a:hover {
	background: rgba(255, 255, 255, 0.06);
}

.submenu-toggle {
	display: none;
}

.menu-toggle {
	display: none;
	padding: 0.5rem 0.9rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-sm);
	color: var(--color-white);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.site-notice {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 0.875rem;
	text-align: center;
}

.site-notice p {
	margin: 0;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

.site-notice a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-hero,
.page-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--color-primary);
	background-image: radial-gradient(ellipse at 85% 20%, rgba(79, 107, 74, 0.5), transparent 60%);
	color: var(--color-white);
}

.home-hero::after,
.page-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4px;
	background: var(--trim);
}

.home-hero {
	display: flex;
	align-items: center;
	min-height: 520px;
}

.home-hero__media {
	position: absolute;
	inset: 0;
}

.home-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(18, 38, 26, 0.93) 0%, rgba(18, 38, 26, 0.72) 50%, rgba(18, 38, 26, 0.4) 100%);
}

.home-hero__inner {
	display: flex;
	position: relative;
	z-index: 1;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	width: 100%;
	max-width: calc(var(--max-width) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 4.5rem var(--gutter);
}

.home-hero__kicker,
.page-hero__kicker {
	display: inline-block;
	margin: 0 0 1rem;
	color: var(--color-gold);
	font-size: 0.9375rem;
	font-weight: 600;
}

a.page-hero__kicker:hover {
	color: var(--color-white);
}

.home-hero__title {
	max-width: 700px;
	margin: 0 0 1.25rem;
	color: var(--color-white);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.1;
}

.home-hero__tagline {
	max-width: 540px;
	margin: 0 0 2.25rem;
	color: var(--color-on-dark);
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
}

.home-hero__seal {
	flex-shrink: 0;
	width: min(320px, 32vw);
	height: auto;
	border-radius: 50%;
	background: var(--color-white);
	box-shadow: 0 0 0 6px rgba(184, 146, 58, 0.55), var(--shadow);
}

.page-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 4.5rem;
	padding-bottom: 4rem;
}

.page-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
	color: var(--color-on-dark);
	font-size: 0.875rem;
	font-weight: 500;
}

.page-hero__back svg {
	width: 16px;
	height: 16px;
}

.page-hero__back:hover {
	color: var(--color-white);
}

.page-hero__kicker {
	display: block;
	width: fit-content;
	margin-bottom: 0.75rem;
}

.page-hero__title {
	max-width: 860px;
	margin: 0;
	color: var(--color-white);
	font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

.page-hero__lede {
	max-width: 640px;
	margin: 1rem 0 0;
	color: var(--color-on-dark);
	font-size: 1.125rem;
}

.page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--color-on-dark);
	font-size: 0.9375rem;
}

.page-hero__media {
	position: absolute;
	inset: 0;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel {
	position: relative;
	overflow: hidden;
	background: var(--color-primary);
}

.carousel__viewport {
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
}

.carousel__track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.carousel__slide {
	display: flex;
	position: relative;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	height: 420px;
	overflow: hidden;
	background-color: #000;
}

.carousel__slide::before {
	content: "";
	position: absolute;
	inset: -30px;
	z-index: 1;
	background-image: inherit;
	background-position: center;
	background-size: cover;
	filter: blur(18px) brightness(0.6);
}

.carousel__slide img {
	position: relative;
	z-index: 2;
	width: auto;
	height: 100%;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

.carousel__button {
	display: flex;
	position: absolute;
	top: 50%;
	z-index: 3;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(18, 38, 26, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	color: var(--color-white);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color var(--transition), border-color var(--transition);
}

.carousel__button svg {
	width: 24px;
	height: 24px;
}

.carousel__button:hover {
	background: var(--color-primary);
	border-color: var(--color-gold);
}

.carousel__button--prev {
	left: 1.25rem;
}

.carousel__button--next {
	right: 1.25rem;
}

.section {
	padding: 5rem 0;
}

.section--tight {
	padding: 2.5rem 0;
}

.section--surface {
	background: var(--color-surface);
}

.section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2.25rem;
}

.section__title {
	margin: 0;
}

.intro {
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
}

.intro__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.intro__inner p {
	margin-bottom: 2rem;
	color: var(--color-text-muted);
	font-size: 1.125rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1.5rem;
}

.card-grid--nations {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.post-card,
.nation-card,
.document-card,
.sidebar-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.post-card {
	display: flex;
	position: relative;
	flex-direction: column;
	overflow: hidden;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.post-card:hover,
.document-card:hover,
.nation-card:hover {
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow);
}

.post-card--event {
	border-top: 3px solid var(--color-sage);
}

.post-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-surface);
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.post-card__tags {
	display: flex;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
}

.post-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.post-card__title a,
.nation-card__title a {
	color: var(--color-primary);
}

.post-card__title a::after,
.nation-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card:hover .post-card__title a,
.nation-card:hover .nation-card__title a {
	color: var(--color-accent);
}

.post-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.post-card__meta li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.post-card__meta svg {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	color: var(--color-text-light);
}

.post-card__excerpt {
	margin: 1rem 0 0;
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

.nation-card {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.75rem 1.25rem;
	text-align: center;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.nation-card__emblem {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--color-surface);
	color: var(--color-sage);
}

.nation-card__emblem img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nation-card__emblem svg {
	width: 48px;
	height: 48px;
}

.nation-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	background: var(--color-white);
	border: 1px solid var(--color-border-strong);
	border-radius: 999px;
	color: var(--color-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.chip:hover,
.chip--active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.quicklinks {
	background: var(--color-primary);
}

.quicklinks__header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.quicklinks__header h2 {
	color: var(--color-white);
}

.quicklinks__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.quicklink {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	transition: background-color var(--transition), border-color var(--transition);
}

.quicklink:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 146, 58, 0.55);
}

.quicklink__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1.25rem;
	background: rgba(184, 146, 58, 0.16);
	border-radius: var(--radius-sm);
	color: var(--color-gold);
}

.quicklink__icon svg {
	width: 22px;
	height: 22px;
}

.quicklink h3 {
	margin: 0 0 0.4rem;
	color: var(--color-white);
	font-size: 1.15rem;
}

.quicklink p {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.prose,
.article,
.article-footer {
	max-width: 760px;
}

.article,
.article-footer {
	margin: 0 auto;
}

.article__lede {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-family: var(--font-heading);
	font-size: 1.3rem;
	line-height: 1.6;
}

.container.article-footer {
	max-width: calc(760px + var(--gutter) * 2);
	padding-bottom: 5rem;
}

.prose__figure {
	margin: 0 0 2rem;
	overflow: hidden;
	border-radius: var(--radius);
}

.prose__footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	font-size: 0.875rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h2 {
	margin-top: 2.5rem;
}

.entry-content h3 {
	margin-top: 2rem;
}

.entry-content li {
	margin-bottom: 0.35rem;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content .wp-block-button a {
	text-decoration: none;
}

.page-links {
	display: flex;
	gap: 0.5rem;
	margin-top: 2rem;
	font-weight: 600;
}

.video-embed {
	margin: 2rem 0;
	overflow: hidden;
	border-radius: var(--radius);
}

.video-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1.25rem 1.5rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	transition: border-color var(--transition);
}

.post-navigation a:hover {
	border-color: var(--color-accent);
}

.post-navigation__dir {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--color-text-light);
	font-size: 0.8125rem;
}

.post-navigation__title {
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.35;
}

.layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 3.5rem;
}

.layout-sidebar__aside {
	display: flex;
	position: sticky;
	top: 100px;
	flex-direction: column;
	gap: 1.25rem;
}

.sidebar-card {
	overflow: hidden;
}

.sidebar-card__title {
	margin: 0;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
}

.sidebar-card__body {
	margin: 0;
	padding: 1.25rem;
}

.sidebar-card__body > p {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

.sidebar-card__body--stack {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sidebar-card--accent {
	border-color: var(--color-accent);
}

.sidebar-card--accent .sidebar-card__title {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-white);
}

.sidebar-card--emblem {
	margin: 0;
	padding: 1.5rem;
}

.sidebar-card--emblem img {
	width: 100%;
	max-width: 220px;
	margin: 0 auto;
}

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

.link-list li + li {
	border-top: 1px solid var(--color-border);
}

.link-list a {
	display: block;
	padding: 0.8rem 1.25rem;
	color: var(--color-text);
	font-size: 0.9375rem;
}

.link-list a:hover {
	background: var(--color-bg);
	color: var(--color-accent);
}

.link-list--bordered {
	margin-top: 2rem;
	overflow: hidden;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.empty-state {
	padding: 3rem 1.5rem;
	background: var(--color-white);
	border: 1px dashed var(--color-border-strong);
	border-radius: var(--radius);
	color: var(--color-text-muted);
	text-align: center;
}

.empty-state[hidden],
.document-card[hidden] {
	display: none;
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.toolbar__search {
	flex: 1 1 240px;
	max-width: 360px;
}

.toolbar__select {
	padding: 0.7rem 2.25rem 0.7rem 0.9rem;
	background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2355604f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 18px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-size: 0.9375rem;
	appearance: none;
	cursor: pointer;
}

.segmented {
	display: inline-flex;
	margin-left: auto;
	padding: 3px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

.segmented__option {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: var(--color-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.segmented__option svg {
	width: 16px;
	height: 16px;
}

.segmented__option[aria-pressed="true"] {
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	color: var(--color-accent);
}

.document-explorer__count {
	margin: 0 0 1.25rem;
	color: var(--color-text-light);
	font-size: 0.875rem;
}

.document-explorer__items--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1.25rem;
}

.document-card {
	display: flex;
	position: relative;
	flex-direction: column;
	padding: 1.5rem;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.document-card__content {
	flex: 1;
}

.document-card__year {
	margin: 0 0 0.5rem;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
}

.document-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.document-card__title a {
	color: var(--color-primary);
}

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

.document-card__parties {
	margin: 0.5rem 0 0;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.document-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-border);
}

.document-explorer__items--list {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.document-explorer__items--list .document-card {
	flex-direction: row;
	align-items: center;
	gap: 1.5rem;
	padding: 1rem 1.25rem;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.document-explorer__items--list .document-card + .document-card {
	border-top: 1px solid var(--color-border);
}

.document-explorer__items--list .document-card__content {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	align-items: baseline;
	column-gap: 1rem;
}

.document-explorer__items--list .document-card__year {
	margin: 0;
	font-size: 0.95rem;
}

.document-explorer__items--list .document-card__title {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
}

.document-explorer__items--list .document-card__parties {
	grid-column: 2;
	margin-top: 0.15rem;
	font-size: 0.85rem;
}

.document-explorer__items--list .document-card__actions {
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
	border: 0;
}

.document-figure {
	margin: 0 0 2rem;
	overflow: hidden;
	border-radius: var(--radius);
}

.pdf-viewer {
	margin-top: 2.5rem;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
}

.pdf-viewer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-surface);
	font-size: 0.875rem;
}

.pdf-viewer__bar span {
	color: var(--color-text-muted);
	font-weight: 600;
}

.pdf-viewer__bar a {
	flex-shrink: 0;
	font-weight: 600;
}

.pdf-viewer object {
	display: block;
	width: 100%;
	height: 720px;
}

.pdf-viewer__fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 240px;
	padding: 3rem;
	color: var(--color-text-muted);
	text-align: center;
}

.pdf-viewer__fallback p {
	margin: 0;
}

.file-chip {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	color: var(--color-primary);
	font-weight: 600;
	line-height: 1.35;
}

.file-chip svg {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 8px;
	background: rgba(156, 59, 38, 0.1);
	border-radius: var(--radius-sm);
	color: var(--color-accent);
}

.file-chip small {
	display: block;
	color: var(--color-text-light);
	font-size: 0.8125rem;
	font-weight: 400;
}

.meta-list {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.meta-list dt {
	color: var(--color-text-light);
	font-size: 0.8125rem;
}

.meta-list dd {
	margin: 0;
	font-size: 0.9375rem;
}

.pagination {
	margin-top: 3rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	min-width: 40px;
	padding: 0.5rem 0.85rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-weight: 600;
	text-align: center;
}

.pagination a.page-numbers:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.pagination .page-numbers.current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 520px;
	margin: 0 auto;
}

.search-form label {
	flex: 1;
}

.search-form .search-submit {
	padding: 0 1.25rem;
	background: var(--color-accent);
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--color-white);
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--color-accent-hover);
}

.wp-block-gallery {
	margin: 2rem 0;
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--color-primary);
	color: var(--color-on-dark);
	font-size: 0.9375rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
	color: var(--color-white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	padding-top: 4rem;
	padding-bottom: 3rem;
}

.site-footer__name {
	max-width: 360px;
	margin: 0 0 1rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.site-footer__name a {
	color: var(--color-white);
}

.site-footer__heading {
	margin: 0 0 1rem;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li + li {
	margin-top: 0.55rem;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 1.25rem !important;
}

.site-footer__social li + li {
	margin-top: 0;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8125rem;
}

.site-footer__bottom .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 1100px) {
	.main-navigation ul {
		gap: 0.9rem;
	}

	.main-navigation a {
		font-size: 0.6875rem;
	}
}

@media (max-width: 1024px) {
	.layout-sidebar {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.layout-sidebar__aside {
		position: static;
	}

	.quicklinks__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
	}

	.main-navigation.toggled ul {
		display: flex;
		position: absolute;
		top: 76px;
		right: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - 76px);
		padding: 0.75rem var(--gutter) 1.25rem;
		overflow-y: auto;
		background: var(--color-primary);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.main-navigation.toggled a {
		padding: 0.7rem 0;
		font-size: 0.8125rem;
	}

	.main-navigation.toggled .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.main-navigation.toggled .menu-item-has-children > a {
		flex: 1;
	}

	.main-navigation.toggled .submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		background: transparent;
		border: 0;
		color: var(--color-on-dark);
		cursor: pointer;
	}

	.main-navigation.toggled .submenu-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform var(--transition);
	}

	.main-navigation.toggled .submenu-open > .submenu-toggle::before {
		transform: translateY(2px) rotate(-135deg);
	}

	.main-navigation.toggled .submenu-toggle:hover {
		color: var(--color-white);
	}

	.main-navigation.toggled li.submenu-open > ul {
		display: flex;
	}

	.main-navigation.toggled ul ul {
		display: none;
		flex-basis: 100%;
		position: static;
		width: auto;
		max-height: none;
		padding: 0 0 0 1rem;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.main-navigation a::after {
		display: none;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 3.5rem 0;
	}

	.home-hero__inner {
		flex-direction: column-reverse;
		align-items: flex-start;
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.home-hero__seal {
		width: 160px;
	}

	.carousel__slide {
		height: 260px;
	}

	.quicklinks__grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		gap: 2rem;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: auto;
	}

	.document-explorer__items--list .document-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.pdf-viewer object {
		height: 520px;
	}

	.segmented {
		margin-left: 0;
	}

	.site-title {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.site-branding__seal {
		width: 40px;
		height: 40px;
	}

	.home-hero__actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
