/* DMVVATEST Phase 2B — approved allowlisted Practice Journey scale. */

.dmv-practice-journey-prototype .entry-hero-container-inner,
.dmv-practice-hub-prototype .entry-hero-container-inner {
  padding-block: clamp(1.4rem, 2.6vw, 2.35rem);
}

.dmv-practice-journey-prototype .entry-header,
.dmv-practice-hub-prototype .entry-header {
  margin-bottom: 0;
}

.dmv-practice-journey-prototype .entry-title,
.dmv-practice-hub-prototype .entry-title {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.dmv-practice-journey-prototype .content-area,
.dmv-practice-hub-prototype .content-area {
  margin-top: clamp(1.75rem, 3vw, 3rem);
}

.dmv-practice-journey-prototype .entry-content,
.dmv-practice-hub-prototype .entry-content {
  color: #20314a;
}

.pj-shell,
.pj-hub-shell {
  --pj-navy: #123d6b;
  --pj-blue: #1768a8;
  --pj-sky: #eaf3fb;
  --pj-line: #d8e2ec;
  --pj-ink: #18283d;
  --pj-muted: #52657a;
}

.pj-shell {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.pj-shell h2,
.pj-hub-shell h2 {
  color: var(--pj-ink);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.pj-intro {
  max-width: 800px;
}

.pj-eyebrow,
.pj-kicker {
  margin: 0 0 0.55rem;
  color: var(--pj-blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pj-intro-heading,
.pj-hub-shell h2 {
  margin: 0 0 0.8rem;
}

.pj-summary {
  max-width: 690px;
  margin: 0;
  color: var(--pj-muted);
  font-size: 1.05em;
}

.pj-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.75rem 0 0;
  border: 1px solid var(--pj-line);
  border-radius: 12px;
  background: #f8fbfe;
  overflow: hidden;
}

.pj-fact-strip > div {
  min-width: 0;
  padding: 1rem 1.05rem;
}

.pj-fact-strip > div + div {
  border-left: 1px solid var(--pj-line);
}

.pj-fact-strip dt {
  margin-bottom: 0.25rem;
  color: var(--pj-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pj-fact-strip dd {
  margin: 0;
  color: var(--pj-navy);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.pj-practice-topics {
  margin-top: 2rem;
}

.pj-practice-topics h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.pj-practice-topics ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pj-practice-topics li {
  position: relative;
  padding-left: 1.25rem;
}

.pj-practice-topics li::before {
  position: absolute;
  left: 0;
  color: var(--pj-blue);
  content: "✓";
  font-weight: 800;
}

.pj-example {
  margin-top: 2.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid var(--pj-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 61, 107, 0.07);
}

.pj-example-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--pj-line);
}

.pj-example-heading-row p { margin: 0; }
.pj-example-heading-row span { color: var(--pj-muted); font-size: 0.82rem; }

.pj-example-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pj-example-grid:not(:has(.pj-example-media)) { grid-template-columns: 1fr; }

.pj-example-media {
  display: grid;
  place-items: center;
  width: 116px;
  min-height: 116px;
  border-radius: 10px;
  background: var(--pj-sky);
}

.pj-example-media img { display: block; width: auto; max-width: 88px; height: auto; }
.pj-example h2 { margin: 0 0 0.65rem; font-size: 1.25rem; }

.pj-example ol {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--pj-muted);
}

.pj-primary-cta,
.pj-next-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--pj-blue);
  color: #fff !important;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
}

.pj-primary-cta { margin-top: 1.5rem; padding: 0.8rem 1.35rem; }
.pj-primary-cta:hover, .pj-next-primary:hover { background: var(--pj-navy); }

.pj-primary-cta:focus-visible,
.pj-next-primary:focus-visible,
.pj-next-links a:focus-visible,
.pj-related-reading a:focus-visible,
.pj-hub-tests a:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.pj-cta-note { margin: 0.55rem 0 0; color: var(--pj-muted); font-size: 0.9rem; }

.pj-quiz-shell {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--pj-line);
  scroll-margin-top: 7rem;
}

.pj-section-heading { max-width: 680px; margin-bottom: 1.5rem; }
.pj-section-heading h2 { margin: 0 0 0.55rem; }
.pj-section-heading > p:last-child { color: var(--pj-muted); }

/* The unchanged database intro is replaced only at render time by the approved shell. */
.pj-quiz-shell > .wpProQuiz_content > .wpProQuiz_text > *:not(:last-child) { display: none; }
.pj-quiz-shell > .wpProQuiz_content > .wpProQuiz_text > :last-child { display: block; margin: 0; }

.pj-next-steps {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 2.8vw, 2rem);
  border: 1px solid #bfd3e6;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f9fd, #eaf3fb);
}

.pj-next-steps h2 { margin: 0; }
.pj-next-primary { width: fit-content; padding: 0.8rem 1.25rem; }
.pj-next-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1.35rem; }

.pj-next-links a,
.pj-related-reading a,
.pj-hub-tests a {
  color: var(--pj-navy);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.pj-related-reading { padding-top: 1.75rem; border-top: 1px solid var(--pj-line); }
.pj-related-reading h2 { margin: 0 0 0.7rem; font-size: 1.35rem; }

.pj-hub-shell {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid #bfd3e6;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f3f8fc);
}

.pj-hub-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0; }

.pj-hub-facts span {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--pj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pj-navy);
  font-weight: 700;
}

.pj-hub-tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.pj-hub-tests li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--pj-line);
  border-radius: 10px;
  background: #fff;
}

.pj-hub-tests li > span {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--pj-sky);
  color: var(--pj-navy);
  font-weight: 800;
}

.pj-hub-advanced { padding-top: 1.25rem; border-top: 1px solid var(--pj-line); }
.pj-hub-legacy { padding-top: 0.5rem; }

@media (max-width: 1024px) {
  .pj-fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-fact-strip > div:nth-child(3) { border-left: 0; }
  .pj-fact-strip > div:nth-child(n + 3) { border-top: 1px solid var(--pj-line); }
  .pj-practice-topics ul { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .dmv-practice-journey-prototype .entry-hero-container-inner,
  .dmv-practice-hub-prototype .entry-hero-container-inner { padding-block: 1.15rem; }

  .dmv-practice-journey-prototype .entry-title,
  .dmv-practice-hub-prototype .entry-title { font-size: clamp(1.8rem, 8vw, 2.15rem); }

  .pj-shell { gap: 2.75rem; }
  .pj-summary { font-size: 1rem; }
  .pj-fact-strip > div { padding: 0.85rem; }
  .pj-fact-strip dd { font-size: 0.94rem; }
  .pj-example-grid { grid-template-columns: 1fr; }
  .pj-example-media { width: 100%; min-height: 106px; }
  .pj-primary-cta, .pj-next-primary { width: 100%; }
  .pj-next-links { display: grid; gap: 0.75rem; }
  .pj-hub-tests { grid-template-columns: 1fr; }
  .pj-hub-shell { padding: 1.2rem; }
}
