:root > * {
  /*arXiv brand colors*/
  --color-library-grey: #6b6459;
  --color-cornell-red:  #b31b1b;
  --color-publishing-pink:  #fb595a;
  --color-warm-wash:    #f9f7f7;
  --color-archival-blue:  #1f5e96;
  --color-open-blue:    #a5d6fe;
  --color-open-blue-dark: #688ED9;
  --color-open-blue-darker: #787CDD;
  --color-cool-wash:    #f7fafc;
  --color-access-lime:  #c4d82e;
  --color-links:        #1565c0;
  /*fonts*/
  --md-text-font: "freight-sans-pro";
  --md-code-font-family: "ibm-plex-mono", monospace;
  /*default theme colors*/
  /* Spinout: was Cornell Red. The black .ds-site-header is now the brand bar, so
     material's docs header (.md-header) is muted to a neutral — no heritage red
     bar competing/duplicating directly below the black bar. Red stays available
     as --color-cornell-red for heritage accents. */
  --md-primary-fg-color:  var(--color-library-grey);
  --md-primary-fg-color--light: var(--color-access-lime);
  --md-primary-fg-color--lightest:  var(--color-warm-wash);
  --md-primary-fg-color--dark:  var(--color-library-grey);
  --md-typeset-color:     black;
  --md-typeset-a-color:   var(--color-links);
  --md-accent-fg-color:   var(--color-archival-blue);
  --md-accent-bg-color:   var(--color-cool-wash);
  --blockquote-fg-color:  black;
  --blockquote-bg-color:  var(--md-primary-fg-color--lightest);
  --md-code-fg-color:     black;
  --md-code-bg-color:     #f5f2ee;;
  --code-border-color:    #c3bfba;
  --footer-fg-color:  black;
  --footer-bg-color:  var(--md-primary-fg-color--lightest);
  --shadow:           var(--color-library-grey);
}
/* slate theme (dark mode) */
[data-md-color-scheme="slate"] {
  --md-hue: 35;
  --md-default-bg-color:  hsla(var(--md-hue),10%,10%,1);
  --md-typeset-color:     var(--color-warm-wash);
  --md-typeset-a-color:   #64b5f6;
  --md-accent-fg-color:   var(--color-open-blue);
  --md-accent-bg-color:   hsla(var(--md-hue),10%,7%,1);
  --md-code-fg-color:     var(--md-primary-fg-color--lightest);
  --md-code-bg-color:     black;
  --code-border-color:    black;
  --blockquote-fg-color:  var(--md-primary-fg-color--lightest);
  --blockquote-bg-color:  hsla(var(--md-hue),10%,7%,1);
  --footer-fg-color:  var(--md-primary-fg-color--lightest);
  --footer-bg-color:  hsla(var(--md-hue),10%,7%,1);
  --shadow:           black;
}

body {
  font-family: freight-sans-pro, sans-serif;
  font-style: normal;
  font-weight: 400;
}
/* "arXiv info" subsite clarification, shown next to the brand in the black header. */
.ds-site-header .ds-site-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 16px;
}
.ds-site-header .ds-site-header-brand .ds-site-header-logo { margin-right: 0; }
.ds-site-header-subsite {
  color: var(--arxiv-grey-dis);            /* matches the chrome nav text on the dark bar */
  font-weight: 600;
  font-size: 14px;                         /* px-pinned like the rest of the chrome (was .95rem → 19px under material's inflated root) */
  line-height: 1;
  padding-left: 10px;
  border-left: 1px solid #4a433d;          /* same hairline as .ds-site-header-divider (untokenized upstream) */
  white-space: nowrap;
}

/* info.arxiv.org ONLY — full chrome unify (ARXIVCE-4426). A docs-only inline
   script relocates material's color-theme toggle + internal docs search into the
   single black .ds-site-header, then we hide the grey .md-header. Gated on
   .ds-docs-unified so that without JS the .md-header stays visible and those
   controls remain reachable (progressive enhancement). NB: the theme toggle +
   internal search are docs-only carry-overs — never propagated to the shared
   spinout chrome or the other repos. */
.ds-site-header { position: relative; }
/* Hide ONLY material's original header (it carries data-md-component="header");
   our unified bar also has the md-header class, so it must NOT match this. */
.ds-docs-unified .md-header[data-md-component="header"] { display: none !important; }

.ds-site-header .ds-docs-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 8px;
}
/* Show the header hamburger below 1220px, where material's primary sidebar is a
   slide-in drawer (see the unify script in main.html). body prefix beats the chrome
   default (display:none, loaded later); order keeps it rightmost after the controls. */
@media (max-width: 1219.98px) {
  body .ds-site-header .ds-site-header-nav-toggle { display: inline-flex; order: 10; }
}
/* relocated color-theme toggle — light glyphs on the black bar */
.ds-site-header [data-md-component="palette"] { display: flex; align-items: center; }
.ds-site-header [data-md-component="palette"] .md-header__button {
  color: var(--arxiv-card-grey);           /* canonical dark-bar control colour (matches .ds-site-header-login) */
  margin: 0;
  padding: 6px;
}
/* relocated mobile search-toggle (the magnifying-glass) — light glyph on the black
   bar, matching the other dark-bar controls. Material hides it ≥60em (where the
   inline input is shown), so this only surfaces on mobile as the overlay trigger. */
.ds-site-header .md-header__button[for="__search"] {
  color: var(--arxiv-card-grey);
  margin: 0;
  padding: 6px;
}
/* Internal docs search stays material-NATIVE: because .ds-site-header also carries
   the `md-header` class, material's own .md-header search CSS keeps drawing the
   input and its full-width results panel exactly as upstream — no custom panel CSS.
   The search sits just after the brand and pushes the nav to the right. */
.ds-site-header.md-header .md-search { margin-right: auto; }
/* The relocated .md-search lives inside .ds-site-header, which forms a z-index:4
   stacking context — so its full-screen mobile modal is trapped below the announcement
   banner (z-index:101). While search is open, lift the header above the banner so the
   modal covers it instead of rendering behind it. */
[data-md-toggle="search"]:checked ~ .ds-site-header { z-index: 102; }
.md-header__source {
  display: none !important;
}
/* Spinout footer (docs-local override, mirrors arxiv-browse ARXIVCE-4426): span the
   page width with minimal 10px side margins instead of the shared chrome's centred
   1200px grid. Scoped via body/descendant so it beats the chrome rule regardless of
   stylesheet order — docs has no .flex-wrap-footer wrapper to hang it on like browse. */
body .ds-site-footer { padding-left: 10px; padding-right: 10px; }
.ds-site-footer .ds-site-footer-grid { max-width: none; }

/* Pin the shared chrome's font-sizes to arxiv-browse's resolved pixels. The chrome
   declares them in rem against a 16px root (0.875rem→14px, 0.8125rem→13px), but
   mkdocs-material inflates the root (125%, then 137.5%/150% past 1600/2000px), so the
   chrome would render ~25–50% larger and drift per breakpoint. The chrome layout is
   fixed-px, so px here matches browse at every width WITHOUT touching the global root
   (which would re-shrink all docs content). body-prefixed because the chrome stylesheet
   loads AFTER extra.css — an equal-specificity override would otherwise lose. */
body .ds-announcement { font-size: 13px; }
body .ds-announcement-close { font-size: 14px; }
body .ds-site-header-nav a,
body .ds-site-header-nav button { font-size: 13px; }
body .ds-site-footer-ack { font-size: 14px; }
body .ds-site-footer-ack a { font-size: 13px; }
body .ds-site-footer-links { font-size: 13px; }
body .ds-site-footer-links a { font-size: 13px; }
body .ds-site-footer-funders-label { font-size: 14px; }
@media (max-width: 599px) {
  /* the collapsed mobile nav switches to 0.875rem in the chrome */
  body .ds-site-header.is-collapsible .ds-site-header-nav a,
  body .ds-site-header.is-collapsible .ds-site-header-nav button { font-size: 14px; }
}
p {
  font-family: freight-sans-pro, sans-serif;
  font-style: normal;
}
a { transition: all 0.15s ease-in-out; }
a:hover, a:focus {
  outline-color: var(--md-accent-fg-color);
  outline-offset: 2px;
}
.md-skip {
  background: var(--md-primary-fg-color);
  color: white !important;
  padding: 0.5em 1em;
  text-decoration: none;
  font-weight: 600;
}
.md-skip:focus {
  outline: 3px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}
.md-search__magnify {
  pointer-events: none;
}
.md-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.md-content a:hover, .md-content a:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
a:hover { transition: all 0.5s;}
.md-typeset hr { margin: 1em 0 !important; }
h1, h2, h3, h4, h5 {
  font-family: freight-sans-pro, sans-serif;
}
h2 { margin-top: 1em !important; }
.intro { font-size: 1.5em; font-family: freight-text-pro, serif; }
.floatl { float: left; }
.floatr { float: right; }
.center { text-align: center; }
.margin0 {margin: 0 !important; }
.margin5 { margin: 0 5px !important; }

/*BUTTONS*/
a.button-large, a.button-reg {
  -webkit-box-shadow: 0px 3px 6px 0px var(--shadow);
  -moz-box-shadow: 0px 3px 6px 0px var(--shadow);
  box-shadow: 0px 3px 6px 0px var(--shadow);
  display: inline-block;
  padding: .25em 1em;
  border-radius: .3em;
  margin-right: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  background-color: var(--md-accent-bg-color);
  border: 2px solid var(--md-accent-fg-color);
  text-decoration: none;
}
a.button-reg {
  font-size: 1em;
}
a.button-large:hover, a.button-reg:hover {
  border-color: var(--md-accent-fg-color);
  -webkit-box-shadow: 0px 3px 6px 2px var(--shadow);
  -moz-box-shadow: 0px 3px 6px 2px var(--shadow);
  box-shadow: 0px 3px 6px 2px var(--shadow);
}
.mkd-border {
  border: solid .15em #ededed;
}
.mkd-horz-spacing {
  margin-right:1em;
  margin-left:1em;
}

/*HEADER AREA*/
.attribution {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  padding: .25em 1em;
}
.attribution p.sponsors {
 display: block;
 max-width: 400px;
 font-size: 1.4em !important;
 font-family: freight-sans-pro, sans-serif;
 font-weight: 600;
 line-height: 1.5;
 margin:.5em;
 text-align: right;
}
.attribution p.sponsors a {
 color: #f9f7f7 !important;
 max-width: 400px;
 text-decoration: none;
}
.attribution p.sponsors a:hover {
  text-decoration: underline;
  color: white !important;
}
@media all and (max-width: 576px) {
  .attribution {
    flex-direction: column;
    flex-flow: column;
  }
  .attribution p {
    text-align: center;
    margin: 1em 2em .5em 2em;
  }
}

/*NAVIGATION*/
nav.md-nav.md-nav--primary .md-nav__list .md-nav__item label,
nav.md-nav.md-nav--primary .md-nav__list .md-nav__item a {
  font-weight: 600;
}
nav.md-nav.md-nav--primary .md-nav__list .md-nav__item nav.md-nav .md-nav__list label,
nav.md-nav.md-nav--primary .md-nav__list .md-nav__item nav.md-nav .md-nav__list a {
  font-weight: 500;
}
@media all and (min-width: 1220px) {
  nav.md-nav.md-nav--primary .md-nav__title {
    display: none;
  }
  nav.md-nav.md-nav--primary .md-nav__list .md-nav__item.md-nav__item--active.md-nav__item--nested label {
    color: var(--md-typeset-a-color);
    font-weight: 700;
  }
}

/*MAIN CONTENT AREA*/
.md-content .md-content__inner.md-typeset {
  font-size: .85rem;
  font-weight: 500;
}
@media all and (min-width: 960px) {
  .md-content {
    margin-bottom: 6em;
  }
}

/*ARXIV FOOTER*/
.arxiv-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  background-color: var(--footer-bg-color);
  padding: 0 1em;
}
.arxiv-footer .column {
  padding: 0.75rem;
  flex: auto;
}
.arxiv-footer .column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arxiv-footer .column ul li {
  line-height: 2em;
  color: var(--footer-fg-color) !important;
}
.arxiv-footer .column ul li a {
  color: var(--footer-fg-color) !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
}
.arxiv-footer .column ul li a:hover {
  color: var(--footer-fg-color) !important;
  border-bottom: 1px dotted #005e9d;
  text-decoration: none;
}
.arxiv-footer .column ul li, .arxiv-footer .column ul li a {
  font-size: 1.2em;
}
.arxiv-footer .icon.filter-black {
  fill: var(--footer-fg-color);
  margin-bottom: -3px;
}
.arxiv-footer .help {
  font-size: 1em;
}
.arxiv-footer .a11y-main-link {
  font-size: 1.15em;
}
.arxiv-footer .sorry-app-links svg.icon {
  margin-bottom: -2px !important;
  margin-right: 2px;
  margin-left: 4px;
  color: var(--footer-fg-color);
}
.arxiv-footer .sorry-app-links .a11y-main-link svg.icon {
  margin-bottom: -3px !important;
}
@media all and (max-width: 959px) {
  .arxiv-footer .column {
    flex: 50%;
  }
}
@media all and (max-width: 576px) {
  .arxiv-footer {
    flex-direction: column;
    flex-flow: column;
  }
  .arxiv-column {
    flex: 100%;
  }
}



/*Tables*/
.md-typeset table:not([class]) {
  font-size: 1em;
}


/*classes for Images*/
.mkd-img-center { margin: 0 auto; display: block; }
.mkd-img-left {
  float:left;
  width:100%;
  margin-top:0;
  margin-bottom: 1em;
}
.mkd-img-right {
  float:right;
  width:100%;
  margin-top:0;
}
.mkd-img-full {
  width:100% !important;
}
.mkd-img-60 {
  width:100% !important;
  margin:0 auto;
  display:block;
}
.mkd-img-50 {
  width:100% !important;
  margin:0 auto;
  display:block;
}
.mkd-img-bio {
  margin-top:8px !important;
  border-radius: 8px !important;
}
.mkd-img-thumb {
  max-width:80px !important;
}
.mkd-img-icon {
  border-radius:50%;
  width:120px;
}
.mkd-img-space {
  padding:1em;
}
.mkd-img-small {
  max-width:250px !important;
}
@media (min-width: 576px) {
  .mkd-img-left {
    width:calc(50% - 1.25em);
    margin-right:1em;
  }
  .mkd-img-right {
    width:calc(50% - 1.25em);
    margin-left:1em;
  }
  .mkd-img-60 {
    width:60% !important;
    margin:0 auto;
    display:block;
  }
  .mkd-img-50 {
    width:50% !important;
    float:left;
    margin:0 auto;
    display:block;
  }
}

/*half-screen Ordered Lists*/
.mkd-ordered-list-blocks ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
.mkd-ordered-list-blocks ol li {
  width: 100%;
  margin: 0 0 1em 0 !important;
  padding:1em;
  -webkit-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  min-height:90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
  text-align: center;
}
.mkd-ordered-list-blocks ol li img {
  height:40px;
  display:block;
  margin:1em auto 0 auto;
}
.mkd-ordered-list-blocks ol li em, .mkd-ordered-list-blocks ol li strong, .mkd-ordered-list-blocks ol li h3 {
  display: contents;
}
@media (min-width: 576px) {
  .mkd-ordered-list-blocks ol li {
    width: calc(50% - .5em);
  }
}

/*Pre and code blocks*/
.md-typeset code{
  padding: .02em  .5em;
  font-weight: 500;
}
.md-typeset pre>code {
  padding: 1.5em 1em;
  border-color: var(--code-border-color);
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
}
pre .md-clipboard {
  color: var(--md-code-fg-color);
  opacity: 0.5; /* Increased from 0.3 for WCAG 1.4.11 non-text contrast (3:1) */
}
/*Blockquotes*/
.md-typeset blockquote {
  margin: 0 !important;
  padding: 1em !important;
  border-left: 0 !important;
  background-color: var(--blockquote-bg-color);
  color: var(--blockquote-fg-color);
  -webkit-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.2);
}
blockquote strong {
  font-size: 18px;
}
@media (min-width: 576px) {
  blockquote {
    padding: 2em;
  }
}

/*Labs colorful block list*/
ol.color-blocks {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}
ol.color-blocks li {
  width: 100%;
  padding:1em;
  margin: 1em 0 !important;
  -webkit-box-shadow: 0px 3px 8px 0px var(--shadow);
  -moz-box-shadow: 0px 3px 8px 0px var(--shadow);
  box-shadow: 0px 3px 8px 0px var(--shadow);
  min-height:90px;
  font-size: 1.1em;
  background-color: var(--md-accent-bg-color);
}
ol.color-blocks li strong {
  font-size: 20px;
}
ol.color-blocks li:nth-child(1) {
  border: 5px solid #a5d6fe;
}
ol.color-blocks li:nth-child(2) {
  border: 5px solid #fb5951;
}
ol.color-blocks li:nth-child(3) {
  border: 5px solid #7c7469;
}
ol.color-blocks li::after {
  content: "";
  margin: 0;
}
ol.color-blocks li img {
  height:40px;
  display:block;
  margin:1em auto 0 auto;
}
@media (min-width: 576px) {
  ol.color-blocks li {
    /* width: calc(33% - 10px); */
  }
}


/* Flexbox grid with box shadow around child blocks, used for leadership page layout */
.grid-blocks {
  margin: 0 auto 1em auto;
  padding: 0;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: .75em;
  flex-direction: column;
}
.bio-block {
  -webkit-box-shadow: 0px 3px 6px 0px rgba(107, 100, 89, 0.5);
  -moz-box-shadow: 0px 3px 6px 0px rgba(107, 100, 89, 0.5);
  box-shadow: 0px 3px 6px 0px rgba(107, 100, 89, 0.5);
  padding: 1em;
  flex: 1;
}
.bio-block h2, .bio-block h3 {
  margin-top: 0 !important;
  margin-bottom: .1em;
}
.a11y-report h3 {
  font-weight: bold !important;
  font-size:1.3em !important;
}
.bio-block p {
  margin: 0 0 .5em 0;
}
.bio-block ul {
  list-style: none;
  margin: -0.5em 0 1em 0 !important;
  padding: 0;
  display: flex !important;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}
.bio-block ul li {
  margin: 0 0.3em !important;
  padding:0;
  font-size: 0.85em;
  display:flex;
  align-items: center;
}
.bio-block ul li img.sm-icon {
  width:16px;
  border: none;
  margin-right: .1em;
}
.bio-block.primary ul {
  justify-content: flex-start;
}
.bio-block.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.25em;
}
.bio-block.primary h2, .bio-block.primary strong {
  text-align: center;
  display: block;
}
.bio-block img {
    border: 1px solid var(--color-library-grey);
}
@media (min-width: 576px) {
  .grid-blocks {
    flex-direction: row;
  }
  .bio-block.primary {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
  }
  .bio-block img {
    width: 150px;
  }
  .bio-block.primary img {
    margin-right: 0.5em;
    max-width: none;
  }
  .bio-block.primary h2, .bio-block.primary strong {
    text-align: left;
  }
}



/* accessibility report */
.a11y-report {
  font-family: freight-text-pro, serif;
}
.a11y-report .bold-paper-title {
  font-weight: bold;
  font-family: freight-text-pro, serif;
  text-align: center;
}
.a11y-report .abstract-intro {
  font-family: freight-text-pro, serif;
  line-height: 2em;
}
.a11y-report .authors {
  text-align: center;
  line-height: 1.25em;
}
.a11y-report .section-head {
  display: block;
  border-top: 1px solid #b31b1b;
  padding: .5em 0 0 0;
  font-size: 1.25em;
  font-family: freight-text-pro, serif;
  font-style: italic;
}
.a11y-report .section-summary {
  font-style: italic;
  font-family: freight-text-pro, serif;
}
.a11y-report blockquote {
  background: transparent !important;
}
.a11y-report blockquote strong {
  font-size: 1.6em;
  font-family: freight-text-pro;
  font-weight: 500;
}
@media (min-width: 576px) {
  .a11y-report .abstract-intro, .a11y-report .authors, .a11y-report .bold-paper-title {
    margin: 0 4em 2em 4em;
  }
  .a11y-report blockquote {
    padding: 1.5em 2.5em !important;
  }
}


/*Brand TOC*/
.brand-toc {
  margin: 0 auto;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.brand-toc .card {
  padding: 0;
  -webkit-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
}
.brand-toc .card a {
  padding: 0;
  margin: 0;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 1.25em;
  color: #6b6459 !important;
  display: block;
  overflow: hidden;
}
.brand-toc .card a:hover {
  color: #fb595a !important;
}
.brand-toc .card img {
  width:100%;
  object-fit: cover;
  margin-bottom: -60px;
  -webkit-transition: -webkit-transform 0.4s;
  transition: transform 0.5s;
  display: none;
}
.brand-toc .card a:hover > img {
  -webkit-transform: scale(1.3) rotate(0.01deg);
  transform: scale(1.3) rotate(0.01deg);
}
.brand-toc .card span {
  padding: 10px 12px;
  background-color: white;
  text-align: center;
  display:block;
}
@media (min-width: 576px) {
  .brand-toc .card span {
    position:relative;
    opacity: .85;
  }
  .brand-toc .card img {
    display: block;
  }
}


/*Brand colors*/
ul.brand-colors {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
ul.brand-colors li {
  width: 100%;
  padding: 0;
  margin: .35em 0 !important;
}
ul.brand-colors li .color {
  -webkit-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.1);
  width: 100%;
  height: 100px;
}
ul.brand-colors li .text {

}
@media (min-width: 576px) {
  ul.brand-colors li {
    width: calc(25% - 10px);
    margin: .35em 10px 0 0 !important;
  }
}

/* ORG CHART (about/governance) — inline SVG
   Drawn as SVG so connector lines are exact (no drift/gaps), the figure
   stays self-contained, and it never fights mkdocs-material's list styles.
   Colors come from the brand variables and adapt to dark mode below. */
.org-chart {
  margin: 1.5em 0;
  /* connector + node colors */
  --org-line: var(--color-open-blue);
  --org-node-border: var(--color-open-blue);
  --org-board-border: var(--color-open-blue);
  --org-node-text: #1c1a17;
  /* node blue gradient (subtle) */
  --org-blue-0: #c2e2ff;
  --org-blue-1: var(--color-open-blue);
  /* Board of Directors: darker blue with white text */
  --org-board-bg: var(--color-archival-blue);
  --org-board-text: #ffffff;
  /* councils band: light Open Blue gradient */
  --org-councils-0: #c8e6ff;
  --org-councils-1: #edf5ff;
  --org-heading-text: #1c1a17;
  /* background tint shared by the container fill and council boxes */
  --org-tint: #ffffff;
  /* enclosing container */
  --org-container-fill: var(--org-tint);
  --org-container-border: var(--color-open-blue);
  /* council boxes */
  --org-council-bg: var(--org-tint);
  --org-council-border: #8b8680;
}
/* mkdocs-material sets .md-typeset figure { width: fit-content }, which
   collapses the figure to the SVG's small intrinsic width. Override it so
   the chart fills the content column and the labels scale up to a readable
   size. Higher specificity (.md-typeset figure.org-chart) beats the theme. */
.md-typeset figure.org-chart {
  width: 100%;
  max-width: 700px;
  margin: 1.5em auto;
}
.org-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  font-family: inherit;
}
/* gradient stops (classed so they stay themeable in dark mode) */
.org-svg__grad-blue-0 { stop-color: var(--org-blue-0); }
.org-svg__grad-blue-1 { stop-color: var(--org-blue-1); }
.org-svg__grad-councils-0 { stop-color: var(--org-councils-0); }
.org-svg__grad-councils-1 { stop-color: var(--org-councils-1); }
/* enclosing container */
.org-svg__container { fill: var(--org-container-fill); }
.org-svg__container-border {
  fill: none;
  stroke: var(--org-container-border);
  stroke-width: 2.5;
}
/* nodes: blue gradient fill comes from the fill="url(#org-blue)" attribute;
   this rule only sets stroke so it doesn't clobber the gradient. */
.org-svg__node {
  stroke: var(--org-node-border);
  stroke-width: 2;
}
.org-svg__node--board {
  fill: var(--org-board-bg);
  stroke: var(--org-board-border);
}
.org-svg__node--council {
  fill: var(--org-council-bg);
  stroke: var(--org-council-border);
  stroke-width: 1.5;
}
.org-svg__line {
  fill: none;
  stroke: var(--org-line);
  stroke-width: 2;
}
.org-svg__label { fill: var(--org-node-text); }
.org-svg__label--title { font-weight: 700; }
.org-svg__label--role { font-style: italic; }
/* must follow .org-svg__label so it wins the cascade at equal specificity */
.org-svg__label--invert { fill: var(--org-board-text); }
.org-svg__heading { fill: var(--org-heading-text); font-weight: 700; }

/* dark mode */
[data-md-color-scheme="slate"] .org-chart {
  --org-line: var(--color-open-blue);
  --org-node-border: var(--color-open-blue);
  --org-board-border: var(--color-open-blue);
  --org-node-text: var(--color-warm-wash);
  --org-blue-0: #6f9fd8;
  --org-blue-1: #4f7fb8;
  --org-board-bg: var(--color-archival-blue);
  --org-board-text: #ffffff;
  --org-councils-0: #3f6a9c;
  --org-councils-1: #294a73;
  --org-heading-text: var(--color-warm-wash);
  --org-container-fill: hsla(var(--md-hue), 10%, 12%, 1);
  --org-container-border: var(--color-open-blue-dark);
  --org-council-bg: hsla(var(--md-hue), 10%, 20%, 1);
  --org-council-border: #8b8680;
}
