/*
Theme Name: Harbor Exchange
Theme URI: https://harborexchange.netlify.app/
Description: Block theme for Harbor Exchange Club (Safety Harbor, Florida). Redesign: warm cream surfaces, Exchange blue and navy, Fraunces headings with Source Sans 3 body text, purposeful sections instead of a photo-and-card background.
Author: Harbor Exchange Club
Version: 2.0.0-candidate
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: harbor-exchange
*/

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("assets/fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--hx-navy: #2b2f5f;
	--hx-blue: #414c96;
	--hx-blue-deep: #2f3878;
	--hx-sky: #eceffa;
	--hx-cream: #fbf8f3;
	--hx-sand: #f1e9dc;
	--hx-gold: #e3a52b;
	--hx-gold-dark: #c98a12;
	--hx-brick: #a31616;
	--hx-ink: #1f2240;
	--hx-muted: #4b5068;
	--hx-line: #ddd5c6;
	--hx-radius: 0.875rem;
	--hx-shadow: 0 1px 2px rgba(31, 34, 64, 0.06), 0 8px 24px rgba(31, 34, 64, 0.08);
	--hx-wide: 72rem;
	--hx-focus: #2b2f5f;
}
.hx-hero, .hx-join, .hx-footer, .hx-pagehead { --hx-focus: #f6c453; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; }
p { margin-block: 0 1em; }
.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;
}

/* ---------- Focus and skip link ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--hx-focus);
	outline-offset: 3px;
	border-radius: 4px;
}
.skip-link.screen-reader-text:focus, .wp-block-template-skip-link:focus {
	position: fixed !important; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; margin: 0; z-index: 2000;
	background: var(--hx-navy); color: #fff; padding: 0.75rem 1.1rem; border-radius: 0.5rem; font-weight: 700; text-decoration: none; outline: 3px solid #f6c453; outline-offset: 2px;
}

/* ---------- Header ---------- */
.hx-header { background: #fff; border-bottom: 1px solid var(--hx-line); position: relative; z-index: 1000; padding: 0.75rem 1.25rem; }
@media (min-width: 900px) {
	.hx-header { position: sticky; top: 0; box-shadow: 0 2px 12px rgba(31, 34, 64, 0.06); }
	.admin-bar .hx-header { top: 32px; }
}
.hx-header__inner { max-width: var(--hx-wide); margin: 0 auto; gap: 1rem 2rem; }
.hx-header .wp-block-site-logo { margin: 0; line-height: 0; }
.hx-header .wp-block-site-logo a { display: inline-block; border-radius: 4px; }
.hx-nav { font-weight: 600; font-size: 1.0625rem; margin-left: auto; }
.hx-nav .wp-block-navigation__container { gap: 0.25rem 1rem; align-items: center; }
.hx-nav .wp-block-navigation-item__content { color: var(--hx-ink); text-decoration: none; padding: 0.6rem 0.5rem; border-radius: 0.375rem; min-height: 44px; display: inline-flex; align-items: center; }
.hx-nav .wp-block-navigation-item__content:hover { color: var(--hx-blue-deep); background: var(--hx-sky); }
.hx-nav .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -3px 0 var(--hx-blue); border-radius: 0; }
.hx-nav .hec-nav-login .wp-block-navigation-item__content {
	background: var(--hx-navy); color: #fff; padding: 0.6rem 1.15rem; border-radius: 0.5rem;
}
.hx-nav .hec-nav-login .wp-block-navigation-item__content:hover { background: var(--hx-blue-deep); color: #fff; }
.hx-nav .hec-nav-logout .wp-block-navigation-item__content { color: var(--hx-muted); }
.hx-nav .wp-block-navigation__submenu-container {
	background: #fff !important; border: 1px solid var(--hx-line) !important; border-radius: 0.75rem;
	box-shadow: var(--hx-shadow); padding: 0.4rem; min-width: 16rem;
}
.hx-nav .wp-block-navigation__responsive-container-open,
.hx-nav .wp-block-navigation__responsive-container-close { color: var(--hx-navy); min-width: 44px; min-height: 44px; }
.hx-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--hx-ink); padding: 1.5rem; }
.hx-nav .is-menu-open .wp-block-navigation__container { gap: 0.5rem; align-items: stretch; font-size: 1.25rem; }
.hx-nav .is-menu-open .wp-block-navigation-item__content { padding: 0.75rem 0.25rem; }
.hx-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.hx-nav .is-menu-open .wp-block-navigation__container,
.hx-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; justify-content: flex-start; text-align: left; width: 100%; }
.hx-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: flex-start; }
.hx-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important; box-shadow: none; background: transparent !important; padding: 0 0 0 1rem; min-width: 0; border-left: 3px solid var(--hx-line) !important; border-radius: 0;
}
.hx-nav .is-menu-open .hec-nav-login { margin-top: 0.75rem; }
.hx-nav .is-menu-open .hec-nav-login .wp-block-navigation-item__content { justify-content: center; width: 100%; }

.hx-nav .wp-block-navigation__submenu-icon { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Page structure ---------- */
.hx-main { margin: 0; }
.hx-pagehead { background: var(--hx-navy); color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; }
.hx-pagehead__inner { max-width: var(--hx-wide); margin: 0 auto; position: relative; z-index: 1; }
.hx-pagehead__inner::after { content: ""; display: block; width: 4.5rem; height: 5px; background: var(--hx-gold); border-radius: 3px; margin-top: 1.1rem; }
.hx-pagehead .wp-block-post-title { color: #fff; margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.hx-pagebody { max-width: calc(var(--hx-wide) + 2.5rem); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem clamp(3rem, 7vw, 5rem); }
.hx-pagebody .wp-block-post-content > * { margin-block: 0 clamp(1.75rem, 4vw, 2.75rem); max-width: none; }
.hx-pagebody .wp-block-post-content > .hx-login-wrap { max-width: 28rem; margin-inline: auto; }
.hx-prose-section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
.hx-prose-section p { max-width: 42rem; color: var(--hx-ink); }
.hx-lead, .hx-lead-block .hx-lead { font-size: 1.3125rem; line-height: 1.55; color: var(--hx-muted); max-width: 44rem; }
.hx-tagline { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; line-height: 1.3; color: var(--hx-brick); }
.hx-prose-section .hx-tagline { max-width: 36rem; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .hx-button, .hec-button {
	min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center;
	text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button__link:hover { background: var(--hx-blue-deep); color: #fff; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--hx-navy); border: 2px solid var(--hx-navy); padding: calc(0.8rem - 2px) calc(1.5rem - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--hx-navy); color: #fff; }
.wp-block-button.is-style-hx-gold .wp-block-button__link { background: var(--hx-gold); color: var(--hx-navy); }
.wp-block-button.is-style-hx-gold .wp-block-button__link:hover { background: #f0b940; color: var(--hx-navy); }
.wp-block-button.is-style-hx-ghost-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.85); padding: calc(0.8rem - 2px) calc(1.5rem - 2px); }
.wp-block-button.is-style-hx-ghost-light .wp-block-button__link:hover { background: #fff; color: var(--hx-navy); }
.hx-hero .wp-block-button__link:focus-visible, .hx-join .wp-block-button__link:focus-visible { outline-color: #fff; }
.hec-button { background: var(--hx-navy); color: #fff !important; padding: 0.8rem 1.4rem; border-radius: 0.5rem; font-weight: 700; border: 0; cursor: pointer; margin-top: 0.5rem; }
.hec-button:hover { background: var(--hx-blue-deep); }
.hec-button--ghost { background: transparent; color: var(--hx-navy) !important; border: 2px solid var(--hx-navy); }
.hec-button--ghost:hover { background: var(--hx-navy); color: #fff !important; }
.wp-block-buttons { gap: 0.75rem; }

/* ---------- Home: hero ---------- */
.hx-hero { background: linear-gradient(135deg, var(--hx-navy) 0%, #323774 55%, #3a4388 100%); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem; overflow: hidden; }
.hx-hero__inner { max-width: var(--hx-wide); margin: 0 auto; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hx-hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.hx-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.875rem; color: #f6c453; margin-bottom: 1rem; }
.hx-eyebrow--dark { color: var(--hx-brick); }
.hx-hero__title { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.hx-hero .hx-lead { color: #e7e9f8; margin-bottom: 1.75rem; }
.hx-hero__image { margin: 0; }
.hx-hero__image img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.25rem; display: block;
	box-shadow: 0 24px 60px rgba(10, 12, 40, 0.45); border: 6px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 900px) { .hx-hero__image img { transform: rotate(1.2deg); } }

/* ---------- Home: sections ---------- */
.hx-section { padding: clamp(2.75rem, 6vw, 5rem) 1.25rem; }
.hx-section__inner { max-width: var(--hx-wide); margin: 0 auto; }
.hx-section__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.5em; }
.hx-section__intro { font-size: 1.1875rem; color: var(--hx-muted); max-width: 40rem; margin-bottom: 2rem; }
.hx-event { background: var(--hx-cream); }
.hx-event__inner { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hx-event__inner { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; } }
.hx-event__card {
	background: #fff; border: 1px solid var(--hx-line); border-left: 6px solid var(--hx-gold); border-radius: var(--hx-radius);
	padding: 1.5rem 1.5rem 1.25rem; box-shadow: var(--hx-shadow); margin: 1rem 0 1.25rem; text-align: left;
}
.hx-event__card p { margin: 0; }
.hec-next-event__name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--hx-navy); line-height: 1.2; margin-bottom: 0.35rem !important; }
.hec-next-event__date { font-size: 1.25rem; font-weight: 600; color: var(--hx-blue-deep); }
.hec-spaghetti-announcement { font-size: 1.25rem; color: var(--hx-ink); margin: 0 0 1.25rem; }
.hec-spaghetti-announcement strong { font-weight: 700; }
.hx-event__poster { margin: 0; justify-self: center; max-width: 22rem; }
.hx-event__poster a { display: block; border-radius: 0.75rem; }
.hx-event__poster img { width: 100%; border-radius: 0.75rem; box-shadow: 0 18px 40px rgba(31, 34, 64, 0.25); display: block; }
.hx-programs { background: var(--hx-sand); }
.hx-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 600px) { .hx-cards--3, .hx-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hx-cards--3 { grid-template-columns: repeat(3, 1fr); } .hx-cards--4 { grid-template-columns: repeat(4, 1fr); } }
.hx-card { background: #fff; border-radius: var(--hx-radius); padding: 1.5rem; box-shadow: var(--hx-shadow); border-top: 5px solid var(--hx-blue); }
.hx-card h3, .hx-card h2 { font-size: 1.3125rem; margin: 0 0 0.5rem; }
.hx-card p { margin: 0; color: var(--hx-muted); }
.hx-card--accent { border-top-color: var(--hx-brick); }
.hx-join { background: var(--hx-navy); color: #fff; }
.hx-join .hx-section__title, .hx-join h3 { color: #fff; }
.hx-join a:not(.wp-block-button__link) { color: #fff; }
.hx-join__inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .hx-join__inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.hx-join__text p { font-size: 1.1875rem; color: #e7e9f8; }
.hx-join__details { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--hx-radius); padding: 1.5rem; }
.hx-join__details h3 { margin-top: 0; font-size: 1.25rem; }
.hx-join__details p { color: #fff; }

/* ---------- About / inner panels ---------- */
.hx-panel { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--hx-shadow); }
.hx-panel h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.hx-panel--accent { background: var(--hx-sky); border-color: #cfd6f1; border-left: 6px solid var(--hx-blue); }
.hx-panel__grid { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .hx-panel__grid { grid-template-columns: repeat(3, 1fr); } }
.hx-panel__label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8125rem; font-weight: 700; color: var(--hx-brick); margin-bottom: 0.25rem; }
.hx-panel__grid p { margin: 0 0 0.5rem; }
.hec-leadership { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.hec-leader { background: #fff; border-radius: var(--hx-radius); padding: 1.25rem 1.25rem 1.1rem; box-shadow: var(--hx-shadow); border-left: 5px solid var(--hx-gold); }
.hec-leader h3 { color: var(--hx-brick); font-family: var(--wp--preset--font-family--body); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; font-weight: 700; margin: 0 0 0.25rem; }
.hec-leader__name { font-family: var(--wp--preset--font-family--heading); font-size: 1.375rem; font-weight: 700; color: var(--hx-navy); margin: 0; }
.hx-link-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.hx-pill {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1.1rem;
	border-radius: 999px; background: var(--hx-sky); color: var(--hx-blue-deep); font-weight: 700; text-decoration: none; border: 1px solid #cfd6f1;
}
.hx-pill:hover { background: var(--hx-navy); color: #fff; border-color: var(--hx-navy); }
.hx-pill__logo { width: 24px; height: 24px; object-fit: contain; }
.hx-pill__icon { width: 18px; height: 18px; fill: currentColor; }
.hx-values .hx-card { border-top-color: var(--hx-gold); }

/* ---------- Our Projects accordion ---------- */
.hec-projects { display: grid; gap: 0.9rem; }
.hec-project { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); box-shadow: 0 1px 2px rgba(31, 34, 64, 0.05); overflow: hidden; }
.hec-project[open] { border-color: var(--hx-blue); box-shadow: var(--hx-shadow); }
.hec-project summary {
	list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem 1rem;
	padding: 1.1rem 1.25rem; min-height: 64px; position: relative;
}
.hec-project summary::-webkit-details-marker { display: none; }
.hec-project summary::after {
	content: ""; width: 0.75rem; height: 0.75rem; border-right: 3px solid var(--hx-blue); border-bottom: 3px solid var(--hx-blue);
	transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 0.35rem; grid-column: 2; grid-row: 1;
}
.hec-project[open] summary::after { transform: rotate(-135deg); }
.hec-project summary:hover { background: var(--hx-cream); }
.hec-project[open] summary { background: var(--hx-sky); }
.hec-project__title { display: flex; flex-direction: column; gap: 0.15rem; grid-column: 1; grid-row: 1; }
.hec-project__name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.3125rem; color: var(--hx-navy); line-height: 1.25; }
.hec-project__date { font-weight: 600; color: var(--hx-blue-deep); font-size: 1rem; }
.hec-project__cta { grid-column: 1; grid-row: 2; font-size: 0.9375rem; font-weight: 600; color: var(--hx-brick); }
.hec-project[open] .hec-project__cta { font-size: 0; }
.hec-project[open] .hec-project__cta::before { font-size: 0.9375rem; content: "Hide details"; }
.hec-project__body { padding: 1.25rem 1.25rem 1.5rem; border-top: 1px solid var(--hx-line); color: var(--hx-ink); max-width: none; animation: hx-fade 0.25s ease; }
@keyframes hx-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hec-project__body p { margin: 0 0 0.9rem; max-width: 46rem; }
.hec-project__body a { color: var(--hx-blue-deep); text-underline-offset: 3px; }
.hec-project__logo { display: block; width: min(100%, 17.5rem); height: auto; margin: 0 0 1.25rem; border-radius: 0.5rem; }
.hec-project__details { margin: 1rem 0 0; padding: 0.9rem 1rem; background: var(--hx-cream); border-radius: 0.625rem; border: 1px solid var(--hx-line); }
.hec-project__details p { margin: 0.15rem 0; }
.hec-ticket-button, .hec-project__body a.hec-ticket-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 1.1rem; padding: 0.8rem 1.6rem;
	border-radius: 0.5rem; background: var(--hx-gold); color: var(--hx-navy) !important; font-weight: 700; text-decoration: none;
}
.hec-ticket-button:hover { background: #f0b940; }
.honor-flight-callout { color: var(--hx-brick); font-weight: 600; display: inline-block; }
.veterans-breakfast-location { color: var(--hx-brick); }

/* ---------- Member login ---------- */
.hx-login-intro { color: var(--hx-muted); text-align: center; }
.hec-login-box { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--hx-shadow); }
.hec-login-box form { display: grid; gap: 1.1rem; margin: 0; }
.hec-login-box p { margin: 0; }
.hec-login-box label { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--hx-navy); }
.hec-login-box input[type="text"], .hec-login-box input[type="password"] {
	width: 100%; min-height: 52px; padding: 0.7rem 0.9rem; border: 2px solid #8b90a7; border-radius: 0.5rem; background: #fff; color: var(--hx-ink); font: inherit;
}
.hec-login-box input[type="text"]:focus, .hec-login-box input[type="password"]:focus { border-color: var(--hx-blue); outline: 3px solid var(--hx-focus); outline-offset: 2px; }
.hec-login-box input[type="submit"] {
	width: 100%; min-height: 52px; border: 0; border-radius: 0.5rem; background: var(--hx-navy); color: #fff; font: inherit; font-weight: 700; font-size: 1.125rem; cursor: pointer;
}
.hec-login-box input[type="submit"]:hover { background: var(--hx-blue-deep); }
.hec-login-help { text-align: center; margin-top: 1.25rem !important; }
.hec-error {
	background: #fdecec; color: #7a1010; border: 1px solid #e9b5b5; border-left: 5px solid var(--hx-brick);
	padding: 0.8rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem;
}
.hec-notice { background: var(--hx-sky); border: 1px solid #cfd6f1; border-radius: 0.5rem; padding: 0.9rem 1rem; }
.hec-empty { background: #fff; border: 1px dashed #b9b2a3; border-radius: var(--hx-radius); padding: 1.5rem; color: var(--hx-muted); text-align: center; margin: 0; }

/* ---------- Member area ---------- */
.hx-member-wrap { max-width: var(--hx-wide); }
.hec-welcome-line { font-size: 1.375rem; font-family: var(--wp--preset--font-family--heading); color: var(--hx-navy); margin-bottom: 0.25rem; }
.hec-name { color: var(--hx-blue-deep); }
.hec-dash-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.hec-dash-links li a {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 72px; padding: 1rem 1.25rem; background: #fff;
	border: 1px solid var(--hx-line); border-left: 5px solid var(--hx-blue); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow);
	text-decoration: none; font-weight: 700; color: var(--hx-navy); font-size: 1.125rem;
}
.hec-dash-links li a::after { content: "\2192"; color: var(--hx-blue); font-size: 1.4rem; }
.hec-dash-links li a:hover { background: var(--hx-sky); }
.hec-meetings h2 { font-size: 1.5rem; margin-top: 0; }
.hec-meeting { background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; box-shadow: 0 1px 2px rgba(31, 34, 64, 0.05); }
.hec-filename { display: block; color: var(--hx-muted); font-size: 0.9375rem; margin-top: 0.15rem; word-break: break-word; }
.hec-meeting__actions { display: flex; gap: 0.5rem; }
.hec-meeting__actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 2px solid var(--hx-navy); border-radius: 0.5rem; font-weight: 700; color: var(--hx-navy); text-decoration: none; }
.hec-meeting__actions a:hover { background: var(--hx-navy); color: #fff; }
.hec-meeting__notes { flex-basis: 100%; }
.hec-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow); }
.hec-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.hec-table th, .hec-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid #ece6d9; vertical-align: middle; }
.hec-table thead th { background: var(--hx-sky); color: var(--hx-navy); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; }
.hec-table tbody tr:nth-child(even) { background: #fcfaf6; }
.hec-table tbody tr:last-child td { border-bottom: 0; }
.hec-badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.9375rem; line-height: 1.4; }
.hec-badge--paid { background: #dff3e4; color: #12602b; border: 1px solid #a8d8b4; }
.hec-badge--due { background: #fdf0d4; color: #7a4c00; border: 1px solid #ecc977; }
.hec-paid td:last-child, .hec-unpaid td:last-child { font-weight: inherit; color: inherit; }
@media (max-width: 640px) {
	.hec-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
	.hec-table, .hec-table tbody, .hec-table tr, .hec-table td { display: block; width: 100%; }
	.hec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.hec-table tr { background: #fff !important; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); margin-bottom: 0.9rem; padding: 0.4rem 0; box-shadow: var(--hx-shadow); }
	.hec-table td { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem; border: 0; padding: 0.5rem 1rem; }
	.hec-table td::before { content: attr(data-label); font-weight: 700; color: var(--hx-navy); }
	.hec-table td:not([data-label])::before { content: none; }
}

/* ---------- Footer ---------- */
.hx-footer { background: #1d2050; color: #e7e9f8; margin: 0; border-top: 4px solid var(--hx-gold); padding: clamp(2.5rem, 5vw, 4rem) 1.25rem 1.5rem; }
.hx-footer__inner { max-width: var(--hx-wide); margin: 0 auto; }
.hx-footer a { color: #fff; text-underline-offset: 3px; }
.hx-footer a:hover { color: var(--hx-gold); }
.hx-footer__cols { gap: 2rem; margin-bottom: 2rem; }
.hx-footer__logo { background: #fff; padding: 0.6rem 0.9rem; border-radius: 0.5rem; display: inline-block; line-height: 0; margin: 0 0 1rem; }
.hx-footer__title { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin: 0 0 0.9rem; }
.hx-footer p { margin-bottom: 0.75rem; }
.hx-footer p a { display: inline-block; padding: 0.3rem 0; }
.hx-footer__nav .wp-block-navigation__container { gap: 0.15rem; }
.hx-footer__nav .wp-block-navigation-item__content { color: #fff; padding: 0.35rem 0; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.hx-footer__nav .wp-block-navigation-item__content:hover { color: var(--hx-gold); text-decoration: underline; }
.hx-footer__base { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.25rem; margin: 0; font-size: 0.9375rem; color: #c9cdea; }
@media (max-width: 781px) { .hx-footer__cols { flex-direction: column; } .hx-footer__cols > .wp-block-column { flex-basis: 100% !important; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.hx-hero__image img { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
	.hx-header__inner .wp-block-site-logo img { width: 190px; height: auto; }
	.hx-hero__actions .wp-block-button, .hx-hero__actions .wp-block-button__link { width: 100%; }
	.hec-project summary { padding: 1rem; }
	.hec-meeting__actions { width: 100%; }
}
