/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --blue-light:   #d8e2f3;
  --blue-mid:     #92addd;
  --blue-strong:  #4875c6;
  --blue-deep:    #2e5294;
  --blue-dark:    #1b3055;
  --blue-accent:  #4c78c7;
  --gold:         #9A7B2F;
  --gold-light:   #C4A44A;

  --page-bg:      var(--blue-light);
  --text:         #1a1a2e;
  --text-muted:   #4a5568;

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body:    'Lora', Georgia, serif;

  --radius:       2px;
  --container:    1200px;
  --gap:          1.5rem;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--page-bg);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--blue-strong); text-decoration: underline; }
a:hover { color: var(--blue-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 4rem; }
.section--light { background: #fff; }

.section__header { margin-bottom: 2rem; }

.section__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  color: var(--blue-dark);
  display: inline-block;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 0;
}

.section__cta { margin-top: 2.5rem; text-align: center; }
.section__empty { font-style: italic; color: var(--text-muted); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: #fff; }

.btn--sm { font-size: .8rem; padding: .4rem 1rem; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem; /* 56px */
  gap: 1rem;
}

.nav__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo { display: block; flex-shrink: 0; }
.nav__logo-path { fill: #b00a00; }                  /* brand red by default */
.site-header .nav__logo-path { fill: #ffffff; }     /* white on the dark header */

.nav__links {
  display: flex;
  list-style: none;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.625rem; /* 10px */
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav__link:hover,
.nav__link--active {
  background: var(--gold);
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s;
}

.nav__dropdown {
  position: relative;
}
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--blue-dark);
  list-style: none;
  min-width: 140px;
  padding: .4rem 0;
  border-radius: var(--radius);
  z-index: 200;
}
.nav__dropdown:hover .nav__dropdown-menu {
  display: block;
}
.nav__dropdown-menu a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  text-decoration: none;
  padding: .5rem 1rem;
  transition: background .15s, color .15s;
}
.nav__dropdown-menu a:hover,
.nav__dropdown-menu a.nav__link--active {
  background: var(--gold);
  color: #fff;
}

@media (max-width: 700px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
  }
  .nav__links--open { display: flex; }
  .nav__link { padding: .6rem .75rem; }
  .nav__dropdown-menu {
    display: block;
    position: static;
    background: none;
    padding: 0;
    min-width: unset;
  }
  .nav__dropdown-menu a {
    padding: .6rem .75rem .6rem 1.75rem;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: var(--blue-deep);
  border-bottom: 3px solid var(--gold);
  padding-block: 6rem 5rem;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 42px);
  color: var(--blue-light);
  margin-bottom: .75rem;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--blue-mid);
  font-size: 1.2rem;
  margin-bottom: 0;
}
.hero__rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1.75rem auto;
}
.hero .btn { margin-top: 0; }

/* ================================================================
   HOME HERO
   ================================================================ */
.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
}

.home-hero__portrait {
  position: absolute;
  inset: 0;
}
.home-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top 35%;
  display: block;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 3.5rem;
  background: rgba(27, 48, 85, 0.70);
}

.home-hero__content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 56px);
  color: var(--blue-light);
  line-height: 1.1;
  margin-bottom: .9rem;
}

.home-hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--blue-mid);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.home-hero__rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.75rem;
}

.home-hero__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--blue-light);
  line-height: 1.85;
  max-width: 480px;
}

.home-hero__byline {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-top: 2.5rem;
}
.home-hero__byline-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.home-hero__byline-role {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@media (max-width: 860px) {
  .home-hero {
    min-height: 100svh;
  }
  .home-hero__content {
    width: 100%;
    padding: 2.5rem 1.5rem;
  }
}

/* ================================================================
   HOME CONTENT ROWS
   ================================================================ */
.home-row__header {
  margin-bottom: 1.75rem;
}
.home-row__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-strong);
  margin-bottom: .4rem;
}
.home-row__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.home-row__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 28px);
  color: var(--blue-dark);
}
.home-row__viewall {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.home-row__viewall:hover { color: var(--gold-light); }
.home-row__rule {
  height: 3px;
  width: 48px;
  background: var(--gold);
}
.home-row__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 1.75rem;
}
@media (min-width: 580px) {
  .home-row__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .home-row__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   OVERLAY CARDS (image-forward, used sitewide)
   ================================================================ */
.overlay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 580px) {
  .overlay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .overlay-grid { grid-template-columns: repeat(3, 1fr); }
}

.overlay-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  max-height: 520px;
  text-decoration: none;
  background: var(--blue-dark);
}
.overlay-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.overlay-card:hover .overlay-card__img { transform: scale(1.05); }
.overlay-card__img--placeholder {
  position: absolute;
  inset: 0;
  background: var(--blue-mid);
}
.overlay-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}
.overlay-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.overlay-card__meta {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: .75rem;
  color: var(--gold-light);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.overlay-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.overlay-card__excerpt {
  font-family: var(--font-body);
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-top: .25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--blue-deep);
  border-bottom: 3px solid var(--gold);
  padding-block: 3.5rem 3rem;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: .5rem;
}
.page-hero p {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--blue-mid);
  font-size: 1.05rem;
}

/* ================================================================
   CARD GRID
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 18px rgba(46,82,148,.15); }

.card__img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card__img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card__img-link:hover img { transform: scale(1.04); }

.card__body { padding: 1.1rem 1.25rem 1.4rem; flex: 1; }
.card__meta {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: .4rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.card__title { font-size: 1.05rem; margin-bottom: .4rem; }
.card__title a { text-decoration: none; color: var(--blue-dark); }
.card__title a:hover { color: var(--blue-strong); }
.card__excerpt { font-size: .9rem; color: var(--text-muted); }
.card__location { font-size: .85rem; color: var(--text-muted); font-style: italic; }
.card__count { font-family: var(--font-heading); font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ================================================================
   TAGS
   ================================================================ */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--blue-light);
  color: var(--blue-deep);
  padding: .15rem .5rem;
  border-radius: var(--radius);
}
.tag--pilgrimage  { background: #e8e0f5; color: #5b2d8e; }
.tag--travel      { background: #d8f5e0; color: #1a6b37; }
.tag--retreat     { background: #fdf3dd; color: #8a5c0e; }
.tag--parish      { background: #d8e2f3; color: #2e5294; }
.tag--personal    { background: #fde8e8; color: #8b2323; }

/* ================================================================
   FILTER BAR
   ================================================================ */
.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #fff;
  color: var(--blue-deep);
  border: 2px solid var(--blue-mid);
  border-radius: var(--radius);
  padding: .35rem .9rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover { background: var(--blue-mid); color: #fff; }
.filter-btn--active { background: var(--blue-strong); color: #fff; border-color: var(--blue-strong); }

/* ================================================================
   ADVENTURES MAP
   ================================================================ */
.adventures-map-section { border-bottom: 3px solid var(--gold); }

#adventures-map {
  height: 420px;
  width: 100%;
}

/* Custom Leaflet pin */
.map-pin span {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 2px solid var(--blue-dark);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ================================================================
   POST LIST (blog index)
   ================================================================ */
.post-list { display: flex; flex-direction: column; gap: 2.5rem; }

.post-list__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 600px) {
  .post-list__item { grid-template-columns: 1fr; }
}

.post-list__img-link { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.post-list__img-link img { width: 100%; height: 100%; object-fit: cover; }

.post-list__meta {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.post-list__title { font-size: 1.3rem; margin-bottom: .5rem; }
.post-list__title a { text-decoration: none; color: var(--blue-dark); }
.post-list__title a:hover { color: var(--blue-strong); }
.post-list__excerpt { font-size: .93rem; color: var(--text-muted); margin-bottom: .75rem; }

/* ================================================================
   PROSE (single post / page)
   ================================================================ */
.prose {
  max-width: 72ch;
  margin-inline: auto;
  padding-block: 3rem;
}

.prose h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--gold-light); }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.prose p  { margin-bottom: 1.2rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }

.prose figcaption,
.gallery-grid__item figcaption,
.camino-entry__gallery figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .5rem;
  padding: 0 .5rem;
  line-height: 1.5;
}
.prose hr { border: none; border-top: 1px solid var(--gold-light); margin: 2rem 0; }

/* ================================================================
   POST BANNER (full-bleed cinematic hero with title overlay)
   ================================================================ */
.post-banner {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.post-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(5px);
  transform: scale(1.08); /* keeps blur edges from showing */
}

.post-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
}

.post-banner__text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 760px;
}

.post-banner__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: .6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.post-banner__meta {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.post-banner__meta .tag {
  opacity: .85;
}
.post__header, .adventure__header { margin-bottom: 2rem; }
.post__title, .adventure__title { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: .5rem; }
.post__meta, .adventure__meta {
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.post__excerpt { font-style: italic; font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1rem; }
.post__footer, .adventure__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--blue-mid); }

/* ================================================================
   POST / ADVENTURE / CAMINO PREV–NEXT NAV
   ================================================================ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-light);
}
.post-nav__prev { justify-self: start; }
.post-nav__back { justify-self: center; align-self: center; }
.post-nav__next { justify-self: end; text-align: right; }
.post-nav__label {
  display: block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.post-nav__title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  line-height: 1.3;
}
.post-nav__title:hover { color: var(--gold-light); text-decoration: underline; }
@media (max-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .post-nav__next { justify-self: start; text-align: left; }
  .post-nav__back { order: -1; justify-self: start; }
}

/* ================================================================
   GALLERY GRID
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  margin: 2rem 0;
}
.gallery-grid__item {
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-grid__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid__item figcaption { font-size: .8rem; color: var(--text-muted); padding: .35rem .25rem; }
.gallery-grid__link { display: block; overflow: hidden; }

.gallery-page__header { margin-bottom: 2rem; }
.gallery-page__title { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: .5rem; }
.gallery-page__meta { font-family: var(--font-heading); font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-page__footer { margin-top: 2.5rem; }

/* ================================================================
   CAMINO TIMELINE
   ================================================================ */
.camino-timeline-section { padding-block: 2rem 4rem; }

.camino-timeline {
  list-style: none;
  position: relative;
}
/* The vertical thread */
.camino-timeline::before {
  content: '';
  position: absolute;
  left: 1.75rem;         /* centre on the dot */
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 4%, var(--gold) 96%, transparent);
  pointer-events: none;
}

.camino-tl-item {
  display: grid;
  grid-template-columns: 3.5rem 220px 1fr;
  align-items: center;
  min-height: 140px;
  position: relative;
}
/* Alternating row colours */
.camino-tl-item:nth-child(odd)  { background: var(--blue-dark); }
.camino-tl-item:nth-child(even) { background: #1e3a66; }   /* ~midpoint blue-dark / blue-deep */

/* Thread column — holds the dot */
.camino-tl-item__thread {
  display: flex;
  justify-content: center;
  align-self: stretch;
  position: relative;
  z-index: 1;
}
.camino-tl-item__dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--blue-dark);
  box-shadow: 0 0 0 2px var(--gold);
}
/* Dot border matches the row colour */
.camino-tl-item:nth-child(even) .camino-tl-item__dot { border-color: #1e3a66; }

/* Thumbnail column */
.camino-tl-item__thumb {
  display: block;
  width: 220px;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}
.camino-tl-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.camino-tl-item:hover .camino-tl-item__thumb img { transform: scale(1.05); }
.camino-tl-item__thumb--placeholder {
  width: 100%;
  height: 100%;
  background: var(--blue-deep);
}

/* Content column */
.camino-tl-item__content {
  padding: 1.25rem 1.5rem;
  color: var(--blue-light);
}
.camino-tl-item__stage {
  display: block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .35rem;
}
.camino-tl-item__title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: .4rem;
  line-height: 1.25;
}
.camino-tl-item__title a {
  color: #fff;
  text-decoration: none;
}
.camino-tl-item__title a:hover { color: var(--gold-light); text-decoration: none; }
.camino-tl-item__meta {
  font-family: var(--font-heading);
  font-size: .82rem;
  color: var(--blue-mid);
  line-height: 1.5;
}

/* Mobile: stack thumbnail above content, hide thread column */
@media (max-width: 640px) {
  .camino-timeline::before { left: .85rem; }
  .camino-tl-item {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
  }
  .camino-tl-item__thread { grid-row: 1 / 3; }
  .camino-tl-item__thumb {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 160px;
  }
  .camino-tl-item__content {
    grid-column: 2;
    grid-row: 2;
    padding: .75rem 1rem;
  }
}

.camino-tl-item--empty { padding: 2rem; color: var(--blue-mid); }

/* Camino entry */
.camino-entry__header { margin-bottom: 2rem; }
.camino-entry__title { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: .5rem; }
.camino-entry__meta  { font-family: var(--font-heading); font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.camino-entry__stats { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--font-heading); font-size: .9rem; }
.camino-entry__stats .stat strong { color: var(--gold); }
.camino-entry__gallery { margin-top: 2.5rem; }
.camino-entry__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--blue-mid); }

/* ================================================================
   CAMINO TEASER
   ================================================================ */
.camino-teaser { max-width: 640px; }
.camino-teaser p { margin-bottom: 1.25rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--blue-dark);
  color: var(--blue-mid);
  padding-block: 2rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 300;
}

/* ================================================================
   IMAGE UTILITY CLASSES
   ================================================================ */
.float-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 45%;
}
.float-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 45%;
}
.img-center {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
}
.img-full {
  display: block;
  width: 100%;
  margin: 1.5rem 0;
}
.img-small {
  max-width: 30%;
}
.img-medium {
  max-width: 60%;
}
.img-large {
  max-width: 85%;
}

/* When layout classes land on an <img> inside a <figure>, promote
   float/size to the figure so the caption travels with the image. */
figure:has(img.float-right) {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 45%;
}
figure:has(img.float-left) {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 45%;
}
figure:has(img.float-right) img,
figure:has(img.float-left)  img { float: none; margin: 0; max-width: 100%; }

figure:has(img.img-small)  { max-width: 30%; }
figure:has(img.img-medium) { max-width: 60%; }
figure:has(img.img-large)  { max-width: 85%; }
figure:has(img.img-center) { display: block; margin-inline: auto; }
figure:has(img.img-full)   { width: 100%; margin: 1.5rem 0; }

figure figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .4rem;
  line-height: 1.5;
}

/* ================================================================
   ASIDE ELLIPSIS + POPOVER
   ================================================================ */
.aside-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8em;
  letter-spacing: .2em;
  padding: .1em .55em .1em .45em;
  color: var(--blue-mid);
  border: 1px solid var(--blue-mid);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  transition: background .15s, color .15s;
  line-height: 1.6;
}
.aside-trigger:hover,
.aside-trigger.is-open {
  background: var(--blue-mid);
  color: #fff;
}

.aside-popover {
  position: fixed;
  background: #fff;
  color: var(--text);
  border: 1px solid #c8d3e8;
  border-radius: 4px;
  padding: 12px 16px;
  max-width: 300px;
  width: max-content;
  font-size: .875rem;
  font-family: var(--font-body);
  line-height: 1.6;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  z-index: 8500;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  pointer-events: none;
}
.aside-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Triangle pointer — border layer (behind) */
.aside-popover::before {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--aside-arrow-x, 50%);
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #c8d3e8;
  border-bottom: none;
}
/* Triangle pointer — fill layer (on top) */
.aside-popover::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: var(--aside-arrow-x, 50%);
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
  border-bottom: none;
}

/* ================================================================
   HIGHLIGHTER MARK
   ================================================================ */
mark {
  background: #ffe066;
  color: #1a1a2e;
  padding: .05em .25em;
  border-radius: 2px;
  /* Simulate a slightly uneven hand-drawn stroke */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.prose mark { font-style: inherit; }

/* ================================================================
   FOOTNOTE POPUPS
   ================================================================ */
sup.fn-trigger {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 2px;
}
sup.fn-trigger:hover { color: var(--gold-light); }

.fn-popup {
  position: fixed;
  background: var(--blue-dark);
  color: var(--blue-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: .85rem 2rem .85rem 1rem;
  max-width: min(340px, calc(100vw - 1.5rem));
  font-size: .875rem;
  font-family: var(--font-body);
  line-height: 1.6;
  z-index: 9000;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  pointer-events: none;
}
.fn-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fn-popup p { margin: 0; }
.fn-popup p + p { margin-top: .5rem; }

.fn-close {
  position: absolute;
  top: .35rem;
  right: .45rem;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .25rem;
}
.fn-close:hover { color: #fff; }

/* Hide the rendered footnote list — popups replace it */
.footnotes-sep,
.footnotes { display: none; }

/* ================================================================
   404 PAGE
   ================================================================ */
.error-404 {
  text-align: center;
  padding-block: 4rem;
  max-width: 560px;
  margin-inline: auto;
}
.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-mid);
  margin-bottom: 1rem;
}
.error-404__message {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
#lightbox.is-open { display: flex; }

#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
  cursor: zoom-out;
}

#lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-style: italic;
  font-size: .9rem;
  text-align: center;
  max-width: 600px;
  pointer-events: none;
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: .25rem .6rem;
  transition: opacity .15s;
}
#lightbox-close:hover,
#lightbox-close:focus { opacity: 1; outline: none; }

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: .25rem .75rem;
  transition: opacity .15s, background .15s;
  z-index: 2;
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-prev:focus,
#lightbox-next:focus  { opacity: 1; background: rgba(255, 255, 255, 0.2); outline: none; }
#lightbox-prev:disabled,
#lightbox-next:disabled { opacity: 0.2; cursor: default; }

.lightbox-trigger {
  cursor: zoom-in;
  transition: opacity .2s;
}
.lightbox-trigger:hover { opacity: 0.88; }
