/* ==========================================================================
   ONE PURE DESIRE, design layer for Neve
   --------------------------------------------------------------------------
   Loaded after the Neve stylesheet (see inc/opd.php).
   Everything is namespaced either with --opd-* variables or .opd-* classes,
   except the deliberate overrides of Neve's own selectors.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, latin + latin-ext) ---------- */
/* Fraunces, variable, normal 400–700 */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/opd/39ce2001bb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/opd/7967160614.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces, italic 400–600 */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/opd/feced23ec2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/opd/6cc8f67dc8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, variable, normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/opd/567244088c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/opd/395290514d.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------- */
:root {
  --opd-ink: #1c2321;
  --opd-ink-soft: #3a4340;
  --opd-parchment: #faf6ef;
  --opd-parchment-2: #f3ede2;
  --opd-sand: #e8dfd0;
  --opd-moss: #4f5f43;
  --opd-moss-deep: #3c4a33;
  --opd-terracotta: #b4552d;
  --opd-terracotta-text: #9c4520; /* same hue, darker: passes AA on sand */
  --opd-forest: #1e4d2b;
  --opd-line: #ded3c2;
  --opd-white: #fffdf9;

  --opd-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --opd-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --opd-container: 1180px;
  --opd-narrow: 720px;
  --opd-radius: 10px;
  --opd-shadow: 0 24px 60px -24px rgba(28, 35, 33, 0.35);
  --opd-section: clamp(4rem, 8vw, 7rem);

  /* Texture: the Camino stamp collage, bundled in the theme */
  --opd-stamps: url('../img/opd/stamps-path.webp');
  --opd-hero: url('../img/opd/hero-camino.webp');

  /* Neve's own variables, keeps customizer UI and blocks on-palette */
  --nv-primary-accent: #4f5f43;
  --nv-secondary-accent: #b4552d;
  --nv-site-bg: #faf6ef;
  --nv-light-bg: #e8dfd0;
  --nv-dark-bg: #1e4d2b;
  --nv-text-color: #1c2321;
  --nv-text-dark-bg: #faf6ef;
  --nv-c-1: #4f5f43;
  --nv-c-2: #faf6ef;
  --bodyfontfamily: var(--opd-sans);
  --headingsfontfamily: var(--opd-serif);
  --nv-fallback-ff: Arial, Helvetica, sans-serif;
}

/* ---------- 3. Base typography ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--opd-sans);
  background: var(--opd-parchment);
  color: var(--opd-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.nv-page-title-wrap .title,
.nv-page-title h1 {
  font-family: var(--opd-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--opd-ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem) !important; line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem) !important; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem) !important; line-height: 1.2; }

p { margin-bottom: 1.15em; }

a { color: var(--opd-moss); }
a:hover { color: var(--opd-terracotta-text); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(180, 85, 45, 0.18); }

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

/* ---------- 4. Remove the fixed sky background ---------- */
body.custom-background {
  background-image: none !important;
  background: var(--opd-parchment) !important;
}

/* ---------- 5. Header ---------- */
.header-main,
.header-main-inner {
  background: rgba(250, 246, 239, 0.96) !important;
  border-bottom: 1px solid var(--opd-line);
}
.header-main-inner { backdrop-filter: blur(10px); }

.site-title {
  font-family: var(--opd-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.builder-item--logo { --maxwidth: 38px; }
.neve-site-logo { border-radius: 999px; }
.brand { text-decoration: none; }

.primary-menu-ul > li > .wrap > a,
.nav-menu-primary .primary-menu-ul > li > .wrap > a {
  font-family: var(--opd-sans);
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--opd-ink);
}
.primary-menu-ul > li > .wrap > a:hover,
.primary-menu-ul > li.current-menu-item > .wrap > a,
.primary-menu-ul > li.current_page_item > .wrap > a {
  color: var(--opd-terracotta-text) !important;
}

/* Mobile menu panel */
.header-menu-sidebar,
.header-menu-sidebar-inner {
  background: var(--opd-parchment) !important;
}

/* ---------- 6. Buttons ---------- */
.wp-block-button__link,
button,
input[type="submit"] {
  font-family: var(--opd-sans);
  font-weight: 600;
  border-radius: 999px !important;
  text-transform: none !important;
  font-size: 0.95rem !important;
  padding: 1rem 1.6rem !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-button.is-style-primary .wp-block-button__link {
  background: var(--opd-moss) !important;
  color: var(--opd-white) !important;
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  background: var(--opd-moss-deep) !important;
}
.wp-block-button.is-style-secondary .wp-block-button__link {
  background: transparent !important;
  color: var(--opd-white) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.opd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--opd-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.opd-btn--primary { background: var(--opd-moss); color: var(--opd-white); }
.opd-btn--primary:hover { background: var(--opd-moss-deep); color: var(--opd-white); }
.opd-btn--light { background: var(--opd-white); color: var(--opd-ink); }
.opd-btn--light:hover { background: var(--opd-sand); color: var(--opd-ink); }
.opd-btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.opd-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.opd-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--opd-sand) !important;
  color: var(--opd-ink) !important;
  border: 1.5px solid var(--opd-line) !important;
}

/* ---------- 7. Layout helpers ---------- */
.opd-container {
  width: 100%;
  max-width: var(--opd-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.opd-section { padding-block: var(--opd-section); }
.opd-section--sand { background: var(--opd-sand); }
.opd-section--parchment-2 { background: var(--opd-parchment-2); }

.opd-eyebrow {
  display: inline-block;
  font-family: var(--opd-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--opd-terracotta-text);
  margin-bottom: 0.9rem;
}
.opd-eyebrow--light { color: #e6b79b; }

.opd-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--opd-ink-soft);
  max-width: 60ch;
}

.opd-text-link {
  font-weight: 600;
  color: var(--opd-moss);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.opd-text-link:hover { color: var(--opd-terracotta-text); }

/* Full-width canvas on the pages we rebuild, so sections can bleed */
.home .single-page-container.container,
.page-id-9 .single-page-container.container,
.page-id-10 .single-page-container.container,
.page-id-12 .single-page-container.container,
.page-id-11 .single-page-container.container,
.page-id-138 .single-page-container.container,
.page-id-199 .single-page-container.container {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.home .single-page-container .row,
.page-id-9 .single-page-container .row,
.page-id-10 .single-page-container .row,
.page-id-12 .single-page-container .row,
.page-id-11 .single-page-container .row,
.page-id-138 .single-page-container .row,
.page-id-199 .single-page-container .row {
  margin-left: 0;
  margin-right: 0;
}
.home .nv-single-page-wrap.col,
.page-id-9 .nv-single-page-wrap.col,
.page-id-10 .nv-single-page-wrap.col,
.page-id-12 .nv-single-page-wrap.col,
.page-id-11 .nv-single-page-wrap.col,
.page-id-138 .nv-single-page-wrap.col,
.page-id-199 .nv-single-page-wrap.col {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}
.home .nv-content-wrap.entry-content,
.page-id-9 .nv-content-wrap.entry-content,
.page-id-10 .nv-content-wrap.entry-content,
.page-id-12 .nv-content-wrap.entry-content,
.page-id-11 .nv-content-wrap.entry-content,
.page-id-138 .nv-content-wrap.entry-content,
.page-id-199 .nv-content-wrap.entry-content {
  margin-bottom: 0;
}

/* Hide Neve's own page titles; each rebuilt page renders its own header */
.page-id-9 .nv-page-title-wrap,
.page-id-10 .nv-page-title-wrap,
.page-id-11 .nv-page-title-wrap,
.page-id-12 .nv-page-title-wrap,
.page-id-138 .nv-page-title-wrap,
.page-id-199 .nv-page-title-wrap { display: none !important; }

/* ---------- 8. Homepage hero ---------- */
.opd-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 78vh, 840px);
  padding-block: clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  color: var(--opd-parchment);
  background: #121814;
}
.opd-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.opd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(18, 24, 20, 0.88) 0%, rgba(18, 24, 20, 0.55) 50%, rgba(18, 24, 20, 0.15) 100%),
    linear-gradient(0deg, rgba(18, 24, 20, 0.42), transparent 42%);
  pointer-events: none;
}
.opd-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.opd-hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: 0.6em;
}
.opd-hero p {
  color: rgba(250, 246, 239, 0.88);
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}
.opd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.opd-hero__photo {
  justify-self: center;
  width: clamp(300px, 34vw, 480px);
  height: auto;
}

/* ---------- 9. Stats band ---------- */
.opd-stats {
  background: var(--opd-moss);
  color: var(--opd-parchment);
}
.opd-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
}
.opd-stat strong {
  display: block;
  font-family: var(--opd-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--opd-white);
}
.opd-stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.85);
}

/* ---------- 10. Intro split ---------- */
.opd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.opd-split h2 { max-width: 18ch; margin-bottom: 0; }
.opd-split .opd-text-link { display: inline-block; margin-top: 0.4rem; }

/* ---------- 11. "Where to start" cards ---------- */
.opd-start {
  position: relative;
  overflow: hidden;
  background: var(--opd-sand);
}
.opd-start::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--opd-stamps) center / cover no-repeat;
  opacity: 0.16;
  filter: grayscale(1) contrast(1.08) brightness(1.08);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.opd-start > .opd-container { position: relative; z-index: 1; }
.single-page-container .entry-content .opd-start h2 { margin-top: 0; }
.single-page-container .entry-content .opd-book__body h2 { margin-top: 0; }
.single-page-container .entry-content .opd-section > .opd-container > h2 { margin-top: 0; }

.opd-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
}
.opd-path {
  border-top: 2px solid var(--opd-ink);
  padding-top: 1.4rem;
}
.opd-path__num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--opd-terracotta-text);
}
.opd-path h3 { margin: 0.6rem 0 0.5rem; }
.opd-path p { font-size: 0.98rem; margin-bottom: 0.9rem; }
.opd-path a {
  font-weight: 600;
  color: var(--opd-moss);
  text-decoration: none;
}
.opd-path a:hover { color: var(--opd-terracotta-text); }

/* ---------- 12. Pull quote ---------- */
.opd-quote {
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}
.opd-quote blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--opd-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--opd-ink);
}
.opd-quote blockquote p { margin: 0; }
.opd-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--opd-moss);
}

/* ---------- 13. Gallery ---------- */
.opd-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.opd-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--opd-radius);
}
.opd-gallery--wide img { aspect-ratio: 4 / 3; }

/* Homepage journey strip: tighter space above the photos */
.opd-journey { padding-block: clamp(2.5rem, 5vw, 4rem); }
.opd-journey .opd-eyebrow { margin-bottom: 1.25rem; }

/* Four equal tiles for the homepage journey strip */
.opd-gallery--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.opd-gallery--four img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--opd-radius);
}

/* Nine small tiles: one row on desktop, three per row on smaller screens */
.opd-gallery--nine {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(0.4rem, 1vw, 0.7rem);
}
.opd-gallery__item {
  display: block;
  line-height: 0;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.opd-gallery__item:hover,
.opd-gallery__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(28, 35, 33, 0.6);
}
.opd-gallery__item:focus-visible {
  outline: 2px solid var(--opd-terracotta-text);
  outline-offset: 3px;
}
.opd-gallery--nine img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  grid-column: auto !important;
}

/* ---------- 14. Call to action band ---------- */
.opd-cta {
  background: var(--opd-forest);
  color: var(--opd-parchment);
}
.opd-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.opd-cta h2 { color: var(--opd-white); margin-bottom: 0.4em; }
.opd-cta p { color: rgba(250, 246, 239, 0.82); margin-bottom: 0; }
.opd-cta__link { margin: 1.4rem 0 0 !important; }
.opd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}
.opd-cta a.opd-text-link { color: #f0d9c8; }

/* ---------- 15. Interior page header (stamp texture) ---------- */
.opd-head {
  position: relative;
  overflow: hidden;
  background: var(--opd-parchment-2);
  border-bottom: 1px solid var(--opd-line);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}
.opd-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--opd-stamps) center 35% / cover no-repeat;
  opacity: 0.32;
  filter: contrast(1.1) brightness(1.05) saturate(1.15);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.opd-head > .opd-container { position: relative; z-index: 1; }
.opd-head h1 { max-width: 18ch; margin-bottom: 0.35em; }
.opd-head .opd-lede { max-width: 58ch; margin-bottom: 0; }

/* ---------- 16. Long-form article (bio) ---------- */
.opd-article {
  padding-block: var(--opd-section);
}
.opd-article--tight { padding-top: calc(var(--opd-section) / 4); }
.opd-article__figure {
  display: block;
  float: right;
  width: clamp(180px, 22vw, 240px);
  margin: 0.35rem 0 1.25rem 1.75rem;
  cursor: zoom-in;
}
.opd-article__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--opd-radius);
  box-shadow: 0 18px 32px -20px rgba(28, 35, 33, 0.55);
  transition: transform 0.2s ease;
}
.opd-article__figure:hover img,
.opd-article__figure:focus-visible img { transform: translateY(-2px); }
.opd-article__figure:focus-visible { outline: 3px solid var(--opd-terracotta); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 560px) {
  .opd-article__figure { float: none; width: 100%; max-width: 280px; margin: 0.5rem auto 1.5rem; }
}
.opd-article__inner {
  max-width: var(--opd-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.opd-article h2 { margin-top: 2.4em; }
.opd-article h2:first-child { margin-top: 0; }
.opd-article p { max-width: 68ch; }
.opd-article .opd-quote {
  text-align: left;
  max-width: none;
  margin: 2.5rem 0;
}
.opd-article .opd-quote blockquote {
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--opd-terracotta);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}

/* ---------- 17. Footer ---------- */
.site-footer { margin-top: 0; }
.footer-bottom,
.footer-bottom-inner {
  background: var(--opd-ink) !important;
  color: rgba(250, 246, 239, 0.7) !important;
}
.footer-bottom { padding-block: 1.1rem; }
.footer-bottom a { color: rgba(250, 246, 239, 0.85) !important; }
.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* ---------- 18. Images & blocks ---------- */
.wp-block-image img,
.nv-post-thumbnail-wrap img,
.entry-content figure img {
  border-radius: var(--opd-radius);
}
.entry-content p > img {
  display: block;
  margin: 1.5rem auto;
}
.single-page-container .entry-content p { max-width: 68ch; }
.single-page-container .entry-content h2 { margin-top: 2.4em; }

/* ---------- 19. Download page ---------- */
.opd-books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.opd-book {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding-top: 1.5rem;
  border-top: 2px solid var(--opd-ink);
}
.opd-book__body .opd-eyebrow { margin-top: 0; }
.opd-book__cover img {
  width: 100%;
  height: auto;
  max-width: 260px;
  margin-inline: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 30px 50px -28px rgba(28, 35, 33, 0.55);
}
.opd-book__body h2 { margin: 0.2rem 0 0.7rem; }
.opd-book__body p { max-width: 46ch; }
.opd-book__body .opd-btn { margin-top: 0.6rem; }

.opd-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.opd-badge img { display: block; height: 48px; width: auto; }

/* ---------- 21b. How to open the EPUB ---------- */
.opd-howto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.opd-howto__card ol {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--opd-ink-soft);
}
.opd-howto__card li { margin-bottom: 0.45rem; }
.opd-howto__card li::marker { color: var(--opd-terracotta-text); font-weight: 600; }
.opd-howto__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--opd-line);
}
.opd-howto__notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--opd-ink-soft);
}
.opd-howto__notes li { margin-bottom: 0.4rem; }
.opd-howto__notes p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--opd-ink-soft);
}

.opd-map--article {
  margin: 2.5rem 0;
  max-width: 68ch;
}

/* ---------- 22. Camino map page ---------- */
.opd-map {
  position: relative;
  overflow: hidden;
  border-radius: var(--opd-radius);
  border: 1px solid var(--opd-line);
  background: var(--opd-parchment-2);
  aspect-ratio: 4 / 3;
}
.opd-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 24. Responsive for templated pages ---------- */
@media (max-width: 760px) {
  .opd-books { grid-template-columns: 1fr; }
  .opd-book { grid-template-columns: 1fr; text-align: left; }
  .opd-book__cover img { max-width: 200px; margin-inline: 0; }
  .opd-map { aspect-ratio: 4 / 5; }
}

/* ---------- 20. Future Vision (Beaver Builder) ---------- */
.page-id-12 .fl-rich-text p { max-width: 68ch; }
.page-id-12 .fl-rich-text h2,
.page-id-12 .fl-rich-text h3 { margin-top: 2em; }
.page-id-12 .fl-rich-text img { border-radius: var(--opd-radius); }
.page-id-12 .fl-row-content { max-width: var(--opd-container); padding-inline: clamp(1.25rem, 4vw, 2rem); }
.page-id-12 .fl-row-content .fl-rich-text { max-width: 760px; margin-inline: auto; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 960px) {
  .opd-hero__inner { grid-template-columns: 1fr; }
  .opd-hero__photo { display: none; }
  .opd-split { grid-template-columns: 1fr; }
  .opd-split h2 { margin-bottom: 0.5em; }
  .opd-cta__inner { grid-template-columns: 1fr; }
  .opd-cta__actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .opd-paths { grid-template-columns: 1fr; gap: 1.75rem; }
  .opd-gallery { grid-template-columns: 1fr 1fr; }
  .opd-gallery img:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .opd-stats__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .opd-gallery { grid-template-columns: 1fr; }
  .opd-gallery img,
  .opd-gallery img:nth-child(3) { aspect-ratio: 4 / 3; grid-column: auto; }
  .opd-hero { min-height: 0; padding-block: 3.5rem; }
  .opd-hero__actions .opd-btn { width: 100%; }
  h1 { font-size: clamp(2.15rem, 9vw, 2.8rem) !important; }
}

@media (max-width: 960px) {
  .opd-gallery--nine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .opd-gallery--nine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 24. Story photo timeline ---------- */
.opd-timeline {
  --opd-tl-size: clamp(96px, 10vw, 116px);
  --opd-tl-gap: clamp(0.4rem, 1vw, 0.7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.opd-timeline__track {
  display: flex;
  gap: var(--opd-tl-gap);
  max-width: calc(6 * var(--opd-tl-size) + 5 * var(--opd-tl-gap));
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 0.25rem 0.25rem 0.9rem;
}
.opd-timeline__item {
  flex: 0 0 var(--opd-tl-size);
  height: var(--opd-tl-size);
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.opd-timeline__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.opd-timeline__item:hover,
.opd-timeline__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(28, 35, 33, 0.6);
}
.opd-timeline__nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0 !important;
  border-radius: 999px;
  border: 1.5px solid var(--opd-line);
  background: var(--opd-white);
  color: var(--opd-ink);
  cursor: pointer;
}
.opd-timeline__nav:hover { background: var(--opd-ink); color: var(--opd-parchment); }
.opd-timeline__nav svg { display: block; width: 18px; height: 18px; }
.opd-timeline__nav:hover path { stroke: #faf6ef; }

.opd-lightbox {
  width: min(92vw, 1000px);
  max-width: 92vw;
  padding: 0;
  border: 0;
  border-radius: var(--opd-radius);
  background: var(--opd-ink);
  color: var(--opd-parchment);
}
.opd-lightbox::backdrop { background: rgba(18, 24, 18, 0.88); }
.opd-lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 239, 0.7);
}
.opd-lightbox__close,
.opd-lightbox__prev,
.opd-lightbox__next {
  font: inherit;
  color: var(--opd-parchment);
  background: transparent;
  border: 1.5px solid rgba(250, 246, 239, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.opd-lightbox__close:hover,
.opd-lightbox__prev:hover,
.opd-lightbox__next:hover { background: rgba(250, 246, 239, 0.12); }
.opd-lightbox__figure { margin: 0; padding: 0 1.2rem; text-align: center; }
.opd-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
}
.opd-lightbox__caption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: rgba(250, 246, 239, 0.85);
}
.opd-lightbox__controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
}
