/* Oloropa story layout distinction and clean public preview shell */
:root {
  --ol-story-deep: #10251b;
  --ol-story-green: #1f3a2d;
  --ol-story-gold: #c6a24a;
  --ol-story-ivory: #fff8e9;
  --ol-story-paper: #fbf4e5;
  --ol-story-ink: #17231d;
}

.ol-story-public-shell {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(198, 162, 74, .18), transparent 34%),
    linear-gradient(180deg, #fff8e9 0%, #f6eddb 42%, #fffaf0 100%);
  color: var(--ol-story-ink);
}

.ol-story-public-shell a[href="#main-content"]:not(:focus),
.ol-story-public-shell .skip-link:not(:focus),
.ol-story-public-shell .ol-skip-link:not(:focus),
.ol-story-public-shell .ol-p9-story-nav,
.ol-story-public-shell .ol-p9-story-preview-command,
.ol-story-public-shell .ol-p9-story-toolbar,
.ol-story-public-shell .ol-p9-story-footer,
.ol-story-public-shell .ol-p8-renderer-toolbar {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.ol-story-public-canvas {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.6rem) 0 clamp(4rem, 8vw, 7rem);
}

.ol-story-public-canvas .ol-p8-story-shell {
  width: 100%;
  margin: 0 auto;
}

.ol-story-menu-button {
  position: fixed;
  left: clamp(.85rem, 2vw, 1.35rem);
  top: clamp(.85rem, 2vw, 1.35rem);
  z-index: 160;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(16, 37, 27, .94), rgba(31, 58, 45, .88));
  color: #fff8e9;
  box-shadow: 0 22px 58px rgba(9, 22, 15, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.ol-story-menu-button i {
  font-size: 1.25rem;
}

.ol-story-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  border: 0;
  background: rgba(5, 14, 10, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.ol-story-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 155;
  width: min(370px, calc(100vw - 22px));
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10, 31, 22, .98), rgba(18, 53, 41, .96));
  color: #fff8e9;
  box-shadow: 32px 0 90px rgba(0, 0, 0, .28);
  transform: translateX(-105%);
  transition: transform .28s ease;
  overflow-y: auto;
}

.ol-story-sidebar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .2rem .2rem 1rem;
}

.ol-story-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.ol-story-sidebar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, .12);
}

.ol-story-sidebar-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: inherit;
  cursor: pointer;
}

.ol-story-sidebar-card,
.ol-story-sidebar nav {
  margin-top: .85rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  padding: 1rem;
}

.ol-story-sidebar-card p,
.ol-story-sidebar-card span {
  color: rgba(255, 248, 233, .72);
  line-height: 1.65;
}

.ol-story-sidebar-card strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.02;
}

.ol-story-sidebar nav {
  display: grid;
  gap: .45rem;
}

.ol-story-sidebar nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  border-radius: 16px;
  padding: .72rem .85rem;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.ol-story-sidebar nav a:hover,
.ol-story-sidebar nav a:focus-visible {
  background: rgba(198, 162, 74, .18);
  outline: 0;
}

.ol-story-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .85rem;
}

.ol-story-sidebar-stats span {
  border-radius: 16px;
  background: rgba(255, 248, 233, .1);
  padding: .75rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}

.ol-story-sidebar-stats b {
  display: block;
  margin-top: .25rem;
  color: #f0cf7d;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.ol-story-public-shell.is-story-sidebar-open .ol-story-sidebar {
  transform: translateX(0);
}

.ol-story-public-shell.is-story-sidebar-open .ol-story-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ol-p8-story-shell {
  overflow: hidden;
}

.ol-p8-block h3,
.ol-p8-block h4,
.ol-p8-richtext h3,
.ol-p8-richtext h4 {
  margin: .35rem 0 .7rem;
  color: var(--ol-story-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
}

.ol-p8-block h3,
.ol-p8-richtext h3 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.ol-p8-block h4,
.ol-p8-richtext h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.ol-p8-prose-list {
  display: grid;
  gap: .55rem;
  margin: .85rem 0 0;
  padding-left: 1.1rem;
  color: #405046;
  line-height: 1.75;
}

.ol-p8-mini-media img,
.ol-p8-mini-media video,
.ol-p8-mini-media iframe {
  min-height: 92px !important;
  height: 92px !important;
  max-height: 92px !important;
}

/* Cinematic Magazine: theatre-first editorial */
.ol-p8-story-shell.ol-p8-cinematic {
  background: #06150f;
  color: #fff8e9;
  border: 0;
  box-shadow: 0 44px 120px rgba(5, 14, 10, .32);
}

.ol-p8-cinematic .ol-p8-story-hero {
  min-height: min(92vh, 920px);
  border-radius: 0 0 clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem);
}

.ol-p8-cinematic .ol-p8-hero-glow {
  background: linear-gradient(90deg, rgba(3, 12, 8, .94), rgba(3, 12, 8, .28) 55%, rgba(3, 12, 8, .78)), radial-gradient(circle at 20% 80%, rgba(198, 162, 74, .34), transparent 35%);
}

.ol-p8-cinematic .ol-p8-hero-content {
  max-width: 1120px;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.ol-p8-cinematic .ol-p8-hero-content h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 11vw, 10rem);
}

.ol-p8-cinematic .ol-p8-reader {
  grid-template-columns: minmax(0, 1fr) 330px;
  background: linear-gradient(180deg, #06150f, #10251b);
}

.ol-p8-cinematic .ol-p8-block {
  background: rgba(255, 248, 233, .96);
  border-radius: 34px;
}

.ol-p8-cinematic .ol-p8-article .ol-p8-block-media:nth-child(odd) {
  margin-left: -4vw;
}

/* Destination Atlas: field dossier with side rail */
.ol-p8-story-shell.ol-p8-atlas {
  background: #efe2c4;
  background-image: linear-gradient(rgba(18, 53, 41, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 53, 41, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  border-color: rgba(18, 53, 41, .18);
}

.ol-p8-atlas .ol-p8-story-hero {
  min-height: 620px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.ol-p8-atlas .ol-p8-hero-glow {
  background: linear-gradient(90deg, rgba(10, 31, 22, .9), rgba(10, 31, 22, .4)), radial-gradient(circle at 85% 18%, rgba(198, 162, 74, .45), transparent 32%);
}

.ol-p8-atlas .ol-p8-reader {
  grid-template-columns: 350px minmax(0, 1fr);
  align-items: start;
}

.ol-p8-atlas .ol-p8-sidecar {
  order: -1;
  top: 1rem;
}

.ol-p8-atlas .ol-p8-block {
  border-radius: 18px;
  border-left: 8px solid rgba(18, 53, 41, .8);
  box-shadow: 0 12px 34px rgba(18, 53, 41, .08);
}

.ol-p8-atlas .ol-p8-side-card,
.ol-p8-atlas .ol-p8-relation-card {
  border-radius: 14px;
}

/* Itinerary Timeline: sequential route rhythm */
.ol-p8-story-shell.ol-p8-timeline {
  background: linear-gradient(180deg, #fff8e9, #f2e4c6);
}

.ol-p8-timeline .ol-p8-story-hero {
  min-height: 560px;
}

.ol-p8-timeline .ol-p8-reader {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.ol-p8-timeline .ol-p8-article {
  position: relative;
  padding-left: clamp(1rem, 4vw, 4rem);
}

.ol-p8-timeline .ol-p8-article::before {
  left: clamp(1.2rem, 2vw, 2.2rem);
  width: 3px;
  background: linear-gradient(var(--ol-story-gold), rgba(198, 162, 74, 0));
}

.ol-p8-timeline .ol-p8-block {
  border-radius: 28px 28px 28px 10px;
}

.ol-p8-timeline .ol-p8-block::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 1.55rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ol-story-gold);
  box-shadow: 0 0 0 8px rgba(198, 162, 74, .18);
}

/* Conservation Impact: report dashboard */
.ol-p8-story-shell.ol-p8-impact {
  background: #f3fbef;
  border-radius: 18px;
}

.ol-p8-impact .ol-p8-story-hero {
  min-height: 500px;
}

.ol-p8-impact .ol-p8-hero-glow {
  background: linear-gradient(90deg, rgba(11, 45, 25, .92), rgba(11, 45, 25, .5)), radial-gradient(circle at 78% 20%, rgba(120, 184, 96, .35), transparent 34%);
}

.ol-p8-impact .ol-p8-reader {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.ol-p8-impact .ol-p8-article {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ol-p8-impact .ol-p8-block {
  border-radius: 14px;
  border-color: rgba(31, 58, 45, .18);
  background: #fbfff9;
}

.ol-p8-impact .ol-p8-block-media,
.ol-p8-impact .ol-p8-pull-quote,
.ol-p8-impact .ol-p8-cta {
  grid-column: 1 / -1;
}

.ol-p8-impact .ol-p8-impact-stat {
  background: #123529;
}

/* Luxury Editorial: refined magazine spread */
.ol-p8-story-shell.ol-p8-luxury {
  background: linear-gradient(180deg, #f8ecd4, #fffaf0);
  border: 1px solid rgba(198, 162, 74, .42);
}

.ol-p8-luxury .ol-p8-story-hero {
  width: calc(100% - clamp(1rem, 5vw, 5rem));
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  min-height: 660px;
  border-radius: clamp(1.4rem, 3vw, 3rem);
}

.ol-p8-luxury .ol-p8-hero-content h1 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 9vw, 8.5rem);
}

.ol-p8-luxury .ol-p8-reader {
  grid-template-columns: minmax(0, 760px) minmax(290px, 370px);
  justify-content: center;
}

.ol-p8-luxury .ol-p8-block {
  border-radius: 8px;
  background: rgba(255, 253, 246, .96);
}

.ol-p8-luxury .ol-p8-block h2 {
  color: #7b5a17;
}

/* Cinematic Field Notes: dark notebook */
.ol-p8-story-shell.ol-p8-field-notes {
  background: #0b1410;
  color: #f7ecd5;
  border-radius: 0;
}

.ol-p8-field-notes .ol-p8-story-hero {
  min-height: 680px;
  border-bottom: 1px solid rgba(198, 162, 74, .25);
}

.ol-p8-field-notes .ol-p8-hero-glow {
  background: linear-gradient(90deg, rgba(5, 12, 9, .95), rgba(5, 12, 9, .62)), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 28px);
}

.ol-p8-field-notes .ol-p8-reader {
  grid-template-columns: 1fr;
  width: min(1040px, 100%);
}

.ol-p8-field-notes .ol-p8-sidecar {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ol-p8-field-notes .ol-p8-block,
.ol-p8-field-notes .ol-p8-side-card {
  background: rgba(255, 248, 233, .08);
  border-color: rgba(198, 162, 74, .2);
  color: #f7ecd5;
}

.ol-p8-field-notes .ol-p8-block h2,
.ol-p8-field-notes .ol-p8-block h3,
.ol-p8-field-notes .ol-p8-block h4,
.ol-p8-field-notes .ol-p8-block p,
.ol-p8-field-notes .ol-p8-prose-list {
  color: #f7ecd5;
}

/* Media Mosaic: image-led asymmetric gallery */
.ol-p8-story-shell.ol-p8-mosaic {
  background: #fffdf7;
  border-radius: 0;
  box-shadow: none;
}

.ol-p8-mosaic .ol-p8-story-hero {
  min-height: 78vh;
}

.ol-p8-mosaic .ol-p8-reader {
  display: block;
  padding-inline: clamp(.75rem, 3vw, 2rem);
}

.ol-p8-mosaic .ol-p8-article {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.65rem, 1.6vw, 1.4rem);
}

.ol-p8-mosaic .ol-p8-block {
  grid-column: span 4;
  min-height: 260px;
  border-radius: 0;
  box-shadow: none;
  padding: 1rem;
}

.ol-p8-mosaic .ol-p8-block-media {
  grid-column: span 6;
  padding: 0;
}

.ol-p8-mosaic .ol-p8-block-media:nth-child(3n) {
  grid-column: span 8;
}

.ol-p8-mosaic .ol-p8-media img,
.ol-p8-mosaic .ol-p8-media video,
.ol-p8-mosaic .ol-p8-media iframe {
  min-height: clamp(360px, 58vw, 760px);
}

.ol-p8-mosaic .ol-p8-sidecar {
  position: relative;
  top: auto;
  margin-top: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Private Journey Recap: memory capsule */
.ol-p8-story-shell.ol-p8-recap {
  background: linear-gradient(180deg, #fff3db, #f8efe3);
}

.ol-p8-recap .ol-p8-story-hero {
  width: calc(100% - clamp(1rem, 4vw, 4rem));
  margin: clamp(1rem, 3vw, 2rem) auto;
  min-height: 590px;
  border-radius: 38px;
  transform: rotate(-.6deg);
}

.ol-p8-recap .ol-p8-reader {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.ol-p8-recap .ol-p8-block {
  border-style: dashed;
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
}

.ol-p8-recap .ol-p8-block:nth-child(2n) {
  transform: rotate(.4deg);
}

@media (max-width: 1199px) {
  .ol-p8-impact .ol-p8-article,
  .ol-p8-mosaic .ol-p8-article,
  .ol-p8-field-notes .ol-p8-sidecar,
  .ol-p8-mosaic .ol-p8-sidecar {
    grid-template-columns: 1fr;
  }

  .ol-p8-mosaic .ol-p8-block,
  .ol-p8-mosaic .ol-p8-block-media {
    grid-column: auto !important;
  }
}

@media (max-width: 767px) {
  .ol-story-public-canvas {
    width: 100%;
    padding-top: 0;
  }

  .ol-story-public-canvas .ol-p8-story-shell {
    border-radius: 0;
  }

  .ol-story-menu-button {
    width: 42px;
    height: 42px;
  }

  .ol-p8-luxury .ol-p8-story-hero,
  .ol-p8-recap .ol-p8-story-hero {
    width: 100%;
    margin: 0;
    border-radius: 0 0 28px 28px;
    transform: none;
  }

  .ol-p8-impact .ol-p8-article {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ol-story-sidebar,
  .ol-story-sidebar-overlay,
  .ol-p8-recap .ol-p8-story-hero,
  .ol-p8-recap .ol-p8-block:nth-child(2n) {
    transition: none !important;
    transform: none !important;
  }
}
