@charset "UTF-8";
/* ==========================================================================
   Preptia — site stylesheet
   Theme: Option B — Crimson & Charcoal
   --------------------------------------------------------------------------
   One stylesheet for the whole public site. Bootstrap 5 is still loaded first
   for its grid, tables and modals; everything visual is defined here.

   Font: Ubuntu (400 / 500 / 700), loaded from Google Fonts in each page head.

   Contents
     1. Design tokens
     2. Base and resets
     3. Bootstrap theme bridge (legacy markup)
     4. Site header
     5. Site footer
     6. Shared UI: buttons, icons, form fields, chips
     7. Page modules (home, content pages, auth, contact, buy, cart,
        practice, simulator, results, account, legacy)
     8. Data-driven sizes (bar widths, marker positions)
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Option B — "Crimson & Charcoal": white and cool greys, charcoal bands, crimson calls to action */
  --bg: #f3f4f4;
  --surface: #ffffff;
  --surface-2: #e9ebec;
  --ink: #1f2528;
  --text: #353e43;
  --muted: #626b70;
  --line: #e1e4e5;
  --line-2: #c8cdcf;
  --line-3: #9ba0a2;

  /* Accent: crimson */
  --accent: #c8102e;
  --accent-ink: #9e0c24;
  --accent-soft: #fdf1f2;
  --accent-wash: #fff7f8;
  --accent-line: #f4acb0;

  /* Dark (charcoal) surfaces */
  --night: #2b3236;
  --night-2: #353e43;
  --night-3: #434d53;
  --night-line: rgba(255, 255, 255, .14);
  --on-night: #ffffff;
  --on-night-muted: #b6bdc1;
  --sky: #ff8a99;

  /* Scores and correct answers: green, so red only ever means "wrong" or "act" */
  --score: #1d7f52;
  --score-ink: #145d3b;
  --score-soft: #e8f5ee;
  --score-line: #b5ddc8;

  /* Status */
  --ok: #1d7f52;
  --ok-soft: #e8f5ee;
  --ok-line: #b5ddc8;
  --bad: #b3261e;
  --bad-soft: #fcefee;
  --bad-line: #f1c2be;
  --warn: #8f5a00;
  --warn-mark: #f0a92e;
  --warn-soft: #fdf5e3;
  --warn-line: #efd49c;
  --blank: #a8aeb1;

  --ring: 0 0 0 3px rgba(200, 16, 46, .22);
  --shadow-pop: 0 18px 44px rgba(31, 37, 40, .2);
  --shadow-soft: 0 1px 2px rgba(31, 37, 40, .05), 0 8px 24px rgba(31, 37, 40, .08);
  --bs-link-color-rgb: 158, 12, 36;
  --bs-link-hover-color-rgb: 31, 37, 40;
  --bs-primary-rgb: 200, 16, 46;


  /* Shape */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --header-h: 64px;

  /* Bootstrap variables, so leftover Bootstrap components match */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-emphasis-color: var(--ink);
  --bs-heading-color: var(--ink);
  --bs-link-color: var(--accent-ink);
  --bs-link-hover-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-primary: var(--accent);
  --bs-success-rgb: 19, 122, 63;
  --bs-danger-rgb: 180, 50, 31;
  --bs-light-rgb: 246, 246, 243;
  --bs-border-radius: var(--r);
  --bs-border-radius-sm: var(--r-sm);
  --bs-border-radius-lg: var(--r-lg);
}


/* ==========================================================================
   2. Base and resets
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { list-style: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }  /* undo Bootstrap list spacing; prose lists set their own */
a { color: var(--accent-ink); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
b, strong { font-weight: 500; }
input, select, textarea, button { font: inherit; color: inherit; }
input:focus, button:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }

/* Hidden SVG icon sprite at the top of some pages */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Content width */
.container { padding-left: 20px; padding-right: 20px; }
@media (min-width: 1200px) { .container { max-width: 1160px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   3. Bootstrap theme bridge (only legacy pages still use these classes)
   ========================================================================== */
.btn { border-radius: var(--r); font-weight: 500; }
.btn-primary, .btn-success, .btn-info, .btn-dark {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--accent-ink); --bs-btn-hover-border-color: var(--accent-ink); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--accent-ink); --bs-btn-active-border-color: var(--accent-ink);
}
.btn-secondary, .btn-default {
  --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line-2); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: var(--bg); --bs-btn-hover-border-color: var(--line-3); --bs-btn-hover-color: var(--ink);
}
.btn-danger { --bs-btn-bg: var(--bad); --bs-btn-border-color: var(--bad); --bs-btn-hover-bg: #932716; --bs-btn-hover-border-color: #932716; }
.table { --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--accent-wash); color: var(--text); }
.table-light { --bs-table-bg: var(--bg); --bs-table-color: var(--ink); }
.card { border-color: var(--line); border-radius: var(--r-lg); }
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.badge { border-radius: 999px; font-weight: 500; }
.alert { border-radius: var(--r); }
.alert-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.form-control { border-color: var(--line-2); border-radius: var(--r); }
.form-control:focus { border-color: var(--accent); box-shadow: var(--ring); }
.text-primary { color: var(--accent) !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--bad) !important; }
.bg-danger { background-color: var(--bad) !important; }
.border-primary { border-color: var(--accent) !important; }


/* ==========================================================================
   4. Site header
   include/header.php (visitors), include/user_header.php (signed in),
   cart_header.php. The menu button is wired up in js/site.js.
   ========================================================================== */
.sh {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.sh-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.sh-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.sh-logo:hover { color: var(--ink); }
.sh-logo b { font-weight: 400; color: var(--muted); }
.sh-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r); background: var(--accent); color: #fff; }
.sh-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.sh-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.sh-links { display: flex; align-items: center; gap: 4px; }
.sh-links a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--text); }
.sh-links a:hover { color: var(--ink); background: var(--bg); }
.sh-links a[aria-current="page"] { color: var(--accent-ink); }
.sh-actions { display: flex; align-items: center; gap: 8px; }
.sh-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink); }
.sh-actions a:hover { border-color: var(--ink); color: var(--ink); }
.sh-actions a.is-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.sh-actions a.is-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.sh-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; }

.sh-toggle { display: none; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; }
.sh-toggle span, .sh-toggle span::before, .sh-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.sh-toggle span { position: relative; }
.sh-toggle span::before, .sh-toggle span::after { content: ""; position: absolute; left: 0; }
.sh-toggle span::before { top: -6px; }
.sh-toggle span::after { top: 6px; }
.sh.is-open .sh-toggle span { background: transparent; }
.sh.is-open .sh-toggle span::before { transform: translateY(6px) rotate(45deg); }
.sh.is-open .sh-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .sh-toggle { display: grid; }
  .sh-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 20px 20px; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .sh.is-open .sh-nav { display: flex; }
  .sh-links { flex-direction: column; align-items: stretch; gap: 0; }
  .sh-links li + li { border-top: 1px solid var(--line); }
  .sh-links a { padding: 14px 4px; font-size: 16px; border-radius: 0; }
  .sh-links a:hover { background: none; }
  .sh-actions { flex-direction: column; align-items: stretch; }
  .sh-actions a { justify-content: center; min-height: 46px; }
}


/* ==========================================================================
   5. Site footer (include/footer.php, include/footerclient.php)
   ========================================================================== */
.sf { margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.sf-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.sf-brand p { max-width: 340px; margin-top: 14px; line-height: 1.6; }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sf-cols h2 { margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sf-cols ul { display: grid; gap: 10px; }
.sf-cols a { color: var(--muted); }
.sf-cols a:hover { color: var(--accent-ink); }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.sf-disc { max-width: 720px; }
@media (max-width: 860px) {
  .sf-top { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
}
@media (max-width: 520px) {
  .sf-cols { grid-template-columns: 1fr 1fr; }
  .sf-bottom { flex-direction: column; }
}


/* ==========================================================================
   6. Shared UI
   Each page module keeps its own class prefix (hp-, pg-, qp-, rx-, ...);
   the common look of their buttons and icons is defined once here.
   ========================================================================== */

/* Buttons */
.hp-btn, .pg-btn, .lg-btn, .au-btn, .ce-btn, .bx-btn, .ct-btn, .qp-btn, .rx-btn, .rd-btn, .rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--accent); border-radius: var(--r);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hp-btn:hover, .pg-btn:hover, .lg-btn:hover, .au-btn:hover, .ce-btn:hover, .bx-btn:hover, .ct-btn:hover,
.qp-btn:hover, .rx-btn:hover, .rd-btn:hover, .rs-btn:hover {
  background: var(--accent-ink); border-color: var(--accent-ink); color: #fff;
}
/* Secondary (outline) buttons */
.hp-btn-ghost, .pg-btn-light, .au-btn-light, .ce-btn-outline, .bx-btn-light, .ct-btn-light,
.qp-btn-light, .rx-btn-light, .rd-btn-light, .rs-btn-light {
  background: transparent; border-color: var(--line-2); color: var(--ink);
}
.hp-btn-ghost:hover, .pg-btn-light:hover, .au-btn-light:hover, .ce-btn-outline:hover, .bx-btn-light:hover,
.ct-btn-light:hover, .qp-btn-light:hover, .rx-btn-light:hover, .rd-btn-light:hover, .rs-btn-light:hover {
  background: var(--surface); border-color: var(--ink); color: var(--ink);
}

/* Line icons (SVG, stroke = text colour) */
.hp-icon, .pg-i, .lg-i, .au-i, .ce-icon, .ct-i, .qp-i, .rx-i, .rd-i, .rs-i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Breadcrumbs */
.pg-crumb, .bx-crumb, .ce-crumb, .qp-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.pg-crumb a, .bx-crumb a, .ce-crumb a, .qp-crumb a { color: var(--muted); }
.pg-crumb a:hover, .bx-crumb a:hover, .ce-crumb a:hover, .qp-crumb a:hover { color: var(--accent-ink); }

/* Small uppercase labels above headings */
.pg-kicker, .ce-eyebrow, .rs-kicker, .rd-kicker, .bx-price-tag, .pg-glance-label {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
}

/* Status messages */
.ui-msg { display: block; margin-bottom: 12px; font-weight: 500; color: var(--bad); }


/* --------------------------------------------------------------------------
   Dark site footer (both options)
   -------------------------------------------------------------------------- */
.sf { background: var(--night); border-top: 0; color: var(--on-night-muted); }
.sf .sh-logo, .sf .sh-logo:hover { color: var(--on-night); }
.sf .sh-logo b { color: var(--on-night-muted); }
.sf-cols h2 { color: var(--on-night); }
.sf-cols a { color: var(--on-night-muted); }
.sf-cols a:hover { color: var(--on-night); }
.sf-bottom { border-top-color: var(--night-line); }


/* --------------------------------------------------------------------------
   Option B: squarer shapes, charcoal utility strip, crimson log-in button
   -------------------------------------------------------------------------- */
:root { --r-sm: 3px; --r: 4px; --r-lg: 6px; --header-h: 103px; }
.sh-bar { min-height: 68px; }
h1, h2 { font-weight: 700; }

.sh { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.sh-top { background: var(--night); color: var(--on-night-muted); font-size: 13px; }
.sh-top .container { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; }
.sh-top a { color: var(--on-night); }
.sh-top a:hover { color: var(--sky); }
.sh-top nav { display: flex; gap: 18px; }
.sh-bar { min-height: 68px; }
.sh-mark { border-radius: 4px; }
.sh-logo { font-weight: 700; }
.sh-links a { font-weight: 500; color: var(--ink); border-radius: 0; }
.sh-links a:hover { background: none; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.sh-links a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.sh-actions a { border-radius: 4px; border-width: 2px; border-color: var(--ink); }
.sh-actions a:only-child, .sh-actions a.is-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.sh-actions a:only-child:hover, .sh-actions a.is-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
@media (max-width: 860px) {
  .sh-top nav { display: none; }
  .sh-links a:hover, .sh-links a[aria-current="page"] { box-shadow: none; }
}


/* ==========================================================================
   7a. Home page (index.php) — Option B
   Announcement strip, bold hero with popular-exam stack, red stats band,
   exam table, charcoal feature band, step list, crimson CTA.
   ========================================================================== */
.hp { background: var(--surface); }
.hp-icon { width: 20px; height: 20px; }
.hp-btn { min-height: 50px; padding: 0 26px; border-radius: 4px; font-size: 16px; }
.hp-btn .hp-icon { width: 18px; height: 18px; }
.hp h2 { font-weight: 700; letter-spacing: -.03em; }

/* Announcement strip */
.hp-announce { background: var(--night); color: var(--on-night); font-size: 14px; }
.hp-announce .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.hp-announce-tag { padding: 1px 8px; border-radius: 3px; background: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hp-announce a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.hp-announce a:hover { color: var(--sky); }
.hp-announce .hp-icon { width: 16px; height: 16px; }

/* Hero */
.hp-hero { padding: 80px 0; border-bottom: 1px solid var(--line); }
.hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.hp-hero h1 { max-width: 640px; font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; color: var(--ink); }
.hp-lead { max-width: 560px; margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--text); }
.hp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hp-btn-ghost { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.hp-btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hp-search { display: flex; max-width: 460px; margin-top: 28px; border-bottom: 2px solid var(--ink); }
.hp-search label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; color: var(--muted); }
.hp-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.hp-search:focus-within { border-bottom-color: var(--accent); }
.hp-search-btn { display: grid; place-items: center; width: 48px; border: 0; background: transparent; color: var(--accent); cursor: pointer; }

.hp-stack { display: grid; gap: 10px; padding: 28px; background: var(--bg); border-top: 6px solid var(--accent); }
.hp-stack-label { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hp-stack-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.hp-stack-item:hover { border-color: var(--ink); color: var(--ink); transform: translateX(4px); }
.hp-stack-code { flex: none; min-width: 88px; padding: 6px 10px; background: var(--night); color: #fff; font-size: 15px; font-weight: 700; text-align: center; }
.hp-stack-name { flex: 1; min-width: 0; font-weight: 500; line-height: 1.35; }
.hp-stack-name small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.hp-stack-item .hp-icon { color: var(--accent); }

/* Stats band: big crimson figures */
.hp-stats-band { padding: 56px 0; background: var(--bg); }
.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hp-stats b { display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--accent); }
.hp-stats span { display: block; max-width: 220px; margin-top: 10px; font-size: 15px; color: var(--text); }

/* Exam table */
.hp-section { padding: 88px 0; }
.hp-exams-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hp-exams-top h2, .hp-how h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.hp-exams-top p, .hp-how > div > p { margin-top: 10px; font-size: 17px; color: var(--muted); }
.hp-filter { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.hp-filter:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.hp-filter input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.hp-count { font-size: 13px; white-space: nowrap; }
.hp-group + .hp-group { margin-top: 40px; }
.hp-table-head, .hp-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.hp-table-head { padding: 0 20px 10px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hp-row { padding: 18px 20px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.hp-row:hover { background: var(--bg); }
.hp-row-code { font-size: 17px; font-weight: 700; color: var(--accent); }
.hp-exam { color: var(--ink); }
.hp-exam:hover { color: var(--accent-ink); }
.hp-exam-name { display: block; font-weight: 500; }
.hp-exam-old { display: block; font-size: 13px; color: var(--muted); }
.hp-row-links { display: flex; gap: 8px; }
.hp-row-links a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.hp-row-links a:hover { border-color: var(--ink); }
.hp-row-links a.is-strong { background: var(--accent); border-color: var(--accent); color: #fff; }
.hp-row-links a.is-strong:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.hp-empty { padding: 48px 16px; text-align: center; color: var(--muted); }

/* Charcoal feature band */
.hp-why { padding: 88px 0; background: var(--night); color: var(--on-night-muted); }
.hp-why-head { max-width: 640px; margin-bottom: 48px; }
.hp-why h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; color: var(--on-night); }
.hp-why-head p { margin-top: 12px; font-size: 17px; }
.hp-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--night-line); }
.hp-why-grid article { padding: 28px 24px 8px 0; }
.hp-why-grid article + article { padding-left: 24px; border-left: 1px solid var(--night-line); }
.hp-why-grid .hp-icon { width: 28px; height: 28px; margin-bottom: 16px; color: var(--sky); }
.hp-why-grid h3 { margin-bottom: 8px; font-size: 18px; color: var(--on-night); }
.hp-why-grid p { font-size: 15px; }

/* How it works */
.hp-how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.hp-how .hp-btn { margin-top: 28px; }
.hp-how-list { list-style: none; counter-reset: hw; }
.hp-how-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: hw; }
.hp-how-list li:first-child { border-top: 2px solid var(--ink); }
.hp-how-list li::before { content: counter(hw, decimal-leading-zero); grid-row: span 2; font-size: 28px; font-weight: 700; line-height: 1; color: var(--accent); }
.hp-how-list b { font-size: 18px; font-weight: 500; color: var(--ink); }
.hp-how-list span { color: var(--muted); }

/* Crimson CTA */
.hp-cta { padding: 64px 0; background: var(--accent); color: #fff; }
.hp-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.hp-cta h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; color: #fff; }
.hp-cta p { margin-top: 8px; color: rgba(255, 255, 255, .85); }
.hp-cta .hp-btn { background: #fff; border-color: #fff; color: var(--ink); }
.hp-cta .hp-btn:hover { background: var(--night); border-color: var(--night); color: #fff; }

@media (max-width: 991px) {
  .hp-hero-grid, .hp-how { grid-template-columns: 1fr; gap: 40px; }
  .hp-stats { grid-template-columns: repeat(2, 1fr); }
  .hp-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-why-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .hp-why-grid article:nth-child(n+3) { border-top: 1px solid var(--night-line); }
}
@media (max-width: 767px) {
  .hp-hero { padding: 48px 0; }
  .hp-lead { font-size: 17px; }
  .hp-hero-actions .hp-btn { flex: 1 1 100%; }
  .hp-stack { padding: 20px; }
  .hp-stack-code { min-width: 76px; font-size: 14px; }
  .hp-stats-band { padding: 40px 0; }
  .hp-stats { gap: 28px 20px; }
  .hp-section, .hp-why { padding: 56px 0; }
  .hp-table-head { display: none; }
  .hp-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .hp-row:hover { background: none; }
  .hp-row-links { margin-top: 8px; }
  .hp-row-links a { flex: 1; text-align: center; }
  .hp-why-grid { grid-template-columns: 1fr; }
  .hp-why-grid article, .hp-why-grid article + article { padding: 22px 0; border-left: 0; }
  .hp-why-grid article + article { border-top: 1px solid var(--night-line); }
  .hp-cta .hp-btn { width: 100%; }
}


/* ==========================================================================
   7b. Content pages: About, FAQs, Privacy, DMCA (include/page_parts.php)
   ========================================================================== */
.pg { line-height: 1.7; }
.pg-prose a, .pg-faq .pg-a a, .pg-lead a, .pg-section a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.pg-prose a:hover, .pg-faq .pg-a a:hover, .pg-lead a:hover, .pg-section a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Page header */
.pg-hero { padding: 64px 0 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pg-kicker { margin-bottom: 14px; }
.pg-hero h1 { max-width: 860px; margin-bottom: 16px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.pg-lead { max-width: 700px; font-size: 18px; color: var(--muted); }
.pg-updated { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.pg-updated .pg-i { width: 15px; height: 15px; color: var(--accent); }

/* Body */
.pg-body { padding: 64px 0 88px; }
.pg-narrow { max-width: 780px; margin: 0 auto; }
.pg-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.pg-toc { position: sticky; top: calc(var(--header-h) + 24px); padding-left: 16px; border-left: 1px solid var(--line); }
.pg-toc strong { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pg-toc ol { display: grid; gap: 2px; list-style: none; counter-reset: toc; }
.pg-toc a { position: relative; display: flex; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--text); counter-increment: toc; }
.pg-toc a::before { content: counter(toc, decimal-leading-zero); min-width: 22px; font-size: 12px; line-height: 21px; color: var(--muted); }
.pg-toc a:hover { color: var(--ink); }
.pg-toc a.is-active { color: var(--accent-ink); }
.pg-toc a.is-active::after { content: ""; position: absolute; left: -17px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); }

/* Prose */
.pg-prose { font-size: 16px; }
.pg-prose > p { margin: 0 0 1.1em; }
.pg-prose h2 { margin: 2em 0 .7em; font-size: 26px; line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: calc(var(--header-h) + 24px); }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose h3 { margin: 1.6em 0 .6em; font-size: 19px; }
.pg-prose ul, .pg-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.pg-prose ul { list-style: disc; }
.pg-prose ol { list-style: decimal; }
.pg-prose li { margin-bottom: .45em; }
.pg-h2-gap { margin-top: 56px !important; }

/* Numbered sections (Privacy) */
.pg-section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.pg-section:first-child { padding-top: 0; border-top: 0; }
.pg-section h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; font-size: 21px; }
.pg-section h2 span { flex: none; font-size: 14px; font-weight: 400; color: var(--accent-ink); }
.pg-section p { margin: 0 0 .8em; }
.pg-section p:last-child { margin: 0; }

/* Notes, cards and check lists */
.pg-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); font-size: 15px; color: var(--ink); }
.pg-note .pg-i { margin-top: 3px; color: var(--accent); }
.pg-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pg-check { display: grid; list-style: none !important; padding: 0 !important; }
.pg-check li { display: flex; gap: 14px; margin: 0 !important; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pg-check li:first-child { border-top: 1px solid var(--line); }
.pg-check li .pg-i { margin-top: 4px; color: var(--accent); }
.pg-check li b { color: var(--ink); }

/* DMCA: email card */
.pg-mailcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 40px; }
.pg-mailcard-info { display: flex; align-items: center; gap: 14px; }
.pg-mailcard-label { font-size: 14px; color: var(--muted); }
.pg-mailcard-value { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }

/* Contact band at the end of each page */
.pg-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 32px; background: var(--accent-soft); border-radius: var(--r-lg); }
.pg-cta h2 { margin-bottom: 4px; font-size: 22px; letter-spacing: -.025em; }
.pg-cta p { color: var(--text); }
.pg-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-cta .pg-btn-light { border-color: var(--accent-line); }
.pg-cta .pg-btn-light:hover { background: var(--surface); border-color: var(--ink); }

/* FAQ */
.pg-search { display: flex; align-items: center; gap: 10px; height: 52px; margin-bottom: 32px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.pg-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.pg-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.pg .pg-search input:focus-visible { outline: none; }
.pg-faq { border-top: 1px solid var(--line); }
.pg-faq details { border-bottom: 1px solid var(--line); }
.pg-faq summary { display: flex; align-items: center; gap: 16px; padding: 22px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink); }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary:hover { color: var(--accent-ink); }
.pg-faq summary .pg-plus { position: relative; flex: none; width: 24px; height: 24px; margin-left: auto; }
.pg-faq summary .pg-plus::before, .pg-faq summary .pg-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s; }
.pg-faq summary .pg-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.pg-faq details[open] .pg-plus::after { transform: translate(-50%, -50%) rotate(0); }
.pg-faq .pg-a { padding: 0 40px 24px 0; font-size: 16px; color: var(--muted); }
.pg-empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* About: header with "At a glance" */
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: end; }
.pg-hero-grid .pg-lead { max-width: none; }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pg-hero-actions:empty { display: none; }
.pg-glance { padding: 4px 0 0; border-top: 2px solid var(--ink); }
.pg-glance-label { margin: 14px 0 4px; }
.pg-glance ul { display: grid; }
.pg-glance li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.pg-glance li + li { border-top: 1px solid var(--line); }
.pg-glance-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.pg-glance b { display: block; font-size: 20px; line-height: 1.2; color: var(--ink); }
.pg-glance li span:not(.pg-glance-ico) { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* About: features, stats, authors */
.pg-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 12px; }
.pg-feature { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pg-feature-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.pg-feature b { display: block; margin-bottom: 2px; color: var(--ink); }
.pg-feature span { font-size: 14px; color: var(--muted); }
.pg-team-head { margin-top: 88px; text-align: center; }
.pg-team-head h2 { margin-top: 0; }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 8px; }
.pg-stat { padding: 22px; background: var(--bg); border-radius: var(--r-lg); }
.pg-stat .pg-i { width: 24px; height: 24px; color: var(--accent); }
.pg-stat b { display: block; margin-top: 12px; font-size: 16px; color: var(--ink); }
.pg-stat span { font-size: 14px; color: var(--muted); }
.pg-authors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pg-author { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pg-author-top { display: flex; align-items: center; gap: 14px; }
.pg-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.pg-author h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.pg-author h3 img { display: inline-block; width: 20px; height: 14px; object-fit: cover; border-radius: 2px; outline: 1px solid rgba(0, 0, 0, .08); }
.pg-author small { display: block; font-size: 13px; color: var(--muted); }
.pg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-tags span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.6; color: var(--text); }
.pg-author p { font-size: 14px; color: var(--text); }
.pg-footnote { margin-top: 32px; font-size: 15px; text-align: center; color: var(--muted); }
.pg-disclaimer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 1099px) {
  .pg-authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .pg-layout { grid-template-columns: 1fr; gap: 32px; }
  .pg-toc { position: static; }
  .pg-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pg-glance { max-width: 520px; }
}
@media (max-width: 767px) {
  .pg-hero { padding: 40px 0 32px; }
  .pg-lead { font-size: 16px; }
  .pg-body { padding: 40px 0 64px; }
  .pg-stats, .pg-features, .pg-authors { grid-template-columns: 1fr; }
  .pg-team-head { margin-top: 56px; }
  .pg-cta { padding: 24px 20px; }
  .pg-cta-actions { width: 100%; }
  .pg-cta .pg-btn { flex: 1; }
  .pg-faq summary { padding: 18px 0; font-size: 16px; }
  .pg-faq .pg-a { padding-right: 0; font-size: 15px; }
  .pg-mailcard .pg-btn { width: 100%; }
  .pg-hero-actions .pg-btn { flex: 1 1 100%; }
}


/* ==========================================================================
   7c. Log in, forgot password, reset password
   user_login.php (lg-), forget_password.php + reset_password.php (au-)
   ========================================================================== */

/* Shared text inputs with a leading icon (also used by the checkout, ct-) */
.lg-field, .au-field, .ct-field { margin-bottom: 18px; }
.lg-field label, .au-field label, .ct-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.lg-input, .au-input, .ct-input { position: relative; }
.lg-input > .lg-i, .au-input > .au-i, .ct-input > .ct-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lg-input input, .au-input input, .ct-input input {
  width: 100%; height: 48px; padding: 0 14px 0 44px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.lg-input input:hover, .au-input input:hover, .ct-input input:hover { border-color: var(--line-3); }
.lg-input input:focus, .au-input input:focus, .ct-input input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.lg-input input[aria-invalid="true"], .au-input input[aria-invalid="true"], .ct-input input[aria-invalid="true"] { border-color: var(--bad); }
.au-input input, .lg-input .lg-pass, .ct-input input.has-eye { padding-right: 52px; }
.lg-toggle, .au-eye, .ct-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.lg-toggle:hover, .au-eye:hover, .ct-eye:hover { background: var(--bg); color: var(--ink); }

/* Alerts */
.lg-alert, .au-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--r); font-size: 15px; line-height: 1.5; }
.lg-alert .lg-i, .au-alert .au-i { margin-top: 2px; }
.lg-alert--err, .au-alert { background: var(--bad-soft); color: var(--bad); }
.lg-alert--ok { background: var(--ok-soft); color: var(--ok); }
.lg-alert--ok b { color: var(--ink); }
.au-alert ul { padding-left: 18px; list-style: disc; }

/* ---- Log in ---- */
.lg { padding: 64px 0 88px; }
.lg-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); max-width: 960px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lg-form { padding: 48px 52px; }
.lg-form h1 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.03em; }
.lg-sub { margin-bottom: 32px; font-size: 16px; color: var(--muted); }
.lg-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lg-forgot { font-size: 14px; color: var(--accent-ink); }
.lg-forgot:hover { color: var(--ink); text-decoration: underline; }
.lg-btn { width: 100%; min-height: 50px; margin-top: 8px; font-size: 16px; }
.lg-btn[disabled] { opacity: .75; cursor: wait; }
.lg-spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lg-spin .7s linear infinite; }
.lg-btn.is-busy .lg-spin { display: block; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-order { margin-top: 6px; font-size: 14px; }
.lg-order li { display: flex; gap: 6px; }
.lg-order span { min-width: 62px; color: var(--muted); }
.lg-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lg-side { padding: 48px 44px; background: var(--bg); border-left: 1px solid var(--line); }
.lg-side h2 { margin-bottom: 6px; font-size: 20px; }
.lg-side > p { margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.lg-perks { display: grid; }
.lg-perks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.lg-perk-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: var(--accent); }
.lg-perk-ico .pg-i { width: 22px; height: 22px; }
.lg-perks b { display: block; font-size: 15px; color: var(--ink); }
.lg-perks span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.lg-new { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.lg-new a { font-weight: 500; }
@media (max-width: 991px) {
  .lg { padding: 32px 0 56px; }
  .lg-card { grid-template-columns: 1fr; max-width: 560px; }
  .lg-side { padding: 32px; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 575px) {
  .lg { padding: 0 0 40px; }
  .lg > .container { padding: 0; }
  .lg-card { border-width: 0 0 1px; border-radius: 0; }
  .lg-form { padding: 32px 20px; }
  .lg-side { padding: 28px 20px; }
  .lg-form h1 { font-size: 26px; }
}

/* ---- Forgot / reset password ---- */
.au { padding: 64px 0 88px; }
.au-card { max-width: 460px; margin: 0 auto; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.au-badge { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.au-badge .au-i { width: 24px; height: 24px; }
.au-badge.ok { background: var(--ok-soft); color: var(--ok); }
.au-badge.bad { background: var(--bad-soft); color: var(--bad); }
.au h1 { margin-bottom: 8px; font-size: 26px; letter-spacing: -.03em; }
.au-sub { margin-bottom: 24px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.au-sub b { color: var(--ink); word-break: break-all; }
.au-btn { width: 100%; min-height: 50px; margin-top: 8px; font-size: 16px; }
.au-btn[disabled] { opacity: .75; cursor: wait; }
.au-tips { display: grid; gap: 10px; margin-bottom: 24px; padding: 16px 18px; border-radius: var(--r); background: var(--bg); font-size: 14px; line-height: 1.5; }
.au-tips li { display: flex; gap: 10px; }
.au-tips .au-i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.au-rules { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.au-rules li { display: flex; align-items: center; gap: 6px; }
.au-rules .au-i { width: 14px; height: 14px; }
.au-rules li.met { color: var(--ok); }
.au-actions { display: grid; gap: 10px; }
.au-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14px; color: var(--accent-ink); }
.au-back:hover { color: var(--ink); }
.au-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575px) {
  .au { padding: 24px 0 48px; }
  .au-card { padding: 28px 20px; }
  .au h1 { font-size: 23px; }
}


/* ==========================================================================
   7d. Contact (contact.php, ce-)
   ========================================================================== */
.ce-contact { font-size: 16px; line-height: 1.6; }
.ce-contact a:not(.ce-btn) { color: inherit; }
.ce-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.ce-icon { width: 20px; height: 20px; }
.ce-btn .ce-icon { width: 18px; height: 18px; }

/* Header */
.ce-hero { padding: 64px 0 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ce-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: end; }
.ce-eyebrow { margin-bottom: 14px; }
.ce-hero h1 { max-width: 620px; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.ce-hero h1 span { color: var(--accent); }
.ce-hero-copy { max-width: 540px; margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.ce-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ce-facts { border-top: 2px solid var(--ink); }
.ce-fact { display: flex; gap: 16px; padding: 18px 0; }
.ce-fact + .ce-fact { border-top: 1px solid var(--line); }
.ce-fact-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.ce-fact-label { font-size: 13px; color: var(--muted); }
.ce-fact-value { font-size: 16px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ce-fact-value a:hover { color: var(--accent-ink); }

/* Form + sidebar */
.ce-main { padding: 72px 0 88px; }
.ce-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.ce-card { padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.ce-card-title { font-size: 26px; letter-spacing: -.025em; }
.ce-card-desc { margin-top: 6px; font-size: 15px; color: var(--muted); }
.ce-form { margin-top: 32px; }
.ce-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.ce-field { display: flex; flex-direction: column; gap: 6px; }
.ce-field.ce-full { grid-column: 1 / -1; }
.ce-field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.ce-opt { font-weight: 400; color: var(--muted); }
.ce-req { color: var(--bad); }
.ce-field input, .ce-field select, .ce-field textarea { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background-color: var(--surface); font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.ce-field select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23646b67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.ce-field textarea { height: auto; min-height: 160px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.ce-field input::placeholder, .ce-field textarea::placeholder { color: var(--muted); opacity: 1; }
.ce-field input:hover, .ce-field select:hover, .ce-field textarea:hover { border-color: var(--line-3); }
.ce-field input:focus, .ce-field select:focus, .ce-field textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
.ce-field-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.ce-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ce-form-note { max-width: 360px; font-size: 13px; color: var(--muted); }
.ce-contact .ce-form-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ce-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ce-alert { display: flex; gap: 12px; margin-top: 24px; padding: 16px; border-radius: var(--r); font-size: 15px; }
.ce-alert .ce-icon { margin-top: 2px; }
.ce-alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.ce-alert strong { display: block; color: inherit; }
.ce-alert-error { background: var(--bad-soft); color: var(--bad); }
.ce-alert-success { background: var(--ok-soft); color: var(--ok); }

.ce-side { display: flex; flex-direction: column; gap: 20px; }
.ce-panel { padding: 28px; background: var(--accent-soft); border-radius: var(--r-lg); }
.ce-panel h3 { font-size: 19px; }
.ce-panel > p { margin-top: 6px; font-size: 15px; color: var(--text); }
.ce-detail { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--accent-line); }
.ce-detail:first-of-type { margin-top: 20px; }
.ce-detail .ce-icon { margin-top: 2px; color: var(--accent-ink); }
.ce-detail-label { font-size: 13px; color: var(--muted); }
.ce-detail-value { font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ce-detail-value a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ce-tips { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ce-tips h3 { font-size: 17px; }
.ce-tips ul { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ce-tips li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.ce-tips li .ce-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* Other resources */
.ce-resources { margin-top: 88px; }
.ce-section-head { margin-bottom: 24px; }
.ce-section-head h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; }
.ce-section-head p { margin-top: 6px; color: var(--muted); }
.ce-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ce-resource { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--ink); }
.ce-resource .ce-fact-icon { margin-bottom: 16px; }
.ce-resource h3 { font-size: 18px; }
.ce-resource p { flex: 1; margin-top: 6px; font-size: 15px; color: var(--muted); }
.ce-resource-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.ce-resource-link .ce-icon { width: 16px; height: 16px; transition: transform .15s; }
.ce-resource:hover h3 { color: var(--accent-ink); }
.ce-resource:hover .ce-resource-link .ce-icon { transform: translateX(3px); }

@media (max-width: 960px) {
  .ce-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ce-facts { max-width: 560px; }
  .ce-grid { grid-template-columns: 1fr; }
  .ce-resource-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ce-hero { padding: 40px 0; }
  .ce-hero-copy { font-size: 16px; }
  .ce-main { padding: 40px 0 64px; }
  .ce-card { padding: 28px 20px; }
  .ce-form-grid { grid-template-columns: 1fr; }
  .ce-form-footer .ce-btn { width: 100%; }
  .ce-panel, .ce-tips { padding: 24px 20px; }
  .ce-resources { margin-top: 56px; }
  .ce-resource-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .ce-hero-actions .ce-btn { flex: 1; }
}


/* ==========================================================================
   7e. Buy exam (buyexam.php, bx-)
   ========================================================================== */
.bx { line-height: 1.65; }
.bx-btn { min-height: 50px; padding: 0 24px; font-size: 16px; }

/* Header + price card */
.bx-hero { padding: 40px 0 64px; background: var(--surface); border-bottom: 1px solid var(--line); }
.bx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.bx-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.bx-kicker .pg-i { width: 16px; height: 16px; }
.bx-hero h1 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.bx-lead { max-width: 620px; margin-bottom: 28px; font-size: 18px; color: var(--muted); }
.bx-points { display: grid; margin-bottom: 28px; border-top: 1px solid var(--line); }
.bx-points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.bx-points .bx-tick { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: #fff; }
.bx-points .bx-tick .pg-i { width: 13px; height: 13px; stroke-width: 2.6; }
.bx-free { font-size: 15px; color: var(--muted); }
.bx-free a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.bx-msg-wrap { padding-top: 16px; }

.bx-price { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r-lg); }
.bx-price-tag { margin-bottom: 10px; }
.bx-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bx-amount b { font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.bx-amount span { font-size: 15px; color: var(--muted); }
.bx-price > p { margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.bx-price ul { display: grid; gap: 10px; margin-bottom: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.bx-price li { display: flex; gap: 10px; align-items: flex-start; }
.bx-price li .pg-i { margin-top: 3px; color: var(--accent); }
.bx-price .bx-btn { width: 100%; font-size: 17px; }
.bx-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 13px; text-align: center; color: var(--muted); }
.bx-secure .pg-i { width: 15px; height: 15px; color: var(--accent); }

/* Exam not found */
.bx-notfound { padding: 40px 0; text-align: center; }
.bx-notfound .bx-lead { margin: 12px auto 24px; }

/* Key numbers */
.bx-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.bx-stat { display: flex; flex-direction: column; padding: 24px 24px 24px 0; }
.bx-stat + .bx-stat { padding-left: 24px; border-left: 1px solid var(--line); }
.bx-stat b { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.bx-stat span { font-size: 14px; color: var(--muted); }

/* Sections */
.bx-section { padding: 80px 0 0; }
.bx-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.bx-head h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.bx-head p { font-size: 17px; color: var(--muted); }

.bx-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bx-tool { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.bx-tool-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.bx-tool-ico .pg-i { width: 22px; height: 22px; }
.bx-tool h3 { margin-bottom: 8px; font-size: 21px; }
.bx-tool > p { margin-bottom: 18px; color: var(--muted); }
.bx-tool ul { display: grid; gap: 10px; font-size: 15px; }
.bx-tool li { display: flex; gap: 10px; }
.bx-tool li .pg-i { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }

.bx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.bx-step { padding-top: 20px; border-top: 1px solid var(--ink); counter-increment: s; }
.bx-step::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.bx-step h3 { margin-bottom: 6px; font-size: 18px; }
.bx-step p { font-size: 15px; color: var(--muted); }

.bx-compare { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bx-compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bx-compare th, .bx-compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.bx-compare th:first-child, .bx-compare td:first-child { text-align: left; color: var(--ink); }
.bx-compare thead th { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bx-compare thead th.is-paid { color: var(--accent-ink); }
.bx-compare td.is-paid { background: var(--accent-wash); }
.bx-compare tr:last-child td { border-bottom: 0; }
.bx-yes { color: var(--accent); }
.bx-no { color: var(--line-3); }
.bx-compare .pg-i { width: 20px; height: 20px; vertical-align: middle; }

.bx-faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.bx-faq details { border-bottom: 1px solid var(--line); }
.bx-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink); }
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 300; line-height: 1; color: var(--ink); transition: transform .2s; }
.bx-faq details[open] summary::after { transform: rotate(45deg); }
.bx-faq details p { margin-bottom: 20px; font-size: 15px; color: var(--muted); }

.bx-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 80px 0 48px; padding: 40px; background: var(--accent-soft); border-radius: var(--r-lg); color: var(--text); }
.bx-cta h2 { margin-bottom: 6px; font-size: 26px; letter-spacing: -.03em; }
.bx-cta .bx-btn { flex: none; }
.bx-note { margin-bottom: 56px; font-size: 13px; text-align: center; color: var(--muted); }

/* Mobile buy bar */
.bx-bar { display: none; }
@media (max-width: 991px) {
  .bx-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .bx-price { position: static; max-width: 520px; }
  .bx-stats { grid-template-columns: repeat(2, 1fr); }
  .bx-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .bx-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bx-tools, .bx-steps { grid-template-columns: 1fr; }
  .bx-steps { gap: 24px; }
  .bx-cta { flex-direction: column; align-items: flex-start; }
  .bx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
  .bx-bar.is-on { transform: none; }
  .bx-bar b { display: block; font-size: 20px; line-height: 1.1; color: var(--ink); }
  .bx-bar small { font-size: 13px; color: var(--muted); }
  .bx-bar .bx-btn { min-height: 46px; padding: 0 20px; }
  .bx-note { margin-bottom: 96px; }
}
@media (max-width: 575px) {
  .bx-hero { padding: 24px 0 40px; }
  .bx-lead { font-size: 16px; }
  .bx-price { padding: 22px; }
  .bx-amount b { font-size: 44px; }
  .bx-stat { padding: 18px 12px 18px 0; }
  .bx-stat + .bx-stat { padding-left: 14px; }
  .bx-stat b { font-size: 21px; }
  .bx-section { padding-top: 56px; }
  .bx-tool { padding: 24px 20px; }
  .bx-compare th, .bx-compare td { padding: 12px 10px; font-size: 14px; }
  .bx-cta { margin: 56px 0 40px; padding: 28px 22px; }
  .bx-cta .bx-btn { width: 100%; }
}


/* ==========================================================================
   7f. Cart and checkout (view_cart.php, cart_checkout.php, include/cart_common.php)
   Shared input styles for .ct-field / .ct-input are in 7c.
   ========================================================================== */
.ct { min-height: 60vh; padding: 40px 0 88px; line-height: 1.6; }
.ct-btn { min-height: 50px; font-size: 16px; }
.ct-btn[disabled] { opacity: .75; cursor: wait; }
.ct-btn.is-off { opacity: .5; pointer-events: none; }

/* Steps */
.ct-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.ct-steps li { display: flex; align-items: center; gap: 8px; }
.ct-steps li + li::before { content: ""; width: 32px; height: 1px; margin-right: 4px; background: var(--line-2); }
.ct-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 500; }
.ct-steps .ct-i { width: 13px; height: 13px; stroke-width: 2.6; }
.ct-steps li.is-current { color: var(--ink); font-weight: 500; }
.ct-steps li.is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-steps li.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }

.ct-title { margin-bottom: 28px; }
.ct-title h1 { font-size: 32px; letter-spacing: -.03em; }
.ct-title p { margin-top: 4px; color: var(--muted); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.ct-grid > * { min-width: 0; }
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* Cart items */
.ct-item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.ct-item + .ct-item { border-top: 1px solid var(--line); }
.ct-item-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.ct-item-ico .ct-i { width: 22px; height: 22px; }
.ct-item-main { flex: 1; min-width: 0; }
.ct-item-main h3 { font-size: 16px; line-height: 1.4; }
.ct-item-main h3 a { color: inherit; }
.ct-item-main h3 a:hover { color: var(--accent-ink); }
.ct-item-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ct-item-price { font-size: 18px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.ct-remove { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r); color: var(--muted); transition: background-color .15s, color .15s; }
.ct-remove:hover { background: var(--bad-soft); color: var(--bad); }
.ct-cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 14px; }
.ct-cart-foot a { display: inline-flex; align-items: center; gap: 6px; }
.ct-cart-foot a:hover { text-decoration: underline; }
.ct-cart-foot a.ct-clear { color: var(--muted); }
.ct-cart-foot a.ct-clear:hover { color: var(--bad); }

/* Order summary */
.ct-summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r-lg); }
.ct-summary h2 { margin-bottom: 16px; font-size: 18px; }
.ct-sum-items { margin-bottom: 4px; }
.ct-sum-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--ink); }
.ct-sum-items li + li { border-top: 1px dashed var(--line); }
.ct-sum-items small { display: block; font-size: 12px; color: var(--muted); }
.ct-sum-row { display: flex; justify-content: space-between; padding-bottom: 12px; font-size: 15px; }
.ct-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.ct-sum-total span { font-size: 16px; font-weight: 500; color: var(--ink); }
.ct-sum-total b { font-size: 30px; letter-spacing: -.03em; color: var(--ink); }
.ct-sum-note { margin: 2px 0 18px; font-size: 13px; text-align: right; color: var(--muted); }
.ct-summary .ct-btn { width: 100%; }
.ct-trust { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ct-trust li { display: flex; align-items: center; gap: 8px; }
.ct-trust .ct-i { width: 16px; height: 16px; color: var(--accent); }

/* Notices */
.ct-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r); background: var(--bad-soft); font-size: 14px; color: var(--bad); }
.ct-alert .ct-i { margin-top: 2px; }
.ct-alert a { color: inherit; font-weight: 500; text-decoration: underline; }
.ct-alert button { padding: 0; border: 0; background: none; color: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; }
.ct-alert--info { background: var(--accent-soft); color: var(--ink); }
.ct-alert--warn { background: var(--warn-soft); color: var(--warn); }

/* Empty cart */
.ct-empty { max-width: 520px; margin: 24px auto 0; padding: 56px 32px; text-align: center; }
.ct-empty .ct-item-ico { width: 64px; height: 64px; margin: 0 auto 20px; }
.ct-empty .ct-item-ico .ct-i { width: 28px; height: 28px; }
.ct-empty h1 { margin-bottom: 8px; font-size: 26px; letter-spacing: -.03em; }
.ct-empty p { margin-bottom: 24px; color: var(--muted); }

/* Checkout form */
.ct-form { padding: 32px; }
.ct-form h2 { margin-bottom: 4px; font-size: 20px; }
.ct-form > p { margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.ct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: var(--r); background: var(--bg); }
.ct-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.ct-tabs button:hover { color: var(--ink); }
.ct-tabs button .ct-i { width: 17px; height: 17px; }
.ct-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
/* "I have an account": warm tint so returning customers spot it */
.ct-tabs .ct-tab-ret { background: var(--warn-soft); color: var(--warn); }
.ct-tabs .ct-tab-ret .ct-i { color: var(--warn); }
.ct-tabs .ct-tab-ret[aria-selected="true"] { background: var(--surface); border-color: var(--warn-line); color: var(--ink); }
.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.ct-hint.is-bad { color: var(--bad); }
.ct-hint--pull { margin-top: -8px; margin-bottom: 4px; }
.ct-form .ct-btn { width: 100%; margin-top: 8px; }
.ct-fine { margin-top: 14px; font-size: 13px; text-align: center; color: var(--muted); }
.ct-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; }
.ct-back:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-summary { position: static; }
}
@media (max-width: 575px) {
  .ct { padding: 24px 0 56px; }
  .ct-title h1 { font-size: 26px; }
  .ct-steps { gap: 6px; font-size: 13px; }
  .ct-steps li + li::before { width: 14px; }
  .ct-item { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .ct-item-ico { width: 40px; height: 40px; }
  .ct-item-main { flex: 1 1 calc(100% - 104px); }
  .ct-remove { order: 3; }
  .ct-item-price { order: 4; flex-basis: 100%; margin: -6px 0 0 52px; }
  .ct-cart-foot { padding: 14px 16px; }
  .ct-form { padding: 24px 20px; }
  .ct-row2 { grid-template-columns: 1fr; gap: 0; }
}


/* ==========================================================================
   7g. Practice questions
   questionspractice.php (free) and complete_questions.php (full access), qp-
   ========================================================================== */
.qp { line-height: 1.65; }

/* Header */
.qp-hero { padding: 40px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.qp-hero h1 { margin-bottom: 18px; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -.035em; }
.qp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.qp-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.qp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.qp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.qp-chip .qp-i { width: 16px; height: 16px; color: var(--accent); }
.qp-access { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.qp-access .qp-i { width: 16px; height: 16px; }
.qp-intro { max-width: 760px; margin-top: 24px; font-size: 16px; color: var(--muted); }
.qp-intro strong { color: var(--ink); }
.qp-proof { display: flex; align-items: flex-start; gap: 8px; max-width: 760px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.qp-proof .qp-i { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }

/* Study path / pass-rate card (page 1) */
.qp-path, .qp-stat { padding: 24px; background: var(--bg); border-radius: var(--r-lg); }
.qp-path h2 { margin-bottom: 16px; font-size: 18px; }
.qp-path ol { display: grid; gap: 14px; margin-bottom: 20px; list-style: none; }
.qp-path li { display: flex; gap: 12px; align-items: flex-start; }
.qp-step { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink); }
.qp-path li:last-child .qp-step { background: var(--ink); border-color: var(--ink); color: #fff; }
.qp-path strong { display: block; font-size: 15px; line-height: 1.35; color: var(--ink); }
.qp-path small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.qp-path .qp-btn { width: 100%; }
.qp-path-alt { display: block; margin-top: 12px; font-size: 14px; text-align: center; }
.qp-stat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.qp-stat-label .qp-i { width: 15px; height: 15px; }
.qp-stat-num { margin-top: 14px; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.qp-stat-sub { margin-top: 6px; font-size: 16px; color: var(--muted); }
.qp-stat p { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.qp-stat p strong { color: var(--ink); }

/* Layout */
.qp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 72px; }
.qp-layout--full { grid-template-columns: minmax(0, 1fr); }
.qp-topic { margin-bottom: 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); }
.qp-topic summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-weight: 500; color: var(--ink); }
.qp-topic summary::-webkit-details-marker { display: none; }
.qp-topic summary > span:last-child { flex: none; font-size: 13px; font-weight: 400; color: var(--accent-ink); }
.qp-topic-title, .qp-topic-name { font-weight: 500; color: var(--ink); }
.qp-topic[open] summary .qp-more { display: none; }
.qp-topic:not([open]) summary .qp-less { display: none; }
.qp-topic-body { margin-top: 10px; font-size: 15px; color: var(--muted); }
.qp-topic-label { display: block; font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Topic bar: light "Show description" button on the right
   (only rendered when the topic has a description) */
.qp-topic summary > span.qp-topic-toggle { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--accent-soft); font-size: 13px; font-weight: 500; color: var(--accent-ink); transition: background-color .15s, border-color .15s, color .15s; }
.qp-topic summary:hover > span.qp-topic-toggle { background: var(--accent); border-color: var(--accent); color: #fff; }
.qp-topic-toggle .qp-i { width: 14px; height: 14px; stroke-width: 2.2; transition: transform .2s; }
.qp-topic[open] .qp-topic-toggle .qp-i { transform: rotate(180deg); }
.qp-topic summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.qp-topic[open] .qp-topic-body { margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-wash); color: var(--text); }
.qp-topic summary > .qp-topic-title { flex: 1; min-width: 0; }
@media (max-width: 575px) {
  .qp-topic summary { align-items: flex-start; }
  .qp-topic summary > span.qp-topic-toggle { padding: 5px 9px; font-size: 12px; }
}

/* Question card */
.qp-card { margin-bottom: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: calc(var(--header-h) + 16px); }
.qp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qp-num { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.qp-type { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.qp-q { font-size: 17px; line-height: 1.65; color: var(--ink); }
.qp-q p { margin: 0 0 .6em; }
.qp-q p:last-child { margin-bottom: 0; }
.qp-q img, .qp-answer img { max-width: 100%; height: auto; margin: 8px 0; border-radius: var(--r-sm); }
.qp-q table, .qp-answer table { width: 100%; margin: 8px 0; font-size: 14px; }
.qp-opts { display: grid; gap: 8px; margin-top: 20px; list-style: none; }
.qp-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; line-height: 1.55; color: var(--text); cursor: pointer; transition: border-color .15s, background-color .15s; }
.qp-opt:hover { border-color: var(--ink); }
.qp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qp-letter { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); }
.qp-opt-text { min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
.qp-opt-text p { display: inline; margin: 0; }
.qp-opt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.qp-opt:has(input:checked) .qp-letter { background: var(--ink); border-color: var(--ink); color: #fff; }
.qp-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.qp .qp-opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.qp .qp-opt.is-correct .qp-letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.qp .qp-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.qp .qp-opt.is-wrong .qp-letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.qp-textarea { width: 100%; min-height: 120px; margin-top: 16px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.qp-legacy { margin-top: 16px; }
.qp-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.qp-check { min-height: 40px; padding: 0 16px; font-size: 14px; background: transparent; border-color: var(--line-2); color: var(--ink); }
.qp-check:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.qp-check[aria-expanded="true"] { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.qp-result { font-size: 14px; font-weight: 500; }
.qp-result.ok { color: var(--ok); }
.qp-result.bad { color: var(--bad); }
.qp-answer { margin-top: 16px; padding: 18px 20px; background: var(--accent-wash); border-left: 3px solid var(--accent); border-radius: var(--r-sm); font-size: 15px; }
.qp-correct { margin-bottom: 10px; color: var(--ink); }
.qp-correct b { color: var(--ok); }
.qp-correct > div { margin-top: 6px; }
.qp-correct > div p { display: inline; margin: 0; }
.qp-explain { color: var(--text); }
.qp-explain p { margin: 0 0 .6em; }

/* Pagination */
.qp-pager { margin-top: 28px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.qp-pager-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qp-pager-info { font-size: 14px; text-align: center; color: var(--muted); }
.qp-pager-info b { color: var(--ink); }
.qp-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.qp-pages a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--r); font-size: 14px; color: var(--text); transition: background-color .15s, color .15s; }
.qp-pages a:hover { background: var(--bg); color: var(--ink); }
.qp-pages a[aria-current="page"] { background: var(--ink); color: #fff; }
.qp-pager .qp-btn, .qp-pager .qp-spacer { min-width: 120px; }

/* Sidebar */
.qp-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.qp-box { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.qp-box h2 { margin-bottom: 6px; font-size: 17px; }
.qp-box p { font-size: 14px; color: var(--muted); }
.qp-box-link { margin-top: 12px; }
.qp-bar { height: 6px; margin: 14px 0 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.qp-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.qp-small { font-size: 13px; color: var(--muted); }
.qp-sim { background: var(--accent-soft); border-color: var(--accent-soft); }
.qp-sim p { color: var(--text); }
.qp-sim ul { display: grid; gap: 8px; margin: 14px 0 18px; }
.qp-sim li { display: flex; gap: 8px; font-size: 14px; color: var(--ink); }
.qp-sim li .qp-i { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.qp-sim .qp-btn { width: 100%; }
.qp-saved { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.qp-saved .qp-i { width: 16px; height: 16px; color: var(--ok); }
.qp-jump { display: flex; gap: 8px; margin-top: 14px; }
.qp-jump select { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 15px; color: var(--ink); }
.qp-jump .qp-btn { min-height: 42px; padding: 0 16px; }

/* "Ready for the real exam?" banner (no-sidebar layout) */
.qp-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: var(--accent-soft); border-radius: var(--r-lg); }
.qp-banner h2 { margin-bottom: 4px; font-size: 20px; }
.qp-banner p { font-size: 15px; color: var(--text); }

/* Simulator promo + exam guide */
.qp-promo { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qp-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.qp-promo h2 { margin-bottom: 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.qp-promo p { margin-bottom: 12px; color: var(--muted); }
.qp-promo-btn { margin-top: 8px; }
.qp-benefits { display: grid; }
.qp-benefits li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qp-benefits li:first-child { border-top: 1px solid var(--line); }
.qp-benefits .qp-i { margin-top: 3px; color: var(--accent); }
.qp-benefits strong { color: var(--ink); }
.qp-prose { max-width: 780px; margin: 0 auto; padding: 72px 0; font-size: 16px; color: var(--text); }
.qp-prose h2, .qp-prose h3, .qp-prose h4 { margin: 1.6em 0 .6em; line-height: 1.25; }
.qp-prose h2 { font-size: 28px; letter-spacing: -.03em; }
.qp-prose h3 { font-size: 21px; }
.qp-prose h4 { font-size: 18px; }
.qp-prose p { margin: 0 0 1em; }
.qp-prose ul, .qp-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.qp-prose ul { list-style: disc; }
.qp-prose ol { list-style: decimal; }
.qp-prose li { margin-bottom: .4em; }
.qp-prose a { text-decoration: underline; text-underline-offset: 3px; }
.qp-prose table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: 15px; }
.qp-prose th, .qp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.qp-prose th { color: var(--ink); font-weight: 500; }
.qp-prose img { max-width: 100%; height: auto; }

@media (max-width: 1099px) {
  .qp-layout { grid-template-columns: 1fr; }
  .qp-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .qp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .qp-stat, .qp-path { max-width: 560px; }
}
@media (max-width: 767px) {
  .qp-hero { padding: 28px 0 28px; }
  .qp-layout { gap: 20px; padding-top: 20px; padding-bottom: 48px; }
  .qp-layout > .qp-main { margin: 0 -20px; }
  .qp-card { margin-bottom: 8px; padding: 22px 20px; border-width: 1px 0; border-radius: 0; }
  .qp-topic { margin: 0 20px 16px; }
  .qp-pager { margin: 20px 20px 0; padding: 16px; }
  .qp-q { font-size: 16px; }
  .qp-opt { padding: 11px 12px; }
  .qp-side { grid-template-columns: 1fr; }
  .qp-pager .qp-btn, .qp-pager .qp-spacer { flex: 1; min-width: 0; }
  .qp-pager-info { display: none; }
  .qp-stat-num { font-size: 40px; }
  .qp-banner { padding: 22px 20px; }
  .qp-banner .qp-btn { width: 100%; }
  .qp-promo { padding: 56px 0; }
  .qp-promo-grid { grid-template-columns: 1fr; gap: 28px; }
  .qp-prose { padding: 48px 0; }
}


/* --------------------------------------------------------------------------
   Option B: free practice page layout (questionspractice.php, .qp--b)
   Charcoal header with exam code and key facts, tab bar, crimson promo band.
   The header colours also apply to complete_questions.php.
   -------------------------------------------------------------------------- */
.qp-hero { padding: 32px 0 40px; background: var(--night); border-bottom: 0; color: var(--on-night-muted); }
.qp-hero h1 { color: var(--on-night); font-weight: 700; }
.qp-hero .qp-crumb, .qp-hero .qp-crumb a { color: var(--on-night-muted); }
.qp-hero .qp-crumb a:hover { color: var(--on-night); }
.qp-hero .qp-chip, .qp-hero .qp-intro, .qp-hero .qp-proof, .qp-hero .qp-saved { color: var(--on-night-muted); }
.qp-hero .qp-chip .qp-i, .qp-hero .qp-proof .qp-i { color: var(--sky); }
.qp-hero .qp-access { background: rgba(255, 255, 255, .1); color: var(--on-night); }
.qp-hero .qp-path, .qp-hero .qp-stat { background: var(--night-2); color: var(--on-night-muted); }
.qp-hero .qp-path h2, .qp-hero .qp-path strong { color: var(--on-night); }

.qp-hero-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.qp-code { display: inline-block; margin-bottom: 14px; padding: 4px 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.qp--b .qp-hero h1 { margin-bottom: 8px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -.04em; }
.qp-hero-sub { font-size: 17px; }
.qp-facts { display: flex; margin: 0; border-left: 1px solid var(--night-line); }
.qp-facts div { padding: 0 24px; border-right: 1px solid var(--night-line); }
.qp-facts dt { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.qp-facts dd { margin: 4px 0 0; font-size: 30px; font-weight: 700; line-height: 1; color: var(--on-night); }
.qp-facts dd small { font-size: 15px; font-weight: 400; color: var(--on-night-muted); }
.qp-facts dd.is-text { font-size: 18px; line-height: 1.6; }

/* Tab bar */
.qp-tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.qp-tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.qp-tabs .container::-webkit-scrollbar { display: none; }
.qp-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 14px; font-weight: 500; color: var(--text); white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; }
.qp-tabs a:hover { color: var(--ink); box-shadow: inset 0 -3px 0 var(--line-2); }
.qp-tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.qp-tabs a span { padding: 1px 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.qp-intro-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-top: 32px; }
.qp-intro-row .qp-intro, .qp-intro-row .qp-proof { margin: 0; }
.qp-intro-row .qp-proof { padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--accent); }

/* Question cards */
.qp--b .qp-layout { padding-top: 28px; scroll-margin-top: calc(var(--header-h) + 60px); }
.qp--b .qp-card { border-top: 4px solid var(--night); }
.qp--b .qp-num { font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--accent); }
.qp--b .qp-letter { border-radius: 3px; }
.qp--b .qp-opt:hover { border-color: var(--ink); background: var(--bg); }
.qp--b .qp-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.qp--b .qp-check:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.qp--b .qp-check[aria-expanded="true"] { background: transparent; border-color: var(--ink); color: var(--ink); }
.qp--b .qp-answer { background: var(--score-soft); border-left-color: var(--score); }
.qp--b .qp-topic { border-left: 4px solid var(--accent); }
.qp--b .qp-pages a[aria-current="page"] { background: var(--accent); }

/* Sidebar */
.qp-box--progress { border-top: 4px solid var(--accent); }
.qp--b .qp-sim { position: relative; background: var(--night); border-color: var(--night); color: var(--on-night-muted); }
.qp--b .qp-sim h2 { color: var(--on-night); }
.qp--b .qp-sim li { color: var(--on-night); }
.qp--b .qp-sim li .qp-i { color: var(--sky); }
.qp-sim-tag { display: inline-block; margin-bottom: 8px; padding: 1px 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Promo band: crimson */
.qp--b .qp-promo { background: var(--accent); border: 0; color: rgba(255, 255, 255, .88); }
.qp--b .qp-promo h2 { color: #fff; font-weight: 700; }
.qp--b .qp-promo p { color: rgba(255, 255, 255, .88); }
.qp--b .qp-promo .qp-btn { background: #fff; border-color: #fff; color: var(--ink); }
.qp--b .qp-promo .qp-btn:hover { background: var(--night); border-color: var(--night); color: #fff; }
.qp--b .qp-benefits li, .qp--b .qp-benefits li:first-child { border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .88); }
.qp--b .qp-benefits strong { display: block; color: #fff; }
.qp--b .qp-benefits .qp-i { color: #fff; }

@media (max-width: 991px) {
  .qp-intro-row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 767px) {
  .qp-hero { padding: 24px 0 28px; }
  .qp-facts { width: 100%; border-left: 0; }
  .qp-facts div { flex: 1; padding: 0 12px; }
  .qp-facts div:first-child { padding-left: 0; }
  .qp-facts div:last-child { border-right: 0; }
  .qp-facts dd { font-size: 24px; }
  .qp-facts dd.is-text { font-size: 14px; }
  .qp-tabs a { padding: 14px 10px; font-size: 15px; }
  .qp-intro-row { padding-top: 24px; }
}

/* --------------------------------------------------------------------------
   Option B: topic list, description button and end-of-free card
   (base styles are in css/practice-topics.css, which loads after this file,
   so these use "body" to win)
   -------------------------------------------------------------------------- */
body .qp-rail .qp-topics { border-top: 4px solid var(--accent); border-radius: var(--r-lg); }
body .qp-rail .qp-topics h2 { font-weight: 700; }
body .qp-rail .qp-topics-list a { border-radius: var(--r-sm); }
body .qp-rail .qp-topics-count { border-radius: var(--r-sm); }
body .qp-rail .qp-topics-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
body .qp-rail .qp-topics-list a[aria-current="page"] .qp-topics-count { background: var(--accent); border-color: var(--accent); color: #fff; }
body .qp-topic summary > span.qp-topic-toggle { border-radius: var(--r-sm); }
body .qp-unlock { border-radius: var(--r-lg); border-left: 6px solid var(--accent); }
body .qp-unlock-ico { border-radius: var(--r-sm); color: #fff; }
body .qp-hero-topic b { color: #fff; }
body .qp-layout--rail .qp-box { border-radius: var(--r-lg); }
@media (max-width: 767px) {
  /* Phones: only the topic list above the questions; the crimson band below covers the mock exam */
  .qp--b .qp-rail .qp-box--progress, .qp--b .qp-rail .qp-sim { display: none; }
}


/* ==========================================================================
   7h. Timed exam simulator (realexams.php, rx-)
   ========================================================================== */
.rx { min-height: 70vh; padding-bottom: 32px; line-height: 1.65; }

/* Exam bar */
.rx-bar { position: sticky; top: 0; z-index: 1031; background: var(--surface); border-bottom: 1px solid var(--line); }
.rx-bar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.rx-title { flex: 1; min-width: 0; }
.rx-title small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rx-title strong { display: block; overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.rx-count { font-size: 15px; white-space: nowrap; color: var(--muted); }
.rx-count b { color: var(--ink); }
.rx-timer { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rx-timer.is-warn { background: var(--warn-soft); color: var(--warn); }
.rx-timer.is-danger { background: var(--bad); color: #fff; }
.rx-progress { height: 3px; background: var(--line); }
.rx-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* Buttons specific to the simulator */
.rx-btn-tool { min-height: 40px; padding: 0 14px; background: transparent; border-color: var(--line-2); color: var(--ink); }
.rx-btn-tool:hover { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.rx-btn-end { min-height: 40px; padding: 0 14px; background: transparent; border-color: var(--bad-line); color: var(--bad); }
.rx-btn-end:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.rx-btn-danger { background: var(--bad); border-color: var(--bad); }
.rx-btn-danger:hover { background: #932716; border-color: #932716; }
.rx-btn[disabled], .rx-btn.is-disabled { opacity: .45; pointer-events: none; }

/* Question card */
.rx-wrap { max-width: 860px; margin: 0 auto; padding-top: 24px; }
.rx-wrap.is-wide { max-width: 1200px; }
.rx-card { padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rx-num { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.rx-type { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.rx-q { font-size: 17px; line-height: 1.65; color: var(--ink); }
.rx-q p { margin: 0 0 .6em; }
.rx-q p:last-child { margin-bottom: 0; }
.rx-q img { width: auto; max-width: 100%; max-height: 45vh; height: auto; margin: 8px 0; border-radius: var(--r-sm); }
.rx-opts { display: grid; gap: 8px; margin-top: 18px; }
.rx-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer; transition: border-color .15s, background-color .15s; }
.rx-opt:hover { border-color: var(--ink); }
.rx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rx-letter { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); }
.rx-opt-text { min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
.rx-opt-text p { display: inline; margin: 0; }
.rx-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.rx-opt:has(input:checked) .rx-letter { background: var(--accent); border-color: var(--accent); color: #fff; }
.rx-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-textarea { width: 100%; min-height: 140px; margin-top: 20px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.rx-legacy { margin-top: 20px; }
.rx-notfound { text-align: center; color: var(--muted); }

.rx-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rx-nav .rx-btn { min-width: 140px; }
.rx-msg { order: -1; flex-basis: 100%; font-size: 14px; text-align: center; }
.rx-msg:empty { display: none; }
.rx-msg.is-error { color: var(--bad); }
/* Question buttons stay visible at the bottom of the screen */
.rx-nav--sticky { position: sticky; bottom: 0; z-index: 5; margin: 24px -32px -28px; padding: 14px 32px; background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.rx-nav--sticky.is-stuck { border-radius: 0; box-shadow: 0 -1px 0 var(--line), 0 -12px 24px rgba(20, 26, 24, .06); }
.rx-hint { margin-top: 16px; font-size: 13px; text-align: center; color: var(--muted); }
.rx-hint b { color: var(--ink); }

/* Long questions: question left, options right on wide screens */
@media (min-width: 1100px) {
  .rx-split .rx-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .rx-split .rx-opts { margin-top: 0; }
  .rx-split .rx-answers { padding-left: 32px; border-left: 1px solid var(--line); }
}

/* Dialogs: end exam, question navigator */
.rx-dialog { inset: 0; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.rx-dialog::backdrop { background: rgba(20, 26, 24, .5); }
.rx-dialog-body { padding: 28px; }
.rx-dialog h2 { margin-bottom: 8px; font-size: 20px; }
.rx-dialog p { font-size: 15px; color: var(--muted); }
.rx-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.rx-dialog-stats { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.rx-dialog-stats b { color: var(--ink); }
.rx-panel { width: min(560px, calc(100% - 24px)); }
.rx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rx-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.rx-x:hover { background: var(--surface-2); }
.rx-panel .rx-tiles { max-height: 50vh; overflow: auto; padding: 4px; }

/* Navigator, flags and review */
.rx-tools { display: flex; gap: 8px; }
.rx-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 500; line-height: 1; color: var(--muted); }
.rx-btn-flagged.has-flags { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.rx-btn-flagged.has-flags:hover { border-color: var(--warn); color: var(--warn); }
.rx-btn-flagged.has-flags .rx-badge { background: var(--warn-mark); color: #fff; }
.rx-btn-flagged.has-flags .rx-i { color: var(--warn); }
.rx-empty { margin-top: 12px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14px; text-align: center; color: var(--muted); }
.rx-flag { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.rx-flag .rx-i { width: 15px; height: 15px; }
.rx-flag:hover { border-color: var(--warn); color: var(--warn); }
.rx-flag[aria-pressed="true"] { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.rx-flag[aria-pressed="true"] .rx-i { fill: currentColor; }
.rx-head-right { display: flex; align-items: center; gap: 8px; }
.rx-clear { padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rx-clear:hover { color: var(--ink); }
.rx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.rx-tile { position: relative; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.rx-tile:hover { border-color: var(--ink); }
.rx-tile.is-answered { background: var(--accent); border-color: var(--accent); color: #fff; }
.rx-tile.is-flagged::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 0 var(--r) 0 var(--r-sm); background: var(--warn-mark); }
.rx-tile.is-current { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.rx-tile[hidden] { display: none; }
.rx-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; font-size: 13px; color: var(--muted); }
.rx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rx-legend i { position: relative; display: inline-block; width: 14px; height: 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); }
.rx-legend i.a { background: var(--accent); border-color: var(--accent); }
.rx-legend i.f::after { content: ""; position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; border-radius: 0 4px 0 4px; background: var(--warn-mark); }
.rx-legend i.c { box-shadow: 0 0 0 1px var(--surface), 0 0 0 2px var(--ink); }
.rx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 4px; }
.rx-stat { padding: 16px; border-radius: var(--r); background: var(--bg); text-align: center; }
.rx-stat b { display: block; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.rx-stat span { font-size: 13px; color: var(--muted); }
.rx-stat.warn b { color: var(--warn); }
.rx-stat.bad b { color: var(--bad); }
.rx-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.rx-filter button, .rd-filter button { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text); cursor: pointer; }
.rx-filter button:hover, .rd-filter button:hover { border-color: var(--ink); }
.rx-filter button[aria-pressed="true"], .rd-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rx-review h1 { margin-bottom: 6px; font-size: 28px; letter-spacing: -.03em; }
.rx-review > p { color: var(--muted); }
.rx-alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); font-size: 14px; color: var(--warn); }

@media (max-width: 767px) {
  .rx-bar-inner { flex-wrap: wrap; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
  .rx-title { display: none; }
  .rx-count { flex: 1; min-width: 0; font-size: 14px; }
  .rx-timer { height: 36px; gap: 6px; padding: 0 10px; font-size: 15px; }
  .rx-tools { gap: 6px; }
  .rx-btn-tool, .rx-btn-end { min-height: 36px; gap: 5px; padding: 0 9px; }
  .rx-btn-tool span, .rx-btn-end span { display: none; }
  .rx-badge { min-width: 20px; height: 20px; font-size: 11px; }
  .rx-wrap { padding-top: 0; }
  .rx-wrap > .rx-card { margin: 0 -20px; border-width: 0 0 1px; border-radius: 0; }
  .rx-card { padding: 20px; }
  .rx-card-head { flex-wrap: wrap; }
  .rx-q { font-size: 16px; }
  .rx-opt { padding: 10px 12px; font-size: 15px; }
  .rx-nav .rx-btn { flex: 1; min-width: 0; }
  .rx-nav--sticky { gap: 8px; margin: 20px -20px -20px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; }
  .rx-nav--sticky .rx-btn-prev { flex: 0 0 52px; padding: 0; }
  .rx-nav--sticky .rx-btn-prev span { display: none; }
  .rx-nav--sticky .rx-clear { flex: none; }
  .rx-stats { gap: 8px; }
  .rx-stat { padding: 12px 8px; }
  .rx-stat b { font-size: 22px; }
  .rx-review h1 { font-size: 22px; }
  .rx-hint { padding: 0 4px; }
}
@media (max-width: 400px) { .rx-hide-xs { display: none; } }


/* ==========================================================================
   7i. Exam result details (resultdetails_realexams.php, rd-)
   ========================================================================== */

.rd { padding: 40px 0 80px; line-height: 1.6; }
.rd a { text-decoration: none; }
.rd-i { width: 18px; height: 18px; }
.rd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.rd-card h2 { font-size: 18px; margin-bottom: 4px; }
.rd-sub { font-size: 14px; color: var(--muted); margin: 0; }
.rd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rd-kicker { display: block; margin-bottom: 8px; }
.rd-head h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.rd-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.rd-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.rd-chip .rd-i { width: 15px; height: 15px; color: var(--accent); }
.rd-hero { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 40px; align-items: center; }
.rd-ring { position: relative; width: 180px; height: 180px; }
.rd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd-ring-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.rd-ring-val { fill: none; stroke: var(--score); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; }
.rd-ring-mark { stroke: var(--ink); stroke-width: 3; }
.rd-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rd-ring-center b { font-size: 44px; line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -.03em; }
.rd-ring-center span { margin-top: 6px; font-size: 13px; color: var(--muted); }
.rd-verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.rd-verdict .rd-i { width: 18px; height: 18px; stroke-width: 2.4; }
.rd-verdict.pass { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.rd-verdict.fail { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); }
.rd-summary { margin: 14px 0 0; font-size: 16px; color: var(--text); }
.rd-summary b { color: var(--ink); font-weight: 500; }
.rd-stack { display: flex; gap: 2px; height: 14px; margin: 22px 0 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.rd-stack span { display: block; height: 100%; }
.rd-stack .c { background: var(--score); }
.rd-stack .w { background: var(--bad); }
.rd-stack .b { background: var(--blank); }
.rd-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.rd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rd-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rd-legend b { color: var(--ink); font-weight: 500; }
.rd-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 24px; }
.rd-tile { padding: 16px; border-radius: var(--r); background: var(--bg); }
.rd-tile small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rd-tile small .rd-i { width: 15px; height: 15px; }
.rd-tile b { display: block; margin-top: 4px; font-size: 24px; line-height: 1.2; color: var(--ink); font-weight: 500; }
.rd-tile em { font-style: normal; font-size: 13px; color: var(--muted); }
.rd-tile.c small .rd-i { color: var(--score); }
.rd-tile.w small .rd-i { color: var(--bad); }
.rd-tile.b small .rd-i { color: var(--muted); }
.rd-tile.t small .rd-i { color: var(--ink); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.rd-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 20px; margin-top: 20px; }
.rd-topics { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.rd-topic-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.rd-topic-row span { color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.rd-topic-row b { flex: none; font-weight: 500; color: var(--ink); }
.rd-topic-row b small { font-weight: 400; color: var(--muted); }
.rd-tbar { position: relative; height: 10px; border-radius: 999px; background: var(--line); }
.rd-tbar span { display: block; height: 100%; border-radius: 999px; background: var(--score); }
.rd-tbar span.low { background: var(--bad); }
.rd-tbar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.rd-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.rd-note i { display: inline-block; width: 2px; height: 14px; background: var(--ink); }
.rd-hist { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 200px; margin-top: 28px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.rd-hist-col { position: relative; flex: 1; max-width: 44px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.rd-hist-col span { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--score-line); transition: background-color .15s; }
.rd-hist-col.is-last span { background: var(--score); }
.rd-hist-col:hover span { background: var(--accent-ink); }
.rd-hist-col b { position: absolute; z-index: 2; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink); transform: translateY(calc(-100% - 4px)); padding: 0 3px; border-radius: 4px; background: var(--surface); }
.rd-hist-line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--ink); opacity: .55; pointer-events: none; }
.rd-hist-line em { position: absolute; right: 0; top: -22px; font-style: normal; font-size: 12px; color: var(--ink); background: var(--surface); padding: 0 4px; }
.rd-hist-x { display: flex; gap: 10px; padding: 6px 4px 0; }
.rd-hist-x span { flex: 1; max-width: 44px; text-align: center; font-size: 12px; color: var(--muted); }
.rd-tip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 10px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%,-110%); opacity: 0; transition: opacity .1s; }
.rd-review { margin-top: 20px; }
.rd-review-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rd-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-qlist { margin-top: 18px; display: grid; gap: 10px; }
.rd-q { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.rd-q summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.rd-q summary::-webkit-details-marker { display: none; }
.rd-q summary:hover { background: var(--accent-wash); }
.rd-qstate { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; }
.rd-qstate .rd-i { width: 16px; height: 16px; stroke-width: 2.4; }
.rd-q.correct .rd-qstate { background: var(--score-soft); color: var(--score); }
.rd-q.wrong .rd-qstate { background: var(--bad-soft); color: var(--bad); }
.rd-q.blank .rd-qstate { background: var(--line); color: var(--muted); }
.rd-qtitle { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-qtitle small { color: var(--muted); margin-right: 6px; }
.rd-qtag { flex: none; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; }
.rd-q.correct .rd-qtag { background: var(--score-soft); color: var(--score-ink); }
.rd-q.wrong .rd-qtag { background: var(--bad-soft); color: var(--bad); }
.rd-q.blank .rd-qtag { background: var(--line); color: var(--muted); }
.rd-q summary .rd-chev { color: var(--muted); transition: transform .15s; }
.rd-q[open] summary .rd-chev { transform: rotate(180deg); }
.rd-qbody { padding: 4px 16px 18px 56px; border-top: 1px solid var(--line); }
.rd-qtext { font-size: 15px; color: var(--ink); margin-top: 14px; }
.rd-qtext p { margin: 0 0 .6em; }
.rd-qtext img, .rd-explain img { max-width: 100%; height: auto; }
.rd-opts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rd-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.rd-opt .l { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.rd-opt .t { flex: 1; min-width: 0; padding-top: 1px; }
.rd-opt .t p { display: inline; margin: 0; }
.rd-opt .tags { display: flex; gap: 6px; flex: none; }
.rd-opt .tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.rd-opt.is-correct { border-color: var(--score-line); background: var(--score-soft); }
.rd-opt.is-correct .l { background: var(--score); border-color: var(--score); color: #fff; }
.rd-opt.is-correct .tag.ok { background: var(--score-soft); color: var(--score-ink); }
.rd-opt.is-wrong { border-color: var(--bad-line); background: var(--bad-soft); }
.rd-opt.is-wrong .l { background: var(--bad); border-color: var(--bad); color: #fff; }
.rd-opt .tag.you { background: var(--line); color: var(--ink); }
.rd-explain { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); font-size: 14px; color: var(--text); }
.rd-explain p { margin: 0 0 .6em; }
.rd-explain p:last-child { margin: 0; }
.rd-empty { display: none; padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); margin-top: 18px; }
@media (max-width: 991px) {
  .rd-grid { grid-template-columns: 1fr; }
  .rd-tiles { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 767px) {
  .rd { padding-top: 20px; }
  .rd-card { padding: 20px 16px; border-radius: var(--r-lg); }
  .rd-hero { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .rd-legend, .rd-meta { justify-content: center; }
  .rd-actions .rd-btn { flex: 1 1 100%; }
  .rd-qbody { padding-left: 16px; }
  .rd-qtag { display: none; }
  .rd-qtitle { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.45; }
  .rd-opt { flex-wrap: wrap; }
  .rd-opt .tags { width: 100%; padding-left: 34px; }
}


/* Helpers that replace old inline styles */
.rd-center { text-align: center; }
.rd-center h1 { font-size: 24px; }
.rd-center .rd-sub { margin: 8px 0 20px; }
.rd-sub--gap { margin-top: 16px; }
.rd-legend i.c { background: var(--score); }
.rd-legend i.w { background: var(--bad); }
.rd-legend i.b { background: var(--blank); }


/* ==========================================================================
   7j. Account and results pages (css was results.css)
   examsaccess, vendoraccess, examsaccessbulk, questionmode, historyresult_realexams,
   history_wrong_question, bestresult_realexams, password_update; rs-, qm-, pw-, ea-
   ========================================================================== */

.rs { padding: 40px 0 80px; line-height: 1.6; }
.rs a { text-decoration: none; }
.rs-i { width: 18px; height: 18px; }
.rs-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; }
.rs-layout > * { min-width: 0; }
.rs-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.rs-nav ul { display: grid; gap: 2px; }
.rs-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--text); transition: background-color .15s,color .15s; }
.rs-nav a:hover { background: var(--bg); color: var(--ink); }
.rs-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.rs-nav a[aria-current="page"] .rs-i { color: var(--accent); }
.rs-nav .rs-i { width: 18px; height: 18px; }
.rs-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.rs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rs-kicker { display: block; margin-bottom: 8px; }
.rs-head h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.03em; }
.rs-head p { margin: 6px 0 0; color: var(--muted); }
.rs-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.rs-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.rs-chip .rs-i { width: 15px; height: 15px; color: var(--accent); }
.rs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.rs-card + .rs-card { margin-top: 20px; }
.rs-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rs-card h2 { font-size: 18px; }
.rs-sub { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.rs-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.rs-tile { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rs-tile small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rs-tile small .rs-i { width: 15px; height: 15px; color: var(--accent); }
.rs-tile b { display: block; margin-top: 4px; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; color: var(--ink); font-weight: 500; }
.rs-tile em { font-style: normal; font-size: 13px; color: var(--muted); }
.rs-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.rs-badge .rs-i { width: 13px; height: 13px; stroke-width: 2.6; }
.rs-badge.pass { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.rs-badge.fail { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); }
.rs-ring { position: relative; flex: none; width: 96px; height: 96px; }
.rs-ring--88 { width: 88px; height: 88px; }
.rs-ring--140 { width: 140px; height: 140px; }
.rs-ring--140 .rs-ring-c b { font-size: 30px; }
.rs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rs-ring .t { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.rs-ring .v { fill: none; stroke: var(--score); stroke-width: 8; stroke-linecap: round; }
.rs-ring .m { stroke: var(--ink); stroke-width: 2.5; }
.rs-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rs-ring-c b { font-size: 22px; line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.rs-ring-c span { margin-top: 4px; font-size: 11px; color: var(--muted); }
.rs-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rs-filter label { font-size: 14px; color: var(--muted); margin: 0; }
.rs-select { height: 42px; min-width: 240px; max-width: 100%; padding: 0 36px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236c727c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.rs-trend { position: relative; margin-top: 8px; }
.rs-trend-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rs-trend-svg .g { stroke: var(--line); stroke-width: 1; }
.rs-trend-svg .ax { font-size: 11px; fill: var(--muted); }
.rs-trend-svg .p { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: .6; }
.rs-trend-svg .a { fill: var(--score-soft); }
.rs-trend-svg .l { fill: none; stroke: var(--score); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rs-trend-svg .d { fill: var(--surface); stroke: var(--score); stroke-width: 2.5; }
.rs-trend-svg .d.last { fill: var(--score); }
.rs-trend-svg .pt { font-size: 12px; font-family: var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.rs-trend-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent-ink); transform: translate(-50%,-50%); pointer-events: none; }
.rs-tip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 10px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translate(-50%,calc(-100% - 12px)); }
.rs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.rs-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.rs-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rs-table td[data-label="Time"] { white-space: nowrap; }
.rs-table tbody tr:last-child td { border-bottom: 0; }
.rs-table tbody tr:hover td { background: var(--accent-wash); }
.rs-exam b { display: block; color: var(--ink); font-weight: 500; line-height: 1.35; }
.rs-exam small { color: var(--muted); font-size: 13px; }
.rs-score { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.rs-score b { min-width: 46px; font-size: 15px; color: var(--ink); font-weight: 500; }
.rs-mbar { position: relative; flex: 1; height: 8px; min-width: 60px; border-radius: 999px; background: var(--line); }
.rs-mbar span { display: block; height: 100%; border-radius: 999px; background: var(--score); }
.rs-mbar.low span { background: var(--bad); }
.rs-mbar i { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--ink); }
.rs-cwb { display: flex; gap: 10px; white-space: nowrap; color: var(--muted); }
.rs-cwb span { display: inline-flex; align-items: center; gap: 4px; }
.rs-cwb i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.rs-cwb b { color: var(--ink); font-weight: 500; }
.rs-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.rs-empty h2 { font-size: 20px; margin-bottom: 6px; }
.rs-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.rs-pager a, .rs-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font-size: 14px; }
.rs-pager a:hover { border-color: var(--accent); color: var(--accent); }
.rs-pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rs-pager span { border: 0; }
.rs-qlist { display: grid; gap: 10px; }
.rs-q { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.rs-q summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.rs-q summary::-webkit-details-marker { display: none; }
.rs-q summary:hover { background: var(--accent-wash); }
.rs-qn { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bad-soft); color: var(--bad); font-size: 13px; font-weight: 500; }
.rs-qtitle { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.rs-qlabel { display: none; flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.rs-q[open] .rs-qtitle { display: none; }
.rs-q[open] .rs-qlabel { display: block; }
.rs-q summary .rs-chev { color: var(--muted); transition: transform .15s; }
.rs-q[open] summary .rs-chev { transform: rotate(180deg); }
.rs-qbody { padding: 4px 16px 18px 58px; border-top: 1px solid var(--line); }
.rs-qtext { font-size: 15px; color: var(--ink); margin-top: 14px; }
.rs-qtext p { margin: 0 0 .6em; }
.rs-qtext img, .rs-explain img { max-width: 100%; height: auto; }
.rs-opts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rs-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.rs-opt .l { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.rs-opt .t { flex: 1; min-width: 0; padding-top: 1px; }
.rs-opt .t p { display: inline; margin: 0; }
.rs-opt .tags { display: flex; gap: 6px; flex: none; }
.rs-opt .tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.rs-opt.is-correct { border-color: var(--score-line); background: var(--score-soft); }
.rs-opt.is-correct .l { background: var(--score); border-color: var(--score); color: #fff; }
.rs-opt.is-correct .tag.ok { background: var(--score-soft); color: var(--score-ink); }
.rs-opt.is-wrong { border-color: var(--bad-line); background: var(--bad-soft); }
.rs-opt.is-wrong .l { background: var(--bad); border-color: var(--bad); color: #fff; }
.rs-opt .tag.you { background: var(--line); color: var(--ink); }
.rs-answers { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.rs-answers b { color: var(--ink); font-weight: 500; }
.rs-explain { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); font-size: 14px; }
.rs-explain p { margin: 0 0 .6em; }
.rs-explain p:last-child { margin: 0; }
.rs-hero { display: flex; align-items: center; gap: 28px; }
.rs-hero-body { flex: 1; min-width: 0; }
.rs-hero-body h2 { font-size: 20px; margin: 8px 0 4px; }
.rs-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.rs-stats b { color: var(--ink); font-weight: 500; }
.rs-best-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.rs-best { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rs-best-top { display: flex; gap: 16px; align-items: center; }
.rs-best-top h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.rs-best-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.rs-best-meta div { font-size: 13px; color: var(--muted); }
.rs-best-meta b { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.rs-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }
.rs-delta.up { color: var(--ok); }
.rs-delta.down { color: var(--bad); }
.rs-delta .rs-i { width: 14px; height: 14px; stroke-width: 2.4; }
.rs-best-actions { display: flex; gap: 8px; margin-top: auto; }
.rs-best-actions .rs-btn { flex: 1; }
@media (max-width: 1099px) {
  .rs-tiles { grid-template-columns: repeat(2,1fr); }
  .rs-best-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .rs-layout { grid-template-columns: 1fr; gap: 16px; }
  .rs-nav { position: static; }
  .rs-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .rs-nav ul::-webkit-scrollbar { display: none; }
  .rs-nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 767px) {
  .rs { padding-top: 16px; }
  .rs-card { padding: 18px 16px; border-radius: var(--r-lg); }
  .rs-tile { padding: 14px; }
  .rs-tile b { font-size: 22px; }
  .rs-select { min-width: 0; flex: 1; }
  .rs-filter { width: 100%; }
  .rs-table thead { display: none; }
  .rs-table, .rs-table tbody, .rs-table tr, .rs-table td { display: block; width: 100%; }
  .rs-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rs-table tbody tr:last-child { border-bottom: 0; }
  .rs-table td { padding: 4px 0; border: 0; }
  .rs-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .rs-table td[data-label]::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
  .rs-table td.rs-td-action { padding-top: 10px; }
  .rs-table td.rs-td-action .rs-btn { width: 100%; }
  .rs-score { min-width: 0; flex: 1; justify-content: flex-end; }
  .rs-score .rs-mbar { max-width: 120px; }
  .rs-qbody { padding-left: 16px; }
  .rs-opt { flex-wrap: wrap; }
  .rs-opt .tags { width: 100%; padding-left: 34px; }
  .rs-hero { flex-direction: column; text-align: center; gap: 16px; }
  .rs-stats { justify-content: center; }
  .rs-best-meta { grid-template-columns: repeat(3,1fr); }
}
.rs-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r); background: var(--accent-soft); font-size: 14px; color: var(--ink); }
.rs-info .rs-i { color: var(--accent); margin-top: 2px; }
.rs-info a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.rs .rs-section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 32px 0 12px; }
.rs .rs-tiles + .rs-section-title { margin-top: 8px; }
.rs-section-title span { font-size: 13px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.rs-access { display: grid; gap: 12px; }
.rs-acc { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px 24px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rs-acc h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.rs-acc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.rs-acc-meta b { color: var(--ink); font-weight: 500; }
.rs-acc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rs-acc-actions form { margin: 0; }
.rs-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.rs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rs-status.active { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.rs-status.expired { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); }
.rs-status.none { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.rs-btn-renew { background: var(--bad); border-color: var(--bad); }
.rs-btn-renew:hover { background: var(--bad); border-color: var(--bad); }
.rs-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; min-width: 260px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--muted); }
.rs-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.rs-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.rs .rs-search input:focus-visible { outline: none; }
.rs-search input { padding: 0; box-shadow: none; }
.rs-vgrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.rs-vcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rs-vicon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.rs-vicon .rs-i { width: 24px; height: 24px; }
.rs-vcard h3 { font-size: 18px; margin-bottom: 6px; }
.rs-vcard .rs-btn { margin-top: auto; width: 100%; }
.rs-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 24px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--text); }
.rs-promo h2 { font-size: 18px; margin-bottom: 4px; }
.rs-promo p { margin: 0; font-size: 14px; }
@media (max-width: 767px) {
  .rs-acc { grid-template-columns: 1fr; padding: 16px; }
  .rs-acc-actions { justify-content: stretch; }
  .rs-acc-actions > * { flex: 1; }
  .rs-acc-actions .rs-btn { width: 100%; }
  .rs-search { min-width: 0; width: 100%; }
}
.qm-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.qm-mode { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.qm-mode-exam { position: relative; border-color: var(--ink); }
.qm-mode-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qm-mode-head h2 { font-size: 20px; }
.qm-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.qm-icon .rs-i { width: 24px; height: 24px; }
.qm-mode-exam .qm-icon { background: var(--ink); color: #fff; }
.qm-tag { position: absolute; top: -11px; right: 20px; padding: 2px 10px; background: var(--warn-soft)!important; border-radius: 999px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); font-size: 12px; font-weight: 500; }
.qm-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.qm-facts li { padding: 12px; border-radius: var(--r); background: var(--bg); }
.qm-facts span { display: block; font-size: 12px; color: var(--muted); }
.qm-facts b { display: block; margin-top: 2px; font-size: 15px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.qm-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qm-points li { display: flex; gap: 10px; font-size: 14px; color: var(--text); }
.qm-points .rs-i { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.qm-progress { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.qm-progress-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.qm-progress-row b { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.qm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.qm-actions .rs-btn { flex: 1 1 auto; }
@media (max-width: 1099px) {
  .qm-modes { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .qm-mode { padding: 18px 16px; }
  .qm-tag { right: 12px; }
  .qm-facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .qm-facts li { padding: 10px 8px; }
  .qm-facts b { font-size: 14px; }
  .qm-actions .rs-btn { flex: 1 1 100%; }
}
.pw-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; align-items: start; }
.pw-field { margin-bottom: 18px; }
.pw-field > label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pw-static { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.pw-input { position: relative; }
.pw-input input { width: 100%; height: 46px; padding: 0 48px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s,box-shadow .15s; }
.pw-input input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.rs .pw-input input:focus-visible { outline: none; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover { background: var(--bg); color: var(--ink); }
.pw-eye.is-on { color: var(--accent); }
.pw-meter { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 10px; }
.pw-meter span { height: 4px; border-radius: 999px; background: var(--line); }
.pw-meter span.w1 { background: var(--bad); }
.pw-meter span.w2 { background: var(--warn-mark); }
.pw-meter span.w3 { background: var(--accent); }
.pw-meter span.w4 { background: var(--ok); }
.pw-strength { min-height: 20px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pw-rules li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat; }
.pw-match { min-height: 20px; margin-top: 6px; font-size: 13px; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--bad); }
.pw-submit { width: 100%; margin-top: 4px; }
.pw-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r); font-size: 14px; }
.pw-alert .rs-i { margin-top: 2px; }
.pw-alert.ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); }
.pw-alert.bad { background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); }
.pw-tips h2 { font-size: 17px; margin-bottom: 14px; }
.pw-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pw-tips li { display: flex; gap: 10px; font-size: 14px; }
.pw-tips li .rs-i { color: var(--ok); margin-top: 2px; }
@media (max-width: 991px) {
  .pw-grid { grid-template-columns: 1fr; }
}
.pw-grid > .rs-card { margin-top: 0; }
.ea-timer { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px 4px 6px; border-radius: var(--r); border: 1px solid; font-variant-numeric: tabular-nums; }
.ea-timer-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--surface); }
.ea-timer-ico .rs-i { width: 17px; height: 17px; }
.ea-timer-txt { display: flex; flex-direction: column; line-height: 1.2; }
.ea-timer b { font-size: 15px; font-weight: 500; color: var(--ink); min-width: 7.5em; }
.ea-timer small { font-size: 12px; color: var(--muted); }
.ea-timer.ok { background: var(--ok-soft); border-color: var(--ok-line); }
.ea-timer.ok .ea-timer-ico { color: var(--ok); }
.ea-timer.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.ea-timer.warn .ea-timer-ico { color: var(--warn); }
.ea-timer.warn b { color: var(--warn); }
.ea-timer.bad { background: var(--bad-soft); border-color: var(--bad-line); }
.ea-timer.bad .ea-timer-ico { color: var(--bad); }
.ea-timer.bad b { color: var(--bad); }
@media (max-width: 767px) {
  .ea-timer { width: 100%; }
}

/* Exam access: "just made a purchase?" notice */
.rs .ea-notice { background: var(--warn-soft); color: var(--warn); }
.rs .ea-notice strong { color: var(--ink); }
.rs .ea-notice svg { color: var(--warn); }
.rs .ea-notice a { color: var(--warn); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.rs .ea-notice a:hover { color: var(--ink); }

/* Small layout helpers used in the account pages (replace old inline styles) */
.rs-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14px; color: var(--accent-ink); }
.rs-back:hover { color: var(--ink); }
.rs-empty .rs-btn { margin-top: 12px; }
.rs-badge.best { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.rs-inline { display: inline; }
.rs-sub--gap { margin-top: 6px; }
.rs-sub--gap-lg { margin-top: 16px; }
.rs-tiles--gap { margin-top: 20px; }
.rs-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.rs-section-head { margin-top: 8px; }
.rs-section-head h2 { font-size: 18px; }
.rs-card-head--tight { margin-bottom: 4px; }
.rs-card--gap { margin-top: 20px; }
.rs-minw0 { min-width: 0; }
.rs-tile b.rs-tile-text { margin-top: 8px; font-size: 16px; line-height: 1.35; letter-spacing: 0; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rs-table-wrap { overflow: visible; }
.rs-td-action { text-align: right; }
.rs-cwb i.c { background: var(--score); }
.rs-cwb i.w { background: var(--bad); }
.rs-cwb i.b { background: var(--blank); }
.rs-cwb--legend { margin-top: 14px; font-size: 13px; }
.rs-vicon--center { margin: 0 auto 14px; }
.rs-vcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 1099px) { .rs-tiles--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .rs-tiles--3 { grid-template-columns: 1fr; } }


/* ==========================================================================
   7k. Older and test pages
   complete _questions1.php, questiondemo.php, ex_test.php, tst.php, drag_test.php,
   result_realexams_wrongquestion.php, resultdetails1_realexams.php, packages.php
   ========================================================================== */

/* Answer text from the database is inline on these pages */
.lq-inline-p p { display: inline; }
/* Question text that should not be copied */
.copycontent { -webkit-user-select: none; -webkit-touch-callout: none; user-select: none; }

/* Old practice table (complete _questions1.php) */
.lq-page { padding: 32px 0 64px; }
.lq-table { line-height: 1.5; }
.lq-table tr.active td, .lq-center { text-align: center; }
.lq-total { color: var(--bad); }
.lq-qno { font-style: italic; color: var(--accent-ink); }
.lq-qno strong { color: var(--bad); }
.lq-topic { font-size: 22px; }
.lq-ink { color: var(--ink); }
.lq-opt-letter, .lq-hl { color: var(--accent-ink); }
.lq-answer { padding: 16px; text-align: left; border: 2px solid var(--line); color: var(--text); }
.lq-answer-title { color: var(--warn); }
.lq-nav-btn { width: 120px; }
.lq-spacer { margin-top: 100px; }
.lq-spacer-lg { margin-top: 300px; }
.lq-demo-table { text-align: center; border: 2px solid var(--line); color: var(--text); }

/* Result tables (result_realexams_wrongquestion.php, resultdetails1_realexams.php) */
.bg-correct { background: var(--ok-soft) !important; }
.bg-wrong { background: var(--bad-soft) !important; }
.lq-bordered .bg-correct { border-left: 4px solid var(--ok); }
.lq-bordered .bg-wrong { border-left: 4px solid var(--bad); }
.lq-col-no { width: 60px; }
.lq-col-result { width: 120px; }
.lq-col-action { width: 150px; }
.lq-qcell { max-height: 70px; overflow: auto; }

/* ex_test.php */
.table-danger td { color: var(--bad) !important; font-weight: 500; }
.table-success td { color: var(--ok) !important; font-weight: 500; }

/* drag_test.php */
.dt-page { max-width: 700px; margin: 50px auto; padding: 0 20px; text-align: center; }
.dt-question { margin-bottom: 20px; font-size: 22px; color: var(--ink); }
.dt-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.dt-option { width: 120px; height: 120px; border: 2px dashed var(--line-3); border-radius: var(--r); overflow: hidden; cursor: grab; }
.dt-option img { width: 100%; height: 100%; object-fit: cover; }
.dt-drop { display: flex; align-items: center; justify-content: center; width: 200px; height: 200px; margin: 40px auto; border: 2px dashed var(--line-3); border-radius: var(--r-lg); font-size: 18px; color: var(--muted); }
.dt-drop.correct { border-color: var(--ok); color: var(--ok); }
.dt-drop.wrong { border-color: var(--bad); color: var(--bad); }

/* Bundle packages (packages.php) */
.pk { padding: 64px 0 88px; }
.pk-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.pk-head h1 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; }
.pk-head p { margin-bottom: 12px; color: var(--muted); }
.pk-head strong { color: var(--ink); }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pk-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pk-card.is-popular { border-color: var(--ink); }
.pk-name { font-size: 20px; }
.pk-term { color: var(--muted); }
.pk-term b { color: var(--accent-ink); }
.pk-price { margin: 12px 0 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.pk-list { display: grid; gap: 10px; padding-top: 12px; font-size: 15px; }
.pk-list li { display: flex; gap: 10px; }
.pk-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pk-list strong { color: var(--ink); }
@media (max-width: 991px) {
  .pk-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 575px) {
  .pk { padding: 40px 0 56px; }
  .pk-card { padding: 24px 20px; }
}


/* ==========================================================================
   7l. All exams page (allexams.php, ax-) — Option B
   Charcoal header with filter, exam cards (grid or list view), crimson accents.
   ========================================================================== */
.ax { background: var(--bg); }
.ax-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent); color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ax-btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.ax-btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.ax-btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ax-btn .ax-i { width: 16px; height: 16px; }

/* Header */
.ax-hero { padding: 36px 0 0; color: var(--on-night-muted); background: var(--night); border-bottom: 6px solid var(--accent); }
.ax-crumb { display: flex; gap: 8px; margin-bottom: 28px; font-size: 14px; }
.ax-crumb a { color: var(--on-night-muted); }
.ax-crumb a:hover { color: var(--on-night); }
.ax-hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.ax-eyebrow { display: inline-block; margin-bottom: 14px; padding: 2px 10px; background: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ax-hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--on-night); }
.ax-lead { max-width: 560px; margin-top: 16px; font-size: 18px; line-height: 1.6; }
.ax-facts { display: flex; margin: 0; }
.ax-facts div { padding: 0 28px; border-left: 1px solid var(--night-line); }
.ax-facts dt { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ax-facts dd { margin: 6px 0 0; font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--on-night); }

/* Search sits on the edge between the dark header and the page */
.ax-search { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 40px 0 -38px; padding: 8px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.ax-search:focus-within { border-color: var(--accent); box-shadow: var(--ring), var(--shadow-soft); }
.ax-search label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin: 0; color: var(--muted); }
.ax-search .ax-i { width: 20px; height: 20px; }
.ax-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }
.ax-count { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 13px; font-weight: 500; color: var(--accent-ink); white-space: nowrap; }

/* Toolbar */
.ax-body { padding: 72px 0 72px; }
.ax-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ax-toolbar-text { font-size: 15px; color: var(--muted); }
.ax-toolbar-text b { color: var(--ink); }
.ax-tools { display: flex; align-items: center; gap: 12px; }
.ax-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.ax-sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23626b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font-size: 14px; color: var(--ink); cursor: pointer; }
.ax-sort select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ax-view { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.ax-view button { display: grid; place-items: center; width: 34px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.ax-view button:hover { color: var(--ink); }
.ax-view button[aria-pressed="true"] { background: var(--night); color: #fff; }

/* Exam cards */
.ax-group + .ax-group { margin-top: 48px; }
.ax-group-title { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 700; }
.ax-group-title span { color: var(--muted); font-weight: 400; }
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.ax-card { display: flex; flex-direction: column; height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--night); padding: 22px 20px; border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ax-card:hover { border-color: var(--line-2); border-top-color: var(--accent); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.ax-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.ax-code { padding: 6px 12px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.ax-vendor { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ax-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.ax-card h3 a { color: var(--ink); }
.ax-card h3 a:hover { color: var(--accent); }
.ax-old { margin-top: 4px; font-size: 13px; color: var(--muted); }
.ax-feats { display: grid; gap: 8px; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.ax-feats li { display: flex; align-items: center; gap: 8px; }
.ax-feats .ax-i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }
.ax-feats li.is-paid { color: var(--muted); }
.ax-feats li.is-paid .ax-i { color: var(--accent); stroke-width: 2; }
.ax-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; }
.ax-actions .ax-btn { min-width: 0; padding: 0 12px; font-size: 14px; }

/* List view */
.ax-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.ax-grid.is-list .ax-card { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 16px 20px; border-radius: var(--r-sm); border-top-width: 1px; border-left: 4px solid var(--night); }
.ax-grid.is-list .ax-card:hover { transform: none; }
.ax-grid.is-list .ax-card-top { margin: 0; }
.ax-grid.is-list .ax-vendor { display: none; }
.ax-grid.is-list .ax-old { grid-column: 2; }
.ax-grid.is-list .ax-feats { display: flex; gap: 16px; margin: 0; padding: 0; border: 0; }
.ax-grid.is-list .ax-feats li:nth-child(2) { display: none; }
.ax-grid.is-list .ax-actions { display: flex; }

/* Empty state */
.ax-empty { max-width: 520px; margin: 24px auto 0; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.ax-empty h2 { margin-bottom: 8px; font-size: 22px; }
.ax-empty p { margin-bottom: 20px; color: var(--muted); }
.ax-empty a { text-decoration: underline; text-underline-offset: 3px; }

/* Info strip */
.ax-info { padding: 0 0 88px; }
.ax-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ax-info article { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ax-info-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--night); color: #fff; }
.ax-info h3 { margin-bottom: 6px; font-size: 18px; }
.ax-info p { font-size: 15px; color: var(--muted); }
.ax-info .ax-ask { background: var(--accent); border-color: var(--accent); color: rgba(255, 255, 255, .88); }
.ax-info .ax-ask h3 { color: #fff; }
.ax-info .ax-ask p { color: rgba(255, 255, 255, .88); }
.ax-info .ax-ask .ax-info-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.ax-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ax-link:hover { color: var(--night); }
.ax-link .ax-i { width: 16px; height: 16px; }

@media (max-width: 991px) {
  .ax-info-grid { grid-template-columns: 1fr; }
  .ax-grid.is-list .ax-card { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .ax-grid.is-list .ax-feats { display: none; }
}
@media (max-width: 767px) {
  .ax-hero { padding-top: 24px; }
  .ax-crumb { margin-bottom: 20px; }
  .ax-lead { font-size: 16px; }
  .ax-facts { width: 100%; }
  .ax-facts div { flex: 1; padding: 0 14px; }
  .ax-facts div:first-child { padding-left: 0; border-left: 0; }
  .ax-facts dd { font-size: 26px; }
  .ax-search { margin-top: 28px; padding: 6px 14px; border-radius: var(--r-lg); }
  .ax-search input { font-size: 16px; }
  .ax-count { display: none; }
  .ax-body { padding: 60px 0 56px; }
  .ax-view { display: none; }
  .ax-grid.is-list .ax-card { grid-template-columns: 1fr; gap: 12px; }
  .ax-grid.is-list .ax-old { grid-column: auto; }
  .ax-info { padding-bottom: 56px; }
  .ax-info article { padding: 24px 20px; }
}


/* ==========================================================================
   8. Data-driven sizes
   PHP writes a whole-number percentage into the attribute, e.g. <span data-pw="62"> is 62% wide.
     data-pw = width, data-pl = left, data-ph = height, data-pb = bottom
   ========================================================================== */
[data-pw="0"]{width:0%} [data-pw="1"]{width:1%} [data-pw="2"]{width:2%} [data-pw="3"]{width:3%} [data-pw="4"]{width:4%} [data-pw="5"]{width:5%} [data-pw="6"]{width:6%} [data-pw="7"]{width:7%} [data-pw="8"]{width:8%} [data-pw="9"]{width:9%}
[data-pw="10"]{width:10%} [data-pw="11"]{width:11%} [data-pw="12"]{width:12%} [data-pw="13"]{width:13%} [data-pw="14"]{width:14%} [data-pw="15"]{width:15%} [data-pw="16"]{width:16%} [data-pw="17"]{width:17%} [data-pw="18"]{width:18%} [data-pw="19"]{width:19%}
[data-pw="20"]{width:20%} [data-pw="21"]{width:21%} [data-pw="22"]{width:22%} [data-pw="23"]{width:23%} [data-pw="24"]{width:24%} [data-pw="25"]{width:25%} [data-pw="26"]{width:26%} [data-pw="27"]{width:27%} [data-pw="28"]{width:28%} [data-pw="29"]{width:29%}
[data-pw="30"]{width:30%} [data-pw="31"]{width:31%} [data-pw="32"]{width:32%} [data-pw="33"]{width:33%} [data-pw="34"]{width:34%} [data-pw="35"]{width:35%} [data-pw="36"]{width:36%} [data-pw="37"]{width:37%} [data-pw="38"]{width:38%} [data-pw="39"]{width:39%}
[data-pw="40"]{width:40%} [data-pw="41"]{width:41%} [data-pw="42"]{width:42%} [data-pw="43"]{width:43%} [data-pw="44"]{width:44%} [data-pw="45"]{width:45%} [data-pw="46"]{width:46%} [data-pw="47"]{width:47%} [data-pw="48"]{width:48%} [data-pw="49"]{width:49%}
[data-pw="50"]{width:50%} [data-pw="51"]{width:51%} [data-pw="52"]{width:52%} [data-pw="53"]{width:53%} [data-pw="54"]{width:54%} [data-pw="55"]{width:55%} [data-pw="56"]{width:56%} [data-pw="57"]{width:57%} [data-pw="58"]{width:58%} [data-pw="59"]{width:59%}
[data-pw="60"]{width:60%} [data-pw="61"]{width:61%} [data-pw="62"]{width:62%} [data-pw="63"]{width:63%} [data-pw="64"]{width:64%} [data-pw="65"]{width:65%} [data-pw="66"]{width:66%} [data-pw="67"]{width:67%} [data-pw="68"]{width:68%} [data-pw="69"]{width:69%}
[data-pw="70"]{width:70%} [data-pw="71"]{width:71%} [data-pw="72"]{width:72%} [data-pw="73"]{width:73%} [data-pw="74"]{width:74%} [data-pw="75"]{width:75%} [data-pw="76"]{width:76%} [data-pw="77"]{width:77%} [data-pw="78"]{width:78%} [data-pw="79"]{width:79%}
[data-pw="80"]{width:80%} [data-pw="81"]{width:81%} [data-pw="82"]{width:82%} [data-pw="83"]{width:83%} [data-pw="84"]{width:84%} [data-pw="85"]{width:85%} [data-pw="86"]{width:86%} [data-pw="87"]{width:87%} [data-pw="88"]{width:88%} [data-pw="89"]{width:89%}
[data-pw="90"]{width:90%} [data-pw="91"]{width:91%} [data-pw="92"]{width:92%} [data-pw="93"]{width:93%} [data-pw="94"]{width:94%} [data-pw="95"]{width:95%} [data-pw="96"]{width:96%} [data-pw="97"]{width:97%} [data-pw="98"]{width:98%} [data-pw="99"]{width:99%}
[data-pw="100"]{width:100%}
[data-pl="0"]{left:0%} [data-pl="1"]{left:1%} [data-pl="2"]{left:2%} [data-pl="3"]{left:3%} [data-pl="4"]{left:4%} [data-pl="5"]{left:5%} [data-pl="6"]{left:6%} [data-pl="7"]{left:7%} [data-pl="8"]{left:8%} [data-pl="9"]{left:9%}
[data-pl="10"]{left:10%} [data-pl="11"]{left:11%} [data-pl="12"]{left:12%} [data-pl="13"]{left:13%} [data-pl="14"]{left:14%} [data-pl="15"]{left:15%} [data-pl="16"]{left:16%} [data-pl="17"]{left:17%} [data-pl="18"]{left:18%} [data-pl="19"]{left:19%}
[data-pl="20"]{left:20%} [data-pl="21"]{left:21%} [data-pl="22"]{left:22%} [data-pl="23"]{left:23%} [data-pl="24"]{left:24%} [data-pl="25"]{left:25%} [data-pl="26"]{left:26%} [data-pl="27"]{left:27%} [data-pl="28"]{left:28%} [data-pl="29"]{left:29%}
[data-pl="30"]{left:30%} [data-pl="31"]{left:31%} [data-pl="32"]{left:32%} [data-pl="33"]{left:33%} [data-pl="34"]{left:34%} [data-pl="35"]{left:35%} [data-pl="36"]{left:36%} [data-pl="37"]{left:37%} [data-pl="38"]{left:38%} [data-pl="39"]{left:39%}
[data-pl="40"]{left:40%} [data-pl="41"]{left:41%} [data-pl="42"]{left:42%} [data-pl="43"]{left:43%} [data-pl="44"]{left:44%} [data-pl="45"]{left:45%} [data-pl="46"]{left:46%} [data-pl="47"]{left:47%} [data-pl="48"]{left:48%} [data-pl="49"]{left:49%}
[data-pl="50"]{left:50%} [data-pl="51"]{left:51%} [data-pl="52"]{left:52%} [data-pl="53"]{left:53%} [data-pl="54"]{left:54%} [data-pl="55"]{left:55%} [data-pl="56"]{left:56%} [data-pl="57"]{left:57%} [data-pl="58"]{left:58%} [data-pl="59"]{left:59%}
[data-pl="60"]{left:60%} [data-pl="61"]{left:61%} [data-pl="62"]{left:62%} [data-pl="63"]{left:63%} [data-pl="64"]{left:64%} [data-pl="65"]{left:65%} [data-pl="66"]{left:66%} [data-pl="67"]{left:67%} [data-pl="68"]{left:68%} [data-pl="69"]{left:69%}
[data-pl="70"]{left:70%} [data-pl="71"]{left:71%} [data-pl="72"]{left:72%} [data-pl="73"]{left:73%} [data-pl="74"]{left:74%} [data-pl="75"]{left:75%} [data-pl="76"]{left:76%} [data-pl="77"]{left:77%} [data-pl="78"]{left:78%} [data-pl="79"]{left:79%}
[data-pl="80"]{left:80%} [data-pl="81"]{left:81%} [data-pl="82"]{left:82%} [data-pl="83"]{left:83%} [data-pl="84"]{left:84%} [data-pl="85"]{left:85%} [data-pl="86"]{left:86%} [data-pl="87"]{left:87%} [data-pl="88"]{left:88%} [data-pl="89"]{left:89%}
[data-pl="90"]{left:90%} [data-pl="91"]{left:91%} [data-pl="92"]{left:92%} [data-pl="93"]{left:93%} [data-pl="94"]{left:94%} [data-pl="95"]{left:95%} [data-pl="96"]{left:96%} [data-pl="97"]{left:97%} [data-pl="98"]{left:98%} [data-pl="99"]{left:99%}
[data-pl="100"]{left:100%}
[data-ph="0"]{height:0%} [data-ph="1"]{height:1%} [data-ph="2"]{height:2%} [data-ph="3"]{height:3%} [data-ph="4"]{height:4%} [data-ph="5"]{height:5%} [data-ph="6"]{height:6%} [data-ph="7"]{height:7%} [data-ph="8"]{height:8%} [data-ph="9"]{height:9%}
[data-ph="10"]{height:10%} [data-ph="11"]{height:11%} [data-ph="12"]{height:12%} [data-ph="13"]{height:13%} [data-ph="14"]{height:14%} [data-ph="15"]{height:15%} [data-ph="16"]{height:16%} [data-ph="17"]{height:17%} [data-ph="18"]{height:18%} [data-ph="19"]{height:19%}
[data-ph="20"]{height:20%} [data-ph="21"]{height:21%} [data-ph="22"]{height:22%} [data-ph="23"]{height:23%} [data-ph="24"]{height:24%} [data-ph="25"]{height:25%} [data-ph="26"]{height:26%} [data-ph="27"]{height:27%} [data-ph="28"]{height:28%} [data-ph="29"]{height:29%}
[data-ph="30"]{height:30%} [data-ph="31"]{height:31%} [data-ph="32"]{height:32%} [data-ph="33"]{height:33%} [data-ph="34"]{height:34%} [data-ph="35"]{height:35%} [data-ph="36"]{height:36%} [data-ph="37"]{height:37%} [data-ph="38"]{height:38%} [data-ph="39"]{height:39%}
[data-ph="40"]{height:40%} [data-ph="41"]{height:41%} [data-ph="42"]{height:42%} [data-ph="43"]{height:43%} [data-ph="44"]{height:44%} [data-ph="45"]{height:45%} [data-ph="46"]{height:46%} [data-ph="47"]{height:47%} [data-ph="48"]{height:48%} [data-ph="49"]{height:49%}
[data-ph="50"]{height:50%} [data-ph="51"]{height:51%} [data-ph="52"]{height:52%} [data-ph="53"]{height:53%} [data-ph="54"]{height:54%} [data-ph="55"]{height:55%} [data-ph="56"]{height:56%} [data-ph="57"]{height:57%} [data-ph="58"]{height:58%} [data-ph="59"]{height:59%}
[data-ph="60"]{height:60%} [data-ph="61"]{height:61%} [data-ph="62"]{height:62%} [data-ph="63"]{height:63%} [data-ph="64"]{height:64%} [data-ph="65"]{height:65%} [data-ph="66"]{height:66%} [data-ph="67"]{height:67%} [data-ph="68"]{height:68%} [data-ph="69"]{height:69%}
[data-ph="70"]{height:70%} [data-ph="71"]{height:71%} [data-ph="72"]{height:72%} [data-ph="73"]{height:73%} [data-ph="74"]{height:74%} [data-ph="75"]{height:75%} [data-ph="76"]{height:76%} [data-ph="77"]{height:77%} [data-ph="78"]{height:78%} [data-ph="79"]{height:79%}
[data-ph="80"]{height:80%} [data-ph="81"]{height:81%} [data-ph="82"]{height:82%} [data-ph="83"]{height:83%} [data-ph="84"]{height:84%} [data-ph="85"]{height:85%} [data-ph="86"]{height:86%} [data-ph="87"]{height:87%} [data-ph="88"]{height:88%} [data-ph="89"]{height:89%}
[data-ph="90"]{height:90%} [data-ph="91"]{height:91%} [data-ph="92"]{height:92%} [data-ph="93"]{height:93%} [data-ph="94"]{height:94%} [data-ph="95"]{height:95%} [data-ph="96"]{height:96%} [data-ph="97"]{height:97%} [data-ph="98"]{height:98%} [data-ph="99"]{height:99%}
[data-ph="100"]{height:100%}
[data-pb="0"]{bottom:0%} [data-pb="1"]{bottom:1%} [data-pb="2"]{bottom:2%} [data-pb="3"]{bottom:3%} [data-pb="4"]{bottom:4%} [data-pb="5"]{bottom:5%} [data-pb="6"]{bottom:6%} [data-pb="7"]{bottom:7%} [data-pb="8"]{bottom:8%} [data-pb="9"]{bottom:9%}
[data-pb="10"]{bottom:10%} [data-pb="11"]{bottom:11%} [data-pb="12"]{bottom:12%} [data-pb="13"]{bottom:13%} [data-pb="14"]{bottom:14%} [data-pb="15"]{bottom:15%} [data-pb="16"]{bottom:16%} [data-pb="17"]{bottom:17%} [data-pb="18"]{bottom:18%} [data-pb="19"]{bottom:19%}
[data-pb="20"]{bottom:20%} [data-pb="21"]{bottom:21%} [data-pb="22"]{bottom:22%} [data-pb="23"]{bottom:23%} [data-pb="24"]{bottom:24%} [data-pb="25"]{bottom:25%} [data-pb="26"]{bottom:26%} [data-pb="27"]{bottom:27%} [data-pb="28"]{bottom:28%} [data-pb="29"]{bottom:29%}
[data-pb="30"]{bottom:30%} [data-pb="31"]{bottom:31%} [data-pb="32"]{bottom:32%} [data-pb="33"]{bottom:33%} [data-pb="34"]{bottom:34%} [data-pb="35"]{bottom:35%} [data-pb="36"]{bottom:36%} [data-pb="37"]{bottom:37%} [data-pb="38"]{bottom:38%} [data-pb="39"]{bottom:39%}
[data-pb="40"]{bottom:40%} [data-pb="41"]{bottom:41%} [data-pb="42"]{bottom:42%} [data-pb="43"]{bottom:43%} [data-pb="44"]{bottom:44%} [data-pb="45"]{bottom:45%} [data-pb="46"]{bottom:46%} [data-pb="47"]{bottom:47%} [data-pb="48"]{bottom:48%} [data-pb="49"]{bottom:49%}
[data-pb="50"]{bottom:50%} [data-pb="51"]{bottom:51%} [data-pb="52"]{bottom:52%} [data-pb="53"]{bottom:53%} [data-pb="54"]{bottom:54%} [data-pb="55"]{bottom:55%} [data-pb="56"]{bottom:56%} [data-pb="57"]{bottom:57%} [data-pb="58"]{bottom:58%} [data-pb="59"]{bottom:59%}
[data-pb="60"]{bottom:60%} [data-pb="61"]{bottom:61%} [data-pb="62"]{bottom:62%} [data-pb="63"]{bottom:63%} [data-pb="64"]{bottom:64%} [data-pb="65"]{bottom:65%} [data-pb="66"]{bottom:66%} [data-pb="67"]{bottom:67%} [data-pb="68"]{bottom:68%} [data-pb="69"]{bottom:69%}
[data-pb="70"]{bottom:70%} [data-pb="71"]{bottom:71%} [data-pb="72"]{bottom:72%} [data-pb="73"]{bottom:73%} [data-pb="74"]{bottom:74%} [data-pb="75"]{bottom:75%} [data-pb="76"]{bottom:76%} [data-pb="77"]{bottom:77%} [data-pb="78"]{bottom:78%} [data-pb="79"]{bottom:79%}
[data-pb="80"]{bottom:80%} [data-pb="81"]{bottom:81%} [data-pb="82"]{bottom:82%} [data-pb="83"]{bottom:83%} [data-pb="84"]{bottom:84%} [data-pb="85"]{bottom:85%} [data-pb="86"]{bottom:86%} [data-pb="87"]{bottom:87%} [data-pb="88"]{bottom:88%} [data-pb="89"]{bottom:89%}
[data-pb="90"]{bottom:90%} [data-pb="91"]{bottom:91%} [data-pb="92"]{bottom:92%} [data-pb="93"]{bottom:93%} [data-pb="94"]{bottom:94%} [data-pb="95"]{bottom:95%} [data-pb="96"]{bottom:96%} [data-pb="97"]{bottom:97%} [data-pb="98"]{bottom:98%} [data-pb="99"]{bottom:99%}
[data-pb="100"]{bottom:100%}
