/* ─────────────────────────────────────────────────────────────────
   loginboard · blog.css  v1
   Used by: /blog, /blog/* pages ONLY
   Fonts: Sora + Lora (same as public landing pages)
   DO NOT import this in app.css or any logged-in view.
   DO NOT add sidebar/dashboard styles here.
───────────────────────────────────────────────────────────────── */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens (match public landing pages exactly) ────────────────── */
:root {
  --ink:       #0b0d10;
  --ink-2:     #343840;
  --ink-3:     #6b7280;
  --ink-4:     #9ca3af;
  --rule:      #e5e7eb;
  --surface:   #f9fafb;
  --white:     #ffffff;
  --accent:    #1547d4;
  --accent-dk: #0f38a8;
  --accent-lt: #eff4ff;
  --green:     #059669;
  --green-lt:  #ecfdf5;
  --red:       #dc2626;
  --red-lt:    #fee2e2;
  --yellow-lt: #fef9c3;
  --serif:     'Lora', Georgia, serif;
  --sans:      'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r:         6px;
  --r-lg:      12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow:    0 2px 6px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.06);
}

/* ── Base ───────────────────────────────────────────────────────── */
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
.container        { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--slim  { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* ── Nav (identical to landing pages) ──────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner   { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo    { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: white;
}
.nav-logo-text { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-actions   { display: flex; align-items: center; gap: 8px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 9px 20px; border-radius: var(--r);
  border: none; cursor: pointer; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
.btn-ghost        { color: var(--ink-3); background: transparent; }
.btn-ghost:hover  { color: var(--ink); }
.btn-primary      { background: var(--accent); color: white; }
.btn-primary:hover{ background: var(--accent-dk); }
.btn-primary-lg   { font-size: 15px; padding: 13px 28px; }
.btn-outline      { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.btn-outline:hover{ border-color: var(--ink-3); }
.btn-white        { background: white; color: var(--ink); font-weight: 600; }
.btn-white:hover  { background: #f3f4f6; }
.btn-ghost-white  { background: transparent; color: rgba(255,255,255,.6); border: 1.5px solid rgba(255,255,255,.15); }
.btn-ghost-white:hover { color: white; }

/* ── Blog index hero ────────────────────────────────────────────── */
.blog-hero          { padding: 60px 0 48px; border-bottom: 1px solid var(--rule); }
.blog-hero-badge    {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-lt);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 18px;
}
.blog-hero-title    {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 400; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 14px;
}
.blog-hero-title em { font-style: italic; color: var(--accent); }
.blog-hero-sub      { font-size: 16px; line-height: 1.75; color: var(--ink-3); max-width: 520px; font-weight: 300; }

/* ── Blog index grid ────────────────────────────────────────────── */
.blog-section    { padding: 60px 0 80px; }
.section-label   { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 20px; }
.blog-grid       {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
}
.blog-card         { background: var(--white); padding: 26px 24px; display: flex; flex-direction: column; }
.blog-card-tag     { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.blog-card-title   { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-desc    { font-size: 13.5px; line-height: 1.7; color: var(--ink-3); flex: 1; margin-bottom: 18px; }
.blog-card-meta    { font-size: 11px; color: var(--ink-4); }
.blog-card-read    { font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 500; margin-top: 8px; display: inline-block; }
.blog-card-read:hover { text-decoration: underline; }

/* ── CTA band (index page) ──────────────────────────────────────── */
.cta-band {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 32px 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px;
}
.cta-band-title { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); line-height: 1.3; }
.cta-band-sub   { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

/* ── Post hero ──────────────────────────────────────────────────── */
.post-hero        { padding: 60px 0 48px; border-bottom: 1px solid var(--rule); }
.breadcrumb       { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-4); margin-bottom: 20px; }
.breadcrumb a     { color: var(--ink-4); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.post-badge       {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 18px;
}
.post-badge--blue   { color: var(--accent);  background: var(--accent-lt); }
.post-badge--green  { color: var(--green);   background: var(--green-lt);  }
.post-badge--red    { color: var(--red);     background: var(--red-lt);    }
.post-title       {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 400; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 18px; max-width: 700px;
}
.post-title em    { font-style: italic; color: var(--accent); }
.post-sub         { font-size: 16px; line-height: 1.75; color: var(--ink-3); max-width: 560px; font-weight: 300; margin-bottom: 20px; }
.post-meta        { font-size: 12px; color: var(--ink-4); }

/* ── Post layout (prose + sidebar) ─────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px; align-items: start;
  padding: 60px 0 80px;
}
@media (max-width: 768px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

/* ── Prose ──────────────────────────────────────────────────────── */
.prose h2             { font-family: var(--serif); font-size: clamp(20px, 2.8vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3             { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.prose p              { font-size: 15px; line-height: 1.85; color: var(--ink-2); margin-bottom: 16px; }
.prose ul, .prose ol  { padding-left: 20px; margin-bottom: 18px; }
.prose li             { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin-bottom: 6px; }
.prose strong         { font-weight: 600; color: var(--ink); }
.prose a              { color: var(--accent); text-decoration: none; }
.prose a:hover        { text-decoration: underline; }
.prose hr             { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

/* ── Callout boxes ──────────────────────────────────────────────── */
.callout         { border-radius: var(--r-lg); padding: 20px 22px; margin: 28px 0; }
.callout--blue   { background: var(--accent-lt); border-left: 3px solid var(--accent); }
.callout--yellow { background: var(--yellow-lt); border-left: 3px solid #ca8a04; }
.callout--red    { background: var(--red-lt);    border-left: 3px solid var(--red); }
.callout-label   { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.callout--blue   .callout-label { color: var(--accent); }
.callout--yellow .callout-label { color: #92400e; }
.callout--red    .callout-label { color: #991b1b; }
.callout p       { margin-bottom: 0; font-size: 14px; line-height: 1.7; }
.callout--blue   p { color: #1e3a8a; }
.callout--yellow p { color: #78350f; }
.callout--red    p { color: #7f1d1d; }

/* ── Numbered rule list ─────────────────────────────────────────── */
.rule-list  { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.rule-item  { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.rule-num   {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rule-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.rule-desc  { font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

/* ── Icon feature list ──────────────────────────────────────────── */
.feature-list       { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; }
.feature-list-item  { display: flex; align-items: flex-start; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.feature-list-item:last-child { border-bottom: none; }
.feature-list-icon  { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.feature-list-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.feature-list-desc  { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ── Checklist ──────────────────────────────────────────────────── */
.checklist          { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; margin: 24px 0; }
.checklist-head     { padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.checklist-item     { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.checklist-item:last-child { border-bottom: none; }
.checklist-check    {
  width: 18px; height: 18px; border-radius: 3px;
  background: var(--green-lt); border: 1.5px solid #6ee7b7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; font-size: 10px; color: var(--green);
}
.checklist-text         { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.checklist-text strong  { color: var(--ink); font-weight: 600; }

/* ── Example box (good/bad) ─────────────────────────────────────── */
.example-box          { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; box-shadow: var(--shadow-sm); }
.example-box-head     { background: #0e1829; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; }
.example-box-title    { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; }
.example-box-badge    { font-size: 10px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.example-box-badge--bad  { background: rgba(239,68,68,.2);  color: #fca5a5; }
.example-box-badge--good { background: rgba(5,150,105,.25); color: #6ee7b7; }
.example-box-body     { background: var(--white); padding: 18px 20px; }
.example-field        { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.example-field:last-child { border-bottom: none; }
.example-field-label  { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.example-field-value  { font-size: 13.5px; line-height: 1.6; }
.example-field-value--bad  { color: #991b1b; }
.example-field-value--good { color: #065f46; }

/* ── Comparison table ───────────────────────────────────────────── */
.compare-table         { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; font-size: 13.5px; }
.compare-table th      { background: var(--surface); padding: 12px 16px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--rule); }
.compare-table td      { padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .good   { color: var(--green); }
.compare-table .bad    { color: var(--red); }

/* ── Related posts grid ─────────────────────────────────────────── */
.related-grid        { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; margin-top: 32px; }
.related-card        { background: var(--white); padding: 22px 20px; }
.related-card-tag    { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.related-card-title  { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.related-card-title a{ color: inherit; text-decoration: none; }
.related-card-title a:hover { color: var(--accent); }
.related-card-desc   { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ── Sidebar ────────────────────────────────────────────────────── */
.post-sidebar            { position: sticky; top: 80px; }
.sidebar-card            { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 20px; margin-bottom: 16px; }
.sidebar-card-title      { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.sidebar-links           { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a         { font-size: 13px; color: var(--accent); text-decoration: none; line-height: 1.4; }
.sidebar-links a:hover   { text-decoration: underline; }
.sidebar-cta             { background: linear-gradient(135deg, #1547d4, #0f38a8); border-radius: var(--r-lg); padding: 22px 20px; margin-bottom: 16px; }
.sidebar-cta-title       { font-family: var(--serif); font-size: 18px; font-weight: 400; color: white; margin-bottom: 8px; line-height: 1.3; }
.sidebar-cta-sub         { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 16px; line-height: 1.6; }
.sidebar-cta-btn         { display: block; text-align: center; background: white; color: var(--ink); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: var(--r); text-decoration: none; }
.sidebar-cta-btn:hover   { background: #f3f4f6; }

/* ── CTA section (page footer) ──────────────────────────────────── */
.page-cta         { background: #0e1829; padding: 72px 0; }
.page-cta-inner   { text-align: center; }
.page-cta-title   { font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); font-weight: 400; color: white; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 12px; }
.page-cta-title em{ font-style: italic; color: #93c5fd; }
.page-cta-sub     { font-size: 15px; color: rgba(255,255,255,.5); max-width: 400px; margin: 0 auto 28px; font-weight: 300; line-height: 1.7; }
.page-cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.page-cta-note    { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.25); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer        { border-top: 1px solid var(--rule); padding: 28px 0; }
.site-footer-inner  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links       { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a     { font-size: 13px; color: var(--ink-4); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy        { font-size: 12px; color: var(--ink-4); }
