/* Qplus consult theme — design system. Dark theme (home, landing) + light theme (inner pages). Layout and motion follow the qplusconsult.com redesign spec. */

@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --klein: #002FA7;
  --klein-deep: #00227A;
  /* Qplus branding: International Klein Blue #002FA7 and white. Dark pages are Klein Blue;
     --night-2 is the deeper tone of the same blue for form and figure panels. */
  --night: #002FA7;
  --night-2: #00227A;
  --panel: #FFFFFF;
  /* Division colours (one per service line) */
  --div-qm: #2788D0;          /* Quality Management */
  --div-audits: #F44D44;      /* QA Experts, Audits */
  --div-mw: #114EB8;          /* Medical Writing */
  --div-ra: #25BBA1;          /* Regulatory Affairs */
  --div-pv: #358D81;          /* Pharmacovigilance */
  --div-training: #F69941;    /* Training and e-Learning */
  --division: var(--klein);
  --ink: #10204F;
  --ink-soft: #4A5677;
  --paper: #F3F6FC;
  --line: #D7DEEE;
  --white: #FFFFFF;
  --muted-on-dark: rgba(255, 255, 255, .72);
  --mute-grey: #969499;

  --font: "Plex", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(16px, 3.65vw, 56px);
  --gap: 24px;
  --header-h: 75px;
  /* Row height = 4-column tile width x 0.733 (335 px at 1536 px) */
  --col4: calc((100vw - 2 * var(--margin) - 11 * var(--gap)) / 3 + 2 * var(--gap));
  --row: calc(var(--col4) * 0.733);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 10px 16px; background: var(--white); color: var(--klein); font-weight: 600; border-radius: 20px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.container { width: 100%; padding-left: var(--margin); padding-right: var(--margin); }

.theme-dark { background: var(--night); color: var(--white); }

/* ---------- Pills & round buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 15px; font-weight: 500; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease-in-out, color .15s ease-in-out; }
.pill:hover { background: rgba(255, 255, 255, .24); }
.pill-white { background: var(--white); color: var(--klein); }
.pill-white:hover { background: #DCE5FB; }
.pill-block { display: flex; width: 100%; }
.pill[disabled], .pill[aria-busy="true"] { opacity: .75; cursor: progress; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.close-btn { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer; flex: none; }
.close-btn svg { width: 20px; height: 20px; }
.close-btn-dark { background: #111; color: var(--white); }

/* ---------- Header: hides on scroll down, returns on scroll up ---------- */
.site-header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--header-h); background: rgba(0, 12, 48, .38); color: var(--white); transition: top .3s linear, background-color .6s; }
.site-header.is-hidden { top: calc(-1 * var(--header-h)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.wordmark img { width: clamp(150px, 13vw, 196px); height: auto; }
.header-actions { display: flex; gap: 8px; margin-right: -8px; }

/* ---------- Search overlay ---------- */
.site-search { position: fixed; z-index: 150; inset: 0 0 auto 0; background: var(--white); color: var(--ink); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); animation: drop .25s var(--ease-out); }
.search-form { display: flex; align-items: center; gap: 12px; height: 110px; }
.search-form input { flex: 1; min-width: 0; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #EEF1F8; color: var(--ink); font: inherit; font-size: 17px; }
.search-form input:focus { outline: 2px solid var(--klein); }
.search-form .pill { background: var(--klein); color: var(--white); min-height: 48px; }
.search-form .close-btn { background: #111; }
@keyframes drop { from { transform: translateY(-100%); } }

/* ---------- Menu overlay (split screen) ---------- */
.site-menu { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-columns: 1fr; background: transparent; color: #333; }
.site-menu[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
/* At the same time: the menu column slides in from the right while the image column fades in where it stands (and the reverse on close) */
@keyframes menuin { from { transform: translateX(100%); } }
@keyframes menuout { to { transform: translateX(100%); } }
@keyframes menuimg { from { opacity: 0; } }
@keyframes menuimgout { to { opacity: 0; } }
.menu-media { position: relative; display: none; overflow: hidden; background: #F5F5F5; animation: menuimg .5s ease both; }
.site-menu.is-closing .menu-panel { animation: menuout .38s cubic-bezier(.4, 0, .7, .2) forwards; }
.site-menu.is-closing .menu-media { animation: menuimgout .38s ease forwards; }
.menu-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s linear; }
.menu-media img.is-active { opacity: 1; }
.menu-wordmark { position: absolute; z-index: 1; left: var(--margin); top: 0; height: var(--header-h); display: flex; align-items: center; }
.menu-panel { display: flex; flex-direction: column; min-height: 100%; overflow-y: auto; padding: 0 var(--margin) 32px; background: var(--white); animation: menuin .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-wordmark-dark img { width: 150px; height: auto; }
.menu-body { display: grid; gap: 32px; padding-top: 32px; }
.menu-label { margin-bottom: 14px; font-size: 14px; color: #6B6B6B; }
.menu-list a { display: inline-block; font-size: 33px; font-weight: 500; line-height: 1.2; color: #333; text-decoration: none; transition: color .15s ease-in-out; }
.menu-list.has-active a { color: var(--mute-grey); }
.menu-list.has-active a.is-active, .menu-list a:hover, .menu-list a:focus-visible { color: #111; }
.menu-sub ul { display: grid; gap: 6px; }
.menu-sub a { font-size: 16px; color: #222; text-decoration: none; }
.menu-sub a:hover { text-decoration: underline; }
.menu-sub a span { display: inline-block; margin-right: 6px; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 40px; }
.menu-foot-links { display: grid; gap: 4px; text-align: right; font-size: 14px; }
.menu-foot-links a { text-decoration: none; }
.menu-foot-links a:hover { text-decoration: underline; }
@media (min-width: 1024px) {
  .site-menu { grid-template-columns: 1fr 1fr; }
  .menu-media { display: block; }
  .menu-wordmark-dark { visibility: hidden; }
  .menu-top { justify-content: flex-end; }
  .menu-body { grid-template-columns: minmax(220px, auto) 1fr; gap: 72px; padding-top: 48px; }
}

/* ---------- Social & footer ---------- */
.social { display: flex; flex-wrap: wrap; gap: 16px; }
.social-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); transition: background-color .15s ease-in-out; }
.social-btn:hover { background: rgba(255, 255, 255, .24); }
.social-btn svg { width: 18px; height: 18px; }
.social-btn-light { width: 28px; height: 28px; background: #EEE; color: #222; }
.social-btn-light svg { width: 14px; height: 14px; }
.social-btn-light:hover { background: #DDD; }

.site-footer { padding-bottom: 40px; }
.site-footer .container > * { border-color: rgba(255, 255, 255, .32); }
.footer-row-top { display: grid; gap: 24px; padding-top: 40px; border-top: 1px dotted rgba(255, 255, 255, .45); align-items: center; }
.footer-wordmark img { width: 190px; }
.back-to-top { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; }
.back-to-top svg { width: 12px; height: 18px; }
.back-to-top:hover { text-decoration: underline; }
.footer-row-bottom { display: grid; gap: 20px; padding-top: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { text-decoration: none; transition: color .15s ease-in-out; }
.footer-nav a:hover { color: var(--muted-on-dark); }
.footer-legal { color: rgba(255, 255, 255, .6); }
.footer-legal a { text-decoration: none; margin-right: 6px; }
.footer-legal a:hover { color: var(--white); }
.footer-address { padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-address a { text-decoration: none; }
@media (min-width: 768px) {
  .footer-row-top { grid-template-columns: 1fr auto auto; gap: 48px; }
  .footer-row-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #E9ECF2; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.lqip-m { display: none; }
/* Slides with a phone version: each version has its own focal point */
img.has-fp { object-position: var(--fp) !important; }
@media (max-width: 767px) { picture img.has-fp { object-position: var(--fp-m) !important; } }
@media (max-width: 767px) { .lqip-m { display: block; } }
/* Instant blurred placeholder under hero images */
.lqip { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(16px); transform: scale(1.05); }
.page-hero .lqip + .hero-img { z-index: 0; }
.hero-slider::before, .hero-slider::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero-slider::before { top: 0; height: 180px; background: linear-gradient(rgba(0, 0, 0, .35), transparent); }
.hero-slider::after { bottom: 0; height: 60%; background: linear-gradient(transparent, rgba(0, 8, 32, .78)); }
.hero-caption { position: absolute; z-index: 2; left: 0; bottom: 96px; max-width: 720px; }
.captions { display: grid; }
.caption { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.caption.is-active { opacity: 1; transform: none; }
.caption-label { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.caption-title { font-size: clamp(26px, 3vw, 33px); font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }
.hero-sub { margin: 14px 0 22px; max-width: 34em; font-size: 17px; font-weight: 300; line-height: 1.55; letter-spacing: .3px; color: rgba(255, 255, 255, .9); }
.slider-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 32px; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.slider-controls > * { pointer-events: auto; }
.slider-dots { display: flex; gap: 6px; }
.dot { width: 24px; height: 24px; padding: 2px; border: 0; background: none; cursor: pointer; color: var(--white); }
.dot svg { width: 20px; height: 20px; overflow: visible; }
.dot-core { fill: rgba(255, 255, 255, .7); }
.dot-ring { fill: none; stroke: var(--white); stroke-width: 1.5; stroke-dasharray: 47.12; stroke-dashoffset: 47.12; transform: rotate(-90deg); transform-origin: center; opacity: 0; }
.dot.is-active .dot-core { fill: var(--white); }
.dot.is-active .dot-ring { opacity: 1; animation: ring var(--slide-ms, 6000ms) linear forwards; }
.hero-slider.is-paused .dot.is-active .dot-ring { animation-play-state: paused; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.slider-toggle { width: 26px; height: 26px; padding: 5px; border: 0; background: none; cursor: pointer; color: var(--white); opacity: .85; }
.slider-toggle .i-play { display: none; }
.hero-slider.is-paused .slider-toggle .i-play { display: block; }
.hero-slider.is-paused .slider-toggle .i-pause { display: none; }
.scroll-pill { position: absolute; z-index: 2; right: var(--margin); top: 50%; display: none; place-items: center; width: 40px; height: 80px; margin-top: -40px; border-radius: 20px; background: rgba(255, 255, 255, .3); color: var(--white); transition: background-color .15s ease-in-out; }
.scroll-pill:hover { background: rgba(255, 255, 255, .45); }
.scroll-pill svg { width: 14px; height: 36px; }
@media (min-width: 576px) { .scroll-pill { display: grid; } .hero-caption { bottom: 88px; } }

/* ---------- Block sections & 12-column grid ---------- */
.block-section { padding-top: 64px; }
.block-section:last-of-type { padding-bottom: 100px; }
.section-title { margin-bottom: 24px; font-size: 33px; font-weight: 500; line-height: 1.2; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid + .grid { margin-top: var(--gap); }
.g-4, .g-8, .g-12 { grid-column: span 12; }
@media (min-width: 768px) {
  .grid { grid-auto-rows: minmax(var(--row), auto); }
  .g-4 { grid-column: span 4; }
  .g-8 { grid-column: span 8; }
  .grid-guide .panel-form { grid-column: 9 / span 4; grid-row: 1 / span 2; }
  .grid-guide .panel-offer { grid-column: 1 / span 8; grid-row: 1; }
  .grid-guide .tile { grid-column: 1 / span 8; grid-row: 2; }
}

/* Tiles: image at 110 %, eases to 105 % on hover */
.tile { position: relative; display: block; overflow: hidden; min-height: 240px; aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; background: var(--night-2); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .62)); }
.tile-title { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 22px; font-size: 21px; font-weight: 500; line-height: 1.2; }
@media (min-width: 768px) { .tile { aspect-ratio: auto; min-height: 0; } }

/* Panels */
.panel { display: flex; align-items: center; background: var(--panel); color: var(--klein); }
/* Klein + white: quote panels are white with Klein text; form and figure panels use the deeper Klein tone with white text */
.panel-point, .panel-wide, .panel-stat, .panel-offer, .panel-news, .panel-form { color: var(--white); }
.panel-news, .panel-form { background: var(--night-2); }
.panel-inner { width: 100%; padding: 36px 28px; }
.quote-text { font-size: 19px; font-weight: 300; line-height: 1.5; letter-spacing: .5px; }
.quotee { margin-top: 16px; font-weight: 600; }
.point-title { margin-bottom: 12px; font-size: 21px; font-weight: 500; line-height: 1.2; }
.panel-point p { font-size: 17px; font-weight: 300; line-height: 1.55; letter-spacing: .3px; color: rgba(255, 255, 255, .88); }
.panel-point { align-items: flex-end; background: var(--night-2); }
.panel-wide { background: var(--night-2); }
.wide-text { display: grid; gap: 20px; }
.wide-lead { font-size: 21px; font-weight: 300; line-height: 1.45; letter-spacing: .3px; }
.wide-text p + p { margin-top: 12px; }
.wide-text div p { font-size: 17px; font-weight: 300; line-height: 1.6; letter-spacing: .3px; color: rgba(255, 255, 255, .88); }
.panel-stat { align-items: flex-end; background: var(--night-2); }
.stat-num { font-size: clamp(48px, 5vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stat-text { margin-top: 12px; max-width: 22em; font-size: 17px; font-weight: 300; line-height: 1.45; letter-spacing: .3px; color: rgba(255, 255, 255, .88); }
@media (min-width: 1024px) {
  .panel-inner { padding: 40px 62px; }
  .panel-point .panel-inner, .panel-stat .panel-inner { padding: 40px 40px; }
  .wide-text { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Offer panel */
.panel-offer { background: var(--night-2); align-items: stretch; }
.offer { display: grid; gap: 28px; align-content: center; }
.offer-text > p { font-size: 19px; font-weight: 300; line-height: 1.5; letter-spacing: .5px; }
.learn { display: grid; gap: 14px; margin-top: 24px; }
.learn li { position: relative; padding-left: 26px; font-size: 16px; font-weight: 300; line-height: 1.55; letter-spacing: .3px; color: rgba(255, 255, 255, .9); }
.learn li::before { content: ""; position: absolute; left: 0; top: .3em; width: .85em; height: .85em; background: var(--white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.learn strong { font-weight: 500; color: var(--white); }
.ebook { margin: 0; justify-self: start; }
.ebook img { width: 150px; height: auto; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }
.ebook figcaption { margin-top: 12px; font-size: 13px; color: var(--muted-on-dark); }
@media (min-width: 1024px) { .offer { grid-template-columns: 1fr auto; gap: 48px; align-items: center; } .ebook { justify-self: end; } .ebook img { width: 170px; } }

/* Form panel */
.panel-form { align-items: flex-start; }
.form-title { margin-bottom: 10px; font-size: 21px; font-weight: 500; line-height: 1.25; }
.form-sub { margin-bottom: 22px; font-size: 15px; font-weight: 300; line-height: 1.5; letter-spacing: .3px; color: rgba(255, 255, 255, .88); }
.field { margin-bottom: 12px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: var(--white); font: inherit; font-size: 15px;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.field input::placeholder { color: rgba(255, 255, 255, .78); }
.field input:hover { background: rgba(255, 255, 255, .19); }
.field input:focus { outline: none; border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .2); }
.field input[aria-invalid="true"] { border-color: #FFB4AE; }
.field-hint { margin: 6px 20px 0; font-size: 12.5px; color: var(--muted-on-dark); }
.field-error { margin: 6px 20px 0; font-size: 13px; font-weight: 500; color: #FFD0CC; }
.field-error:empty { display: none; }
.check-field { margin-bottom: 10px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .9); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--white); cursor: pointer; }
.check a { color: var(--white); }
.optional { color: var(--muted-on-dark); }
.robot-field { margin: 16px 0 14px; }
.robot { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 18px 0 12px; border: 1px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, .14); text-align: left; cursor: pointer; }
.robot:hover { background: rgba(255, 255, 255, .19); }
.robot-box { position: relative; flex: none; width: 24px; height: 24px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.robot-label { flex: 1; font-size: 15px; font-weight: 500; }
.robot-state { font-size: 12.5px; color: var(--muted-on-dark); }
.robot[aria-busy="true"] .robot-box { border-right-color: transparent; animation: spin .7s linear infinite; }
.robot[aria-checked="true"] { cursor: default; }
.robot[aria-checked="true"] .robot-box { background: var(--white); border-color: var(--white); }
.robot[aria-checked="true"] .robot-box::after { content: ""; position: absolute; left: 7.5px; top: 3.5px; width: 6px; height: 11px; border: solid var(--klein); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.robot.is-invalid { border-color: #FFB4AE; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 4px 0 12px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #FFE1DE; font-size: 13.5px; font-weight: 500; }
.form-error:empty { display: none; }
.lead-form .pill-block { margin-top: 6px; min-height: 44px; font-size: 15.5px; }
.privacy-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted-on-dark); }
.form-success:focus { outline: none; }
.success-mark { width: 44px; height: 44px; margin-bottom: 18px; color: var(--white); }
.success-text { margin-bottom: 22px; font-size: 15px; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .9); }
@media (min-width: 1024px) { .panel-form .panel-inner { padding: 40px 36px; } }

/* ---------- Reveal: fade-up, linear ---------- */
/* Entry motion: content slides up into place. No fade: it is always fully visible. */
.reveal-on [data-reveal] { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-on [data-reveal]:not(.is-in) { transform: translate3d(0, 64px, 0); }
.reveal-on [data-reveal].no-anim { transition: none; }


/* =====================================================================
   Theme additions (shared)
   ===================================================================== */
.logo-dark { display: none; }
.theme-light .logo-light { display: none; }
.theme-light .logo-dark { display: block; }
.wordmark { display: inline-flex; }
.tile-text { display: block; margin-top: 6px; max-width: 36em; font-size: 15px; font-weight: 300; line-height: 1.45; letter-spacing: .3px; color: rgba(255, 255, 255, .9); }
.caption-title a { text-decoration: none; }
.caption-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.slide video { width: 100%; height: 100%; object-fit: cover; }
.grid-auto { grid-auto-rows: auto !important; }
.quotee a { text-decoration: none; }
.quotee a:hover { text-decoration: underline; }
.icon-btn-dark { color: #222; }
.menu-top-actions { display: flex; align-items: center; gap: 8px; }
.pill-klein { background: var(--klein); color: var(--white); }
.pill-klein:hover { background: var(--klein-deep); }
.panel-news .lead-form .form-title { margin-bottom: 18px; }
.form-done { text-align: left; }
.form-done svg { width: 44px; height: 44px; margin-bottom: 14px; }
.form-done p { font-size: 15px; font-weight: 300; line-height: 1.5; }
.lead-form textarea { width: 100%; min-height: 120px; padding: 12px 20px; border: 1px solid transparent; border-radius: 22px; font: inherit; font-size: 15px; resize: vertical; }
.theme-dark .lead-form textarea { background: rgba(255, 255, 255, .14); color: var(--white); }

/* Drawer (full content of a card) */
.drawer { position: fixed; inset: 0; z-index: 180; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 19, 48, .45); animation: fade .25s linear; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); overflow-y: auto; padding: 88px clamp(24px, 5vw, 64px) 64px; background: var(--white); color: #333; animation: slidein .35s var(--ease-out); }
.drawer-panel > .close-btn { position: absolute; top: 14px; right: 18px; }
.drawer-panel h2 { margin-bottom: 20px; font-size: 26px; font-weight: 500; line-height: 1.25; color: #222; }
.drawer-img { margin: -88px calc(-1 * clamp(24px, 5vw, 64px)) 32px; aspect-ratio: 16 / 7; overflow: hidden; }
.drawer-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slidein { from { transform: translateX(100%); } }

/* =====================================================================
   Light theme (inner pages)
   ===================================================================== */
.theme-light { background: var(--white); color: #333; }
.theme-light .site-header { background: var(--white); color: #222; border-bottom: 1px solid #EBEBEB; }
.theme-light main { padding-top: var(--header-h); }
.theme-light .site-search .close-btn { background: #111; }

/* Sticky breadcrumb / title bar: sits under the header, moves to the top when the header hides */
.crumb-bar, .news-head { position: sticky; z-index: 50; top: var(--header-h); background: var(--white); border-bottom: 1px solid #EBEBEB; transition: top .3s linear; }
.header-hidden .crumb-bar, .header-hidden .news-head { top: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 74px; padding-top: 12px; padding-bottom: 12px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; }
.crumbs a { color: #767676; text-decoration: none; transition: color .15s ease-in-out; }
.crumbs a:hover { color: #222; }
.crumbs span[aria-hidden] { color: #9A9A9A; }
.crumbs [aria-current] { color: #222; }

/* Page hero band (blur-up on load) */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(300px, 32.5vw, 560px); overflow: hidden; background: #E9ECF2; color: var(--white); }
.page-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: blurin 1.1s ease both; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .6)); }
/* Phones: the title and line take up more of the hero, so the shade starts higher for legible text */
@media (max-width: 767px) { .page-hero::after { background: linear-gradient(rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, .68)); } }
.page-hero-text { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 28px; }
.page-hero h1, .page-title h1 { font-size: 33px; font-weight: 500; line-height: 1.2; max-width: 30em; }
.page-hero-line { margin-top: 8px; max-width: 40em; font-size: 19px; font-weight: 300; line-height: 1.45; letter-spacing: .3px; }
.page-hero-label { margin-bottom: 6px; font-size: 16px; font-weight: 500; }
.page-title { padding-top: 56px; padding-bottom: 8px; }
.page-title .page-hero-line { color: #555; }
@keyframes blurin { from { transform: scale(1.04); } }

/* Narrow reading column (offset like the reference layout) */
.text-col { max-width: 560px; margin-top: 56px; }
@media (min-width: 1024px) { .text-col { margin-left: 32%; } }
.text-section { margin-top: 48px; }
.rt { font-size: 16px; font-weight: 300; line-height: 1.75; letter-spacing: .5px; color: #555; overflow-wrap: break-word; }
.drawer-panel, .card-cap, .quote-card, .offer-card { overflow-wrap: break-word; }
.rt > * + * { margin-top: 16px; }
.rt p { margin: 0; }
.rt * + p, .rt * + ul, .rt * + ol { margin-top: 16px; }
.rt a { color: var(--klein); text-underline-offset: .18em; }
.rt strong { font-weight: 600; color: #333; }
.rt-h { color: #222; letter-spacing: 0; font-weight: 500; line-height: 1.3; }
.rt-h2 { font-size: 21px; } .rt-h3 { font-size: 19px; } .rt-h4 { font-size: 17px; } .rt-h5, .rt-h6 { font-size: 16px; font-weight: 600; }
.rt * + .rt-h { margin-top: 32px; }
.rt ul, .rt ol { padding-left: 20px; }
.rt ul.checks { padding-left: 0; list-style: none; }
.rt ul.checks li { position: relative; padding-left: 26px; }
.rt ul.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: .8em; height: .8em; background: var(--klein); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.rt li + li { margin-top: 6px; }
.rt-figure { margin: 32px 0 0; }
.rt-figure img, .rt-figure video { width: 100%; height: auto; border-radius: 2px; }
.rt-table { overflow-x: auto; }
.rt-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rt-table td { padding: 10px 12px; border-bottom: 1px solid #EEE; vertical-align: top; }
.rt-pill { margin-top: 20px !important; }

.theme-light .pill, .pill-grey { background: #EEE; color: #333; font-size: 14px; min-height: 34px; padding: 6px 18px; }
.theme-light .pill:hover, .pill-grey:hover { background: #E1E1E1; }
.theme-light .pill-klein { background: var(--klein); color: var(--white); min-height: 44px; font-size: 15px; }
.theme-light .pill-klein:hover { background: var(--klein-deep); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Quote card */
.quote-card { margin: 32px 0 0; padding: 32px; background: #F5F5F5; color: #333; }
.quote-card p { font-size: 19px; font-weight: 300; line-height: 1.6; letter-spacing: .5px; }
.quote-card footer { display: flex; align-items: center; gap: 16px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.quote-card .avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-big p { font-size: 21px; }
.rt .quote-card { padding: 24px 28px; }
.rt .quote-card p { font-size: 16px; }

/* Section bars, round buttons, cards */
.round-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #EEE; color: #222; cursor: pointer; transition: background-color .15s ease-in-out; }
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { background: #E1E1E1; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; margin-bottom: 24px; border-top: 1px solid #E5E5E5; border-bottom: 1px solid #E5E5E5; }
.section-bar h2 { font-size: 21px; font-weight: 500; color: #222; }
.card-section, .related, .offers, .testimonials, .steps { margin-top: 72px; }
.section-toggle > summary { list-style: none; cursor: pointer; }
.section-toggle > summary::-webkit-details-marker { display: none; }
.section-toggle .round-btn svg { transition: transform .25s ease; }
.section-toggle:not([open]) .round-btn svg { transform: rotate(180deg); }
.section-intro { margin: 0 0 32px; }
.card-grid { display: grid; gap: 24px; }
/* Expertise overview: the cards start below the hero, never against it */
.listing .card-grid { margin-top: 56px; }
@media (min-width: 1024px) { .listing .card-grid { margin-top: 72px; } }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: #F5F5F5; color: #333; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
div.card { cursor: default; }
.card-img { display: block; aspect-ratio: 2.37 / 1; overflow: hidden; background: #E5E5E5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1s; }
.card:hover .card-img img, .card:focus-visible .card-img img { transform: scale(1.05); }
.card-cap { display: grid; gap: 10px; padding: 24px 30px 28px; flex: 1; align-content: start; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-title { font-size: 21px; font-weight: 500; line-height: 1.3; color: #333; }
.card .round-btn { background: var(--white); }
.card:hover .round-btn { background: var(--klein); color: var(--white); }
.card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.6; color: #555; }
.card-meta { font-size: 14px; color: #767676; }
.card-noimg .card-cap { padding-top: 30px; min-height: 150px; }
.card-step .card-body { font-size: 15px; }
.offer-card { padding: 30px; background: #F5F5F5; }
.offer-card h3 { margin-bottom: 14px; font-size: 19px; font-weight: 500; color: #222; }
.offer-card .rt { font-size: 15px; }
.testimonials .quote-card { margin: 0; }
.testimonials .quote-card footer { font-weight: 500; color: #555; }

/* Related carousel */
.carousel-nav { display: flex; gap: 12px; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .carousel-track { grid-auto-columns: calc(50% - 12px); } }

/* Collapsible sections inside text (old "tabs") */
.collapsibles { margin-top: 24px; border-top: 1px solid #E5E5E5; }
.collapsible { border-bottom: 1px solid #E5E5E5; }
.collapsible > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 19px; font-weight: 500; color: #222; letter-spacing: 0; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible .round-btn svg { transform: rotate(180deg); transition: transform .25s ease; }
.collapsible[open] .round-btn svg { transform: none; }
.collapsible-body { padding: 0 0 28px; }

/* News listing */
.title-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.title-bar h1 { font-size: 21px; font-weight: 400; color: #222; }
.title-bar .count { font-size: 21px; color: #767676; }
.filter-bar { border-top: 1px solid #EBEBEB; }
.filter-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.filter-search { flex: 1 1 320px; height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: #F2F2F2; font: inherit; font-size: 15px; color: #222; }
.filter-select { flex: 0 1 250px; height: 40px; padding: 0 40px 0 20px; border: 0; border-radius: 999px; background: #F2F2F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23333' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat; font: inherit; font-size: 15px; color: #222; appearance: none; }
.filter-sort { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 0 0 16px; border: 0; border-left: 1px solid #DDD; background: none; font: inherit; font-size: 15px; color: #222; cursor: pointer; }
.sort-icon svg { width: 10px; height: 16px; transition: transform .2s; }
.sort-icon.is-asc svg { transform: rotate(180deg); }
.filter-search:focus, .filter-select:focus { outline: 2px solid var(--klein); }
.news-rows { padding-bottom: 80px; }
.news-row { display: grid; gap: 20px; padding: 24px 0; border-bottom: 1px solid #EBEBEB; }
.news-img { display: block; aspect-ratio: 2.17 / 1; overflow: hidden; background: #EEE; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-text h2 { font-size: clamp(24px, 2.3vw, 33px); font-weight: 500; line-height: 1.2; }
.news-text h2 a { color: #222; text-decoration: none; }
.news-text h2 a:hover { color: var(--klein); }
.news-meta { margin-top: 10px; font-size: 15px; color: #767676; }
.news-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 15px; line-height: 1.6; color: #444; }
.empty { padding: 48px 0; color: #555; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; background: #EEE; color: #333; text-decoration: none; }
.pagination .current { background: var(--klein); color: var(--white); }
@media (min-width: 768px) { .news-row { grid-template-columns: 37% 1fr; gap: 24px; padding: 24px 32px; } }

/* Article */
.article-body { padding-bottom: 24px; }
.article-body img { max-width: 100%; height: auto; }
.share { display: flex; gap: 12px; margin-top: 48px !important; }
.share .social-btn-light { width: 40px; height: 40px; }
.share .social-btn-light svg { width: 16px; height: 16px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; margin-top: 56px; }
.office { background: #F5F5F5; }
.office-img { aspect-ratio: 2.37 / 1; overflow: hidden; }
.office-img img { width: 100%; height: 100%; object-fit: cover; }
.office-map { position: relative; aspect-ratio: 4 / 3; background: #E9ECF2; }
.office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 768px) { .office-map { aspect-ratio: 16 / 10; } }
.office-text { padding: 28px 30px 32px; font-size: 16px; line-height: 1.7; }
.office-text h2 { margin-bottom: 12px; font-size: 21px; font-weight: 500; color: #222; }
.office-text p + p { margin-top: 14px; }
.office-text a { color: var(--klein); }
.office-text .pill { color: #333; }
.muted { color: #767676; }
.contact-form { padding: 32px 30px; background: #F5F5F5; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-box { margin-top: 32px; padding: 32px 30px; background: #F5F5F5; }

/* Light forms */
.form-light .form-title { color: #222; }
.form-light .field input[type="text"], .form-light .field input[type="email"], .form-light .field input[type="tel"], .form-light textarea { background: var(--white); color: #222; border-color: #E2E2E2; }
.form-light .field input::placeholder, .form-light textarea::placeholder { color: #767676; }
.form-light .field input:hover, .form-light textarea:hover { background: var(--white); border-color: #C9C9C9; }
.form-light .field input:focus, .form-light textarea:focus { background: var(--white); border-color: var(--klein); outline: none; }
.form-light .field-error { color: #B3211A; }
.form-light .field input[aria-invalid="true"], .form-light textarea[aria-invalid="true"] { border-color: #B3211A; }
.form-light .check { color: #444; }
.form-light .check input { accent-color: var(--klein); }
.form-light .check a { color: var(--klein); }
.form-light .robot { background: var(--white); border-color: #E2E2E2; color: #222; }
.form-light .robot-box { border-color: #888; }
.form-light .robot-state { color: #767676; }
.form-light .robot[aria-checked="true"] .robot-box { background: var(--klein); border-color: var(--klein); }
.form-light .robot[aria-checked="true"] .robot-box::after { border-color: var(--white); }
.form-light .form-error { background: #FDECEB; color: #8F1A14; }
.form-light .form-done { color: #333; }
.form-light .form-done svg { color: var(--klein); }

/* 404 + notices */
.not-found { padding-top: calc(var(--header-h) + 96px); padding-bottom: 120px; text-align: center; }
.theme-light .not-found { padding-top: 96px; }
.nf-code { font-size: clamp(64px, 7vw, 88px); font-weight: 500; line-height: 1; color: #222; }
.not-found h1 { margin: 18px 0 28px; font-size: 21px; font-weight: 500; color: #222; }
.not-found p { max-width: 30em; margin: 0 auto 28px; font-size: 15px; color: #333; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.notice-actions form { margin: 0; }

/* Footer (light theme) */
.theme-light .site-footer { color: #222; }
.theme-light .footer-row-top { border-top-color: #BDBDBD; }
.theme-light .social-btn { background: #EEE; color: #222; }
.theme-light .social-btn:hover { background: #E1E1E1; }
.theme-light .footer-nav a:hover { color: #767676; }
.theme-light .footer-legal { color: #767676; }
.theme-light .footer-legal a:hover { color: #222; }
.theme-light .footer-address { color: #8A8A8A; }
.site-footer { margin-top: 0; }
.theme-light .site-footer { margin-top: 96px; }
.footer-legal a + a { margin-left: 4px; }

/* Admin bar offset */
.admin-bar .site-header { margin-top: 32px; }
.admin-bar .crumb-bar, .admin-bar .news-head { top: calc(var(--header-h) + 32px); }
.admin-bar.header-hidden .crumb-bar, .admin-bar.header-hidden .news-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { margin-top: 46px; } .admin-bar .crumb-bar, .admin-bar .news-head { top: calc(var(--header-h) + 46px); } }

@media (prefers-reduced-motion: reduce) {
  .page-hero .hero-img { animation: none; }
}

/* ---------- About: introduction + facts, split quote, chapters, call to action ---------- */
.g-6 { grid-column: span 12; }
@media (min-width: 768px) { .g-6 { grid-column: span 6; } }
.about-intro { padding-top: 64px; }
.about-lead p { font-size: 22px; font-weight: 300; line-height: 1.5; letter-spacing: .2px; color: #222; }
@media (min-width: 1024px) { .about-lead p { font-size: 28px; line-height: 1.45; max-width: 24em; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 8px 0 0; align-content: start; }
.fact { padding-top: 14px; border-top: 1px solid #D9D9D9; }
.fact dt { color: var(--klein); font-size: 30px; font-weight: 500; line-height: 1.1; }
.fact dd { margin: 8px 0 0; color: #555; font-size: 14px; line-height: 1.45; }
@media (min-width: 1024px) { .facts { grid-template-columns: 1fr; gap: 26px; } }
.about-quote { margin-top: 80px; }
.about-quote .grid { gap: 0; }
.about-quote-img { position: relative; min-height: 280px; overflow: hidden; background: #E9ECF2; }
.about-quote-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 767px) { .about-quote-img { min-height: 0; aspect-ratio: 4 / 5; } }
.about-quote-panel { display: flex; flex-direction: column; justify-content: flex-end; margin: 0; padding: 40px 32px; background: var(--klein); color: var(--white); min-height: 320px; }
.about-quote-panel p { font-size: 24px; font-weight: 300; line-height: 1.4; letter-spacing: .2px; }
.about-quote-panel footer { margin-top: 24px; font-size: 15px; font-weight: 500; opacity: .85; }
@media (min-width: 1024px) { .about-quote-panel { padding: 56px 48px; min-height: 460px; } .about-quote-panel p { font-size: 32px; } }
/* Phones: less empty blue above the quote */
@media (max-width: 767px) { .about-quote-panel { min-height: 0; padding-top: 50px; } }
.about-chapters { margin-top: 56px; }
.chapter { padding: 40px 0 48px; border-top: 1px solid #E3E3E3; row-gap: 12px; }
.chapter-title { font-size: 24px; font-weight: 500; line-height: 1.25; color: #111; }
@media (min-width: 1024px) {
  .chapter { padding: 56px 0 72px; }
  .chapter-head { position: relative; }
  .chapter-title { position: sticky; top: calc(var(--header-h) + 72px); font-size: 28px; max-width: 11em; }
  .chapter-body { max-width: 680px; }
}
.chapter-body p { font-size: 17px; line-height: 1.7; color: #333; }
.chapter-body .rt-h { margin-top: 32px; color: #111; }
.chapter-body .rt-h strong { font-weight: inherit; }
.chapter-body ul.checks { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0 0; }
.chapter-body ul.checks li { margin: 0; padding: 18px 20px 18px 50px; background: #F5F5F5; font-size: 16px; line-height: 1.45; }
.chapter-body ul.checks li::before { left: 20px; top: 23px; }
.chapter-body ul.checks li strong { font-weight: 500; }
@media (min-width: 768px) { .chapter-body ul.checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Lists made only of links: large rows with an arrow (used on About and anywhere in rich text) */
.rt ul.link-list { margin: 20px 0 24px; padding: 0; list-style: none; border-top: 1px solid #E3E3E3; }
.rt ul.link-list li { margin: 0; border-bottom: 1px solid #E3E3E3; }
.rt ul.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; color: #111; font-size: 19px; font-weight: 400; text-decoration: none; transition: color .15s ease-in-out; }
.rt ul.link-list a strong { font-weight: 400; }
.rt ul.link-list a:hover, .rt ul.link-list a:focus-visible { color: var(--klein); }
.rt ul.link-list .round-btn { flex: none; }
.rt ul.link-list a:hover .round-btn { background: var(--klein); color: var(--white); }
.about-cta { margin-top: 24px; padding: 64px 0 72px; background: var(--klein); color: var(--white); }
.about-cta-title { max-width: 22em; font-size: 26px; font-weight: 300; line-height: 1.35; }
.about-cta .pills { margin-top: 28px; }
@media (min-width: 1024px) { .about-cta { padding: 96px 0 104px; } .about-cta-title { font-size: 36px; } }

/* Arrow icon in menu sub-links */
.icon-ur { display: inline-block; width: .8em; height: .8em; vertical-align: -.05em; margin-right: .25em; }

/* Floating back-to-top button: appears after scrolling down, hidden at the very top and at the footer */
.to-top { position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--klein); color: var(--white); box-shadow: 0 10px 24px -10px rgba(0, 20, 80, .55); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s linear, transform .25s ease-out, visibility 0s linear .25s, background-color .15s ease-in-out; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: #00227A; }
.to-top:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 4px var(--klein); }
.to-top svg { width: 14px; height: 20px; }
.theme-dark .to-top { background: var(--white); color: var(--klein); }
.theme-dark .to-top:hover { background: #DCE5FB; }
@media (min-width: 1024px) { .to-top { right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .menu-panel, .menu-media, .site-menu.is-closing .menu-panel, .site-menu.is-closing .menu-media { animation: none; } .reveal-on [data-reveal] { transition: none; transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .01s, visibility 0s; transform: none; } }
.back-to-top { touch-action: manipulation; }

/* ---------- Division colours ---------- */
.division-qm { --division: var(--div-qm); }
.division-audits { --division: var(--div-audits); }
.division-mw { --division: var(--div-mw); }
.division-ra { --division: var(--div-ra); }
.division-pv { --division: var(--div-pv); }
.division-training { --division: var(--div-training); }
/* Expertise pages: a bar in the division colour closes the hero */
.has-division .page-hero::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 6px; background: var(--division); }
.has-division .page-hero-label { display: inline-flex; align-items: center; gap: 8px; }
.has-division .page-hero-label::before { content: ""; width: 10px; height: 10px; background: var(--division); }
.has-division .rt ul.checks li::before, .has-division .learn li::before { background: var(--division); }
.has-division .quote-card { border-left: 4px solid var(--division); }
.has-division .crumbs a:last-of-type { box-shadow: inset 0 -2px 0 var(--division); }
/* Cards and tiles that lead to a division page carry its colour */
.card[class*="division-"] .card-cap { box-shadow: inset 0 4px 0 var(--division); }
.card[class*="division-"]:hover .round-btn, .card[class*="division-"]:focus-visible .round-btn { background: var(--division); color: var(--white); }
.tile[class*="division-"]::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 6px; background: var(--division); }
.tile-division { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 500; letter-spacing: .3px; opacity: .92; }
.tile-division::before { content: ""; width: 10px; height: 10px; background: var(--division); }
/* Menu: expertise links show their division colour */
.menu-sub a[class*="division-"] .icon-ur { color: var(--division); }
.rt ul.link-list a[class*="division-"] .round-btn { box-shadow: inset 0 0 0 2px var(--division); background: transparent; }
.rt ul.link-list a[class*="division-"]:hover .round-btn { background: var(--division); color: var(--white); box-shadow: none; }
/* Landing page (Pharmacovigilance): figures in the division colour's light tone */
.layout-landing .stat-num { color: var(--white); }
.layout-landing .stat-num::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 14px; background: var(--div-pv); }

/* News list: breadcrumb line above the sticky title bar */
.news-crumbs { background: var(--white); border-bottom: 1px solid #EBEBEB; }
.news-crumbs .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; min-height: 44px; font-size: 15px; color: #777; }
.news-crumbs .crumbs a { color: #777; } .news-crumbs .crumbs a:hover { color: #111; }
.news-crumbs .crumbs [aria-current] { color: #111; }

/* Hero call-to-action buttons (expertise pages and home slides) */
/* Hero buttons all share one width: as wide as the widest label, at least 170 px */
.hero-pills { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; width: max-content; max-width: 100%; margin-top: 20px; }
.hero-pills .pill, .slide-actions .pill { justify-content: center; text-align: center; white-space: nowrap; }
.slide-actions .pill { width: 220px; }
.pill-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.pill-outline:hover, .pill-outline:focus-visible { background: rgba(255, 255, 255, .16); }
.pill-klein { background: var(--klein); color: var(--white); }
.page-title .hero-pills { margin-top: 18px; }
.has-division .page-hero-text { padding-bottom: 34px; }
.hero-actions { display: grid; }
.slide-actions { grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s linear .6s; }
.slide-actions.is-active { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (max-width: 575px) {
  .hero-pills { grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .hero-pills .pill, .slide-actions .pill { min-height: 40px; padding: 7px 12px; font-size: 14px; }
  .slide-actions .pill { width: 200px; }
  .page-hero-text { padding-top: 96px; }
}
/* Hero buttons keep their look on light pages too (the light-page pill style must not apply over a photo) */
.page-hero .hero-pills .pill { min-height: 42px; padding: 8px 20px; font-size: 15px; font-weight: 500; }
.page-hero .hero-pills .pill-white { background: var(--white); color: var(--klein); }
.page-hero .hero-pills .pill-white:hover, .page-hero .hero-pills .pill-white:focus-visible { background: #DCE5FB; }
.page-hero .hero-pills .pill-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); }
.page-hero .hero-pills .pill-outline:hover, .page-hero .hero-pills .pill-outline:focus-visible { background: rgba(255, 255, 255, .16); }
@media (max-width: 575px) { .page-hero .hero-pills .pill { min-height: 40px; padding: 7px 12px; font-size: 14px; } }

/* Track record: every figure sits on the same line, whatever the length of its label (feedback R1).
   Labels reserve room for three lines, so a label that wraps no longer lifts its number. */
.panel-stat .stat-text { min-height: calc(3 * 1.5em); line-height: 1.5; }
@supports (min-height: 1lh) { .panel-stat .stat-text { min-height: 3lh; } }
@media (max-width: 767px) { .panel-stat .stat-text { min-height: 0; } }
