/* Stylesheet for the prerendered /blog pages (scripts/build-blog.ts). These
   pages are static HTML outside the Vite/React bundle, so this file is
   hand-authored plain CSS rather than Tailwind output — it avoids depending
   on a build-time-hashed asset name and keeps the pages framework-free.
   System font stack only: no extra font requests, matches the "fast loading"
   goal for pages that exist to rank. */

:root {
  --navy: #0a1628;
  --navy-light: #111f35;
  --lime: #a3ff00;
  --lime-dark: #8ce600;
  --ink: #111827;
  --ink-muted: #4b5563;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.011em;
}

a {
  color: #2e5f00;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- header ---- */
.site-header {
  background: var(--navy);
  padding: 14px 20px;
}
.site-header .inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.site-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-header nav a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 14px;
  margin-left: 20px;
}
.site-header nav a:hover {
  color: var(--lime);
  text-decoration: none;
}
.site-header .cta {
  background: var(--lime);
  color: var(--navy) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 800;
}
.site-header .cta:hover {
  background: var(--lime-dark);
  text-decoration: none;
}

/* ---- breadcrumb ---- */
.breadcrumb {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--ink-muted);
}
.breadcrumb a {
  color: var(--ink-muted);
}
.breadcrumb .sep {
  margin: 0 6px;
  color: #cbd5e1;
}

/* ---- article ---- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #527a00;
  background: #f4ffe5;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--navy);
}
.updated {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 22px;
}
.intro {
  font-size: 19px;
  color: #1f2937;
  margin-bottom: 8px;
}
article h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 36px 0 12px;
}
article p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #1f2937;
}
article ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
article li {
  margin-bottom: 8px;
  font-size: 16px;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding: 10px 14px 0;
  font-size: 13px;
  color: var(--ink-muted);
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--navy);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ---- FAQ ---- */
.faq {
  margin-top: 36px;
}
.faq h2 {
  margin-top: 0;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item .q {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 16px;
}
.faq-item .a {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
}

/* ---- CTA band ---- */
.cta-band {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--navy);
  border-radius: 16px;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 20px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
  font-size: 15px;
}
.cta-band .buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--lime);
  color: var(--navy);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
}
.btn-primary:hover {
  background: var(--lime-dark);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* ---- related posts ---- */
.related {
  margin-top: 40px;
}
.related h2 {
  margin-top: 0;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.related li a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.related li a:hover {
  border-color: var(--lime-dark);
  background: #f4ffe5;
  text-decoration: none;
}

.disclaimer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---- footer ---- */
.site-footer {
  background: var(--navy);
  padding: 40px 20px;
  margin-top: 40px;
}
.site-footer .inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--lime);
  text-decoration: none;
}
.site-footer .copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  width: 100%;
  margin-top: 16px;
}

/* ---- hub page ---- */
.hub-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 12px;
}
.hub-hero h1 {
  font-size: 36px;
}
.hub-hero p {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 620px;
}
.hub-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.hub-section h2 {
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hub-section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.hub-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.hub-grid a:hover {
  border-color: var(--lime-dark);
  background: #f4ffe5;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0b1220;
    color: #e5e7eb;
  }
  h1, article h2, .hub-section h2, .faq-item .q, .related li a, .hub-grid a {
    color: #f0fdf4;
  }
  article p, article li, .intro, .faq-item .a {
    color: #cbd5e1;
  }
  .table-wrap { border-color: #1f2937; }
  th, td { border-color: #1f2937; }
  thead th { background: #111827; }
  .breadcrumb, .updated, .disclaimer { color: #94a3b8; }
  .disclaimer { border-color: #1f2937; }
  .category-tag { background: #16210a; color: #cfff8a; }
  .related li a, .hub-grid a { border-color: #1f2937; }
  .related li a:hover, .hub-grid a:hover { background: #16210a; border-color: var(--lime-dark); }
  .btn-secondary { border-color: rgba(255,255,255,0.25); }
}
