.flex-fill{flex: 1 1 0 !important}
.text-navy { color: #1f3a8a; }

.btn-navy {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1f3a8a;
  --bs-btn-border-color: #1f3a8a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #172d4a;
  --bs-btn-hover-border-color: #172d4a;
  --bs-btn-active-bg: #172d4a;
}

.btn-outline-navy {
  --bs-btn-color: #1f3a8a;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #1f3a8a;
  --bs-btn-hover-color: #172d4a;
  --bs-btn-hover-bg: #eef3f9;
  --bs-btn-hover-border-color: #1f3a8a;
  --bs-btn-active-bg: #eef3f9;
}

/* Emergency shelter cards */
.every-night-shelters{max-width:1100px; margin:0 auto;}
.every-night-shelters .card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d5dde8;
  border-top: 8px solid #1f3a8a;
  border-radius: 10px;
  padding: 14px 16px 16px;
  color: #1f2937;
}

.every-night-shelters .card-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
}

.every-night-shelters .card-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.every-night-shelters .card-address{
  margin: 0 0 5px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #000;
}

.every-night-shelters .card-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4b5563;
}

.every-night-shelters .card-note.small {
  font-size: 0.8rem;
  margin-top:5px;
}


/* Shelter status cards */
/* Shelter status cards */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.ss-card {
  border-radius: 8px;
  padding: 14px 8px 10px;
  text-align: center;
  color: #1f2937;
}

/* Warming centers open: blue card, dark navy border */
.ss-card--open {
  background: #e8eef6;
  border: 2px solid #1f3a5f;
}

/* Warming centers closed: pale card, light border */
.ss-card--closed {
  background: #f4f6f9;
  border: 1px solid #d5dde8;
  padding: 15px 9px 11px; /* keeps both card types the same size */
}

.ss-card-title {
  margin: 0 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f3a5f;
}

.ss-card-low {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #374151;
}

.ss-card-low strong {
  color: #111827;
}

.ss-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #d5dde8;
  border-radius: 6px;
  text-align: left;
}

.ss-row-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
}

.ss-row-status {
  font-size: 0.82rem;
  text-align: right; /* longer override text wraps neatly */
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

.ss-card-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #4b5563;
}

.ss-message {
  margin: 0;
  color: #4b5563;
}


/* Warming Shelters table */
.ws-wrap {
  border: 1px solid #d5dde8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
}

.ws-table thead th {
  background: #eef3f9;
  color: #1f3a8a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #d5dde8;
}

.ws-table tbody th,
.ws-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid #e3e8ef;
}

.ws-table tbody tr:last-child th,
.ws-table tbody tr:last-child td {
  border-bottom: 0;
}

.ws-name {
  font-weight: 700;
  color: #111827;
}

.ws-address {
  font-weight: 700;
  color: #111827;
}

.ws-muted {
  color: #4b5563;
}

.ws-table thead th,
.ws-hours {
  white-space: nowrap;
}

.ws-link {
  text-align: right;
  white-space: nowrap;
}

.ws-link a {
  color: #1f3a8a;
  font-weight: 700;
  text-decoration: underline;
}

.ws-link a:hover,
.ws-link a:focus {
  color: #172554;
}

.ws-message {
  color: #4b5563;
  margin: 0;
}

.ws-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Phones: each shelter becomes a stacked card */
@media (max-width: 767.98px) {
  .ws-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ws-table,
  .ws-table tbody,
  .ws-table tr,
  .ws-table th,
  .ws-table td {
    display: block;
    width: 100%;
  }

  .ws-table tbody tr {
    box-sizing: border-box;
    padding: 14px 16px;
    border-bottom: 1px solid #e3e8ef;
  }

  .ws-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ws-table tbody th,
  .ws-table tbody td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .ws-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f3a8a;
    margin-top: 6px;
  }

  .ws-name {
    font-size: 1.05rem;
  }

  .ws-link {
    text-align: left;
    padding-top: 10px !important;
  }
}
