/* Desktop nav: force a single row, no wrap, no leftover "More" dropdown */
nav[data-aid="HEADER_NAV_RENDERED"] > ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: auto !important;
}
nav[data-aid="HEADER_NAV_RENDERED"] .nav-item {
  display: inline-flex !important;
  white-space: nowrap;
  flex: 0 0 auto;
}
nav[data-aid="HEADER_NAV_RENDERED"] .nav-item a {
  font-size: clamp(13px, 1.2vw, 16px) !important;
  padding-left: clamp(6px, 1vw, 16px) !important;
  padding-right: clamp(6px, 1vw, 16px) !important;
}
/* Defense in depth: if any leftover "More" markup remains anywhere, keep it hidden */
nav[data-aid="HEADER_NAV_RENDERED"] [data-aid="NAV_MORE"] {
  display: none !important;
}

/* Touch target sizing: bump a few 40x40 controls up to the ~44x44 minimum */
[data-aid="HAMBURGER_MENU_LINK"] {
  min-width: 44px !important;
  min-height: 44px !important;
}
[data-aid="FOOTER_FACEBOOK_LINK"],
[data-aid="FOOTER_INSTAGRAM_LINK"],
[data-aid="FOOTER_LINKEDIN_LINK"] {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Blog article body links (site is dark-themed; unstyled <a> defaults are hard to read) */
#article-static-content a {
  color: #8ab4f8;
}
#article-static-content a:visited {
  color: #b39ddb;
}

/* legal-resources.html static "Articles" list links */
#recovered-legal-resources-articles a {
  color: #8ab4f8 !important;
}

/* Articles list: featured image beside title/byline/tags, stacking on narrow screens */
#recovered-legal-resources-articles li.article-list-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#recovered-legal-resources-articles li.article-list-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}
#recovered-legal-resources-articles li.article-list-item .article-content {
  flex: 1;
  min-width: 0;
}
#recovered-legal-resources-articles .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
#recovered-legal-resources-articles .article-tag {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1.4;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(138, 180, 248, 0.15);
  color: #8ab4f8;
  white-space: nowrap;
}
@media (max-width: 480px) {
  #recovered-legal-resources-articles li.article-list-item {
    flex-direction: column;
  }
  #recovered-legal-resources-articles li.article-list-item img {
    width: 100%;
    height: 180px;
  }
}

/* Articles list: search/filter by title or category */
#article-filter {
  margin-bottom: 24px;
}
#article-search-wrap {
  position: relative;
  max-width: 360px;
}
#article-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 34px 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #e8e9f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
#article-search-input::placeholder {
  color: #aaadbd;
}
#article-search-input:focus {
  outline: none;
  border-color: #8ab4f8;
}
#article-search-clear {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: #aaadbd;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#article-search-clear:hover {
  color: #e8e9f0;
}
#article-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-sizing: border-box;
  padding: 8px 16px;
  font-size: 0.8em;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 18px;
  border: 1px solid rgba(138, 180, 248, 0.35);
  background: rgba(138, 180, 248, 0.1);
  color: #8ab4f8;
  cursor: pointer;
  white-space: nowrap;
}
.category-chip:hover,
.category-chip:focus-visible {
  background: rgba(138, 180, 248, 0.22);
  outline: none;
}
.category-chip.active {
  background: #8ab4f8;
  color: #14152b;
}
#article-no-results {
  display: none;
  color: #aaadbd;
  font-size: 0.95em;
  margin-top: 16px;
}
