/* Shared visual roles. Loaded once by the release plugin on front-end routes. */
:root {
  --tls-colour-canvas: #f6f1ea;
  --tls-colour-surface: #fffdf8;
  --tls-colour-ink: #2f211d;
  --tls-colour-wine: #5b3b30;
  --tls-colour-wine-dark: #432a23;
  --tls-colour-rose: #d8c3b0;
  --tls-colour-toast: #eadfd4;
  --tls-colour-gold: #b3945d;
  --tls-colour-muted: #8a7f78;
  --tls-colour-rule: rgba(47, 33, 29, .18);
  --tls-font-body: "TLS Figtree", "TLS Refined Sans", Figtree, Arial, sans-serif;
  --tls-font-display: "TLS Cormorant", "TLS Refined Serif", "Cormorant Garamond", Georgia, serif;
  --tls-control-radius: 0;
  --tls-control-height: 48px;
}

/* Legacy GeneratePress pages only: a single transitional compatibility layer.
   Do not apply layout, grid or media rules here; Element 54074 still owns them. */
body:not(.tls-v13-home):not(.tls-refined) {
  /* Existing GeneratePress/Element variables inherit from this legacy scope. */
  --tls-ivory: var(--tls-colour-canvas);
  --tls-warm-white: var(--tls-colour-surface);
  --tls-charcoal: var(--tls-colour-ink);
  --tls-soft-charcoal: #51423a;
  --tls-champagne: var(--tls-colour-gold);
  --cta-primary-bg: var(--tls-colour-ink);
  --cta-primary-hover: var(--tls-colour-wine);
  --cta-primary-text: var(--tls-colour-surface);
  --btn-radius: var(--tls-control-radius);
  color: var(--tls-colour-ink);
  background-color: var(--tls-colour-canvas);
  font-family: var(--tls-font-body);
}
body:not(.tls-v13-home):not(.tls-refined) :is(h1, h2, h3, h4, .entry-title, .page-title) {
  font-family: var(--tls-font-display) !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
body:not(.tls-v13-home):not(.tls-refined) :is(
  a.button, .wp-block-button__link, .wp-element-button,
  a.gb-button, .gb-button a, button[type="submit"], input[type="submit"]
) {
  min-height: var(--tls-control-height) !important;
  border: 1px solid var(--tls-colour-ink) !important;
  border-radius: var(--tls-control-radius) !important;
  background: var(--tls-colour-ink) !important;
  color: var(--tls-colour-surface) !important;
  font-family: var(--tls-font-body) !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}
body:not(.tls-v13-home):not(.tls-refined) :is(
  a.button, .wp-block-button__link, .wp-element-button,
  a.gb-button, .gb-button a, button[type="submit"], input[type="submit"]
):hover {
  border-color: var(--tls-colour-wine) !important;
  background: var(--tls-colour-wine) !important;
}
body:not(.tls-v13-home):not(.tls-refined) :is(
  a.button, .wp-block-button__link, .wp-element-button,
  a.gb-button, .gb-button a, button[type="submit"], input[type="submit"]
):focus-visible {
  outline: 3px solid var(--tls-colour-wine);
  outline-offset: 3px;
}
body:not(.tls-v13-home):not(.tls-refined) :is(
  a.button.ghost, .wp-block-button.is-style-outline .wp-block-button__link
) {
  background: transparent !important;
  color: var(--tls-colour-ink) !important;
}
body:not(.tls-v13-home):not(.tls-refined) :is(
  a.button.ghost, .wp-block-button.is-style-outline .wp-block-button__link
):hover {
  background: var(--tls-colour-ink) !important;
  color: var(--tls-colour-surface) !important;
}
body:not(.tls-v13-home):not(.tls-refined) .main-navigation .menu-item.book-now > a {
  border-radius: var(--tls-control-radius) !important;
  font-family: var(--tls-font-body) !important;
  font-size: .75rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}

/* Shared CTA treatment for the small set of content-owned button systems.
   Keep page-specific light/outline colour variants, but retire their pill
   shape and inconsistent type. Filter chips and gallery controls are not CTAs. */
:is(.tls-page-button, .tls-app-router__button, .tls-nco__button, .tls-card-action) {
  border-radius: var(--tls-control-radius) !important;
  font-family: var(--tls-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}
.tls-app-router__button:not(.tls-app-router__button--secondary),
.tls-nco__button--primary,
.tls-card-action {
  background: var(--tls-colour-ink) !important;
  border-color: var(--tls-colour-ink) !important;
  color: var(--tls-colour-surface) !important;
}

/* App-router width and legacy heading wrappers; no other page owns this card. */
body.page-id-54725 .page-hero,
body.page-id-54725 article .entry-header,
body.page-id-54759 .page-hero,
body.page-id-54759 article .entry-header { display: none !important; }
.tls-app-router { box-sizing: border-box !important; grid-template-columns: minmax(0,1fr) !important; min-width: 0 !important; width: 100% !important; }
.tls-app-router__card { box-sizing: border-box !important; min-width: 0 !important; width: min(620px,100%) !important; max-width: 100% !important; }
.tls-app-router h1 { overflow-wrap: anywhere !important; }
@media (max-width: 500px) {
  .tls-app-router h1 { font-size: clamp(30px, 10vw, 40px) !important; overflow-wrap: normal !important; hyphens: none !important; }
}

/* Legacy GenerateBlocks mobile bar: hidden until the title/hero is past.
   The site masthead and in-page booking links remain available before then. */
@media (max-width: 768px) {
  body:not(.tls-refined) .ls-stickybar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(calc(100% + 12px)) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  }
  body.tls-legacy-sticky-active:not(.tls-refined) .ls-stickybar {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  body:not(.tls-refined) .ls-stickybar .ls-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 520px !important;
    margin-inline: auto !important;
  }
  body:not(.tls-refined) .ls-stickybar .ls-row > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 48px !important;
    border-radius: 0 !important;
  }
  body:not(.tls-refined) .ls-stickybar .call-btn {
    border: 1px solid #2f211d !important;
    background: #fffdf8 !important;
    color: #2f211d !important;
  }
  body:not(.tls-refined) .ls-stickybar .book-btn {
    border: 1px solid #2f211d !important;
    background: #2f211d !important;
    color: #fffdf8 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.tls-refined) .ls-stickybar { transition-duration: .01ms !important; }
}
