/* AZORID docs site — Datapoint branding overlay for Asciidoctor's html5 backend. */

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Monaspace Neon";
  src: url("fonts/MonaspaceNeonFrozen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Monaspace Neon";
  src: url("fonts/MonaspaceNeonFrozen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --brand: #2b50c7;
  --brand-dark: #1c3691;
  --ink: #1a1d29;
  --ink-soft: #4c5266;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --border: #e2e5f1;
  --code-bg: #f7f8fc;
  --sidebar-w: 280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

/* ---- Header / title block ---- */
#header {
  padding: 2.5rem 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
#header > h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}
#header .details {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
#header .details span.revnumber,
#header .details span.revdate {
  margin-right: 0.75rem;
}

/* ---- Left TOC sidebar (toc=left) ---- */
#toc.toc2 {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}
#toc.toc2 #toctitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
#toc.toc2 ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  border-left: 1px solid var(--border);
}
#toc.toc2 ul > li > ul { margin-top: 0.15rem; }
#toc.toc2 li { margin: 0.15rem 0; }
#toc.toc2 a {
  display: block;
  padding: 0.15rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
#toc.toc2 a:hover { color: var(--brand); text-decoration: none; }

body.toc2 #header,
body.toc2 #content,
body.toc2 #footer {
  margin-left: var(--sidebar-w);
}
#content { padding: 2rem 3rem 4rem; max-width: 920px; }
#footer {
  padding: 1.5rem 3rem 3rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  #toc.toc2 { position: static; width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  body.toc2 #header, body.toc2 #content, body.toc2 #footer { margin-left: 0; }
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; }
.sect1 > h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--brand-dark);
}
.sect2 > h3 { margin-top: 2rem; }
.sect3 > h4 { margin-top: 1.5rem; }

/* ---- Code ---- */
code, pre, kbd {
  font-family: "Monaspace Neon", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
code { color: var(--brand-dark); background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.88em; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; }
pre.rouge, pre.highlight { padding: 1rem 1.25rem; overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; font-size: 0.85em; }
.listingblock .content { position: relative; }
.listingblock .title { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.35rem; }

/* ---- Tables ---- */
table.tableblock {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
table.tableblock th, table.tableblock td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}
table.tableblock thead { background: var(--bg-soft); }
table.tableblock thead th { color: var(--ink); font-weight: 700; }

/* ---- Admonitions ---- */
.admonitionblock { margin: 1.5rem 0; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 6px 6px 0; }
.admonitionblock > table { width: 100%; border-collapse: collapse; }
.admonitionblock td.icon { padding: 0.9rem 0 0 1rem; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-dark); white-space: nowrap; vertical-align: top; }
.admonitionblock td.content { padding: 0.9rem 1.25rem 0.9rem 0.5rem; }
.admonitionblock.warning, .admonitionblock.important { border-left-color: #c74b2b; }
.admonitionblock.warning td.icon, .admonitionblock.important td.icon { color: #c74b2b; }

/* ---- Misc ---- */
.paragraph { margin: 0.9rem 0; }
hr { border: none; border-top: 1px solid var(--border); }
img { max-width: 100%; }
