/*
 * Reference-matched lawyer and law-firm profiles.
 * Loaded after the global fluid stylesheet so the profile pages retain the
 * supplied compact legal-directory proportions without becoming fixed-width.
 */

.wld-reference-profile {
  --ref-navy: var(--theme-navy, #061d3c);
  --ref-navy-2: #082b55;
  --ref-gold: var(--theme-gold, #efb63f);
  --ref-text: #0c2342;
  --ref-muted: #52647b;
  --ref-line: #dfe6ee;
  --ref-soft: #f5f7fa;
  --ref-green: #15934b;
  --ref-shadow: 0 2px 9px rgba(7, 31, 58, .06);
  color: var(--ref-text);
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
}

.wld-reference-profile *,
.wld-reference-profile *::before,
.wld-reference-profile *::after { box-sizing: border-box; }

.wld-ref-shell {
  width: calc(100% - clamp(28px, 7.8vw, 128px));
  max-width: none;
  margin-inline: auto;
}

.wld-reference-profile .wld-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* Breadcrumb */
.wld-ref-breadcrumb {
  color: #fff;
  background: var(--ref-navy);
}
.wld-ref-breadcrumb .wld-ref-shell {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11.5px;
}
.wld-ref-breadcrumb a,
.wld-ref-breadcrumb span { color: inherit; text-decoration: none; }
.wld-ref-breadcrumb a:hover { color: var(--ref-gold); }
.wld-ref-breadcrumb span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }

/* Hero */
.wld-ref-hero { padding: 20px 0 15px; background: #fff; }
.wld-lawyer-hero-grid {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(250px, 282px);
  gap: clamp(18px, 2.25vw, 28px);
  align-items: start;
}
.wld-firm-hero-grid {
  display: grid;
  grid-template-columns: minmax(270px, 305px) minmax(0, 1fr) minmax(250px, 266px);
  gap: clamp(16px, 1.9vw, 24px);
  align-items: start;
}

.wld-lawyer-photo-wrap {
  position: relative;
  min-width: 0;
  aspect-ratio: 239 / 245;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f4;
}
.wld-lawyer-reference-photo,
.wld-lawyer-photo-wrap .wld-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: inherit;
  color: #fff;
  background: #16395c;
  font: 700 42px/1 Georgia, serif;
}
.wld-top-rated-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 3px;
  color: #fff;
  background: #08254a;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  font-size: 11.5px;
  font-weight: 800;
}
.wld-top-rated-badge::first-letter { color: var(--ref-gold); }

.wld-ref-summary { min-width: 0; padding-top: 7px; }
.wld-ref-summary h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--ref-text);
  font: 700 clamp(26px, 2.75vw, 34px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.wld-ref-verified-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--ref-gold);
  font: 800 11px/1 Arial, sans-serif;
}
.wld-ref-verified-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 5px 8px;
  border: 1px solid #e2e6eb;
  border-radius: 4px;
  color: #30435c;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
.wld-ref-verified-label::first-letter { color: var(--ref-gold); }
.wld-ref-subtitle,
.wld-ref-firm-name {
  margin: 0;
  color: #152b49;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.4;
}
.wld-ref-subtitle { font-size: 17px; font-weight: 700; }
.wld-ref-firm-name { margin-top: 2px; font-size: 16px; font-weight: 700; }

.wld-ref-rating-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 8px;
}
.wld-ref-rating-trust .wld-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #42536a;
  font-size: 12.5px;
}
.wld-ref-rating-trust .wld-stars { color: #f3b42d; font-size: 14px; letter-spacing: .4px; }
.wld-ref-rating-trust .wld-rating-number { color: #213853; font-weight: 700; }
.wld-ref-rating-trust .wld-review-count::after { content: " reviews"; }
.wld-ref-trust {
  padding-left: 12px;
  border-left: 1px solid #ccd5df;
  color: #324761;
  font-size: 12.5px;
  font-weight: 700;
}

.wld-ref-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.wld-ref-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border-radius: 4px;
  color: #243b57;
  background: #f0f3f7;
  font-size: 11.5px;
  text-decoration: none;
}
.wld-ref-tags a:hover { color: #071b34; background: #ffe8a8; }

.wld-ref-facts {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  color: #253d59;
  font-size: 12.5px;
}
.wld-ref-facts li { display: flex; align-items: center; gap: 8px; }
.wld-ref-facts .is-positive { color: var(--ref-green); font-weight: 700; }
.wld-status-dot { font-size: 12px; line-height: 1; }
.wld-firm-ref-excerpt { margin: 15px 0 0; color: #31445d; font-size: 12.5px; line-height: 1.55; }

/* Contact card */
.wld-ref-contact-card {
  min-width: 0;
  padding: 18px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(145deg, #082b55 0%, #061d3c 72%);
  box-shadow: 0 4px 13px rgba(4, 28, 56, .16);
}
.wld-ref-contact-card h2 { margin: 0 0 14px; color: #fff; font: 700 16px/1.2 Georgia, serif; }
.wld-ref-contact-card p {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.35;
}
.wld-ref-contact-card p .wld-icon { width: 14px; height: 14px; }
.wld-ref-contact-card a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.wld-ref-contact-card a:hover { color: var(--ref-gold); }
.wld-ref-action {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 3px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
}
.wld-ref-action--gold { color: #091d37; border-color: var(--ref-gold); background: var(--ref-gold); }
.wld-ref-action:hover,
.wld-ref-action.is-saved { color: #071b34; background: #fff; }
.wld-ref-action--gold:hover { background: #f8c85e; }
.wld-ref-action .wld-icon { width: 13px; height: 13px; }

/* Firm gallery */
.wld-firm-ref-gallery { min-width: 0; }
.wld-firm-ref-gallery-main {
  position: relative;
  height: 207px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9edf2;
}
.wld-firm-ref-gallery-main > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wld-firm-photo-count {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  background: rgba(5, 30, 59, .93);
  font-size: 10.5px;
  font-weight: 800;
}
.wld-firm-ref-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.wld-firm-ref-thumbs button {
  height: 51px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6dee7;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.wld-firm-ref-thumbs button.is-active { border: 2px solid var(--ref-gold); }
.wld-firm-ref-thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wld-firm-ref-summary { padding-top: 3px; }

/* Stats */
.wld-ref-stats {
  display: grid;
  margin-top: 2px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--ref-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--ref-shadow);
}
.wld-lawyer-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wld-firm-stats-ref { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wld-ref-stats > div {
  min-width: 0;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border-right: 1px solid var(--ref-line);
}
.wld-ref-stats > div:last-child { border-right: 0; }
.wld-ref-stats .wld-icon { width: 20px; height: 20px; color: #122d4e; }
.wld-ref-stats span { min-width: 0; display: grid; gap: 1px; }
.wld-ref-stats strong { color: #1a2f4c; font: 700 11px/1.2 Georgia, serif; }
.wld-ref-stats small { color: #5c6c80; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main body */
.wld-ref-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .96fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}
.wld-ref-main-card,
.wld-ref-sidebar-card {
  border: 1px solid var(--ref-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--ref-shadow);
}
.wld-ref-main-card { min-width: 0; overflow: hidden; }
.wld-ref-sidebar { min-width: 0; display: grid; gap: 12px; }

.wld-ref-tabs {
  min-height: 41px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  padding: 0 17px;
  border-bottom: 1px solid var(--ref-line);
  scrollbar-width: thin;
}
.wld-ref-tabs a {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: #203650;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.wld-ref-tabs a.is-active,
.wld-ref-tabs a:hover { color: #091d37; border-bottom-color: var(--ref-gold); }

.wld-ref-section { padding: 17px 18px; border-bottom: 1px solid var(--ref-line); scroll-margin-top: 95px; }
.wld-ref-section:last-child { border-bottom: 0; }
.wld-ref-section h2,
.wld-ref-sidebar-card h2 {
  margin: 0;
  color: #172c49;
  font: 700 16px/1.25 Georgia, "Times New Roman", serif;
}
.wld-ref-section-heading,
.wld-ref-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wld-ref-section-heading > a,
.wld-ref-sidebar-heading > a,
.wld-ref-outline-btn {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid #aebdcd;
  border-radius: 3px;
  color: #17304e;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}
.wld-ref-section-heading > a:hover,
.wld-ref-sidebar-heading > a:hover,
.wld-ref-outline-btn:hover { border-color: var(--ref-gold); background: #fff9e9; }
.wld-ref-prose { color: #31445e; font-size: 12.5px; line-height: 1.55; }
.wld-ref-prose p { margin: 7px 0; }
.wld-ref-prose p:first-child { margin-top: 8px; }
.wld-ref-prose p:last-child { margin-bottom: 0; }
.wld-ref-empty { margin: 8px 0 0; color: #66768a; font-size: 12.5px; }
.wld-ref-anchor { display: block; scroll-margin-top: 95px; }

/* Practice area cards */
.wld-ref-practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 15px; margin-top: 12px; }
.wld-ref-practice-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.wld-ref-round-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #102e51;
  background: #f1f3f6;
}
.wld-ref-round-icon .wld-icon { width: 22px; height: 22px; }
.wld-ref-practice-grid h3 { margin: 1px 0 3px; color: #162c49; font-size: 10.5px; line-height: 1.25; }
.wld-ref-practice-grid p { margin: 0; color: #51647b; font-size: 8.1px; line-height: 1.4; }
.wld-view-all-practice {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 5px;
  color: #17304e;
  background: #f7f8fa;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.wld-view-all-practice .wld-icon { width: 22px; height: 22px; }

/* Education */
.wld-education-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.wld-education-grid article { min-width: 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 10px; align-items: start; }
.wld-school-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3ea;
  border-radius: 4px;
  color: #fff;
  background: #9c1727;
  font: 700 20px/1 Georgia, serif;
}
.wld-school-mark--2 { background: #fff; color: #2264a4; }
.wld-school-mark--3 { background: #f4cc30; color: #0e315d; }
.wld-education-grid h3 { margin: 0 0 2px; font-size: 10.5px; }
.wld-education-grid p,
.wld-education-grid small { display: block; margin: 0; color: #40536d; font-size: 10.5px; line-height: 1.35; }

/* Professional experience */
.wld-experience-list { margin-top: 10px; }
.wld-experience-list article {
  display: grid;
  grid-template-columns: 45px 170px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid #e4e8ed;
}
.wld-experience-list article:first-child { padding-top: 3px; }
.wld-experience-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.wld-experience-logo {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #17395d;
  font: 700 13px/1 Georgia, serif;
}
.wld-experience-title h3 { margin: 0 0 1px; font-size: 12.5px; }
.wld-experience-title p,
.wld-experience-title small { display: block; margin: 0; color: #40536b; font-size: 10.5px; }
.wld-experience-desc { margin: 3px 0 0; color: #40536b; font-size: 8.8px; line-height: 1.42; }

/* Reviews */
.wld-lawyer-review-grid { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 18px; margin-top: 8px; }
.wld-lawyer-rating-box,
.wld-firm-rating-ref-box { border: 1px solid #e0e6ed; border-radius: 4px; background: #fff; }
.wld-lawyer-rating-box { min-height: 122px; display: grid; place-content: center; text-align: center; }
.wld-lawyer-rating-box strong,
.wld-firm-rating-ref-box > strong { color: #0a274d; font: 700 31px/1 Georgia, serif; }
.wld-lawyer-rating-box > div,
.wld-rating-stars-big { margin-top: 4px; color: #f2b32c; letter-spacing: 1px; font-size: 15px; }
.wld-lawyer-rating-box p,
.wld-firm-rating-ref-box > p { margin: 5px 0 0; color: #53657a; font-size: 10.5px; }
.wld-ref-review-list { display: grid; align-content: start; gap: 8px; }
.wld-ref-review-list article { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #e8ecf1; }
.wld-ref-review-list article:last-child { border-bottom: 0; }
.wld-ref-review-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #203c5d; font-size: 8px; font-weight: 800; }
.wld-ref-review-list header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.wld-ref-review-list header strong { font-size: 10.5px; }
.wld-ref-review-list header span { color: #f2b32c; font-size: 8px; letter-spacing: .4px; }
.wld-ref-review-list header time { color: #8a97a8; font-size: 7px; }
.wld-ref-review-list p { margin: 3px 0 0; color: #40536b; font-size: 8px; line-height: 1.4; }
.wld-review-note { margin: 9px 0 0; color: #59697b; font-size: 7.5px; }

.wld-firm-review-ref-grid { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 18px; margin-top: 8px; }
.wld-firm-rating-ref-box { padding: 13px; text-align: center; }
.wld-ref-rating-bars { display: grid; gap: 4px; margin-top: 11px; text-align: left; }
.wld-ref-rating-bars > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 5px; align-items: center; font-size: 7px; }
.wld-ref-rating-bars i { height: 5px; overflow: hidden; border-radius: 4px; background: #e6eaee; }
.wld-ref-rating-bars b { height: 100%; display: block; background: var(--ref-gold); }
.wld-ref-rating-bars em { color: #506176; font-style: normal; text-align: right; }

/* Sidebar cards */
.wld-ref-sidebar-card { padding: 15px; }
.wld-ref-sidebar-card > h2 { margin-bottom: 2px; }
.wld-sidebar-kicker { margin: 0 0 10px; color: #4f6178; font-size: 9px; }
.wld-associated-firm-image { display: block; height: 116px; margin: 9px 0 11px; overflow: hidden; border-radius: 4px; background: #eef1f4; }
.wld-associated-firm-photo,
.wld-associated-firm-image .wld-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; color: #fff; background: #17395b; font: 700 28px Georgia, serif; }
.wld-ref-mini-details { display: grid; gap: 7px; margin: 0; }
.wld-ref-mini-details div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; font-size: 8.8px; }
.wld-ref-mini-details dt { color: #253c58; font-weight: 800; }
.wld-ref-mini-details dd { margin: 0; color: #40536c; overflow-wrap: anywhere; }
.wld-ref-mini-details a { color: #164273; text-decoration: none; }
.wld-ref-outline-btn { width: 100%; margin-top: 11px; }
.wld-ref-outline-btn .wld-icon { width: 12px; height: 12px; }

.wld-sidebar-promo {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  padding: 16px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #092b55, #061d3c);
  box-shadow: var(--ref-shadow);
}
.wld-sidebar-promo::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(239,182,63,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(239,182,63,.035), 0 0 0 28px rgba(239,182,63,.025);
}
.wld-sidebar-promo h2 { position: relative; z-index: 1; margin: 0; color: #fff; font: 700 17px/1.15 Georgia, serif; }
.wld-sidebar-promo h3 { position: relative; z-index: 1; margin: 3px 0 9px; color: var(--ref-gold); font: 700 12px/1.2 Georgia, serif; }
.wld-sidebar-promo p { position: relative; z-index: 1; max-width: 72%; margin: 0 0 11px; color: #fff; font-size: 10.5px; line-height: 1.4; }
.wld-sidebar-promo ul { position: relative; z-index: 1; display: grid; gap: 4px; padding: 0; margin: 0 0 12px; list-style: none; }
.wld-sidebar-promo li { font-size: 10.5px; }
.wld-sidebar-promo li::before { content: "✓"; margin-right: 6px; color: var(--ref-gold); font-weight: 900; }
.wld-sidebar-promo > a { position: relative; z-index: 2; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 5px 15px; border-radius: 3px; color: #071a33; background: var(--ref-gold); font-size: 10.5px; font-weight: 900; text-decoration: none; }
.wld-sidebar-promo--ad { min-height: 140px; background: linear-gradient(120deg, #082a53, #061d3c 66%, #2c1d10); }
.wld-sidebar-promo--ad h2 { font-size: 16px; }
.wld-sidebar-promo--firm { min-height: 178px; padding-right: 82px; }
.wld-sidebar-promo--firm img { position: absolute; right: -24px; top: 15px; width: 125px; opacity: .74; }

.wld-ref-ad-wrap .wld-advertisement { margin: 0; }
.wld-ref-ad-wrap .wld-advertisement img { width: 100%; display: block; border-radius: 5px; }

/* Firm about */
.wld-firm-about-section { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 18px; align-items: center; }
.wld-firm-world-map img { width: 100%; height: auto; display: block; opacity: .72; }
.wld-firm-practice-ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Firm team */
.wld-firm-attorney-ref-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.wld-firm-attorney-ref-grid article { overflow: hidden; border: 1px solid #e0e5eb; border-radius: 4px; background: #fff; }
.wld-firm-attorney-ref-photo { height: 70px; display: block; overflow: hidden; background: #edf0f3; }
.wld-firm-attorney-ref-img,
.wld-firm-attorney-ref-photo .wld-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; color: #fff; background: #17395b; font: 700 19px Georgia, serif; }
.wld-firm-attorney-ref-grid article > div { padding: 6px 7px 7px; }
.wld-firm-attorney-ref-grid h3 { margin: 0 0 1px; font-size: 11.5px; line-height: 1.2; }
.wld-firm-attorney-ref-grid h3 a { color: #132b48; text-decoration: none; }
.wld-firm-attorney-ref-grid p { margin: 0; color: #3d5068; font-size: 8px; }
.wld-firm-attorney-ref-grid small { display: block; margin: 1px 0 4px; color: #52647a; font-size: 7.5px; }
.wld-firm-attorney-ref-grid .wld-rating { display: flex; align-items: center; gap: 3px; font-size: 7px; }
.wld-firm-attorney-ref-grid .wld-stars { color: #f2b32c; letter-spacing: .3px; }
.wld-firm-attorney-ref-grid .wld-review-count::after { content: " reviews"; }

/* Firm location / related lists */
.wld-firm-location-ref-list,
.wld-related-firm-ref-list,
.wld-related-lawyer-list { display: grid; }
.wld-firm-location-ref-list article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #e6ebf0; }
.wld-firm-location-ref-list article:first-child { padding-top: 2px; }
.wld-firm-location-ref-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.wld-firm-location-ref-list img { width: 48px; height: 38px; object-fit: cover; border-radius: 3px; }
.wld-firm-location-ref-list strong { display: block; font-size: 10.5px; }
.wld-firm-location-ref-list p { margin: 1px 0 0; color: #4f6178; font-size: 7.2px; line-height: 1.35; }

.wld-related-firm-ref-list article { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e6ebf0; }
.wld-related-firm-ref-list article:first-child { padding-top: 2px; }
.wld-related-firm-ref-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.wld-related-firm-logo { width: 39px; height: 39px; overflow: hidden; border-radius: 3px; text-decoration: none; }
.wld-related-firm-img,
.wld-related-firm-logo .wld-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; color: #fff; background: #09294f; font: 700 12px Georgia, serif; }
.wld-related-firm-ref-list h3,
.wld-related-lawyer-list h3 { margin: 0 0 1px; font-size: 8.8px; }
.wld-related-firm-ref-list h3 a,
.wld-related-lawyer-list h3 a { color: #17304e; text-decoration: none; }
.wld-related-firm-ref-list p,
.wld-related-lawyer-list p { margin: 0; color: #5c6e83; font-size: 7px; }
.wld-related-firm-ref-list .wld-rating { font-size: 7px; }
.wld-related-firm-ref-list .wld-stars { color: #f2b32c; }
.wld-related-firm-ref-list .wld-review-count,
.wld-related-firm-ref-list .wld-rating-number { font-size: 7px; }

.wld-related-lawyer-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #e6ebf0; }
.wld-related-lawyer-list article:first-child { padding-top: 2px; }
.wld-related-lawyer-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.wld-related-lawyer-photo { width: 38px; height: 38px; display: block; overflow: hidden; border-radius: 3px; background: #edf0f3; }
.wld-related-lawyer-img,
.wld-related-lawyer-photo .wld-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; color: #fff; background: #17395b; font: 700 12px Georgia, serif; }
.wld-related-lawyer-list .wld-rating { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 7px; }
.wld-related-lawyer-list .wld-stars { color: #f2b32c; }
.wld-related-lawyer-list .wld-review-count::after { content: ""; }

/* Responsive */
@media (min-width: 1440px) {
  .wld-reference-profile { font-size: 13px; }
  .wld-lawyer-hero-grid { grid-template-columns: minmax(250px, 17%) minmax(0, 1fr) minmax(300px, 21%); }
  .wld-firm-hero-grid { grid-template-columns: minmax(320px, 22%) minmax(0, 1fr) minmax(300px, 20%); }
  .wld-ref-body-grid { grid-template-columns: minmax(0, 2.55fr) minmax(310px, .9fr); }
  .wld-ref-section { padding: 21px 23px; }
  .wld-ref-practice-grid p { font-size: 9px; }
}

@media (max-width: 1180px) {
  .wld-lawyer-hero-grid { grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 18px; }
  .wld-firm-hero-grid { grid-template-columns: 280px minmax(0, 1fr) 250px; gap: 16px; }
  .wld-ref-summary h1 { font-size: 27px; }
  .wld-ref-subtitle { font-size: 15px; }
  .wld-ref-firm-name { font-size: 14px; }
  .wld-ref-body-grid { grid-template-columns: minmax(0, 2fr) minmax(250px, .95fr); gap: 18px; }
}

@media (max-width: 980px) {
  .wld-ref-shell { width: calc(100% - 36px); }
  .wld-lawyer-hero-grid,
  .wld-firm-hero-grid { grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); }
  .wld-ref-contact-card { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .wld-ref-contact-card h2 { grid-column: 1 / -1; margin-bottom: 2px; }
  .wld-ref-contact-card p { margin: 0; }
  .wld-ref-contact-card .wld-ref-action { margin-top: 2px; }
  .wld-lawyer-stats { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .wld-firm-stats-ref { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wld-firm-stats-ref > div:nth-child(3n) { border-right: 0; }
  .wld-firm-stats-ref > div:nth-child(-n+3) { border-bottom: 1px solid var(--ref-line); }
  .wld-ref-body-grid { grid-template-columns: 1fr; }
  .wld-ref-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wld-ref-sidebar > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .wld-ref-shell { width: calc(100% - 28px); }
  .wld-ref-breadcrumb .wld-ref-shell { min-height: 32px; gap: 7px; font-size: 10.5px; }
  .wld-ref-hero { padding-top: 13px; }
  .wld-lawyer-hero-grid,
  .wld-firm-hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .wld-lawyer-photo-wrap { width: min(100%, 420px); aspect-ratio: 4 / 4.15; }
  .wld-firm-ref-gallery { max-width: 620px; }
  .wld-firm-ref-gallery-main { height: clamp(225px, 57vw, 390px); }
  .wld-firm-ref-thumbs button { height: 58px; }
  .wld-ref-summary { padding-top: 0; }
  .wld-ref-summary h1 { font-size: clamp(27px, 8vw, 34px); }
  .wld-ref-subtitle { font-size: 16px; }
  .wld-ref-firm-name { font-size: 15px; }
  .wld-ref-contact-card { display: block; padding: 16px; }
  .wld-ref-contact-card p { margin-bottom: 10px; }
  .wld-ref-action { min-height: 44px; margin-top: 8px; font-size: 11px; }
  .wld-ref-stats { margin-bottom: 14px; }
  .wld-lawyer-stats,
  .wld-firm-stats-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .wld-ref-stats > div { justify-content: flex-start; min-height: 61px; border-right: 1px solid var(--ref-line) !important; border-bottom: 1px solid var(--ref-line); }
  .wld-ref-stats > div:nth-child(even) { border-right: 0 !important; }
  .wld-ref-stats > div:last-child { border-bottom: 0; }
  .wld-lawyer-stats > div:nth-last-child(2) { border-bottom: 0; }
  .wld-lawyer-stats > div:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .wld-firm-stats-ref > div:nth-last-child(-n+2) { border-bottom: 0; }
  .wld-ref-stats small { white-space: normal; }
  .wld-ref-tabs { padding-inline: 8px; }
  .wld-ref-tabs a { min-height: 44px; padding-inline: 10px; font-size: 9px; }
  .wld-ref-section { padding: 15px; }
  .wld-ref-practice-grid,
  .wld-firm-practice-ref-grid { grid-template-columns: 1fr; gap: 12px; }
  .wld-ref-practice-grid article { grid-template-columns: 40px minmax(0, 1fr); }
  .wld-ref-round-icon { width: 40px; height: 40px; }
  .wld-ref-practice-grid h3 { font-size: 11px; }
  .wld-ref-practice-grid p { font-size: 8.8px; }
  .wld-education-grid { grid-template-columns: 1fr; }
  .wld-experience-list article { grid-template-columns: 44px minmax(0, 1fr); }
  .wld-experience-desc { grid-column: 2; margin-top: -2px; }
  .wld-lawyer-review-grid,
  .wld-firm-review-ref-grid { grid-template-columns: 1fr; }
  .wld-lawyer-rating-box { min-height: 104px; }
  .wld-firm-about-section { grid-template-columns: 1fr; }
  .wld-firm-world-map { display: none; }
  .wld-firm-attorney-ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wld-firm-attorney-ref-photo { height: 95px; }
  .wld-ref-sidebar { grid-template-columns: 1fr; }
  .wld-ref-sidebar > :last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 420px) {
  .wld-ref-shell { width: calc(100% - 20px); }
  .wld-ref-breadcrumb .wld-ref-shell { font-size: 8px; }
  .wld-ref-summary h1 { font-size: 26px; }
  .wld-ref-rating-trust { align-items: flex-start; flex-direction: column; gap: 5px; }
  .wld-ref-trust { padding-left: 0; border-left: 0; }
  .wld-ref-tags { gap: 5px; }
  .wld-ref-tags a { min-height: 28px; }
  .wld-firm-ref-thumbs { gap: 4px; }
  .wld-firm-ref-thumbs button { height: 49px; }
  .wld-ref-stats > div { padding: 8px; gap: 7px; }
  .wld-ref-stats .wld-icon { width: 17px; height: 17px; }
  .wld-ref-section-heading { align-items: flex-start; }
  .wld-firm-attorney-ref-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wld-firm-attorney-ref-photo { height: 88px; }
  .wld-sidebar-promo { min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .wld-reference-profile *, .wld-reference-profile *::before, .wld-reference-profile *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Reference artwork and media refinements. */
.wld-ref-review-avatar { overflow: hidden; }
.wld-ref-review-avatar .wld-reviewer-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.wld-sidebar-promo--ad {
  padding-right: 108px;
}
.wld-sidebar-promo--ad > h2,
.wld-sidebar-promo--ad > h3,
.wld-sidebar-promo--ad > p,
.wld-sidebar-promo--ad > a {
  position: relative;
  z-index: 2;
}
.wld-sidebar-promo--ad .wld-promo-art {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 5px 5px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}
.wld-sidebar-promo--firm img {
  right: -4px;
  top: 0;
  width: 45%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .9;
  border-radius: 0 5px 5px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 36%);
  mask-image: linear-gradient(to right, transparent 0%, #000 36%);
}
.wld-firm-world-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 420px) {
  .wld-sidebar-promo--ad { padding-right: 88px; }
}
.wld-school-mark .wld-school-logo-img,
.wld-experience-logo .wld-experience-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.wld-reviewer-subtitle {
  display: block;
  margin-top: 1px;
  color: #718095;
  font-size: 7px;
  line-height: 1.2;
}
