/* Elmer Studio documentation theme, layered on the Antora default UI. Colors follow the application icon. */
:root {
  --es-navy: #1f3d66;
  --es-blue: #2f6fd6;
  --es-blue-light: #4d8ef0;
  --es-orange: #e8590c;
  --es-ink: #1d2733;
  --es-muted: #5b6878;
  --es-line: #e3e8ef;
  --es-soft: #f5f8fc;
  --body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --monospace-font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* The default UI compiles its CSS variables away, so the theme is applied with explicit selectors below. */
html, body, .doc, .nav-menu, .toc, button, input { font-family: var(--body-font-family); }
body { -webkit-font-smoothing: antialiased; color: var(--es-ink); }
code, kbd, pre, .doc pre, .doc code { font-family: var(--monospace-font-family); }
.doc a, .toc a:hover, .nav-link:hover { color: var(--es-blue); }
.doc a:hover { color: #1b4f9e; }
.doc h1, .doc h2, .doc h3, .doc h4 { color: #13202f; }
.nav-menu .nav-item.is-current-page > .nav-link, .nav-menu .nav-item.is-current-page > .nav-text { color: var(--es-orange); font-weight: 600; }
.nav-menu .nav-text { font-weight: 600; color: var(--es-navy); }
.toc .toc-menu a.is-active { border-left-color: var(--es-orange); color: var(--es-navy); }

/* ---- header ----------------------------------------------------------------------------------- */
.navbar { background: var(--es-navy); box-shadow: 0 2px 10px rgba(16, 32, 56, 0.25); }
@media screen and (min-width: 1024px) {
  .navbar-end > .navbar-item, .navbar-end .navbar-link { color: #fff; }
  .navbar-end > a.navbar-item:hover { background: #17304f; color: #fff; }
}
.navbar-brand .brand { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; gap: 0.55rem; }
@media screen and (max-width: 520px) { .navbar-brand .brand-name { display: none; } }
.home .toc.embedded { display: none; }
.navbar-brand .brand-logo { width: 28px; height: 28px; display: inline-block; }
.navbar .button.download {
  background: var(--es-orange); color: #fff; border: 0; border-radius: 999px; font-weight: 600;
  padding: 0.35rem 1rem; height: auto;
}
.navbar .button.download:hover { background: #cf4e09; }
.navbar-item.github svg { display: block; }
#search-input { border-radius: 999px; border: 0; padding-left: 0.9rem; }

/* ---- typography ------------------------------------------------------------------------------- */
.doc { font-size: 1rem; line-height: 1.65; max-width: 52rem; }
.doc h1.page { font-weight: 700; letter-spacing: -0.01em; }
.doc h2 { font-weight: 650; border-bottom: 1px solid var(--es-line); padding-bottom: 0.3rem; margin-top: 2.2rem; }
.doc h3 { font-weight: 600; }
.article:not(.home) .doc #preamble > .sectionbody > .paragraph:first-child > p { font-size: 1.08rem; color: #2b3a4c; }
.doc code { font-size: 0.88em; background: #eef2f8; border-radius: 4px; padding: 0.1em 0.35em; color: #17283d; }
.doc pre code { background: none; padding: 0; }
.doc .listingblock pre { border-radius: 8px; }
.doc kbd {
  font-family: var(--monospace-font-family); font-size: 0.82em; background: #fff; border: 1px solid #c8d1dc;
  border-bottom-width: 2px; border-radius: 5px; padding: 0.08em 0.45em; box-shadow: none; color: var(--es-ink);
}
.doc .menuseq, .doc .menuref { font-weight: 600; color: #13202f; }
.doc .menuseq i.caret::before { content: "›"; font-style: normal; color: var(--es-muted); }

/* ---- screenshots ------------------------------------------------------------------------------ */
.doc .imageblock.screenshot { margin: 1.25rem 0 1.75rem; }
.doc .imageblock.screenshot .content {
  border: 1px solid var(--es-line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 40, 70, 0.12);
}
.doc .imageblock.screenshot img { display: block; width: 100%; height: auto; }
.doc .imageblock .title { font-style: normal; color: var(--es-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.doc .imageblock.screenshot a { display: block; cursor: zoom-in; }
.doc .imageblock.toolbar .content { border: 1px solid var(--es-line); border-radius: 8px; display: inline-block; padding: 4px; }

/* ---- tables ----------------------------------------------------------------------------------- */
.doc table.tableblock { font-size: 0.92rem; border-radius: 8px; }
.doc table.tableblock th { background: var(--es-soft); }
.doc table.tableblock td.tableblock > .content > .paragraph > p, .doc table.tableblock td p { margin: 0; }
@media screen and (max-width: 1023.5px) {
  .doc table.tableblock { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- admonitions ------------------------------------------------------------------------------ */
.doc .admonitionblock > table { border-radius: 8px; }
.doc .admonitionblock.tip > table { background: #effaf3; }
.doc .admonitionblock.note > table { background: #eef4fd; }
.doc .admonitionblock.important > table { background: #fff4ec; }
.doc .admonitionblock.warning > table { background: #fdf0f0; }

/* ---- step lists ------------------------------------------------------------------------------- */
.doc .olist.steps > ol { counter-reset: step; list-style: none; padding-left: 0; }
.doc .olist.steps > ol > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 0.7rem; }
.doc .olist.steps > ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--es-blue); color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---- landing page ----------------------------------------------------------------------------- */
.home .doc { max-width: 72rem; }
.home .doc > h1.page { display: none; }
.home .doc .hero {
  margin: 0 -1rem 2rem; padding: 2.6rem 2rem 2.2rem; border-radius: 16px; color: #fff;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(232, 89, 12, 0.35), transparent 60%),
              linear-gradient(135deg, var(--es-navy), #2a5aa0 60%, var(--es-blue-light));
}
.home .doc .hero p { color: #e8f0fb; max-width: 44rem; }
.home .doc .hero code { background: rgba(255, 255, 255, 0.16); color: #fff; }
.home .doc .hero .hero-title p { font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.home .doc .hero .hero-sub p { font-size: 1.2rem; margin-top: 0.6rem; }
.home .doc .hero .buttons p { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.doc a.btn, .doc a.btn-primary {
  display: inline-block; padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.8); color: #fff;
}
.doc a.btn-primary { background: var(--es-orange); border-color: var(--es-orange); }
.doc a.btn:hover { background: rgba(255, 255, 255, 0.12); }
.doc a.btn-primary:hover { background: #cf4e09; }
.home .doc .hero .imageblock { margin-top: 1.6rem; }
.home .doc .hero .imageblock img { border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); width: 100%; }

.doc .cards > .content { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.doc .cards .sidebarblock {
  margin: 0; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: 1.1rem 1.2rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.doc .cards .sidebarblock:hover { box-shadow: 0 8px 26px rgba(20, 40, 70, 0.12); transform: translateY(-2px); }
.doc .cards .sidebarblock > .content { display: flex; flex-direction: column; height: 100%; }
.doc .cards .sidebarblock > .content > .title {
  font-size: 1.05rem; font-weight: 650; font-style: normal; color: var(--es-navy); margin: 0 0 0.4rem; text-align: left;
}
.doc .cards .sidebarblock p { font-size: 0.93rem; color: #3a4859; margin: 0.25rem 0; }
.doc .cards .sidebarblock > .content > .paragraph:last-child { margin-top: auto; padding-top: 0.4rem; }
.doc .cards .sidebarblock .imageblock { order: -1; margin: -1.1rem -1.2rem 0.9rem; }
.doc .cards .sidebarblock .imageblock .content {
  border: 0; box-shadow: none; height: 9.5rem; overflow: hidden; border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--es-line);
}
/* zoom into the Graphics window of a full-desktop screenshot (it spans about 35-100 % of the width) */
.doc .cards .sidebarblock .imageblock img { width: 185%; max-width: none; margin: -19% 0 0 -72%; display: block; }

.doc .gallery > .content { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.doc .gallery .imageblock { margin: 0; }
.doc .gallery .imageblock img { border-radius: 10px; border: 1px solid var(--es-line); width: 100%; }

@media screen and (max-width: 768px) {
  .home .doc .hero { margin: 0 0 1.5rem; padding: 1.6rem 1.1rem; border-radius: 12px; }
  .home .doc .hero .hero-title p { font-size: 2rem; }
}

/* ---- footer ----------------------------------------------------------------------------------- */
.footer { background: #f3f6fa; color: var(--es-muted); border-top: 1px solid var(--es-line); }
.footer a { color: var(--es-blue); }
