/*
 * Emergence Programme
 * ---------------------------------------------------------------------------
 * The subpage grammar, lifted from the approved static pages. Everything here
 * is shared with the rest of the site: when the theme carries these rules
 * itself, dequeue this stylesheet and nothing changes.
 *
 *   wp_dequeue_style( 'emergence-programme' );
 */

:root {
  --porcelain: #f5f4f2;
  --slate: #343a40;
  --slate-deep: #23272c;
  --crimson: #cb003e;
  --crimson-mist: #ff8fae;
  --accent: var(--crimson);
  --paper-dim: #eceae6;
  --hairline: rgba(52, 58, 64, 0.16);
  --hairline-light: rgba(245, 244, 242, 0.16);
  --display: "Bitcount Prop Single", "Courier New", monospace;
  --ui: "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 22px;
  --measure: 62ch;
}

/* ---------- foundations ---------- */

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a, button, input { touch-action: manipulation; }
[id] { scroll-margin-top: 5rem; }

::selection { background: var(--crimson); color: var(--porcelain); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 40;
  background: var(--slate);
  color: var(--porcelain);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-size: 0.9375rem;
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- rhythm ---------- */

.section { padding: clamp(4.5rem, 10vh, 8rem) var(--gutter); }
/* Scoped to this plugin's own sections. A bare `.container` rule collides with
   Salient's grid container, which is how the theme gives the page its gutter -
   every page that loaded this file lost its side margins on mobile. */
.section > .container, .page-hero > .container, .foot > .container { max-width: 78rem; margin: 0 auto; padding: 0; }
/* Themes add clearfix pseudo-elements to .container; they would occupy a grid cell. */
.section .container::before, .section .container::after, .page-hero .container::before, .page-hero .container::after, .foot .container::before, .foot .container::after { content: none !important; display: none !important; }
.tint { background: var(--paper-dim); }

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
.prose h3 { font-family: var(--ui); font-weight: 500; font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
.prose .quiet { color: #4b5158; }

/* ---------- quotations in the body copy ---------- */

.prose blockquote {
  margin: 2.5rem 0;
  padding: 0 0 0 clamp(1.25rem, 3vw, 2rem);
  border-left: 2px solid var(--crimson);
  color: var(--slate);
}

.prose blockquote p {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  margin: 0;
}

.prose blockquote p + p { margin-top: 0.9rem; }

/* The attribution sits quieter than the quotation, whichever element the
   editor reached for. wpautop may wrap a bare <cite> in its own paragraph;
   the margin lives on the cite so either shape spaces the same. */
.prose blockquote cite,
.prose blockquote footer {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: #4b5158;
}

.prose blockquote + blockquote { margin-top: 1.75rem; }

/* A link inside the body copy has to read as one. Everything else on the page
   inherits its colour, so without this a booking link is invisible. */
.prose a:not(.btn-solid):not(.link) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--crimson);
}

@media (hover: hover) and (pointer: fine) {
  .prose a:not(.btn-solid):not(.link):hover { color: var(--crimson); }
}
.quiet { color: #4b5158; }

.two {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.two .frame { aspect-ratio: 4 / 5; }
.two.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.two.flip .frame { order: 2; }
.sticky-side { position: sticky; top: 6rem; }

/* ---------- buttons and links ---------- */

.cta, .btn-solid { min-height: 44px; }
.cta:active, .btn-solid:active, .link:active { transform: scale(0.97); }
.cta, .btn-solid {
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.16s var(--ease-out);
}

.btn-solid {
  display: inline-block;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--porcelain);
  background: var(--crimson);
  border: 1.5px solid var(--crimson);
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #a80034; border-color: #a80034; }
}

.link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  min-height: 44px;
  line-height: 44px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-strong);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(1); }
}

/* ---------- photographs ---------- */

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-dim);
}
.frame { overflow: hidden; border-radius: var(--radius); }
@media (hover: hover) and (pointer: fine) {
  .frame .photo { transition: transform 0.9s var(--ease-out-strong); }
  .frame:hover .photo { transform: scale(1.03); }
}

/* ---------- page shell ---------- */

.page-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem max(var(--gutter), env(safe-area-inset-right)) 0.85rem max(var(--gutter), env(safe-area-inset-left));
  background: rgba(245, 244, 242, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.page-head img { display: block; height: 30px; width: auto; }
.page-head .menu-btn { color: var(--slate); }
.page-head .head-cta { margin-left: auto; margin-right: 1.5rem; font-size: 0.9375rem; padding: 0.55rem 1.2rem; min-height: 40px; }
@media (max-width: 720px) {
  .page-head .head-cta { display: none; }
  .page-head img { height: 24px; }
}

.menu-btn {
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--slate);
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
}
.menu-btn::after {
  content: "";
  display: block;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.menu-btn:hover::after { transform: scaleX(1); }

.inline-nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.9rem); margin-left: auto; }
.inline-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.9rem); margin: 0; padding: 0; }
.inline-nav a { text-decoration: none; font-size: 0.9875rem; color: inherit; padding: 0.25rem 0; }
.inline-nav a[aria-current="page"],
.inline-nav .current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--crimson);
}
@media (max-width: 900px) { .inline-nav { display: none; } }

/* ---------- overlay menu ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  background: var(--slate);
  color: var(--porcelain);
  padding: 1.4rem var(--gutter) 3rem;
  overscroll-behavior: contain;
}
.overlay[data-open="true"] { display: flex; }
.overlay-top { display: flex; justify-content: flex-end; }
.overlay ul { list-style: none; margin: auto 0; padding: 0; display: grid; gap: 0.5rem; }
.overlay a {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 3rem);
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
}
.overlay a:hover { color: var(--crimson-mist); }
.overlay :focus-visible { outline-color: var(--crimson-mist); }
.overlay-note { font-size: 0.9375rem; opacity: 0.65; }

.close-btn {
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--porcelain);
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
}
.close-btn:hover { color: var(--crimson-mist); }

/* ---------- page hero ---------- */

.page-hero { padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(3rem, 7vh, 5rem); }
.page-hero.crimson { background: var(--crimson); color: var(--porcelain); }
.page-hero.slate { background: var(--slate); color: var(--porcelain); }
.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.page-hero h1 {
  color: inherit;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  margin: 0;
}
.page-hero .lede { margin-top: 1.25rem; }
.page-hero.crimson .lede, .page-hero.slate .lede { color: rgba(245, 244, 242, 0.88); }
.page-hero .crumb { font-size: 0.9375rem; opacity: 0.75; margin-bottom: 1rem; }
.page-hero .crumb a { text-decoration: none; color: inherit; }
.page-hero.tall { padding-bottom: clamp(8rem, 18vh, 12rem); }

.hero-photo {
  padding: 0 var(--gutter);
  margin: calc(-1 * clamp(2rem, 6vh, 4rem)) 0 0;
  position: relative;
  z-index: 2;
}
.hero-photo .frame {
  max-width: 78rem;
  margin: 0 auto;
  aspect-ratio: 16 / 7.5;
  box-shadow: 0 30px 60px -30px rgba(35, 39, 44, 0.45);
}
.page-hero.tall + .hero-photo { margin-top: calc(-1 * clamp(6rem, 14vh, 9rem)); }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.one-up { grid-template-columns: minmax(0, 1fr); }
.card { display: block; text-decoration: none; color: inherit; }
.card .frame { aspect-ratio: 4 / 3; }
.card .slot {
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(52, 58, 64, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5158;
  font-size: 0.8125rem;
  background: var(--paper-dim);
}
.card h3 { font-family: var(--ui); font-weight: 500; font-size: 1.125rem; margin-top: 1.15rem; }
.card .meta { font-size: 0.875rem; color: #4b5158; margin-top: 0.15rem; }
.card p { color: #4b5158; margin-top: 0.4rem; font-size: 0.9875rem; line-height: 1.55; }
.card .h-icon, .card h3.h-icon { margin-top: 1.15rem; }

/* One across: lay the card out sideways so it does not become a tall stack. */
@media (min-width: 601px) {
  .cards.one-up .card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--hairline);
  }

  .cards.one-up .card:last-child { border-bottom: 1px solid var(--hairline); }
  .cards.one-up .card > .frame,
  .cards.one-up .card > .slot { grid-row: span 4; }
  .cards.one-up .card h3 { margin-top: 0; }
  .cards.one-up .card--noimg { grid-template-columns: minmax(0, 1fr); }
}
.card .h-icon h3 { margin-top: 0; }

/* ---------- booking panel ---------- */

.essentials {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.booking { background: var(--paper-dim); border-radius: var(--radius); padding: 2rem; position: sticky; top: 6rem; }
.booking h2 { font-family: var(--ui); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.booking dl { margin-top: 1rem; }
.booking dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
}
.booking dt { color: #4b5158; font-size: 0.9375rem; font-weight: 400; }
.booking dd { margin: 0; }
.booking .btn-solid { width: 100%; text-align: center; margin-top: 1.25rem; }
.booking .note { font-size: 0.875rem; color: #4b5158; margin-top: 0.9rem; }

/* Links written into the booking panel's note or a tier description read as
   links, like those in the body copy. */
.booking .note a,
.efp-tier-desc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--crimson);
}

@media (hover: hover) and (pointer: fine) {
  .booking .note a:hover,
  .efp-tier-desc a:hover { color: var(--crimson); }
}

/* ---------- price tiers ----------
   Lists and headings inside Salient's content area pick up its own bullets,
   indents and heading sizes, so every property that matters is stated. */

.efp-tiers { margin-top: 1.5rem; }

.efp-tiers-heading {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--slate);
  margin: 0 0 0.25rem;
}

.efp-tiers-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Stated at the same specificity as the list reset above, or the reset wins
   and the tiers lose their breathing room. */
.efp-tiers-list > .efp-tier {
  list-style: none;
  margin: 0;
  padding: 0.8rem 0;
  border-top: 1px solid var(--hairline);
}

.efp-tiers-list > .efp-tier:last-child { border-bottom: 1px solid var(--hairline); }

.efp-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  min-width: 0;
}

.efp-tier-name { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.efp-tier-price {
  flex: none;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.efp-tier-desc {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5158;
}

/* ---------- rows (list layout) ---------- */

.rows { border-top: 1px solid var(--hairline); }
.rows .row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.rows .row h3 { font-family: var(--ui); font-weight: 500; font-size: 1.375rem; }
.rows .row .meta { color: #4b5158; }
.rows .row .row-btn { justify-self: end; }

/* ---------- footer ---------- */

.foot {
  background: var(--slate-deep);
  color: rgba(245, 244, 242, 0.72);
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) 2rem;
}
.foot .container { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.foot .container img { display: block; height: 30px; width: auto; filter: brightness(0) invert(1); }
.foot p { margin-top: 1.25rem; max-width: 40ch; }
.foot h3 { font-family: var(--ui); font-size: 0.875rem; font-weight: 500; color: var(--porcelain); margin-bottom: 0.9rem; }
.foot ul { list-style: none; display: grid; gap: 0.45rem; margin: 0; padding: 0; }
.foot a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: var(--porcelain); text-decoration: underline; text-underline-offset: 0.3em; }
}
.foot :focus-visible { outline-color: var(--porcelain); }

/* ---------- icon grammar ---------- */

.icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--slate);
}
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 40px; height: 40px; }
.h-icon { display: flex; align-items: center; gap: 0.7rem; }
.page-hero .icon, .foot .icon { color: var(--porcelain); }
.booking dt, .dt-icon { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- reveals (motion only, once) ---------- */

.motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out-strong), transform 0.7s var(--ease-out-strong);
}
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal[data-delay="1"] { transition-delay: 0.08s; }
.motion .reveal[data-delay="2"] { transition-delay: 0.16s; }
.motion .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .page-hero .container, .two, .two.flip, .essentials { grid-template-columns: 1fr; }
  .two.flip .frame { order: 0; }
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows .row { grid-template-columns: 1fr; }
  .rows .row .row-btn { justify-self: start; }
  .booking { position: static; }
  .sticky-side { position: static; }
  .foot .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cards, .cards.four, .cards.two-up { grid-template-columns: 1fr; }
  .hero-photo .frame { aspect-ratio: 4 / 3; }
  .foot .container { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Timeline
   ---------------------------------------------------------------------------
   Every selector here is efp- prefixed on purpose. Salient owns .row,
   .container and .icon, so the timeline borrows none of them and brings its
   own layout instead. Only .frame, .photo, .btn-solid and .reveal are shared,
   and those are already scoped safely.
   =========================================================================== */

.efp-timeline { display: block; }

.efp-timeline-heading {
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  margin: 0 0 1.5rem;
}

/* ---------- upcoming / past ---------- */

.efp-timeline-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 2rem;
  background: var(--paper-dim);
  border-radius: 999px;
}

.efp-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-family: var(--ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.efp-toggle-btn[aria-selected="true"] {
  background: var(--slate);
  color: var(--porcelain);
}

.efp-toggle-count {
  font-size: 0.8125rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* ---------- month headings ---------- */

.efp-timeline-month {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5158;
  margin: 2.5rem 0 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}

.efp-timeline-month:first-child { margin-top: 0; }

/* ---------- rows ---------- */

.efp-timeline-rows { display: block; }

.efp-timeline-row {
  display: grid;
  grid-template-columns: 5.5rem 10rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

/* No thumbnail column when images are switched off. */
.efp-timeline-row--noimg { grid-template-columns: 5.5rem minmax(0, 1fr) auto; }

.efp-timeline-row.is-past { opacity: 0.72; }

/* ---------- the date block ---------- */

.efp-timeline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 0.25rem;
  border-radius: 14px;
  background: var(--paper-dim);
  line-height: 1.1;
}

.efp-date-day {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--crimson);
}

.efp-date-month {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.efp-date-year { font-size: 0.75rem; color: #4b5158; }

/* ---------- thumbnail ---------- */

.efp-timeline-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.efp-timeline-thumb:empty { background: var(--paper-dim); }

/* ---------- body ---------- */

.efp-timeline-kind {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  margin: 0 0 0.3rem;
}

.efp-timeline-title {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.efp-timeline-title a { text-decoration: none; color: inherit; }

@media (hover: hover) and (pointer: fine) {
  .efp-timeline-title a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-color: var(--crimson);
  }
}

/* Grid and flex children default to min-width:auto, which lets a long date
   and place line push the whole row wider than the screen. These reset it. */
.efp-timeline-body { min-width: 0; }

.efp-timeline-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  min-width: 0;
  color: #4b5158;
  font-size: 0.9375rem;
  margin: 0.4rem 0 0;
}

.efp-timeline-meta > span { min-width: 0; }
.efp-timeline-meta .icon { align-self: center; }

.efp-timeline-text {
  color: #4b5158;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0.5rem 0 0;
  max-width: 52ch;
  overflow-wrap: anywhere;
}

.efp-timeline-action { margin: 0; justify-self: end; min-width: 0; }
.efp-timeline-btn { white-space: nowrap; }

.efp-timeline-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--hairline);
  color: var(--slate);
  white-space: nowrap;
  padding: 0.6rem 0;
  min-height: 44px;
}

.efp-timeline-empty {
  color: #4b5158;
  padding: 2rem 0;
  max-width: 52ch;
}

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .efp-timeline-row,
  .efp-timeline-row--noimg {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: start;
    row-gap: 0.75rem;
  }

  .efp-timeline-thumb { display: none; }

  .efp-timeline-action { grid-column: 2; justify-self: start; }
}

@media (max-width: 480px) {
  .efp-timeline-row,
  .efp-timeline-row--noimg { grid-template-columns: 1fr; }

  .efp-timeline-date {
    flex-direction: row;
    gap: 0.4rem;
    align-items: baseline;
    justify-content: flex-start;
    width: fit-content;
    padding: 0.4rem 0.8rem;
  }

  .efp-date-day { font-size: 1.375rem; }
  .efp-timeline-action { grid-column: 1; }
}

/* ===========================================================================
   Featured
   ---------------------------------------------------------------------------
   One entry, large: the "Next retreat" chapter from the homepage. It sets no
   background of its own and takes every tone from the inherited colour, so it
   sits correctly in a dark Salient row and on the porcelain ground alike.
   =========================================================================== */

.efp-featured {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  color: inherit;
}

.efp-featured--flip > .efp-featured-frame { order: 2; }
.efp-featured--noimg { grid-template-columns: minmax(0, 1fr); }

.efp-featured-frame { aspect-ratio: 4 / 3.4; }
.efp-featured-body { min-width: 0; }

.efp-featured-eyebrow {
  font-size: 0.9375rem;
  margin: 0;
  opacity: 0.7;
}

.efp-featured-title {
  font-family: var(--ui);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  margin: 0.5rem 0 0;
  overflow-wrap: anywhere;
}

.efp-featured-title a { text-decoration: none; color: inherit; }

@media (hover: hover) and (pointer: fine) {
  .efp-featured-title a:hover {
    text-decoration: underline;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--crimson);
  }
}

.efp-featured-lede { margin-top: 1rem; opacity: 0.85; }

.efp-featured-details {
  margin: 2rem 0 0;
  max-width: 26rem;
}

.efp-featured-details div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(128, 128, 128, 0.3);
  border-top-color: color-mix(in srgb, currentColor 22%, transparent);
}

/* Salient ships a global `dt { font-weight: 600; color: #333 }`, which wins
   over an opacity-only rule and leaves these labels near-black on the dark
   ground. Both properties have to be stated back. */
.efp-featured-details dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
  min-width: 0;
}

.efp-featured-details dd { margin: 0; min-width: 0; color: inherit; }
.efp-featured-details .icon { color: inherit; }

.efp-featured-action { margin: 2rem 0 0; }
.efp-featured-action .btn-solid:focus-visible { outline-color: currentColor; }

.efp-featured-empty { opacity: 0.7; }

@media (max-width: 960px) {
  .efp-featured { grid-template-columns: minmax(0, 1fr); }
  .efp-featured--flip > .efp-featured-frame { order: 0; }
}

@media (max-width: 600px) {
  .efp-featured-frame { aspect-ratio: 4 / 3; }
  .efp-featured-details div { grid-template-columns: 1fr; gap: 0.2rem; }
}
