/* DiscoClub Mobile 1.3.1 — related reading (single articles only). */
body.single-post #primary article.post .dc-related {
  clear: both;
  margin: 26px 0 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.14);
}
body.single-post #primary article.post .dc-related__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
  margin: 0 0 14px;
  color: #2b3445;
}
body.single-post #primary article.post .dc-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}
body.single-post #primary article.post .dc-related__card {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  overflow: hidden;
}
body.single-post #primary article.post .dc-related__link {
  display: block;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: #283747;
}
body.single-post #primary article.post .dc-related__picture {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f4f9;
  height: clamp(100px, 12vw, 156px);
  width: 100%;
  overflow: hidden;
}
body.single-post #primary article.post .dc-related__picture img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}
body.single-post #primary article.post .dc-related__placeholder {
  color: #90a9cd;
  font-size: 42px;
  line-height: 1;
}
body.single-post #primary article.post .dc-related__name {
  display: block;
  padding: 10px 12px 12px;
  font-size: 14px;
  line-height: 1.43;
  font-weight: 600;
  overflow-wrap: anywhere;
}
body.single-post #primary article.post .dc-related__link:hover .dc-related__name,
body.single-post #primary article.post .dc-related__link:focus-visible .dc-related__name {
  color: #557bb9;
  text-decoration: underline;
}
body.single-post #primary article.post .dc-related__link:focus-visible {
  outline: 2px solid #557bb9;
  outline-offset: -3px;
}
@media (max-width: 740px) {
  body.single-post #primary article.post .dc-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.single-post #primary article.post .dc-related__picture { height: 130px; }
}
@media (max-width: 480px) {
  body.single-post #primary article.post .dc-related__grid { grid-template-columns: 1fr; gap: 10px; }
  body.single-post #primary article.post .dc-related__card { max-width: 100%; }
  body.single-post #primary article.post .dc-related__link {
    display: grid;
    grid-template-columns: 102px minmax(0,1fr);
    min-height: 94px;
    align-items: stretch;
  }
  body.single-post #primary article.post .dc-related__picture { height: 100%; min-height: 94px; }
  body.single-post #primary article.post .dc-related__name { align-self: center; padding: 8px 10px; font-size: 14px; }
}


/* DiscoClub Mobile 1.3.2 — restore compact category badges on single posts.
   v1.3.1 used a custom category wrapper to omit Uncategorized; without this
   reset, BlogMagazine stretches each category link into a full-width bar. */
body.single-post #primary article.post .entry-header .dc-single-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 5px !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
body.single-post #primary article.post .entry-header .dc-single-cats > a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #0e4da2 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    text-align: left !important;
    overflow-wrap: break-word;
}
body.single-post #primary article.post .entry-header .dc-single-cats > a:is(:hover, :focus-visible) {
    background: #083a7b !important;
    color: #fff !important;
}
/* Publication date and author remain; the noisy modification timestamp is
   kept in post markup for machines but not duplicated in the header line. */
body.single-post #primary article.post .entry-header .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin: 4px 0 9px;
    font-size: 12px;
    line-height: 1.4;
}
body.single-post #primary article.post .entry-header .entry-meta > span {
    margin-right: 0;
}
body.single-post #primary article.post .entry-header .entry-meta .dc-date-divider,
body.single-post #primary article.post .entry-header .entry-meta .dc-update-label,
body.single-post #primary article.post .entry-header .entry-meta time.updated:not(.published) {
    display: none !important;
}
