/* Page body + .page-card styling for utility/legal pages (full navbar/footer markup lives on each page + css/site-chrome.css). Legacy .site-nav/.site-shell rules kept for backwards compatibility — new pages should not use them. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  font-size: 0.96em;
  /* Short utility pages (e.g. Subscribe): stretch main so footer sits at viewport bottom—no gap below copyright */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .navbar {
  flex-shrink: 0;
}

body > .site-main {
  flex: 1 0 auto;
}

body > .footer,
body > footer.footer {
  flex-shrink: 0;
}

body > #footer-copyright-text {
  flex-shrink: 0;
}

/* Article / legal body links only — never target global `a`, or nav + dropdown inherit underlines */
.page-card a {
  color: #2563eb;
  text-decoration: none;
}

.page-card a:hover {
  text-decoration: underline;
}

.site-shell {
  flex: 1 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-nav {
  background-color: #1f2937;
  color: #ffffff;
  padding: 0.85rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.site-nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark span:last-child {
  letter-spacing: 0.03em;
}

.site-nav-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-links a {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.site-nav-links a:hover {
  color: #34a853;
  background: rgba(52, 168, 83, 0.1);
}

.site-main {
  flex: 1;
  /* Bottom spacing before footer band — tighter so utility pages match US calculator footer rhythm */
  padding: 2.25rem 2rem clamp(60px, 8vw, 88px);
}

.page-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 1.75rem 1.65rem 1.85rem;
}

.page-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.page-card h1 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
  color: #111827;
}

.page-lede {
  font-size: 1.02rem;
  color: #4b5563;
  margin-bottom: 1.35rem;
}

.page-card h2 {
  font-size: 1.08rem;
  margin: 1.35rem 0 0.45rem;
  color: #111827;
}

.page-card p,
.page-card ul {
  margin-bottom: 0.75rem;
  color: #374151;
}

.page-card ul {
  padding-left: 1.15rem;
}

.note-box {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.92rem;
}

.site-footer-mini {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 1.35rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}
