/*
Theme Name: wpwwcc2023
Theme URI: 
Author: Simon
Author URI: 
Description: Child theme of 2023 for WWCC
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentythree
Text Domain: wpwwcc2023
Tags: 
*/
/* Force events manager to use a light-dark color for text
   rather than its own choice
*/
.em {
  --default-color: light-dark(#666,#BBB) !important;
}

@media (prefers-color-scheme: dark) {
  .em {
    --text-color-richer: hsl(var(--theme-hue), 0%, 95%) !important;
    --text-color-normal: hsl(var(--theme-hue), 0%, 87%) !important;
    --text-color-softer: hsl(var(--theme-hue), 0%, 67%) !important;
    --accent-hue: 40;
  }
  .wp-block-file * + .wp-block-file__button {
    color: var(--wp--preset--color--fixedcontrast) !important;
  }
  /* Try and make tables legible where stripe colours are not
      light-dark type variables
  */
  .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    /* Try to make striped rows use this instead of fixed color
       in wp-includes/blocks/table/style.css
          */
    background-color: var(--wp--preset--color--tertiary) !important;
  }
  /* Nasty hack for coloured rows in striped table */
  figure.is-style-stripes table.has-background tr:nth-child(even), figure.is-style-stripes table.has-background thead tr {
    color: var(--wp--preset--color--fixedcontrast);
  }
  /* Leaflet map profiles typography */
  .elevation-control .axis text, .elevation-control .legend text {
    fill: #ddd;
    stroke-width: 0;
    font-weight: 450;
  }
  /* Darken images slightly */
  img, video {
    filter: brightness(0.8) contrast(1.2);
  }
  /* Typography changes for dark mode */
  p {
    font-weight: 300;
  }
  header div.wp-block-cover p {
    font-weight: 400;
  }
  strong {
    font-weight: 400;
  }
  .has-luminous-vivid-amber-background-color {
    color: var(--wp--preset--color--fixedcontrast);
  }
}
html {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  /* Leaflet map profiles typography */
  .elevation-control .axis text, .elevation-control .legend text {
    fill: #ddd;
    stroke-width: 0;
    font-weight: 450;
  }
  /* Darken images slightly */
  img, video {
    filter: brightness(0.8) contrast(1.2);
  }
  /* Typography changes for dark mode */
  p {
    font-weight: 300;
  }
  strong {
    font-weight: 400;
  }
  .has-luminous-vivid-amber-background-color {
    color: var(--wp--preset--color--fixedcontrast);
  }
}

/*# sourceMappingURL=style.css.map */
