/*
 * MonBUG-specific additions on top of the VanBUG stylesheets (kept separate so
 * timeline/palette/general/image-gallery.css can be re-synced from VanBUG as-is).
 */

/* Header and hero logo: MonBUG blue (#22619A) on light backgrounds,
   light logo blue (#94c0e9) in dark mode. See overrides/main.html. */
body:not([data-md-color-scheme="slate"]) .vb-mark--on-dark,
body[data-md-color-scheme="slate"] .vb-mark--on-light { display: none; }

/* The French title is longer than VanBUG's: give it a wider column on desktop
   so it sets on 3 lines instead of 4. */
@media (min-width: 48em) {
  html[lang="fr"] .vb-hero__inner { grid-template-columns: min(38rem, 64%) minmax(10rem, 1fr); }
  html[lang="fr"] .vb-hero h1 { max-width: none; }
}

/* Three-way theme toggle (automatic → light → dark). VanBUG's general.css only handles two options,
   so show the button for the active option, keyed on its media (html attributes set in main.html and monbug.js). */
html:root .md-header__option label.md-header__button[for] { display: none; }
html:root:not([data-md-color-media]) .md-header__option label.md-header__button[for="__palette_2"],
html:root[data-md-color-media="(prefers-color-scheme)"] .md-header__option label.md-header__button[for="__palette_2"],
html:root[data-md-color-media="(prefers-color-scheme: light)"] .md-header__option label.md-header__button[for="__palette_3"],
html:root[data-md-color-media="(prefers-color-scheme: dark)"] .md-header__option label.md-header__button[for="__palette_1"] { display: inline-block; }

/* Footer credit for the site design (config.extra.design_credit), on its own row under the brand and social links. */
.vb-footer__credit {
  border-top: 1px solid rgb(255 255 255 / 12%);
  flex-basis: 100%;
  font-size: .64rem;
  margin: 0;
  opacity: .72;
  padding-top: 1rem;
}
.vb-footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.vb-footer__credit a:hover, .vb-footer__credit a:focus-visible { opacity: .8; }
