/*
 * NewCo Platform — MkDocs Material custom styling
 * Save at docs/assets/stylesheets/extra.css
 *
 * Approach: subtle enhancements over Material defaults — don't fight the theme.
 * Tightens table density, adds a callout style for standing corrections,
 * and uses NewCo-adjacent palette tokens.
 */

:root {
  --nc-navy-700: #0D1B2A;
  --nc-teal-600: #0D9488;
  --nc-amber-500: #F59E0B;
  --nc-slate-500: #64748B;
}

/* Page header: anchor the navy-700 brand color */
.md-header {
  background-color: var(--nc-navy-700);
}

.md-tabs {
  background-color: var(--nc-navy-700);
}

/* Tighter tables for parameter-heavy pages */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.5em 0.75em;
  font-size: 0.85em;
  line-height: 1.4;
}

.md-typeset table:not([class]) th {
  background-color: rgba(13, 27, 42, 0.05);
  font-weight: 600;
}

/* Inline code styling — more contrast on the canonical parameter values */
.md-typeset code {
  background-color: rgba(13, 148, 136, 0.08);
  color: var(--nc-teal-600);
  font-weight: 500;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Standing correction callout — use admonition syntax !!! warning */
.md-typeset .admonition.standing-correction,
.md-typeset details.standing-correction {
  border-color: var(--nc-amber-500);
}

.md-typeset .standing-correction > .admonition-title,
.md-typeset .standing-correction > summary {
  background-color: rgba(245, 158, 11, 0.1);
}

.md-typeset .standing-correction > .admonition-title::before,
.md-typeset .standing-correction > summary::before {
  background-color: var(--nc-amber-500);
  -webkit-mask-image: var(--md-admonition-icon--warning);
  mask-image: var(--md-admonition-icon--warning);
}

/* Audit-register OPEN flag styling */
.md-typeset .audit-open {
  display: inline-block;
  padding: 0.05em 0.4em;
  margin: 0 0.1em;
  background-color: var(--nc-amber-500);
  color: white;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.md-typeset .audit-closed {
  display: inline-block;
  padding: 0.05em 0.4em;
  margin: 0 0.1em;
  background-color: var(--nc-slate-500);
  color: white;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Page header sub-rules: make h1 stand out */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-typeset h2 {
  font-weight: 600;
  margin-top: 1.6em;
  padding-top: 0.4em;
  border-top: 1px solid rgba(100, 116, 139, 0.15);
}

/* Footer: keep slate-500 understated */
.md-footer {
  background-color: var(--nc-navy-700);
}

.md-footer-meta {
  background-color: var(--nc-navy-700);
}

/* Search highlight on matched results */
.md-search-result__article mark {
  background-color: rgba(245, 158, 11, 0.3);
  color: inherit;
}

/* Print: hide nav, expand to full width */
@media print {
  .md-header, .md-tabs, .md-sidebar, .md-footer {
    display: none !important;
  }
  .md-content {
    max-width: 100% !important;
    margin: 0 !important;
  }
}
