/* The editorial pages share their type, colors and outer margins with the landing page. */
.library-teaser,
.ed-listing,
.ed-related {
  padding-block: clamp(3rem, 6vw, 5.75rem);
}
.library-teaser { border-top: 1px solid var(--edge); }
.ed-section-heading { margin-bottom: clamp(1.3rem, 3vw, 2.15rem); }
.ed-section-heading h2 { max-width: 26ch; }
.ed-section-heading .kicker,
.ed-section-heading .eyebrow { margin-bottom: .7rem; }
.ed-section-heading p:not(.kicker, .eyebrow) { max-width: 66ch; margin-top: .65rem; color: var(--muted); }
.ed-section-heading a:not(.button) { font-weight: 630; }

.ed-hero {
  border-bottom: 1px solid var(--edge);
  background: radial-gradient(ellipse at 93% 18%, #e3eaff, transparent 57%), var(--wash);
}
.ed-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4.9vw, 4.65rem);
}
.ed-hero-inner > .ed-breadcrumb { grid-column: 1 / -1; }
.ed-hero h1,
.ed-story-head h1 {
  margin-block: .9rem .8rem;
  font-size: clamp(2.8rem, 5vw, 4.85rem);
  line-height: 1.01;
  overflow-wrap: anywhere;
}
.ed-hero h1 { max-width: 18ch; }
.ed-hero p:not(.kicker, .eyebrow),
.ed-lede { max-width: 66ch; color: var(--muted); font-size: clamp(1.04rem, 1.35vw, 1.21rem); line-height: 1.65; }
.ed-hero figure {
  margin: 0;
  border: 1px solid #cbd6ea;
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  background: var(--tint);
  box-shadow: var(--shadow);
}
.ed-hero figure img { display: block; width: 100%; height: auto; }
.ed-breadcrumb { font-size: .82rem; color: var(--muted); }
.ed-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .5rem;
  padding: 0;
  margin: 0 0 1.15rem;
  list-style: none;
}
.ed-breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.ed-breadcrumb li + li::before {
  display: inline-block;
  width: .38em;
  height: .38em;
  margin: 0 .64rem .1em 0;
  border-top: 1px solid #75819c;
  border-right: 1px solid #75819c;
  transform: rotate(45deg);
  content: "";
}
.ed-switcher { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.35rem; }
.ed-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .46rem 1rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid #bdc9e1;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 620;
  text-decoration: none;
}
.ed-switcher a[aria-current]:not([aria-current="false"]) { color: white; background: var(--navy); border-color: var(--navy); }
.ed-switcher a:hover { border-color: var(--link); text-decoration: underline; }
.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(16rem, 27%)), 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem);
}
.ed-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--edge);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(140deg, #f5f7fe, white 55%);
  box-shadow: 0 8px 24px -22px #1a3264;
  text-decoration: none;
  transition: border-color .16s, box-shadow .16s;
}
.ed-card:hover,
.ed-card:focus-visible { border-color: #899fdc; box-shadow: var(--shadow); }
.ed-meta,
.ed-byline { color: var(--muted); font-size: .82rem; font-weight: 550; }
.ed-card .ed-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.35;
  color: #304c9b;
}
.ed-card .ed-meta::before { flex: none; width: 1rem; height: 2px; background: var(--blue); content: ""; }
.ed-card h3 { max-width: 32ch; margin-block: 1.05rem .55rem; line-height: 1.11; overflow-wrap: anywhere; }
.ed-card p { color: var(--muted); font-size: .95rem; line-height: 1.62; }
.ed-read { margin-top: auto; padding-top: 1.15rem; font-size: .87rem; font-weight: 680; color: var(--link); }
.ed-card:hover .ed-read { text-decoration: underline; text-underline-offset: .23em; }

.ed-story-head { padding-block: clamp(1.6rem, 3.75vw, 3.3rem) clamp(1.9rem, 3.4vw, 3.25rem); border-bottom: 1px solid var(--edge); }
.ed-story-head .ed-breadcrumb { margin-bottom: clamp(1.2rem, 2.7vw, 2.4rem); }
.ed-story-head h1 { max-width: 24ch; }
.ed-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em .75em; margin-top: 1.15rem; }
.ed-reading {
  display: grid;
  grid-template-columns: minmax(12.5rem, .36fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2.1rem, 4.7vw, 4.5rem);
}
.ed-aside {
  min-width: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 125px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.ed-toc { padding: 1.2rem; background: var(--wash); border: 1px solid var(--edge); border-radius: 16px; }
.ed-toc strong { color: var(--navy); font: 680 1.24rem/1.2 var(--display); }
.ed-toc ol { margin: .7rem 0 0; padding-left: 1.4em; color: #41588b; }
.ed-toc li { padding-left: .12rem; }
.ed-toc li::marker { font-size: .78em; font-weight: 650; }
.ed-toc a { display: inline-block; padding-block: .38rem; font-size: .88rem; line-height: 1.44; overflow-wrap: anywhere; }
.ed-prose {
  min-width: 0;
  max-width: 72ch;
  color: var(--text);
  font-size: clamp(1rem, .948rem + .28vw, 1.125rem);
  line-height: 1.74;
  overflow-wrap: anywhere;
}
.ed-prose section { scroll-margin-top: 1.15rem; }
.ed-prose section + section { margin-top: clamp(2rem, 3.8vw, 3.3rem); }
.ed-prose h2 { margin: 0 0 .8rem; font-size: clamp(1.75rem, 2.75vw, 2.45rem); line-height: 1.12; }
.ed-prose p + p,
.ed-prose p + ol,
.ed-prose ol + p { margin-top: 1rem; }
.ed-prose ol,
.ed-sources ul { margin-block: 0; padding-left: 1.65em; }
.ed-prose li { padding-left: .26rem; }
.ed-prose li + li { margin-top: .6rem; }
.ed-prose ol li::marker { font-weight: 700; color: var(--link); }
.ed-sources { padding: clamp(1.1rem, 2.2vw, 1.8rem); border: 1px solid var(--edge); border-radius: 16px; background: var(--wash); }
.ed-sources h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
.ed-sources ul { font-size: .92rem; }
.ed-related { border-top: 1px solid var(--edge); }
.ed-next { margin-top: clamp(2rem, 3.8vw, 3.3rem); padding: clamp(1.25rem, 3vw, 2.4rem); border: 1px solid #c7d4fa; border-radius: 20px; background: linear-gradient(120deg, var(--tint), #f6f8ff); }
.ed-next h2 { max-width: 33ch; }
.ed-next p { max-width: 61ch; }
.ed-next .button { margin: 1rem .4rem 0 0; }

@media (max-width: 785px) {
  .ed-reading { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .ed-aside { position: static; max-height: none; overflow: visible; }
  .ed-prose { width: 100%; }
}
@media (max-width: 690px) {
  .ed-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .ed-hero figure { width: min(100%, 26rem); }
  .ed-switcher { margin-block: 1rem; }
  .ed-story-head h1,
  .ed-hero h1 { font-size: clamp(2.5rem, 8.5vw, 3.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .ed-card { transition: none; }
}
@media (min-width: 820px) {
  .ed-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
