/* =============================================================================
   IPMAT FAMILY LAYER   (ipmat/assets/css/ipmat-pages.css)
   Loads AFTER global-bundle.css and epa-mobile.css, on the IPMAT pages only.

   Why it exists: most IPMAT pages were built on three different CSS systems
   (the shared bundle, a bootstrap + "premium-subsites" skin, and several
   stylesheets that are no longer linked anywhere). This file gives all of them
   one institutional mobile language: navy ink, orange accent, serif headings,
   hairline rules, 4px corners, no gradients, no glow, 44px+ touch targets.

   Sections
     1. Shared helpers
     2. Enrolment / plan configurator  (ipmat-enroll, 2027, 2026 pages)
     3. Plan list                      (ipmat-programs pages)
     4. Hub pages on the shared bundle (index, programs, faq, colleges)
     5. Guide
     6. About
     7. Contact
     8. Floating chat link
   ========================================================================== */

/* ---- 1. Shared helpers ----------------------------------------------------- */

/* Grid children must be allowed to shrink or one wide table / long word widens the page. */
.ip-page .grid > * { min-width: 0; }

.ip-main { padding-top: var(--header-height); padding-bottom: 48px; }
.ip-main .crumbs { margin-bottom: 4px; }

.ip-lede {
  margin: 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--epa-text-secondary);
}

.ip-photo { margin: 24px 0 0; max-width: 640px; }
.ip-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--epa-border); border-radius: var(--radius-md); background: var(--epa-white); }
.ip-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--epa-text-muted); }

.ip-enrol-lede { margin: -8px 0 16px; font-size: 15px; line-height: 1.55; color: var(--epa-text-muted); }

/* ---- 2. Enrolment / plan configurator ------------------------------------- */

/* Fee summary rows (Program / Mode) inside .prog-enrol */
.ip-page .summary-title { margin: 0 0 4px; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left; color: var(--epa-ink); }
.ip-page .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--epa-border);
  font-size: 15px;
  line-height: 1.4;
  color: var(--epa-text-muted);
}
.ip-page .summary-row > span:last-child { color: var(--epa-ink); font-weight: 600; text-align: right; }
.ip-page .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--epa-border);
  border-bottom: 1px solid var(--epa-border);
  font-size: 15px;
  color: var(--epa-text-muted);
}
.ip-page .summary-total .price-amount,
.ip-page .summary-total #summaryFee {
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--epa-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ip-page .checkout-form { margin: 0; }
.ip-page .checkout-form .form-input,
.ip-page .prog-enrol .form-input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--epa-ink);
  background: var(--epa-white);
  border: 1px solid var(--epa-border-dark);
  border-radius: var(--radius-md);
}
.ip-page .prog-enrol .form-input:focus { outline: 3px solid var(--epa-primary); outline-offset: 1px; border-color: var(--epa-primary); }

/* The checkout button: solid orange like every other primary button on the site. */
.ip-page .prog-enrol #payBtn,
.ip-page .prog-enrol .btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--epa-white);
  background: var(--epa-primary-dark);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.ip-page .prog-enrol #payBtn:hover,
.ip-page .prog-enrol .btn-checkout:hover { background: var(--epa-ink); }
.ip-page .prog-enrol #payBtn:disabled { opacity: 0.6; cursor: default; }
.ip-page .secure-badge { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--epa-text-muted); text-align: center; }
.ip-page .secure-badge i { margin-right: 6px; color: var(--epa-green); }

/* Plan / mode choice (radio cards). The input stays focusable, just visually hidden. */
.ip-page .config-step,
.ip-page .selection-card { margin: 0 0 28px; padding: 0; background: none; border: 0; box-shadow: none; }
.ip-page .step-title,
.ip-page .card-head { display: block; margin: 0 0 12px; }
.ip-page .step-title,
.ip-page .card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--epa-ink);
}
.ip-page .step-number { display: none; }

.ip-page .radio-card-label,
.ip-page .option-label { display: block; position: relative; margin: 0 0 10px; cursor: pointer; }
.ip-page .radio-card-label input[type="radio"],
.ip-page .option-label input[type="radio"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.ip-page .radio-card,
.ip-page .option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--epa-white);
  border: 1px solid var(--epa-border-dark);
  border-radius: var(--radius-md);
  text-align: left;
}
.ip-page .radio-card-label:hover .radio-card,
.ip-page .option-label:hover .option-card { border-color: var(--epa-ink); }
.ip-page .radio-card-label input:checked + .radio-card,
.ip-page .option-label input:checked + .option-card,
.ip-page .option-label input:checked ~ .option-card {
  border-color: var(--epa-ink);
  box-shadow: inset 0 0 0 1px var(--epa-ink);
  background: var(--epa-white);
}
.ip-page .radio-card-label input:focus-visible + .radio-card,
.ip-page .option-label input:focus-visible + .option-card {
  outline: 3px solid var(--epa-primary);
  outline-offset: 2px;
}
.ip-page .radio-check,
.ip-page .check-circle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  font-size: 12px;
  color: transparent;
  border: 2px solid var(--epa-border-dark);
  border-radius: 50%;
}
.ip-page .radio-card-label input:checked + .radio-card .radio-check,
.ip-page .option-label input:checked + .option-card .check-circle,
.ip-page .option-label input:checked ~ .option-card .check-circle {
  color: var(--epa-white);
  background: var(--epa-primary-dark);
  border-color: var(--epa-primary-dark);
}
.ip-page .radio-content { flex: 1; min-width: 0; }
.ip-page .radio-title,
.ip-page .opt-title { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--epa-ink); }
.ip-page .radio-desc,
.ip-page .opt-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--epa-text-muted); }
.ip-page .radio-title i { margin-right: 8px; color: var(--epa-primary-dark); }

@media (min-width: 640px) {
  .ip-page .config-step--pair,
  .ip-page .selection-card--pair { display: block; }
}

/* ---- 3. Plan list ---------------------------------------------------------- */
.ip-head { padding: 0 0 8px; }
.ip-head h1 { margin: 0 0 8px; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; text-align: left; }
.ip-head p { margin: 0; max-width: 56ch; font-size: 1.0625rem; line-height: 1.6; color: var(--epa-text-secondary); }

.ip-filters { display: grid; gap: 12px; margin: 24px 0 28px; }
.ip-filters label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--epa-ink); }
.ip-filters select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--epa-ink);
  background-color: var(--epa-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230f1535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--epa-border-dark);
  border-radius: var(--radius-md);
  -webkit-appearance: none;
  appearance: none;
}
.ip-filters select:focus { outline: 3px solid var(--epa-primary); outline-offset: 1px; border-color: var(--epa-primary); }

.ip-plans { display: grid; gap: 16px; }
.ip-plan {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--epa-white);
  border: 1px solid var(--epa-border-dark);
  border-radius: var(--radius-md);
}
.ip-plan.is-featured { border-color: var(--epa-ink); box-shadow: inset 0 0 0 1px var(--epa-ink); }
.ip-plan__tag { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--epa-primary-dark); }
.ip-plan h3 { margin: 0 0 14px; font-size: 1.25rem; line-height: 1.3; }
.ip-plan .prog-checks { margin: 0 0 20px; flex: 1; grid-template-columns: 1fr; }
.ip-plan .prog-checks li:nth-child(2) { border-top: 1px solid var(--epa-border); }
.ip-plan .btn { width: 100%; min-height: 48px; }
.ip-empty { display: none; padding: 32px 0; text-align: center; color: var(--epa-text-muted); }

@media (min-width: 700px) {
  .ip-filters { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .ip-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1000px) {
  .ip-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- 4. Hub pages on the shared bundle ------------------------------------ */
.ip-hub-crumbs { padding-top: 4px; }

@media (max-width: 768px) {

  .ip-page .hero { padding: calc(var(--header-height) + 20px) 0 36px; }
  .ip-page .hero__inner { text-align: left; gap: 24px; }
  .ip-page .hero__desc { margin-left: 0; font-size: 1.0625rem; line-height: 1.6; }
  .ip-page .hero__features { align-items: flex-start; margin-bottom: 20px; }
  .ip-page .hero__features li { align-items: flex-start; }
  .ip-page .hero__features li i { margin-top: 2px; }
  .ip-page .hero__actions { display: grid; gap: 10px; justify-content: stretch; }
  .ip-page .hero__actions .btn { width: 100%; }
  .ip-page .hero__trust { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; margin-top: 20px; padding-top: 20px; gap: 8px; }
  .ip-page .overline { display: none; }
  .ip-page .hero__image { max-width: 100%; margin-top: 8px; }
  .ip-page .hero__image-card { padding: 12px; }
  .ip-page .hero__image-label { position: static; display: inline-block; margin-top: 8px; transform: none; padding: 0; background: none; box-shadow: none; }

  /* 4 headline numbers: two by two, not four 170px rows. */
  .ip-page .stat-bar { padding: 28px 0; }
  .ip-page .stat-bar__inner { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .ip-page .stat-bar__item::after { display: none; }
  .ip-page .stat-bar__value { font-size: 2rem; }
  .ip-page .stat-bar__label { font-size: 14px; line-height: 1.35; }

  .ip-page .section-header { margin-bottom: 24px; text-align: left; }
  .ip-page .section.text-center, .ip-page .text-center { text-align: left; }
  .ip-page .section-header p { font-size: 1.0625rem; line-height: 1.6; }
  .ip-page .btn.mt-8, .ip-page .mt-8 > .btn { width: 100%; }

  /* Program cards: a short header row instead of a 140px grey banner. */
  .ip-page .program-card { text-align: left; }
  .ip-page .program-card__banner { height: auto; justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 12px 20px; }
  .ip-page .program-card__badge { margin-left: 0 !important; }
  .ip-page .program-card__body { padding: 20px; }
  .ip-page .program-card__title { margin-bottom: 8px; font-size: 1.25rem; }
  .ip-page .program-card__features { margin-bottom: 20px; }
  .ip-page .program-card__features li { font-size: 15px; line-height: 1.45; }
  .ip-page .program-card__cta { padding: 14px 16px; min-height: 48px; border: 1px solid var(--epa-border-dark); }
  .ip-page .program-card--popular .program-card__cta { border-color: var(--epa-primary-dark); background: var(--epa-primary-dark); }

  /* Colleges: compact rows (name + city), one column, no giant circles. */
  .ip-page .college-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
    text-align: left;
  }
  .ip-page .college-card__logo { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; font-size: 20px; border-radius: var(--radius-md); }
  .ip-page .college-card__name { margin: 0; font-size: 1.0625rem; }
  .ip-page .college-card__location { margin: 0; font-size: 14px; }
  .ip-page .college-card hr { display: none; }
  .ip-page .college-card .body-sm { grid-column: 1 / -1; margin: 10px 0 0; font-size: 15px; line-height: 1.55; }

  /* "Why EPA": hairline rows instead of four stacked boxes. */
  .ip-page .ip-why { display: grid; gap: 0; }
  .ip-page .ip-why .card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    padding: 16px 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--epa-border);
    border-radius: 0;
  }
  .ip-page .ip-why .card:last-child { border-bottom: 1px solid var(--epa-border); }
  .ip-page .ip-why .card__icon { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; font-size: 18px; }
  .ip-page .ip-why .card__title { margin: 0 0 4px; font-size: 1.0625rem; }
  .ip-page .ip-why .card__text { font-size: 15px; }

  .ip-page .card { padding: 20px; }
  .ip-page .cta-block { padding: 32px 20px; text-align: left; border-radius: var(--radius-md); }
  .ip-page .cta-block p { margin-left: 0 !important; margin-right: 0 !important; font-size: 1.0625rem; }
  .ip-page .cta-block > div { justify-content: stretch !important; }
  .ip-page .cta-block .btn { width: 100%; }

  /* Old JS accordion: thumb-sized question rows, flat. */
  .ip-page .faq-item { margin-bottom: 8px; border-radius: var(--radius-md); }
  .ip-page .faq-item__question { min-height: 56px; padding: 12px 16px; font-size: 1rem; line-height: 1.4; }
  .ip-page .faq-item__icon { width: 32px; height: 32px; }
  .ip-page .faq-item__answer-inner { padding: 16px; font-size: 15px; }

  /* Lead forms: label-less inputs get real height, selects stack. */
  .ip-page .ip-form { display: grid; gap: 12px; }
  .ip-page .ip-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--epa-ink); }
  .ip-page .ip-form input,
  .ip-page .ip-form select { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--epa-ink); background-color: var(--epa-white); border: 1px solid var(--epa-border-dark); border-radius: var(--radius-md); }
  .ip-page .ip-form .btn { min-height: 52px; }
}

.ip-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 768px) {
  .ip-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ip-actions .btn { width: 100%; }
}

/* Local-page link banner and trust chips on the hub */
.ip-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  min-height: 56px;
  padding: 14px 16px;
  text-decoration: none;
  background: var(--epa-white);
  border: 1px solid var(--epa-border);
  border-radius: var(--radius-md);
}
.ip-callout strong { color: var(--epa-ink); font-weight: 600; }
.ip-callout i { margin-right: 8px; color: var(--epa-primary-dark); }
.ip-callout span:last-child { font-weight: 600; color: var(--epa-primary-dark); }

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--epa-ink);
  text-decoration: none;
  background: var(--epa-white);
  border: 1px solid var(--epa-border);
  border-radius: 8px;
}
.ip-chip i { color: var(--epa-primary); }

/* Page headings on hub sub-pages (programs, faq, colleges) */
.ip-page .ip-title { margin: 8px 0 8px; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; text-align: left; }
.ip-page .ip-sub { margin: 0 0 28px; max-width: 56ch; font-size: 1.0625rem; line-height: 1.6; color: var(--epa-text-secondary); }

/* ---- 5. Guide --------------------------------------------------------------- */
.ip-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ip-guide-card { min-width: 0; padding: 20px; background: var(--epa-white); border: 1px solid var(--epa-border); border-radius: var(--radius-md); }
.ip-guide-card .guide-section h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 5.4vw, 1.75rem); line-height: 1.25; }
.ip-guide-card .guide-section h3,
.ip-guide-card .guide-section h4 { margin: 20px 0 8px; }
.ip-guide-card .guide-section ul,
.ip-guide-card .guide-section ol { margin: 0 0 16px; padding-left: 22px; }
.ip-guide-card .guide-section li { margin-bottom: 10px; line-height: 1.6; }
.ip-guide-card .guide-section p { line-height: 1.65; }

.guide-toc {
  background: var(--epa-white);
  border: 1px solid var(--epa-border);
  border-radius: var(--radius-md);
}
.guide-toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--epa-ink);
  cursor: pointer;
  list-style: none;
}
.guide-toc > summary::-webkit-details-marker { display: none; }
.guide-toc > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--epa-primary-dark); }
.guide-toc[open] > summary::after { content: "\2212"; }
.guide-toc nav { display: grid; padding: 0 16px 8px; }
.guide-toc .guide-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font-size: 15px;
  border-top: 1px solid var(--epa-border);
}

/* Guide sections are accordions on phones (17 sections is ~13,000px otherwise) and always open on desktop. */
.ip-guide-card details.guide-section { padding: 0; border-bottom: 1px solid var(--epa-border); }
.ip-guide-card details.guide-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}
.ip-guide-card details.guide-section > summary::-webkit-details-marker { display: none; }
.ip-guide-card details.guide-section > summary h2 { margin: 0; flex: 1; min-width: 0; }
.ip-guide-card details.guide-section > summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--epa-primary-dark); }
.ip-guide-card details.guide-section[open] > summary::after { content: "\2212"; }
.ip-guide-card details.guide-section[open] { padding-bottom: 24px; }
.ip-guide-card details.guide-section > :not(summary):first-of-type { margin-top: 8px; }
.ip-guide-card .guide-section:last-child { border-bottom: 0; }
@media (min-width: 992px) {
  .ip-guide-card details.guide-section { padding: 28px 0; }
  .ip-guide-card details.guide-section:first-child { padding-top: 0; }
  .ip-guide-card details.guide-section > summary { min-height: 0; padding: 0; pointer-events: none; cursor: default; }
  .ip-guide-card details.guide-section > summary::after,
  .ip-guide-card details.guide-section[open] > summary::after { content: none; }
  .ip-guide-card details.guide-section > summary h2 { margin: 0 0 12px; }
}

/* Wide tables scroll inside their own box instead of widening the page. */
.ip-guide-card .table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--epa-border); border-radius: var(--radius-md); }
.ip-guide-card .epa-table { min-width: 0; margin: 0; }
.ip-guide-card #syllabus .epa-table { min-width: 520px; }
.ip-hint { display: none; margin: -10px 0 20px; font-size: 14px; color: var(--epa-text-muted); }
@media (max-width: 991px) { .ip-hint { display: block; } }
.ip-guide-card .epa-table th,
.ip-guide-card .epa-table td { padding: 12px 14px; font-size: 15px; line-height: 1.5; vertical-align: top; }

@media (min-width: 992px) {
  .ip-guide-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .ip-guide-card { padding: 40px; }
  .guide-toc { position: sticky; top: calc(var(--header-height) + 24px); }
  .guide-toc > summary { cursor: default; }
  .guide-toc > summary::after,
  .guide-toc[open] > summary::after { content: none; }
  .ip-guide-card #syllabus .epa-table { min-width: 0; }
}

/* ---- 6. About ---------------------------------------------------------------
   about-ipmat.html used classes from a stylesheet that is no longer linked, so it
   rendered as unstyled text. Re-styled here on the shared tokens. */
.ipa-hero { padding: calc(var(--header-height) + 20px) 0 32px; background: var(--epa-white); border-bottom: 1px solid var(--epa-border); }
.ipa-hero .hero-blob { display: none; }
.ipa-hero .hero-layout { display: grid; gap: 28px; }
.ipa-hero .badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ipa .badge { display: inline-block; padding: 6px 12px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--epa-text-secondary); background: var(--epa-bg-alt); border: 1px solid var(--epa-border); border-radius: var(--radius-sm); }
.ipa .badge-accent { color: var(--epa-primary-dark); background: var(--epa-primary-light); border-color: transparent; }
.ipa-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; text-align: left; }
.ipa-hero h1 span { color: var(--epa-primary-dark); }
.ipa-hero .hero-sub { margin: 0 0 20px; max-width: 56ch; font-size: 1.0625rem; line-height: 1.6; color: var(--epa-text-secondary); }
.ipa .toc-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--epa-text-muted); }
.ipa .toc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ipa .toc-grid a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--epa-ink); text-decoration: none; background: var(--epa-white); border: 1px solid var(--epa-border-dark); border-radius: var(--radius-md); }
.ipa .enquiry-card { padding: 20px; background: var(--epa-white); border: 1px solid var(--epa-border-dark); border-radius: var(--radius-md); }
.ipa .enquiry-card h3 { margin: 0 0 6px; font-size: 1.375rem; }
.ipa .enquiry-card .card-head p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--epa-text-muted); }
.ipa .modern-form { display: grid; gap: 14px; }
.ipa .input-wrap { display: flex; flex-direction: column-reverse; gap: 6px; }
.ipa .input-wrap label { font-size: 14px; font-weight: 600; color: var(--epa-ink); }
.ipa .input-wrap input,
.ipa .input-wrap select { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--epa-ink); background-color: var(--epa-white); border: 1px solid var(--epa-border-dark); border-radius: var(--radius-md); }
.ipa .input-wrap input:focus,
.ipa .input-wrap select:focus { outline: 3px solid var(--epa-primary); outline-offset: 1px; border-color: var(--epa-primary); }
.ipa .btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; font: inherit; font-size: 16px; font-weight: 600; color: var(--epa-white); background: var(--epa-primary-dark); border: 0; border-radius: var(--radius-md); cursor: pointer; }
.ipa .btn-primary:hover { background: var(--epa-ink); }

.ipa .section-pad { padding: 44px 0; }
.ipa .bg-light { background: var(--epa-bg-light); }
.ipa .section-header { margin: 0 0 24px; text-align: left; }
.ipa .section-header h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 5.8vw, 1.9rem); line-height: 1.2; }
.ipa .section-header p { margin: 0; max-width: 62ch; line-height: 1.6; color: var(--epa-text-secondary); }
.ipa .small-container { max-width: 800px; }

.ipa .updates-grid,
.ipa .pattern-grid,
.ipa .stream-grid,
.ipa .uni-grid { display: grid; gap: 0; }
.ipa .feature-card,
.ipa .pattern-card,
.ipa .uni-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--epa-border);
}
.ipa .updates-grid > :last-child,
.ipa .pattern-grid > :last-child,
.ipa .uni-grid > :last-child { border-bottom: 1px solid var(--epa-border); }
.ipa .icon-circle,
.ipa .card-icon,
.ipa .uni-logo {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font-size: 18px;
  color: var(--epa-primary-dark);
  background: var(--epa-primary-light);
  border-radius: var(--radius-md);
}
.ipa .feature-card h3,
.ipa .pattern-card h3,
.ipa .uni-card h4 { margin: 0 0 4px; font-size: 1.0625rem; line-height: 1.3; }
.ipa .feature-card p,
.ipa .pattern-card p,
.ipa .uni-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--epa-text-muted); }

.ipa .marking-container { margin-top: 24px; padding: 20px; background: var(--epa-white); border: 1px solid var(--epa-border); border-radius: var(--radius-md); }
.ipa .mark-title { margin: 0 0 12px; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--epa-ink); }
.ipa .mark-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--epa-border); border: 1px solid var(--epa-border); border-radius: var(--radius-md); overflow: hidden; }
.ipa .mark-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; text-align: center; background: var(--epa-white); }
.ipa .mark-item .score { font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--epa-ink); }
.ipa .mark-item .label { font-size: 13px; line-height: 1.3; color: var(--epa-text-muted); }
.ipa .text-green .score { color: #047857; }
.ipa .text-red .score { color: #b91c1c; }
.ipa .mark-note { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--epa-text-secondary); }

.ipa .stream-card { padding: 16px 0; border-top: 1px solid var(--epa-border); }
.ipa .stream-grid > :last-child { border-bottom: 1px solid var(--epa-border); }
.ipa .stream-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; }
.ipa .stream-head h4 { margin: 0; font-size: 1.125rem; }
.ipa .stream-head .tag { font-size: 14px; color: var(--epa-primary-dark); font-weight: 600; }
.ipa .check-list { list-style: none; margin: 0; padding: 0; }
.ipa .check-list li { position: relative; padding: 8px 0 8px 28px; font-size: 15px; line-height: 1.55; color: var(--epa-text-secondary); }
.ipa .check-list li::before { content: "\f00c"; position: absolute; left: 2px; top: 10px; font: 900 13px/1.6 "Font Awesome 6 Free"; color: var(--epa-primary-dark); }
.ipa .callout-box { margin-top: 20px; padding: 14px 16px; font-size: 15px; line-height: 1.6; background: var(--epa-primary-light); border-radius: var(--radius-md); }

.ipa .timeline-wrapper { display: grid; gap: 0; }
.ipa .timeline-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--epa-border); }
.ipa .timeline-wrapper > .timeline-step:last-child { border-bottom: 1px solid var(--epa-border); }
.ipa .timeline-line { display: none; }
.ipa .step-num { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-weight: 700; color: var(--epa-white); background: var(--epa-ink); border-radius: 50%; }
.ipa .timeline-step h4 { margin: 0 0 2px; font-size: 1.0625rem; }
.ipa .timeline-step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--epa-text-muted); }

.ipa .faq-container { border-top: 1px solid var(--epa-border); }
.ipa .faq-container details { border-bottom: 1px solid var(--epa-border); }
.ipa .faq-container details.faq-item { margin: 0; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--epa-border); border-radius: 0; box-shadow: none; overflow: visible; }
.ipa .faq-container summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; font-weight: 600; color: var(--epa-ink); cursor: pointer; list-style: none; }
.ipa .faq-container summary::-webkit-details-marker { display: none; }
.ipa .faq-container summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--epa-primary-dark); }
.ipa .faq-container details[open] summary::after { content: "\2212"; }
.ipa .faq-body { margin: 0 0 16px; line-height: 1.65; color: var(--epa-text-muted); }

@media (min-width: 700px) {
  .ipa .updates-grid,
  .ipa .pattern-grid,
  .ipa .uni-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .ipa .updates-grid > :nth-child(2),
  .ipa .pattern-grid > :nth-child(2),
  .ipa .uni-grid > :nth-child(2) { border-top: 0; }
  .ipa .updates-grid > :nth-last-child(-n+2):nth-child(odd),
  .ipa .updates-grid > :last-child { border-bottom: 1px solid var(--epa-border); }
}
@media (min-width: 992px) {
  .ipa-hero .hero-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: start; }
  .ipa .stream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .ipa .stream-card { border-bottom: 1px solid var(--epa-border); }
}

/* ---- 7. Contact -------------------------------------------------------------
   contact.html also relied on an unlinked stylesheet. */
.ipc-hero { padding: calc(var(--header-height) + 20px) 0 40px; background: var(--epa-white); }
.ipc-hero .hero-grid { display: grid; gap: 32px; }
.ipc-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; text-align: left; }
.ipc-hero h1 span { color: var(--epa-primary-dark); }
.ipc-hero .contact-info-stack > p { max-width: 56ch; font-size: 1.0625rem; line-height: 1.6; color: var(--epa-text-secondary); }
.ipc .epa-grid { display: grid; gap: 0; }
.ipc .epa-card { padding: 14px 0; border-top: 1px solid var(--epa-border); }
.ipc .epa-grid > :last-child { border-bottom: 1px solid var(--epa-border); }
.ipc .icon-box { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.ipc .icon-box h4 { margin: 0; font-size: 1.0625rem; }
.ipc .icon-circle { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; font-size: 16px; color: var(--epa-primary-dark); background: var(--epa-primary-light); border-radius: var(--radius-md); }
.ipc .epa-card p { margin: 0 0 0 54px; line-height: 1.55; color: var(--epa-text-secondary); }
.ipc .epa-card p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--epa-ink); font-weight: 600; text-decoration: none; }
.ipc .wa-btn-inline { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 12px; padding: 0 20px; font-weight: 600; color: #fff; text-decoration: none; background: #0f7d40; border-radius: var(--radius-md); box-shadow: none; }
.ipc .wa-btn-inline:hover { filter: none; transform: none; background: #0e6f3b; }
.ipc .enquiry-box { padding: 20px; background: var(--epa-white); border: 1px solid var(--epa-border-dark); border-radius: var(--radius-md); }
.ipc .enquiry-box h3 { margin: 0 0 16px; font-size: 1.375rem; }
.ipc .enquiry-box form { display: grid; gap: 14px; }
.ipc .enquiry-box label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--epa-ink); }
.ipc .enquiry-box input,
.ipc .enquiry-box select,
.ipc .enquiry-box textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--epa-ink); background-color: var(--epa-white); border: 1px solid var(--epa-border-dark); border-radius: var(--radius-md); }
.ipc .enquiry-box textarea { min-height: 120px; resize: vertical; }
.ipc .enquiry-box input:focus,
.ipc .enquiry-box select:focus,
.ipc .enquiry-box textarea:focus { outline: 3px solid var(--epa-primary); outline-offset: 1px; border-color: var(--epa-primary); }
.ipc .enquiry-box button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; font: inherit; font-size: 16px; font-weight: 600; color: var(--epa-white); background: var(--epa-primary-dark); border: 0; border-radius: var(--radius-md); cursor: pointer; }
.ipc .enquiry-box button[type="submit"]:hover { background: var(--epa-ink); }
.ipc-section { padding: 40px 0; }
.ipc-section h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 5.8vw, 1.9rem); line-height: 1.2; text-align: left; }
.ipc-section h2 span { color: var(--epa-primary-dark); }
.ipc-section > .container > .ipc-intro { margin: 0 0 20px; max-width: 62ch; color: var(--epa-text-secondary); line-height: 1.6; }
.ipc .map-container { position: relative; width: 100%; height: 300px; margin: 0; overflow: hidden; border: 1px solid var(--epa-border); border-radius: var(--radius-md); }
.ipc .map-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ipc .faq { border-top: 1px solid var(--epa-border); }
.ipc .faq details { border-bottom: 1px solid var(--epa-border); }
.ipc .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; font-weight: 600; color: var(--epa-ink); cursor: pointer; list-style: none; }
.ipc .faq summary::-webkit-details-marker { display: none; }
.ipc .faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--epa-primary-dark); }
.ipc .faq details[open] summary::after { content: "\2212"; }
.ipc .faq details > p { margin: 0 0 16px; line-height: 1.65; color: var(--epa-text-muted); }

@media (min-width: 992px) {
  .ipc-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
}

/* ---- 8. Floating chat link ---------------------------------------------------
   Was an unstyled 51x26px inline link. Now a 48px floating pill that clears the
   news ticker. (Its href is left exactly as it was.) */
.wa-sticky-global {
  position: fixed;
  right: 14px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  text-decoration: none;
  background: #0f7d40;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 21, 53, 0.25);
}
.wa-sticky-global i { font-size: 24px; line-height: 1; }
.ip-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wa-sticky-global:hover { color: #fff; background: #0e6f3b; }
@media (min-width: 769px) {
  .wa-sticky-global { bottom: 24px; right: 24px; }
}
