/* newsdepo.com — газетный минимализм (Drudge-стиль) */
:root {
  --bg: #f5f2ea;
  --fg: #111;
  --accent: #b00;
  --muted: #666;
  --line: #ccc;
  --card: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
}

/* Шапка */
.masthead {
  background: var(--card);
  border-bottom: 3px solid var(--fg);
}
.masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo span { color: var(--accent); }
.tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}
.cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.cats a {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border: 1px solid transparent;
}
.cats a:hover { background: #eee; }
.cats a.active {
  background: var(--fg);
  color: var(--card);
}
.search input {
  font-family: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--card);
  width: 160px;
}

/* Раскладка */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* Лента */
.page-title {
  font-size: 22px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 6px;
}
.news-list { display: flex; flex-direction: column; }
.news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { border-top: 1px solid var(--line); }
.ad-native {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}
.ad-native #container-1aba10f7464fecd0b21d124f09209ab5 {
  width: 100%;
  display: flex;
  justify-content: center;
}
.news-link { text-decoration: none; color: var(--fg); }
.news-link:hover h2 { color: var(--accent); }
.news-link h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-family: Arial, Helvetica, sans-serif;
}
.meta .source { font-weight: bold; color: #444; }
.meta .cat {
  background: #e8e4da;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.meta .clicks { color: #888; }
mark { background: #ffe90d; padding: 0 2px; }

/* Сайдбар */
.sb-block {
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.sb-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--fg);
  color: var(--card);
  padding: 6px 10px;
}
.hot-list { list-style: none; padding: 8px 10px; }
.hot-list li {
  padding: 5px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list a { color: var(--fg); text-decoration: none; }
.hot-list a:hover { color: var(--accent); }
.cat-list { list-style: none; padding: 8px 10px; }
.cat-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}
.cat-list a { color: var(--fg); text-decoration: none; }
.cat-list a:hover { color: var(--accent); }
.cat-list .cnt { color: var(--muted); font-size: 12px; }

/* Страница новости */
.news-full { background: var(--card); border: 1px solid var(--line); padding: 20px; }
.news-title { font-size: 26px; line-height: 1.25; margin-bottom: 8px; }
.news-summary { margin-top: 14px; font-size: 16px; }
.read-more {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.read-more:hover { background: #900; }
.related { margin-top: 20px; }
.related h2 { font-size: 18px; border-bottom: 2px solid var(--fg); padding-bottom: 4px; margin-bottom: 8px; }
.related ul { list-style: none; }
.related li { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.related a { color: var(--fg); text-decoration: none; }
.related a:hover { color: var(--accent); }

/* Пагинация */
.pager { text-align: center; margin: 20px 0; }
.next {
  display: inline-block;
  background: var(--fg);
  color: var(--card);
  padding: 8px 20px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.next:hover { background: var(--accent); }

/* Футер */
.site-footer {
  border-top: 3px solid var(--fg);
  margin-top: 24px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-family: Arial, sans-serif;
}
.site-footer .links { margin-bottom: 6px; }
.site-footer .links a {
  color: var(--fg);
  text-decoration: none;
  margin: 0 10px;
}
.site-footer .links a:hover { color: var(--accent); }
