/*
 * Viewpoint theme: gives every base_industry.html page (public site and the
 * client app) the look and navigation of the live viewpoint-psychology.com,
 * keeping the iTestHub name and logo. Loaded last, so it retunes the
 * Industry tokens in styles.css rather than editing that file.
 *
 * Colours are sampled (sRGB, no colour profile) from full-page screenshots
 * of the live site taken on 6 Nov 2026 (/mnt/project-files/0*-*.png):
 *   #416180  header bar, hero, table header rows
 *   #2c455d  headings, intro text, footer band
 *   #94bce3  underline under the current menu item, bar under page titles,
 *            "point" in the logo
 *   #eef6ff  light-blue band;  #f4f6f8  grey band and zebra rows
 *   #dce3ea  card border;  #31333f  body text
 * Type is Inter.
 *
 * Contrast (WCAG 2.2 AA): white on #416180 6.5:1, white on #2c455d 9.9:1,
 * #2c455d on white 9.9:1 and on #f4f6f8 9.2:1, #31333f on white 12.5:1,
 * #416180 on #eef6ff 5.9:1, outline-button border #c6d0d9 on #416180
 * 4.1:1. The light-blue underline and title bar are
 * decoration beside text that already passes, not the only cue.
 * Light-only by design (CLAUDE.md): no dark-mode rules here.
 */

:root {
  --vp-slate: #416180;
  --vp-slate-dark: #34506b;
  --vp-navy: #2c455d;
  --vp-sky: #94bce3;
  --vp-blue-band: #eef6ff;
  --vp-grey-band: #f4f6f8;
  --vp-hero-text: #ffffff;
  --vp-heading: #2c455d;
  --vp-card-border: #dce3ea;

  --color-bg: #ffffff;
  --color-surface: #f4f6f8;
  --color-text: #31333f;
  --color-accent: #416180;
  --color-divider: var(--vp-card-border);
  --color-neutral-100: #f4f6f8;

  /* Slate ramp in Viewpoint's hue so cards, tags and links follow it.
     700+ pass 4.5:1 on white. */
  --color-accent-100: #eef6ff;
  --color-accent-200: #dce8f4;
  --color-accent-300: #bcd3ea;
  --color-accent-400: #94bce3;
  --color-accent-500: #6589ab;
  --color-accent-600: #527394;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d3042;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 700;
  --font-body: "Inter", system-ui, sans-serif;
}

body { font-size: 16px; line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { color: var(--vp-heading); letter-spacing: -0.01em; }
.text-muted { color: #55595c; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }

.vp-container { max-width: 1200px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
@media (max-width: 767px) { .vp-container { padding-left: 20px; padding-right: 20px; } }

/* — buttons — */
.btn { font-weight: 500; border-radius: 4px; }
.btn-primary { background: var(--vp-slate); border-color: var(--vp-slate); color: #fff; }
.btn-primary:hover, .btn-primary:active { background: var(--vp-navy); border-color: var(--vp-navy); color: #fff; }
.btn-white { background: #fff; border: 1px solid #fff; color: var(--vp-navy); }
.btn-white:hover { background: var(--vp-blue-band); border-color: var(--vp-blue-band); color: var(--vp-navy); }
.btn-outline-white { background: transparent; border: 1px solid #c6d0d9; color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* — skip link — */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: #fff; color: var(--vp-heading); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* — header bar — */
.site-header { display: block; padding: 0; border-bottom: 0; background: var(--vp-slate); color: #fff; position: relative; z-index: 30; }
.site-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.site-logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 700; font-size: 30px; letter-spacing: -0.02em;
  text-decoration: none; color: inherit;
}
.site-logo svg { width: 44px; height: 38px; }
.site-header .site-logo, .site-header .site-logo:hover { color: #fff; }
.site-logo-accent { color: var(--color-accent-700); }
.site-header .site-logo-accent { color: var(--vp-sky); }

.site-header-menu { display: flex; align-items: center; justify-content: flex-end; gap: 0; flex: 1; }
.site-header-nav, .site-header-actions { display: flex; align-items: center; gap: 0; font-size: 16px; font-weight: 500; }
.site-header-nav > a, .site-header .nav-dropdown > summary, .site-header-actions > a {
  color: #fff; text-decoration: none; padding: 6px 15px 4px;
  border-bottom: 2px solid transparent;
}
.site-header-nav > a:hover, .site-header .nav-dropdown > summary:hover, .site-header-actions > a:hover,
.site-header [aria-current="page"], .site-header .nav-dropdown > summary[aria-current="page"] { color: #fff; border-bottom-color: var(--vp-sky); }
.site-header .nav-dropdown > summary::after { content: none; }

/* Create Account: white button with navy text, as on Viewpoint */
.site-header-actions { gap: 14px; margin-left: 15px; }
.site-header-actions > a.site-header-cta {
  background: #fff; color: var(--vp-navy); border: 1px solid #fff; border-radius: 4px;
  padding: 13px 20px; line-height: 1.4; font-size: 17px;
}
.site-header-actions > a.site-header-cta:hover { background: var(--vp-blue-band); border-color: var(--vp-blue-band); color: var(--vp-navy); }

/* Products dropdown: white panel, navy links */
.site-header .nav-dropdown-menu {
  top: calc(100% + 8px); left: 15px; background: #fff; border: 1px solid var(--vp-card-border);
  border-radius: 4px; box-shadow: 0 10px 24px rgba(29, 48, 66, 0.16); padding: 6px 0; min-width: 270px;
}
.site-header .nav-dropdown-menu a {
  color: var(--vp-heading); font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: 0;
}
.site-header .nav-dropdown-menu a:hover { background: var(--vp-blue-band); color: var(--vp-heading); }
.site-header .nav-dropdown-menu a:focus-visible { outline: 2px solid var(--vp-slate); outline-offset: -2px; }
.site-header .nav-dropdown-all { border-top: 1px solid var(--vp-card-border); margin-top: 6px; }

.site-nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 1px solid #c6d0d9; border-radius: 4px;
  font: inherit; font-weight: 500; padding: 8px 12px; cursor: pointer;
}

@media (max-width: 1080px) {
  .site-header-inner { flex-wrap: wrap; padding: 18px 20px; }
  .site-logo { font-size: 26px; }
  .site-nav-toggle { display: inline-flex; }
  .site-header-menu {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  .site-header.is-open .site-header-menu { display: flex; }
  .site-header-nav, .site-header-actions { flex-direction: column; align-items: stretch; margin: 0; order: 0; flex-basis: auto; }
  .site-header-nav > a, .site-header .nav-dropdown > summary, .site-header-actions > a { padding: 12px 0; align-self: flex-start; }
  .site-header-actions > a.site-header-cta { padding: 10px 18px; margin: 8px 0; }
  .site-header .nav-dropdown > summary { display: inline-flex; }
  .site-header .nav-dropdown-menu { position: static; box-shadow: none; margin: 0 0 8px; }
}

/* — hero: continues the header bar — */
.vp-hero { background: var(--vp-slate); color: #fff; padding: 56px 0 80px; }
.vp-hero h1 { color: #fff; font-size: 64px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px; max-width: 900px; }
.vp-hero-text, .vp-hero-text p { color: var(--vp-hero-text); font-size: 18px; line-height: 1.5; max-width: 720px; }
.vp-hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
.vp-hero-actions .btn { font-size: 24px; padding: 8px 19px; }
.vp-hero-actions .btn-primary { background: #fff; border-color: #fff; color: var(--vp-heading); }
.vp-hero :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
  .vp-hero { padding: 36px 0 44px; }
  .vp-hero h1 { font-size: 40px; }
  .vp-hero-text, .vp-hero-text p { font-size: 17px; }
  .vp-hero-actions .btn { font-size: 20px; }
}

/* — full-width bands — */
.vp-band { padding: 56px 0; }
.vp-band-grey { background: var(--vp-grey-band); }
.vp-band-blue { background: var(--vp-blue-band); }
.vp-band-white { background: #fff; }

/* — inner page title: grey band, centred navy title, short sky bar, centred intro — */
.vp-page-head { background: var(--vp-grey-band); padding: 44px 0 40px; text-align: center; }
.vp-page-head h1 { font-size: 40px; line-height: 1.15; margin: 0 auto; max-width: 900px; }
.vp-page-head h1::after {
  content: ""; display: block; width: 60px; height: 3px; margin: 22px auto 0; background: var(--vp-sky);
}
.vp-page-intro, .vp-page-intro p { color: var(--vp-navy); font-size: 19px; line-height: 1.5; max-width: 860px; margin: 20px auto 0; }
.vp-page-intro p:first-child { margin-top: 0; }
.vp-page-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 16px; font-weight: 500; }
@media (max-width: 767px) { .vp-page-head h1 { font-size: 30px; } .vp-page-intro, .vp-page-intro p { font-size: 17px; } }

/* — section headings used on the bands — */
.vp-section-title { font-size: 40px; line-height: 1.15; margin: 0 0 8px; }
.vp-section-intro { font-size: 18px; margin: 0 0 28px; }
.vp-section-title-caps { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; text-align: center; margin: 0 0 12px; }
@media (max-width: 767px) { .vp-section-title { font-size: 30px; } }

/* — homepage "Our assessments": one card per family — */
/* Each family has its own accent (all pass 4.5:1 on white, so the accent
   can carry text) plus a pale tint of it behind the card's drawing:
     ability #2b6aa6 5.7:1   SJTs #1b7468 5.6:1   personality #7149a0 6.6:1
     360s #a84f1a 5.5:1      games #a8326a 6.3:1  work skills #3b6a2c 6.4:1
   The drawings are aria-hidden decoration made of plain shapes, never test
   items. Light-only, like the rest of the marketing site (CLAUDE.md). */
.vp-fam { --fam: #416180; --fam-soft: #bcd3ea; --fam-tint: #eef6ff; }
.vp-fam--pencil   { --fam: #2b6aa6; --fam-soft: #b9d3ec; --fam-tint: #eaf2fb; }
.vp-fam--signpost { --fam: #1b7468; --fam-soft: #b3dcd5; --fam-tint: #e7f5f2; }
.vp-fam--user     { --fam: #7149a0; --fam-soft: #d5c7ea; --fam-tint: #f3eefa; }
.vp-fam--users    { --fam: #a84f1a; --fam-soft: #efcfb9; --fam-tint: #fcf1ea; }
.vp-fam--puzzle   { --fam: #a8326a; --fam-soft: #ecc3d6; --fam-tint: #fbedf3; }
.vp-fam--grid     { --fam: #3b6a2c; --fam-soft: #c6dcbd; --fam-tint: #eff6ec; }

.vp-fam-section { padding-top: 64px; padding-bottom: 72px; }
.vp-fam-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.vp-eyebrow {
  margin: 0 0 10px; color: var(--vp-slate); font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.vp-fam-head .vp-section-title::after {
  content: ""; display: block; width: 60px; height: 3px; margin: 18px auto 0; background: var(--vp-sky);
}
.vp-fam-intro { margin: 18px 0 0; color: var(--vp-navy); font-size: 18px; line-height: 1.55; }

.vp-fam-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vp-fam {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--vp-card-border); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(29, 48, 66, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.vp-fam::before { /* accent rule along the top, widens on hover */
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; height: 4px; width: 64px; background: var(--fam);
  transition: width 0.35s ease;
}
.vp-fam:hover, .vp-fam:focus-within {
  transform: translateY(-4px); border-color: var(--fam);
  box-shadow: 0 14px 30px rgba(29, 48, 66, 0.14);
}
.vp-fam:hover::before, .vp-fam:focus-within::before { width: 100%; }

.vp-fam-stage { position: relative; background: var(--fam-tint); padding: 18px 18px 8px; }
.vp-fam-art { display: block; width: 100%; height: auto; max-height: 160px; }
/* The count sits above the title on screen but after it in the source, so
   a screen reader hears the family's name first. */
.vp-fam-count {
  order: -1; margin: 0 0 -4px; color: var(--fam); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.vp-fam-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.vp-fam-title { margin: 0; font-size: 21px; line-height: 1.25; }
.vp-fam-link { color: var(--vp-heading); text-decoration: none; }
.vp-fam-link::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card is the link */
.vp-fam-link:hover { color: var(--vp-heading); }
.vp-fam-link:focus-visible { outline: none; }
.vp-fam:focus-within { outline: 3px solid var(--fam); outline-offset: 3px; }
.vp-fam:has(.vp-fam-link:focus:not(:focus-visible)) { outline: none; }
.vp-fam-tagline { margin: 0; color: var(--color-text); font-size: 16px; line-height: 1.5; }
.vp-fam-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.vp-fam-chip {
  padding: 3px 9px; background: var(--vp-grey-band); border-radius: 4px;
  color: #3f4a55; font-size: 13px; line-height: 1.4;
}
.vp-fam-chip--more { background: transparent; border: 1px dashed var(--fam-soft); color: var(--fam); }
.vp-fam-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  color: var(--fam); font-weight: 700;
}
.vp-fam-more svg { transition: transform 0.25s ease; }
.vp-fam:hover .vp-fam-more svg, .vp-fam:focus-within .vp-fam-more svg { transform: translateX(5px); }
.vp-fam-all { margin: 40px 0 0; text-align: center; }
.vp-fam-all .btn { font-size: 18px; padding: 10px 22px; text-decoration: none; }
.vp-fam-all .btn:focus-visible { outline: 3px solid var(--vp-navy); outline-offset: 3px; }

/* drawing fills, from the family's colours */
.vp-fam-art .f-acc { fill: var(--fam); }
.vp-fam-art .f-soft { fill: var(--fam-soft); }
.vp-fam-art .f-white { fill: #fff; }
.vp-fam-art .s-acc { stroke: var(--fam); }
.vp-fam-art .s-soft { stroke: var(--fam-soft); }
.vp-fam-art * { transform-box: fill-box; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease; }

/* hover: each drawing does one small thing */
.vp-art-bars rect { transform-origin: 50% 100%; }
.vp-fam:hover .vp-art-bars rect:nth-child(odd), .vp-fam:focus-within .vp-art-bars rect:nth-child(odd) { transform: scaleY(1.12); }
.vp-art-hand { transform-origin: 50% 100%; }
.vp-fam:hover .vp-art-hand, .vp-fam:focus-within .vp-art-hand { transform: rotate(120deg); }
.vp-fam:hover .vp-art-opt:nth-child(1), .vp-fam:focus-within .vp-art-opt:nth-child(1) { transform: translateX(-6px); }
.vp-fam:hover .vp-art-opt:nth-child(3), .vp-fam:focus-within .vp-art-opt:nth-child(3) { transform: translateX(6px); }
.vp-fam:hover .vp-art-bubble, .vp-fam:focus-within .vp-art-bubble { transform: translateY(-4px); }
.vp-fam:hover .vp-art-knob--1, .vp-fam:focus-within .vp-art-knob--1 { transform: translateX(34px); }
.vp-fam:hover .vp-art-knob--2, .vp-fam:focus-within .vp-art-knob--2 { transform: translateX(-46px); }
.vp-fam:hover .vp-art-knob--3, .vp-fam:focus-within .vp-art-knob--3 { transform: translateX(60px); }
.vp-fam:hover .vp-art-knob--4, .vp-fam:focus-within .vp-art-knob--4 { transform: translateX(-30px); }
.vp-art-orbit { transform-origin: 50% 50%; }
.vp-fam:hover .vp-art-orbit, .vp-fam:focus-within .vp-art-orbit { transform: rotate(30deg); }
.vp-art-lit { transform-origin: 50% 50%; }
.vp-fam:hover .vp-art-lit, .vp-fam:focus-within .vp-art-lit { transform: scale(0.86); }
.vp-fam:hover .vp-art-cell, .vp-fam:focus-within .vp-art-cell { transform: translate(50px, 16px); }
.vp-art-col { transform-origin: 50% 100%; }
.vp-fam:hover .vp-art-col, .vp-fam:focus-within .vp-art-col { transform: scaleY(1.2); }

@media (prefers-reduced-motion: reduce) {
  .vp-fam, .vp-fam::before, .vp-fam-more svg, .vp-fam-art * { transition: none; }
  .vp-fam:hover, .vp-fam:focus-within { transform: none; }
}
@media (max-width: 1000px) { .vp-fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .vp-fam-section { padding-top: 44px; padding-bottom: 52px; }
  .vp-fam-grid { grid-template-columns: 1fr; gap: 18px; }
  .vp-fam-intro { font-size: 17px; }
  .vp-fam-art { max-height: 130px; }
}

/* — test cards on the catalogue (Viewpoint's "Explore the tests") — */
.vp-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.vp-test-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px;
  background: #fff; border: 1px solid var(--vp-card-border); border-radius: 6px;
  color: var(--color-text); text-decoration: none;
}
.vp-test-card:hover { color: var(--color-text); border-color: var(--vp-slate); }
.vp-test-card-title { color: var(--vp-heading); font-size: 21px; font-weight: 600; line-height: 1.25; }
.vp-test-card-meta { color: #55595c; font-size: 14px; }
.vp-test-card-more { margin-top: auto; padding-top: 10px; color: var(--vp-heading); font-weight: 600; }
.vp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.vp-filter .btn { background: #fff; border: 1px solid var(--vp-card-border); color: var(--vp-heading); text-decoration: none; white-space: nowrap; }
.vp-filter .btn:hover { border-color: var(--vp-slate); color: var(--vp-heading); }
.vp-filter .btn[aria-current="page"] { background: var(--vp-slate); border-color: var(--vp-slate); color: #fff; }

/* — tables: slate header row, grey zebra rows (Viewpoint's pricing tables) — */
.vp-table { width: 100%; border-collapse: collapse; background: #fff; font-variant-numeric: tabular-nums; }
.vp-table thead th { background: var(--vp-slate); color: #fff; font-weight: 700; padding: 12px 14px; text-align: left; }
.vp-table td { padding: 11px 14px; border: 0; }
.vp-table tbody tr:nth-child(odd) { background: var(--vp-grey-band); }
.vp-table .num { text-align: right; }

/* — bottom call to action: "Don't see what you are looking for?" — */
.vp-cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; padding: 56px 0; text-align: center; }
.vp-cta-strip p { margin: 0; font-size: 22px; color: var(--vp-navy); }
.vp-cta-strip .btn { font-size: 18px; padding: 8px 16px; text-decoration: none; }

/* — footer: navy band, everything centred — */
.site-footer { background: var(--vp-navy); color: #fff; margin-top: 0; }
.site-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 15px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.site-footer .site-logo { color: #fff; font-size: 24px; }
.site-footer .site-logo svg { width: 34px; height: 29px; }
.site-footer .site-logo-accent { color: var(--vp-sky); }
.site-footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; }
.site-footer-links a, .site-footer .nav a { color: #fff; text-decoration: none; }
.site-footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-footer-legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer-copy { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }

/* Form labels: the design system mixes --color-text at 70%, which can drop
   under 4.5:1 on white. */
label, .form-label, .field > label { color: #55595c; }

/* — cards and framed boxes: Viewpoint's plain white cards — */
/* The Industry design system frames boxes with "blueprint" registration
   marks at each corner. Viewpoint has none: its cards are white, with a
   1px #dce3ea border and rounded corners. The corner marks are aria-hidden
   decoration, so hiding them changes no content. */
.blueprint > .corner { display: none; }
.blueprint, .card, .dialog { border-color: var(--vp-card-border); border-radius: 6px; }
.card, .dialog { background: #fff; }
.blueprint.halftone, .blueprint.plate, .blueprint.duotone { overflow: hidden; }
.card-title { color: var(--vp-heading); font-weight: 700; }
a.card:hover, a.blueprint:hover { border-color: var(--vp-slate); background: var(--vp-blue-band); }
.input, .form-control, .form-select { border-radius: 4px; }
.tag, .seg { border-radius: 4px; }

/* Sideways-scrolling table wrappers are keyboard-focusable (axe
   scrollable-region-focusable); give them the same visible focus ring. */
[role="region"][tabindex="0"]:focus-visible { outline: 2px solid var(--vp-slate); outline-offset: 2px; }

/* Links inside form hints (e.g. "Forgot your password?" under the password
   field) sit on a small line; give them a 24px-tall target (WCAG 2.5.8). */
[id^="hint_id_"] a { display: inline-block; min-height: 24px; line-height: 24px; }

/* — question preview at the top of each test card — */
/* A miniature of the test's first practice question, drawn at 40% size:
   the inner box is laid out 2.5 times as wide and scaled down to match. Item
   images keep their own pixels and colours (CLAUDE.md: the stimulus is
   never re-rendered), on a white mat. */
.vp-test-card { padding: 0; gap: 0; overflow: hidden; }
.vp-test-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.vp-test-card-preview {
  position: relative; height: 170px; overflow: hidden; flex: none;
  background: #fff; border-bottom: 1px solid var(--vp-card-border);
}
.vp-test-card-preview::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.vp-qp {
  width: 250%; transform: scale(0.4); transform-origin: 0 0; padding: 32px 44px;
  font-size: 15px; line-height: 1.45; color: var(--color-text); pointer-events: none;
}
.vp-qp p { margin: 0 0 8px; }
.vp-qp img { max-width: 100%; height: auto; background: #fff; }
.vp-qp table { border-collapse: collapse; font-size: 14px; }
.vp-qp td, .vp-qp th { border: 1px solid var(--vp-card-border); padding: 3px 6px; }
.vp-qp-stem { padding: 12px 14px; margin: 0 0 12px; background: var(--vp-grey-band); border-radius: 6px; }
.vp-qp-stem > :last-child { margin-bottom: 0; }
.vp-qp-question { font-weight: 600; color: var(--vp-heading); margin: 0 0 10px; }
.vp-qp-options { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.vp-qp-options li { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--vp-card-border); border-radius: 6px; background: #fff; }
.vp-qp-options li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid #8a96a3; border-radius: 50%; flex: none; }
.vp-qp-options.is-pictures li { flex-direction: column; padding: 6px; }
.vp-qp-options.is-pictures li::before { content: none; }
.vp-qp-options.is-pictures img { width: 120px; }

/* — a test's own page: a shorter hero with a link back to its family — */
.vp-hero-compact { padding: 40px 0 56px; }
.vp-hero-compact h1 { font-size: 52px; }
.vp-hero-back { display: inline-block; margin: 0 0 18px; padding: 2px 0; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; }
.vp-hero-back:hover { color: #fff; text-decoration: underline; }
@media (max-width: 767px) { .vp-hero-compact h1 { font-size: 36px; } }

/* Dark grey band (#4c4c4c, Viewpoint's pricing calculator): white text
   8.8:1. Cards inside stay white with the normal text colours. */
.vp-band-dark { background: #4c4c4c; color: #fff; }
.vp-band-dark > section > h2, .vp-band-dark > section > p { color: #fff; }
.vp-band-dark .card, .vp-band-dark .blueprint { color: var(--color-text); }

/* A question with no passage or figure (e.g. Numerical Aptitude) would be
   a thin line at 40%; draw it at 60% instead. */
.vp-qp--short { width: 166.667%; transform: scale(0.6); }
/* Previews that run past the box fade out over the last lines rather than
   stopping mid-line. */
.vp-test-card-preview::after { height: 56px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); }

/* Cards whose test has no practice question: a light-blue panel the same
   size as a preview, with the family name and a faint sketch of a
   question (three lines of text, three answer pills). */
.vp-test-card-preview--blank {
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 26px;
  background: var(--vp-blue-band);
}
.vp-test-card-preview--blank::after { content: none; }
.vp-qp-family { color: var(--vp-navy); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.vp-qp-sketch { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-qp-sketch i { display: block; flex-basis: 100%; height: 7px; border-radius: 4px; background: #c9d9ea; }
.vp-qp-sketch i:nth-child(2) { flex-basis: 86%; }
.vp-qp-sketch i:nth-child(3) { flex-basis: 64%; margin: 0 calc(36% - 8px) 6px 0; }
.vp-qp-sketch b { display: block; width: 26%; height: 16px; border: 1px solid #c9d9ea; border-radius: 4px; background: #fff; }

/* — Training page (/training/) — */
/* Two EFPA offers side by side, then a grid of product courses. Offer cards
   are white with Viewpoint's card border; the all-three offer gets a slate
   top rule and a light-blue ground (#2c455d on #eef6ff 9.0:1). Prices are
   large navy figures. */
.vp-train-offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vp-train-offer {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 30px 30px;
  background: #fff; border: 1px solid var(--vp-card-border); border-top: 4px solid var(--vp-card-border); border-radius: 6px;
}
.vp-train-offer--all { background: var(--vp-blue-band); border-top-color: var(--vp-slate); }
.vp-train-offer h3, .vp-train-course h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.vp-train-offer p, .vp-train-course p { margin: 0; }
.vp-train-offer .btn { align-self: flex-start; margin-top: auto; padding: 9px 18px; font-size: 16px; text-decoration: none; }
.vp-train-offer .btn-secondary { background: #fff; color: var(--vp-heading); border-color: var(--vp-slate); }
.vp-train-kicker { color: var(--vp-slate); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.vp-train-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--vp-navy); margin: 4px 0 2px !important; }
.vp-train-amount { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vp-train-per { font-size: 17px; font-weight: 500; }
.vp-train-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 14px; padding: 0; }
.vp-train-tags li { padding: 4px 10px; border: 1px solid var(--vp-card-border); border-radius: 4px; background: #fff; color: var(--vp-navy); font-size: 14px; font-weight: 500; }
.vp-train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.vp-train-course {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px;
  background: #fff; border: 1px solid var(--vp-card-border); border-radius: 6px;
}
.vp-train-course h3 { font-size: 21px; }
.vp-train-list { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.vp-train-list li { position: relative; padding-left: 24px; }
.vp-train-list li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px;
  border-left: 2px solid var(--vp-slate); border-bottom: 2px solid var(--vp-slate); transform: rotate(-45deg);
}
.vp-train-more { margin-top: auto; padding: 4px 0; color: var(--vp-heading); font-weight: 600; text-decoration: none; }
.vp-train-more:hover { color: var(--vp-heading); text-decoration: underline; }
#efpa, #product-training { scroll-margin-top: 16px; }
@media (max-width: 767px) {
  .vp-train-offers { grid-template-columns: 1fr; }
  .vp-train-offer { padding: 22px 20px 24px; }
  .vp-train-amount { font-size: 38px; }
  .vp-train-grid { grid-template-columns: 1fr; }
}
/* EFPA Level 1 outline: the six modules as numbered tiles above the offers.
   Numbers are white on #416180 (6.5:1); they are aria-hidden, as the <ol start="0"> already gives screen readers the same numbering. */
.vp-train-course-outline { margin: 0 0 28px; padding: 22px 24px; background: var(--vp-grey-band); border-radius: 6px; }
.vp-train-course-outline h3 { margin: 0 0 6px; font-size: 21px; }
.vp-train-course-outline p { margin: 0 0 16px; }
.vp-train-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.vp-train-modules li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--vp-card-border); border-radius: 6px; color: var(--vp-navy); font-weight: 500; }
.vp-train-modules span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--vp-slate); color: #fff; font-size: 14px; font-weight: 700; }
