/* Editorial news — article list + single article (public site) */
/* Article pages do NOT load style.css; html.editorial-news-html resets base size */
html.editorial-news-html {
  font-size: 16px;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
}

body.article-editorial-page,
body.news-index-page {
  font-family: 'Heebo', 'Rubik', 'Assistant', system-ui, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #111;
  direction: rtl;
  text-align: right;
  letter-spacing: 0.02em;
}

.article-editorial-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.article-editorial-header__inner {
  max-width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.article-editorial-header__logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
}

.article-editorial-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-editorial-header__nav a {
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.article-editorial-header__nav a:hover {
  color: #2563eb;
}

.article-editorial-wrap,
.news-index-wrap {
  max-width: min(820px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  box-sizing: border-box;
}

.news-index-wrap {
  max-width: min(960px, 100%);
}

.article-editorial-crumb {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 1rem;
}

.article-editorial-crumb a {
  color: #2563eb;
  text-decoration: none;
}

.article-editorial-crumb a:hover {
  text-decoration: underline;
}

.article-editorial-page h1,
.news-index-wrap h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.article-editorial-meta {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}

.article-editorial-hero {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.article-editorial-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.article-editorial-body {
  font-size: 22px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #1e293b;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.article-editorial-body h2 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 2rem 0 0.85rem;
  font-weight: 700;
  color: #111;
}

.article-editorial-body h3 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 1.5rem 0 0.65rem;
  font-weight: 600;
  color: #111;
}

.article-editorial-body p,
.article-editorial-body li,
.article-editorial-body blockquote,
.article-editorial-body td,
.article-editorial-body th,
.article-editorial-body a,
.article-editorial-body span,
.article-editorial-body strong {
  font-size: 22px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

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

.article-editorial-body ul,
.article-editorial-body ol {
  margin: 0 0 1rem 0;
  padding-inline-start: 1.35rem;
}

.article-editorial-body li {
  margin-bottom: 0.35rem;
}

.article-editorial-body a,
.article-editorial-body a.editorial-news-inline-link {
  color: #0d9488;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-editorial-body a.editorial-news-external-link {
  color: #1d4ed8;
}

.article-editorial-body ul.editorial-news-external-sources {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.5rem;
}

.article-editorial-body ul.editorial-news-external-sources li {
  margin-bottom: 0.5rem;
}

.article-editorial-body strong,
.article-editorial-body b {
  font-weight: 700;
  color: #0f172a;
}

.article-editorial-excerpt-lead {
  font-weight: 500;
  color: #475569;
  margin-bottom: 1.5rem;
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

/* Override inline font sizes from generated article HTML */
.article-editorial-body p[style],
.article-editorial-body span[style],
.article-editorial-body li[style],
.article-editorial-body div[style] {
  font-size: 22px !important;
  line-height: 1.85 !important;
  letter-spacing: 0.04em !important;
}

.article-editorial-body h2[style],
.article-editorial-body h3[style] {
  letter-spacing: 0.02em !important;
}

/* Article index cards */
.news-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-index-card {
  display: flex;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
}

.news-index-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.news-index-card__img {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #e5e7eb;
}

.news-index-card__body {
  flex: 1;
  min-width: 0;
}

.news-index-card__title {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  color: #111;
}

.news-index-card__excerpt {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-index-card__meta {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.45rem;
}

.news-index-pagination {
  margin-top: 2rem;
}
