/* Diário do Povo — sistema editorial 2026 */
:root {
  --ed-ink: #101820;
  --ed-navy: #0b4266;
  --ed-navy-dark: #072f49;
  --ed-red: #a9232d;
  --ed-paper: #fcfbf7;
  --ed-soft: #f1efe9;
  --ed-line: #d4d1c9;
  --ed-muted: #59636a;
  --ed-white: #fff;
  --ed-container: 1216px;
  --ed-reading: 720px;
  --ed-serif: Georgia, "Times New Roman", serif;
  --ed-sans: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.ed-site {
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ed-container {
  width: min(calc(100% - 40px), var(--ed-container));
  margin-inline: auto;
}

.ed-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ed-navy-dark);
  color: white;
  transform: translateY(-160%);
}
.ed-skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #287eb3;
  outline-offset: 3px;
}

/* Masthead */
.ed-header { background: var(--ed-paper); }
.ed-utility { border-bottom: 1px solid #e4e1da; background: #f6f4ef; color: var(--ed-muted); }
.ed-utility__inner {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ed-utility p { margin: 0; }
.ed-utility__mission { text-align: center; }
.ed-utility__links { display: flex; justify-content: flex-end; gap: 22px; }
.ed-utility a { text-decoration: none; }
.ed-utility a:hover { color: var(--ed-navy); text-decoration: underline; text-underline-offset: 3px; }

.ed-masthead {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--ed-navy);
  color: white;
  box-shadow: 50vw 0 var(--ed-navy), -50vw 0 var(--ed-navy);
}
.ed-brand { display: block; width: 268px; }
.ed-brand img { width: 100%; height: 74px; object-fit: contain; filter: brightness(0) invert(1); }
.ed-menu-button {
  width: max-content;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.ed-menu-button__icon { width: 23px; display: flex; flex-direction: column; gap: 5px; }
.ed-menu-button__icon i { width: 23px; height: 1px; background: currentColor; }
.ed-menu-button__label { font-size: 12px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.ed-masthead__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.ed-account-link { color: white; font-size: 12px; font-weight: 750; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.ed-account-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed-subscribe {
  min-width: 106px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.72);
  background: white;
  color: var(--ed-navy-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.ed-subscribe:hover { border-color: white; background: #edf5f9; }

.ed-nav { border-bottom: 1px solid var(--ed-line); background: white; box-shadow: 0 2px 8px rgba(9, 36, 53, .05); }
.ed-nav__inner { display: flex; align-items: stretch; min-height: 44px; }
.ed-nav__latest {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 22px;
  color: var(--ed-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}
.ed-nav__latest::before { content: ""; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ed-red); }
.ed-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ed-nav__list a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #27333c;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.ed-nav__list a:hover,
.ed-nav__list a[aria-current="page"] { color: var(--ed-navy); background: var(--ed-soft); }

.ed-support { border-bottom: 1px solid #cbd4da; background: #eaf1f5; color: var(--ed-navy-dark); }
.ed-support__inner { min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.ed-support p { margin: 0; font-family: var(--ed-serif); font-size: 13px; }
.ed-support p strong { font-weight: 700; }
.ed-support a { font-size: 10px; font-weight: 800; letter-spacing: .065em; text-decoration: none; text-transform: uppercase; }
.ed-support a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ed-support a span { margin-left: 4px; font-size: 14px; }

/* Vertical navigation drawer */
.ed-menu-open { overflow: hidden; }
.ed-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5, 20, 30, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.ed-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.ed-menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 901;
  width: min(410px, calc(100vw - 38px));
  display: flex;
  flex-direction: column;
  background: var(--ed-paper);
  box-shadow: 18px 0 48px rgba(4, 23, 35, .22);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .26s cubic-bezier(.22, .8, .28, 1), visibility 0s linear .26s;
}
.ed-menu-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}
.ed-menu-drawer__header {
  min-height: 102px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ed-navy-dark);
  color: white;
}
.ed-menu-drawer__brand { width: 150px; display: block; }
.ed-menu-drawer__brand img { width: 100%; height: 54px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.ed-menu-close {
  width: 44px;
  height: 44px;
  position: relative;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}
.ed-menu-close::before,
.ed-menu-close::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 1px;
  background: currentColor;
}
.ed-menu-close::before { transform: rotate(45deg); }
.ed-menu-close::after { transform: rotate(-45deg); }
.ed-menu-close:hover { border-color: white; background: rgba(255,255,255,.08); }
.ed-menu-drawer__body { flex: 1 0 auto; padding: 28px 26px 30px; }
.ed-menu-drawer__eyebrow { margin: 0 0 12px; color: var(--ed-muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ed-menu-drawer__latest {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 2px solid var(--ed-navy);
  border-bottom: 1px solid var(--ed-line);
  color: var(--ed-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.ed-menu-drawer__latest > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.ed-menu-drawer__list { margin: 0; padding: 0; list-style: none; }
.ed-menu-drawer__list a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ed-line);
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-decoration: none;
}
.ed-menu-drawer__list a > span { color: #8d969b; font-family: var(--ed-sans); font-size: 16px; font-weight: 400; transition: transform .18s ease, color .18s ease; }
.ed-menu-drawer__list a:hover,
.ed-menu-drawer__list a[aria-current="page"] { color: var(--ed-navy); }
.ed-menu-drawer__list a:hover > span { color: var(--ed-navy); transform: translateX(3px); }
.ed-menu-drawer__services { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ed-line); }
.ed-menu-drawer__services > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.ed-menu-drawer__services > div a { color: #34434c; font-size: 13px; font-weight: 700; text-decoration: none; }
.ed-menu-drawer__services > div a:hover { color: var(--ed-navy); text-decoration: underline; text-underline-offset: 3px; }
.ed-menu-drawer__subscribe {
  min-height: 46px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-red);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.ed-menu-drawer__subscribe:hover { background: #861c24; }
.ed-menu-drawer__footer { padding: 18px 26px 22px; border-top: 1px solid var(--ed-line); background: #f3f1eb; }
.ed-menu-drawer__footer p { max-width: 280px; margin: 0; color: var(--ed-muted); font-family: var(--ed-serif); font-size: 13px; }

.ed-main { padding-top: 36px; padding-bottom: 68px; min-height: 52vh; }

/* Shared editorial language */
.ed-kicker {
  margin: 0 0 9px;
  color: var(--ed-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .095em;
  line-height: 1.25;
  text-transform: uppercase;
}
.ed-section { margin-top: 52px; padding-top: 16px; border-top: 2px solid var(--ed-navy); }
.ed-section__header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ed-section__title,
.ed-page-title {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.ed-section__title { font-size: clamp(27px, 3vw, 36px); }
.ed-section__title a { text-decoration: none; }
.ed-section__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ed-section__more { color: var(--ed-navy); font-size: 12px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.ed-section__more:hover { text-decoration: underline; }
.ed-page-header { max-width: 820px; margin: 12px 0 30px; }
.ed-page-title { font-size: clamp(38px, 6vw, 64px); }
.ed-page-description { max-width: 680px; margin: 14px 0 0; color: var(--ed-muted); font-family: var(--ed-serif); font-size: 19px; }

/* Home */
.ed-opinion-rail { margin: -4px 0 34px; padding: 15px 0 22px; border-top: 2px solid var(--ed-navy); border-bottom: 1px solid var(--ed-line); }
.ed-opinion-rail__header { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ed-opinion-rail__header h2 { margin: 0; color: var(--ed-navy); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ed-opinion-rail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ed-opinion-card { min-width: 0; padding-right: 26px; border-right: 1px solid var(--ed-line); }
.ed-opinion-card:last-child { padding-right: 0; border-right: 0; }
.ed-opinion-card a { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px; text-decoration: none; }
.ed-opinion-card__avatar { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #dfe8ed; color: var(--ed-navy); font-family: var(--ed-serif); font-size: 18px; font-weight: 700; }
.ed-opinion-card__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.ed-opinion-card__copy { min-width: 0; display: block; }
.ed-opinion-card__copy strong { display: block; margin-bottom: 4px; color: var(--ed-navy); font-size: 12px; }
.ed-opinion-card__copy > span { display: block; font-family: var(--ed-serif); font-size: 18px; font-weight: 700; line-height: 1.16; }
.ed-opinion-card a:hover .ed-opinion-card__copy > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.ed-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, .72fr);
  gap: 32px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-lead-grid--solo { grid-template-columns: 1fr; }
.ed-lead-main { padding-right: 32px; border-right: 1px solid var(--ed-line); }
.ed-lead-grid--solo .ed-lead-main { padding: 4px 0 14px; border-right: 0; }
.ed-lead-main .ed-story__media { aspect-ratio: 16 / 9; margin-bottom: 22px; }
.ed-lead-main .ed-story__title { max-width: 930px; font-size: clamp(40px, 4.45vw, 60px); line-height: 1.035; }
.ed-lead-grid--solo .ed-story__excerpt { max-width: 760px; }
.ed-lead-grid--solo .ed-story--no-media { padding: 18px 0 4px; }
.ed-lead-side { display: flex; flex-direction: column; }
.ed-lead-side .ed-story { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--ed-line); }
.ed-lead-side .ed-story:last-child { margin-bottom: 0; border-bottom: 0; }
.ed-lead-side .ed-story__title { font-size: 23px; }

.ed-story { min-width: 0; }
.ed-story__link { color: inherit; text-decoration: none; }
.ed-story__media { margin: 0 0 14px; background: #e8e6e0; overflow: hidden; }
.ed-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ed-story__link:hover .ed-story__media img { transform: scale(1.015); }
.ed-story__body { min-width: 0; }
.ed-story__title {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
}
.ed-story__link:hover .ed-story__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ed-story__excerpt { margin: 12px 0 0; color: #47545c; font-family: var(--ed-serif); font-size: 18px; line-height: 1.42; }
.ed-story__meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 14px 0 0; color: var(--ed-muted); font-size: 11px; font-weight: 700; letter-spacing: .025em; }
.ed-story__meta time { border-left: 1px solid var(--ed-line); padding-left: 14px; }
.ed-story--standard .ed-story__media { aspect-ratio: 16 / 9; }
.ed-story--compact .ed-story__link { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; }
.ed-story--compact.ed-story--no-media .ed-story__link { grid-template-columns: 1fr; }
.ed-story--compact .ed-story__media { aspect-ratio: 4 / 3; margin: 0; }
.ed-story--compact .ed-story__title { font-size: 18px; line-height: 1.18; }

.ed-trending-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ed-trending-grid .ed-story { padding-right: 22px; border-right: 1px solid var(--ed-line); }
.ed-trending-grid .ed-story:last-child { padding-right: 0; border-right: 0; }
.ed-trending-grid .ed-story__title { font-size: 20px; }

.ed-category-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 28px; }
.ed-category-lead { padding-right: 28px; border-right: 1px solid var(--ed-line); }
.ed-category-list { display: flex; flex-direction: column; }
.ed-category-list .ed-story { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--ed-line); }
.ed-category-list .ed-story:last-child { border-bottom: 0; margin-bottom: 0; }

/* Category covers */
.ed-category-heading {
  margin: 2px 0 30px;
  padding: 0 0 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 4px solid var(--ed-navy);
}
.ed-category-heading .ed-kicker { margin-bottom: 5px; }
.ed-category-heading .ed-page-title { font-size: clamp(46px, 6vw, 72px); line-height: .96; }
.ed-category-heading__updated { margin: 0 0 2px; color: var(--ed-muted); font-size: 11px; font-weight: 700; text-align: right; }
.ed-category-heading__updated span { display: block; margin-bottom: 2px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ed-category-heading__updated time { color: #35434c; }

.ed-category-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .72fr);
  gap: 32px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-category-cover--solo { grid-template-columns: 1fr; }
.ed-category-cover__lead { padding-right: 32px; border-right: 1px solid var(--ed-line); }
.ed-category-cover--solo .ed-category-cover__lead { max-width: 980px; padding-right: 0; border-right: 0; }
.ed-category-cover__lead .ed-story__media { aspect-ratio: 16 / 9; margin-bottom: 22px; }
.ed-category-cover__lead .ed-story__title { max-width: 900px; font-size: clamp(38px, 4.35vw, 58px); line-height: 1.035; }
.ed-category-cover__lead .ed-story__excerpt { max-width: 780px; }
.ed-category-cover__secondary { display: flex; flex-direction: column; }
.ed-category-cover__secondary .ed-story { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--ed-line); }
.ed-category-cover__secondary .ed-story:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.ed-category-cover__secondary .ed-story--standard .ed-story__title { font-size: 24px; }
.ed-category-cover__secondary .ed-story--standard .ed-story__excerpt { display: none; }
.ed-category-cover__secondary .ed-story--compact .ed-story__title { font-size: 19px; }
.ed-category-cover + .ed-ad { margin-top: 34px; }

.ed-category-latest { margin-top: 52px; padding-top: 16px; border-top: 2px solid var(--ed-navy); }
.ed-ad + .ed-category-latest { margin-top: 42px; }
.ed-category-latest__header { margin-bottom: 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ed-category-latest__header .ed-kicker { margin-bottom: 5px; }
.ed-category-latest__header h2 { margin: 0; font-family: var(--ed-serif); font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.025em; line-height: 1; }
.ed-category-latest__header > p { margin: 0; color: var(--ed-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ed-pagination { margin-top: 42px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.ed-pagination > span { color: var(--ed-muted); font-size: 12px; font-weight: 700; }

.ed-columns { background: var(--ed-soft); padding: 28px; }
.ed-lead-grid + .ed-columns { margin-top: 28px; }
.ed-section.ed-columns { margin-top: 44px; }
.ed-columns__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ed-column-card { padding-left: 18px; border-left: 2px solid var(--ed-red); }
.ed-column-card a { text-decoration: none; }
.ed-column-card h3 { margin: 5px 0 7px; font-family: var(--ed-serif); font-size: 22px; font-weight: 700; line-height: 1.16; }
.ed-column-card p { margin: 0; color: var(--ed-muted); font-size: 12px; font-weight: 700; }

/* Listing pages */
.ed-listing { border-top: 1px solid var(--ed-line); }
.ed-listing .ed-story { padding: 24px 0; border-bottom: 1px solid var(--ed-line); }
.ed-listing .ed-story__link { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 26px; }
.ed-listing .ed-story__media { aspect-ratio: 16 / 9; margin: 0; }
.ed-listing .ed-story__title { font-size: 29px; }
.ed-empty { padding: 56px 0; color: var(--ed-muted); font-family: var(--ed-serif); font-size: 20px; text-align: center; }

/* Article */
.ed-article { max-width: 1080px; margin: 0 auto; }
.ed-article__header { max-width: 980px; padding: 20px 0 32px; }
.ed-article__title { margin: 8px 0 16px; font-family: var(--ed-serif); font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -.038em; line-height: 1.015; }
.ed-article__deck { max-width: 850px; margin: 0; color: #46525b; font-family: var(--ed-serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.42; }
.ed-article__byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ed-muted); font-size: 12px; }
.ed-article__byline strong { color: var(--ed-ink); }
.ed-article__hero { width: 100%; margin: 0 0 34px; }
.ed-article__hero img { width: 100%; max-height: 680px; object-fit: cover; }
.ed-article__hero figcaption { margin-top: 8px; color: var(--ed-muted); font-size: 11px; }
.ed-article__layout { display: grid; grid-template-columns: minmax(0, var(--ed-reading)) 240px; justify-content: center; gap: 54px; align-items: start; }
.ed-article__content { min-width: 0; font-family: var(--ed-serif); font-size: 19px; line-height: 1.72; }
.ed-article__content p { margin: 0 0 1.35em; }
.ed-article__content h2 { margin: 1.7em 0 .65em; font-size: 32px; line-height: 1.15; }
.ed-article__content h3 { margin: 1.55em 0 .6em; font-size: 25px; line-height: 1.2; }
.ed-article__content a { color: var(--ed-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ed-article__content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--ed-red); font-size: 24px; line-height: 1.45; }
.ed-article__content figure { margin: 1.8em 0; }
.ed-article__content img { width: 100%; height: auto; }
.ed-article__content figcaption { margin-top: 8px; color: var(--ed-muted); font-family: var(--ed-sans); font-size: 12px; }
.ed-article__rail { position: sticky; top: 24px; padding-top: 14px; border-top: 3px solid var(--ed-navy); }
.ed-article__rail h2 { margin: 0 0 14px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.ed-share { display: flex; flex-direction: column; gap: 8px; }
.ed-share a { padding: 9px 0; border-bottom: 1px solid var(--ed-line); color: var(--ed-navy); font-size: 12px; font-weight: 700; text-decoration: none; }
.ed-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ed-paywall { margin: 32px 0; padding: 34px; border-top: 5px solid var(--ed-red); background: var(--ed-soft); font-family: var(--ed-sans); text-align: center; }
.ed-paywall h3 { margin: 0 0 10px; font-family: var(--ed-serif); font-size: 30px; }
.ed-paywall > p:not(.ed-kicker) { max-width: 520px; margin: 0 auto 22px; color: var(--ed-muted); }
.ed-paywall__actions { max-width: 340px; margin: 0 auto; display: grid; gap: 10px; }
.ed-paywall__actions .ed-button { width: 100%; display: flex; align-items: center; justify-content: center; }
.article-content.teaser-mode { max-height: 540px; overflow: hidden; mask-image: linear-gradient(to bottom, #000 58%, transparent); }

/* Latest news and columnists */
.ed-latest { max-width: 900px; }
.ed-latest__group { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--ed-line); }
.ed-latest__group > h2 { margin: 4px 0 0; color: var(--ed-navy); font-size: 12px; letter-spacing: .075em; text-transform: uppercase; }
.ed-latest__item { border-bottom: 1px solid var(--ed-line); }
.ed-latest__item:last-child { border-bottom: 0; }
.ed-latest__item a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 15px 0; text-decoration: none; }
.ed-latest__item time { color: var(--ed-muted); font-size: 12px; font-weight: 700; }
.ed-latest__item h3 { margin: 0; font-family: var(--ed-serif); font-size: 22px; line-height: 1.17; }
.ed-latest__item a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ed-live { display: inline-block; margin-right: 8px; padding: 2px 5px; background: var(--ed-red); color: white; font-family: var(--ed-sans); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 3px; }

.ed-columnists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ed-columnist-profile { padding: 24px; border: 1px solid var(--ed-line); background: white; }
.ed-columnist-profile__header { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.ed-columnist-profile__avatar,
.ed-column-header__avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--ed-soft); color: var(--ed-navy); font-family: var(--ed-serif); font-weight: 700; }
.ed-columnist-profile__avatar { width: 68px; height: 68px; font-size: 20px; }
.ed-columnist-profile__avatar img,
.ed-column-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ed-columnist-profile h2 { margin: 0; font-family: var(--ed-serif); font-size: 23px; line-height: 1.1; }
.ed-columnist-profile > p { color: var(--ed-muted); font-family: var(--ed-serif); font-size: 15px; }
.ed-columnist-profile__latest { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ed-line); text-decoration: none; }
.ed-columnist-profile__latest span { display: block; margin-bottom: 6px; color: var(--ed-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ed-columnist-profile__latest strong { display: block; font-family: var(--ed-serif); font-size: 18px; line-height: 1.2; }
.ed-columnist-profile__latest:hover strong { text-decoration: underline; }
.ed-columnist-profile__empty { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ed-line); }
.ed-column-header { max-width: 900px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 30px; margin: 10px 0 42px; }
.ed-column-header__avatar { width: 150px; height: 150px; font-size: 40px; }

/* Ads, newsletter, commercial and account surfaces */
.ed-ad { min-height: 122px; margin: 32px 0; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f5f4f1; overflow: hidden; contain: layout paint; }
.ed-ad__label { margin-bottom: 8px; color: #7b7f82; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.ed-newsletter { margin-top: 48px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 38px; background: var(--ed-navy); color: white; }
.ed-newsletter h2 { margin: 0 0 8px; font-family: var(--ed-serif); font-size: 30px; line-height: 1.1; }
.ed-newsletter p { margin: 0; color: #d9e3e9; }
.ed-newsletter .ed-kicker { color: #f0aaad; margin-bottom: 8px; }
.ed-newsletter form { display: flex; }
.ed-newsletter input { width: 100%; min-height: 48px; border: 0; padding: 0 15px; background: white; color: var(--ed-ink); }
.ed-newsletter button,
.ed-button { min-height: 48px; padding: 0 20px; border: 0; background: var(--ed-red); color: white; font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.ed-newsletter button:hover,
.ed-button:hover { background: #812025; }
.ed-button--secondary { background: var(--ed-navy); }

.ed-commercial-header { max-width: 760px; margin: 20px auto 36px; text-align: center; }
.ed-plans { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ed-plan { padding: 32px; border: 1px solid var(--ed-line); background: white; }
.ed-plan--featured { border-top: 5px solid var(--ed-red); }
.ed-plan h2 { margin: 0 0 18px; font-family: var(--ed-serif); font-size: 26px; }
.ed-plan__price { margin: 0 0 24px; font-family: var(--ed-serif); font-size: 48px; line-height: 1; }
.ed-plan__price small { color: var(--ed-muted); font-family: var(--ed-sans); font-size: 14px; }
.ed-plan ul { margin: 0 0 28px; padding-left: 20px; }
.ed-plan li { margin: 9px 0; }
.ed-plan .ed-button { display: flex; align-items: center; justify-content: center; }

.ed-account { max-width: 700px; margin: 12px auto; }
.ed-panel { padding: 28px; border: 1px solid var(--ed-line); background: white; }
.ed-panel + .ed-panel { margin-top: 20px; }
.ed-panel h2 { margin: 0 0 20px; font-family: var(--ed-serif); font-size: 26px; }
.ed-field { margin-bottom: 18px; }
.ed-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.ed-field input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #afb4b7; background: white; }

.ed-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Footer */
.ed-footer { padding: 52px 0 24px; background: var(--ed-navy-dark); color: white; }
.ed-footer__main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; padding-bottom: 38px; }
.ed-footer__brand img {
  width: 132px;
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.ed-footer__brand p { max-width: 440px; color: #c9d5dc; font-family: var(--ed-serif); font-size: 16px; }
.ed-footer__column { display: flex; flex-direction: column; gap: 9px; }
.ed-footer__column h2 { margin: 0 0 8px; font-size: 11px; letter-spacing: .075em; text-transform: uppercase; }
.ed-footer__column a { color: #dce5ea; font-size: 13px; text-decoration: none; }
.ed-footer__column a:hover { color: white; text-decoration: underline; }
.ed-footer__legal { padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.18); color: #aebfc9; font-size: 11px; }
.ed-footer__legal p { margin: 0; }

@media (max-width: 900px) {
  .ed-lead-grid,
  .ed-category-grid { grid-template-columns: 1fr; }
  .ed-lead-main,
  .ed-category-lead { padding-right: 0; padding-bottom: 26px; border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .ed-category-cover { grid-template-columns: 1fr; }
  .ed-category-cover__lead { padding-right: 0; padding-bottom: 28px; border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .ed-category-cover__secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ed-category-cover__secondary .ed-story { padding: 0 18px 0 0; margin: 0; border-right: 1px solid var(--ed-line); border-bottom: 0; }
  .ed-category-cover__secondary .ed-story:last-child { padding-right: 0; border-right: 0; }
  .ed-category-cover__secondary .ed-story--compact .ed-story__link { display: block; }
  .ed-category-cover__secondary .ed-story--compact .ed-story__media { margin-bottom: 12px; }
  .ed-lead-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ed-lead-side .ed-story { padding: 0 18px 0 0; margin: 0; border-right: 1px solid var(--ed-line); border-bottom: 0; }
  .ed-trending-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-trending-grid .ed-story:nth-child(2) { border-right: 0; padding-right: 0; }
  .ed-columns__grid { grid-template-columns: 1fr 1fr; }
  .ed-columnists-grid { grid-template-columns: 1fr 1fr; }
  .ed-opinion-rail__grid { gap: 18px; }
  .ed-opinion-card { padding-right: 18px; }
  .ed-opinion-card a { grid-template-columns: 50px minmax(0, 1fr); gap: 11px; }
  .ed-opinion-card__avatar { width: 50px; height: 50px; }
  .ed-opinion-card__copy > span { font-size: 16px; }
  .ed-article__layout { grid-template-columns: minmax(0, var(--ed-reading)); }
  .ed-article__rail { display: none; }
}

@media (max-width: 680px) {
  .ed-container { width: min(calc(100% - 28px), var(--ed-container)); }
  .ed-utility { display: none; }
  .ed-masthead { min-height: 70px; grid-template-columns: 40px 1fr auto; }
  .ed-brand { width: 136px; justify-self: center; }
  .ed-brand img { height: 46px; }
  .ed-menu-button { width: 36px; }
  .ed-menu-button__label,
  .ed-account-link { display: none; }
  .ed-masthead__actions { gap: 0; }
  .ed-subscribe { min-width: auto; min-height: 36px; padding: 0 12px; font-size: 11px; }
  .ed-nav { display: none; border-bottom-width: 2px; }
  .ed-nav.is-open { display: block; }
  .ed-nav__inner { width: 100%; min-height: 0; padding: 8px 14px 16px; display: block; }
  .ed-nav__latest { min-height: 42px; padding: 0; }
  .ed-nav__list { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .ed-nav__list a { min-height: 42px; padding: 0 10px 0 0; border-top: 1px solid var(--ed-line); white-space: normal; }
  .ed-support { display: none; }
  .ed-menu-drawer { width: min(350px, calc(100vw - 28px)); }
  .ed-menu-drawer__header { min-height: 82px; padding: 14px 18px; }
  .ed-menu-drawer__brand { width: 126px; }
  .ed-menu-drawer__brand img { height: 46px; }
  .ed-menu-drawer__body { padding: 22px 18px 26px; }
  .ed-menu-drawer__list a { min-height: 50px; font-size: 20px; }
  .ed-menu-drawer__services { margin-top: 24px; padding-top: 20px; }
  .ed-menu-drawer__footer { padding: 16px 18px 20px; }
  .ed-main { padding-top: 20px; padding-bottom: 44px; }
  .ed-category-heading { margin-bottom: 22px; padding-bottom: 11px; align-items: flex-end; border-bottom-width: 3px; }
  .ed-category-heading .ed-page-title { font-size: 42px; }
  .ed-category-heading__updated { max-width: 110px; font-size: 10px; }
  .ed-category-heading__updated span { display: none; }
  .ed-category-cover { gap: 20px; padding-bottom: 24px; }
  .ed-category-cover__lead { padding-bottom: 24px; }
  .ed-category-cover__lead .ed-story__title { font-size: 36px; }
  .ed-category-cover__secondary { display: block; }
  .ed-category-cover__secondary .ed-story,
  .ed-category-cover__secondary .ed-story:last-child { padding: 0 0 18px; margin: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .ed-category-cover__secondary .ed-story:last-child { margin-bottom: 0; }
  .ed-category-cover__secondary .ed-story__link,
  .ed-category-cover__secondary .ed-story--compact .ed-story__link { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .ed-category-cover__secondary .ed-story--no-media .ed-story__link { grid-template-columns: 1fr; }
  .ed-category-cover__secondary .ed-story__media,
  .ed-category-cover__secondary .ed-story--compact .ed-story__media { margin: 0; aspect-ratio: 4 / 3; }
  .ed-category-cover__secondary .ed-story--standard .ed-story__title,
  .ed-category-cover__secondary .ed-story--compact .ed-story__title { font-size: 18px; }
  .ed-category-latest { margin-top: 38px; padding-top: 13px; }
  .ed-ad + .ed-category-latest { margin-top: 34px; }
  .ed-category-latest__header { align-items: flex-end; }
  .ed-category-latest__header h2 { font-size: 30px; }
  .ed-opinion-rail { margin: 0 0 24px; padding-top: 12px; overflow: hidden; }
  .ed-opinion-rail__grid { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .ed-opinion-card { min-width: 82%; padding-right: 18px; margin-right: 18px; scroll-snap-align: start; }
  .ed-opinion-card:last-child { margin-right: 0; }
  .ed-lead-grid { gap: 20px; }
  .ed-lead-main .ed-story__title { font-size: 35px; }
  .ed-lead-side { display: block; }
  .ed-lead-side .ed-story { padding: 0 0 18px; margin: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .ed-lead-side .ed-story:last-child { border-bottom: 0; }
  .ed-story__title { font-size: 23px; }
  .ed-story__excerpt { font-size: 16px; }
  .ed-trending-grid { grid-template-columns: 1fr; gap: 0; }
  .ed-trending-grid .ed-story { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .ed-category-list .ed-story__link,
  .ed-trending-grid .ed-story__link { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
  .ed-category-list .ed-story__media,
  .ed-trending-grid .ed-story__media { margin: 0; aspect-ratio: 4 / 3; }
  .ed-category-list .ed-story__title,
  .ed-trending-grid .ed-story__title { font-size: 18px; }
  .ed-columns { margin-inline: -14px; padding: 24px 14px; }
  .ed-columns__grid { grid-template-columns: 1fr; }
  .ed-listing .ed-story__link { grid-template-columns: 124px minmax(0, 1fr); gap: 14px; }
  .ed-listing .ed-story__title { font-size: 20px; }
  .ed-listing .ed-story__excerpt { display: none; }
  .ed-latest__group { grid-template-columns: 1fr; gap: 4px; }
  .ed-latest__item a { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .ed-latest__item h3 { font-size: 19px; }
  .ed-columnists-grid { grid-template-columns: 1fr; }
  .ed-column-header { grid-template-columns: 86px 1fr; gap: 16px; }
  .ed-column-header__avatar { width: 86px; height: 86px; font-size: 26px; }
  .ed-column-header .ed-page-title { font-size: 36px; }
  .ed-column-header .ed-page-description { font-size: 16px; }
  .ed-page-title { font-size: 42px; }
  .ed-article__header { padding-top: 8px; }
  .ed-article__title { font-size: 39px; }
  .ed-article__deck { font-size: 19px; }
  .ed-article__hero { width: calc(100% + 28px); margin-left: -14px; }
  .ed-article__content { font-size: 18px; line-height: 1.68; }
  .ed-related-grid { grid-template-columns: 1fr; }
  .ed-newsletter { margin-inline: -14px; padding: 25px 18px; grid-template-columns: 1fr; gap: 20px; }
  .ed-newsletter form { display: grid; gap: 8px; }
  .ed-plans { grid-template-columns: 1fr; }
  .ed-panel { padding: 22px 18px; }
  .ed-footer__main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ed-footer__brand { grid-column: 1 / -1; }
  .ed-footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
