/* Blog list lite (site-hero 14.11). Scoped to .articles-section so the customers page chips are untouched.
   Loaded after customers.css / article.css on the blog list + category templates only. */
.articles-section{--bl-ink:#10211c;--bl-muted:#5b6b66;--bl-line:#dfe8e4;--bl-soft:#f3f8f6;--bl-green:#147a55;--bl-accent:#22c37d;--bl-dark:#0a4a3a}

/* 1. Toolbar: search + topics on one band */
.articles-section .bl-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:0 0 22px}
.articles-section .bl-toolbar h2{flex:1 1 100%;margin:0;text-align:left;font-size:28px;line-height:1.2;font-weight:800;color:var(--bl-ink);letter-spacing:-.01em}
.articles-section .blog-search{position:relative;display:flex;flex:1 1 320px;max-width:440px;margin:0}
.articles-section .blog-search input[type=search]{flex:1 1 auto;width:100%;min-width:0;height:48px;min-height:48px;box-sizing:border-box;padding:0 112px 0 44px;border:1px solid var(--bl-line);border-radius:24px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235b6b66' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5 17 17'/%3E%3C/svg%3E") 16px 50%/18px no-repeat;font-size:16px;color:var(--bl-ink);-webkit-appearance:none;appearance:none}
.articles-section .blog-search input[type=search]:focus{outline:none;border-color:var(--bl-green);box-shadow:0 0 0 3px rgba(34,195,125,.28)}
.articles-section .blog-search button{position:absolute;right:4px;top:4px;height:40px;min-height:0;padding:0 18px;border:0;border-radius:20px;background:var(--bl-green);color:#fff;font-size:15px;font-weight:700;cursor:pointer}
.articles-section .blog-search button:focus-visible{outline:3px solid var(--bl-accent);outline-offset:2px}
.articles-section .bl-results{flex:1 1 100%;margin:-4px 0 0;font-size:15px;color:var(--bl-muted)}
.articles-section .bl-results a{color:var(--bl-green);font-weight:600}

/* 2. Topic chips: 4 main topics + "More topics" menu */
.articles-section .bl-topics{flex:1 1 100%;display:flex;align-items:center;gap:8px;min-width:0}
.articles-section .customer-categories-scroll{flex:1 1 0;min-width:0;margin:0;padding:3px 0;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.articles-section .customer-categories-scroll::-webkit-scrollbar{display:none}
.articles-section .customer-categories{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px;padding:2px 0 4px;margin:0;width:max-content;min-width:100%}
.articles-section .customer-category{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--bl-line);border-radius:22px;background:#fff;color:var(--bl-ink)!important;font-size:15px;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;margin:0}
.articles-section .customer-category:hover{border-color:var(--bl-green);background:var(--bl-soft)}
.articles-section .customer-category.selected{background:var(--bl-dark);border-color:var(--bl-dark);color:#fff!important}
.articles-section .customer-category:focus-visible{outline:3px solid var(--bl-accent);outline-offset:2px}
.articles-section .bl-more{position:relative;flex:0 0 auto}   /* outside the scroll box so the menu is not clipped */
.articles-section .bl-more>summary{list-style:none;cursor:pointer}
.articles-section .bl-more>summary::-webkit-details-marker{display:none}
.articles-section .bl-more>summary::after{content:"";width:8px;height:8px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.articles-section .bl-more[open]>summary::after{transform:translateY(2px) rotate(225deg)}
.articles-section .bl-more-list{position:absolute;z-index:20;right:0;top:100%;margin-top:8px;min-width:220px;padding:6px;border:1px solid var(--bl-line);border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(16,33,28,.14)}
.articles-section .bl-more-list a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:var(--bl-ink)!important;font-size:15px;font-weight:600;text-decoration:none}
.articles-section .bl-more-list a:hover,.articles-section .bl-more-list a.selected{background:var(--bl-soft)}

/* 3. Cards: one link per card, fixed-ratio thumbs, clamped titles */
.articles-section .articles-grid{row-gap:24px}
.articles-section .row.articles-grid .col-lg-4{padding:0 12px}
.articles-section .article-item{position:relative;display:flex;flex-direction:column;height:100%;margin:0;padding:0;border:1px solid var(--bl-line);border-radius:16px;background:#fff;overflow:hidden;transition:box-shadow .15s,border-color .15s}
.articles-section .article-item:hover{border-color:#bcd3ca;box-shadow:0 8px 24px rgba(16,33,28,.08)}
.articles-section .article-item:focus-within{outline:3px solid var(--bl-accent);outline-offset:2px}
.articles-section .article-item-image{aspect-ratio:16/10;margin:0;background:var(--bl-soft);overflow:hidden}
.articles-section .article-item-image a{display:block;height:100%}
.articles-section .article-item-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0!important}
.articles-section .article-item-content{display:flex;flex-direction:column;flex:1;padding:14px 18px 18px}
.articles-section .article-info{order:2;display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:14px;color:var(--bl-muted)}
.articles-section .article-info .article-clock{display:inline-flex;margin-left:6px}
.articles-section .article-info .article-clock img{width:14px;height:14px}
.articles-section .article-item-title{order:1;margin:0!important}
.articles-section .article-item-title a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--bl-ink)!important;font-size:18px;line-height:1.35;font-weight:700;text-decoration:none}
.articles-section .article-item-title a::after{content:"";position:absolute;inset:0;z-index:1}  /* whole card is the title link */
.articles-section .article-item-title a:focus{outline:none}
.articles-section .article-item .learn-more{display:none}

/* 4. Pagination: 44 px targets */
.articles-section .pagination-container{margin:32px 0 0}
.articles-section .pagination{display:flex;justify-content:center;gap:8px;flex-wrap:nowrap;margin:0;padding:0}
.articles-section .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:1px solid var(--bl-line)!important;border-radius:22px!important;background:#fff;color:var(--bl-ink)!important;font-size:16px;font-weight:600}
.articles-section .page-item.active .page-link{background:var(--bl-dark)!important;border-color:var(--bl-dark)!important;color:#fff!important}
.articles-section .page-item.disabled .page-link{color:#9aa8a3!important;background:var(--bl-soft)}

@media (max-width:991.98px){
  .articles-section .bl-toolbar h2{font-size:24px}
  .articles-section .blog-search{flex-basis:100%;max-width:none}
  .articles-section .customer-categories-scroll{margin-left:-12px;padding-left:12px}
  .articles-section .article-item-title a{font-size:17px}
}
@media (max-width:575.98px){
  .articles-section .page-number.page-near{display:none}   /* phone: Prev | current | Next */
  /* phone: chips wrap so every main topic is visible without a sideways scroll (critic-desk SHOULD 14.11) */
  .articles-section .bl-topics{flex-wrap:wrap;align-items:flex-start}
  .articles-section .customer-categories-scroll{flex:1 1 100%;overflow:visible;margin-left:0;padding:0;-webkit-mask-image:none;mask-image:none}
  .articles-section .customer-categories{flex-wrap:wrap;width:auto;min-width:0}
  .articles-section .customer-category{padding:0 14px}
  .articles-section .bl-more-list{left:0;right:auto}
}
