/* NagMon guides — shared stylesheet. Follows the ops-console theme of the homepage. */
/* Self-hosted fonts (latin subset, was Google Fonts) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/inter-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/inter-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-0: #0B1626;
  --navy-1: #101E33;
  --navy-2: #1A2C47;
  --blue: #1E6FE8;
  --blue-strong: #1558C0;
  --ok: #23A55A;
  --warn: #E8A020;
  --crit: #E5484D;
  --paper: #F4F6FA;
  --card: #FFFFFF;
  --ink: #16233A;
  --ink-muted: #51617D;
  --line: #DCE3EE;
  --on-dark: #E8EEF9;
  --on-dark-muted: #92A5C4;
  --radius: 10px;
  --font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 10px 30px rgba(11, 22, 38, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
a { color: var(--blue-strong); }
img { max-width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

/* Status dots */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.dot--ok { background: var(--ok); }
.dot--warn { background: #C77E00; } /* darker than --warn: 3:1 non-text contrast on light backgrounds */
.dot--crit { background: var(--crit); }

/* Top bar */
.topbar { background: var(--navy-0); color: var(--on-dark); }
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0; flex-wrap: wrap;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 800; font-size: 19px; }
.topbar .brand img { width: 36px; height: 36px; border-radius: 9px; }
.topbar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; font-weight: 500; display: inline-block; padding: 10px 2px; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: #fff; }

/* Page header */
.page-head {
  background: linear-gradient(165deg, var(--navy-0) 0%, var(--navy-1) 55%, var(--navy-2) 100%);
  color: var(--on-dark);
  padding: 44px 0 52px;
}
.page-head .eyebrow {
  font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted);
  text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 12px;
}
.page-head h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; color: #fff; margin: 0 0 14px; max-width: 22ch; }
.page-head .lede { color: var(--on-dark-muted); font-size: 18px; max-width: 62ch; margin: 0; }
.page-head .meta { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted); }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--on-dark-muted); margin: 0 0 20px; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* Article body */
.article { max-width: 780px; margin: 0 auto; padding: 48px 24px 24px; }
.article h2 { font-size: 26px; font-weight: 800; margin: 44px 0 14px; }
.article h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.article p, .article ul, .article ol { margin: 0 0 16px; }
.article li { margin: 6px 0; }
.article code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: #E8EDF6; border-radius: 4px; padding: 1px 6px;
}
.article pre {
  background: var(--navy-0); color: var(--on-dark);
  border-radius: var(--radius); padding: 18px 20px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.6;
  margin: 0 0 18px;
}
.article pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.article th, .article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.article .table-wrap { overflow-x: auto; margin: 0 0 18px; }
.article .table-wrap table { margin: 0; min-width: 520px; }
.article blockquote {
  margin: 0 0 18px; padding: 12px 18px;
  border-left: 3px solid var(--blue); background: #EAEFF7; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-muted);
}

/* Callout / note boxes */
.note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; font-size: 15.5px;
}
.note.warn { border-left-color: var(--warn); }

/* Table of contents */
.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 28px;
}
.toc strong { display: block; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* App CTA card */
.cta-card {
  background: linear-gradient(165deg, var(--navy-0) 0%, var(--navy-2) 100%);
  color: var(--on-dark); border-radius: 14px; padding: 26px 28px; margin: 40px 0 8px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.cta-card img { width: 64px; height: 64px; border-radius: 14px; box-shadow: var(--shadow); }
.cta-card .cta-copy { flex: 1 1 320px; }
.cta-card h2, .cta-card h3 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.cta-card p { margin: 0; color: var(--on-dark-muted); font-size: 15px; }
.cta-card .btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--blue); color: #fff; padding: 11px 20px; border-radius: var(--radius);
}
.cta-card .btn:hover { background: var(--blue-strong); }

/* Guide cards (index) */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 48px 0; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px; box-shadow: 0 4px 14px rgba(22, 35, 58, 0.06);
  display: flex; flex-direction: column;
}
.guide-card .kicker { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 8px; }
.guide-card h2 { font-size: 20px; margin: 0 0 10px; }
.guide-card h2 a { text-decoration: none; color: var(--ink); }
.guide-card h2 a:hover { color: var(--blue-strong); }
.guide-card p { margin: 0 0 14px; color: var(--ink-muted); font-size: 15px; flex: 1; }
.guide-card .more { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; padding: 10px 2px; }

/* Section titles on the hub page */
.hub-section { padding: 40px 0 8px; }
.hub-section .section-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.hub-section .section-sub { color: var(--ink-muted); margin: 0 0 4px; max-width: 70ch; }
.hub-section .guide-grid { padding: 24px 0 8px; }

/* Prev / next pager on guide pages */
.pager { display: flex; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a {
  flex: 1; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
}
.pager a:hover { border-color: var(--blue); }
.pager .dir { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 4px; }
.pager .next { text-align: right; }
.pager strong { font-size: 15px; }

/* Related guides */
.related { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 28px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.related li:last-child { border-bottom: none; }
.related a { text-decoration: none; font-weight: 600; }
.related a:hover { text-decoration: underline; }
.related span { display: block; font-size: 14px; color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--navy-0); color: var(--on-dark-muted); padding: 36px 0; font-size: 14.5px; margin-top: 56px; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-block; padding: 10px 2px; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .guide-grid { grid-template-columns: 1fr; }
  .article { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
