/* GlobaPlace 3.3 Batch M
   Wide publish polish:
   - Edge-to-edge page feel with controlled gutters.
   - No narrow fixed max-width containers for generated 3.3 content.
   - Hide internal implementation/runtime explanatory notes from public UI.
*/

:root {
  --gp-edge-gutter: clamp(22px, 3vw, 96px);
  --gp-wide-radius: 24px;
}

/* Global viewport discipline */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Main content: no fixed 1400/1480/1800px container limit */
.gp-shell,
.gp33-link-bridge,
.gp-contact-bridge,

.gp-footer-placebar-inner {
  width: auto !important;
  max-width: none !important;
  margin-left: var(--gp-edge-gutter) !important;
  margin-right: var(--gp-edge-gutter) !important;
}

/* Keep full-width backgrounds where components already use them */
.gp-page,
body {
  background-size: cover;
}

/* Generated hero / grids should use the available page width */
.gp-hero,
.gp-grid,
.gp-grid-2,
.gp-workspace-grid,
.gp-role-dashboard,
.gp-commerce-board,
.gp-thread-layout,
.gp-contact-flow {
  width: 100% !important;
  max-width: none !important;
}

/* Hero balance on wide screens */
@media (min-width: 1180px) {
  .gp-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr) !important;
  }

  .gp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gp-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp33-link-grid,
  .gp-contact-grid,
  .gp-commerce-grid,
  .gp-role-card-grid,
  .gp-work-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Very wide displays: still only controlled gutters, no centered box feeling */
@media (min-width: 1900px) {
  :root {
    --gp-edge-gutter: clamp(72px, 3vw, 120px);
  }

  .gp-title {
    max-width: 1500px;
  }

  .gp-lead {
    max-width: 1380px !important;
  }
}

/* Public UI cleanup:
   Hide internal implementation notes, runtime warnings and development labels.
   Technical release docs remain accessible under /_release/.
*/
.gp33-runtime-note,
.gp-chat-note,
.gp-work-note,
.gp-role-note,
.gp-commerce-note,
.gp-contact-note,
.gp-com-warning-box,
.gp-com-danger-box,
.gp-panel.gp-warning,
.gp-warning,
.gp33-existing-rubrics-note,
.gp33-removed-note {
  display: none !important;
}

/* Hide generated side badges like “UI shell only / no runtime”. */
.gp-hero-side .gp-meta,
.gp-side-text + .gp-meta {
  display: none !important;
}

/* Avoid public “disabled composer” looking like broken functionality */
.gp-chat-mini-composer,
.gp-thread-composer,
.gp-contact-thread-preview textarea,
.gp-contact-thread-preview button {
  display: none !important;
}

/* Floating chat remains available but less intrusive */
.gp-chat-launcher {
  right: var(--gp-edge-gutter) !important;
  bottom: 22px !important;
}

/* Better mobile gutters */
@media (max-width: 760px) {
  :root {
    --gp-edge-gutter: 14px;
  }

  .gp-shell,
  .gp33-link-bridge,
  .gp-contact-bridge,
  
          .gp-footer-placebar-inner {
    margin-left: var(--gp-edge-gutter) !important;
    margin-right: var(--gp-edge-gutter) !important;
    width: auto !important;
  }

  .gp-hero {
    grid-template-columns: 1fr !important;
  }
}


/* GP Hamburger Cascade U12 CSS START */

body .gp-uh-shell details.gp-header-place-menu {
  position: relative !important;
}

body .gp-uh-shell details.gp-header-place-menu > summary {
  cursor: pointer !important;
  list-style: none !important;
}

body .gp-uh-shell details.gp-header-place-menu > summary::-webkit-details-marker {
  display: none !important;
}

body .gp-uh-shell details.gp-header-place-menu > nav {
  display: none !important;
  position: fixed !important;
  top: var(--gp-cascade-top, 128px) !important;
  left: 3vw !important;
  right: 3vw !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: calc(100vh - var(--gp-cascade-top, 128px) - 20px) !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(21,22,17,.14) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 34px 120px rgba(21,22,17,.28) !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

body .gp-uh-shell details.gp-header-place-menu:hover > nav,
body .gp-uh-shell details.gp-header-place-menu:focus-within > nav,
body .gp-uh-shell details.gp-header-place-menu[open] > nav,
body .gp-uh-shell details.gp-header-place-menu[data-gp-cascade-hover-open="1"] > nav {
  display: block !important;
}

body .gp-uh-shell details.gp-header-place-menu > nav *,
body .gp-uh-shell details.gp-header-place-menu > nav *::before,
body .gp-uh-shell details.gp-header-place-menu > nav *::after {
  box-sizing: border-box !important;
  white-space: normal !important;
}

.gp-cascade-menu {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  width: 100%;
  max-height: calc(100vh - var(--gp-cascade-top, 128px) - 20px);
  background: #fff;
  color: #11120f;
}

.gp-cascade-rail {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  overflow: auto;
  border-right: 1px solid rgba(17,18,15,.10);
  background: #f3f0e7;
}

.gp-cascade-rail-title {
  display: block;
  margin-bottom: 8px;
  color: rgba(17,18,15,.72);
  opacity: 1;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gp-cascade-dept,
a.gp-cascade-dept,
.gp-cascade-dept:link,
.gp-cascade-dept:visited {
  display: grid !important;
  gap: 4px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(17,18,15,.12) !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: #11120f !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: 0 8px 24px rgba(17,18,15,.045) !important;
}

.gp-cascade-dept:hover,
.gp-cascade-dept:focus,
.gp-cascade-dept.is-active {
  background: #fff8d7 !important;
  border-color: rgba(243,200,15,.78) !important;
  color: #11120f !important;
  box-shadow: 0 12px 32px rgba(17,18,15,.075) !important;
}

.gp-cascade-dept span {
  display: block !important;
  color: #11120f !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
}

.gp-cascade-dept small {
  display: block !important;
  color: rgba(17,18,15,.62) !important;
  opacity: 1 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
}

.gp-cascade-stage {
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: auto;
  max-height: calc(100vh - var(--gp-cascade-top, 128px) - 20px);
}

.gp-cascade-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(243,200,15,.42);
  background: radial-gradient(circle at 0% 0%, rgba(243,200,15,.22), transparent 38%), linear-gradient(135deg, #fff, #fff8d2);
}

.gp-cascade-head strong {
  display: block;
  color: #11120f;
  font-size: clamp(24px, 2.1vw, 38px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.gp-cascade-head span {
  display: block;
  margin-top: 6px;
  color: rgba(17,18,15,.64);
  font-size: 13px;
  line-height: 1.35;
}

.gp-cascade-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #11120f;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.gp-cascade-recommended,
.gp-cascade-col {
  display: grid;
  gap: 10px;
}

.gp-cascade-recommended h3,
.gp-cascade-col h3 {
  margin: 0;
  color: #11120f;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.gp-cascade-recommended > div,
.gp-cascade-brand-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gp-cascade-recommended a {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
  padding: 10px;
  border: 1px solid rgba(17,18,15,.10);
  border-radius: 18px;
  background: #fff;
  color: #11120f;
  text-decoration: none;
}

.gp-cascade-recommended a:hover,
.gp-cascade-col a:hover {
  background: #fff8d7;
  border-color: rgba(243,200,15,.58);
}

.gp-cascade-thumb {
  display: block;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(17,18,15,.08);
  background: linear-gradient(135deg, rgba(243,200,15,.34), rgba(255,255,255,.94)), repeating-linear-gradient(45deg, rgba(17,18,15,.05) 0 6px, transparent 6px 12px);
}

.gp-cascade-recommended strong {
  font-size: 12px;
  line-height: 1.15;
}

.gp-cascade-brand-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px;
  border-radius: 16px;
  background: #11120f;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.gp-cascade-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gp-cascade-col {
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(17,18,15,.10);
  border-radius: 20px;
  background: #fff;
}

.gp-cascade-col a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid rgba(17,18,15,.08);
  color: #11120f;
  text-decoration: none;
}

.gp-cascade-col a strong {
  font-size: 13px;
  line-height: 1.16;
}

.gp-cascade-col a small {
  color: rgba(17,18,15,.58);
  font-size: 11.5px;
  line-height: 1.28;
}

.gp-uh-search select {
  min-width: 118px !important;
  height: 100% !important;
  padding-left: 16px !important;
  padding-right: 34px !important;
  text-align: center !important;
  text-align-last: center !important;
  -moz-text-align-last: center !important;
  background-position: right 12px center !important;
}

.gp-uh-search select option {
  text-align: center !important;
}

@media (max-width: 1180px) {
  .gp-cascade-menu {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .gp-cascade-recommended > div,
  .gp-cascade-brand-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gp-cascade-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body .gp-uh-shell details.gp-header-place-menu > nav {
    top: var(--gp-cascade-top, 96px) !important;
    left: 12px !important;
    right: 12px !important;
  }

  .gp-cascade-menu {
    grid-template-columns: 1fr;
  }

  .gp-cascade-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(17,18,15,.10);
  }

  .gp-cascade-rail-title {
    display: none;
  }

  .gp-cascade-dept {
    min-width: 190px;
  }

  .gp-cascade-recommended > div,
  .gp-cascade-brand-row,
  .gp-cascade-columns {
    grid-template-columns: 1fr;
  }
}

/* GP Hamburger Cascade U12 CSS END */


/* GP Cascade Rail Hard Visibility U13 START */

/*
  Final late-loaded visibility guard for the hamburger left rail.
  It only affects the cascade panel and does not touch Change Place or footer.
*/

html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail {
  background: #f3f0e7 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept,
html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail .gp-cascade-dept,
html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail .gp-cascade-dept:link,
html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail .gp-cascade-dept:visited {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #11120f !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(17,18,15,.18) !important;
  box-shadow: 0 8px 24px rgba(17,18,15,.06) !important;
  text-decoration: none !important;
  transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept:hover,
html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept:focus,
html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept.is-active {
  background-color: #fff8d7 !important;
  border-color: rgba(243,200,15,.82) !important;
  color: #11120f !important;
}

html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept span,
html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept small {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #11120f !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

html body .gp-uh-shell details.gp-header-place-menu > nav .gp-cascade-rail a.gp-cascade-dept small {
  color: rgba(17,18,15,.65) !important;
}

/* GP Cascade Rail Hard Visibility U13 END */

