/* ChakriPath public design, September 2026. Kept separate from legacy page CSS. */
.cpg-home-v2 {
  --cp-cream: #f7f3eb;
  --cp-ink: #18253b;
  --cp-muted: #5e6671;
  background: var(--cp-cream);
  color: var(--cp-ink);
}
.cpg-home-v2 .cpg-homehero {
  padding: 64px 0 42px;
  background: linear-gradient(90deg, rgba(248,245,238,.96), rgba(246,241,232,.88)), url('art/chakripath-hero.jpg') center 67% / cover;
}
.cpg-exam-first-nav { gap: clamp(13px, 1.55vw, 23px); }
.cpg-exam-first-nav details > div { width: 255px; }
.cpg-mobile .cpg-mobile-exam > summary { padding: 11px 13px; border-bottom: 1px solid #e8e0d3; color: #172641; font-size: 13px; font-weight: 800; list-style: none; cursor: pointer; }
.cpg-mobile .cpg-mobile-exam > summary::after { content: '⌄'; float: right; color: #9b7d4a; }
.cpg-mobile .cpg-mobile-exam > div { padding: 2px 0 7px 11px; background: #f6f0e6; }
.cpg-mobile .cpg-mobile-exam a { font-size: 12px; border-bottom: 0; }
.cpg-home-v2 .cpg-homehero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}
.cpg-home-v2 .cpg-homehero h1 {
  max-width: 660px;
  margin: 17px 0 23px;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.cpg-home-v2 .cpg-homehero-copy > p {
  max-width: 620px;
  margin: 0;
  color: #495466;
  font: 400 clamp(16px, 1.4vw, 19px)/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cpg-home-v2 .cpg-homeactions { margin-top: 29px; }
.cpg-home-v2 .cpg-homeactions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
}
.cpg-home-v2 .cpg-homehero .cpg-homeactions a:first-child { background: #172641; color: #fff !important; }
.cpg-home-v2 .cpg-homehero .cpg-homeactions a:last-child { border: 1px solid #a8997e; color: #172641 !important; }
.cpg-home-v2 .cpg-homeproof { gap: 22px; margin-top: 29px; padding-top: 20px; }
.cpg-home-v2 .cpg-homeproof span { font-size: 10px; letter-spacing: .02em; text-transform: none; }
.cpg-home-v2 .cpg-homeproof b { font-size: 23px; }

/* A product preview made from the actual mock question bank, with no stock art. */
.cpg-product-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bbc3cd;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 32px 75px rgba(20, 33, 58, .15);
  transform: rotate(1deg);
}
.cpg-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 19px;
  background: #172641;
  color: #fff;
  font-size: 11px;
}
.cpg-preview-bar strong { color: #fff; font: 700 21px Georgia, serif; }
.cpg-preview-bar span { color: #dce2ea; }
.cpg-preview-bar i { margin-left: 9px; color: #d3b577; font-style: normal; font-variant-numeric: tabular-nums; }
.cpg-preview-body { display: grid; grid-template-columns: minmax(0, 1fr) 137px; min-height: 370px; }
.cpg-preview-main { min-width: 0; padding: 27px 24px 22px; }
.cpg-preview-main > small { color: #997f50; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.cpg-preview-step { display: flex; justify-content: space-between; gap: 8px; margin: 17px 0; color: #596779; font-size: 10px; }
.cpg-preview-step b { color: #172641; }
.cpg-preview-main h2 {
  margin: 0 0 16px;
  color: #172641;
  font: 700 clamp(18px, 1.8vw, 24px)/1.3 Georgia, serif;
  letter-spacing: -.02em;
}
.cpg-preview-option { display: flex; align-items: center; gap: 12px; margin: 7px 0; padding: 8px 10px; border: 1px solid #dce0e4; border-radius: 5px; color: #465063; font-size: 11px; }
.cpg-preview-option b { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 3px; background: #f2eee6; color: #735b33; }
.cpg-preview-next { display: flex; justify-content: space-between; width: 105px; margin-top: 16px; padding: 8px 10px; border-radius: 3px; background: #172641; color: #fff; font-size: 10px; font-weight: 800; }
.cpg-preview-side { padding: 24px 13px; border-left: 1px solid #e6e8eb; background: #f6f7f8; }
.cpg-preview-side > span { color: #697588; font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.cpg-preview-side > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 13px; }
.cpg-preview-side b { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #d8dde4; border-radius: 3px; background: #fff; color: #657082; font-size: 9px; }
.cpg-preview-side b.is-current { border-color: #172641; background: #172641; color: #fff; }
.cpg-preview-side > small { display: block; margin-top: 24px; color: #77808d; font-size: 9px; line-height: 1.5; }

.cpg-exam-shortcuts { margin-top: 48px; }
.cpg-home-v2 .cpg-homehero > .cpg-exam-shortcuts { display: block; }
.cpg-exam-shortcuts > span { display: block; margin-bottom: 12px; color: #76684f; font-size: 11px; font-weight: 800; }
.cpg-exam-shortcuts nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cpg-exam-shortcuts a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; min-height: 86px; padding: 17px 20px; border: 1px solid #d2c7b4; border-top: 3px solid #a98b55; border-radius: 4px; background: #fffdf9; color: #172641 !important; text-decoration: none !important; transition: transform .18s, box-shadow .18s; }
.cpg-exam-shortcuts a:hover { transform: translateY(-3px); box-shadow: 0 13px 24px rgba(20, 33, 58, .1); }
.cpg-exam-shortcuts strong { font: 700 25px Georgia, serif; }
.cpg-exam-shortcuts small { grid-column: 1; color: #6d7280; font-size: 10px; }
.cpg-exam-shortcuts b { grid-column: 2; grid-row: 1 / 3; color: #91713d; font-size: 19px; }

.cpg-home-v2 .cpg-home-section { padding: 82px 0; }
.cpg-home-v2 .cpg-sectionhead { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
.cpg-home-v2 .cpg-sectionhead h2 { max-width: 680px; font-size: clamp(36px, 3.9vw, 50px); line-height: 1.08; }
.cpg-home-v2 .cpg-sectionhead p { font-size: 14px; }
.cpg-home-mockgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cpg-home-mockgrid article { min-width: 0; padding: 27px; border: 1px solid #d8cdbd; border-radius: 5px; background: #fffdf9; }
.cpg-home-mockgrid article::before { content: ''; display: block; height: 172px; margin: -27px -27px 25px; border-radius: 4px 4px 0 0; background-position: center 34%; background-size: cover; filter: saturate(.78); }
.cpg-home-mockgrid article:nth-child(1)::before { background-image: url('art/wbcs-executive.jpg'); }
.cpg-home-mockgrid article:nth-child(2)::before { background-image: url('art/miscellaneous-services.jpg'); }
.cpg-home-mockgrid article:nth-child(3)::before { background-image: url('art/clerkship.jpg'); }
.cpg-home-mockgrid article:nth-child(2) { border-top: 4px solid #b2935c; }
.cpg-home-mockgrid article > span { display: inline-block; padding: 6px 9px; border: 1px solid #d8c5a0; border-radius: 2px; background: #f7f0e2; color: #765b2e; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.cpg-home-mockgrid h3 { min-height: 82px; margin: 18px 0 12px; font-size: clamp(27px, 2.7vw, 36px); line-height: 1.08; overflow-wrap: normal; }
.cpg-home-mockgrid p { min-height: 48px; margin: 0 0 25px; color: #5e6671; font-size: 13px; }
.cpg-home-mockgrid article > a:not(.cpg-home-secondary) { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 13px; border-radius: 3px; background: #172641; color: #fff !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.cpg-home-mockgrid .cpg-home-secondary { display: inline-block; margin-top: 17px; color: #70562d !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.cpg-home-pyqs { background: #eee7dc; }
.cpg-global-search { margin: 29px 0 27px; padding: 22px; border: 1px solid #d5c8b4; border-radius: 4px; background: #fffdf8; }
.cpg-global-search > label { display: block; margin-bottom: 10px; color: #765b2e; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.cpg-global-search-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.cpg-global-search input, .cpg-global-search select { min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid #cbbda8; border-radius: 2px; background: #fff; color: #18253b; font: 500 14px Inter, sans-serif; }
.cpg-global-search input:focus-visible, .cpg-global-search select:focus-visible { outline: 2px solid #92713a; outline-offset: 2px; }
.cpg-global-search-main button { min-height: 46px; padding: 0 21px; border: 0; border-radius: 2px; background: #18253b; color: #fff; cursor: pointer; font: 800 12px Inter, sans-serif; }
.cpg-global-search-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cpg-global-search-filters label { display: grid; gap: 6px; color: #6e665b; font-size: 10px; font-weight: 800; }
.cpg-global-search-filters input, .cpg-global-search-filters select { width: 100%; min-height: 40px; font-size: 12px; }
.cpg-search-results { margin: 35px 0 56px; scroll-margin-top: 130px; }
.cpg-search-results-head h2 { margin: 8px 0; color: #18253b; font: 700 clamp(29px, 3vw, 40px)/1.15 Georgia, serif; }
.cpg-search-results-head p { color: #636b75; font-size: 13px; }
.cpg-search-results article { padding: 22px 0; border-top: 1px solid #d8cdbd; }
.cpg-search-results article > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cpg-search-results article > div span { color: #806538; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cpg-search-results article h3 { margin: 10px 0; color: #18253b; font: 700 21px/1.35 Georgia, serif; }
.cpg-search-results article h3 a { color: inherit !important; text-decoration: none !important; }
.cpg-search-result-link, .cpg-search-pages a { color: #715329 !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.cpg-search-pages { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid #d8cdbd; font-size: 12px; }
.cpg-search-empty { padding: 22px; background: #f5efe5; color: #59616c; }
.cpg-question[id] { scroll-margin-top: 130px; }
.cpg-home-pyqgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cpg-home-pyqgrid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 86px; padding: 18px 20px; border: 1px solid #d4c8b4; background: #fbf8f1; color: #172641 !important; text-decoration: none !important; transition: transform .18s; }
.cpg-home-pyqgrid a:hover { transform: translateY(-2px); }
.cpg-home-pyqgrid strong { font: 700 23px Georgia, serif; }
.cpg-home-pyqgrid span { color: #6c6b67; font-size: 10px; white-space: nowrap; }
.cpg-home-more { display: inline-block; margin-top: 22px; color: #735a31 !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }
.cpg-home-v2 .cpg-updategrid article { border-top-width: 2px; border-radius: 4px; }
.cpg-home-v2 .cpg-updategrid h3 { font-size: 26px; }
.cpg-home-v2 .cpg-proband { margin: 0; padding: 20px 0 96px; border: 0; background: #f7f3eb; color: #18253b; }
.cpg-home-v2 .cpg-proband > .cpg-wide { position: relative; gap: 40px; padding: clamp(30px, 4vw, 58px); border: 1px solid #d1c4ae; border-radius: 5px; background: linear-gradient(115deg, #f3ead9, #fffdf8 72%); box-shadow: 0 22px 46px rgba(20, 33, 58, .07); }
.cpg-home-v2 .cpg-proband > .cpg-wide::before { content: ''; position: absolute; top: 0; left: 0; width: 92px; height: 4px; background: #a9874f; }
.cpg-home-v2 .cpg-proband span { color: #806333; }
.cpg-home-v2 .cpg-proband h2 { max-width: 680px; color: #18253b; font-size: clamp(34px, 3.5vw, 48px); }
.cpg-home-v2 .cpg-proband p { color: #4f5863; font-size: 14px; line-height: 1.7; }
.cpg-home-v2 .cpg-proprice { min-width: 194px; padding: 20px 23px; border: 1px solid #d7cbb7; background: #fffdf8; text-align: left; }
.cpg-home-v2 .cpg-proprice strong { color: #18253b; }
.cpg-home-v2 .cpg-proprice small { color: #726b5f; }
.cpg-home-v2 .cpg-proprice a { justify-content: center; width: 100%; background: #18253b; color: #fff !important; }

/* Exam hubs share the same layout and preserve their existing URLs. */
.cpg-examnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid #d6cbbb; }
.cpg-examnav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid #d6cbbb; border-radius: 3px; background: #fffdf8; color: #243652 !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.cpg-examnav a:hover { border-color: #9a7a45; }
.cpg-sectionintro { max-width: 780px; margin: 10px 0 25px; color: #5f6773; font-size: 15px; }
.cpg-overview-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 23px; }
.cpg-overview-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpg-overview-tiles article { min-width: 0; padding: 26px; border: 1px solid #d9cebb; border-top: 3px solid #aa8950; border-radius: 4px; background: #fffdf8; }
.cpg-overview-tiles article > span { color: #836631; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.cpg-overview-tiles h3 { margin: 13px 0 9px; color: #172641; font: 700 clamp(22px, 2.2vw, 30px)/1.17 Georgia, serif; }
.cpg-overview-tiles p { margin: 0; color: #606873; font-size: 13px; line-height: 1.7; }
.cpg-overview-tiles a { display: inline-flex; margin-top: 19px; color: #72562b !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.cpg-overview-subjects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.cpg-overview-subjects a { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 21px 15px; border: 1px solid #d8cdbd; border-radius: 3px; background: #fffdf8; color: #172641 !important; text-decoration: none !important; }
.cpg-overview-subjects strong { font: 700 19px Georgia, serif; }
.cpg-overview-subjects span { grid-column: 1; color: #69727e; font-size: 10px; }
.cpg-overview-subjects b { grid-column: 2; grid-row: 1 / 3; color: #947343; }
.cpg-source { display: flex; flex-wrap: wrap; gap: 17px; margin: 20px 0 0; }
.cpg-source a { color: #765b30 !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.cpg-paperlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.cpg-paperlinks a { display: block; padding: 14px 17px; border: 1px solid #d8cdbd; border-radius: 3px; background: #fffdf8; color: #172641 !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.cpg-overview-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 23px; padding: 23px 25px; border-left: 4px solid #b2935c; border-radius: 3px; background: #efe8da; }
.cpg-overview-note strong { color: #172641; font: 700 23px Georgia, serif; }
.cpg-overview-note p { max-width: 770px; margin: 6px 0 0; color: #5e6671; font-size: 13px; }
.cpg-overview-note a { color: #75582a !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.cpg-hub .cpg-section h2 { overflow-wrap: normal; }

@media (max-width: 1000px) {
  .cpg-home-v2 .cpg-homehero-grid { grid-template-columns: 1fr; }
  .cpg-product-preview { max-width: 670px; transform: none; }
  .cpg-overview-subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cpg-home-mockgrid { grid-template-columns: 1fr; }
  .cpg-home-mockgrid article { display: grid; grid-template-columns: minmax(180px, .82fr) minmax(0, 1fr); gap: 0 25px; align-items: start; min-height: 250px; padding: 24px; }
  .cpg-home-mockgrid article::before { grid-column: 1; grid-row: 1 / 6; align-self: stretch; height: auto; margin: -24px 0 -24px -24px; border-radius: 4px 0 0 4px; }
  .cpg-home-mockgrid article > span, .cpg-home-mockgrid h3, .cpg-home-mockgrid p, .cpg-home-mockgrid article > a { grid-column: 2; }
  .cpg-home-mockgrid h3, .cpg-home-mockgrid p { min-height: 0; }
  .cpg-home-mockgrid h3 { margin: 12px 0 8px; }
  .cpg-home-mockgrid p { margin-bottom: 15px; }
  .cpg-home-mockgrid .cpg-home-secondary { margin-top: 12px; }
  .cpg-home-v2 .cpg-proband > .cpg-wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cpg-home-v2 .cpg-homehero { display: flex; flex-direction: column; padding: 36px 0 28px; }
  .cpg-home-v2 .cpg-homehero-grid { display: contents; }
  .cpg-home-v2 .cpg-homehero-copy { order: 1; width: calc(100% - 28px); margin-inline: auto; }
  .cpg-home-v2 .cpg-exam-shortcuts { order: 2; }
  .cpg-home-v2 .cpg-product-preview { order: 3; width: calc(100% - 28px); margin: 29px auto 0; }
  .cpg-home-v2 .cpg-homehero h1 { font-size: clamp(42px, 10vw, 53px); }
  .cpg-home-v2 .cpg-homehero-copy > p { font-size: 16px; }
  .cpg-home-v2 .cpg-homeproof { display: none; }
  .cpg-home-v2 .cpg-homeproof span { min-width: 43%; }
  .cpg-exam-shortcuts { margin-top: 32px; }
  .cpg-exam-shortcuts nav { grid-template-columns: 1fr; gap: 8px; }
  .cpg-exam-shortcuts a { min-height: 65px; padding: 12px 17px; }
  .cpg-exam-shortcuts strong { font-size: 21px; }
  .cpg-home-v2 .cpg-home-section { padding: 58px 0; }
  .cpg-home-v2 .cpg-sectionhead { display: block; }
  .cpg-home-v2 .cpg-sectionhead h2 { margin: 8px 0 12px; }
  .cpg-home-mockgrid, .cpg-home-pyqgrid { grid-template-columns: 1fr; }
  .cpg-home-mockgrid article { padding: 24px; }
  .cpg-home-mockgrid article::before { margin: -24px -24px 22px; height: 155px; }
  .cpg-home-mockgrid article { display: block; }
  .cpg-home-mockgrid h3, .cpg-home-mockgrid p { min-height: 0; }
  .cpg-global-search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpg-home-v2 .cpg-proband > .cpg-wide { gap: 22px; }
  .cpg-home-pyqgrid a { min-height: 64px; }
  .cpg-overview-tiles, .cpg-overview-three, .cpg-paperlinks { grid-template-columns: 1fr; }
  .cpg-overview-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpg-examnav { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 27px; }
  .cpg-examnav a { white-space: nowrap; }
}
@media (max-width: 460px) {
  .cpg-global-search-main, .cpg-global-search-filters { grid-template-columns: 1fr; }
  .cpg-preview-body { grid-template-columns: 1fr; min-height: 0; }
  .cpg-preview-side { display: none; }
  .cpg-preview-main { padding: 20px 16px; }
  .cpg-preview-step span { display: none; }
  .cpg-preview-bar { padding: 12px 14px; }
  .cpg-home-v2 .cpg-homeproof span { min-width: 42%; }
  .cpg-overview-subjects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cpg-exam-shortcuts a, .cpg-home-pyqgrid a { transition: none; }
  .cpg-exam-shortcuts a:hover, .cpg-home-pyqgrid a:hover { transform: none; }
}
