/* Volos First Aid · public surfaces */
:root {
  --vfa-ink: #252229;
  --vfa-muted: #5c555b;
  --vfa-paper: #f7f4ee;
  --vfa-white: #fff;
  --vfa-accent: #931e34;
  --vfa-accent-hover: #701528;
  --vfa-line: #ded7ce;
  --vfa-focus: #1a6584;
  --vfa-radius: 10px;
  --vfa-space: clamp(24px, 5.5vw, 78px);
  --vfa-motion: 160ms ease;
  --vfa-font: system-ui, 'Segoe UI', sans-serif;
}
body:has(.vfa-header) { font-family:var(--vfa-font); }
body:has(.vfa-header) :focus-visible {
  outline: 3px solid var(--vfa-focus);
  outline-offset: 3px;
}
.vfa-header .vfa-brand-logo img { width: clamp(150px, 14vw, 190px); }
.vfa-header .vfa-header-inner { min-height: 70px; }
.vfa-header .vfa-navigation { font-family:var(--vfa-font); font-size:.85rem; }
.vfa-header .vfa-navigation a { min-height: 42px; display: inline-flex; align-items: center; }
@media (max-width: 820px) {
  .vfa-header .vfa-toggle { display:flex; align-items:center; gap:7px; min-height:44px; }
  .vfa-header .vfa-navigation:not(.is-open) { display:none; }
}
.editorial-label {
  display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
  font: 720 .76rem/1.4 var(--vfa-font); color: var(--vfa-accent); letter-spacing: .05em;
}
.editorial-label span { width: 20px; height: 1px; background: var(--vfa-accent); flex: none; }
.editorial-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--vfa-accent); font: 720 .88rem/1.35 var(--vfa-font); text-underline-offset: 4px;
}
.editorial-link:hover { text-decoration: underline; }
.editorial-link svg { flex: none; width: 16px; height: 16px; }
:is(.editorial-intro,.editorial-agenda,.group-training,.seminar-detail-page) .btn {
  min-height: 46px; display: inline-flex; justify-content: center; align-items: center;
  gap: 11px; padding: 11px 17px; border-radius: var(--vfa-radius);
  background: var(--vfa-accent); color: #fff; font: 720 .87rem/1.35 var(--vfa-font);
  transition: background-color var(--vfa-motion);
}
:is(.editorial-intro,.editorial-agenda,.group-training,.seminar-detail-page) .btn:hover { background: var(--vfa-accent-hover); }
:is(.editorial-intro,.group-intro,.schedule-intro,.event-hero) { background: var(--vfa-paper); color: var(--vfa-ink); }
.editorial-intro {
  padding: clamp(32px, 4vw, 59px) 0; border-block-end: 1px solid var(--vfa-line);
}
.editorial-intro-grid,.group-intro-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center;
  gap: clamp(20px,4.5vw,66px);
}
.editorial-intro h1,.group-intro h1,.schedule-intro h1,.event-heading h1 {
  margin: 0; max-width: 21ch; font: 780 clamp(2.2rem,4.1vw,3.7rem)/1.08 var(--vfa-font);
  letter-spacing: -.05em; overflow-wrap: anywhere; text-wrap: balance;
}
.editorial-intro h1 { font-size:clamp(2.2rem,3.75vw,3.35rem); }
.editorial-lead,.group-intro p:not(.editorial-label),.schedule-intro p:not(.editorial-label) {
  max-width: 52ch; margin: 18px 0 0; color: var(--vfa-muted);
  font: 440 clamp(.95rem,1.2vw,1.06rem)/1.65 var(--vfa-font);
}
.editorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 23px; }
.editorial-intro-media { min-width: 0; border-radius: var(--vfa-radius); overflow: hidden; background: #e7ded4; }
.editorial-hero-image { display: block; width: 100%; height: auto; aspect-ratio: 1.66; object-fit: cover; }
.editorial-accreditation {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--vfa-white); color: var(--vfa-muted); font: 650 .75rem/1.4 var(--vfa-font);
}
.editorial-accreditation img { width: clamp(124px,15vw,190px); height: auto; }
.editorial-accreditation span { display: inline-flex; gap: 4px; align-items: center; }
.editorial-accreditation svg { width: 14px; height: 14px; flex: none; }
.editorial-agenda { padding: clamp(32px,4vw,57px) 0; background: var(--vfa-white); }
.editorial-section-head { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:4px 20px; margin:0 0 18px; }
.editorial-section-head h2,.group-training h2 {
  margin: 0; color: var(--vfa-ink); font: 760 clamp(1.75rem,3vw,2.45rem)/1.16 var(--vfa-font); letter-spacing: -.035em;
}
.editorial-section-head .editorial-label { margin-bottom: 6px; }
.agenda-fallback { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 18px; border-block:1px solid var(--vfa-line); padding:10px 0; color:var(--vfa-muted); }
.agenda-fallback p { margin:0; }
.agenda-list { border-top:1px solid var(--vfa-line); }
.agenda-row {
  display:grid; grid-template-columns: minmax(110px, .34fr) minmax(0,1.55fr) minmax(126px,.4fr) auto;
  gap:clamp(12px,2vw,28px); align-items:center; padding:19px 0; border-bottom:1px solid var(--vfa-line);
}
.agenda-date { display:grid; gap:1px; color:var(--vfa-ink); font-weight:760; font-size:.95rem; }
.agenda-date small,.agenda-details p,.agenda-program { color:var(--vfa-muted); font-size:.81rem; font-weight:450; }
.agenda-program { display:block; margin-bottom:3px; color:var(--vfa-accent); font-weight:700; }
.agenda-details { min-width:0; }
.agenda-details h3 { margin:0; color:var(--vfa-ink); font-size:1.1rem; line-height:1.28; overflow-wrap:anywhere; }
.agenda-details p { margin:4px 0 0; overflow-wrap:anywhere; }
.agenda-seats { margin:0; font-size:.81rem; color:#285a42; font-weight:720; }
.agenda-seats.is-full { color:var(--vfa-muted); }
.agenda-row .editorial-link { text-align:left; }
.agenda-calendar { margin-top:12px; }
:is(.agenda-calendar,.rti-reference)>summary { display:list-item; width:fit-content; padding:12px 0; cursor:pointer; color:var(--vfa-accent); font-weight:720; font-size:.88rem; }
.agenda-calendar summary svg { width:16px; height:16px; vertical-align:middle; margin-right:5px; }
.agenda-calendar .home-seminar-calendar { padding:4px 0 0; background:transparent; }
.editorial-reviews { padding:var(--vfa-space) 0; background:var(--vfa-paper); }
.editorial-reviews #google-reviews { margin:0; padding:0; border:0; }
.editorial-reviews #reviews-title { max-width:18ch; font:760 clamp(1.7rem,3.2vw,2.45rem)/1.13 var(--vfa-font); letter-spacing:-.035em; }
.vfa-editorial-home .programs,.vfa-editorial-home .about,.vfa-editorial-home .vfa-trust-section { padding-block:var(--vfa-space); }
.vfa-editorial-home .photo-stories { padding-block:var(--vfa-space); }
.vfa-editorial-home .photo-stories header { position:static; height:auto; background:none; border:0; backdrop-filter:none; }
.vfa-editorial-home .rti-chapter { padding-block:var(--vfa-space); }
.vfa-editorial-home .rti-reference { margin-top:16px; }
.vfa-editorial-home .rti-reference summary { color:inherit; }
.vfa-editorial-home .vfa-audience-link { border-top:1px solid var(--vfa-line); padding-block:30px; }
.schedule-intro,.event-hero { padding:29px 0 37px; border-bottom:1px solid var(--vfa-line); }
.schedule-intro .event-crumb,.event-hero .event-crumb,.group-intro .event-crumb { margin:0 0 20px; line-height:1.45; }
.schedule-intro h1 { max-width:24ch; }
.schedule-page:not(.seminar-detail-page) .schedule-main { padding:clamp(27px,4vw,52px) 0; }
.schedule-page .schedule-section-heading h2 { font:750 clamp(1.5rem,2.65vw,2.2rem)/1.15 var(--vfa-font); letter-spacing:-.035em; }
.schedule-page .schedule-controls { background:var(--vfa-paper); border-color:var(--vfa-line); }
.schedule-page .schedule-card { min-width:0; overflow:hidden; border:1px solid var(--vfa-line); box-shadow:none; }
.schedule-page .schedule-card-cover img { object-fit:contain; }
.schedule-page .schedule-card-title h3 { overflow-wrap:anywhere; }
.event-heading { align-items:flex-start; }
.event-heading h1 { max-width:29ch; font-size:clamp(1.95rem,4vw,3.25rem); }
.event-heading .event-kicker { margin-bottom:10px; color:var(--vfa-accent); }
.event-overview { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; margin:16px 0 0; color:var(--vfa-muted); font-size:.92rem; }
.event-overview strong { color:var(--vfa-ink); }
.event-overview .event-program { min-height:40px; }
.seminar-detail-page .event-heading .event-hero-book { margin-top:14px; }
.event-badge { padding:8px; border:1px solid var(--vfa-line); }
.event-badge img { width:75px; height:75px; }
.event-body { padding:clamp(25px,3vw,42px) 0; background:var(--vfa-white); }
.event-layout { grid-template-columns:minmax(0,1.45fr) minmax(275px,1fr); gap:26px clamp(22px,4vw,56px); }
.event-layout .event-reserve { background:var(--vfa-paper); border:1px solid var(--vfa-line); border-radius:var(--vfa-radius); box-shadow:none; padding:clamp(17px,2.4vw,28px); }
.event-layout .event-reserve h2 { margin-bottom:13px; }
.event-layout .event-reserve .event-facts { margin:16px 0; }
.event-layout .event-poster { justify-self:start; width:100%; background:var(--vfa-paper); border:1px solid var(--vfa-line); border-radius:var(--vfa-radius); }
.event-layout .event-poster img { height:auto; max-height:680px; object-fit:contain; }
.event-poster-full { display:flex; justify-content:center; align-items:center; min-height:44px; border-top:1px solid var(--vfa-line); background:var(--vfa-white); }
.event-price { margin:14px 0 4px; }
.event-group-note { font-size:.87rem; color:var(--vfa-muted); overflow-wrap:anywhere; }
.event-group-note .editorial-link { display:flex; }
.event-description p,.event-fact dd { overflow-wrap:anywhere; }
.group-intro { padding:clamp(28px,4vw,57px) 0; border-bottom:1px solid var(--vfa-line); }
.group-intro img { width:100%; display:block; height:auto; aspect-ratio:1.42; object-fit:cover; border-radius:var(--vfa-radius); }
.group-intro .btn { margin-top:20px; }
.group-audiences { padding-block:var(--vfa-space); }
.audience-directory { margin:17px 0 0; border-top:1px solid var(--vfa-line); }
.audience-directory>div { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.65fr); gap:12px 30px; padding:22px 0; border-bottom:1px solid var(--vfa-line); }
.audience-directory dt { font-size:1.04rem; font-weight:750; }
.audience-directory dd,.group-next p { margin:0; max-width:72ch; color:var(--vfa-muted); line-height:1.65; }
.group-next { padding-top:34px; }
.group-next p { margin-top:10px; }
@media (max-width: 900px) {
  .agenda-row { grid-template-columns:minmax(96px,.4fr) minmax(0,1.65fr) auto; }
  .agenda-state { grid-column:2; }
  .agenda-row .editorial-link { grid-column:3; grid-row:1 / span 2; }
}
@media (max-width: 780px) {
  .vfa-header .vfa-header-inner { min-height:58px; }
  .editorial-intro-grid,.group-intro-grid { grid-template-columns:minmax(0,1fr); }
  .editorial-intro h1,.group-intro h1 { max-width:24ch; font-size:clamp(2rem,6vw,3.35rem); }
  .editorial-intro .editorial-lead { margin-top:11px; }
  .editorial-intro .editorial-actions { margin-top:15px; }
  .editorial-hero-image { aspect-ratio:2.08; object-position:center 51%; }
  .event-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:'reserve' 'visual' 'description'; }
  .event-layout .event-reserve { position:static; }
  .event-layout .event-poster img { max-height:none; }
  .event-badge img { width:49px; height:49px; }
  .event-heading { gap:11px; position:relative; }
  .event-heading:has(.event-hero-book) .event-badge { position:absolute; right:0; bottom:0; padding:3px; }
  .event-overview { gap:2px 11px; }
  .event-overview .event-program { min-height:32px; }
  .audience-directory>div { grid-template-columns:minmax(0,1fr); gap:4px; padding:17px 0; }
}
@media (max-width: 520px) {
  .editorial-intro,.group-intro,.schedule-intro,.event-hero { padding-block:24px; }
  .editorial-intro-grid,.group-intro-grid { gap:17px; }
  .editorial-actions { gap:3px 12px; }
  .editorial-accreditation { padding:8px 10px; font-size:.67rem; gap:8px; }
  .agenda-row { grid-template-columns: minmax(0,1fr) auto; gap:7px 9px; align-items:start; }
  .agenda-date { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; }
  .agenda-details { grid-column:1/-1; }
  .agenda-row .editorial-link,.agenda-state { grid-column:auto; grid-row:auto; align-self:center; }
  .event-heading h1 { font-size:clamp(1.8rem,7vw,2.3rem); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.editorial-intro,.editorial-agenda,.group-training,.seminar-detail-page) .btn { transition:none; }
}
.agenda-price { margin:3px 0 0; color:var(--vfa-ink); font-size:.87rem; font-weight:740; }
/* Booking keeps the event context and the current step visible without a second page. */
.booking-dialog { border:1px solid var(--vfa-line); border-radius:14px; scroll-padding:18px 0 82px; }
.booking-dialog .dialog-in { padding:clamp(16px,3vw,28px); }
.booking-dialog .dialog-head h2 { font:780 clamp(1.35rem,3.2vw,1.9rem)/1.15 var(--vfa-font); letter-spacing:-.035em; }
.booking-dialog .booking-event { margin:13px 0; padding:12px; background:var(--vfa-paper); border-color:var(--vfa-line); }
.booking-dialog .booking-progress { margin-block:12px 14px; }
.booking-dialog .booking-section { padding-block:11px; }
.booking-dialog label { font-size:.84rem; }
.booking-dialog :is(input:not([type=checkbox]),select) { min-height:44px; font-size:1rem; }
.booking-dialog .dialog-head button { min-width:44px; min-height:44px; }
.booking-dialog #booking-error {
  display:block; margin:0 0 14px; padding:11px 14px; background:#fff2f3;
  border-left:3px solid var(--vfa-accent); color:#74182a; font-size:.87rem; line-height:1.45;
}
.booking-dialog #booking-error ul { margin:6px 0 0; padding-inline-start:21px; }
.booking-dialog #booking-error a { display:inline-block; padding:3px 0; color:inherit; text-decoration:underline; }
.booking-dialog [aria-invalid=true] { border:2px solid #a71e36; }
.booking-dialog .booking-field-error { display:block; color:#8b1d32; font-weight:650; font-size:.8rem; line-height:1.4; }
.booking-dialog .booking-section-heading p,.booking-dialog .booking-help { color:var(--vfa-muted); }
.booking-dialog #booking-summary { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.booking-dialog #booking-summary .booking-summary-section { margin:6px 0 12px; padding:12px 14px; border:1px solid var(--vfa-line); border-radius:9px; background:var(--vfa-paper); }
.booking-summary-section h4 { margin:0 0 5px; }
.booking-summary-section dl { margin:0; }
.booking-review-row { display:grid; grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr); align-items:center; gap:5px 12px; border-top:1px solid var(--vfa-line); }
.booking-review-row dt { color:var(--vfa-muted); font-size:.78rem; }
.booking-review-row dd { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:0; font-size:.87rem; overflow-wrap:anywhere; }
.booking-edit { border:0; background:none; color:var(--vfa-accent); font-weight:720; font-size:.77rem; min-height:40px; padding:4px; cursor:pointer; }
.booking-edit:hover { text-decoration:underline; }
.booking-dialog .booking-actions { position:sticky; bottom:0; margin-top:15px; padding:10px 0 2px; background:var(--vfa-white); border-top:1px solid var(--vfa-line); z-index:1; }
@media (max-width:520px) {
  .booking-dialog .booking-event { grid-template-columns:minmax(0,1fr); }
  .booking-dialog .booking-event img { display:none; }
  .booking-review-row { grid-template-columns:minmax(0,1fr); gap:0; padding:7px 0 0; }
  .booking-review-row dd { min-width:0; }
}
