/* Shared site chrome for the Compliance Calculator Suite.
   Individual calculator tool styling stays inline in each page
   (unchanged from its original, Critic-verified prototype) so the
   verified calculation UI is never touched by this consolidation. */

:root {
  --ink: #1a1a1a;
  --muted: #555;
  --border: #ddd;
  --brand: #2a5d34;
  --brand-light: #eaf3ec;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: #fff;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--brand-light);
}

.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header a.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand);
  text-decoration: none;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.92rem;
}

.site-header nav a:hover { text-decoration: underline; }

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.tool-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover { border-color: var(--brand); background: var(--brand-light); }

.tool-card h3 { margin: 0 0 0.35rem; color: var(--brand); font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.explainer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.explainer h2 { font-size: 1.15rem; }
.explainer h3 { font-size: 1rem; margin-top: 1.3rem; }

.related-tools {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: var(--brand-light);
  border-radius: 8px;
}

.related-tools h3 { margin-top: 0; font-size: 0.98rem; }
.related-tools ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.related-tools a { color: var(--brand); }

.disclaimer-banner {
  background: #fff8e1;
  border: 1px solid #f0d878;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: #5a4a00;
  margin-bottom: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.2rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.site-footer a { color: var(--muted); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
