/* ── The "site board" look on the standalone pages (12 Nov 2026) ──────────
   Loaded after brand.css (and app.css where a page uses it) by every page
   outside the dashboard: the permit, SPA, form, inspection and incident
   pages, reports, the worker and subcontractor portals, the sign-in pages,
   the kiosk and the platform console. Restyle only: no layout or wording.
   The dashboard and the worker's phone home (worker/index.php) don't load it. */

/* The design system's greys are blue-grey; on these pages they become the
   brand's green-greys (same steps, same or better contrast on white). */
:root {
  --color-neutral-100: #f6f9f7;
  --color-neutral-200: #e6eee8;
  --color-neutral-300: #d3dfd7;
  --color-neutral-400: #a9bcb0;
  --color-neutral-500: #879b8f;
  --color-neutral-600: #5c7165;
  --color-neutral-700: #475c50;
  --color-neutral-800: #33453a;
  --color-neutral-900: #1c2d23;
}

/* A plain page: no glow behind it. */
body { background: var(--color-bg); }

/* Headings in sentence case: the design system's h6 was letter-spaced capitals. */
h5, h6 { font-family: var(--font-heading); letter-spacing: 0; text-transform: none; }
h6 { font-size: 14px; font-weight: 600; color: var(--color-text); }
/* The pages' section headings inside cards (<h6 class="text-muted">): a card
   title in ink, as brand.css styles .card-kicker. */
h6.text-muted { font-size: 16px; color: var(--color-text); }

/* The header on every portal and record page: a Shamrock green bar with the
   name, a Back link and Log out, like the dashboard's top bar. The pages set
   their own padding inline, hence the !important on it. */
.nav::after { display: none; }
.nav.portal-nav {
  position: static; background: #0f5c3b; color: #fff;
  border-radius: 16px; padding: 10px 12px 10px 18px !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* The logo in place of the typed name, which stays for screen readers. */
.portal-nav .nav-brand { display: flex; align-items: center; min-height: 30px; padding-left: 168px; font-size: 0; color: #fff; background: url(../icons/logo-horizontal-reversed.svg) left center / 160px auto no-repeat; }
.portal-nav .nav-brand .text-muted { color: #c4e1cf !important; }
.portal-nav .text-muted, .portal-nav .portal-user { color: #c4e1cf; }
.portal-nav a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.portal-nav a:not(.btn):hover { background: #1a7049; color: #fff; }
.portal-nav .btn-secondary { background: #1a7049; color: #fff; border-color: transparent; box-shadow: none; }
.portal-nav .btn-secondary:hover { background: #237f55; color: #fff; }
.portal-nav a:focus-visible, .portal-nav .btn:focus-visible { outline: 2px solid var(--color-mint); outline-offset: 2px; }
@media (max-width: 560px) {
  .nav.portal-nav { padding: 8px 8px 8px 14px !important; flex-wrap: wrap; row-gap: 6px; }
  .portal-nav a:not(.btn) { padding: 6px 8px; }
  .portal-nav .nav-brand { padding-left: 140px; background-size: 134px auto; }
}

/* The Back link on pages without the green bar (close-out packs, roll call). */
.page-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 6px 14px; border-radius: 999px; background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-divider);
  font: 600 14px var(--font-heading); color: var(--color-text); text-decoration: none;
}
.page-back:hover { box-shadow: inset 0 0 0 1px var(--color-muted); }

/* Fields inside white cards: a border you can see now that cards are white. */
.card .input { border-color: #c3d2c8; }
.card .input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.card .input:focus-visible { border-color: var(--color-accent); }

/* Table headings in sentence case (brand.css styles .table; this covers the
   pages' own tables). */
table th { letter-spacing: 0; text-transform: none; }

/* Cards don't lift on hover. */
.card:hover { transform: none; }

/* Notices and banners: soft corners like the cards. */
.pbanner { border-radius: 14px; }
