/* =================================================================
   YEC. — shared inner-page patterns
   ================================================================= */

/* Page hero (clears the fixed nav) */
.page-hero { padding-top: clamp(124px, 17vh, 184px); padding-bottom: clamp(48px, 7vw, 92px); }
.page-hero .kicker { margin-bottom: 22px; }
.page-hero .h1 { max-width: 18ch; letter-spacing: -0.025em; }
.page-hero p.lead { margin-top: 26px; }
.page-hero.center .kicker { justify-content: center; }
.page-hero.center .h1, .page-hero.center p.lead { margin-inline: auto; }

/* breadcrumb-ish back link */
.back-link { font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; display: inline-flex; gap: 0.5em; align-items: center; }

/* ---------- prose (blog + legal) ---------- */
.prose { font-size: 1.16rem; line-height: 1.72; color: var(--slate); }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; margin-top: 1.8em; color: var(--navy); letter-spacing: -0.02em; }
.prose h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; margin-top: 1.6em; color: var(--navy); }
.prose p { text-wrap: pretty; }
.prose blockquote { border-left: 3px solid var(--orange); padding-left: 1.2em; font-family: var(--font-head); font-weight: 300; font-size: 1.5rem; line-height: 1.35; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-top: 0.5em; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--teal); border-bottom: 1px solid currentColor; }
.prose strong { font-weight: 600; color: var(--navy); }
.prose .lede { font-size: 1.34rem; line-height: 1.5; color: var(--navy); font-weight: 400; }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid rgba(23,32,41,0.14); }
.faq-item { border-bottom: 1px solid rgba(23,32,41,0.14); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.15rem,1.8vw,1.4rem); color: var(--navy); transition: color .2s ease; }
.faq-q:hover { color: var(--accent-ink); }
.faq-q .ico { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--accent-ink); transition: transform .3s ease, opacity .3s ease; }
.faq-q .ico::before { top: 12px; left: 0; width: 26px; height: 2px; }
.faq-q .ico::after { left: 12px; top: 0; width: 2px; height: 26px; }
.faq-item.open .ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s ease; }
.faq-item.open .faq-a { visibility: visible; } /* collapsed answers stay out of the tab order */
.faq-a-inner { padding-bottom: 28px; color: var(--gray); font-size: 1.08rem; line-height: 1.65; max-width: 70ch; }

/* ---------- events ---------- */
.event-list { list-style: none; margin: 0; padding: 0; }
/* the third column reserves button space on EVERY row (minmax), so
   descriptions on button-less rows stop at the same right edge instead of
   running under where other rows' buttons sit (Drew, 7/13) */
.event-row { display: grid; grid-template-columns: 150px 1fr minmax(180px, auto); gap: clamp(20px,3vw,44px); align-items: center; padding: 30px 0; border-top: 1px solid rgba(23,32,41,0.14); }
.event-row[hidden] { display: none; } /* concluded events: don't let display:grid defeat the hidden attribute */
.event-row:last-child { border-bottom: 1px solid rgba(23,32,41,0.14); }
.event-date { font-family: var(--font-head); font-weight: 300; }
.event-date .d { font-size: 2.6rem; line-height: 1; } /* TBA renders at the same size as a day number (owner call, 7/13) */
.event-date .m { font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--accent-ink); margin-right: 10px; }
.event-date.is-soon .d { color: var(--accent-ink); } /* 0147: "Details are coming soon" takes the TBA slot */
.event-soon { color: var(--accent-ink); font-weight: 600; }
/* description: full column width, responsive; goal is ~2 lines, not a stack */
.event-blurb { max-width: none; }
/* past events: moved below by site.js once concluded; dimmed, button hidden,
   replay note shown (same treatment the pre-launch events page used) */
.event-row.is-past { opacity: 0.6; transition: opacity .2s ease; }
.event-row.is-past .btn { display: none; }
/* past rows are links to the event page: a cover anchor stretches over the
   row (the grid styling stays on the li), a See-what-happened button in the
   action column signals it, and hover un-dims the row (2026-08-06). The
   button is a decorative span — the cover anchor is the row's one real
   link — so it must escape the .is-past .btn hiding above. */
.event-row.has-cover { position: relative; }
.event-cover { position: absolute; inset: 0; z-index: 1; }
.event-row.is-past:hover, .event-row.is-past:focus-within { opacity: 1; }
.event-row.is-past .event-see { display: inline-flex; align-items: center; gap: 8px; }
.event-row.is-past:hover .event-see .arrow, .event-row.is-past:focus-within .event-see .arrow { transform: translateX(4px); }
/* the speaker's name on a row; on upcoming rows it is a real link above the
   cover-free content, styled as quiet underlined text */
.event-led { color: var(--slate); }
.event-led a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.event-led a:hover { color: var(--navy); }
.event-replay { display: none; }
.event-row.is-past .event-replay { display: inline-block; margin-top: 10px; font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; color: var(--slate); }
.event-tag { font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; padding: 5px 10px; display: inline-block; }
.event-tag + .event-tag { margin-left: 6px; }
.event-tag.free { background: var(--cool-light); color: var(--slate); }
.event-tag.member { background: var(--navy); color: var(--white); }
.event-tag.soon { background: var(--navy); color: var(--white); } /* 0147: the event page's Coming soon chip */
@media (max-width: 720px){ .event-row{ grid-template-columns: 1fr; gap: 14px; } }

/* ---------- resources ---------- */
.fw-400 { font-weight: 400; } /* replaces 13 inline styles on membership card h3s (audit L4) */
.res-card { background: var(--white); border: 1px solid rgba(23,32,41,0.1); padding: clamp(26px,3vw,40px); height: 100%; display: flex; flex-direction: column; gap: 14px; }
.res-mark { width: 46px; height: 46px; border: 2px solid var(--accent-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 300; font-size: 1.3rem; color: var(--accent-ink); }

/* ---------- form mock ---------- */
.form-mock { background: var(--white); border: 1px solid rgba(23,32,41,0.12); padding: clamp(26px,3.5vw,46px); }
.form-row { display: grid; gap: 8px; margin-bottom: 20px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 16px; }
/* align-content:start, not the default stretch. A grid cell fills the row's
   height, and its auto rows share that height out — so the moment one column
   grows a row (the "Other" title box appearing), its NEIGHBOUR's input
   inflates into a tall empty box to match. Packing rows to the top keeps every
   input its natural height and top-aligned with the one beside it. */
.form-row.two > div { display: grid; gap: 8px; align-content: start; }

/* The title control: a select, and beneath it the free-text box that appears
   when someone picks "Other". They stack flush and share one border so they
   read as a single control rather than an orphaned field floating under a
   dropdown. Real titles include "Head of Strategy and Technology", so the
   escape hatch has to look deliberate, not bolted on. */
.title-group { display: grid; }
.title-group .title-other .form-input { margin-top: -1px; }
.form-label { font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--slate); } /* 12px floor (R3, S2-13); was 10.9px */
/* Site form style (forms migration, Drew 10-04; wireframes v2): 3px corners (the design
   system's radius-sm), a 1px outline at the lightest grey that passes 3:1 on white
   (#8D9399, 3.10:1), and the field you are in turns brand orange: a 2px #CF7600 border
   (3.36:1; the bright #E98500 is too faint) plus a soft glow. */
.form-input, .form-textarea { width: 100%; padding: 14px 16px; border: 1px solid #8D9399; border-radius: 3px; font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--navy); }
/* transparent outline, not none: Windows high-contrast mode drops box-shadow and paints the outline */
.form-input:focus, .form-textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: #CF7600; box-shadow: 0 0 0 1px #CF7600, 0 0 0 4px rgba(233,133,0,.22); }
/* checkbox rows: picked ones get the orange edge and a light tint */
.form-opts { display: grid; gap: 8px; }
.form-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #8D9399; border-radius: 3px; cursor: pointer; font-size: 0.95rem; color: var(--navy); background: var(--white); }
.form-opt input { width: 20px; height: 20px; accent-color: #CF7600; flex: none; margin: 0; cursor: pointer; }
.form-opt:has(input:checked) { border-color: #CF7600; box-shadow: inset 0 0 0 1px #CF7600; background: #FFF6EA; }
.form-opt:has(input:focus-visible) { outline: 2px solid transparent; box-shadow: 0 0 0 1px #CF7600, 0 0 0 4px rgba(233,133,0,.22); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--slate); cursor: pointer; }
.form-check input { margin-top: 2px; width: 20px; height: 20px; accent-color: #CF7600; flex: none; cursor: pointer; }
.form-check a { color: var(--navy); text-decoration: underline; }
.form-check input:focus-visible { outline: 3px solid #CF7600; outline-offset: 2px; }
.form-known[hidden], .form-check[hidden] { display: none; } /* display:flex above would beat the hidden attribute */
.form-known { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--slate); border: 1px solid rgba(23,32,41,0.12); border-radius: 3px; padding: 12px 14px; background: #F7F7F4; }
.form-textarea { min-height: 130px; resize: vertical; }
@media (max-width: 560px){ .form-row.two{ grid-template-columns: 1fr; } }

/* embed placeholder note */
.embed-note { border: 2px dashed rgba(23,32,41,0.25); background: rgba(23,32,41,0.02); padding: clamp(24px,3vw,40px); text-align: center; }
.embed-note .tag { font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--gray); }

/* steps */
.step { display: flex; gap: 22px; padding: 22px 0; }
.step .step-n { flex: none; width: 46px; height: 46px; border-radius: 0; /* brand square (audit M10) */ background: var(--tw-accent); color: var(--on-accent, var(--navy)); display: grid; place-items: center; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; }
.step h3 { font-weight: 400; margin-bottom: 6px; }

/* contrast pair (buying / not buying, gym not spa) */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,40px); }
.contrast .col { padding: clamp(24px,3vw,38px); }
.contrast .col.no { background: var(--cool-light); }
.contrast .col.yes { background: var(--navy); color: var(--cream); }
.contrast .col h3 { font-weight: 400; margin-bottom: 18px; }
.contrast .col ul { display: flex; flex-direction: column; gap: 12px; }
.contrast .col li { padding-left: 26px; position: relative; }
.contrast .col.no li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--gray); }
.contrast .col.yes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; background: var(--orange); } /* square period/dot motif */
@media (max-width: 640px){ .contrast{ grid-template-columns: 1fr; } }


/* ---- member portal: the "back" control, and the hero-to-content gap -------
   Drew, 2026-08-08: the back link "should be a stylized button on all member
   portal pages", and the space above the first card was far too large.

   It was previously a bare underlined kicker on four pages and an ordinary
   small link on the other ten — so the same action looked like two different
   things depending on which page you were standing on. Defined ONCE here and
   applied everywhere, rather than pasted into each page's <style> block, which
   is how it drifted in the first place.

   Sized to 44px so it is a real thumb target: this is the control people press
   most on a phone, and the portal is phone-first. */
.pf-linkbtn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px; border: 1px solid var(--cool-light); border-radius: 3px;
  background: var(--white); color: var(--teal);
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8125rem; text-decoration: none; /* 13px, the button size (R3, S2-13); was 11.5px */
}
.pf-linkbtn:hover { border-color: var(--teal); color: var(--teal-deep); }
.pf-linkbtn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* THE PORTAL IS NOT A LANDING PAGE, and it was inheriting landing-page
   rhythm. --section-y is tuned for marketing pages where each band is a
   separate idea a visitor is being walked through slowly. In the portal every
   band is a small piece of the SAME task — "your membership", "payment
   history", "card on file" — and full-height padding between them turned the
   billing page into four screens of scrolling for six lines of content.

   Scoped to data-portal so marketing pages keep their generous rhythm. The
   hero is tightened on both sides of its seam for the same reason: it
   introduces one short form, not a story. */
/* The band between the menu bar and "MEMBER PORTAL" was sized for a landing
   page arriving cold. A member is already inside and already knows where they
   are, so it is dead space on every single page they open. */
[data-portal] .page-hero { padding-top: clamp(64px, 7vh, 88px); }
[data-portal] .section { padding-block: clamp(26px, 3.2vw, 44px); }
.page-hero.portal-hero { padding-bottom: clamp(18px, 2.4vw, 30px); }
.page-hero.portal-hero + .section { padding-top: clamp(18px, 2.4vw, 30px); }

/* Alternating cream/white bands read as "separate topics". Inside one task
   that is noise, so consecutive portal sections share a background and are
   separated by a rule instead. */
[data-portal] .section + .section { border-top: 1px solid var(--cool-light); }
