:root {
  --profile-ink: #18242d;
  --profile-muted: #5a6972;
  --profile-line: #d5ddd9;
  --profile-paper: #ffffff;
  --profile-soft: #f3f7f5;
  --profile-accent: #0f766e;
  --profile-accent-dark: #0a514d;
  --profile-warm: #b84b31;
  --profile-gold: #d8a323;
  --profile-max: 1180px;
}

.direct-profile-site {
  min-width: 0;
}

.profile-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(24, 36, 45, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(24, 36, 45, 0.08);
  backdrop-filter: blur(16px);
}

.profile-header-inner,
.profile-site-footer,
.direct-profile-main {
  width: min(var(--profile-max), calc(100% - 40px));
  margin-inline: auto;
}

.profile-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--profile-ink);
  text-decoration: none;
}

.profile-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.profile-brand strong,
.profile-brand small {
  display: block;
  letter-spacing: 0;
}

.profile-brand strong {
  font-size: 1.42rem;
  line-height: 1.05;
}

.profile-brand small {
  margin-top: 4px;
  color: var(--profile-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-left: auto;
}

.profile-site-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--profile-muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.profile-site-header nav a:hover,
.profile-site-header nav a:focus-visible {
  color: var(--profile-accent-dark);
  background: #edf7f3;
}

.direct-profile-main {
  position: relative;
  z-index: 3;
  padding-block: 22px 44px;
}

.profile-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--profile-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-breadcrumbs a {
  color: var(--profile-accent-dark);
}

.profile-breadcrumbs span[aria-current="page"] {
  overflow-wrap: anywhere;
}

.mi-profile-shell,
.mcr-file-shell {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 52px rgba(24, 36, 45, 0.1);
  overflow: hidden;
}

.profile-sponsored-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 9px 22px;
  color: #083f3a;
  background: #cceedd;
  border-bottom: 1px solid #8ccaae;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-sponsored-banner span {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: none;
}

.mi-profile-hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 190px;
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.profile-company-media,
.mcr-file-media,
.directory-card-media,
.ledger-company-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 6px;
  background: #fff;
}

.profile-company-media {
  width: 100%;
  aspect-ratio: 5 / 4;
}

.profile-company-media img,
.mcr-file-media img,
.directory-card-media img,
.ledger-company-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-company-media img.contain,
.mcr-file-media img.contain,
.directory-card-media img.contain,
.ledger-company-media img.contain {
  object-fit: contain;
  padding: 10px;
}

.profile-image-fallback {
  color: var(--profile-accent-dark);
  font-size: 2rem;
  font-weight: 950;
}

.profile-kicker {
  margin: 0 0 7px;
  color: var(--profile-accent-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-identity h1,
.mcr-file-header h1,
.directory-page-hero h1,
.mcr-directory-cover h1 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--profile-ink);
  font-size: 2.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-summary {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--profile-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.profile-tags,
.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-tags {
  margin-top: 15px;
}

.profile-tags span,
.profile-tag-list span {
  border: 1px solid #c9dad4;
  border-radius: 6px;
  padding: 6px 9px;
  color: #284840;
  background: #eff8f4;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-tag-list.city-tags span {
  border-color: #d8d3c4;
  color: #5d4c24;
  background: #fbf6e9;
}

.mi-rating-panel,
.mcr-rating-stamp {
  min-height: 174px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 2px solid var(--profile-accent-dark);
  border-radius: 8px;
  padding: 16px;
  color: var(--profile-ink);
  background: #f2faf7;
  text-align: center;
}

.mi-rating-panel > span:first-child,
.mcr-rating-stamp > span:first-child {
  color: var(--profile-muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mi-rating-panel strong,
.mcr-rating-stamp strong {
  display: block;
  margin-top: 5px;
  font-size: 2.7rem;
  line-height: 1;
}

.mi-rating-panel small,
.mcr-rating-stamp small {
  margin-top: 8px;
  color: var(--profile-muted);
  font-weight: 750;
  line-height: 1.25;
}

.profile-stars {
  position: relative;
  width: max-content;
  display: inline-block;
  color: #c8c8c8;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0;
}

.profile-stars > span:last-child {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--profile-gold);
  white-space: nowrap;
}

.profile-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--profile-line);
  background: #f8faf9;
}

.profile-metric-row > div {
  min-height: 90px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 22px;
  border-right: 1px solid var(--profile-line);
}

.profile-metric-row > div:last-child {
  border-right: 0;
}

.profile-metric-row span,
.mcr-file-digest span,
.mcr-file-digest small {
  color: var(--profile-muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-metric-row strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.profile-content-grid,
.mcr-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px;
}

.profile-content-main,
.profile-content-aside,
.mcr-evidence-grid > div,
.mcr-evidence-grid > aside {
  min-width: 0;
  width: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
}

.profile-content-grid > *,
.mcr-evidence-grid > *,
.profile-section,
.profile-side-section,
.related-profile-section,
.profile-method-note {
  min-width: 0;
}

.profile-section,
.profile-side-section,
.related-profile-section,
.profile-method-note {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-paper);
}

.profile-section {
  padding: 20px;
}

.profile-section header,
.related-profile-section > header {
  margin-bottom: 14px;
}

.profile-section h2,
.profile-side-section h2,
.related-profile-section h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  line-height: 1.2;
}

.profile-side-section {
  padding: 18px;
  background: #f8faf9;
}

.profile-side-section ul,
.profile-facts ul,
.profile-source-snapshot ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.profile-side-section li,
.profile-facts li {
  position: relative;
  padding-left: 18px;
  color: var(--profile-muted);
  line-height: 1.5;
}

.profile-side-section li::before,
.profile-facts li::before {
  position: absolute;
  left: 0;
  color: var(--profile-accent);
  content: "✓";
  font-weight: 950;
}

.profile-booking-checks li::before {
  color: var(--profile-warm);
  content: "!";
}

.profile-source-links li {
  padding-left: 0;
}

.profile-source-links li::before {
  content: "";
}

.profile-source-links a,
.profile-credentials a {
  color: var(--profile-accent-dark);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-source-snapshot li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e4e9e6;
  padding: 10px 0;
}

.profile-source-snapshot li:last-child {
  border-bottom: 0;
}

.profile-source-snapshot li span {
  color: var(--profile-muted);
  text-align: right;
}

.section-note {
  margin: 14px 0 0;
  color: var(--profile-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.profile-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.profile-table-wrap table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.profile-table-wrap th,
.profile-table-wrap td {
  border-bottom: 1px solid #e0e6e2;
  padding: 11px 10px;
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}

.profile-table-wrap th {
  color: var(--profile-muted);
  background: #f7f9f8;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-table-wrap td {
  color: var(--profile-muted);
  font-size: 0.88rem;
}

.related-profile-section {
  margin: 0 28px 24px;
  padding: 22px;
  background: #f6f9f7;
}

.related-profile-section > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.related-profile-section article {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--profile-line);
  border-radius: 6px;
  padding: 15px;
  background: #fff;
}

.related-profile-section article > span {
  color: var(--profile-accent-dark);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.related-profile-section h3 {
  margin: 8px 0 5px;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.related-profile-section article p {
  margin: 0 0 12px;
  color: var(--profile-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.related-profile-section article a {
  margin-top: auto;
  color: var(--profile-accent-dark);
  font-weight: 900;
}

.profile-method-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 28px 28px;
  padding: 18px 20px;
  background: #edf5f2;
}

.profile-method-note p {
  flex: 1;
  margin: 0;
  color: var(--profile-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.profile-method-note a {
  color: var(--profile-accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--profile-line);
  padding-block: 28px 38px;
  color: var(--profile-muted);
}

.profile-site-footer strong {
  color: var(--profile-ink);
}

.profile-site-footer p {
  margin: 4px 0 0;
  font-size: 0.84rem;
}

.profile-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 14px;
  margin-left: auto;
}

.profile-site-footer a {
  color: var(--profile-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Moving Company Report keeps a separate paper-file visual system. */
.mcr-profile-site {
  --profile-ink: #181510;
  --profile-muted: #665f54;
  --profile-line: #cfc5ae;
  --profile-paper: #fffdf7;
  --profile-soft: #f5efdf;
  --profile-accent: #356c58;
  --profile-accent-dark: #244d40;
  --profile-warm: #a33d2f;
  --profile-gold: #c69332;
  background-color: #f4eedf;
}

.mcr-profile-header {
  color: #fff;
  border-bottom: 4px solid #a33d2f;
  background: rgba(24, 21, 16, 0.98);
}

.mcr-profile-header .profile-brand strong,
.mcr-profile-header nav a {
  color: #fff;
}

.mcr-profile-header .profile-brand small {
  color: #d9c899;
}

.mcr-profile-header nav a:hover,
.mcr-profile-header nav a:focus-visible {
  color: #17130e;
  background: #f6f0df;
}

.mcr-file-shell {
  border: 2px solid var(--profile-ink);
  background: #fffaf0;
  box-shadow: 7px 7px 0 rgba(24, 21, 16, 0.16);
}

.mcr-file-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 190px;
  gap: 22px;
  align-items: center;
  border-bottom: 2px solid var(--profile-ink);
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(24, 21, 16, 0.05) 1px, transparent 1px),
    #fffaf0;
  background-size: 28px 28px;
}

.mcr-file-header > div:first-child > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--profile-muted);
  line-height: 1.6;
}

.mcr-file-number {
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid var(--profile-ink);
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--profile-ink);
  background: #f0e5c8;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.76rem;
  font-weight: 900;
}

.mcr-file-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--profile-ink);
  border-radius: 3px;
}

.mcr-rating-stamp {
  min-height: 160px;
  border: 3px double var(--profile-warm);
  border-radius: 50%;
  background: #fffaf0;
  transform: rotate(-2deg);
}

.mcr-rating-stamp strong {
  font-size: 1.65rem;
}

.mcr-sponsored-notice {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #8b7c5f;
  padding: 10px 26px;
  color: #fff;
  background: #356c58;
}

.mcr-sponsored-notice strong {
  text-transform: uppercase;
}

.mcr-sponsored-notice span {
  font-size: 0.82rem;
}

.mcr-file-digest {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 2px solid var(--profile-ink);
  background: #1c1914;
  color: #fff;
}

.mcr-file-digest > div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.mcr-file-digest > div:last-child {
  border-right: 0;
}

.mcr-file-digest span,
.mcr-file-digest small {
  color: #d5cbb7;
}

.mcr-file-digest strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.mcr-evidence-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
}

.mcr-profile-site .profile-section,
.mcr-profile-site .profile-side-section,
.mcr-profile-site .related-profile-section,
.mcr-profile-site .profile-method-note {
  border-color: #b9ad94;
  background: #fffdf7;
}

.mcr-source-ledger .profile-table-wrap th {
  color: #fff;
  background: #181510;
}

.mcr-profile-site .profile-method-note {
  background: #eee4cc;
}

/* Directories */
.directory-page-hero,
.mcr-directory-cover {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 40px rgba(24, 36, 45, 0.09);
}

.directory-page-hero > p:not(.profile-kicker),
.mcr-directory-cover > div > p:not(.profile-kicker) {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--profile-muted);
  line-height: 1.65;
}

.directory-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.directory-stat-line span {
  border: 1px solid #c9dad4;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--profile-accent-dark);
  background: #eff8f4;
  font-size: 0.8rem;
  font-weight: 900;
}

.directory-market-nav {
  position: sticky;
  top: 90px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(24, 36, 45, 0.06);
}

.directory-market-nav a {
  border-radius: 5px;
  padding: 7px 10px;
  color: var(--profile-accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.directory-market-nav a:hover {
  background: #edf7f3;
}

.directory-market-section,
.mcr-ledger-section {
  scroll-margin-top: 150px;
  margin-top: 18px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.97);
}

.directory-market-section > header,
.mcr-ledger-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.directory-market-section h2,
.mcr-ledger-section h2 {
  margin: 0;
  font-size: 1.55rem;
}

.directory-market-section > header > span {
  color: var(--profile-muted);
  font-weight: 850;
}

.mi-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mi-directory-card {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 245px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mi-directory-card.is-sponsored {
  border: 2px solid #68ad8c;
  background: #f3fbf7;
}

.directory-sponsored-label {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 170px;
  padding: 6px 8px;
  color: #fff;
  background: #0f766e;
  font-size: 0.67rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.directory-card-media {
  height: 100%;
  min-height: 245px;
  border: 0;
  border-right: 1px solid var(--profile-line);
  border-radius: 0;
}

.directory-card-copy {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.directory-card-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
}

.directory-card-copy p {
  margin: 10px 0;
  color: var(--profile-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.directory-card-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.directory-card-rating .profile-stars {
  font-size: 0.92rem;
}

.directory-card-rating > span:last-child {
  color: var(--profile-muted);
  font-size: 0.75rem;
}

.profile-primary-link {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: var(--profile-accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.mcr-directory-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  border: 2px solid #181510;
  border-radius: 3px;
  background: #fffaf0;
  box-shadow: 7px 7px 0 rgba(24, 21, 16, 0.16);
}

.mcr-directory-cover dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid #8d8066;
}

.mcr-directory-cover dl > div {
  display: grid;
  align-content: center;
  gap: 7px;
  border-right: 1px solid #8d8066;
  padding: 12px;
  text-align: center;
}

.mcr-directory-cover dl > div:last-child {
  border-right: 0;
}

.mcr-directory-cover dt {
  color: var(--profile-muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mcr-directory-cover dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  font-weight: 950;
}

.mcr-market-nav {
  top: 90px;
  border: 2px solid #181510;
  border-radius: 3px;
  background: #fffaf0;
}

.mcr-ledger-section {
  border: 2px solid #181510;
  border-radius: 3px;
  background: #fffaf0;
}

.mcr-ledger-section > header {
  align-items: center;
  border-bottom: 2px solid #181510;
  padding-bottom: 12px;
}

.mcr-ledger-section > header > span,
.mcr-ledger-section > header > strong {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.74rem;
}

.mcr-directory-ledger {
  display: grid;
  gap: 8px;
}

.mcr-directory-ledger article {
  position: relative;
  display: grid;
  grid-template-columns: 92px 92px minmax(180px, 1fr) minmax(260px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 110px;
  border: 1px solid #a99c82;
  border-radius: 3px;
  padding: 10px;
  background: #fffdf7;
}

.mcr-directory-ledger article.is-featured {
  border: 2px solid #356c58;
  background: #f0f7ef;
}

.ledger-file-id {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.7rem;
  font-weight: 900;
}

.ledger-company-media {
  width: 92px;
  height: 76px;
  border-radius: 3px;
}

.mcr-directory-ledger h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.mcr-directory-ledger p {
  margin: 5px 0 0;
  color: var(--profile-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.mcr-directory-ledger dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.mcr-directory-ledger dl > div {
  border-left: 2px solid #c69332;
  padding-left: 7px;
}

.mcr-directory-ledger dt {
  color: var(--profile-muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mcr-directory-ledger dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 900;
}

.ledger-featured-label {
  position: absolute;
  top: -2px;
  right: 10px;
  padding: 3px 7px;
  color: #fff;
  background: #356c58;
  font-size: 0.6rem;
  font-weight: 950;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .mi-profile-site .moving-truck,
  .mi-profile-site .delivery-box {
    display: none;
  }
}

@media (max-width: 1020px) {
  .profile-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 10px;
  }

  .profile-site-header nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    overflow-x: auto;
  }

  .profile-site-header nav a {
    flex: 0 0 auto;
  }

  .mi-profile-hero,
  .mcr-file-header {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .mi-rating-panel,
  .mcr-rating-stamp {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 118px;
    border-radius: 8px;
    transform: none;
  }

  .profile-content-grid,
  .mcr-evidence-grid {
    grid-template-columns: 1fr;
  }

  .related-profile-section > div,
  .profile-metric-row,
  .mcr-file-digest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-metric-row > div:nth-child(2),
  .mcr-file-digest > div:nth-child(2) {
    border-right: 0;
  }

  .profile-metric-row > div:nth-child(-n + 2),
  .mcr-file-digest > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--profile-line);
  }

  .mcr-directory-cover {
    grid-template-columns: 1fr;
  }

  .mcr-directory-ledger article {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }

  .ledger-file-id {
    grid-column: 1 / -1;
  }

  .mcr-directory-ledger dl {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .profile-header-inner,
  .profile-site-footer,
  .direct-profile-main {
    width: min(100% - 24px, var(--profile-max));
  }

  .profile-site-header {
    position: static;
  }

  .profile-brand img {
    width: 50px;
    height: 50px;
  }

  .profile-site-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .profile-site-header nav a {
    justify-content: center;
    padding-inline: 5px;
    text-align: center;
  }

  .mi-profile-hero,
  .mcr-file-header {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .profile-company-media,
  .mcr-file-media {
    max-height: 260px;
  }

  .profile-identity h1,
  .mcr-file-header h1,
  .directory-page-hero h1,
  .mcr-directory-cover h1 {
    font-size: 1.72rem;
  }

  .profile-sponsored-banner,
  .mcr-sponsored-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-content-grid,
  .mcr-evidence-grid {
    gap: 14px;
    padding: 14px;
  }

  .profile-section,
  .profile-side-section {
    padding: 15px;
  }

  .profile-source-snapshot li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-source-snapshot li span {
    text-align: left;
  }

  .related-profile-section,
  .profile-method-note {
    margin: 0 14px 14px;
  }

  .related-profile-section > div,
  .profile-metric-row,
  .mcr-file-digest {
    grid-template-columns: 1fr;
  }

  .profile-metric-row > div,
  .profile-metric-row > div:nth-child(2),
  .mcr-file-digest > div,
  .mcr-file-digest > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--profile-line);
  }

  .profile-metric-row > div:last-child,
  .mcr-file-digest > div:last-child {
    border-bottom: 0;
  }

  .profile-method-note,
  .profile-site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-method-note a {
    white-space: normal;
  }

  .profile-site-footer nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .directory-market-nav,
  .mcr-market-nav {
    position: static;
  }

  .directory-market-section,
  .mcr-ledger-section,
  .directory-page-hero,
  .mcr-directory-cover {
    padding: 16px;
  }

  .mi-directory-grid {
    grid-template-columns: 1fr;
  }

  .mi-directory-card {
    grid-template-columns: 1fr;
  }

  .directory-sponsored-label {
    width: 100%;
  }

  .directory-card-media {
    min-height: 190px;
    max-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--profile-line);
  }

  .mcr-directory-cover dl {
    grid-template-columns: 1fr;
  }

  .mcr-directory-cover dl > div {
    border-right: 0;
    border-bottom: 1px solid #8d8066;
  }

  .mcr-directory-cover dl > div:last-child {
    border-bottom: 0;
  }

  .mcr-directory-ledger article {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .mcr-directory-ledger .profile-primary-link,
  .mcr-directory-ledger dl,
  .ledger-file-id {
    grid-column: 1 / -1;
  }

  .ledger-company-media {
    width: 80px;
    height: 72px;
  }

  .mcr-directory-ledger dl {
    grid-template-columns: 1fr;
  }
}
