/* PASS37 — route hardening, readable resource cards, and technical SEO affordances. */
:root{
  --maine-flag-blue:#002664;
  --maine-flag-gold:#ffe84f;
  --maine-flag-red:#ff163c;
  --maine-flag-green:#3e6f3e;
  --maine-paper:#f8fbff;
  --maine-ink:#071427;
}
/* Make resource/help cards readable on mobile and dark civic palette. */
.resource-card,
#housing-help.resource-card{
  color:#f8fbff !important;
  background:
    linear-gradient(180deg,rgba(0,38,100,.98),rgba(4,20,48,.98)) !important;
  border-color:rgba(255,232,79,.38) !important;
}
.resource-card .meta,
#housing-help .meta{
  color:#ffffff !important;
  background:rgba(255,232,79,.14) !important;
  border:1px solid rgba(255,232,79,.35) !important;
  border-radius:999px !important;
  display:inline-flex !important;
  padding:.35rem .65rem !important;
  letter-spacing:.08em !important;
}
.resource-card h3,
#housing-help h3{color:#ffffff !important;}
.resource-card p,
.resource-card li,
.resource-card small,
#housing-help p,
#housing-help li{color:#eef6ff !important;}
.resource-card a,
#housing-help a{
  color:#ffe84f !important;
  text-decoration-thickness:.12em !important;
  text-underline-offset:.18em !important;
}
.resource-card a:hover,
.resource-card a:focus,
#housing-help a:hover,
#housing-help a:focus{
  color:#ffffff !important;
  background:rgba(255,232,79,.16) !important;
  border-radius:6px !important;
}
#housing-help{
  box-shadow:0 24px 60px rgba(0,38,100,.24), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
#housing-help:target{
  outline:3px solid rgba(255,232,79,.78) !important;
  outline-offset:6px !important;
}
/* Route repair banner stays visually quiet unless linked directly. */
.route-anchor-target:target{
  scroll-margin-top:96px;
}
/* Keep mobile route/fix affordances readable without adding nav clutter. */
@media(max-width:767px){
  .resource-card{padding:20px !important;}
  .resource-card .meta{font-size:.78rem !important; line-height:1.2 !important;}
  .resource-card h3{font-size:1.22rem !important;}
  .resource-card p,.resource-card li{font-size:1rem !important; line-height:1.55 !important;}
}
