/* Full articles and author profiles using the selected journal direction. */
.ep-layout-journal .article-story>.article-lead:not(.article-video){float:left;width:40%;margin:0 28px 22px 0}
.ep-layout-dossier .article-story>.article-lead,.ep-layout-lecture .article-story>.article-lead{float:none;width:100%;margin:0 0 30px}
.ep-layout-dossier .article-lead img{max-height:540px;object-fit:contain;background:var(--tint)}
.ep-layout-dossier .article-rich>p{max-width:70ch}.ep-layout-lecture .article-story{max-width:62ch;margin:auto;width:100%}
.ep-layout-lecture .article-heading{max-width:940px}.ep-layout-lecture .article-rich{font-size:20px;line-height:1.95}
.ep-layout-lecture .article-lead img{max-height:430px;object-fit:contain}
.article-lead>figure{margin:0}.article-lead figcaption{font:12px/1.6 Arial,sans-serif;color:var(--muted);margin-top:10px}
.article-story .article-video{float:none;width:100%;margin:0 0 30px}.article-video video,.article-rich video{display:block;width:100%;max-height:560px;background:#152d40}.article-video iframe{width:100%;aspect-ratio:16/9;height:auto}
.ep-feature-video figure{margin:0}.ep-feature-video video,.ep-feature-video iframe{width:100%;aspect-ratio:16/9;background:#152d40}
.article-rich .wp-block-gallery{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:32px 0;max-width:100%}
.article-rich .wp-block-gallery:has(>figure:only-child){grid-template-columns:1fr}
.article-rich .wp-block-gallery:has(>figure:only-child) img{height:420px}
.article-rich .wp-block-gallery figure{margin:0;width:100%!important;max-width:100%}.article-rich .wp-block-gallery img{width:100%;height:250px;object-fit:contain;background:var(--tint)}
.article-rich .wp-block-gallery.has-nested-images figure.wp-block-image figcaption{position:static;background:none;color:var(--muted);padding:10px 0 0;margin:0;max-height:none;overflow:visible;flex-grow:0;font:12px/1.6 Arial,sans-serif}
@media(max-width:700px){.ep-layout-journal .article-story>.article-lead:not(.article-video){float:none;width:100%;margin:0 0 22px}.article-rich .wp-block-gallery{grid-template-columns:1fr}.article-rich .wp-block-gallery img,.article-rich .wp-block-gallery:has(>figure:only-child) img{height:auto;max-height:430px}}
.article-deck{font:22px/1.6 var(--heading);max-width:860px;margin:0 0 25px;color:var(--muted)}
.article-heading>.demo-tag{margin-bottom:12px}.reading-time{color:var(--muted)}
.article-rich h2{clear:both;padding-top:15px;margin-top:28px;font-weight:400}
.article-rich blockquote{clear:both;margin:34px 0;padding:20px 28px;border-left:3px solid var(--blue);background:var(--tint);font:26px/1.5 var(--heading)}
.article-rich blockquote p{font-size:inherit;margin:0}.article-rich .article-notebook{clear:both;padding:26px;background:var(--tint);margin:30px 0}
.article-notebook h2{padding-top:0;margin-top:0;font-size:25px}.article-notebook ul{padding-left:22px;margin-bottom:0}
.article-rich figure.wp-block-image{max-width:100%}.article-rich .demo-disclosure{clear:both;border-top:1px solid var(--line);padding-top:20px;font:12px/1.65 Arial,sans-serif;color:var(--muted)}
.person-initials{display:flex;align-items:center;justify-content:center;width:150px;height:150px;background:var(--tint);color:var(--blue);font:48px/1 var(--heading);border:1px solid var(--line)}
.signature-photo{display:block;width:72px;height:72px;object-fit:cover;margin:12px 0;font-size:27px}
.person-initials.signature-photo{display:flex}
.ep-journalist{padding-top:5px}.person-cover{margin:0 0 25px}.person-cover img{display:block;width:100%;height:250px;object-fit:cover;object-position:center 22%}
.person-cover figcaption{font:11px/1.65 Arial,sans-serif;color:var(--muted);padding-top:8px}
.ep-journalist>.person-masthead{gap:30px;padding:10px 0 32px;align-items:flex-start}.person-portrait{flex:0 0 150px}
.person-portrait .person-photo{display:block;width:150px;height:150px}.person-portrait small{display:block;margin-top:10px;color:var(--muted);font-size:11px;text-align:center}
.person-identity{min-width:0;max-width:800px}.person-identity h1{font-size:clamp(38px,4.5vw,62px);font-weight:400;letter-spacing:-1px;margin:12px 0}
.person-identity .demo-tag{margin-bottom:0}.person-intro{font:21px/1.55 var(--heading);margin:20px 0 18px}
.person-sections{display:flex;gap:24px;flex-wrap:wrap;margin-top:25px;font-size:13px}.person-sections a{text-decoration:none;border-bottom:1px solid var(--blue);padding-bottom:4px}
.person-about{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:65px}.person-about .prose{max-width:70ch}
.person-about h2{font-size:29px;font-weight:400}.person-about .prose p{font-size:17px;line-height:1.8;white-space:normal}
.person-details{border-left:1px solid var(--line);padding-left:25px;font-size:13px;align-self:start}.person-details ul{padding-left:17px;margin:15px 0 25px}
.person-details li{margin-bottom:7px}.person-details strong{font-size:23px;font-family:var(--heading)}
.ep-journalist .person-publications{border-top:1px solid var(--blue);padding-top:28px;margin-top:40px}
.ep-journalist .person-publications h2{font-size:29px;font-weight:400}.ep-journalist .person-publications .posts{margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.ep-journalist .post h3{font-family:var(--heading);font-weight:400;font-size:25px}.ep-journalist .post-image img{height:190px;object-fit:cover}
.ep-a-more .post .post-image img{object-fit:cover}.ep-a-more .post .post-image img[src*="equite"]{object-fit:contain}
.lab .ep-home-scenarios{display:flex;gap:10px;font-size:11px}.lab .ep-home-scenarios a{border-bottom:1px solid #8298a8}
@media(max-width:1000px){.person-about{grid-template-columns:minmax(0,1fr) 210px;gap:30px}.ep-journalist .person-publications .posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .article-deck{font-size:20px}.article-rich blockquote{font-size:23px;padding:18px 20px}.article-rich .article-notebook{padding:22px}
  .person-cover img{height:180px}.ep-journalist>.person-masthead{gap:20px;flex-wrap:nowrap}
  .person-portrait{flex-basis:82px}.person-portrait .person-photo,.person-portrait .person-initials{width:82px;height:100px;font-size:34px}
  .person-identity h1{font-size:34px;overflow-wrap:anywhere}.person-identity .eyebrow{font-size:9px;letter-spacing:1px}.person-identity .demo-tag{font-size:9px}
  .person-intro{font-size:18px}.person-role{font-size:13px}.person-sections{gap:12px;font-size:12px}
  .person-about{grid-template-columns:1fr;gap:25px}.person-details{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}
  .ep-journalist .person-publications .posts{grid-template-columns:1fr}.person-publications .section-title{flex-wrap:wrap}
  .lab .ep-home-scenarios{width:100%;justify-content:flex-end}
}
@container(max-width:52rem){.ep-layout-journal .article-story>.article-lead:not(.article-video){float:none;width:100%;margin:0 0 24px}}

/* Bring the article closer to the masthead without changing its blocks. */
.article-heading{padding-top:6px;padding-bottom:20px;margin-bottom:24px}
.article-heading h1{margin-top:12px;margin-bottom:18px}
.ep-journalist>.person-masthead{margin-bottom:24px;padding-bottom:24px}
.person-sections a{display:inline-flex;align-items:center;min-height:44px;padding-top:6px;padding-bottom:6px}
@media(max-width:700px){
  .article-heading{padding-top:4px;padding-bottom:16px;margin-bottom:20px}
  .article-heading h1{font-size:36px;line-height:1.12;letter-spacing:-.7px;margin-bottom:16px}
  .article-heading>.eyebrow{margin-bottom:12px}
  .article-heading>.demo-tag{margin-bottom:8px}
  .article-deck{font-size:19px;line-height:1.55;margin-bottom:18px}
  .ep-journalist>.person-masthead{gap:16px;padding-top:0;padding-bottom:18px;margin-bottom:20px}
  .person-portrait{flex-basis:64px}.person-portrait .person-photo,.person-portrait .person-initials{width:64px;height:80px;font-size:28px}
  .person-identity .eyebrow{margin-bottom:12px}.person-intro{margin-top:14px;margin-bottom:12px}
  .person-sections{margin-top:14px;font-size:13px;gap:12px}
}
/* A wide table scrolls inside its frame. Long contacts can wrap in a narrow cell. */
.prose .wp-block-table{overflow-x:auto;margin:0 0 28px}.prose .wp-block-table table{width:100%;border-collapse:collapse}
.prose .wp-block-table :is(td,th){overflow-wrap:anywhere;vertical-align:top}
.prose .wp-block-table :is(td,th) a{white-space:normal}

/* Contact coordinates imported from the previous site. */
.ep-contact-page { min-width: 0; }
.ep-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.ep-contact-cards section {
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  line-height: 1.6;
}
.ep-contact-cards h2 { margin: 0 0 4px; font-size: 1.2rem; }
.ep-contact-cards section > div + div { margin-top: 12px; }
.ep-contact-cards a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; text-decoration: underline; }
.ep-contact-map { display: block; width: min(100%, 600px); height: auto; aspect-ratio: 4 / 3; }
@media (max-width: 880px) {
  .ep-contact-cards { grid-template-columns: 1fr; }
  .ep-contact-cards a { padding-block: 6px; }
}

/* A photo-only legacy Cover block can display its photo at its own aspect ratio. */
.article-rich .ep-cover-photo { display: block; min-height: 0; padding: 0; background: none; }
.article-rich .ep-cover-photo > .wp-block-cover__background,
.article-rich .ep-cover-photo > .wp-block-cover__inner-container { display: none; }
.article-rich .ep-cover-photo > img.wp-block-cover__image-background {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}
