/*
 * The site header and footer: shared by the app and Setup (Django admin), so
 * they look identical everywhere. Self-contained: no variables or classes from
 * app.css or the admin's stylesheets, and specific enough to beat both.
 */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("brand/hanken-grotesk-latin-wght-normal.c501f578bf3f.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
header.nb-header, footer.nb-footer {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #181a32; color: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
header.nb-header *, footer.nb-footer * { box-sizing: border-box; }
.nb-wrap { max-width: 1400px; margin: 0 auto; }

/* Header */
header.nb-header { border-bottom: 4px solid #c4d82e; font-size: 15px; }
header.nb-header .nb-wrap { display: flex; align-items: center; gap: 12px 24px; padding: 12px 20px; flex-wrap: wrap; }
header.nb-header a.nb-brand { display: block; flex-shrink: 0; line-height: 0; opacity: 1; }
header.nb-header a.nb-brand img { height: 40px; width: 171px; min-width: 171px; display: block; }
header.nb-header nav.nb-menu { display: flex; gap: 6px 18px; flex-wrap: wrap; flex: 1 1 320px; margin: 0; padding: 0; }
header.nb-header nav.nb-menu a, header.nb-header nav.nb-menu a:link, header.nb-header nav.nb-menu a:visited {
  color: #fff; opacity: .85; text-decoration: none; white-space: nowrap; font-weight: 400; font-size: 15px; border: 0; padding: 0; }
header.nb-header nav.nb-menu a:hover { opacity: 1; text-decoration: underline; color: #fff; }
header.nb-header nav.nb-menu a[aria-current="page"] { opacity: 1; font-weight: 700; box-shadow: inset 0 -3px 0 #c4d82e; padding-bottom: 2px; }
header.nb-header a.nb-invoices, header.nb-header a.nb-invoices:link, header.nb-header a.nb-invoices:visited {
  display: inline-block; background: #c4d82e; color: #181a32; border: 1px solid #c4d82e; border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 15px; line-height: 1.5; text-decoration: none; opacity: 1; }
header.nb-header a.nb-invoices:hover { background: #d3e34f; border-color: #d3e34f; color: #181a32; text-decoration: none; }
header.nb-header a.nb-invoices[aria-current="page"] { box-shadow: 0 0 0 3px rgba(196, 216, 46, .45); }
header.nb-header label.nb-year { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0;
  color: #81cbf1; font-size: 13px; font-weight: 600; float: none; width: auto; }
header.nb-header label.nb-year select { font: inherit; font-size: 15px; height: auto; background: #181a32; color: #fff;
  border: 1px solid rgba(241, 242, 242, .35); border-radius: 8px; padding: 3px 8px; margin: 0; }
header.nb-header form.nb-logout { margin: 0; display: block; }
header.nb-header form.nb-logout button { font: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; text-transform: none;
  background: #fff; color: #014751; border: 1px solid #014751; border-radius: 999px; padding: 3px 12px; margin: 0; cursor: pointer; height: auto; }
header.nb-header form.nb-logout button:hover { background: #f2f7f7; }

/* Footer */
footer.nb-footer { color: #f1f2f2; font-size: 13px; margin-top: 32px; }
footer.nb-footer .nb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 20px; }
footer.nb-footer a, footer.nb-footer a:link, footer.nb-footer a:visited { color: #fff; text-decoration: none; font-weight: 600; }
footer.nb-footer a:hover { text-decoration: underline; }
footer.nb-footer img.nb-footer-logo { height: 22px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; vertical-align: middle; margin-right: 10px; }
footer.nb-footer .nb-footer-muted { color: rgba(241, 242, 242, .72); }

@media print { header.nb-header, footer.nb-footer { display: none; } }

/* Test site (staging) banner: impossible to miss, on every page including Setup */
.test-site-banner { background: repeating-linear-gradient(-45deg, #ffd23f, #ffd23f 14px, #f5c400 14px, #f5c400 28px);
  color: #181a32; font: 700 14px/1.2 system-ui, sans-serif; text-align: center; padding: 8px 12px; letter-spacing: .03em; }
/* Seven menu items: tighten the spacing on mid-size screens so they stay on one line */
@media (max-width: 1320px) and (min-width: 1000px) {
  header.nb-header .nb-wrap { gap: 10px 14px; flex-wrap: nowrap; }
  header.nb-header nav.nb-menu { gap: 6px 12px; flex-wrap: nowrap; }
  header.nb-header nav.nb-menu a { font-size: 14px; white-space: nowrap; }
  header.nb-header .nb-logout button { white-space: nowrap; }
}
.test-site-banner button { margin-left: 12px; font: 600 12px/1 system-ui, sans-serif; padding: 4px 9px; border-radius: 999px;
  border: 1px solid #181a32; background: rgba(255, 255, 255, .7); color: #181a32; cursor: pointer; }

/* Insight IT support visit: shown to every member of staff while it's open */
.support-banner { background: #1d4e89; color: #fff; padding: 8px 16px; font-size: 14px; display: flex; flex-wrap: wrap;
                  align-items: center; justify-content: center; gap: 6px 14px; text-align: center; }
.support-banner form { margin: 0; display: inline; }
.support-banner button { background: #fff; color: #1d4e89; border: 0; border-radius: 999px; padding: 3px 12px;
                         font: inherit; font-weight: 600; cursor: pointer; }

/* Agreements to sign or review: administrators only */
.agreement-banner { background: #fff4e5; color: #8a5300; padding: 7px 16px; font-size: 14px; text-align: center; }
.agreement-banner a { color: inherit; font-weight: 700; margin-left: 10px; }

/* After an update, until staff open What's new */
.whatsnew-banner { background: #e7f3ec; color: #1f6b4a; padding: 7px 16px; font-size: 14px; text-align: center; }
.whatsnew-banner a { color: inherit; font-weight: 700; margin-left: 6px; }
.nb-footer-muted a { color: inherit; }
