/* SupoSystem Encyclopedia — restrained blueprint / dark brass identity */
:root {
  --supo-ink: #081321;
  --supo-navy: #10243a;
  --supo-blue: #1b3550;
  --supo-brass: #c9aa68;
  --supo-brass-bright: #e0c783;
  --supo-paper: #f2efe7;
  --supo-muted: #8d9bab;
  --supo-line: rgba(201, 170, 104, .28);
}
[data-md-color-scheme="slate"] {
  --md-hue: 214;
  --md-default-bg-color: #081321;
  --md-default-bg-color--light: #0d1b2b;
  --md-default-bg-color--lighter: #132338;
  --md-default-fg-color: #e5e4df;
  --md-default-fg-color--light: #c2cbd4;
  --md-default-fg-color--lighter: #8f9eae;
  --md-primary-fg-color: #10243a;
  --md-primary-fg-color--light: #1b3550;
  --md-primary-fg-color--dark: #07101c;
  --md-accent-fg-color: #e0c783;
  --md-typeset-color: #d9e0e7;
  --md-typeset-a-color: #e0c783;
  --md-code-bg-color: #101e30;
  --md-code-fg-color: #e9dfc8;
  --md-footer-bg-color: #060e19;
  --md-footer-bg-color--dark: #050b13;
}
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #10243a;
  --md-primary-fg-color--light: #1b3550;
  --md-primary-fg-color--dark: #07101c;
  --md-accent-fg-color: #98712f;
  --md-typeset-a-color: #856326;
  --md-default-bg-color: #f4f1e9;
  --md-default-fg-color: #1b2938;
  --md-typeset-color: #263647;
  --md-code-bg-color: #e9e5da;
  --md-footer-bg-color: #10243a;
  --md-footer-bg-color--dark: #081321;
}
.md-header {
  background: linear-gradient(105deg, #07111e 0%, #10243a 62%, #18334d 100%) !important;
  border-bottom: 1px solid rgba(201, 170, 104, .55);
  box-shadow: 0 4px 22px rgba(0, 0, 0, .16);
}
.md-header__title { letter-spacing: .045em; font-weight: 650; }
.md-header__button.md-logo img { height: 1.65rem; width: 1.65rem; }
.md-search__form { border: 1px solid rgba(201, 170, 104, .24); border-radius: 5px; }
.md-sidebar { border-color: var(--supo-line); }
.md-nav__title, .md-nav__link--active { color: var(--supo-brass) !important; }
.md-content__inner { max-width: 940px; padding-top: 1.2rem; }
.md-typeset { line-height: 1.76; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}
.md-typeset h1 { font-size: clamp(2rem, 4vw, 2.8rem); padding-bottom: .48em; border-bottom: 1px solid var(--supo-line); }
.md-typeset h2 { margin-top: 2.2em; padding-left: .72rem; border-left: 2px solid var(--supo-brass); }
.md-typeset a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.md-typeset table:not([class]) { border: 1px solid var(--supo-line); border-radius: 5px; overflow: hidden; }
.md-typeset table:not([class]) th { background: rgba(201, 170, 104, .12); }
.md-footer { border-top: 1px solid var(--supo-line); }
.supo-hero {
  position: relative; overflow: hidden; margin: 1.25rem 0 2.5rem;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 1px solid rgba(201, 170, 104, .48); border-radius: 7px;
  background: radial-gradient(circle at 86% 18%, rgba(53, 91, 124, .36), transparent 34%), linear-gradient(125deg, #081321 0%, #10243a 58%, #172f48 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18); color: #edf0f1;
}
.supo-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image: linear-gradient(rgba(201,170,104,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(201,170,104,.13) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(110deg, transparent 8%, black 100%);
}
.supo-hero > * { position: relative; z-index: 1; }
.supo-hero__eyebrow { color: var(--supo-brass-bright) !important; font: 600 .68rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .19em; text-transform: uppercase; }
.supo-hero .supo-hero__title { margin: 1.15rem 0 .85rem; border: 0; padding: 0; color: #f4f0e5; font-size: clamp(2.25rem, 6vw, 4.15rem); line-height: 1.08; letter-spacing: -.045em; }
.supo-hero__deck { max-width: 690px; color: #d3dce5 !important; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; }
.supo-hero__meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.supo-hero__meta span { padding: .34rem .58rem; border: 1px solid rgba(224, 199, 131, .4); border-radius: 3px; color: #e6d3a3; font: 600 .62rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .09em; }
.supo-card-grid, .supo-principle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 1.2rem 0 2rem; }
.supo-card { display: flex; flex-direction: column; min-height: 150px; padding: 1.1rem 1.2rem; border: 1px solid var(--supo-line); border-radius: 5px; background: rgba(128, 145, 160, .055); color: inherit !important; text-decoration: none !important; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.supo-card:hover { border-color: var(--supo-brass); transform: translateY(-2px); background: rgba(201, 170, 104, .075); }
.supo-card__index { margin-bottom: .8rem; color: var(--supo-brass); font: 600 .64rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.supo-card strong { margin-bottom: .38rem; font: 500 1.25rem/1.3 Georgia, "Iowan Old Style", serif; }
.supo-card span:last-child { color: var(--md-default-fg-color--light); font-size: .88rem; line-height: 1.6; }
.supo-principle-grid > div { padding: .95rem 1rem; border-top: 1px solid var(--supo-line); background: rgba(128, 145, 160, .035); }
.supo-principle__number { display: block; margin-bottom: .45rem; color: var(--supo-brass); font: 600 .72rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.supo-principle-grid strong { display: block; font-family: Georgia, "Iowan Old Style", serif; font-weight: 500; font-size: 1.08rem; }
.supo-principle-grid p { margin: .35rem 0 0; color: var(--md-default-fg-color--light); font-size: .88rem; }
.supo-footerline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; padding-top: .8rem; border-top: 1px solid var(--supo-line); color: var(--supo-muted); font: 600 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
@media (max-width: 640px) { .supo-card-grid, .supo-principle-grid { grid-template-columns: 1fr; } .supo-card { min-height: 0; } .supo-hero { margin-top: .6rem; } .supo-hero__meta span { font-size: .56rem; } }
@media (prefers-reduced-motion: reduce) { .supo-card { transition: none; } .supo-card:hover { transform: none; } }
