/* NichePilot Troubleshooting — screen.css
   Ported from data/tmp/plans/site-template/troubleshooting-blue-mockup/style.css (design tokens) and
   src/lib/siteTemplates/troubleshooting-blue.ts CUSTOM_CSS (gaw-* rules). Mobile-first, system fonts only,
   no external assets. Content wrapper class chosen: .post-content (used by post.hbs and page.hbs). */

:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --soft: #eef4ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .06);
  --max: 1180px;
  --content: 760px;
  --sidebar: 330px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gh-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, inherit); }
.kg-width-wide { width: 100%; max-width: calc(var(--content) + 80px); margin-left: auto; margin-right: auto; }
.kg-width-full { width: 100vw; max-width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--max), calc(100% - 36px)); margin: auto; }

/* Header */
.topbar { background: #0b1220; color: #cbd5e1; text-align: center; font-size: 13px; padding: 8px 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(9px); }
.header-row { height: 70px; display: flex; align-items: center; gap: 28px; }
.logo { font-size: 24px; font-weight: 850; letter-spacing: -.8px; }
.logo span { color: var(--blue); }
.nav { margin-left: auto; display: flex; gap: 22px; font-weight: 650; font-size: 14px; }
.nav a:hover { color: var(--blue); }
ul.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; white-space: nowrap; }
.mobile-nav ul.nav { display: block; margin: 0; }
.header-search-btn { width: 220px; text-align: left; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: #fafafa; color: var(--muted); font: inherit; cursor: pointer; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #eef1f4; font-weight: 650; }
.mobile-nav a:last-child { border-bottom: 0; }

/* Main / hero */
.site-main { min-height: 60vh; }
.hero { padding: 56px 0 38px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; color: var(--blue); }
h1 { font-size: clamp(38px, 5.3vw, 64px); line-height: 1.04; letter-spacing: -2.2px; margin: 12px 0 18px; }
h2 { line-height: 1.2; }
.lead { font-size: 19px; color: var(--muted); }
.searchbox { display: flex; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 14px; box-shadow: var(--shadow); margin-top: 24px; }
.searchbox input { flex: 1; border: 0; outline: 0; padding: 13px; font: inherit; min-width: 0; background: transparent; }
.searchbox button, .btn { border: 0; background: var(--blue); color: #fff; border-radius: 10px; padding: 0 20px; font-weight: 800; cursor: pointer; }
.hero-card { background: linear-gradient(155deg, #0f1f3b, #1d4ed8); color: #fff; padding: 28px; border-radius: 24px; min-height: 350px; box-shadow: 0 20px 60px rgba(37, 99, 235, .20); }
.issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.issue { padding: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .09); border-radius: 13px; font-weight: 750; }

/* Sections / cards */
.section { padding: 56px 0; }
.section.white { background: #fff; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.section-head h2 { font-size: 33px; letter-spacing: -1px; margin: 0; }
.section-head p { max-width: 580px; color: var(--muted); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card:hover { box-shadow: var(--shadow); border-color: #bfd0ff; }
.card h3 { margin: 0 0 7px; }
.card p { color: var(--muted); font-size: 14px; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--blue); font-weight: 900; margin-bottom: 16px; }
.link { font-weight: 800; color: var(--blue); font-size: 14px; }

/* Breadcrumb / layout shell */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.content-shell { display: grid; grid-template-columns: minmax(0, var(--content)) minmax(260px, var(--sidebar)); gap: 42px; align-items: start; padding: 28px 0 56px; }
.content-only { max-width: 820px; margin: auto; padding: 28px 0 60px; }
.article, .page-card, .archive-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.article h1, .page-card h1, .archive-card h1 { font-size: 42px; letter-spacing: -1.4px; line-height: 1.08; margin: 0 0 12px; }
.meta { font-size: 14px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.feature-image { border-radius: 14px; overflow: hidden; margin: 0 0 24px; }

/* Post content wrapper (Ghost's {{content}}) */
.post-content h2 { font-size: 28px; margin-top: 36px; }
.post-content h3 { font-size: 21px; margin-top: 28px; }
.post-content p, .post-content li { font-size: 17px; color: #273142; }
.post-content code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 6px; }
.post-content pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 16px; overflow: auto; }
.post-content pre code { background: transparent; border: 0; padding: 0; }
.post-content table { border-collapse: collapse; width: 100%; margin: 20px 0; }
.post-content table th, .post-content table td { border: 1px solid var(--line); padding: 8px 10px; }
.post-content img { border-radius: 12px; }
.post-content blockquote { border-left: 4px solid var(--line); padding: 12px 18px; color: var(--muted); font-style: italic; margin: 20px 0; }
.callout { background: var(--soft); border-left: 4px solid var(--blue); padding: 17px 18px; border-radius: 10px; margin: 24px 0; }
.toc { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.toc a { display: block; color: var(--blue); margin: 5px 0; }

/* gaw-* classes emitted by the content pipeline (src/lib/pipeline, src/lib/siteTemplates) */
.gaw-callout { background: var(--soft); border-left: 4px solid var(--blue); padding: 16px 18px; border-radius: 10px; margin: 20px 0; }
.gaw-quote { border-left: 4px solid var(--line); padding: 12px 18px; color: var(--muted); font-style: italic; margin: 20px 0; }
.gaw-table-sources { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gaw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.gaw-grid-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.gaw-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.gaw-card:hover { border-color: #bfd0ff; }
.gaw-affiliate, .gaw-product, .gaw-compare { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 20px 0; }
.gaw-disclosure { font-size: 13px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 16px 0; }
.gaw-badge, .gaw-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--blue2); border-radius: 999px; padding: 4px 10px; }
.gaw-pros, .gaw-cons { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 32px; margin: 10px 0; }
.gaw-pros { border-left: 4px solid #13612e; }
.gaw-cons { border-left: 4px solid #b82105; }
.gaw-category-list { list-style: none; margin: 0; padding: 0; }
.gaw-category-list li { padding: 6px 0; }
.gaw-category-list a { color: var(--blue); font-weight: 600; }
.gaw-cluster-hub, .gaw-cluster-parent { display: inline-block; font-size: 12px; font-weight: 800; color: var(--blue2); background: var(--soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.gaw-photo-credit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.gaw-hero { background: var(--soft); border-radius: 18px; padding: 24px; margin: 0 0 24px; }
.gaw-link { color: var(--blue); font-weight: 700; }
.gaw-humanize { color: var(--ink); }
.gaw-bg { background: var(--bg); }
.gaw-soft { background: var(--soft); }
.gaw-blue { color: var(--blue); }
.gaw-accent { color: var(--blue); }
.gaw-ink { color: var(--ink); }
.gaw-muted { color: var(--muted); }
.gaw-line { border-color: var(--line); }
.gaw-radius { border-radius: var(--radius); }

/* Sidebar */
.sidebar { display: grid; gap: 18px; position: sticky; top: 94px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.widget h3 { font-size: 16px; margin: 0 0 12px; }
.widget a { display: block; padding: 8px 0; border-bottom: 1px solid #eef1f4; font-size: 14px; }
.widget a:last-child { border: 0; }
.widget p { color: var(--muted); font-size: 14px; }
.widget input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }

/* Post lists / pagination */
.post-list { display: grid; gap: 14px; }
.post-item { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.post-item.no-image { grid-template-columns: 1fr; }
.post-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.post-item small { color: var(--blue); font-weight: 800; }
.post-item h2, .post-item h3 { font-size: 21px; margin: 5px 0 6px; }
.post-item p { color: var(--muted); font-size: 14px; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pagination { display: flex; gap: 8px; margin-top: 24px; }
.page-num { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 0 10px; }
.page-num.active { background: var(--blue); color: #fff; }

/* Not found */
.not-found { text-align: center; max-width: 720px; margin: 70px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 50px 32px; }
.not-found h1 { font-size: 72px; margin: 0; color: var(--blue); }
.not-found h2 { font-size: 30px; margin: 4px 0 10px; }
.not-found p { color: var(--muted); }

/* Footer */
.site-footer { background: #08101e; color: #cbd5e1; padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; }
.site-footer a, .site-footer p { font-size: 14px; color: #94a3b8; }
.site-footer a { display: block; margin: 7px 0; }
.copy { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 19px; font-size: 13px; color: #718096; }

/* Author archive */
.author-header { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 24px; }
.author-header img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; }

@media (max-width: 900px) {
  .nav, .header-search-btn { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .content-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .issue-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .article, .page-card, .archive-card { padding: 24px 19px; border-radius: 14px; }
  .article h1, .page-card h1, .archive-card h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .searchbox { display: grid; }
  .searchbox button { height: 44px; }
  .post-item { grid-template-columns: 1fr; }
  .post-item img { width: 100%; height: 160px; }
}

/* 2026-09-26 trust elements (byline, disclosure, author box) — modelled on the owner's Bloggent site */
.article-byline a { color: inherit; font-weight: 650; }
.article-disclosure { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }
.article-disclosure a { color: var(--blue); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 36px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.author-name { font-weight: 800; font-size: 18px; margin: 2px 0 4px; }
.author-bio { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.author-more { color: var(--blue); font-weight: 650; font-size: 14px; }
.site-footer .footer-grid ul.nav { display: block; margin: 0; }
.site-footer .footer-grid ul.nav li { display: block; margin: 0 0 8px; }
