/* AtmoForge Help Portal Theme Override — Sky-Blue Brand + Clean Markdown & Pygments */
:root {
  --af-green: #0284C7;
  --af-green-dark: #0369A1;
  --af-green-deep: #0C4A6E;
  --af-green-soft: #E0F2FE;
  --font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-family-monospace: "JetBrains Mono", "Cascadia Mono", "Consolas", monospace;
}

html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#nav-path {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: #FFFFFF;
}

div.contents img.af-doc-img,
div.contents p > img {
  display: block;
  max-width: 92%;
  height: auto;
  margin: 14px auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.08);
}

.af-doc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0C4A6E;
  color: #FFFFFF;
  padding: 7px 18px;
  font-size: 13px;
  font-family: var(--font-family);
}
.af-doc-topbar a {
  color: #E0F2FE !important;
  text-decoration: none;
  font-weight: 600;
}
.af-doc-topbar a:hover { color: #FFFFFF !important; text-decoration: underline; }
.af-tb-brand { font-size: 14px; font-weight: 700 !important; color: #FFFFFF !important; }
.af-tb-links { display: flex; gap: 16px; flex-wrap: wrap; }

#titlearea {
  padding: 6px 14px;
  border-bottom: 3px solid var(--af-green);
  background: linear-gradient(90deg, #F0F9FF 0%, #FFFFFF 100%);
}
#titlearea table {
  border-collapse: collapse;
}
#projectrow {
  height: 46px;
}
#projectlogo {
  vertical-align: middle !important;
  padding: 0 2px 0 0;
}
#projectlogo img {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto;
}
#projectalign {
  vertical-align: middle !important;
  padding-left: 10px;
}
#projectname {
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
}
#projectbrief { color: #475569; margin-top: 2px; }

div.contents {
  max-width: 1080px;
  padding: 18px 28px 46px;
  line-height: 1.75;
  font-size: 15px;
  font-family: var(--font-family);
}

div.contents h1, div.contents h2 {
  color: #0F172A;
  border-bottom: 2px solid var(--af-green-soft);
  padding-bottom: 6px;
  margin-top: 30px;
}
div.contents h3 { color: var(--af-green-deep); margin-top: 22px; }
div.contents h4 { color: #0369A1; margin-top: 18px; }
div.contents h5, div.contents h6 { color: #334155; margin-top: 14px; font-size: 1em; font-weight: 700; }

div.contents p { margin: 10px 0; }
div.contents ul, div.contents ol { margin: 8px 0 12px; padding-left: 24px; }
div.contents li { margin: 4px 0; }

div.contents code {
  font-family: var(--font-family-monospace);
  font-size: 0.9em;
  background: #F0F9FF;
  color: #0C4A6E;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #BAE6FD;
}
.af-code-wrap pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.88em;
}

div.contents table,
table.markdownTable {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0 18px;
  font-size: 14px;
  display: table;
  overflow-x: auto;
}
div.contents table th,
table.markdownTable th {
  background: #0C4A6E;
  color: #FFFFFF;
  border: 1px solid #075985;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
}
div.contents table td,
table.markdownTable td {
  border: 1px solid #CBD5E1;
  padding: 8px 12px;
  vertical-align: top;
}
div.contents table tr:nth-child(even) td,
table.markdownTable tr:nth-child(even) td {
  background: #F4F9FE;
}

.af-code-wrap {
  position: relative;
  margin: 12px 0 16px;
  border: 1px solid #BAE6FD;
  border-left: 4px solid var(--af-green);
  border-radius: 6px;
  background: #F8FBFF;
  overflow: hidden;
}
.af-code-wrap pre {
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  font-family: var(--font-family-monospace);
  font-size: 13.5px;
  line-height: 1.55;
  background: transparent;
}
.af-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #FFFFFF;
  color: #0C4A6E;
  border: 1px solid #7DD3FC;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.af-copy-btn:hover {
  background: var(--af-green);
  color: #FFFFFF;
  border-color: var(--af-green);
}

blockquote {
  border-left: 4px solid var(--af-green);
  background: var(--af-green-soft);
  padding: 10px 16px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
  color: #0F172A;
}

.mermaid {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 14px;
  margin: 14px 0;
  overflow-x: auto;
}

/* Clean Pygments Light Palette */
.af-hl .c, .af-hl .ch, .af-hl .cm, .af-hl .cpf, .af-hl .c1, .af-hl .cs { color: #64748B; font-style: italic; }
.af-hl .k, .af-hl .kc, .af-hl .kd, .af-hl .kn, .af-hl .kp, .af-hl .kr, .af-hl .kt { color: #0369A1; font-weight: 700; }
.af-hl .s, .af-hl .sa, .af-hl .sb, .af-hl .sc, .af-hl .dl, .af-hl .sd, .af-hl .s2, .af-hl .se, .af-hl .sh, .af-hl .si, .af-hl .sx, .af-hl .sr, .af-hl .s1, .af-hl .ss { color: #B45309; }
.af-hl .m, .af-hl .mb, .af-hl .mf, .af-hl .mh, .af-hl .mi, .af-hl .il, .af-hl .mo { color: #0284C7; }
.af-hl .nb, .af-hl .nf, .af-hl .fm { color: #1D4ED8; }
.af-hl .nv, .af-hl .vc, .af-hl .vg, .af-hl .vi, .af-hl .vm { color: #7C3AED; }
.af-hl .o, .af-hl .ow { color: #334155; font-weight: 600; }
.af-hl .err { color: inherit; background: transparent; }

.navpath li.footer a { color: #0369A1; font-weight: 600; text-decoration: none; }
.navpath li.footer a:hover { text-decoration: underline; }
