:root {
  --ink: #0c1b1a;
  --forest: #12332c;
  --pine: #2d6a4f;
  --gold: #c9a227;
  --paper: #fbf8f2;
  --line: #e4ddd0;
  --bps-navy: #14323f;
  --bps-navy-2: #1c4556;
  --bps-forest: #2d6a4f;
  --bps-leaf: #5fa86a;
  --bps-gold: #c9a227;
  --bps-cream: #f4efe4;
  --bps-sand: #e4ddd0;
  --bps-ink: #0c1b1a;
  --bps-sidebar: 260px;
}
html, body { height: 100%; }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
body.bps-staff {
  background: var(--paper);
  color: var(--ink);
}
body.bps-staff::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 1080;
}
.bps-sidebar {
  width: var(--bps-sidebar);
  background: var(--forest);
  color: #fff;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1040;
  padding-top: 3px;
}
.bps-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.05rem 1.15rem .95rem;
  color: #fff; text-decoration: none;
}
.bps-brand:hover { color: #fff; }
.bps-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--gold);
  object-fit: cover;
}
.bps-brand .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
}
.bps-brand .brand-kicker {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: .12rem;
}
.bps-nav a {
  display: flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.82);
  padding: .42rem 1.15rem;
  text-decoration: none;
  font-size: .92rem;
  border-left: 3px solid transparent;
}
.bps-nav a:hover, .bps-nav a.active {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: var(--gold);
}
.bps-nav .nav-label {
  padding: .75rem 1.15rem .25rem;
  font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700;
}
.bps-main { margin-left: var(--bps-sidebar); min-height: 100vh; }
.bps-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .75rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 3px; z-index: 1020;
}
.bps-top .top-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.bps-content { padding: 1.4rem; }
.bps-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(12, 27, 26, .04);
}
.bps-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--gold);
}
.stat-tile .n {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem; font-weight: 600; color: var(--ink); line-height: 1.1;
}
.stat-tile .l { font-size: .75rem; color: #5c6a67; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.table { --bs-table-bg: transparent; }
.table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--pine); white-space: nowrap; font-weight: 700;
  border-bottom-color: var(--line);
}
.table > :not(caption) > * > * { border-bottom-color: var(--line); }
.btn-forest { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 600; }
.btn-forest:hover { background: #245a43; border-color: #245a43; color: #fff; }
.btn-navy { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }
.btn-navy:hover { background: #0c1b1a; border-color: #0c1b1a; color: #fff; }
.btn-outline-forest {
  color: var(--forest);
  border-color: var(--line);
  background: #fff;
}
.btn-outline-forest:hover { background: rgba(45, 106, 79, .08); color: var(--pine); border-color: var(--pine); }
.page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.page-title small { display: block; font-weight: 400; color: #5c6a67; font-size: .9rem; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pine); text-align: center; padding: .3rem; font-weight: 700; }
.cal-cell {
  min-height: 7.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .35rem;
  font-size: .8rem;
}
.cal-cell.out { background: #fff; color: #9aa8a5; }
.cal-cell .d { font-weight: 700; color: var(--ink); }
.cal-ev {
  display: block;
  background: rgba(45, 106, 79, .1);
  color: var(--forest);
  border-left: 3px solid var(--pine);
  padding: .1rem .3rem;
  margin-top: .2rem;
  border-radius: .2rem;
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.form-control, .form-select {
  border-color: var(--line);
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 .2rem rgba(45, 106, 79, .18);
}
.form-label { font-weight: 600; color: var(--ink); }
.pagination .page-link { color: var(--forest); border-color: var(--line); }
.pagination .page-item.active .page-link {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.badge.text-bg-success { background: var(--pine) !important; }
a { color: var(--pine); }
a:hover { color: var(--forest); }
.card { --bs-card-border-color: var(--line); border-radius: 16px; }
.btn-outline-secondary {
  color: var(--forest);
  border-color: var(--line);
  background: #fff;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(45, 106, 79, .08);
  color: var(--pine);
  border-color: var(--pine);
}
.btn-group .btn { border-color: var(--line); }
.dropdown-menu {
  border-color: var(--line);
  border-radius: 10px;
}
h1, h2, h3, .h1, .h2, .h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
body.bps-staff .bps-nav a,
body.bps-portal .portal-header a,
body.bps-portal .portal-footer a,
.login-wrap a {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.login-wrap {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, .85) 0, rgba(201, 162, 39, .85) 3px, transparent 3px),
    radial-gradient(900px 480px at 12% -8%, rgba(45, 106, 79, .55) 0%, transparent 55%),
    linear-gradient(165deg, #0c1b1a 0%, #12332c 55%, #0c1b1a 100%);
  display: grid; place-items: center; padding: 1.5rem;
  color: #fff;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 24px 50px rgba(12, 27, 26, .28);
  border: 1px solid var(--line);
}
.login-card h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.btn-gold:hover { background: #b48e1c; border-color: #b48e1c; color: var(--ink); }
.member-hero {
  background: linear-gradient(115deg, #0c1b1a 0%, #12332c 48%, #1a4a3c 100%);
  color: #fff;
  padding: 3.25rem 0 3rem;
  position: relative;
}
.member-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.portal-tile {
  display: block; text-decoration: none; color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.portal-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(12, 27, 26, .08);
  border-color: #d9d1c2;
  color: inherit;
}
.portal-tile .tile-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(45, 106, 79, .12);
  color: var(--pine);
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.portal-tile i { color: var(--pine); font-size: 1.05rem; }
.required:after { content: " *"; color: #b42318; }
@media (max-width: 991.98px) {
  .bps-sidebar { transform: translateX(-100%); transition: transform .2s; }
  .bps-sidebar.open { transform: none; }
  .bps-main { margin-left: 0; }
}
@media print {
  .bps-sidebar, .bps-top, .no-print { display: none !important; }
  .bps-main { margin: 0; }
}

/* —— Member portal civic skin —— */
body.bps-portal {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
body.bps-portal .page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.portal-header {
  background: var(--forest);
  color: #fff;
}
.portal-header .navbar {
  background: transparent;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.portal-brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
}
.portal-brand:hover { color: #fff; }
.portal-brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
  background: #fff;
}
.portal-brand .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
}
.portal-brand .brand-kicker {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: .12rem;
}
.portal-header .nav-link {
  color: rgba(255,255,255,.86) !important;
  font-size: .92rem;
}
.portal-header .nav-link:hover { color: #fff !important; }
.portal-search .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  min-width: 180px;
}
.portal-search .form-control::placeholder { color: rgba(255,255,255,.55); }
.portal-search .form-control:focus {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .2);
}
.portal-goldbar {
  height: 3px;
  background: var(--gold);
}
.portal-subnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.portal-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
  padding: .55rem 0;
}
.portal-subnav a.sub-link,
.portal-subnav .dropdown-toggle {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 6px;
  border: 0;
  background: transparent;
}
.portal-subnav a.sub-link:hover,
.portal-subnav .dropdown-toggle:hover {
  background: rgba(45, 106, 79, .08);
  color: var(--pine);
}
.portal-subnav a.sub-link.active {
  color: var(--pine);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 6px 6px 0 0;
}
.portal-subnav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(12, 27, 26, .08);
  padding: .4rem;
}
.portal-subnav .dropdown-item {
  border-radius: 6px;
  font-size: .9rem;
}
.portal-subnav .dropdown-item.active,
.portal-subnav .dropdown-item:active {
  background: rgba(45, 106, 79, .12);
  color: var(--pine);
}
.portal-subnav .dropdown.show > .dropdown-toggle,
.portal-subnav .nav-group-active > .dropdown-toggle {
  color: var(--pine);
}
.member-hero .hero-kicker {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .65rem;
}
.member-hero .hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.notice-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  padding: 1.15rem 1.2rem;
  height: 100%;
}
.notice-card h2 {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .85rem;
}
.notice-card a {
  color: #fff;
  text-decoration: none;
}
.notice-card a:hover { color: var(--gold); }
.notice-item {
  display: block;
  padding: .55rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
}
.notice-item:first-of-type { border-top: 0; padding-top: 0; }
.notice-item .meta { display: block; font-size: .75rem; color: rgba(255,255,255,.6); }
.tile-group-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pine);
  font-weight: 700;
  margin: 1.6rem 0 .7rem;
}
.portal-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}
.portal-aside h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .85rem;
}
.portal-aside a.ev {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.portal-aside a.ev:first-of-type { border-top: 0; padding-top: 0; }
.portal-aside a.ev:hover { color: var(--pine); }
.portal-aside .meta { display: block; font-size: .75rem; color: #5c6a67; }
.portal-footer {
  background: var(--forest);
  color: rgba(255,255,255,.82);
  margin-top: 3rem;
  padding: 2.4rem 0 1.4rem;
}
.portal-footer h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}
.portal-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.portal-footer a:hover { color: var(--gold); }
.portal-footer .treaty {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
body.bps-portal .bps-card {
  border-color: var(--line);
  border-radius: 16px;
}
body.bps-portal .alert-light {
  background: #fff;
  border-color: var(--line);
}

/* Mistawasis Nêhiyawak — colours from the buffalo / sun / crimson logo */

:root {
  --ink: #1a1010;
  --forest: #2b2b33;
  --pine: #8a181a;
  --gold: #e2a318;
  --paper: #f4eee4;
  --line: #e0d4c4;
  --bps-navy: #2b2b33;
  --bps-navy-2: #404048;
  --bps-forest: #8a181a;
  --bps-leaf: #c0392b;
  --bps-gold: #f8c020;
  --bps-cream: #f4eee4;
  --bps-sand: #e4ddd0;
  --bps-ink: #1a1010;
  --maroon: #8a181a;
  --crimson: #e82828;
  --header: #3a3a42;
}

body {
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

a { color: var(--maroon); }
a:hover { color: #6e1214; }

.btn-forest,
.btn-navy {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}
.btn-forest:hover,
.btn-navy:hover {
  background: #6e1214;
  border-color: #6e1214;
  color: #fff;
}
.btn-maroon {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  font-weight: 600;
}
.btn-maroon:hover {
  background: #6e1214;
  border-color: #6e1214;
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1204;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .7rem 1.35rem;
  border-radius: 2px;
}
.btn-gold:hover {
  background: #c49212;
  border-color: #c49212;
  color: #1a1204;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(26, 16, 16, .22);
  color: var(--ink);
  font-weight: 600;
  padding: .7rem 1.35rem;
  border-radius: 2px;
}
.btn-ghost:hover {
  border-color: var(--maroon);
  color: var(--maroon);
  background: rgba(138, 24, 26, .05);
}

.bps-mark,
.portal-brand img {
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.bps-sidebar {
  background: #2b2b33 url("/static/img/mistawasis-header-bg.png") center top / auto 100% repeat-x;
}
.bps-nav a:hover,
.bps-nav a.active {
  border-left-color: var(--gold);
  background: rgba(138, 24, 26, 0.35);
}
.bps-brand .brand-kicker,
.bps-nav .nav-label,
.portal-brand .brand-kicker {
  color: var(--gold);
}
body.bps-staff::before,
.portal-goldbar {
  background: linear-gradient(90deg, var(--maroon) 0 28%, var(--gold) 28% 72%, var(--crimson) 72% 100%);
  height: 4px;
}

.stat-tile { border-top-color: var(--gold); }
.form-control:focus,
.form-select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 .2rem rgba(138, 24, 26, .18);
}
.pagination .page-item.active .page-link,
.badge.text-bg-success {
  background: var(--maroon) !important;
  border-color: var(--maroon);
}

.portal-header {
  background: #3a3a42 url("/static/img/mistawasis-header-bg.png") center / auto 100% repeat-x;
}
.member-hero {
  background:
    linear-gradient(120deg, rgba(32,32,38,.94) 0%, rgba(138,24,26,.78) 58%, rgba(226,163,24,.42) 100%),
    #2b2b33 url("/static/img/mistawasis-header-bg.png") center / cover;
  padding: 3.6rem 0 3.2rem;
}
.portal-tile .tile-icon,
.portal-tile i { background: rgba(138, 24, 26, .1); color: var(--maroon); }
.portal-tile {
  border-radius: 4px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portal-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(26, 16, 16, .1);
  border-color: var(--gold);
  color: inherit;
}
.portal-footer {
  background: #2b2b33 url("/static/img/mistawasis-header-bg.png") center / auto 100% repeat-x;
}
.portal-footer a:hover { color: var(--gold); }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(720px 420px at 50% 18%, rgba(248, 192, 32, .18), transparent 58%),
    #32323a url("/static/img/mistawasis-header-bg.png") center / cover;
}
.login-card {
  width: min(420px, 100%);
  background: #fffaf3;
  color: var(--ink);
  border-radius: 4px;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(226, 163, 24, .35);
  border-top: 5px solid var(--maroon);
}
.login-card h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
}
.login-card img.login-logo {
  width: 148px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: .25rem;
}

/* Public civic home */
body.bps-public {
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 100%;
}

.civic-mast {
  position: relative;
  text-align: center;
  padding: 18px 24px 28px;
  min-height: 420px;
  overflow: hidden;
  background: #1c1816;
}
.civic-mast__banner {
  position: absolute;
  inset: 0;
  background: url("/static/img/portal-banner.jpg") center 58% / cover no-repeat;
  z-index: 0;
}
.civic-mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,14,16,.38) 0%, rgba(18,14,16,.08) 45%, rgba(18,14,16,.18) 100%);
  z-index: 1;
  pointer-events: none;
}
.civic-mast__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 6px;
}
.civic-mast__treaty {
  margin: 0;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
}
.civic-mast__login {
  display: inline-block;
  padding: 8px 16px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(226, 163, 24, .65);
  background: rgba(0, 0, 0, .25);
  border-radius: 2px;
}
.civic-mast__login:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff !important;
}
.civic-mast__logo {
  position: relative;
  z-index: 2;
  display: inline-block;
}
.civic-mast__logo img {
  width: min(268px, 64vw);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .45));
}
.civic-mast__rule {
  height: 4px;
  max-width: 1120px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--maroon) 0 30%, var(--gold) 30% 70%, var(--crimson) 70% 100%);
}

.civic-welcome {
  padding: 42px 0 12px;
}
.civic-welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1120px;
}
.civic-eyebrow {
  margin: 0 0 .45rem;
  color: var(--maroon);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}
.civic-eyebrow--section {
  margin: 2.1rem 0 .9rem;
}
.civic-welcome h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .6rem;
}
.civic-lead {
  color: #5c5148;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 1.25rem;
}
.civic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.civic-board {
  background: #2f2f36;
  color: #fff;
  padding: 1.25rem 1.3rem 1.1rem;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(26, 16, 16, .12);
  border-top: 4px solid var(--gold);
}
.civic-board h2,
.civic-board--light h2 {
  font-family: "Open Sans", sans-serif;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 .9rem;
  color: var(--gold);
}
.civic-board--light {
  background: #fffaf3;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 16, 16, .05);
}
.civic-board--light h2 { color: var(--maroon); }
.civic-board__row {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: .7rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.civic-board--light .civic-board__row {
  border-top-color: var(--line);
}
.civic-board__row:first-of-type { border-top: 0; padding-top: 0; }
.civic-board__row:hover { color: var(--gold); }
.civic-board--light .civic-board__row:hover { color: var(--maroon); }
.civic-board__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.civic-board__text strong {
  font-size: .95rem;
  font-weight: 700;
}
.civic-board__text em {
  font-style: normal;
  font-size: .75rem;
  opacity: .72;
}
.civic-chip {
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .22rem .45rem;
  border-radius: 2px;
  background: var(--maroon);
  color: #fff;
  margin-top: .15rem;
}
.civic-chip--gold {
  background: var(--gold);
  color: #1a1204;
}
.civic-empty {
  margin: 0;
  opacity: .75;
  font-size: .92rem;
}

.civic-services {
  padding: 8px 0 28px;
}
.civic-services .container,
.civic-welcome .container,
.civic-strip .container {
  max-width: 1120px;
}
.civic-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.civic-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem 1.15rem 1.15rem;
  min-height: 176px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.civic-tile:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 32px rgba(26, 16, 16, .1);
  color: var(--ink);
}
.civic-tile__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  background: rgba(138, 24, 26, .06);
  border-radius: 4px;
}
.civic-tile__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.civic-tile h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .3rem;
  color: var(--ink);
}
.civic-tile p {
  margin: 0;
  color: #6a5d54;
  font-size: .88rem;
  line-height: 1.45;
}

.civic-strip {
  padding: 8px 0 48px;
}
.civic-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.civic-foot {
  background: #2b2b33 url("/static/img/mistawasis-header-bg.png") center / auto 100% repeat-x;
  color: rgba(255, 255, 255, .78);
  padding: 2.6rem 24px 1.3rem;
  border-top: 4px solid var(--gold);
}
.civic-foot__grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.civic-foot h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: .45rem;
}
.civic-foot p { margin: 0 0 .35rem; }
.civic-foot a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.civic-foot a:hover { color: var(--gold); }
.civic-foot__mark {
  width: 64px;
  height: auto;
  margin-bottom: .55rem;
}
.civic-foot__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.civic-foot__links li + li { margin-top: .28rem; }
.civic-foot__copy {
  max-width: 1120px;
  margin: 1.8rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

@media (max-width: 991px) {
  .civic-welcome__grid,
  .civic-strip__grid,
  .civic-foot__grid {
    grid-template-columns: 1fr;
  }
  .civic-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .civic-mast__inner { flex-direction: column; gap: 10px; }
  .civic-tiles { grid-template-columns: 1fr; }
  .civic-tile { min-height: 0; }
}
