/**
 * Recommended law firms — Ajman · isolated (Golden Master parity · uae-lawyer recommended-firms.css)
 * Gold #c9a84c · Navy #0b1f33 · Mist #f2f0e8 · local Tajawal / Inter only.
 */
body[data-page="recommended-law-firms-uae"] .site-main {
  font-family: "Tajawal", system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  max-width: 100%;
  overflow-x: hidden;
}
html[lang="en"] body[data-page="recommended-law-firms-uae"] .site-main {
  font-family: "Inter", system-ui, sans-serif;
}

.rf-page {
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.rf-wrap {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  padding: 24px 0;
  box-sizing: border-box;
}

.rf-hero {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1f33;
  overflow: hidden;
  border-bottom: 3px solid #c9a84c;
}
.rf-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}
.rf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.55) 0%, rgba(11, 31, 51, 0.78) 100%),
    linear-gradient(90deg, rgba(201, 168, 76, 0.34) 0%, rgba(201, 168, 76, 0.1) 55%, rgba(11, 31, 51, 0.4) 100%);
}
.rf-hero__inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rf-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.rf-crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.rf-crumb a:hover { color: #c9a84c; }
.rf-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  max-width: 18em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
html[lang="ar"] .rf-hero h1 {
  max-width: none;
}
html[lang="en"] .rf-hero h1 {
  font-family: "Inter", system-ui, sans-serif;
}
.rf-hero__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 18px;
  background: #c9a84c;
  border-radius: 2px;
}
.rf-hero__lede {
  margin: 0;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.8;
}

.rf-intro {
  background: #f2f0e8;
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}
.rf-intro__lede {
  margin: 0 0 20px;
  text-align: center;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 42em;
  margin-inline: auto;
}
.rf-intro__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-intro__grid li {
  padding: 18px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  text-align: center;
}
.rf-intro__grid h3 {
  margin: 0 0 8px;
  color: #0b1f33;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}
.rf-intro__grid p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.65;
}

.rf-list {
  background: #f2f0e8;
  padding: 8px 0 40px;
}
.rf-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.06);
}
.rf-card--featured {
  border-top: 3px solid #c9a84c;
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.18);
  grid-template-columns: 260px minmax(0, 1fr);
}
.rf-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 88px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.45);
  overflow: hidden;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.rf-card--featured .rf-card__media {
  width: 260px;
  height: 96px;
}
.rf-card__media--dark {
  background: #0b1f33;
  padding: 0;
}
.rf-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rf-card__mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c9a84c;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.rf-card__body {
  min-width: 0;
}
.rf-card h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #0b1f33;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.45;
}
.rf-card h2 a {
  color: inherit;
  text-decoration: none;
}
.rf-card h2 a:hover { color: #c9a84c; }
.rf-star {
  flex: 0 0 auto;
  color: #c9a84c;
  font-size: 1.05em;
  line-height: 1.4;
  filter: grayscale(0.15) saturate(1.4);
}
.rf-card__badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  color: #8a6f2e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rf-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}
.rf-card__pin {
  flex: 0 0 auto;
  line-height: 1.65;
}
.rf-card__meta a {
  color: #c9a84c;
  font-weight: 700;
  text-decoration: none;
}
.rf-card__meta a:hover { color: #a98b45; }
.rf-card__blurb {
  margin: 10px 0 0;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.8;
}
.rf-card__reviewer {
  margin: 10px 0 0;
  color: #0b1f33;
  font-size: 0.95rem;
  line-height: 1.7;
}
.rf-card__reviewer strong {
  color: #c9a84c;
  font-weight: 800;
}

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 8px;
  background: #c9a84c;
  color: #fff !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.rf-btn:hover {
  background: #d8b46a;
  box-shadow: 0 6px 14px rgba(201, 168, 76, 0.35);
}
.rf-btn:active {
  transform: translateY(1px);
}

.rf-note {
  margin: 28px 0 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

.rf-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .rf-wrap {
    width: 100%;
    padding: 16px;
  }
  .rf-hero {
    min-height: 260px;
  }
  .rf-hero__inner {
    padding: 28px 0 24px;
  }
  .rf-hero h1 { font-size: 1.32rem; }
  .rf-hero__lede { font-size: 0.98rem; }
  .rf-intro__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rf-list { padding-bottom: 32px; }
  .rf-cards { gap: 16px; }
  .rf-card,
  .rf-card--featured {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 16px;
  }
  .rf-card h2,
  .rf-card__meta,
  .rf-card__reviewer {
    justify-content: center;
  }
  .rf-card__media,
  .rf-card--featured .rf-card__media {
    width: 100%;
    max-width: 100%;
    height: 80px;
  }
  .rf-btn {
    width: 90%;
    margin-inline: auto;
  }
}
