/* ??? Editorial article layout (mock-inspired; site nav/footer kept) ??? */
body.article-editorial {
  --ed-paper: #f6faf7;
  --ed-ink: #26362d;
  --ed-muted: #718078;
  --ed-soft: #e5f5ea;
  --ed-accent: #218b50;
  --ed-accent-deep: #124d2c;
  --ed-border: #e1ebe5;
  --ed-card-shadow: 0 20px 60px rgba(17, 80, 42, 0.08);
  background: var(--ed-paper);
  color: var(--ed-ink);
}

.article-page--editorial {
  padding: 0 0 3rem;
  background: transparent;
}

.article-ed-header {
  max-width: 1050px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
}

.article-ed-header[hidden] {
  display: none !important;
}

.article-ed-header .article-ed-category {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  margin-bottom: 1.25rem;
  background: var(--ed-soft);
  color: var(--ed-accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-ed-header h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ed-accent-deep);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.article-ed-header .subtitle {
  max-width: 700px;
  margin: 1.35rem auto 1rem;
  color: var(--ed-muted);
  font-size: clamp(1.02rem, 2vw, 1.125rem);
  line-height: 1.65;
}

.article-ed-header .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.75rem;
  color: #87948c;
  font-size: 0.84rem;
}

.article-ed-header .meta .article-meta-author {
  color: inherit;
  font-weight: 500;
}

.article-ed-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.article-ed-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2.75rem;
  align-items: start;
}

.article-ed-wrapper--solo {
  grid-template-columns: minmax(0, 44rem);
  justify-content: center;
}

.article-ed-card {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--ed-card-shadow);
}

.article-ed-card .hero-image {
  width: 100%;
  height: clamp(14rem, 42vw, 29rem);
  overflow: hidden;
  background: #edf5ef;
}

.article-ed-card .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.article-ed-card .hero-image:hover img {
  transform: scale(1.03);
}

.article-ed-card .locale-stub-banner {
  margin: 1.25rem 1.75rem 0;
}

.article-ed-card .continue-reading-bar {
  margin: 1rem 1.75rem 0;
}

.article-page--editorial .article-body {
  padding: 2.75rem clamp(1.35rem, 4vw, 3.75rem) 2.5rem;
  margin: 0;
  color: #536159;
  font-size: 1.06rem;
  line-height: 1.8;
}

.article-page--editorial .article-body > *:first-child {
  margin-top: 0;
}

.article-page--editorial .article-body p {
  margin: 0 0 1.35rem;
}

.article-page--editorial .article-body .intro {
  color: #315540;
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: 2rem;
}

.article-page--editorial .article-body h2,
.article-page--editorial .article-body h2.article-subhead {
  position: relative;
  color: #145a32;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.3;
  margin: 2.6rem 0 1.1rem;
  padding-inline-start: 1.1rem;
  border: 0;
}

.article-page--editorial .article-body h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.3rem;
  width: 4px;
  height: 80%;
  border-radius: 10px;
  background: #2cab61;
}

.article-page--editorial .article-body h3,
.article-page--editorial .article-body h3.article-subhead {
  color: #145a32;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.85rem;
}

.article-page--editorial .article-body .pull-quote,
.article-page--editorial .article-body .quote,
.article-page--editorial .article-body blockquote {
  position: relative;
  margin: 2.4rem 0;
  padding: 2.1rem 2.2rem 1.6rem;
  background: #eff8f2;
  border: 0;
  border-inline-start: 5px solid #27a85d;
  border-radius: 0 1.1rem 1.1rem 0;
  color: #175a34;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.8;
  box-shadow: none;
}

html[dir='rtl'] .article-page--editorial .article-body .pull-quote,
html[dir='rtl'] .article-page--editorial .article-body .quote,
html[dir='rtl'] .article-page--editorial .article-body blockquote {
  border-radius: 1.1rem 0 0 1.1rem;
}

.article-page--editorial .article-body .quote-mark {
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 1rem;
  color: #b3dfc1;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  pointer-events: none;
}

.article-page--editorial .article-body .pull-quote small,
.article-page--editorial .article-body .quote small {
  display: block;
  margin-top: 0.9rem;
  color: #718278;
  font-family: var(--font-body, inherit);
  font-size: 0.75rem;
  font-weight: 600;
}

.article-page--editorial .article-body .article-second-wrap,
.article-page--editorial .article-body .content-image {
  margin: 2.2rem 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #edf5ef;
  box-shadow: none;
  aspect-ratio: auto;
}

.article-page--editorial .article-body .article-second-wrap .article-second,
.article-page--editorial .article-body .content-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.article-page--editorial .article-ending {
  margin: 0;
  padding: 0 clamp(1.35rem, 4vw, 3.75rem) 3.5rem;
  text-align: center;
}

.article-page--editorial .article-ending .line {
  display: none;
}

.article-page--editorial .article-ending p {
  max-width: 600px;
  margin: 1rem auto;
  color: #42604e;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
}

.article-ed-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.article-ed-sidebar .sidebar-card {
  background: #fff;
  padding: 1.45rem;
  border: 1px solid var(--ed-border);
  border-radius: 1.2rem;
  box-shadow: 0 12px 35px rgba(17, 80, 42, 0.06);
}

.article-ed-sidebar .sidebar-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #2a9e59;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-ed-sidebar .sidebar-card h3 {
  color: #145a32;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.article-ed-sidebar .sidebar-card > p {
  color: var(--ed-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.article-ed-sidebar .related {
  display: flex;
  flex-direction: column;
}

.article-ed-sidebar .related a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #edf2ee;
  color: #45574c;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

.article-ed-sidebar .related a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-ed-sidebar .related a:hover {
  color: #249753;
  padding-inline-start: 0.25rem;
}

.article-ed-sidebar .number {
  min-width: 1.6rem;
  color: #2baa60;
  font-size: 0.7rem;
  font-weight: 800;
  padding-top: 0.15rem;
}

.article-ed-sidebar .explore a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid #edf2ee;
  color: #59675f;
  text-decoration: none;
  font-size: 0.9rem;
}

.article-ed-sidebar .explore a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-ed-sidebar .explore a:hover {
  color: #219653;
}

.article-ed-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.15rem;
}

.article-ed-nav .nav-link {
  color: #145a32;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.article-ed-nav .nav-link small {
  display: block;
  color: #87948c;
  font-size: 0.7rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.article-ed-nav .next {
  text-align: end;
}

.article-ed-nav .home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: #145a32;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.article-ed-nav .home:hover {
  background: #249653;
  color: #fff;
}

.article-page--editorial .article-comments {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.article-page--editorial .article-ed-comments-inner {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 1.35rem;
  padding: 1.5rem clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 12px 35px rgba(17, 80, 42, 0.05);
}

.article-page--editorial .article-comments .article-section-head h2 {
  font-family: var(--font-display);
  color: #145a32;
}

@media (max-width: 900px) {
  .article-ed-wrapper {
    grid-template-columns: 1fr;
  }

  .article-ed-sidebar {
    position: static;
  }
}

@media (max-width: 650px) {
  .article-ed-header {
    padding: 2.4rem 1.15rem 1.75rem;
  }

  .article-ed-header h1 {
    font-size: 2.15rem;
  }

  .article-ed-wrapper {
    padding: 0.75rem 0.9rem 2.5rem;
  }

  .article-ed-card {
    border-radius: 1.15rem;
  }

  .article-page--editorial .article-body {
    padding: 1.85rem 1.25rem 1.75rem;
  }

  .article-page--editorial .article-ending {
    padding: 0 1.25rem 2.5rem;
  }

  .article-ed-nav {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1.15rem 2.5rem;
  }

  .article-ed-nav .next {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-ed-card .hero-image img {
    transition: none;
  }

  .article-ed-card .hero-image:hover img {
    transform: none;
  }
}

body.article-poem.article-editorial .article-ed-card .hero-image {
  height: clamp(10rem, 28vw, 18rem);
}

body.article-poem.article-editorial .article-body--poem .intro {
  font-weight: 400;
  font-style: italic;
}
