/* === UkrBiz.net — Business / Financial news theme === */
:root {
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1c2b3a;
  --muted: #64748b;
  --accent: #1e40af;
  --accent-hover: #1d3a9a;
  --accent-light: #eff6ff;
  --border: rgba(0,0,0,.08);
  --header-bg: #0f2340;
  --header-text: #e8edf4;
  --maxw: 1060px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* === Header === */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px solid #d97706;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 16px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--header-text);
  letter-spacing: .5px;
  text-decoration: none;
}
.site-logo .dot { color: #d97706; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(232,237,244,.72);
  font-size: .82rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

/* === Layout === */
.site-wrap { padding: 24px 0 40px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* === Article page === */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

.article-card { padding: 28px 32px 32px; }

.article-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.article-title {
  margin: 0 0 10px;
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 800;
}
.article-meta { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }

.article-body { font-size: 1.03rem; line-height: 1.78; }
.article-body > * + * { margin-top: 1em; }
.article-body h2 { font-size: 1.38rem; margin-top: 1.8em; margin-bottom: .5em; }
.article-body h3 { font-size: 1.12rem; margin-top: 1.5em; margin-bottom: .4em; }
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(30,64,175,.3); }
.article-body a:hover { border-bottom-color: var(--accent); text-decoration: none; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
  border-left: 3px solid #d97706;
  padding: 10px 16px;
  margin: 1.2em 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  color: #374151;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 12px; vertical-align: top; }
.article-body th { background: #f8fafc; text-align: left; font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* === Related === */
.related-box { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.related-box h3 { margin: 0 0 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-list li a { color: var(--text); font-size: .93rem; }
.related-list li a:hover { color: var(--accent); text-decoration: none; }

/* === Sidebar === */
.sidebar { position: sticky; top: 16px; }
.sidebar__box { padding: 14px 16px; margin-bottom: 14px; }
.sidebar__title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
.sidebar__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sidebar__list a { color: var(--text); font-size: .88rem; }
.sidebar__list a:hover { color: var(--accent); text-decoration: none; }

/* === Postlist (index / section) === */
.postlist { display: grid; gap: 14px; }
.postcard__body { padding: 16px 20px; }
.postcard__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 7px;
}
.postcard__title { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.35; }
.postcard__title a { color: var(--text); }
.postcard__title a:hover { color: var(--accent); text-decoration: none; }
.postcard__meta { font-size: .78rem; color: var(--muted); }
.postcard__desc { margin: 7px 0 0; font-size: .92rem; color: var(--muted); }

/* === Homepage === */
.home-hero {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 28px 0 22px;
  margin-bottom: 24px;
}
.home-hero h1 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; color: var(--header-text); }
.home-hero p { margin: 0; color: rgba(232,237,244,.6); font-size: .92rem; }

.section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 2px solid #d97706;
  margin-bottom: 12px;
}

.list-header { margin-bottom: 22px; }
.list-header h1 { margin: 0 0 6px; font-size: 1.55rem; }
.list-header p { margin: 0; color: var(--muted); }

/* === Footer === */
.site-footer {
  background: var(--header-bg);
  color: rgba(232,237,244,.45);
  font-size: .8rem;
  padding: 20px 0;
  margin-top: 48px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: rgba(232,237,244,.5); }
.site-footer a:hover { color: var(--header-text); text-decoration: none; }

@media (max-width: 640px) {
  .article-title { font-size: 1.4rem; }
  .article-card { padding: 18px 16px 22px; }
}
