/* Orange color for light color scheme (Default) */
/* Can be forced with data-theme="light" */
[data-theme=light],
:root:not([data-theme=dark]) {

  --pico-primary:#191189
   
  /* --pico-text-selection-color: rgba(244, 93, 44, 0.25);
  --pico-primary: #bd3c13;
  --pico-primary-background: #d24317;
  --pico-primary-underline: rgba(189, 60, 19, 0.5);
  --pico-primary-hover: #942d0d;
  --pico-primary-hover-background: #bd3c13;
  --pico-primary-focus: rgba(244, 93, 44, 0.5);
  --pico-primary-inverse: #fff; */
}

:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --content-measure: 68ch;
}

body {
  font-size: 1rem;
  line-height: 1.62;
}

h1 {
  --pico-font-size: clamp(1.9rem, 4vw, 2.4rem);
  --pico-line-height: 1.12;
  --pico-typography-spacing-top: 2.25rem;
  margin-bottom: var(--space-4);
}

h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0.01em;
}

p {
  max-width: var(--content-measure);
  margin-bottom: var(--space-4);
}

small {
  line-height: 1.5;
}

main.container > article,
main.container > section,
main.container > p {
  margin-block: var(--space-6);
}


/* Force material icon size everywhere, context-independent */
.material-icons {
  font-size: 1.0em !important;
}
@media (max-width: 600px) {
  .material-icons {
    font-size: 0.8em !important;
  }
}
/* Beautiful uitvoeringen cards */
.uitvoering-card {
  background: var(--pico-card-background-color, #222c3a);
  color: var(--pico-color, #fff);
  border-radius: 0.7em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0.6em 0;
  padding: 0.7em 0.9em 0.7em 0.8em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: 1em;
}
.uitvoering-card-row {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 0.05em;
}
.uitvoering-icon {
  opacity: 0.85;
  margin-right: 0.08em;
  vertical-align: middle;
}
.uitvoering-card-desc {
  margin-top: 0.15em;
  font-weight: 500;
  font-size: 1em;
  color: var(--pico-color, #fff);
}
.uitvoering-date, .uitvoering-time, .uitvoering-location {
  font-weight: 400;
  letter-spacing: 0.01em;
}
.uitvoering-time {
  margin-left: 0;
}
.uitvoering-icon.time {
  margin-left: 0.5em;
}
.uitvoering-location {
  font-style: italic;
}

/* Right-align the audio element in the audio table */
#media-audio table td:nth-child(2) {
  text-align: right;
}
/* Ensure audio elements are always visible and styled properly */

.article-media-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
}

.article-media-modal.is-open {
  display: flex;
}

.article-media-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.article-media-modal-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.8rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
}

.article-media-thumb {
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.article-media-image,
.article-media-video,
.article-media-embed {
  display: block;
  max-width: 100%; /* Shrink when needed */
  max-height: 400px;
  margin-bottom: 0.5rem;
}

/* Auto size (natural size), but max-width and height still apply */
.article-media-image {
  width: auto;
  height: auto;
  border-radius: 0.6rem;
  box-shadow: 0 0 8px rgba(90, 110, 130, 0.55);
}

/* Auto size (natural size), but max-width and height still apply */
.article-media-video {
  width: auto;
  height: auto;
}

.article-media-embed {
  aspect-ratio: 16 / 9;
  border: 0;
}

.blue-article,
.dark-article {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(20, 42, 68, 0.08);
  box-shadow: 0 18px 36px -30px rgba(11, 27, 42, 0.45);
}

.blue-article > :first-child,
.dark-article > :first-child {
  margin-top: 0;
}

.blue-article > :last-child,
.dark-article > :last-child {
  margin-bottom: 0;
}

.blue-article h2,
.blue-article h3,
.dark-article h2,
.dark-article h3 {
  margin-bottom: 0.75rem;
}

.blue-article p,
.dark-article p {
  max-width: var(--content-measure);
}

.blue-article img {

  margin-bottom: 1em;

  border-radius: 0.8rem;
  box-shadow: 0 14px 28px -24px rgba(11, 27, 42, 0.55);
}

/* See pico color sheme: https://picocss.com/docs/css-variables#css-variables-for-color-schemes */

/* Blue article style */
.blue-article {
  --pico-color: #40596E;
  --pico-card-background-color: #99BFDE;
  --pico-card-box-shadow: 0 18px 36px -30px rgba(11, 27, 42, 0.45);
}


.dark-article img {
  display: block;
  margin-bottom: 1em;
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 14px 28px -24px rgba(0, 0, 0, 0.7);
}

/* Blue article style */
.dark-article {
  color: #aabbcc;
  --pico-color: #ffffff;
  --pico-card-background-color:  #152030;
  --pico-card-box-shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}


/* Ensure article footers are not centered */
article > footer {
  text-align: left;
  margin-top: 1em;
}
/* Responsive logo sizing */
.logo-img {
  max-width: 200px;
  height: auto;
}

@media (max-width: 600px) {
  h1 {
    --pico-font-size: clamp(1.55rem, 8vw, 1.9rem);
    --pico-typography-spacing-top: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  p {
    margin-bottom: var(--space-3);
  }

  main.container > article,
  main.container > section,
  main.container > p {
    margin-block: var(--space-4);
  }

  .logo-img {
    max-width: 110px;
  }
  .uitvoering-card {
    font-size: 0.97em;
    padding: 0.5em 0.5em 0.5em 0.5em;
    margin: 0.4em 0;
  }
  .uitvoering-card-row {
    gap: 0.2em;
  }

  .uitvoering-icon {
    font-size: 0.9em;
  }
  .uitvoering-card-desc {
    font-size: 0.97em;
  }
}

/* Pico color overrides for Filomusica */





 .agenda-table {
  font-size: 0.8em;
}

audio {
  width: 140px;
  min-width: 100px;
  max-width: 100%;
}

/* Agenda table styling to match current site */
/*
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 1.5em;
  color: var(--filo-blue2);
  letter-spacing: 1px;
} */


footer {
  margin-top: 2em;
  text-align: center;
  padding: 1em 0;
}

header nav.container > ul:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.0rem;
  column-gap: 0.4rem;
  max-width: 16rem;
}

header nav.container > ul:last-child > li {
  flex: 0 0 calc(50% - 0.4rem);
  text-align: right;
  margin: 0;
}

/* @media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul li {
    margin-bottom: -1.5em;
  }
} */