@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/Figtree/Figtree-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter/Inter-VariableFont_opsz,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

.nav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.nav .dropdown-toggle::after {
  margin-left: 0;
  vertical-align: middle;
}

h1,
.display-6 {
  font-size: 1.75rem;
}

.display-5 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

h5,
h6 {
  font-size: 1rem;
}

.markdown-body h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.markdown-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.markdown-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.markdown-body h5,
.markdown-body h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-body > h2:first-child,
.markdown-body > h3:first-child {
  margin-top: 0;
}

.unit-row,
.apt-row {
  cursor: pointer;
}

.resident-link:hover {
  text-decoration: underline !important;
}

.filter-link {
  cursor: pointer;
}

.filter-link:hover {
  text-decoration: underline !important;
}

.unit-status {
  font-weight: 500;
}

.unit-status.Udlejet {
  background-color: #3b82f6 !important;
  color: #fff !important;
}

.unit-status.Ejerboet {
  background-color: #22c55e !important;
  color: #fff !important;
}

.w-150 {
  width: 150px;
}

.rotated-text {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.type-badge {
  color: #fff !important;
}

.type-badge.type-d {
  background-color: #f59e0b !important;
}

.type-badge.type-l {
  background-color: #6366f1 !important;
}

.type-badge.type-p {
  background-color: #ec4899 !important;
}

.type-border.type-d {
  border-color: #f59e0b !important;
}

.type-border.type-l {
  border-color: #6366f1 !important;
}

.type-border.type-p {
  border-color: #ec4899 !important;
}

.building-label {
  width: 1.75rem;
  padding: 0.75rem 0.35rem !important;
}

/* ── Modal: handled by Bootstrap CSS + JS ── */

/* Board member cards: crop all card images to the same height */
.markdown-body .card img {
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
}

.markdown-body .card-avatar {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-grid > .card {
  flex: 0 0 220px;
  width: 220px;
  max-width: 100%;
}

.card-grid > .card .title {
  font-weight: bold;
}

header .nav .nav-item a.nav-link.active {
  background-color: #74a441;
}
