:root {
  --primary: #15803d;
  --primary-dark: #14532d;
  --accent: #16a34a;
  --accent-light: #bbf7d0;
  --header-bg: #14532d;
  --text: #1c1c1c;
  --text-light: #fafafa;
  --bg: #fafafa;
  --white: #ffffff;
  --gray: #5a5a5a;
  --gray-light: #8a8a8a;
  --border: #e5e7eb;
  --card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

/* Header - horizontal bar style, distinct from lg1.fr gradient */
header {
  background: var(--header-bg);
  border-bottom: 4px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

header .logo .logo-shield {
  font-size: 1.6rem;
  color: var(--accent);
}

header .logo .logo-accent {
  color: var(--accent);
  letter-spacing: 2px;
}

header ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
}

header ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

header ul li a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Main */
main {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Article Hero Banner */
.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  padding: 4rem 2rem 3rem;
}
.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.article-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 0.75rem;
}
.article-hero .article-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 640px;
}

/* Article */
article h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

article .meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent);
}

article time, article .author {
  color: var(--gray);
  font-size: 0.85rem;
  font-family: 'Arial', sans-serif;
}

article .content {
  margin-top: 1.5rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

article .content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--primary-dark);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  font-weight: 700;
}

article .content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
  font-family: 'Arial', sans-serif;
  font-weight: 700;
}

article .content p {
  margin-bottom: 1.1rem;
}

article .content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

article .content a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}

article .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 2px solid var(--primary);
}

article .content th, article .content td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: 'Arial', sans-serif;
  font-size: 0.92rem;
}

article .content th {
  background: var(--primary);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

article .content tr:nth-child(even) {
  background: var(--card-bg);
}

article .content tr:hover {
  background: #f0e8d8;
}

article .content strong {
  color: var(--primary-dark);
}

article .content ol, article .content ul {
  margin: 1rem 0;
  padding-left: 1.75rem;
}

article .content li {
  margin-bottom: 0.5rem;
}

article .content hr {
  border: none;
  border-top: 2px solid var(--accent);
  margin: 2.5rem 0;
}

article .content em {
  color: var(--gray);
  font-style: italic;
}

article .content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray);
}

/* Hero Banner - default fallback (overridden inline by templates with images) */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--header-bg) 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--accent);
  padding: 2.5rem 1.5rem;
  margin: -2.5rem -1.5rem 2.5rem;
  text-align: left;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--header-bg);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 0.75rem;
  font-family: 'Arial Black', sans-serif;
}

.hero-banner h1 {
  font-size: 2.4rem;
  color: var(--text-light);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.15;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  letter-spacing: -0.5px;
}

.hero-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 550px;
}

/* Section listing */
.section-listing h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

.section-desc {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Article list */
.latest h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 0.75rem;
  border-left: 4px solid var(--accent);
}

.article-list {
  list-style: none;
}

.article-list li {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: border-left-color 0.2s, background 0.2s;
}

.article-list li:hover {
  border-left-color: var(--accent);
  background: var(--card-bg);
}

.article-list a {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
}

.article-list a:hover {
  color: var(--primary);
}

.article-list time {
  display: block;
  color: var(--gray-light);
  font-size: 0.78rem;
  margin-top: 0.3rem;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-list p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* Footer */
footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 4px solid var(--primary);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  font-family: 'Arial Black', sans-serif;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: 'Arial', sans-serif;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-family: 'Arial', sans-serif;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin: 0 0.75rem;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Legal pages */
.legal-page {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}

.legal-page h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.75rem;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary-dark);
  font-family: 'Arial', sans-serif;
  font-weight: 700;
}

.legal-page p, .legal-page li {
  margin-bottom: 0.75rem;
  color: var(--gray);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.legal-page a:hover {
  color: var(--primary-dark);
}

/* Contact info styling */
.contact-info {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-info dt {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  font-family: 'Arial', sans-serif;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  color: var(--gray);
  margin-left: 0;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero { padding: 2.5rem 1.5rem 2rem; }
  .article-hero h1 { font-size: 1.75rem; }
  .article-hero .article-subtitle { font-size: 1rem; }

  header nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  header ul {
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  header ul li a {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  main {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  article h1 {
    font-size: 1.6rem;
  }
  article .content {
    padding: 1.5rem;
  }
  .hero-banner {
    padding: 1.5rem 1rem;
    margin: -1.5rem -1rem 2rem;
    background-position: center top;
  }
  .hero-banner h1 {
    font-size: 1.6rem;
  }
  .hero-banner p {
    font-size: 0.92rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .legal-page {
    padding: 1.5rem;
  }
  article .content table {
    font-size: 0.82rem;
  }
  article .content th, article .content td {
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 480px) {
  header .logo {
    font-size: 1.25rem;
  }
  article h1 {
    font-size: 1.35rem;
  }
  .hero-banner h1 {
    font-size: 1.35rem;
  }
  .article-list a {
    font-size: 1rem;
  }
}

/* === Image-driven hero (Phase D.3) === */
.hero-banner--with-image,
.article-hero--with-image {
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.hero-banner--with-image .hero-content,
.article-hero--with-image .article-hero-inner {
  max-width: 900px;
  text-align: center;
}

.hero-banner--with-image h1,
.article-hero--with-image h1 {
  color: var(--text-light);
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-banner--with-image p,
.article-hero--with-image .article-subtitle {
  color: rgba(245,247,250,0.95);
  font-size: 1.2rem;
  line-height: 1.55;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.article-hero--with-image .article-meta {
  color: rgba(245,247,250,0.8);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.article-hero--with-image .article-meta time { color: rgba(245,247,250,0.85); }
.article-hero--with-image .article-meta .author { color: rgba(245,247,250,0.85); }

.hero-banner--with-image .hero-badge {
  background: rgba(255,255,255,0.18);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 1rem;
}

/* === Image cards on homepage === */
.article-list--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.card-with-image {
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  min-height: 220px;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.card-with-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13,71,161,0.25);
}

.card-with-image a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.card-with-image a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-with-image p {
  color: rgba(245,247,250,0.96);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  position: relative;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-banner--with-image,
  .article-hero--with-image { min-height: 240px; padding: 2.5rem 1.25rem; }
  .hero-banner--with-image h1,
  .article-hero--with-image h1 { font-size: 1.85rem; }
  .article-list--cards { grid-template-columns: 1fr; }
}

/* === Breadcrumbs === */
.breadcrumbs {
  max-width: 860px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--gray);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--gray-light);
}
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current="page"] {
  color: var(--gray);
  font-weight: 500;
}

/* === Related articles aside === */
.related-articles {
  max-width: 860px;
  margin: 2.5rem auto 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
.related-articles h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.related-list li {
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.related-list li:hover {
  box-shadow: 0 4px 12px rgba(13,71,161,0.15);
  transform: translateY(-2px);
}
.related-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.related-list p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

/* ============================================================
   Article hero: real <img> with overlay (universal PBN snippet)
   ============================================================ */
.article-hero,
.article-hero--with-image {
  position: relative;
  color: #fff;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  margin: 0 0 2rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: #0b1220;
}
.article-hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}
.article-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero::after,
.article-hero--with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.70) 100%);
  z-index: -1;
  pointer-events: none;
}
.article-hero-inner {
  position: relative;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
.article-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.article-hero .article-subtitle {
  color: rgba(255,255,255,0.96);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 680px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.article-hero .article-meta {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-hero .article-meta time,
.article-hero .article-meta .author,
.article-hero .article-meta .article-section,
.article-hero .article-meta .article-date {
  color: inherit;
}

/* Inline article images */
article .content img,
article .article-content img,
.ff-article-body img,
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 2.25rem auto;
  box-shadow: 0 6px 26px rgba(0,0,0,0.14);
}
