/* Shared public header and footer: homepage appearance on every route. */
:root { --o360-header-height: 76px; }
header.nav.nav {
  height: var(--o360-header-height); min-height: var(--o360-header-height);
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(18px, 2.6vw, 44px);
  background: rgb(255 255 255 / 94%); color: #172234;
  border-bottom: 1px solid #e3e9f1; box-shadow: 0 8px 24px rgb(24 55 89 / 4%);
  backdrop-filter: blur(12px);
}
header.nav.nav .brand { flex-shrink: 0; }
header.nav.nav .nav-actions { margin-left: auto; flex-shrink: 0; }
header.nav.nav nav[aria-label="Primary navigation"] { gap: 4px; }
header.nav.nav nav[aria-label="Primary navigation"] a { margin-left: 0; font-size: 14px; color: #33465f; text-decoration: none; border-radius: 6px; }
header.nav.nav a:focus-visible,
header.nav.nav button:focus-visible,
footer.marketing-footer a:focus-visible { outline: 2px solid #176fff; outline-offset: 3px; }
header.nav.nav nav[aria-label="Primary navigation"] a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #176fff; }
@media (hover: hover) and (pointer: fine) {
  header.nav.nav nav[aria-label="Primary navigation"] a:hover,
  footer.marketing-footer nav a:hover,
  footer.marketing-footer > div a:hover { color: #fff; background: #176fff; text-decoration: none; }
}
footer.marketing-footer.marketing-footer {
  display: block; padding: 48px max(32px, calc((100vw - var(--o360-page-width)) / 2)) 80px;
  background: #f6f8fb; color: #172234; border-top: 1px solid #dce4ee;
}
footer.marketing-footer > section[aria-label="Operations360 resources"] {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start; gap: 32px; margin: 0; padding: 0;
}
footer.marketing-footer section[aria-label="Operations360"] {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
footer.marketing-footer section[aria-label="Operations360"] p {
  flex: 1 1 280px; max-width: none; margin: 0; color: #53687f;
  font-size: 14px; font-style: italic; line-height: 1.55;
}
footer.marketing-footer .brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; line-height: 1; }
footer.marketing-footer a[aria-label="Operations360 on Instagram (opens in a new tab)"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 12px; color: #4f6379; font-size: 14px; line-height: 1.5;
}
footer.marketing-footer a[aria-label*="Instagram"] svg { width: 20px; height: 20px; flex-shrink: 0; }
footer.marketing-footer nav { display: block; min-width: 0; }
footer.marketing-footer nav h2 { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #173a71; }
footer.marketing-footer nav ul { list-style: none; margin: 0; padding: 0; }
footer.marketing-footer nav li { margin: 0; padding: 0; }
footer.marketing-footer nav a,
footer.marketing-footer > div a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
  font-size: 14px; font-weight: 500; line-height: 1.5; color: #4f6379; overflow-wrap: anywhere;
}
footer.marketing-footer > div {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; margin: 32px 0 0; padding: 20px 0 0;
  border-top: 1px solid #dce4ee; color: #52667c; font-size: 14px;
}
@media (min-width: 1201px) {
  header.nav.nav nav[aria-label="Primary navigation"] { display: flex; }
  header.nav.nav nav[aria-label="Primary navigation"] a { display: inline-flex; align-items: center; padding: 8px 9px; white-space: nowrap; }
  header.nav.nav nav[aria-label="Primary navigation"] a > span:first-child { display: none; }
  header.nav.nav button[data-navigation-toggle] { display: none; }
}
@media (max-width: 1200px) {
  header.nav.nav { gap: 12px; backdrop-filter: none; }
  header.nav.nav button[data-navigation-toggle] { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; }
  header.nav.nav button[data-navigation-toggle][aria-expanded="true"] { background: #176fff; color: #fff; border-radius: 50%; }
  header.nav.nav nav[aria-label="Primary navigation"] {
    display: flex; position: fixed; inset: 76px auto auto 0; z-index: 2;
    width: min(300px, calc(100vw - 56px)); height: calc(100dvh - 88px);
    max-height: var(--menu-available-height, calc(100dvh - 88px));
    flex-direction: column; gap: 2px; padding: 8px 12px; overflow-y: auto;
    overscroll-behavior-y: contain; background: #fff; border: 0;
    box-shadow: 8px 12px 28px rgb(7 18 33 / 18%);
    transform: translateX(-105%); visibility: hidden;
  }
  header.nav.nav nav[aria-label="Primary navigation"][data-open="true"] { transform: translateX(0); visibility: visible; }
  header.nav.nav nav[aria-label="Primary navigation"] a { display: flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; padding: 6px 10px; white-space: normal; }
  header.nav.nav nav[aria-label="Primary navigation"] a[aria-current="page"] { background: #176fff; color: #fff; text-decoration: none; }
  header.nav.nav nav[aria-label="Primary navigation"] a > span:first-child { display: inline-flex; flex: 0 0 20px; }
  header.nav.nav nav[aria-label="Primary navigation"] a svg { width: 20px; height: 20px; }
  header.nav.nav > div[aria-hidden="true"] { display: block; position: fixed; inset: 76px 0 0; background: rgb(7 18 33 / 55%); z-index: 1; opacity: 0; visibility: hidden; }
  header.nav.nav:has(nav[data-open="true"]) > div[aria-hidden="true"] { opacity: 1; visibility: visible; }
}
@media (max-width: 700px) {
  footer.marketing-footer.marketing-footer { padding: 36px 24px 80px; }
  footer.marketing-footer > section[aria-label="Operations360 resources"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  footer.marketing-footer > div { flex-direction: column; align-items: flex-start; gap: 8px; }
}
/* In wide landscape layouts the consent card is beside the drawer, not below it. */
@media (min-width: 800px) and (max-width: 1200px) and (max-height: 500px) {
  header.nav.nav nav[aria-label="Primary navigation"] { max-height: calc(100dvh - 88px); }
}
@media (max-width: 380px) {
  footer.marketing-footer > section[aria-label="Operations360 resources"] { grid-template-columns: minmax(0, 1fr); }
}
