/* Homepage candidate only. Load AFTER ux-polish.css; not deployed.
 * Original transparent logo: 1040 x 355, nonzero alpha begins at x=128.
 * At the existing 450px desktop width its safe-area inset is 55.384615px.
 * Keep the whole asset. Grid/padding, never cropping or negative offsets.
 */
@media (min-width: 901px) {
  body.entoma-home header.site-header > .nav {
    --logo-safe-inset: 55.384615px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 0;
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-top: 6px;
    padding-bottom: 0;
    padding-left: max(0px, calc((100% - 1320px) / 2 + 24px - var(--logo-safe-inset)));
    padding-right: max(24px, calc((100% - 1320px) / 2 + 24px));
  }
  body.entoma-home header.site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  body.entoma-home header.site-header .nav-actions { grid-column: 2; grid-row: 1; margin-left: 0; }
  body.entoma-home header.site-header .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    margin-top: 0;
    padding-left: var(--logo-safe-inset);
    gap: clamp(16px, 1.667vw, 24px);
  }

}
@media (max-width: 900px) {
  body.entoma-home header.site-header > .nav { padding-block: 6px; row-gap: 4px; }
}
/* Secondary urgency, not a competing primary CTA. Preserve original
 * button, accessible name, data-open-order handler and existing telephone links. */
body.entoma-home .panic-btn {
  width: auto;
  height: auto;
  min-height: 44px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  gap: 8px;
  border: 1px solid #c7d5ed;
  border-left: 3px solid #d57935;
  border-radius: 10px;
  background: #f6f9ff;
  color: #17366e;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  box-shadow: 0 2px 8px rgb(23 54 110 / 12%);
  animation: none;
  transform: none;
  transition: background-color .16s, border-color .16s;
}
body.entoma-home .panic-btn .panic-pulse { display: none; }
body.entoma-home .panic-btn .panic-txt { display: inline; }
body.entoma-home .panic-btn svg { width: 18px; height: 18px; color: #a9521c; }
body.entoma-home .panic-btn:hover { background: #edf3ff; border-color: #7395d7; color: #17366e; transform: none; box-shadow: 0 2px 8px rgb(23 54 110 / 12%); }
body.entoma-home .panic-btn:focus-visible { outline: 3px solid #386be0; outline-offset: 4px; }
@media (max-width: 700px) {
  /* The original button is a direct child of main. Normal flow reserves
   * its full touch target without obscuring forms, text or the footer. */
  body.entoma-home .panic-btn {
    position: static;
    inset: auto;
    display: flex;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    max-width: 100%;
    margin: 20px 0;
    z-index: auto;
  }
  body.entoma-home .panic-btn .panic-txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.entoma-home .panic-btn { transition: none; }
}
