/* The recommendation routes retain the shared site shell and only override their own layout. */
.sprec-page { overflow-x: clip; }

/* This standalone route does not use the shared article/recommendation rail.
 * Keeping its shell out of that grid prevents Safari from creating implicit,
 * narrow columns for the two auxiliary sticky-navigation roots. */
body.sprec-page .bizcre-page-grid.bizcre-content-layout--market {
  display: block;
  min-width: 0;
}
body.sprec-page .bizcre-page-grid.bizcre-content-layout--market > * {
  min-width: 0;
}
body.sprec-page main.sprec {
  width: min(1200px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}
.sprec-page .company-fit-root,
.sprec-page .card-rank-root {
  display: contents;
}
.sprec-page .company-fit-root.is-dismissed,
.sprec-page .card-rank-root.is-dismissed {
  display: none !important;
}

@media (min-width: 621px) and (max-width: 1299px) {
  .sprec-page .sprec-compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sprec-page .sprec-comparison__desktop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1300px) and (max-width: 1599px) {
  .sprec-page .sprec-compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .sprec-page .sprec-compact-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.sprec-page .sprec-hero { grid-template-columns: 1fr; }
.sprec-page .sprec-hero__faces { display: none; }
.sprec-page .sprec-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; max-width: 680px; }
.sprec-page .sprec-hero__actions .button--official { grid-column: 1 / -1; min-height: 62px; font-size: 1.08rem; color: #fff !important; box-shadow: 0 6px 0 #075576, 0 0 20px rgba(8, 125, 184, .25); }
.sprec-page .sprec-card__actions .button--official { flex-basis: 100%; min-height: 56px; color: #fff; box-shadow: 0 5px 0 #075576, 0 0 18px rgba(8, 125, 184, .35); }
.sprec-compact { display: flex; flex-direction: column; height: 100%; }
.sprec-compact > div { display: flex; flex: 1; flex-direction: column; }
.sprec-compact h3, .sprec-comparison__desktop h3 { min-height: 4.5em; }
.sprec-compact h3 a, .sprec-comparison__desktop h3 { display: block; overflow-wrap: normal; word-break: keep-all; line-break: strict; }
.sprec-compact p { min-height: 2.9em; }
.sprec-compact button { min-height: 44px; margin-top: auto; text-align: left; }
.sprec-comparison__desktop > article { display: flex; flex-direction: column; }
.sprec-comparison__desktop dl { margin-top: auto; }
.sprec-evidence h2 { max-width: 100%; overflow-wrap: anywhere; }
.sprec-evidence .button--outline { min-height: 52px; background: #fff; border-color: #fff; color: #073f69; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.sprec-faq details { margin-top: 10px; border: 1px solid #b8dced; border-radius: 12px; background: #fff; overflow: hidden; }
.sprec-faq summary { display: flex; align-items: center; min-height: 58px; padding: 14px 18px; color: #073f69; font-weight: 800; cursor: pointer; }
.sprec-faq details p { margin: 0; padding: 0 18px 18px; line-height: 1.75; }
/* Floating navigation is shown only where it has independent side space.
 * At regular desktop and mobile widths the same choices remain in the page,
 * so hiding the floating duplicate prevents it from covering the content. */
.sprec-page .company-fit-sticky,
.sprec-page .card-rank-sticky {
  z-index: 60;
  box-sizing: border-box;
  width: min(276px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: none;
  padding: 14px;
}
.sprec-page .company-fit-sticky { top: 120px; right: 24px; }
.sprec-page .card-rank-sticky { top: 342px; right: 24px; }
.sprec-page .company-fit-sticky__close,
.sprec-page .card-rank-sticky__close {
  display: grid;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #075576;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.sprec-page .company-fit-sticky__close:focus-visible,
.sprec-page .card-rank-sticky__close:focus-visible {
  outline: 3px solid #0d8fd0;
  outline-offset: 2px;
}
@media (max-width: 1799px) {
  .sprec-page .company-fit-root,
  .sprec-page .card-rank-root {
    display: none;
  }
}
@media (max-width: 620px) {
  body.sprec-page main.sprec { width: calc(100% - 24px); }
  .sprec-page .sprec-hero__actions { grid-template-columns: 1fr; }
  .sprec-page .sprec-hero__actions .button--official { min-height: 58px; }
  .sprec-compact h3, .sprec-comparison__desktop h3 { min-height: 4.5em; }
  .sprec-evidence h2 { font-size: clamp(1.45rem, 7vw, 2rem); line-height: 1.3; }
}

/* Editorial visual and direct card-detail routes for the sole-proprietor guide. */
.sprec-page .sprec-visual-hero {
  width: min(1200px, 100%);
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid #b8dced;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 63, 105, .12);
}
.sprec-page .sprec-visual-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.sprec-page .sprec-face-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.sprec-page .sprec-face-link:focus-visible {
  outline: 3px solid #0d8fd0;
  outline-offset: 4px;
  border-radius: 10px;
}
.sprec-page .sprec-compact__face-link picture,
.sprec-page .sprec-comparison__face-link picture { display: block; }
.sprec-page .sprec-official-cta {
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid #9ed2e8;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf8ff, #fff);
  text-align: center;
  box-shadow: 0 16px 34px rgba(7, 63, 105, .09);
}
.sprec-page .sprec-official-cta > p:not(.sprec-kicker) {
  max-width: 52rem;
  margin: 0 auto;
  line-height: 1.75;
}
.sprec-page .sprec-official-cta > div {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.sprec-page .sprec-official-cta .button {
  min-width: min(100%, 300px);
  min-height: 58px;
}
.sprec-page .sprec-official-cta .button--official {
  color: #fff !important;
  box-shadow: 0 6px 0 #075576, 0 0 20px rgba(8, 125, 184, .25);
}
@media (max-width: 620px) {
  .sprec-page .sprec-visual-hero { margin-bottom: 18px; border-radius: 18px; }
  .sprec-page .sprec-official-cta > div { flex-direction: column; }
  .sprec-page .sprec-official-cta .button { width: 100%; }
}
