/* Scoped ADS Business Opportunities v2. Existing Home, Platforms, Cloud and global navigation unchanged. */
#opportunities-app{--opp-blue:#176cee;--opp-ink:#10213d;--opp-border:#dce5f0;--opp-muted:#64748b;--opp-gold:#f3c75e;background:#f7f9fd;color:var(--opp-ink);min-height:70vh}
#opportunities-app .opp-hero{background:linear-gradient(90deg,#eef6ff 0%,#f3f8ff 55%,#e5edf6 100%);overflow:hidden}
#opportunities-app .opp-hero-body{min-height:232px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);align-items:stretch}
#opportunities-app .opp-hero-copy{padding:28px 15px 21px 0;z-index:1}
#opportunities-app .opp-hero h1{margin:0 0 6px;font-family:Manrope,Arial,sans-serif;font-size:clamp(29px,3.35vw,49px);letter-spacing:-.045em;font-weight:800;line-height:1.1}
#opportunities-app .opp-hero h2{font-size:18px;margin:6px 0;font-family:Manrope,Arial,sans-serif;font-weight:750}
#opportunities-app .opp-hero p{font-size:14px;color:#506481;line-height:1.6;max-width:680px;margin:0 0 15px}
#opportunities-app .opp-hero-image{background:linear-gradient(90deg,#eef6ff,rgba(238,246,255,0) 36%),url("https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=1100&q=78");background-position:center;background-size:cover;min-height:200px}
#opportunities-app .opp-hero-facts{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;font-weight:750;color:#1d4a84}
#opportunities-app .opp-hero-facts span{padding:8px 11px;border:1px solid #dce8fa;background:#ffffffdd;border-radius:9px}
#opportunities-app .opp-families{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:14px;padding-bottom:12px}
#opportunities-app .opp-family{display:flex;align-items:center;text-align:left;gap:13px;border:2px solid #dee7f1;background:#fff;border-radius:11px;padding:14px;min-width:0;color:var(--opp-ink);transition:background .15s,border-color .15s}
#opportunities-app .opp-family:hover{border-color:#7ca8ef}
#opportunities-app .opp-family.active{border-color:var(--opp-blue);background:#f2f7ff;box-shadow:0 3px 14px #2777ed14}
#opportunities-app .opp-family-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:48px;background:#e8f1ff;border-radius:11px;font-size:29px;color:#1470e8}
#opportunities-app .opp-family:nth-child(2) .opp-family-icon{background:#ece9ff;color:#5744c6}
#opportunities-app .opp-family strong{display:block;font-size:16px;line-height:1.3}
#opportunities-app .opp-family small{display:block;font-size:12px;color:#5a6e8d;margin-top:3px}
#opportunities-app .opp-loading,#opportunities-app .opp-empty{padding:55px;background:#fff;border:1px solid #e1e8f1;border-radius:10px;margin:15px auto}
#opportunities-app .opp-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:22px;align-items:start;padding-bottom:35px}
#opportunities-app .opp-aside{background:#f1f5fa;padding:15px;border-radius:11px;border:1px solid #e3eaf4;position:sticky;top:14px}
#opportunities-app .opp-aside label{display:block;font-size:12px;font-weight:800;margin:14px 0 7px;color:#253958}
#opportunities-app .opp-aside input,#opportunities-app .opp-aside select{display:block;width:100%;background:#fff;border:1px solid #cbd7e5;border-radius:7px;padding:11px 10px;font-size:12px;color:#293c55}
#opportunities-app .opp-aside input:focus,#opportunities-app .opp-aside select:focus{outline:2px solid #347df0;outline-offset:1px}
#opportunities-app #opp-search-form{position:relative;background:#eaf1fa;border-radius:10px;padding:10px}
#opportunities-app #opp-search-form label{margin:0 0 8px;font-size:14px}
#opportunities-app #opp-search-form .btn{width:100%;margin:9px 0;padding:10px}
#opportunities-app #opp-search-form small{font-size:10px;color:#5e7188}
#opportunities-app #opp-suggestions:empty{display:none}
#opportunities-app #opp-suggestions{position:absolute;top:103px;left:10px;right:10px;max-height:210px;overflow:auto;background:white;box-shadow:0 7px 28px #05274528;z-index:7;border-radius:8px}
#opportunities-app #opp-suggestions button{display:block;width:100%;padding:9px 10px;background:#fff;border:none;border-bottom:1px solid #ebf0f5;text-align:left;font-size:11px}
#opportunities-app #opp-suggestions button:hover{background:#eef5ff}
#opportunities-app .opp-filter-head{border-bottom:1px solid #dde5ee;margin-top:18px;display:flex;align-items:center;justify-content:space-between;padding-bottom:9px;gap:8px}
#opportunities-app .opp-filter-head h2{font-family:Manrope,Arial,sans-serif;font-size:18px;margin:0}
#opportunities-app .opp-reset{font-size:11px;color:#1466ce;border:0;background:transparent;font-weight:750}
#opportunities-app .opp-sidebar-help{font-size:11px;color:#607387;line-height:1.55;margin:22px 2px 3px}
#opportunities-app .opp-content{min-width:0}
#opportunities-app .opp-category-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:1px 0 10px}
#opportunities-app .opp-category-top h2{font-family:Manrope,Arial,sans-serif;font-size:18px;margin:0;font-weight:800}
#opportunities-app .opp-category-top span{font-size:11px;color:#677891}
#opportunities-app .opp-category-rail{display:flex;gap:9px;overflow:auto hidden;padding-bottom:8px;scroll-snap-type:x proximity;scrollbar-width:thin}
#opportunities-app .opp-category{width:133px;flex:0 0 133px;min-height:124px;padding:0 0 9px;overflow:hidden;background:white;border:1px solid #dce4ee;border-radius:9px;box-shadow:0 2px 9px #0b275912;scroll-snap-align:start;color:#0f294d;text-align:center;transition:border-color .15s,transform .15s}
#opportunities-app .opp-category:hover{transform:translateY(-2px);border-color:#80adf5}
#opportunities-app .opp-category.selected{border:2px solid #1373f4;background:#f3f8ff}
#opportunities-app .opp-category-photo{display:block;background-size:cover;background-position:center;height:69px;position:relative;margin-bottom:7px}
#opportunities-app .opp-category-photo span{position:absolute;left:8px;bottom:-9px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 2px 7px #07204724;font-size:19px}
#opportunities-app .opp-category strong{display:block;font-size:11px;line-height:1.3;margin:0 6px 3px;min-height:28px}
#opportunities-app .opp-category small{display:block;font-size:10px;color:#617891}
#opportunities-app .opp-results-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 11px}
#opportunities-app .opp-results-bar h2{font-family:Manrope,Arial,sans-serif;font-size:20px;font-weight:800;margin:0 0 4px}
#opportunities-app .opp-results-bar p{font-size:10px;color:#64748b;margin:0}
#opportunities-app .opp-result-tools{display:flex;gap:8px}
#opportunities-app .opp-result-tools select{width:130px;padding:9px;border:1px solid #cad6e5;border-radius:8px;background:white;font-size:11px}
#opportunities-app .opp-result-tools #opp-view{width:168px}
#opportunities-app .opp-solutions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#opportunities-app .opp-solution{border:1px solid #e0e6ef;border-radius:11px;overflow:hidden;background:white;display:flex;flex-direction:column;box-shadow:0 3px 12px #081c3010;min-width:0}
#opportunities-app .opp-solution-cover{height:128px;background-color:#c9d8e7;background-size:cover;background-position:center;position:relative}
#opportunities-app .opp-solution-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0002,transparent 55%);pointer-events:none}
#opportunities-app .opp-solution-cover span{position:absolute;top:8px;left:8px;z-index:1;border-radius:15px;background:#fff9eb;color:#915b00;font-weight:800;font-size:10px;padding:5px 9px}
#opportunities-app .opp-solution-body{padding:13px;display:flex;flex-direction:column;gap:6px;flex:1}
#opportunities-app .opp-solution-body>small{font-size:10px;color:#a35c11;font-weight:800}
#opportunities-app .opp-solution-body h3{font-size:15px;line-height:1.3;margin:0;font-weight:800}
#opportunities-app .opp-solution-body>p{color:#5a6d89;font-size:11.5px;line-height:1.55;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#opportunities-app .opp-tags{display:flex;flex-wrap:wrap;gap:4px}
#opportunities-app .opp-tags span{font-size:10px;color:#1563bd;background:#e9f2ff;border-radius:100px;padding:4px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#opportunities-app .opp-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto;padding-top:11px}
#opportunities-app .opp-card-actions .btn{font-size:11px;border-radius:8px;padding:9px 8px;white-space:normal}
#opportunities-app .opp-card-actions .btn-navy{background:#1769d7}
#opportunities-app .opp-pages{display:flex;justify-content:center;align-items:center;gap:16px;padding:20px}
#opportunities-app .opp-pages span{font-size:12px}
#opportunities-app .opp-page{font-size:12px;border-radius:8px;background:white;border:1px solid #b8c9e0;padding:9px 13px}
#opportunities-app .opp-end-note{border-radius:11px;background:#eaf3ff;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px;margin-top:6px}
#opportunities-app .opp-end-note p{font-size:12px;color:#45627e;margin:0}
#opportunities-app .opp-end-note .btn{white-space:nowrap}
body.opp-modal-open{overflow:hidden}
#opportunities-app #opp-dialog-host{position:relative;z-index:100}
#opportunities-app .opp-scrim{position:fixed;z-index:1001;inset:0;background:rgba(6,19,39,.73);display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}
#opportunities-app .opp-dialog{background:white;border-radius:16px;width:min(670px,100%);max-height:calc(100vh - 36px);overflow:auto;box-shadow:0 20px 90px #0005}
#opportunities-app .opp-dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:9px 13px;font-size:11px;font-weight:800;color:#a65b0c}
#opportunities-app .opp-x{border-radius:50%;border:1px solid #cdd9e7;background:#fff;color:#0c243e;width:34px;height:34px;font-size:24px}
#opportunities-app .opp-dialog-cover{height:128px;background-size:cover;background-position:center}
#opportunities-app .opp-dialog-content{padding:18px 24px 25px}
#opportunities-app .opp-dialog-content h2{font-family:Manrope,Arial,sans-serif;font-weight:800;font-size:24px;margin-bottom:8px}
#opportunities-app .opp-dialog-content h3{font-family:Manrope,Arial,sans-serif;font-size:14px;margin:15px 0 7px}
#opportunities-app .opp-dialog-content p{font-size:12px;line-height:1.7;color:#52647f;margin-bottom:8px}
#opportunities-app .opp-dialog-content .opp-dialog-state{font-size:11px;color:#945516;background:#fff4de;padding:5px 10px;border-radius:22px;display:inline-block}
#opportunities-app .opp-dialog-content .opp-permit,#opportunities-app .opp-preview-note{background:#eef5ff;border-radius:8px;padding:13px}
#opportunities-app .opp-dialog-actions{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin-top:17px}
#opportunities-app .opp-dialog-actions .btn{padding:10px 14px;font-size:11px}
#opportunities-app .opp-whatsapp{background:#127c43;color:#fff;border:0}
#opportunities-app .opp-whatsapp:hover{background:#0c6837}
@media(max-width:1170px){#opportunities-app .opp-layout{grid-template-columns:220px minmax(0,1fr);gap:15px}#opportunities-app .opp-solutions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){#opportunities-app .opp-layout{grid-template-columns:1fr}#opportunities-app .opp-aside{position:static;display:grid;grid-template-columns:1fr 1fr;gap:10px}#opportunities-app #opp-search-form{grid-column:span 2}#opportunities-app .opp-filter-head{grid-column:span 2}#opportunities-app .opp-aside .opp-sidebar-help{grid-column:span 2}}
@media(max-width:570px){#opportunities-app .opp-hero-body{grid-template-columns:1fr}#opportunities-app .opp-hero-copy{padding:19px 0}#opportunities-app .opp-hero-image{display:none}#opportunities-app .opp-families{grid-template-columns:1fr}#opportunities-app .opp-solutions{grid-template-columns:1fr}#opportunities-app .opp-aside{grid-template-columns:1fr}#opportunities-app #opp-search-form,#opportunities-app .opp-filter-head,#opportunities-app .opp-aside .opp-sidebar-help{grid-column:auto}#opportunities-app .opp-results-bar{align-items:stretch;flex-direction:column}#opportunities-app .opp-end-note{flex-direction:column;align-items:stretch}#opportunities-app .opp-dialog-content{padding:16px}#opportunities-app .opp-dialog-actions{flex-direction:column}}

/* Non-transactional overview pathways: informational, not Sales or Partners navigation. */
#opportunities-app .opp-hero-body{grid-template-columns:minmax(0,1.1fr) minmax(180px,.6fr) minmax(230px,.56fr);gap:0}
#opportunities-app .opp-hero-pathways{display:flex;flex-direction:column;justify-content:center;gap:11px;padding:19px 0 19px 14px}
#opportunities-app .opp-hero-pathways>div{background:#ffffffeb;border:1px solid #deebfa;border-radius:10px;display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;gap:1px 10px;padding:10px;box-shadow:0 3px 12px #17365e12}
#opportunities-app .opp-hero-pathways span{grid-row:span 2;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eaf2ff;color:#176be2;font-size:21px}
#opportunities-app .opp-hero-pathways strong{font-size:12px;font-weight:800}
#opportunities-app .opp-hero-pathways small{font-size:10px;color:#667992}
@media(max-width:1080px){#opportunities-app .opp-hero-body{grid-template-columns:minmax(0,1.1fr) minmax(220px,.8fr)}#opportunities-app .opp-hero-image{display:none}#opportunities-app .opp-hero-pathways{padding:14px 0 14px 14px}}
@media(max-width:630px){#opportunities-app .opp-hero-body{grid-template-columns:1fr}#opportunities-app .opp-hero-pathways{padding:0 0 16px}#opportunities-app .opp-hero-pathways>div{grid-template-columns:36px 1fr}}

/* Discovery hierarchy: grouped sectors, the 50 individual sectors and local
   business types are distinct. Scoped to /opportunities only. */
.opp-sector-dir{margin:16px 0 22px;border:1px solid #d5e2ee;border-radius:12px;background:#f8fbff;padding:13px 15px}
.opp-sector-dir summary{font-weight:700;color:#102c4e;cursor:pointer;padding:5px 0}
.opp-sector-dir summary:focus-visible,.opp-sector-chip:focus-visible{outline:3px solid #1e6fd0;outline-offset:2px}
.opp-sector-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;padding:14px 0}
.opp-sector-chip{border:1px solid #dae6f2;border-radius:8px;background:white;padding:10px;text-align:left;color:#143858;cursor:pointer;white-space:normal;font-size:12px}
.opp-sector-chip:hover,.opp-sector-chip.selected{background:#e5f1ff;border-color:#227ce0}
.opp-business-context{margin:14px 0;padding:20px;border:1px solid #b8d8ee;background:#eff8ff;border-radius:12px}
.opp-business-context h3{margin:0 0 5px;color:#123c61;font-size:18px}
.opp-business-context p{margin:6px 0 10px;color:#36546f}
.opp-regulatory-guard{margin:12px 0;padding:11px 14px;border-left:4px solid #4176ad;background:#f3f7fc;color:#24476b}
@media(max-width:700px){.opp-sector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.opp-sector-chip{padding:9px;font-size:11px}}

/* CSP-safe images replace blocked inline background-image attributes. */
#opportunities-app .opp-category-img,
#opportunities-app .opp-cover-img{display:block;width:100%;height:100%;object-fit:cover}
#opportunities-app .opp-category-photo{overflow:visible}
#opportunities-app .opp-category-photo>img{border-radius:6px}
#opportunities-app .opp-solution-cover,
#opportunities-app .opp-dialog-cover{overflow:hidden}
#opportunities-app .opp-solution-cover>span{z-index:2}
#opportunities-app .opp-email{overflow-wrap:anywhere}


#opportunities-app .opp-partner-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:32px 0 0;padding:22px 24px;background:#0b2642;color:#fff;border-radius:12px}
#opportunities-app .opp-partner-cta h3{margin:0 0 5px;font-size:19px;color:#fff}
#opportunities-app .opp-partner-cta p{margin:0;font-size:13px;color:#dbe6f2;line-height:1.5}
#opportunities-app .opp-partner-cta .btn{flex-shrink:0}
@media(max-width:650px){#opportunities-app .opp-partner-cta{flex-direction:column;align-items:stretch;padding:18px}}

/* One full-width row for sector discovery; filtering and results sit underneath. */
#opportunities-app .opp-category-strip{padding-top:14px;padding-bottom:17px}
#opportunities-app .opp-category-top{align-items:center;margin:0 0 9px}
#opportunities-app .opp-category-top h2{font-size:18px;margin:0 0 3px}
#opportunities-app .opp-category-hint{font-size:12px;color:#516683;margin:0;line-height:1.5}
#opportunities-app .opp-category-controls{display:flex;align-items:center;gap:7px;flex-shrink:0}
#opportunities-app .opp-carousel-arrow{width:40px;height:40px;border:1px solid #b7c9df;border-radius:50%;font-size:27px;line-height:1;background:#fff;color:#123c66;cursor:pointer}
#opportunities-app .opp-carousel-arrow:hover{background:#eaf3ff;border-color:#5796e3}
#opportunities-app .opp-carousel-arrow:focus-visible,#opportunities-app .opp-category-rail:focus-visible{outline:3px solid #176cee;outline-offset:2px}
#opportunities-app .opp-category-rail{display:flex;flex-wrap:nowrap;grid-template-columns:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;gap:10px;padding:2px 2px 10px}
#opportunities-app .opp-category{width:150px;min-width:150px;max-width:150px;flex:0 0 150px;scroll-snap-align:start}
#opportunities-app .opp-layout{padding-top:2px}
#opportunities-app #opp-results,#opportunities-app #opp-results-title{scroll-margin-top:18px}
#opportunities-app #opp-results-title:focus-visible{outline:3px solid #176cee;outline-offset:5px;border-radius:3px}
@media(max-width:570px){
 #opportunities-app .opp-category-strip{padding-top:9px;padding-bottom:11px}
 #opportunities-app .opp-category{width:128px;min-width:128px;max-width:128px;flex-basis:128px;min-height:118px}
 #opportunities-app .opp-category-photo{height:62px}
 #opportunities-app .opp-carousel-arrow{width:36px;height:36px}
}
@media(prefers-reduced-motion:reduce){#opportunities-app .opp-category-rail{scroll-behavior:auto}}

/* Keep the selected business sector visible while its opportunities scroll below.
   The global site header is position:relative (not sticky), so the rail pins
   to the viewport top without leaving an artificial 78px gap. */
#opportunities-app .opp-category-strip{
 position:sticky;
 top:0;
 z-index:24;
 background:#f7f9fd;
 border-bottom:1px solid #d4e1ee;
 box-shadow:0 6px 17px rgba(13,40,75,.11);
}
#opportunities-app .opp-category-strip .opp-category-rail{
 scroll-padding-inline:4px;
}
#opportunities-app .opp-category-strip .opp-category.selected{
 border:2px solid #176cee;
 background:#f0f6ff;
 box-shadow:0 0 0 2px rgba(23,108,238,.13),0 2px 8px rgba(12,41,86,.12);
}
#opportunities-app .opp-update-error{
 display:block;margin:0 auto 10px;padding:10px 18px;
 width:min(calc(100% - 32px),var(--max));
 border-left:4px solid #a34f22;background:#fff6ed;color:#763917;
}
#opportunities-app .opp-content[aria-busy="true"]{
 cursor:progress;
}
@media(max-width:570px){
 #opportunities-app .opp-category-strip{
  padding-top:7px;
  padding-bottom:8px;
  box-shadow:0 4px 12px rgba(13,40,75,.11);
 }
 #opportunities-app .opp-category-top{margin-bottom:5px}
 #opportunities-app .opp-category-hint{font-size:11px}
}
