/* Directory styling follows the ALA Members Directory: navy, white, and gold. */
.ala-firm-directory {
  --ala-navy: #244764;
  --ala-blue: #294d6d;
  --ala-gold: #c8a052;
  --ala-border: #e6e8eb;
  --ala-muted: #657582;
  font-family: Montserrat, Arial, sans-serif;
  color: #3e4e58;
}
.ala-firm-directory *,
.ala-firm-single-layout * { box-sizing: border-box; }
.ala-firm-directory .ala-firm-intro {
  margin: 0 0 25px;
  color: #7b8993;
  font-size: 13px;
  line-height: 1.6;
}
.ala-firm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 17px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--ala-border);
}
.ala-firm-country-tabs,
.ala-firm-controls,
.ala-firm-views { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ala-firm-country-tabs button,
.ala-firm-controls button {
  appearance: none;
  background: #fff;
  color: var(--ala-navy);
  border: 1px solid #dfe3e7;
  border-radius: 3px;
  padding: 9px 8px;
  font: 600 12px/1.25 Montserrat, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.ala-firm-country-tabs button:hover,
.ala-firm-controls button:hover { background: #eff4f8; }
.ala-firm-country-tabs button.is-active,
.ala-firm-controls button.is-active {
  background: var(--ala-navy);
  border-color: var(--ala-navy);
  color: #fff;
}
.ala-firm-country-tabs button:focus-visible,
.ala-firm-controls button:focus-visible,
.ala-firm-card a:focus-visible { outline: 3px solid #cd9c3e; outline-offset: 2px; }
.ala-firm-controls { margin-left: auto; gap: 8px; }
.ala-firm-views { gap: 4px; }
.ala-firm-country-section { margin: 0 0 34px; }
.ala-firm-country-section[hidden] { display: none !important; }
.ala-firm-country-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 3px solid var(--ala-gold);
  margin: 0 0 18px;
  padding: 0 0 12px;
}
.ala-firm-country-heading h2 {
  margin: 0;
  font: 400 27px/1.25 Georgia, 'Times New Roman', serif;
  color: var(--ala-navy);
}
.ala-firm-country-heading span {
  color: #8a969e;
  font-size: 12px;
  white-space: nowrap;
}
.ala-firm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.ala-firm-card {
  border: 1px solid #e5e7e9;
  border-top: 4px solid var(--ala-gold);
  border-radius: 6px;
  box-shadow: 0 2px 9px rgba(22, 50, 75, .04);
  padding: 19px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ala-firm-card-country {
  color: #a18a5b;
  font: 700 10px/1.6 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 13px;
}
.ala-firm-card h3 {
  margin: 0 0 11px;
  color: var(--ala-navy);
  font: 700 21px/1.35 Georgia, 'Times New Roman', serif;
  overflow-wrap: anywhere;
}
.ala-firm-card h3 a,
.ala-firm-card h3 a:visited { color: var(--ala-navy); text-decoration: none; }
.ala-firm-card h3 a:hover { color: #367da0; }
.ala-firm-card-section {
  margin: 11px 0 0;
  padding-top: 11px;
  border-top: 1px solid #e8eaed;
}
.ala-firm-label {
  display: block;
  margin-bottom: 5px;
  font: 700 10px/1.4 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #987b42;
}
.ala-firm-card-section p {
  font: 400 12px/1.62 Montserrat, Arial, sans-serif;
  color: #657582;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.ala-firm-card-section a { color: var(--ala-navy); text-decoration: none; }
.ala-firm-card-section a:hover { text-decoration: underline; }
.ala-firm-card-practice {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.ala-firm-full-profile {
  display: inline-flex;
  justify-content: flex-start;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  padding-top: 17px;
  font: 700 12px/1.5 Montserrat, Arial, sans-serif;
  color: var(--ala-navy) !important;
  text-decoration: none !important;
}
.ala-firm-full-profile:hover { text-decoration: underline !important; }
.ala-firm-empty { color: #86949e; font-size: 13px; margin: 0; padding: 5px 0 10px; }
/* List mode is a compact, full-width card layout. */
.ala-firm-directory.is-list .ala-firm-cards { grid-template-columns: 1fr; gap: 12px; }
.ala-firm-directory.is-list .ala-firm-card {
  display: grid;
  grid-template-columns: minmax(165px, 1fr) minmax(0, 2fr);
  column-gap: 26px;
  padding: 19px 22px;
}
.ala-firm-directory.is-list .ala-firm-card-country { grid-column: 1; margin-bottom: 5px; }
.ala-firm-directory.is-list .ala-firm-card h3 { grid-column: 1; grid-row: 2 / span 3; }
.ala-firm-directory.is-list .ala-firm-card-section { grid-column: 2; margin: 0 0 10px; padding-top: 0; border-top: none; }
.ala-firm-directory.is-list .ala-firm-full-profile { grid-column: 2; padding-top: 2px; }
.ala-firm-directory.is-list .ala-firm-card-practice { -webkit-line-clamp: 3; }
/* Firm profile uses the same repeated field convention as member profiles. */
.ala-firm-single .ala-firm-single-layout {
  max-width: 930px;
  margin: 0 auto;
  color: #465863;
  font: 400 15px/1.8 Montserrat, Arial, sans-serif;
}
.ala-firm-single .ala-firm-single-eyebrow {
  color: #987b42;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.ala-firm-single .ala-firm-profile-data {
  border: 1px solid #e2e6e9;
  border-top: 4px solid #c8a052;
  border-radius: 5px;
  padding: 22px 28px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 49, 69, .05);
}
.ala-firm-single .ala-firm-profile-data h2 {
  color: #244764;
  font: 400 24px/1.3 Georgia, 'Times New Roman', serif;
  margin: 10px 0 20px;
}
.ala-firm-single .ala-firm-field { margin: 0 0 19px; border-bottom: 1px solid #e9ecee; padding-bottom: 17px; }
.ala-firm-single .ala-firm-field:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.ala-firm-single .ala-firm-field h3 {
  color: #9a7e46;
  font: 700 11px/1.4 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 7px;
}
.ala-firm-single .ala-firm-field p { margin: 0; font-size: 14px; line-height: 1.75; }
.ala-firm-single .ala-firm-contacts { padding: 0; margin: 0; list-style: none; }
.ala-firm-single .ala-firm-contacts li { margin: 0 0 5px; line-height: 1.6; overflow-wrap: anywhere; }
.ala-firm-single .ala-firm-contacts a { color: #244764; }
.ala-firm-single .ala-firm-single-back { margin: 22px 0 0; }
.ala-firm-single .ala-firm-single-back a { text-decoration: none; font-weight: 700; color: #244764; }
.ala-firm-single .ala-firm-single-back a:hover { text-decoration: underline; }
.ala-firm-single .entry-meta,
.ala-firm-single .entry-footer .post-meta,
.ala-firm-single .post-meta { display: none; }
@media (max-width: 1050px) {
  .ala-firm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ala-firm-controls { margin-left: 0; }
}
@media (max-width: 700px) {
  .ala-firm-cards { grid-template-columns: 1fr; }
  .ala-firm-directory.is-list .ala-firm-card { display: flex; padding: 18px; }
  .ala-firm-country-heading h2 { font-size: 24px; }
  .ala-firm-controls { width: 100%; justify-content: flex-end; }
  .ala-firm-country-tabs button { padding: 8px 7px; font-size: 11px; }
  .ala-firm-single .ala-firm-profile-data { padding: 18px; }
}
