/* The redesigned directories (card YXogOdJK, board option A; plan
   docs/ai/2026/10/2026-10-02-directories): the broker index - filters in
   a sidebar, brokers as cards under their brokerage's logo - and a
   profile with "Get in touch" on top. Every colour, size and space is a
   token from tokens.css; white is the cards' and the logo tiles' own */

.dr {
  color: var(--po-body);
}

.dr h1,
.dr h2,
.dr h3 {
  font-family: var(--po-font-ui);
  letter-spacing: var(--po-ls-tight);
}

/* The hero: the section tint, the page's question, and the way in for a
   broker who is not listed yet */
.dr-hero {
  background: var(--po-tint-cool);
  border-bottom: 1px solid var(--po-line);
  padding: var(--po-sp-10) 0 var(--po-sp-8);
}

.dr-hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--po-sp-6);
}

.dr-hero h1 {
  margin: var(--po-sp-2) 0;
  font-size: var(--po-fs-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--po-brand);
}

.dr-hero p {
  margin: 0;
  max-width: 640px;
  font-size: var(--po-fs-xl);
  line-height: 1.55;
  color: var(--po-ink-2);
}

.dr-hero .eyebrow {
  margin: 0;
}

.dr-join {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-brand-2);
}

/* The seller's two ways to a broker, beside the heading on /directory */
.dr-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--po-sp-3);
}

/* /directory: the tiles, then the eligibility link and the note every
   directory carries */
.dr-dir {
  padding-top: var(--po-sp-8);
  padding-bottom: var(--po-sp-12);
}

.dr-dir p {
  margin: var(--po-sp-6) 0 0;
}

.dr-dir .dr-note {
  max-width: 900px;
  font-size: var(--po-fs-md);
  line-height: 1.5;
  color: var(--po-muted);
}

/* /broker-evaluation: what happens next beside the lead form */
.dr-eval {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: var(--po-sp-12);
  align-items: start;
  padding-top: var(--po-sp-10);
  padding-bottom: var(--po-sp-16);
}

.dr-eval h2 {
  margin: 0 0 var(--po-sp-4);
  font-size: var(--po-fs-3xl);
  font-weight: 700;
  color: var(--po-brand);
}

.dr-eval ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: var(--po-sp-3);
  font-size: var(--po-fs-lg);
  line-height: 1.55;
  color: var(--po-ink-2);
}

/* The body: the sidebar beside the results, stacking on a narrow
   screen with the filters first */
.dr-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--po-sp-8);
  padding-top: var(--po-sp-8);
  padding-bottom: var(--po-sp-12);
}

.dr-side {
  flex: 1 1 260px;
  max-width: 300px;
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-5);
  padding: var(--po-sp-5);
  background: var(--po-bg-2);
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  box-sizing: border-box;
}

.dr-field span,
.dr-check strong {
  display: block;
  margin-bottom: var(--po-sp-2);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.dr-field select {
  width: 100%;
  height: 44px;
  padding: 0 var(--po-sp-3);
  border: 1px solid var(--po-line-2);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: var(--po-fs-lg);
  color: var(--po-ink-soft);
}

.dr-check {
  display: flex;
  gap: var(--po-sp-3);
  align-items: flex-start;
  font-size: var(--po-fs-md);
  color: var(--po-muted);
  cursor: pointer;
}

.dr-check strong {
  margin-bottom: 2px;
}

.dr-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--po-cta);
}

.dr-side-f {
  display: flex;
  align-items: center;
  gap: var(--po-sp-4);
}

.dr-clear {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-brand-2);
}

/* The results */
.dr-results {
  flex: 999 1 560px;
  min-width: 0;
}

.dr-results-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  margin-bottom: var(--po-sp-5);
}

.dr-results-h h2 {
  margin: 0;
  font-size: var(--po-fs-2xl);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.dr-results-h p {
  margin: 0;
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

.dr-empty {
  padding: var(--po-sp-8);
  border: 1px dashed var(--po-line-2);
  border-radius: 12px;
  text-align: center;
}

.dr-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--po-sp-5);
}

.dr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  box-shadow: var(--po-sh-1);
  overflow: hidden;
}

.dr-card:hover {
  box-shadow: var(--po-sh-2);
}

/* The brokerage's logo in its own white tile, in its own colours (Khoi,
   2 Oct: no greyscale), its name when it has no logo */
.dr-tile {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--po-sp-3) var(--po-sp-6);
  background: #fff;
  border-bottom: 1px solid var(--po-line);
  box-sizing: border-box;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 700;
  color: var(--po-brand);
  text-align: center;
}

/* Every logo with rounded corners, so one drawn on a dark block reads as
   a badge rather than a hard rectangle (Cannon, 5 Oct) */
.dr-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* On a card the logo sits in a frame of one size for every firm - the
   home page's brokerage strip's treatment, which Preston asked for here
   (5 Oct) - large, as Cannon asked, and clear of the photo, which rises
   34px into the band. The band is the section tint and the frame stays
   white, so a logo with a white background of its own still sits on
   white (Wes chose it over a gray frame, 5 Oct) */
.dr-card .dr-tile {
  height: 140px;
  padding: var(--po-sp-4) var(--po-sp-5) 42px;
  background: var(--po-tint-cool);
}

.dr-logo {
  width: 100%;
  max-width: 240px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--po-sp-2) var(--po-sp-3);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 10px;
  box-sizing: border-box;
}

.dr-card-b {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--po-sp-2);
  padding: 0 var(--po-sp-4) var(--po-sp-4);
}

.dr-av {
  width: 64px;
  height: 64px;
  margin-top: -34px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--po-line-2);
  background: var(--po-brand-tint);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-3xl);
  font-weight: 700;
  color: var(--po-brand);
  box-sizing: border-box;
}

.dr-av.lg {
  width: 128px;
  height: 128px;
  margin: 0;
  border-width: 4px;
  flex: 0 0 auto;
  font-size: var(--po-fs-display);
}

.dr-av.sm {
  width: 44px;
  height: 44px;
  margin: 0;
  border-width: 0;
  flex: 0 0 auto;
  font-size: var(--po-fs-lg);
}

.dr-card h3 {
  margin: var(--po-sp-1) 0 0;
  font-size: var(--po-fs-xl);
  font-weight: 700;
}

/* The name is the card's link, and it covers the whole card */
.dr-card h3 a {
  color: var(--po-ink-soft);
}

.dr-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.dr-co,
.dr-where,
.dr-facts {
  margin: 0;
  font-size: var(--po-fs-base);
  color: var(--po-muted);
}

.dr-where {
  color: var(--po-ink-2);
  line-height: 1.45;
}

.dr-facts {
  font-size: var(--po-fs-md);
}

.dr-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dr-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--po-bg-3);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 600;
  color: var(--po-ink-2);
}

.dr-chips li.home {
  background: var(--po-brand-tint);
  color: var(--po-brand);
}

.dr-view {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Under the results: the rest of the team, on the section tint */
.dr-team {
  background: var(--po-tint-cool);
  border-top: 1px solid var(--po-line);
  padding: var(--po-sp-10) 0 var(--po-sp-12);
}

.dr-team h2 {
  margin: 0 0 var(--po-sp-2);
  font-size: var(--po-fs-3xl);
  font-weight: 700;
  color: var(--po-brand);
}

.dr-team p {
  margin: 0 0 var(--po-sp-5);
  color: var(--po-ink-2);
}

.dr-kinds {
  list-style: none;
  margin: 0 0 var(--po-sp-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--po-sp-4);
}

.dr-kinds a {
  display: block;
  padding: var(--po-sp-4) var(--po-sp-5);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 700;
  color: var(--po-ink-soft);
}

.dr-kinds a:hover {
  box-shadow: var(--po-sh-2);
  text-decoration: none;
}

.dr-team .dr-note {
  max-width: 900px;
  margin: 0;
  font-size: var(--po-fs-md);
  line-height: 1.5;
  color: var(--po-muted);
}

/* A profile: who, and Get in touch beside it */
.dr-crumbs {
  margin-bottom: var(--po-sp-6);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  color: var(--po-muted);
}

/* Underlined: in a line of text a link must not differ by colour alone
   (axe, link-in-text-block) */
.dr-crumbs a {
  color: var(--po-brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dr-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--po-sp-8);
}

.dr-who {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--po-sp-6);
}

.dr-who h1 {
  margin: var(--po-sp-1) 0;
}

.dr-who .dr-co {
  font-size: var(--po-fs-xl);
  color: var(--po-ink-2);
}

.dr-facts-l {
  list-style: none;
  margin: var(--po-sp-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-1);
  font-size: var(--po-fs-lg);
  color: var(--po-ink-2);
}

/* A long name shortens rather than pushing the card past a phone's edge:
   the box gives way like every flex item on the way */
.dr-touch {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-3);
  padding: var(--po-sp-5);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  box-shadow: var(--po-sh-2);
  box-sizing: border-box;
}

.dr-touch .dr-tile {
  height: 72px;
  border: 1px solid var(--po-line-2);
  border-radius: 10px;
}

.dr-touch .btn {
  height: 48px;
}

.dr-touch p {
  margin: 0;
  font-size: var(--po-fs-base);
  line-height: 1.5;
  color: var(--po-ink-2);
}

.dr-web {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-brand-2);
  overflow-wrap: anywhere;
}

/* The profile's sections, two a row */
.dr-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--po-sp-6);
  padding-top: var(--po-sp-8);
  padding-bottom: var(--po-sp-12);
}

.dr-box {
  padding: var(--po-sp-6);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  min-width: 0;
}

.dr-box h2 {
  margin: 0 0 var(--po-sp-4);
  font-size: var(--po-fs-2xl);
  font-weight: 700;
  color: var(--po-brand);
}

.dr-box dl {
  margin: var(--po-sp-4) 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--po-sp-2) var(--po-sp-5);
  font-size: var(--po-fs-lg);
}

.dr-box dt {
  font-family: var(--po-font-ui);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.dr-box dd {
  margin: 0;
  color: var(--po-ink-2);
  overflow-wrap: anywhere;
}

.dr-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--po-sp-2) var(--po-sp-5);
  font-size: var(--po-fs-lg);
  color: var(--po-ink-2);
}

.dr-ticks li {
  display: flex;
  gap: var(--po-sp-2);
  align-items: center;
}

.dr-ticks svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--po-ok);
}

.dr-firm {
  display: flex;
  flex-wrap: wrap;
  gap: var(--po-sp-5);
  align-items: flex-start;
}

.dr-firm dl {
  margin: 0;
  flex: 1 1 220px;
}

.dr-tile.sm {
  width: 152px;
  height: 68px;
  padding: var(--po-sp-2) var(--po-sp-3);
  border: 1px solid var(--po-line-2);
  border-radius: 10px;
}

.dr-team-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  margin-bottom: var(--po-sp-4);
}

.dr-team-h a {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-brand-2);
}

.dr-near {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--po-sp-4);
}

.dr-near a {
  display: flex;
  gap: var(--po-sp-3);
  align-items: center;
  padding: var(--po-sp-3) var(--po-sp-4);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  font-size: var(--po-fs-base);
  color: var(--po-muted);
}

.dr-near + .dr-note {
  margin-top: var(--po-sp-6);
}

.dr-near a:hover {
  box-shadow: var(--po-sh-2);
  text-decoration: none;
}

.dr-near strong {
  display: block;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  color: var(--po-ink-soft);
}

/* The other directories: one state filter above the cards, no sidebar */
.dr-list {
  row-gap: var(--po-sp-5);
}

.dr-bar {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--po-sp-3);
}

.dr-bar .dr-field {
  flex: 0 1 280px;
}

.dr-bar .btn {
  height: 44px;
}

/* A list with nobody yet: insurance agents (Cannon, 2 Oct) */
.dr-soon {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--po-sp-5);
  padding: var(--po-sp-8);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
}

.dr-soon h2 {
  margin: var(--po-sp-2) 0;
  font-size: var(--po-fs-2xl);
  color: var(--po-ink-soft);
}

.dr-soon p {
  margin: 0;
  color: var(--po-ink-2);
}

.dr-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--po-bg-3);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 700;
  color: var(--po-pending);
}

.dr-touch-h {
  margin: var(--po-sp-1) 0 0;
  font-size: var(--po-fs-lg);
  font-weight: 700;
  color: var(--po-ink-soft);
}

/* A message to the professional (Km5IJSY4): what happens to it beside
   the form, on the section tint, under the profile's header */
.dr-msg {
  background: var(--po-tint-cool);
  border-bottom: 1px solid var(--po-line);
  padding: var(--po-sp-10) 0;
  scroll-margin-top: var(--po-sp-16);
}

.dr-msg-in {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: var(--po-sp-10);
  align-items: start;
}

.dr-msg h2 {
  margin: 0 0 var(--po-sp-3);
  font-size: var(--po-fs-3xl);
  font-weight: 700;
  color: var(--po-brand);
}

.dr-msg-l p {
  margin: 0 0 var(--po-sp-4);
  font-size: var(--po-fs-lg);
  line-height: 1.55;
  color: var(--po-ink-2);
}

.dr-msg-app a {
  font-weight: 600;
  text-decoration: underline;
}

.dr-msg select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 var(--po-sp-3);
  border: 1px solid #b9c2ca;
  border-radius: 8px;
  background: #fff;
  font-family: var(--po-font-text);
  font-size: var(--po-fs-lg);
  font-weight: 400;
  color: var(--po-ink-soft);
}

.dr-about {
  margin: 0;
  font-size: var(--po-fs-lg);
  line-height: 1.6;
  color: var(--po-ink-2);
}

/* The directory's tiles, on the home page (plan F3, option 1) and on
   /directory: a tile per kind of professional, its name and how many are
   listed, brokers first in the brand's navy */
.hd-dir {
  background: var(--po-tint-cool);
  border-top: 1px solid var(--po-line);
  border-bottom: 1px solid var(--po-line);
  padding: var(--po-sp-12) 0 var(--po-sp-12);
}

.hd-dir-h {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--po-sp-5);
  margin-bottom: var(--po-sp-6);
}

.hd-dir-h h2 {
  margin: var(--po-sp-2) 0;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-4xl);
  font-weight: 700;
  letter-spacing: var(--po-ls-tight);
  color: var(--po-brand);
}

.hd-dir-h p {
  margin: 0;
  max-width: 620px;
  font-size: var(--po-fs-xl);
  line-height: 1.55;
  color: var(--po-ink-2);
}

.hd-dir-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--po-sp-4);
}

.hd-dir-tiles a {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-3);
  padding: var(--po-sp-5);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  color: var(--po-ink-soft);
}

.hd-dir-tiles a:hover {
  box-shadow: var(--po-sh-2);
  text-decoration: none;
}

.hd-dir-tiles a.lead {
  background: var(--po-brand);
  border-color: var(--po-brand);
  color: #fff;
}

.hd-dir-tiles strong {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-2xl);
}

.hd-dir-tiles a span {
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

.hd-dir-tiles a.lead span {
  color: var(--po-brand-tint);
}

@media (max-width: 1100px) {
  .hd-dir-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A phone: one tile a row, so a long name and its count share a line */
@media (max-width: 560px) {
  .hd-dir-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .dr-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dr-kinds,
  .dr-near {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dr-msg-in {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--po-sp-6);
  }
  .dr-eval {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--po-sp-8);
  }
  .dr-side {
    position: static;
    max-width: none;
  }
  .dr-cards,
  .dr-boxes,
  .dr-kinds,
  .dr-near {
    grid-template-columns: minmax(0, 1fr);
  }
  .dr-touch {
    max-width: none;
  }
  .dr-av.lg {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 420px) {
  .dr-ticks {
    grid-template-columns: minmax(0, 1fr);
  }
}
