/* Global Content Collection - product-focused drawer UI */
.global-collection-trigger{
  position:relative;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:.34rem;
  flex:0 0 auto;
  min-height:1.72rem;
  margin:0 .26rem;
  padding:.16rem .34rem .16rem .22rem!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:999px;
  background:#fff!important;
  color:#8F0712!important;
  box-shadow:0 2px 8px rgba(64,0,6,.18),0 0 0 1px rgba(255,255,255,.10) inset;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
  white-space:nowrap;
}
.global-collection-trigger:hover{
  background:#FFF8F8!important;
  color:#AF0917!important;
  transform:translateY(-1px);
  box-shadow:0 4px 11px rgba(64,0,6,.24),0 0 0 1px rgba(255,255,255,.18) inset;
}
.global-collection-trigger:active{
  transform:translateY(0);
  box-shadow:0 1px 5px rgba(64,0,6,.18);
}
.global-collection-trigger-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.18rem;
  height:1.18rem;
  flex:0 0 1.18rem;
}
.global-collection-trigger-icon svg{
  width:1.08rem;
  height:1.08rem;
  display:block;
}
.global-collection-trigger-label{
  display:inline-block;
  font-size:.66rem;
  font-weight:700;
  line-height:1;
  letter-spacing:.01em;
}
.global-collection-count{
  position:static;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.04rem;
  height:1.04rem;
  padding:0 .24rem;
  border-radius:999px;
  background:#AF0917;
  color:#fff;
  box-shadow:0 1px 3px rgba(64,0,6,.24);
  font-size:.49rem;
  font-weight:800;
  line-height:1;
  text-align:center;
  box-sizing:border-box;
}
.global-collection-count[hidden]{display:none!important}

.global-collection-overlay{position:fixed;inset:0;background:rgba(0,0,0,.22);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1998}
.global-collection-overlay.open{opacity:1;pointer-events:auto}

.global-collection-drawer{position:fixed;top:0;right:0;width:min(480px,96vw);height:100vh;background:var(--md-default-bg-color,#fff);box-shadow:-12px 0 34px rgba(0,0,0,.17);transform:translateX(102%);transition:transform .22s ease;z-index:1999;display:flex;flex-direction:column}
.global-collection-drawer.open{transform:translateX(0)}

.global-collection-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 17px;border-bottom:1px solid #e5e7e9}
.global-collection-title-row{display:flex;align-items:center;gap:11px;min-width:0}
.global-collection-title-icon{font-size:1.22rem;line-height:1}
.global-collection-title-row h3{margin:0;font-size:1.18rem;font-weight:500;line-height:1.2;letter-spacing:-.01em}
.global-collection-close{border:0;background:transparent;color:#9aa0a5;font-size:1.75rem;line-height:1;cursor:pointer;padding:0 2px}
.global-collection-close:hover{color:#AF0917}

.global-collection-summary-strip{display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;gap:18px;padding:13px 24px;border-bottom:1px solid #eceeef;color:#62686d;font-size:.78rem}
.global-collection-summary-strip>span:not(.global-collection-summary-divider){display:flex;align-items:center;gap:8px}
.global-collection-summary-strip strong{font-weight:500;color:#555b60}
.global-collection-summary-divider{width:1px;height:23px;background:#d9dde0;justify-self:center}

.global-collection-body{flex:1;overflow:auto;padding:10px 24px 22px}
.global-collection-group{margin:18px 0 24px}
.global-collection-section-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 7px;border-bottom:1px solid #e6e8ea}
.global-collection-section-heading h4{margin:0;font-size:.77rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#666b70}
.global-collection-section-heading span{font-size:.72rem;color:#9aa0a5}

.global-collection-group-items{display:flex;flex-direction:column}
.global-collection-item{display:grid;grid-template-columns:52px minmax(0,1fr) 26px;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #eceeef}
.global-collection-item-thumb{width:52px;height:52px;display:block;overflow:hidden;background:#f2f4f5;text-decoration:none;border-radius:2px}
.global-collection-item-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.global-collection-item-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:.62rem;font-weight:800;line-height:1.05;letter-spacing:.02em;color:#fff;text-align:center;padding:4px;box-sizing:border-box}
.global-collection-item-placeholder-spec-sheet{background:#6d8296}
.global-collection-item-placeholder-use-case{background:#5e806f}
.global-collection-item-placeholder-feature-demo{background:#9b7c59}
.global-collection-item-placeholder-tutorial{background:#7e6d8d}
.global-collection-item-placeholder-white-paper{background:#70767b}
.global-collection-spec-code{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:4px;box-sizing:border-box;background:#6d8296;color:#fff;font-size:.52rem;font-weight:800;line-height:1.05;letter-spacing:.01em;text-align:center;overflow:hidden}
.global-collection-spec-code-sm{font-size:.46rem}
.global-collection-spec-code-xs{font-size:.40rem}
.global-collection-item-title{min-width:0;color:var(--md-default-fg-color)!important;text-decoration:none!important;font-size:.85rem;font-weight:600;line-height:1.28}
.global-collection-item-title:hover{color:#AF0917!important}
.global-collection-remove{width:26px;height:26px;border:0;background:transparent;color:#b4b8bc;font-size:1.05rem;cursor:pointer;padding:0}
.global-collection-remove:hover{color:#AF0917;background:transparent}

.global-collection-insight-card{margin:22px 0 0;padding:15px 16px;background:#f7f8f9;border:1px solid #eef0f2}
.global-collection-insight-title{font-size:.82rem;font-weight:700;color:#1f2428;margin-bottom:10px}
.global-collection-package-list{display:flex;flex-wrap:wrap;gap:7px}
.global-collection-package{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #dde1e4;background:#fff;font-size:.7rem;color:#4f555a;line-height:1.15}
.global-collection-package img{width:20px;height:20px;object-fit:cover;display:block;border-radius:1px}

.global-collection-related[hidden]{display:none!important}
.global-collection-related-list{display:flex;flex-direction:column;border-top:1px solid #e1e4e7}
.global-collection-related-stats{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 2px 9px;color:#6d7378;font-size:.66rem;line-height:1.3}
.global-collection-related-stats span{white-space:nowrap}
.global-collection-related-stats strong{font-weight:700;color:#4f555a}
.global-collection-related-row{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #e7e9eb;color:#4f555a!important;text-decoration:none!important;font-size:.72rem}
.global-collection-related-row-single{grid-template-columns:minmax(0,1fr) 18px;font-weight:600}
.global-collection-related-row:hover{color:#AF0917!important}
.global-collection-related-row strong{font-size:.72rem;font-weight:600;color:#666c71}
.global-collection-related-arrow{color:#a7acb0;font-size:.8rem}

.global-collection-empty{min-height:44vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:#8b8f93;font-size:.76rem}
.global-collection-empty-icon{width:38px;height:38px;border:1px solid #dfe2e5;display:flex;align-items:center;justify-content:center;font-size:1.1rem;color:#8b8f93;margin-bottom:4px}
.global-collection-empty strong{color:var(--md-default-fg-color);font-size:.9rem}

.global-collection-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:14px 20px 18px;border-top:1px solid #e3e6e8;background:var(--md-default-bg-color,#fff)}
.global-collection-footer button{min-height:42px;padding:8px 12px;border:1px solid #d6dadd;font-size:.76rem;font-weight:600;cursor:pointer;white-space:nowrap}
.global-collection-clear{background:#f3f3f3;color:#777;border-color:#f3f3f3!important}
.global-collection-clear:hover{color:#AF0917}
.global-collection-share{background:#fff;color:#4f555a}
.global-collection-share:hover{border-color:#aeb3b8}
.global-collection-pdf{background:#fff;color:#4f555a}
.global-collection-pdf:hover{border-color:#aeb3b8}
.global-collection-sales{background:#AF0917!important;border-color:#AF0917!important;color:#fff}
.global-collection-sales:hover{background:#7F0712!important;border-color:#7F0712!important}
.global-collection-footer button:disabled{opacity:.38;cursor:default}
.global-collection-pdf.busy{cursor:wait}

.global-collection-open{overflow:hidden}
.collect-btn{margin-left:.45rem}
.spec-type-badge{margin-left:auto}
.spec-type-badge+.collect-btn,.global-content-type+.collect-btn{margin-left:.5rem}

[data-md-color-scheme="slate"] .global-collection-header,
[data-md-color-scheme="slate"] .global-collection-summary-strip,
[data-md-color-scheme="slate"] .global-collection-footer{border-color:#424548}
[data-md-color-scheme="slate"] .global-collection-section-heading,
[data-md-color-scheme="slate"] .global-collection-item{border-color:#3b3e41}
[data-md-color-scheme="slate"] .global-collection-insight-card{background:#282b2e;border-color:#363a3e}
[data-md-color-scheme="slate"] .global-collection-insight-title,
[data-md-color-scheme="slate"] .global-collection-possible-heading{color:#f0f1f2}
[data-md-color-scheme="slate"] .global-collection-package{border-color:#505458;color:#d2d5d8;background:#202326}
[data-md-color-scheme="slate"] .global-collection-related-list{border-color:#44484c}
[data-md-color-scheme="slate"] .global-collection-related-stats{color:#aeb3b7}
[data-md-color-scheme="slate"] .global-collection-related-stats strong{color:#d3d6d8}
[data-md-color-scheme="slate"] .global-collection-related-row{border-color:#3b3f43;color:#c8cbce!important}
[data-md-color-scheme="slate"] .global-collection-related-row strong{color:#aeb3b7}
[data-md-color-scheme="slate"] .global-collection-pdf{background:#2d2f31;color:#ddd;border-color:#55585b}
[data-md-color-scheme="slate"] .global-collection-clear{background:#2d2f31;color:#bbb;border-color:#2d2f31!important}

@media(max-width:600px){
  .global-collection-drawer{width:100vw}
  .global-collection-header{padding:18px 18px 15px}
  .global-collection-summary-strip{padding:12px 18px}
  .global-collection-body{padding:8px 18px 18px}
  .global-collection-footer{grid-template-columns:1fr 1fr;padding:12px 16px 16px}
  .global-collection-clear{grid-column:1/-1}
}

@media(max-width:760px){
  .global-collection-trigger{
    gap:.18rem;
    min-height:1.58rem;
    margin:0 .08rem;
    padding:.12rem .22rem!important;
  }
  .global-collection-trigger-label{display:none}
  .global-collection-trigger-icon{width:1.12rem;height:1.12rem;flex-basis:1.12rem}
  .global-collection-trigger-icon svg{width:1.02rem;height:1.02rem}
  .global-collection-count{min-width:.92rem;height:.92rem;font-size:.45rem;padding:0 .18rem}
}
