/* Directory, city, trade and business pages. Extends layout.css tokens. */

.dir {
  padding: calc(var(--header-h) + 2.75rem) 6vw 5.5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.dir-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem 4vw;
  align-items: end;
  margin-top: 1.75rem;
}

.dir h1,
.profile h1 {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.dir-lead,
.profile-note {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.dir-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.dir-switch a {
  display: block;
  padding: 0.9rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
}

.dir-switch a:hover,
.dir-switch a[aria-current="page"] {
  font-style: italic;
}

.dir-section {
  margin-top: 4.5rem;
}

.dir-section h2,
.profile-note h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.group-block {
  margin-top: 2.4rem;
}

.group-block h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.group-block h3 a {
  text-decoration: none;
}

.biz-list {
  margin-top: 0.4rem;
}

.letter-block {
  margin-top: 2.6rem;
}

.letter-block > h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.biz-list--pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  margin-top: 0.35rem;
}

.biz-list--pairs .biz-card {
  grid-template-columns: 1fr;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.biz-list--pairs .biz-card h4,
.biz-list--pairs .biz-card__meta,
.biz-list--pairs .biz-card__address,
.biz-list--pairs .biz-card__credential,
.biz-list--pairs .biz-card__phone {
  grid-column: 1;
  grid-row: auto;
  max-width: none;
}

.biz-list--pairs .biz-card__phone {
  align-self: start;
  margin-top: 0.7rem;
  white-space: normal;
}

.biz-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2rem;
  row-gap: 0.3rem;
  align-items: start;
  padding: 1.65rem 0;
  border-top: 1px solid var(--line);
}

.biz-list .biz-card:last-child,
.group-block .biz-card:last-child {
  border-bottom: 1px solid var(--line);
}

.biz-card h3,
.biz-card h4 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.biz-card h3 a,
.biz-card h4 a {
  text-decoration: none;
}

.biz-card h3 a:hover,
.biz-card h4 a:hover,
.group-block h3 a:hover {
  font-style: italic;
}

.biz-card__meta,
.biz-card__address {
  grid-column: 1;
  margin: 0;
}

.biz-card__meta {
  color: var(--ink-soft);
}

.biz-card__address {
  max-width: 38rem;
  color: var(--muted);
}

.biz-card__credential {
  grid-column: 1;
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.biz-card__phone {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.biz-card__phone a {
  text-decoration: none;
}

.dir-actions,
.dir-tail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.dir-actions a,
.dir-tail a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.dir-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4vw;
}

.dir-notes p,
.profile-note p {
  max-width: 38rem;
  color: var(--ink-soft);
}

.dir-notes h3 {
  margin: 1.4rem 0 0.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.dir-notes h3 a {
  text-decoration: none;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  margin-left: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 40rem;
  margin: 0 0 1.45rem;
  color: var(--ink-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 4vw;
  margin-top: 1.5rem;
}

.related-grid ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.related-grid a {
  display: block;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.related-grid li:last-child a {
  border-bottom: 1px solid var(--line);
}

.related-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.related-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile {
  padding: calc(var(--header-h) + 2.75rem) 6vw 5.5rem;
}

.profile-facts {
  margin: 2.4rem 0 0;
  padding: 0;
  max-width: 52rem;
}

.profile-facts div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.profile-facts div:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.profile-facts a {
  text-decoration: none;
}

.profile-note {
  margin-top: 2.5rem;
  max-width: 38rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 800px) {
  .dir,
  .profile {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .dir-head,
  .dir-notes,
  .related-grid,
  .profile-facts div,
  .dir-switch {
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
  }

  .biz-list--pairs,
  .biz-card {
    grid-template-columns: 1fr;
  }

  .biz-card__phone {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    margin-top: 0.45rem;
    white-space: normal;
  }

  .profile-facts dt {
    margin-bottom: -0.35rem;
  }
}
