/* Shared styles for TurboSSH blog pages */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px; border-bottom: 1px solid #e8eaf0;
  position: sticky; top: 0; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px); z-index: 100;
}
nav .logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #1a1a2e; text-decoration: none;
}
nav .logo img { width: 36px; height: 36px; border-radius: 8px; }
nav .nav-links a { color: #555; text-decoration: none; font-size: 14px; margin-left: 24px; }
nav .nav-links a:hover { color: #0066cc; }

/* ARTICLE SHELL */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }

.breadcrumb { font-size: 13px; color: #94a3b8; margin-bottom: 22px; }
.breadcrumb a { color: #0066cc; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.tag {
  display: inline-block; background: #e8f5ff; color: #0066cc;
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 18px;
}

.article h1 {
  font-size: 40px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 16px;
}

.meta {
  font-size: 13px; color: #94a3b8;
  padding-bottom: 28px; margin-bottom: 34px;
  border-bottom: 1px solid #eef1f6;
}

.lede { font-size: 19px; color: #475569; line-height: 1.7; margin-bottom: 34px; }

.article h2 {
  font-size: 26px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.01em; margin: 52px 0 16px;
}
.article h3 { font-size: 19px; font-weight: 700; margin: 34px 0 12px; }

.article p { color: #374151; margin-bottom: 18px; font-size: 16.5px; }
.article ul, .article ol { padding-left: 24px; color: #374151; margin-bottom: 20px; }
.article li { margin-bottom: 10px; font-size: 16.5px; }
.article a { color: #0066cc; }
.article strong { color: #1a1a2e; font-weight: 650; }

/* CODE */
code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.88em; background: #f1f5f9; color: #0f172a;
  padding: 2px 6px; border-radius: 4px;
}
pre {
  background: #0f172a; color: #e2e8f0;
  padding: 18px 20px; border-radius: 10px;
  overflow-x: auto; margin-bottom: 22px; line-height: 1.6;
}
pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; }

/* FIGURES — screenshots keep their native 16:9 ratio */
figure { margin: 32px 0; }
figure img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  border-radius: 10px; border: 1px solid #dde3f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10); display: block; background: #f8faff;
}
figcaption { font-size: 13px; color: #94a3b8; margin-top: 10px; text-align: center; }

/* CALLOUTS */
.callout {
  background: #f8faff; border: 1px solid #e2e8f0;
  border-left: 3px solid #0066cc;
  border-radius: 8px; padding: 18px 22px; margin: 28px 0;
}
.callout p { margin-bottom: 0; font-size: 15.5px; color: #475569; }
.callout p + p { margin-top: 12px; }
.callout strong { color: #1a1a2e; }

.callout--warn { border-left-color: #f59e0b; background: #fffbeb; border-color: #fde68a; }
.callout--warn p { color: #78350f; }

/* STEPS */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding-left: 46px; margin-bottom: 24px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #0066cc; color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps > li strong { display: block; margin-bottom: 4px; }

/* TABLE */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e8eaf0; }
th { background: #f8faff; font-weight: 650; color: #1a1a2e; font-size: 14px; }
td { color: #475569; vertical-align: top; }

/* FAQ */
.faq-item { border-bottom: 1px solid #eef1f6; padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; }
.faq-item p { margin-bottom: 0; color: #475569; font-size: 16px; }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5ff 100%);
  border: 1px solid #dbe6ff; border-radius: 14px;
  padding: 32px; margin: 52px 0 0; text-align: center;
}
.cta-box h2 { margin: 0 0 10px; font-size: 22px; }
.cta-box p { color: #475569; margin-bottom: 22px; font-size: 15.5px; }
/* Needs to out-specify `.article a` (0,1,1) above, which would otherwise paint
   the label the same blue as the button background and make it unreadable. */
a.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0066cc; color: #fff; padding: 13px 30px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,102,204,0.25);
  transition: background .2s;
}
a.btn-primary:hover { background: #0052a3; color: #fff; }

/* RELATED */
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid #eef1f6; }
.related h2 { font-size: 20px; margin: 0 0 18px; }
.related ul { list-style: none; padding-left: 0; margin: 0; }
.related li { margin-bottom: 12px; }
.related a { color: #0066cc; text-decoration: none; font-weight: 550; }
.related a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  border-top: 1px solid #e8eaf0; padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #888; flex-wrap: wrap; gap: 12px;
}
footer a { color: #0066cc; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  nav .nav-links a { margin-left: 14px; font-size: 13px; }
  .article { padding: 36px 20px 64px; }
  .article h1 { font-size: 30px; }
  .article h2 { font-size: 22px; margin-top: 40px; }
  .lede { font-size: 17px; }
  footer { justify-content: center; text-align: center; }
}
