/* Native first paint and React use one header geometry on every public route. */
.public-site-header .public-skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--brand-accent-on-dark, #f2d58a);
  color: var(--brand-ink, #070707);
  font: 700 16px/1.4 "DM Sans", Arial, sans-serif;
}
.public-site-header .public-skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.public-site-header {
  --public-header-height: 76px;
  box-sizing: border-box;
  height: var(--public-header-height);
  min-height: var(--public-header-height);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 clamp(22px, 3.2vw, 58px);
  font-family: "DM Sans", "TVC DM Sans", Arial, sans-serif;
  line-height: var(--brand-line-height-ui, 1.35);
}
.public-site-header :is(.brand-button, .legal-brand, .torrelles-operational-brand) { min-height: 0; padding: 8px 0; }
.public-site-header :is(.brand-button, .legal-brand, .torrelles-operational-brand) img { display: block; width: 124px; height: auto; }
.public-site-header .public-desktop-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); }
.public-site-header .public-desktop-nav > a,
.public-site-header .public-home-group > a { min-height: 46px; font-size: 12px; font-weight: 700; line-height: var(--brand-line-height-ui, 1.35); letter-spacing: .13em; white-space: nowrap; }
.public-site-header .public-desktop-nav > a.nav-hire {
  box-sizing: border-box; min-width: 164px; min-height: 48px; justify-content: center;
  gap: 18px; padding: 0 20px; border: 0;
  background: var(--brand-accent, #f2d58a); color: var(--brand-ink, #070707);
  font-size: 13px; font-weight: 700; letter-spacing: .09em;
}
.public-site-header .public-desktop-nav > a.nav-hire:is(:hover, :focus-visible, :active) {
  background: var(--brand-green, #16a085); color: var(--brand-ink, #070707);
}
.public-site-header .nav-hire > :is(svg, span[aria-hidden]) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.public-site-header :is(.header-meta, .legal-account-link, .torrelles-operational-meta) { justify-self: end; }
.public-site-header :is(.header-meta a, .legal-account-link, .torrelles-operational-account > a) { min-height: 0; padding: 7px 0; font-size: 11px; font-weight: 600; line-height: var(--brand-line-height-ui, 1.35); letter-spacing: .1em; }
.public-site-header a { text-decoration: none; }
.public-site-header .brand-button { display: block; }
.public-desktop-nav > a,
.public-home-group > a { display: inline-flex; align-items: center; }
.public-home-group { position: relative; display: flex; align-items: center; gap: 2px; }
.public-site-header .public-home-group > a { min-height: 46px; color: var(--paper, var(--brand-paper, #efefef)); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.public-site-header .public-home-toggle { display: inline-grid; place-items: center; width: 38px; min-height: 46px; color: var(--paper, var(--brand-paper, #efefef)); }
.public-home-toggle svg { width: 17px; height: 17px; transition: transform var(--motion-disclosure, 240ms) var(--ease-ui, ease); }
.public-home-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.public-site-header :is(a, button, summary):focus-visible { outline: 2px solid var(--brand-accent-on-dark, #f2d58a); outline-offset: 4px; }
/* One green indicator owns current/hover feedback; route pseudo-elements must
   not draw a second underline beneath it. */
.public-site-header .public-desktop-nav > a:not(.nav-hire)::after,
.public-site-header .public-home-group > a::after { content: none; }
.public-site-header .public-desktop-nav a:not(.nav-hire):is(:hover, :focus-visible, [aria-current="page"], [aria-current="location"]),
.public-site-header .public-mobile-menu a:not(.mobile-hire):is([aria-current="page"], [aria-current="location"]) { color: var(--brand-green, #16a085); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.public-site-header :is(.public-desktop-nav, .public-mobile-menu) a:is(.nav-hire, .mobile-hire):is([aria-current="page"], [aria-current="location"]) { color: var(--ink, var(--brand-ink, #070707)); text-decoration: none; }
.public-site-header .public-home-sections[hidden],
.public-site-header .public-mobile-menu[hidden] { display: none; }
.public-home-sections { display: grid; min-width: 220px; padding: 12px 18px; background: var(--ink, var(--brand-ink, #070707)); border: 1px solid rgba(244, 240, 232, .25); }
.public-home-group .public-home-sections { position: absolute; top: calc(100% + 8px); left: 0; }
.public-home-disclosure > summary { list-style: none; cursor: pointer; }
.public-home-disclosure > summary::-webkit-details-marker { display: none; }
.public-home-disclosure:not([open]) > .public-home-sections { display: none; }
.public-home-disclosure[open] > summary svg { transform: rotate(180deg); }
.public-site-header .public-home-sections a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; color: var(--paper, var(--brand-paper, #efefef)); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.public-home-sections a span { color: rgba(244, 240, 232, .6); font-size: 10px; }
.public-site-header .public-home-sections a:hover { color: var(--brand-green, #16a085); }
/* One institutional footer, including WordPress pages before enhancement. */
.site-footer.public-site-footer {
  box-sizing: border-box;
  width: 100%;
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(0, 1.5fr) auto auto;
  grid-template-areas: "identity links meta top";
  align-items: center;
  justify-items: stretch;
  gap: clamp(20px, 2.4vw, 40px);
  padding: 24px clamp(22px, 3.2vw, 58px);
  background: #070707;
  border-block: 1px solid #343434;
  color: #bebcb7;
  font: 700 11px/1.35 "DM Sans", "TVC DM Sans", Arial, sans-serif;
  letter-spacing: .08em;
  text-align: start;
  text-transform: uppercase;
}
@media (min-width: 1600px) {
  .site-footer.public-site-footer { padding-inline-end: clamp(58px, 8.8vw, 224px); }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .site-footer.public-site-footer { grid-template-columns: minmax(145px, .35fr) minmax(0, 1.65fr) auto auto; }
}
.public-site-footer *, .public-site-footer *::before, .public-site-footer *::after { box-sizing: border-box; }
.public-site-footer .site-footer-brand, .public-site-footer .site-footer-meta {
  min-width: 0; display: grid; gap: 7px;
}
.public-site-footer .site-footer-brand { grid-area: identity; justify-items: start; }
.public-site-footer .site-footer-brand img { display: block; width: 124px; height: auto; max-width: 100%; }
.public-site-footer .site-footer-meta { grid-area: meta; justify-items: end; white-space: nowrap; }
.public-site-footer .site-footer-navigation { grid-area: links; min-width: 0; display: grid; gap: 10px; }
.public-site-footer .site-footer-navigation nav {
  margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .site-footer.public-site-footer { column-gap: 16px; }
  .public-site-footer .site-footer-navigation nav { column-gap: 12px; }
}
.public-site-footer .site-footer-home > span { color: #aaa8a4; font-size: 10px; }
.site-footer.public-site-footer a { color: inherit; text-decoration: none; }
.public-site-footer .site-footer-navigation nav a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  border-bottom: 1px solid #494949;
}
.site-footer.public-site-footer a:is(:hover, :focus-visible) { color: #38c6ae; }
.public-site-footer :is(button, a):focus-visible { outline: 2px solid #f2d58a; outline-offset: 3px; }
.site-footer.public-site-footer .back-to-top {
  grid-area: top; justify-self: start; width: fit-content; min-height: 48px;
  align-self: center; display: inline-flex; align-items: center; gap: 14px;
  padding: 0 16px; margin: 0; border: 1px solid #777; border-radius: 0;
  background: transparent; color: #efefef; font: inherit; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.site-footer.public-site-footer .back-to-top:is(:hover, :focus-visible, :active) {
  background: #16a085; border-color: #16a085; color: #070707;
}
.public-site-footer .back-to-top svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 1199px) {
  .site-footer.public-site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "identity meta" "links top";
    gap: 18px 30px;
  }
}
@media (max-width: 767px) {
  .site-footer.public-site-footer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "identity" "links" "meta" "top";
    gap: 18px; padding: 28px 18px max(28px, env(safe-area-inset-bottom));
  }
  .public-site-footer .site-footer-home > span { flex-basis: 100%; }
  .public-site-footer .site-footer-navigation nav a { min-height: 44px; }
  .public-site-footer .site-footer-meta { justify-items: start; white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .public-site-footer a { transition: color 160ms ease; }
  .public-site-footer .back-to-top { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
}

.public-mobile-disclosure { display: none; }
.public-mobile-disclosure > summary { list-style: none; }
.public-mobile-disclosure > summary::-webkit-details-marker { display: none; }
.public-mobile-disclosure:not([open]) > .public-mobile-menu { display: none; }
@media (max-width: 1199px) {
  .public-site-header, body.torrelles-redesign-legal .legal-site-header.public-site-header {
    grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px;
  }
  .torrelles-operational-header.public-site-header { grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 8px; }
  .public-site-header :is(.brand-button, .legal-brand, .torrelles-operational-brand) {
    display: inline-flex; align-items: center; box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 44px;
  }
  .public-site-header :is(.brand-button, .legal-brand, .torrelles-operational-brand) img { max-width: 100%; }
  .public-site-header .public-desktop-nav {
    display: flex; grid-area: 1 / 2; width: auto; margin: 0; padding: 0; overflow: visible;
  }
  .public-site-header .public-desktop-nav > :not(.nav-hire),
  .public-site-header .public-mobile-menu > a.mobile-hire { display: none; }
  .public-site-header .public-desktop-nav > a.nav-hire {
    min-width: 0; min-height: 44px; padding-inline: 12px; gap: 8px; font-size: 12px; letter-spacing: .06em;
  }
  .public-site-header .public-mobile-menu { max-height: calc(100dvh - var(--header-height, 76px) - 46px); overflow-y: auto; overscroll-behavior: contain; }
  .public-mobile-home-row { display: flex; align-items: center; border-bottom: 1px solid rgba(244, 240, 232, .18); }
  .public-mobile-home-row > a { flex: 1; min-height: 58px; display: flex; align-items: center; padding: 0 24px; color: var(--paper, var(--brand-paper, #efefef)); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .public-site-header .public-mobile-home-row .public-home-toggle { width: 64px; min-height: 58px; }
  .public-mobile-home .public-home-sections { border-width: 0 0 1px; padding: 8px 24px; }
  .public-mobile-home:has(> .public-home-disclosure) { display: grid; grid-template-columns: 1fr 64px; border-bottom: 1px solid rgba(244, 240, 232, .18); }
  .public-mobile-home > a { min-height: 58px; display: flex; align-items: center; padding: 0 24px; color: var(--paper, var(--brand-paper, #efefef)); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .public-mobile-home > .public-home-disclosure { display: contents; }
  .public-mobile-home > .public-home-disclosure > summary { grid-column: 2; grid-row: 1; width: 64px; min-height: 58px; }
  .public-mobile-home > .public-home-disclosure > .public-home-sections { grid-column: 1 / -1; position: static; min-width: 0; }
  .public-site-header .public-mobile-utility { font-size: 11px; color: rgba(244, 240, 232, .78); }
  .public-mobile-home-row > a:is(:hover, :focus-visible) { color: var(--ink, var(--brand-ink, #070707)); background: var(--paper, var(--brand-paper, #efefef)); }
  /* Keep current links legible when the mobile hover row switches to paper. */
  .public-site-header .public-mobile-menu a:not(.mobile-hire):is([aria-current="page"], [aria-current="location"]):is(:hover, :focus-visible) { color: var(--ink, var(--brand-ink, #070707)); background: var(--paper, var(--brand-paper, #efefef)); }
  .public-mobile-disclosure { display: block; justify-self: end; }
  .public-mobile-disclosure > summary.menu-toggle { display: grid; place-items: center; width: 48px; min-height: 48px; color: var(--paper, var(--brand-paper, #efefef)); cursor: pointer; }
  .public-mobile-disclosure > summary.menu-toggle svg { width: 26px; height: 26px; }
  .public-mobile-disclosure[open] > .public-mobile-menu { position: absolute; inset: 100% 0 auto; display: grid; background: var(--ink, var(--brand-ink, #070707)); color: var(--paper, var(--brand-paper, #efefef)); opacity: 1; transform: none; visibility: visible; border-bottom: 1px solid rgba(244, 240, 232, .25); max-height: calc(100dvh - 122px); overflow-y: auto; overscroll-behavior: contain; }
  .public-mobile-disclosure .public-mobile-menu > a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 24px; color: inherit; border-bottom: 1px solid rgba(244, 240, 232, .18); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  html:has(> body.torrelles-redesign-legal),
  body.torrelles-redesign-legal { --legal-header-height: 76px; }
  body.torrelles-redesign-legal .legal-site-header.public-site-header { min-height: 76px; grid-template-rows: auto; }
  .legal-site-header .legal-account-link { display: none; }
}
@media (max-width: 767px) {
  body.torrelles-operational-chrome { --torrelles-chrome-header: 64px; }
  html:has(> body.torrelles-redesign-legal), body.torrelles-redesign-legal { --legal-header-height: 64px; }
  .public-site-header { --public-header-height: 64px; padding-inline: 16px; }
  .public-site-header :is(.brand-button, .legal-brand, .torrelles-operational-brand) img { width: 108px; }
  body.torrelles-redesign-legal .legal-site-header.public-site-header { min-height: 64px; }
  .site-footer-home > span { flex-basis: 100%; }
}
@media (max-width: 782px) {
  /* Match the operational toolbar: an inline account link adds a baseline
     gap below the 46px row and can overlap the site's mobile menu. */
  body.admin-bar:is(.torrelles-redesign-route, .torrelles-redesign-legal, .torrelles-operational-chrome) #wpadminbar #wp-admin-bar-my-account > .ab-item { display: block; }
}
@media (max-width: 410px) {
  /* The account also lives in the menu. Keep room for a nonempty cart. */
  .torrelles-operational-header .torrelles-operational-mobile-actions:has(.torrelles-operational-mobile-cart:not([hidden])) > a:first-child { display: none; }
  .torrelles-operational-header.public-site-header { column-gap: 4px; padding-inline: 10px; }
}
@media (max-width: 359px) {
  .public-site-header .nav-hire > :is(svg, span[aria-hidden]) { display: none; }
}
@media (max-width: 600px) {
  /* These public headers reserve the 46px admin toolbar while scrolling.
     Keep its surface in that space; do not change WordPress dashboard chrome. */
  body.admin-bar:is(.torrelles-redesign-route, .torrelles-redesign-legal, .torrelles-operational-chrome) #wpadminbar { position: fixed; }
  body.admin-bar.torrelles-redesign-legal .legal-site-header { top: 46px; }
  /* Keep site/edit/account in one row; the extra editor shortcuts remain
     available in the desktop toolbar, as on the operational surfaces. */
  body.admin-bar:is(.torrelles-redesign-route, .torrelles-redesign-legal, .torrelles-operational-chrome) #wpadminbar :is(#wp-admin-bar-wpseo-menu, #wp-admin-bar-avada) { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .public-home-toggle svg { transition: none; }
}

/* Keep the footer's grid cell while its own control floats above the page. */
.site-footer.public-site-footer .return-top-slot {
  grid-area: top;
  align-self: center;
  justify-self: start;
  display: grid;
  min-width: var(--return-slot-width, 0px);
  min-height: var(--return-slot-height, 0px);
}
.site-footer.public-site-footer .return-top-slot > .back-to-top { grid-area: 1 / 1; }
.site-footer.public-site-footer .back-to-top[data-return-floating] {
  position: fixed;
  inset: var(--return-y) auto auto var(--return-x);
  width: var(--return-w);
  height: var(--return-h);
  min-width: 0;
  min-height: 0;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: calc(14px * var(--return-dock));
  overflow: hidden;
  white-space: nowrap;
  border-radius: var(--return-radius);
  border-color: #777;
  color: #efefef;
  background: #070707;
  box-shadow: 0 3px 14px rgb(0 0 0 / var(--return-shadow));
  visibility: visible;
  pointer-events: auto;
}
.site-footer.public-site-footer .back-to-top[data-return-floating] > span {
  max-width: var(--return-label-width);
  overflow: hidden;
  opacity: var(--return-dock);
}
.site-footer.public-site-footer .back-to-top[data-return-floating]:is(:hover, :focus-visible, :active) {
  color: #070707;
  background: #16a085;
  border-color: #16a085;
}
.return-top-slot[data-return-muted] { visibility: hidden; }
body:has(.public-site-footer) #toTop { display: none !important; }


@media (max-width: 920px) {
  body.torrelles-configurator-ui .site-footer.public-site-footer {
    padding-block-end: calc(max(28px, env(safe-area-inset-bottom)) + var(--return-purchase-clearance, 0px));
  }
}
