/* InternQuest guides — shared stylesheet */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #3fb950;
  --link: #58a6ff;
  --warn: #f85149;
  --code-bg: #1c2128;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9em;
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.5;
  margin: 1.2rem 0;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(10px);
}
.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo:hover { text-decoration: none; }
.site-nav-cta {
  background: var(--accent);
  color: #0d1117;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
}
.site-nav-cta:hover { text-decoration: none; opacity: 0.9; }

/* Container */
.guide-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.guide-hub-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { margin: 0 0.4rem; }

/* Article meta */
.article-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.article-meta .pill {
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Headings */
h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  color: #fff;
}
h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.7rem;
  color: #fff;
}

p, ul, ol { margin: 0 0 1.1rem; color: #d0d7de; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  background: rgba(63, 185, 80, 0.04);
  border-radius: 0 6px 6px 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Lead paragraph */
.lead {
  font-size: 1.15rem;
  color: #c9d1d9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* CTA box */
.cta-box {
  margin: 2.5rem 0;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.08), rgba(88, 166, 255, 0.05));
  border: 1px solid rgba(63, 185, 80, 0.25);
  border-radius: 12px;
}
.cta-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fff;
}
.cta-box p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #0d1117;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.cta-button:hover { text-decoration: none; opacity: 0.9; }

/* Related guides */
.related-guides {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-guides h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}
.related-guides ul {
  list-style: none;
  padding: 0;
}
.related-guides li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.related-guides a {
  color: var(--text);
  font-weight: 600;
}
.related-guides a:hover { color: var(--link); }
.related-guides .desc {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 0.2rem;
}

/* Hub */
.hub-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.hub-hero h1 { font-size: 2.6rem; margin-bottom: 0.6rem; }
.hub-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
}
.hub-card:hover {
  border-color: rgba(63, 185, 80, 0.4);
  transform: translateY(-2px);
}
.hub-card a { color: var(--text); }
.hub-card a:hover { text-decoration: none; }
.hub-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}
.hub-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--muted); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface);
  font-weight: 700;
  color: #fff;
}

@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.3rem; }
  .guide-wrap { padding: 2rem 1.2rem 3rem; }
  .hub-hero h1 { font-size: 2rem; }
}
