/* peroFleet shared application topbar geometry · v1.42.1 */
:root{
  --pf-app-header-height:140px;
  --pf-app-header-stack-height:90px;
}

@media (min-width:901px){
  body > .pf-app-header,
  body > .shell:not(.legal-shell) > .pf-app-header{
    height:var(--pf-app-header-height);
    min-height:var(--pf-app-header-height);
    padding:22px var(--page-gutter);
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    border-bottom:3px solid var(--brand,var(--accent,#800000));
    box-shadow:0 2px 10px rgba(0,0,0,.06);
  }

  body > .pf-app-header > div:first-child,
  body > .shell:not(.legal-shell) > .pf-app-header > div:first-child{
    min-height:var(--pf-app-header-stack-height);
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    min-width:0;
  }

  body > .pf-app-header h1,
  body > .shell:not(.legal-shell) > .pf-app-header h1{
    margin:3px 0 0;
    font-size:clamp(30px,4vw,50px);
    line-height:1.05;
    letter-spacing:-.035em;
    color:#222;
  }

  body > .pf-app-header .eyebrow,
  body > .shell:not(.legal-shell) > .pf-app-header .eyebrow{
    color:var(--brand,var(--accent,#800000));
    text-transform:uppercase;
    letter-spacing:.18em;
    font-size:11px;
    line-height:1.35;
    font-weight:800;
  }

  body > .pf-app-header h1 + p,
  body > .pf-app-header h1 + .eyebrow,
  body > .shell:not(.legal-shell) > .pf-app-header h1 + p,
  body > .shell:not(.legal-shell) > .pf-app-header h1 + .eyebrow{
    margin-top:5px;
  }

  body > .pf-app-header > div:last-child,
  body > .shell:not(.legal-shell) > .pf-app-header > div:last-child{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:40px;
  }

  /* Public pages live inside a padded shell. Pull only the app header back to
     viewport edges so Fleet Map, My Cockpit and Admin start at identical X/Y. */
  body > .shell:not(.legal-shell) > .pf-app-header{
    width:calc(100% + (2 * var(--page-gutter)));
    margin:-24px calc(-1 * var(--page-gutter)) 24px;
  }
}
