/* The client portal in the public website's look (wwwroot/assets/style.css): its header, footer and colors on top of
   Bootstrap. Header and footer rules are scoped to header.site / footer.site because Bootstrap has its own .nav. */
:root {
  --ink: #0f1c2b; --text: #26313d; --muted: #5b6673; --line: #dde3ea; --soft: #f4f7fa;
  --navy: #0f2f4d; --accent: #1f7a8c; --accent-d: #155e6c;
  --bs-primary: #1f7a8c; --bs-primary-rgb: 31, 122, 140;
  --bs-body-color: #26313d;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: #fff; line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1 0 auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-d); }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }

/* header (Views/Shared/_SiteHeader.cshtml) */
header.site { position: sticky; top: 0; z-index: 2100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(.375rem);
  border-bottom: .0625rem solid var(--line); }
header.site .nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 4.25rem; }
header.site .brand { display: flex; align-items: center; gap: .625rem; font-weight: 800; font-size: 1.3125rem; letter-spacing: .03rem;
  color: var(--ink); text-decoration: none; }
header.site .menu { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
header.site .menu a { color: var(--text); font-size: .9375rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
header.site .menu a:hover { color: var(--accent); }
header.site .menu a.active { color: var(--accent); font-weight: 600; }
header.site .toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
@media (max-width: 66.25rem) {
  header.site .toggle { display: block; }
  header.site .menu { display: none; position: absolute; top: 4.25rem; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: .5rem 1.5rem 1.125rem; border-bottom: .0625rem solid var(--line); z-index: 20; }
  header.site .menu.open { display: flex; max-height: calc(100vh - 4.25rem); max-height: calc(100dvh - 4.25rem); overflow-y: auto; }
  header.site .menu li { width: 100%; }
  header.site .menu li a { display: block; padding: .75rem 0; }
  /* the portal's header has at most Log out: always shown in the header, never a drop-down */
  header.site .menu.always { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
  header.site .menu.always li { width: auto; }
  header.site .menu.always li a { padding: .75rem 0; }
}

/* the portal's own menu under the header, for signed-in users */
.portal-bar { background: var(--navy); color: #c6d5e0; }
.portal-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; min-height: 3rem; padding-top: .375rem;
  padding-bottom: .375rem; }
.portal-bar .title { color: #8fd3e0; font-size: .8125rem; font-weight: 700; letter-spacing: .1rem; text-transform: uppercase; }
.portal-bar ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.portal-bar a { display: inline-block; padding: .375rem 0; color: #fff; font-size: .9375rem; font-weight: 500; text-decoration: none; }
.portal-bar a:hover { color: #8fd3e0; }
.portal-bar a.active { color: #8fd3e0; font-weight: 600; }
.portal-bar .who { margin-left: auto; font-size: .875rem; color: #9fb2c1; }

/* footer (Views/Shared/_SiteFooter.cshtml) */
footer.site { background: #0b1a28; color: #9fb2c1; padding: 3.25rem 0 2.25rem; font-size: .90625rem; margin-top: 3rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.125rem; }
footer.site .brand { display: flex; align-items: center; gap: .625rem; font-weight: 800; font-size: 1.3125rem; text-decoration: none; }
footer.site h4 { color: #fff; font-size: .90625rem; font-weight: 700; margin: 0 0 .75rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: .25rem 0; }
footer.site a { color: #c6d5e0; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal { border-top: .0625rem solid #1e3244; padding-top: 1.375rem; font-size: .8125rem; color: #7890a3; }
@media (max-width: 56.25rem) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* Bootstrap in the site's colors */
.btn-primary, .btn-primary:disabled, .btn-primary.disabled { color: #fff; background-color: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  color: #fff; background-color: var(--accent-d); border-color: var(--accent-d); }
.btn-primary:focus, .btn-primary:active:focus { box-shadow: 0 0 0 .2rem rgba(31, 122, 140, .35); }
.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { color: #fff; background-color: var(--accent); border-color: var(--accent); }
.bg-primary { background-color: var(--accent) !important; }
.text-primary, .text-ahlsort-green { color: var(--accent) !important; }
.text-ahlsort-green-70 { color: var(--accent) !important; opacity: .7; }
.form-control:focus, .form-select:focus { border-color: #8fc9d4; box-shadow: 0 0 0 .2rem rgba(31, 122, 140, .2); }
.page-link { color: var(--accent); }
.page-item.active .page-link { background-color: var(--accent); border-color: var(--accent); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); }
main h1, main h2 { letter-spacing: -.01rem; }
i.table-bullet-point.table-bullet-point-lite, i.table-bullet-point.table-bullet-point-standard,
i.table-bullet-point.table-bullet-point-extreme { background-color: var(--accent); }
