/* ==========================================================================
   Estates of Credit Ridge — Editorial (Market Updates + Blog/Journal)
   Namespace: .ecr-ed-* (shared) and .ecr-mu-* (market-update specifics)
   ========================================================================== */

:root {
  --ecr-ed-forest: #2C3E2D;
  --ecr-ed-gold:   #B08D2E;
  --ecr-ed-gold-text: #7f6418; /* gold for small text on light backgrounds (AA) */
  --ecr-ed-cream:  #F7F3EC;
  --ecr-ed-slate:  #4A5568;
  --ecr-ed-ink:    #1f2a22;
  --ecr-ed-border: #e5ddcf;
  --ecr-ed-paper:  #fffdf8;
  --ecr-ed-nav:    64px; /* fixed site header */
}
@media (max-width: 768px) { :root { --ecr-ed-nav: 72px; } }

.ecr-ed {
  background: var(--ecr-ed-cream);
  color: var(--ecr-ed-ink);
  font-family: 'Manrope', Arial, sans-serif;
  padding: calc(var(--ecr-ed-nav) + 40px) 20px 80px;
  min-height: 70vh;
}

/* --------------------------------------------------------------------------
   Single article (market update + blog post)
   -------------------------------------------------------------------------- */
.ecr-ed__article {
  width: min(760px, 100%);
  margin: 0 auto;
}

.ecr-ed__eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ecr-ed-gold-text);
}
.ecr-ed__eyebrow a { color: inherit; text-decoration: none; }
.ecr-ed__eyebrow a:hover { text-decoration: underline; }

.ecr-ed__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', 'Literata', Georgia, serif;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ecr-ed-forest);
}

.ecr-ed__meta {
  margin: 0 0 28px;
  font-size: 0.86rem;
  color: var(--ecr-ed-slate);
}
.ecr-ed__meta a { color: var(--ecr-ed-forest); }

.ecr-ed__hero {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}
.ecr-ed__hero img { width: 100%; height: auto; display: block; }

/* Prose */
.ecr-ed__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a3a30;
}
.ecr-ed__body > * + * { margin-top: 1.1em; }
.ecr-ed__body h2 {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ecr-ed-forest);
  margin-top: 1.8em;
}
.ecr-ed__body h3 { font-size: 1.2rem; font-weight: 700; color: var(--ecr-ed-forest); margin-top: 1.6em; }
.ecr-ed__body a { color: var(--ecr-ed-gold-text); text-underline-offset: 3px; }
.ecr-ed__body ul, .ecr-ed__body ol { padding-left: 1.4em; }
.ecr-ed__body li + li { margin-top: 0.4em; }
.ecr-ed__body img { max-width: 100%; height: auto; border-radius: 10px; }
.ecr-ed__body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--ecr-ed-gold);
  font-style: italic;
  color: var(--ecr-ed-slate);
}

.ecr-ed__h2 {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ecr-ed-forest);
  margin: 44px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ecr-ed-border);
}

/* Buttons */
.ecr-ed__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: var(--ecr-ed-forest);
  color: #fff;
  border: 1px solid var(--ecr-ed-forest);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.ecr-ed__btn:hover { background: #24331f; transform: translateY(-1px); color: #fff; }
.ecr-ed__btn--ghost { background: transparent; color: var(--ecr-ed-forest); }
.ecr-ed__btn--ghost:hover { background: rgba(44,62,45,0.06); color: var(--ecr-ed-forest); }

/* Agent CTA block */
.ecr-ed__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 44px 0 0;
  padding: 22px 24px;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-left: 3px solid var(--ecr-ed-gold);
  border-radius: 10px;
}
.ecr-ed__cta-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ecr-ed__cta-lead { margin: 0 0 4px; font-weight: 700; color: var(--ecr-ed-forest); }
.ecr-ed__cta-sub { margin: 0; font-size: 0.85rem; color: var(--ecr-ed-slate); }
.ecr-ed__cta-actions { display: flex; gap: 10px; margin-left: auto; }
.ecr-ed__cta > div:first-of-type { flex: 1 1 220px; }

.ecr-ed__post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--ecr-ed-border);
  font-size: 0.9rem;
}
.ecr-ed__post-nav a { color: var(--ecr-ed-forest); text-decoration: none; font-weight: 600; }
.ecr-ed__post-nav-next { margin-left: auto; text-align: right; }

.ecr-ed__tags { margin-top: 28px; font-size: 0.82rem; }
.ecr-ed__tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 11px;
  background: rgba(44,62,45,0.06);
  border-radius: 20px;
  color: var(--ecr-ed-slate);
  text-decoration: none;
}

/* "More updates" footer */
.ecr-ed__more { width: min(900px, 100%); margin: 56px auto 0; }
.ecr-ed__more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ecr-ed__more-card {
  display: block;
  padding: 16px 18px;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ecr-ed-forest);
  transition: border-color 0.15s, transform 0.15s;
}
.ecr-ed__more-card:hover { border-color: var(--ecr-ed-gold); transform: translateY(-2px); }
.ecr-ed__more-date { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ecr-ed-gold-text); margin-bottom: 6px; }
.ecr-ed__more-card strong { font-size: 0.95rem; font-weight: 600; line-height: 1.3; }

/* --------------------------------------------------------------------------
   Archive / index grid
   -------------------------------------------------------------------------- */
.ecr-ed__archive-head { width: min(900px, 100%); margin: 0 auto 40px; text-align: center; }
.ecr-ed__archive-title {
  margin: 6px 0 14px;
  font-family: 'Playfair Display', 'Literata', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--ecr-ed-forest);
}
.ecr-ed__archive-intro { max-width: 60ch; margin: 0 auto 18px; font-size: 1.02rem; line-height: 1.6; color: var(--ecr-ed-slate); }

.ecr-ed__grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.ecr-ed__card {
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.ecr-ed__card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(35,49,40,0.10); }
.ecr-ed__card-link { display: block; text-decoration: none; color: inherit; }
.ecr-ed__card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ecr-ed-forest); }
.ecr-ed__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecr-ed__card-media--placeholder { display: flex; align-items: center; justify-content: center; }
.ecr-ed__card-media--placeholder .material-symbols-outlined { font-size: 46px; color: rgba(247,243,236,0.5); }
.ecr-ed__card-body { padding: 20px 22px 24px; }
.ecr-ed__card-date { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ecr-ed-gold-text); }
.ecr-ed__card-title { margin: 8px 0 10px; font-family: 'Literata', Georgia, serif; font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--ecr-ed-forest); }
.ecr-ed__card-excerpt { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.6; color: var(--ecr-ed-slate); }
.ecr-ed__card-more { font-size: 0.82rem; font-weight: 700; color: var(--ecr-ed-gold-text); }

.ecr-ed__pagination { width: min(1100px, 100%); margin: 40px auto 0; text-align: center; }
.ecr-ed__pagination .page-numbers {
  display: inline-block;
  margin: 0 3px;
  padding: 8px 14px;
  border: 1px solid var(--ecr-ed-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ecr-ed-forest);
  font-weight: 600;
}
.ecr-ed__pagination .page-numbers.current { background: var(--ecr-ed-forest); color: #fff; border-color: var(--ecr-ed-forest); }
.ecr-ed__empty { width: min(700px, 100%); margin: 0 auto; text-align: center; color: var(--ecr-ed-slate); font-size: 1.05rem; }
.ecr-ed__empty a { color: var(--ecr-ed-forest); }
.ecr-ed__empty-lead { margin: 0 0 24px; }
.ecr-ed__empty-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.ecr-ed__empty-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--ecr-ed-border);
  border-radius: 8px;
  background: var(--ecr-ed-paper);
  color: var(--ecr-ed-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ecr-ed__empty-links a:hover,
.ecr-ed__empty-links a:focus-visible { border-color: var(--ecr-ed-gold); transform: translateY(-2px); }
.ecr-ed__empty-links strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; font-weight: 600; color: var(--ecr-ed-forest); }
.ecr-ed__empty-links span { font-size: 0.9rem; line-height: 1.5; color: var(--ecr-ed-slate); }
@media (prefers-reduced-motion: reduce) { .ecr-ed__empty-links a { transition: none; } .ecr-ed__empty-links a:hover { transform: none; } }

/* --------------------------------------------------------------------------
   Market-update specifics
   -------------------------------------------------------------------------- */
.ecr-mu__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
  padding: 22px;
  background: var(--ecr-ed-forest);
  border-radius: 12px;
}
.ecr-mu__stat { display: flex; flex-direction: column; gap: 4px; }
.ecr-mu__stat-val { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.05; }
.ecr-mu__stat-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(247,243,236,0.66); }
.ecr-mu__stats-note { margin: 0 0 4px; font-size: 0.8rem; color: var(--ecr-ed-slate); }
.ecr-mu__stats-note a { color: var(--ecr-ed-forest); font-weight: 600; }

.ecr-mu__sold { margin-top: 12px; }
.ecr-mu__sold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.ecr-mu__card {
  display: block;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ecr-mu__card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(35,49,40,0.10); }
.ecr-mu__card--nolink { cursor: default; }
.ecr-mu__card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ecr-ed-forest); overflow: hidden; }
.ecr-mu__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecr-mu__card-media .material-symbols-outlined { position: absolute; inset: 0; margin: auto; width: 1em; height: 1em; font-size: 40px; color: rgba(247,243,236,0.5); }
.ecr-mu__card-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  background: var(--ecr-ed-gold-text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
}
.ecr-mu__card-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.ecr-mu__card-price { font-size: 1.1rem; font-weight: 800; color: var(--ecr-ed-forest); }
.ecr-mu__card-addr { font-size: 0.88rem; color: var(--ecr-ed-ink); }
.ecr-mu__card-facts { font-size: 0.8rem; color: var(--ecr-ed-slate); }
.ecr-mu__card-broker { font-size: 0.72rem; color: #8a8d83; margin-top: 4px; }
.ecr-mu__card-badge--forsale { background: var(--ecr-ed-forest); }

/* Live "For Sale Now" section reuses the sold-card grid/card styling. */
.ecr-mu__forsale { margin-top: 30px; }
.ecr-mu__forsale-note { margin: 10px 0 4px; font-size: 0.8rem; color: var(--ecr-ed-slate); }
.ecr-mu__forsale-note a { color: var(--ecr-ed-forest); font-weight: 600; }

/* Gated sold teasers (guests): real photo blurred behind a lock, no data. */
.ecr-mu__sold-grid--gated { margin-bottom: 16px; }
.ecr-mu__card--gated { cursor: default; }
.ecr-mu__card-blur {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: blur(14px) saturate(0.9);
  transform: scale(1.15);
}
.ecr-mu__card-badge--locked {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ecr-ed-forest);
}
.ecr-mu__card-badge--locked .material-symbols-outlined { font-size: 13px; line-height: 1; }
.ecr-mu__redact { display: block; height: 12px; border-radius: 4px; background: var(--ecr-ed-border); opacity: 0.75; }
.ecr-mu__redact--short { width: 55%; margin-top: 7px; height: 10px; }

.ecr-mu__gate {
  text-align: center;
  padding: 34px 26px;
  background: var(--ecr-ed-paper);
  border: 1px dashed var(--ecr-ed-border);
  border-radius: 12px;
}
.ecr-mu__gate .material-symbols-outlined { font-size: 34px; color: var(--ecr-ed-gold); }
.ecr-mu__gate p { max-width: 52ch; margin: 10px auto; color: var(--ecr-ed-slate); line-height: 1.6; }
.ecr-mu__gate strong { color: var(--ecr-ed-forest); }
.ecr-mu__gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.ecr-legal { margin-top: 18px; font-size: 0.72rem; line-height: 1.5; color: #8a8d83; }

@media (max-width: 600px) {
  .ecr-ed { padding-top: calc(var(--ecr-ed-nav) + 24px); }
  .ecr-ed__cta-actions { margin-left: 0; width: 100%; }
  .ecr-mu__stat-val { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   Journal: magazine index, topic chips, cards, byline, TOC, related
   -------------------------------------------------------------------------- */
.ecr-ed__topic {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ecr-ed-gold-text);
}
.ecr-ed__card-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ecr-ed-slate);
}
.ecr-ed__card-meta .material-symbols-outlined { font-size: 16px; }
.ecr-ed--journal .ecr-ed__card-title { margin-top: 6px; }
.ecr-ed--journal .ecr-ed__card { display: flex; flex-direction: column; }
.ecr-ed--journal .ecr-ed__card-link { display: flex; flex-direction: column; height: 100%; }
.ecr-ed--journal .ecr-ed__card-body { display: flex; flex-direction: column; flex: 1; }
.ecr-ed--journal .ecr-ed__card-meta { margin-top: auto; }

/* Topic chips */
.ecr-ed__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.ecr-ed__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ecr-ed-border);
  border-radius: 999px;
  background: var(--ecr-ed-paper);
  color: var(--ecr-ed-forest);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.ecr-ed__chip:hover, .ecr-ed__chip:focus-visible { border-color: var(--ecr-ed-gold); }
.ecr-ed__chip.is-active { background: var(--ecr-ed-forest); border-color: var(--ecr-ed-forest); color: #fff; }
.ecr-ed__chip-count { font-size: 0.75rem; font-weight: 600; opacity: 0.7; }

/* Featured post */
.ecr-ed__featured {
  width: min(1100px, 100%);
  margin: 0 auto 48px;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.ecr-ed__featured:hover { box-shadow: 0 22px 50px rgba(35,49,40,0.12); }
.ecr-ed__featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
}
.ecr-ed__featured-media { min-height: 320px; background: var(--ecr-ed-forest); }
.ecr-ed__featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecr-ed__featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 44px);
}
.ecr-ed__featured-flag {
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--ecr-ed-forest);
  color: #fff;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ecr-ed__featured-title {
  margin: 0;
  font-family: 'Playfair Display', 'Literata', Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ecr-ed-forest);
}
.ecr-ed__featured-excerpt { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--ecr-ed-slate); }
.ecr-ed__featured-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ecr-ed-gold-text);
}
.ecr-ed__featured-more .material-symbols-outlined { font-size: 18px; transition: transform 0.15s; }
.ecr-ed__featured:hover .ecr-ed__featured-more .material-symbols-outlined { transform: translateX(3px); }

/* Grid + side panels */
.ecr-ed__layout {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.ecr-ed__section-title {
  margin: 0 0 18px;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ecr-ed-forest);
}
.ecr-ed__grid--journal,
.ecr-ed__layout .ecr-ed__grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.ecr-ed__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--ecr-ed-nav) + 20px); }
.ecr-ed__side-card {
  padding: 22px;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 12px;
}
.ecr-ed__side-card p { margin: 0 0 16px; font-size: 0.9rem; line-height: 1.55; color: var(--ecr-ed-slate); }
.ecr-ed__side-icon { font-size: 30px; color: var(--ecr-ed-gold); }
.ecr-ed__side-title { margin: 6px 0 8px; font-family: 'Literata', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: var(--ecr-ed-forest); }
.ecr-ed__side-card--agent { border-left: 3px solid var(--ecr-ed-gold); }
.ecr-ed__side-card--agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.ecr-ed__side-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ecr-ed-forest);
  text-decoration: none;
}
.ecr-ed__side-phone .material-symbols-outlined { font-size: 18px; }

/* Explore the guides strip */
.ecr-ed__guides { width: min(1100px, 100%); margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--ecr-ed-border); }
.ecr-ed__guides-title { margin: 0 0 16px; font-family: 'Literata', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: var(--ecr-ed-forest); }
.ecr-ed__guides-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecr-ed__guides-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  height: 100%;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 10px;
  color: var(--ecr-ed-ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.ecr-ed__guides-list a:hover, .ecr-ed__guides-list a:focus-visible { border-color: var(--ecr-ed-gold); }
.ecr-ed__guides-list .material-symbols-outlined { grid-row: span 2; font-size: 24px; color: var(--ecr-ed-gold); }
.ecr-ed__guides-list strong { font-size: 0.95rem; color: var(--ecr-ed-forest); }
.ecr-ed__guides-list span:last-child { font-size: 0.8rem; color: var(--ecr-ed-slate); }

/* Single post: dek, byline, table of contents, related */
.ecr-ed__dek { margin: 0 0 22px; font-size: 1.12rem; line-height: 1.6; color: var(--ecr-ed-slate); }
.ecr-ed__byline { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.ecr-ed__byline-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ecr-ed__byline-text p { margin: 0; }
.ecr-ed__byline-name { font-size: 0.95rem; font-weight: 700; color: var(--ecr-ed-forest); }
.ecr-ed__byline-name a { color: inherit; }
.ecr-ed__byline-role { font-size: 0.82rem; color: var(--ecr-ed-slate); }
.ecr-ed__byline-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px !important; font-size: 0.8rem; color: var(--ecr-ed-slate); }

.ecr-ed__toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--ecr-ed-paper);
  border: 1px solid var(--ecr-ed-border);
  border-radius: 10px;
}
.ecr-ed__toc summary {
  cursor: pointer;
  min-height: 32px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ecr-ed-gold-text);
}
.ecr-ed__toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 2 240px; column-gap: 28px; }
.ecr-ed__toc li { margin: 0 0 6px; break-inside: avoid; font-size: 0.92rem; line-height: 1.45; }
.ecr-ed__toc a { color: var(--ecr-ed-forest); text-underline-offset: 3px; }
.ecr-ed__body h2[id] { scroll-margin-top: calc(var(--ecr-ed-nav) + 20px); }

.ecr-ed__body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.ecr-ed__body th, .ecr-ed__body td { padding: 10px 12px; border-bottom: 1px solid var(--ecr-ed-border); text-align: left; vertical-align: top; }
.ecr-ed__body th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ecr-ed-forest); background: rgba(44,62,45,0.05); }

.ecr-ed__related { width: min(1100px, 100%); margin: 56px auto 0; }
.ecr-ed__grid--related { width: 100%; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ecr-ed__related-all { margin: 20px 0 0; text-align: right; }
.ecr-ed__related-all a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ecr-ed-forest); text-decoration: none; }
.ecr-ed__related-all .material-symbols-outlined { font-size: 18px; }

@media (max-width: 960px) {
  .ecr-ed__layout { grid-template-columns: 1fr; }
  .ecr-ed__side { position: static; flex-direction: row; flex-wrap: wrap; }
  .ecr-ed__side-card { flex: 1 1 260px; }
  .ecr-ed__guides-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ecr-ed__featured-link { grid-template-columns: 1fr; }
  .ecr-ed__featured-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ecr-ed__chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 22px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
  .ecr-ed__chip { flex-shrink: 0; }
  .ecr-ed__body table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .ecr-ed__guides-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ecr-ed__featured, .ecr-ed__chip, .ecr-ed__guides-list a, .ecr-ed__featured-more .material-symbols-outlined { transition: none; }
}

/* Harpreet's take */
.ecr-take { margin: 28px 0; padding: 18px 22px; border-left: 3px solid #b08d2e; background: #f7f2ea; border-radius: 0 8px 8px 0; }
.ecr-take p { margin: 0 0 8px; font-family: 'Literata', Georgia, serif; font-size: 1.08rem; line-height: 1.6; color: #2c3e2d; }
.ecr-take cite { font-style: normal; font-size: 0.82rem; font-weight: 700; color: #7f6418; }
