/* SOIF2027 Retreat page (template "Retreat 2027"). Everything is scoped under .r27 so nothing leaks into
   the rest of the site. Colours: brand combination 1 (green, lime, mauve) from the Nov 2024 guidelines.
   Fonts: gamay and minion-3 come from the Typekit kit the theme already loads.
   Section bands: .r27-plain / .r27-tint / .r27-dark; motifs: .r27-motif-<name> positions .r27-m-<n>.
   LAYOUT is Bootstrap 4 (the theme's): .container, .row, .col-*, order-*, spacing utilities (mb-4, pl-lg-4)
   live in the Blade partials. This file only styles the pieces: colours, type, cards, buttons, form controls. */

.r27 {
  --blue: #33316e; --lime: #e6e130; --mauve: #cc97b4; --green: #1b7c60; --red: #e5114d; --ink: #1b1939;
  --tint: #e8f1ee; --muted: #5a5670; --line: #cfd9d5; --head: var(--green); --rule: var(--lime);
  color: var(--ink); font-family: gamay, sans-serif; overflow-x: clip;
}
.r27 *, .r27 *::before, .r27 *::after { box-sizing: border-box; }
.r27 .r27-inner p, .r27 .r27-inner li, .r27 .r27-hero p { font-family: gamay, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.r27 a { color: var(--head); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; border-bottom: 0; }
.r27 a:hover, .r27 a:focus { color: var(--green); text-decoration-color: var(--lime); border-bottom: 0; }
.r27 h1, .r27 h2, .r27 h3 { text-decoration: none; }
.r27-m { position: absolute; pointer-events: none; display: block; z-index: 0; }

/* ---- buttons ---- */
.r27 .r27-btn { display: inline-block; background: var(--lime); color: var(--ink); border: none; border-radius: 10px; font-family: gamay, sans-serif; font-weight: 500; font-size: 17px; line-height: 1; padding: 15px 26px; text-decoration: none; cursor: pointer; }
.r27 .r27-btn:hover, .r27 .r27-btn:focus { color: var(--ink); opacity: .92; text-decoration: none; }
.r27 .r27-btn:disabled { opacity: .6; cursor: default; }
.r27 .r27-link { font-family: gamay, sans-serif; font-weight: 400; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; color: inherit; }
.r27 .r27-link:hover { color: var(--lime); }
.r27 .r27-hero .r27-link { color: #fff; }
.r27 .r27-hero .r27-link:hover { color: var(--lime); }
.r27-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }

/* ---- hero ---- */
.r27-hero { position: relative; overflow: hidden; background: var(--green); color: #fff; }
.r27-hero-row { min-height: 660px; }
.r27-hero .r27-m-1 { width: 360px; left: calc(50% - 60px); top: 330px; }
.r27-hero .r27-m-2 { width: 640px; left: calc(50% - 10px); top: -10px; opacity: .95; }
.r27-hero-photo { position: relative; z-index: 1; width: 520px; max-width: none; height: 520px; margin-left: 45px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.08); }
.r27-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%; display: block; }
.r27-m-mob { display: none; }
.r27-hero-text { position: relative; z-index: 2; }
.r27-hero-head { margin: 0 0 20px; }
.r27-seal { width: 104px; height: 104px; display: block; overflow: visible; margin: 0 0 22px; }
.r27-seal .ring-o, .r27-seal .ring-i { fill: none; stroke: var(--lime); }
.r27-seal .ring-o { stroke-width: 1; }
.r27-seal .ring-i { stroke-width: .75; opacity: .8; }
.r27-seal .ring-text { font-family: gamay, sans-serif; font-size: 6.3px; font-weight: 700; letter-spacing: .04em; fill: var(--lime); }
.r27-seal .ring { transform-box: view-box; transform-origin: 50px 50px; animation: r27-seal-spin 70s linear infinite; }
@keyframes r27-seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .r27-seal .ring { animation: none; } }
.r27-seal .num { font-family: minion-3, serif; font-size: 34px; font-weight: 600; fill: #fff; }
.r27 h1.r27-h1 { font-family: gamay, sans-serif; font-weight: 400; font-size: 54px; line-height: 1.08; letter-spacing: -.01em; margin: 0; color: #fff; }
.r27 h1.r27-h1 em { font-family: minion-3, serif; font-style: italic; font-weight: 500; }
.r27 p.r27-hero-sub { font-family: gamay, sans-serif; font-weight: 300; font-size: 21px; line-height: 1.45; margin: 0 0 22px; max-width: 30em; color: #fff; }
.r27 p.r27-hero-meta { font-family: gamay, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.5; margin: 0 0 28px; color: #fff; }
.r27-hero-meta b { font-weight: 500; }
.r27-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.r27-hero-credit { position: absolute; z-index: 2; right: 16px; bottom: 10px; font-size: 12px; color: rgba(255,255,255,.7); }

/* ---- sections: every section is a full-width band ---- */
.r27-sec { position: relative; overflow: hidden; padding: 72px 0; }
.r27-inner { position: relative; z-index: 1; } /* width and side padding come from Bootstrap's .container */
.r27-plain { background: #fff; }
.r27-plain + .r27-plain { padding-top: 0; }
.r27-tint { background: var(--tint); }
.r27-dark { background: var(--green); color: #fff; }
.r27-motif-dots .r27-m-1 { width: 300px; right: -80px; top: -70px; }
.r27-motif-ring .r27-m-1 { width: 560px; right: -230px; top: -150px; opacity: .9; }
.r27-motif-brush .r27-m-1 { width: 520px; right: -200px; top: -160px; }
.r27-motif-brush .r27-m-2 { width: 300px; left: -80px; bottom: -90px; opacity: .9; }
.r27-motif-dots-bl .r27-m-1 { width: 280px; left: -70px; bottom: -90px; }

/* ---- type ---- */
.r27 h2.r27-h2 { font-family: gamay, sans-serif; font-weight: 500; font-size: 36px; line-height: 1.15; letter-spacing: 0; color: var(--head); margin: 0 0 26px; }
.r27 h2.r27-h2::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--rule); margin-bottom: 16px; }
.r27 h3.r27-h3 { font-family: gamay, sans-serif; font-weight: 500; font-size: 24px; color: var(--head); margin: 36px 0 12px; }
.r27 p.r27-pull { font-family: minion-3, serif; font-weight: 500; font-size: 26px; line-height: 1.35; color: var(--head); margin: 0 0 26px; }
.r27 p.r27-lede { font-size: 20px; line-height: 1.5; margin: 0 0 28px; max-width: 42em; }
.r27-tbc { display: inline-block; font-family: gamay, sans-serif; font-weight: 500; font-size: 12px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; border: 1px dashed #b89b00; color: #7a6600; background: #fffbe0; border-radius: 6px; padding: 3px 7px; margin-left: 6px; vertical-align: middle; }
.r27-dark .r27-tbc { border-color: var(--lime); color: var(--lime); background: transparent; }

/* ---- dark bands: white text, lime links (after the type rules so they win) ---- */
.r27 .r27-dark h2.r27-h2, .r27 .r27-dark h3, .r27 .r27-dark p, .r27 .r27-dark li, .r27 .r27-dark p.r27-pull, .r27 .r27-dark p.r27-lede, .r27 .r27-dark dt, .r27 .r27-dark dd { color: #fff; }
.r27 .r27-dark a { color: var(--lime); }
.r27 .r27-dark a:hover { color: #fff; }

/* ---- text + photo/quote aside: the columns are Bootstrap (.row > .col-lg-8.r27-main + .col-lg-4.r27-aside) ---- */
.r27-card-photo { position: relative; margin: 8px 0 28px; }
.r27-card-photo::after { content: ""; position: absolute; width: 120px; height: 120px; right: -34px; top: -34px; background: url(img/lime-1.png) center/contain no-repeat; }
.r27-card-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.r27-tint .r27-card-photo::after { background-image: url(img/mauve-1.png); }
.r27-motif-dots .r27-card-photo::after, .r27-motif-dots-bl .r27-card-photo::after { display: none; }
.r27-quote { border: none; margin: 0 0 28px; padding: 0 0 0 4px; position: relative; }
.r27-quote::before { content: "\201C"; font-family: minion-3, serif; font-size: 84px; line-height: 1; height: 46px; overflow: hidden; color: var(--mauve); display: block; margin: 0 0 8px; }
.r27 .r27-quote p { font-family: minion-3, serif; font-weight: 500; font-style: italic; font-size: 22px; line-height: 1.35; color: var(--head); margin: 0 0 12px; }
.r27 .r27-quote cite { font-family: gamay, sans-serif; font-style: normal; font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.r27-aside > .r27-quote + .r27-card-photo { margin-top: 40px; }

/* ---- overview ---- */
.r27-results { list-style: none; padding: 0; margin: 0 0 26px; counter-reset: r; }
.r27 .r27-results li { position: relative; padding-left: 52px; margin: 0 0 14px; counter-increment: r; }
.r27 .r27-results li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); font-family: gamay, sans-serif; font-weight: 500; font-size: 17px; line-height: 36px; text-align: center; }
.r27 p.r27-callout { background: var(--tint); border-radius: 14px; padding: 20px 24px; margin: 0 0 34px; font-size: 18px; line-height: 1.5; }
.r27 .r27-tint p.r27-callout { background: #fff; }
.r27-buckets { margin: 0 0 30px; padding-left: 20px; }
.r27 .r27-buckets li { margin-bottom: 10px; }

/* ---- the week ---- */
.r27-level { background: #fff; border-radius: 14px; padding: 22px 24px 24px; }
.r27-plain .r27-level { background: var(--tint); }
.r27-level .pill { display: inline-block; font-family: gamay, sans-serif; font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; margin-bottom: 14px; }
.r27-level-mindset .pill { background: var(--mauve); color: var(--ink); }
.r27-level-intervention .pill { background: var(--lime); color: var(--ink); }
.r27-level-systems .pill { background: var(--green); color: #fff; }
.r27-level .days { display: block; font-family: gamay, sans-serif; font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.r27-level h3 { font-family: gamay, sans-serif; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--head); margin: 0 0 10px; }
.r27 .r27-level p { font-size: 16px; line-height: 1.5; margin: 0; color: var(--ink); }

/* ---- speakers ---- */
.r27 p.r27-note { font-size: 17px; margin: 0 0 8px; }
.r27-people { text-align: center; margin: 18px 0 0; } /* .row of .col-6.col-lg-3 cards */
.r27-person img, .r27-person-initial { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--tint); margin: 6px auto 10px; display: block; }
.r27-person-initial { background: var(--mauve); color: var(--ink); font-family: minion-3, serif; font-size: 56px; line-height: 140px; }
.r27-tint .r27-person img, .r27-tint .r27-person-initial { box-shadow: 0 0 0 6px #fff; }
.r27-person b { display: block; font-weight: 500; color: var(--head); font-size: 18px; line-height: 1.25; margin: 0 0 6px; }
.r27 .r27-person b a { text-decoration: none; }
.r27 .r27-person b a:hover { text-decoration: underline; }
.r27 .r27-person p { font-size: 15px; line-height: 1.4; color: var(--muted); margin: 0 0 6px; }
.r27-bio-btn { background: none; border: none; color: var(--head); text-decoration: underline; text-underline-offset: 3px; font-family: gamay, sans-serif; font-weight: 500; font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.r27-bio-btn[aria-expanded="true"] { background: var(--lime); color: var(--ink); text-decoration: none; }
.r27-bio { position: relative; text-align: left; background: var(--tint); border-radius: 14px; padding: 28px 54px 24px 30px; }
.r27-tint .r27-bio { background: #fff; }
.r27-bio-photo img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: block; }
.r27-bio-text b { display: block; font-weight: 500; color: var(--head); font-size: 22px; margin: 0 0 4px; }
.r27 .r27-bio-text p.role { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.r27 .r27-bio-text p { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.r27-bio-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.r27 p.r27-also, .r27 p.r27-invite { font-size: 16px; margin: 28px 0 0; }
.r27 p.r27-invite { margin-top: 10px; }
.r27 p.r27-people-empty { background: var(--tint); border-radius: 14px; padding: 20px 24px; font-size: 17px; }
.r27 .r27-tint p.r27-people-empty { background: #fff; }

/* ---- fees: a card per rate (.row > .col-md-6), then accommodation and meals as a full-width card ---- */
.r27-fee { background: #fff; border-radius: 14px; padding: 24px 26px 20px; color: var(--ink); min-width: 0; }
.r27-plain .r27-fee, .r27-tint .r27-fee { box-shadow: 0 0 0 1px var(--line); }
.r27-fee .kind { display: block; font-family: gamay, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--head); margin-bottom: 14px; }
.r27-fee .what { display: block; font-family: gamay, sans-serif; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.r27-fee .price { display: block; font-family: gamay, sans-serif; font-weight: 500; font-size: 40px; line-height: 1.05; color: var(--ink); margin-bottom: 12px; }
.r27-fee .price small { font-size: 15px; font-weight: 400; margin-left: 6px; color: var(--muted); }
.r27-early { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: #fbf9d6; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-family: gamay, sans-serif; font-size: 14px; color: var(--ink); }
.r27-early b { font-weight: 500; font-size: 16px; color: var(--green-ink, var(--head)); }
.r27-early span { color: var(--muted); }
.r27 .r27-fee p, .r27 .r27-fee li { color: var(--ink); font-size: 15px; line-height: 1.45; }
.r27 .r27-fee p { margin: 0 0 10px; }
.r27-fee ul { margin: 0 0 12px; padding-left: 18px; }
.r27 .r27-fee li { margin-bottom: 4px; }
.r27-fee-accom-side { border-left: 1px solid var(--line); padding-left: 28px; align-self: stretch; display: flex; align-items: center; }
.r27-fee-accom-side ul { margin: 0; }
.r27-fee-accom .r27-fee-accom-main p { margin-bottom: 0; }
.r27-req { display: inline-block; vertical-align: middle; font-family: gamay, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 9px; margin-left: 8px; line-height: 1.2; }
.r27 p.r27-pr-foot { font-size: 14px; margin: 0 0 24px; opacity: .85; }
.r27-fee-note { background: rgba(255,255,255,.12); border-radius: 12px; padding: 18px 20px; }
.r27-plain .r27-fee-note, .r27-tint .r27-fee-note { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.r27-fee-note b { display: block; font-weight: 500; color: var(--lime); margin-bottom: 6px; font-size: 18px; }
.r27-plain .r27-fee-note b, .r27-tint .r27-fee-note b { color: var(--head); }
.r27 .r27-fee-note p { font-size: 15px; line-height: 1.45; margin: 0; }

/* ---- apply ---- */
.r27 .r27-apply-side p { font-size: 17px; margin-bottom: 16px; }
.r27-form { background: #fff; border-radius: 14px; padding: 28px 30px 30px; display: grid; grid-template-columns: 1fr; gap: 16px 20px; scroll-margin-top: 110px; }
.r27-step { min-width: 0; } /* a .row of .col-md-6 / .col-12 fields */
.r27-step[hidden] { display: none; }
.r27-form:not(.is-js) .r27-step[hidden] { display: flex; }
.r27-form:not(.is-js) .r27-steps, .r27-form:not(.is-js) .r27-step-count, .r27-form:not(.is-js) [data-r27-prev], .r27-form:not(.is-js) [data-r27-next] { display: none; }
.r27-form:not(.is-js) [data-r27-actions] { display: flex; }
.r27-form:not(.is-js) .r27-step + .r27-step { margin-top: 10px; }
.r27-plain .r27-form, .r27-plain .r27-confirm { box-shadow: 0 0 0 1px var(--line); }
.r27-form[hidden] { display: none; }
.r27-form h3.r27-form-section:focus { outline: none; }
.r27-form h3.r27-form-section { font-family: gamay, sans-serif; font-weight: 500; font-size: 22px; color: var(--head); margin: 18px 0 0; }
.r27-form h3.r27-form-section.first { margin-top: 0; }
.r27-form-section small { display: block; font-family: gamay, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.r27-field label, .r27-field .r27-label { display: block; font-family: gamay, sans-serif; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.r27-field label .opt { font-weight: 400; color: var(--muted); }
.r27-field input[type=text], .r27-field input[type=email], .r27-field input[type=tel], .r27-field select, .r27-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-family: gamay, sans-serif; font-size: 16px; line-height: 1.3; background: #fff; color: var(--ink); margin: 0; }
.r27-field textarea { min-height: 110px; }
.r27-field textarea.tall { min-height: 160px; }
.r27-field textarea.short { min-height: 80px; }
.r27-form .invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.r27 .r27-hint, .r27 .r27-small, .r27 p.r27-small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.r27-pay-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; margin: 0; font-weight: 400; font-size: 15px; }
.r27-pay-option.checked { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.r27-pay-option input { margin: 4px 0 0; flex: none; }
.r27-pay-option b { display: block; font-weight: 500; font-size: 16px; }
.r27-pay-option small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.r27-stripe { background: var(--tint); border-radius: 10px; padding: 14px 16px 4px; }
.r27-stripe[hidden] { display: none; }
.r27-stripe-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.r27-stripe-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; padding: 10px 0 8px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 6px; }
.r27-stripe-sum b { font-size: 22px; font-weight: 500; }
.r27 .r27-stripe p.r27-small { margin: 6px 0 8px; display: flex; gap: 8px; }
.r27-stripe svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.r27-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; font-weight: 400; margin: 0; cursor: pointer; }
.r27-check input { margin: 4px 0 0; flex: none; }
.r27-form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.r27 p.r27-form-error { background: #fdecef; color: #8a1030; border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 0; }
.r27 p.r27-form-error[hidden] { display: none; }
.r27-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.r27-confirm { background: #fff; border-radius: 14px; padding: 28px 30px; }
.r27-confirm[hidden] { display: none; }
.r27-confirm h3 { font-family: gamay, sans-serif; font-weight: 500; font-size: 26px; color: var(--head); margin: 0 0 10px; }

/* progress strip */
.r27-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r27-steps li { border-top: 3px solid var(--line); padding-top: 10px; min-width: 0; }
.r27-steps li.is-done { border-color: var(--green); }
.r27-steps li.is-current { border-color: var(--lime); }
.r27-steps button { all: unset; display: flex; gap: 8px; align-items: baseline; font-family: gamay, sans-serif; font-size: 14px; line-height: 1.3; color: var(--muted); cursor: default; max-width: 100%; }
.r27-steps li.is-done button { cursor: pointer; color: var(--head); }
.r27-steps li.is-done button:hover .t { text-decoration: underline; }
.r27-steps li.is-current button { color: var(--ink); font-weight: 500; }
.r27-steps button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.r27-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; transform: translateY(4px); }
.r27-steps li.is-done .n { background: var(--green); color: #fff; }
.r27-steps li.is-current .n { background: var(--lime); }
.r27 p.r27-step-count { margin: -8px 0 0; }

/* "I'm applying as" segmented choice */
.r27-seg-opt { position: relative; display: block; margin: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; text-align: center; font-weight: 400; background: #fff; }
.r27-seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.r27-seg-opt.checked { border-color: var(--green); background: var(--tint); box-shadow: 0 0 0 1px var(--green); }
.r27-seg-opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 6px; border-radius: 6px; }
.r27-seg-opt b { display: block; font-family: gamay, sans-serif; font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--ink); }
.r27-seg-opt small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.r27-form .r27-seg-opt.invalid { border-color: var(--red); }

/* fee summary on step 3 */
.r27-fee-sum { background: var(--tint); border-radius: 12px; padding: 16px 18px 14px; }
.r27-fee-sum dl > div:first-child { border-top: 0; padding-top: 0; }
.r27-fee-sum dt small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.r27-fee-sum dl > div.early dd { color: var(--green); }
.r27-fee-sum dl > div.total dt { font-weight: 500; }
.r27-fee-sum dl > div.total dd { font-size: 22px; color: var(--head); }
.r27-step:focus { outline: none; }
.r27-fee-sum dl { margin: 0; }
.r27-fee-sum dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.08); }
.r27-fee-sum dt { font-weight: 400; font-size: 15px; color: var(--ink); margin: 0; }
.r27-fee-sum dd { margin: 0; font-family: gamay, sans-serif; font-weight: 500; font-size: 17px; color: var(--ink); white-space: nowrap; }
.r27-fee-sum dd small { font-weight: 400; font-size: 13px; color: var(--muted); }
.r27-fee-sum .r27-req { margin-left: 6px; }
.r27 .r27-fee-sum p.r27-small { margin: 8px 0 0; }
.r27 .r27-fee-sum p.r27-fee-sum-empty { display: none; }
.r27-fee-sum.is-empty dl { display: none; }
.r27 .r27-fee-sum.is-empty p.r27-fee-sum-empty { display: block; margin: 0; }

/* step navigation */
.r27-form-nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.r27-form-nav > .r27-form-actions { flex: 1 1 0; min-width: 0; }
.r27-form-nav [hidden] { display: none; }
.r27 .r27-btn-ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 2px var(--line); }
.r27 .r27-btn-ghost:hover, .r27 .r27-btn-ghost:focus { background: var(--tint); color: var(--head); }

/* ---- FAQ ---- */
.r27-faq details { border-top: 1px solid #d8e2de; padding: 16px 0; }
.r27-faq details:last-child { border-bottom: 1px solid #d8e2de; }
.r27-faq summary { cursor: pointer; list-style: none; font-family: gamay, sans-serif; font-weight: 500; font-size: 20px; color: var(--head); display: flex; justify-content: space-between; gap: 16px; }
.r27-faq summary::-webkit-details-marker { display: none; }
.r27-faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--green); flex: none; }
.r27-faq details[open] summary::after { content: "\2013"; }
.r27-faq .answer { padding: 12px 0 4px; max-width: 70ch; }
.r27 .r27-faq .answer p, .r27 .r27-faq .answer li { font-size: 17px; line-height: 1.5; }
.r27-faq .answer ul { padding-left: 20px; }

/* ---- gallery ---- */
.r27-gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.1); }
.r27-gallery a { display: block; cursor: zoom-in; }
.r27-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.r27-gallery figure:hover img { transform: scale(1.03); }
.r27 .r27-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; background: linear-gradient(transparent, rgba(27,25,57,.7)); color: #fff; font-size: 14px; line-height: 1.35; pointer-events: none; }
.r27-lightbox { border: none; padding: 0; background: transparent; max-width: min(1100px, 92vw); overflow: visible; }
.r27-lightbox::backdrop { background: rgba(27,25,57,.88); }
.r27-lightbox figure { margin: 0; }
.r27-lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 14px; display: block; }
.r27 .r27-lightbox figcaption { color: #fff; font-size: 16px; margin-top: 12px; text-align: center; }
.r27-lightbox figcaption[hidden] { display: none; }
.r27-lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ---- contact ---- */
.r27-contact-list { margin: 0 0 28px; }
.r27-contact-list dt { font-family: gamay, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.r27-contact-list dd { margin: 0 0 10px; font-size: 18px; }
.r27-newsletter { background: #fff; border-radius: 14px; padding: 22px 26px 24px; }
.r27-plain .r27-newsletter { background: var(--tint); }
.r27-newsletter h3 { font-family: gamay, sans-serif; font-weight: 500; font-size: 22px; color: var(--head); margin: 0 0 8px; }
.r27 .r27-newsletter p { font-size: 16px; margin: 0 0 14px; }
.r27 .r27-dark .r27-newsletter h3, .r27 .r27-dark .r27-newsletter p { color: var(--ink); }

/* ---- mobile ---- */
@media (max-width: 991px) {
  .r27-hero { padding: 20px 0 40px; }
  .r27-hero-row { min-height: 0; }
  .r27-hero .r27-m-desk { display: none; }
  .r27-hero-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 18px; margin: 0 0 28px; }
  .r27-m-mob { display: block; z-index: 0; width: 130px; left: -44px; top: calc((100vw - 30px) * 2 / 3 - 86px); opacity: .95; }
  .r27-hero-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .r27-seal { width: 72px; height: 72px; flex: none; margin: 0; }
  .r27 h1.r27-h1 { font-size: 36px; }
  .r27 p.r27-hero-sub { font-size: 18px; margin-bottom: 18px; }
  .r27 p.r27-hero-meta { font-size: 16px; margin-bottom: 22px; }
  .r27-hero-credit { position: static; display: block; margin-top: 16px; }
  .r27-sec { padding: 48px 0; }
  .r27-sec .r27-m { display: none; }
  .r27 h2.r27-h2 { font-size: 30px; }
  .r27 p.r27-pull { font-size: 23px; }
  .r27-card-photo::after { width: 90px; height: 90px; right: -16px; top: -24px; }
  .r27-bio { padding: 22px 44px 18px 20px; }
  .r27-bio-photo img { width: 96px; height: 96px; }
  .r27-fee-accom-side { border-left: 0; border-top: 1px solid var(--line); padding: 14px 15px 0; }
  .r27-form { padding: 22px 18px; }
  .r27-steps .t { display: none; }
  .r27-steps li.is-current .t { display: inline; }
}
@media (max-width: 767px) {
  .r27 h1.r27-h1 { font-size: 32px; }
  .r27-seg-opt { text-align: left; }
  .r27-fee .price { font-size: 34px; }
}

/* fee summary on step 3: the subtotal and VAT lines sit quieter than the fee lines and the total */
.r27-fee-sum dl > div.sub dt, .r27-fee-sum dl > div.sub dd { color: var(--muted); font-weight: 400; }
.r27-fee-sum dl > div.vat dd { font-weight: 400; }
.r27-fee-sum dl > div.vat dt small { display: inline; margin: 0 0 0 4px; }
[data-r27-vat-details] { margin-top: 4px; }
