:root {
  --accent: #2f6f5e;
  --accent-strong: #1f4d41;
  --ink: #18302a;
  --muted: #5f6f69;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dce5df;
  --soft: #edf4ef;
  --danger: #913b36;
  --shadow: 0 16px 45px rgb(31 77 65 / 9%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root[data-brand="iris-yoga"] {
  --accent: #5e4ed0; --accent-strong: #8f43af; --ink: #111019;
  --muted: #665d73; --paper: #fbfaff; --line: #e0ceef; --soft: #f0eaf8;
  --shadow: 0 8px 24px rgb(94 78 208 / 6%);
}
[data-brand="iris-yoga"] body { background: var(--paper); }
[data-brand="iris-yoga"] .brand-mark { width: 108px; height: 68px; border-radius: 0; background: transparent; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.course-price { font-weight: 750; color: var(--accent-strong) !important; }
.meta { white-space: pre-line; }
.detail-card, .event-card, .session-card { min-width: 0; overflow-wrap: anywhere; }
.registration-form { max-width: 38rem; }
.detail-card > .registration-form { margin: 2rem 0; padding: 1.4rem; background: var(--soft); border-radius: 1rem; }
.button { min-height: 44px; }
.agreement { padding-block: .35rem; }
.agreement input { width: 20px; height: 20px; }
summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #e5f0ea 0, transparent 35rem), var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #e7a83e; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 20; background: var(--ink); color: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { transform: none; }
.site-header { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 74rem; margin: auto; padding: 1rem 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50% 45% 50% 40%; color: white; background: var(--accent); font-weight: 750; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: .1rem; color: var(--muted); }
.header-link { color: var(--accent-strong); font-weight: 700; text-decoration-thickness: .1rem; text-underline-offset: .3rem; }
.header-actions { display:flex; align-items:center; gap:1.5rem; }
.website-link { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:44px; padding:.65rem 1.05rem; border:1px solid var(--line); border-radius:999px; background:var(--soft); color:var(--accent-strong); font-size:.9rem; font-weight:600; text-decoration:none; white-space:nowrap; transition:background .16s ease, border-color .16s ease; }
.website-link svg { flex-shrink:0; }
.website-link:hover { background:var(--surface); border-color:var(--accent); }
.website-link:active { background:var(--line); }
@media(max-width:600px) {
  .site-header { flex-wrap:wrap; gap:.75rem; }
  .header-actions { width:100%; }
  .header-actions:has(.website-link[hidden]) { display:none; }
  .website-link { width:100%; }
}
main { min-height: calc(100vh - 10rem); }
.hero { max-width: 74rem; margin: 0 auto; padding: 4.5rem 2rem 2.5rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: .78rem; }
h1 { max-width: 16ch; margin: .5rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 500; line-height: .98; }
.hero > p:last-child { max-width: 40rem; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.content-shell { max-width: 74rem; margin: 0 auto; padding: 1rem 2rem 5rem; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.event-card, .detail-card, .session-card, .empty { background: rgb(255 255 255 / 94%); border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow); }
.event-card { display: flex; flex-direction: column; min-height: 19rem; padding: 1.5rem; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.event-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.event-card h2, .detail-card h2 { margin: .75rem 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.75rem; }
.event-card p { color: var(--muted); line-height: 1.55; }
.event-card .card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.event-card .card-footer strong { flex-shrink: 0; white-space: nowrap; }
.meta { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 99rem; padding: .36rem .68rem; background: var(--soft); color: var(--accent-strong); font-size: .78rem; font-weight: 750; }
.pill.full, .pill.closed, .pill.cancelled { color: var(--danger); background: #f8eceb; }
.detail-card { padding: clamp(1.5rem, 4vw, 3rem); }
.policy-document { width: min(100% - 2rem, 50rem); margin: 2rem auto; min-height: auto; line-height: 1.65; }
.policy-document h1 { max-width: none; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.policy-document h2 { margin-top: 2rem; }
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--accent-strong); font-weight: 700; }
.description { max-width: 46rem; color: var(--muted); line-height: 1.7; }
.sessions { display: grid; gap: 1rem; margin-top: 2.5rem; }
.session-card { display: grid; grid-template-columns: minmax(9rem, .8fr) minmax(12rem, 1.5fr) auto; align-items: center; gap: 1.5rem; padding: 1.25rem 1.4rem; box-shadow: none; }
.session-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.session-card p { margin: .2rem 0; }
.session-actions { min-width: min(100%, 22rem); text-align: left; }
.button { border: 0; border-radius: .75rem; padding: .78rem 1rem; color: white; background: var(--accent); font-weight: 750; cursor: pointer; }
.button:hover { background: var(--accent-strong); }
.button:disabled { cursor: not-allowed; color: #738078; background: #e5ebe7; }
.button.secondary { color: var(--accent-strong); background: var(--soft); }
.booking-state { margin-top: .65rem; color: var(--accent-strong); font-size: .86rem; }
.registration-form { display: grid; gap: .7rem; min-width: min(100%, 21rem); }
.field { display: grid; gap: .3rem; }
.field label { color: var(--ink); font-size: .84rem; font-weight: 700; }
.field input { width: 100%; border: 1px solid #aebdb5; border-radius: .6rem; padding: .65rem .7rem; color: var(--ink); background: white; }
.agreement { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .65rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.agreement-label { display: flex; align-items: start; gap: .55rem; flex: 1 1 240px; }
.agreement .policy-link { font-size: .78rem; padding: .45rem 0; text-underline-offset: .2em; margin-left: 1.8rem; }
.agreement input { margin-top: .18rem; }
.privacy-warning { margin: .2rem 0; padding: .55rem .65rem; border-left: 3px solid #c78626; color: #694a19; background: #fff8e8; font-size: .82rem; line-height: 1.45; }
.notice { max-width: 70rem; margin: 0 auto 1rem; padding: 1rem 1.2rem; border-radius: .8rem; background: #fff7df; border: 1px solid #ebd796; }
.empty { padding: 3rem; text-align: center; color: var(--muted); }
.skeleton { min-height: 12rem; animation: pulse 1.2s ease-in-out infinite alternate; }
footer { max-width: 74rem; margin: auto; padding: 1.5rem 2rem 2.5rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
@keyframes pulse { from { opacity: .5; } to { opacity: .9; } }

@media (max-width: 700px) {
  .site-header, .hero, .content-shell, footer { padding-left: 1.15rem; padding-right: 1.15rem; }
  .hero { padding-top: 3rem; }
  .header-link { display: none; }
  .detail-head, .session-card { display: block; }
  .session-actions { margin-top: 1rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Approved Iris guest flow: readable content, clear dates and a final review. */
:root[data-brand="iris-yoga"] { --paper:#f8f7f4; --soft:#f2ecf4; --line:#e6e1e7; --ink:#28232b; --muted:#726b75; --accent:#79558a; --accent-strong:#624272; }
.venue-image { width:100%; max-height:300px; object-fit:cover; border-radius:12px; display:block; margin-bottom:20px; }
.event-card .venue-image { height:180px; }
.registration-review { width:100%; border:1px solid var(--line); border-radius:12px; background:var(--soft); padding:20px; }
.registration-review p { overflow-wrap:anywhere; }
.registration-success { padding:20px; border-radius:12px; background:#e8f4eb; color:#285c3d; font-weight:650; }
button,.button,input:not([type=checkbox]) { min-height:44px; }
@media(max-width:760px){.registration-form,.session-actions { width:100%; max-width:100%; }.registration-review { padding:16px; }.detail-card { padding:20px; } }
