/* Mobile blog navigation; desktop widgets retain their existing layout. */
.blog-mobile-navigation,
.blog-entry-categories,
.blog-technologies-toggle { display: none; }
.projectic-blog-technologies [hidden] { display: none !important; }

@media (max-width: 768px) {
  .blog-mobile-navigation { display: block; flex: 0 0 100%; width: 100%; margin-top: 24px; }
  .blog-mobile-navigation-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
  .blog-mobile-navigation-header > p { margin: 0; font-weight: 700; }
  .blog-mobile-navigation .blog-technologies-jump:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; color: #108d53; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
  .blog-mobile-navigation .blog-technologies-jump:focus-visible { outline: 2px solid #108d53; outline-offset: 3px; }
  .blog-mobile-navigation > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .blog-mobile-navigation li { margin: 0; padding: 0; min-width: 0; }
  .blog-mobile-navigation li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .blog-mobile-navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 0; text-align: center; line-height: 1.4; font-size: 13px; overflow-wrap: anywhere; z-index: 0; }
  .blog-mobile-navigation a[aria-current] { background: linear-gradient(to right, #006e5b 0%, #159a5b 100%); color: #fff; }
  .blog-mobile-navigation a:focus-visible,
  .blog-entry-categories a:focus-visible,
  .blog-technologies-toggle:focus-visible { outline: 2px solid #108d53; outline-offset: 3px; }
  .wrapper > main:has(> .blog-mobile-navigation) > aside > .widget_categories { display: none; }
  .blog-entry-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .blog-entry-categories a { color: #108d53; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
  .wrapper > main > aside > .tags-list.projectic-blog-technologies { width: 100%; max-width: 100%; margin-right: 0; }
  .wrapper > main > aside > .projectic-blog-technologies:last-child { margin-bottom: 0; }
  .projectic-blog-technologies.is-enhanced h3 { margin-bottom: 0; }
  .projectic-blog-technologies.is-enhanced.is-expanded h3 { margin-bottom: 16px; }
  .projectic-blog-technologies.is-enhanced .blog-technologies-toggle:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 12px 0; border: 0; border-bottom: 1px solid #ccc; background: none; color: inherit; font: inherit; text-align: left; letter-spacing: inherit; text-transform: inherit; cursor: pointer; scroll-margin-top: 140px; }
  .blog-technologies-toggle > span { flex: 0 0 auto; font-size: 24px; color: #108d53; }
  .projectic-blog-technologies.is-enhanced > ul:not([hidden]) { max-height: min(22rem, 55vh); margin-top: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; padding-right: 12px; }
}
