/* Hand-written: the public directory, Find your jurisdiction (ui/finder.tsx), linked by that page
 * alone, after platform.css. Its look is the finder prototype's
 * (prototypes/permitsimplified-find-your-jurisdiction.html): a dark hero with the search, states as
 * headed groups, each bureau a card. Every class is fj-, so nothing here reaches another page. Colours
 * are the platform's own tokens. */

.fj {
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}
.fj [hidden] {
  display: none !important;
}
.fj-wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}
.fj h1,
.fj h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

/* The hero, with the search. */
.fj-hero {
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(65, 182, 230, 0.22) 0%, transparent 58%),
    linear-gradient(165deg, var(--ink-3) 0%, var(--ink-2) 48%, var(--ink) 100%);
  color: #fff;
  padding: 40px 0 44px;
}
.fj-logo {
  display: block;
  margin-bottom: 32px;
}
.fj-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flag-blue);
  margin: 0 0 12px;
}
.fj-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}
.fj-lede {
  color: #b7c9dd;
  font-size: 17px;
  max-width: 60ch;
  margin: 16px 0 0;
}
.fj-search {
  margin-top: 28px;
  max-width: 560px;
}
.fj-search label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: #b7c9dd;
  margin-bottom: 8px;
}
.fj-search input {
  width: 100%;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}
.fj-search input::placeholder {
  color: #8fa5be;
}
.fj-search input:focus {
  outline: 2px solid var(--flag-blue);
  outline-offset: 0;
  background: rgba(255, 255, 255, 0.13);
}
.fj-hint {
  margin: 14px 0 0;
  max-width: 64ch;
  font-size: 13.5px;
  color: #8fa5be;
}

/* The states, and the bureaus in each. */
.fj-list {
  padding: 20px 0 56px;
}
.fj-state {
  margin: 0;
}
.fj-grpline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.fj-grpline h2 {
  font-size: 20px;
}
.fj-n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.fj-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.fj-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 15px 16px;
}
.fj-soon {
  border-style: dashed;
  box-shadow: none;
  background: var(--paper);
}
.fj-entry > a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  color: inherit;
  text-decoration: none;
}
.fj-entry > a:hover .fj-org,
.fj-entry > a:focus-visible .fj-org {
  text-decoration: underline;
}
.fj-org {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}
.fj-dept {
  grid-column: 1;
  font-size: 13px;
  color: var(--muted);
}
.fj-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  color: var(--ink-3);
}
.fj-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text);
}
.fj-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}
.fj-pill-live {
  background: var(--green-bg);
  color: var(--green);
}
.fj-pill-soon {
  background: var(--amber-bg);
  color: var(--amber);
}
.fj-pill-ed {
  background: var(--blue-bg);
  color: var(--ink-3);
}
.fj-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--amber);
}
.fj-contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.fj-contact dt {
  color: var(--muted);
}
.fj-contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.fj-empty {
  margin: 30px 0 0;
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}
.fj-not-listed {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}
.fj-not-listed p {
  margin: 0;
  max-width: 64ch;
}
.fj-foot {
  background: var(--ink);
  color: #8fa5be;
  padding: 28px 0;
  font-size: 13.5px;
}
.fj-foot p {
  margin: 0;
  max-width: 64ch;
}

@media (max-width: 760px) {
  .fj-wrap {
    width: min(1080px, 100% - 32px);
  }
  .fj-hero {
    padding: 28px 0 32px;
  }
  .fj-entries {
    grid-template-columns: minmax(0, 1fr);
  }
}
