/* Illinois Pioneer Foundation - Cassiopeia child styles, colours taken from the original ilpf template */
:root {
  --ilpf-green-dark: #4f6b2b;
  --ilpf-green: #628136;
  --ilpf-green-mid: #88b44b;
  --ilpf-green-light: #96bd61;
  --ilpf-sidebar: #9ccd52;
  --ilpf-page: #dce8c6;
  --ilpf-tab: #c8de9e;
  --ilpf-bar: #36322b;
  --ilpf-text: #22201b;
  --cassiopeia-color-primary: var(--ilpf-green);
  --cassiopeia-color-link: #3f5a1d;
  --cassiopeia-color-hover: var(--ilpf-green-dark);
  --cassiopeia-font-family-body: Georgia, "Times New Roman", Times, serif;
  --cassiopeia-font-family-headings: Georgia, "Times New Roman", Times, serif;
  --body-color: var(--ilpf-text);
}

body.site {
  background: linear-gradient(180deg, #e4efcf 0%, #f3f7ed 320px) fixed;
  color: var(--ilpf-text);
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Boxed page with rounded green frame like the original */
/* Header and body share one boxed width; drop Cassiopeia's full-bleed gutter columns */
.container-header,
.site-grid {
  width: min(1100px, 100%);
  margin-inline: auto;
}
@supports (display: grid) {
  .site-grid {
    grid-template-columns: [full-start] 0 [main-start] repeat(4, minmax(0, 1fr)) [main-end] 0 [full-end];
  }
}
.container-header {
  margin-top: 1rem;
  border-radius: 18px 18px 0 0;
  background: var(--ilpf-green) url("../images/header.jpg") center / cover no-repeat;
  box-shadow: none;
  padding-bottom: 0;
}
.container-header .navbar-brand {
  padding: .75rem 0 .5rem;
}
.container-header .navbar-brand img {
  max-height: 150px;
  width: auto;
}

/* Dark bar with light-green tabs */
.container-header .container-nav {
  background: var(--ilpf-bar);
  margin: 0;
  padding: .45rem .75rem 0;
  max-width: none;
}
.container-header .mod-menu {
  gap: .35rem;
}
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > .mod-menu__heading,
.container-header .metismenu.mod-menu .mm-toggler,
.container-header .metismenu.mod-menu > li > button {
  color: var(--ilpf-text);
  background: var(--ilpf-tab);
  border-radius: 6px 6px 0 0;
  padding: .3rem .85rem;
  font-size: .95rem;
  text-decoration: none;
  opacity: 1;
}
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: #f3f7ed;
  color: var(--ilpf-text);
  text-decoration: none;
}
.container-header .metismenu.mod-menu .mm-collapse {
  background: var(--ilpf-tab);
  border: 0;
}
.container-header .metismenu.mod-menu .mm-collapse a {
  color: var(--ilpf-text);
}
.container-header .navbar {
  padding: 0;
}
.container-header .navbar-toggler {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 6px;
  margin: 0 0 .45rem;
  padding: .35rem .75rem;
  font-family: inherit;
  font-size: 1rem;
}
.container-header .navbar-toggler::after {
  content: "Menu";
  margin-left: .5rem;
}

/* Phone/tablet: hamburger opens a full-width list instead of floating tabs */
@media (max-width: 991.98px) {
  .container-header .navbar-collapse .mod-menu {
    flex-direction: column;
    gap: 0;
    padding-bottom: .5rem;
  }
  .container-header .navbar-collapse .metismenu.mod-menu > li {
    width: 100%;
  }
  .container-header .navbar-collapse .metismenu.mod-menu > li > button.mm-toggler::after {
    position: absolute;
    right: .75rem;
    top: 50%;
    margin-top: -.15em;
  }
  .container-header .navbar-collapse .metismenu.mod-menu > li > button {
    position: relative;
  }
  .container-header .navbar-collapse .metismenu.mod-menu > li > a,
  .container-header .navbar-collapse .metismenu.mod-menu > li > button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    color: #f3f7ed;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: .7rem .5rem;
  }
  .container-header .navbar-collapse .mod-menu > li.active > a,
  .container-header .navbar-collapse .mod-menu > li.current > a {
    background: var(--ilpf-tab);
    color: var(--ilpf-text);
  }
  .container-header .navbar-collapse .metismenu.mod-menu .mm-collapse {
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
  }
  .container-header .navbar-collapse .metismenu.mod-menu .mm-collapse a {
    color: #f3f7ed;
    padding: .6rem 1.5rem;
  }
}

/* Page body: green sidebar on the left, pale green content */
.site-grid {
  background: var(--ilpf-page);
  border-radius: 0 0 18px 18px;
  padding-top: 0;
  padding-bottom: 1rem;
  grid-gap: 0 1.5em;
}
.container-sidebar-left {
  background: var(--ilpf-sidebar);
  padding: 1rem .75rem;
  border-bottom-left-radius: 18px;
}
.container-sidebar-left .card {
  background: transparent;
  border: 0;
  margin-bottom: 1rem;
}
.container-sidebar-left .card-header {
  background: transparent;
  border: 0;
  font-weight: bold;
  font-size: 1rem;
  color: #111;
  padding: .25rem .5rem;
}
.container-sidebar-left .card-header::before {
  content: "";
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #bbb 70%);
  border: 1px solid #777;
  vertical-align: -1px;
}
.container-sidebar-left .card-body {
  padding: 0 .5rem;
}
.container-sidebar-left .mod-menu {
  padding-left: .25rem;
}
.container-sidebar-left .mod-menu a {
  display: block;
  color: #3b4d22;
  font-weight: bold;
  padding: .35rem .5rem;
  text-decoration: none;
  border-radius: 4px;
}
.container-sidebar-left .mod-menu a:hover,
.container-sidebar-left .mod-menu .current > a {
  background: rgba(255, 255, 255, .35);
  color: #1f2b10;
}
.container-component {
  padding: 1rem 1.25rem 0 0;
}
.container-component .item-page,
.container-component .blog {
  line-height: 1.55;
}
.page-header h1,
.page-header h2,
.item-title {
  color: var(--ilpf-green-dark);
}

/* Breadcrumbs are noise on a site this small */
.container-breadcrumbs { display: none; }

/* Cemetery photo galleries */
.ilpf-gallery-title {
  margin-top: 2rem;
  font-size: 1.35rem;
  border-bottom: 2px solid var(--ilpf-green-light);
  padding-bottom: .25rem;
}
.ilpf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.ilpf-gallery figure {
  margin: 0;
  background: #f6f9f0;
  border: 1px solid #c3d6a1;
  border-radius: 6px;
  padding: .5rem;
  text-align: center;
}
.ilpf-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}
.ilpf-gallery figcaption {
  font-size: .85rem;
  line-height: 1.35;
  margin-top: .4rem;
}

/* Responsive YouTube embed */
.ilpf-video {
  position: relative;
  max-width: 640px;
  margin: 1rem auto;
  aspect-ratio: 16 / 9;
}
.ilpf-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Old inline-sized images shouldn't overflow on phones */
.item-page img { max-width: 100%; height: auto; }

.footer {
  background: transparent;
  color: #4f5a40;
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .container-header,
  .site-grid { border-radius: 0; margin-top: 0; }
  .container-sidebar-left { border-radius: 0; }
}
