/* ==================== /epc/ LOWER-PAGE REBUILD — 18 August 2026 =========== *
 * Page-scoped stylesheet for the EPC guidance page's lower chapters and the
 * canonical "On this page" control (rulebook v3.0 §11). Loaded after
 * dukes.css, so equal-specificity declarations here win; it deliberately
 * lives outside dukes.css because another session owns that file today.
 *
 * UNTOUCHED BY THIS FILE: the certificate-panel hero and its film, the three
 * route cards, the A-G accordion and checks (the approved top of the page),
 * and everything in the shared shell.
 *
 * Colour intent: the page keeps its own dossier family (parchment, stone,
 * cream, graphite, oxblood, navy, brass) rather than borrowing the Seller's
 * Guide palette. This layer adds two page-local values — a deep-paper field
 * and one deep-ink ground — and lets the A-G scale speak as data colour in
 * the band-E monument. Nothing here introduces a new hue family.
 * ========================================================================== */

.page--epc {
  --epcx-field: #e2d7c3;      /* deep warm paper: the limits chapter's field  */
  --epcx-ink-deep: #202a38;   /* the one deep-ink ground, darker than the
                                 certificate navy so the two dark chapters
                                 never read as one repeated surface          */
  --epcx-plate: #faf6ee;      /* raised warm-white plate                      */
  --epcx-band-e: #d77a2b;     /* band E, exactly as the hero ladder paints it */
  --epcx-copper-ink: #684a30; /* brass-deep was 3.99:1 on the tinted fact
                                 tiles; this darker copper measures 6.3:1     */
  --epcx-seam-fallback: var(--head-h, 65px);
  --epcx-shadow-soft: 0 22px 48px -40px rgba(41, 39, 46, 0.55);
  /* 18 Aug round 3, "use the space": the page runs the selling-process shell
     instead of the old 86rem island. Every band's inner already reads this
     token, so the whole page widens together. */
  --lx-max: min(96vw, 105rem);
}

/* ---------------- The canonical "On this page" control ------------------- *
 * First element of main. Contributes zero flow height: the pill hangs from
 * the measured header seam, docks to the viewport edge while the masthead
 * hides on scroll, and the drawer is a native-details table of contents.
 * ------------------------------------------------------------------------- */

/* 18 Aug round 3: the approved left pattern (valuation round 3, point 1).
   The pill anchors to the LEFT edge — out of the reading column entirely, so
   it stops landing on route cards and headings — and keeps its real flow
   band so the rest state clears the hero plate. The drawer opens as a fixed
   left side panel, not a centred dropdown. */
.page--epc .epcx-nav {
  position: sticky;
  top: var(--epcx-seam, var(--epcx-seam-fallback));
  z-index: 40;
  height: 4rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0 0 0 clamp(1rem, 3vw, 2.5rem);
  overflow: visible;
  transition: top 240ms ease;
}

.page--epc .site-head.head--hidden ~ .main .epcx-nav { top: 0; }

/* The hero no longer needs its own large offset: the nav band supplies the
   separation from the header. */
.page--epc .lx-hero { margin-top: clamp(0.4rem, 1vw, 0.9rem); }

/* With scripts off the film still autoplays natively; its poster attribute
   paints the identical opening frame, so revealing it can never flash an
   empty player. The is-playing crossfade remains the enhanced path. */
html:not([data-enhanced]) .page--epc .lx-hero__film { opacity: 1; }

.page--epc .epcx-nav > .epcx-nav__pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transform: translateY(0.6rem);
  background: var(--epc-olive-charcoal);
  border: 1px solid rgba(197, 168, 128, 0.34);
  color: var(--epc-cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 14px 32px -14px rgba(20, 27, 22, 0.55);
}

.page--epc .epcx-nav > .epcx-nav__pill::-webkit-details-marker { display: none; }
.page--epc .epcx-nav > .epcx-nav__pill::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--epc-brass);
}
.page--epc .epcx-nav[open] > .epcx-nav__pill::after { content: "\2212"; }
.page--epc .epcx-nav > .epcx-nav__pill:focus-visible {
  outline: 3px solid var(--epc-brass-deep);
  outline-offset: 3px;
  transition: none;
}
.page--epc .epcx-nav__label { color: rgba(243, 239, 231, 0.72); }
.page--epc .epcx-nav__current { color: var(--epc-brass); font-weight: 700; }

/* The compact left side panel: fixed to the viewport's left edge under the
   seam, tight rows, readable in one glance. */
.page--epc .epcx-nav__panel {
  position: fixed;
  top: var(--epcx-seam, var(--epcx-seam-fallback));
  left: 0;
  width: min(19rem, 86vw);
  max-height: calc(100vh - var(--epcx-seam, var(--epcx-seam-fallback)) - 1rem);
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding: 0.85rem 0.8rem 1rem;
  background: var(--epcx-plate);
  border: 1px solid rgba(41, 39, 46, 0.14);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 30px 70px -30px rgba(41, 39, 46, 0.55);
}
.page--epc .site-head.head--hidden ~ .main .epcx-nav__panel { top: 0; }
.page--epc .epcx-nav:not([open]) .epcx-nav__panel { display: none; }

.page--epc .epcx-nav__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  color: var(--epc-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}
.page--epc .epcx-nav__index {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--epc-brass-deep);
}
.page--epc .epcx-nav__link:hover,
.page--epc .epcx-nav__link:focus-visible {
  background: var(--epc-olive-charcoal);
  color: var(--epc-cream);
  outline: none;
}
.page--epc .epcx-nav__link:hover .epcx-nav__index,
.page--epc .epcx-nav__link:focus-visible .epcx-nav__index { color: var(--epc-brass); }

/* Anchors land clear of the pill wherever the reader jumps from. */
.page--epc [data-epc-section] {
  scroll-margin-top: calc(var(--epcx-seam, var(--epcx-seam-fallback)) + 4.25rem);
}

/* ------------------ Hero: room to breathe (18 Aug review) ----------------- *
 * Desktop-scoped where the dossier layer carries its own mobile recomposition,
 * so a later plain rule here cannot override those media rules. */

.page--epc .lx-hero__lede {
  max-width: 46ch;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}
.page--epc .lx-hero__detail {
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
}
.page--epc .lx-hero__rating { margin-top: 0.75rem; padding-top: 1.25rem; }
.page--epc .lx-hero__rating-label { font-size: 0.8rem; }
/* 14px metadata floor: the scale note was 12.5px. */
.page--epc .lx-hero__rating-note { font-size: 0.875rem; }

@media (min-width: 62em) {
  .page--epc .lx-hero { grid-template-columns: minmax(24rem, 1fr) minmax(0, 1fr); }
  .page--epc .lx-hero__inner,
  .page--epc .lx-hero__inner:is(*) {
    padding: clamp(2.5rem, 4vw, 4rem);
    gap: 1.1rem;
  }
}

/* On the wide shell the copy column would otherwise hold a 46ch paragraph in
   a 50% cell; the film window takes the surplus instead of dead cream. */
@media (min-width: 94em) {
  .page--epc .lx-hero { grid-template-columns: minmax(26rem, 0.85fr) minmax(0, 1.15fr); }
}

@media (min-width: 48em) {
  .page--epc .lx-hero__bands {
    max-width: 30rem;
    gap: 0.4rem;
    grid-template-columns: repeat(7, minmax(2.4rem, 1fr));
  }
  .page--epc .lx-hero__band {
    min-height: 2.9rem;
    border-radius: 6px;
    font-size: 1.35rem;
  }
}

/* --------------- One heading system: centred, one measure ----------------- *
 * Applies to every chapter head on the page, top sections included, so no
 * two headings sit at different x positions (18 Aug review, item 7). */

.page--epc .lx-head {
  max-width: 46rem;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
  /* Lockup rule: a heading belongs to its content. The dossier layer's
     3.5rem drop left heads floating above voids; this closes every one. */
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

/* ------------- 02. Understand the certificate (18 Aug review) ------------- *
 * One plate treatment for both columns: same matte, same radius, same shadow,
 * one shared top and bottom edge. The navy band's padding is cut hard so the
 * pair fills it instead of floating in it. */

.page--epc .lx-sec--certificate { padding-block: clamp(2.25rem, 3.5vw, 3.25rem); }
.page--epc .lx-sec--certificate .lx-head { margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }

.page--epc .lx-cert {
  /* The pair fills the shell: no interior cap survives from earlier layers. */
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.page--epc .lx-scale,
.page--epc .lx-steps {
  background: var(--epc-cream);
  border: 1px solid rgba(41, 39, 46, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 58px -48px rgba(0, 0, 0, 0.6);
}

/* Interior distribution keeps the two bottoms on one line: the accordion
   column lets its note sit on the base line; the checks column spreads its
   six rows through the full plate height. */
.page--epc .lx-scale {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
}
.page--epc .lx-steps {
  display: grid;
  grid-template-rows: auto 1fr;
}
.page--epc .lx-steps__list { align-content: space-between; gap: 0; }

/* Rows stay comfortably past the 48px floor; the chevron cue grows with them. */
.page--epc .lx-acc__summary { min-height: 3.65rem; }
.page--epc .lx-acc__chev { width: 1.35rem; height: 1.35rem; }

@media (max-width: 61.99em) {
  .page--epc .lx-cert { grid-template-columns: 1fr; }
}

.page--epc .lx-sec--limits {
  background: var(--epc-parchment);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.page--epc .epcx-field {
  padding: clamp(1.5rem, 3.4vw, 3.5rem);
  background: var(--epcx-field);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 34px 80px -60px rgba(41, 39, 46, 0.6);
}

.page--epc .epcx-limits {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.page--epc .epcx-limit {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--epcx-plate);
  border-radius: 18px;
  box-shadow: var(--epcx-shadow-soft);
}

.page--epc .epcx-limit__index {
  position: absolute;
  top: 0.9rem;
  right: 1.15rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  line-height: 1;
  /* Solid muted ink: 5.0:1 on the warm-white plate, so even the decorative
     numerals clear AA rather than relying on their aria-hidden status. */
  color: #6b6560;
}

.page--epc .epcx-limit__term {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--epc-graphite);
  padding-right: 2.75rem;
}

.page--epc .epcx-limit__detail {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--epc-ink-soft);
}

.page--epc .epcx-limit--feature {
  grid-column: 1 / 8;
  grid-row: 1;
  gap: 0.8rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--epcx-ink-deep);
  box-shadow: 0 34px 80px -52px rgba(16, 22, 32, 0.85);
}
.page--epc .epcx-limit--feature .epcx-limit__index { color: rgba(243, 239, 231, 0.66); }
.page--epc .epcx-limit--feature .epcx-limit__term {
  color: var(--epc-cream);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  max-width: 18ch;
}
.page--epc .epcx-limit--feature .epcx-limit__detail {
  color: rgba(243, 239, 231, 0.78);
  max-width: 52ch;
}

.page--epc .epcx-limits__scene {
  grid-column: 8 / 13;
  grid-row: 1;
  display: grid;
  min-width: 0;
}

/* 18 Aug review: the media mount follows the feature plate's height instead
   of forcing its portrait ratio onto the row. The feature keeps a modest
   floor so the pair still reads as the chapter's lead. */
.page--epc .epcx-limit--feature { min-height: 21rem; align-content: center; }
.page--epc .epcx-mount {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(41, 39, 46, 0.14);
  border-radius: 18px;
  background: linear-gradient(165deg, #efe8da 0%, #e2d7c3 100%);
  box-shadow: var(--epcx-shadow-soft);
}

/* The /sales/ branded-placeholder standard, applied to this mount: tinted
   plate, ghost crown, one label chip and a ratio tag; the raw generation
   spec stays behind the component's own Full specification disclosure. */
.page--epc .epcx-mount .mount__scene {
  position: relative;
  height: 100%;
  min-height: 15rem;
  aspect-ratio: auto;
  /* The tinted plate is the scene itself: an explicit light ground replaces
     whatever backdrop the shared mount paints for its scene art. */
  background: linear-gradient(165deg, #efe8da 0%, #e2d7c3 100%);
  background-color: #e2d7c3;
}
.page--epc .epcx-mount .mount__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/brand/dukes-crown.png") center / clamp(90px, 34%, 168px) no-repeat;
  opacity: 0.13;
  filter: grayscale(1);
  pointer-events: none;
}
.page--epc .epcx-mount .mount__scene > * { display: none; }
.page--epc .epcx-mount .mount__scene .mount__ratio {
  display: block;
  position: absolute;
  z-index: 1;
  right: 0.9rem;
  bottom: 0.8rem;
  /* 6.2:1 on the deep end of the plate tint. */
  color: #46525c;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}
.page--epc .epcx-mount .mount__title,
.page--epc .epcx-mount .mount__meta,
.page--epc .epcx-mount .mount__replace { display: none; }
.page--epc .epcx-mount .mount__plate {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--epcx-plate);
  border-top: 1px solid rgba(41, 39, 46, 0.1);
}
.page--epc .epcx-mount .mount__banner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.page--epc .epcx-mount .mount__flag {
  display: inline-flex;
  padding: 0.42rem 0.65rem;
  border-radius: 6px;
  background: rgba(41, 39, 46, 0.08);
  color: #4d4a45;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page--epc .epcx-mount .mount__id {
  color: #6b6560;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.page--epc .epcx-mount .mount__summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--epc-oxblood);
  font-size: 0.875rem;
  font-weight: 700;
}
.page--epc .epcx-mount .mount__summary:focus-visible {
  outline: 3px solid var(--epc-brass-deep);
  outline-offset: 2px;
}

/* The 02-04 row balances to one shared height: no offsets, one baseline. */
.page--epc .epcx-limit:nth-of-type(2) { grid-column: 1 / 5; grid-row: 2; }
.page--epc .epcx-limit:nth-of-type(3) { grid-column: 5 / 9; grid-row: 2; }
.page--epc .epcx-limit:nth-of-type(4) { grid-column: 9 / 13; grid-row: 2; }

/* Status chips: 14px floor, one quiet voice per surface. */
.page--epc .epcx-chip {
  margin: 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--epc-oxblood);
  background: rgba(81, 53, 56, 0.1);
}
.page--epc .epcx-chip--onDark {
  color: var(--epc-brass);
  background: rgba(197, 168, 128, 0.14);
}
.page--epc .epcx-chip--rule {
  color: var(--epc-navy);
  background: rgba(52, 64, 82, 0.1);
}

/* ---------------- 04. The authority chapter (band E) ---------------------- */

.page--epc .lx-sec--standard { background: var(--epcx-ink-deep); }
.page--epc .lx-sec--standard .lx-head__title { color: var(--epc-cream); }
.page--epc .lx-sec--standard .lx-head__summary { color: rgba(243, 239, 231, 0.75); }

.page--epc .epcx-standard {
  display: grid;
  grid-template-columns: minmax(19rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: stretch;
}

/* The anchor column fills the band's full height: monument on top, the
   exemption plate closing the column, no navy hole beneath a short plate. */
.page--epc .epcx-anchor {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  align-content: stretch;
}

.page--epc .epcx-monument {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--epcx-plate);
  border-radius: 20px;
  box-shadow: 0 34px 80px -50px rgba(0, 0, 0, 0.65);
}

.page--epc .epcx-monument__kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--epc-brass-deep);
}
.page--epc .epcx-monument__mark { width: 1.15rem; height: 1.15rem; display: inline-flex; }

.page--epc .epcx-monument__band {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.page--epc .epcx-monument__letter {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  background: var(--epcx-band-e);
  color: var(--epc-graphite);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14);
}
.page--epc .epcx-monument__scale {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
}
.page--epc .epcx-monument__notch {
  width: 1.05rem;
  height: 0.45rem;
  border-radius: 3px;
  background: #54735d;
}
.page--epc .epcx-monument__notch:nth-child(1) { background: #087443; }
.page--epc .epcx-monument__notch:nth-child(2) { background: #3f8d3e; }
.page--epc .epcx-monument__notch:nth-child(3) { background: #91a72d; }
.page--epc .epcx-monument__notch:nth-child(4) { background: #d0a528; }
.page--epc .epcx-monument__notch:nth-child(5) { background: #d77a2b; }
.page--epc .epcx-monument__notch:nth-child(6) { background: #c95732; }
.page--epc .epcx-monument__notch:nth-child(7) { background: #a33b38; }
.page--epc .epcx-monument__notch--min { height: 0.85rem; }

.page--epc .epcx-monument__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--epc-graphite);
}
.page--epc .epcx-monument__copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--epc-ink-soft);
}

/* One plate system (round 3): the facts are quiet rows INSIDE the monument
   plate, not a second tinted surface drifting away from the ivory. The
   copper terms carry the differentiation. */
.page--epc .epcx-monument__facts {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.page--epc .epcx-monument__fact {
  display: grid;
  gap: 0.15rem;
}
.page--epc .epcx-monument__fact dt {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--epcx-copper-ink);
}
.page--epc .epcx-monument__fact dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--epc-graphite);
}

/* 18 Aug review: the zigzag read as accident. One clean stack, one numbered
   spine — every numeral in the same fixed column, every plate on the same
   edges, the exemption footnote closing the same column. */
.page--epc .epcx-ledger {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.page--epc .epcx-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.page--epc .epcx-rule {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  background: var(--epcx-plate);
  border-radius: 16px;
  box-shadow: 0 26px 60px -48px rgba(0, 0, 0, 0.7);
}

.page--epc .epcx-rule__index {
  margin: 0;
  padding-top: 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1;
  text-align: center;
  /* Solid muted ink, 5.0:1 on the plate. */
  color: #6b6560;
}

.page--epc .epcx-rule__body { display: grid; gap: 0.45rem; }
.page--epc .epcx-rule__term {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--epc-graphite);
}
.page--epc .epcx-rule__detail {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--epc-ink-soft);
}

/* Round 3: the footnote joins the one plate system — the same ivory as every
   other plate in the band, closing the anchor column under the monument. */
.page--epc .epcx-footnote {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.3rem;
  color: var(--epc-ink-soft);
  background: var(--epcx-plate);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 26px 60px -48px rgba(0, 0, 0, 0.7);
}
.page--epc .epcx-footnote__mark {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--epc-brass-deep);
}
.page--epc .epcx-footnote__text {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------- 05. Where next with Dukes -------------------------- */

/* Round 3, space use: every band trims the dossier layer's 7rem drops so
   content occupies the field instead of floating in it. */
.page--epc .lx-sec { padding-block: clamp(3rem, 5vw, 4.75rem); }
.page--epc .lx-sec--limits { padding-block: clamp(2.5rem, 4vw, 3.75rem); }
.page--epc .lx-sec--certificate { padding-block: clamp(2.25rem, 3.5vw, 3.25rem); }

.page--epc .lx-sec--next { background: var(--epc-cream); }

.page--epc .epcx-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
  align-items: stretch;
  /* The trio fills the shell and can never pin to one edge of it. */
  width: 100%;
  margin-inline: auto;
}

.page--epc .epcx-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--epcx-plate);
  border: 1px solid rgba(41, 39, 46, 0.12);
  border-radius: 18px;
  color: var(--epc-ink);
  text-decoration: none;
  box-shadow: var(--epcx-shadow-soft);
  transition: border-color 170ms ease, background-color 170ms ease;
}
.page--epc .epcx-card:focus-visible {
  outline: 3px solid var(--epc-brass-deep);
  outline-offset: 3px;
}

.page--epc .epcx-card__kicker {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--epc-brass-deep);
}
.page--epc .epcx-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.15;
  color: var(--epc-graphite);
}
.page--epc .epcx-card__line {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--epc-ink-soft);
}
.page--epc .epcx-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--epc-oxblood);
  border-radius: 10px;
  color: var(--epc-oxblood);
  font-weight: 700;
  font-size: 0.95rem;
}
.page--epc .epcx-card__arrow {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  transition: transform 170ms ease;
}

.page--epc .epcx-card--feature {
  background: var(--epc-olive-charcoal);
  border-color: rgba(197, 168, 128, 0.5);
}
.page--epc .epcx-card--feature .epcx-card__kicker { color: var(--epc-brass); }
.page--epc .epcx-card--feature .epcx-card__title { color: var(--epc-cream); }
.page--epc .epcx-card--feature .epcx-card__line { color: rgba(243, 239, 231, 0.78); }
.page--epc .epcx-card--feature .epcx-card__action {
  border-color: rgba(197, 168, 128, 0.65);
  color: var(--epc-brass);
}

@media (hover: hover) and (pointer: fine) {
  .page--epc .epcx-card:hover { border-color: var(--epc-oxblood); }
  .page--epc .epcx-card:hover .epcx-card__action {
    background: var(--epc-oxblood);
    color: var(--epc-cream);
  }
  .page--epc .epcx-card:hover .epcx-card__arrow { transform: translateX(4px); }
  .page--epc .epcx-card--feature:hover { border-color: var(--epc-brass); }
  .page--epc .epcx-card--feature:hover .epcx-card__action {
    background: var(--epc-brass);
    border-color: var(--epc-brass);
    color: var(--epc-olive-charcoal);
  }
}

/* -------------------- Closing decision: the bookend ----------------------- */

.page--epc .lx-close {
  display: grid;
  align-items: center;
  min-height: 26rem;
  background: var(--epc-graphite);
}
.page--epc .lx-close__veil {
  background:
    linear-gradient(90deg, rgba(41, 39, 46, 0.62) 0%, rgba(41, 39, 46, 0.18) 55%, rgba(41, 39, 46, 0.4) 100%);
}
.page--epc .lx-close__inner {
  display: block;
  width: 100%;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.page--epc .epcx-close-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  width: min(34rem, 100%);
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  background: var(--epcx-plate);
  border-radius: 18px;
  box-shadow: 0 40px 90px -55px rgba(0, 0, 0, 0.75);
}
.page--epc .epcx-close-panel .lx-close__title { color: var(--epc-graphite); }
.page--epc .epcx-close-panel .lx-close__lede { color: var(--epc-ink-soft); }
.page--epc .epcx-close-panel .lx-close__actions { margin-top: 0.35rem; }

/* ----------------- Official guidance: the source register ----------------- */

.page--epc .epcx-sources {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
}
.page--epc .epcx-source { display: grid; }
.page--epc .epcx-source__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding: 1.1rem 1.25rem;
  background: var(--epcx-plate);
  border: 1px solid rgba(41, 39, 46, 0.12);
  border-radius: 14px;
  color: var(--epc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  transition: background-color 170ms ease, color 170ms ease, border-color 170ms ease;
}

/* The official-source lockup: every route here is GOV.UK and says so. */
.page--epc .epcx-source__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--epc-graphite);
  color: #fffdf8;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.page--epc .epcx-source__link:hover .epcx-source__badge { background: rgba(255, 253, 248, 0.16); }

/* The reviewed note as the date-stamp device: a sealed plate in the intro
   column instead of a floating paragraph. */
.page--epc .epcx-stamp {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--epcx-plate);
  border: 1.5px solid rgba(41, 39, 46, 0.22);
  border-radius: 12px;
  box-shadow: inset 0 0 0 3px rgba(41, 39, 46, 0.05);
}
.page--epc .epcx-stamp__mark {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin-top: 0.1rem;
  color: var(--epcx-copper-ink);
}
.page--epc .epcx-source__ext {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  color: var(--epc-brass-deep);
}
.page--epc .epcx-source__link:focus-visible {
  outline: 3px solid var(--epc-brass-deep);
  outline-offset: 3px;
}
.page--epc .lx-sources__reviewed { font-size: 0.9rem; line-height: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .page--epc .epcx-source__link:hover {
    background: var(--epc-navy);
    border-color: var(--epc-navy);
    color: var(--epc-cream);
  }
  .page--epc .epcx-source__link:hover .epcx-source__ext { color: var(--epc-brass); }
}

/* ------------- Dukes receptionist: this page's instance only -------------- *
 * 18 Aug review, mirroring the selling-process complaint: the intro column
 * died after two paragraphs while the journeys were bare text over hairlines.
 * Scoped recomposition — the shared markup is untouched apart from the
 * flag-gated additions shell.mjs renders for /epc/ alone: the per-journey
 * action rows and the assurance chip. Direct contact moves under the intro,
 * and every journey is one plate in both states. */

.page--epc .reception__inner {
  /* Round 3: the receptionist runs the same wide shell as every band. */
  max-width: var(--lx-max);
  display: grid;
  grid-template-columns: minmax(21rem, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "intro routes"
    "contact routes";
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 1.5rem;
  align-items: start;
}
.page--epc .reception__intro { grid-area: intro; max-width: none; }
.page--epc .reception__inner > .reception__routes:not(.reception__routes--safe) {
  grid-area: routes;
  margin: 0;
}
.page--epc .reception__inner > .reception__routes--safe {
  grid-area: contact;
  margin: 0;
  max-width: none;
}

.page--epc .reception__assure {
  margin: 1rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 999px;
  color: #fffdf8;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* One plate geometry for a journey, open and closed. */
.page--epc .reception__route { border: 0; }
.page--epc .reception__route + .reception__route { border-top: 0; margin-top: 0.65rem; }
.page--epc .reception__disclosure {
  background: rgba(255, 253, 248, 0.07);
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 14px;
  overflow: hidden;
}
.page--epc .reception__disclosure[open] {
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(255, 253, 248, 0.3);
}
.page--epc .reception__summary {
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  align-items: center;
}
.page--epc .reception__body { padding: 0 1.15rem 1.15rem; }

.page--epc .reception__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.page--epc .reception__act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid rgba(255, 253, 248, 0.42);
  border-radius: 10px;
  color: #fffdf8;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.page--epc .reception__act--primary {
  background: var(--epc-oxblood);
  border-color: var(--epc-oxblood);
}
.page--epc .reception__act:focus-visible {
  outline: 3px solid var(--epc-brass);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .page--epc .reception__act:hover { background: rgba(255, 253, 248, 0.12); }
  .page--epc .reception__act--primary:hover {
    background: #5f4045;
    border-color: #5f4045;
  }
}

/* The direct routes become labelled rows under the intro: the tooltip text
   is promoted to a permanent visible label. The works-without-JavaScript
   line lives in the intro's assurance chip on this page. */
.page--epc .reception .crail__intro { display: none; }
.page--epc .reception .crail__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
/* The tip is the link's SIBLING (a hover tooltip in the shared rail), so the
   row composes at item level: the link is the full-width plate with its icon
   at the left, and the tip becomes a permanent label overlaid on the plate's
   text zone. pointer-events stays off the tip, so the whole plate clicks. */
.page--epc .reception .crail__item { position: relative; display: block; }
.page--epc .reception .crail__link {
  display: grid;
  grid-template-columns: auto;
  justify-items: start;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.07);
  border: 1px solid rgba(255, 253, 248, 0.16);
}
.page--epc .reception .crail__fill { display: none; }
.page--epc .reception .crail__glyph {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
}
/* !important is deliberate and contained: the shared rail positions each
   variant's tooltip with its own higher-specificity rules (phone and
   instagram measured differently from the rest), and this page-scoped
   instance turns all of them into one permanent label aligned to the link
   plate (the item carries 0.75rem of its own padding above and below). */
.page--epc .reception .crail__tip {
  position: absolute !important;
  inset: 0.75rem 0.85rem 0.75rem 4.45rem !important;
  display: grid;
  align-content: center;
  gap: 0.1rem;
  opacity: 1 !important;
  transform: none !important;
  text-align: left;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #fffdf8;
  pointer-events: none;
}
.page--epc .reception .crail__tip-label {
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.875rem;
}
.page--epc .reception .crail__tip-value {
  color: #fffdf8;
  font-size: 0.98rem;
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .page--epc .reception .crail__link:hover {
    background: rgba(255, 253, 248, 0.13);
    border-color: rgba(255, 253, 248, 0.34);
  }
}

/* Following is not a contact route (page standard, dislike 7): Instagram
   demotes from a contact plate to a small follow link at the column's foot. */
.page--epc .reception .crail__link--instagram {
  min-height: 48px;
  background: transparent;
  border: 0;
  padding-left: 0.35rem;
}
.page--epc .reception .crail__item:has(.crail__link--instagram) .crail__tip {
  inset: 0.75rem 0.85rem 0.75rem 3.4rem !important;
}
.page--epc .reception .crail__item:has(.crail__link--instagram) .crail__tip-value { font-weight: 600; }
.page--epc .reception .crail__link--instagram .crail__glyph {
  width: 2.1rem;
  height: 2.1rem;
}
@media (hover: hover) and (pointer: fine) {
  .page--epc .reception .crail__link--instagram:hover {
    background: rgba(255, 253, 248, 0.08);
    border: 0;
  }
}

/* ------------- Shared-instance hardening, this page only ------------------ *
 * A frozen preview pane can freeze the header dropdown mid-fade, which reads
 * as a translucent panel with the hero bleeding through. On this page the
 * panel arrives opaque with no fade; the shared shell keeps its animation
 * everywhere else. Reported to Aarav as a candidate canon fix. */
.page--epc .site-head .navdrop {
  opacity: 1 !important;
  transition: none !important;
  background-color: #e8decc;
}

@media (max-width: 61.99em) {
  .page--epc .reception__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "routes"
      "contact";
  }
}

/* ------------------------------ Responsive -------------------------------- */

@media (max-width: 74.99em) {
  .page--epc .epcx-limit--feature { grid-column: 1 / 7; }
  .page--epc .epcx-limits__scene { grid-column: 7 / 13; }
  .page--epc .epcx-limit:nth-of-type(2) { grid-column: 1 / 7; }
  .page--epc .epcx-limit:nth-of-type(3) { grid-column: 7 / 13; }
  .page--epc .epcx-limit:nth-of-type(4) { grid-column: 1 / 13; }
}

@media (max-width: 61.99em) {
  .page--epc .epcx-limits { grid-template-columns: 1fr; }
  .page--epc .epcx-limit--feature,
  .page--epc .epcx-limits__scene,
  .page--epc .epcx-limit:nth-of-type(2),
  .page--epc .epcx-limit:nth-of-type(3),
  .page--epc .epcx-limit:nth-of-type(4) {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
  }
  .page--epc .epcx-standard { grid-template-columns: 1fr; }
  .page--epc .epcx-monument { position: static; }
  .page--epc .epcx-next { grid-template-columns: 1fr; }
  .page--epc .epcx-close-panel { width: 100%; }
  .page--epc .epcx-sources { grid-template-columns: 1fr; }
}

@media (max-width: 47.99em) {
  .page--epc .epcx-field { padding: 1.25rem; border-radius: 20px; }
  .page--epc .epcx-limit { padding: 1.25rem; }
  .page--epc .epcx-nav > .epcx-nav__pill { font-size: 0.78rem; padding: 0.5rem 1rem; }
  .page--epc .epcx-nav__panel { width: min(22rem, calc(100vw - 1.5rem)); }
  .page--epc .epcx-monument__letter { width: 4rem; height: 4rem; font-size: 2.5rem; }
  .page--epc .epcx-rule { grid-template-columns: 1fr; gap: 0.5rem; }
  .page--epc .epcx-rule__index { display: none; }
  .page--epc .epcx-source__link { min-height: 4.25rem; }
}

/* ------------------------- Motion and print ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .page--epc .epcx-nav,
  .page--epc .epcx-card,
  .page--epc .epcx-card__arrow,
  .page--epc .epcx-source__link { transition: none !important; }
  .page--epc .epcx-card:hover .epcx-card__arrow { transform: none; }
}

@media print {
  .page--epc .epcx-nav,
  .page--epc .epcx-limits__scene { display: none !important; }
  .page--epc .lx-sec--standard,
  .page--epc .epcx-limit--feature {
    background: none !important;
    color: #000 !important;
  }
  .page--epc .epcx-limit,
  .page--epc .epcx-rule,
  .page--epc .epcx-monument,
  .page--epc .epcx-card { box-shadow: none !important; }
}
