/* Shared finishing rules, loaded after the page modules.
   Keep the established corporate scale across subpages; the homepage and
   illustrated 404 retain their distinct display headings. */
@media screen {
  :root { --page-title-size:43.9453px; --page-title-line:63px; }
  body:not([data-page="home"]):not([data-privacy-page-type="notFound"]) main h1 {
    font-size:var(--page-title-size);
    line-height:var(--page-title-line);
    letter-spacing:0;
    hyphens:none;
    overflow-wrap:anywhere;
    text-wrap:pretty;
  }
  @media (max-width:900px) {
    :root { --page-title-size:35.1562px; --page-title-line:49.5px; }
  }
  @media (max-width:600px) {
    :root { --page-title-size:28.125px; --page-title-line:40px; }
    .service-review { --sr-h2:28.125px; --sr-h3:22.5px; }
    .service-review h2 { line-height:36px; letter-spacing:0; }
    .history-page h2 { font-size:28.125px; line-height:36px; letter-spacing:0; }
    .history-page h3 { font-size:22.5px; line-height:31.5px; }
    .knowledge-article-meta input { font-size:16px; }
    .faq-filter select { font-size:16px; min-height:44px; }
    /* Leave room to read a comparison value beside the sticky row label. */
    .sr-matrix thead th:first-child,
    .sr-matrix tbody th[scope="row"] { width:160px; min-width:160px; }
  }
}

.brand-name { white-space:nowrap; }
.consent-head > div { min-width:0; }
.consent-head h2 { overflow-wrap:anywhere; }
.contact-page > * { min-width:0; }
.contact-aside > a[href^="tel:"],
.contact-aside > a[href^="mailto:"] { font-size:18px; line-height:28px; }
.contact-aside > a.text-link { white-space:normal; align-items:flex-start; }
.contact-aside > a.text-link > .icon { margin-top:.25em; }
/* Inline external links need their own gap; flex links already have one. */
.form-privacy a,
.application-consent a { white-space:nowrap; }
.form-privacy a > .icon,
.application-consent a > .icon,
.knowledge-sources > p > a > .icon,
.legal-help > a > .icon {
  margin-inline-start:6px;
  font-size:.9em;
  vertical-align:-.05em;
}

@media (max-width:900px) {
  .mobile-header-actions .icon-button { width:44px; min-width:44px; }
  .mobile-header-actions { flex-shrink:0; }
  .identity-row .brand { flex-shrink:1; min-width:0; }
  .identity-row .brand img { max-width:100%; }
}
@media (max-width:600px) {
  /* Long translated titles get a full row; the close control stays visible. */
  .consent-head { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:0 16px; }
  .consent-head > div { display:contents; }
  .consent-head .consent-logo { grid-area:1/1; align-self:center; max-width:100%; margin:0; }
  .consent-head h2 { grid-area:2/1/auto/-1; }
  .consent-head > .icon-button { grid-area:1/2; }
  /* A 44px hit area around each existing 4px pagination bar. */
  .stage-pagination button::before { content:""; position:absolute; inset:-20px 0; }
  .consent-receipt .text-button { min-height:44px; text-align:start; }
}
@media (max-width:360px) {
  .consent-head h2 { font-size:20px; }
}
