/* Lois Law Firm branding (loiscp.com proof of concept). Loaded after
   portal.css and the role stylesheet. Colors taken from loisllc.com:
   navy #295267 (headings, buttons), steel blue #5d819d (logo block, links),
   orange #f7941e (accent). Header only for now. */
:root {
  --brand-navy: #295267;
  --brand-steel: #5d819d;
  --brand-orange: #f7941e;
  --brand-on-navy: #ffffff;
  --brand-on-navy-muted: #ffffff;   /* plain white: the light tint is too faint on steel blue */
}

/* Whole bar in the logo tile's steel blue (Paolo's choice, 27 Oct 2026) */
.site-header { background: var(--brand-steel); border-bottom: 3px solid var(--brand-orange); }
/* Bar = logo + 5px above and below (76 + 10 = 86px, plus the 3px orange line) */
.site-header .inner { padding-top: 5px; padding-bottom: 5px; }

.brand { display: flex; align-items: center; gap: .9rem; color: var(--brand-on-navy); }
.brand img { display: block; height: 76px; width: auto; }
.brand span { color: var(--brand-on-navy-muted); font-weight: 400; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; border-left: 1px solid rgba(255, 255, 255, .35); padding-left: .85rem; }

/* Logo and CLIENT PORTAL on the left, menu and user pushed to the right, menu on one line on desktop */
nav.main { gap: .25rem; margin-left: auto; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1000px) {
  nav.main { flex-wrap: wrap; white-space: normal; justify-content: flex-start; margin-left: 0; }
}
/* Same style as "CLIENT PORTAL": regular weight, wide letter spacing (larger size) */
nav.main a { color: var(--brand-on-navy); text-transform: uppercase; font-size: 1rem; font-weight: 400; letter-spacing: .08em;
  padding: .35rem .6rem; }
nav.main a { border-radius: 0; }
nav.main a:hover { background: rgba(255, 255, 255, .12); color: var(--brand-on-navy); }
/* Current page: square box with a thicker orange underline */
nav.main a.active { background: rgba(255, 255, 255, .16); color: var(--brand-on-navy);
  box-shadow: inset 0 -4px 0 var(--brand-orange); }

.user-chip { color: var(--brand-on-navy-muted); }
.site-header .btn { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--brand-on-navy); }
.site-header .btn:hover { background: rgba(255, 255, 255, .12); }

/* Pages without a menu (sign-in and other signed-out pages): logo + CLIENT PORTAL centered */
.site-header .inner:not(:has(nav.main a)) { justify-content: center; }
/* Signed out there is no role stripe; its empty 4px would look like extra padding above the logo */
body:not([class]) .site-header { border-top: 0; }
.site-header .inner:not(:has(nav.main a)) nav.main,
.site-header .user-chip:not(:has(*)) { display: none; }

/* Sign-in box and other small forms: sit lower, not right under the bar */
main.narrow { padding-top: max(1.75rem, 10vh); }

/* Footer as on loisllc.com: dark gray with light gray text */
.site-footer { background: #252525; border-top: 0; }
.site-footer .inner { color: #979797; }
.site-footer a { color: #b9cbd8; }

@media (max-width: 600px) {
  .site-header .inner { padding-top: 5px; padding-bottom: 5px; }
  .brand img { height: 52px; }
  .brand span { font-size: .72rem; padding-left: .6rem; }
}
