/* QA fixes for group A (core pages). Loaded after all other stylesheets on these pages only. */

/* Home: former second H1, now H2, keeps the original look */
#home-federated-story .head h2.qa-fs-title{font-size:22px;font-weight:400;line-height:1.3;color:rgb(61,61,107);font-family:Calibri,Arial,sans-serif;margin:0 0 18px;letter-spacing:-.55px}
#home-federated-story .head h2.qa-fs-title em{font-size:28.8px;color:rgb(231,20,103);font-style:normal}

/* Home: "Coming Soon" pill at least 12px */
.knowledgevare-interest .pill{font-size:12px}

@media (max-width:760px){
  /* Home: board brief cards in one column */
  .case-studies-section .case-study-portfolio{grid-template-columns:minmax(0,1fr)!important}
  .case-studies-section .case-study-portfolio > .case-study-tile{grid-column:auto!important;grid-row:auto!important;width:auto!important;max-width:100%}
  /* Home: Entity D waits inside the diagram instead of beyond the right edge */
  .fhx .en-d{left:614px}
  /* Home: KnowledgeVare callout stays inside the screen */
  .aiw-foot .knowledgevare-callout{flex-wrap:wrap;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
  .aiw-foot .knowledgevare-callout > *{min-width:0;max-width:100%}
  /* Company: hero fits the screen */
  .company-hero-grid{grid-template-columns:minmax(0,1fr)!important}
  .company-hero-grid > *{min-width:0;max-width:100%}
  /* Company: suite wordmarks fit inside their cards */
  body.company-page .company-product-art .company-suite-logo{--qc:min(14px, calc((50vw - 66px) / var(--art-ratio)));width:calc(var(--qc) * var(--art-ratio))!important;height:var(--qc)!important;max-width:100%}
  body.company-page .company-product-art .company-suite-logo img{width:100%!important;top:calc(-1 * var(--qc) * var(--cap-offset))!important;height:calc(var(--qc) * var(--art-scale))!important}
}

/* Company: small notes at least 12px */
.business-case .adoption-note{font-size:12px!important}

/* Partners: role labels at least 12px */
.tv-partner-card .tv-partner-role{font-size:12px!important}

/* Regulations: no justified paragraphs; remove stray outline mark in the CTA band */
body.regulations-page .regulation-hero-copy .lead,
body.regulations-page .framework-governance-copy{text-align:left!important}
body.regulations-page .cta-band > .regulation-section-outline{display:none!important}

/* Solutions: "By Outcome" menu target clears the fixed header */
#outcomes{scroll-margin-top:130px}
/* Resources: MyCloud announcement anchor and cover image */
#mycloud-announcement{scroll-margin-top:130px}
#mycloud-announcement .mg-resource-cover img{object-fit:cover;background:#fff}

/* 404: fill the screen and offer useful links */
.qa-404-links{margin-top:34px}
.qa-404-links p{margin:0 0 10px;font-weight:600;color:#3d3d6b}
.qa-404-links ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.qa-404-links a{display:inline-block;padding:9px 16px;border:1px solid rgba(61,61,107,.22);border-radius:999px;background:rgba(255,255,255,.7);color:#2b2b5c;text-decoration:none;font-weight:500}
.qa-404-links a:hover,.qa-404-links a:focus-visible{border-color:#e71467;color:#e71467}
body:has(.qa-404-links) main > .page-hero{min-height:calc(100vh - 550px)}

/* Contact: full office addresses */
.regional-addresses .qa-office-address{display:block;margin-top:6px;font-size:14px;line-height:1.5;opacity:.85}

/* final pass */
@media (max-width:600px){p.tv-partner-role{font-size:12px!important}}

/* Solutions: per-outcome menu anchors */
#roles article.role-story:has(.qa-outcome-anchor),#organisations article.role-story:has(.qa-outcome-anchor){position:relative}
.qa-outcome-anchor{position:absolute;top:-130px;left:0;height:0;width:0;overflow:hidden;pointer-events:none}
