/* Midlands Greek & Cypriot Association — modern static site */
:root {
  --sea-900: #0b2d45;
  --sea-800: #123d5c;
  --sea-700: #1a5080;
  --sea-500: #2a6fa3;
  --aegean: #3d8bc4;
  --sand-50: #fdfbf7;
  --sand-100: #f5efe4;
  --sand-200: #e8dcc8;
  --terracotta: #c45c3e;
  --terracotta-dark: #9e4329;
  --gold: #b8952e;
  --olive: #4a5d3a;
  --text: #1c1f24;
  --text-muted: #5c6470;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 45, 69, 0.12);
  --shadow-sm: 0 8px 24px rgba(11, 45, 69, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

/* Static copy: default cursor; only form fields look editable */
html {
  cursor: default;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
td,
th,
blockquote,
figcaption,
label:not([for]) {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

a,
button,
.btn,
[role="button"],
label[for],
summary {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand-50);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(61, 139, 196, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at -10% 30%, rgba(196, 92, 62, 0.08), transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--sea-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 61, 92, 0.08);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(18, 61, 92, 0.2);
  background: var(--white);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  color: var(--sea-800);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sea-800);
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(42, 111, 163, 0.1);
  color: var(--sea-700);
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--sea-700), var(--sea-500));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--aegean);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(196, 92, 62, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--sea-800);
  border: 1px solid rgba(18, 61, 92, 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--sea-700);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.02rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  color: var(--sea-700);
  border: 2px solid rgba(26, 80, 128, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: rgba(26, 80, 128, 0.07);
  color: var(--sea-800);
  border-color: rgba(26, 80, 128, 0.5);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--aegean);
  outline-offset: 2px;
}

.btn-lg.btn-outline {
  padding: 14px 26px;
  font-size: 1.02rem;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
}

.cta-strip--donate {
  padding: 1.35rem 1.15rem;
  background: linear-gradient(135deg, rgba(184, 149, 46, 0.12), rgba(61, 139, 196, 0.1));
  border-radius: var(--radius);
  border: 1px solid rgba(184, 149, 46, 0.28);
  margin: 1.5rem 0;
}

.cta-strip--forms {
  padding: 1.35rem 1.15rem;
  background: linear-gradient(180deg, rgba(26, 80, 128, 0.06), rgba(26, 80, 128, 0.02));
  border: 1px solid rgba(18, 61, 92, 0.12);
  border-radius: var(--radius);
  margin: 1.5rem 0 0.5rem;
}

.doc-block {
  margin: 1.75rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(18, 61, 92, 0.1);
}

.doc-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-block h2 {
  margin-top: 0;
}

.doc-block p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.doc-filename {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

.doc-source-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 0;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* Home layout: keep sections visually attached */
main:not(.page-main) {
  padding-top: 0;
}

.hero--home + .prose-shell.section {
  margin-top: 0;
}

/* Inner pages: title band + card surfaces (content unchanged) */
.page-main {
  padding-top: 0;
}

/* Inner pages use the same spacious container feel as home */
main.page-main {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

main.page-main.page-main--about {
  max-width: min(78rem, 100%);
}

main.page-main .page-hero--band {
  text-align: center;
}

main.page-main .page-hero--band::before {
  margin-left: auto;
  margin-right: auto;
}

main.page-main > article.prose,
main.page-main > div.prose,
main.page-main > nav.prose,
main.page-main > p.prose {
  margin-left: auto;
  margin-right: auto;
  max-width: min(102ch, 100%);
  width: 100%;
}

main.page-main > .section:has(.grid-cards),
main.page-main > .section.grid-cards,
main.page-main > .notice {
  max-width: none;
  width: 100%;
}

.page-hero--band {
  margin: 0 -20px 0;
  padding: 26px 20px 30px;
  background: linear-gradient(
    165deg,
    rgba(26, 80, 128, 0.09) 0%,
    transparent 55%,
    rgba(196, 92, 62, 0.06) 100%
  );
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-hero--band::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--aegean));
  margin-bottom: 14px;
}

.page-hero--band .breadcrumb {
  margin-top: 0;
}

.page-hero--band h1 {
  margin-bottom: 0.25em;
}

.page-hero--band .lead {
  margin-top: 10px;
  margin-bottom: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.page-hero--plain::before {
  display: none;
}

.page-hero--about {
  text-align: center;
  padding-top: 18px;
  padding-bottom: 20px;
}

.about-title {
  margin: 0;
  line-height: 1.08;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: 0.005em;
}

.about-title span {
  display: block;
}

.about-title span + span {
  margin-top: 6px;
}

.about-title span:first-child {
  font-size: 0.78em;
  letter-spacing: 0.02em;
}

.about-title span:last-child {
  font-size: 0.8em;
}

.page-main > *:not(.page-hero) {
  background: var(--white);
  border: 1px solid rgba(18, 61, 92, 0.07);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  margin-top: 0;
  margin-bottom: 20px;
}

/* Remove first content gap below each inner-page hero */
.page-main > .section {
  margin-top: 0;
}

.page-main > *:not(.page-hero):last-child {
  margin-bottom: 0;
}

.page-main > *:not(.page-hero) .section {
  margin-top: 0;
}

.page-main > nav.prose h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.page-main > nav.prose h2 a {
  display: block;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(245, 239, 228, 0.65), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(18, 61, 92, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--sea-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-main > nav.prose h2 a:hover {
  border-color: rgba(42, 111, 163, 0.35);
  box-shadow: var(--shadow-sm);
  color: var(--sea-700);
}

.page-main > nav.prose {
  display: grid;
  gap: 10px;
}

.page-main .grid-cards {
  margin: 0;
}

.links-section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--sea-900);
  margin: 0 0 16px;
}

/* Home: richer hero without changing copy */
.hero--home {
  position: relative;
  padding: 28px 0 34px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(
    165deg,
    rgba(26, 80, 128, 0.07) 0%,
    transparent 42%,
    rgba(196, 92, 62, 0.06) 100%
  );
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero--home .hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero--home .hero-copy::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--aegean));
  margin: 0 auto 14px;
}

.hero--home .hero-title-full {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--sea-900);
  max-width: none;
}

.hero--home .hero-title-full span {
  display: block;
  white-space: nowrap;
}

.hero--home .hero-title-greek {
  font-size: 1.55em;
}

.hero--home .hero-title-english {
  font-size: 1.05em;
  margin-top: 4px;
}

.hero--home .hero-greek {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sea-700);
  margin: 0 0 14px;
  white-space: nowrap;
}

.hero--home .hero-actions {
  margin-top: 8px;
  justify-content: center;
}

.hero--home .hero-card {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 430px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: none;
}

.hero--home.hero {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero--home .hero-card:hover {
  box-shadow: none;
  transform: none;
}

.hero--home .hero-card img {
  margin-bottom: 0;
  width: min(100%, 390px);
  margin-left: auto;
  margin-right: 0;
  border-radius: 0;
}

.hero--home .hero-card::after {
  display: none;
}

/* Main story in a readable card */
.prose-shell {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px);
  box-shadow: 0 10px 28px rgba(11, 45, 69, 0.06);
  border: 1px solid rgba(18, 61, 92, 0.05);
}

.prose-shell .prose {
  max-width: 72ch;
  margin: 0 auto;
}

.prose-shell--home .prose {
  max-width: min(102ch, 100%);
}

.prose-shell--home .prose p {
  margin-bottom: 0.8rem;
}

.prose-shell .prose > h2:first-child {
  margin-top: 0;
}

.callout--donate {
  margin: 2rem 0;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(184, 149, 46, 0.12), rgba(61, 139, 196, 0.1));
  border: 1px solid rgba(184, 149, 46, 0.28);
}

.callout--donate h2 {
  margin-top: 0 !important;
}

.greek-panel {
  margin: 2rem 0;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 80, 128, 0.06), rgba(26, 80, 128, 0.02));
  border: 1px solid rgba(26, 80, 128, 0.12);
  border-left: 4px solid var(--sea-500);
}

.greek-panel p {
  margin: 0 0 1rem;
}

.chairman-split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr minmax(200px, 340px);
  align-items: start;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(18, 61, 92, 0.1);
}

@media (max-width: 800px) {
  .chairman-split {
    grid-template-columns: 1fr;
  }
}

.chairman-split .chairman-text {
  margin: 0;
}

.chairman-split .chairman-text h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--sea-900);
}

.chairman-message {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--sea-800);
  margin: 0 0 1rem;
}

.chairman-split figure {
  margin: 0;
  padding: 12px;
  background: var(--sand-100);
  border-radius: var(--radius);
  border: 1px solid rgba(18, 61, 92, 0.08);
}

.chairman-split img {
  border-radius: calc(var(--radius) - 4px);
  width: 100%;
  height: auto;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 48px 0 56px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--sea-900);
}

.hero-greek {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--sea-700);
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 61, 92, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(61, 139, 196, 0.06), transparent 45%);
  pointer-events: none;
}

.hero-card img {
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.hero-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  margin: 0;
  color: var(--sea-900);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tab {
  border: 1px solid rgba(18, 61, 92, 0.18);
  background: var(--white);
  color: var(--sea-800);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.project-tab:hover {
  border-color: rgba(18, 61, 92, 0.35);
}

.project-tab.is-active {
  background: var(--sea-800);
  border-color: var(--sea-800);
  color: var(--white);
}

.about-tabs-wrap {
  background: var(--white);
  border: 1px solid rgba(18, 61, 92, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.about-tab {
  border: 1px solid rgba(18, 61, 92, 0.16);
  background: var(--sand-50);
  color: var(--sea-800);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.about-tab:hover {
  border-color: rgba(18, 61, 92, 0.35);
}

.about-tab.is-active {
  background: var(--sea-800);
  border-color: var(--sea-800);
  color: var(--white);
}

.about-tab-panel {
  border: 1px solid rgba(18, 61, 92, 0.1);
  border-radius: var(--radius);
  background: var(--sand-50);
  padding: 16px;
}

.page-main--about .about-tab-panel .section {
  margin-top: 20px;
}

.about-loading {
  margin: 8px 0;
  color: var(--text-muted);
}

.about-panel .page-hero {
  display: none;
}

.about-panel > .section:first-child {
  margin-top: 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 61, 92, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  color: var(--sea-800);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
}

.card .card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--terracotta);
}

.card .card-link:hover {
  text-decoration: underline;
}

.card .card-note {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.project-cards .card.is-hidden {
  display: none !important;
}

.event-hub .project-tabs {
  margin-bottom: 22px;
}

.event-hub .card h3 {
  font-size: 1.2rem;
}

.event-hub .card p {
  font-size: 0.98rem;
}

.event-browser {
  display: grid;
  gap: 18px;
}

.event-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px auto 0;
}

.event-group {
  display: none;
  gap: 14px;
}

.event-group.is-active {
  display: grid;
}

.event-group[hidden] {
  display: none !important;
}

.event-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-past-summary {
  display: grid;
  gap: 12px;
}

.event-past-summary[hidden] {
  display: none !important;
}

.event-past-summary-lead {
  margin: 0;
  max-width: 65ch;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.event-content-panel {
  background: var(--sand-50);
}

.event-content-panel .prose,
.event-content-panel article,
.event-content-panel div {
  max-width: 100%;
}

.event-content-panel h1 {
  font-family: var(--font-display);
  color: var(--sea-900);
  margin-top: 0;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-photo-grid .gallery-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 61, 92, 0.08);
}

.gallery-photo-grid .gallery-thumb img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

.gallery-photo-grid .gallery-thumb:hover {
  box-shadow: var(--shadow);
}

.imported-content img {
  max-width: 100%;
  height: auto;
}

.imported-content iframe {
  max-width: 100%;
}

.imported-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.imported-content td,
.imported-content th {
  border: 1px solid rgba(18, 61, 92, 0.15);
  padding: 8px;
}

/* Legacy import cleanup: hide duplicated old WP chrome/UI */
#toolbar,
#branding,
#sticky_navigation,
.menu-main-menu-container,
.mob-nav,
#rootline,
#secondary.widget-area,
#footer-widget-area,
.site-info,
#tertiary.sidebar-container,
#wpadminbar {
  display: none !important;
}

/* Legacy import layout cleanup: keep primary content full width */
#main.site-main.container_16,
#main.site-main {
  width: 100% !important;
  max-width: 100% !important;
}

#primary.grid_11,
#primary.suffix_1,
#primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.committee-card {
  background: var(--white);
  border: 1px solid rgba(18, 61, 92, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.committee-card:hover {
  border-color: rgba(18, 61, 92, 0.2);
  box-shadow: var(--shadow);
}

.committee-card img {
  width: 100%;
  aspect-ratio: 225 / 235;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 12px;
  background: #f4f4f4;
}

.committee-card h2 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.committee-role {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.committee-desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
}

.committee-card p {
  margin: 0 0 10px;
}

.committee-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.staff-profile {
  max-width: 900px;
  background: var(--white);
  border: 1px solid rgba(18, 61, 92, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(180px, 225px) 1fr;
  gap: 18px 24px;
  align-items: start;
}

.staff-profile img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(18, 61, 92, 0.08);
  grid-column: 1;
  grid-row: 1 / span 6;
}

.staff-profile p {
  margin: 0 0 12px;
  grid-column: 2;
}

.staff-profile p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .staff-profile {
    grid-template-columns: 1fr;
  }

  .staff-profile img,
  .staff-profile p {
    grid-column: 1;
    grid-row: auto;
  }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(42, 111, 163, 0.12);
  color: var(--sea-800);
}

.notice {
  background: linear-gradient(135deg, rgba(184, 149, 46, 0.15), rgba(61, 139, 196, 0.12));
  border: 1px solid rgba(184, 149, 46, 0.35);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 32px 0;
}

.notice strong {
  color: var(--sea-900);
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 12px;
  color: var(--sea-900);
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.page-hero .breadcrumb a {
  font-weight: 600;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 2rem 0 0.75rem;
  color: var(--sea-900);
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--sea-800);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.5rem 0 0.5rem 1.1rem;
  border-left: 4px solid var(--aegean);
  color: var(--text-muted);
  font-style: italic;
}

.prose blockquote p {
  margin: 0;
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 61, 92, 0.08);
}

.contact-box dl {
  margin: 0;
}

.contact-box dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 14px;
}

.contact-box dt:first-child {
  margin-top: 0;
}

.contact-box dd {
  margin: 4px 0 0;
  font-weight: 600;
}

/* Contact page: static card + form as single cards on a centred, transparent wrapper */
.contact-layout {
  display: grid;
  gap: 24px;
}

/* Neutralise the auto card that .page-main applies to direct children (no card-in-card) */
main.page-main > .contact-layout {
  max-width: min(46rem, 100%);
  margin: 0 auto 20px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.contact-box__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--sea-800);
}

/* Contact form (demonstration mock-up) */
.contact-form {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 36px 32px 30px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(61, 139, 196, 0.08), transparent 60%),
    var(--white);
  border: 1px solid rgba(18, 61, 92, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease;
}

/* Accent bar in the association's colours */
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--sea-700),
    var(--aegean) 40%,
    var(--terracotta) 78%,
    var(--gold)
  );
}

.contact-form:focus-within {
  box-shadow: 0 28px 64px rgba(11, 45, 69, 0.18);
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Floating-label fields */
.contact-form .field {
  position: relative;
}

.contact-form .field input,
.contact-form .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--sand-50);
  border: 1.5px solid rgba(18, 61, 92, 0.16);
  border-radius: 12px;
  padding: 22px 16px 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form .field textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 26px;
}

.contact-form .field label {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.16s ease, color 0.16s ease, font-weight 0.16s ease;
}

.contact-form .field input:hover,
.contact-form .field textarea:hover {
  border-color: rgba(18, 61, 92, 0.3);
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: var(--aegean);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(61, 139, 196, 0.16);
}

.contact-form .field input:focus + label,
.contact-form .field input:not(:placeholder-shown) + label,
.contact-form .field textarea:focus + label,
.contact-form .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(0.72);
  color: var(--sea-700);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.contact-form__submit {
  gap: 10px;
}

.contact-form__submit svg {
  transition: transform 0.18s ease;
}

.contact-form__submit:hover svg {
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .contact-form {
    padding: 30px 20px 24px;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-actions {
    justify-content: stretch;
  }

  .contact-form__submit {
    width: 100%;
  }
}

.church-card {
  border-left: 4px solid var(--aegean);
}

.church-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.church-entry {
  background: var(--white);
  border: 1px solid rgba(18, 61, 92, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.church-entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 12px;
  border: 1px solid rgba(18, 61, 92, 0.08);
  background: #f4f4f4;
}

.church-entry h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--sea-900);
}

.church-entry p {
  margin: 0 0 8px;
  color: var(--text);
}

.event-card h3 {
  font-size: 1.1rem;
}

.site-footer {
  background: var(--sea-900);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 20px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer a {
  color: #a8d4f5;
}

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

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-meta {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  opacity: 0.75;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.site-footer > .stalitsa-site-credit {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 0;
  justify-content: flex-end;
}

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(253, 251, 247, 0.98);
    border-bottom: 1px solid rgba(18, 61, 92, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 520px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
  }

  .site-nav a {
    border-radius: 10px;
  }
}

/* Legacy zilla accordion (churches import) */
.church-legacy .zilla-toggle {
  border: 1px solid rgba(18, 61, 92, 0.12);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.church-legacy .zilla-toggle-title {
  display: block;
  padding: 14px 16px;
  background: rgba(42, 111, 163, 0.08);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.church-legacy .zilla-toggle-title:hover {
  background: rgba(42, 111, 163, 0.14);
}

.church-legacy .zilla-toggle[data-id="closed"] .zilla-toggle-inner {
  display: none;
}

.church-legacy .zilla-toggle[data-id="open"] .zilla-toggle-inner {
  display: block;
  padding: 16px;
  border-top: 1px solid rgba(18, 61, 92, 0.08);
}
