.editorial-page {
  --chapter-space: clamp(56px, 8vw, 122px);
  --chapter-title: clamp(2rem, 4vw, 3.8rem);
  --section-title: clamp(1.24rem, 2vw, 1.72rem);
  --hero-title: clamp(2.55rem, 5.35vw, 5.2rem);
  --on-dark: #fffbf4;
  width: 100%;
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
}

.editorial-page .masthead { min-height: 74px; }
.editorial-page .eb5-nav-title { overflow-wrap: anywhere; white-space: normal; line-height: 1.18; }
.editorial-page .eb5-local-nav { margin-top: 12px; }
.editorial-page .related-programs { width: min(100% - 2 * var(--gutter), 1312px); }
.editorial-page :is(h1, h2, h3, h4) { font-family: var(--display); font-weight: 500; line-height: 1.15; }
.editorial-page h3 { font-size: var(--section-title); }
.editorial-page h4 { margin: 0; font-size: var(--section-title); }
.editorial-heading { margin-bottom: clamp(20px, 3vw, 46px); }
.editorial-heading .kicker { margin-bottom: 12px; color: var(--red); }
.editorial-heading h2 { max-width: 19ch; font-size: var(--chapter-title); letter-spacing: -.042em; }
.editorial-chapter { padding-block: var(--chapter-space); }

.editorial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  min-height: clamp(550px, 74svh, 800px);
  background: var(--field);
  color: var(--on-dark);
}
.editorial-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(34px, 5vw, 84px) var(--gutter);
  padding-inline-start: max(var(--gutter), calc((100vw - 1312px) / 2));
}
.editorial-hero h1 { margin-block: 16px 20px; max-width: 16ch; font-size: var(--hero-title); letter-spacing: -.055em; }
.editorial-eyebrow { display: flex; align-items: center; gap: 12px; }
.editorial-eyebrow img { object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #0003; }
.editorial-tagline { max-width: 32ch; font-size: clamp(1.06rem, 1.8vw, 1.42rem); }
.editorial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  width: fit-content;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: var(--small);
  text-decoration: none;
}
.editorial-button svg, .editorial-text-link svg { flex: none; }
.editorial-button:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.editorial-hero .editorial-button { margin-top: 24px; }
.editorial-hero-media, .editorial-portrait { position: relative; isolation: isolate; overflow: hidden; margin: 0; }
.editorial-hero-media { min-height: 400px; background: var(--field); }
.editorial-hero-media::after, .editorial-portrait::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 55%, #071320d9 100%); content: ""; }
.editorial-hero-media > img, .editorial-portrait > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position); }
.editorial-signature { position: absolute; z-index: -1; inset: auto 4% 7% auto; width: min(62%, 415px); stroke: #fff6e4; stroke-width: 1.35; filter: drop-shadow(0 2px 4px #000b); }
.editorial-hero-media figcaption, .editorial-portrait figcaption { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 12px clamp(12px, 2vw, 30px); color: #fff; font-size: var(--meta); text-shadow: 0 1px 3px #000; }

body[data-family="canada"] .editorial-hero { display: block; padding-bottom: clamp(20px, 4vw, 58px); background: #e8edf0; color: var(--ink); }
body[data-family="canada"] .editorial-hero-copy { width: min(100% - 2 * var(--gutter), 990px); margin-inline: auto; padding: clamp(34px, 5vw, 72px) 0 28px; text-align: center; }
body[data-family="canada"] .editorial-hero :is(.editorial-eyebrow, h1, .editorial-tagline) { justify-content: center; margin-inline: auto; }
body[data-family="canada"] .editorial-hero-media { width: min(100% - 2 * var(--gutter), 1150px); min-height: clamp(265px, 39vw, 510px); margin-inline: auto; border-radius: var(--radius); box-shadow: 0 18px 52px #07132028; }

body[data-family="europe-caribbean"] .editorial-hero { display: flex; align-items: end; min-height: clamp(555px, 79svh, 850px); }
body[data-family="europe-caribbean"] .editorial-hero-copy { align-self: end; width: 100%; padding-block-end: clamp(75px, 9vw, 132px); }
body[data-family="europe-caribbean"] .editorial-hero-media { position: absolute; z-index: -1; inset: 0; min-height: 0; }
body[data-family="europe-caribbean"] .editorial-hero-media::after { background: linear-gradient(90deg, #071320f2 2%, #071320c4 29%, #07132030 74%), linear-gradient(0deg, #071320df, transparent 44%); }
body[data-family="europe-caribbean"] .editorial-signature { width: min(34%, 495px); }

.editorial-intro, .editorial-faq-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(25px, 7vw, 100px); align-items: start; }
.editorial-intro-copy p { max-width: 55ch; font-size: clamp(1.02rem, 1.6vw, 1.26rem); }
.editorial-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--navy); font-size: var(--small); }
.editorial-fact-band { margin-top: clamp(32px, 5vw, 72px); padding-block: clamp(28px, 5vw, 64px); background: var(--field); color: var(--on-dark); }
.editorial-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 66px); margin-block: 0; }
.editorial-facts > div + div { padding-inline-start: clamp(14px, 2vw, 30px); border-inline-start: 1px solid #fffbf456; }
.editorial-facts dt { margin-bottom: 8px; font-weight: 600; }
.editorial-facts dt span { display: block; margin-bottom: 12px; font: 500 clamp(1.85rem, 3.3vw, 3.65rem)/1.12 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.editorial-facts dd { margin: 0; color: #fffbf4e0; font-size: .94rem; }
.editorial-overview { padding-bottom: 0; }

.editorial-benefits { background: var(--white); }
.editorial-benefit-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 94px); align-items: start; }
.editorial-portrait { min-height: clamp(340px, 46vw, 600px); border-radius: var(--radius); background: var(--field); }
.editorial-portrait img { object-position: var(--image-position); }
.editorial-rows { margin: 0; }
.editorial-rows > div { padding-block: clamp(16px, 2.4vw, 28px); border-top: 1px solid var(--rule); }
.editorial-rows dt { margin-bottom: 8px; font: 500 var(--section-title)/1.2 var(--display); }
.editorial-rows dd { margin: 0; color: var(--muted); }
body[data-family="canada"] .editorial-benefit-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
body[data-family="canada"] .editorial-portrait { order: 1; }

.editorial-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
.editorial-checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding-block: clamp(20px, 3vw, 36px); border-top: 1px solid var(--rule); }
.editorial-checklist li > span { padding-top: 3px; color: var(--red); font-size: var(--small); }
.editorial-checklist p { margin-top: 8px; color: var(--muted); }
.editorial-pathway { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); margin-top: clamp(25px, 4vw, 60px); overflow: hidden; border-radius: var(--radius); background: var(--field); color: var(--on-dark); }
.editorial-pathway-control, .editorial-pathway-content { min-width: 0; padding: clamp(20px, 4vw, 58px); }
.editorial-pathway-control { background: #0002; }
.editorial-pathway h3 { margin-block: 8px 18px; }
.editorial-pathway-buttons { display: grid; gap: 8px; }
.editorial-pathway-buttons button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid #fffbf46b; border-radius: 6px; background: #ffffff0e; color: inherit; cursor: pointer; font: inherit; font-size: .9rem; text-align: start; }
.editorial-pathway-buttons button span { opacity: .78; font-size: var(--meta); }
.editorial-pathway-buttons button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }
.editorial-pathway-buttons button:focus-visible { outline: 2px solid #fff; }
.editorial-pathway-content { display: grid; align-content: center; }
.editorial-pathway-panel h4 { margin-block: 10px; font-size: clamp(1.5rem, 2.7vw, 2.7rem); }
.editorial-pathway-panel > p:last-child { max-width: 52ch; color: #fffbf4e0; }

.editorial-roadmap { color: var(--on-dark); background: #102234; }
.editorial-roadmap .kicker { color: #f5bf9b; }
.editorial-timeline { position: relative; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: clamp(16px, 2.8vw, 46px); isolation: isolate; margin: 0; padding: 0; list-style: none; }
.editorial-timeline::before, .editorial-timeline::after { position: absolute; inset: 21px 0 auto; z-index: -1; height: 2px; background: #fffbf45c; content: ""; }
.editorial-timeline::after { background: #efaa85; transform: scaleX(var(--timeline-progress, 1)); transform-origin: left; }
.editorial-timeline h3 { margin-block: 14px 8px; }
.editorial-timeline li p { color: #fffbf4df; }
.editorial-milestone { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #fffbf49e; border-radius: 50%; background: #102234; font-size: var(--small); }
body[data-family="canada"] .editorial-timeline { grid-template-columns: minmax(0, 780px); gap: 20px; }
body[data-family="canada"] .editorial-timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 5px 22px; }
body[data-family="canada"] .editorial-milestone { grid-row: span 2; }
body[data-family="canada"] .editorial-timeline h3 { margin: 0; }
body[data-family="canada"] .editorial-timeline::before, body[data-family="canada"] .editorial-timeline::after { inset: 0 auto 0 21px; width: 2px; height: auto; }
body[data-family="canada"] .editorial-timeline::after { transform: scaleY(var(--timeline-progress, 1)); transform-origin: top; }

.editorial-note { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 6vw, 86px); padding: clamp(24px, 5vw, 72px); border: 1px solid var(--rule); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); background: #ece4d7; }
.editorial-note .editorial-heading { margin-bottom: 0; }
.editorial-risks { padding-bottom: 0; }
.editorial-faq details { border-top: 1px solid var(--rule); }
.editorial-faq summary { padding-block: 16px; color: var(--navy); cursor: pointer; }
.editorial-faq details p { padding: 0 0 18px; color: var(--muted); }
.editorial-faq .editorial-sources { margin-top: clamp(22px, 4vw, 50px); border-bottom: 1px solid var(--rule); font-size: var(--small); }
.editorial-sources ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 34px; margin: 0 0 22px; padding-inline-start: 20px; }

.editorial-summary { background: #e8edf0; }
.editorial-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.editorial-bento-tile { position: relative; display: block; min-height: 150px; padding: clamp(20px, 3vw, 34px) clamp(34px, 3.5vw, 52px) clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px); border: 1px solid #b8c5d0; border-radius: var(--radius); color: var(--navy); background: var(--white); text-decoration: none; }
.editorial-bento-tile p { margin-top: 8px; }
.editorial-bento-tile svg { position: absolute; right: 16px; bottom: 20px; }
.editorial-bento-contact { grid-column: 1 / -1; min-height: 0; background: var(--navy); color: #fff; }
.editorial-bento-contact:focus-visible { outline-color: var(--navy); }
.editorial-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #b8c5d0; }
.editorial-contact p { margin-top: 6px; }

@media (min-width: 900px) {
  .editorial-portrait { position: sticky; top: calc(var(--eb5-nav-clearance, 78px) + 24px); }
}

@media (max-width: 899px) {
  .editorial-facts { gap: 20px; }
  .editorial-timeline, body[data-family="canada"] .editorial-timeline { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .editorial-timeline li, body[data-family="canada"] .editorial-timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 5px 16px; }
  .editorial-timeline li h3 { margin: 0; }
  .editorial-milestone { grid-row: span 2; }
  .editorial-timeline::before, .editorial-timeline::after { inset: 0 auto 0 21px; width: 2px; height: auto; }
  .editorial-timeline::after { transform: scaleY(var(--timeline-progress, 1)); transform-origin: top; }
}

@media (max-width: 640px) {
  .editorial-hero { display: block; min-height: 0; }
  .editorial-hero-copy { padding: 35px var(--gutter) 30px; }
  .editorial-hero-media { min-height: clamp(248px, 73vw, 370px); }
  body[data-family="europe-caribbean"] .editorial-hero { min-height: min(650px, 87svh); }
  body[data-family="europe-caribbean"] .editorial-hero-media::after { background: linear-gradient(0deg, #071320f2 5%, #071320ca 55%, #07132024 100%); }
  body[data-family="europe-caribbean"] .editorial-signature { inset: 6% 5% auto auto; width: 49%; }
  .editorial-intro, .editorial-facts, .editorial-benefit-layout, body[data-family="canada"] .editorial-benefit-layout, .editorial-checklist, .editorial-pathway, .editorial-note, .editorial-faq-layout, .editorial-sources ul, .editorial-bento { grid-template-columns: minmax(0, 1fr); }
  .editorial-intro, .editorial-faq-layout { gap: 4px; }
  .editorial-facts > div + div { padding: 16px 0 0; border: 0; border-top: 1px solid #fffbf456; }
  .editorial-portrait { min-height: min(80vw, 320px); order: 1; }
  .editorial-bento-tile { min-height: 0; }
}

@media (max-width: 700px) {
  /* Mobile: one-row nav (see eb5.css); long program titles truncate. */
  .editorial-page .eb5-local-nav { margin-top: 8px; }
  .editorial-page .eb5-nav-title { overflow: hidden; overflow-wrap: normal; white-space: nowrap; text-overflow: ellipsis; line-height: 1.2; }
}

@media (hover: hover) {
  .editorial-button:hover { background: #8e1123; }
  .editorial-pathway-buttons button:hover { border-color: var(--on-dark); }
  .editorial-bento-tile:hover { border-color: var(--navy); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .editorial-bento-tile:hover svg { translate: 4px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .editorial-hero-media { --photo-entry: inset(0 0 0 12%); animation: editorial-aperture 1.15s var(--ease) both; }
  body[data-family="canada"] .editorial-hero-media { --photo-entry: inset(7% 9% round var(--radius)); }
  body[data-family="europe-caribbean"] .editorial-hero-media { --photo-entry: inset(0 0 9%); }
  .editorial-hero-copy { animation: editorial-rise .85s var(--ease) both; }
  .editorial-hero-media > img { scale: 1.14; translate: 0 var(--hero-travel, 0); animation: editorial-fade 1.05s var(--ease) both; }
  .editorial-signature path { animation: editorial-draw 1.8s var(--ease) both; animation-delay: calc(.1s + var(--line) * .13s); }
  [data-editorial-reveal].is-revealed { animation: editorial-rise .74s var(--ease) both; }
  .editorial-portrait.is-revealed { animation: editorial-frame 1.15s var(--ease) both; }
  .editorial-pathway-panel:not([hidden]) { animation: editorial-panel .42s var(--ease) both; }
  .editorial-bento-tile svg { transition: translate .3s var(--ease); }
}
@keyframes editorial-rise { from { opacity: .64; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes editorial-fade { from { opacity: .45; } to { opacity: 1; } }
@keyframes editorial-aperture { from { clip-path: var(--photo-entry); } to { clip-path: inset(0); } }
@keyframes editorial-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes editorial-frame { from { clip-path: inset(3% 3% 15% 3% round 18px); } to { clip-path: inset(0 round 18px); } }
@keyframes editorial-panel { from { opacity: .55; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
