/* editorial.css — FT / Financial Times inspired theme */
/* Salmon paper, serif authority, premium quiet feel, thin rules */

/* === MASTHEAD === */
[data-theme="editorial"] .masthead {
  border-bottom: 1px solid var(--border);
  padding: 20px 0 0;
}

[data-theme="editorial"] .masthead-brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

[data-theme="editorial"] .masthead-brand a {
  color: var(--fg);
}

[data-theme="editorial"] .masthead-date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

[data-theme="editorial"] .theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 2px;
}

[data-theme="editorial"] .theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* === NAVBAR === */
[data-theme="editorial"] .navbar {
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding: 10px 0;
}

[data-theme="editorial"] .navbar a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-2);
  padding: 6px 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.15s;
}

[data-theme="editorial"] .navbar a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

[data-theme="editorial"] .navbar a.active {
  color: var(--accent);
  font-weight: 600;
}

/* === HERO / LEAD STORY === */
[data-theme="editorial"] .hero-block {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  position: relative;
  overflow: visible;
}

[data-theme="editorial"] .hero-bg-img {
  display: none;
}

[data-theme="editorial"] .hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
}

[data-theme="editorial"] .hero-tag {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 12px;
}

[data-theme="editorial"] .hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 70ch;
  transition: color 0.15s;
}

[data-theme="editorial"] .hero-link:hover .hero-title {
  color: var(--accent);
}

[data-theme="editorial"] .hero-deck {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 55ch;
  margin-bottom: 12px;
}

[data-theme="editorial"] .hero-time {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* === EDITORIAL HERO GRID === */
[data-theme="editorial"] .editorial-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  [data-theme="editorial"] .editorial-hero-grid {
    grid-template-columns: 7fr 3fr;
    gap: 40px;
    align-items: start;
  }
}

[data-theme="editorial"] .top-news-sidebar {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

@media (min-width: 992px) {
  [data-theme="editorial"] .top-news-sidebar {
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 32px;
    padding-top: 0;
  }
}

/* === NEWS SECTIONS === */
[data-theme="editorial"] .news-section {
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

[data-theme="editorial"] .news-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

[data-theme="editorial"] .news-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: none;
}

[data-theme="editorial"] .news-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0;
}

[data-theme="editorial"] .news-section-more {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

[data-theme="editorial"] .news-section-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === NEWS LIST === */
[data-theme="editorial"] .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-theme="editorial"] .news-item {
  border-bottom: 1px solid var(--border-soft);
}

[data-theme="editorial"] .news-item:last-child {
  border-bottom: none;
}

[data-theme="editorial"] .news-item a {
  display: grid;
  grid-template-columns: minmax(6ch, max-content) 1fr auto;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 4px;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
}

[data-theme="editorial"] .news-item a:hover .news-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

[data-theme="editorial"] .news-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

[data-theme="editorial"] .news-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
  transition: color 0.15s;
}

[data-theme="editorial"] .news-excerpt {
  grid-column: 2 / 4;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="editorial"] .news-time {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* === COLUMN BLOCKS === */
[data-theme="editorial"] .column-block {
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  padding-bottom: 32px;
}

/* Feature block */
[data-theme="editorial"] .feature-lead {
  margin-top: 16px;
}

[data-theme="editorial"] .feature-lead-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

[data-theme="editorial"] .feature-lead:hover .feature-lead-title {
  color: var(--accent);
}

[data-theme="editorial"] .feature-lead-deck {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
}

[data-theme="editorial"] .feature-lead-deck::first-letter {
  font-family: var(--font-display);
  font-size: 3em;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 400;
}

[data-theme="editorial"] .feature-lead-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
}

[data-theme="editorial"] .feature-secondary .feature-card {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s;
}

[data-theme="editorial"] .feature-secondary .feature-card:hover {
  background: var(--surface-warm);
}

[data-theme="editorial"] .feature-secondary .feature-card:hover .feature-card-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

[data-theme="editorial"] .feature-secondary .feature-card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

[data-theme="editorial"] .feature-secondary .feature-card-time {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}

/* Explainer block */
[data-theme="editorial"] .explainer-card {
  border-left: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

[data-theme="editorial"] .explainer-card:hover {
  border-left-color: var(--accent);
  background: var(--surface-warm);
}

[data-theme="editorial"] .explainer-card-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
}

[data-theme="editorial"] .explainer-card:hover .explainer-card-number {
  color: var(--accent);
}

[data-theme="editorial"] .explainer-card-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
}

/* Special hub */
[data-theme="editorial"] .special-hub {
  border: 1px solid var(--border);
}

[data-theme="editorial"] .special-hub-lead {
  border-right: 1px solid var(--border);
}

[data-theme="editorial"] .special-hub-lead-title {
  font-family: var(--font-display);
  font-weight: 400;
}

[data-theme="editorial"] .special-hub-item {
  border-bottom: 1px solid var(--border-soft);
}

[data-theme="editorial"] .special-hub-item:hover {
  background: var(--surface-warm);
}

[data-theme="editorial"] .special-hub-item:hover .special-hub-item-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === TYPE BADGES === */
[data-theme="editorial"] .type-badge {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

[data-theme="editorial"] .type-badge-feature {
  background: var(--accent);
  color: #fff;
}

[data-theme="editorial"] .type-badge-explainer {
  background: var(--fg);
  color: var(--bg);
}

[data-theme="editorial"] .type-badge-special {
  border: 1px solid var(--fg);
}

/* === ARTICLE PAGE === */
[data-theme="editorial"] .article-canvas {
  padding-top: 40px;
}

[data-theme="editorial"] .article-canvas .article-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

[data-theme="editorial"] .article-canvas .article-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  margin-bottom: 24px;
}

[data-theme="editorial"] .article-canvas .article-meta {
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 32px;
  padding-bottom: 16px;
}

[data-theme="editorial"] .article-canvas p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

[data-theme="editorial"] .article-canvas h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

[data-theme="editorial"] .article-canvas h2::before {
  display: none;
}

/* Sources */
[data-theme="editorial"] .article-sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

[data-theme="editorial"] .article-sources h3 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 12px;
}

[data-theme="editorial"] .source-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-ui);
  font-size: 13px;
}

[data-theme="editorial"] .source-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* === FOOTER === */
[data-theme="editorial"] .site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 0;
}

/* === MOBILE === */
@media (max-width: 768px) {
  [data-theme="editorial"] .hero-title {
    font-size: 26px;
  }

  [data-theme="editorial"] .news-item a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }

  [data-theme="editorial"] .navbar {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  [data-theme="editorial"] .navbar::-webkit-scrollbar {
    display: none;
  }

  [data-theme="editorial"] .special-hub-lead {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* === EDITORIAL HOMEPAGE CLASSES === */
[data-theme="editorial"] .ed-home {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

[data-theme="editorial"] .ed-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

[data-theme="editorial"] .ed-hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

[data-theme="editorial"] .ed-hero-link:hover .ed-lead-title {
  color: var(--accent);
}

[data-theme="editorial"] .ed-hero-kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 12px;
}

[data-theme="editorial"] .ed-lead-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 70ch;
  transition: color 0.15s;
}

[data-theme="editorial"] .ed-deck {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 55ch;
  margin-bottom: 12px;
}

[data-theme="editorial"] .ed-time {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
}

/* Secondary picks */
[data-theme="editorial"] .ed-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}

[data-theme="editorial"] .ed-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  border-right: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

[data-theme="editorial"] .ed-card:last-child {
  border-right: none;
}

[data-theme="editorial"] .ed-card:hover {
  background: var(--surface-warm);
}

[data-theme="editorial"] .ed-card:hover .ed-card-title {
  color: var(--accent);
}

[data-theme="editorial"] .ed-card-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

[data-theme="editorial"] .ed-card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}

[data-theme="editorial"] .ed-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="editorial"] .ed-card-time {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}

/* Feature section */
[data-theme="editorial"] .ed-feature-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

[data-theme="editorial"] .ed-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

[data-theme="editorial"] .ed-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

[data-theme="editorial"] .ed-section-more {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

[data-theme="editorial"] .ed-section-more:hover {
  text-decoration: underline;
}

/* News sections */
[data-theme="editorial"] .ed-news-section {
  margin-bottom: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

[data-theme="editorial"] .ed-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-theme="editorial"] .ed-news-item {
  border-bottom: 1px solid var(--border-soft);
}

[data-theme="editorial"] .ed-news-item:last-child {
  border-bottom: none;
}

[data-theme="editorial"] .ed-news-item a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}

[data-theme="editorial"] .ed-news-item a:hover .ed-item-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

[data-theme="editorial"] .ed-item-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  flex: 1;
  transition: color 0.15s;
}

[data-theme="editorial"] .ed-item-time {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  [data-theme="editorial"] .ed-secondary {
    grid-template-columns: 1fr;
  }

  [data-theme="editorial"] .ed-card {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 0;
  }
}
