/* =========================================================
   /best-tools/ rankings and hub (single-mso_best_tool.php, archive-mso_best_tool.php).
   Loaded after best-pages.css; generated from best-tools-drafts/tools-list.css + hub.css.
   ========================================================= */
/* =========================================================
   Best-of TOOLS pages — tool listing components (mso-tl-*)
   Layers on top of the shared best-of styles (mso-best-*).
   ========================================================= */

/* Logos ------------------------------------------------------------ */
.mso-tl-logo { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--mso-line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-family: var(--mso-display); font-weight: 800; font-size: 24px; color: var(--mso-accent); box-shadow: 0 6px 18px -10px rgba(10,10,10,.18); }
.mso-tl-logo--img img { width: 72%; height: 72%; object-fit: contain; display: block; }
.mso-tl-logo--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; box-shadow: none; }
.mso-tl-logo--sm.mso-tl-logo--img img { width: 80%; height: 80%; }
.mso-tl-logo--lg { width: 64px; height: 64px; border-radius: 16px; font-size: 28px; }

/* Top picks -------------------------------------------------------- */
.mso-tl-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 8px; }
.mso-tl-top__card { position: relative; border: 1px solid var(--mso-line); border-radius: 16px; padding: 22px 20px 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.mso-tl-top__card:first-child { border-color: var(--mso-accent); box-shadow: 0 0 0 3px var(--mso-tag-bg); }
.mso-tl-top__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mso-accent); margin: 0; }
.mso-tl-top__row { display: flex; align-items: center; gap: 12px; }
.mso-tl-top__name { font-family: var(--mso-display); font-weight: 700; font-size: 19px; color: var(--mso-ink); margin: 0; line-height: 1.2; }
.mso-tl-top__rating { font-size: 13px; color: var(--mso-muted); margin: 2px 0 0; }
.mso-tl-top__rating b { color: var(--mso-ink); }
.mso-tl-top__why { font-size: 14px; line-height: 1.55; color: var(--mso-text); margin: 0; flex: 1; }
.mso-tl-top__price { font-size: 13px; color: var(--mso-muted); margin: 0; }
.mso-tl-top__price strong { color: var(--mso-ink); }
.mso-tl-top .mso-agency-btn { width: 100%; justify-content: center; }

/* Comparison table tweaks ------------------------------------------- */
.mso-tl-table td:nth-child(2) a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--mso-ink); text-decoration: none; }
.mso-tl-table td:nth-child(2) a:hover { color: var(--mso-accent); }
.mso-tl-yes { color: #047857; font-weight: 600; }
.mso-tl-no { color: var(--mso-muted); }

/* Tool card ---------------------------------------------------------- */
.mso-tl-list { display: flex; flex-direction: column; gap: 28px; margin: 0 0 48px; }
.mso-tl-card { border: 1px solid var(--mso-line); border-radius: 18px; background: #fff; overflow: hidden; scroll-margin-top: 96px; }
.mso-tl-card__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 26px 30px; }
.mso-tl-card__rank { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--mso-ink); color: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; }
.mso-tl-card__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mso-accent); display: flex; align-items: center; flex-wrap: wrap; }
.mso-tl-card__name { margin: 0; font-family: var(--mso-display); font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.mso-tl-card__name a { color: var(--mso-ink); text-decoration: none; }
.mso-tl-card__name a:hover { color: var(--mso-accent); }
.mso-tl-card__tagline { margin: 4px 0 0; color: var(--mso-muted); font-size: 15px; }
.mso-tl-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mso-tl-score { text-align: right; }
.mso-tl-score__num { font-family: var(--mso-display); font-size: 30px; font-weight: 800; color: var(--mso-ink); line-height: 1; }
.mso-tl-score__num span { color: #F59E0B; font-size: 22px; margin-right: 4px; }
.mso-tl-score__label { font-size: 12px; color: var(--mso-muted); margin-top: 4px; }
.mso-tl-score--none .mso-tl-score__num { font-size: 14px; font-weight: 600; color: var(--mso-muted); }

/* Spec strip */
.mso-tl-specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--mso-line); border-bottom: 1px solid var(--mso-line); background: #F9FAFB; }
.mso-tl-specs > div { padding: 16px 30px; border-right: 1px solid var(--mso-line); min-width: 0; }
.mso-tl-specs > div:last-child { border-right: 0; }
.mso-tl-specs dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mso-muted); margin: 0 0 4px; }
.mso-tl-specs dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--mso-ink); line-height: 1.4; }

/* Body */
.mso-tl-card__body { padding: 28px 30px 6px; }
.mso-tl-card__body > p { font-size: 16px; line-height: 1.7; color: var(--mso-text); margin: 0 0 14px; }
.mso-tl-h { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; font-family: var(--mso-display); font-size: 17px; font-weight: 700; color: var(--mso-ink); }
.mso-tl-h::after { content: ""; flex: 1; height: 1px; background: var(--mso-line); }

.mso-tl-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mso-tl-features li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--mso-line); border-radius: 12px; background: #fff; }
.mso-tl-features i { width: 28px; height: 28px; border-radius: 8px; background: var(--mso-tag-bg); color: var(--mso-accent); display: flex; align-items: center; justify-content: center; font-style: normal; }
.mso-tl-features i svg { width: 16px; height: 16px; }
.mso-tl-features li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mso-tl-features strong { display: block; font-size: 15px; color: var(--mso-ink); margin: 2px 0 4px; }
.mso-tl-features span { display: block; font-size: 14px; line-height: 1.6; color: var(--mso-text); }

.mso-tl-pricebox { border: 1px solid var(--mso-line); border-radius: 12px; overflow: hidden; background: #fff; }
.mso-tl-pricing { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.mso-tl-pricing th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mso-muted); background: #F9FAFB; padding: 11px 18px; border-bottom: 1px solid var(--mso-line); }
.mso-tl-pricing td { padding: 14px 18px; border-bottom: 1px solid var(--mso-line); vertical-align: top; color: var(--mso-text); line-height: 1.55; }
.mso-tl-pricing tbody tr:last-child td { border-bottom: 0; }
.mso-tl-pricing td:first-child { width: 28%; font-weight: 700; color: var(--mso-ink); }
.mso-tl-pricing td:nth-child(2) { width: 26%; font-weight: 600; color: var(--mso-accent-ink); }
.mso-tl-card__body .mso-tl-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 18px; border-top: 1px solid var(--mso-line); background: #F9FAFB; font-size: 13px; line-height: 1.5; color: var(--mso-muted); }
.mso-tl-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

.mso-tl-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mso-tl-pc > div { border-radius: 12px; padding: 18px 20px; }
.mso-tl-pc__pros { background: #F0FDF4; border: 1px solid #BBF7D0; }
.mso-tl-pc__cons { background: #FEF2F2; border: 1px solid #FECACA; }
.mso-tl-pc h5 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mso-tl-pc__pros h5 { color: #047857; }
.mso-tl-pc__cons h5 { color: #B91C1C; }
.mso-tl-pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mso-tl-pc li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--mso-text); }
.mso-tl-pc__pros li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #059669; font-weight: 800; }
.mso-tl-pc__cons li::before { content: "✕"; position: absolute; left: 0; top: 0; color: #DC2626; font-weight: 800; }

.mso-tl-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mso-tl-fit > div { border: 1px dashed var(--mso-line); border-radius: 12px; padding: 16px 20px; }
.mso-tl-fit p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mso-text); }
.mso-tl-fit b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mso-ink); margin-bottom: 6px; }

.mso-tl-card__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; padding: 20px 30px; margin-top: 24px; border-top: 1px solid var(--mso-line); background: #F9FAFB; }
.mso-tl-card__foot p { margin: 0; font-size: 13px; color: var(--mso-muted); }
.mso-tl-card__btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
	.mso-tl-top { grid-template-columns: 1fr; }
	.mso-tl-specs { grid-template-columns: 1fr 1fr; }
	.mso-tl-specs > div:nth-child(2) { border-right: 0; }
	.mso-tl-specs > div:nth-child(-n+2) { border-bottom: 1px solid var(--mso-line); }
}
@media (max-width: 640px) {
	.mso-tl-card__head { grid-template-columns: auto 1fr; padding: 22px 20px; gap: 14px; }
	.mso-tl-card__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
	.mso-tl-score { text-align: left; }
	.mso-tl-card__name { font-size: 23px; }
	.mso-tl-specs > div { padding: 14px 20px; }
	.mso-tl-card__body { padding: 22px 20px 4px; }
	.mso-tl-features, .mso-tl-pc, .mso-tl-fit { grid-template-columns: 1fr; }
	.mso-tl-card__foot { padding: 18px 20px; }
	/* Pricing table stacks on phones: plan and price on one line, details below,
	   so the "What you get" column is no longer cut off by the rounded box. */
	.mso-tl-pricing thead { display: none; }
	.mso-tl-pricing, .mso-tl-pricing tbody { display: block; }
	.mso-tl-pricing tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; padding: 13px 14px; border-bottom: 1px solid var(--mso-line); }
	.mso-tl-pricing tbody tr:last-child { border-bottom: 0; }
	.mso-tl-pricing td { display: block; width: auto !important; padding: 0; border: 0; }
	.mso-tl-pricing td:nth-child(2) { text-align: right; }
	.mso-tl-pricing td:nth-child(n+3) { grid-column: 1 / -1; font-size: 13.5px; }
}

/* tools variant of the hero illustration */
.mso-best-art .mso-tl-logo--sm { width: 32px; height: 32px; }
.mso-tl-art__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mso-tl-art__body b { font-family: var(--mso-display); font-size: 14px; font-weight: 600; color: var(--mso-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mso-tl-art__tag { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: var(--mso-accent); background: var(--mso-tag-bg); border-radius: 99px; padding: 4px 9px; white-space: nowrap; }
.mso-best-art__row:not(.is-top) .mso-tl-art__tag { color: var(--mso-text); background: #F3F5F8; }
.mso-best-hero__grid .mso-best-art { height: 384px; }
.mso-best-hero__grid .mso-best-art__chip--price { bottom: 0; }

/* /best-tools/ hub: tools variant of the agency hub cards */
.mso-tl-hubcard__head { display: flex; align-items: center; gap: 12px; }
.mso-tl-hubcard__icon { flex: 0 0 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--mso-tag-bg); color: var(--mso-accent); }
.mso-tl-hubcard__icon svg { width: 19px; height: 19px; }
.mso-tl-hubcard .mso-hub-card__meta { margin-top: 10px; }
.mso-tl-hubcard__logos { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #F1F3F6; }
.mso-tl-hubcard__stack { display: inline-flex; flex: 0 0 auto; }
.mso-tl-hubcard__logo { display: inline-flex; border-radius: 9px; box-shadow: 0 0 0 2px #fff; background: #fff; }
.mso-tl-hubcard__logo + .mso-tl-hubcard__logo { margin-left: -6px; }
.mso-tl-hubcard__logo .mso-tl-logo--sm { width: 30px; height: 30px; }
.mso-tl-hubcard__names { font-size: 13px; color: var(--mso-text); min-width: 0; line-height: 1.4; }
.mso-hub .mso-hub-start { align-self: center; }
