
:root {
  --green: #1a4d2e;
  --green-dark: #0f3320;
  --green-light: #2d6a4f;
  --off-white: #faf8f3;
  --off-white-dark: #f0ede5;
  --yellow: #f5c518;
  --yellow-dark: #e0b400;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #d9d4c7;
  --max-w: 780px;
  --nav-h: 60px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; border-radius: 6px; }

/* Header */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--yellow);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo .ball { color: var(--yellow); }
.site-logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1.25rem; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 600; }
.main-nav a:hover { color: var(--yellow); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { margin: 0 0.35rem; }

/* Main */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
.article {
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-header { margin-bottom: 1.5rem; }
.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.featured-image { margin: 1rem 0 1.5rem; }
.featured-image img { width: 100%; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* Content typography */
.article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--yellow);
}
.article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin: 1.5rem 0 0.5rem;
}
.article h4 { font-size: 1rem; font-weight: 700; margin: 1rem 0 0.4rem; }
.article p { margin: 0.75rem 0; }
.article ul, .article ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.article li { margin: 0.3rem 0; }
.article strong { font-weight: 700; }

/* Callouts / blockquotes */
.article blockquote {
  background: var(--off-white-dark);
  border-left: 4px solid var(--yellow);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}
.article blockquote p { margin: 0.3rem 0; }

/* Quick answer callout */
.article h2#quick-answer {
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border-bottom: none;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
.article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  min-width: 400px;
}
.article th {
  background: var(--green);
  color: #fff;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
}
.article td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.article tr:nth-child(even) td { background: var(--off-white-dark); }

/* TOC */
.toc {
  background: var(--off-white-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}
.toc-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.5rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0.2rem 0; }
.toc a { font-size: 0.9rem; color: var(--green); }

/* Contact form */
.contact-form { max-width: 640px; margin: 1.5rem 0; }
.contact-form .form-row { margin: 1rem 0; }
.contact-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--green-dark); }
.contact-form .req { color: #c0392b; }
.contact-form .opt { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 6px;
  font: inherit; font-size: 0.95rem; background: #fff; box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--green-light); border-color: var(--green-light);
}
.contact-form .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-error { color: #c0392b; font-size: 0.82rem; margin: 0.35rem 0 0; }
.contact-form .form-actions { margin-top: 1.25rem; }
.contact-form button {
  background: var(--green); color: #fff; border: none; padding: 0.7rem 1.6rem;
  border-radius: 6px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.contact-form button:hover { background: var(--green-light); }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.form-status { margin-top: 1rem; padding: 0.7rem 1rem; border-radius: 6px; font-size: 0.9rem; }
.form-status.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-status.error { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }
.form-status.info { background: var(--off-white-dark); color: var(--text); border: 1px solid var(--border); }


/* Card grid (homepage, hubs) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card h3 a { color: var(--green-dark); }
.card p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.4rem; }
.card .card-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); background: var(--off-white-dark); padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.5rem; }

/* Section heading */
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); margin: 2rem 0 0.5rem; border-bottom: 2px solid var(--yellow); padding-bottom: 0.25rem; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin: 0.3rem 0; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; font-size: 0.8rem; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--green-dark); flex-direction: column; padding: 1rem; gap: 0.5rem; border-bottom: 3px solid var(--yellow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .article-title { font-size: 1.5rem; }
  .article h2 { font-size: 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
}
