/*
  intersample-supervisory-control – GitHub-like layout
*/

/* ========================================
   Global Layout
======================================== */
.aitl-root {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI",
    Helvetica, Arial, sans-serif;
  line-height: 1.75;
  color: #24292e;
  background: #ffffff;
  margin: 0;
}

.aitl-root .wrapper,
.aitl-root .main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.4rem;
}

/* ========================================
   Header
======================================== */
.aitl-root .page-header {
  border-bottom: 1px solid #e1e4e8;
  background: #fafbfc;
  padding: 1.2rem 0;
}

.aitl-root .site-title {
  font-size: 1.9rem;
  margin: 0;
  font-weight: 600;
}

.aitl-root .site-title a {
  text-decoration: none;
  color: #24292e;
}

.aitl-root .site-description {
  margin: 0.4rem 0 0.2rem;
  color: #57606a;
  font-size: 0.98rem;
}

/* ========================================
   Headings
======================================== */
.aitl-root h1,
.aitl-root h2,
.aitl-root h3,
.aitl-root h4 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.aitl-root h1,
.aitl-root h2 {
  border-bottom: 1px solid #eaecef;
  padding-bottom: 0.35rem;
}

.aitl-root h1 {
  font-size: 1.9rem;
}

.aitl-root h2 {
  font-size: 1.45rem;
}

.aitl-root h3 {
  font-size: 1.22rem;
}

.aitl-root p {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

/* ========================================
   Links
======================================== */
.aitl-root a {
  color: #0969da;
  text-decoration: none;
}

.aitl-root a:hover {
  text-decoration: underline;
}

/* ========================================
   Images & Media
======================================== */
.aitl-root img,
.aitl-root video,
.aitl-root iframe {
  max-width: 100%;
}

/* ========================================
   Tables (GitHub style)
======================================== */
.aitl-root table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
}

.aitl-root th,
.aitl-root td {
  border: 1px solid #d0d7de;
  padding: 0.65em 0.9em;
}

.aitl-root th {
  background: #f6f8fa;
  font-weight: 600;
}

.aitl-root tr:nth-child(2n) {
  background: #f6f8fa55;
}

/* ========================================
   Code
======================================== */
.aitl-root code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono";
  background: #f6f8fa;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  border: 1px solid #e1e4e8;
}

.aitl-root pre {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.2rem 0;
}

.aitl-root pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ========================================
   Blockquotes
======================================== */
.aitl-root blockquote {
  margin: 1.2em 0;
  padding: 0.8em 1em;
  border-left: 4px solid #d0d7de;
  background: #f9fafb;
  color: #57606a;
  border-radius: 4px;
}

/* ========================================
   Mermaid
======================================== */
.aitl-root .mermaid {
  margin: 2rem auto;
  padding: 0.8rem;
  background: #fff;
  border-radius: 6px;
}

/* ========================================
   Footer
======================================== */
.aitl-root .page-footer {
  border-top: 1px solid #e1e4e8;
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: #57606a;
  text-align: center;
  background: #fafbfc;
}
