/*
Theme Name: DiscoClub Mobile — BlogMagazine Child
Theme URI: https://discoclub.su/
Description: Parallel DiscoClub child theme with original Festivals strip, compact mobile branding, accessible expanding navigation and integrated historical Customizer CSS.
Author: DiscoClub
Author URI: https://discoclub.su/
Template: blogmagazine
Version: 1.2.9
Text Domain: discoclub-blogmagazine-mobile
Requires PHP: 8.0
*/

/* Date display and preserved template compatibility. */
.posted-on .dc-date-divider { white-space: pre; }
.posted-on .dc-update-label { white-space: nowrap; }

/* Existing DiscoClub Customizer > Additional CSS, incorporated November 2026. */
body.page-id-261099 .entry-title { display: none; }
span.comments-link { display: none; }
.site-info { display: none; }
h1.entry-title { text-transform:none }
.blogmagazine-logo-section-wrapper {
    padding: 0px;
    background: linear-gradient(to top right, #ffffff 0%,#bdd6ff 70%,#c2d7fa 75%,#b2c9f3 80%,#94b0e4 90%,#7b9ddb 99%,#6287c5 100%);
}
.dg-container { padding: 0 15px; }
@media (min-width: 979px) {
  .site-header .site-branding { float: left; max-width: 800px; }
}
.site-header .site-branding .custom-logo { max-height: 100%; }
.blogmagazine-archive-post-content-wrapper {
    padding-top: 5px;
    padding-bottom: 5px;
    background: linear-gradient(to top right, #ffffff 0%,#bdd6ff 70%,#c2d7fa 75%,#b2c9f3 80%,#94b0e4 90%,#7b9ddb 93%,#6287c5 97%,#557bb9 100%);
}
.blogmagazine-archive-post-content-wrapper .entry-title { background: #bdd6ff; color: white; }
.blogmagazine-top-header-wrap {
    background: linear-gradient(to bottom, #ffffff 0%,#bdd6ff 3%,#c2d7fa 20%,#b2c9f3 33%,#94b0e4 50%,#7b9ddb 53%,#6287c5 80%,#557bb9 100%);
}
.blogmagazine-header-menu-block-wrap {
    background: linear-gradient(to bottom, #ffffff 0%,#bdd6ff 3%,#c2d7fa 20%,#b2c9f3 33%,#94b0e4 50%,#7b9ddb 53%,#6287c5 80%,#557bb9 100%);
}
.top-navigation { float: left; }
.top-navigation ul { margin: 0; padding: 10px 0; list-style: none; }
.top-navigation ul .menu-item { display: inline-block; line-height: 48px; margin-right: -3px; position: relative; }
.top-navigation ul .menu-item > a {
    color: #fff; display: block; padding: 0 15px; position: relative; text-transform: none;
    border-left: 1px solid rgba(255,255,255,.2); border-right: 1px solid rgba(0,0,0,.08);
}
@media (min-width: 768px) {
  .top-navigation ul .menu-item:hover > a,
  .top-navigation ul .menu-item.menu-item-focused > a { background-color: #557bb9; }
}
.top-navigation ul .menu-item:hover > .sub-menu,
.top-navigation ul .menu-item.menu-item-focused > .sub-menu { top: 100%; opacity: 1; visibility: visible; }
.top-navigation ul .menu-item.menu-item-has-children > a:before {
    top: 2px; right: 1px; content: "\f103"; position: absolute; font-family: FontAwesome;
}
.top-navigation ul.sub-menu {
    left: 0; top: 120%; z-index: 1; opacity: 0; min-width: 250px;
    position: absolute; visibility: hidden; -webkit-transition: all .5s ease;
    -o-transition: all .5s ease; -moz-transition: all .5s ease;
    transition: all .5s ease; background-color: #557bb9;
}
.posted-on time.updated { display: inline; }


/* Enhanced mobile-only submenu buttons must not appear on desktop. */
.site-header #site-navigation .dc-submenu-toggle { display: none; }

/* ------- DiscoClub mobile refinement 1.2.3 -------
   Keep native BlogMagazine hooks and real wp_nav_menu output. No second header.
   Desktop retains the original WordPress header and menu configuration. */
@media screen and (max-width: 979px) {
  /* Festival navigation stays above the logo. Multi-row, centered, never scrollable. */
  body .site-header .blogmagazine-top-header-wrap { display: block !important; }
  body .site-header .blogmagazine-top-header-wrap > .dg-container {
    padding-left: 0; padding-right: 0;
    max-width: 100%;
  }
  body .site-header .blogmagazine-top-left-section-wrapper {
    display: block; float: none; width: 100%; min-width: 0;
  }
  body .site-header .blogmagazine-top-left-section-wrapper .date-section { display: none; }
  body .site-header .top-navigation {
    display: block; float: none; width: 100%; max-width: 100%;
    text-align: center; white-space: normal;
    overflow: visible; /* Restore natural wrapping; no horizontal scroll */
  }
  body .site-header .top-navigation > div { width: 100%; min-width: 0; }
  body .site-header .top-navigation ul {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    width: 100%; min-width: 0; margin: 0 auto; padding: 4px 6px;
    box-sizing: border-box; white-space: normal;
  }
  body .site-header .top-navigation ul > li.menu-item {
    display: block; flex: 0 1 auto; float: none; margin: 0;
    max-width: 100%; padding: 0; line-height: normal; border-right: 0;
    text-align: center;
  }
  body .site-header .top-navigation ul > li.menu-item > a {
    display: block; min-height: 0; padding: 6px 10px;
    font-size: 13px; line-height: 1.35;
    white-space: normal; text-align: center; color: #fff;
    overflow-wrap: break-word; box-sizing: border-box;
  }
  body .site-header .blogmagazine-top-right-section-wrapper { display: none; }

  /* Original logo and widget, now in one compact row instead of two tall rows. */
  body .site-header .blogmagazine-logo-section-wrapper {
    display: block !important; padding: 5px 0 !important;
  }
  body .site-header .blogmagazine-logo-section-wrapper > .dg-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 0 12px;
  }
  body .site-header .site-branding {
    float: none; flex: 1 1 auto; min-width: 0; width: auto !important;
    max-width: calc(100% - 62px) !important; text-align: left;
  }
  body .site-header .site-branding .site-logo { margin: 0; padding: 0; }
  body .site-header .site-branding .custom-logo-link {
    display: inline-flex; align-items: center; max-width: 100%; padding: 0; margin: 0;
  }
  body .site-header .site-branding .custom-logo {
    display: block; width: auto; height: auto;
    max-width: 100%; max-height: 65px !important; object-fit: contain;
  }
  body .site-header .site-branding .site-title { font-size: 20px; line-height: 1.2; }
  body .site-header .site-branding .site-description { display: none; }
  body .site-header .blogmagazine-header-ads-area {
    flex: 0 0 auto; float: none; width: auto !important;
    margin: 0 !important; padding: 0; text-align: right;
  }
  body .site-header .blogmagazine-header-ads-area .widget {
    margin: 0; padding: 0; min-height: 0;
  }
  body .site-header .blogmagazine-header-ads-area .widget-title { display: none; }
  body .site-header .dglib-social-icons .social-icons { display: flex; align-items: center; gap: 4px; }
  body .site-header .dglib-social-icons .social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; width: 43px; height: 43px;
    padding: 0; margin: 0; font-size: 22px; line-height: 1;
    border-radius: 8px;
  }

  /* Use BlogMagazine's real mobile navigation, search and existing menu hierarchy. */
  body .site-header #blogmagazine-menu-wrap,
  body .site-header .blogmagazine-header-menu-wrapper { display: block !important; }
  /* Keep the original sticky jQuery plugin operational; the wrapper needs its measured height. */
  body .site-header .blogmagazine-header-menu-wrapper > .blogmagazine-header-menu-block-wrap > .dg-container {
    display: flex; align-items: center; min-height: 46px; justify-content: space-between;
  }
  body .site-header .blogmagazine-home-icon { display: none; }
  body .site-header .blogmagazine-header-menu-wrapper .menu-toggle,
  body .site-header .blogmagazine-header-menu-wrapper .menu-toggle.hide {
    display: flex !important; float: none; align-items: center;
    justify-content: center; height: 46px; min-width: 46px;
    line-height: 46px; padding: 0 12px;
    text-decoration: none;
  }
  body .site-header .blogmagazine-header-search-wrapper { float: none; margin-left: auto; }
  body .site-header .blogmagazine-header-search-wrapper .search-main {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 10px;
  }
  body .site-header .blogmagazine-header-search-wrapper .search-form-main {
    top: 100%; right: 0; max-width: min(92vw, 360px); box-sizing: border-box;
  }
  body .site-header #site-navigation {
    display: none; float: none; position: absolute; top: 100%;
    left: 0; right: 0; width: 100%;
    z-index: 1500; background: #557bb9;
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 9px 18px rgba(14,40,88,.24);
  }
  body .site-header #site-navigation ul { display: block; margin: 0; padding: 0; list-style: none; }
  body .site-header #site-navigation li.menu-item {
    display: block; position: relative; float: none; width: 100%;
    line-height: 1.4; margin: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  }
  body .site-header #site-navigation li.menu-item > a {
    display: block; padding: 11px 53px 11px 16px;
    font-size: 15px; line-height: 1.35; min-height: 22px;
    color: #fff; border: 0; text-transform: none;
    background: transparent;
  }
  body .site-header #site-navigation li.menu-item > a::before { display: none; }
  body .site-header #site-navigation li.menu-item > a::after { display: none; }
  body .site-header #site-navigation li.menu-item > a:focus-visible,
  body .site-header #site-navigation li.menu-item > a:hover { background: #426da9; }
  body .site-header #site-navigation ul.sub-menu {
    position: static; display: none; opacity: 1; visibility: visible;
    width: 100%; min-width: 0; top: auto; left: auto; right: auto;
    background: #40679e; box-shadow: none;
    margin: 0; padding: 0; transform: none; transition: none;
  }
  body .site-header #site-navigation ul.sub-menu li > a { padding-left: 30px; }
  body .site-header #site-navigation ul.sub-menu ul.sub-menu li > a { padding-left: 44px; }
  body .site-header #site-navigation ul.sub-menu[hidden] { display: none !important; }
  body .site-header #site-navigation li.dc-submenu-open > ul.sub-menu { display: block; }
  body .site-header #site-navigation .sub-toggle { display: none; }
  body .site-header #site-navigation .dc-submenu-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 1px; top: 0;
    width: 45px; height: 43px; cursor: pointer;
    color: #fff; background: rgba(5,38,83,.18);
    border: 0; border-left: 1px solid rgba(255,255,255,.25);
    border-radius: 0; font: 700 22px/1 Arial, sans-serif;
    padding: 0;
  }
  body .site-header #site-navigation .dc-submenu-toggle:focus-visible,
  body .site-header .menu-toggle:focus-visible { outline: 3px solid #ffbc31; outline-offset: -3px; }
  body .site-header #site-navigation .dc-submenu-toggle .dc-expander-symbol {
    transition: transform .15s ease;
  }
  body .site-header #site-navigation .dc-submenu-toggle[aria-expanded="true"] .dc-expander-symbol { transform: rotate(45deg); }
}
@media screen and (max-width: 400px) {
  body .site-header .site-branding .custom-logo { max-height: 55px !important; }
  body .site-header .blogmagazine-header-ads-area .dglib-social-icons .social-icons a {
    width: 39px; height: 39px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .site-header #site-navigation .dc-submenu-toggle .dc-expander-symbol { transition: none; }
}


/* ===============================================================
   DiscoClub 1.2.4 — editorial display and compact festival navigation
   Only front-end single posts, archive cards and mobile header.
   Smart Slider, SiteOrigin page content, RSS and WP editor untouched.
   =============================================================== */

/* Festival navigation: wrap in centered rows with considerably less
   vertical padding than in 1.2.3. Preserve ordinary links. */
@media screen and (max-width: 979px) {
  body .site-header .top-navigation ul {
    padding: 1px 4px !important;
    row-gap: 0;
    column-gap: 0;
    align-content: center;
  }
  body .site-header .top-navigation ul > li.menu-item {
    line-height: 1.15 !important;
  }
  body .site-header .top-navigation ul > li.menu-item > a {
    padding: 3px 6px !important;
    line-height: 1.22 !important;
    font-size: 12.5px;
    min-height: 0;
  }
  /* On mobile, the admin toolbar occupies its OWN row in the normal flow.
     This avoids the large fixed bar covering the festival strip.
     WordPress normally adds a top margin to html for its fixed toolbar. */
  html:root { margin-top: 0 !important; }
  body.admin-bar #wpadminbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
  }
  body.admin-bar #page { clear: both; }
  /* BlogMagazine sticky plugin is configured in dc-mobile-header.js. */
}

/* Single post: headline and categories FIRST, modest cover below.
   If an editor inserted that same image into the article body, the PHP
   template automatically suppresses the duplicated featured cover. */
.single-post #primary article .entry-header { margin-bottom: 10px; }
.single-post #primary article .entry-header > h1.entry-title {
  font-size: clamp(25px, 2.5vw, 35px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  text-transform: none;
  overflow-wrap: break-word;
}
.single-post #primary article .entry-header .post-cats-list { margin: 0 0 7px; }
.single-post #primary article .entry-meta { margin: 4px 0 9px; line-height: 1.45; }
.single-post #primary article .entry-meta span { margin-right: 8px; }
.single-post #primary article .dc-featured-cover {
  margin: 10px 0 16px;
  padding: 0;
  text-align: center;
  background: transparent;
}
.single-post #primary article .dc-featured-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 470px);
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
}
/* Respect editorial structure while reducing excessive blank space.
   Restrict typography to actual article content, not widgets/carousels. */
.single-post #primary article .entry-content {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 10px;
  overflow-wrap: break-word;
}
.single-post #primary article .entry-content p {
  margin: 0 0 0.7em;
  line-height: 1.55;
}
.single-post #primary article .entry-content p:empty { display: none; }
@supports selector(p:has(> br:only-child)) {
  .single-post #primary article .entry-content p:has(> br:only-child) { display: none; }
}
.single-post #primary article .entry-content h2,
.single-post #primary article .entry-content h3,
.single-post #primary article .entry-content h4,
.single-post #primary article .entry-content h5,
.single-post #primary article .entry-content h6 {
  clear: both;
  font-weight: 700;
  line-height: 1.28;
  margin: 0.95em 0 0.3em;
  text-transform: none;
}
.single-post #primary article .entry-content h2 { font-size: 23px; }
.single-post #primary article .entry-content h3 { font-size: 20px; }
.single-post #primary article .entry-content h4 { font-size: 18px; }
.single-post #primary article .entry-content h5 { font-size: 16px; }
.single-post #primary article .entry-content h6 { font-size: 15px; }
.single-post #primary article .entry-content ul,
.single-post #primary article .entry-content ol {
  margin: 0 0 0.85em 1.25em;
  white-space: normal;
  padding-left: 0.5em;
}
.single-post #primary article .entry-content li { margin: 0 0 0.25em; }
.single-post #primary article .entry-content figure,
.single-post #primary article .entry-content .wp-block-image { margin: 11px auto 13px; }
.single-post #primary article .entry-content img { max-width: 100%; height: auto; }
.single-post #primary article .entry-content p + h2,
.single-post #primary article .entry-content p + h3 { margin-top: 0.9em; }

/* News, category, tags and search: compact thumbnails alongside readable
   headlines instead of a full-size image before every archive entry. */
#primary .dc-archive-heading { margin: 0 0 17px; }
#primary .dc-archive-title {
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.2;
  margin: 0 0 5px;
  font-weight: 700;
}
#primary .dc-archive-heading .archive-description { margin: 0 0 10px; }
#primary article.dc-archive-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 15px;
  margin: 0 0 15px;
  border: 1px solid #e0e7ef;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(18, 46, 83, 0.045);
  box-sizing: border-box;
}
#primary article.dc-archive-card .dc-archive-image {
  flex: 0 0 180px;
  width: 180px;
  height: 130px;
  overflow: hidden;
  border-radius: 5px;
  background: #e6effc;
}
#primary article.dc-archive-card .dc-archive-image a { display: block; width: 100%; height: 100%; }
#primary article.dc-archive-card .dc-archive-image img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
#primary article.dc-archive-card .dc-archive-image a:hover img { transform: scale(1.035); }
#primary article.dc-archive-card .dc-archive-image-placeholder {
  display: grid; place-items: center;
  height: 100%;
  font-size: 36px;
  color: #678fbd;
}
#primary article.dc-archive-card .dc-archive-body,
#primary article.dc-archive-card .blogmagazine-archive-post-content-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent !important;
  position: static;
}
#primary article.dc-archive-card .blogmagazine-archive-post-content-wrapper:before { display: none; }
#primary article.dc-archive-card h2.entry-title,
#primary article.dc-archive-card.format-aside h2.entry-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 6px;
  text-transform: none;
  background: transparent !important;
  overflow-wrap: break-word;
}
#primary article.dc-archive-card h2.entry-title a {
  color: #174876;
  text-decoration: none;
}
#primary article.dc-archive-card h2.entry-title a:hover { color: #0b68ae; text-decoration: underline; }
#primary article.dc-archive-card .entry-meta { margin-bottom: 7px; line-height: 1.4; }
#primary article.dc-archive-card .entry-meta span { margin-right: 8px; }
#primary article.dc-archive-card .dc-archive-excerpt {
  color: #434f60;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
#primary article.dc-archive-card .dc-archive-more {
  color: #0c4da2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
#primary article.dc-archive-card .dc-archive-more:hover { text-decoration: underline; }
@media screen and (max-width: 600px) {
  #primary article.dc-archive-card { gap: 11px; padding: 11px; margin-bottom: 11px; }
  #primary article.dc-archive-card .dc-archive-image {
    flex-basis: 100px; width: 100px; height: 100px;
  }
  #primary article.dc-archive-card h2.entry-title { font-size: 17px; line-height: 1.27; }
  #primary article.dc-archive-card .dc-archive-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
  .single-post #primary article .entry-content h2 { font-size: 21px; }
  .single-post #primary article .entry-content h3 { font-size: 19px; }
  .single-post #primary article .entry-content h4 { font-size: 17px; }
  .single-post #primary article .dc-featured-cover img { max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  #primary article.dc-archive-card .dc-archive-image img { transition: none; }
}

/* ===============================================================
   DiscoClub Mobile 1.2.5 — sticky nav, social icons, festival gradient
   Preserve desktop header and the compact editorial layouts from 1.2.4.
   =============================================================== */
@media screen and (max-width: 979px) {
  /* Inverted gradient: deeper blue at the top, lighter below. */
  body .site-header .blogmagazine-top-header-wrap {
    background: linear-gradient(to bottom, #28497b 0%, #4369a4 46%, #7292c3 100%) !important;
  }
  body .site-header .top-navigation ul > li.menu-item > a {
    text-shadow: 0 1px 2px rgba(18, 40, 80, .5);
  }

  /* No extra space between the compact logo and the navigation strip. */
  body .site-header .blogmagazine-logo-section-wrapper {
    padding: 4px 0 0 !important;
    margin: 0 !important;
  }
  body .site-header .blogmagazine-header-menu-wrapper,
  body .site-header #blogmagazine-menu-wrap-sticky-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The original sticky plugin applies position:fixed via inline CSS only
     when the menu reaches the top of the viewport. */
  body .site-header #blogmagazine-menu-wrap-sticky-wrapper.is-sticky #blogmagazine-menu-wrap {
    z-index: 1050;
  }

  /* Move the original Header Ads social widget into the mobile nav with JS.
     It sits right-aligned, directly to the left of the search button. */
  body .site-header .blogmagazine-header-menu-block-wrap .dc-social-in-menu {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    float: none !important;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    min-width: 0;
    text-align: center;
  }
  body .site-header .blogmagazine-header-menu-block-wrap .dc-social-in-menu .widget {
    display: block;
    margin: 0;
    padding: 0;
  }
  body .site-header .blogmagazine-header-menu-block-wrap .dc-social-in-menu .dglib-social-icons .social-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }
  body .site-header .blogmagazine-header-menu-block-wrap .dc-social-in-menu .dglib-social-icons .social-icons a {
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    margin: 0;
    font-size: 19px;
    line-height: 1;
    border-radius: 6px;
  }
  body .site-header .blogmagazine-header-menu-block-wrap .blogmagazine-header-search-wrapper {
    margin-left: 0;
  }
}


/* ================================================================
   DiscoClub Mobile 1.2.6 — original typography in the Festivals bar
   Based on BlogMagazine 1.1.7: normal 12px text, natural capitalization,
   line-height 1.4; keep compact spacing and centered, wrapping rows.
   Applies to mobile only, preserving the updated blue gradient.
   ================================================================ */
@media screen and (max-width: 979px) {
  body .site-header .blogmagazine-top-left-section-wrapper,
  body .site-header .top-navigation {
    font-family: Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }
  body .site-header .top-navigation ul {
    /* Previous centered multi-row layout, but tighter than 1.2.5. */
    padding: 1px 3px !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
  }
  body .site-header .top-navigation ul > li.menu-item {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
  }
  body .site-header .top-navigation ul > li.menu-item > a {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    padding: 1px 5px !important;
    min-height: 0 !important;
  }
}

/* ================================================================
   DiscoClub Mobile 1.2.7 — editorial indents, heading scale and header fit
   ================================================================ */

/* Ordinary prose only: editorial first-line indent, not widgets, lists,
   captions, pullquotes, navigation or content outside a single article. */
.single-post #primary article .entry-content > p,
.single-post #primary article .entry-content > .wp-block-group p {
  text-indent: 1.35em;
}
/* Image/embedded-media paragraphs are not prose. */
@supports selector(p:has(img)) {
  .single-post #primary article .entry-content p:has(img),
  .single-post #primary article .entry-content p:has(iframe),
  .single-post #primary article .entry-content p:has(video),
  .single-post #primary article .entry-content p:has(figure),
  .single-post #primary article .entry-content p:has(.wp-block-button) {
    text-indent: 0;
  }
}
/* Slightly smaller headings with an editorial, restrained rhythm. */
.single-post #primary article .entry-content h2 { font-size: 20px; }
.single-post #primary article .entry-content h3 { font-size: 18px; }
.single-post #primary article .entry-content h4 { font-size: 16px; }
.single-post #primary article .entry-content h5 { font-size: 15px; }
.single-post #primary article .entry-content h2,
.single-post #primary article .entry-content h3,
.single-post #primary article .entry-content h4 {
  line-height: 1.25;
  margin-top: .85em;
  margin-bottom: .25em;
}
@media screen and (max-width: 600px) {
  .single-post #primary article .entry-content h2 { font-size: 19px; }
  .single-post #primary article .entry-content h3 { font-size: 17px; }
  .single-post #primary article .entry-content h4 { font-size: 16px; }
  .single-post #primary article .entry-content > p,
  .single-post #primary article .entry-content > .wp-block-group p {
    text-indent: 1.2em;
  }
}

/* Remove the final few pixels between the branding row and the nav.
   Keep mobile-only changes isolated from the desktop header and WP admin. */
@media screen and (max-width: 979px) {
  body .site-header .blogmagazine-logo-section-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 0 !important;
  }
  body .site-header .blogmagazine-logo-section-wrapper > .dg-container {
    align-items: flex-end;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  body .site-header .site-branding,
  body .site-header .site-branding .site-logo,
  body .site-header .site-branding .custom-logo-link {
    line-height: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  body .site-header .site-branding .site-logo { font-size: 0; }
  body .site-header .site-branding .custom-logo {
    display: block;
    vertical-align: bottom;
    margin-bottom: 0 !important;
  }
  body .site-header .blogmagazine-header-menu-wrapper,
  body .site-header .blogmagazine-header-menu-block-wrap {
    border-top: 0 !important;
    margin-top: 0 !important;
  }
}


/* DiscoClub 1.2.9 — compact GigManager widget in the original BlogMagazine
   Recent Entries style. Add widget_recent_entries as the SiteOrigin Widget Class.
   This does not change the GigManager shortcode archive or its templates. */
body .widget_recent_entries ul.gigmanager-widget {
  width: 100%; margin: 0; padding: 0;
  list-style: none;
  container-type: inline-size;
}
body .widget_recent_entries ul.gigmanager-widget > li.gigmanager-widget__show {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) max-content;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 3px;
  position: relative;
  padding: 8px 0 8px 15px;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
}
/* BlogMagazine puts a chevron on *every link* in recent posts; GigManager has
   several links per show, so put one icon on the show itself instead. */
body .widget_recent_entries ul.gigmanager-widget > li.gigmanager-widget__show > a::before,
body .widget_recent_entries ul.gigmanager-widget > li.gigmanager-widget__show a::before {
  content: none !important;
  display: none !important;
}
body .widget_recent_entries ul.gigmanager-widget > li.gigmanager-widget__show::before {
  content: "\f101";
  font-family: FontAwesome;
  position: absolute;
  top: 9px;
  left: 0;
  color: #9f9f9f;
  font-size: 14px;
  line-height: 1.45;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__date {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__time {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__artist {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__venue {
  grid-column: 2 / 4;
  grid-row: 2;
  display: block;
  min-width: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__ticket {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  display: inline-block;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__status {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin: 0;
}
body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__status:not(.gigmanager-show__status--cancelled):not(.gigmanager-show__status--sold_out) {
  display: none;
}
body .widget_recent_entries .gigmanager-widget__more { margin: 7px 0 0; font-size: 14px; }

/* A real three-column homepage offers less width than an editor preview. Use
   a date/content layout there to protect long venue and artist names. */
@container (max-width: 325px) {
  body .widget_recent_entries ul.gigmanager-widget > li.gigmanager-widget__show {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 9px;
  }
  body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__date {
    grid-row: 1 / span 3;
  }
  body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__venue {
    grid-column: 2;
    grid-row: 2;
  }
  body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__ticket,
  body .widget_recent_entries ul.gigmanager-widget .gigmanager-widget__status {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    margin-top: 2px;
  }
}
