/* A rival's page (/alternatives/<slug>/) in the painted theme (template-parts/painted/pages/alternative.php): the header's
   shortlist, the comparison with its marks, the fair verdicts, the reasons on the painting, the rival's pricing and the
   rest of the market. The rival's mark and ours are the live theme's (gs_alternative_logo(), gs_alternative_our_logo()). */

/* ---------- the header's shortlist ---------- */
.altl { text-align: left; }
.altl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.altl-h b { font-weight: 600; font-size: 16px; color: var(--ink); }
.altl-h span { font-size: 12.5px; color: var(--mute); }
.altl ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.altl li { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 10px 22px -18px rgba(80, 52, 40, .45); }
.altl li.on { box-shadow: 0 0 0 2px var(--data), 0 14px 26px -16px rgba(40, 60, 140, .45); }
.altl-n { font: 600 12px/1 var(--mono); color: var(--mute); }
.altl li.on .altl-n { color: var(--data-d); }
.altl-mk { display: grid; place-items: center; width: 36px; height: 36px; }
.altl-mk img, .altl-mk svg { max-width: 30px; max-height: 30px; }
.altl-t { min-width: 0; }
.altl-t b { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.altl-t small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--mute); }
.altl-p { justify-self: end; text-align: right; font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ink); }
.altl-p a { color: var(--data-d); text-decoration: underline; text-underline-offset: 3px; }
.altl-p small { display: block; margin-top: 2px; font: 500 10.5px/1.2 var(--mono); color: var(--mute); }
.altl-b { margin: 12px 2px 0; font-size: 12px; line-height: 1.45; color: var(--mute); }

/* ---------- side by side ---------- */
.altt-card { max-width: 1080px; margin: 30px auto 0; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 36px -26px rgba(80, 52, 40, .45); }
.altt-hd, .altt-card li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 14px 22px; }
.altt-hd { margin: 0; border-bottom: 1px solid var(--line-2); background: var(--sunk); }
.altt-hd span { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink); }
.altt-hd span img, .altt-hd span svg { max-width: 24px; max-height: 24px; }
.altt-card ul { margin: 0; padding: 0; list-style: none; }
.altt-card li { border-top: 1px solid var(--line-2); align-items: start; }
.altt-card li:first-child { border-top: 0; }
.altt-q { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); }
/* the day the rival's column was read and its directory profile, under the rows */
.altt-r { margin: 0; padding: 12px 22px 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.altt-r a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.altt-r a svg.i { width: 14px; height: 14px; stroke-width: 2; }
.altt-c { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: #3A3943; }

/* ---------- fair ---------- */
.altf-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 30px auto 0; }
.altf-c { padding: 22px 24px; border-radius: 20px; background-color: var(--card); background-image: var(--paper-tex); box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 36px -26px rgba(80, 52, 40, .45); }
.altf-us { box-shadow: 0 0 0 2px var(--data-t), 0 18px 36px -26px rgba(80, 52, 40, .45); }
.altf-c h3 { margin: 0; font-weight: 600; font-size: 19px; color: var(--ink); }
.altf-c ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.altf-c li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.5; color: #2E2D35; }
.altf-c li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 12px; border-radius: 52% 48% 57% 43% / 45% 55% 46% 54%; background: var(--data); filter: url(#p-blob); }
.altf-them li::before { background: var(--mute-2); }
.altf-p { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: #2E2D35; }

/* ---------- why teams switch, on the painting ---------- */
.altr { position: relative; max-width: 1180px; margin: 96px auto 0; padding: 44px 40px 40px; overflow: hidden; border-radius: 28px; }
.altr-paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.altr-in { position: relative; text-align: center; }
.altr-in h2 { margin: 10px 0 0; font-weight: 560; font-size: 40px; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.altr-in h2 > span { display: block; }
.altr ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; text-align: left; }
.altr li.card { padding: 20px 22px; }
.altr-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--data); font: 600 12px/1 var(--mono); color: #fff; }
.altr li h3 { margin: 12px 0 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.altr li p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: #3A3943; }

/* ---------- the rival's pricing ---------- */
.altp-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; max-width: 1080px; margin: 30px auto 0; }
.altp-card, .altp-ours { padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 36px -26px rgba(80, 52, 40, .45); }
.altp-h { display: flex; align-items: center; gap: 10px; margin: 0; }
.altp-h img, .altp-h svg { max-width: 24px; max-height: 24px; }
.altp-h b { font-weight: 600; font-size: 14px; color: var(--ink); }
.altp-card ul { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.altp-card li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.5; }
.altp-card li b { font-weight: 600; color: var(--ink); }
.altp-card li span { color: #3A3943; }
.altp-ours { display: grid; align-self: start; align-content: start; justify-items: start; gap: 12px; background: var(--data-t); }
.altp-ours p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ---------- the rest of the market ---------- */
.alto-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 30px auto 0; padding: 0; list-style: none; }
.alto-in li.card { display: grid; gap: 6px; padding: 16px 18px; }
.alto-in b { font-weight: 600; font-size: 15px; color: var(--ink); }
.alto-in span { font-size: 13.5px; line-height: 1.45; color: #3A3943; }
.alto-in small { font: 500 11px/1.3 var(--mono); color: var(--mute); }

@media (max-width: 1100px) {
  .altl li { grid-template-columns: 22px 32px minmax(0, 1fr); }
  .altl-p { grid-column: 3; justify-self: start; text-align: left; }
  .altr ol, .alto-in { grid-template-columns: minmax(0, 1fr); }
  .altp-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .altl-h span { display: none; }
  .altt-hd { display: none; }
  .altt-card li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
  .altt-card li .altt-c:nth-of-type(1)::before { content: attr(data-k); }
  .altf-in { grid-template-columns: minmax(0, 1fr); }
  .altr { margin-top: 64px; padding: 28px 16px; border-radius: 20px; }
  .altr-in h2 { font-size: 30px; }
  .altp-card li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
