.course-card.ip-pyq-course,
.package-card.ip-pyq-course {
  border: 1px solid #bad4c9;
  border-top: 4px solid #bc974c;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px #12392e12;
}
.ip-pyq-course .course-badge,
.ip-pyq-course .package-label { color: #72531d; background: #faf3df; }
.ip-pyq-course .course-track,
.ip-pyq-course .course-title-level,
.ip-pyq-course .course-title-main,
.ip-pyq-course .course-series-subtitle,
.ip-pyq-course .package-series-subtitle { color: #145a48 !important; }
.ip-pyq-course .text-button,
.ip-pyq-course .speciality-title,
.ip-pyq-course .save-line { color: #087a78; }
.course-card.ip-pyq-course .course-title-main { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.course-card.ip-pyq-course .course-series-subtitle { border: 0; border-left: 3px solid #bc974c; border-radius: 0; padding: 3px 0 3px 10px; background: transparent; box-shadow: none; }
.course-card.ip-pyq-course .text-button { border-color: #145a48; background: #145a48; color: #fff; }
.course-card.ip-pyq-course .text-button:hover { background: #0d4537; color: #fff; }
.ip-pyq-course .package-button { border-color: #145a48; background: #145a48; }
.ip-pyq-course .package-button:hover { background: #0d4537; }
.ip-pyq-course .course-badge { color: #72531d; border: 1px solid #e2cf9e; background: #faf3df; }
.ip-pyq-course .home-early-bird-price strong { color: #145a48; }
.ip-pyq-course li svg { color: #087a78; }
/* Homepage comparison cards; the course library keeps its own layout. */
#courses {
  padding-block: 44px;
  border-block: 1px solid #dce6f2;
  background: #f7faff;
}
#courses *, #courses *::before, #courses *::after { letter-spacing: 0; }
#courses .section-heading { max-width: 760px; }
#courses .section-heading .eyebrow { color: #174c91; }
#courses .section-heading h2 { margin: 10px 0; font-size: 32px; line-height: 1.25; }
#courses .section-heading p { font-size: 14px; line-height: 1.6; }
#courses .course-tabs { flex-direction: row; gap: 8px; margin: 22px 0; }
#courses .course-tab {
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  background: #fff;
  box-shadow: none;
}
#courses .course-tab.active, #courses .course-tab:hover { color: #fff; border-color: #11315a; background: #11315a; box-shadow: none; }
#courses .course-tab[data-filter="inspector"].active, #courses .course-tab[data-filter="inspector"]:hover { border-color: #1d4ed8; background: #1d4ed8; }
#courses .course-tab[data-filter="group-b"].active, #courses .course-tab[data-filter="group-b"]:hover { color: #11315a; border-color: #e4c575; background: #f1db9d; }
#courses .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
#courses .course-card {
  --course-accent: #2563eb;
  --course-text: #14366a;
  min-height: 0;
  padding: 18px;
  border: 1px solid #bfd3f2;
  border-top: 3px solid var(--course-accent);
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fbff 0%, #eaf3ff 58%, #f0fdfa 100%);
  box-shadow: 0 5px 16px #172e2610;
}
#courses .course-card.featured { --course-accent: #d79b28; --course-text: #11315a; border-color: #ebd094; border-top-color: var(--course-accent); background: linear-gradient(145deg, #fffdfa 0%, #fff6df 58%, #fff 100%); }
#courses .course-card.ip-pyq-course { --course-accent: #145a48; --course-text: #145a48; border-color: #bad4c9; border-top-color: var(--course-accent); background: #f0f8f3; }
#courses .course-card.is-upcoming { --course-accent: #2563eb; --course-text: #14366a; }
#courses .course-card:hover { border-color: var(--course-accent); box-shadow: 0 9px 22px #172e2618; transform: translateY(-2px); }
#courses .course-card-top { min-height: 22px; padding: 0; }
#courses .course-card-top .course-track { display: none; }
#courses .course-badge { padding: 4px 7px; border: 1px solid #bfd3f2; background: #eaf2ff; color: #1d4ed8; font-size: 10px; }
#courses .featured .course-badge { border-color: #e9d6a8; background: #faf4e5; color: #795a20; }
#courses .ip-pyq-course .course-badge { border-color: #c9ded2; background: #eff6f2; color: #145a48; }
#courses .is-upcoming .course-badge { border-color: #bfd3f2; background: #eaf2ff; color: #1d4ed8; }
#courses .popular-label { top: 18px; right: 18px; padding: 4px 0; border-radius: 0; background: none; font-size: 10px; color: #795a20; }
#courses .course-status-upcoming { min-height: 22px; padding: 4px 8px; border-radius: 4px; color: #fff; background: #174c91; line-height: 1.4; }
#courses .course-title-stack { gap: 4px; margin: 12px 0 8px; max-width: none; line-height: 1.35; }
#courses .course-card .course-title-main {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--course-text) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
#courses .course-title-level { color: var(--course-text) !important; font-size: 21px; line-height: 1.3; font-weight: 800; }
#courses .course-card .course-series-subtitle {
  width: auto;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--course-text) !important;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
#courses .course-card p { font-size: 12px; line-height: 1.55; color: #53647a; }
#courses .course-card .course-tagline { margin-bottom: 8px; color: var(--course-text); font-size: 12px; line-height: 1.5; font-weight: 700; }
#courses .course-card.featured .course-tagline { color: #795a20; }
#courses .course-card ul { gap: 7px; margin: 14px 0 18px; }
#courses .course-card li { gap: 7px; color: #2e4156; font-size: 12px; line-height: 1.5; font-weight: 500; }
#courses .course-card li svg { width: 14px; height: 14px; margin-top: 2px; padding: 0; border-radius: 0; color: var(--course-text); background: none; }
#courses .course-card-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; border-top-color: #e0e9e4; }
#courses .home-early-bird-price { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: end; }
#courses .home-early-bird-price small { grid-column: 1; grid-row: 1; color: #586960; font-size: 10px; white-space: normal; }
#courses .home-early-bird-price strong { grid-column: 1; grid-row: 2; color: var(--course-text); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 27px; line-height: 1.2; font-weight: 800; }
#courses .home-early-bird-price span { grid-column: 2; grid-row: 1 / 3; font-size: 10px; line-height: 1.5; text-align: right; }
#courses .home-early-bird-price s { display: block; font-size: 13px; }
#courses .home-early-bird-price em { grid-column: 1 / -1; margin-top: 4px; color: #63736a; font-size: 10px; line-height: 1.5; font-weight: 500; }
#courses .home-course-upcoming { gap: 3px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#courses .home-course-upcoming::before { display: none; }
#courses .home-course-upcoming strong { color: #14366a; font-size: 15px; }
#courses .home-course-upcoming em, #courses .home-course-upcoming span { font-size: 10px; line-height: 1.5; }
#courses .course-card .text-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  justify-content: space-between;
  border: 1px solid #1d4ed8;
  border-radius: 4px;
  background: #1d4ed8;
  box-shadow: none;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  white-space: normal;
}
#courses .course-card.featured .text-button { color: #2c321c; border-color: #e4c575; background: #f1db9d; }
#courses .course-card.ip-pyq-course .text-button { border-color: #145a48; background: #145a48; }
#courses .course-card .text-button:hover { filter: brightness(0.96); transform: none; box-shadow: none; }
#courses .course-card.is-upcoming .text-button { color: #fff; border-color: #174c91; background: #174c91; box-shadow: none; opacity: 1; cursor: default; }
#courses .course-card.is-upcoming .text-button .course-upcoming-copy strong { color: #fff; font-size: 14px; }
#courses .course-card.is-upcoming .text-button .course-upcoming-copy small { color: #fff; font-size: 10px; }
#courses .course-card.is-upcoming .text-button:hover { filter: none; }
#courses :is(button, a):focus-visible { outline: 3px solid #087a78; outline-offset: 3px; }
@media (max-width: 1050px) {
  #courses .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #courses { padding-block: 32px; }
  #courses .section-heading h2 { font-size: 25px; }
  #courses .section-heading p { font-size: 13px; }
  #courses .course-tabs { justify-content: flex-start; gap: 6px; margin: 18px 0; }
  #courses .course-tab { padding: 8px 10px; font-size: 11px; }
  #courses .course-tab[data-filter="all"] { flex-basis: 100%; }
  #courses .course-tab:not([data-filter="all"]) { flex: 1 1 130px; }
  #courses .course-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #courses .course-card { padding: 16px; }
  #courses .popular-label { top: 16px; right: 16px; }
  #courses .course-title-level { font-size: 20px; }
}
.ip-practice-page {
  --ip-emerald: #145a48;
  --ip-teal: #087a78;
  --ip-gold: #f3ca68;
  color: #263730;
  background: #fff;
  letter-spacing: 0;
}
.ip-practice-page *,
.ip-practice-page *::before,
.ip-practice-page *::after { letter-spacing: 0; }
.ip-practice-page .academy-topline { background: #123c30; }
.ip-practice-page .inner-header { background: #fff; }
.ip-practice-intro {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #17392e url("assets/pma-complete-library-banner.webp") center 48% / cover no-repeat;
}
.ip-practice-intro::before { position: absolute; z-index: -1; inset: 0; content: ""; background: #09271ee3; }
.ip-intro-content { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding-block: 32px; }
.ip-intro-copy { min-width: 0; }
.ip-eyebrow { color: #f3ca68; font-size: 13px; font-weight: 700; }
.ip-practice-page h1 { margin: 12px 0; font-size: 32px; line-height: 1.22; font-weight: 800; }
.ip-practice-page h1 span { color: #f3ca68; }
.ip-promise { margin: 12px 0 5px; font-size: 20px; font-weight: 700; }
.ip-intro-description { margin: 0; font-size: 15px; line-height: 1.6; }
.ip-practice-fee { flex: 0 0 248px; padding-left: 28px; border-left: 1px solid #ffffff50; }
.ip-practice-fee > span { display: block; font-size: 13px; }
.ip-practice-fee > .ip-current-fee-label { margin-top: 10px; color: #f3ca68; font-size: 11px; font-weight: 700; }
.ip-practice-fee > strong { display: block; margin: 4px 0; font-size: 36px; line-height: 1.25; color: #f3ca68; }
.ip-practice-fee > small { display: block; margin-bottom: 16px; line-height: 1.7; font-size: 12px; }
.ip-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 11px 16px; border: 1px solid #087a78; border-radius: 4px; background: #087a78; color: #fff; text-decoration: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ip-action-gold { width: 100%; color: #17392e; background: #f3ca68; border-color: #f3ca68; }
.ip-action:hover { filter: brightness(0.95); }
.ip-practice-page :is(button, a, select):focus-visible { outline: 3px solid #087a78; outline-offset: 3px; }
.ip-course-facts { border-bottom: 1px solid #dfe7e7; background: #f1f8f7; }
.ip-facts-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 14px; font-size: 12px; }
.ip-facts-inner strong { display: block; font-size: 18px; color: #087a78; }
.ip-specialties { border-bottom: 1px solid #e3e5e5; }
.ip-specialties-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 12px; color: #087a78; font-size: 12px; font-weight: 700; }
.ip-specialties-inner span::before { margin-right: 8px; color: #99752f; content: "+"; }
.ip-paper-library { padding-block: 28px 40px; scroll-margin-top: 100px; }
.ip-library-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ip-section-label { margin: 0 0 5px; color: #087a78; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ip-practice-page h2 { margin: 0; font-size: 23px; line-height: 1.35; }
.ip-access-badge { flex-shrink: 0; padding: 6px 9px; color: #145a48; background: #f0f6f3; border: 1px solid #bad4c9; border-radius: 4px; font-size: 12px; font-weight: 700; }
.ip-access-badge[data-active="true"] { color: #087a78; background: #f1f8f7; border-color: #b8d8d5; }
.ip-library-toolbar { display: flex; align-items: end; gap: 24px; padding: 20px 0 12px; border-bottom: 1px solid #e3e5e5; }
.ip-year-control,
.ip-paper-control { display: grid; gap: 6px; color: #554e50; font-size: 12px; font-weight: 700; }
.ip-year-control select { min-width: 172px; height: 42px; padding: 0 32px 0 10px; color: #302a2c; border: 1px solid #bbbfc0; border-radius: 4px; background: #fff; font: inherit; font-size: 14px; }
.ip-paper-filters { display: grid; grid-template-columns: repeat(5, 48px); height: 42px; border: 1px solid #bbbfc0; border-radius: 4px; overflow: hidden; }
.ip-paper-filters button { width: 100%; min-width: 0; border: 0; border-right: 1px solid #e3e5e5; background: #fff; color: #554e50; font: inherit; font-size: 14px; cursor: pointer; }
.ip-paper-filters button:last-child { border-right: 0; }
.ip-paper-filters button[aria-pressed="true"] { background: #145a48; color: #fff; }
.ip-paper-filters button:disabled { background: #f5f5f5; color: #999; cursor: default; }
.ip-library-toolbar > p { margin: 0 0 11px auto; color: #554e50; font-size: 12px; text-align: right; }
.ip-access-copy { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #554e50; }
.ip-manifest-status { padding: 24px 0; }
.ip-manifest-status[hidden] { display: none; }
.ip-manifest-status p,
.ip-empty { color: #554e50; font-size: 14px; line-height: 1.6; }
.ip-cycle-group { padding-top: 26px; }
.ip-cycle-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ip-cycle-heading h3 { display: flex; align-items: center; gap: 12px; margin: 0; color: #145a48; font-size: 21px; }
.ip-cycle-heading h3 span { color: #6c6668; font-size: 12px; font-weight: 400; }
.ip-cycle-heading p { margin: 0; color: #6c6668; font-size: 12px; }
.ip-paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ip-paper-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid #dadede; border-radius: 6px; border-top: 3px solid #bc974c; background: #fff; }
.ip-paper-card.is-unlocked { border-top-color: #087a78; }
.ip-paper-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.ip-paper-number { color: #145a48; font-size: 13px; font-weight: 800; }
.ip-paper-state { color: #6c6668; font-size: 11px; }
.ip-paper-card.is-unlocked .ip-paper-state { color: #087a78; }
.ip-paper-card h3 { margin: 14px 0 7px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.45; }
.ip-paper-kind { margin: 0; color: #6c6668; font-size: 12px; line-height: 1.6; }
.ip-paper-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 14px 0; font-size: 12px; font-weight: 700; color: #087a78; }
.ip-writing-note { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: #6c6668; }
.ip-paper-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-top: auto; padding: 12px 0 0; border-top: 1px solid #e3e5e5; color: #145a48; text-decoration: none; font-size: 13px; font-weight: 800; }
.ip-paper-action:hover { color: #087a78; }
.ip-paper-action.is-disabled { color: #999; }
.ip-practice-notes { padding: 28px 0; border-top: 1px solid #dfe7e7; background: #f1f8f7; }
.ip-notes-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.ip-notes-inner h3 { margin: 0; font-size: 18px; }
.ip-notes-inner p:not(.ip-section-label) { margin: 12px 0 0; font-size: 13px; color: #554e50; line-height: 1.8; }
.ip-practice-page .inner-footer { color: #fff; background: #182d24; }
@media (max-width: 1000px) {
  .ip-paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-practice-page .inner-nav { flex-wrap: wrap; }
  .ip-practice-page .inner-menu { gap: 12px; }
  .ip-practice-page .inner-nav .brand { min-width: 0; }
  .ip-practice-page .inner-nav .brand small { font-size: 9px; }
}
@media (max-width: 680px) {
  .ip-intro-content { flex-direction: column; align-items: stretch; gap: 20px; padding-block: 24px; }
  .ip-practice-page h1 { font-size: 26px; }
  .ip-eyebrow { font-size: 11px; }
  .ip-practice-fee { flex-basis: auto; padding: 16px 0 0; border-left: 0; border-top: 1px solid #ffffff50; }
  .ip-practice-fee > strong { font-size: 30px; }
  .ip-practice-fee > small { margin-bottom: 12px; }
  .ip-action-gold { width: auto; min-width: 208px; }
  .ip-facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .ip-library-heading { align-items: start; flex-direction: column; gap: 10px; }
  .ip-practice-page h2 { font-size: 21px; }
  .ip-library-toolbar { flex-wrap: wrap; gap: 12px 18px; }
  .ip-year-control { flex: 1 1 160px; }
  .ip-year-control select { width: 100%; min-width: 0; }
  .ip-paper-control { flex: 1 1 240px; }
  .ip-paper-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ip-library-toolbar > p { margin: 0; width: 100%; text-align: left; }
  .ip-paper-grid,
  .ip-notes-inner { grid-template-columns: minmax(0, 1fr); }
  .ip-cycle-heading { flex-wrap: wrap; }
  .ip-cycle-heading p { width: 100%; }
  .ip-practice-page .inner-nav { gap: 10px; }
  .ip-practice-page .inner-account-menu { margin-left: auto; }
  .ip-practice-page .inner-nav .brand { flex: 1 1 auto; }
  .ip-practice-page .inner-nav .brand > span { min-width: 0; }
}
