/* ============================================================
   Pilgrimage Guides — /guide/ and /guide/{slug}/
   Scoped under .er-guide. Builds on the --er-* editorial tokens
   (variables.css). Root font-size is 10px on this theme, so all
   sizing is in px; type sizes come from the --er-fs-* scale.
   ============================================================ */

.er-guide {
  background: var(--er-paper, #FBF7EC);
  color: var(--er-ink, #1F1B14);
  font-family: var(--er-sans, system-ui, sans-serif);
}

.er-guide .container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.er-guide-section {
  padding: clamp(44px, 6vw, 78px) 0;
  scroll-margin-top: 90px;
}

.er-guide-section + .er-guide-section {
  border-top: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
}

/* ── Shared type ────────────────────────────────────────────── */
.er-guide h1,
.er-guide h2,
.er-guide h3 {
  font-family: var(--er-serif, Georgia, serif);
  color: inherit;
  margin: 0;
}

.er-guide-kicker,
.er-guide-section-kicker {
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-kicker, 14px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--er-clay-deep, #8E4E2E);
  margin: 0 0 10px;
}

.er-guide-prose {
  font-size: var(--er-fs-prose-lg, 17px);
  line-height: 1.75;
  color: var(--er-ink-2, #3A332A);
  max-width: 640px;
  margin: 0 0 18px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.er-guide-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 620px);
  color: #FBF7EC;
  overflow: hidden;
  isolation: isolate;
}

.er-guide-hero--text {
  min-height: 0;
  color: var(--er-ink, #1F1B14);
  background: var(--er-limestone, #ECE5D5);
  padding-top: 64px;
}

.er-guide-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #4a443a;
}

.er-guide-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.er-guide-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 12, 0.18) 0%, rgba(20, 17, 12, 0.06) 34%, rgba(20, 17, 12, 0.62) 78%, rgba(20, 17, 12, 0.78) 100%);
}

.er-guide-hero-inner {
  position: relative;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 44px;
}

.er-guide-hero .er-guide-kicker {
  color: #E9DFC8;
}

.er-guide-hero--text .er-guide-kicker {
  color: var(--er-clay-deep, #8E4E2E);
}

.er-guide-hero .er-guide-kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 223, 200, 0.55);
}

.er-guide-hero .er-guide-kicker a:hover {
  border-bottom-color: currentColor;
}

.er-guide-hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 800px;
  text-wrap: balance;
}

.er-guide-lede {
  font-family: var(--er-serif, Georgia, serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  max-width: 660px;
  margin: 16px 0 0;
  opacity: 0.94;
}

.er-guide-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.er-guide-hero-meta li {
  font-size: var(--er-fs-ui, 14px);
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border: 1px solid rgba(251, 247, 236, 0.38);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.er-guide-hero--text .er-guide-hero-meta li {
  border-color: var(--er-rule, rgba(31, 27, 20, 0.12));
}

.er-guide-hero-meta a {
  color: inherit;
  text-decoration: none;
}

.er-guide-hero-meta a:hover {
  text-decoration: underline;
}

.er-guide-hero-credit {
  position: absolute;
  right: 12px;
  bottom: 8px;
  margin: 0;
  font-size: var(--er-fs-caption, 12px);
  color: rgba(251, 247, 236, 0.72);
}

/* ── The Shape of the Days ─────────────────────────────────── */
.er-guide-shape-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.er-guide-shape h2 {
  font-size: var(--er-fs-h2, 28px);
  margin-bottom: 18px;
}

.er-guide-omissions {
  margin-top: 30px;
  padding: 22px 24px;
  background: var(--er-ivory, #F6F1E4);
  border: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
  border-radius: 10px;
}

.er-guide-omissions h3 {
  font-size: var(--er-fs-h4, 18px);
  margin-bottom: 12px;
}

.er-guide-omissions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.er-guide-omissions li {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.65;
  color: var(--er-ink-2, #3A332A);
  padding: 9px 0;
}

.er-guide-omissions li + li {
  border-top: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
}

.er-guide-shape-aside {
  position: sticky;
  top: 96px;
  background: var(--er-ivory, #F6F1E4);
  border: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
  border-radius: 12px;
  padding: 24px 24px 10px;
}

.er-guide-facts {
  margin: 0;
}

.er-guide-facts div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
}

.er-guide-facts div + div {
  border-top: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
}

.er-guide-facts dt {
  font-size: var(--er-fs-meta, 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--er-ink-3, #6E6555);
  padding-top: 2px;
}

.er-guide-facts dd {
  margin: 0;
  font-size: var(--er-fs-small, 15px);
  line-height: 1.6;
  color: var(--er-ink-2, #3A332A);
}

.er-guide-fit {
  border-top: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
  margin-top: 6px;
  padding: 16px 0 14px;
}

.er-guide-fit h3 {
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-meta, 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--er-ink-3, #6E6555);
  margin-bottom: 8px;
}

.er-guide-fit ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.er-guide-fit li {
  position: relative;
  font-size: var(--er-fs-small, 15px);
  line-height: 1.55;
  color: var(--er-ink-2, #3A332A);
  padding: 3px 0 3px 18px;
}

.er-guide-fit li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--er-olive, #6E724B);
}

.er-guide-fit--not li::before {
  background: transparent;
  border: 1px solid var(--er-ink-4, #8C8472);
}

/* ── Day sections ───────────────────────────────────────────── */
.er-guide-day-head {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  align-items: flex-start;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.er-guide-day-number {
  font-family: var(--er-serif, Georgia, serif);
  font-size: clamp(64px, 9vw, 118px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--er-parchment, #E0D5BB);
  margin: 0;
  user-select: none;
  flex: none;
}

.er-guide-day-head--plain .er-guide-day-number {
  display: none;
}

.er-guide-day-head-copy {
  min-width: 0;
}

.er-guide-day h2,
.er-guide-map-section h2,
.er-guide-adaptations h2 {
  font-size: var(--er-fs-h2, 28px);
  max-width: 620px;
  text-wrap: balance;
}

.er-guide-day-thesis {
  font-family: var(--er-serif, Georgia, serif);
  font-size: var(--er-fs-lede, 19px);
  line-height: 1.6;
  color: var(--er-ink-2, #3A332A);
  max-width: 620px;
  margin: 14px 0 0;
}

.er-guide-day-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.er-guide-day-facts li {
  font-size: var(--er-fs-ui, 14px);
  color: var(--er-ink-3, #6E6555);
}

.er-guide-day-facts li:not(:first-child) {
  position: relative;
  padding-left: 20px;
}

.er-guide-day-facts li:not(:first-child)::before {
  content: '\00B7';
  position: absolute;
  left: 6px;
  color: var(--er-ink-4, #8C8472);
}

.er-guide-day-facts a {
  color: var(--er-clay-deep, #8E4E2E);
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 78, 46, 0.35);
}

.er-guide-day-facts a:hover {
  border-bottom-color: currentColor;
}

/* ── The stop rail ──────────────────────────────────────────── */
.er-guide-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 760px;
}

.er-guide-stops::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--er-rule, rgba(31, 27, 20, 0.12));
}

.er-guide-stop {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 20px 0;
}

.er-guide-stop-marker {
  flex: none;
  width: 43px;
  display: flex;
  justify-content: center;
}

.er-guide-stop-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--er-clay-deep, #8E4E2E);
  color: #FBF7EC;
  font-family: var(--er-serif, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  left: 4px;
  box-shadow: 0 0 0 5px var(--er-paper, #FBF7EC);
}

.er-guide-stop--optional .er-guide-stop-marker span {
  background: var(--er-paper, #FBF7EC);
  color: var(--er-clay-deep, #8E4E2E);
  border: 1px dashed var(--er-clay-deep, #8E4E2E);
  font-size: 19px;
}

.er-guide-stop-body {
  min-width: 0;
  flex: 1;
  padding-bottom: 6px;
}

.er-guide-stop--optional .er-guide-stop-body {
  border: 1px dashed var(--er-rule-hair, rgba(31, 27, 20, 0.18));
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(246, 241, 228, 0.55);
}

.er-guide-stop-eyebrow {
  font-size: var(--er-fs-meta, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--er-gold, #A4823F);
  margin: 0 0 6px;
}

.er-guide-stop--optional .er-guide-stop-eyebrow {
  color: var(--er-bluegray, #6E7B82);
}

.er-guide-stop-title {
  font-size: var(--er-fs-h3, 22px);
  line-height: 1.25;
}

.er-guide-stop-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 27, 20, 0.22);
  transition: border-color 120ms ease;
}

.er-guide-stop-title a:hover {
  border-bottom-color: var(--er-clay, #B36A45);
  color: var(--er-clay-deep, #8E4E2E);
}

.er-guide-stop-duration {
  font-size: var(--er-fs-meta, 14px);
  color: var(--er-ink-3, #6E6555);
  margin: 6px 0 0;
}

.er-guide-stop-why {
  font-size: var(--er-fs-prose, 16px);
  line-height: 1.7;
  color: var(--er-ink-2, #3A332A);
  margin: 12px 0 0;
  max-width: 620px;
}

.er-guide-stop-priority,
.er-guide-stop-cut,
.er-guide-stop-note {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 620px;
  color: var(--er-ink-2, #3A332A);
}

.er-guide-stop-priority span,
.er-guide-stop-cut span {
  font-weight: 600;
  color: var(--er-ink, #1F1B14);
}

.er-guide-stop-note {
  padding: 10px 14px;
  background: var(--er-ivory, #F6F1E4);
  border-left: 2px solid var(--er-gold, #A4823F);
  border-radius: 0 8px 8px 0;
}

.er-guide-stop-cut {
  color: var(--er-ink-3, #6E6555);
}

.er-guide-stop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 14px;
}

.er-guide-stop-link {
  font-size: var(--er-fs-ui, 14px);
  font-weight: 600;
  color: var(--er-clay-deep, #8E4E2E);
  text-decoration: none;
}

.er-guide-stop-link span {
  margin-left: 4px;
  transition: transform 120ms ease;
  display: inline-block;
}

.er-guide-stop-link:hover span {
  transform: translateX(3px);
}

.er-guide-stop-save {
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-ui, 14px);
  font-weight: 600;
  color: var(--er-ink-2, #3A332A);
  background: transparent;
  border: 1px solid var(--er-rule-hair, rgba(31, 27, 20, 0.18));
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.er-guide-stop-save:hover {
  border-color: var(--er-clay, #B36A45);
  background: rgba(179, 106, 69, 0.06);
}

.er-guide-stop-save.added {
  border-color: var(--er-olive, #6E724B);
  color: var(--er-olive, #6E724B);
}

/* Rest + transition stops sit quietly on the rail */
.er-guide-stop--rest {
  padding: 10px 0;
}

.er-guide-stop--rest .er-guide-stop-body {
  margin-left: 65px;
  border-left: 2px solid var(--er-parchment, #E0D5BB);
  padding: 6px 0 6px 18px;
}

.er-guide-stop--rest .er-guide-stop-eyebrow {
  color: var(--er-olive, #6E724B);
}

.er-guide-stop--rest .er-guide-stop-title {
  font-size: var(--er-fs-h4, 18px);
}

.er-guide-stop--rest .er-guide-stop-why {
  margin-top: 6px;
  font-size: var(--er-fs-small, 15px);
}

.er-guide-move {
  position: relative;
  margin: 2px 0 2px 65px;
  padding: 4px 0;
}

.er-guide-move p {
  font-size: var(--er-fs-meta, 14px);
  font-style: italic;
  color: var(--er-ink-3, #6E6555);
  margin: 0;
  max-width: 560px;
}

.er-guide-move-mark {
  position: absolute;
  left: -47px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-radius: 50%;
  border: 1px solid var(--er-ink-4, #8C8472);
  background: var(--er-paper, #FBF7EC);
  box-shadow: 0 0 0 4px var(--er-paper, #FBF7EC);
}

.er-guide-day-evening {
  max-width: 760px;
  margin: 26px 0 0;
  padding: 18px 22px;
  font-family: var(--er-serif, Georgia, serif);
  font-size: var(--er-fs-prose-lg, 17px);
  line-height: 1.65;
  color: var(--er-ink-2, #3A332A);
  background: var(--er-ivory, #F6F1E4);
  border-radius: 10px;
}

/* ── Map ────────────────────────────────────────────────────── */
.er-guide-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.er-guide-map-chip {
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-ui, 14px);
  font-weight: 600;
  color: var(--er-ink-2, #3A332A);
  background: transparent;
  border: 1px solid var(--er-rule-hair, rgba(31, 27, 20, 0.18));
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}

.er-guide-map-chip[aria-pressed="true"] {
  background: var(--er-ink, #1F1B14);
  border-color: var(--er-ink, #1F1B14);
  color: #FBF7EC;
}

.er-guide-map-chip:focus-visible,
.er-guide-stop-save:focus-visible,
.er-guide-journey-save:focus-visible,
.er-guide-stop-link:focus-visible {
  outline: 2px solid var(--er-clay-deep, #8E4E2E);
  outline-offset: 2px;
}

.er-guide-map-frame {
  border: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
  border-radius: 14px;
  overflow: hidden;
  background: var(--er-limestone, #ECE5D5);
}

.er-guide-map-canvas {
  width: 100%;
  height: clamp(340px, 52vh, 520px);
}

.er-guide-map-note {
  font-size: var(--er-fs-meta, 14px);
  color: var(--er-ink-3, #6E6555);
  margin: 10px 0 0;
}

.er-guide-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--er-clay-deep, #8E4E2E);
  color: #FBF7EC;
  font: 600 13px/1 var(--er-sans, sans-serif);
  border: 2px solid #FBF7EC;
  box-shadow: 0 1px 4px rgba(31, 27, 20, 0.35);
}

.er-guide-map-pin--optional {
  background: #FBF7EC;
  color: var(--er-clay-deep, #8E4E2E);
  border: 2px dashed var(--er-clay-deep, #8E4E2E);
}

.er-guide-map-canvas .leaflet-popup-content {
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-ui, 14px);
}

.er-guide-map-canvas .leaflet-popup-content a {
  color: var(--er-clay-deep, #8E4E2E);
}

/* ── Adaptations ────────────────────────────────────────────── */
.er-guide-adapt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.er-guide-adapt {
  background: var(--er-ivory, #F6F1E4);
  border: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
  border-radius: 12px;
  padding: 22px 24px;
}

.er-guide-adapt h3 {
  font-size: var(--er-fs-h4, 18px);
  margin-bottom: 10px;
}

.er-guide-adapt p {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.65;
  color: var(--er-ink-2, #3A332A);
  margin: 0;
}

/* ── Journey band ───────────────────────────────────────────── */
.er-guide-journey {
  background: var(--er-ink, #1F1B14);
  color: #F2ECDD;
}

.er-guide-journey .er-guide-section-kicker {
  color: var(--er-gold, #A4823F);
}

.er-guide-journey-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.er-guide-journey h2 {
  font-size: var(--er-fs-h2, 28px);
  color: #FBF7EC;
}

.er-guide-journey-copy > p {
  font-size: var(--er-fs-prose, 16px);
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 560px;
  color: rgba(242, 236, 221, 0.88);
}

.er-guide-journey-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.er-guide-journey-facts li {
  position: relative;
  font-size: var(--er-fs-small, 15px);
  line-height: 1.6;
  color: rgba(242, 236, 221, 0.82);
  padding: 5px 0 5px 24px;
}

.er-guide-journey-facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--er-gold, #A4823F);
}

.er-guide-journey-action {
  text-align: center;
}

.er-guide-journey-save {
  font-family: var(--er-sans, sans-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FBF7EC;
  background: var(--er-clay-deep, #8E4E2E);
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
  width: 100%;
  max-width: 340px;
}

.er-guide-journey-save:hover {
  background: var(--er-clay, #B36A45);
  transform: translateY(-1px);
}

.er-guide-journey-save.added {
  background: var(--er-olive, #6E724B);
}

.er-guide-journey-hint {
  font-size: var(--er-fs-meta, 14px);
  color: rgba(242, 236, 221, 0.66);
  margin: 12px 0 0;
}

/* ── Provenance & sources ───────────────────────────────────── */
.er-guide-provenance {
  background: var(--er-ivory, #F6F1E4);
}

.er-guide-provenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.er-guide-provenance h2 {
  font-size: var(--er-fs-h2, 28px);
  margin-bottom: 18px;
}

.er-guide-provenance-facts {
  margin: 0 0 18px;
  border-top: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
}

.er-guide-provenance-facts div {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
}

.er-guide-provenance-facts dt {
  font-size: var(--er-fs-meta, 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--er-ink-3, #6E6555);
}

.er-guide-provenance-facts dd {
  margin: 0;
  font-size: var(--er-fs-small, 15px);
  color: var(--er-ink-2, #3A332A);
}

.er-guide-provenance-note {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.7;
  color: var(--er-ink-2, #3A332A);
  max-width: 560px;
  margin: 0 0 12px;
}

.er-guide-provenance-note a {
  color: var(--er-clay-deep, #8E4E2E);
}

.er-guide-sources-heading {
  font-size: var(--er-fs-h4, 18px);
  margin-bottom: 12px;
}

.er-guide-sources {
  list-style: none;
  margin: 0;
  padding: 0;
}

.er-guide-sources li {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.55;
  padding: 9px 0;
  border-bottom: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
}

.er-guide-sources a {
  color: var(--er-ink-2, #3A332A);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 27, 20, 0.22);
}

.er-guide-sources a:hover {
  color: var(--er-clay-deep, #8E4E2E);
  border-bottom-color: currentColor;
}

.er-guide-source-publisher {
  display: block;
  font-size: var(--er-fs-meta, 14px);
  color: var(--er-ink-4, #8C8472);
  margin-top: 2px;
}

.er-guide-continue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}

.er-guide-continue-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--er-paper, #FBF7EC);
  border: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
  border-radius: 12px;
  color: var(--er-ink, #1F1B14);
  font-family: var(--er-serif, Georgia, serif);
  font-size: var(--er-fs-h4, 18px);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.er-guide-continue-link:hover {
  border-color: var(--er-clay, #B36A45);
  transform: translateY(-2px);
}

.er-guide-continue-kicker {
  font-family: var(--er-sans, sans-serif);
  font-size: var(--er-fs-kicker, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--er-ink-3, #6E6555);
}

/* ── Index page ─────────────────────────────────────────────── */
.er-guide-index-hero {
  background: var(--er-limestone, #ECE5D5);
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
}

.er-guide-index-hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.12;
  max-width: 720px;
  text-wrap: balance;
}

.er-guide-index-hero .er-guide-lede {
  color: var(--er-ink-2, #3A332A);
}

.er-guide-index-grid {
  display: grid;
  /* auto-fit (not auto-fill) lets a small, curated set fill the row as an
     intentional flagship pair at wide widths, while still wrapping cleanly as
     more guides are published. The max-width keeps cards from sprawling. */
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 30px;
  max-width: 1120px;
  margin-inline: auto;
}

.er-guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--er-rule-soft, rgba(31, 27, 20, 0.07));
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--er-ink, #1F1B14);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.er-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 27, 20, 0.12);
}

.er-guide-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(31, 27, 20, 0.05) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, #d3bd95 0%, #b29469 100%);
}

.er-guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.er-guide-card-days {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 600 13px/1 var(--er-sans, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FBF7EC;
  background: rgba(31, 27, 20, 0.72);
  border-radius: 999px;
  padding: 7px 13px;
}

.er-guide-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  flex: 1;
}

.er-guide-card-kicker {
  font: 600 var(--er-fs-kicker, 14px)/1.2 var(--er-sans, sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--er-clay-deep, #8E4E2E);
}

.er-guide-card-title {
  font-family: var(--er-serif, Georgia, serif);
  font-size: var(--er-fs-h3, 22px);
  line-height: 1.25;
  font-weight: 600;
}

.er-guide-card-summary {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.6;
  color: var(--er-ink-2, #3A332A);
}

.er-guide-card-meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: var(--er-fs-meta, 14px);
  color: var(--er-ink-3, #6E6555);
}

.er-guide-index-method {
  max-width: 640px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--er-rule, rgba(31, 27, 20, 0.12));
}

.er-guide-index-method h2 {
  font-size: var(--er-fs-h3, 22px);
  margin-bottom: 12px;
}

.er-guide-index-method p {
  font-size: var(--er-fs-small, 15px);
  line-height: 1.7;
  color: var(--er-ink-2, #3A332A);
  margin: 0;
}

.er-guide-index-method a {
  color: var(--er-clay-deep, #8E4E2E);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .er-guide-shape-grid,
  .er-guide-journey-inner,
  .er-guide-provenance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .er-guide-shape-aside {
    position: static;
  }

  .er-guide-day-number {
    font-size: 56px;
  }

  .er-guide-journey-action {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .er-guide .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .er-guide-hero-inner {
    padding-top: 72px;
  }

  .er-guide-day-head {
    flex-direction: column;
    gap: 6px;
  }

  .er-guide-day-number {
    font-size: 44px;
    color: var(--er-parchment, #E0D5BB);
  }

  .er-guide-stops::before {
    left: 15px;
  }

  .er-guide-stop {
    gap: 14px;
  }

  .er-guide-stop-marker {
    width: 31px;
  }

  .er-guide-stop-marker span {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .er-guide-stop--rest .er-guide-stop-body,
  .er-guide-move {
    margin-left: 45px;
  }

  .er-guide-move-mark {
    left: -33px;
  }

  .er-guide-facts div,
  .er-guide-provenance-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────
   The site handles motion preferences per component; the guide's
   micro-interactions (card lift, arrow nudge, map dash) are decorative,
   so neutralize them when the viewer asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .er-guide *,
  .er-guide *::before,
  .er-guide *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .er-guide-card:hover,
  .er-guide-continue-link:hover,
  .er-guide-journey-save:hover {
    transform: none;
  }
}
