/*
Theme Name: 33clearwaterbay
Theme URI: https://33clearwaterbay.com.hk
Description: 33 Clear Water Bay — phase 1 landing (header + KV).
Version: 1.0.0
Text Domain: 33clearwaterbay
*/

:root {
  --text: #482010;
  --gold: #a69164;
  --gold-bar-top: 204, 189, 160;
  --gold-bar-bottom: 128, 104, 58;
  --cwb-header-h: 0px;
  --gold-bar-height: clamp(110px, 14vh, 168px);
  --key-overlap: 8%;
  --cta-offset: calc(var(--gold-bar-height) / 2);
  --booking-btn-right: 48px;
  /* Size pills by height so EN/TC/SC widths can differ freely. */
  --cta-btn-height: clamp(40px, 5.2vw, 52px);
  --booking-btn-height: var(--cta-btn-height);
  --learn-more-gap: 12px;
  --learn-more-width: min(110px, 14vw);
  --learn-more-bottom: calc(var(--cta-offset) + var(--booking-btn-height) / 2 + var(--learn-more-gap));
  /* Align learn-more to the booking button’s right edge. */
  --learn-more-right: calc(
    var(--booking-btn-right)
    - (var(--learn-more-width) * 36 / 196)
  );
  --gold-bar-gradient: linear-gradient(
    180deg,
    rgba(var(--gold-bar-top), 0.92) 0%,
    rgb(var(--gold-bar-bottom)) 100%
  );
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  max-height: 100vh;
  font-family: "Noto Sans TC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: #1a3050;
  color: var(--text);
  overflow: hidden;
}

body {
  min-height: 100vh;
  max-height: 100vh;
}

.grecaptcha-badge { visibility: hidden; }

.page {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #1a3050;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

/* Desktop KV background: fixed 2135px wide, centered */
.bg-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2135px;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* Building + logo object: centered, max 1080px tall */
.key-object {
  position: absolute;
  left: var(--key-object-left, 48%);
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
  max-height: 1080px;
  aspect-ratio: 819 / 808;
  pointer-events: none;
  z-index: 3;
}

.key-object__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.key-object__building {
  position: absolute;
  inset: 0;
}

.key-object__building-base {
  opacity: 1;
  z-index: 0;
}

.key-object__building-layer {
  opacity: 0;
  z-index: 1;
  will-change: opacity;
}

.key-object__building-layer.is-active {
  opacity: 1;
  z-index: 2;
}

.key-object__logo {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.key-object__logo-layer {
  opacity: 0;
  z-index: 0;
  will-change: opacity;
}

.key-object__logo-layer.is-active {
  opacity: 1;
  z-index: 1;
}

.key-object__label {
  z-index: 3;
}

.key-anim {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.key-anim__stick {
  pointer-events: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  padding: 14px 8px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: #967857;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.key-anim__stick {
  display: none !important;
}

.key-anim__box {
  pointer-events: auto;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: min(320px, calc(100vw - 48px));
  max-height: min(86vh, 760px);
  overflow: auto;
  margin-right: 8px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.94);
  color: #f7f3eb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.key-anim__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.key-anim__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.key-anim__close {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.key-anim__form {
  display: grid;
  gap: 8px;
}

.key-anim__row {
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.key-anim__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.key-anim__value {
  font-variant-numeric: tabular-nums;
  color: #e5d4b5;
}

.key-anim__row input[type="range"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  accent-color: #e5d4b5;
  cursor: pointer;
}

.key-anim__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.key-anim__btn {
  flex: 1;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: #e5d4b5;
  color: #3d2e1e;
  cursor: pointer;
  font-size: 12px;
}

.key-anim__btn--ghost {
  background: transparent;
  color: #e5d4b5;
  border: 1px solid rgba(229, 212, 181, 0.45);
}

@media (max-width: 1024px) {
  .key-anim {
    display: none;
  }
}

.gold-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: calc(var(--gold-bar-height) + var(--gold-bar-lift, 0px));
  background: var(--gold-bar-gradient);
  pointer-events: none;
}

.kv-section-title {
  display: none;
}

.kv-note {
  display: none;
}

@media (min-width: 1025px) {
  .kv-note {
    display: block;
    position: absolute;
    z-index: 4;
    bottom: calc(var(--gold-bar-height) + 9px);
    margin: 0;
    color: #fff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.7;
  }

  /* Desktop: notes sit on the key-object (same as static), not the full page */
  .kv-note--building {
    left: 13.5%;
  }

  .kv-note--stock {
    right: 13%;
  }

  .kv-note--left,
  .kv-note--right {
    display: none;
  }

  .kv-note sup {
    font-size: 0.72em;
    line-height: 0;
    margin-left: 1px;
  }
}

.cta-btn {
  position: fixed;
  z-index: 30;
  left: 48px;
  bottom: var(--cta-offset);
  transform: translateY(50%);
  display: block;
  width: auto;
  height: var(--cta-btn-height);
  line-height: 0;
  pointer-events: auto;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(50%) scale(1.04);
  outline: none;
}

.cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 999px;
}

.cta-btn img {
  display: block;
  width: auto;
  height: 100%;
}

/* Sticky booking CTA — mirrors disclaimer button on the right */
.booking-btn {
  position: fixed;
  z-index: 30;
  right: var(--booking-btn-right);
  bottom: var(--cta-offset);
  transform: translateY(50%);
  display: block;
  width: auto;
  height: var(--booking-btn-height);
  line-height: 0;
  pointer-events: auto;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.booking-btn:hover,
.booking-btn:focus-visible {
  transform: translateY(50%) scale(1.04);
  outline: none;
}

.booking-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 999px;
}

.booking-btn img {
  display: block;
  width: auto;
  height: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 24px;
  min-height: 56px;
  pointer-events: none;
  overflow: visible;
  box-sizing: border-box;
}

/* Gold menu veil — paints below header without changing its layout height. */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  z-index: 0;
  pointer-events: none;
  background: #e5d4b5;
  background: linear-gradient(
    0deg,
    rgba(229, 212, 181, 1) 0%,
    rgba(200, 175, 140, 1) 100%
  );
  opacity: 0;
  transition: height 200ms ease, opacity 160ms ease;
}

.header.is-expanded-residential::after,
.header.is-expanded-sales::after,
.header.is-expanded-lang::after,
.header:has(li.has-dropdown.is-open)::after,
.header:has(.lang.is-open)::after {
  height: var(--header-menu-pad, 0px);
  opacity: 1;
}

/* Desktop: dropdown items float over the page — no full-width gold veil. */
@media (min-width: 1025px) {
  .header::after,
  .header.is-expanded-residential::after,
  .header.is-expanded-sales::after,
  .header.is-expanded-lang::after,
  .header:has(li.has-dropdown.is-open)::after,
  .header:has(.lang.is-open)::after {
    display: none;
  }
}

.header.is-expanded-residential,
.header.is-expanded-sales,
.header.is-expanded-lang {
  padding-bottom: calc(var(--header-menu-pad, 0px) + 28px);
}

.header > * {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.header__logo {
  display: none;
  position: absolute;
  left: 24px;
  top: 10px;
  margin-right: 0;
  line-height: 0;
  z-index: 1;
}

.header__logo img {
  display: block;
  height: 40px;
  width: auto;
  transform-origin: left top;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1025px) {
  .header.is-logo-large .header__logo,
  body.is-chapter-header .header__logo {
    display: block;
  }

  body.is-explore-header .header__logo {
    display: none;
  }

  .header.is-logo-large .header__logo img,
  body.is-chapter-header .header__logo img {
    height: 216px; /* 72px × 300% */
  }
}

.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 36px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* TC / SC labels are denser — more space between text items only (icons unchanged). */
body.cwb-lang-tc .site-nav__list,
body.cwb-lang-sc .site-nav__list {
  gap: 40px;
}

.site-nav__item {
  position: relative;
  text-align: center;
}

.site-nav__link {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0 0 6px;
  margin: 0;
  color: #fff;
  font-family: "Noto Sans TC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  border-bottom: 1px solid transparent;
}

.site-nav__item:hover > .site-nav__link,
.site-nav__item.is-open > .site-nav__link,
.site-nav__link:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 4px;
  list-style: none;
  min-width: max-content;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease 80ms, visibility 160ms ease 80ms;
}

/* Invisible hover bridge so cursor can reach the dropdown */
.site-nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 20px;
}

/* Touch browsers keep :hover sticky after tap — only open via .is-open there. */
.site-nav__item.has-dropdown.is-open > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav__item.has-dropdown:hover > .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

.site-nav__dropdown a {
  color: #fff;
  font-family: "Noto Sans TC", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__dropdown a:hover,
.site-nav__dropdown a:focus-visible {
  opacity: 0.88;
  outline: none;
}

.lang {
  position: relative;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 5;
  padding-top: 0;
  min-height: 36px;
}

.lang-toggle {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  width: 36px;
  height: 36px;
}

.lang-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 50%;
}

.lang-toggle img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.site-bgm {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.sound-toggle {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  line-height: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.sound-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 50%;
}

.sound-toggle__icon {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 3;
}

.lang.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 160ms ease, opacity 160ms ease;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.lang-menu a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lang-menu img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  /*
    Mobile layout: gold header bar + taller bottom bar.
    Bar height follows width, so stretching the window taller
    does not grow the bar or lift the building off it.
  */
  :root {
    --cwb-header-h: 48px;
    /* JS pins --cwb-vvh to the live visible height (Chrome-safe). */
    --cwb-vvh: 100svh;
    --gold-bar-height: calc(var(--cwb-vvh) * 0.32); /* ~20% shorter than original 40% */
    --gold-bar-lift: 0px;
    --cta-offset: calc(var(--gold-bar-height) / 2);
    --booking-btn-right: 24px;
    --cta-btn-height: 44px;
    --booking-btn-height: var(--cta-btn-height);
    --learn-more-width: min(88px, 22vw);
    --learn-more-bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--booking-btn-height) + var(--learn-more-gap));
    /* Lifts the mobile KV so the tagline and disclaimer button stay on screen. */
    --mobile-kv-shift: calc(clamp(80px, 12vh, 120px) + env(safe-area-inset-bottom, 0px) - 15vh);
  }

  html,
  body,
  .page {
    height: 100%;
    height: var(--cwb-vvh);
    max-height: var(--cwb-vvh);
  }

  /* Match fullPage’s mobile height; avoid 100vh (taller than visible chrome). */
  .section--kv,
  .section--video,
  .section--explore,
  .section--chapter,
  .section--news {
    min-height: var(--cwb-vvh);
  }

  .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    left: 0;
    top: calc(-1 * var(--mobile-kv-shift));
  }

  /* Home KV: desktop background + key-object animation. */
  .section--kv .bg-image {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2135px;
    max-width: none;
    height: auto;
    object-fit: unset;
    object-position: unset;
  }

  .section--kv {
    --gold-bar-height: calc(var(--cwb-vvh) * 0.32); /* ~20% shorter than original 40% */
    --gold-bar-lift: 0px;
    --kv-key-overlap: 0.2;
    --kv-title-gap: 8px;
    --kv-btn-reserve: calc(18px + env(safe-area-inset-bottom, 0px) + 56px);
  }

  .key-object,
  .gold-bar {
    display: none;
  }

  .section--kv .key-object,
  .section--kv .gold-bar {
    display: block;
  }

  /*
    Mobile home compose:
    - key-object scales down to stay fully visible (no crop)
    - bottom 20% of building overlaps the gold bar
    - title sits under the building, on top of the gold bar
  */
  .section--kv .key-object {
    left: 50%;
    top: auto;
    bottom: var(--gold-bar-height);
    transform: translate(-50%, calc(var(--kv-key-overlap) * 100%));
    /* Absolute children don't size the box — use a definite height. */
    width: auto;
    height: min(
      calc(
        (var(--cwb-vvh) - var(--cwb-header-h) - var(--gold-bar-height)) /
          (1 - var(--kv-key-overlap))
      ),
      calc(min(calc(100% + 130px), 112vw) * 808 / 819)
    );
    max-width: min(calc(100% + 130px), 112vw);
    max-height: calc(
      (var(--cwb-vvh) - var(--cwb-header-h) - var(--gold-bar-height)) /
        (1 - var(--kv-key-overlap))
    );
    aspect-ratio: 819 / 808;
    opacity: 1;
    z-index: 4;
  }

  .section--kv .gold-bar {
    z-index: 2;
  }

  .section--kv .kv-note {
    display: block;
    position: absolute;
    z-index: 4;
    bottom: calc(var(--gold-bar-height) + 6px);
    margin: 0;
    color: #fff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.7;
  }

  .section--kv .kv-note--building,
  .section--kv .kv-note--stock {
    display: none;
  }

  .section--kv .kv-note--left {
    left: 14px;
  }

  .section--kv .kv-note--right {
    right: 14px;
  }

  .section--kv .kv-note sup {
    font-size: 0.72em;
    line-height: 0;
    margin-left: 1px;
  }

  .section--kv .kv-section-title {
    display: block;
    position: absolute;
    left: 50%;
    bottom: var(--kv-btn-reserve);
    transform: translateX(-50%);
    z-index: 3;
    width: min(78vw, 250px);
    max-width: 250px;
    margin-top: 10px;
    max-height: calc(
      var(--gold-bar-height) * (1 - var(--kv-key-overlap)) - var(--kv-btn-reserve) -
        var(--kv-title-gap)
    );
    height: auto;
    object-fit: contain;
    pointer-events: none;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    min-height: 48px;
    background: #e5d4b5;
    background: linear-gradient(
      0deg,
      rgba(229, 212, 181, 1) 0%,
      rgba(150, 120, 87, 1) 100%
    );
  }

  body.is-panel-header .header,
  body.is-explore-header .header,
  body.is-chapter-header .header,
  body.is-news-header .header,
  body.cwb-docs-page .header,
  .header.is-bar {
    background: #e5d4b5;
    background: linear-gradient(
      0deg,
      rgba(229, 212, 181, 1) 0%,
      rgba(150, 120, 87, 1) 100%
    );
  }

  .header__logo {
    display: none !important;
  }

  .site-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .site-nav__list {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
  }

  body.cwb-lang-tc .site-nav__list,
  body.cwb-lang-sc .site-nav__list {
    gap: 14px;
  }

  .site-nav__link {
    font-size: 11px;
    letter-spacing: 0.02em;
    padding-top: 0;
    padding-bottom: 1px;
    line-height: 1.2;
  }

  .site-nav__dropdown a {
    font-size: 11px;
  }

  .header-actions {
    gap: 6px;
    min-height: 0;
    align-items: flex-start;
  }

  .page {
    background: #7c6336;
  }

  .cta-btn {
    left: 24px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    height: var(--cta-btn-height);
  }

  .cta-btn:hover,
  .cta-btn:focus-visible {
    transform: scale(1.04);
  }

  .cta-btn:focus,
  .cta-btn:focus-visible,
  .cta-btn:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .booking-btn {
    right: var(--booking-btn-right);
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    height: var(--booking-btn-height);
  }

  .booking-btn:hover,
  .booking-btn:focus-visible {
    transform: scale(1.04);
  }

  .booking-btn:focus,
  .booking-btn:focus-visible,
  .booking-btn:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .lang-toggle,
  .lang-menu a,
  .sound-toggle {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --booking-btn-right: 16px;
    --cta-btn-height: 42px;
    --booking-btn-height: var(--cta-btn-height);
  }

  .header {
    gap: 6px;
    padding: 8px 10px;
    min-height: 44px;
    align-items: center;
  }

  .site-nav__list {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }

  body.cwb-lang-tc .site-nav__list,
  body.cwb-lang-sc .site-nav__list {
    gap: 12px;
  }

  .site-nav__link {
    font-size: 10px;
    letter-spacing: 0;
  }

  .site-nav__dropdown a {
    font-size: 10px;
  }

  .header-actions {
    gap: 4px;
  }

  .lang-toggle,
  .lang-menu a,
  .sound-toggle {
    width: 22px;
    height: 22px;
  }

  .cta-btn {
    left: 16px;
    width: auto;
    height: var(--cta-btn-height);
  }

  .booking-btn {
    right: var(--booking-btn-right);
    width: auto;
    height: var(--booking-btn-height);
  }
}

@media (max-width: 576px) {
  .section--kv .key-object {
    max-width: calc(100% + 130px);
  }
}

/* Disclaimer popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: rgba(20, 16, 12, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
  overflow: visible;
}

.popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup--warning {
  z-index: 110;
}

.popup--warning .popup__dialog {
  width: min(640px, 100%);
  min-width: min(640px, 100%);
  max-height: min(80vh, 640px);
}

.popup__dialog {
  position: relative;
  width: min(800px, 100%);
  min-width: min(800px, 100%);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  background-color: #f8f5f0;
  background-image: url("assets/images/popupbg.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  border: 0;
  box-shadow: 0 18px 48px rgba(40, 24, 12, 0.35);
  padding: 48px 52px 40px;
  overflow: visible;
}

.popup__corner {
  position: absolute;
  width: min(88px, 10vw);
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.popup__corner--tl {
  top: -22px;
  left: -24px;
}

.popup__corner--br {
  right: -24px;
  bottom: -22px;
  transform: rotate(180deg);
}

.popup__corner--bl {
  left: -24px;
  bottom: -22px;
  transform: scaleY(-1);
}

.popup__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #5c4033;
  color: #fff;
  cursor: pointer;
  appearance: none;
  display: grid;
  place-items: center;
  padding: 0;
}

.popup__close:focus-visible {
  outline: 2px solid #5c4033;
  outline-offset: 3px;
}

.popup__close-icon {
  display: block;
  width: 12px;
  height: 12px;
}

.popup__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: #5c4033;
  font-family: "Noto Sans TC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #5c4033 #efe8df;
}

.popup__body::-webkit-scrollbar {
  width: 8px;
}

.popup__body::-webkit-scrollbar-track {
  background: #efe8df;
  border-radius: 999px;
}

.popup__body::-webkit-scrollbar-thumb {
  background: #5c4033;
  border-radius: 999px;
}

.popup__body h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.popup__body p {
  margin: 0 0 14px;
}

.popup__body a {
  color: inherit;
  text-underline-offset: 2px;
}

.popup__body p:last-child {
  margin-bottom: 0;
}

.popup__meta {
  margin-top: 18px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .popup {
    padding: 16px;
  }

  .popup__dialog {
    padding: 40px 28px 28px;
    max-height: 88vh;
  }

  .popup__body {
    font-size: 13px;
  }

  .popup__corner {
    width: min(64px, 18vw);
  }
}

/* Booking popup form */
.booking-popup__dialog {
  width: min(720px, 100%);
  min-width: 0;
  max-height: min(92vh, 900px);
  border: 1px solid #5c4033;
  overflow: hidden;
  padding: 56px 56px 40px;
}

.booking-popup__dialog .popup__corner {
  width: min(72px, 14vw);
}

.booking-popup__dialog .popup__corner--tl {
  top: 14px;
  left: 14px;
}

.booking-popup__dialog .popup__corner--br {
  right: 14px;
  bottom: 14px;
}

.booking-popup__dialog .popup__corner--bl {
  left: 14px;
  bottom: 14px;
}

.booking-popup__dialog .popup__close {
  top: 16px;
  right: 16px;
}

.booking-popup__body {
  overflow-y: auto;
  max-height: calc(min(92vh, 900px) - 96px);
  padding-right: 4px;
}

.booking-popup__header {
  text-align: center;
  margin-bottom: 36px;
}

.booking-popup__title {
  display: block;
  width: min(300px, 92%);
  max-width: 300px;
  height: auto;
  margin: 0 auto 8px;
}

.booking-popup__venue {
  margin: 0;
  color: #5c4033;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.cwb-booking-form {
  width: min(520px, 100%);
  margin: 0 auto;
}

.booking-popup .wpcf7 {
  margin: 0;
}

.booking-popup .wpcf7-form {
  margin: 0;
}

.booking-popup .wpcf7-spinner {
  position: absolute;
}

.booking-popup .wpcf7-response-output {
  margin: 12px 0 0;
  border-radius: 8px;
  font-size: 13px;
  white-space: normal;
}

.booking-popup .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  word-spacing: normal;
  white-space: normal;
}

.cwb-booking-form__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  margin: 0 0 12px;
}

.cwb-booking-form__label {
  min-width: 0;
  text-align: left;
  color: #5c4033;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cwb-booking-form__row > .wpcf7-form-control-wrap,
.cwb-booking-form__row > .cwb-booking-form__phone {
  min-width: 0;
  width: 100%;
}

.cwb-booking-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
  width: 100%;
}

.cwb-booking-form__row .wpcf7-not-valid-tip {
  grid-column: 2;
  margin-top: 4px;
}

.cwb-booking-form__input,
.cwb-booking-form__code,
.cwb-booking-form input.wpcf7-form-control,
.cwb-booking-form select.wpcf7-form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 40px;
  border: 1px solid #5c4033;
  border-radius: 999px;
  background: #fbf7f0;
  color: #5c4033;
  font-family: inherit;
  font-size: 14px;
  padding: 0 16px;
  outline: none;
}

.cwb-booking-form input.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
}

.cwb-booking-form select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-color: #fbf7f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M1.5 1.5L8 8.5L14.5 1.5' stroke='%235c4033' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 10px;
}

.cwb-booking-form__input:focus,
.cwb-booking-form__code:focus,
.cwb-booking-form input.wpcf7-form-control:focus,
.cwb-booking-form select.wpcf7-form-control:focus {
  border-color: #3d2a20;
  box-shadow: 0 0 0 2px rgba(92, 64, 51, 0.12);
}

.cwb-booking-form__phone {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  width: 100%;
  align-items: center;
}

.cwb-booking-form__phone > .wpcf7-form-control-wrap {
  min-width: 0;
  width: 100%;
}

.cwb-booking-form__phone .wpcf7-not-valid-tip {
  grid-column: 1 / -1;
}

.cwb-booking-form__row--datetime {
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  align-items: start;
}

.cwb-booking-form__datetime {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.cwb-booking-form__datetime .cwb-booking-form__label {
  text-align: left;
}

.cwb-booking-form__datetime .wpcf7-form-control-wrap {
  min-width: 0;
  width: 100%;
}

.cwb-booking-form__datetime .wpcf7-not-valid-tip {
  grid-column: 1 / -1;
}

.cwb-booking-form__note {
  margin: 4px 0 16px;
  padding-left: 0;
  color: #5c4033;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

.cwb-booking-form__actions {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}

.cwb-booking-form__submit,
.cwb-booking-form input.wpcf7-submit {
  display: block;
  width: 150px;
  max-width: min(150px, 70vw);
  height: 59px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("assets/images/submit_button.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

body.cwb-lang-sc .cwb-booking-form__submit,
body.cwb-lang-sc .cwb-booking-form input.wpcf7-submit {
  background-image: url("assets/images/submit_button_sc.png");
}

body.cwb-lang-en .cwb-booking-form__submit,
body.cwb-lang-en .cwb-booking-form input.wpcf7-submit {
  background-image: url("assets/images/submit_button_en.svg");
}

.cwb-booking-form__submit:hover,
.cwb-booking-form input.wpcf7-submit:hover {
  transform: scale(1.04);
  box-shadow: none;
}

.cwb-booking-form__enquiry {
  margin: 0;
  text-align: center;
  color: #5c4033;
  font-size: 13px;
  font-weight: 500;
}

.cwb-booking-form__tel {
  color: inherit;
  text-decoration: none;
}

.cwb-booking-form__tel:hover,
.cwb-booking-form__tel:focus {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .booking-popup__dialog {
    padding: 48px 24px 24px;
  }

  .cwb-booking-form__row {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
  }

  .cwb-booking-form__row--datetime {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .cwb-booking-form__phone {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

/* Fullpage + video section */
#fullpage {
  height: 100%;
}

.section--kv,
.section--video {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.section--kv .page--kv {
  position: absolute;
  inset: 0;
  height: auto !important;
  max-height: none !important;
  width: 100%;
}

.section--explore {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #1a3050;
}

.section--explore .page--explore {
  position: absolute;
  inset: 0;
  height: auto !important;
  max-height: none !important;
  width: 100%;
  overflow: hidden;
}

.section--explore .fp-overflow {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.explore-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.explore-stage {
  position: absolute;
  left: 50%;
  top: clamp(56px, 9vh, 92px);
  bottom: 0;
  transform: translateX(-50%);
  height: calc(100% - clamp(56px, 9vh, 92px));
  aspect-ratio: 857 / 993;
  max-width: 100%;
  z-index: 3;
}

.explore-stage > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.explore-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.explore-menu {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.explore-item {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.explore-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.explore-item__title--hover {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.explore-item__arrow {
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.explore-item__hit {
  position: absolute;
  left: 20%;
  width: 54%;
  pointer-events: auto;
  cursor: pointer;
}

.explore-item[data-item="1"] .explore-item__hit {
  top: 11.5%;
  height: 9%;
}

.explore-item[data-item="2"] .explore-item__hit {
  top: 20.8%;
  height: 9%;
}

.explore-item[data-item="3"] .explore-item__hit {
  top: 30%;
  height: 9%;
}

.explore-item[data-item="4"] .explore-item__hit {
  top: 39.4%;
  height: 9%;
}

.explore-item[data-item="5"] .explore-item__hit {
  top: 48.6%;
  height: 9.4%;
}

.explore-item:hover .explore-item__title--hover,
.explore-item:focus-visible .explore-item__title--hover,
.explore-item:focus-within .explore-item__title--hover {
  opacity: 1;
}

.explore-item:hover .explore-item__arrow,
.explore-item:focus-visible .explore-item__arrow,
.explore-item:focus-within .explore-item__arrow {
  animation: explore-arrow-nudge 0.85s ease-in-out infinite;
}

.explore-item:focus-visible {
  outline: none;
}

.explore-item:focus-visible .explore-item__hit {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

@keyframes explore-arrow-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .explore-item:hover .explore-item__arrow,
  .explore-item:focus-visible .explore-item__arrow,
  .explore-item:focus-within .explore-item__arrow {
    animation: none;
    transform: translateY(4px);
  }
}

.section--explore .gold-bar {
  display: block;
  z-index: 2;
}

.section--explore .kv-note {
  z-index: 4;
}

@media (max-width: 1024px) {
  body.is-explore-header .header {
    background: #e5d4b5;
    background: linear-gradient(
      0deg,
      rgba(229, 212, 181, 1) 0%,
      rgba(150, 120, 87, 1) 100%
    );
  }

  body.is-explore-header .header__logo {
    display: none;
  }

  .section--explore .bg-image {
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /*
    Mobile explore compose — same safety-zone treatment as home KV:
    - gold bar lower than home (~20% of viewport; home stays 40%)
    - main object (circle + towers) stays centered
    - bottom overlaps the gold bar
    - menu overlays stay locked to the circle artboard
  */
  .section--explore {
    --gold-bar-height: calc(var(--cwb-vvh) * 0.2);
    /* Overlap into gold bar; lower = object sits higher (~5% up from 0.18). */
    --explore-key-overlap: 0.13;
    /* Transparent padding in circle-bg-mobile.png (content bbox). */
    --explore-img-w: 2166;
    --explore-img-h: 1846;
    --explore-content-w: 907;
    --explore-content-h: 1570;
    /* Desktop menu SVG artboard (858 × 994). */
    --explore-menu-w: 858;
    --explore-menu-h: 994;
  }

  .section--explore .kv-note {
    display: block;
    position: absolute;
    z-index: 4;
    bottom: calc(var(--gold-bar-height) + 6px);
    margin: 0;
    color: #fff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.7;
  }

  .section--explore .kv-note--left {
    left: 14px;
  }

  .section--explore .kv-note--right {
    right: 14px;
  }

  .section--explore .kv-note sup {
    font-size: 0.72em;
    line-height: 0;
    margin-left: 1px;
  }

  .section--explore .explore-stage {
    top: auto;
    left: 50%;
    bottom: var(--gold-bar-height);
    transform: translate(-50%, calc(var(--explore-key-overlap) * 100%));
    width: auto;
    height: min(
      calc(
        (var(--cwb-vvh) - var(--cwb-header-h) - var(--gold-bar-height)) /
          (1 - var(--explore-key-overlap))
      ),
      calc(min(92vw, 420px) * var(--explore-content-h) / var(--explore-content-w))
    );
    max-width: min(92vw, 420px);
    max-height: calc(
      (var(--cwb-vvh) - var(--cwb-header-h) - var(--gold-bar-height)) /
        (1 - var(--explore-key-overlap))
    );
    aspect-ratio: 907 / 1570;
  }

  .section--explore .explore-stage > picture {
    overflow: hidden;
  }

  /* Zoom the asset so its opaque content fills the safety-zone box. */
  .section--explore .explore-circle {
    inset: auto;
    left: 50%;
    top: 0;
    width: calc(100% * var(--explore-img-w) / var(--explore-content-w));
    height: calc(100% * var(--explore-img-h) / var(--explore-content-h));
    transform: translateX(-50%);
    object-fit: fill;
    object-position: center top;
  }

  /*
    Menu SVGs share the desktop circle artboard — size that frame to the
    circle width so titles stay inside the golden circle.
    Keep full size; nudge down to optically center above the towers.
  */
  .section--explore .explore-menu {
    inset: auto;
    left: 0;
    right: 0;
    top: 5%;
    height: calc(
      100% * (var(--explore-menu-h) / var(--explore-menu-w)) *
        (var(--explore-content-w) / var(--explore-content-h))
    );
    transform: none;
  }

  .section--explore .explore-item img {
    object-fit: contain;
    object-position: center top;
  }

  .section--explore .explore-item__title--hover {
    opacity: 1;
  }
}

.section--kv .fp-overflow,
.section--video .fp-overflow {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.section--video {
  background: linear-gradient(180deg, #f7f3eb 0%, #efe8da 55%, #f8f5ee 100%);
}

.section--video .video-section {
  position: absolute;
  inset: 0;
}

.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 22px);
  height: 100%;
  min-height: 0;
  padding: clamp(56px, 7vh, 100px) 24px clamp(72px, 9vh, 120px);
  box-sizing: border-box;
  overflow: hidden;
}

.cwb-lang-en .video-section__tag {
  width: min(450px, 52vw);
}

.video-section__tag {
  display: block;
  width: min(240px, 52vw);
  height: auto;
  margin: 0 auto;
  flex-shrink: 0;
}

.video-section__stage {
  position: relative;
  --video-stage-pad: clamp(12px, 1.6vw, 28px);
  --video-tag-h: calc(min(240px, 52vw) * 78.81 / 370.5);
  --video-inner-h: calc(
    100dvh
    - clamp(56px, 7vh, 100px)
    - clamp(72px, 9vh, 120px)
    - var(--video-tag-h)
    - clamp(8px, 1.6vh, 22px)
    - 2 * var(--video-stage-pad)
  );
  width: min(1150px, 66vw, calc(var(--video-inner-h) * 16 / 9 + 2 * var(--video-stage-pad)));
  max-width: 100%;
  margin: 0 auto;
  padding: var(--video-stage-pad);
  flex: 0 1 auto;
  min-height: 0;
}

.video-section__corner {
  position: absolute;
  width: min(80px, 7.5vw);
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.video-section__corner--tl {
  top: 0;
  left: 0;
}

.video-section__corner--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.video-section__corner--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.video-section__corner--br {
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

.video-player {
  position: relative;
  z-index: 1;
  width: 100%;
}

.video-player__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #5a5a5a;
  overflow: hidden;
}

.video-player__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.video-player__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.video-player__play img {
  display: block;
  width: min(72px, 12vw);
  height: auto;
  transition: transform 180ms ease;
}

.video-player__play:hover img,
.video-player__play:focus-visible img {
  transform: scale(1.06);
}

.video-player__play:focus-visible {
  outline: none;
}

.video-player.is-playing .video-player__play {
  display: none;
}

.video-player__embed {
  position: absolute;
  inset: 0;
}

.video-player__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video / later sections: gold bar + logo (menu position matches all sections) */
body.is-panel-header .header,
.header.is-bar {
  background: #e5d4b5;
  background: linear-gradient(
    0deg,
    rgba(229, 212, 181, 1) 0%,
    rgba(150, 120, 87, 1) 100%
  );
  overflow: visible;
}

body.is-panel-header .header__logo,
.header.is-bar .header__logo {
  display: block;
}

body.is-panel-header .header__logo img,
.header.is-bar .header__logo img {
  height: 40px;
}

@media (min-width: 1025px) {
  body.is-explore-header .header,
  body.is-chapter-header .header {
    background: transparent;
  }

  body.is-chapter-header .header__logo {
    display: block;
  }

  /* Section 2 (video) + explore: no header logo on desktop */
  body.is-panel-header:not(.cwb-docs-page) .header__logo,
  body:not(.cwb-docs-page) .header.is-bar .header__logo,
  body.is-explore-header .header__logo {
    display: none;
  }
}

/* Menu expand uses .header::after veil — do not grow header layout height. */

@media (max-width: 767px) {
  .video-section {
    padding: calc(var(--cwb-header-h) + 12px) 16px 96px;
    gap: 12px;
  }

  .video-section__tag {
    width: min(220px, 70vw);
  }

  .video-section__stage {
    --video-stage-pad: 12px;
    --video-tag-h: calc(min(220px, 70vw) * 78.81 / 370.5);
    --video-inner-h: calc(
      100svh - var(--cwb-header-h) - 12px - 96px - var(--video-tag-h) - 12px - 2 * var(--video-stage-pad)
    );
    width: min(100%, 92vw, calc(var(--video-inner-h) * 16 / 9 + 2 * var(--video-stage-pad)));
    padding: var(--video-stage-pad);
  }

  .video-section__corner {
    width: min(48px, 14vw);
  }

  .video-player__play img {
    width: min(64px, 18vw);
  }

  body.is-panel-header .header__logo img,
  .header.is-bar .header__logo img {
    height: 22px;
  }

  body.is-explore-header .header__logo img {
    height: 40px;
  }

  body.is-explore-header .header,
  body.is-chapter-header .header {
    background: #e5d4b5;
    background: linear-gradient(
      0deg,
      rgba(229, 212, 181, 1) 0%,
      rgba(150, 120, 87, 1) 100%
    );
  }

  body.is-explore-header .header__logo,
  body.is-chapter-header .header__logo {
    display: none;
  }
}

/* Chapter sections s1–s5 */
.section--chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #1a1a1a;
}

.section--chapter .fp-overflow {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.chapter {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.chapter__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.chapter__mobile {
  display: none;
}

.chapter__copy {
  position: absolute;
  left: clamp(28px, 4vw, 56px);
  bottom: clamp(110px, 16vh, 160px);
  z-index: 3;
  max-width: min(860px, 78vw);
  line-height: 0;
}

.chapter__copy--mobile {
  display: none;
}

.chapter__learn--mobile {
  display: none;
}

.chapter__title-svg {
  display: block;
  width: min(840px, 72vw);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}

.chapter__title-svg[src*="s2-t-sc.svg"], .chapter__title-svg[src*="s2-t-tc.svg"]{
  width: min(550px, 72vw);
}

.chapter__title-svg.is-faded-in {
  opacity: 1;
}

.chapter__learn {
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  top: 50%;
  bottom: auto;
  z-index: 3;
  display: block;
  width: min(110px, 14vw);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  appearance: none;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

/* Sticky learn-more — stacked above booking, right-aligned with it */
.chapter-learn-sticky {
  position: fixed;
  z-index: 30;
  right: var(--learn-more-right);
  top: auto;
  bottom: var(--learn-more-bottom);
  display: none;
  width: var(--learn-more-width);
  max-width: 110px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  appearance: none;
  text-decoration: none;
  transform: none;
  pointer-events: auto;
  transition: transform 180ms ease, opacity 200ms ease;
}

.chapter-learn-sticky img {
  display: block;
  width: 100%;
  height: auto;
}

.chapter-learn-sticky:hover,
.chapter-learn-sticky:focus-visible {
  transform: scale(1.05);
  outline: none;
}

body.is-chapter-header .chapter-learn-sticky.is-visible {
  display: block;
}

/* Chapter gallery lightbox */
.chapter-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.chapter-gallery-lightbox[hidden] {
  display: none !important;
}

.chapter-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 10, 8, 0.82);
  cursor: pointer;
  appearance: none;
}

.chapter-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chapter-gallery-lightbox__stage {
  margin: 0;
  max-width: 100%;
  max-height: min(80vh, 840px);
  line-height: 0;
}

.chapter-gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: min(80vh, 840px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.chapter-gallery-lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e5d4b5;
  color: #5c4033;
  cursor: pointer;
  appearance: none;
  display: grid;
  place-items: center;
  padding: 0;
}

.chapter-gallery-lightbox__close svg {
  width: 14px;
  height: 14px;
}

.chapter-gallery-lightbox__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(229, 212, 181, 0.92);
  color: #5c4033;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.chapter-gallery-lightbox__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.chapter-gallery-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .chapter-gallery-lightbox__dialog {
    gap: 4px;
  }

  .chapter-gallery-lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .chapter-gallery-lightbox__close {
    top: -12px;
    right: 0;
  }
}

.chapter__learn img {
  display: block;
  width: 100%;
  height: auto;
}

.chapter__learn:hover,
.chapter__learn:focus-visible {
  transform: translateY(-50%) scale(1.05);
  outline: none;
}

.chapter__next {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vh, 48px);
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.chapter__next img {
  display: block;
  width: 18px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: chapter-arrow-bounce 1.1s ease-in-out infinite;
}

.chapter__next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 50%;
}

@keyframes chapter-arrow-bounce {
  0%,
  100% {
    transform: translateY(-3px);
    opacity: 0.55;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .section--chapter {
    background: linear-gradient(180deg, #f7f3eb 0%, #efe8da 45%, #f8f5ee 100%);
  }

  body.is-explore-header .header,
  body.is-chapter-header .header {
    background: #e5d4b5;
    background: linear-gradient(
      0deg,
      rgba(229, 212, 181, 1) 0%,
      rgba(150, 120, 87, 1) 100%
    );
  }

  body.is-explore-header .header__logo,
  body.is-chapter-header .header__logo,
  body.is-news-header .header__logo,
  body.is-chapter-header .header.is-bar .header__logo,
  body.is-news-header .header.is-bar .header__logo {
    display: none;
  }

  .chapter__bg {
    display: none;
  }

  .chapter__mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: absolute;
    top: var(--cwb-header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    /* No side padding — key image is full-bleed left/right. */
    padding: 16px 0
      calc(18px + env(safe-area-inset-bottom, 0px) + var(--cta-btn-height) + 28px);
    box-sizing: border-box;
    text-align: center;
  }

  /* Logo + main image centered as one unit; image spans full width.
     Nudge up ~8% of viewport so the pair sits higher on mobile. */
  .chapter__mobile-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: translateY(-5vh);
  }

  .chapter__logo-color {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    flex-shrink: 0;
  }

  .chapter__mobile-frame {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    line-height: 0;
    flex-shrink: 1;
    min-height: 0;
  }

  .chapter__mobile-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center center;
  }

  .chapter__copy--desktop,
  .chapter__learn--desktop {
    display: none;
  }

  .chapter__copy--mobile {
    display: block;
    left: 16px;
    right: 96px;
    bottom: 12%;
    max-width: none;
    text-shadow: none;
  }

  .chapter__title-svg {
    width: min(640px, 92%);
  }

  .chapter__title-svg[src*="s2-t-sc.svg"], .chapter__title-svg[src*="s2-t-tc.svg"]{
    width: min(175px, 72vw);
  }

  .chapter__learn--mobile {
    display: none;
  }

  .chapter-learn-sticky {
    max-width: 88px;
  }

  .chapter__next {
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .chapter__next img {
    filter: none;
    width: 16px;
  }
}

/* News section — more details + latest news */
.section--news {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f7f3eb 0%, #efe8da 45%, #f8f5ee 100%);
}

.section--news .fp-overflow {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.news-section {
  --news-pad-y: calc(clamp(56px, 6.5vh, 110px) + clamp(64px, 8vh, 120px));
  --news-gap: clamp(14px, 2.2vh, 48px);
  --news-heads: calc(2 * (clamp(32px, 5vh, 48px) + clamp(6px, 1.2vh, 18px)));
  --news-caption: 3.25rem;
  --news-free: calc(
    100dvh - var(--news-pad-y) - var(--news-gap) - var(--news-heads) - var(--news-caption)
  );
  --news-more-size: min(160px, calc(var(--news-free) * 0.38));
  --news-video-media-h: min(240px, calc(var(--news-free) * 0.55));
  --news-track-gap: clamp(8px, 1.2vh, 14px);
  --news-container-max: min(
    1200px,
    calc(var(--news-more-size) * 7 + var(--news-track-gap) * 6 + 108px)
  );
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--news-gap);
  padding: clamp(56px, 6.5vh, 110px) clamp(20px, 3vw, 40px) clamp(64px, 8vh, 120px);
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

.news-section__fit {
  display: contents;
}

.news-section__logo {
  display: none;
}

.news-slider__dots {
  display: none;
}

.news-block {
  width: min(100%, var(--news-container-max));
  min-width: 0;
  min-height: 0;
}

.news-block__head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(6px, 1.2vh, 18px);
  min-height: clamp(32px, 5vh, 48px);
}

.news-block__head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #c4a574;
  transform: translateY(-50%);
  clip-path: polygon(
    0% 50%,
    18% 28%,
    50% 0%,
    82% 28%,
    100% 50%,
    82% 72%,
    50% 100%,
    18% 72%
  );
  z-index: 0;
}

.news-block__badge {
  position: relative;
  z-index: 1;
  display: block;
  width: min(176px, 36.8vw, 22.4vh); /* 20% smaller */
  height: auto;
  padding: 0;
  background: transparent;
  box-sizing: content-box;
}

.news-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.news-slider__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.news-slider__nav img {
  display: block;
  width: 40px;
  height: auto;
}

.news-slider__nav:hover:not(:disabled),
.news-slider__nav:focus-visible:not(:disabled) {
  transform: scale(1.06);
  outline: none;
}

.news-slider__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  container-type: inline-size;
  container-name: news-slider;
}

.news-slider__viewport::-webkit-scrollbar {
  display: none;
}

.news-slider__track {
  display: flex;
  align-items: stretch;
  gap: var(--news-track-gap);
  width: max-content;
  min-height: 0;
  padding: 2px 2px 4px;
}

.news-block--more .news-slider__viewport {
  container-type: inline-size;
  container-name: more-slider;
}

.news-block--more .news-slider__track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--news-track-gap);
}

.news-slider__empty {
  margin: 0;
  padding: 24px 12px;
  color: #5c4033;
  font-size: 13px;
  opacity: 0.8;
}

.news-card {
  display: block;
  text-decoration: none;
  color: #5c4033;
  flex-shrink: 0;
}

.news-card--more {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #8a8a8a;
}

.news-card--more .news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.news-card--more:hover .news-card__image,
.news-card--more:focus-visible .news-card__image {
  transform: scale(1.04);
}

.news-card--video {
  width: min(clamp(280px, 32vw, 420px), calc(var(--news-video-media-h) * 16 / 10));
}

.news-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: var(--news-video-media-h);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #8a8a8a;
}

/* Arrows align to video frame center, not full card (media + caption). */
.news-block--news .news-slider {
  align-items: start;
}

.news-block--news .news-slider__nav {
  align-self: start;
  height: var(--news-video-media-h);
  margin-top: 2px; /* match track top padding */
}

.news-card--video .news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.news-card__play img {
  width: min(56px, 28%);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.news-card__date {
  display: block;
  margin-top: clamp(4px, 0.8vh, 10px);
  font-size: clamp(10px, 1.2vh, 11px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.news-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: clamp(2px, 0.5vh, 6px);
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

body.is-news-header .header,
body.is-news-header .header.is-bar {
  background: #e5d4b5;
  background: linear-gradient(
    0deg,
    rgba(229, 212, 181, 1) 0%,
    rgba(150, 120, 87, 1) 100%
  );
  overflow: visible;
}

body.is-news-header .header__logo {
  display: block;
}

/* Match video-section logo size (animates from chapter 72px → 40px) */
body.is-news-header .header__logo img,
body.is-news-header .header.is-bar .header__logo img {
  height: 40px;
  display: none;
}

body.is-news-header .site-nav__link {
  color: #fff;
}

body.is-news-header .site-nav__item:hover > .site-nav__link,
body.is-news-header .site-nav__item.is-open > .site-nav__link,
body.is-news-header .site-nav__link:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

body.is-news-header .site-nav__dropdown a {
  color: #fff;
}

@media (max-width: 1024px) {
  .news-section {
    --news-container-max: 100%;
    --news-track-gap: 10px;
    --news-more-visible: 3;
    --news-video-visible: 1;
    --news-scale: 1;
    /* Clear fixed disclaimer / booking pills + home-indicator. */
    --news-bottom-safe: calc(
      18px + env(safe-area-inset-bottom, 0px) + var(--cta-btn-height) + 28px
    );
    top: var(--cwb-header-h);
    bottom: 0;
    height: auto;
    padding: 12px 18px var(--news-bottom-safe);
    gap: 0;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
  }

  /* Scales as a unit so logo / more / news never crop into header or CTAs. */
  .news-section__fit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    transform: scale(var(--news-scale));
    transform-origin: top center;
    will-change: transform;
  }

  .news-section__logo {
    display: block;
    width: min(150px, 42vw);
    height: auto;
    margin: 8px auto 4px;
    flex-shrink: 0;
  }

  .news-block {
    width: 100%;
  }

  .news-block__head {
    margin-bottom: 14px;
  }

  .news-block__badge {
    width: min(128px, 38.4vw); /* 20% smaller */
  }

  .news-slider {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .news-slider__nav {
    display: none;
  }

  .news-slider__viewport {
    width: 100%;
  }

  .news-slider__track {
    gap: var(--news-track-gap);
  }

  .news-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 12px;
  }

  .news-slider__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(150, 120, 87, 0.28);
    cursor: pointer;
    appearance: none;
    transition: background 160ms ease, transform 160ms ease;
  }

  .news-slider__dot.is-active {
    background: #967857;
    transform: scale(1.15);
  }

  /* Keep a single horizontal row — visible count drives card width. */
  .news-block--more .news-slider__track {
    display: flex;
    width: max-content;
    grid-template-columns: none;
    gap: var(--news-track-gap);
  }

  .news-card--more {
    width: calc(
      (100cqi - (var(--news-more-visible) - 1) * var(--news-track-gap))
      / var(--news-more-visible)
    );
    flex-shrink: 0;
  }

  .news-card--video {
    width: 100cqi;
  }

  .news-card__media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-card__date {
    margin-top: 10px;
    font-size: 11px;
    opacity: 0.8;
  }

  .news-card__title {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  body.is-news-header .header__logo {
    display: none;
  }

  body.is-news-header .header__logo img,
  body.is-news-header .header.is-bar .header__logo img {
    height: 32px;
  }

  body.is-news-header .site-nav__dropdown a {
    color: #fff;
  }
}

/* WordPress chrome */
body.admin-bar { margin-top: 0 !important; }
html { margin-top: 0 !important; }

/* Documents listing page */
html:has(body.cwb-docs-page),
body.cwb-docs-page {
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f4efe6;
  color: #1a1a1a;
}

body.cwb-docs-page .header,
body.cwb-docs-page.is-panel-header .header,
body.cwb-docs-page.is-docs-header .header {
  background: #e5d4b5;
  background: linear-gradient(
    0deg,
    rgba(229, 212, 181, 1) 0%,
    rgba(150, 120, 87, 1) 100%
  );
  overflow: visible;
}

body.cwb-docs-page .header__logo {
  display: block;
}

body.cwb-docs-page .header__logo img {
  height: 40px;
}

body.cwb-docs-page .site-nav__link,
body.cwb-docs-page .site-nav__dropdown a {
  color: #fff;
}

body.cwb-docs-page {
  --docs-header-height: 56px;
}

.docs-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--docs-header-height) 0 0;
  margin: 0;
  box-sizing: border-box;
  background-color: #f4efe6;
  background-image: url("assets/images/listing_bg.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.docs-page__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: min(920px, 86vw);
  min-height: calc(100vh - var(--docs-header-height));
  min-height: calc(100dvh - var(--docs-header-height));
  margin: 0 auto;
  padding: 36px 40px 120px;
  background-color: #faf8f3;
  background-image: url("assets/images/listing_container_bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-left: 0;
  border-right: 0;
  box-sizing: border-box;
}

/* Side borders: solid where they meet the header, taper thin toward bottom */
.docs-page__inner::before,
.docs-page__inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(138, 106, 69, 1) 0%,
    rgba(138, 106, 69, 1) 78%,
    rgba(138, 106, 69, 0.35) 92%,
    rgba(138, 106, 69, 0) 100%
  );
}

.docs-page__inner::before {
  left: 0;
}

.docs-page__inner::after {
  right: 0;
}

.docs-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.docs-cats__row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
}

.docs-cats__row-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  padding-top: 2px;
}

.docs-cats__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-cats__list li {
  display: inline-flex;
  align-items: baseline;
}

.docs-cats__sep {
  margin: 0 8px;
  color: #8a8a8a;
  font-weight: 400;
}

.docs-cats__link {
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-decoration: none;
  transition: color 160ms ease;
}

.docs-cats__link:hover,
.docs-cats__link:focus-visible {
  color: #000;
  outline: none;
}

.docs-cats__link.is-active {
  font-weight: 700;
  color: #111;
}

.docs-list__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.docs-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d8d0c4;
}

.docs-list__item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #d8d0c4;
}

.docs-list__date {
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  white-space: nowrap;
}

.docs-list__name {
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}

.docs-list__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2a8f8a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.docs-list__download:hover,
.docs-list__download:focus-visible {
  text-decoration: underline;
  outline: none;
}

.docs-list__download-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #2a8f8a;
  border-radius: 50%;
  flex-shrink: 0;
}

.docs-list__download-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #2a8f8a;
  border-bottom: 1.5px solid #2a8f8a;
  transform: rotate(45deg) translate(-1px, -2px);
}

.docs-list__empty {
  margin: 24px 0 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 767px) {
  body.cwb-docs-page {
    --docs-header-height: 56px;
  }

  .docs-page {
    padding: var(--docs-header-height) 0 0;
  }

  .docs-page__inner {
    width: min(100%, 94vw);
    min-height: calc(100vh - var(--docs-header-height));
    min-height: calc(100dvh - var(--docs-header-height));
    padding: 24px 18px 140px;
  }

  .docs-cats__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .docs-list__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .docs-list__download {
    margin-top: 4px;
  }
}
