*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --grid-gap: 1.5rem;
}

/* Single rule replacing all removed gap lines */
.static-sections,
.partners-grid,
.standard-grid,
.gallery-grid {
    gap: var(--grid-gap);
}

/* @import url('https://fonts.googleapis.com.rproxy.goskope.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap'); */

@font-face {
    font-family: 'Cal Sans';
    src: url('/fonts/CalSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}



@font-face {
    font-family: 'Fishes Friends';
    src: url('/fonts/Fishes_Friends.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fishes Friends';
    src: url('/fonts/Fishes_Friends_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fishes Friends';
    src: url('/fonts/Fishes_Friends_Bold_Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Fishes Friends';
    src: url('/fonts/Fishes_Friends_Italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* ====================================
   General & Global Styles
   ==================================== */
  body {
      color: #1a1a1a;
      text-align: center;
      font-family: 'Space Mono', monospace;
      margin: 0;
      padding: 0;
      line-height: 1.5;
      background-color: #f7f7f7;
  }
  
  h1, h2, h3, ul, button {
      font-family: 'Cal Sans', sans-serif;
  }
  
  li, dt, dd, p, .event-desc, .event-details {
      font-family: 'Fishes Friends', monospace;
  }
  
  h1 { 
      font-size: 5rem; 
      line-height: 1.1; 
  }
  
  h2 { 
      font-size: 1.5rem; 
      margin: 0; 
  }
  
  h3 { 
      font-size: 1.2rem; 
  }
  
  p, li, dt, dd { 
      font-size: 0.85rem; 
  }
  
  a {
      color: #000000;
      font-family: 'Fishes Friends', monospace;
      font-size: inherit;
      text-decoration: none;
      border-bottom: 1px dashed #000;
      transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  }
  
  a:hover {
      background-color: #000000;
      color: #ffffff;
      border-bottom: 1px solid #000;
  }
  
  img {
      max-width: 100%;
      height: auto;
  }

/* ====================================
   Header & Navigation
   ==================================== */
header {
    margin: 0 0 1em 0;
}

header h1 {
    margin-top: 0.1em;
    margin-bottom: 0.1em;
}

header p {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav, .sub-nav {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 0 auto;
    font-size: 0.85rem;
}

.main-nav {
    margin-bottom: 0.9em;
}

.main-nav a, .sub-nav a {
    font-family: 'Cal Sans', sans-serif;
    padding: 0.5em 1em;
    border: 2px solid #000;
    border-radius: 20px;
    box-shadow: 3px 3px 0px #000;
}

.main-nav a:hover, .sub-nav a:hover {
    background-color: #d3d3d3;
    color: #000;
    border-bottom: 2px solid #000;
}

/* ====================================
   Content Sections
   ==================================== */
.cover-art, .announcements, .static-sections, .gallery {
    width: 90%;
    max-width: 1000px;
    margin: 2em auto;
}

.cover-art img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto 1.5em auto;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
}

.cover-art p {
    text-align: left;
    max-width: 750px;
    margin: 0 auto;
    font-size: 0.85rem;
}

#agenda {
    width: 90%;
    max-width: 1000px;
    margin: 2em auto;
}

.announcements .textbox {
    width: 100%;
    text-align: left;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
    padding: 1.5em;
}


.announcements h2, #emissions h2, #adresses h2 {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 0.3em;    
}
 

.announcements ul {
    margin-top: 0.6em;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.announcements li {
    margin-left: 0;
    margin-bottom: 0.6em;
    color: #555555;
    border-bottom: 1px dotted #a0a0a0;
    padding-bottom: 0.3em;
}

#emissions, #adresses {
    text-align: left;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0px #000;
    padding: 1em;
}

.static-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.static-sections dl {
    margin-top: 0;
    margin-bottom: 0;
}

.static-sections dt {
    font-weight: bold;
    text-transform: uppercase;
}

.static-sections dd {
    font-style: italic;
}

.static-sections h2 {
    margin-top: 0;
}

.static-sections h3 {
    margin-bottom: 0;
}

.content-box {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.radio-list dt, .address-list dt {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0.6em;
}

.radio-list dd, .address-list dd {
    margin-left: 0;
    margin-bottom: 0.6em;
    color: #555555;
    border-bottom: 1px dotted #a0a0a0;
    padding-bottom: 0.3em;
}

.radio-station {
    margin-bottom: 0;
}

/* ====================================
   Dynamic Calendar
   ==================================== */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.calendar-nav button {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 3px 3px 0px #000;
    color: #000;
    padding: 0.5em 1em;
    cursor: pointer;
}

.calendar-nav button:hover {
    background-color: #d3d3d3;
}

.calendar-container {
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #000;
    overflow: hidden;
    padding: 0;
}

.weekdays, .days {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.weekdays {
    width: 100%;
}

.weekdays li {
    width: 14.285%;
    text-align: center;
    padding: 0.5em;
    background-color: #000;
    color: #fff;
}

.days li {
    flex: 0 0 calc(100% / 7);
    min-height: 120px;
    border: 1px solid #d3d3d3;
    border-top: none;
    border-left: none;
    padding: 0.5em;
    text-align: left;
    position: relative;
    font-size: 0.85rem;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}

.days li:hover {
    background-color: #efefef;
}

.day .date {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    font-weight: bold;
    font-size: 1rem;
}

.day.today .date {
    background-color: #000;
    color: #fff;
    padding: 0.2em 0.4em;
}

.event-list {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.event {
    border: 1.5px solid #000;
    border-radius: 6px;
    box-shadow: 2px 2px 0px #000;
    padding: 0.5em;
    margin-bottom: 0.5em;
    background-color: #fff;
    cursor: pointer;
}

.event-desc {
    font-weight: bold;
    margin: 0;
    font-size: 0.8rem;
}

.event-details {
    color: #555555;
    margin: 0;
    font-size: 0.8rem;
}

.other-month {
    opacity: 0.3;
}

.days .past-day {
    color: #a0a0a0;
    opacity: 0.5;
}

.days .past-day .event-details {
    color: #a0a0a0;
}

.days .past-day .event {
    border-color: #a0a0a0;
    background-color: #e0e0e0;
}

/* ====================================
   Gallery Page Styles
   ==================================== */
.gallery h2 {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 0.3em;
    margin-bottom: 2.5em; /* Increased spacing before the filter buttons */
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem; /* Keeps white space between cards tight */
}

/* Gallery items */
.gallery-item {
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
    padding: 1em;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
}

.gallery-item img {
    border: 1px dashed #d3d3d3;
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.gallery-item figcaption {
    margin-top: 1em;
    font-size: 0.85rem;
}

.gallery-item figcaption p {
    text-transform: none;
    margin: 0.5em 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 1.5em;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #000;
    width: 80%;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
}

.modal-content figcaption {
    margin: 0;
}

.close-btn {
    color: #000;
    position: absolute;
    right: 1em;
    top: 0.5em;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #a0a0a0;
}

#gallery-nav {
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.year-button {
    font-family: 'Cal Sans', sans-serif;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 3px 3px 0px #000;
    color: #000;
    padding: 0.5em 1em;
    cursor: pointer;
    font-size: 0.85rem;
}

.year-button:hover {
    background-color: #d3d3d3;
}

.year-button.active {
    background-color: #000;
    color: #fff;
}

/* ====================================
   Partners Page Styles 
   ==================================== */
.partners-grid-section {
    width: 90%;
    max-width: 1000px; /* Reduced from 1400px to match index, gallery, and about pages */
    margin: 2em auto;
}

.partners-grid-section h2 {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 0.3em;
    margin-bottom: 1.5em;
}


.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.partners-sub-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    gap: 0.8em;
    margin-bottom: 2.5em;
}

.partners-sub-nav a {
    font-family: 'Cal Sans', sans-serif;
    padding: 0.5em 1em;
    border: 2px solid #000;
    border-radius: 20px;
    box-shadow: 3px 3px 0px #000;
    background-color: #fff;
    color: #000;
}

.partners-sub-nav a:hover {
    background-color: #d3d3d3;
    color: #000;
}

.partner-card {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
    padding: 1.5em;
    text-align: center;
}

.partner-card img {
    /* max-height: 25vh; */
    width: 90%;
    height: auto;
    border: 1px dashed #d3d3d3;
    margin: 1em 0;
}

.partner-card h3 {
    margin: 0;
}

.partner-card .tagline {
    font-style: italic;
    font-size: 0.85rem;
    text-transform: none;
    margin: 0.5em 0 1em 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
    text-align: center;
}

.contact-list li {
    font-size: 0.85rem;
    text-transform: none;
    margin-bottom: 0.2em;
}

.textbox {
    text-transform: none;
}

.partners-grid-section .textbox {
    width: 90%;
    max-width: 600px;
    margin: 2em auto;
}

/* ====================================
   About & Contact Page Styles
   ==================================== */
.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 90%;
    max-width: 1000px;
    margin: 2em auto;
    gap: var(--grid-gap);
}

.standard-grid .textbox {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
    padding: 1.5em;
    height: 100%;
    margin: 0;
    text-align: left;
}

.standard-grid .textbox h2 {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

.standard-text {
    width: 90%;
    max-width: 1000px;
    margin: 0em auto;
}

.standard-text .partners-grid-section .textbox {
    padding: 1.5em;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
    margin: 2em auto;
}

.textbox ul .info-list {
    text-align: left;
    padding-left: 1.2em;
    margin-bottom: 1em;
}

.textbox ul.team-list {
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin-bottom: 1em;
}

.textbox ul.team-list li {
    margin-bottom: 0.8em;
}

/* Bottom Call-To-Action matching full grid width */
.callout-box {
    width: 90%;
    max-width: 1000px;
    margin: 2em auto;
}

.callout-box .textbox {
    text-align: center;
}



.standard-text p {
    text-transform: none;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 600px;
    margin: 0.5em auto 2em auto;
    font-style: italic;
}

.callout-box {
    max-width: 600px;
    margin: 1em auto;
}

.example-box {
    background-color: #f0f0f0;
    border: 1px dashed #000;
    border-radius: 6px;
    padding: 0.8em;
    margin: 1em 0;
    font-size: 0.8rem;
}

/* Footer */
footer {
    margin-top: 4em;
    padding: 2em 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 2px dashed #fff;
    background-color: #000;
    color: #fff;
}

footer a {
    color: #fff;
    border-bottom: 1px dashed #fff;
}

footer a:hover {
    color: #f7f7f7;
    border-bottom: 1px dashed #f7f7f7;
}

/* ====================================
   Hide/Show Past Dates for Mobile
   ==================================== */
.toggle-past-btn {
    display: none;
    width: 100%;
    margin-bottom: 1em;
    padding: 0.5em;
    font-family: 'Cal Sans', sans-serif;
    border: 1px dashed #000;
    background-color: #fff;
    cursor: pointer;
}

.toggle-past-btn:hover {
    background-color: #f0f0f0;
}

/* ====================================
   Mobile Responsiveness
   ==================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1rem;
        margin-top: 0;
    }

    .main-nav, .sub-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }

    .main-nav a, .sub-nav a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.75em 1em;
        margin: 0;
    }

  .main-nav { margin-bottom: 1.75em; }

    .weekdays { display: none; }

    .days li {
        flex-basis: 100%;
        min-height: 60px;
        border: 1px solid #d3d3d3;
        margin-bottom: 1em;
    }

    .days li:hover { background-color: #fff; }

    .day .date {
        position: static;
        display: inline-block;
        font-size: 1rem;
        margin-right: 0.5em;
    }

    .event-list { margin-top: 0; }
    .other-month { display: none; }
    .radio-list dt { width: 100%; display: block; }
    .radio-list dd { margin-left: 0; }

    .static-sections {
        grid-template-columns: 1fr;
        gap: 1em;
        width: 90%;
    }


    .partners-grid {
        grid-template-columns: 1fr;
    }

    .standard-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .toggle-past-btn {
        display: block;
    }

    .calendar-container.hide-past .days .past-day {
        display: none;
    }
    
    /*=========================
    Not Found
    ===========================*/
    /* 404 Page Card Frame */
.not-found {
    width: 90%;
    max-width: 600px;
    margin: 4em auto;
}

.not-found .textbox {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 5px 5px 0 #000;
    padding: 2em;
    text-align: center;
}

.not-found h2 {
    border-bottom: 2px solid #000;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}
}