/* ============================================================
   SMYF THEME — INNER PAGE STYLES
   Shared styles for all non-homepage page templates
   ============================================================ */

/* ── Standard Page / Article ─────────────────────────────── */
.page-content {
  padding: 72px 0 96px;
}

.page-content--cream {
  background: var(--cream);
}

.entry-content {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

/* Full-width variant for pages like History that have grids and galleries */
.entry-content--wide {
  max-width: 100%;
}

/* Images always responsive inside content */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Divs inside content shouldn't overflow */
.entry-content div {
  max-width: 100%;
  box-sizing: border-box;
}

.entry-content h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  margin: 48px 0 18px;
  color: var(--text);
}

.entry-content h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 36px 0 14px;
}

.entry-content p { margin-bottom: 18px; }

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--warm);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.entry-content blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(31, 92, 48, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.entry-content a:hover { text-decoration-color: var(--green); }

/* ── Two-column layout ─────────────────────────────────────── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.sticky-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* ── Programmes Page ─────────────────────────────────────── */
.prog-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.prog-section:last-of-type { border-bottom: none; }

.prog-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.prog-img-col {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.prog-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
}
.prog-section:hover .prog-img-col img { transform: scale(1.04); }

.prog-img-col__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 92, 48, 0.12), transparent);
}

.prog-num-bg {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--serif);
  font-size: 180px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.prog-body-col {
  padding: 64px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prog-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 18px;
  align-self: flex-start;
}

.prog-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.prog-rule {
  width: 40px;
  height: 2px;
  margin-bottom: 18px;
}

.prog-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 28px;
}

.prog-subs-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.prog-sub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.prog-sub-item {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 2px 2px 0;
  transition: background 0.2s, border-color 0.2s;
}
.prog-sub-item:hover { background: rgba(0, 0, 0, 0.04); }

.prog-sub-name {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.prog-sub-desc {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}

/* Intro strip on Programmes page */
.prog-intro-strip {
  background: var(--cream);
  padding: 52px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.prog-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.prog-intro-cell {
  padding: 0 40px;
  border-left: 1px solid rgba(31, 92, 48, 0.12);
}
.prog-intro-cell:first-child {
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.prog-intro-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 8px;
}

.prog-intro-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Our People Page ─────────────────────────────────────── */
.people-filter-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}

.people-filter-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.people-filter-btn {
  padding: 17px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.people-filter-btn:hover  { color: var(--green); }
.people-filter-btn.active { color: var(--green); border-bottom-color: var(--gold); }

.people-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 92, 48, 0.08);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  margin-left: 6px;
}

.people-section-group {
  padding: 64px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.people-section-group:last-child { border-bottom: none; }

.people-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* Senior cards (large, 2-column) */
.people-senior-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.people-senior-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.people-senior-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(31, 92, 48, 0.1);
}

.people-senior-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
}
.people-senior-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 5s ease;
}
.people-senior-card:hover .people-senior-card__img img { transform: scale(1.04); }

.people-senior-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.people-senior-card__dept {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 8px;
}

.people-senior-card__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6px;
}

.people-senior-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.people-senior-card__bio {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}

.people-senior-card__links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.people-senior-card__link {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid rgba(31, 92, 48, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.people-senior-card__link:hover { border-color: var(--green); }

/* Team grid cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.people-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.people-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(31, 92, 48, 0.09);
}

.people-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}
.people-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 5s ease;
}
.people-card:hover .people-card__img img { transform: scale(1.05); }

.people-card__body { padding: 18px 16px 20px; }

.people-card__name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.people-card__title {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Board Page ──────────────────────────────────────────── */
.board-section { margin-bottom: 72px; }

.board-section-heading {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--green);
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}

.board-member-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.board-member-row:last-child { border-bottom: none; }

.board-member-row__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.board-member-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.board-member-row__role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 6px;
}

.board-member-row__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.board-member-row__name a { color: var(--text); transition: color 0.2s; }
.board-member-row__name a:hover { color: var(--green); }

.board-member-row__bio {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Publications Page ───────────────────────────────────── */
.pub-page-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}

.pub-filter-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}

.pub-filter-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.pub-filter-btn {
  padding: 17px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.pub-filter-btn:hover { color: var(--green); }
.pub-filter-btn.active { color: var(--green); border-bottom-color: var(--gold); }

.pub-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(31, 92, 48, 0.08);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  margin-left: 5px;
}

/* Timeline */
.pub-timeline { display: flex; flex-direction: column; }

.tl-group { display: grid; grid-template-columns: 72px 1fr; gap: 28px; position: relative; }

.tl-year-col {
  padding-top: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tl-year-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: rgba(31, 92, 48, 0.22);
  line-height: 1;
  text-align: right;
}

.tl-year-meta {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.25);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: right;
  margin-top: 3px;
  white-space: nowrap;
}

.tl-year-line {
  width: 1px;
  flex: 1;
  background: rgba(31, 92, 48, 0.1);
  margin-top: 10px;
  min-height: 20px;
}
.tl-group:last-child .tl-year-line { display: none; }

.tl-cards-col {
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-group:last-child .tl-cards-col { padding-bottom: 0; }

.tl-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  background: var(--warm);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 3px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tl-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(31, 92, 48, 0.09);
  border-color: rgba(31, 92, 48, 0.15);
}

.tl-card__inner { display: grid; grid-template-columns: 72px 1fr; gap: 16px; }

.tl-card__thumb {
  width: 72px;
  height: 94px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.tl-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 5s ease;
}
.tl-card:hover .tl-card__thumb img { transform: scale(1.05); }

.tl-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 92, 48, 0.78);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}
.tl-card:hover .tl-card__overlay { opacity: 1; }

.tl-card__info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.tl-card__tag-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }

.tl-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}

.tl-card__desc { font-size: 11px; line-height: 1.65; color: var(--muted); }

.new-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 2px;
}

/* Annual reports sidebar */
.annual-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 60px + 52px);
}

.annual-sidebar__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.annual-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
}
.annual-item:hover {
  background: var(--warm);
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
}

.annual-item__thumb {
  width: 42px;
  height: 56px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.annual-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.annual-item__year {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 3px;
}

.annual-item__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fresh);
}

/* ── Conference Facilities ───────────────────────────────── */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 64px 0 80px;
}

.facility-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.facility-card:hover { box-shadow: 0 8px 32px rgba(31, 92, 48, 0.09); }

.facility-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.facility-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.facility-card:hover .facility-card__img img { transform: scale(1.04); }

.facility-card__price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 2px;
}

.facility-card__body { padding: 24px 24px 0; }

.facility-card__cap {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 8px;
}

.facility-card__name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.facility-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Features accordion */
.facility-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s;
}
.facility-toggle:hover { background: var(--warm); }

.facility-toggle__icon {
  font-size: 14px;
  transition: transform 0.25s;
}
.facility-toggle.is-open .facility-toggle__icon { transform: rotate(45deg); }

.facility-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.facility-details__inner {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.facility-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facility-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.facility-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 5px;
}

.facility-book-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ── Library Page ────────────────────────────────────────── */
.library-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.library-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.library-photos img { border-radius: 3px; }
.library-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; object-fit: cover; }
.library-photos img:not(:first-child) { aspect-ratio: 4/3; object-fit: cover; }

.library-collection {
  background: var(--ink);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.library-collection::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 48px;
  font-family: var(--serif);
  font-size: 400px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
}

.library-collection__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.library-collection__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.library-collection__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

.library-collection__item-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.library-collection__item-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
}

.library-collection__item-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* ── Exhibition Page ─────────────────────────────────────── */
.exhibition-hero {
  background: var(--ink);
  padding: 96px 0 80px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 64px 0 80px;
}

.exhibition-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.exhibition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(31, 92, 48, 0.1);
}

.exhibition-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.exhibition-card__img img { width: 100%; height: 100%; object-fit: cover; }

.exhibition-card__body { padding: 24px; }

.exhibition-card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.exhibition-card__desc { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ── Contact Page ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 72px 0 80px;
  align-items: start;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31, 92, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  margin-top: 32px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* Contact Form */
.contact-form {
  background: var(--warm);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form .form-group { margin-bottom: 18px; }

.contact-form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  background: white;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green); }

.contact-form textarea { min-height: 120px; resize: vertical; }

/* ── Events Archive ──────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0 80px;
}

.event-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(31, 92, 48, 0.1);
}

.event-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream);
}
.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.event-card:hover .event-card__img img { transform: scale(1.04); }

.event-card__body { padding: 22px 22px 26px; }

.event-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.event-card__date {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-card__title {
  font-family: var(--serif);
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}

.event-card__excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Single Event ────────────────────────────────────────── */
.single-event-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding: 64px 0 96px;
  align-items: start;
}

.single-event-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.event-meta-card {
  background: var(--warm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.event-meta-row:last-child { border-bottom: none; }

.event-meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(31, 92, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.event-meta-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.event-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ── Episode / Podcast ───────────────────────────────────── */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 56px 0 80px;
}

.episode-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.episode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(31, 92, 48, 0.09);
}

.episode-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
}
.episode-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.episode-card__num {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 5px;
}

.episode-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.episode-card__dur {
  font-size: 11px;
  color: var(--muted);
}

/* ── Standard Article (opinion, history, etc.) ───────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 64px 0 96px;
  align-items: start;
}

.article-header { margin-bottom: 40px; }

.article-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 14px;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.article-meta__author { font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.article-meta__sep    { color: rgba(255, 255, 255, 0.2); }

.article-featured-img {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-featured-img img { width: 100%; object-fit: cover; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .prog-inner,
  .library-split,
  .library-collection__inner,
  .contact-layout,
  .single-event-layout,
  .article-layout,
  .pub-page-wrap,
  .content-with-sidebar { grid-template-columns: 1fr; }

  .prog-img-col { min-height: 260px; order: -1; }
  .prog-body-col { padding: 36px 28px; order: 1; }
  .prog-num-bg { display: none; }

  .prog-intro-grid { grid-template-columns: 1fr; }
  .prog-intro-cell {
    border-left: 3px solid var(--green) !important;
    border-top: 1px solid rgba(31, 92, 48, 0.1);
    padding: 18px 0 18px 16px;
  }
  .prog-intro-cell:first-child { border-top: none; padding-left: 16px; }

  .people-senior-grid { grid-template-columns: 1fr; }
  .people-senior-card { grid-template-columns: 120px 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }

  .facilities-grid,
  .exhibition-grid,
  .events-grid { grid-template-columns: repeat(2, 1fr); }

  .episode-grid { grid-template-columns: 1fr; }

  .annual-sidebar { position: static; }

  .single-event-sidebar { position: static; }
}

@media (max-width: 600px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid,
  .exhibition-grid,
  .events-grid,
  .episode-grid { grid-template-columns: 1fr; }
  .people-senior-card { grid-template-columns: 1fr; }
  .tl-group { grid-template-columns: 52px 1fr; gap: 14px; }
  .tl-year-num { font-size: 26px; }
  .tl-card__inner { grid-template-columns: 52px 1fr; gap: 12px; }
  .tl-card__thumb { width: 52px; height: 68px; }
}


/* ── About Page ─────────────────────────────────────────────── */

.about-intro {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--text);
  max-width: 780px;
  font-weight: 400;
}

/* Vision & Mission grid */
.about-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0,0,0,.07);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-vm-card {
  background: #fff;
  padding: 40px 36px;
  position: relative;
}

.about-vm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.about-vm-card--mission::before {
  background: var(--green);
}

.about-vm-card__kicker {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.about-vm-card__text {
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* Core Values */
.about-values__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
}

.about-values__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.about-value {
  padding: 32px 24px;
  border-left: 1px solid rgba(255,255,255,.06);
}

.about-value:first-child { border-left: none; }

.about-value__num {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: rgba(255,255,255,.08);
  line-height: 1;
  margin-bottom: 16px;
}

.about-value__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  margin: 0 0 10px;
}

.about-value__desc {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  line-height: 1.6;
  margin: 0;
}

/* Certification bar */
.about-cert {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-vm-grid       { grid-template-columns: 1fr; }
  .about-values__list  { grid-template-columns: 1fr 1fr; }
  .about-value         { border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
}


/* ── Programme Single Page ──────────────────────────────────── */

.prog-impact-callout {
  margin: 0;
  padding: 24px 28px;
  background: var(--warm);
  border-radius: var(--radius);
}

.prog-impact-callout p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
  font-style: italic;
}

@media (max-width: 900px) {
  /* display:none removed — grid now stacks correctly so callout is visible */
}


/* ── Booking Form ───────────────────────────────────────────── */

.smyf-booking-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.smyf-form-section {
  background: white;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 20px;
}

.smyf-form-section__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fresh);
}

.smyf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.smyf-field { display: flex; flex-direction: column; gap: 6px; }
.smyf-field--full { grid-column: 1 / -1; }

.smyf-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.smyf-label-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.smyf-required { color: var(--red); }

.smyf-input,
.smyf-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--warm);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.smyf-input:focus,
.smyf-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,92,48,.1);
  background: white;
}

.smyf-select--multi {
  padding: 0;
  background: white;
}

.smyf-select--multi option {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--warm);
}

.smyf-select--multi option:checked {
  background: var(--green);
  color: white;
}

.smyf-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.smyf-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

@media ( max-width: 640px ) {
  .smyf-form-grid { grid-template-columns: 1fr; }
  .smyf-form-section { padding: 24px 20px; }
  .smyf-form-actions { flex-direction: column-reverse; }
  .smyf-form-actions .btn { width: 100%; justify-content: center; }
}

.smyf-form-notice {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.6;
}
.smyf-form-notice--success {
  background: #f0faf2;
  border-left: 4px solid var(--fresh);
  color: var(--green);
}
.smyf-form-notice--error {
  background: #fdf3f3;
  border-left: 4px solid var(--red);
  color: #8b1a1a;
}

/* ── Booking iframe ─────────────────────────────────────────── */
.smyf-booking-iframe {
  width: 100%;
  min-height: 1100px;
  border: none;
  display: block;
}


/* ── Video Cards & Archive ──────────────────────────────────── */

.smyf-video-grid {
  display: grid;
  grid-template-columns: repeat( 3, 1fr );
  gap: 24px;
}

.smyf-video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition: transform .2s, box-shadow .2s;
}

.smyf-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.smyf-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink);
}

.smyf-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s, opacity .4s;
  opacity: .85;
}

.smyf-video-card:hover .smyf-video-thumb img {
  transform: scale(1.04);
  opacity: 1;
}

.smyf-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  background: rgba(0,0,0,.3);
  transition: background .2s;
}

.smyf-video-card:hover .smyf-video-play {
  background: rgba(31,92,48,.6);
}

.smyf-video-dur {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: rgba(0,0,0,.65);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .04em;
}

.smyf-video-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.smyf-video-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}

.smyf-video-title {
  font-family: var(--serif);
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

/* ── Video Filters ──────────────────────────────────────────── */

.smyf-video-filters {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.smyf-video-filters__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smyf-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.smyf-filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 72px;
  flex-shrink: 0;
}

.smyf-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.smyf-filter-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.15);
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.smyf-filter-pill:hover,
.smyf-filter-pill.is-active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

@media ( max-width: 768px ) {
  .smyf-video-grid { grid-template-columns: 1fr 1fr; }
}
@media ( max-width: 480px ) {
  .smyf-video-grid { grid-template-columns: 1fr; }
  .smyf-video-filters { position: static; }
}


/* ── Booking Form v2 (API) ──────────────────────────────────── */

/* Venue cards */
.smyf-venue-grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
  gap: 12px;
}

.smyf-venue-card {
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: var(--radius);
  background: white;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}

.smyf-venue-card:has(.smyf-venue-check:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,92,48,.1);
}

.smyf-venue-card input[type="checkbox"] { display: none; }

.smyf-venue-card__inner { padding: 16px 40px 16px 16px; }

.smyf-venue-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.smyf-venue-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
}

.smyf-venue-card__price {
  font-weight: 600;
  color: var(--green);
}

.smyf-venue-card__tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}

.smyf-venue-card:has(.smyf-venue-check:checked) .smyf-venue-card__tick { opacity: 1; }

/* Services */
.smyf-service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smyf-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s;
}

.smyf-service-item:has(input:checked) {
  border-color: var(--green);
  background: #f0faf2;
}

.smyf-service-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.smyf-service-item__name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

.smyf-service-item__price {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* Calendar */
.smyf-cal {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 360px;
}

.smyf-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.smyf-cal__month {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.smyf-cal__arrow {
  background: none;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}

.smyf-cal__arrow:hover { background: var(--warm); }

.smyf-cal__days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.smyf-cal__days-header span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  padding: 4px 0;
}

.smyf-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.smyf-cal__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 4px;
  transition: background .1s, color .1s;
}

.smyf-cal__cell--empty      { background: transparent; }
.smyf-cal__cell--past       { color: rgba(0,0,0,.2); cursor: default; }
.smyf-cal__cell--booked     { background: #fee2e2; color: #b91c1c; cursor: not-allowed; font-weight:600; }
.smyf-cal__cell--available  { cursor: pointer; }
.smyf-cal__cell--available:hover { background: var(--warm); }
.smyf-cal__cell--selected   { background: var(--green); color: white; font-weight: 700; cursor: pointer; }
.smyf-cal__cell--range      { background: rgba(31,92,48,.12); color: var(--green); cursor: pointer; }

.smyf-cal__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}

.smyf-cal__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.smyf-cal__legend-dot--booked   { background: #fee2e2; border: 1px solid #b91c1c; }
.smyf-cal__legend-dot--selected { background: var(--green); }

/* Date display */
.smyf-date-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.smyf-date-display__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smyf-date-display__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.smyf-date-display__val {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.smyf-date-display__arrow {
  font-size: 18px;
  color: var(--muted);
}

/* Field errors */
.smyf-field-error {
  font-size: 11px;
  color: var(--red);
  margin: 4px 0 0;
  display: none;
}


/* ── Manage Reservation ─────────────────────────────────────── */

.smyf-res-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.smyf-res-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
  gap: 16px;
}

.smyf-res-row span:first-child {
  color: var(--muted);
  flex-shrink: 0;
  min-width: 140px;
}

.smyf-res-row strong {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

.smyf-res-venue {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.smyf-res-venue:last-child { border-bottom: none; }

.smyf-res-venue__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.smyf-res-venue__price {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

.smyf-res-service {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  padding-left: 12px;
}

/* Tentative calendar cell */
.smyf-cal__cell--tentative {
  background: #fef3c7;
  color: #92400e;
  cursor: not-allowed;
  font-weight: 600;
}
.smyf-cal__cell--tentative:hover {
  background: #fef3c7;
}
.smyf-cal__legend-dot--tentative {
  background: #fef3c7;
  border: 1px solid #d97706;
}
.smyf-cal__note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.smyf-cal__note a { color: var(--green); font-weight: 600; }


/* ── Block selector ─────────────────────────────────────────── */
.smyf-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 500px;
}

.smyf-block-card {
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: var(--radius);
  background: white;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}

.smyf-block-card:has(.smyf-block-radio:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,92,48,.1);
}

.smyf-block-card input[type="radio"] { display: none; }

.smyf-block-card__inner { padding: 18px 40px 18px 18px; }

.smyf-block-card__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.smyf-block-card__times {
  font-size: 12px;
  color: var(--muted);
}

.smyf-block-card__tick {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}

.smyf-block-card:has(.smyf-block-radio:checked) .smyf-block-card__tick { opacity: 1; }

/* Venue card states */
.smyf-venue-card--disabled {
  opacity: .4;
  pointer-events: none;
}

.smyf-venue-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  margin-top: 6px;
  letter-spacing: .04em;
}

.smyf-venue-badge--morning {
  background: #fef3c7;
  color: #92400e;
}

.smyf-venue-badge--hourly {
  background: #ede9fe;
  color: #5b21b6;
}

/* Calendar: new cell states */
.smyf-cal__cell--sunday {
  color: #d1d5db;
  cursor: default;
  font-style: italic;
}

.smyf-cal__cell--holiday {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: default;
  font-weight: 600;
  text-decoration: line-through;
}

.smyf-cal__cell--excluded {
  background: #ede9fe;
  color: #5b21b6;
  cursor: not-allowed;
  font-weight: 600;
}

.smyf-cal__legend-dot--excluded {
  background: #ede9fe;
  border: 1px solid #7c3aed;
}


/* ── Venue card: bundled & locked states ─────────────────────── */

/* Bundled: auto-included with another venue */
.smyf-venue-card--bundled {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,92,48,.1);
  opacity: .85;
  pointer-events: none; /* can't interact — controlled by parent */
}

.smyf-venue-card__bundled-badge {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.smyf-venue-card--bundled .smyf-venue-card__bundled-badge { display: block; }
.smyf-venue-card--bundled .smyf-venue-card__tick          { opacity: 1; }

/* Locked: disabled because an incompatible venue is selected */
.smyf-venue-card--locked {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
}

.smyf-venue-card--locked::after {
  content: 'Not available';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  background: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* ── Sub-programme grid ─────────────────────────────────────── */
.prog-sub-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .prog-sub-grid { grid-template-columns: 1fr; }
}


/* ── Partners logo grid ─────────────────────────────────────── */
.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(0,0,0,.06);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
}
.partner-logo-cell {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  transition: background .2s;
}
.partner-logo-cell img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.6);
  transition: filter .25s;
}
.partner-logo-cell:hover img { filter: none; }

@media (max-width: 768px) {
  .partners-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-logo-cell  { padding: 28px 20px; }
  .partner-logo-cell img { max-height: 48px; }
}
@media (max-width: 480px) {
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logo-cell  { padding: 24px 16px; }
  .partner-logo-cell img { max-height: 44px; }
}

/* ── Opinion pieces — featured card ────────────────────────── */
.op-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .op-featured-card {
    grid-template-columns: 1fr;
  }
  .op-featured-card > div:first-child {
    min-height: 200px;
  }
}

/* ── History / entry-content: never hide whole container ───── */
/* Large content divs should not be wrapped in .reveal — but as
   a safety net, ensure entry-content--wide is never opacity:0 */
.entry-content--wide.reveal {
  opacity: 1 !important;
  transform: none !important;
}


/* ── Mobile responsive overrides — consolidated ─────────────── */

/* People cards: smaller name text + 1 column on very small screens */
@media (max-width: 480px) {
  .people-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .people-card__name { font-size: 14px; line-height: 1.3; }
  .people-card__title { font-size: 10px; }
  .people-card__body { padding: 12px 12px 14px; }
}
@media (max-width: 380px) {
  .people-grid { grid-template-columns: 1fr !important; }
}

/* Partners grid: ensure 2 columns even on 360px screens */
@media (max-width: 480px) {
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .partner-logo-cell  { padding: 20px 12px; }
  .partner-logo-cell img { max-height: 40px; }
}

/* WordPress editor content: collapse Gutenberg columns on mobile */
@media (max-width: 600px) {
  .entry-content .wp-block-columns { flex-direction: column !important; }
  .entry-content .wp-block-column  { flex-basis: 100% !important; width: 100% !important; }
  /* Gallery blocks */
  .entry-content .wp-block-gallery { grid-template-columns: 1fr 1fr !important; }
  /* Generic inline grids inside editor content */
  .entry-content [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr 1fr !important; }
  .entry-content [style*="grid-template-columns: repeat(4"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 400px) {
  .entry-content .wp-block-gallery { grid-template-columns: 1fr !important; }
}

/* ── Estimate card (book-now price breakdown) ─────────── */
/* ── Estimate card ─────────────────────────────────────── */
.est-card { background:#fff; border:1px solid var(--border,#e2e8f0);
            border-radius:12px; overflow:hidden;
            box-shadow:0 2px 8px rgba(0,0,0,.06); }
.est-card__head {
  background:var(--green,#1F5C30); color:#fff;
  padding:13px 18px; display:flex; align-items:center; gap:9px;
  font-size:.88rem; font-weight:600; font-family:var(--serif,serif);
  letter-spacing:.01em;
}
.est-card__note { margin-left:auto; font-size:.72rem; font-weight:400;
  opacity:.75; font-family:var(--sans,sans-serif); }
.est-card__total {
  border-top:2px solid var(--border,#e2e8f0);
  padding:15px 18px;
  display:flex; justify-content:space-between; align-items:center;
  background:var(--cream,#faf8f5);
}
.est-card__total span { font-size:.72rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.08em; color:var(--muted,#888); }
.est-card__total strong { font-size:1.5rem; font-weight:800;
  color:var(--gold,#c9922a); font-family:var(--serif,serif); }

/* Row base */
.est-row { display:flex; justify-content:space-between; align-items:flex-start;
           padding:11px 18px; border-bottom:1px solid var(--border,#f0f0ec);
           gap:12px; }
.est-row__main { flex:1; min-width:0; }
.est-row__right { text-align:right; flex-shrink:0; }
.est-row__name  { display:block; font-size:.84rem; font-weight:600;
                  color:var(--text,#1a1a1a); white-space:nowrap;
                  overflow:hidden; text-overflow:ellipsis; }
.est-row__dates { display:block; font-size:.73rem; color:var(--muted,#888);
                  margin-top:2px; }
.est-row__calc  { display:block; font-size:.73rem; color:var(--muted,#888);
                  margin-bottom:2px; }
.est-row__amount{ display:block; font-size:.9rem; font-weight:700;
                  color:var(--text,#1a1a1a); }

/* Row variants */
.est-svc { background:#fafaf8; padding-left:34px; }
.est-svc .est-row__name  { font-weight:400; color:var(--muted,#888);
                            font-size:.79rem; }
.est-svc .est-row__amount{ font-size:.82rem; font-weight:600; }
.est-fct  { background:#f0f4fa; }
.est-fct  .est-row__name,.est-fct  .est-row__amount { color:#2c5282; }
.est-credit{ background:#f0faf3; }
.est-credit .est-row__name,.est-credit .est-row__amount { color:#166534; }
.est-debit { background:#fffbf0; }
.est-debit .est-row__name,.est-debit .est-row__amount { color:#92400e; }


/* ============================================================
   MOBILE FIXES — single-smyf_event, page-programme,
   single-smyf_team, single-smyf_board
   ============================================================ */

/* ── Single event: reduce top gap on mobile ──────────────── */
@media (max-width: 768px) {
  .single-event-layout {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  /* Nav buttons: stack vertically, allow text to wrap (overrides .btn white-space:nowrap) */
  .single-event-nav {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .single-event-nav .btn {
    white-space: normal !important;
    word-break: break-word;
    text-align: left;
  }
}

/* ── Programme hero: stack title + event card vertically ─── */
.prog-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .prog-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }
  .prog-hero-grid .hp-hero__event-card {
    display: none;
  }
}

/* ── Programme opener: text + callout → stack on mobile ──── */
.prog-opener-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) {
  .prog-opener-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Team / Board profile hero: name + portrait → stack ──── */
.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .profile-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }
  .profile-hero-portrait {
    width: 140px !important;
    height: 168px !important;  /* 5:6 ratio matches original 180x220 */
    order: -1;
  }
}

/* ── Portrait: image ALWAYS fills frame via absolute fill ─── */
/* Overrides global  img { height: auto }  and any WP size attrs */
.profile-hero-portrait {
  position: relative;   /* establishes containing block for absolute child */
}
.profile-hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Library hero: title + CTA buttons side by side → stack ─ */
.library-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 32px;
}
@media (max-width: 768px) {
  .library-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* CTA buttons go full-width on mobile */
  .library-hero-grid .library-hero-ctas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}
/* ──────────────────────────────────────────────────────────── */
/* Mobile overrides for the booking flow                        */
/* (book-now, manage-reservation, customer summary)             */
/*                                                              */
/* Consolidated from the mobile audit. Single block, two MQs.   */
/* All component-specific tweaks live here so theme authors can */
/* tune one place rather than chasing across the file.          */
/* ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {

  /* ── Venue calendar: bigger tap targets, full-width ────── */
  /* The 300-340px max-width crammed cells into ~24x24 px,
     well under the 44 px touch target standard. */
  .smyf-cal { max-width: 100% !important; }
  .smyf-cal__cell,
  .smyf-cal-day {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 2px;
  }
  .smyf-cal__arrow {
    width: 44px;
    height: 44px;
  }
  .smyf-cal__month { font-size: 15px; }
  .smyf-cal-legend,
  .smyf-cal__legend { font-size: 12px; }
  .smyf-cal-note,
  .smyf-cal__note { font-size: 12px; line-height: 1.45; }

  /* ── Form chip groups: easier to tap, taller hit area ──── */
  .smyf-svc-item,
  .smyf-block-card,
  .smyf-radio-opt {
    padding: 10px 12px;
    min-height: 44px;
  }

  /* ── Manage reservation: form section padding tighter ─── */
  /* The 32 px section padding (.smyf-form-section default) eats
     about 64 px of horizontal space on phones — that's 20% of
     the viewport gone before any content. */
  .smyf-form-section {
    padding: 18px 16px;
  }
  .smyf-form-section__title {
    font-size: 14px;
  }

  /* ── Manage reservation: date display label readable ──── */
  .smyf-date-display__label { font-size: 11px; }

}

@media (max-width: 560px) {

  /* ── Venue card header: select can use full width ──────── */
  /* Long option strings ("Auditorium — ₦750,000/day") forced
     the select wider than the parent on <360 px screens. */
  .smyf-venue-card__header { gap: 6px; }
  .smyf-venue-card__select {
    min-width: 0;
    flex: 1 1 100%;
  }

}

/* ── Booked Venues item — base styles (was inline) ──────── */
/* All layout-affecting properties live on classes now so the
   responsive overrides below can actually win. Inline styles
   on .bk-item__* would beat any class selector regardless of
   media query specificity — that's why the previous mobile
   sweep had no effect on this block. */
.bk-item {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius, 8px);
  background: white;
  overflow: hidden;
  margin-bottom: 12px;
}
.bk-item__row {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bk-item__details { flex: 1; min-width: 0; }
.bk-item__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.bk-item__title { font-size: 14px; }
.bk-item__meta {
  font-size: 12px;
  color: var(--muted, #6b7280);
  line-height: 1.8;
}
.bk-item__amount {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green, #1F5C30);
}
.bk-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.bk-item__btn {
  font-size: 11px;
  padding: 6px 12px;
}
.bk-item__btn--summary {
  background: var(--warm, #f8f5f0);
  border-color: rgba(0, 0, 0, .1);
  text-decoration: none;
  text-align: center;
}
.bk-item__calendar {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 20px;
  background: var(--warm, #f8f5f0);
}

/* ── Event Details + Booked Venues — tablet AND phone ──── */
/* The earlier 540 px threshold was too narrow. Event Details
   uses a 140 px label column and right-aligned value, which
   on tablet-portrait (768 px and below) already starts
   crushing long emails / event titles into multi-line wraps
   that look broken. Stack from 820 px down so iPad portrait
   and every smaller device gets the clean stacked layout. */
@media (max-width: 820px) {

  .smyf-res-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 12px 0;
    font-size: 14px;
  }
  .smyf-res-row span:first-child {
    min-width: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    color: var(--muted, #6b7280);
  }
  .smyf-res-row strong {
    text-align: left;
    font-size: 15px;
    word-break: break-word;
  }

  /* Booked Venues — inner row goes column, padding shrinks,
     action buttons become a 2-up horizontal strip at the
     bottom with 40 px tap height. */
  .bk-item__row {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 10px;
  }
  .bk-item__details { width: 100%; }
  .bk-item__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .bk-item__btn {
    flex: 1 1 calc(50% - .25rem);
    font-size: 13px;
    padding: 10px 14px;
    min-height: 40px;
    justify-content: center;
  }

}

@media (max-width: 540px) {

  /* ── Manage reservation action bar ─────────────────────── */
  /* Pay Now / Download Invoice / Cancel buttons stack full
     width so "Cancel Entire Reservation" doesn't push past
     the viewport. */
  #res-action-bar {
    width: 100%;
  }
  #res-action-bar > .btn,
  #res-action-bar > a.btn {
    width: 100%;
    justify-content: center;
  }

  /* Booked Venues — action buttons each get their own row on
     the smallest viewports so labels never truncate. */
  .bk-item__actions {
    flex-direction: column;
  }
  .bk-item__btn {
    flex: 1 1 100%;
    min-height: 44px;
  }

}

