/* industry-shared-header-equal-nav-001
   Shared public chrome on the four industry pages. Tight spacing.
   Does not change 01／02／03 form layout. */

[data-industry-workbench] {
  display: flex;
  flex-direction: column;
}

[data-industry-workbench] .industry-public-chrome,
[data-industry-public-chrome] {
  box-sizing: border-box;
  display: contents;
}

[data-industry-public-topbar] {
  order: 1;
}

[data-industry-workbench] .industry-public-actions {
  order: 2;
}

[data-industry-workbench] .homepage-peer-nav-host {
  order: 3;
}

[data-industry-workbench] .specialized-workbench-layout,
[data-industry-workbench] .site-footer {
  order: 4;
}

[data-industry-workbench] .industry-public-chrome .topbar,
[data-industry-public-chrome] .topbar {
  margin: 0;
}

[data-industry-workbench] .industry-public-actions {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 16px;
  min-height: 0;
}

[data-industry-workbench] a.industry-back-home {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #165536;
  border-radius: 8px;
  background: #fff;
  color: #165536;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

[data-industry-workbench] a.industry-back-home:hover,
[data-industry-workbench] a.industry-back-home:focus-visible {
  background: #edf5f1;
  color: #0f3f28;
  border-color: #0f3f28;
  outline: none;
}

[data-industry-workbench] a.industry-back-home:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, #165536 22%, transparent);
}

[data-industry-workbench] .industry-back-home__arrow {
  flex: 0 0 auto;
  font-size: 1em;
  line-height: 1;
  transform: translateY(-0.5px);
}

[data-industry-workbench] .homepage-peer-nav-host {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  padding-inline: 16px;
}

/* Phone: one outer 16px inset on the content column.
   Title, intro, industry strip, and card outer edges share it.
   Do not add a second side pad on hero / panel / type buttons. */
@media (max-width: 900px) {
  [data-industry-workbench] .specialized-workbench-main {
    box-sizing: border-box;
    min-width: 0;
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  #retail-root[data-industry-workbench] .restaurant-workspace-hero,
  #restaurant-root[data-industry-workbench] .restaurant-workspace-hero,
  #service-root[data-industry-workbench] .restaurant-workspace-hero,
  #rental-root[data-industry-workbench] .restaurant-workspace-hero,
  #retail-root[data-industry-workbench] .restaurant-panel,
  #restaurant-root[data-industry-workbench] .restaurant-panel,
  #service-root[data-industry-workbench] .restaurant-panel,
  #rental-root[data-industry-workbench] .restaurant-panel,
  #restaurant-root[data-industry-workbench] .restaurant-panel.restaurant-panel--calculator,
  #service-root[data-industry-workbench] .restaurant-panel.restaurant-panel--calculator,
  #retail-root[data-industry-workbench] .restaurant-panel.restaurant-panel--calculator {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [data-industry-workbench] .specialized-workbench-mobile-ad.is-active:not([hidden]) {
    margin-left: 0;
    margin-right: 0;
  }

  [data-industry-workbench] .homepage-industry-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
  }

  [data-industry-workbench] .homepage-industry-nav__grid {
    box-sizing: border-box !important;
    padding-inline: 0 !important;
  }

  [data-industry-workbench] .restaurant-workspace-titles,
  [data-industry-workbench] .restaurant-workspace-titles > h1,
  [data-industry-workbench] .restaurant-workspace-subtitle,
  [data-industry-workbench] .rental-workspace-switch {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

[data-industry-workbench] .homepage-industry-nav {
  margin: 8px 0 12px !important;
}

/* tools → selector → title/intro → content. Selector must not sit between title and operations. */
[data-industry-workbench] .homepage-industry-nav + .restaurant-workspace-hero,
[data-industry-workbench] .restaurant-workspace-hero {
  margin-top: 0;
  padding-top: 4px;
}

[data-industry-workbench] .restaurant-topbar,
[data-industry-workbench] .restaurant-topbar-row--prefs {
  display: none;
}

@media (max-width: 430px) {
  [data-industry-workbench] .industry-public-actions,
  [data-industry-workbench] .homepage-peer-nav-host {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
}
