:root {
  --primary: #1f3a5f;
  --secondary: #4a6fa5;
  --accent: #2f8f83;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --wrap: 1680px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

/* Header / nav */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
}

/* Generic page sections */
.page-intro,
.hero,
.article-hero,
.article-wrap {
  padding-top: 42px;
}

.hero {
  padding-bottom: 42px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.lede,
.article-header .dek {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 980px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 12px 0 20px;
}

.breadcrumbs {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  text-decoration: underline;
}

/* Cards / grids */
.grid,
.article-grid,
.category-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.grid,
.article-grid {
  margin: 20px 0 38px;
}

.card,
.article-card,
.content-card,
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.content-card,
.sidebar-card {
  padding: 24px;
}

.article-card h3,
.card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.article-card p,
.card p,
.content-card p,
.content-card li,
.sidebar-card p,
.sidebar-card li {
  color: var(--text);
}

.article-card p,
.card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article-card a,
.card a,
.sidebar-card a,
.related-links a,
.byline a,
.content-card a {
  color: var(--primary);
  text-decoration: none;
}

.article-card a:hover,
.card a:hover,
.sidebar-card a:hover,
.related-links a:hover,
.byline a:hover,
.content-card a:hover,
.article-card a:focus,
.card a:focus,
.sidebar-card a:focus,
.related-links a:focus,
.byline a:focus,
.content-card a:focus {
  text-decoration: underline;
}

.article-card a.read-more {
  font-weight: 700;
}

/* Article layout */
.article-layout,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 36px;
}

.content-grid {
  gap: 34px;
}

.article-body {
  min-width: 0;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.content-card ul,
.related-bottom ul,
.sidebar-card ul {
  padding-left: 20px;
}

.article-section {
  margin: 28px 0 0;
}

.article-section h2 {
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
}

/* Callouts and highlights */
.callout {
  background: #eef4fb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 24px 0;
}

.key-takeaway {
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  background: #f2fbf9;
  border-radius: 8px;
  margin: 24px 0;
}

/* Browse links / pills */
.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 30px;
}

.browse-links a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.browse-links a:hover,
.browse-links a:focus {
  border-color: var(--secondary);
  text-decoration: none;
}

/* Ad blocks */
.ad-slot {
  margin: 25px 0;
  text-align: center;
}

.ad-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

/* Footer */
.page-footer {
  margin-top: 30px;
  padding: 28px 0 50px;
  color: var(--muted);
}

/* Typography */
h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
}

p {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .article-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }
}

.site-header .brand img {
  height: 60px;
  width: auto;
}

