/* ── Noctuary brand overrides for MkDocs Material ── */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --md-primary-fg-color:        #F5A623;
  --md-primary-fg-color--light: #ffb830;
  --md-primary-fg-color--dark:  #c07800;
  --md-accent-fg-color:         #F5A623;
  --md-typeset-a-color:         #b86e00;
  --md-text-font:               "Instrument Sans", system-ui, sans-serif;
  --md-code-font:               "JetBrains Mono", monospace;

}

/* ── Header — light grey, terminal wordmark only ── */

.md-header {
  background: #f0f0f0;
  box-shadow: 0 1px 0 #d0d0d0;
  color: #1a1a1a;
}

.md-header__title {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.md-header__button {
  color: #444444;
}

.md-header__button:hover {
  color: #F5A623;
  opacity: 1;
}

/* ── Search ── */

.md-search__input {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: #e4e4e4;
  color: #1a1a1a;
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__input {
  background: #e4e4e4;
}

/* ── Sidebar navigation ── */

.md-nav__title {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666666;
}

.md-nav__link {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
}

.md-nav__link--active {
  color: #b86e00 !important;
  font-weight: 600;
}

/* ── Logo ── */

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 32px;
  filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.3));
}

/* ── Main content area — white ── */

.md-main { background: #ffffff; }
.md-content { background: #ffffff; }

/* ── Typography — Inter throughout, no terminal font ── */

.md-typeset {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #1a1a1a;
}

.md-typeset h1 {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0a0a;
  border-bottom: 2px solid #F5A623;
  padding-bottom: 0.4em;
  margin-bottom: 1rem;
}

.md-typeset h2 {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #111111;
  margin-top: 2rem;
}

.md-typeset h3 {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #222222;
}

.md-typeset h4, .md-typeset h5, .md-typeset h6 {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 600;
  color: #333333;
}

.md-typeset p, .md-typeset li {
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

/* ── Code — JetBrains Mono ── */

.md-typeset code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83em;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111827;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.md-typeset pre > code {
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  border: none;
  padding: 0;
  color: #1f2937;
  font-size: 0.85em;
}

/* Force light grey code blocks — override Material theme at every level */
[data-md-color-scheme="default"] {
  --md-code-bg-color:  #f3f4f6;
  --md-code-fg-color:  #1f2937;
  --md-code-hl-color:  rgba(245, 166, 35, 0.2);
}

.md-typeset pre,
.md-typeset .highlight,
.md-typeset .highlight pre,
.md-typeset code {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

.md-typeset pre {
  border: 1px solid #e5e7eb !important;
  border-left: 3px solid #F5A623 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* Pygments token colours for light background */
.md-typeset .highlight .hll { background-color: #fff3cd; }
.md-typeset .highlight .c  { color: #6b7280; font-style: italic; }  /* comments */
.md-typeset .highlight .k  { color: #7c3aed; font-weight: 600; }    /* keywords */
.md-typeset .highlight .s,
.md-typeset .highlight .s1,
.md-typeset .highlight .s2 { color: #059669; }                      /* strings */
.md-typeset .highlight .n  { color: #1f2937; }                      /* names */
.md-typeset .highlight .m,
.md-typeset .highlight .mi { color: #d97706; }                      /* numbers */
.md-typeset .highlight .o  { color: #6b7280; }                      /* operators */
.md-typeset .highlight .p  { color: #374151; }                      /* punctuation */
.md-typeset .highlight .na { color: #2563eb; }                      /* attribute names */
.md-typeset .highlight .nb { color: #7c3aed; }                      /* builtins */
.md-typeset .highlight .nc { color: #1d4ed8; font-weight: 600; }   /* class names */
.md-typeset .highlight .nf { color: #1d4ed8; }                     /* function names */

/* ── Admonitions ── */

.md-typeset .admonition,
.md-typeset details {
  border-left: 3px solid #F5A623;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Tables ── */

.md-typeset table:not([class]) {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.88rem;
}

.md-typeset table:not([class]) th {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f9fafb;
  color: #374151;
}

.md-typeset table:not([class]) td {
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

/* ── Links ── */

.md-typeset a {
  color: #b86e00;
  font-weight: 500;
}

.md-typeset a:hover {
  color: #F5A623;
}

/* ── Footer ── */

.md-footer {
  background: #f0f0f0;
  color: #555555;
}

.md-footer-meta {
  background: #e8e8e8;
}
