/* ============================================
   Low Commission Single Company Review Card (ATE)
   Themed on CLVR design tokens — see clvr-design.
   - ATE theme: blue accent (#3878FF), navy authority (#202E5B), Inter/Rubik
   - Button radius is 4px via --clvr-btn-radius (ATE), not pill
   - Container queries so the card responds to its column, not the viewport
   ============================================ */

.lcrc-card {
  container-type: inline-size;
  font-family: var(--clvr-font, "Inter", arial, sans-serif);
  letter-spacing: -0.01em;
  color: var(--clvr-text, #22293b);
  background: var(--clvr-bg, #ffffff);
  border: 1px solid var(--clvr-border-light, #e2e8f0);
  border-radius: var(--clvr-radius, 8px);
  box-shadow: var(--clvr-shadow,
              0 1px 3px rgba(12, 20, 42, 0.08),
              0 4px 12px rgba(12, 20, 42, 0.06));
  overflow: hidden;
  width: 100%;
  max-width: var(--clvr-content-width, 810px);
  margin-inline: auto;
  margin-block: var(--clvr-sp-10, 2.5rem);
  line-height: 1.6;
}

.lcrc-card *,
.lcrc-card *::before,
.lcrc-card *::after {
  box-sizing: border-box;
}

.lcrc-card h2,
.lcrc-card h3,
.lcrc-card h4 {
  font-family: var(--clvr-font-heading, "Rubik", "Inter", sans-serif);
}

.lcrc-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Ribbon (navy for AA-safe small white text) ---------- */
.lcrc-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--clvr-sp-3, 0.75rem);
  padding: var(--clvr-sp-2, 0.5rem) var(--clvr-sp-6, 1.5rem);
  background: var(--clvr-blue, #202E5B);
  color: var(--clvr-text-inverse, #ffffff);
}

.lcrc-ribbon__label {
  display: inline-flex;
  align-items: center;
  gap: var(--clvr-sp-2, 0.5rem);
  font-size: 12px;
  font-weight: var(--clvr-weight-bold, 700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lcrc-ribbon__label .lcrc-star {
  color: var(--clvr-orange, #3878FF);
  fill: var(--clvr-orange, #3878FF);
  width: 16px;
  height: 16px;
}

.lcrc-ribbon__updated {
  font-size: 12px;
  font-weight: var(--clvr-weight-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Identity ---------- */
.lcrc-identity {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--clvr-sp-6, 1.5rem);
  align-items: start;
  padding: var(--clvr-sp-6, 1.5rem);
}

.lcrc-company {
  font-size: 32px;
  font-weight: var(--clvr-weight-bold, 700);
  line-height: 1.1;
  margin: 0 0 var(--clvr-sp-3, 0.75rem);
  color: var(--clvr-blue, #202E5B);
}

.lcrc-tagline {
  font-size: 15px;
  color: var(--clvr-text-secondary, #4b698b);
  margin: 0 0 var(--clvr-sp-4, 1rem);
}

/* ---------- Rating ---------- */
.lcrc-rating {
  display: flex;
  flex-direction: column;
  gap: var(--clvr-sp-2, 0.5rem);
}

.lcrc-rating__stars {
  display: flex;
  align-items: center;
  gap: var(--clvr-sp-1, 0.25rem);
}

.lcrc-star {
  width: 20px;
  height: 20px;
}

.lcrc-star--on {
  color: var(--clvr-warning, #ff9800);
  fill: var(--clvr-warning, #ff9800);
}

.lcrc-star--off {
  color: var(--clvr-border, #bfcbde);
  fill: none;
}

.lcrc-rating__score {
  font-size: 22px;
  font-weight: var(--clvr-weight-bold, 700);
  margin-left: var(--clvr-sp-2, 0.5rem);
  line-height: 1;
  color: var(--clvr-text, #22293b);
}

.lcrc-rating__outof {
  font-size: 14px;
  color: var(--clvr-text-secondary, #4b698b);
  line-height: 1;
}

.lcrc-rating__count {
  font-size: 14px;
  font-weight: var(--clvr-weight-semibold, 600);
  margin: 0;
  color: var(--clvr-text, #22293b);
}

.lcrc-rating__sources {
  font-size: 13px;
  color: var(--clvr-text-secondary, #4b698b);
  margin: 0;
}

/* ---------- CTAs ---------- */
.lcrc-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--clvr-sp-2, 0.5rem);
}

.lcrc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--clvr-sp-2, 0.5rem);
  font-family: inherit;
  font-weight: var(--clvr-weight-bold, 700);
  text-decoration: none;
  border-radius: var(--clvr-btn-radius, 4px);
  transition: background-color var(--clvr-transition, 200ms ease),
              color var(--clvr-transition, 200ms ease),
              border-color var(--clvr-transition, 200ms ease),
              transform var(--clvr-transition, 200ms ease),
              box-shadow var(--clvr-transition, 200ms ease);
  cursor: pointer;
}

.lcrc-btn:focus-visible {
  outline: 2px solid var(--clvr-orange, #3878FF);
  outline-offset: 2px;
}

.lcrc-btn--primary {
  background: var(--clvr-orange, #3878FF);
  color: var(--clvr-on-accent, #ffffff);
  font-size: 16px;
  padding: var(--clvr-sp-3, 0.75rem) var(--clvr-sp-6, 1.5rem);
  min-width: 200px;
  border: 1px solid transparent;
}

.lcrc-btn--primary:hover {
  background: var(--clvr-orange-dark, #2F65D6);
  transform: translateY(-1px);
  box-shadow: var(--clvr-shadow,
              0 1px 3px rgba(12, 20, 42, 0.08),
              0 4px 12px rgba(12, 20, 42, 0.06));
}

/* Defend label color against host-theme link styles (Bricks .entry-content a). */
.lcrc-card a.lcrc-btn--primary,
.lcrc-card a.lcrc-btn--primary:link,
.lcrc-card a.lcrc-btn--primary:visited,
.lcrc-card a.lcrc-btn--primary:hover,
.lcrc-card a.lcrc-btn--primary:focus {
  color: var(--clvr-on-accent, #ffffff) !important;
  text-decoration: none !important;
}

.lcrc-btn--ghost {
  background: transparent;
  border: 2px solid var(--clvr-blue, #202E5B);
  color: var(--clvr-blue, #202E5B);
  font-size: 14px;
  padding: 10px var(--clvr-sp-6, 1.5rem);
  min-width: 200px;
}

.lcrc-btn--ghost:hover {
  background: var(--clvr-blue, #202E5B);
  color: var(--clvr-text-inverse, #ffffff);
}

.lcrc-card a.lcrc-btn--ghost,
.lcrc-card a.lcrc-btn--ghost:link,
.lcrc-card a.lcrc-btn--ghost:visited {
  color: var(--clvr-blue, #202E5B) !important;
  text-decoration: none !important;
}

.lcrc-card a.lcrc-btn--ghost:hover,
.lcrc-card a.lcrc-btn--ghost:focus {
  color: var(--clvr-text-inverse, #ffffff) !important;
  text-decoration: none !important;
}

.lcrc-cta-note {
  font-size: 12px;
  color: var(--clvr-text-muted, #86a5c6);
  text-align: center;
  margin: var(--clvr-sp-1, 0.25rem) 0 0;
}

/* ---------- Key stats ---------- */
.lcrc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--clvr-sp-4, 1rem);
  padding: var(--clvr-sp-4, 1rem) var(--clvr-sp-6, 1.5rem);
  background: var(--clvr-bg-subtle, #f5f8fc);
  border-top: 1px solid var(--clvr-border-light, #e2e8f0);
  border-bottom: 1px solid var(--clvr-border-light, #e2e8f0);
}

.lcrc-stat__label {
  font-size: 11px;
  font-weight: var(--clvr-weight-bold, 700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clvr-text-secondary, #4b698b);
  margin-bottom: var(--clvr-sp-1, 0.25rem);
}

.lcrc-stat__value {
  font-family: var(--clvr-font-heading, "Rubik", "Inter", sans-serif);
  font-size: 22px;
  font-weight: var(--clvr-weight-bold, 700);
  line-height: 1.1;
  color: var(--clvr-blue, #202E5B);
}

.lcrc-stat__sub {
  font-size: 12px;
  color: var(--clvr-text-secondary, #4b698b);
  margin-top: var(--clvr-sp-1, 0.25rem);
}

/* ---------- Eyebrow labels ---------- */
.lcrc-eyebrow {
  font-size: 12px;
  font-weight: var(--clvr-weight-bold, 700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--clvr-sp-2, 0.5rem);
}

.lcrc-eyebrow--green { color: var(--clvr-success, #0ec18f); }
.lcrc-eyebrow--red   { color: var(--clvr-error,   #f44336); }
.lcrc-eyebrow--blue  { color: var(--clvr-orange,  #3878FF); font-size: 13px; }

/* ---------- Best for ---------- */
.lcrc-bestfor {
  display: flex;
  align-items: flex-start;
  gap: var(--clvr-sp-3, 0.75rem);
  padding: var(--clvr-sp-6, 1.5rem);
  border-bottom: 1px solid var(--clvr-border-light, #e2e8f0);
}

.lcrc-bestfor__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--clvr-radius-pill, 9999px);
  background: rgba(14, 193, 143, 0.12);
  color: var(--clvr-success, #0ec18f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lcrc-bestfor__text {
  font-size: 16px;
  font-weight: var(--clvr-weight-semibold, 600);
  line-height: 1.45;
  margin: 0;
  color: var(--clvr-text, #22293b);
}

/* ---------- Pros / Cons ---------- */
.lcrc-proscons {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--clvr-border-light, #e2e8f0);
}

.lcrc-proscons__col {
  padding: var(--clvr-sp-6, 1.5rem);
}

.lcrc-proscons__col--cons {
  background: var(--clvr-bg-muted, #f3f5f9);
}

.lcrc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--clvr-sp-3, 0.75rem);
}

.lcrc-list__item {
  display: flex;
  gap: var(--clvr-sp-2, 0.5rem);
  font-size: 15px;
  color: var(--clvr-text, #22293b);
  line-height: 1.45;
}

.lcrc-icon--pro {
  color: var(--clvr-success, #0ec18f);
  margin-top: 2px;
}

.lcrc-icon--con {
  color: var(--clvr-error, #f44336);
  margin-top: 2px;
}

/* ---------- Expert quote ---------- */
.lcrc-quote {
  padding: var(--clvr-sp-6, 1.5rem);
  background: var(--clvr-bg-tint, #F0F5FA);
  border-bottom: 1px solid var(--clvr-border-light, #e2e8f0);
}

.lcrc-quote__block {
  margin: 0;
  padding-left: var(--clvr-sp-4, 1rem);
  border-left: 3px solid var(--clvr-orange, #3878FF);
}

.lcrc-quote__text {
  font-family: var(--clvr-font-heading, "Rubik", "Inter", sans-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 var(--clvr-sp-3, 0.75rem);
  color: var(--clvr-text, #22293b);
}

.lcrc-quote__footer {
  display: flex;
  align-items: center;
  gap: var(--clvr-sp-3, 0.75rem);
}

.lcrc-quote__avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--clvr-radius-pill, 9999px);
  background: var(--clvr-blue, #202E5B);
  color: var(--clvr-text-inverse, #ffffff);
  font-size: 13px;
  font-weight: var(--clvr-weight-bold, 700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lcrc-quote__meta {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.lcrc-quote__name {
  font-weight: var(--clvr-weight-semibold, 600);
  color: var(--clvr-text, #22293b);
}

.lcrc-quote__title {
  color: var(--clvr-text-secondary, #4b698b);
}

/* ---------- Editor's take ---------- */
.lcrc-editor {
  padding: var(--clvr-sp-6, 1.5rem);
  border-bottom: 1px solid var(--clvr-border-light, #e2e8f0);
}

.lcrc-editor__head {
  display: flex;
  align-items: center;
  gap: var(--clvr-sp-2, 0.5rem);
  margin-bottom: var(--clvr-sp-3, 0.75rem);
  color: var(--clvr-orange, #3878FF);
}

.lcrc-editor__body {
  display: flex;
  gap: var(--clvr-sp-4, 1rem);
  align-items: flex-start;
}

.lcrc-editor__photo {
  width: 48px;
  height: 48px;
  border-radius: var(--clvr-radius-pill, 9999px);
  object-fit: cover;
  background: var(--clvr-bg-neutral, #f0f0f0);
  flex-shrink: 0;
}

.lcrc-editor__copy {
  font-size: 15px;
  color: var(--clvr-text, #22293b);
  line-height: 1.6;
}

.lcrc-editor__copy p {
  margin: 0 0 var(--clvr-sp-2, 0.5rem);
}

.lcrc-editor__byline {
  font-size: 13px;
  color: var(--clvr-text-secondary, #4b698b);
  font-weight: var(--clvr-weight-semibold, 600);
  margin-top: var(--clvr-sp-1, 0.25rem) !important;
}

/* ---------- How it works ---------- */
.lcrc-how {
  border-bottom: 1px solid var(--clvr-border-light, #e2e8f0);
}

.lcrc-how__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--clvr-sp-4, 1rem) var(--clvr-sp-6, 1.5rem);
  cursor: pointer;
  font-size: 15px;
  font-weight: var(--clvr-weight-semibold, 600);
  color: var(--clvr-text, #22293b);
  list-style: none;
  transition: background-color var(--clvr-transition, 200ms ease);
}

.lcrc-how__summary::-webkit-details-marker {
  display: none;
}

.lcrc-how__summary:hover {
  background: var(--clvr-bg-subtle, #f5f8fc);
}

.lcrc-how__summary:focus-visible {
  outline: 2px solid var(--clvr-orange, #3878FF);
  outline-offset: -2px;
}

.lcrc-chev {
  transition: transform var(--clvr-transition, 200ms ease);
  color: var(--clvr-text-secondary, #4b698b);
}

.lcrc-how[open] .lcrc-chev {
  transform: rotate(180deg);
}

.lcrc-how__body {
  padding: 0 var(--clvr-sp-6, 1.5rem) var(--clvr-sp-4, 1rem);
  font-size: 15px;
  color: var(--clvr-text, #22293b);
  line-height: 1.6;
}

.lcrc-how__body p {
  margin: 0 0 var(--clvr-sp-2, 0.5rem);
}

/* ---------- Footer CTA ---------- */
.lcrc-footcta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--clvr-sp-4, 1rem);
  padding: var(--clvr-sp-6, 1.5rem);
  background: var(--clvr-bg-subtle, #f5f8fc);
}

.lcrc-footcta__heading {
  font-family: var(--clvr-font-heading, "Rubik", "Inter", sans-serif);
  font-size: 17px;
  font-weight: var(--clvr-weight-bold, 700);
  color: var(--clvr-blue, #202E5B);
  margin: 0;
}

.lcrc-footcta__sub {
  font-size: 13px;
  color: var(--clvr-text-secondary, #4b698b);
  margin: var(--clvr-sp-1, 0.25rem) 0 0;
}

/* ---------- Sources ---------- */
.lcrc-sources {
  padding: var(--clvr-sp-3, 0.75rem) var(--clvr-sp-6, 1.5rem);
  border-top: 1px solid var(--clvr-border-light, #e2e8f0);
  font-size: 12px;
  color: var(--clvr-text-secondary, #4b698b);
}

.lcrc-sources__label {
  font-weight: var(--clvr-weight-semibold, 600);
  color: var(--clvr-text, #22293b);
  margin-right: var(--clvr-sp-1, 0.25rem);
}

.lcrc-sources__link {
  color: var(--clvr-link, #3878FF);
  text-decoration: none;
}

.lcrc-sources__link:hover {
  color: var(--clvr-link-hover, #598EFF);
  text-decoration: underline;
}

/* ---------- Container-query responsive (block sits in a column, not viewport) ---------- */
@container (min-width: 600px) {
  .lcrc-identity {
    grid-template-columns: 1fr auto;
    gap: var(--clvr-sp-8, 2rem);
  }

  .lcrc-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .lcrc-proscons {
    grid-template-columns: 1fr 1fr;
  }

  .lcrc-proscons__col--pros {
    border-right: 1px solid var(--clvr-border-light, #e2e8f0);
  }

  .lcrc-footcta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--clvr-sp-6, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lcrc-btn,
  .lcrc-chev,
  .lcrc-how__summary {
    transition: none;
  }
  .lcrc-btn--primary:hover {
    transform: none;
  }
}
