/**
 * @file
 * Quality Policy — page-specific styles + shared content-page layout.
 *
 * Uses a consistent qp-* prefix for all page-specific selectors.
 * Includes the two-column shell (sidebar + article), TOC card, CTA card,
 * brochure download area, and page-specific covers card grid.
 *
 * Design tokens, .al-btn, .container come from global general.css.
 * Hero, newsband, finalcta mixins imported from components/.
 *
 * Mirrors the static design reference
 * design-review/quality-policy/quality_policy.html.
 */
/**
 * @file
 * Shared LESS variables — imported by general.less and component files.
 *
 * Breakpoint variables used in @media queries across the theme.
 */
/* =========================================================================
   Design tokens supplement
   ========================================================================= */
:root {
  --border-2: var(--al-gray-100);
  --header-h: 72px;
}
/* =========================================================================
   HERO — reuse content-hero mixin, hide Drupal default title
   ========================================================================= */
.node--type-quality-policy .block-page-title-block {
  display: none;
}
.qp-hero {
  background: var(--al-navy);
  color: #fff;
  position: relative;
  overflow: clip;
  overflow-clip-margin: 20px;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.qp-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -110px;
  width: 480px;
  height: 270px;
  border: 2px solid rgba(224, 144, 48, 0.3);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.qp-hero::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border: 1.5px solid rgba(224, 144, 48, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.qp-hero .container {
  position: relative;
}
.qp-hero__figure {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 380px;
  z-index: 1;
  pointer-events: none;
}
.qp-hero__figure svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1080px) {
  .qp-hero__figure {
    display: none;
  }
}
.qp-hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 60px;
  max-width: 880px;
}
.qp-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 80px 0 0;
  text-wrap: balance;
}
.qp-hero__title .accent {
  color: var(--al-orange);
}
.qp-hero__standfirst {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: #cfe0ec;
  max-width: 62ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.qp-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.qp-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.12s;
}
.qp-hero .breadcrumb a:hover {
  color: #fff;
}
.qp-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}
.qp-hero .breadcrumb__current {
  color: var(--al-orange-300);
  font-weight: 600;
}
.qp-hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 60px;
}
.qp-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: background 0.14s, border-color 0.14s;
}
.qp-hero__ghost svg {
  width: 17px;
  height: 17px;
  transition: transform 0.14s;
}
.qp-hero__ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.qp-hero__ghost:hover svg {
  transform: translateX(3px);
}
/* =========================================================================
   BODY SHELL — two-column grid (sidebar left)
   ========================================================================= */
.qp-body {
  background: var(--bg-page);
  padding: 54px 0 6px;
}
.qp-grid-main {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.qp-article {
  min-width: 0;
}
/* SIDEBAR — TOC card + CTA card */
.qp-side {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.qp-toc-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.qp-toc-card__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-1);
}
.qp-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.qp-toc a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.qp-toc a:hover {
  background: var(--bg-alt);
  color: var(--al-navy);
}
.qp-toc a.is-active {
  color: var(--al-orange-700);
  border-left-color: var(--al-orange);
  background: #fff6ec;
  font-weight: 600;
}
.qp-cta-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--al-navy);
  color: #fff;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.qp-cta-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 170px;
  height: 110px;
  border: 2px solid rgba(224, 144, 48, 0.34);
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}
.qp-cta-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}
.qp-cta-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: #bcd6e7;
  margin: 0 0 16px;
  position: relative;
}
.qp-cta-card .al-btn {
  width: 100%;
  justify-content: center;
  position: relative;
}
/* BROCHURE / DOWNLOAD CTA */
.qp-brochure {
  margin: 35px 0 60px;
}
/* Article typography */
.qp-article .blog-lead {
  font-family: var(--font-sans);
  font-size: 25px;
  line-height: 1.62;
  color: var(--fg-1);
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 740px;
}
.qp-article p {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.78;
  color: var(--fg-2);
  margin: 0 0 18px;
  max-width: 740px;
}
.qp-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 37px;
  line-height: 1.25;
  color: var(--al-navy);
  margin: 64px 0 14px;
  scroll-margin-top: 100px;
  max-width: 740px;
}
.qp-article strong {
  color: var(--al-navy);
  font-weight: 700;
}
/* =========================================================================
   COVERS — numbered card grid (7 cards, QP-specific)
   Matches the design reference exactly.
   ========================================================================= */
.qp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 10px;
  max-width: none;
}
.qp-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
}
.qp-card .qp-card__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fg-3);
  display: block;
  margin: 0;
}
.qp-card > b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--al-navy);
  line-height: 1.2;
  display: block;
  margin: 0;
}
.qp-card > span:not(.qp-card__num) {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 0;
}
/* =========================================================================
   NEWSLETTER BAND
   ========================================================================= */
.qp-newsband {
  background: var(--al-navy);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.qp-newsband::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 330px;
  height: 190px;
  border: 2px solid rgba(224, 144, 48, 0.28);
  border-radius: 50%;
  transform: rotate(14deg);
  pointer-events: none;
}
.qp-newsband__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding: 46px 0;
}
.qp-newsband h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 17ch;
}
.qp-newsband p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #bcd6e7;
  margin: 9px 0 0;
  max-width: 46ch;
}
.qp-newsband form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.qp-newsband input {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  min-width: 250px;
}
.qp-newsband input::-moz-placeholder {
  color: #8fb1c8;
}
.qp-newsband input::placeholder {
  color: #8fb1c8;
}
.qp-newsband input:focus {
  outline: none;
  border-color: var(--al-orange);
  background: rgba(255, 255, 255, 0.12);
}
/* =========================================================================
   FINAL CTA
   ========================================================================= */
.qp-finalcta {
  background: var(--al-navy-900);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.qp-finalcta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 2px solid var(--al-orange);
  border-radius: 50%;
  transform: rotate(-15deg) scale(1, 0.34);
  opacity: 0.22;
  pointer-events: none;
}
.qp-finalcta::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -160px;
  width: 480px;
  height: 480px;
  border: 1px solid var(--al-orange);
  border-radius: 50%;
  transform: rotate(28deg) scale(1, 0.4);
  opacity: 0.14;
  pointer-events: none;
}
.qp-finalcta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.qp-finalcta__inner.with-form {
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.qp-finalcta__copy {
  padding-top: 8px;
}
.qp-finalcta h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.15vw, 50px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 16ch;
  text-wrap: balance;
}
.qp-finalcta p {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 60ch;
}
.qp-finalcta .qp-finalcta__microcopy {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
}
/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .qp-grid-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .qp-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .qp-cta-card {
    flex: 1;
    min-width: 260px;
  }
  .qp-finalcta__inner,
  .qp-finalcta__inner.with-form {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .qp-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .qp-newsband__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .qp-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================================
   DARK MODE
   ========================================================================= */
body.dark .qp-body {
  background: var(--al-navy);
}
body.dark .qp-article p {
  color: rgba(255, 255, 255, 0.78);
}
body.dark .qp-article h2 {
  color: #fff;
}
body.dark .qp-article strong {
  color: #fff;
}
body.dark .qp-toc-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
body.dark .qp-toc-card__h {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.dark .qp-toc a {
  color: rgba(255, 255, 255, 0.72);
}
body.dark .qp-toc a:hover {
  background: var(--al-navy-700);
  color: #fff;
}
body.dark .qp-toc a.is-active {
  color: var(--al-orange-300);
  background: rgba(224, 144, 48, 0.14);
  border-left-color: var(--al-orange);
}
body.dark .qp-cta-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark .qp-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark .qp-card .qp-card__num {
  color: rgba(255, 255, 255, 0.6);
}
body.dark .qp-card > b {
  color: #fff;
}
body.dark .qp-card > span:not(.qp-card__num) {
  color: rgba(255, 255, 255, 0.78);
}
