/* Global Styles - US-friendly clean design */
:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #0b1f3b;
  --color-muted: #5b6b82;
  --color-primary: #0d3b66; /* Navy */
  --color-accent: #f4d35e;  /* Warm gold */
  --color-accent-2: #ee964b; /* Orange */
  --color-border: #e4e9f2;
  /* Unified background ramp */
  --bg-top: #eef4ff;
  --bg-mid: #f7faff;
  --bg-bottom: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 6px 24px rgba(16, 24, 40, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--color-bg); /* Match tools pages */
  color: var(--color-text);
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative; /* Anchor mobile dropdown */
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-primary);
}
.brand-logo {
  height: 28px;
  width: auto;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-toggle:hover { filter: brightness(1.03); }
.nav-toggle:focus-visible { outline: 2px solid #86b7fe; outline-offset: 2px; }
.nav-links {
  display: flex;
  gap: 18px;
}
.nav-links a {
  font-weight: 600;
  color: var(--color-text);
}
.cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.cta-button:hover { filter: brightness(1.05); text-decoration: none; }

.hero {
  padding: 56px 0 28px;
  background: transparent; /* Use unified body gradient behind */
}
.hero, .hero .container { text-align: left; }
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 10px 0;
}
.hero p {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 0 18px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-4, .col-6 { grid-column: span 12; }
}

/* Mobile navigation */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
  }
  .nav-links a {
    padding: 14px 20px;
    border-top: 1px solid var(--color-border);
  }
  header.site-header.menu-open .nav-links { display: flex; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card .meta { color: var(--color-muted); font-size: 14px; }

/* Tool cards with icons */
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border-color: #d8dfeb;
}
.tool-card .tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5fb;
  color: var(--color-primary);
  flex: 0 0 40px;
}
.tool-card .tool-icon svg {
  width: 22px;
  height: 22px;
}
.tool-card .tool-content {
  flex: 1 1 auto;
}
.tool-card h3 {
  margin: 0 0 4px 0;
}

/* Headings align like tools pages across the site */
h1, h2, h3 { text-align: left; }

/* Forms */
label { font-weight: 600; display: block; margin-bottom: 6px; }
input, select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}
button.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
button.btn.secondary {
  background: var(--color-accent-2);
}
button.btn.ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
button.btn:hover { filter: brightness(1.05); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 8px;
  text-align: right;
}
th:first-child, td:first-child { text-align: left; }
thead th { background: #f5f7fb; font-weight: 700; }

/* Footer */
footer.site-footer {
  margin-top: 32px;
  padding: 16px 0 24px;
  color: var(--color-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.footer-dark { background:#0d1b2a; color:#fff; }
.footer-dark a { color:#fff; text-decoration:none; }
.footer-dark .footer-title { margin:0 0 10px 0; font-size:16px; color:#00c897; }
.footer-dark .footer-brand { color:#00c897; margin:0 0 10px 0; }
.footer-dark .footer-text { font-size:14px; line-height:1.6; }
.footer-dark .footer-list { list-style:none; padding:0; margin:0; line-height:1.8; }
.footer-dark .footer-copy { text-align:center; margin-top:20px; font-size:13px; border-top:1px solid #334; padding-top:15px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.footer-col { grid-column: span 3; }
.footer-col h4 { margin: 0 0 8px 0; color: var(--color-text); }
.disclaimer { font-size: 13px; color: var(--color-muted); }
.footer-list { list-style: none; padding: 0; margin: 0; line-height: 1.8; }
.footer-copy { text-align: center; font-size: 13px; padding-top: 12px; color: var(--color-muted); }
.sources a { color: #0d3b66; text-decoration: underline; }
.sources a:hover { filter: brightness(1.05); }

/* Mobile footer (accordion + two-column) */
.footer-mobile { display: none; padding: 8px 12px 20px; }
.footer-brand-block { margin-bottom: 8px; }
.footer-mobile .brand { font-size: 16px; }
.footer-brand-block .brand { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.footer-brand-block .brand-logo { height: 24px; width: auto; display: block; }
.footer-brand-block .brand span { line-height: 1; }
.mobile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.accordion { border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.accordion-title { margin: 0; }
.accordion-toggle {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: none;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}
.accordion-toggle:focus-visible { outline: 2px solid #86b7fe; outline-offset: 2px; }
.accordion-panel { padding: 4px 14px 12px; }
.mobile-copy { padding-top: 10px; }


/* Footer responsive columns: 4 → 2 → 1 */
@media (max-width: 900px) {
  /* Hide desktop footer, show mobile accordion */
  .site-footer .footer-grid, .site-footer > .container.footer-copy { display: none; }
  .footer-mobile { display: block; }
  .footer-col { grid-column: span 6; }
  .site-footer a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 600px) {
  .footer-col { grid-column: span 12; }
  .footer-grid { gap: 12px; }
  footer.site-footer { padding: 20px 0 28px; }
}

@media (max-width: 480px) {
  .mobile-grid { grid-template-columns: 1fr; }
}

/* Utility */
.muted { color: var(--color-muted); }
.surface { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.spacer { height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


