* { box-sizing: border-box; }

.finder-landscape {
  margin: 0;
  min-height: 100vh;
  color-scheme: dark;
  color: #f7fbfa;
  background: radial-gradient(ellipse at 50% 60%, #034046, transparent 75%), #001b1e;
  font: 100%/1.45 Inter, "Segoe UI", Arial, sans-serif;
}
.finder-landscape a { color: #88f6ed; text-underline-offset: .22em; }
.finder-landscape header { display: block; padding: 0; background: #001b1b; border-bottom: 2px solid #f6ca59; }
.finder-landscape header nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem;
  width: min(89rem, 89%); margin: auto; padding: .45rem 0; min-height: 4.35rem; font-weight: 750;
}
.finder-landscape header nav a { color: #8af7ef; font-size: clamp(.95rem, 1.45vw, 1.3rem); text-decoration: underline; }
.finder-landscape header .brand {
  font-size: clamp(1.8rem, 3.25vw, 3rem); line-height: 1; letter-spacing: -.065em;
  color: white; text-decoration: none; font-weight: 850;
}
.finder-landscape .brand span, .finder-landscape .hero h1 span { color: #51ede3; }
.finder-landscape main { width: 100%; max-width: none; margin: 0; padding: 0; }
.finder-landscape .hero {
  position: relative; isolation: isolate;
  padding: clamp(2.1rem, 3vw, 3.2rem) max(6%, calc((100% - 72rem) / 2)) clamp(3.5rem, 5.8vw, 6.5rem);
  padding-inline-start: clamp(7.5rem, 17vw, 23rem);
  background: linear-gradient(90deg, transparent, #001a1cd9 16%, #001a1cf2 47%, #001a1ccc 62%, transparent 83%),
    url("images/representative-finder-landscape.webp") center / cover, #00282b;
}
.finder-landscape .hero::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 -1px; height: clamp(2.5rem, 5vw, 5.5rem);
  background: url("images/resident-hub/wave.svg") center bottom / 100% 100% no-repeat;
}
.hub-wordmark { color: #ffd06c; font-weight: 800; font-size: clamp(.78rem, 1.25vw, 1.1rem); text-transform: uppercase; letter-spacing: .11em; }
.hub-wordmark::after { content: ""; display: inline-block; width: clamp(2rem, 7vw, 8rem); height: 2px; margin: 0 0 .25em .7rem; background: linear-gradient(90deg, #ffcd62, transparent); }
.finder-landscape .hero h1 {
  max-width: 19em; margin: .35rem 0 .8rem; border: 0; padding: 0; color: white;
  font-size: clamp(2.2rem, 4vw, 4.55rem); font-weight: 850; letter-spacing: -.05em; line-height: 1.01;
}
.hero h1 span { display: block; }
.finder-landscape .hero p { max-width: min(54ch, 60vw); margin: 0; color: white; font-size: clamp(1rem, 1.42vw, 1.38rem); line-height: 1.35; }
.hub-search-choices {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.2vw, 2.3rem);
  width: min(82rem, 84%); margin: clamp(-2.2rem, -2vw, -1rem) auto 0;
}
.hub-search-choices section, .district-finder .lookup-panel {
  border: 1px solid #43ddd7; border-radius: clamp(1.15rem, 2.1vw, 2rem);
  background: linear-gradient(145deg, #004346, #012629 48%, #013438); box-shadow: inset 0 0 2.4rem #007d7e24, 0 .5rem 1.5rem #00111250;
  padding: clamp(1.2rem, 2.5vw, 2.5rem);
}
.hub-search-choices section { min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.card-heading { display: flex; gap: clamp(.7rem, 1.7vw, 1.65rem); align-items: flex-start; margin-bottom: 1.15rem; }
.badge { flex: none; display: grid; place-items: center; width: clamp(3rem, 5.3vw, 5.2rem); aspect-ratio: 1; border-radius: 22%; background: linear-gradient(145deg, #008e8f, #005253); color: white; }
.badge svg { width: 52%; height: auto; }
.card-heading h2 { margin: 0; font-size: clamp(1.4rem, 2.25vw, 2.25rem); line-height: 1.14; letter-spacing: -.035em; }
.card-heading p { margin: .25rem 0 0; line-height: 1.35; color: #eef8f5; }
.hub-search-choices form { display: grid; align-self: start; gap: 1rem; }
.hub-search-choices :is(input, select), .district-finder #address {
  min-width: 0; width: 100%; min-height: 3.15rem; border: 1.5px solid #cededc; border-radius: .65rem;
  padding: .7rem .9rem; background: #021f22; color: #fff; font: inherit;
}
.address-field { position: relative; display: block; }
.field-pin { position: absolute; top: 50%; left: .95rem; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; pointer-events: none; }
.address-field #inlineAddressInput { padding-inline-start: 2.7rem; }
.hub-search-choices input::placeholder { color: #d8e6e5; opacity: 1; }
.hub-search-choices button, .district-finder #lookupButton {
  display: inline-flex; justify-self: center; align-items: center; justify-content: center; gap: .65em;
  min-height: 3.1rem; padding: .75rem clamp(1rem, 2.25vw, 2.4rem); border: 1px solid #ffdc85; border-radius: .95rem;
  background: linear-gradient(#ffe295, #f0b634); color: #102121; box-shadow: 0 .2rem .7rem #00121477;
  font: 750 clamp(1rem, 1.4vw, 1.32rem)/1.2 Inter, "Segoe UI", Arial, sans-serif; cursor: pointer;
}
.hub-search-choices button:hover, .district-finder #lookupButton:hover { background: #ffe5a1; }
.hub-search-choices button:disabled, .district-finder #lookupButton:disabled { opacity: .7; cursor: wait; }
.hub-search-choices button svg { width: 1.2em; height: 1.2em; }
.finder-landscape :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.form-note { max-width: 54ch; margin: .8rem auto 0; }
.form-note small { display: block; border-inline-start: 2px solid #4adad1; padding-inline-start: .65rem; color: #d1e7e4; font-size: .8rem; }
[role="status"]:empty { display: none; }
.finder-directory { width: min(82rem, 88%); display: flex; justify-content: center; align-items: center; gap: clamp(.8rem, 2vw, 2rem); margin: 1.5rem auto; }
.finder-directory::before, .finder-directory::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, #eec064); }
.finder-directory::after { transform: scaleX(-1); }
.finder-directory a { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: white; font-weight: 700; }
.finder-directory svg { width: 1.5rem; color: #88f6ed; }
.finder-directory img { max-width: 8vw; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.district-finder main > :not(.hero) { width: min(58rem, 90%); margin-inline: auto; }
.district-finder .hero h1 span { display: inline; }
.district-finder header nav a:last-child { color: #8af7ef; }
@media (max-width: 760px) {
  .finder-landscape header nav { min-height: 3.1rem; width: 92%; }
  .finder-landscape header .brand { font-size: 1.85rem; }
  .finder-landscape header nav a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }

  /* Keep both landmarks inside the phone frame. The photo sits below the copy. */
  .finder-landscape .hero {
    text-align: center;
    padding: 1.05rem 4.5% clamp(5.8rem, 26vw, 9.5rem);
    background-color: #001b1d;
    background-image: linear-gradient(to bottom, #001b1d 0%, #001b1df2 38%, transparent 74%),
      url("images/representative-finder-mobile.webp");
    background-position: center, center bottom;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
  }
  .finder-landscape .hero::after { height: clamp(1.2rem, 5vw, 2rem); }
  .hub-wordmark { display: flex; justify-content: center; align-items: center; gap: .65rem; font-size: .71rem; letter-spacing: .14em; }
  .hub-wordmark::before, .hub-wordmark::after { content: ""; display: block; width: 1.9rem; height: 1px; margin: 0; background: linear-gradient(90deg, #ffcf62, transparent); }
  .hub-wordmark::before { transform: rotate(180deg); }
  .finder-landscape .hero h1 {
    max-width: none; margin: .48rem auto .55rem; font-size: clamp(1.53rem, 7.6vw, 2.75rem);
    line-height: 1.03; letter-spacing: -.045em; text-wrap: balance;
  }
  .finder-landscape .hero p {
    max-width: 34ch; margin-inline: auto; font-size: .9375rem; line-height: 1.35; text-wrap: pretty;
    text-shadow: 0 1px 4px #00191d;
  }

  .hub-search-choices {
    width: min(35rem, calc(100% - 1.5rem)); margin: -.5rem auto 0;
    grid-template-columns: minmax(0, 1fr); gap: .7rem;
  }
  .hub-search-choices section {
    display: block; grid-row: auto; padding: .95rem 1rem; border-radius: 1.15rem;
    background: linear-gradient(125deg, #064549, #002528 42%, #003134);
    box-shadow: inset 0 -1.15rem 2rem -1.55rem #18c2bc, 0 .18rem .7rem #00121566;
  }
  .card-heading { align-items: center; gap: .7rem; margin-bottom: .65rem; }
  .card-heading .badge { width: 2.65rem; }
  .card-heading h2 { font-size: clamp(1.18rem, 4.8vw, 1.45rem); }
  .card-heading p { margin: .15rem 0 0; font-size: .86rem; line-height: 1.32; }
  .hub-search-choices form { gap: .55rem; }
  .hub-search-choices :is(input, select) { min-height: 2.8rem; padding-block: .5rem; font-size: 1rem; }
  .hub-search-choices select {
    appearance: none; -webkit-appearance: none; padding-inline-end: 2.1rem;
    background: #021f22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' stroke='%23c6ece9' stroke-width='2' fill='none'/%3E%3C/svg%3E") right .9rem center / .85rem auto no-repeat;
  }
  .hub-search-choices button { min-height: 2.8rem; width: min(100%, 19rem); border-radius: .75rem; padding-block: .6rem; }
  .form-note { margin: .6rem 0 0; }
  .form-note small { font-size: .76rem; line-height: 1.4; }
  .finder-directory {
    display: grid; grid-template-columns: minmax(0,1fr) 2.3rem minmax(0,1fr);
    width: min(32rem, calc(100% - 1.5rem)); margin: .7rem auto 1.3rem; gap: .45rem;
  }
  .finder-directory::before, .finder-directory::after { display: none; }
  .finder-directory img { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(0 0 3px #31a89d); }
  .finder-directory a { justify-content: center; font-size: .83rem; line-height: 1.25; gap: .35rem; }
  .finder-directory svg { width: 1.25rem; flex: none; }
}

@media (max-width: 360px) {
  .hub-search-choices button { padding-inline: .6rem; gap: .4em; }
  .address-field #inlineAddressInput { padding-inline: 2.2rem .4rem; }
  .field-pin { left: .7rem; }
}

/* Homepage shortcuts select one form. The unfiltered finder offers both. */
.hub-search-choices:has(> section:target) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 38rem;
}
.hub-search-choices:has(> section:target) > section:not(:target) {
  display: none;
}
main:has(.hub-search-choices > section:target) .hero p {
  display: none;
}

.finder-privacy { font-size: .85rem; color: #d1e7e4; }
.finder-privacy summary { padding-block: .55rem; cursor: pointer; color: #a1f1e6; }
.finder-privacy p { margin: .15rem 0 .65rem; }
.town-address-tip { display: none; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid #397173; }
#inlineTownFinder:target .town-address-tip { display: block; }
.town-address-tip h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.town-address-tip p { margin: .3rem 0 0; color: #e0f4f1; }
.town-address-tip a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }
.town-address-tip small { display: block; color: #c6dedb; line-height: 1.4; }
