/* v0.8.4 — preserve the user-edited final-design.css as the visual baseline. */
body.luxury-site.option-two.figma-final .shell > header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 30;
  transition:
    height 0.25s,
    padding 0.25s,
    background-color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  border-bottom: 1px solid transparent;
}
body.luxury-site.option-two.figma-final.scrolled-nav .shell > header {
  background: #fff;
  border-bottom: 1px solid #150f3d33;
  box-shadow: 0 4px 18px #150f3d08;
  color: var(--navy);
  backdrop-filter: none;
}
body.luxury-site.option-two.figma-final:not(.scrolled-nav):is(.immersive-home, .category-page)
  .shell
  > header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #fff;
}
body.figma-final:not(.scrolled-nav):is(.immersive-home, .category-page) .shell > header #mobile {
  color: #fff;
}
body.figma-final.scrolled-nav .shell > header #mobile {
  color: var(--navy);
}
body.figma-final:not(.immersive-home):not(.sector-layout):not(.vertical-reader) .shell {
  padding-top: 98px;
}
body.figma-final.scrolled-nav .shell > header :is(.headtitle, .header-breadcrumb) {
  color: var(--navy);
}
body.figma-final.scrolled-nav .flag-language > summary {
  border-color: #150f3d40;
  color: var(--navy);
  background: #fff;
}
body.figma-final.immersive-home .heroart {
  inset: 0;
  isolation: isolate;
  background: none;
  clip-path: none;
}
/* Home Final 32:1758: overscan the photo without stretching its aspect ratio.
   The gradient stays in the hero bounds instead of scaling with the photo. */
body.figma-final.immersive-home .heroart:after {
  content: '';
  position: absolute;
  inset: -11.4478% -30.0514% -19.4164% 0;
  z-index: -1;
  background: url('../../assets/final/home-final-hero.webp') center/cover no-repeat;
}
body.figma-final.immersive-home .heroart:before {
  inset: 0;
  background: linear-gradient(
    -72.611711deg,
    rgba(22, 17, 73, 0) 49.104%,
    rgba(22, 17, 73, 0.353) 60.2%,
    rgba(22, 17, 73, 0.637) 69.141%,
    rgba(22, 17, 73, 0.85) 78.972%,
    rgba(22, 17, 73, 0.95) 91.292%
  );
}
/* Layout only here; shared solid button states are defined below. */
body.figma-final :is(#read, .sidebar-read).ui-primary {
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  font-family: var(--body-font);
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
body.figma-final #sidebar #download.ui-secondary {
  --button-ink: var(--navy);
  background-color: transparent;
  background-image: linear-gradient(var(--button-ink), var(--button-ink));
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  border: 1px solid var(--button-ink);
  border-radius: 6px;
  color: var(--button-ink);
  font: 600 0.9375rem/1.2 var(--body-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  min-height: 48px;
  height: 48px;
  transition:
    background-size 0.38s,
    color 0.25s;
}
body.figma-final #sidebar #download.ui-secondary {
  --button-ink: #fff;
}
body.figma-final #sidebar #download.ui-secondary:hover {
  background-color: transparent;
  background-size: 100% 100%;
  color: #fff;
  border-color: var(--button-ink);
}
body.figma-final #sidebar #download.ui-secondary:hover {
  color: var(--navy);
}
body.figma-final #sidebar-tools .sidebar-read.ui-primary {
  font-size: 0.9375rem;
  min-height: 48px;
  height: 48px;
  padding: 0 17px;
}
.figma-final .final-city-overview .back .ui-icon {
  transition: transform 0.25s ease;
}
.figma-final .final-city-overview .back:hover .ui-icon {
  transform: translateX(4px);
}
body.figma-final #chat #chatform {
  margin-bottom: 20px;
  padding-bottom: 12px;
}
@media (max-width: 760px) {
  body.figma-final .shell > header {
    left: 0;
  }
  body.figma-final:not(.immersive-home):not(.sector-layout):not(.vertical-reader) .shell {
    padding-top: 76px;
  }
  body.luxury-site.option-two.figma-final .luxury-assistant-entry input {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  body.figma-final #sidebar .sidebar-brand-row {
    display: flex;
    position: absolute;
    top: 16px;
    left: 18px;
    right: 78px;
    margin: 0;
    min-height: 44px;
    align-items: center;
  }
  body.figma-final #sidebar .sidebar-brand-row .brand {
    width: 100% !important;
    max-width: 221px;
    clip-path: none;
    padding: 0 !important;
  }
  body.figma-final #sidebar .sidebar-brand-row .full-logo {
    display: block;
    width: 100%;
    height: auto;
  }
  body.figma-final #sidebar .sidebar-brand-row .compact-logo {
    display: none;
  }
  body.figma-final #sidebar {
    padding-top: 84px;
  }
  body.figma-final .mobile-brand {
    background: transparent !important;
  }
  body.figma-final.immersive-home .heroart:after {
    inset: 0;
    background-position: 52% center;
  }
  body.figma-final.immersive-home .heroart:before {
    background:
      linear-gradient(90deg, #161149d9, #16114955),
      linear-gradient(0deg, #161149cc, transparent 75%);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.figma-final .shell > header,
  .figma-final .final-city-overview .back .ui-icon {
    transition: none;
  }
}
@media (max-width: 760px) {
  body.luxury-site.option-two.figma-final .shell > header {
    --navbar-read-font: 0.75rem;
    left: 0;
    right: 0;
    height: 76px;
    min-height: 76px;
    padding: 0 16px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
  }
  body.luxury-site.option-two.figma-final .shell > header #read {
    height: 40px;
    min-height: 40px;
    font-size: var(--navbar-read-font);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  body.luxury-site.option-two.figma-final .shell > header .actions {
    min-width: 0;
    width: auto;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    align-items: center;
    height: 40px;
    margin: 0;
    line-height: 1;
  }
  body.luxury-site.option-two.figma-final
    .shell
    > header
    :is(.headtitle, .header-breadcrumb, .header-city-label) {
    display: none;
  }
  body.luxury-site.option-two.figma-final .shell > header #mobile {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  body.luxury-site.option-two.figma-final .shell > header .mobile-brand {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    margin: 0;
    line-height: 0;
  }
  body.luxury-site.option-two.figma-final .shell > header .mobile-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}
@media (max-width: 360px) {
  body.luxury-site.option-two.figma-final .shell > header {
    --navbar-read-font: 0.6875rem;
    padding: 0 12px;
    gap: 6px;
  }
}
/* Header download is its own white solid control, independent of secondary. */
.header-city-label {
  margin-right: auto;
  font: 600 0.75rem/1.5 var(--body-font);
  letter-spacing: 0.12em;
  color: var(--navy);
}
.header-city-label[hidden] {
  display: none;
}
@media (min-width: 761px) {
  body.figma-final:is(.immersive-home, .category-page) {
    --section-gutter: 64px;
  }
  body.luxury-site.option-two.figma-final.immersive-home .shell > header {
    padding-inline: var(--section-gutter);
  }
  body.figma-final.immersive-home .hero > .hero-metrics {
    left: var(--section-gutter);
    right: var(--section-gutter);
  }
  body.figma-final:is(.immersive-home, .category-page) .final-footer {
    padding-inline: var(--section-gutter);
  }
}
@media (max-width: 760px) {
  .header-city-label {
    display: none;
  }
  body.figma-final.immersive-home .hero > .hero-metrics {
    padding-inline: 16px;
  }
}
body.luxury-site.option-two.figma-final .shell > header #download.ebook-download {
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  font: 600 0.9375rem/1.2 var(--body-font);
  height: 48px;
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
/* Compact scroll state shares one header/control rule across Home and sectors. */
body.luxury-site.option-two.figma-final.scrolled-nav .shell > header {
  height: 64px;
  min-height: 64px;
  padding-block: 12px;
  gap: 12px;
}
body.luxury-site.option-two.figma-final.scrolled-nav
  .shell
  > header
  :is(#read, #download.ebook-download) {
  height: 40px;
  min-height: 40px;
  padding-inline: 12px;
  gap: 7px;
}
body.figma-final.scrolled-nav .shell > header .actions .ui-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
body.figma-final.scrolled-nav .shell > header .flag-language > summary {
  height: 40px;
  min-height: 40px;
  padding-inline: 8px;
}
body.figma-final.scrolled-nav .shell > header .flag-language img {
  width: 22px;
  height: 16px;
}
body.figma-final.scrolled-nav .shell > header .flag-language > summary .ui-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}
body.figma-final.scrolled-nav .header-breadcrumb {
  font-size: 0.75rem;
  gap: 12px;
}
@media (max-width: 760px) {
  body.luxury-site.option-two.figma-final.scrolled-nav .shell > header {
    padding: 0 16px;
    gap: 8px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  body.luxury-site.option-two.figma-final.scrolled-nav .shell > header #read {
    padding-inline: 8px;
    font-size: var(--navbar-read-font);
    line-height: 1.2;
    gap: 5px;
  }
  body.luxury-site.option-two.figma-final.scrolled-nav .shell > header #mobile {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
  body.figma-final.scrolled-nav .shell > header #mobile .ui-icon {
    width: 21px;
    height: 21px;
  }
  body.luxury-site.option-two.figma-final.scrolled-nav .shell > header .mobile-brand {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
  }
  body.figma-final.scrolled-nav .shell > header .flag-language img {
    width: 20px;
    height: 14px;
  }
  body.figma-final.scrolled-nav .shell > header .flag-language > summary {
    padding-inline: 6px;
  }
  body.figma-final.scrolled-nav .shell > header #read .ui-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}
@media (max-width: 360px) {
  body.luxury-site.option-two.figma-final.scrolled-nav .shell > header {
    padding-inline: 12px;
    gap: 6px;
  }
}
/* One solid-to-line motion. Only state colours vary by button role/surface. */
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style] {
  user-select: none;
  --solid-fill: var(--orange);
  --solid-text: #fff;
  --solid-line: var(--orange);
  --solid-hover-text: var(--orange);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  background-image: none;
  color: var(--solid-text);
  border-color: var(--solid-border, var(--solid-line));
  box-shadow: none;
  transform: none;
  transition:
    color 0.38s cubic-bezier(0.22, 0.65, 0.3, 1),
    border-color 0.38s cubic-bezier(0.22, 0.65, 0.3, 1),
    filter 0.12s;
}
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style]::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--solid-fill);
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.22, 0.65, 0.3, 1);
}
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style]:hover {
  background: transparent;
  background-image: none;
  color: var(--solid-hover-text);
  border-color: var(--solid-line);
  box-shadow: none;
  transform: none;
}
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style]:hover::before {
  transform: translateX(101%);
}
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style]:active {
  filter: brightness(0.88);
}
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style]
  .ui-icon {
  color: inherit;
}
body.luxury-site.option-two.figma-final .shell > header .flag-language > summary {
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
body.luxury-site.option-two.figma-final .shell > header .flag-language > summary:hover {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}
body.luxury-site.option-two.figma-final .shell > header .flag-language[open] > summary {
  border-color: var(--navy);
}
body.luxury-site.option-two.figma-final .shell > header .flag-language > summary:active {
  filter: brightness(0.88);
}
body.luxury-site.option-two.figma-final .shell > header .flag-language[open] > summary .ui-icon {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  body.luxury-site.option-two.figma-final
    :is(#main, #sidebar, .shell)
    .button-solid[data-button-style],
  body.luxury-site.option-two.figma-final
    :is(#main, #sidebar, .shell)
    .button-solid[data-button-style]::before {
    transition: none;
  }
}
/* Flag control keeps its geometry when the mobile header collapses. */
@media (max-width: 760px) {
  body.luxury-site.option-two.figma-final .shell > header .flag-language > summary {
    box-sizing: border-box;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 40px;
    min-height: 40px;
    padding: 0 6px;
    gap: 4px;
    flex: 0 0 54px;
  }
  body.luxury-site.option-two.figma-final .shell > header .flag-language img {
    width: 22px;
    height: 16px;
    flex-shrink: 0;
  }
  body.luxury-site.option-two.figma-final .shell > header .flag-language > summary .ui-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
  }
}
@media (max-width: 360px) {
  body.luxury-site.option-two.figma-final .shell > header .flag-language > summary {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-basis: 44px;
    padding: 0 4px;
    gap: 3px;
  }
  body.luxury-site.option-two.figma-final .shell > header .flag-language img {
    width: 20px;
    height: 14px;
  }
  body.luxury-site.option-two.figma-final .shell > header .flag-language > summary .ui-icon {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }
}
/* White download retains its role; it shares the exact primary motion above. */
body.luxury-site.option-two.figma-final
  :is(#main, #sidebar, .shell)
  .button-solid[data-button-style='download'] {
  --solid-fill: #fff;
  --solid-text: var(--navy);
  --solid-border: var(--line);
  --solid-line: var(--navy);
  --solid-hover-text: var(--navy);
}
body.luxury-site.option-two.figma-final:not(.scrolled-nav):is(.immersive-home, .category-page)
  .shell
  #download.button-solid[data-button-style='download'] {
  --solid-border: #fff;
  --solid-line: #fff;
  --solid-hover-text: #fff;
}
/* Category rules retained from v0.9.4; CTA artwork/layout restored to v0.9.3. */
body.figma-final.category-page #main h2,
body.figma-final.category-page #main h2 em {
  color: var(--navy);
}
body.figma-final.category-page .category-hero h1,
body.figma-final.category-page .category-hero h1 em {
  color: #fff;
}
@media (max-width: 760px) {
  body.category-page .category-stat-grid {
    gap: 0;
  }
  body.category-page .category-stat-grid article + article {
    border-top: 0;
  }
}
