/* NGP RIDR — Layout: header, nav, footer, page sections */

/* Site Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 0;
}
.site-header .container { display: flex; align-items: center; }
.site-logo {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo-img {
  height: 52px;
  width: auto;
  border-radius: 3px;
  flex-shrink: 0;
}
.site-logo-text { display: flex; flex-direction: column; gap: 0.05em; }
.site-logo-abbr { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.05em; line-height: 1; }
.site-logo-full { font-size: 0.75rem; font-weight: 400; opacity: 0.85; line-height: 1.3; max-width: 30ch; }

/* Site Nav */
.site-nav {
  background: var(--color-primary-light);
  padding: 0;
}
.site-nav .container { display: flex; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(0,0,0,0.2);
  color: #fff;
}

/* Site Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.875rem;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer p { margin-bottom: 0.35em; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.25rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo-img { height: 48px; width: auto; border-radius: 3px; margin-bottom: 0.75rem; }
.footer-tagline { opacity: 0.75; line-height: 1.4; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4em; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { font-size: 0.8rem; opacity: 0.6; }
.footer-bottom p { margin: 0; }

/* Hero (homepage) */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3d1c 100%);
  color: #fff;
  padding: 5rem 0;
}
.hero-content { text-align: center; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 0.5em; }
.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 60ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero { font-size: 1rem; padding: 0.65em 1.5em; }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

/* Home intro */
.home-intro { padding: 3rem 0; border-bottom: 1px solid var(--color-border); }
.home-intro-body { max-width: 75ch; font-size: 1.05rem; line-height: 1.7; }

/* Solutions strip */
.home-solutions { padding: 3.5rem 0; background: var(--color-bg); }
.home-solutions h2 { margin-bottom: 0.4em; }
.section-lead { font-size: 1.05rem; color: var(--color-text-muted); max-width: 70ch; margin-bottom: 2rem; }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.solution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.solution-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.4em;
  opacity: 0.4;
}
.solution-card h3 { font-size: 1rem; margin: 0 0 0.5em; }
.solution-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* Funding note */
.home-funding {
  background: #f0f5f0;
  border-top: 1px solid #c8dcc8;
  padding: 1.5rem 0;
}
.funding-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 80ch;
  margin: 0;
}

/* Page & post content areas */
.page, .post, .document-entry {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page-header, .post-header, .document-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}
.page-subtitle { font-size: 1.125rem; color: var(--color-text-muted); margin-top: 0.5em; }
.post-summary { font-size: 1.125rem; color: var(--color-text-muted); margin-top: 0.75em; }
.post-hero { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.post-hero img { width: 100%; max-height: 400px; object-fit: cover; }

/* Post meta (date + tags) */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1em; margin-bottom: 0.75em; font-size: 0.9rem; color: var(--color-text-muted); }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5em; padding: 0; margin: 0; }
.post-tags a { background: var(--color-border); padding: 0.15em 0.6em; border-radius: 2em; text-decoration: none; color: var(--color-text); font-size: 0.8rem; }

/* Post grid */
.home-news { padding: 3rem 0; }
.home-news h2 { margin-bottom: 1.5rem; }
.home-news .btn { margin-top: 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.post-card-image img { width: 100%; height: 180px; object-fit: cover; }
.post-card-body { padding: 1rem; }
.post-card-body time { font-size: 0.85rem; color: var(--color-text-muted); display: block; margin-bottom: 0.4em; }
.post-card-title { font-size: 1.05rem; margin: 0 0 0.5em; }
.post-card-title a { text-decoration: none; color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); }

/* Document meta */
.document-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.4em 1em; font-size: 0.9rem; margin: 1em 0; }
.document-meta dt { font-weight: 600; color: var(--color-text-muted); }
.document-list { display: flex; flex-direction: column; gap: 1rem; }
.document-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; }
.document-type { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent); display: block; margin-bottom: 0.3em; }
.document-card-title { font-size: 1.05rem; margin: 0 0 0.35em; }
.document-card-title a { text-decoration: none; color: var(--color-text); }
.document-card-title a:hover { color: var(--color-primary); }
.document-authors { font-size: 0.875rem; color: var(--color-text-muted); margin: 0.25em 0; }

/* Home body section */
.home-body { padding: 3rem 0; }
.home-body .container { max-width: 75ch; }
