/* The destination text remains selectable and readable at every viewport. */
@media screen {
  .home-discovery-options a.search-choice {
    grid-template-columns: clamp(74px, 9vw, 120px) minmax(0, 1fr) 18px;
    gap: clamp(12px, 2vw, 22px);
    align-items: center;
  }
  .home-discovery-options a.search-choice > :is(.search-choice-number,.search-choice-icon) { display: none; }
  .home-discovery-options a.search-choice::before,
  .bio-choices > a::before,
  .path-card::before,
  .compare-card::before,
  .guide-links > a::before,
  .questions > a::before {
    content: "";
    display: block;
    width: 100%;
    height: clamp(74px, 9vw, 116px);
    border-radius: 4px;
    background: #d8e3de var(--guide-photo) center / cover no-repeat;
  }
  .search-choice[data-home-search="curated"], .bio-choices a[href^="/buying"] { --guide-photo: url('/assets/visuals/buy.webp'); }
  .search-choice[data-home-search="coming-soon"], .bio-choices a[href^="/selling"] { --guide-photo: url('/assets/visuals/sell.webp'); }
  .search-choice[data-home-search="new-construction"] { --guide-photo: url('/assets/visuals/neighborhood.webp'); }
  .search-choice[data-home-search="zillow"] { --guide-photo: url('/assets/visuals/eligibility.webp'); }
  .search-choice .search-choice-arrow { margin-top: 0; }
  .bio-choices > a { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .55rem; }
  .bio-choices > a::before { height: clamp(76px, 8.5vw, 114px); }
  .path-card::before, .compare-card::before, .guide-links > a::before, .questions > a::before { margin: 0 0 1rem; }
  .path-card, .guide-links > a { --guide-photo: url('/assets/visuals/landing.webp'); }
  .path-card[href="#timeline"], .guide-links a[href*="planner"] { --guide-photo: url('/assets/visuals/eligibility.webp'); }
  .path-card[href="#moving-pets"] { --guide-photo: url('/assets/visuals/rent.webp'); }
  .path-card[href*="/va/housing"], .guide-links a[href$="/bases"] { --guide-photo: url('/assets/visuals/neighborhood.webp'); }
  .path-card[href^="/families/"] { --guide-photo: url('/assets/visuals/scoop.webp'); }
  .path-card[href="#family-resources"], .questions a[href*="/schools"] { --guide-photo: url('/assets/local-resources/travis-school.webp'); }
  .questions > a[href*="/housing"] { --guide-photo: url('/assets/visuals/neighborhood.webp'); }
  .compare-card { --guide-photo: url('/assets/visuals/rent.webp'); }
  .compare-card + .compare-card { --guide-photo: url('/assets/visuals/buy.webp'); }

  .resource-card:not(.urgent) > :first-child::before,
  .route-resource > .eyebrow::before,
  .path-card[href="#medical-support"]::before,
  .questions > a[href*="#pets"]::before,
  .guide-row > span::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin: 0 .5rem .4rem 0;
    border-radius: 8px;
    background: #e7eeeb url('/assets/guide-visuals/symbols.png') var(--gx,0px) var(--gy,0px) / 256px 96px no-repeat;
  }
  .resource-card:not(.urgent) > :first-child::before { display: block; margin-bottom: .65rem; }
  .route-resource { --gx: -96px; }
  .guide-row > span { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
  .guide-row > span::before { margin: 0; }
  .guide-row:has(a[href*="timeline"]) { --gx: 0px; --gy: -64px; }
  .guide-row:has(a[href*="/va/housing"]) { --gx: -64px; --gy: 0px; }
  .guide-row:has(a[href*="personal-property"]) { --gx: 0px; --gy: -32px; }
  .path-card[href="#medical-support"] { --gx: -192px; }
  .questions > a[href*="#pets"] { --gx: -160px; }
  .va-page .area-card::before {
    content: "";
    display: block;
    width: 100%;
    height: clamp(84px, 9vw, 128px);
    margin-bottom: 1rem;
    border-radius: 5px;
    background: #e4e9de var(--guide-map) center / cover no-repeat;
  }
}
@media screen and (max-width: 680px) {
  .home-discovery-options a.search-choice { grid-template-columns: 68px minmax(0,1fr) 14px; gap: 11px; }
  .home-discovery-options a.search-choice::before { height: 76px; }
  .bio-choices { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
}

@media screen {
  .families-page #kids .card,
  .families-page #schools .card,
  .families-page #military .card,
  .families-page #moving .card { --guide-photo: url('/assets/visuals/neighborhood.webp'); }
  .families-page #kids .card:has(a[href*="vacaville"]) { --guide-photo: url('/assets/local-resources/lagoon-valley.webp'); }
  .families-page #kids .card:has(a[href*="fairfield"]), .families-page #schools .card:has(a[href*="fsusd"]) { --guide-photo: url('/assets/guide-visuals/map-fairfield.webp'); }
  .families-page #kids .card:has(a[href*="suisun"]) { --guide-photo: url('/assets/guide-visuals/map-suisun-city.webp'); }
  .families-page #kids .card:has(a[href*="benicia"]) { --guide-photo: url('/assets/guide-visuals/map-benicia.webp'); }
  .families-page #kids .card:has(a[href*="vallejo"]) { --guide-photo: url('/assets/guide-visuals/map-vallejo.webp'); }
  .families-page #schools .card:has(a[href*="vacaville"]) { --guide-photo: url('/assets/guide-visuals/map-vacaville.webp'); }
  .families-page #schools .card:has(a[href*="travisusd"]),
  .resource-card:has(a[href*="travisusd"],a[href*="travisfss.com/school-liaison"]) { --guide-photo: url('/assets/local-resources/travis-school.webp'); }
  .families-page #military .card:has(a[href*="Newcomers"]) { --guide-photo: url('/assets/visuals/travis.webp'); }
  .families-page #military .card:has(a[href*="/va/"]) { --guide-photo: url('/assets/visuals/finance.webp'); }
  .families-page #moving .card:nth-of-type(2) { --guide-photo: url('/assets/visuals/buy.webp'); }
  .families-page #moving .card:nth-of-type(3) { --guide-photo: url('/assets/visuals/sell.webp'); }
  .families-page :is(#kids,#schools,#military,#moving) .card::before,
  .resource-card:has(a:is([href*="travisusd"],[href*="travisfss.com/school-liaison"])) > :first-child::before {
    content: ""; display: block; width: 100%; height: clamp(70px,8vw,112px);
    margin: 0 0 .8rem; border-radius: 5px;
    background: #e4e9df var(--guide-photo) center / cover no-repeat;
  }
}

/* Lucide symbols in reading order, shared by related resource destinations. */
@media screen {
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="airport" i], [href*="newcomer" i], [href*="check-in" i], [href*="arrival" i], [href*="passenger-and-pet" i], [href*="travis.af.mil/Information/Newcomers" i], [href*="/bases/" i])),
  .questions > a:is([href*="airport" i], [href*="newcomer" i], [href*="check-in" i], [href*="arrival" i], [href*="passenger-and-pet" i], [href*="travis.af.mil/Information/Newcomers" i], [href*="/bases/" i]) { --gx: -96px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="housing" i], [href*="familyhomes" i], [href*="home-loan" i], [href*="real-estate" i], [href*="realestate" i], [href*="homeowner" i], [href*="temporary-lodging" i], [href*="westwind" i], [href*="malmstrom-inns" i], [href*="property" i])),
  .questions > a:is([href*="housing" i], [href*="familyhomes" i], [href*="home-loan" i], [href*="real-estate" i], [href*="realestate" i], [href*="homeowner" i], [href*="temporary-lodging" i], [href*="westwind" i], [href*="malmstrom-inns" i], [href*="property" i]) { --gx: -64px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="rent" i], [href*="lease" i], [href*="lease-break" i])),
  .questions > a:is([href*="rent" i], [href*="lease" i], [href*="lease-break" i]) { --gx: -96px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="household-goods" i], [href*="household_goods" i], [href*="personal-property" i], [href*="transportation-office" i], [href*="shipment" i], [href*="moving-claims" i], [href*="/moving/" i])),
  .questions > a:is([href*="household-goods" i], [href*="household_goods" i], [href*="personal-property" i], [href*="transportation-office" i], [href*="shipment" i], [href*="moving-claims" i], [href*="/moving/" i]) { --gx: 0px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="financ" i], [href*="funding-fee" i], [href*="budget" i], [href*="pay/" i], [href*="bahrates" i], [href*="taxes" i], [href*="/bah" i], [href*="loan_fee" i], [href*="benefits.va.gov" i])),
  .questions > a:is([href*="financ" i], [href*="funding-fee" i], [href*="budget" i], [href*="pay/" i], [href*="bahrates" i], [href*="taxes" i], [href*="/bah" i], [href*="loan_fee" i], [href*="benefits.va.gov" i]) { --gx: -224px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="checklist" i], [href*="planmymove" i], [href*="plan-my-move" i], [href*="registration" i], [href*="request-coe" i], [href*="deers" i], [href*="records" i])),
  .questions > a:is([href*="checklist" i], [href*="planmymove" i], [href*="plan-my-move" i], [href*="registration" i], [href*="request-coe" i], [href*="deers" i], [href*="records" i]) { --gx: -32px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="family-support" i], [href*="family-readiness" i], [href*="relocation-assistance" i], [href*="spouses" i], [href*="youngparents" i], [href*="family-advocacy" i], [href*="childcare" i], [href*="child-development" i], [href*="youth-programs" i], [href*="militaryfamil" i])),
  .questions > a:is([href*="family-support" i], [href*="family-readiness" i], [href*="relocation-assistance" i], [href*="spouses" i], [href*="youngparents" i], [href*="family-advocacy" i], [href*="childcare" i], [href*="child-development" i], [href*="youth-programs" i], [href*="militaryfamil" i]) { --gx: -32px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="library" i], [href*="museum" i], [href*="heritage" i], [href*="histor" i], [href*="interpretive" i])),
  .questions > a:is([href*="library" i], [href*="museum" i], [href*="heritage" i], [href*="histor" i], [href*="interpretive" i]) { --gx: -64px; --gy: -64px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="parks" i], [href*="trails" i], [href*="rivers-edge" i], [href*="giant-springs" i], [href*="outdoors" i], [href*="recreation" i])),
  .questions > a:is([href*="parks" i], [href*="trails" i], [href*="rivers-edge" i], [href*="giant-springs" i], [href*="outdoors" i], [href*="recreation" i]) { --gx: -64px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="utilities" i], [href*="utility" i], [href*="energy" i], [href*="pge.com" i], [href*="water-" i], [href*="drinking-water" i], [href*="airnow" i], [href*="waste" i])),
  .questions > a:is([href*="utilities" i], [href*="utility" i], [href*="energy" i], [href*="pge.com" i], [href*="water-" i], [href*="drinking-water" i], [href*="airnow" i], [href*="waste" i]) { --gx: -128px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="veterans-services" i], [href*="tricare.mil/benefit" i], [href*="benefits.gov" i], [href*="chapel" i])),
  .questions > a:is([href*="veterans-services" i], [href*="tricare.mil/benefit" i], [href*="benefits.gov" i], [href*="chapel" i]) { --gx: -128px; --gy: -64px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="dining" i], [href*="coffee" i], [href*="restaurant" i], [href*="visitvacaville" i], [href*="visitgreatfalls" i])),
  .questions > a:is([href*="dining" i], [href*="coffee" i], [href*="restaurant" i], [href*="visitvacaville" i], [href*="visitgreatfalls" i]) { --gx: -96px; --gy: -64px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="employ" i], [href*="jobs" i], [href*="career" i], [href*="workforce" i], [href*="chamber" i])),
  .questions > a:is([href*="employ" i], [href*="jobs" i], [href*="career" i], [href*="workforce" i], [href*="chamber" i]) { --gx: -224px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="events" i], [href*="calendar" i], [href*="scheduling" i])),
  .questions > a:is([href*="events" i], [href*="calendar" i], [href*="scheduling" i]) { --gx: 0px; --gy: -64px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="dmv" i], [href*="drive" i], [href*="511mt" i], [href*="transportation" i], [href*="transit" i], [href*="commute" i], [href*="highway" i], [href*="vehicle" i])),
  .questions > a:is([href*="dmv" i], [href*="drive" i], [href*="511mt" i], [href*="transportation" i], [href*="transit" i], [href*="commute" i], [href*="highway" i], [href*="vehicle" i]) { --gx: -192px; --gy: -64px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="school" i], [href*="education" i], [href*="unified" i], [href*="enrollment" i], [href*="aeries" i], [href*="travisusd" i], [href*="fsusd" i], [href*="childnet" i])),
  .questions > a:is([href*="school" i], [href*="education" i], [href*="unified" i], [href*="enrollment" i], [href*="aeries" i], [href*="travisusd" i], [href*="fsusd" i], [href*="childnet" i]) { --gx: -128px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="tricare" i], [href*="efmp" i], [href*="medical" i], [href*="clinic" i], [href*="dental" i], [href*="pharmacy" i], [href*="health-services" i], [href*="healthcare" i])),
  .questions > a:is([href*="tricare" i], [href*="efmp" i], [href*="medical" i], [href*="clinic" i], [href*="dental" i], [href*="pharmacy" i], [href*="health-services" i], [href*="healthcare" i]) { --gx: -192px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="pet" i], [href*="veterinar" i])),
  .questions > a:is([href*="pet" i], [href*="veterinar" i]) { --gx: -160px; --gy: 0px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="winter" i])),
  .questions > a:is([href*="winter" i]) { --gx: -160px; --gy: -32px; }
  :is(.resource-card, .route-resource, .guide-row):has(a:is([href*="emergency" i], [href*="ready.gov" i], [href*="fema" i], [href*="fire.ca" i], [href*="calfire" i], [href*="gate" i], [href*="visitors" i], [href*="security" i])),
  .questions > a:is([href*="emergency" i], [href*="ready.gov" i], [href*="fema" i], [href*="fire.ca" i], [href*="calfire" i], [href*="gate" i], [href*="visitors" i], [href*="security" i]) { --gx: -32px; --gy: -64px; }
}

/* Generalized municipality, road and water geometry from U.S. Census TIGERweb. */
@media screen {
  .va-page .area-card:nth-child(1) { --guide-map: url("/assets/guide-visuals/map-fairfield.webp"); }
  .va-page .area-card:nth-child(2) { --guide-map: url("/assets/guide-visuals/map-vacaville.webp"); }
  .va-page .area-card:nth-child(3) { --guide-map: url("/assets/guide-visuals/map-dixon.webp"); }
  .va-page .area-card:nth-child(4) { --guide-map: url("/assets/guide-visuals/map-suisun-city.webp"); }
  .va-page .area-card:nth-child(5) { --guide-map: url("/assets/guide-visuals/map-winters.webp"); }
  .va-page .area-card:nth-child(6) { --guide-map: url("/assets/guide-visuals/map-beyond-solano.webp"); }
}
.legacy-photo-credit { display: block; width: fit-content; margin: .5rem auto; padding: .45rem; color: inherit; font-size: .82rem; text-underline-offset: .2em; }

@media screen {
  .families-page #schools .card:has(a[href*="vacaville"])::before,
  .va-page .resource-card:has(a[href*="vacaville"]) > :first-child::before { --school-scene: url("/assets/guide-visuals/vacaville-high-1912.webp"); --school-caption: "Vacaville High School, 1912"; }
  .families-page #schools .card:has(a[href*="fsusd"])::before,
  .va-page .resource-card:has(a[href*="fsusd"]) > :first-child::before { --school-scene: url("/assets/guide-visuals/armijo-high-2020.webp"); --school-caption: "Armijo High School, 2020"; }
  .families-page #schools .card:has(a[href*="vacaville"])::before,
  .va-page .resource-card:has(a[href*="vacaville"]) > :first-child::before,
  .families-page #schools .card:has(a[href*="fsusd"])::before,
  .va-page .resource-card:has(a[href*="fsusd"]) > :first-child::before {
    content: var(--school-caption); display: flex; align-items: flex-end;
    width: 100%; height: clamp(78px, 9vw, 120px); box-sizing: border-box;
    margin: 0 0 .7rem; padding: .4rem .5rem; border-radius: 5px;
    color: white; font: 600 .72rem/1.3 Arial,sans-serif;
    background: linear-gradient(transparent 47%, #102b36bf), var(--school-scene) center 47% / cover no-repeat;
  }
}
