/* Kubernetes Zero to Hero static course */
:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --rule: #dfe7e2;
  --rule-strong: #c6d4ce;
  --ink: #101820;
  --ink-muted: #52616b;
  --ink-soft: #7d8a92;
  --accent: #1f6feb;
  --accent-soft: #e8f0ff;
  --gke: #16805b;
  --gke-soft: #e2f4ec;
  --lab: #aa6a16;
  --lab-soft: #fff2da;
  --warn: #b3452f;
  --warn-soft: #fdeae4;
  --container: 800px;
  --wide: 1100px;
  --radius: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 96px;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 247, .9);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  min-width: 0;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar .course { font-weight: 700; color: var(--ink); white-space: nowrap; }
.topbar .chap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
section { padding: var(--s8) 0; border-bottom: 1px solid var(--rule); }
.hero { padding: var(--s9) 0 var(--s8); }
.chapter-hero { padding-bottom: var(--s7); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-muted); font-size: 13px; font-weight: 600; margin-bottom: var(--s5); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0; }
h1 { font-size: 52px; font-weight: 800; }
h2 { font-size: 30px; margin-top: var(--s7); margin-bottom: var(--s4); }
h3 { font-size: 22px; margin-top: var(--s6); margin-bottom: var(--s3); }
h4 { font-size: 17px; margin-top: var(--s5); margin-bottom: var(--s2); }
h5, h6 { font-size: 15px; margin-top: var(--s4); margin-bottom: var(--s2); }
.accent { color: var(--accent); }
.subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--ink-muted);
  font-family: Newsreader, Georgia, serif;
  font-size: 23px;
  font-style: italic;
  line-height: 1.45;
}
.objective {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gke);
  border-radius: var(--radius);
}
.objective .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gke);
  margin-bottom: 6px;
}
.chapter-progress { margin-top: var(--s5); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.overview { background: var(--surface); }
.content { padding: var(--s7) 0; }
.content .container > :first-child { margin-top: 0; }
.content p { margin: 0 0 var(--s4); }
.content strong { font-weight: 700; overflow-wrap: break-word; }
.content blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
}
.content blockquote p:last-child { margin-bottom: 0; }
.content ul, .content ol { padding-left: 1.3rem; margin: 0 0 var(--s5); }
.content li { margin: 7px 0; padding-left: 3px; }
.content hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s6) 0; }
.module-intro-heading {
  display: inline-flex;
  margin: 0 0 var(--s4);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gke-soft);
  color: var(--gke);
  font-size: 13px;
  font-weight: 800;
}
code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: #eef2f7;
  border: 1px solid #dce4ec;
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
pre {
  margin: var(--s5) 0;
  padding: var(--s5);
  overflow-x: auto;
  color: #e5eef8;
  background: #101820;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
pre code { display: block; padding: 0; color: inherit; background: transparent; border: 0; font-size: 14px; line-height: 1.65; overflow-wrap: normal; word-break: normal; white-space: pre; }
.diagram {
  margin: var(--s5) 0;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-x: auto;
}
.table-wrap { overflow-x: auto; margin: var(--s5) 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
th { background: var(--surface-soft); color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.parts { display: grid; gap: var(--s7); }
.part-block h2 { margin-top: 0; }
.part-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gke);
  margin-bottom: var(--s2);
}
.chapter-list { display: grid; gap: 12px; }
.chapter-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.chapter-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(16, 24, 32, .06); }
.chapter-card .num { color: var(--accent); font-weight: 800; font-size: 14px; }
.chapter-card .title { display: block; font-weight: 800; line-height: 1.3; }
.chapter-card .sub { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.chapter-card .status { font-size: 12px; color: var(--gke); font-weight: 800; }
.chapter-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
}
.nav-inner a { text-decoration: none; }
.nav-inner a:last-child { text-align: right; }
footer { padding: var(--s6) 0; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 25px; }
  .subtitle { font-size: 20px; }
  .topbar-inner { gap: 12px; }
  .chapter-card { grid-template-columns: 38px 1fr; }
  .chapter-card .status { display: none; }
  .nav-inner { grid-template-columns: 1fr; }
  .nav-inner a:last-child { text-align: left; }
}
