/* ==========================================================================
   EDC-FMA redesign: shared design system for all five pages.
   Self-contained (does not depend on the old template's style.css).
   Accent green is the existing site green (#7cc576). To change the accent,
   edit --accent and --accent-ink below.
   ========================================================================== */

:root {
  --ink: #151515;
  --ink-2: #1d1d1d;
  --ink-3: #2a2a2a;
  --paper: #ffffff;
  --stone: #f4f3ef;
  --line: #e0ded6;
  --line-dark: #343434;
  --text: #2a2a2a;
  --muted: #5c5c5c;
  --muted-dark: #bdbdbd;
  --accent: #7cc576;        /* fills, borders, text on dark */
  --accent-ink: #357a31;    /* accent text on light backgrounds (AA contrast) */
  --accent-soft: #a3dc9e;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: #245721; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; color: inherit; }
ul { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid #1f5a1c; outline-offset: 3px; }
.edc-section--dark :focus-visible, .edc-hero :focus-visible, .edc-header :focus-visible, .edc-footer :focus-visible, .edc-sticky :focus-visible { outline-color: var(--accent); }

.edc-wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.edc-narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }
.edc-center { text-align: center; }
.edc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edc-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #0e1a0d; padding: .75rem 1rem; font-weight: 700; }
.edc-skip:focus { left: 0; }
.d-block { display: block !important; }

/* ---------- Header ---------- */
.edc-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid #262626; }
.edc-header__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.edc-logo { display: block; flex: none; }
.edc-logo img { height: 44px; width: auto; max-width: 220px; }
.edc-nav { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; }
.edc-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.edc-nav ul a { display: inline-block; font: 600 .8125rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #e8e8e8; text-decoration: none; padding: .55rem 0; border-bottom: 2px solid transparent; }
.edc-nav ul a:hover, .edc-nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.edc-nav__cta { display: flex; gap: .6rem; }
.edc-nav__cta .edc-btn { min-height: 42px; padding: .6rem 1.1rem; font-size: .75rem; }
.edc-burger { display: none; width: 46px; height: 46px; background: none; border: 1px solid #484848; border-radius: var(--radius); cursor: pointer; position: relative; padding: 0; }
.edc-burger span, .edc-burger span::before, .edc-burger span::after { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; content: ""; transition: transform .2s, top .2s, background .2s; }
.edc-burger span { top: 21px; }
.edc-burger span::before { top: -7px; left: 0; right: 0; }
.edc-burger span::after { top: 7px; left: 0; right: 0; }
.edc-header.is-open .edc-burger span { background: transparent; }
.edc-header.is-open .edc-burger span::before { top: 0; transform: rotate(45deg); }
.edc-header.is-open .edc-burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1179px) {
  .edc-burger { display: block; }
  .edc-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #000; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 24px 1.5rem; border-bottom: 1px solid #262626; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .edc-header.is-open .edc-nav { display: flex; }
  .edc-nav ul { flex-direction: column; gap: 0; }
  .edc-nav ul a { display: block; padding: .95rem 0; border-bottom: 1px solid #2c2c2c; font-size: .875rem; }
  .edc-nav__cta { flex-direction: column; }
  .edc-nav__cta .edc-btn { min-height: 48px; font-size: .8125rem; }
}

/* ---------- Buttons ---------- */
.edc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.7rem; border-radius: 3px; border: 2px solid transparent; font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.edc-btn--primary { background: var(--accent); border-color: var(--accent); color: #0e1a0d; }
.edc-btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #0e1a0d; }
.edc-btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.edc-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.edc-btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.edc-btn--outline:hover { background: var(--ink); color: #fff; }
button.edc-btn { font-family: var(--font-head); }

/* ---------- Typography helpers ---------- */
.edc-eyebrow { font: 600 .8125rem/1.3 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1rem; }
.edc-hero .edc-eyebrow, .edc-section--dark .edc-eyebrow { color: var(--accent); }
.edc-h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
.edc-h3 { font-size: 1.25rem; }
.edc-lead { font-size: 1.2rem; line-height: 1.65; }
.edc-muted { color: var(--muted); }
.edc-micro { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; }
.edc-hero .edc-micro { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.edc-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.edc-hero h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); letter-spacing: -.02em; margin-bottom: .45em; }
.edc-hero p { color: #dcdcdc; }
.edc-hero .edc-lead { color: #fff; }
.edc-hero__media { position: absolute !important; inset: 0; z-index: -2; margin: 0; border: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important; }
.edc-hero__media img { object-position: 60% 40%; }
.edc-hero--home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,21,21,.93) 0%, rgba(21,21,21,.8) 45%, rgba(21,21,21,.4) 100%); }
.edc-hero__in { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 44rem; }
.edc-hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; max-width: 44rem; }
.edc-cta p { font-size: .95rem; line-height: 1.5; margin: .75rem 0 0; color: #c9c9c9; }
.edc-cta .edc-btn { width: 100%; }
@media (max-width: 640px) {
  .edc-hero--home::after { background: linear-gradient(180deg, rgba(21,21,21,.82), rgba(21,21,21,.94)); }
  .edc-hero__cta { grid-template-columns: 1fr; gap: 1.25rem; }
}
/* missing hero image: show a small tag, not a dashed box */
.edc-hero__media.is-missing { background: radial-gradient(circle at 75% 30%, #262626, #151515 70%); }
.edc-hero__media.is-missing::before { position: absolute; right: 16px; bottom: 12px; text-align: right; max-width: 22rem; font-size: .75rem; line-height: 1.4; color: #8a8a8a; white-space: pre-line; }

/* page heroes (split text + image) */
.edc-hero--page .edc-split { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.edc-hero--page h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .3em; }
.edc-hero__sub { font: 600 clamp(1.1rem, 2vw, 1.4rem)/1.4 var(--font-head); color: var(--accent) !important; margin-bottom: 1.25rem; }
.edc-hero--text .edc-hero__in { max-width: 48rem; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.edc-hero__links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; align-items: center; }
.edc-hero a:not(.edc-btn) { color: var(--accent); }
.edc-hero a:not(.edc-btn):hover { color: #fff; }

/* ---------- Sections ---------- */
.edc-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.edc-section--stone { background: var(--stone); }
.edc-section--dark { background: var(--ink); color: #e6e6e6; }
.edc-section--dark h2, .edc-section--dark h3 { color: #fff; }
.edc-section--dark p { color: #d2d2d2; }
.edc-section--dark a:not(.edc-btn) { color: var(--accent); }
.edc-section--tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.edc-section__head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.edc-section__head p:last-child { margin-bottom: 0; }

.edc-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.edc-split--wide-text { grid-template-columns: 1.15fr .85fr; }
.edc-split--rev .edc-split__media { order: -1; }
.edc-split.no-media { grid-template-columns: 1fr; max-width: 46rem; margin-left: auto; margin-right: auto; }
@media (max-width: 859px) {
  .edc-split, .edc-split--wide-text { grid-template-columns: 1fr; }
  .edc-split--rev .edc-split__media { order: 0; }
}
.edc-prose p:last-child { margin-bottom: 0; }

.edc-pull { font: 600 clamp(1.25rem, 2.6vw, 1.75rem)/1.4 var(--font-head); color: #fff; border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 2rem auto 0; max-width: 40rem; text-align: left; }

/* ---------- Media / image placeholders ---------- */
.edc-media { position: relative; margin: 0; background: #232323; border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--ar, 4 / 3); }
.edc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edc-media.is-missing { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; border: 2px dashed #6a6a6a; color: #cfcfcf; background: #262626; }
.edc-section--stone .edc-media.is-missing, .edc-section:not(.edc-section--dark):not(.edc-section--stone) .edc-media.is-missing { background: #ecebe6; border-color: #9a978c; color: #4a4a46; }
.edc-media.is-missing::before { content: "IMAGE NEEDED\A" attr(data-need) "\A" attr(data-file); white-space: pre-line; font-size: .8rem; line-height: 1.5; max-width: 26rem; }
.edc-media--optional.is-missing { display: none; }
.edc-media--tall { --ar: 4 / 5; }

/* ---------- Cards, grids ---------- */
.edc-grid { display: grid; gap: 1.5rem; }
.edc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.edc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.edc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 999px) { .edc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 859px) { .edc-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .edc-grid--2, .edc-grid--4 { grid-template-columns: 1fr; } }
.edc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; height: 100%; }
.edc-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.edc-card p:last-child { margin-bottom: 0; }
.edc-card p { font-size: .98rem; }
.edc-section--dark .edc-card { background: var(--ink-2); border-color: var(--line-dark); }
.edc-card--img { padding: 0; overflow: hidden; }
.edc-card--img .edc-media { border-radius: 0; --ar: 16 / 9; }
.edc-card--img .edc-card__body { padding: 1.5rem 1.75rem 1.75rem; }

/* link cards (home: explore) */
.edc-linkcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color .2s, transform .2s; }
.edc-linkcard:hover { border-color: var(--accent-ink); transform: translateY(-2px); color: inherit; }
.edc-linkcard .edc-media { --ar: 16 / 9; border-radius: 0; }
.edc-linkcard__label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font: 700 .9375rem/1.3 var(--font-head); letter-spacing: .02em; color: var(--ink); }
.edc-linkcard__label span { color: var(--accent-ink); font-size: 1.25rem; }

/* steps */
.edc-step { text-align: center; }
.edc-step__num { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto .85rem; border-radius: 50%; background: var(--accent); color: #0e1a0d; font: 700 1.125rem/1 var(--font-head); }
.edc-card.edc-step { display: flex; flex-direction: column; }
.edc-card.edc-step .edc-step__act { margin-top: auto; padding-top: 1.1rem; }

/* stats */
.edc-stat { text-align: center; padding: .5rem 1rem; }
.edc-stat strong { display: block; font: 700 clamp(1.6rem, 3vw, 2.25rem)/1.15 var(--font-head); color: var(--ink); margin-bottom: .25rem; }
.edc-stat span { color: var(--muted); font-size: .98rem; }

/* fee cards */
.edc-fee strong { display: block; font: 700 2rem/1.1 var(--font-head); color: var(--ink); margin: .35rem 0 .6rem; }
.edc-fee strong small { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* lists with check marks */
.edc-checks { list-style: none; padding: 0; margin: 0 0 1.1em; }
.edc-checks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.edc-checks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .9rem; height: .5rem; border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(-45deg) translateY(-50%); }

/* study items (students page) */
.edc-items { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.edc-item { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.edc-item h3 { font-size: 1.1rem; margin-bottom: .35em; }
.edc-item p { margin: 0; font-size: .98rem; color: var(--muted); }

/* ---------- Weapons relationship diagram ---------- */
.edc-map { display: flex; flex-direction: column; align-items: center; margin-top: 2.5rem; }
.edc-map__root { width: min(100%, 22rem); text-align: center; background: var(--ink-2); border: 2px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.edc-map__root .edc-media { --ar: 16 / 9; border-radius: 0; }
.edc-map__label { padding: 1rem 1.25rem 1.1rem; }
.edc-map__label strong { display: block; font: 700 1.05rem/1.25 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.edc-map__label span { display: block; font-size: .85rem; color: var(--muted-dark); margin-top: .2rem; }
.edc-map__stem { width: 2px; height: 26px; background: #5a5a5a; }
.edc-map__principles { text-align: center; font: 600 .8125rem/1.5 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid #3c3c3c; border-radius: 999px; padding: .6rem 1.4rem; background: #1a1a1a; }
.edc-map__branches { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; width: 100%; padding-top: 26px; margin: 0; list-style: none; padding-left: 0; padding-bottom: 0; }
.edc-map__branches::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px; background: #5a5a5a; }
.edc-map__node { position: relative; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; text-align: center; }
.edc-map__node::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: #5a5a5a; z-index: 1; }
.edc-map__node .edc-media { --ar: 4 / 3; border-radius: 0; }
.edc-map__node .edc-map__label strong { font-size: .9rem; }
.edc-map__caption { margin: 1.75rem auto 0; max-width: 38rem; text-align: center; color: var(--muted-dark); font-size: .95rem; }
@media (max-width: 859px) { .edc-map__branches { grid-template-columns: repeat(2, 1fr); } .edc-map__branches::before { left: 25%; right: 25%; } .edc-map__node:nth-child(n+3)::before { display: none; } .edc-map__node:nth-child(n+3) { margin-top: 0; } }
@media (max-width: 639px) {
  .edc-map__branches { grid-template-columns: 1fr; padding-top: 0; margin-left: 12px; padding-left: 22px; border-left: 2px solid #5a5a5a; }
  .edc-map__branches::before { display: none; }
  .edc-map__node::before, .edc-map__node:nth-child(n+3)::before { display: block; top: 50%; left: -22px; width: 22px; height: 2px; }
  .edc-map__root { width: 100%; }
}

/* ---------- Accordion (details/summary) ---------- */
.edc-acc { max-width: 50rem; margin: 0 auto; border-top: 1px solid var(--line); }
.edc-acc details { border-bottom: 1px solid var(--line); }
.edc-acc summary { cursor: pointer; list-style: none; padding: 1.2rem 2.75rem 1.2rem 0; font: 600 1.0625rem/1.4 var(--font-head); position: relative; color: var(--ink); }
.edc-acc summary::-webkit-details-marker { display: none; }
.edc-acc summary::after { content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--accent-ink); }
.edc-acc details[open] summary::after { content: "\2013"; }
.edc-acc__body { padding: 0 0 1.4rem; color: var(--muted); }
.edc-acc__body p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.edc-timeline { list-style: none; margin: 0; padding: 0; }
.edc-timeline li { position: relative; padding: 0 0 1.5rem 1.75rem; border-left: 2px solid #cfcdc4; margin-left: 6px; }
.edc-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.edc-timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-ink); }
.edc-timeline__when { display: block; font: 700 .75rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.edc-timeline__what { display: block; font-size: .98rem; line-height: 1.5; }
.edc-aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.edc-aside h3 { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }

/* people (history) */
.edc-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 0 2.5rem; }
.edc-people figure { margin: 0; }
.edc-people .edc-media { --ar: 3 / 4; }
.edc-people .edc-media img { object-position: center 20%; }
.edc-people figcaption { margin-top: .75rem; font: 600 .9rem/1.4 var(--font-head); text-align: center; }
@media (max-width: 639px) { .edc-people { grid-template-columns: 1fr; max-width: 20rem; margin-left: auto; margin-right: auto; } }

/* logo explanation */
.edc-logo-block { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.edc-logo-block img { width: 100%; max-width: 220px; margin: 0 auto; }
@media (max-width: 759px) { .edc-logo-block { grid-template-columns: 1fr; } .edc-logo-block img { max-width: 160px; } }

/* ---------- Events (also styles the admin panel's legacy markup) ---------- */
.edc-events .row, .edc-events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 0; }
.edc-events .row + .row { margin-top: 1.5rem; }
.edc-events [class*="col-"] { min-width: 0; }
.edc-events .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; gap: .35rem; }
.edc-events .box h3 { font-size: 1.15rem; margin: .65rem 0 .15rem; color: var(--ink); }
.edc-events .box > span:not(.recommended-badge) { color: var(--muted); font-size: .95rem; }
.edc-events .recommended-badge { align-self: flex-start; font: 700 .7rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: #0e1a0d; padding: .45rem .65rem; border-radius: 2px; }
.edc-events .btn-wrap { margin-top: auto; padding-top: 1rem; }
.edc-events .btn-buy { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.3rem; border: 2px solid var(--ink); border-radius: 3px; font: 600 .75rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.edc-events .btn-buy:hover { background: var(--ink); color: #fff; }

/* ---------- Forms ---------- */
.edc-formcard { max-width: 46rem; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); }
.edc-form { display: grid; gap: 1.15rem; text-align: left; }
.edc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 639px) { .edc-form__row { grid-template-columns: 1fr; } }
.edc-form label { display: block; font: 600 .875rem/1.3 var(--font-head); margin-bottom: .4rem; color: var(--ink); }
.edc-form label small { font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.edc-form input[type="text"], .edc-form input[type="email"], .edc-form input[type="tel"], .edc-form select, .edc-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid #b4b2a8; border-radius: 3px; font: inherit; font-size: 1rem; color: #222; background: #fff; min-height: 48px; }
.edc-form textarea { min-height: 9rem; resize: vertical; }
.edc-form input:focus, .edc-form select:focus, .edc-form textarea:focus { border-color: var(--accent-ink); outline: 3px solid rgba(53,122,49,.25); outline-offset: 0; }
.edc-form__note { font-size: .9rem; color: var(--muted); margin: -.4rem 0 0; }
.edc-form__submit { text-align: center; }
.flower { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }
.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message { display: none; border-radius: 3px; padding: .9rem 1.1rem; font-size: .95rem; line-height: 1.5; }
.php-email-form .loading { background: #f1f1ee; color: #444; text-align: center; }
.php-email-form .error-message { background: #fdecea; color: #7a1f16; border: 1px solid #f2b8b2; }
.php-email-form .sent-message { background: #e8f5e6; color: #1f4d1c; border: 1px solid #b7dcb3; }
.edc-form__status > div { margin-bottom: .5rem; }

/* ---------- Closing band ---------- */
.edc-closing { position: relative; isolation: isolate; text-align: center; background: var(--ink); color: #fff; overflow: hidden; }
.edc-closing .edc-media { position: absolute !important; inset: 0; z-index: -2; margin: 0; border-radius: 0; aspect-ratio: auto !important; }
.edc-closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21,21,21,.8); }
.edc-closing h2 { color: #fff; }
.edc-closing p { color: #d6d6d6; }
.edc-closing__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.edc-footer { background: #000; color: #bdbdbd; font-size: .95rem; }
.edc-footer a { color: #e6e6e6; text-decoration: none; }
.edc-footer a:hover { color: var(--accent); text-decoration: underline; }
.edc-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.edc-footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.edc-footer__brand h3 { font-size: 1.05rem; color: #fff; margin-bottom: .6rem; }
.edc-footer__brand p { font-size: .9rem; line-height: 1.6; margin: 0; }
.edc-footer h4 { font: 700 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.edc-footer ul { list-style: none; margin: 0; padding: 0; }
.edc-footer li { margin-bottom: .5rem; }
.edc-footer__bottom { border-top: 1px solid #2d2d2d; padding: 1.5rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
@media (max-width: 859px) { .edc-footer__top { grid-template-columns: 1fr 1fr; } .edc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 1179px) { .edc-footer__bottom { padding-bottom: 5.5rem; } }

/* ---------- Mobile sticky call-to-action ---------- */
.edc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(21,21,21,.97); border-top: 1px solid #333; transition: transform .25s ease; }
.edc-sticky .edc-btn { flex: 1; min-height: 46px; padding: .6rem .5rem; font-size: .75rem; }
.edc-sticky.is-hidden { transform: translateY(110%); }
@media (max-width: 1179px) { .edc-sticky { display: flex; } }

/* ---------- Additions ---------- */
[hidden] { display: none !important; }
.edc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.edc-pair .edc-media { --ar: 4 / 5; }
.edc-pair .edc-media--optional.is-missing { display: none; }
.edc-soon { text-align: center; margin: 2rem auto 0; max-width: 40rem; }
.edc-soon__label { font: 700 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .85rem; }
.edc-soon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.edc-soon li { border: 1px dashed #9a978c; border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; color: var(--muted); background: var(--paper); }

/* Transparent product-style image (no panel behind it) */
.edc-media--clear { background: transparent; border-radius: 0; overflow: visible; }
.edc-media--clear img { object-fit: contain; }

/* ---------- Chapter detail pages ---------- */
.edc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.edc-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.edc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edc-gallery--1 { grid-template-columns: 1fr; max-width: 40rem; }
.edc-gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 639px) { .edc-gallery, .edc-gallery--2 { grid-template-columns: 1fr; } }
.edc-facts { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.edc-facts li { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.edc-facts li:last-child { border-bottom: 0; }
.edc-facts strong { display: block; font: 600 .78rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.edc-chapter-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.edc-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.5rem; }
.edc-team .edc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }


.edc-team__body { padding: 1.25rem 1.5rem 1.6rem; }
.edc-team__body h3 { margin: 0 0 .1rem; font-size: 1.1rem; }
.edc-team__role { font: 600 .78rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .75rem; }
.edc-team__body p:last-child { margin-bottom: 0; font-size: .95rem; }
.edc-team--1 { grid-template-columns: minmax(0, 22rem); justify-content: center; }
.edc-team .edc-team__media { --ar: 1 / 1; border-radius: 0; }
.edc-team .edc-team__media img { object-position: center 20%; }
.edc-gallery:not(:has(.edc-media:not(.is-missing))) { display: none; }

/* ---------- Text links with arrow, Locations ---------- */
.edc-more { font: 700 .8rem/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.edc-more:hover, .edc-more:focus-visible { border-bottom-color: var(--accent-ink); }
.edc-hero--text .edc-more, .edc-section--dark .edc-more { color: var(--accent); }
.edc-hero--text .edc-more:hover, .edc-section--dark .edc-more:hover { border-bottom-color: var(--accent); }
.edc-loc-region { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.25rem; }
.edc-card h3 a { color: inherit; text-decoration: none; }
.edc-card h3 a:hover { text-decoration: underline; }
.edc-card.edc-loc { display: flex; flex-direction: column; } .edc-card.edc-loc .edc-step__act { margin-top: auto; padding-top: .75rem; }
.edc-more--soon { color: var(--muted); border-bottom: 0; cursor: default; }

/* ---------- Optional hero video (sits over the still image, under the dark overlay) ---------- */
.edc-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; background: transparent; }
@media (prefers-reduced-motion: reduce) { .edc-hero__video { display: none; } }

/* Contact-form confirmation pop-up */
.edc-modal[hidden] { display: none; }
.edc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.edc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.edc-modal__box { position: relative; background: #fff; color: #222; max-width: 28rem; width: 100%; padding: 2rem 1.75rem; border-radius: var(--radius, 6px); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35); outline: none; }
.edc-modal__box h2 { margin: 0 0 .75rem; font-size: 1.6rem; }
.edc-modal__lead { margin: 0 0 .75rem; font-size: 1.05rem; }
.edc-modal__note { margin: 0 0 1.25rem; font-size: .92rem; color: #555; }
.edc-modal__note:empty { display: none; }
html.edc-modal-open { overflow: hidden; }

/* Locations: whole chapter card is the link (the button inside is the real link; its ::after covers the card) */
.edc-loc--link { position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.edc-loc__btn { width: 100%; }
.edc-loc__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.edc-loc--link:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.edc-loc--link:hover .edc-loc__btn { background: var(--ink); color: #fff; }
.edc-loc--link:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.edc-loc__btn:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .edc-loc--link { transition: none; } .edc-loc--link:hover { transform: none; } }

/* ---------- Event cards: whole card is clickable (same behavior as location cards) ---------- */
.edc-events .box { position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.edc-events .btn-buy::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.edc-events .box:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.edc-events .box:hover .btn-buy { background: var(--ink); color: #fff; }
.edc-events .box:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.edc-events .btn-buy:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .edc-events .box { transition: none; } .edc-events .box:hover { transform: none; } }
