/* Editorial pages use their published layouts, from the flat library to long-form reading. */
.ed-page {
  --ed-paper: #f6f4ef;
  --ed-surface: #fffdf9;
  --ed-ink: #1b191c;
  --ed-secondary: #59545b;
  --ed-edge: #dcd7d1;
  --ed-violet: #6625bd;
  --ed-magenta: #b92973;
  background: var(--ed-paper);
  font-family: Geist, Arial, sans-serif;
}
.ed-page > .nav, .ed-page > header.nav {
  z-index: 15;
  position: relative;
  background: #1d1c21;
  color: #fff;
  border-bottom: 1px solid #353237;
}
.ed-page .ed-content {
  --muted: var(--ed-secondary);
  position: relative;
  isolation: isolate;
  color: var(--ed-ink);
  background: var(--ed-paper);
}
.ed-page .ed-content :where(h1,h2,h3,h4,h5,p,small,form,label,button,input,select,textarea,article,section,nav,li) {
  font-family: Geist, Arial, sans-serif;
}
.ed-page .ed-content :is(.bw, .bwwf, .standard-page, .ai-reference) {
  --paper: var(--ed-paper);
  --ink: var(--ed-ink);
  --font: Geist, Arial, sans-serif;
  --serif: Geist, Arial, sans-serif;
  --sans: Geist, Arial, sans-serif;
  --accent: var(--ed-violet);
  --purple: var(--ed-violet);
  --violet: var(--ed-violet);
  color: var(--ed-ink);
  font-family: Geist, Arial, sans-serif;
}
.ed-page .ed-content .bwwf.bwtlp-main {
  --w-serif: Geist, Arial, sans-serif;
  --bwtlp-sans: Geist, Arial, sans-serif;
  --font-body: Geist, Arial, sans-serif;
}
.ed-page .ed-content :is(.rv,.reveal) { opacity: 1; transform: none; }
.ed-page .ed-content :is(.b-hero,.a-top,.ab-hero,.bwwf-hero-index) {
  background: var(--ed-paper);
  border-top: 0;
}
.ed-page .ed-content .dots::before { opacity: .22; }
.ed-page .ed-content :is(.h-blog,.h-about,.a-h1,.h2,.bwwf-hero h1,.ed-archive h1,.ai-reference h1,.standard-page h1) {
  font-family: Geist, Arial, sans-serif;
  font-weight: 550;
  letter-spacing: -.062em;
  line-height: 1.02;
  text-wrap: balance;
}
.ed-page .ed-content :is(.h-blog,.h-about,.a-h1,.h2,.feat-title,.bwwf-hero h1) :is(em,.ln) {
  font-family: Geist, Arial, sans-serif;
  font-style: normal;
  color: inherit;
}
.ed-page .ed-content :is(.b-cat,.a-cat,.eyebrow,.b-chip,.bwwf-chip,.ai-ref-nav) { font-family: Geist, Arial, sans-serif; }
.ed-page .ed-content :is(.b-card,.b-search,.ab-chart,.ab-job,.bwwf-card,.ai-ref-section) {
  border-color: var(--ed-edge);
}
.ed-page .ed-content :is(.btn-dark,.bwwf-search button,.bwwf-btn) {
  background: var(--ed-violet);
  color: #fff;
  border-color: transparent;
}
.ed-page .ed-content :is(.b-search input,.bwwf-search input) {
  color: var(--ed-ink);
  font-family: Geist, Arial, sans-serif;
}
.ed-page .ed-content :is(.btn,.b-chip,.bwwf-chip,.bwwf-btn,.bwwf-btn-sec) { transition: background-color .18s, border-color .18s, color .18s; }
.ed-page .ed-content :is(.b-cta,.b-progress) { display: none; }
.ed-page .ed-content .b-cats { top: 0; }
.ed-page .ed-content .a-body { overflow-wrap: anywhere; }
.ed-page .ed-content :where(.a-body,.prose) :where(p,li,dd) { line-height: 1.72; }
.ed-page .ed-content :where(.a-body,.prose) :where(a:not([class])) {
  color: #5e269e;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.ed-page .ed-content :where(.a-body,.prose) img { height: auto; max-width: 100%; }
.ed-page .ed-content :is(.ai-reference,.standard-page) {
  margin: 0 auto;
  padding-block: clamp(48px,7vw,108px);
  background: var(--ed-paper);
}
.ed-page .ed-content .standard-page { width: min(90%, 870px); }
.ed-page .ed-content .standard-page h1 { font-size: clamp(2.75rem,6vw,5.25rem); }
.ed-page .ed-content .standard-page .prose { color: var(--ed-ink); font-size: clamp(1rem,1.1vw,1.12rem); }
.ed-page .ed-content .standard-page .prose :is(p, li, dd, dt, td, th, blockquote, figcaption) {
  /* The published legal copy includes inline colors for its former dark background. */
  color: #423d42 !important;
}
.ed-page .ed-content .standard-page .prose :is(h2,h3,h4,strong,b) { color: var(--ed-ink); }
.ed-page .ed-content .a-body figcaption { color: var(--ed-secondary); }
.ed-page .ed-content .ai-ref-hero h1 em { color: var(--ed-ink); font: inherit; }
.ed-page .ed-content .standard-page h2 { margin: 2.2em 0 .6em; line-height: 1.18; letter-spacing: -.035em; }
.ed-page :where(a,button,input,select,summary):focus-visible {
  outline: 3px solid #ab68df;
  outline-offset: 3px;
}
.ed-archive {
  width: min(92vw, 1260px);
  margin: auto;
  padding: clamp(54px,8vw,112px) 0 clamp(58px,8vw,110px);
}
.ed-archive-intro { max-width: 790px; margin-bottom: clamp(34px,4vw,64px); }
.ed-back,.ed-card small { color: #8a325b; font-size: .81rem; line-height: 1.5; font-weight: 650; }
.ed-back { text-decoration: underline; text-underline-offset: .25em; }
.ed-archive h1 { margin: 18px 0; font-size: clamp(3rem,8vw,6.6rem); color: var(--ed-ink); }
.ed-archive-intro p { margin: 0; max-width: 690px; color: var(--ed-secondary); font-size: clamp(1.02rem,1.65vw,1.32rem); line-height: 1.55; }
.ed-archive > p { color: var(--ed-secondary); }
.ed-archive > p a { color: #642d97; text-decoration: underline; text-underline-offset: .16em; }
.ed-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,2vw,28px); }
.ed-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ed-edge);
  border-radius: 16px;
  background: var(--ed-surface);
  transition: border-color .18s;
}
.ed-card:focus-within,.ed-card:hover { border-color: #a48b99; }
.ed-card > a { height: 100%; display: flex; flex-direction: column; color: var(--ed-ink); text-decoration: none; }
.ed-card > a:focus-visible { outline-offset: -4px; }
.ed-card-image { overflow: hidden; aspect-ratio: 16/9; background: #eae6e0; border-bottom: 1px solid var(--ed-edge); }
.ed-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ed-card-copy { padding: clamp(19px,2.2vw,32px); flex: 1; display: flex; flex-direction: column; }
.ed-card h2 { font-size: clamp(1.35rem,2.2vw,2rem); line-height: 1.12; letter-spacing: -.048em; font-weight: 550; margin: .35em 0; color: var(--ed-ink); }
.ed-card-copy p { font-size: .96rem; line-height: 1.55; margin: 0 0 1.4rem; color: var(--ed-secondary); }
.ed-card-link { margin-top: auto; font-size: .91rem; font-weight: 600; color: #642d97; }
.ed-pagination { margin-top: 34px; }
.ed-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; list-style: none; padding: 0; gap: 6px; }
.ed-pagination :is(a,span) { display: inline-flex; padding: .5rem .85rem; border-radius: 7px; color: var(--ed-ink); }
.ed-pagination .current { background: var(--ed-ink); color: #fff; }
.ed-pagination a:hover { background: #e9e1e1; }
.ed-page :is(#bw-site-invite,#bwab,#bwab-pill) { display: none; }
@media(max-width: 930px) {
  .ed-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 620px) {
  .ed-archive-grid { grid-template-columns: 1fr; }
  .ed-archive { width: calc(100% - 32px); }
  .ed-content :is(.a-body,.standard-page,.ai-reference) :where(table,pre) { display: block; max-width: 100%; overflow: auto; }
}
@media(prefers-reduced-motion: reduce) {
  .ed-page .ed-content *, .ed-page .ed-content *::before, .ed-page .ed-content *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
