/* National RBT — blog/guides layer. Loads AFTER /styles.css and only adds
   article + hub layout on top of the existing design tokens. */

/* ---- Post hero (dark band; the absolute .site-header sits on top of it) ---- */
.post-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 80% -10%, #0C6B5E 0%, transparent 55%),
    linear-gradient(160deg, var(--brand-darker) 0%, #082C27 60%, #061F1B 100%);
  padding: 7rem 1.5rem 3.2rem;
}
.post-hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.post-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 0.9rem 0 1rem; }
.post-hero .lede-sub {
  color: rgba(233, 244, 240, 0.82); font-size: 1.08rem; max-width: 60ch;
}

/* hub variant is wider */
.post-hero-inner.hub-inner { max-width: var(--maxw); }

.crumbs {
  font-family: "Space Mono", monospace; font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-light);
}
.crumbs a { color: var(--brand-bright); }
.crumbs a:hover { text-decoration: underline; }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.3rem;
  font-family: "Space Mono", monospace; font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-light);
}

/* (.header-link, .post-card, .footer-links live in /styles.css — shared with the homepage) */

/* ---- Article body ---- */
.post { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.post > p, .post li { color: var(--ink); font-size: 1.02rem; }
.post > p { margin-bottom: 1.15rem; }
.post h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.6rem 0 0.9rem;
  scroll-margin-top: 1.5rem;
}
.post h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.post ul, .post ol { margin: 0 0 1.15rem 1.4rem; }
.post li { margin-bottom: 0.45rem; }
.post a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(14, 140, 122, 0.35); text-underline-offset: 2px; }
.post a:hover { text-decoration-color: var(--brand); }
.post strong { color: var(--ink); }

/* quick-facts / summary box */
.factbox {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 14px; padding: 1.3rem 1.5rem; margin: 1.8rem 0;
}
.factbox h2, .factbox h3 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.factbox ul { margin: 0 0 0 1.2rem; }
.factbox li { font-size: 0.97rem; margin-bottom: 0.35rem; }

/* tables (costs, salary…) */
.post .table-scroll { overflow-x: auto; margin: 1.4rem 0; }
.post table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  font-size: 0.95rem;
}
.post th, .post td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.post th {
  background: rgba(14, 140, 122, 0.08); color: var(--brand-darker);
  font-family: "Space Mono", monospace; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post tr:last-child td { border-bottom: none; }

/* inline CTA panel */
.post-cta {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-darker) 85%);
  color: #fff; border-radius: 18px; padding: 1.8rem; margin: 2.4rem 0;
  display: grid; gap: 0.4rem; justify-items: start;
}
.post-cta h3 { color: #fff; margin: 0; font-size: 1.25rem; }
.post-cta p { color: rgba(233, 244, 240, 0.85); margin: 0 0 0.9rem; font-size: 0.98rem; }
.post-cta .btn-primary { width: auto; }

/* footnote/disclaimer inside posts */
.post .fine { color: var(--muted-light); font-size: 0.82rem; margin: 2rem 0 0; }

/* ---- Related reading ---- */
.related { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.related h2 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* ---- Hub grid ---- */
.hub-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 4.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.hub-grid .post-card.featured { grid-column: 1 / -1; }
.hub-grid .post-card.featured h3 { font-size: 1.5rem; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .post-hero { padding-top: 5.5rem; }
  .hub-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
