/* v24 Events: upcoming events list, per event registration pages, shared thank-you.
   Builds on styles.css tokens. Hard, clean section edges only (no gradient fades). */

.ev-page main { padding-top: 70px; }
.ev-page h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.12; }

/* ---------- Dark bands */
.ev-hero, .ev-reg-hero, .ev-final { background: var(--teal); color: rgba(244, 241, 238, .9); }
.ev-hero h1, .ev-reg-hero h1, .ev-final h2 { color: var(--ivory); }
.ev-hero h1 em { color: var(--yellow); }
.ev-hero :focus-visible, .ev-reg-hero :focus-visible, .ev-final :focus-visible { outline-color: var(--rose-light); }
.ev-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.ev-hero-inner { max-width: 820px; }
.ev-lead { font-size: clamp(1.05rem, 1.25vw, 1.15rem); line-height: 1.7; max-width: 40rem; }
.ev-lead strong { color: var(--yellow); font-weight: 600; }

/* ---------- Event cards */
.ev-list-wrap { background: var(--ivory); padding: clamp(56px, 7vw, 96px) 0; }
.ev-list { display: grid; gap: 24px; }
.ev-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 32px; align-items: center;
  background: #fff; border-left: 4px solid var(--berry); padding: 32px 36px;
  box-shadow: 0 24px 48px -32px rgba(10, 30, 36, .45);
}
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--teal); color: var(--ivory); padding: 16px 0 14px; text-align: center; }
.ev-month { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.ev-day { font: 400 3rem/1.05 var(--serif); margin: 6px 0 4px; }
.ev-wd { font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ev-kicker { margin: 0 0 .4rem; font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--berry); }
.ev-card-title { font-size: clamp(1.45rem, 2vw, 1.8rem); margin-bottom: .5em; }
.ev-card-title a { text-decoration: none; }
.ev-card-title a:hover { color: var(--berry); }
.ev-meta { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; font-weight: 500; color: var(--teal); }
.ev-meta li { position: relative; }
.ev-meta li + li::before { content: ''; position: absolute; left: -12px; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.ev-card-line { margin: 0; color: var(--text); }
.ev-disclaimer { margin: .9rem 0 0; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.ev-empty { text-align: center; padding: 24px 0; }

/* ---------- Final band */
.ev-final { padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.ev-final-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.ev-final p { margin: 0 0 1.6rem; font-size: 1.05rem; }
.ev-final .btn + p { margin: 1.1rem 0 0; font-size: .92rem; }
.ev-final .btn { white-space: normal; text-align: center; }

/* ---------- Registration hero */
.ev-reg-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.ev-reg-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.ev-back { margin: 0 0 1.4rem; font-size: .88rem; }
.ev-back a { color: var(--rose-light); text-underline-offset: 3px; }
.ev-h1-sub { display: block; margin-top: .45em; font-size: .5em; line-height: 1.25; color: var(--yellow); }
.ev-details { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line-light); }
.ev-details li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: .98rem; line-height: 1.55; }
.ev-details strong { font: 600 .74rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* Form card */
.ev-form-card { background: #fff; color: var(--text); border-top: 4px solid var(--berry); padding: clamp(28px, 3vw, 40px); scroll-margin-top: 90px; }
.ev-form-title { font-size: clamp(1.6rem, 2.2vw, 2rem); margin-bottom: .25em; }
.ev-form-sub { margin: 0 0 1.4rem; font-size: .92rem; color: var(--muted); }
.ev-field { margin-bottom: 14px; }
.ev-field label { display: block; margin-bottom: 6px; font: 600 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.ev-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.ev-field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(15, 46, 54, .28); border-radius: 4px; background: var(--paper); font: 400 1rem/1.3 var(--sans); color: var(--teal); }
.ev-field input:focus { outline: 2px solid var(--berry); outline-offset: 1px; border-color: var(--berry); background: #fff; }
.ev-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .78rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.ev-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--berry); }
.ev-error { margin: 0 0 12px; font-size: .88rem; color: var(--berry); font-weight: 600; }
.ev-submit { width: 100%; min-height: 56px; border: 2px solid var(--berry); border-radius: 999px; background: var(--berry); color: #fff; font: 600 .86rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .3s var(--ease); }
.ev-submit:hover { background: var(--berry-dark); border-color: var(--berry-dark); }
.ev-submit:disabled { opacity: .7; cursor: default; }
.ev-form-privacy { margin: 1rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); text-align: center; }
.ev-form-privacy a { color: var(--berry); }
.ev-form-note { margin: .8rem 0 0; font-size: .74rem; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- Outcomes (ivory) */
.ev-outcomes { background: var(--ivory); padding: clamp(72px, 9vw, 120px) 0; }
.ev-outcomes h2 { margin-bottom: 1.2em; }
.ev-out-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ev-out-grid li { border-top: 2px solid var(--teal); padding-top: 18px; }
.ev-num { display: block; font: 400 2rem/1 var(--serif); color: var(--berry); margin-bottom: 12px; }
.ev-out-grid p { margin: 0; font-size: .98rem; line-height: 1.6; }
.ev-out-grid strong { display: block; color: var(--teal); font-weight: 600; margin-bottom: 6px; }

/* ---------- Quote band (photo, flat teal wash, hard edges) */
.ev-quote { position: relative; overflow: hidden; background: var(--ink); padding: clamp(80px, 10vw, 136px) 0; text-align: center; }
.ev-quote-img { position: absolute; inset: 0; background: url('/assets/img/process-fountain-pen.webp') center/cover no-repeat; }
.ev-quote-img::after { content: ''; position: absolute; inset: 0; background: rgba(15, 46, 54, .84); }
.ev-quote-inner { position: relative; }
.ev-quote-text { margin: 0; font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.2 var(--serif); color: var(--yellow); }

/* ---------- For you if (paper) */
.ev-for { background: var(--paper); padding: clamp(72px, 9vw, 120px) 0; }
.ev-for-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.ev-for-note { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--berry); margin: 0; }
.ev-check { list-style: none; margin: 0; padding: 0; }
.ev-check li { position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); }
.ev-check li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--berry); border-bottom: 2px solid var(--berry); transform: rotate(-45deg); }

/* ---------- Expect + Where (ivory / paper) */
.ev-expect { background: var(--ivory); padding: clamp(72px, 9vw, 120px) 0; }
.ev-where { background: var(--paper); padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.ev-expect-grid, .ev-where-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.ev-expect h2, .ev-where h2 { margin: 0; }
.ev-expect-body p:last-child, .ev-where-body p:last-child { margin-bottom: 0; }
.ev-address { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--teal); }
.ev-link { color: var(--berry); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Thank you */
.ev-ty { background: var(--teal); color: rgba(244, 241, 238, .9); padding: clamp(56px, 8vw, 104px) 0; }
.ev-ty-inner { max-width: 720px; text-align: center; }
.ev-ty h1 { color: var(--ivory); margin-bottom: .6em; }
.ev-ty-event { background: #fff; color: var(--text); border-top: 4px solid var(--berry); padding: 28px clamp(22px, 4vw, 40px); text-align: left; margin-bottom: 20px; }
.ev-ty-when { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.ev-ty-when strong { display: inline-block; margin: 4px 0; font: 400 1.35rem/1.3 var(--serif); color: var(--teal); }
.ev-ty-where { margin: 0 0 1rem; font-weight: 500; color: var(--teal); }
.ev-ty-steps { counter-reset: s; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ev-ty-steps li { counter-increment: s; position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.55; }
.ev-ty-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 12px; font: 400 1.05rem/1.5 var(--serif); color: var(--berry); }
.ev-ty-note { margin: 1.2rem 0 0; font-size: .95rem; }
.ev-ty-note strong { color: var(--yellow); }

/* ---------- Responsive */
@media (max-width: 960px) {
  .ev-reg-grid, .ev-for-grid, .ev-expect-grid, .ev-where-grid { grid-template-columns: 1fr; }
  .ev-out-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-card { grid-template-columns: 96px minmax(0, 1fr); }
  .ev-card-cta { grid-column: 2; }
}
@media (max-width: 640px) {
  .ev-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px; }
  .ev-card-cta { grid-column: auto; }
  .ev-card-cta .btn { width: 100%; white-space: normal; }
  .ev-date { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 10px 16px; align-self: start; width: max-content; }
  .ev-day { font-size: 1.6rem; margin: 0; }
  .ev-out-grid { grid-template-columns: 1fr; }
  .ev-details li { grid-template-columns: 1fr; gap: 2px; }
  .ev-final .btn { width: 100%; padding-inline: 20px; }
}

/* ---------- v24 r2: "What to expect" instructor section (replaces .ev-expect) */
.ev-instructor { position: relative; overflow: hidden; background: var(--ivory); padding: clamp(72px, 9vw, 120px) 0; }
.ev-instructor::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--ink); }
.ev-instructor-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 7vw, 110px); align-items: center; }
.ev-instructor-photo { position: relative; isolation: isolate; max-width: 430px; }
.ev-instructor-photo::after { content: ''; position: absolute; z-index: -1; top: -16px; left: 16px; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; pointer-events: none; }
.ev-arch { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; background: var(--teal); }
.ev-arch img { width: 103%; max-width: none; height: 100%; object-fit: cover; object-position: left 20%; }
.ev-instructor-copy { max-width: 40rem; }
.ev-instructor-copy h2 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); margin-bottom: .7em; }
.ev-instructor-id { padding: 1.2rem 0 1.3rem; margin-bottom: 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-instructor-name { margin: 0 0 .7rem; font: 400 1.5rem/1.2 var(--serif); color: var(--teal); }
.ev-creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ev-creds li { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid rgba(122, 30, 61, .35); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3; color: var(--berry); }
.ev-instructor-lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--teal); margin: 0 0 1.4rem; }
.ev-expect-list { counter-reset: x; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 1.5rem; background: #fff; border-top: 4px solid var(--berry); }
.ev-expect-list li { counter-increment: x; padding: 20px 20px 22px; border-left: 1px solid var(--line); font-size: .92rem; line-height: 1.55; }
.ev-expect-list li:first-child { border-left: 0; }
.ev-expect-list li::before { content: counter(x, decimal-leading-zero); display: block; font: 400 1.5rem/1 var(--serif); color: var(--berry); margin-bottom: 10px; }
.ev-expect-list strong { display: block; margin-bottom: 4px; color: var(--teal); font-weight: 600; }
.ev-bring { margin: 0 0 .9rem; color: var(--teal); }
.ev-bring strong { color: var(--berry); }
.ev-neutral { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.ev-nextstep { margin: 0; font-weight: 500; color: var(--teal); }
.ev-nextstep a { color: var(--berry); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .ev-instructor::before { width: 100%; height: 300px; bottom: auto; }
  .ev-instructor-grid { grid-template-columns: 1fr; }
  .ev-instructor-photo { max-width: 340px; }
}
@media (max-width: 640px) {
  .ev-instructor::before { height: 240px; }
  .ev-instructor-photo { max-width: 270px; margin-left: 4px; }
  .ev-expect-list { grid-template-columns: 1fr; }
  .ev-expect-list li { border-left: 0; border-top: 1px solid var(--line); }
  .ev-expect-list li:first-child { border-top: 0; }
}

/* ---------- v24 r2: thank-you, tighter close with a contrasting ivory band */
.ev-ty { padding-bottom: clamp(36px, 4vw, 48px); }
.ev-final--ty { background: var(--ivory); color: var(--text); padding: clamp(44px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.ev-final--ty h2 { color: var(--teal); font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .7em; }
.ev-final--ty :focus-visible { outline-color: var(--berry); }
.ev-final--ty .btn + p { color: var(--muted); }


/* ---------- v25: registration pages, form high on mobile.
   Order: short intro, form, then the longer details. Same dark band, hard edges only. */
.ev-reg-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: auto 1fr; column-gap: clamp(36px, 6vw, 88px); row-gap: 0; }
.ev-reg-short { grid-column: 1; grid-row: 1; }
.ev-reg-long { grid-column: 1; grid-row: 2; }
.ev-form-card { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 90px; }
.ev-quick { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: 1.1rem; line-height: 1.5; color: var(--ivory); font-weight: 500; }
.ev-quick li + li { margin-top: .15rem; color: rgba(244, 241, 238, .85); font-weight: 400; font-size: 1rem; }
.ev-reg-long { padding-top: 1.6rem; }
.ev-reg-long .ev-lead:first-child { margin-top: 0; }
@media (max-width: 960px) {
  .ev-reg-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 28px; }
  .ev-reg-short, .ev-reg-long, .ev-form-card { grid-column: 1; grid-row: auto; }
  .ev-form-card { position: static; }
  .ev-reg-long { padding-top: 4px; }
}
@media (max-width: 640px) {
  .ev-reg-hero { padding: 22px 0 56px; }
  .ev-back { margin-bottom: .8rem; }
  .ev-reg-hero .eyebrow { margin-bottom: .7rem; letter-spacing: .1em; }
  .ev-reg-hero .eyebrow::before { display: none; }
  .ev-page .ev-reg-hero h1 { font-size: 1.95rem; }
  .ev-quick { margin-top: .9rem; font-size: 1.02rem; }
  .ev-quick li + li { font-size: .95rem; }
  .ev-reg-grid { row-gap: 22px; }
  .ev-form-card { padding: 24px 20px; scroll-margin-top: 80px; }
  .ev-form-title { font-size: 1.45rem; }
  .ev-form-sub { margin-bottom: 1rem; }
}
