/* Shared styles for SiteStake guide articles (matches homepage design system). */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #0d47a1;
  --primary-dark: #0a3578;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --border: #e4e8ef;
  --success: #2e7d32;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #fb923c;
    --accent-hover: #f97316;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #4ade80;
  }
  .nav { background: rgba(15,23,42,0.95) !important; }
  .container { background: var(--bg) !important; box-shadow: 0 2px 12px rgba(0,0,0,.3) !important; }
  h2 { border-bottom-color: #1e3a5f !important; }
  h3 { color: #60a5fa !important; }
  strong { color: #60a5fa !important; }
  th { background: #334155 !important; color: #fff !important; }
  tr:nth-child(even) { background: #1e293b !important; }
  .meta { background: #14532d !important; border-left-color: #4ade80 !important; }
  .tip { background: #172554 !important; border-left-color: #3b82f6 !important; }
  .cta { background: linear-gradient(135deg, #1e3a8a, #1e40af) !important; }
  .breadcrumb a { color: #60a5fa !important; }
  code { background: #1e293b !important; color: #fca5a5 !important; }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-alt);
  padding-top: 64px;
}
.container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg);
  padding: 40px 40px 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-height: 100vh;
}
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
h1 { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #e3f2fd; }
h3 { font-size: 18px; font-weight: 600; color: #1565c0; margin-top: 24px; margin-bottom: 12px; }
p { margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--text-muted); margin-bottom: 20px; }
.meta {
  background: #f1f8e9; border-left: 4px solid #7cb342; padding: 12px 18px;
  border-radius: 8px; margin: 0 0 28px; font-size: 13px; color: var(--text-muted);
}
ul, ol { margin: 12px 0 12px 24px; }
li { margin-bottom: 8px; }
strong { color: #1565c0; }
code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 13px; color: #d32f2f; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--primary); color: #fff; font-weight: 600; }
tr:nth-child(even) { background: #fafafa; }
.tip { background: #e3f2fd; border-left: 4px solid #1976d2; padding: 14px 20px; margin: 16px 0; border-radius: 8px; font-size: 14px; }
.steps { counter-reset: step; list-style: none; margin-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.faq-q { font-weight: 700; color: var(--text); margin-top: 18px; margin-bottom: 6px; }
.cta {
  background: linear-gradient(135deg, #0d47a1, #1565c0); color: #fff;
  border-radius: 12px; padding: 28px 28px; margin: 36px 0 8px; text-align: center;
}
.cta h2 { color: #fff; border: none; margin: 0 0 8px; padding: 0; font-size: 22px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,111,0,.3); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.disclaimer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* Shared navigation (matches homepage) */
.nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(13,71,161,.25); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

/* Shared footer (matches homepage) */
footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1140px; margin: 0 auto 32px; padding: 0 24px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand p { font-size: 14px; opacity: .7; line-height: 1.6; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; font-size: 13px; opacity: .6; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .container { padding: 24px 16px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  table { font-size: 12px; }
  th, td { padding: 6px 8px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
}