/* TAGS */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #1e40af;
  /* background: -webkit-linear-gradient(to bottom, #1e40af, #1e40af, #cfd5ff, #1e40af, #1e40af);
  background: linear-gradient(to bottom, #1e40af, #1e40af, #cfd5ff, #1e40af, #1e40af); */
  background-attachment: fixed;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html {
  scrollbar-gutter: stable;
}

@view-transition {
  navigation: auto;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  text-align: center;
}

blockquote {
  background-color: aliceblue;
  font-family: serif;
  padding: .5em;
  border-left: 1em solid lightblue;
}

dt {
  font-weight: bold;
}

dd {
  margin-bottom: 1em;
}

code {
  white-space: pre-wrap;
  display: block;
  padding: .5em;
  margin-top: .5em;
  border: 5px inset;
  border-radius: .5em;
  background-color: #352879;
  /* color: #ffb000; */
  color: #70FFFF;
  font-family: monospace;
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

/* CLASSES */
.background-text {
  font-size: 30px;
  color: #f1f1f1;
  position: fixed;
  z-index: -1;
  height: 100vh;
  opacity: .1;
}

.menu_only {
  background-color: #fff;
  margin-top: 52px;
}

.homepage main {
  margin-top: 54px;
}

.paper {
  /* background: rgb(247, 244, 234); */
  background: #fffaf0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 10px 0 -5px #eee, 0 10px 1px -4px rgba(0, 0, 0, 0.15), 0 20px 0 -10px #eee, 0 20px 1px -9px rgba(0, 0, 0, 0.15);
  margin: 1em auto;
  min-height: 70vh;
  padding: 1em;
}

.container {
  width: 100%;
  margin-top: 4rem !important;
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile-first single column layout */
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "main"
    "sidebar";
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
}

.page_split_sidebar {
  position: sticky;
  top: 9em;
  align-self: start;
}

.page_split_sidebar {
  /* position: fixed;
  top: 4em;
  align-self: start;
  right: 0;
  background-color: #fffaf0;
  height: 100dvh;
  box-shadow: -10px 0px 10px rgba(0, 0, 0, .8);
  z-index: 10;
  padding: 1em; */
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.gap-1 {
  gap: 1em;
}

.gap-2 {
  gap: 2em;
}

.mb-1 {
  margin-bottom: 1em;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.text-center {
  text-align: center;
}

.heroBackgroundImage {
  background-size: cover;
  height: 30em;
  background-position: center;
}

.social_icon {
  height: 1em;
}

.site_avatar {
  width: 80%;
  border-radius: 1em;
  border-top-left-radius: 0;
  max-width: 10em;
  margin: 0 auto;
  display: block;
}

.nav-previous a,
.nav-next a,
aside a,
#searchsubmit,
.cat-links a,
.tags-links a,
a.pill,
button.btn {
  background-color: blue;
  background: linear-gradient(#2989D8 0%, #1E5799 100%);
  color: white;
  text-decoration: none;
  border-radius: .25rem;
  padding: .25rem;
  font-size: .75rem;
  transition-duration: 200ms;
  display: inline-block;
  margin: .1em 0;
  border: none;
  cursor: pointer;
}

a.pill_disabled {
  background-color: #aaa;
  background: linear-gradient(#aaa 0%, #666 100%);
  pointer-events: none;
}

.nav-previous a:hover,
.nav-next a:hover,
aside a:hover,
a.pill:hover,
#searchsubmit:hover,
button.btn:hover {
  text-decoration: underline;
  filter: brightness(120%);
}

.wp-caption-text {
  font-size: .75em;
  color: #666;
  font-style: italic;
}

.aligncenter {
  /* Wordpress class override */
  clear: both;
  margin: auto;
}

/* Materialize Overrides */
nav.noshadow {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.article_nav {
  background-color: transparent !important;
  box-shadow: none;
}

/* .article_nav a {
  color: #fff;
} */

.article_nav .nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.page-footer {
  background-color: #1e40af;
  margin-top: 1em;
  color: #fff;
  font-size: .75rem;
}

.page-footer a {
  color: #fff;
}

#sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page_split_sidebar h2 {
  font-size: 2rem;
  text-align: left;
  font-weight: normal;
  margin: 1em 0 0 0;
  border-top: 1px solid;
}

.wp-post-image {
  width: 100%;
  height: auto;
}

.card-image {
  float: left;
  width: 50%;
  padding-right: 1em;
  padding-bottom: 1em;
  font-weight: bold;
  text-align: center;
}

.card-image img {
  border-radius: .25rem;
  transition-duration: 200ms;
}
.card-image img:hover {
  filter: brightness(120%);
}
/* 
.card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); 
}
*/

.card-image .card-title {
  z-index: 1;
}

.entry-content ul {
  padding-left: 1em;
  list-style-type: disc;
}

.entry-content ol {
  padding-left: 2em;
  list-style-type: decimal;
}

.entry-content ul li {
  list-style-type: disc;
}

.underline {
  text-decoration: underline;
}

.center-align {
  text-align: center;
}

.ribbon {
  position: absolute;
  top: .5rem;
  left: -8px;
  padding: .25em .5em;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#2989D8 0%, #1E5799 100%);
  color: #FFFFFF;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 5;
}

.ribbon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  border-top: 8px solid #1E5799;
  filter: brightness(70%);
  border-left: 8px solid transparent;
}

.ribbon a {
  color: #fff;
  text-decoration: none;
}

.ribbon a:hover {
  text-decoration: underline;
}

.prev_next_group {
  margin-top: 1em;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
}

.prev_next_group a {
  width: 10em;
  text-align: center;
}

.prev_next_group a i {
  position: relative;
  top: .3em;
  line-height: .3;
}

.responsive-img {
  width: 100%;
}

.article_wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2em;
}

.article_wrapper article {
  background-color: #fff;
  flex-basis: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
  padding: .5em;
  position: relative;
}

.ai_generated {
  background-color: darkorange;
  color: #fff;
  font-size: .75em;
  padding: .125em;
  font-weight: 100;
  text-transform: uppercase;
  border-radius: .5em;
}

/* Generated CSS Menu */
.gen-nav {
  display: flex;
  align-items: center;
  background: #1e40af;
  min-height: 52px;
  border-radius: 8px;
  border: 0px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  padding: 0 16px;
  position: relative;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
  position: fixed;
  width: 100%;
  z-index: 10;
}

@media (min-width: 768px) {
  .gen-nav>ul {
    display: flex !important;
  }
}

.gen-nav a {
  color: #fff;
  text-decoration: none;
}

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

.gen-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gen-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}

.gen-logo-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.gen-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;

}

.gen-hamburger span {
  display: block;
  background: #ffffff;
  transition: all .3s;
  width: 22px;
  height: 1px;
  border-radius: 0;
  margin: 4px 0;
}

.gen-nav>ul {
  display: flex;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.gen-nav>ul>li {
  position: relative;
}

.gen-nav>ul>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 52px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 300;
  text-transform: none;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.gen-nav>ul>li>a:hover,
.gen-nav>ul>li:hover>a {
  background: #1d4ed8;
  color: #bfdbfe;
}

.gen-arrow {
  font-size: .7em;
  opacity: .8;
  vertical-align: middle;
}

/* Dropdown */
.gen-nav>ul>li>ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e3a8a;
  min-width: 170px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 1000;
  overflow: hidden;
}

.gen-nav>ul>li:hover>ul {
  display: block;
}

.gen-nav>ul>li>ul>li {
  float: none !important;
}

.gen-nav>ul>li>ul>li>a {
  display: block;
  padding: 5px 5px;
  color: #dbeafe;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 3;
}

.gen-nav>ul>li>ul>li>a:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.gen-nav>ul>li>ul>li:last-child {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.gen-nav>ul>li>ul>li:last-child>a {
  border-radius: 0 0 6px 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .gen-hamburger {
    display: flex;
    margin-left: 0;
    position: absolute;
    right: 2em;
  }

  .gen-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .gen-logo {
    margin-right: auto;
    margin-left: 0;
    justify-self: unset;
    order: -1;
  }

  .gen-nav>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1e40af;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    z-index: 9999;
    padding: 8px 0;
    overflow: hidden;
  }

  .gen-nav>ul.open {
    display: flex;
  }

  /* Remove nav bottom radius when dropdown is open so they flow together */
  .gen-nav.mobile-open {
    border-radius: 8px 8px 0 0;
  }

  .gen-nav>ul>li>a {
    height: auto;
    padding: 14px 20px;
  }

  /* Reset desktop last-child rounding — not needed on mobile */
  .gen-nav>ul>li:last-child {
    border-radius: 0;
    overflow: visible;
  }

  .gen-nav>ul>li:last-child>a {
    border-radius: 0;
  }

  .gen-nav>ul>li>ul {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: rgba(0, 0, 0, .15);
    min-width: 0;
  }

  /* No rounding on submenu items in mobile */
  .gen-nav>ul>li>ul>li:last-child {
    border-radius: 0;
    overflow: visible;
  }

  .gen-nav>ul>li>ul>li:last-child>a {
    border-radius: 0;
  }

  .gen-nav>ul>li>ul>li>a {
    padding: 10px 32px;
  }

  /* Hamburger animates to X when open */

  .gen-nav.mobile-open .gen-hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .gen-nav.mobile-open .gen-hamburger span:nth-child(2) {
    opacity: 0;
  }

  .gen-nav.mobile-open .gen-hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

}

/* END Generated CSS Menu */

@media screen and (min-width: 768px) {
  .container {
    width: 90%;
    max-width: 1024px;
    margin: 0 auto;
    grid-template-columns: 1fr 240px;
    /* Sidebar width is fixed at 240px, main takes up the rest */
    grid-template-rows: 1fr;
    grid-template-areas:
      "main sidebar"
  }
}

@media screen and (min-width: 992px) {}

@media print {
  body {
    background-color: #fff;
  }

  .no-print {
    display: none !important;
  }

  .card,
  .keep-together {
    break-inside: avoid;
    page-break-inside: avoid;
    /* Legacy fallback */
  }

  .container {
    width: 100%;
    margin-top: 0 !important;
  }

  .paper {
    background-color: #fff;
  }
}