/* ============================================================================
   GATEWAY FLOW — Activities surfaces
   /wellness/ · /wellness/{activitate}/ · /inchiriere-spatiu/

   Enqueued by gf_activity_enqueue_assets() on those four routes ONLY, after
   style.css, and never anywhere else.

   ── Tokens ───────────────────────────────────────────────────────────────────
   Every custom property below is NEW and namespaced --gfa-*. It is declared on
   .gf-activities (the <main> wrapper) so it cannot reach an existing page, and
   it takes its values from DESIGN.md rather than from the current sitewide
   tokens, several of which DESIGN.md supersedes. Aligning the SITEWIDE tokens
   is a separate, visually-regressed change: this file deliberately does not
   touch theme.json, style.css or any global :root value.

   ── The two rules this file exists to enforce ────────────────────────────────
   1. Ink on Flow Orange for primary daytime actions. White on Flow Orange is
      prohibited, so .gf-activities re-pairs .gf-btn-primary inside its own
      scope instead of inheriting the legacy pairing.
   2. .gf-fact-pending is styled only under body.gf-activity-preview, so the
      loud "unfilled fact" marker is structurally unable to appear on a
      published page.

   The global prefers-reduced-motion block in style.css already forces every
   animation and transition to 0.01ms !important. Nothing here re-declares it
   and nothing here uses !important, so that block always wins.
   ========================================================================= */

.gf-activities {
    /* Accents */
    --gfa-flow-orange: #FF6B35;
    --gfa-night-signal: #FF3154;

    /* Neutrals */
    --gfa-warm-canvas: #F3EDE4;
    --gfa-paper: #FFFDF9;
    --gfa-ink: #14130F;
    --gfa-muted-ink: #625F57;
    --gfa-line: #D9D1C4;
    --gfa-night: #0A0A0F;
    --gfa-night-surface: #16151C;

    /* Semantic — text-first; colour is never the only carrier of meaning. */
    --gfa-success: #137A47;
    --gfa-warning: #9A5A00;
    --gfa-error: #B42318;
    --gfa-info: #075985;

    /* Resolved surfaces for this scope */
    --gfa-surface: var(--gfa-paper);
    --gfa-text: var(--gfa-ink);
    --gfa-text-muted: var(--gfa-muted-ink);
    --gfa-rule: var(--gfa-line);
    --gfa-accent: var(--gfa-flow-orange);
    --gfa-focus: var(--gfa-ink);

    /* Spacing — DESIGN.md 4px base */
    --gfa-2xs: 4px;
    --gfa-xs: 8px;
    --gfa-sm: 16px;
    --gfa-md: 24px;
    --gfa-lg: 32px;
    --gfa-xl: 48px;
    --gfa-2xl: 64px;
    --gfa-3xl: 96px;
    --gfa-section: clamp(64px, 9vw, 128px);

    /* Shape */
    --gfa-radius-control: 6px;
    --gfa-radius-panel: 8px;
    --gfa-radius-overlay: 12px;

    /* Motion */
    --gfa-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
    --gfa-dur-micro: 120ms;
    --gfa-dur-short: 200ms;
    --gfa-dur-medium: 320ms;
}

html[data-mode="night"] .gf-activities {
    --gfa-surface: var(--gfa-night-surface);
    --gfa-text: var(--gfa-paper);
    --gfa-text-muted: rgba(255, 253, 249, 0.72);
    --gfa-rule: rgba(255, 253, 249, 0.16);
    --gfa-accent: var(--gfa-night-signal);
    --gfa-focus: var(--gfa-paper);
}

/* ===== Shared primitives ================================================== */

.gf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Schedules, availability and any other operational figure. */
.gf-activities .gf-act-num,
.gf-activities .gf-avail-grid,
.gf-activities .gf-avail-day-rows {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.gf-activities section {
    padding: var(--gfa-section) 0;
    border-top: 1px solid var(--gfa-rule);
}

.gf-activities section:first-of-type {
    border-top: 0;
}

.gf-activities h2 {
    margin-bottom: var(--gfa-md);
    max-width: 18ch;
}

.gf-activities h3 {
    margin-bottom: var(--gfa-sm);
}

.gf-activities p {
    color: var(--gfa-text-muted);
    line-height: 1.6;
    max-width: 68ch;
}

.gf-activities a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gf-activities a.gf-btn,
.gf-activities .gf-act-row-link {
    text-decoration: none;
}

/* Focus: at least 2px, high contrast, offset, and never removed. */
.gf-activities a:focus-visible,
.gf-activities button:focus-visible,
.gf-activities summary:focus-visible,
.gf-activities [tabindex]:focus-visible {
    outline: 3px solid var(--gfa-focus);
    outline-offset: 3px;
    border-radius: var(--gfa-radius-control);
}

/*
 * Ink on Flow Orange. Scoped so the legacy sitewide pairing is untouched and
 * this release does not carry a global visual regression.
 */
.gf-activities .gf-btn-primary {
    background: var(--gfa-flow-orange);
    color: var(--gfa-ink);
    box-shadow: none;
    border-color: var(--gfa-flow-orange);
}

html[data-mode="night"] .gf-activities .gf-btn-primary {
    background: var(--gfa-night-signal);
    color: var(--gfa-ink);
    box-shadow: none;
    border-color: var(--gfa-night-signal);
}

.gf-activities .gf-btn-ghost {
    border-color: var(--gfa-text);
    color: var(--gfa-text);
}

/* Tap targets stay at least 44x44 including the two hero CTAs. */
.gf-activities .gf-btn {
    min-height: 44px;
    padding: 12px 20px;
}

/* ===== Threshold Hero ===================================================== */

.gf-wl-hero,
.gf-rent-hero,
.gf-act-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--gfa-2xl);
}

/*
 * Cross-column alignment is NOT shared, because the three heroes do not have
 * the same shape. The hub and venue heroes hold exactly two children — one
 * copy block, one image — of near-equal height, so seating them on a common
 * baseline is the intended editorial finish and costs nothing.
 */
.gf-wl-hero,
.gf-rent-hero {
    align-items: end;
}

/*
 * The activity hero fills the same two columns with FOUR children: the eyebrow
 * and the <h1> come from the page template, the fact stack and the photo from
 * [gf_activity_hero]. Auto-placement therefore gives it two rows, each as tall
 * as its tallest member — row 1 is the 478px display <h1>, row 2 the photo.
 * Bottom-aligning inside those rows dropped the 18px eyebrow to the foot of
 * the <h1>'s row, which is the several-hundred-pixel void that opened above
 * the label on a wide desktop, and left the fact stack and the photo starting
 * at different heights in row 2 (differently on each activity, since the two
 * pages have different copy lengths). Every child starts at the top of its own
 * row instead: the eyebrow sits with the first line of the display text and
 * the fact stack squares up with the top edge of the photo. This matches
 * .gf-wl-parents, the other unbalanced two-column block in this file.
 */
.gf-act-hero {
    align-items: start;
}

.gf-wl-hero-promise,
.gf-rent-hero-promise {
    font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
    line-height: 1.4;
    color: var(--gfa-text);
    margin: var(--gfa-md) 0 var(--gfa-lg);
    max-width: 46ch;
}

.gf-wl-hero-cta,
.gf-rent-hero-cta,
.gf-act-hero-action {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gfa-sm);
    margin: 0;
}

.gf-wl-hero-media img,
.gf-rent-hero-media img,
.gf-wl-parents-media img,
.gf-act-hero-media img {
    width: 100%;
    height: auto;
    /* Square edges for full-width media and editorial boundaries. */
    border-radius: 0;
}

/* ===== Parallel Timeline ================================================== */

.gf-wl-timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gfa-xl);
    margin-top: var(--gfa-lg);
}

.gf-wl-track h3 {
    padding-bottom: var(--gfa-xs);
    border-bottom: 2px solid var(--gfa-accent);
}

.gf-wl-track dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--gfa-md);
    row-gap: var(--gfa-sm);
    align-items: baseline;
}

.gf-wl-track dt {
    font-weight: 700;
    color: var(--gfa-text);
}

.gf-wl-track dd {
    margin: 0;
    color: var(--gfa-text-muted);
}

.gf-wl-timeline-note {
    margin-top: var(--gfa-lg);
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    font-size: 0.875rem;
}

/* ===== Activity Ledger ==================================================== */

.gf-act-list {
    list-style: none;
    margin: var(--gfa-lg) 0 0;
    padding: 0;
}

.gf-act-row {
    border-top: 1px solid var(--gfa-rule);
    padding: var(--gfa-lg) 0;
}

.gf-act-row-link {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: var(--gfa-lg);
    align-items: start;
    color: var(--gfa-text);
}

.gf-act-row-link:hover .gf-act-row-name {
    color: var(--gfa-accent);
}

.gf-act-row-media img {
    width: 100%;
    height: auto;
}

.gf-act-row-body {
    display: grid;
    gap: var(--gfa-xs);
}

.gf-act-row-audience {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gfa-accent);
    font-weight: 700;
}

.gf-act-row-name {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 2.4vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    transition: color var(--gfa-dur-micro) var(--gfa-ease-enter);
}

.gf-act-row-summary {
    color: var(--gfa-text-muted);
    max-width: 60ch;
}

/* State is text. Colour never carries it on its own. */
.gf-act-row-state,
.gf-act-state {
    display: inline-block;
    align-self: start;
    padding: var(--gfa-2xs) var(--gfa-xs);
    border: 1px solid var(--gfa-rule);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--gfa-text);
}

.gf-act-row-cta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gfa-accent);
}

.gf-act-row-meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--gfa-md);
    row-gap: var(--gfa-2xs);
    margin: var(--gfa-sm) 0 0;
    font-size: 0.875rem;
}

/*
 * A route may present several cohorts, so one <dt> can own several <dd> — the
 * Program row of a two-level programme carries one line per level. Pinning each
 * side to its own column keeps every extra <dd> stacked under the first instead
 * of wrapping into the label column.
 */
.gf-act-row-meta dt {
    grid-column: 1;
    color: var(--gfa-text-muted);
}

.gf-act-row-meta dd {
    grid-column: 2;
    margin: 0;
    color: var(--gfa-text);
}

.gf-wl-ledger-more {
    margin-top: var(--gfa-lg);
    padding-top: var(--gfa-md);
    border-top: 1px solid var(--gfa-rule);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gfa-text);
}

/* ===== Activity detail ====================================================
   .gf-act-hero's grid (desktop two columns, collapsing to one) is declared
   with .gf-wl-hero / .gf-rent-hero above — it is the same threshold-hero
   pattern, not a fourth one. A standalone single-column rule used to live
   here and silently win the cascade over that shared rule (same specificity,
   declared later), which is why the activity detail hero rendered as a full-
   width stack with the photo left flush at its native pixel size instead of
   filling the second column: no width was ever assigned to it.

   Its cross-column alignment is NOT shared and is declared up there too, next
   to the grid, so that exactly one rule ever sets align-items on this element
   and no later rule has to out-cascade an inherited value. See the note there
   for why this hero starts its children at the top and the other two do not. */

.gf-act-hero-copy {
    display: grid;
    gap: var(--gfa-md);
    justify-items: start;
}

.gf-act-hero-name {
    margin: 0;
}

.gf-act-hero-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--gfa-md);
    row-gap: var(--gfa-xs);
    margin: 0;
}

/* Same multi-cohort rule as the hub card: one <dt>, one <dd> per level. */
.gf-act-hero-facts dt {
    grid-column: 1;
    color: var(--gfa-text-muted);
    font-size: 0.875rem;
}

.gf-act-hero-facts dd {
    grid-column: 2;
    margin: 0;
    color: var(--gfa-text);
}

.gf-act-positioning {
    font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
    line-height: 1.4;
    color: var(--gfa-text);
}

.gf-act-benefits {
    list-style: none;
    margin: var(--gfa-lg) 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-width: 60ch;
}

.gf-act-benefits li {
    padding: var(--gfa-sm) 0;
    border-top: 1px solid var(--gfa-rule);
    font-family: var(--font-display);
    font-weight: 500;
}

.gf-act-structure {
    margin: 0 0 var(--gfa-xl);
    padding-left: 1.25em;
    max-width: 60ch;
}

.gf-act-structure li {
    padding: var(--gfa-xs) 0;
    color: var(--gfa-text);
}

.gf-act-practical {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    column-gap: var(--gfa-lg);
    row-gap: var(--gfa-sm);
    margin: 0;
}

.gf-act-practical dt {
    color: var(--gfa-text-muted);
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
}

.gf-act-practical dd {
    margin: 0;
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text);
}

/*
 * The referral line: the details the provider settles with a participant at
 * enrollment. It reads as a note under the practical ledger, not as another
 * row, because it answers nothing — it says who answers.
 */
.gf-act-provider-detail {
    margin: var(--gfa-md) 0 0;
    color: var(--gfa-text-muted);
}

/* ===== Cohorts ============================================================
 *
 * A route can present more than one level on one page. Each cohort is its own
 * block — heading, curriculum, practical ledger — so a reader can never carry a
 * price or a date across from the level above it. The blocks are separated by a
 * rule rather than boxed into cards, matching the editorial-ledger treatment the
 * rest of these routes use.
 * ------------------------------------------------------------------------- */

.gf-act-cohort-outline + .gf-act-cohort-outline,
.gf-act-cohort-practical + h3 {
    margin-top: var(--gfa-xl);
}

.gf-act-cohort-practical {
    margin-bottom: var(--gfa-lg);
}

.gf-act-outline-intro {
    margin: 0 0 var(--gfa-sm);
    max-width: 60ch;
    color: var(--gfa-text-muted);
}

.gf-act-outline {
    margin: 0 0 var(--gfa-md);
    padding: 0;
    list-style: none;
    max-width: 60ch;
}

ul.gf-act-outline li {
    padding: var(--gfa-xs) 0;
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text);
}

/* ===== Operational Notice ================================================= */

.gf-act-notice-panel,
.gf-act-notice {
    border: 1px solid var(--gfa-rule);
    border-left: 4px solid var(--gfa-info);
    border-radius: var(--gfa-radius-panel);
    background: var(--gfa-surface);
    padding: var(--gfa-md);
}

.gf-act-notice-panel h2 {
    margin-bottom: var(--gfa-xs);
    font-size: clamp(1.625rem, 2.4vw, 2.25rem);
}

.gf-act-notice {
    color: var(--gfa-text);
    max-width: 68ch;
}

/* ===== Provider Proof Band ================================================
   Gateway Flow stays the host. No provider colour reaches a button, the
   navigation, a state label or a form control — the band only gets a rule and
   a surface, and provider media is confined to .gf-act-proof-attribution img. */

.gf-act-proof {
    background: var(--gfa-surface);
}

.gf-act-proof-name {
    margin-bottom: var(--gfa-2xs);
}

.gf-act-proof-experience {
    margin: 0 0 var(--gfa-md);
}

.gf-act-credentials {
    list-style: none;
    margin: 0 0 var(--gfa-md);
    padding: 0;
    max-width: 60ch;
}

.gf-act-credentials li {
    padding: var(--gfa-xs) 0;
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text);
}

.gf-act-proof-attribution {
    display: flex;
    align-items: center;
    gap: var(--gfa-sm);
    color: var(--gfa-text);
}

.gf-act-proof-attribution img {
    max-height: 48px;
    width: auto;
}

.gf-act-proof-contacts,
.gf-act-proof-sources {
    list-style: none;
    margin: var(--gfa-sm) 0 0;
    padding: 0;
    display: grid;
    gap: var(--gfa-2xs);
}

.gf-act-proof-sources-intro {
    margin-top: var(--gfa-md);
    font-size: 0.875rem;
}

/* ===== Enrollment ========================================================= */

.gf-act-enroll {
    display: grid;
    gap: var(--gfa-sm);
    justify-items: start;
    padding: var(--gfa-lg);
    border: 1px solid var(--gfa-rule);
    border-radius: var(--gfa-radius-panel);
    background: var(--gfa-surface);
}

.gf-act-enroll-disclosure {
    margin: 0;
    font-size: 0.875rem;
}

.gf-act-back {
    padding-top: var(--gfa-xl);
}

.gf-act-back-link {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ===== Parent amenities =================================================== */

.gf-wl-parents {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--gfa-2xl);
    align-items: start;
}

.gf-wl-parents-facts {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    column-gap: var(--gfa-lg);
    row-gap: var(--gfa-sm);
    margin: var(--gfa-lg) 0 0;
}

.gf-wl-parents-facts dt {
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gfa-text);
}

.gf-wl-parents-facts dd {
    margin: 0;
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text-muted);
}

/* ===== Rental: best fit, signed programmes, space ========================= */

.gf-rent-fit-list,
.gf-rent-principles,
.gf-rent-signed {
    list-style: none;
    margin: var(--gfa-lg) 0 0;
    padding: 0;
}

.gf-rent-fit-list li,
.gf-rent-principles li,
.gf-rent-signed-item {
    padding: var(--gfa-sm) 0;
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text);
}

.gf-rent-fit-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.gf-rent-fit-note {
    display: block;
    color: var(--gfa-text-muted);
}

.gf-rent-fit-note-all {
    margin-top: var(--gfa-lg);
    font-size: 0.875rem;
}

.gf-rent-signed-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 12rem) minmax(0, 16rem);
    gap: var(--gfa-md);
    align-items: baseline;
}

.gf-rent-signed-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.gf-rent-signed-provider {
    color: var(--gfa-text-muted);
}

.gf-rent-facts {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    column-gap: var(--gfa-lg);
    row-gap: var(--gfa-sm);
    margin: var(--gfa-lg) 0 0;
}

.gf-rent-facts dt {
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text-muted);
}

.gf-rent-facts dd {
    margin: 0;
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    color: var(--gfa-text);
}

.gf-rent-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gfa-sm);
    margin-top: var(--gfa-xl);
}

.gf-rent-photo {
    margin: 0;
}

.gf-rent-form-purpose {
    margin-top: var(--gfa-md);
    font-size: 0.875rem;
}

.gf-rent-form-expectation {
    margin-top: var(--gfa-xs);
    font-size: 0.875rem;
}

/* Shown only when the form itself cannot render — never a dead end. */
.gf-rent-form-fallback {
    margin-top: var(--gfa-md);
}

.gf-rent-form-fallback-cta {
    margin-top: var(--gfa-sm);
}

/* ===== Proposal Form ======================================================
   The form's markup belongs to vr-studio-forms. This block only re-dresses it
   inside .gf-activities so it reads as part of the page: single column at every
   width, persistent visible labels, 44px controls, and errors carried in text
   as well as colour. Nothing here is a booking control. */

.gf-activities .vrsf-form-wrapper {
    margin-top: var(--gfa-lg);
    max-width: 44rem;
}

.gf-activities .vrsf-field {
    display: block;
    margin-bottom: var(--gfa-md);
}

.gf-activities .vrsf-field > label {
    display: block;
    margin-bottom: var(--gfa-2xs);
    color: var(--gfa-text);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
}

.gf-activities .vrsf-required {
    color: var(--gfa-accent);
}

.gf-activities .vrsf-field input[type="text"],
.gf-activities .vrsf-field input[type="email"],
.gf-activities .vrsf-field input[type="tel"],
.gf-activities .vrsf-field input[type="number"],
.gf-activities .vrsf-field select,
.gf-activities .vrsf-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--gfa-surface);
    color: var(--gfa-text);
    border: 1px solid var(--gfa-rule);
    border-radius: var(--gfa-radius-control);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

.gf-activities .vrsf-field textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.gf-activities .vrsf-field input:focus-visible,
.gf-activities .vrsf-field select:focus-visible,
.gf-activities .vrsf-field textarea:focus-visible {
    outline: 3px solid var(--gfa-focus);
    outline-offset: 2px;
}

/* Invalid controls are marked by a border AND by the text below them. */
.gf-activities .vrsf-field [aria-invalid="true"] {
    border-color: var(--gfa-error);
}

.gf-activities .vrsf-field-error:empty {
    display: none;
}

.gf-activities .vrsf-field-error {
    margin-top: var(--gfa-2xs);
    color: var(--gfa-error);
    font-size: 0.875rem;
}

html[data-mode="night"] .gf-activities .vrsf-field-error {
    color: #FF8A80;
}

/* Consent rows run full width and keep the checkbox beside its own text. */
.gf-activities .vrsf-consent-field .vrsf-checkbox-label,
.gf-activities .vrsf-field-checkbox .vrsf-checkbox-label {
    display: flex;
    gap: var(--gfa-xs);
    align-items: flex-start;
    color: var(--gfa-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.gf-activities .vrsf-checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.gf-activities .vrsf-form-actions {
    margin-top: var(--gfa-lg);
}

.gf-activities .vrsf-submit-btn {
    min-height: 44px;
    padding: 12px 24px;
    background: var(--gfa-flow-orange);
    color: var(--gfa-ink);
    border: 1px solid var(--gfa-flow-orange);
    border-radius: var(--gfa-radius-control);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

html[data-mode="night"] .gf-activities .vrsf-submit-btn {
    background: var(--gfa-night-signal);
    border-color: var(--gfa-night-signal);
}

.gf-activities .vrsf-submit-btn[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.gf-activities .vrsf-form-messages:not(:empty) {
    margin-top: var(--gfa-md);
    padding: var(--gfa-sm);
    border: 1px solid var(--gfa-rule);
    border-radius: var(--gfa-radius-panel);
    color: var(--gfa-text);
}

/* Two columns only where the pairing keeps each label next to its own control. */
@media (min-width: 48rem) {
    .gf-activities .vrsf-form-wrapper form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--gfa-md);
    }

    .gf-activities .vrsf-form-wrapper form > .vrsf-field-textarea,
    .gf-activities .vrsf-form-wrapper form > .vrsf-consent-field,
    .gf-activities .vrsf-form-wrapper form > .vrsf-form-actions,
    .gf-activities .vrsf-form-wrapper form > .vrsf-form-messages,
    .gf-activities .vrsf-form-wrapper form > .vrsf-turnstile-wrapper {
        grid-column: 1 / -1;
    }
}

/* ===== Availability Ledger ================================================
   The table and the day groups are two projections of the same 15 values.
   Exactly one of them is in the accessibility tree at any width. */

.gf-avail-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--gfa-lg);
    text-align: left;
}

.gf-avail-grid caption {
    text-align: left;
    padding-bottom: var(--gfa-sm);
    color: var(--gfa-text-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.gf-avail-grid th,
.gf-avail-grid td {
    padding: var(--gfa-sm);
    border: 1px solid var(--gfa-rule);
    color: var(--gfa-text);
    font-size: 0.875rem;
    vertical-align: top;
}

.gf-avail-grid thead th {
    font-family: var(--font-display);
    font-weight: 700;
}

.gf-avail-days {
    display: none;
    margin-top: var(--gfa-lg);
}

.gf-avail-day {
    border-top: 1px solid var(--gfa-rule);
    padding: var(--gfa-sm) 0;
}

.gf-avail-day summary {
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gfa-sm);
    list-style: none;
}

.gf-avail-day summary::-webkit-details-marker {
    display: none;
}

.gf-avail-day summary::after {
    content: '+';
    color: var(--gfa-accent);
    font-size: 1.5rem;
    font-weight: 300;
}

.gf-avail-day[open] summary::after {
    content: '−';
}

.gf-avail-day-rows {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--gfa-md);
    row-gap: var(--gfa-xs);
    margin: var(--gfa-sm) 0 0;
}

.gf-avail-day-rows dt {
    color: var(--gfa-text-muted);
}

.gf-avail-day-rows dd {
    margin: 0;
    color: var(--gfa-text);
}

.gf-avail-disclaimer {
    margin-top: var(--gfa-lg);
    padding-top: var(--gfa-sm);
    border-top: 1px solid var(--gfa-rule);
    font-size: 0.875rem;
}

.gf-avail-cta {
    margin-top: var(--gfa-md);
}

/* ===== Section reveal =====================================================
   The hidden start state is applied only after activities.js has marked the
   document, so a failed or blocked script can never hide content. */

.gf-activities.is-reveal-ready [data-gf-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity var(--gfa-dur-medium) var(--gfa-ease-enter),
        transform var(--gfa-dur-medium) var(--gfa-ease-enter);
}

.gf-activities.is-reveal-ready [data-gf-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .gf-activities.is-reveal-ready [data-gf-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ========================================================= */

@media (max-width: 1099px) {
    .gf-wl-hero,
    .gf-rent-hero,
    .gf-wl-parents {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gfa-xl);
    }

    .gf-rent-signed-item {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gfa-2xs);
    }

    .gf-rent-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gf-activities h2 {
        max-width: none;
    }

    .gf-wl-timeline-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gfa-lg);
    }

    /*
     * Information order before composition: on the activity detail hero every
     * fact — name, state, notice, age/level, schedule, venue and the internal
     * action — precedes the image in DOM order and stays that way visually.
     */
    .gf-act-hero,
    .gf-act-row-link {
        grid-template-columns: minmax(0, 1fr);
    }

    .gf-act-practical,
    .gf-wl-parents-facts,
    .gf-rent-facts,
    .gf-act-row-meta,
    .gf-wl-track dl {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--gfa-2xs);
    }

    .gf-act-practical dd,
    .gf-wl-parents-facts dd,
    .gf-rent-facts dd {
        border-top: 0;
        padding-top: 0;
        padding-bottom: var(--gfa-sm);
    }

    /*
     * The hub card collapses to a single column here, so the two-column pinning
     * that keeps several cohort <dd>s stacked on wider screens has to be
     * released — otherwise column 2 survives as an implicit track.
     */
    .gf-act-row-meta dt,
    .gf-act-row-meta dd {
        grid-column: 1;
    }

    .gf-rent-photos {
        grid-template-columns: minmax(0, 1fr);
    }

    .gf-wl-hero-cta .gf-btn,
    .gf-rent-hero-cta .gf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Below 600px the ledger becomes five day-labelled disclosure groups. */
@media (max-width: 599px) {
    .gf-avail-grid {
        display: none;
    }

    .gf-avail-days {
        display: block;
    }
}

/* ===== Fact-pending preview ===============================================
   Scoped to body.gf-activity-preview, which gf_activity_body_class() adds only
   when wp_get_environment_type() is not production AND the user holds
   gf_manage_activity_status AND GF_ACTIVITY_PREVIEW is defined and true.
   Outside that intersection the marker has no styling — and, because
   gf_fact_render() throws there, no markup either. */

body.gf-activity-preview .gf-fact-pending {
    display: block;
    margin: var(--gfa-sm, 16px) 0;
    padding: 16px;
    background: repeating-linear-gradient(45deg, #B42318 0 12px, #14130F 12px 24px);
    color: #FFFDF9;
    outline: 3px solid #B42318;
    outline-offset: 4px;
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    max-width: none;
}

body.gf-activity-preview .gf-fact-pending strong,
body.gf-activity-preview .gf-fact-pending span {
    display: block;
    color: #FFFDF9;
}

body.gf-activity-preview .gf-fact-pending strong {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

body.gf-activity-preview .gf-fact-pending .gf-fact-pending-key {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    text-transform: none;
    letter-spacing: 0;
}
