body.prg-ham-test-page {
  background: #1e332a;
  overflow-x: hidden;
}
body.prg-ham-test-page #wp--skip-link--target {
  margin-block-start: 0 !important;
  padding-block-start: 85px !important;
  background-color: #1e332a;
  background-image:
    radial-gradient(circle at 12% 9%, rgba(129, 174, 149, .22), transparent 22rem),
    radial-gradient(circle at 88% 38%, rgba(0, 0, 0, .22), transparent 25rem),
    repeating-radial-gradient(ellipse at 14% 22%, transparent 0 2.05rem, rgba(193, 224, 204, .08) 2.1rem 2.18rem, transparent 2.23rem 3.15rem),
    repeating-linear-gradient(125deg, transparent 0 4.75rem, rgba(193, 224, 204, .035) 4.8rem 4.92rem, transparent 4.97rem 8rem);
  background-attachment: fixed;
}
body.prg-ham-test-page .wp-site-blocks,
body.prg-ham-test-page #wp--skip-link--target > .wp-block-group,
body.prg-ham-test-page .wp-block-post-content {
  background-color: transparent !important;
}
body.prg-ham-test-page footer.wp-block-template-part {
  background: #1e332a;
  color: #f3f0e9;
}
body.prg-ham-test-page footer.wp-block-template-part :is(p, a) { color: #f3f0e9; }

.prg-ham-test {
  --ham-bg: #14251e;
  --ham-panel: #1d3028;
  --ham-panel-light: #294238;
  --ham-line: #4b6a5a;
  --ham-text: #f3f0e9;
  --ham-muted: #c5cdc8;
  --ham-accent: #dce36b;
  box-sizing: border-box;
  width: min(1300px, calc(100vw - 2rem));
  max-width: none;
  margin: 0 auto 4rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  scroll-margin-top: 8rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  color: var(--ham-text);
  background: var(--ham-bg);
  border: 1px solid var(--ham-line);
  border-radius: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.prg-ham-test-page .wp-block-post-title { display: none; }
.prg-ham-test-page #wp--skip-link--target > .wp-block-group { padding-top: 0 !important; }
.prg-ham-test-page .wp-block-post-content { margin-block-start: 0 !important; }
.prg-ham-test *, .prg-ham-test *::before, .prg-ham-test *::after { box-sizing: border-box; }
.prg-ham-test [hidden] { display: none !important; }
.prg-ham-test__back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.25rem; color: var(--ham-accent); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.prg-ham-test__back:hover { color: #eff3a1; text-decoration: underline; }
.prg-ham-test__back:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.prg-ham-test__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.prg-ham-test__logo { display: block; width: clamp(12rem, 25vw, 18rem); max-width: 100%; height: auto; object-fit: contain; }
.prg-ham-test__eyebrow, .prg-ham-test__question-meta, .prg-ham-test__result-label, .prg-ham-test__review-meta {
  color: var(--ham-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.prg-ham-test__hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: .7rem 0 1.5rem; }
.prg-ham-test__hero h1 { color: var(--ham-text); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; margin: 0 0 .85rem; }
.prg-ham-test__hero p { max-width: 65ch; margin: 0; color: var(--ham-muted); line-height: 1.55; }
.prg-ham-test__hero-stat { display: grid; place-items: center; flex: 0 0 9rem; aspect-ratio: 1; border: 2px solid var(--ham-accent); border-radius: 50%; line-height: 1; }
.prg-ham-test__hero-stat strong { font-size: 3.7rem; align-self: end; }
.prg-ham-test__hero-stat span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; align-self: start; }
.prg-ham-test__intro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ham-line); border: 1px solid var(--ham-line); border-radius: .7rem; overflow: hidden; margin-bottom: 1.5rem; }
.prg-ham-test__intro > div { display: grid; gap: .35rem; padding: 1rem; background: var(--ham-panel); }
.prg-ham-test__intro strong { font-size: .95rem; }
.prg-ham-test__intro span { color: var(--ham-muted); font-size: .8rem; line-height: 1.4; }
.prg-ham-test__status { display: grid; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; }
.prg-ham-test__exam { border: 1px solid var(--ham-line); border-radius: .7rem; background: var(--ham-panel); overflow: hidden; }
body.prg-ham-test-exam-open { overflow: hidden !important; }
.prg-ham-test.is-testing { left: auto; transform: none; }
.prg-ham-test.is-testing .prg-ham-test__exam { position: fixed; inset: 0; z-index: 2147483640; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; background: var(--ham-bg); }
.prg-ham-test__toolbar { flex: 0 0 auto; padding: max(.7rem, env(safe-area-inset-top)) clamp(1rem, 2vw, 2rem) .7rem; border-bottom: 1px solid var(--ham-line); }
.prg-ham-test__progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; }
.prg-ham-test__answered { color: var(--ham-muted); }
.prg-ham-test__close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2.75rem; min-height: 2.75rem; margin: -.35rem -.35rem -.35rem 0; border: 0; background: transparent; color: var(--ham-text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.prg-ham-test__progress-track { display: block; height: .3rem; margin-top: .8rem; border-radius: 2rem; background: var(--ham-line); overflow: hidden; }
.prg-ham-test__progress-track span { display: block; height: 100%; width: 0; background: var(--ham-accent); transition: width .2s ease; }
.prg-ham-test__body { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
.prg-ham-test__question-panel { width: min(100%, 1000px); height: 100%; overflow-y: auto; overscroll-behavior: contain; margin-inline: auto; padding: clamp(1rem, 2.5vw, 2rem); min-width: 0; }
.prg-ham-test__question-text { color: var(--ham-text); font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.3; margin: .65rem 0 1.3rem; }
.prg-ham-test__diagram { display: block; width: min(100%, 650px); height: auto; margin: 0 0 1.2rem; border-radius: .35rem; background: #fff; }
.prg-ham-test__choices { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; }
.prg-ham-test__choice { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--ham-line); border-radius: .45rem; background: var(--ham-bg); color: var(--ham-text); cursor: pointer; line-height: 1.4; }
.prg-ham-test__choice:has(input:checked) { border-color: var(--ham-accent); background: #354039; }
.prg-ham-test__choice input { flex: 0 0 auto; margin: .2rem 0 0; accent-color: var(--ham-accent); }
.prg-ham-test__choice-letter { color: var(--ham-accent); font-weight: 800; }
.prg-ham-test__choice-copy { min-width: 0; }
.prg-ham-test__question-actions { display: flex; gap: .8rem; }
.prg-ham-test__button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1.15rem; border: 1px solid var(--ham-accent); border-radius: .4rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
.prg-ham-test__button--primary { background: var(--ham-accent); color: #182126; }
.prg-ham-test__button--secondary { background: transparent; color: var(--ham-text); }
.prg-ham-test__button:disabled { opacity: .4; cursor: not-allowed; }
.prg-ham-test__button:focus-visible, .prg-ham-test__close:focus-visible, .prg-ham-test__choice:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
.prg-ham-test__exam-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem, 2vw, 2rem) max(.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--ham-line); background: var(--ham-panel); }
.prg-ham-test__exam-footer span { color: var(--ham-muted); font-size: .8rem; }
.prg-ham-test__results { scroll-margin-top: 5rem; }
.prg-ham-test__result-summary { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--ham-line); border-radius: .7rem; background: var(--ham-panel); text-align: center; }
.prg-ham-test__result-score { margin: .5rem 0; color: var(--ham-accent); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 850; line-height: 1; }
.prg-ham-test__result-summary h2 { color: var(--ham-text); margin: .5rem 0; }
.prg-ham-test__result-summary p { color: var(--ham-muted); margin: 0 auto 1.4rem; }
.prg-ham-test__review-title { color: var(--ham-text); margin: 2rem 0 .8rem; }
.prg-ham-test__review-hint { color: var(--ham-muted); font-size: .82rem; margin: -.3rem 0 .8rem; }
.prg-ham-test__topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .55rem; }
.prg-ham-test__topic-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .8rem; border: 1px solid var(--ham-line); border-radius: .4rem; background: var(--ham-panel); font-size: .82rem; }
.prg-ham-test__topic-card.is-focus { border-color: #a65b4f; }
.prg-ham-test__topic-id { color: var(--ham-accent); font-weight: 800; }
.prg-ham-test__topic-card strong { color: var(--ham-text); }
.prg-ham-test__topic-score { color: var(--ham-accent); font-weight: 800; white-space: nowrap; }
.prg-ham-test__topic-card.is-focus .prg-ham-test__topic-score { color: #ffb7a7; }
.prg-ham-test__review-card { margin-bottom: .75rem; padding: 1rem 1.25rem; border: 1px solid var(--ham-line); border-left: 4px solid #a25b54; border-radius: .35rem; background: var(--ham-panel); }
.prg-ham-test__review-card.is-correct { border-left-color: #6eaa83; }
.prg-ham-test__review-card h4 { color: var(--ham-text); margin: .55rem 0; font-size: 1.05rem; }
.prg-ham-test__review-card p { margin: .45rem 0; color: var(--ham-muted); }
.prg-ham-test__review-card .prg-ham-test__correct-answer { color: #b9e5c4; font-weight: 700; }
.prg-ham-test__source { margin-top: 1.5rem; color: var(--ham-muted); font-size: .8rem; line-height: 1.5; }
.prg-ham-test__source a { color: var(--ham-accent); text-decoration: underline; }
@media (max-width: 760px) {
  body.prg-ham-test-page #wp--skip-link--target { padding-block-start: 96px !important; }
  .prg-ham-test__question-panel { padding: 1rem; }
  .prg-ham-test__question-text { font-size: clamp(1.2rem, 4.6vw, 1.55rem); line-height: 1.25; margin: .45rem 0 .85rem; }
  .prg-ham-test__diagram { max-height: 28dvh; width: auto; max-width: 100%; object-fit: contain; }
  .prg-ham-test__choices { gap: .45rem; }
  .prg-ham-test__choice { min-height: 2.75rem; padding: .58rem .7rem; line-height: 1.3; }
  .prg-ham-test__exam-footer { display: block; padding: .65rem 1rem max(.65rem, env(safe-area-inset-bottom)); }
  .prg-ham-test__exam-footer > span { display: none; }
  .prg-ham-test__question-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .prg-ham-test__question-actions [data-action="submit"] { grid-column: 1 / -1; }
  .prg-ham-test__hero-stat { flex-basis: 6.5rem; }
  .prg-ham-test__hero-stat strong { font-size: 2.6rem; }
  .prg-ham-test__intro { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .prg-ham-test__hero { align-items: flex-start; }
  .prg-ham-test__hero-stat { display: none; }
}
