/* Answer pages (/pricing, /faq, /compare/… — build/extra_pages.py), on top of css/post.css + css/guide.css. */

/* ---------- hero: breadcrumb + "Updated" line, the answer paragraph ---------- */
.xp .post-crumb time { font-weight: 600; }
.xp .xp-answer { opacity: .86; max-width: 40em; }
.xp .g-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.xp .g-hero .xp-jump { margin-top: 26px; }

/* ---------- tables: first column is a row heading, not a dark header cell ---------- */
.xp-table caption { caption-side: top; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .55; padding: 12px 16px 2px; }
.xp-table tbody th { background: transparent; color: var(--ink); font-weight: 600; white-space: normal; padding: 13px 16px; border-top: 1px solid #efeff4; vertical-align: top; }
.xp-table tbody tr:nth-child(even) th { background: #fafafc; }
.xp-table td small { font-size: .8em; font-weight: 500; opacity: .6; margin-left: 4px; }
.xp-vs table { min-width: 680px; table-layout: fixed; }
.xp-vs thead th:first-child { width: 150px; }
.xp-vs.xp-wide table { min-width: 680px; }
.xp-vs.xp-wide thead th:first-child { width: 156px; }
/* names never break mid-word ("SoundCampa ign"): wrap only between words, no automatic hyphenation */
.xp-table th, .xp-table td { overflow-wrap: break-word; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
.xp-vs tbody th small { display: block; font-weight: 500; opacity: .6; margin: 2px 0 0; }
.xp-vs.xp-wide tbody tr:first-child > * { background: #fff8f1; }
.xp-vs:not(.xp-wide) td:nth-child(2) { background: #fff8f1; }
.xp-vs:not(.xp-wide) tbody tr:nth-child(even) td:nth-child(2) { background: #fff3e8; }
.post-content .xp-src { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; opacity: .62; }
.post-content .xp-src a { color: inherit; overflow-wrap: break-word; word-break: normal; }
.xp-na { opacity: .35; }
.post-content .xp-disclosure { font-size: 14px; line-height: 1.55; opacity: .66; margin-top: 14px; }
.post-content .xp-legend { font-size: 13.5px; line-height: 1.5; opacity: .62; margin-top: 10px; }
.post-content .xp-opts li { margin-top: .7em; }
.post-content .xp-opts .xp-src { display: inline; margin-left: 6px; }

/* ---------- "Choose X if… / Choose Sound.me if…" ---------- */
.xp-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xp-choose > div { border: 1px solid #e6e6ee; border-radius: 22px; padding: clamp(18px, 2.4vw, 26px); }
.xp-choose > .xp-us { background: #fff5ec; border-color: #ffe2c7; }
.post-content .xp-choose h3 { margin-top: 0; font-size: 19px; }
.post-content .xp-choose ul { margin-top: .7em; font-size: 16px; line-height: 1.5; }

/* ---------- cards: contact emails, press outlets, comparisons ---------- */
.post-content .xp-cards, .post-content .xp-press, .post-content .xp-hub { list-style: none; padding: 0; display: grid; gap: 10px; }
.post-content .xp-cards li + li, .post-content .xp-press li + li, .post-content .xp-hub li + li { margin-top: 0; }
.xp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xp-cards li { display: flex; flex-direction: column; gap: 6px; background: var(--light); border-radius: 22px; padding: 20px 20px 22px; }
.xp-cards b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.post-content .xp-cards .xp-mail { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.xp-cards span { font-size: 15px; line-height: 1.45; opacity: .75; }
.xp-press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-content .xp-press a, .post-content .xp-hub a { display: flex; color: var(--ink); text-decoration: none; border: 1px solid #e6e6ee; border-radius: 20px; transition: border-color .2s, background-color .2s; }
.post-content .xp-press a:hover, .post-content .xp-hub a:hover { border-color: var(--ink); color: var(--ink); }
.xp-press a { align-items: flex-start; gap: 16px; padding: 16px 18px; min-height: 76px; }
.xp-press .xp-logo { margin-top: 18px; }
.xp-logo { flex: none; width: 118px; display: flex; align-items: center; }
.post-content .xp-logo img { width: auto; height: auto; max-width: 118px; max-height: 30px; border-radius: 0; background: none; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .8; }
.xp-press-t { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; min-width: 0; }
.xp-press-t b { font-size: 16px; }
.xp-press-t span { font-size: 13.5px; opacity: .6; }
.xp-press-t .xp-press-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.xp-press-t .xp-press-h { font-size: 15px; font-weight: 500; line-height: 1.4; opacity: .9; }
.xp-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xp-hub a { flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.xp-hub b { font-size: 19px; line-height: 1.25; }
.xp-hub span { font-size: 15px; line-height: 1.45; opacity: .72; }

/* ---------- glossary ---------- */
.xp-gloss > div { padding: 18px 0 20px; border-top: 1px solid #ececf2; scroll-margin-top: calc(var(--hu, var(--u, 1.7px)) * 40 + 40px); }
.xp-gloss > div:last-child { border-bottom: 1px solid #ececf2; }
.xp-gloss dt { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.xp-gloss dd { margin: 6px 0 0; }

/* ---------- chips (jump links, languages) ---------- */
.g-links.xp-jump a, .g-links.xp-langs a { height: 40px; padding: 0 16px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.g-links.xp-jump a span { margin-left: 6px; font-size: 12.5px; opacity: .5; }
.post-content .g-links a { color: var(--ink); text-decoration: none; }

/* ---------- /faq groups ---------- */
.xp-faqg { scroll-margin-top: 60px; }
.xp-faqg .big { font-size: clamp(36px, 4.6vw, 64px); }
.xp-count { font-size: 15px; font-weight: 600; opacity: .5; margin-top: 14px; }
.xp-faqg .qa-a ul, .xp-faqg .qa-a ol { padding: 0 56px 18px 1.3em; font-size: 16.5px; line-height: 1.55; font-weight: 500; opacity: .8; }
.xp-faqg .qa-a a, .xp .qa-a a { text-decoration: underline; text-underline-offset: 3px; }

.xp-related { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }

@media (max-width: 900px) { .xp-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .xp-choose, .xp-press, .xp-hub { grid-template-columns: minmax(0, 1fr); }
  .xp-table:not(.xp-vs) table { min-width: 0; font-size: 14px; }
  .xp-table:not(.xp-vs) th, .xp-table:not(.xp-vs) td { padding: 11px 10px; white-space: normal; }
  /* comparison tables: one card per row on phones (row label, then each column with its name) instead of sideways scrolling */
  .xp-vs { overflow: visible; }
  .xp-vs table, .xp-vs.xp-wide table { min-width: 0; table-layout: auto; }
  .xp-vs table, .xp-vs tbody, .xp-vs tr, .xp-vs tbody th, .xp-vs td { display: block; width: auto; }
  .xp-vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .xp-vs caption { display: block; width: auto; padding: 12px 16px 4px; }
  .xp-vs tbody tr { border-top: 1px solid #e6e6ee; padding: 4px 0 10px; }
  .xp-vs tbody tr:nth-child(even) td, .xp-vs tbody tr:nth-child(even) th, .xp-vs tbody th { background: transparent; }
  .xp-vs tbody th { border-top: 0; padding: 14px 16px 2px; font-size: 16px; }
  .xp-vs td, .xp-vs tbody tr:nth-child(even) td { border-top: 0; padding: 8px 16px; }
  .xp-vs:not(.xp-wide) td:nth-child(2), .xp-vs:not(.xp-wide) tbody tr:nth-child(even) td:nth-child(2) { background: #fff8f1; border-radius: 12px; margin: 6px 10px 0; padding: 10px 12px; }
  .xp-vs.xp-wide tbody tr:first-child, .xp-vs.xp-wide tbody tr:first-child > * { background: #fff8f1; }
  .xp-vs td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .55; margin-bottom: 2px; }
  .xp .g-hero .ctas .btn { flex: 1 1 auto; }
  .xp-faqg .qa-a ul, .xp-faqg .qa-a ol { padding-right: 0; }
}

/* case studies: top-12 video views as bars */
.cs-bars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 7px; }
.post-content .cs-bars li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 58px; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.cs-bars span { opacity: .6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-bars i { display: block; height: 14px; width: var(--w); border-radius: 7px; background: var(--orange); }
.cs-bars b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.cs-table th[scope="row"] a { display: block; white-space: nowrap; }
.cs-table th[scope="row"] small { display: block; font-weight: 400; opacity: .65; margin-top: 2px; }
