/**
 * TangramFood UI Foundation v1.1 - executable base.
 *
 * Product authority:
 * - TANGRAMFOOD_UI_FOUNDATION_v1.1 (Drive)
 * - UX-MASTER-001 / TF-PROD-ARCH-003
 *
 * Executable owner:
 * - Theme global visual layer.
 *
 * Canonical scope:
 * - approved global colour and semantic tokens;
 * - approved typography tokens;
 * - approved spacing, radius and shadow scales;
 * - approved content containers and responsive page gutter;
 * - PageFrame and global shell width primitives.
 *
 * Not owned here:
 * - component-specific presentation (Plugin UI);
 * - domain or persistence behavior (tf-core);
 * - RCP/Stripe behavior;
 * - page-specific rescue CSS.
 */

:root {
  --tf-font-family-base: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --tf-font-weight-regular: 400;
  --tf-font-weight-medium: 500;
  --tf-font-weight-semibold: 600;
  --tf-font-weight-bold: 700;
  --tf-font-weight-extrabold: 800;

  --tf-font-size-display: clamp(2.625rem, 1.9rem + 3vw, 4.75rem);
  --tf-font-size-h1: clamp(2rem, 1.7rem + 1.3vw, 3rem);
  --tf-font-size-h2: clamp(1.6875rem, 1.45rem + 1vw, 2.375rem);
  --tf-font-size-h3: clamp(1.4375rem, 1.3rem + 0.6vw, 1.875rem);
  --tf-font-size-h4: clamp(1.25rem, 1.18rem + 0.3vw, 1.5rem);
  --tf-font-size-h5: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --tf-font-size-h6: 1rem;
  --tf-font-size-body-lg: 1.125rem;
  --tf-font-size-body: 1rem;
  --tf-font-size-body-sm: 0.875rem;
  --tf-font-size-caption: 0.8125rem;
  --tf-line-height-heading: 1.15;
  --tf-line-height-body: 1.6;

  --tf-space-0: 0;
  --tf-space-1: 4px;
  --tf-space-2: 8px;
  --tf-space-3: 12px;
  --tf-space-4: 16px;
  --tf-space-5: 24px;
  --tf-space-6: 32px;
  --tf-space-7: 40px;
  --tf-space-8: 48px;
  --tf-space-9: 64px;
  --tf-space-10: 80px;
  --tf-space-11: 96px;
  --tf-space-12: 120px;

  --tf-container-sm: 720px;
  --tf-container-md: 960px;
  --tf-container-lg: 1160px;
  --tf-container-xl: 1280px;

  --tf-page-gutter: clamp(16px, 4vw, 32px);

  --tf-color-brand: #C44A12;
  --tf-color-on-brand: #FFFFFF;

  --tf-color-canvas: #F7F8FA;
  --tf-color-surface: #FFFFFF;

  --tf-color-text: #1B1F24;
  --tf-color-heading: #111418;
  --tf-color-muted: #5C6673;

  --tf-color-border: #C9D1D9;
  --tf-color-border-strong: #7F8A9B;
  --tf-color-focus: #005FCC;

  --tf-color-success: #147A3D;
  --tf-color-warning: #9A6700;
  --tf-color-danger: #B42318;
  --tf-color-info: #0B63CE;

  --tf-focus-ring-width: 3px;
  --tf-focus-ring-offset: 2px;

  --tf-radius-none: 0;
  --tf-radius-sm: 4px;
  --tf-radius-md: 8px;
  --tf-radius-lg: 12px;
  --tf-radius-xl: 16px;
  --tf-radius-pill: 999px;

  --tf-shadow-none: none;
  --tf-shadow-sm: 0 1px 2px rgba(17, 20, 24, 0.08);
  --tf-shadow-md: 0 4px 12px rgba(17, 20, 24, 0.10);
  --tf-shadow-lg: 0 12px 28px rgba(17, 20, 24, 0.14);
  --tf-shadow-overlay: 0 18px 48px rgba(17, 20, 24, 0.18);
}

/*
 * PageFrame keeps the approved content width inside the approved responsive
 * gutter. The container variant is selected by content density, never by
 * route or page id.
 */
.tf-page-frame {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: calc(
    var(--tf-container-lg) +
    var(--tf-page-gutter) +
    var(--tf-page-gutter)
  );
  margin-inline: auto;
  padding-inline: var(--tf-page-gutter);
}

.tf-page-frame--sm {
  max-width: calc(
    var(--tf-container-sm) +
    var(--tf-page-gutter) +
    var(--tf-page-gutter)
  );
}

.tf-page-frame--md {
  max-width: calc(
    var(--tf-container-md) +
    var(--tf-page-gutter) +
    var(--tf-page-gutter)
  );
}

.tf-page-frame--lg {
  max-width: calc(
    var(--tf-container-lg) +
    var(--tf-page-gutter) +
    var(--tf-page-gutter)
  );
}

.tf-page-frame--xl {
  max-width: calc(
    var(--tf-container-xl) +
    var(--tf-page-gutter) +
    var(--tf-page-gutter)
  );
}


/*
 * Global shell width invariant.
 *
 * Preserve the runtime sizing correction previously carried by the retired
 * tf-shell-structure layer without retaining any legacy selector or owner.
 * GeneratePress flex/grid children must be allowed to shrink; component-local
 * horizontal scrolling remains the responsibility of the component owner.
 */
body.tf-shell-app .site-content,
body.tf-shell-public .site-content {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

body.tf-shell-app .site-content > *,
body.tf-shell-public .site-content > * {
  min-width: 0;
}

/* Canonical private application shell canvas preserved from the retired legacy bleed-fix layer. */
body.tf-shell-app {
  background: #dedbd8 !important;
}

/* === TF GLOBAL PRIVATE APPLICATION HEADER START ===
 * One Theme-owned application bar for every authenticated private view.
 */
body.tf-shell-app .gp-header {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 4px var(--tf-page-gutter) !important;
  background: var(--tf-color-brand);
}

body.tf-shell-app .gp-header > .gb-container {
  box-sizing: border-box;
  width: min(100%, var(--tf-container-xl));
  min-width: 0;
  min-height: 56px;
  max-height: 64px;
  margin-inline: auto;
  padding: 0 var(--tf-space-4) !important;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tf-space-4);
  overflow: visible;
  background: var(--tf-color-surface);
  border-radius: var(--tf-radius-md);
}

body.tf-shell-app .gp-header .idioma-tangram-logo {
  min-width: 0;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--tf-space-3);
  overflow: visible;
}

/*
 * Canonical private brand presentation.
 * Keep the real WordPress logo visible from one Theme-owned source regardless
 * of whether GenerateBlocks exposes the wrapper as .site-logo or
 * .wp-block-site-logo. Legacy app-logo rules in style.css are retired.
 */
body.tf-shell-app .gp-header .idioma-tangram-logo .site-logo,
body.tf-shell-app .gp-header .idioma-tangram-logo .site-logo a,
body.tf-shell-app .gp-header .idioma-tangram-logo .wp-block-site-logo,
body.tf-shell-app .gp-header .idioma-tangram-logo .custom-logo-link {
  display: inline-flex !important;
  flex: 0 0 104px;
  align-items: center;
  justify-content: flex-start;
  width: 104px !important;
  max-width: 104px !important;
  min-width: 104px;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  mix-blend-mode: normal !important;
  overflow: visible;
}

body.tf-shell-app .gp-header .idioma-tangram-logo .site-logo img,
body.tf-shell-app .gp-header .idioma-tangram-logo img.header-image,
body.tf-shell-app .gp-header .idioma-tangram-logo img.custom-logo,
body.tf-shell-app .gp-header .idioma-tangram-logo .wp-block-site-logo img {
  display: block !important;
  width: 104px !important;
  max-width: 104px !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain;
  object-position: left center;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  mix-blend-mode: normal !important;
}

body.tf-shell-app .gp-header .wpml-language-switcher-block {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  overflow: visible;
}

body.tf-shell-app .gp-header .wpml-language-switcher-block .wp-block-navigation__submenu-container {
  min-width: 132px;
  z-index: 60;
  padding: var(--tf-space-2);
  background: var(--tf-color-surface);
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-radius-md);
  box-shadow: var(--tf-shadow-md);
}

body.tf-shell-app .gp-header .wp-block-navigation:not(.wpml-language-switcher-block) {
  min-width: 0;
  flex: 1 1 auto;
}

body.tf-shell-app .gp-header .wp-block-navigation__container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--tf-space-1);
}

body.tf-shell-app .gp-header .wp-block-navigation-item {
  position: relative;
}

body.tf-shell-app .gp-header .wp-block-navigation-item__content {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: var(--tf-space-2) var(--tf-space-3);
  border-radius: var(--tf-radius-md);
  color: var(--tf-color-text);
  font-weight: var(--tf-font-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

body.tf-shell-app .gp-header .current-menu-item > .wp-block-navigation-item__content,
body.tf-shell-app .gp-header .current-menu-ancestor > .wp-block-navigation-item__content,
body.tf-shell-app .gp-header .tfv3-active-section > .wp-block-navigation-item__content,
body.tf-shell-app .gp-header .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--tf-color-brand);
  background: var(--tf-color-canvas);
  box-shadow: inset 0 -2px 0 var(--tf-color-brand);
}

body.tf-shell-app .gp-header .wp-block-navigation-item__content:focus-visible,
body.tf-shell-app .gp-header .wp-block-navigation:not(.wpml-language-switcher-block) .wp-block-navigation__responsive-container-open:focus-visible,
body.tf-shell-app .gp-header .tfv3-account-mobile-toggle:focus-visible,
body.tf-shell-app .gp-header .wpml-language-switcher-block a:focus-visible,
body.tf-shell-app .gp-header .wpml-language-switcher-block button:focus-visible {
  outline: var(--tf-focus-ring-width) solid var(--tf-color-focus);
  outline-offset: var(--tf-focus-ring-offset);
}

body.tf-shell-app .gp-header .wp-block-navigation__submenu-container {
  min-width: 220px;
  padding: var(--tf-space-2);
  background: var(--tf-color-surface);
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-radius-md);
  box-shadow: var(--tf-shadow-md);
}

body.tf-shell-app .gp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  width: 100%;
  min-height: 38px;
}

body.tf-shell-app .gp-header .tfv3-account-logout .wp-block-navigation-item__content {
  color: var(--tf-color-danger);
}

body.tf-shell-app .gp-header .tfv3-account-mobile-toggle {
  display: none;
}

body.tf-shell-app.single-centro,
body.tf-shell-app.single-centro #page,
body.tf-shell-app.single-centro .site,
body.tf-shell-app.single-centro #content,
body.tf-shell-app.single-centro .site-content,
body.tf-shell-app.single-centro .content-area,
body.tf-shell-app.single-centro .site-main {
  background: var(--tf-color-canvas) !important;
}

body.tf-shell-app.single-centro .site {
  width: 100% !important;
  max-width: none !important;
}

body.tf-shell-app.single-centro .site-content {
  width: min(calc(100% - 12px), 1480px) !important;
  max-width: 1480px !important;
  min-width: 0;
  margin: 16px auto 40px !important;
  padding: 0 !important;
}

/* Single Centro shell intrinsic-width containment: Planner overflow belongs to local scrollers. */
body.tf-shell-app.single-centro .content-area,
body.tf-shell-app.single-centro .site-main,
body.tf-shell-app.single-centro .inside-article,
body.tf-shell-app.single-centro .entry-content {
  min-width: 0;
}

body.tf-shell-app.single-centro .inside-article {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(8px, 1.25vw, 16px) !important;
  box-sizing: border-box;
  border-radius: 14px !important;
  background: var(--tf-color-surface) !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
  overflow: clip;
}

body.tf-shell-app.single-centro article.centro {
  background: transparent !important;
}

body.tf-shell-app.single-centro .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  background: var(--tf-color-surface) !important;
}

@media (max-width: 1024px) {
  body.tf-shell-app .gp-header {
    padding: 4px var(--tf-space-2) !important;
  }

  body.tf-shell-app .gp-header > .gb-container {
    min-height: 52px;
    max-height: 60px;
    padding: 4px var(--tf-space-2) !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--tf-space-1);
  }

  body.tf-shell-app .gp-header .idioma-tangram-logo {
    width: auto;
    min-width: max-content;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: var(--tf-space-1);
  }

  body.tf-shell-app .gp-header .idioma-tangram-logo .site-logo,
  body.tf-shell-app .gp-header .idioma-tangram-logo .site-logo a,
  body.tf-shell-app .gp-header .idioma-tangram-logo .wp-block-site-logo,
  body.tf-shell-app .gp-header .idioma-tangram-logo .custom-logo-link {
    flex: 0 0 88px;
    width: 88px !important;
    max-width: 88px !important;
    min-width: 88px;
  }

  body.tf-shell-app .gp-header .idioma-tangram-logo .site-logo img,
  body.tf-shell-app .gp-header .idioma-tangram-logo img.header-image,
  body.tf-shell-app .gp-header .idioma-tangram-logo img.custom-logo,
  body.tf-shell-app .gp-header .idioma-tangram-logo .wp-block-site-logo img {
    width: 88px !important;
    max-width: 88px !important;
  }

  body.tf-shell-app .gp-header .wpml-language-switcher-block {
    width: auto !important;
    min-width: 0;
    margin-left: auto;
  }

  body.tf-shell-app
    .gp-header
    nav.wp-block-navigation:not(.wpml-language-switcher-block) {
    /* WordPress also gives the inner ul this class; only nav owns the toggle slot. */
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: var(--tf-color-text);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    align-items: stretch;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  body.tf-shell-app .gp-header {
    position: relative;
    z-index: 100;
    padding: 0 !important;
    background: var(--tf-color-surface);
  }

  body.tf-shell-app .gp-header > .gb-container {
    width: 100%;
    min-height: 64px;
    max-height: 64px;
    padding: 0 20px !important;
    border-radius: 0;
    gap: var(--tf-space-2);
    background: var(--tf-color-surface);
  }

  body.tf-shell-app .gp-header .idioma-tangram-logo {
    position: relative;
    z-index: 100001;
    /* Keep logo + WPML intrinsic width ahead of the fixed 44px Core trigger. */
    min-width: max-content;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open {
    box-sizing: border-box;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 64px 20px 24px;
    /* WordPress Core owns vertical scrolling for the mobile overlay. */
    overflow-x: hidden;
    background: var(--tf-color-surface);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-dialog {
    height: 100%;
    min-height: 0;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container-close {
    position: absolute;
    top: 10px;
    right: 20px;
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--tf-color-text);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    padding: 0 0 16px;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
    gap: 2px;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item {
    width: 100%;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content,
  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .tfv3-account-mobile-toggle {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    justify-content: flex-start;
    color: var(--tf-color-text);
    background: transparent;
    font-size: 16px;
    font-weight: var(--tf-font-weight-semibold);
    line-height: 1.3;
    text-align: left;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    :is(
      .current-menu-item,
      .tfv3-active-section
    ) > .wp-block-navigation-item__content,
  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content[aria-current="page"] {
    color: var(--tf-color-brand);
    background: color-mix(in srgb, var(--tf-color-brand) 12%, transparent);
    box-shadow: inset 3px 0 0 var(--tf-color-brand);
    font-weight: var(--tf-font-weight-bold);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .current-menu-ancestor > .wp-block-navigation-item__content {
    color: var(--tf-color-text);
    background: transparent;
    box-shadow: none;
    font-weight: var(--tf-font-weight-bold);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .wp-block-navigation-item__content {
    grid-column: 1;
    grid-row: 1;
    min-height: 44px;
    font-weight: var(--tf-font-weight-bold);
    pointer-events: none;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .wp-block-navigation-submenu__toggle {
    display: none !important;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .tfv3-account-mobile-toggle {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-right: 14px;
    color: transparent;
    cursor: pointer;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .tfv3-account-mobile-toggle::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid var(--tf-color-text);
    border-bottom: 2px solid var(--tf-color-text);
    transform: rotate(45deg);
    transform-origin: center;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .tfv3-account-mobile-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .wp-block-navigation__submenu-container {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 4px 0 2px;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    background: var(--tf-color-canvas);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .tfv3-account-mobile-toggle[aria-expanded="false"]
    ~ .wp-block-navigation__submenu-container {
    display: none !important;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu > .tfv3-account-mobile-toggle[aria-expanded="true"]
    ~ .wp-block-navigation__submenu-container {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content {
    min-height: 44px;
    padding-left: calc(var(--tf-space-3) + 16px);
    color: var(--tf-color-muted);
    font-size: 15px;
    font-weight: var(--tf-font-weight-medium);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu
    .wp-block-navigation__submenu-container
    :is(.current-menu-item, .tfv3-active-section)
    > .wp-block-navigation-item__content,
  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-submenu
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content[aria-current="page"] {
    color: var(--tf-color-brand);
    background: color-mix(in srgb, var(--tf-color-brand) 12%, transparent);
    box-shadow: inset 3px 0 0 var(--tf-color-brand);
    font-weight: var(--tf-font-weight-bold);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-logout {
    position: relative;
    margin-top: 8px;
    padding-top: 8px;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-logout::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-top: 1px solid var(--tf-color-border);
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open
    .tfv3-account-logout .wp-block-navigation-item__content {
    color: var(--tf-color-danger);
    background: color-mix(in srgb, var(--tf-color-danger) 6%, transparent);
    font-weight: var(--tf-font-weight-bold);
  }
}

@media (max-width: 340px) {
  body.tf-shell-app .gp-header > .gb-container {
    padding-inline: 16px !important;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container.is-menu-open {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.tf-shell-app
    .gp-header
    .wp-block-navigation:not(.wpml-language-switcher-block)
    .wp-block-navigation__responsive-container-close {
    right: 16px;
  }
}

/* === TF GLOBAL PRIVATE APPLICATION HEADER END === */

/* === TF GLOBAL FOOTER GP ELEMENT OWNER START === */
/*
 * One logical GlobalFooter across public, authentication and private surfaces.
 * Markup owner: GeneratePress Element ES/CA logical pair.
 * Visual owner: Theme Foundation.
 */
body:not(.wp-admin) .site-footer {
  margin-top: 0;
  background: var(--tf-color-brand) !important;
  color: var(--tf-color-on-brand) !important;
  border-top: 0;
}

body:not(.wp-admin) .site-footer .gb-container-a0c82770.alignfull {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--tf-space-9) var(--tf-page-gutter) !important;
  background: var(--tf-color-brand) !important;
  color: var(--tf-color-on-brand) !important;
}

body:not(.wp-admin) .site-footer .gb-container-16f7095f {
  box-sizing: border-box;
  width: min(100%, var(--tf-container-xl)) !important;
  max-width: var(--tf-container-xl) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(160px, .85fr)) !important;
  gap: var(--tf-space-7) var(--tf-space-8) !important;
  align-items: start !important;
}

body:not(.wp-admin) .site-footer .gb-container-16f7095f > .gb-container {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(.wp-admin) .site-footer h2,
body:not(.wp-admin) .site-footer .gb-headline-094ac5ed {
  margin: 0 0 var(--tf-space-4) !important;
  color: var(--tf-color-on-brand) !important;
  font-family: var(--tf-font-family-base) !important;
  font-size: var(--tf-font-size-h5) !important;
  line-height: var(--tf-line-height-heading) !important;
  font-weight: var(--tf-font-weight-extrabold) !important;
}

body:not(.wp-admin) .site-footer p,
body:not(.wp-admin) .site-footer .gb-headline,
body:not(.wp-admin) .site-footer li,
body:not(.wp-admin) .site-footer a {
  color: var(--tf-color-on-brand) !important;
  font-family: var(--tf-font-family-base) !important;
  font-size: var(--tf-font-size-body-sm) !important;
  line-height: var(--tf-line-height-body) !important;
}

body:not(.wp-admin) .site-footer p,
body:not(.wp-admin) .site-footer li {
  opacity: .9;
}

body:not(.wp-admin) .site-footer a {
  text-decoration: none !important;
  text-underline-offset: .2em;
}

body:not(.wp-admin) .site-footer a:hover,
body:not(.wp-admin) .site-footer a:focus-visible {
  color: var(--tf-color-on-brand) !important;
  text-decoration: underline !important;
}

body:not(.wp-admin) .site-footer a:focus-visible {
  outline: var(--tf-focus-ring-width) solid var(--tf-color-focus);
  outline-offset: var(--tf-focus-ring-offset);
}

body:not(.wp-admin) .site-footer figure,
body:not(.wp-admin) .site-footer .wp-block-image {
  margin: 0 0 var(--tf-space-4) !important;
}

body:not(.wp-admin) .site-footer img {
  max-width: min(180px, 100%) !important;
  height: auto !important;
}

body:not(.wp-admin) .site-footer .gb-container-a76f8f47 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: var(--tf-space-2) var(--tf-space-4) !important;
  margin-top: var(--tf-space-3) !important;
}

body:not(.wp-admin) .site-footer .gb-container-a76f8f47 .gb-headline {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--tf-space-2) !important;
  margin: 0 !important;
  font-weight: var(--tf-font-weight-bold) !important;
}

body:not(.wp-admin) .site-footer .gb-icon {
  color: var(--tf-color-on-brand) !important;
}

@media (max-width: 980px) {
  body:not(.wp-admin) .site-footer .gb-container-16f7095f {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--tf-space-6) var(--tf-space-7) !important;
  }

  body:not(.wp-admin) .site-footer .gb-container-f72665c6 {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  body:not(.wp-admin) .site-footer .gb-container-a0c82770.alignfull {
    padding: var(--tf-space-6) var(--tf-page-gutter) !important;
  }

  body:not(.wp-admin) .site-footer .gb-container-16f7095f {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--tf-space-5) var(--tf-space-4) !important;
  }

  body:not(.wp-admin) .site-footer h2,
  body:not(.wp-admin) .site-footer .gb-headline-094ac5ed {
    margin-bottom: var(--tf-space-2) !important;
  }

  body:not(.wp-admin) .site-footer .gb-container-f72665c6 {
    grid-column: 1 / -1 !important;
  }

  body:not(.wp-admin) .site-footer img {
    max-width: min(140px, 100%) !important;
  }
}

@media (max-width: 420px) {
  body:not(.wp-admin) .site-footer .gb-container-16f7095f {
    grid-template-columns: 1fr !important;
  }
}
/* === TF GLOBAL FOOTER GP ELEMENT OWNER END === */
