/* =====================================================================
   QA4Exam site theme (qx)
   Editorial layout system: display serif headings, crisp sans text,
   mono metadata. Colours are the existing brand values only.
   Everything is scoped under body.qx so the legacy style.css rules on
   plain tags (p, a, ul, footer...) cannot leak into the new layout.
   ===================================================================== */

.qx {
  --ink: #111111;
  --ink-2: #212121;
  --muted: #505050;
  --paper: #ffffff;
  --linen: #f4f8fc;
  --mist: #eaf1f8;
  --line: #dfe7f0;
  --blue: #0873c3;
  --blue-hi: #0095eb;
  --amber: #fda00a;
  --amber-hot: #e4600f;
  --ok: #1f7a3d;
  --err: #b42318;

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-text: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gut: 16px;
  --sec: 56px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-push: cubic-bezier(.65, .05, .36, 1);

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { .qx { --gut: 32px; --sec: 56px; } }
@media (min-width: 1200px) { .qx { --sec: 72px; } }

.qx *, .qx *::before, .qx *::after { box-sizing: border-box; }
.qx ::selection { background: var(--ink); color: var(--amber); }
.qx :focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

/* Neutralise legacy shell rules */
.qx .wrapper { width: 100%; overflow: visible; }
.qx .sec-spacer { float: none; width: 100%; padding: 0; }
.qx .loadingimg { z-index: 99999; }

/* Base typography inside every new block. :where() keeps these resets at
   tag-level weight so component classes always win, while still loading
   after style.css so they beat its plain tag rules. */
:where(.qx-scope) :is(p, li, dd, dt, label, td, th) { font-family: var(--f-text); }
:where(.qx-scope) p { margin: 0 0 16px; color: inherit; font-size: inherit; line-height: inherit; float: none; }
:where(.qx-scope) p:last-child { margin-bottom: 0; }
:where(.qx-scope) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.qx-scope) :is(b, strong) { font-weight: 600; display: inline; float: none; color: inherit; }
:where(.qx-scope) a { color: inherit; text-decoration: none; }
:where(.qx-scope) :is(h1, h2, h3, h4, h5, h6) { font-family: var(--f-display); font-weight: 500; margin: 0; padding: 0; float: none; color: inherit; text-transform: none; border: 0; background: none; line-height: 1.2; }
:where(.qx-scope) img { max-width: 100%; height: auto; }
.qx-index p, .qx-ledger p, .qx-promise p, .qx-panel p { margin: 0; }

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */
.qx-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.qx-sec { padding: var(--sec) 0; position: relative; }
.qx-sec--tight { padding: calc(var(--sec) * .6) 0; }
.qx-sec--paper { background: var(--paper); color: var(--ink); }
.qx-sec--linen { background: var(--linen); color: var(--ink); }
.qx-sec--mist { background: var(--mist); color: var(--ink); }
.qx-sec--ink { background: var(--ink); color: #fff; }
.qx-sec--blue { background: var(--blue); color: #fff; }

.qx-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) {
  .qx-g { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .qx-c-3 { --span: 3; } .qx-c-4 { --span: 4; } .qx-c-5 { --span: 5; } .qx-c-6 { --span: 6; }
  .qx-c-7 { --span: 7; } .qx-c-8 { --span: 8; } .qx-c-9 { --span: 9; } .qx-c-12 { --span: 12; }
  [class*="qx-c-"] { grid-column: auto / span var(--span, 12); }
  /* Offset columns run to the last track so start + span never spills past column 12 */
  .qx-s-2 { grid-column: 2 / -1; } .qx-s-4 { grid-column: 4 / -1; } .qx-s-5 { grid-column: 5 / -1; }
  .qx-s-6 { grid-column: 6 / -1; } .qx-s-8 { grid-column: 8 / -1; } .qx-s-9 { grid-column: 9 / -1; }
  .qx-sticky { position: sticky; top: 112px; align-self: start; }
}

/* ---------------------------------------------------------------------
   Type scale (4 sizes do the work: display, title, text, meta)
   --------------------------------------------------------------------- */
.qx-display, .qx-h1, .qx-h2, .qx-h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: inherit;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.qx-display { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.035em; }
.qx-h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.qx-h2 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; }
.qx-h3 { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.2; letter-spacing: -0.015em; }
.qx-lede { font-size: clamp(16px, 1.1vw, 17px); line-height: 1.55; max-width: 62ch; color: inherit; }
.qx-lede strong { font-weight: 600; }
.qx-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.qx-meta--soft { opacity: .62; }
.qx-mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }
.qx-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: .9;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums tabular-nums;
}
.qx-muted { color: var(--muted); }
.qx-sec--ink .qx-muted, .qx-sec--blue .qx-muted { color: rgba(255,255,255,.72); }

/* Section heading: mono marker on the left, title offset on the grid */
.qx-head { display: grid; gap: 12px; margin-bottom: 28px; align-items: end; }
.qx-head__mark { display: flex; gap: 12px; align-items: baseline; }
.qx-head__mark .qx-meta + .qx-meta::before { content: "/"; margin-right: 12px; opacity: .4; }
.qx-head__side { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
@media (min-width: 960px) {
  .qx-head { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-bottom: 36px; }
  .qx-head__mark { grid-column: 1 / span 3; align-self: start; padding-top: 6px; }
  .qx-head__title { grid-column: 4 / span 6; }
  .qx-head__side { grid-column: 10 / span 3; justify-content: flex-end; }
  .qx-head--wide .qx-head__title { grid-column: 4 / span 9; }
  .qx-head--stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .qx-head--stack > * { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------------------------------------------------------------------
   Links and buttons
   --------------------------------------------------------------------- */
.qx-link, .qx-prose a {
  color: var(--blue);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 1px;
  padding-bottom: 1px;
  transition: background-size .45s var(--ease-out), color .2s;
}
.qx-link:hover, .qx-link:focus-visible, .qx-prose a:hover { background-size: 100% 1px; color: var(--blue); }
.qx-sec--ink .qx-link, .qx-sec--blue .qx-link { color: #fff; }

.qx-btn { --bg: var(--ink); --fg: #fff; }
.qx-btn, .qx .qx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .5s var(--ease-out);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.qx .qx-btn:hover, .qx .qx-btn:focus { color: var(--fg); text-decoration: none; }
.qx-btn:active { transform: translateY(1px) scale(.985); }
.qx-btn--amber { --bg: var(--amber); --fg: var(--ink); }
.qx-btn--amber:hover { --bg: #ffb02e; }
.qx-btn--blue { --bg: var(--blue); --fg: #fff; }
.qx-btn--blue:hover { --bg: #0663a8; }
.qx-btn--paper { --bg: #fff; --fg: var(--ink); }
.qx-btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.qx-btn--ghost:hover { --bg: var(--ink); --fg: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.qx-sec--ink .qx-btn--ghost:hover, .qx-sec--blue .qx-btn--ghost:hover { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }
.qx-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.qx-btn--block { width: 100%; }
.qx-arr { display: inline-block; transition: transform .45s var(--ease-out); }
.qx-btn:hover .qx-arr, a:hover > .qx-arr { transform: translateX(4px); }

/* Typographic roll: JS wraps button text in .qx-roll > span[data-t] */
.qx-roll { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; vertical-align: top; }
.qx-roll > span { display: block; transition: transform .5s var(--ease-io); }
.qx-roll > span::after { content: attr(data-t); display: block; }
.qx-btn:hover .qx-roll > span, .qx-btn:focus-visible .qx-roll > span { transform: translateY(-50%); }

.qx-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.qx-top { background: var(--ink); color: rgba(255,255,255,.78); }
.qx-top .qx-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.qx-top .qx-meta { font-size: 11px; }
.qx-top__acct { display: flex; gap: 20px; }
.qx-top__acct a { color: #fff; }
.qx-top__acct a:hover { color: var(--amber); }

.qx-hdr { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); transition: box-shadow .3s; }
.qx-hdr.is-stuck { box-shadow: 0 1px 0 var(--line); }
.qx-hdr__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.qx-brand { display: flex; align-items: center; gap: 16px; flex: none; margin-right: auto; }
.qx-brand img { display: block; width: 192px; max-width: 46vw; height: auto; }
.qx-brand__tag { color: var(--muted); font-size: 11px; display: none; white-space: nowrap; }
.qx-brand__tag strong { color: var(--ink); font-weight: 500; }
@media (min-width: 1520px) { .qx-brand__tag { display: block; padding-left: 16px; box-shadow: inset 1px 0 0 var(--line); } }

.qx-nav { display: none; }
.qx-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.qx-nav > ul > li { position: relative; }
.qx-nav__a {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none; color: var(--ink);
  font-family: var(--f-text); font-size: 15px; font-weight: 500; cursor: pointer;
}
.qx-nav__a:hover, .qx-nav__a[aria-expanded="true"] { color: var(--blue); }
.qx-nav__a .qx-tick { font-size: 10px; transition: transform .3s var(--ease-out); }
.qx-nav__a[aria-expanded="true"] .qx-tick { transform: rotate(180deg); }
.qx-new { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 2px 6px; }

.qx-mega {
  position: absolute; left: 0; top: calc(100% + 8px); width: min(760px, 80vw);
  background: var(--ink); color: #fff; padding: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .4s var(--ease-out), visibility .25s;
  box-shadow: 0 24px 48px rgba(17,17,17,.24);
}
.qx-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.qx-mega ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; margin: 16px 0 0; padding: 0; list-style: none; }
.qx-mega a { display: block; padding: 6px 0; color: rgba(255,255,255,.86); font-size: 15px; }
.qx-mega a:hover { color: var(--amber); }

.qx-tools { display: flex; align-items: center; gap: 8px; }
.qx-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: var(--linen); color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.qx-icon-btn:hover { background: var(--ink); color: #fff; }
.qx-icon-btn svg { width: 20px; height: 20px; }
.qx-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--amber); color: var(--ink); font: 500 11px/20px var(--f-mono); text-align: center; }
.qx-mail { display: none; text-align: right; line-height: 1.25; margin-right: 8px; }
.qx-mail a { color: var(--ink); font-size: 14px; }
.qx-mail .qx-meta { display: block; color: var(--muted); font-size: 10px; }
@media (min-width: 1280px) { .qx-mail { display: block; } }

.qx-burger { display: inline-flex; }
.qx-burger span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: background-color .2s; }
.qx-burger span::before, .qx-burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.qx-burger span::before { top: -6px; } .qx-burger span::after { top: 6px; }
.qx-burger[aria-expanded="true"] span { background: transparent; }
.qx-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.qx-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 992px) {
  .qx-nav { display: block; }
  .qx-burger { display: none; }
}
@media (max-width: 991px) {
  .qx-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 16px var(--gut) 32px; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .qx-nav.is-open > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .qx-nav.is-open .qx-nav__a { width: 100%; justify-content: space-between; padding: 16px 0; color: #fff; font-size: 18px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.12); }
  .qx-mega { position: static; width: auto; padding: 8px 0 16px; box-shadow: none; display: none; transform: none; }
  .qx-mega.is-open { display: block; }
  .qx-mega ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Search dialog (Bootstrap modal markup kept for the typeahead) */
.qx .search-modal .modal-dialog { max-width: 760px; }
.qx .search-modal .modal-content { border: 0; border-radius: 0; background: var(--ink); padding: 32px; }
.qx-search { display: flex; gap: 0; }
.qx-search input.form-control {
  flex: 1; height: 64px; border: 0; border-radius: 0; background: #fff; color: var(--ink);
  font-family: var(--f-display); font-size: 24px; padding: 0 20px; box-shadow: none;
}
.qx-search button { width: 64px; height: 64px; border: 0; background: var(--amber); color: var(--ink); cursor: pointer; }
.qx-search button svg { width: 22px; height: 22px; }
.qx .search-modal .search_close_btn { position: fixed !important; top: 24px !important; right: 24px !important; margin: 0 !important; width: 48px; height: 48px; background: #fff; opacity: 1; border: 0; color: var(--ink); font-size: 28px; line-height: 48px; text-shadow: none; z-index: 2; }
.qx .search-modal .typeahead.dropdown-menu { border-radius: 0; border: 0; padding: 8px 0; }

/* Coupon bar (colours come from the admin) */
.qx .topDiscountBar { font-family: var(--f-text) !important; font-size: 15px !important; padding: 8px 16px !important; }
.qx .topDiscountBar div { line-height: 28px !important; font-weight: 500; }
.qx .topDiscountBar #coupontimeRem { font-family: var(--f-mono); font-weight: 500 !important; letter-spacing: .02em; }
.qx .topDiscountBar #couponCodeBx { font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; padding: 3px 10px !important; }

/* Breadcrumbs (markup comes from the controllers) */
.qx .breadback, .qx .breadcrumbs, .qx #BreadCrumb { background: transparent !important; border: 0; margin: 0; padding: 0; }
.qx .breadback .container, .qx .breadcrumbs .container, .qx #BreadCrumb .container, .qx-crumbs {
  width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 20px var(--gut) 0;
}
.qx ul.breadcrumb {
  display: flex; flex-wrap: wrap; float: none !important; gap: 4px 0; margin: 0; padding: 0;
  background: none; border-radius: 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.qx ul.breadcrumb li { float: none; color: var(--muted); padding: 0; }
.qx ul.breadcrumb li::before { display: none; }
.qx ul.breadcrumb li:after, .qx .breadback ul li:after { content: "/"; padding: 0 10px; color: #b7c3cf; }
.qx ul.breadcrumb li:last-child:after { content: none; }
.qx ul.breadcrumb li a { color: var(--ink); }
.qx ul.breadcrumb li a:hover { color: var(--blue); }
.qx ul.breadcrumb li.active { color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--f-text); font-size: 13px; }

/* ---------------------------------------------------------------------
   Hero (split 8/4, never centred)
   --------------------------------------------------------------------- */
.qx-hero { padding: 28px 0 40px; }
@media (min-width: 768px) { .qx-hero { padding: 40px 0 56px; } }
.qx-hero__grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .qx-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; }
  .qx-hero__copy { grid-column: 1 / span 8; }
  .qx-hero__aside { grid-column: 9 / span 4; }
  .qx-hero--wide .qx-hero__copy { grid-column: 1 / span 9; }
}
.qx-hero__copy > .qx-meta { display: block; margin-bottom: 12px; color: var(--blue); }
.qx-hero__copy .qx-lede { margin-top: 16px; color: var(--ink-2); }
.qx-hero__copy .qx-actions { margin-top: 24px; }

.qx-panel { background: var(--ink); color: #fff; padding: 24px; }
.qx-panel--blue { background: var(--blue); }
.qx-panel--linen { background: var(--linen); color: var(--ink); }
.qx-panel__title { font-family: var(--f-display); font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; margin: 8px 0 16px; }
.qx-panel .qx-meta { color: var(--amber); }
.qx-panel--linen .qx-meta { color: var(--blue); }
.qx-kv { display: grid; gap: 0; }
.qx-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.qx-panel--linen .qx-kv > div { box-shadow: inset 0 1px 0 var(--line); }
.qx-kv dt, .qx-kv .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; font-weight: 400; margin: 0; }
.qx-kv dd, .qx-kv .v { margin: 0; font-family: var(--f-display); font-size: 18px; letter-spacing: -0.01em; text-align: right; }

/* Hero headline reveal: words rise from a clip mask. Transform only, no layout shift. */
.qx-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.qx-split .w > span { display: inline-block; transform: translateY(102%); animation: qx-rise .95s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@keyframes qx-rise { to { transform: none; } }

/* ---------------------------------------------------------------------
   Editorial index list (replaces card grids)
   --------------------------------------------------------------------- */
.qx-index { counter-reset: qx; }
.qx-index__row {
  counter-increment: qx;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: baseline;
  padding: 16px 0;
  box-shadow: inset 0 -1px 0 var(--line);
  color: var(--ink);
  transition: padding .5s var(--ease-push), background-color .3s;
}
.qx-index__row::before {
  content: counter(qx, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted);
}
.qx-index--plain .qx-index__row::before { content: none; }
.qx-index--plain .qx-index__row { grid-template-columns: minmax(0, 1fr) auto; }
.qx-index__title { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.qx-index__title a { color: var(--ink); }
.qx-index__sub { grid-column: 2 / -1; color: var(--muted); font-size: 15px; line-height: 1.5; }
.qx-index--plain .qx-index__sub { grid-column: 1 / -1; }
.qx-index__aside { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.qx-index__aside b { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.01em; text-transform: none; color: var(--ink); font-weight: 500; }
.qx-index__row:hover { padding-left: 12px; background: var(--linen); }
.qx-sec--linen .qx-index__row:hover { background: #fff; }
.qx-index__row:hover .qx-index__title a { color: var(--blue); }
.qx-index__row a.qx-stretch::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 640px) {
  .qx-index__row { grid-template-columns: 32px minmax(0, 1fr); }
  .qx-index__aside { grid-column: 2; text-align: left; white-space: normal; }
}

/* Two-up compact index (dense lists such as recent exams) */
.qx-ledger { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; }
@media (min-width: 768px) { .qx-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .qx-ledger--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qx-ledger__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--line); transition: padding .45s var(--ease-push); }
.qx-ledger__code { font-family: var(--f-mono); font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.qx-ledger__name { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.45; }
.qx-ledger__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.qx-ledger__item:hover { padding-left: 10px; }
.qx-ledger__item:hover .qx-ledger__code { color: var(--blue); }
.qx-ledger__item a.qx-stretch::after { content: ""; position: absolute; inset: 0; }

/* ---------------------------------------------------------------------
   Facts / stats
   --------------------------------------------------------------------- */
.qx-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 768px) { .qx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.qx-fact { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); }
.qx-fact--wide { grid-column: 1 / -1; }
.qx-fact dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding-top: 4px; margin: 0; }
.qx-fact dd { margin: 0; font-size: 16px; color: var(--ink); }
.qx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qx-tag { display: inline-block; padding: 4px 10px; background: var(--mist); color: var(--ink); font-size: 13px; line-height: 1.5; }

.qx-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.qx-stat { padding: 20px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qx-sec--paper .qx-stat, .qx-sec--linen .qx-stat { box-shadow: inset 0 1px 0 var(--line); }
.qx-stat__label { font-family: var(--f-display); font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.qx-stat__note { font-size: 15px; opacity: .75; max-width: 38ch; }
@media (min-width: 960px) {
  .qx-stats { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .qx-stat { grid-column: span 4; padding: 24px 0 0; }
}

/* Statement band (one line + one action) */
.qx-cta { display: grid; gap: 20px; align-items: center; }
@media (min-width: 960px) { .qx-cta { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; } .qx-cta__copy { grid-column: 1 / span 8; } .qx-cta__act { grid-column: 9 / span 4; justify-self: end; } }
.qx-cta .qx-lede { margin-top: 8px; }

/* ---------------------------------------------------------------------
   CMS / database prose (vendor descriptions, static pages, AI copy)
   --------------------------------------------------------------------- */
.qx-prose { max-width: 74ch; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.qx-prose--full { max-width: none; }
.qx-prose > *:first-child { margin-top: 0 !important; }
.qx-prose p, .qx-prose li, .qx-prose span, .qx-prose div { font-family: var(--f-text) !important; font-size: inherit; line-height: inherit; color: inherit; }
.qx-prose p { margin: 0 0 14px; float: none; text-align: left !important; }
.qx-prose h1, .qx-prose h2, .qx-prose h3, .qx-prose h4, .qx-prose h5, .qx-prose h6 {
  font-family: var(--f-display) !important; font-weight: 500; letter-spacing: -0.02em; color: var(--ink) !important;
  margin: 32px 0 12px; padding: 0; border: 0; background: none; text-transform: none !important; float: none; text-align: left !important;
}
.qx-prose h1, .qx-prose h2 { font-size: clamp(21px, 1.9vw, 26px) !important; line-height: 1.2; }
.qx-prose h3 { font-size: clamp(18px, 1.5vw, 21px) !important; line-height: 1.25; }
.qx-prose h4, .qx-prose h5, .qx-prose h6 { font-size: 17px !important; line-height: 1.3; }
.qx-prose ul, .qx-prose ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.qx-prose ul > li { position: relative; padding-left: 24px; margin: 0 0 8px; list-style: none; float: none; width: auto; }
.qx-prose ul > li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--blue); }
.qx-prose ol { counter-reset: qxo; }
.qx-prose ol > li { counter-increment: qxo; position: relative; padding-left: 36px; margin: 0 0 10px; list-style: none; }
.qx-prose ol > li::before { content: counter(qxo, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--f-mono); font-size: 12px; color: var(--blue); }
.qx-prose b, .qx-prose strong { font-weight: 600; color: var(--ink); display: inline; float: none; }
.qx-prose img { max-width: 100%; height: auto; }
.qx-prose blockquote { margin: 32px 0; padding: 0 0 0 24px; box-shadow: inset 3px 0 0 var(--amber); font-family: var(--f-display); font-size: 22px; line-height: 1.4; }
.qx-prose .container, .qx-prose .container-fluid, .qx-prose .row, .qx-prose [class*="col-"] { width: auto; max-width: none; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; flex: none; float: none; }
/* Bootstrap .row is flex; with flex:none columns each paragraph would size to one long line and run off screen */
.qx-prose .row { display: block; }
.qx-prose, .qx-prose * { overflow-wrap: anywhere; }
.qx-prose table { overflow-wrap: normal; }
.qx-prose .my-5, .qx-prose .mt-5, .qx-prose .mb-5 { margin-top: 0 !important; margin-bottom: 24px !important; }
/* AI copy wraps blocks in Bootstrap cards with coloured headers; flatten them so they sit on the text edge */
.qx-prose .card { border: 0; border-radius: 0; background: none; padding: 0; margin: 0 0 16px; box-shadow: none !important; }
.qx-prose .card-body, .qx-prose .card-header { padding: 0 !important; background: none !important; border: 0; color: inherit !important; }
.qx-prose .bg-primary, .qx-prose .bg-dark, .qx-prose .bg-secondary, .qx-prose .bg-info, .qx-prose .bg-light { background: none !important; color: inherit !important; }
.qx-prose .shadow, .qx-prose .shadow-sm { box-shadow: none !important; }

/* Tables (data tables keep their lines) */
.qx-prose table, .qx-table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; line-height: 1.5; background: #fff;
}
.qx-prose .table-responsive { margin: 16px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.qx-prose .table-responsive table { margin: 0; }
.qx-prose th, .qx-table th, .qx-prose thead td {
  background: var(--ink) !important; color: #fff !important; text-align: left; vertical-align: bottom;
  font-family: var(--f-mono) !important; font-size: 11px !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: 12px 16px !important; border: 0 !important;
}
.qx-prose td, .qx-table td { padding: 10px 16px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; vertical-align: top; color: var(--ink-2); background: transparent !important; }
.qx-prose tbody tr:nth-child(even) td, .qx-table tbody tr:nth-child(even) td { background: var(--linen) !important; }

/* ---------------------------------------------------------------------
   Accordion: split pane with an index numeral that pushes the text over
   --------------------------------------------------------------------- */
.qx-acc { counter-reset: qxa; }
.qx-acc__item {
  counter-increment: qxa;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: grid-template-columns .7s var(--ease-push), background-color .4s;
}
.qx-acc__n {
  grid-row: 1 / span 2;
  margin-top: 20px;
  align-self: start;
  font-family: var(--f-display); font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -0.04em;
  color: var(--muted);
  transform-origin: 0 0;
  transition: transform .7s var(--ease-push), color .4s;
}
.qx-acc__n::before { content: counter(qxa, decimal-leading-zero); }
.qx-acc__q {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  width: 100%; margin: 0; padding: 16px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--f-display); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); font-weight: 500;
}
.qx-acc__q:hover { color: var(--blue); }
.qx-acc__q p, .qx-acc__q span { margin: 0; font: inherit; color: inherit; }
.qx-acc__sign { flex: none; position: relative; width: 14px; height: 14px; margin-top: 8px; }
.qx-acc__sign::before, .qx-acc__sign::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .5s var(--ease-push); }
.qx-acc__sign::after { transform: rotate(90deg); }
.qx-acc__a { display: grid; grid-template-rows: 1fr; }
.qx-acc__a > div { overflow: hidden; min-height: 0; }
.qx-acc__a .qx-prose { padding: 0 0 20px; font-size: 15px; }
.qx-js .qx-acc__a { grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-push); }
.qx-js .qx-acc__a > div { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .6s var(--ease-push); }
.qx-acc__item.is-open { grid-template-columns: 80px minmax(0, 1fr); }
.qx-acc__item.is-open .qx-acc__n { transform: scale(2.4); color: var(--blue); }
.qx-acc__item.is-open .qx-acc__sign::after { transform: rotate(0); }
.qx-acc__item.is-open .qx-acc__a { grid-template-rows: 1fr; }
.qx-acc__item.is-open .qx-acc__a > div { opacity: 1; transform: none; transition-delay: .15s; }

/* ---------------------------------------------------------------------
   Forms (new markup and a skin for legacy Bootstrap forms)
   --------------------------------------------------------------------- */
.qx-scope .form-group { margin-bottom: 20px; }
.qx-scope label, .qx-label { display: block; margin: 0 0 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.qx-scope label span { color: var(--amber-hot); }
.qx-scope .form-control, .qx-scope input[type="text"], .qx-scope input[type="email"], .qx-scope input[type="password"], .qx-scope input[type="search"], .qx-scope input[type="tel"], .qx-scope input[type="number"], .qx-scope textarea, .qx-scope select {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  border: 0; border-radius: 0; background: var(--linen); color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--line);
  font-family: var(--f-text); font-size: 16px; line-height: 1.4;
  transition: box-shadow .3s var(--ease-out), background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.qx-scope textarea, .qx-scope textarea.form-control { height: auto; min-height: 160px; padding: 14px 16px; resize: vertical; }
.qx-scope select, .qx-scope select.form-control {
  padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.qx-scope .form-control:focus, .qx-scope input:focus, .qx-scope textarea:focus, .qx-scope select:focus { outline: 0; background-color: #fff; box-shadow: inset 0 -2px 0 var(--blue), 0 0 0 1px var(--line); }
.qx-scope .form-control::placeholder, .qx-scope input::placeholder, .qx-scope textarea::placeholder { color: #8a96a3; }
.qx-scope .has-error .form-control { box-shadow: inset 0 -2px 0 var(--err); }
.qx-scope .help-block, .qx-scope .errormsg { display: block; margin-top: 6px; font-size: 13px; color: var(--err); }
.qx-scope .help-block:empty, .qx-scope .errormsg:empty { display: none; }
.qx-scope .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 360px) { .qx-scope .g-recaptcha { transform: scale(.88); } }

.qx-alerts:empty { display: none; }
.qx-scope .alert { display: block; margin: 0 0 24px; padding: 16px 20px; border: 0; border-radius: 0; font-size: 15px; float: none; width: 100%; }
.qx-scope .alert-danger { background: #fdecea; color: var(--err); box-shadow: inset 3px 0 0 var(--err); }
.qx-scope .alert-success { background: #e8f5ec; color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.qx-scope #form-messages:empty { display: none; }

/* Auth pages: ink statement column + form column */
.qx-auth { display: grid; min-height: 0; }
@media (min-width: 960px) { .qx-auth { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; } .qx-auth__lead { grid-column: 1 / span 5; } .qx-auth__form { grid-column: 7 / span 6; } }
.qx-auth__lead .qx-meta { display: block; color: var(--blue); margin-bottom: 20px; }
.qx-auth__lead .qx-lede { margin-top: 24px; }
.qx-auth__form { background: var(--linen); padding: 32px var(--gut); margin-top: 40px; }
@media (min-width: 960px) { .qx-auth__form { padding: 48px; margin-top: 0; } }
.qx-auth__foot { margin-top: 24px; font-size: 15px; color: var(--muted); }
.qx-auth__form .qx-btn { margin-top: 8px; }
.qx-auth__form .qx-scope input, .qx-auth__form .form-control { background: #fff; }
.qx-note { margin-top: 32px; padding: 20px 0 0; box-shadow: inset 0 1px 0 var(--line); font-size: 14px; color: var(--muted); line-height: 1.6; }
.qx-note strong { color: var(--ink); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.qx-foot { background: var(--ink); color: rgba(255,255,255,.78); font-size: 15px; }
.qx-foot a { color: #fff; }
.qx-foot__reach { display: grid; gap: 0; padding: 40px 0 32px; }
@media (min-width: 768px) { .qx-foot__reach { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.qx-foot__reach a.qx-foot__big {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.qx-foot__reach .qx-meta { color: var(--amber); }
.qx-foot__big span.t { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.03em; color: #fff; transition: color .3s; }
.qx-foot__big small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.qx-foot__big:hover span.t { color: var(--amber); }
.qx-foot__main { display: grid; gap: 32px; padding: 40px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
@media (min-width: 960px) { .qx-foot__main { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; } .qx-foot__about { grid-column: 1 / span 4; } .qx-foot__recent { grid-column: 6 / span 4; } .qx-foot__map { grid-column: 10 / span 3; } }
.qx-foot__about img { display: block; width: 220px; height: auto; margin-bottom: 24px; }
.qx-foot__about p { margin: 0 0 12px; line-height: 1.6; }
.qx-foot .qx-meta { display: block; margin-bottom: 20px; color: rgba(255,255,255,.5); }
.qx-foot__recent ul, .qx-foot__map ul { list-style: none; margin: 0; padding: 0; }
.qx-foot__recent li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.1); }
.qx-foot__date { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: rgba(255,255,255,.5); }
.qx-foot__date b { display: block; font-family: var(--f-display); font-size: 26px; letter-spacing: -0.02em; color: #fff; font-weight: 500; }
.qx-foot__recent p { margin: 0; }
.qx-foot__recent p a { font-family: var(--f-mono); font-size: 15px; font-weight: 500; }
.qx-foot__recent span { font-size: 13px; color: rgba(255,255,255,.6); }
.qx-foot__map li a { display: inline-block; padding: 6px 0; color: rgba(255,255,255,.86); }
.qx-foot__map li a:hover, .qx-foot__recent a:hover { color: var(--amber); }
.qx-foot__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 32px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.qx-foot__base p { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.qx #scrollUp {
  position: fixed; right: 20px; bottom: 96px; z-index: 999; display: none;
  width: 44px; height: 44px; background: var(--amber); color: var(--ink); cursor: pointer; border-radius: 0;
  text-align: center; line-height: 44px;
}
.qx #scrollUp::before { content: "\2191"; font-family: var(--f-mono); font-size: 18px; }
.qx #scrollUp i { display: none; }

/* Bootstrap modals (login, demo) */
.qx .modal-content { border: 0; border-radius: 0; }
.qx .modal-header { border: 0; padding: 28px 32px 0; align-items: flex-start; }
.qx .modal-title { font-family: var(--f-display); font-size: 28px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.15; }
.qx .modal-body { padding: 24px 32px; }
.qx .modal-footer { border: 0; padding: 0 32px 28px; justify-content: flex-start; gap: 8px; }
.qx .modal .close { font-size: 32px; font-weight: 300; opacity: .6; }
.qx .modal .btn { border-radius: 0; min-height: 48px; padding: 0 22px; font-weight: 500; }
.qx .modal .btn-primary { background: var(--ink); border-color: var(--ink); }
.qx .modal .btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.qx .modal .btn-secondary { background: var(--linen); border-color: var(--linen); color: var(--ink); }
.qx .modal .input-group-text { border-radius: 0; border: 0; background: var(--ink) !important; }
.qx .modal .form-control { border-radius: 0; border: 0; background: var(--linen); height: 52px; }
.qx .modal h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.qx .modal ul li { list-style: none; padding-left: 20px; position: relative; }
.qx .modal ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--blue); }

/* Legacy Bootstrap buttons used on untouched templates */
.qx-skin .btn-primary, .qx-skin .btn-u, .qx-skin .btn-blue-light, .qx-skin .button {
  border-radius: 0; border: 0; background: var(--ink); color: #fff; font-family: var(--f-text); font-weight: 500;
  min-height: 48px; padding: 12px 22px; text-transform: none; letter-spacing: .01em; box-shadow: none;
}
.qx-skin .btn-primary:hover, .qx-skin .btn-u:hover, .qx-skin .button:hover { background: var(--blue); color: #fff; }

/* ---------------------------------------------------------------------
   Motion: reveal on scroll (only once the script has started)
   --------------------------------------------------------------------- */
.qx-io [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); }
.qx-io [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .qx *, .qx *::before, .qx *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .qx-split .w > span { transform: none; }
  .qx-io [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .qx-top, .qx-hdr, .qx-foot, #scrollUp { display: none !important; }
}

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
.qx-mt-1 { margin-top: 8px !important; } .qx-mt-2 { margin-top: 16px !important; } .qx-mt-3 { margin-top: 24px !important; }
.qx-mt-4 { margin-top: 32px !important; } .qx-mt-6 { margin-top: 48px !important; } .qx-mt-8 { margin-top: 64px !important; }
.qx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------
   Home
   --------------------------------------------------------------------- */
.qx-promise { background: var(--ink); color: #fff; display: grid; }
.qx-promise__item { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.qx-promise__item + .qx-promise__item { box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.qx-promise__item:nth-child(2) { background: var(--blue); box-shadow: none; }
.qx-promise .qx-meta { color: var(--amber); margin: 0; }
.qx-promise__item:nth-child(2) .qx-meta { color: #fff; }
.qx-promise .qx-num { margin: 0; }
@media (min-width: 600px) and (max-width: 959px) { .qx-promise { grid-template-columns: 1fr 1fr; } }
.qx-home-vendor .qx-index__title { font-size: clamp(22px, 2.2vw, 32px); }
.qx-home-vendor__latest { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-style: italic; }
.qx-home-vendor__latest .qx-meta { font-style: normal; }

/* ---------------------------------------------------------------------
   All exams directory (vendors listing)
   --------------------------------------------------------------------- */
.qa-avl .qx-hero { padding-bottom: 32px; }
.qa-avl-hide { display: none !important; }
.qa-avl-bar { position: sticky; top: 76px; z-index: 20; background: var(--ink); color: #fff; padding: 20px 0 16px; }
.qa-avl-tools { display: grid; gap: 12px; }
@media (min-width: 768px) { .qa-avl-tools { grid-template-columns: minmax(0, 1fr) 280px; } }
.qa-avl-search { position: relative; }
.qa-avl-search-icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.qx-scope .qa-avl-search input { height: 56px; padding: 0 48px; background: #fff; font-size: 17px; box-shadow: none; }
.qa-avl-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: none; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.qx-scope select.qa-avl-select { height: 56px; background-color: #fff; box-shadow: none; }
.qa-avl-letters { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 14px; }
.qa-avl-letter { min-width: 34px; height: 32px; padding: 0 8px; border: 0; background: transparent; color: rgba(255,255,255,.8); font: 500 13px/32px var(--f-mono); cursor: pointer; transition: background-color .2s, color .2s; }
.qa-avl-letter:hover:not(:disabled) { background: rgba(255,255,255,.12); color: #fff; }
.qa-avl-letter.is-on { background: var(--amber); color: var(--ink); }
.qa-avl-letter:disabled { opacity: .28; cursor: default; }
.qx-scope .qa-avl-count { margin: 12px 0 0; color: rgba(255,255,255,.6); }
@media (max-width: 767px) { .qa-avl-bar { position: static; } .qa-avl-letters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

.qa-avl-body.qx-sec { padding-top: 24px; }
.qa-avl-card { display: grid; gap: 16px; padding: 24px 0; box-shadow: inset 0 -1px 0 var(--line); }
@media (min-width: 960px) {
  .qa-avl-card { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .qa-avl-card-head { grid-column: 1 / span 4; position: sticky; top: 280px; align-self: start; }
  .qa-avl-card-body { grid-column: 5 / span 8; }
}
.qa-avl-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.qa-avl-logo { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--ink); color: var(--amber); font: 500 16px/1 var(--f-mono); letter-spacing: .04em; }
.qa-avl-card-head h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -0.02em; }
.qa-avl-card-head h2 a:hover { color: var(--blue); }
.qa-avl-card-head small { color: var(--muted); }
.qa-avl-viewall { grid-column: 2; justify-self: start; margin-top: 8px; font-size: 15px; }
.qa-avl-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
@media (min-width: 768px) { .qa-avl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa-avl-list li a { display: grid; gap: 2px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line); transition: padding .45s var(--ease-push), background-color .3s; }
.qa-avl-list li a:hover { padding-left: 10px; background: var(--linen); }
.qa-avl-code { font-family: var(--f-mono); font-weight: 500; font-size: 15px; color: var(--ink); }
.qa-avl-list li a:hover .qa-avl-code { color: var(--blue); }
.qa-avl-name { font-size: 14px; color: var(--muted); line-height: 1.45; }
.qa-avl mark { background: var(--amber); color: var(--ink); padding: 0 1px; }
.qa-avl-more { margin-top: 20px; min-height: 44px; padding: 0 18px; border: 0; background: var(--linen); color: var(--ink); font: 500 14px var(--f-text); cursor: pointer; transition: background-color .2s, color .2s; }
.qa-avl-more:hover { background: var(--ink); color: #fff; }
.qa-avl-empty { padding: 64px 0; }
.qa-avl-list li { display: flex; } .qa-avl-list li a { flex: 1; align-content: start; }

/* ---------------------------------------------------------------------
   Vendor page and offer card
   --------------------------------------------------------------------- */
.qx-index__title.qx-mono { font-family: var(--f-mono); font-size: clamp(17px, 1.5vw, 21px); letter-spacing: 0; }
.qx-offer { background: var(--ink); color: #fff; padding: 24px; }
.qx-offer .qx-meta { color: var(--amber); margin-bottom: 12px; }
.qx-offer .qx-h3 { color: #fff; }
.qx-offer__img { display: block; max-width: 160px; margin: 20px 0 8px; }
.qx-scope .qx-offer__price { margin: 8px 0 20px; font-family: var(--f-display); font-size: clamp(44px, 4vw, 60px); line-height: .9; letter-spacing: -0.05em; color: #fff; }
.qx-offer__price sup { font-size: .38em; top: -1.2em; margin-right: 4px; color: var(--amber); }
.qx-offer .qx-kv { margin: 0 0 12px; }
.qx-offer .qx-kv dd { font-size: 18px; }
.qx-scope .qx-offer__note { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 20px; }
.qx-scope .qx-offer label { color: rgba(255,255,255,.7); }
.qx-scope .qx-offer select { background-color: #fff; }

/* ---------------------------------------------------------------------
   Exam pages
   --------------------------------------------------------------------- */
.qx-hero__aside.qx-panel { align-self: end; }
.qx-sec--ink .qx-stat__note { color: rgba(255,255,255,.72); }
.qx-sec--ink .qx-num { color: #fff; }
.qx-stat .qx-num { margin: 0; }
.qx-stat:nth-child(2) .qx-num { color: var(--amber); }
.qx-sec--blue .qx-h2 { color: #fff; }

.qx-stat { align-self: start; align-content: start; }

/* Demo questions */
.qx-qlist { display: grid; gap: 12px; }
.qx-q { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; background: #fff; padding: 24px var(--gut); }
@media (min-width: 768px) {
  .qx-q { grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px; }
}
.qx-q__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 3.4vw, 52px); line-height: .9; letter-spacing: -0.05em; color: var(--mist); -webkit-text-stroke: 1px var(--blue); }
.qx-q:hover .qx-q__n { color: var(--blue); transition: color .5s var(--ease-out); }
.qx-q__label { color: var(--blue); margin-bottom: 10px !important; }
.qx-q__text, .qx-q__text p { font-family: var(--f-display) !important; font-size: 17px !important; line-height: 1.55 !important; letter-spacing: -0.01em; color: var(--ink) !important; }
.qx-q__text img, .question-choices-container img, .answer-description img { max-width: 100%; height: auto; }
.qx-q .question-choices-container { margin: 16px 0; }
.qx-q .question-choices-container ul, .qx-q .question-choices-container ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.qx-q .question-choices-container li { position: relative; margin: 0; padding: 10px 14px; background: var(--linen); list-style: none; font-size: 15px; line-height: 1.5; color: var(--ink-2); transition: background-color .3s, box-shadow .3s; }
.qx-q .question-choices-container li b, .qx-q .question-choices-container li strong { font-family: var(--f-mono); font-weight: 500; margin-right: 6px; }
.qx-q .question-choices-container .correct-choice { background: #e8f5ec; box-shadow: inset 3px 0 0 var(--ok); color: var(--ink); }
.qx-q .question-answer { display: none; margin-top: 20px; padding: 24px; border: 0; border-radius: 0; background: var(--ink); color: #fff; }
.qx-q .correct-answer-box { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.qx-q .correct-answer-box strong { color: rgba(255,255,255,.7); font-weight: 500; }
.qx-q .correct-answer { font-size: 18px; color: var(--amber); margin-left: 6px; }
.qx-q .answer-description, .qx-q .answer-description p { color: rgba(255,255,255,.88) !important; font-size: 16px; }
.qx-q .answer-description:empty { display: none; }
.qx-q .btn.d-none { display: none !important; }
.qx-sec--ink .qx-lede { margin-top: 16px; }

/* Pricing: featured bundle as a tall ink field, single formats stacked beside it */
.qx-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 960px) {
  .qx-plans { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 32px; }
  .qx-plan--bundle { grid-column: 1 / span 6; grid-row: 1 / span 2; }
  .qx-plan--pdf { grid-column: 7 / span 6; grid-row: 1; }
  .qx-plan--online { grid-column: 7 / span 6; grid-row: 2; }
}
.qx-plan { display: grid; gap: 24px; align-content: start; background: #fff; padding: 32px var(--gut); }
@media (min-width: 768px) { .qx-plan { padding: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; } .qx-plan__top, .qx-plan__act { grid-column: 1 / -1; } }
.qx-plan__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.qx-plan__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.qx-plan__name span { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.qx-scope .qx-plan__price { margin: 0; font-family: var(--f-display); font-size: clamp(40px, 3.6vw, 52px); line-height: .9; letter-spacing: -0.05em; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.qx-plan__price .cur { font-size: .4em; vertical-align: top; margin-right: 4px; color: var(--blue); letter-spacing: 0; }
.qx-plan__price sup { font-size: .32em; top: -1.4em; letter-spacing: 0; color: var(--muted); }
.qx-plan__list { display: grid; gap: 0; }
.qx-plan__list li { position: relative; padding: 10px 0 10px 24px; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--line); }
.qx-plan__list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 2px; background: var(--blue); }
.qx-plan__list img { display: block; margin-top: 8px; width: auto; max-width: 198px; height: auto; }
.qx-plan__act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qx-plan__act form, .qx-plan__act .b_pdfDemo { float: none; width: auto; margin: 0; }
.qx-plan--bundle { background: var(--ink); color: #fff; }
.qx-plan--bundle .qx-plan__name, .qx-scope .qx-plan--bundle .qx-plan__price { color: #fff; }
.qx-plan--bundle .qx-plan__price .cur { color: var(--amber); }
.qx-plan--bundle .qx-plan__price sup { color: rgba(255,255,255,.6); }
.qx-plan--bundle .qx-plan__list li { color: rgba(255,255,255,.88); box-shadow: inset 0 -1px 0 rgba(255,255,255,.14); }
.qx-plan--bundle .qx-plan__list li::before { background: var(--amber); }
@media (min-width: 960px) {
  .qx-plan--bundle { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .qx-scope .qx-plan--bundle .qx-plan__price { font-size: clamp(56px, 5vw, 76px); }
  .qx-plan--bundle .qx-plan__top { flex-direction: column; gap: 20px; }
}
.qx-scope, .qx-scope .product_info { text-align: left; }
@media (min-width: 768px) { .qx-plan--pdf .qx-plan__list, .qx-plan--online .qx-plan__list { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }

/* Certification page */
@media (min-width: 960px) { .qx-s-10 { grid-column: 10 / -1; } .qx-s-3 { grid-column: 3 / -1; } }
.qx-cert-pack .qx-h1 span { color: var(--amber); }
.qx-cert-pack__list li { position: relative; padding: 12px 0 12px 28px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.14); color: rgba(255,255,255,.88); }
.qx-cert-pack__list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 2px; background: var(--amber); }
.qx-cert-pack__list .blckColor { color: #fff; font-weight: 600; }
.qx-cert-pack__badge { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.qx-cert-pack__badge img { height: 40px; width: auto; }
.qx-cert-pack__badge .qx-meta { color: rgba(255,255,255,.6); }
.qx-cert-pack__card { background: #fff; color: var(--ink); padding: 32px; }
.qx-cert-pack__img { display: block; max-width: 140px; margin-bottom: 16px; }
.qx-cert-pack__card .qx-kv > div { box-shadow: inset 0 1px 0 var(--line); }
.qx-cert-pack__price { margin: 20px 0; font-family: var(--f-display); }
.qx-cert-pack__price .old-price { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.qx-cert-pack__price .you-saved, .qx-cert-pack__price .bundle-price { font-size: clamp(32px, 3vw, 42px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.qx-cert-logo { background: var(--linen); padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.qx-cert-logo img { max-width: 100%; max-height: 140px; width: auto; }
.qx-cert-more { display: inline-flex; gap: 6px; margin-left: 12px; font-size: 14px; color: var(--blue); }
.qx-index--muted .qx-index__title a { color: var(--muted); }
.qx-index__title.qx-mono { margin: 0; }
.qx-side__block { padding: 24px 0; box-shadow: inset 0 1px 0 var(--ink); }
.qx-side__block + .qx-side__block { margin-top: 16px; }
.qx-side__block h6 { margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.qx-side__block li { list-style: none; }
.qx-side__block li a { display: block; padding: 7px 0; font-size: 15px; color: var(--ink-2); transition: color .2s, padding .4s var(--ease-push); }
.qx-side__block li a:hover { color: var(--blue); padding-left: 6px; }
.qx-ledger--ink .qx-ledger__item { box-shadow: inset 0 -1px 0 rgba(255,255,255,.14); }
.qx-ledger--ink .qx-ledger__code { color: #fff; }
.qx-ledger--ink .qx-ledger__item:hover .qx-ledger__code { color: var(--amber); }
.qx-ledger--ink .qx-ledger__meta { color: rgba(255,255,255,.5); }
.qx-side { border: 0 !important; }
.qx-page .qx-hero { padding-bottom: 0; } .qx-page__body.qx-sec { padding-top: 32px; box-shadow: inset 0 1px 0 var(--line); margin-top: 32px; }
.qx-faq h1 span, .qx-faq__group .qx-h2 span, .qx-scope h1.qx-display > span:first-child:not(.w) { color: var(--blue); }
.qx-scope .qx-404__num { font-size: clamp(96px, 12vw, 160px); color: var(--blue); margin: 0; } .qx-404__img img { max-width: 260px; height: auto; }
.qx-404__icon { max-width: 420px; width: 100%; height: auto; } .qx-scope .qx-search input.form-control { height: 64px; box-shadow: inset 0 -2px 0 var(--ink); background: var(--linen); }

/* ---------------------------------------------------------------------
   Skin for templates whose markup is kept as is (cart, checkout,
   search results, customer area, reseller, payments, demos).
   Only visual properties: type, colour, flat surfaces, controls.
   --------------------------------------------------------------------- */
.qx-skin > .container, .qx-skin > section > .container, .qx-skin > div > .container:not(.breadback .container), .qx-skin .mainwhitebg > .container {
  max-width: calc(var(--wrap) + var(--gut) * 2); padding-left: var(--gut); padding-right: var(--gut);
}
.qx-skin > section, .qx-skin > .container, .qx-skin > .mainwhitebg, .qx-skin > .vendor-page, .qx-skin > .searchpagenewstyling { padding-top: 32px; padding-bottom: 48px; }
.qx-skin .container :is(h1, h2, h3, h4, h5) {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15;
}
.qx-skin .container h1 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 20px; }
.qx-skin .container h2 { font-size: clamp(22px, 2vw, 28px); }
.qx-skin .container h3 { font-size: clamp(18px, 1.5vw, 21px); }
.qx-skin .container h4, .qx-skin .container h5 { font-size: 19px; }
.qx-skin .container p, .qx-skin .container li, .qx-skin .container td, .qx-skin .container label, .qx-skin .container span { font-family: var(--f-text); }
.qx-skin .container a:not(.btn):not(.button) { color: var(--blue); }

.qx-skin .form-control, .qx-skin .search_input, .qx-skin .full-name-txtbx {
  height: 52px; border: 0; border-radius: 0; background-color: var(--linen); color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--line); font-family: var(--f-text); font-size: 16px;
}
.qx-skin textarea.form-control { height: auto; }
.qx-skin .form-control:focus { background-color: #fff; box-shadow: inset 0 -2px 0 var(--blue), 0 0 0 1px var(--line); }
.qx-skin label { font-family: var(--f-mono) !important; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.qx-skin .checkbox-inline, .qx-skin .labeldesign { font-family: var(--f-text) !important; font-size: 15px; letter-spacing: 0; text-transform: none; }

.qx-skin .btn, .qx-skin .button, .qx-skin .sign-in-btn, .qx-skin .btn-u {
  border: 0; border-radius: 0; min-height: 48px; padding: 12px 22px;
  font-family: var(--f-text); font-weight: 500; letter-spacing: .01em; text-transform: none; box-shadow: none;
  transition: background-color .25s, color .25s, transform .3s var(--ease-out);
}
.qx-skin .btn:active { transform: translateY(1px); }
.qx-skin .btn-primary, .qx-skin .btn-blue-light, .qx-skin .sign-in-btn, .qx-skin .btn-u, .qx-skin .button { background: var(--ink); color: #fff; }
.qx-skin .btn-primary:hover, .qx-skin .btn-blue-light:hover, .qx-skin .sign-in-btn:hover, .qx-skin .btn-u:hover, .qx-skin .button:hover { background: var(--blue); color: #fff; }
.qx-skin .btn-success, .qx-skin .btn-warning, .qx-skin #checkoutBtn, .qx-skin .checkout-btn { background: var(--amber); color: var(--ink); }
.qx-skin .btn-default, .qx-skin .btn-secondary, .qx-skin .btn-light { background: var(--linen); color: var(--ink); }

.qx-skin .table, .qx-skin table.cart, .qx-skin .cart-table { border-collapse: collapse; background: #fff; }
.qx-skin .table thead th, .qx-skin .table > tbody > tr > th, .qx-skin table th {
  background: var(--ink); color: #fff; border: 0 !important; padding: 14px 16px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.qx-skin .table td, .qx-skin table td { border-top: 0 !important; border-bottom: 1px solid var(--line); padding: 14px 16px; vertical-align: middle; }
.qx-skin .table-bordered, .qx-skin .table-bordered td { border-left: 0; border-right: 0; }

.qx-skin .alert { border: 0; border-radius: 0; }
.qx-skin .alert-danger { background: #fdecea; color: var(--err); box-shadow: inset 3px 0 0 var(--err); }
.qx-skin .alert-success { background: #e8f5ec; color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.qx-skin .alert-info, .qx-skin .alert-warning { background: var(--linen); color: var(--ink); box-shadow: inset 3px 0 0 var(--amber); }

.qx-skin .card, .qx-skin .panel, .qx-skin .box-shadow, .qx-skin .well { border: 0; border-radius: 0; box-shadow: none !important; background: var(--linen); }
.qx-skin .card-header, .qx-skin .panel-heading { border: 0; border-radius: 0; background: var(--ink); color: #fff; }
.qx-skin .rounded { border-radius: 0 !important; }

/* Search results */
.qx-skin .each_exam, .qx-skin .inner-each { border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 var(--line); background: transparent; }
.qx-skin .each_exam:hover { background: var(--linen); }

/* Customer area */
.qx-skin .dash-tab-singl, .qx-skin .rib-tab { border: 0; border-radius: 0; box-shadow: none; background: var(--linen); transition: background-color .25s, color .25s; }
.qx-skin .dash-tab-singl:hover, .qx-skin .rib-tab:hover { background: var(--ink); color: #fff; }
.qx-skin .dash-tab-singl:hover a, .qx-skin .rib-tab:hover a { color: #fff; }
.qx-skin .selected, .qx-skin .nav-tabs .active > a, .qx-skin .nav-tabs .nav-link.active { background: var(--ink) !important; color: #fff !important; border-radius: 0; }
.qx-skin .nav-tabs { border-bottom: 2px solid var(--ink); }
.qx-skin .nav-tabs .nav-link, .qx-skin .nav-tabs > li > a { border: 0; border-radius: 0; font-family: var(--f-text); font-weight: 500; color: var(--ink); }
.qx-skin .pagination > li > a, .qx-skin .page-link { border: 0; border-radius: 0 !important; color: var(--ink); background: var(--linen); margin: 0 2px; font-family: var(--f-mono); }
.qx-skin .pagination .active > a, .qx-skin .page-item.active .page-link { background: var(--ink); color: #fff; }

/* Payment result */
.qx-skin .total-row, .qx-skin .subtotal-row { font-family: var(--f-display); }
.qx-skin .old-price { color: var(--muted); }
.qx .qx-skin ul.breadcrumb li a { color: var(--ink); }
.qx .qx-skin ul.breadcrumb li a { color: var(--ink) !important; }
.qx .qx-auth__form .form-control, .qx .qx-auth__form input[type="text"], .qx .qx-auth__form input[type="password"], .qx .qx-auth__form textarea { background-color: #fff; }
.qx .qx-auth__form form { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; min-height: 0; }
