/* Six columns in the shared desktop menu. Keep the theme's mobile toggle. */
@media screen and (min-width: 50em) {
  #masthead #header-menu {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: #fff;
  }

  #masthead #header-menu > li {
    display: flex;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  #masthead #header-menu > li::before {
    display: none;
  }

  #masthead #header-menu > li + li {
    border-inline-start: 1px solid #e4e0e8;
  }

  #masthead #header-menu > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding: 12px clamp(10px, 1.2vw, 17px);
    font-size: clamp(0.8rem, 1.2vw, 0.94rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  #masthead #header-menu > .menu-item-has-children > a {
    padding-inline-end: 39px;
  }

  #masthead #header-menu > li > .dropdown-toggle {
    top: 50%;
    right: 8px;
    z-index: 4;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
  }
}

/* The Dusty Files posts index. */
body.blog #masthead {
  min-height: 0;
  padding-bottom: 26px;
  background-position: center 57%;
}

body.blog #site-navigation {
  margin-bottom: 0;
}

body.blog .featured-content {
  display: none;
}

body.blog #content {
  padding-top: clamp(26px, 4vw, 56px);
  padding-bottom: clamp(30px, 5vw, 64px);
}

body.blog #main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 20px;
  height: auto !important;
  align-items: start;
}

body.blog #main > :not(article.card) {
  grid-column: 1 / -1;
}

body.blog #main > header {
  margin: 0;
}

body.blog #main .page-title.screen-reader-text {
  position: static !important;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: 0.035em;
  color: #221442;
}

body.blog #main > article.card {
  position: relative !important;
  inset: auto !important;
  float: none;
  width: 100%;
  min-width: 0;
  height: auto !important;
  aspect-ratio: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 24px;
  border: 1px solid #d9d3e1;
  border-radius: 8px;
  background: #fff;
}

body.blog #main .card > .entry-header,
body.blog #main .card > .entry-content {
  position: static;
  display: block;
  width: auto;
  height: auto !important;
  min-height: 0;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #434343;
  opacity: 1;
  transform: none;
}

body.blog #main .card .entry-header > .entry-meta,
body.blog #main .card .edit-link {
  display: none;
}

body.blog #main .card .entry-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0.025em;
}

body.blog #main .card .entry-title a {
  display: inline;
  height: auto;
  padding: 0;
  color: #221442;
  text-decoration: none;
}

body.blog #main .card .entry-title a:hover,
body.blog #main .card .entry-title a:focus-visible {
  text-decoration: underline;
}

body.blog #main .card .entry-content .entry-meta {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
}

body.blog #main .card .entry-content a,
body.blog #main .card .entry-content a span {
  padding: 0;
  color: #434343;
}

body.blog #main .card .entry-content > a {
  display: block;
  line-height: 1.5;
}
