/* ==================================================
   RCS SEO PAGES (/bulk-rcs, /rcs-api, /rcs-marketing, /rcs-sms), 19 Nov 2026.
   Loaded after product-v3.css and rcs-v3.css (same .pv-page--rcs accent and components).
   Only the long-form pieces those pages need: in-page links, text blocks, notes, carousel strip,
   four-column tables, related links. Classes are prefixed rs-.
   ================================================== */

/* cards: the glass effect is invisible on the plain white sections, so these carry their own edge */
.rs-block, .rs-prose, .rs-example, .rs-related a { background: #FFFFFF; border: 1px solid #EAECF0; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.pv-compare__note a { color: var(--pv-accent); font-weight: 600; }

/* hero phone: the rcs-phone partial inside the same box as the /rcs-message demo */
.rs-phone svg { display: block; width: 100%; height: auto; }

/* in-page links under the hero */
.rs-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-toc a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--pv-soft-border); background: #FFFFFF; font-size: 14px; font-weight: 500; color: #344054; text-decoration: none; }
.rs-toc a:hover, .rs-toc a:focus-visible { border-color: var(--pv-accent); color: var(--pv-accent); }

/* long-form text blocks: two columns of cards, each with an h3 and short paragraphs */
.rs-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rs-blocks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-block { padding: 26px 26px 24px; border-radius: 18px; }
.rs-block h3 { margin: 0; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 26px; color: var(--f2h-ink); }
.rs-block p { margin: 10px 0 0 !important; font-size: 15px; line-height: 24px; color: var(--f2h-muted); }
.rs-block ul { margin: 12px 0 0; padding: 0; list-style: none; }
.rs-block li { position: relative; margin-top: 6px; padding-left: 18px; font-size: 14.5px; line-height: 22px; color: #475467; }
.rs-block li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--pv-accent); }
.rs-block a, .rs-note a, .rs-prose a { color: var(--pv-accent); font-weight: 600; }
.rs-block code, .rs-prose code, .rs-note code { padding: 1px 6px; border-radius: 6px; background: var(--pv-soft); font-size: 0.92em; color: #1557B0; }

/* one wide text card (intro paragraphs) */
.rs-prose { max-width: 920px; margin: 0 auto; padding: 30px 34px; border-radius: 20px; }
.rs-prose p { margin: 0 !important; font-size: 16px; line-height: 27px; color: #475467; }
.rs-prose p + p { margin-top: 14px !important; }
.rs-prose strong { color: var(--f2h-ink); }

/* plain notes: facts the reader must not miss (iPhone, fallback status, rules) */
.rs-note { display: flex; gap: 12px; align-items: flex-start; max-width: 920px; margin: 20px auto 0; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--pv-soft-border); background: var(--pv-soft); font-size: 14.5px; line-height: 23px; color: #344054; }
.rs-note b { color: var(--f2h-ink); }
.rs-note__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pv-accent); color: #FFFFFF; font-size: 13px; font-weight: 800; }

/* tables reuse .pv-compare; these add a fourth column and the cost tables */
.rs-table thead th:not(:first-child) { white-space: nowrap; }
.rs-table td { font-size: 14.5px; }
.rs-table td.rs-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--f2h-ink); }
.rs-table code { padding: 1px 6px; border-radius: 6px; background: var(--pv-soft); font-size: 13px; color: #1557B0; white-space: nowrap; }

/* carousel strip: mini rich cards side by side, swipe on phones */
.rs-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.rs-carousel .rcs3-card { flex: 0 0 200px; scroll-snap-align: start; font-size: 12px; }
.rs-example { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; min-width: 0; }
.rs-example h3 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--f2h-ink); }
.rs-example p { margin: 0 !important; font-size: 14.5px; line-height: 22px; color: var(--f2h-muted); }
.rs-example small { font-size: 12.5px; font-weight: 600; color: #475467; }
.rs-example > .rcs3-card { max-width: 340px; }
.rs-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* plain SMS bubble for the before/after example on /rcs-sms */
.rs-sms { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.rs-sms small { font-size: 12px; font-weight: 700; color: #475467; }
.rs-sms span { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #F2F4F7; font-size: 13.5px; line-height: 20px; color: #101828; }

/* related links */
.rs-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rs-related a { display: block; height: 100%; padding: 18px 20px; border-radius: 16px; text-decoration: none; }
.rs-related strong { display: block; font-size: 15.5px; color: var(--f2h-ink); }
.rs-related span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 20px; color: var(--f2h-muted); }
.rs-related a:hover strong, .rs-related a:focus-visible strong { color: var(--pv-accent); }

/* code blocks in the API page: language tabs are plain headings, so nothing hides content */
.rs-code-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pv-code pre { overflow-x: auto; }

@media (max-width: 1024px) {
    .rs-blocks--3, .rs-related, .rs-code-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-examples { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .pv-compare.rs-table--fit table { min-width: 0; }
    .rs-blocks, .rs-blocks--3, .rs-related, .rs-code-grid { grid-template-columns: 1fr; }
    .rs-block { padding: 22px 20px 20px; }
    .rs-prose { padding: 22px 20px; }
    .rs-prose p { font-size: 15px; line-height: 25px; }
    .rs-toc a { height: 34px; padding: 0 12px; font-size: 13px; }
    .rs-example { padding: 18px; }
    .rs-carousel .rcs3-card { flex-basis: 180px; }
}
