/* Text pages (PolicyPage.jsx): Cancellation & payment policy, House rules.
   Same look as the other light, solid-header pages (Food & Drinks, FAQ):
   sand masthead with the leaf-shadow texture, Rufina display title, navy
   body text. Everything is scoped under .policy-page / pl-. */

.policy-page {
  --pl-navy: #003764;
  --pl-navy-dark: #002542;
  --pl-sand: #F2F0E7;
  --pl-cream: #FAF9F2;
  --pl-line: rgba(0, 55, 100, .14);
  --pl-header-clear: 96px;
  --pl-chip-top: 96px; /* where the <1024px chip row sticks: under the header */
  width: 100%;
  overflow-x: clip;
  background: #FDFDFC;
  font-family: var(--font-body, 'Instrument Sans', system-ui, sans-serif);
  color: var(--pl-navy-dark);
}

/* ============ MASTHEAD ============ */

.pl-masthead {
  position: relative;
  overflow: hidden;
  background: var(--pl-sand);
  border-bottom: 1px solid var(--pl-line);
}

.pl-masthead__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.pl-masthead__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--pl-header-clear) + 64px) 48px 72px;
}

.pl-eyebrow { display: flex; align-items: center; gap: 20px; }
.pl-eyebrow__line { width: 64px; height: 1px; background: var(--pl-navy); }

.pl-eyebrow__text {
  font-family: var(--font-heading, 'Cronos Pro', Georgia, serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pl-navy);
}

/* Two ancestor classes so the theme's ".page--content h1" cannot shrink it. */
.policy-page .pl-masthead .pl-masthead__title {
  margin: 28px 0 0;
  max-width: 900px;
  font-family: var(--font-display, 'Rufina', serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--pl-navy-dark);
}

/* ============ BODY ============ */

.pl-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 48px 112px;
}

.pl-body--with-toc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.pl-main { max-width: 760px; min-width: 0; }

/* Section list */
.pl-toc {
  position: sticky;
  top: calc(var(--pl-header-clear) + 24px);
  max-height: calc(100vh - var(--pl-header-clear) - 48px);
  overflow-y: auto;
  padding-right: 8px;
}

.pl-toc__label,
.pl-more__label {
  display: block;
  font-family: var(--font-heading, 'Cronos Pro', Georgia, serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pl-navy);
}

.pl-toc ul { margin: 16px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--pl-line); }

.policy-page .pl-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(0, 37, 66, .7);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.policy-page .pl-toc a:hover,
.policy-page .pl-toc a[aria-current] { color: var(--pl-navy); border-left-color: var(--pl-navy); }

/* The page text from WordPress */
.pl-content { font-size: 16px; line-height: 1.75; color: rgba(0, 37, 66, .85); }
.pl-content > :first-child { margin-top: 0; }

.policy-page .pl-content h2 {
  margin: 48px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--pl-line);
  font-family: var(--font-display, 'Rufina', serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--pl-navy-dark);
  scroll-margin-top: calc(var(--pl-header-clear) + 16px);
}

.policy-page .pl-content h2:first-child { padding-top: 0; border-top: none; }

.policy-page .pl-content h3 {
  margin: 32px 0 8px;
  font-family: var(--font-body, 'Instrument Sans', sans-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--pl-navy-dark);
}

.pl-content p { margin: 0 0 16px; }
.pl-content strong { font-weight: 600; color: var(--pl-navy-dark); }

.pl-content ul,
.pl-content ol { margin: 0 0 20px; padding-left: 0; list-style: none; }

.pl-content li { position: relative; margin-bottom: 10px; padding-left: 22px; }

.pl-content ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B9A88D;
}

.pl-content ol { counter-reset: pl-ol; }
.pl-content ol > li { counter-increment: pl-ol; }
.pl-content ol > li::before {
  content: counter(pl-ol) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--pl-navy);
}

.policy-page .pl-content a { color: var(--pl-navy); text-decoration: underline; text-underline-offset: 3px; }
.policy-page .pl-content a:hover { opacity: .7; }

.pl-empty { margin: 0; font-size: 16px; color: rgba(0, 37, 66, .7); }

/* Links to the other text pages */
.pl-more { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--pl-line); }
.pl-more__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 16px; }

.policy-page .pl-more__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pl-navy);
  text-decoration: none;
}

.policy-page .pl-more__link:hover { opacity: .65; }

/* ============ RESPONSIVE ============ */

/* Below 1024px there is no room for a side column: the list becomes a row of
   chips that sticks under the header while the text scrolls (same as the
   /faq topic chips). Headings land below the header + chip row. */
@media (max-width: 1023px) {
  .pl-body--with-toc { display: block; }

  .pl-toc {
    top: var(--pl-chip-top);
    z-index: 2;
    max-height: none;
    overflow: visible;
    margin: 0 -48px 40px;
    padding: 12px 48px;
    background: #FDFDFC;
    border-bottom: 1px solid var(--pl-line);
  }

  /* Visually hidden: the chips speak for themselves; the nav keeps its label. */
  .pl-toc__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .pl-toc ul {
    display: flex;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    border-left: none;
    scrollbar-width: none;
  }

  .pl-toc ul::-webkit-scrollbar { display: none; }

  .policy-page .pl-toc a {
    margin: 0;
    padding: 8px 16px;
    border: 1px solid rgba(0, 37, 66, .2);
    border-radius: 999px;
    white-space: nowrap;
    line-height: 20px;
  }

  .policy-page .pl-toc a:hover { border-color: var(--pl-navy); }

  .policy-page .pl-toc a[aria-current] {
    border-color: var(--pl-navy);
    background: var(--pl-navy);
    color: #FFFFFF;
  }

  /* Header + chip row (12 + 38 + 12 + 1). */
  .policy-page .pl-content h2 { scroll-margin-top: calc(var(--pl-chip-top) + 79px); }
}

@media (max-width: 768px) {
  /* MobileHeader.css: 60px bar. */
  .policy-page { --pl-chip-top: 64px; }

  /* Phones: no "On this page" list, the text runs straight on. Headings
     only need to clear the header now. */
  .policy-page .pl-toc { display: none; }
  .policy-page .pl-content h2 { scroll-margin-top: calc(var(--pl-chip-top) + 16px); }
}

@media (max-width: 767px) {
  .pl-toc { margin: 0 -24px 32px; padding: 12px 24px; }
  .pl-masthead__inner { padding: calc(var(--pl-header-clear) + 32px) 24px 48px; }
  .pl-eyebrow__line { width: 40px; }
  .pl-body { padding: 48px 24px 80px; }
  .policy-page .pl-content h2 { margin-top: 36px; padding-top: 24px; font-size: 24px; }
}

/* A single section shown alone in the block editor's preview. */
.pl-body--preview { padding-top: 32px; padding-bottom: 32px; }
