/* iri-qa-v5.css - owner QA fixes, 2026-11-06 (staging). Linked from the Site head after iri-diagrams.
   Source: data/qa-2026-11-06/iri-qa-v5.css in the iristel-aeo folder (v6 = without section 6; v5 = fixed row spans, blank space in short cards; v4 = 2b without !important, lost to the kit's equal-specificity filter:none; v3 = without 2b and 5; v2 = without 1c; v1 = without 1b, 1c and the icon rule). Sections:
   1 card rows: buttons pinned to the bottom so they line up across a row
   2 unreadable text (white on white, grey on navy)
   3 home / About intro without its fact list (now the shared Stats band)
   4 [data-iri-tone=light]: a navy section turned white (pages that were all navy)
   5 diagram embeds navy (moved out of the Site head <style id="ir-embed-navy"> on 2026-11-06 to cut head bytes)
   1b card rows, full alignment: icons, titles, text and buttons share the same row lines across a card row
      (CSS subgrid; only grids whose cards all have the same parts, otherwise rule 1 keeps the buttons aligned) */

/* 1. Card rows ------------------------------------------------------------------------------------------- */
.iri-cs .iri-cs-card:has(> .iri-cs-btn){display:flex;flex-direction:column}
.iri-cs .iri-cs-card > .iri-cs-btn{margin-top:auto;align-self:flex-start}
.iri-cs .iri-cs-card:has(> .iri-cs-btn:last-child) > :nth-last-child(2){margin-bottom:24px}
.iri-cs .iri-cs-card > .iri-cs-badge,.iri-cs .iri-cs-card > .iri-cs-icon{align-self:flex-start}

.value-card:has(> .aud-product-link:last-child),
.aud-challenge-card:has(> .aud-product-link:last-child){display:flex;flex-direction:column}
.value-card > .aud-product-link:last-child,
.aud-challenge-card > .aud-product-link:last-child{margin-top:auto;align-self:flex-start}
.value-card:has(> .aud-product-link:last-child) > :nth-last-child(2),
.aud-challenge-card:has(> .aud-product-link:last-child) > :nth-last-child(2){margin-bottom:22px}

.aud-product-card > div:last-child,.aud-product-card-1 > div:last-child{display:flex;flex-direction:column;align-self:stretch}
.aud-product-card > div:last-child > .aud-product-link:last-child,
.aud-product-card-1 > div:last-child > .aud-product-link:last-child{margin-top:auto;align-self:flex-start}

.plans-grid > .plan-card{display:flex;flex-direction:column}
.plans-grid > .plan-card > .plan-cta{margin-top:auto}

@media (min-width:992px){
  .bv-cc-plan > .bv-btn-primary,.scam-card > .card-cta{white-space:nowrap}
}

/* 1b. Card rows, full alignment (owner: "if the text takes two rows, create space under the others") ------
   Each rule stands alone so one unsupported selector cannot drop the others. :has() is never nested. */
@supports (grid-template-rows:subgrid){
  /* kit cards: every card starts with a picture ... */
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > :first-child:not(.iri-cs-media))) > .iri-cs-card{display:grid!important;grid-template-rows:subgrid;grid-row:span 6;row-gap:0;align-content:stretch}
  /* ... or no card has one */
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > .iri-cs-media)) > .iri-cs-card{display:grid!important;grid-template-rows:subgrid;grid-row:span 6;row-gap:0;align-content:stretch}
  :is(.grid-2col,.grid-3col,.grid-4col) > .value-card{display:grid!important;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;align-content:stretch}
  .aud-challenges-grid > .aud-challenge-card{display:grid!important;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;align-content:stretch}
  .plans-grid > .plan-card{display:grid!important;grid-template-rows:subgrid;grid-row:span 9;row-gap:0;align-content:stretch}
  .bv-benefits-grid > .scam-card{display:grid!important;grid-template-rows:subgrid;grid-row:span 3;row-gap:0;align-content:stretch}
  /* 1d (v6). A card spans only as many rows as the fullest card in its grid has parts (was a fixed span: cards with
     just a title or an icon and title got the grid gap of every empty row = ~120 px of blank, worst on phones). */
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > :first-child:not(.iri-cs-media))):not(:has(> .iri-cs-card > :nth-child(6))) > .iri-cs-card{grid-row:span 5!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > .iri-cs-media)):not(:has(> .iri-cs-card > :nth-child(6))) > .iri-cs-card{grid-row:span 5!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > :first-child:not(.iri-cs-media))):not(:has(> .iri-cs-card > :nth-child(5))) > .iri-cs-card{grid-row:span 4!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > .iri-cs-media)):not(:has(> .iri-cs-card > :nth-child(5))) > .iri-cs-card{grid-row:span 4!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > :first-child:not(.iri-cs-media))):not(:has(> .iri-cs-card > :nth-child(4))) > .iri-cs-card{grid-row:span 3!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > .iri-cs-media)):not(:has(> .iri-cs-card > :nth-child(4))) > .iri-cs-card{grid-row:span 3!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > :first-child:not(.iri-cs-media))):not(:has(> .iri-cs-card > :nth-child(3))) > .iri-cs-card{grid-row:span 2!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > .iri-cs-media)):not(:has(> .iri-cs-card > :nth-child(3))) > .iri-cs-card{grid-row:span 2!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > :first-child:not(.iri-cs-media))):not(:has(> .iri-cs-card > :nth-child(2))) > .iri-cs-card{grid-row:span 1!important}
  :is(.iri-cs-grid3,.iri-cs-grid4,.iri-cs-cards):not(:has(> .iri-cs-card > .iri-cs-media)):not(:has(> .iri-cs-card > :nth-child(2))) > .iri-cs-card{grid-row:span 1!important}
  :is(.grid-2col,.grid-3col,.grid-4col):not(:has(> .value-card > :nth-child(4))) > .value-card{grid-row:span 3!important}
  :is(.grid-2col,.grid-3col,.grid-4col):not(:has(> .value-card > :nth-child(3))) > .value-card{grid-row:span 2!important}
  :is(.grid-2col,.grid-3col,.grid-4col):not(:has(> .value-card > :nth-child(2))) > .value-card{grid-row:span 1!important}
  .aud-challenges-grid:not(:has(> .aud-challenge-card > :nth-child(4))) > .aud-challenge-card{grid-row:span 3!important}
  .aud-challenges-grid:not(:has(> .aud-challenge-card > :nth-child(3))) > .aud-challenge-card{grid-row:span 2!important}
  .aud-challenges-grid:not(:has(> .aud-challenge-card > :nth-child(2))) > .aud-challenge-card{grid-row:span 1!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(9))) > .plan-card{grid-row:span 8!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(8))) > .plan-card{grid-row:span 7!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(7))) > .plan-card{grid-row:span 6!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(6))) > .plan-card{grid-row:span 5!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(5))) > .plan-card{grid-row:span 4!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(4))) > .plan-card{grid-row:span 3!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(3))) > .plan-card{grid-row:span 2!important}
  .plans-grid:not(:has(> .plan-card > :nth-child(2))) > .plan-card{grid-row:span 1!important}
  .bv-benefits-grid:not(:has(> .scam-card > :nth-child(3))) > .scam-card{grid-row:span 2!important}
  .bv-benefits-grid:not(:has(> .scam-card > :nth-child(2))) > .scam-card{grid-row:span 1!important}
  .iri-cs-card > :is(a,.iri-cs-badge,.iri-cs-icon){justify-self:start}
  .value-card > :is(a,img){justify-self:start}
  .aud-challenge-card > :is(a,.aud-challenge-icon){justify-self:start}
  .scam-card > a{justify-self:start}
}

/* 1c. Card icons the same size (owner, 2026-11-06: "the logos are not the same size, increase them"). The four icon
   files have different built-in padding, so each gets a scale that gives every drawing about the same visual area
   (0.85 x 72 px squared; a wide icon is wider, a tall one taller). */
.value-card > img:first-child{width:72px!important;height:72px!important;max-width:none;object-fit:contain;margin-bottom:16px}
.value-card > img[src*="69b9777f903b759541c02f69"]{transform:scale(1.181)}
.value-card > img[src*="69b983bef7cc1063991db10e"]{transform:scale(1.046)}
.value-card > img[src*="69b9777f9d663660ab2762c9"]{transform:scale(1.405)}
.value-card > img[src*="69b9777f4f510b88c675316b"]{transform:scale(1.341)}

/* 2. Unreadable text -------------------------------------------------------------------------------------- */
.aud-products .aud-section-title,.aud-challenges .aud-section-title{color:#000}
.iri-faq-section .iri-faq-sub,.iri-faq-section .iri-faq-group-sub{color:#b9c6d3}
html[data-wf-page="69bbf92ef2a3f75341355153"] .iri-faq-section .iri-faq-a,
html[data-wf-page="69bbf92ef2a3f75341355153"] .iri-faq-section .iri-faq-a :is(li,b,strong,p){color:#c9d4e0!important}
html[data-wf-page="69bbf92ef2a3f75341355153"] .iri-faq-section .iri-faq-a a{color:#7cc4ff!important}
html[data-wf-page="69b9d5d14a40547038c9fb41"] .service-tile .service-tile-cta{color:#ff7aa8}

/* 2b. White icon files inside white kit cards were invisible (/business/voice/sip-trunking): draw them black like
   the kit's own SVG icons. On navy stat cards (.iri-cs-stat) they stay white. */
.iri-cs-card .iri-cs-icon img[src*="69b983bf7f938c2a1ca23613"],.iri-cs-card .iri-cs-icon img[src*="69b983bef7cc1063991db10e"],.iri-cs-card .iri-cs-icon img[src*="69b983be70a46298efe6689e"],.iri-cs-card .iri-cs-icon img[src*="69b983bf990a865f9f9c7459"],.iri-cs-card .iri-cs-icon img[src*="6ace485fb8fea1caac3ba4a9"]{filter:brightness(0)!important}
/* /contact-us "Our locations": links were browser-default blue on navy */
.aud-use-cases .audience-card .card-text a{color:#7cc4ff}

/* 3. Intro without fact list ------------------------------------------------------------------------------ */
.iri-intro-grid:not(:has(.iri-intro-facts)){grid-template-columns:minmax(0,1fr)!important}
.iri-intro-grid:not(:has(.iri-intro-facts)) > div{max-width:900px}

/* 4. Navy section turned white ---------------------------------------------------------------------------- */
[data-iri-tone=light]{background-color:#fff!important;background-image:none!important;padding-bottom:88px!important}
[data-iri-tone=light] .section-label{color:#0068c9!important}
[data-iri-tone=light] :is(.section-title,.card-title,.inline-h2-0-1-2){color:#01111e!important}
[data-iri-tone=light] :is(.section-description,.card-text,.inline-p-3,figcaption){color:#475569!important}
[data-iri-tone=light] .value-card{background-color:#f5f8fc!important;background-image:none!important;border-color:#dbe4ef!important;box-shadow:0 10px 30px rgba(10,20,51,.06)}
[data-iri-tone=light] .service-tile{background-color:#f5f8fc!important;border-color:#cfdceb!important}
[data-iri-tone=light] .split-right{background-color:#f5f8fc!important}
[data-iri-tone=light] .highlight-box{background-color:#eef6fd!important}
[data-iri-tone=light] .feature-num{color:#0068c9!important}
[data-iri-tone=light] .btn-secondary{background-color:#fff!important;color:#541337!important;border-color:#541337!important}
[data-iri-tone=light] .value-card img{filter:brightness(0) saturate(100%) invert(24%) sepia(91%) saturate(2283%) hue-rotate(198deg) brightness(93%) contrast(101%)}
@media (max-width:767px){[data-iri-tone=light]{padding-bottom:56px!important}}

/* 5. Diagram embeds: brand navy (#01111e, same as the stats strip) and no white gaps above/below. Overrides each #pd-*
   embed root's gradient and its vertical margins. Was inline in the Site head until 2026-11-06. */
html body :is(#pd-a2p-p2p-messaging,#pd-analytics,#pd-aud-carriers,#pd-aud-messaging-partners,#pd-aud-resellers,#pd-business-voip,#pd-call-recording,#pd-cloud-calling,#pd-cloud-connect,#pd-cloud-contact,#pd-contact-centre,#pd-conversation-capture,#pd-customization,#pd-cybersecurity,#pd-cybersecurity-consulting,#pd-ind-financial-services,#pd-ind-healthcare,#pd-ind-real-estate,#pd-infrastructure-enablement,#pd-managed-edr,#pd-managed-siem,#pd-number-porting,#pd-omnichannel,#pd-operator-connect,#pd-sip-trunking,#pd-smart-connect-bundles,#pd-smarter-messaging,#pd-sms-messaging,#pd-staff-training,#pd-stir-shaken-anti-spam,#pd-toll-free,#pd-unified-communications,#pd-unite-with-webex,#pd-virtual-fax,#pd-voice-and-auto-dialer,#pd-voice-termination,#pd-vulnerability-scan,#pd-wholesale,#pd-wholesale-phone-numbers){background:#01111e!important;margin-top:0!important;margin-bottom:0!important}

/* 6 (v7). Phones: wrapped lines must not overlap (qa_scan --mobile "tight": font-size above line-height on these
   classes), buttons centre their text; the /contact-us "Tell us what you need" heading sits on the white page, not in a
   navy FAQ block, so it gets dark text. */
main > .iri-faq-heading{color:#0a1433}
@media (max-width:767px){
  .btn-primary.w-button,.btn-secondary.w-button{line-height:1.25;text-align:center}
  :is(.biz-h2-dark,.biz-h2-light,.cc-h2,.inline-h2-0-1,.heading-19),h3.heading{line-height:1.2}
  .bv-compare2-sub{line-height:1.35}
}
/* v8 2026-11-10: scam-card CTAs never push past their card (owner screenshot: /putting-a-stop-to-phone-scammers "Protect your business and your customers" row overlapped). The column cannot exceed the card; labels wrap only when they do not fit; the 3-across row uses equal full-width buttons. */
.bv-benefits-grid > .scam-card{grid-template-columns:minmax(0,1fr)}
.scam-card > .card-cta{white-space:normal;max-width:100%}
.bv-benefits-grid.scam-grid3 > .scam-card > .card-cta{justify-self:stretch;align-self:stretch;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18px;line-height:1.3;padding:12px 20px;margin-top:0}
.bv-features-inner > h2 + .bv-benefits-grid.scam-grid3{margin-top:32px}
/* v9 2026-11-10: on tablets and phones the 3-across scam-card row stacks into one column, buttons at their natural width */
@media (max-width:991px){.bv-benefits-grid.scam-grid3{grid-template-columns:minmax(0,1fr)}.bv-benefits-grid.scam-grid3 > .scam-card > .card-cta{justify-self:start}}
/* v10 2026-11-13: a picture shown whole (.aud-img-contain) sets its box's shape instead of the fixed 4:3, so no dark bands above and below (owner, /wholesale/wholesale map) */
.aud-split-media:has(> .aud-img-contain){aspect-ratio:auto}
.aud-split-media > .aud-img-contain{height:auto}
