/* =========================================================
   SURGICON 2027 — components.css
   Reusable building blocks used on every page.
   Naming: .block, .block__part, .block--variant
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

/* Orange: main call to action (dark text keeps it readable) */
.btn--primary {
  background: var(--orange-500);
  color: var(--primary-900);
  box-shadow: 0 8px 20px rgba(243, 154, 46, 0.32);
}
.btn--primary:hover { background: var(--orange-600); color: var(--white); }

/* Maroon solid */
.btn--brand { background: var(--primary-500); color: var(--white); }
.btn--brand:hover { background: var(--primary-800); }

/* Maroon outline */
.btn--outline { border-color: var(--primary-500); color: var(--primary-600); background: var(--white); }
.btn--outline:hover { background: var(--primary-500); color: var(--white); }

/* White outline for dark backgrounds */
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--primary-800); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover { color: var(--orange-600); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Section heading ---------- */
.section-head { margin-bottom: var(--space-7); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: flex-end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange-500);
}
.section-head h2 { margin-bottom: var(--space-4); }
.section-head h2 em { font-style: normal; color: var(--primary-500); }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lg); }

/* ---------- Card (base) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }

/* ---------- Leadership card (matches poster name boxes) ---------- */
.leader-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.leader-card__name {
  font-size: 1.15rem;
  color: var(--primary-600);
  margin-bottom: 2px;
}
.leader-card__role { font-weight: 600; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Avatar with dotted orange ring (poster circle frame) ---------- */
.avatar {
  --size: 96px;
  position: relative;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  padding: 6px;
  background: var(--white);
}
.avatar::before {           /* dotted orange ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dotted var(--orange-500);
}
.avatar img,
.avatar__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--primary-50), var(--primary-100));
  color: var(--primary-600);
}
.avatar__placeholder svg { width: 55%; height: 55%; }
.avatar--lg { --size: 150px; }
.avatar--sm { --size: 72px; }

/* ---------- Info card (icon + title + text) ---------- */
.info-card { position: relative; overflow: hidden; }
.info-card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  margin-bottom: var(--space-5);
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary-600);
  transition: background-color 0.3s, color 0.3s;
}
.info-card__icon svg { width: 28px; height: 28px; }
.info-card:hover .info-card__icon { background: var(--primary-500); color: var(--white); }
.info-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.info-card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.info-card::after {        /* orange accent bar grows on hover */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--orange-500);
  transition: width 0.35s var(--ease);
}
.info-card:hover::after { width: 100%; }

/* ---------- Speaker card ---------- */
.speaker-card { text-align: center; padding: var(--space-6) var(--space-5); }
.speaker-card .avatar { margin: 0 auto var(--space-5); }
.speaker-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.speaker-card__role { color: var(--primary-600); font-weight: 600; font-size: var(--fs-sm); }
.speaker-card__org { color: var(--ink-soft); font-size: var(--fs-xs); margin: 4px auto var(--space-4); }

/* ---------- Hexagon image frame ---------- */
.hex {
  position: relative;
  aspect-ratio: 1 / 1.1547;   /* regular pointy-top hexagon */
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--white);
  padding: 6px;
}
.hex__inner {
  width: 100%;
  height: 100%;
  clip-path: inherit;
  overflow: hidden;
}
.hex img { width: 100%; height: 100%; object-fit: cover; }
.hex--brand { background: var(--primary-500); }
.hex--orange { background: var(--orange-500); }

/* ---------- Honeycomb: three hexagons arranged like the poster ---------- */
.honeycomb {                  /* three hexagons arranged like the poster */
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 1 / 0.97;
}
.honeycomb .hex { position: absolute; width: 47%; }
.honeycomb .hex:nth-child(1) { top: 0; left: 2%; }
.honeycomb .hex:nth-child(2) { top: 0; left: 51%; }
.honeycomb .hex:nth-child(3) { top: 43%; left: 26.5%; }
.honeycomb__label {
  position: absolute;
  left: 0; bottom: 4%;
  z-index: 2;
  padding: 10px 16px;
  background: var(--white);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.honeycomb__label span { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--ink-soft); }


/* ---------- Badge / pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-800);
}
.pill--orange { background: var(--orange-100); color: #8A4210; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: var(--space-3); }
.countdown__unit {
  min-width: 74px;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.countdown__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--primary-600);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Timeline (important dates) ---------- */
.timeline { position: relative; display: grid; gap: var(--space-5); }
.timeline::before {           /* vertical line on mobile */
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--primary-100);
}
.timeline__item { position: relative; padding-left: 44px; }
.timeline__dot {
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-500);
}
.timeline__item--highlight .timeline__dot { background: var(--orange-500); border-color: var(--orange-500); box-shadow: 0 0 0 6px var(--orange-100); }
.timeline__date {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-600);
}
.timeline__item--highlight .timeline__date { color: var(--orange-600); }
.timeline__title { font-weight: 600; margin-top: 2px; }
.timeline__note { font-size: var(--fs-xs); color: var(--ink-soft); }

@media (min-width: 900px) {   /* horizontal on desktop */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
  .timeline::before { left: 8%; right: 8%; top: 11px; bottom: auto; width: auto; height: 2px; }
  .timeline__item { padding: 44px 0 0; text-align: center; }
  .timeline__dot { left: 50%; transform: translateX(-50%); top: 0; }
}

/* ---------- Tabs ---------- */
.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 6px;
  margin-bottom: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.tabs__tab {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s;
}
.tabs__tab small { display: block; font-weight: 500; font-size: 0.72rem; font-family: var(--font-body); }
.tabs__tab:hover { color: var(--primary-600); }
.tabs__tab[aria-selected="true"] { background: var(--primary-500); color: var(--white); }
.tabs__panel[hidden] { display: none; }

/* ---------- Session rows (programme) ---------- */
.session-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.session {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
}
.session:last-child { border-bottom: 0; }
.session:hover { background: var(--primary-50); }
.session__time {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--primary-600);
  font-variant-numeric: tabular-nums;
}
.session__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; }
.session__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.session__tag { justify-self: start; }

@media (min-width: 768px) {
  .session { grid-template-columns: 150px 1fr auto; align-items: center; gap: var(--space-5); }
  .session__tag { justify-self: end; }
}

/* ---------- Workshop card ---------- */
.workshop-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.workshop-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-800));
  color: rgba(255, 255, 255, 0.9);
}
.workshop-card__media svg { width: 64px; height: 64px; }
.workshop-card__media .pill { position: absolute; top: 14px; left: 14px; }
.workshop-card__body { padding: var(--space-5) var(--space-6) var(--space-6); flex: 1; display: flex; flex-direction: column; }
.workshop-card__body h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.workshop-card__body p { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: var(--space-4); flex: 1; }

/* ---------- Call-to-action band (diagonal edge like poster 3) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--section-y) + 2rem) var(--section-y);
  background: var(--primary-800);
  color: var(--white);
  clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%);
}
.cta-band::after {            /* parallel orange swoosh lines */
  content: "";
  position: absolute;
  left: -5%; right: -5%;
  top: 2.2rem;
  height: 14px;
  border-top: 3px solid var(--orange-500);
  border-bottom: 2px solid rgba(243, 154, 46, 0.55);
  transform: rotate(-1.6deg);
  transform-origin: left;
  pointer-events: none;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.cta-band h2 { color: var(--white); font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.cta-band p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

/* =========================================================
   INNER-PAGE COMPONENTS
   ========================================================= */

/* ---------- Page banner (top of every inner page) ----------
   Same height, alignment and style on every page.
   Title format: "Dark word <em>Green word</em>" on one line. */
.page-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding-block: var(--space-7) var(--space-8);
  background:
    url("../images/patterns/waves.svg") right -160px top -120px / 900px auto no-repeat,
    linear-gradient(180deg, var(--white), var(--primary-50));
}
.page-banner > .container { width: 100%; }
.page-banner__media {         /* faded Badshahi Mosque on the right */
  position: absolute;
  right: -40px;
  bottom: 0;
  width: min(44%, 600px);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  pointer-events: none;
}
.page-banner__content { position: relative; max-width: 760px; }
.page-banner h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.page-banner h1 em { font-style: normal; color: var(--primary-500); }
.page-banner p { color: var(--ink-soft); font-size: var(--fs-lg); max-width: 60ch; }
.page-banner__swoosh {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  width: 100%;
  height: 60px;
  pointer-events: none;
}
@media (min-width: 768px) {
  .page-banner h1 { white-space: nowrap; }
}
@media (max-width: 767px) {
  .page-banner { min-height: 300px; }
  .page-banner__media { opacity: 0.18; width: 90%; right: -20%; }
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--primary-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--orange-500);
}
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Text content ---------- */
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--space-6); }
.prose h3 { font-size: 1.1rem; margin-top: var(--space-5); }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--primary-600); text-decoration: underline; }

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
}
.check-list li + li { margin-top: var(--space-3); }
.check-list li::before {      /* maroon tick in a circle */
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2382242C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: var(--space-4); }
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-4) var(--space-5) var(--space-4) 72px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-500);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
}
.steps strong { display: block; font-family: var(--font-heading); }
.steps span { font-size: var(--fs-sm); color: var(--ink-soft); }

/* Notice box */
.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--orange-100);
  border-left: 4px solid var(--orange-500);
  font-size: var(--fs-sm);
  color: #6B3A10;
}
.notice svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--orange-600); }
.notice--brand { background: var(--primary-50); border-color: var(--primary-500); color: var(--primary-800); }
.notice--brand svg { color: var(--primary-600); }

/* Sidebar card (sticky on desktop) */
.side-card { position: sticky; top: 160px; }
.side-card h3 { font-size: 1.1rem; margin-bottom: var(--space-4); }
.side-card .btn { width: 100%; margin-top: var(--space-3); }

/* Key/value list (date, venue, etc.) */
.meta-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
}
.meta-list li + li { margin-top: var(--space-3); }
.meta-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--primary-500); }
.meta-list strong { display: block; color: var(--ink); }
.meta-list span { color: var(--ink-soft); }

/* ---------- Tables (fees, programme) ---------- */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th, .table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  background: var(--primary-800);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.table thead th.is-highlight { background: var(--primary-500); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: #FCFAFA; }
.table tbody tr:hover { background: var(--primary-50); }
.table tbody th { font-family: var(--font-heading); font-weight: 700; }
.table td.is-highlight { font-weight: 700; color: var(--primary-600); }
.table__time { font-family: var(--font-heading); font-weight: 700; color: var(--primary-600); white-space: nowrap; }
.table__title { font-family: var(--font-heading); font-weight: 700; color: var(--ink); }

/* Tables become stacked cards on small screens */
@media (max-width: 767px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td, .table--stack tbody th {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--space-3);
    padding: 4px 0;
    border: 0;
  }
  .table--stack td::before, .table--stack tbody th::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
  }
}

/* ---------- Pricing / category cards ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.price-card__who { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--space-5); }
.price-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--space-3);
  border-top: 1px dashed var(--line);
  font-size: var(--fs-sm);
}
.price-card__row strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary-600); }
.price-card .btn { margin-top: auto; }
.price-card--featured { border: 2px solid var(--primary-500); }
.price-card__flag {
  position: absolute;
  top: -12px; right: 20px;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
}
.field label .req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(155, 42, 51, 0.15);
}
.field input[type="file"] { padding: 10px; background: var(--surface); border-style: dashed; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-soft); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: #C0392B; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }

.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary-500); }
.field--check label { flex: 1; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); }
.field--check .field__error { flex-basis: 100%; }

.form-success {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-800);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.form-success[hidden] { display: none; }

.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.form-card h2 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.form-card > p { color: var(--ink-soft); margin-bottom: var(--space-6); }
.form-card:hover { transform: none; }

/* ---------- Filter bar (search + buttons) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.filter-bar__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--primary-500); color: var(--primary-600); }
.chip[aria-pressed="true"] { background: var(--primary-500); border-color: var(--primary-500); color: var(--white); }
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}
.search svg {
  position: absolute;
  left: 16px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  color: var(--ink-soft);
}
.search input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  font: inherit;
  font-size: var(--fs-sm);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
}
.search input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 4px rgba(155, 42, 51, 0.15); }
[data-filter-item][hidden] { display: none; }
.empty-state { text-align: center; padding: var(--space-7); color: var(--ink-soft); }
.empty-state[hidden] { display: none; }

/* ---------- Modal (dialog) ---------- */
.modal {
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.modal::backdrop { background: rgba(70, 18, 26, 0.55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in 0.3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.modal__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: linear-gradient(180deg, var(--primary-50), var(--white));
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: var(--fs-xl); }
.modal__head p { color: var(--primary-600); font-weight: 600; font-size: var(--fs-sm); }
.modal__body { padding: var(--space-6); }
.modal__body > * + * { margin-top: var(--space-4); }
.modal__body p { color: var(--ink-soft); }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--primary-500); color: var(--white); }
.modal__close svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .modal__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Welcome message card ---------- */
.message-card {
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.message-card::before {        /* large quote mark */
  content: "\201C";
  position: absolute;
  top: 6px; right: 28px;
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--primary-100);
}
@media (min-width: 768px) {
  .message-card { grid-template-columns: 200px 1fr; align-items: start; }
}
.message-card__person { text-align: center; }
.message-card__person .avatar { margin: 0 auto var(--space-4); }
.message-card__person h3 { font-size: 1.05rem; }
.message-card__person p { font-size: var(--fs-sm); color: var(--primary-600); font-weight: 600; }
.message-card__role {
  display: inline-block;
  margin-bottom: var(--space-3);
}
.message-card__text h2 { font-size: var(--fs-xl); margin-bottom: var(--space-4); }
.message-card__text p { color: var(--ink-soft); }
.message-card__text p + p { margin-top: var(--space-3); }
.message-card__more[hidden] { display: none; }
.read-more {
  margin-top: var(--space-4);
}

/* ---------- Committee card ---------- */
.member-card { text-align: center; padding: var(--space-5); }
.member-card .avatar { margin: 0 auto var(--space-4); }
.member-card h3 { font-size: 1rem; margin-bottom: 2px; }
.member-card__role { font-size: var(--fs-sm); color: var(--primary-600); font-weight: 600; }
.member-card__org { font-size: var(--fs-xs); color: var(--ink-soft); margin-inline: auto; }
.member-card--lead { border-top: 4px solid var(--orange-500); }

.group-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-7) 0 var(--space-5);
  font-size: var(--fs-xl);
}
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Media card (hotels, venue) ---------- */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-800));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.media-card:hover .media-card__img img { transform: scale(1.04); }
.media-card__img > svg { width: 56px; height: 56px; }
.media-card__img .pill { position: absolute; top: 14px; left: 14px; }
.media-card__body { padding: var(--space-5) var(--space-6) var(--space-6); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.media-card__body h3 { font-size: 1.1rem; }
.media-card__body > p { color: var(--ink-soft); font-size: var(--fs-sm); }
.media-card__foot { margin-top: auto; padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Contact info card ---------- */
.contact-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-card__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-500);
  color: var(--white);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: var(--fs-sm); }
.contact-card a:hover { color: var(--primary-600); }

/* ---------- Newsletter band ---------- */
.newsletter {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    url("../images/patterns/waves.svg") right -200px center / 800px auto no-repeat,
    var(--primary-50);
  border: 1px solid var(--primary-100);
}
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.newsletter p { color: var(--ink-soft); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-start; }
.newsletter__form .field { flex: 1 1 240px; }
.newsletter__form .btn { flex-shrink: 0; }
.newsletter__form .form-success { flex-basis: 100%; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-500);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background-color 0.2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-800); }
.back-to-top svg { width: 20px; height: 20px; }

/* Map frame (shared) */
.map-frame {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--primary-50);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Timeline card variant (Important Dates page) */
.date-list { display: grid; gap: var(--space-4); position: relative; }
.date-list::before {
  content: "";
  position: absolute;
  left: 39px; top: 20px; bottom: 20px;
  width: 2px;
  background: var(--primary-100);
}
.date-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-5);
  align-items: center;
}
.date-item__badge {
  position: relative;
  z-index: 1;
  width: 80px; height: 80px;
  display: grid; place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-500);
  font-family: var(--font-heading);
  line-height: 1.1;
}
.date-item__badge strong { font-size: 1.4rem; font-weight: 800; color: var(--primary-600); }
.date-item__badge small { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.date-item__card { padding: var(--space-5) var(--space-6); }
.date-item__card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.date-item__card p { font-size: var(--fs-sm); color: var(--ink-soft); }
.date-item__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; margin-bottom: 4px; }
.date-item--highlight .date-item__badge { background: var(--orange-500); border-color: var(--orange-500); }
.date-item--highlight .date-item__badge strong, .date-item--highlight .date-item__badge small { color: var(--white); }
.date-item--highlight .date-item__card { border: 2px solid var(--orange-500); }
.date-item--done .date-item__badge { border-color: var(--line); }

/* Social icons on light backgrounds */
.socials--light a { border-color: var(--line); color: var(--primary-600); }

/* Small refinements */
.price-card__row { flex-direction: column; align-items: flex-start; gap: 2px; }
.price-card { padding: var(--space-5); }
.grid--4 > .contact-card { flex-direction: column; }
.message-card__text h2 { padding-right: 64px; }
.table--stack td .pill { justify-self: start; }
@media (max-width: 560px) {
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--radius); }
  .tabs__tab { border-radius: var(--radius-sm); padding: 10px 8px; }
  .date-list::before { left: 31px; }
  .date-item { grid-template-columns: 64px 1fr; gap: var(--space-3); }
  .date-item__badge { width: 64px; height: 64px; }
  .date-item__badge strong { font-size: 1.15rem; }
  .date-item__card { padding: var(--space-4); }
}
.modal { margin: auto; }   /* the reset removes the browser's default centring */
.modal__body h3 { font-size: 1.05rem; }
.modal__head .text-muted { color: var(--ink-soft); font-weight: 500; }
