/* V49 adjustments */

/* 1. Resources: all three blocks share one comfortable width; guides and articles five per row */
body.v13-site :is(#technical-documents,#selection-guides,#engineering-articles){width:min(calc(100% - 32px),1200px)!important;margin-inline:auto!important}
body.v13-site #selection-guides .v48-guide-grid,body.v13-site #engineering-articles .v48-art-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px}
body.v13-site #engineering-articles .v48-art-card{display:flex!important;flex-direction:column;align-items:stretch}
body.v13-site #engineering-articles .v48-art-img{width:auto!important;height:132px!important;margin:0!important;border-radius:0!important;background:#fff!important;padding:8px}
body.v13-site #engineering-articles .v48-art-img img{width:100%;height:100%;object-fit:contain!important;transform:none!important}
body.v13-site #engineering-articles .v48-art-card[href*=carbon] .v48-art-img{padding:0}
body.v13-site #engineering-articles .v48-art-card[href*=carbon] .v48-art-img img{object-fit:cover!important}
body.v13-site #engineering-articles .v48-art-body{padding:12px 14px 14px!important}
@media(max-width:1100px){body.v13-site #selection-guides .v48-guide-grid,body.v13-site #engineering-articles .v48-art-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){body.v13-site #selection-guides .v48-guide-grid,body.v13-site #engineering-articles .v48-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* 3. Technical documents: general facts for series without published numbers */
body.v13-site .v49-facts-general li b{font-weight:600}

/* 4. Applications hero: keep the V48 tiles, only move the caption down to the bottom edge */
body.v13-site .v18-sector-grid .v18-sector-label{inset:auto 0 0 0!important;padding:14px 8px 5px;background:linear-gradient(180deg,#0b223400,#0b2234d9 60%)}
@media(max-width:760px){body.v13-site .v18-sector-grid .v18-sector-label{padding:10px 5px 3px}}

/* 5. Products: category navigation like the homepage family bar, with a prominent search */
body.v13-site.v20-site .v14-catalog-toolbar.v49-toolbar{display:block!important;background:#fff!important;border:1px solid #cfe0ec!important;border-radius:10px!important;padding:22px 22px 18px!important;box-shadow:0 10px 30px #102d431a!important}
body.v13-site.v20-site .v49-toolbar:before{content:none!important;display:none!important}
.v49-toolbar-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}
.v49-toolbar-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#0067ad;margin-bottom:4px}
.v49-toolbar-title{margin:0;font-size:28px;line-height:1.15;color:#102d43}
body.v13-site.v20-site .v49-toolbar label.v49-search{position:relative;display:flex!important;align-items:center;flex:0 1 520px;min-width:280px;font-size:0;color:transparent}
body.v13-site.v20-site .v49-toolbar label.v49-search:before{left:18px}
.v49-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.v13-site.v20-site .v49-toolbar label.v49-search input{flex:1;min-height:56px!important;padding:0 104px 0 50px!important;font-size:16px!important;border:2px solid #0067ad!important;border-radius:8px!important;background:#fff!important;box-shadow:0 0 0 5px #0067ad14!important}
body.v13-site.v20-site .v49-toolbar label.v49-search input:focus{box-shadow:0 0 0 5px #2694d455!important}
.v49-search-btn{position:absolute;right:6px;top:6px;bottom:6px;display:grid;place-items:center;padding:0 18px;border-radius:6px;background:#0067ad;color:#fff;font-size:14px;font-weight:700;pointer-events:none}
body.v13-site.v20-site .v49-fam{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;border:1px solid #cfe0ec;border-radius:8px;overflow:visible;margin:0!important;padding:0!important}
body.v13-site.v20-site .v49-fam-btn{position:relative;display:flex!important;align-items:center;gap:12px;width:100%;min-height:76px!important;padding:12px 16px!important;margin:0;background:#fff!important;border:0!important;border-right:1px solid #cfe0ec!important;border-radius:0!important;color:#102d43!important;text-align:left;cursor:pointer;box-shadow:none!important;transition:background .2s,color .2s;list-style:none}
body.v13-site.v20-site .v49-fam>.v49-fam-btn:first-child{border-radius:8px 0 0 8px!important}
body.v13-site.v20-site .v49-more>summary.v49-fam-btn{border-right:0!important;border-radius:0 8px 8px 0!important}
body.v13-site.v20-site .v49-more>summary::-webkit-details-marker{display:none}
body.v13-site.v20-site .v49-fam-btn svg{flex:none;width:30px!important;height:30px!important;color:#0067ad}
.v49-fam-txt{display:grid;gap:2px;min-width:0}
.v49-fam-name{font-size:16px;font-weight:700;line-height:1.2;white-space:nowrap}
.v49-fam-txt small{font-size:12px;color:#5b7488;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
body.v13-site.v20-site .v49-fam-btn:hover{background:#f1f7fc!important;color:#0067ad!important}
body.v13-site.v20-site .v49-fam-btn[aria-pressed=true],body.v13-site.v20-site .v49-more.is-active>summary{background:#0067ad!important;color:#fff!important}
body.v13-site.v20-site .v49-fam-btn[aria-pressed=true] svg,body.v13-site.v20-site .v49-more.is-active>summary svg{color:#fff}
body.v13-site.v20-site .v49-fam-btn[aria-pressed=true] small,body.v13-site.v20-site .v49-more.is-active>summary small{color:#d6ecfa}
body.v13-site.v20-site .v49-fam-btn[aria-pressed=true]:after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:3px;background:#7fc3ee}
.v49-more{position:relative}
.v49-more-caret{margin-left:auto;font-size:13px;color:inherit}
.v49-more-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:260px;padding:6px;background:#fff;border:1px solid #cfe0ec;border-radius:8px;box-shadow:0 16px 36px #102d4330}
body.v13-site.v20-site .v49-more-pop .v49-fam-btn{min-height:58px!important;border-right:0!important;border-radius:6px!important}
@media(max-width:1100px){
 .v49-toolbar-head{flex-direction:column;align-items:stretch}
 body.v13-site.v20-site .v49-toolbar label.v49-search{flex:1 1 auto;min-width:0}
 body.v13-site.v20-site .v49-fam{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.v13-site.v20-site .v49-fam-btn{border-bottom:1px solid #cfe0ec!important;border-radius:0!important}
}
@media(max-width:760px){
 body.v13-site.v20-site .v14-catalog-toolbar.v49-toolbar{padding:16px 14px 14px!important}
 .v49-toolbar-title{font-size:22px}
 body.v13-site.v20-site .v49-fam{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;margin:0!important;padding:0!important}
 body.v13-site.v20-site .v49-fam-btn{min-height:60px!important;padding:10px 12px!important;gap:8px}
 body.v13-site.v20-site .v49-fam-btn svg{width:24px!important;height:24px!important}
 .v49-fam-name{font-size:14px}
 body.v13-site.v20-site .v49-toolbar label.v49-search input{padding-right:16px!important}
 .v49-search-btn{display:none}
 .v49-more-pop{left:0;right:auto}
}
body.v13-site .resource-actions .doc-download[href*="datasheet"]{white-space:normal!important;text-align:center;line-height:1.2;font-size:13px!important}
/* Directory entries 04-06 stay hidden in the full list; they appear only when their own category is chosen */
body:not(:has([data-v20-filter="accessories"][aria-pressed="true"])) .v15-full-directory [data-v20-family="accessories"].v49-filter-only,
body:not(:has([data-v20-filter="resistors"][aria-pressed="true"])) .v15-full-directory [data-v20-family="resistors"].v49-filter-only,
body:not(:has([data-v20-filter="custom"][aria-pressed="true"])) .v15-full-directory [data-v20-family="custom"].v49-filter-only{display:none!important}
/* Mobile: More menu opens inside the screen */
@media(max-width:760px){.v49-more-pop{left:auto!important;right:0!important;min-width:0!important;width:min(250px,calc(100vw - 40px))}}
