/* ─────────────────────────────────────────────────────────────────
   MajorOps Brand CSS — MkDocs Material Overrides
   Brand: Fire Department Red · Signal Black · Hard Edges
   Fonts: Orbitron (display) · Saira Condensed (headings)
          IBM Plex Sans (body) · IBM Plex Mono (code)
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Saira+Condensed:wght@600;700;800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

/* ── PRIMARY COLOR ─────────────────────────────────────────────── */
:root {
  --md-primary-fg-color:              #CC0000;
  --md-primary-fg-color--light:       #FF3333;
  --md-primary-fg-color--dark:        #990000;
  --md-accent-fg-color:               #CC0000;
  --md-accent-fg-color--transparent:  rgba(204, 0, 0, 0.1);
}

/* ── SLATE SCHEME — Signal Black background ────────────────────── */
[data-md-color-scheme="slate"] {
  --md-default-bg-color:            #0A0A0A;
  --md-default-bg-color--light:     #111111;
  --md-default-bg-color--lighter:   #1A1A1A;
  --md-default-bg-color--lightest:  #2A2A2A;
  --md-default-fg-color:            rgba(242, 242, 242, 0.87);
  --md-default-fg-color--light:     rgba(204, 204, 204, 0.75);
  --md-default-fg-color--lighter:   rgba(136, 136, 136, 0.54);
  --md-default-fg-color--lightest:  rgba(85, 85, 85, 0.26);
  --md-code-bg-color:               #111111;
  --md-code-fg-color:               #CCCCCC;
  --md-footer-bg-color:             #111111;
  --md-footer-bg-color--dark:       #0A0A0A;
}

/* ── GEOMETRY — zero border radius everywhere ──────────────────── */
*, *::before, *::after {
  border-radius: 0 !important;
}

/* ── WORDMARK LOGO ──────────────────────────────────────────────── */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.mo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.mo-wordmark__prompt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #CC0000;
  margin-right: 3px;
  animation: cursor-blink 1.5s step-end infinite;
  position: relative;
  top: 1px;
}
.mo-wordmark__major {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #CC0000;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.mo-wordmark__ops {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: rgba(242, 242, 242, 0.87);
  letter-spacing: -1px;
  text-transform: lowercase;
}

/* Hide the auto-generated site title text next to our wordmark */
.md-header__title {
  display: none;
}

/* ── SITE HEADER ────────────────────────────────────────────────── */
.md-header {
  background: #0A0A0A;
  border-bottom: 2px solid #CC0000;
  box-shadow: none;
  height: 56px;
}
.md-header__inner {
  padding: 0 16px;
  height: 56px;
}
.md-header__button.md-logo {
  padding: 0;
  margin: 0 12px 0 0;
}

/* ── HEADINGS — Saira Condensed ────────────────────────────────── */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.md-typeset h1 {
  color: #F2F2F2;
  font-size: 2.4em;
  font-weight: 800;
  border-bottom: 2px solid #CC0000;
  padding-bottom: 0.3em;
}
.md-typeset h2 {
  font-size: 1.6em;
  color: #CCCCCC;
  border-bottom: 1px solid #2A2A2A;
  padding-bottom: 0.2em;
}

/* ── BODY TEXT ──────────────────────────────────────────────────── */
.md-typeset {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── CODE ───────────────────────────────────────────────────────── */
.md-typeset code,
.md-typeset pre,
.md-typeset kbd {
  font-family: 'IBM Plex Mono', monospace !important;
}
.md-typeset code {
  background: #1A1A1A;
  color: #CCCCCC;
  padding: 0.1em 0.4em;
  border: 1px solid #2A2A2A;
}

/* ── TABLES ─────────────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  border: 1px solid #2A2A2A;
}
.md-typeset table:not([class]) th {
  background: #1A1A1A;
  color: #CC0000;
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-color: #2A2A2A;
}
.md-typeset table:not([class]) td {
  border-color: #2A2A2A;
  color: #CCCCCC;
}
.md-typeset table:not([class]) tr:hover {
  background: rgba(204, 0, 0, 0.04);
}

/* ── BLOCKQUOTES ────────────────────────────────────────────────── */
.md-typeset blockquote {
  border-left: 4px solid #CC0000;
  background: #111111;
  color: #CCCCCC;
  padding: 12px 16px;
}

/* ── ADMONITIONS ────────────────────────────────────────────────── */
.md-typeset .admonition,
.md-typeset details {
  border-left: 4px solid #CC0000;
  background: #111111;
}
.md-typeset .admonition-title,
.md-typeset summary {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(204, 0, 0, 0.1);
}

/* ── HORIZONTAL RULES ───────────────────────────────────────────── */
.md-typeset hr {
  border-color: #2A2A2A;
}

/* ── SIDEBAR / NAV ──────────────────────────────────────────────── */
.md-sidebar {
  background: #0A0A0A;
  border-right: 1px solid #1A1A1A;
}
.md-nav__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #444444;
  padding: 8px 12px 4px;
}
.md-nav__link {
  color: #666666;
  font-size: 0.82rem;
  transition: color 0.15s, padding-left 0.15s;
}
.md-nav__link:hover {
  color: #CC0000 !important;
  padding-left: 6px;
}
.md-nav__link--active {
  color: #CC0000 !important;
  font-weight: 600;
}
.md-nav__item--section > .md-nav__link {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999999;
  padding: 6px 12px 2px;
}

/* Active section indicator */
.md-nav__item--nested > .md-nav__link--active {
  border-left: 2px solid #CC0000;
  padding-left: 10px;
  color: #FF3333 !important;
}

/* ── SEARCH ─────────────────────────────────────────────────────── */
.md-search__input {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: #111111;
}
.md-search__output {
  background: #111111;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.md-footer {
  background: #111111;
  border-top: 1px solid #2A2A2A;
}
.md-footer-meta {
  background: #0A0A0A;
}

/* ── CONTENT MAX WIDTH ──────────────────────────────────────────── */
.md-content {
  max-width: 880px;
}
.md-content__inner {
  padding-top: 28px;
}

/* ── LINKS ──────────────────────────────────────────────────────── */
.md-typeset a {
  color: #CC0000;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 0, 0, 0.3);
  transition: border-color 0.15s, color 0.15s;
}
.md-typeset a:hover {
  color: #FF3333;
  border-bottom-color: #FF3333;
}

/* ── BUTTON — primary CTA ───────────────────────────────────────── */
.md-typeset .md-button {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid #CC0000;
  color: #CC0000;
  padding: 8px 20px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.md-typeset .md-button:hover {
  background: rgba(204, 0, 0, 0.1);
  color: #FF3333;
  border-color: #FF3333;
}
.md-typeset .md-button--primary {
  background: #CC0000;
  color: #FFFFFF;
  border-color: #CC0000;
}
.md-typeset .md-button--primary:hover {
  background: #990000;
  border-color: #990000;
  color: #FFFFFF;
}

/* ── TABS ───────────────────────────────────────────────────────── */
.md-tabs {
  background: #0A0A0A;
  border-bottom: 1px solid #1A1A1A;
}
.md-tabs__link {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #555555;
  opacity: 1;
}
.md-tabs__link:hover,
.md-tabs__link--active {
  color: #CC0000 !important;
}
.md-tabs__indicator {
  background: #CC0000;
  height: 2px;
}

/* ── CODE BLOCKS ────────────────────────────────────────────────── */
.md-typeset pre {
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  border-left: 3px solid #CC0000;
}
.md-typeset pre > code {
  background: transparent;
  border: none;
  color: #CCCCCC;
}

/* ── INLINE CODE ────────────────────────────────────────────────── */
.md-typeset code {
  background: #141414;
  color: #FF6666;
  border: 1px solid #222222;
  padding: 0.1em 0.35em;
  font-size: 0.82em;
}

/* ── LISTS ──────────────────────────────────────────────────────── */
.md-typeset ul li::marker {
  color: #CC0000;
}
.md-typeset ol li::marker {
  color: #CC0000;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

/* ── TOC (right sidebar) ────────────────────────────────────────── */
.md-nav--secondary .md-nav__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: #333333;
}
.md-nav--secondary .md-nav__link {
  font-size: 0.78rem;
  color: #555555;
}
.md-nav--secondary .md-nav__link--active {
  color: #CC0000 !important;
}

/* ── SEARCH MODAL ───────────────────────────────────────────────── */
.md-search-result__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #555555;
  background: #0D0D0D;
}
.md-search-result__article {
  background: #0D0D0D;
  border-bottom: 1px solid #1A1A1A;
}
.md-search-result mark {
  background: rgba(204, 0, 0, 0.2);
  color: #FF3333;
}

/* ── COPY BUTTON on code blocks ─────────────────────────────────── */
.md-clipboard {
  color: #444444;
}
.md-clipboard:hover {
  color: #CC0000;
}

/* ── PAGE NAV FOOTER (prev / next) ──────────────────────────────── */
.md-footer-nav__link {
  background: #111111;
}
.md-footer-nav__title {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888888;
}
.md-footer-nav__direction {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ─────────────────────────────────────────────────────────────────
   DRAFT BANNER
   Shown on any page with `draft: true` in frontmatter.
   Removed when frontmatter is cleared (page approved).
   ───────────────────────────────────────────────────────────────── */
.draft-banner {
  background: rgba(204, 0, 0, 0.07);
  border: 1px solid rgba(204, 0, 0, 0.2);
  border-left: 4px solid #CC0000;
  padding: 10px 16px;
  margin: 0 0 28px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(204, 80, 80, 0.9);
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.draft-banner strong {
  color: #CC0000;
  letter-spacing: 0.2em;
  margin-right: 10px;
}
