/* True Signal Wiki — matching /internal portal aesthetic */

/* Color scheme — override default */
[data-md-color-scheme="default"] {
  --md-default-bg-color: #F5F4EF;
  --md-default-fg-color: #000000;
  --md-default-fg-color--light: #686868;
  --md-default-fg-color--lighter: #686868;
  --md-default-fg-color--lightest: #C0BDAD;

  --md-primary-fg-color: #F5F4EF;
  --md-primary-fg-color--light: #EBEAE5;
  --md-primary-fg-color--dark: #E5E4DC;
  --md-primary-bg-color: #000000;
  --md-primary-bg-color--light: #686868;

  --md-accent-fg-color: #403E37;
  --md-accent-fg-color--transparent: rgba(64, 62, 55, 0.1);
  --md-accent-bg-color: #F5F4EF;

  --md-typeset-color: #000000;
  --md-typeset-a-color: #595959;

  --md-code-bg-color: #EBEAE5;
  --md-code-fg-color: #403E37;
  --md-code-hl-color: rgba(251, 212, 91, 0.3);

  --md-footer-bg-color: #F5F4EF;
  --md-footer-bg-color--dark: #EBEAE5;
  --md-footer-fg-color: #000000;
  --md-footer-fg-color--light: #686868;
  --md-footer-fg-color--lighter: #C0BDAD;
}

/* Typography — monospace body, serif headings */
:root {
  --md-text-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --md-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Body text sizing */
.md-typeset {
  font-size: 0.8rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Headings in serif */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: 'Source Sans 3', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: #000;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('https://fonts.gstatic.com/s/sourcesans3/v15/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Ky462EN_io6npfB.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Header bar */
.md-header {
  background: #F5F4EF;
  color: #000;
  box-shadow: none;
  border-bottom: 1px solid #E5E4DC;
}

.md-header__title {
  font-family: 'Source Sans 3', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.md-header .md-header__button,
.md-header .md-search__input,
.md-header .md-header__topic {
  color: #000;
}

/* Search */
.md-search__input {
  background-color: #EBEAE5;
  color: #000;
  font-family: var(--md-text-font);
}

.md-search__input::placeholder {
  color: #686868;
}

/* Sidebar / Nav */
.md-sidebar {
  border-right: 1px solid #E5E4DC;
}

.md-nav__link {
  font-size: 0.75rem;
}

.md-nav__link:hover {
  color: #000;
}

.md-nav__link--active {
  color: #000;
  font-weight: 600;
}

/* Content links */
.md-typeset a {
  color: #595959;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.15s;
}

.md-typeset a:hover {
  text-decoration-thickness: 2px;
  color: #000;
}

/* Code blocks */
.md-typeset code {
  background: #EBEAE5;
  color: #403E37;
  border-radius: 2px;
  font-size: 0.8em;
}

.md-typeset pre {
  border: 1px solid #D4D3CB;
}

/* Admonitions */
.md-typeset .admonition,
.md-typeset details {
  border: 1px solid #D4D3CB;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  font-size: 0.75rem;
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid #D4D3CB;
  font-size: 0.75rem;
}

.md-typeset table:not([class]) th {
  background: #EBEAE5;
  font-weight: 600;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  border-color: #E5E4DC;
  padding: 8px 12px;
}

/* Footer */
.md-footer {
  border-top: 1px solid #000;
  background: #F5F4EF;
}

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

/* Scrollbar subtle */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #D4D3CB;
  border-radius: 3px;
}

/* Hide theme toggle and other unwanted elements */
.md-header__option,
.md-footer__inner {
  display: none;
}
