/* Cartomize ecosystem architecture — restrained blue/white extension. */
:root{
  --ecosystem-blue:#2456a6;
  --ecosystem-blue-dark:#17388f;
  --ecosystem-navy:#132c56;
  --ecosystem-pale:#f3f6fb;
  --ecosystem-border:#dfe5ef;
  --ecosystem-muted:#66728a;
}

.ecosystem-header-grid{
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:24px;
  min-height:76px;
}
.ecosystem-main-nav{justify-content:center;align-items:center;min-width:0}
.ecosystem-main-nav>a,.nav-more>summary{white-space:nowrap}
.nav-more,.language-menu{position:relative}
.nav-more>summary,.language-menu>summary{list-style:none;cursor:pointer}
.nav-more>summary::-webkit-details-marker,.language-menu>summary::-webkit-details-marker{display:none}
.nav-more>summary{padding:9px 11px;color:var(--muted);font-size:14px;font-weight:600}
.nav-more[open]>summary,.nav-more>summary:hover{color:var(--text);background:var(--surface-soft);box-shadow:inset 0 -2px var(--ecosystem-blue)}
.nav-more-popover,.language-popover{
  position:absolute;
  z-index:150;
  top:calc(100% + 12px);
  right:0;
  padding:8px;
  border:1px solid var(--ecosystem-border);
  background:#fff;
  box-shadow:0 22px 60px rgba(23,56,143,.18);
}
.nav-more-popover{width:250px}
.nav-more-popover a{display:grid;gap:1px;padding:11px 12px;color:#17233b;font-weight:700}
.nav-more-popover a:hover{background:var(--ecosystem-pale);color:var(--ecosystem-blue-dark)}
.nav-more-popover small{color:var(--ecosystem-muted);font-size:11px;font-weight:500}
.ecosystem-header-actions{gap:6px}
.language-menu>summary{display:grid;place-items:center;min-width:39px;height:39px;padding:0 8px;border:1px solid var(--ecosystem-border);color:#17233b;font:600 11px "DM Mono",monospace}
.language-menu>summary:hover{border-color:var(--ecosystem-blue);color:var(--ecosystem-blue)}
.language-popover{width:150px}
.language-popover a{display:block;padding:9px 11px;color:#17233b;font-size:13px;font-weight:600}
.language-popover a:hover,.language-popover a[aria-current=true]{background:var(--ecosystem-pale);color:var(--ecosystem-blue-dark)}

.ecosystem-home-hero{position:relative;padding:84px 0;background:linear-gradient(135deg,#fff 0%,#f5f8fd 100%)}
.ecosystem-home-hero:before{content:"";position:absolute;inset:0 50% 0 0;background:linear-gradient(90deg,rgba(36,86,166,.05),transparent);pointer-events:none}
.ecosystem-home-hero .hero-grid{position:relative;grid-template-columns:minmax(0,.88fr) minmax(460px,1.12fr);gap:58px}
.ecosystem-home-hero h1{max-width:700px;color:#132c56}
.ecosystem-home-hero .hero-brand-line{margin:18px 0 0;color:var(--ecosystem-blue);font:600 17px "DM Mono",monospace;letter-spacing:.02em}
.ecosystem-home-hero .hero-lead{margin:22px 0 10px}
.hero-legacy-tagline{display:block;margin:0 0 28px;color:var(--ecosystem-muted);font-size:14px}
.qgis-inline-link{display:inline-flex;align-items:center;gap:8px;margin-top:25px;color:var(--ecosystem-blue-dark);font-size:13px;font-weight:700}
.qgis-inline-link:hover{text-decoration:underline;text-underline-offset:4px}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--ecosystem-blue);box-shadow:0 0 0 4px rgba(36,86,166,.12)}
.ecosystem-home-hero .hero-template-card{overflow:hidden;border-radius:4px}
.ecosystem-visual-head{display:flex;justify-content:space-between;gap:18px;padding:9px 4px 14px;color:var(--ecosystem-muted);font:500 10px "DM Mono",monospace;letter-spacing:.08em}
.ecosystem-visual-head strong{color:var(--ecosystem-blue-dark);text-align:right}

.product-strip{border-block:1px solid var(--ecosystem-border);background:#fff}
.product-strip-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.product-strip article{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:24px 22px;border-right:1px solid var(--ecosystem-border)}
.product-strip article:first-child{border-left:1px solid var(--ecosystem-border)}
.product-strip article>span{color:var(--ecosystem-blue);font:500 10px "DM Mono",monospace;letter-spacing:.08em;writing-mode:vertical-rl;transform:rotate(180deg)}
.product-strip strong{display:block;margin-bottom:4px;color:#17233b;font-size:16px}
.product-strip p{margin:0;color:var(--ecosystem-muted);font-size:12px;line-height:1.5}

.product-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-catalog-card{display:flex;min-height:330px;flex-direction:column;padding:30px;border:1px solid var(--ecosystem-border);border-top:4px solid var(--ecosystem-blue);background:#fff;box-shadow:0 10px 34px rgba(23,56,143,.07)}
.product-catalog-card:hover{box-shadow:0 18px 48px rgba(23,56,143,.13);transform:translateY(-3px);transition:.2s ease}
.product-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--ecosystem-muted);font:500 11px "DM Mono",monospace;letter-spacing:.08em;text-transform:uppercase}
.status-pill{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;font:700 10px "DM Sans",sans-serif;letter-spacing:0;text-transform:none}
.status-available{background:#e8eef9;color:var(--ecosystem-blue-dark)}
.status-development,.status-preview{background:#fff3d9;color:#7b5612}
.status-planned{background:#eef1f5;color:#596579}
.status-retired{background:#f6e8e7;color:#8c3c35}
.status-draft,.status-archived{background:#eef1f5;color:#596579}
.status-pending,.status-changes_requested{background:#fff3d9;color:#7b5612}
.status-approved,.status-published{background:#e8eef9;color:var(--ecosystem-blue-dark)}
.status-rejected,.status-suspended{background:#f6e8e7;color:#8c3c35}
.product-catalog-card h2,.product-catalog-card h3{margin:25px 0 10px;color:#132c56;font:600 31px/1.1 "Newsreader",serif}
.product-catalog-card h3{font-size:27px}
.product-catalog-card>p{margin:0 0 20px;color:var(--ecosystem-muted)}
.product-catalog-card ul{display:grid;gap:10px;margin:0 0 25px;padding:0;list-style:none}
.product-catalog-card li{display:flex;align-items:center;gap:8px;color:#37445c;font-size:13px}
.product-catalog-card li>span{color:var(--ecosystem-blue);font-weight:800}
.product-catalog-card li small{margin-left:auto;color:var(--ecosystem-muted)}
.product-catalog-card>.text-link{margin-top:auto}
.product-home-card{min-height:300px}
.product-home-card .btn{align-self:flex-start;margin:5px 0 18px}
.availability-notice{display:inline-flex;align-self:flex-start;margin:5px 0 18px;padding:11px 13px;border:1px solid #e8d5a4;background:#fff9ea;color:#755115;font-size:13px;font-weight:700}

.ecosystem-link-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid var(--ecosystem-border);background:var(--ecosystem-border)}
.ecosystem-link-grid>a{min-height:230px;padding:26px;background:#fff}
.ecosystem-link-grid>a:hover{position:relative;background:#f8fafe;box-shadow:inset 0 -4px var(--ecosystem-blue)}
.ecosystem-link-grid>a>span{color:var(--ecosystem-blue);font:500 11px "DM Mono",monospace}
.ecosystem-link-grid h3{margin:44px 0 8px;color:#132c56;font:600 25px "Newsreader",serif}
.ecosystem-link-grid p{margin:0;color:var(--ecosystem-muted);font-size:13px}
.template-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:25px}
.template-paths a{display:grid;gap:4px;padding:19px 21px;border:1px solid var(--ecosystem-border);background:#fff}
.template-paths a:hover{border-color:var(--ecosystem-blue)}
.template-paths strong{color:#17233b}.template-paths span{color:var(--ecosystem-muted);font-size:13px}
.ecosystem-action-panel{display:flex;align-items:center;justify-content:space-between;gap:45px}
.ecosystem-action-panel h2{margin:0 0 8px;color:#132c56;font:600 38px/1.1 "Newsreader",serif}
.ecosystem-action-panel p{max-width:750px;margin:0;color:var(--ecosystem-muted)}

.ecosystem-hero{padding:84px 0;border-bottom:1px solid var(--ecosystem-border);background:linear-gradient(135deg,#f7f9fd 0%,#fff 68%)}
.ecosystem-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:70px;align-items:center}
.ecosystem-hero h1{max-width:820px;margin:0;color:#132c56;font:600 clamp(43px,5vw,70px)/1 "Newsreader",serif;letter-spacing:-.035em}
.ecosystem-hero h1+p{max-width:780px;margin:23px 0 0;color:var(--ecosystem-muted);font-size:18px}
.ecosystem-status-card,.product-facts-card{padding:26px;border:1px solid var(--ecosystem-border);border-top:4px solid var(--ecosystem-blue);background:#fff;box-shadow:0 13px 38px rgba(23,56,143,.08)}
.ecosystem-status-card>span{color:var(--ecosystem-blue);font:500 10px "DM Mono",monospace;letter-spacing:.1em}
.ecosystem-status-card>strong{display:block;margin:20px 0 8px;color:#17233b;font-size:20px;line-height:1.3}
.ecosystem-status-card p{margin:0;color:var(--ecosystem-muted);font-size:13px}
.ecosystem-pillars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ecosystem-pillars article{min-height:280px;padding:26px;border:1px solid var(--ecosystem-border);background:#fff}
.ecosystem-pillars article>span{color:var(--ecosystem-blue);font:500 11px "DM Mono",monospace}
.ecosystem-pillars h2{margin:64px 0 10px;color:#132c56;font:600 26px/1.15 "Newsreader",serif}
.ecosystem-pillars p{margin:0;color:var(--ecosystem-muted);font-size:14px}
.honest-empty-state{max-width:830px;padding:35px;border:1px solid var(--ecosystem-border);border-left:4px solid var(--ecosystem-blue);background:#fff}
.honest-empty-state h2{margin:0 0 9px;color:#132c56;font:600 32px "Newsreader",serif}
.honest-empty-state p{margin:0;color:var(--ecosystem-muted)}
.product-breadcrumbs{display:flex;gap:9px;margin-bottom:25px;color:var(--ecosystem-muted);font-size:13px}
.product-breadcrumbs a{color:var(--ecosystem-blue);font-weight:700}
.product-facts-card{display:grid;padding:0}
.product-facts-card>div{display:flex;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid var(--ecosystem-border)}
.product-facts-card>div:last-child{border:0}
.product-facts-card span{color:var(--ecosystem-muted);font-size:13px}
.product-facts-card strong{color:#17233b;font-size:14px;text-align:right}
.product-ecosystem-hero .hero-actions{margin-top:28px}
.ecosystem-capability-grid article{border-top:4px solid var(--ecosystem-blue)}
.product-existing-links{align-items:center}

.ecosystem-filter-bar{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:14px;align-items:end;margin-bottom:34px;padding:20px;border:1px solid var(--ecosystem-border);background:var(--ecosystem-pale)}
.ecosystem-filter-bar label{display:grid;gap:7px;min-width:0}
.ecosystem-filter-bar label>span{color:#43516a;font-size:12px;font-weight:700}
.ecosystem-filter-bar input,.ecosystem-filter-bar select{width:100%;height:44px;padding:0 12px;border:1px solid #cfd8e7;background:#fff;color:#17233b}
.ecosystem-filter-bar .check-filter{display:flex;min-height:44px;align-items:center;gap:8px;padding:0 12px;border:1px solid #cfd8e7;background:#fff}
.ecosystem-filter-bar .check-filter input{width:17px;height:17px}
.academy-course-grid,.lead-directory-grid,.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.academy-course-card,.lead-card,.activity-grid>article{display:flex;min-height:290px;flex-direction:column;padding:25px;border:1px solid var(--ecosystem-border);background:#fff}
.academy-course-card:hover,.lead-card:hover{border-color:#b7c7e2;box-shadow:0 16px 42px rgba(23,56,143,.1)}
.course-meta{display:flex;flex-wrap:wrap;gap:7px;color:var(--ecosystem-muted);font:500 10px "DM Mono",monospace;text-transform:uppercase}
.course-meta span{padding:4px 7px;background:var(--ecosystem-pale)}
.academy-course-card h2,.lead-card h2{margin:28px 0 9px;color:#132c56;font:600 25px/1.15 "Newsreader",serif}
.academy-course-card>p,.lead-card>p{margin:0 0 20px;color:var(--ecosystem-muted)}
.course-instructor{display:flex;justify-content:space-between;gap:15px;margin-top:auto;padding-top:17px;border-top:1px solid var(--ecosystem-border);font-size:12px}
.course-instructor span{color:var(--ecosystem-blue);font-weight:700}
.academy-course-card>.text-link,.lead-card>.text-link{margin-top:17px}
.course-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}
.prose-panel{padding:30px;border:1px solid var(--ecosystem-border);background:#fff;color:#3f4b60}
.prose-panel h2{margin:34px 0 10px;color:#132c56;font:600 32px "Newsreader",serif}
.prose-panel p{line-height:1.75}
.lead-card{min-height:390px}
.lead-avatar,.lead-profile-avatar{display:grid;overflow:hidden;place-items:center;border-radius:50%;background:var(--ecosystem-blue);color:#fff;font-weight:800}
.lead-avatar{width:74px;height:74px;margin-bottom:18px;font-size:26px}
.lead-avatar img,.lead-profile-avatar img{width:100%;height:100%;object-fit:cover}
.official-badge{display:inline-flex;align-self:flex-start;margin:2px 0;padding:5px 8px;border:1px solid #b6c7e3;background:#eef3fb;color:var(--ecosystem-blue-dark);font-size:11px;font-weight:800}
.instructor-badge{border-color:#d7c78e;background:#fff8df;color:#725410}
.lead-location,.lead-profile-location{color:var(--ecosystem-blue-dark)!important;font-weight:700}
.lead-profile-hero{padding:74px 0;border-bottom:1px solid var(--ecosystem-border);background:linear-gradient(135deg,#f6f8fc,#fff)}
.lead-profile-grid{display:grid;grid-template-columns:150px minmax(0,1fr) 330px;gap:34px;align-items:start}
.lead-profile-avatar{width:150px;height:150px;font-size:54px}
.lead-profile-grid h1{margin:17px 0 8px;color:#132c56;font:600 clamp(42px,5vw,66px)/1 "Newsreader",serif}
.lead-profile-grid>div:nth-child(2)>p{max-width:760px;color:var(--ecosystem-muted)}
.lead-socials{display:flex;gap:9px}.lead-socials a{padding:8px 11px;border:1px solid var(--ecosystem-border);font-size:12px;font-weight:700}
.activity-grid>article{min-height:245px}
.activity-grid h3{margin:25px 0 8px;color:#132c56;font-size:20px}
.activity-grid p{margin:0 0 22px;color:var(--ecosystem-muted)}
.around-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:34px;border:1px solid var(--ecosystem-border);background:var(--ecosystem-border)}
.around-stats article{display:grid;gap:6px;padding:25px;background:#fff}
.around-stats strong{color:#132c56;font:600 42px "Newsreader",serif}
.around-stats span{color:var(--ecosystem-muted);font-size:12px}
.country-presence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.country-presence-grid article{padding:24px;border:1px solid var(--ecosystem-border);background:#fff}
.country-presence-grid article>span{color:var(--ecosystem-blue);font:500 11px "DM Mono",monospace}
.country-presence-grid h2{margin:18px 0 3px;color:#132c56;font:600 25px "Newsreader",serif}
.country-presence-grid p,.country-presence-grid div{color:var(--ecosystem-muted);font-size:13px}
.form-page{min-height:70vh;padding:70px 0;background:var(--ecosystem-pale)}
.form-page .section-heading h1{margin:0 0 10px;color:#132c56;font:600 clamp(40px,5vw,58px)/1 "Newsreader",serif}
.ecosystem-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:30px;border:1px solid var(--ecosystem-border);background:#fff}
.ecosystem-form .field{display:grid;gap:7px}
.ecosystem-form .field:has(textarea),.ecosystem-form .form-actions{grid-column:1/-1}
.ecosystem-form label{color:#33415a;font-size:13px;font-weight:700}
.ecosystem-form input,.ecosystem-form select,.ecosystem-form textarea{width:100%;padding:11px 12px;border:1px solid #cfd8e7;background:#fff;color:#17233b}
.ecosystem-form input,.ecosystem-form select{min-height:44px}
.ecosystem-form input:focus,.ecosystem-form select:focus,.ecosystem-form textarea:focus{border-color:var(--ecosystem-blue);outline:3px solid rgba(36,86,166,.12)}
.ecosystem-form input[type=checkbox]{width:18px;min-height:18px}
.ecosystem-form .form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid var(--ecosystem-border)}
.application-status-panel{padding:30px;border:1px solid var(--ecosystem-border);border-left:4px solid var(--ecosystem-blue);background:#fff}
.application-status-panel h2{margin:20px 0 8px;color:#132c56;font:600 30px "Newsreader",serif}
.review-table{display:grid}
.review-table>div{display:grid;grid-template-columns:minmax(0,1fr) 190px 150px;gap:18px;align-items:center;padding:15px 0;border-top:1px solid var(--ecosystem-border)}
.review-table>div>div{display:grid}.review-table small{color:var(--ecosystem-muted)}
.review-table form{text-align:right}.review-table button{border:0;background:transparent;color:var(--ecosystem-blue);font-size:12px;font-weight:800}
.docs-search-section{padding:26px 0;border-block:1px solid var(--ecosystem-border);background:var(--ecosystem-pale)}
.docs-search-form{display:grid;gap:8px}.docs-search-form>label{color:#33415a;font-size:13px;font-weight:800}.docs-search-form>div{display:flex;gap:9px}.docs-search-form input{width:100%;min-height:46px;padding:0 13px;border:1px solid #cfd8e7;background:#fff}
.docs-search-results{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:16px}.docs-search-results>strong{margin-right:6px}.docs-search-results>a{padding:7px 10px;border:1px solid var(--ecosystem-border);background:#fff;color:var(--ecosystem-blue);font-size:12px;font-weight:700}.docs-search-results p{margin:0;color:var(--ecosystem-muted)}

.ecosystem-footer{border-top:1px solid var(--ecosystem-border);background:#fff!important;color:#17233b!important}
.ecosystem-footer-grid{grid-template-columns:1.4fr repeat(4,minmax(0,1fr));gap:36px}
.ecosystem-footer-grid>div:not(.footer-brand){display:flex;flex-direction:column;gap:9px}
.ecosystem-footer-grid strong{margin-bottom:7px;color:#132c56}
.ecosystem-footer-grid a{font-size:13px}
.ecosystem-footer .footer-brand p{color:var(--ecosystem-muted)}

@media(max-width:1180px){
  .ecosystem-header-grid{grid-template-columns:auto auto 1fr;gap:14px}
  .ecosystem-main-nav{position:absolute;inset:76px 20px auto;display:none;justify-content:stretch;padding:12px;border:1px solid var(--ecosystem-border);background:#fff;box-shadow:0 22px 60px rgba(23,56,143,.18)}
  .ecosystem-main-nav.open{display:grid}
  .ecosystem-main-nav>a,.nav-more>summary{padding:11px 12px}
  .nav-toggle{display:block;order:2}
  .ecosystem-header-actions{justify-self:end;order:3}
  .nav-more-popover{position:static;width:auto;margin:0 10px 8px;box-shadow:none}
  .ecosystem-footer-grid{grid-template-columns:1.4fr repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .ecosystem-home-hero .hero-grid,.ecosystem-hero-grid{grid-template-columns:1fr;gap:38px}
  .ecosystem-home-hero .hero-grid{grid-template-columns:1fr}
  .ecosystem-home-hero{padding:62px 0}
  .ecosystem-hero{padding:62px 0}
  .ecosystem-status-card,.product-facts-card{max-width:600px}
  .product-strip-grid,.ecosystem-link-grid,.ecosystem-pillars{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-catalog-grid,.home-product-grid{grid-template-columns:1fr}
  .ecosystem-action-panel{align-items:flex-start;flex-direction:column}
  .ecosystem-filter-bar{grid-template-columns:1fr 1fr}
  .academy-course-grid,.lead-directory-grid,.activity-grid,.country-presence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lead-profile-grid{grid-template-columns:120px 1fr}.lead-profile-avatar{width:120px;height:120px}.lead-profile-grid .product-facts-card{grid-column:1/-1}
  .course-detail-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .ecosystem-header-grid{grid-template-columns:auto auto 1fr}
  .ecosystem-header-actions .icon-button,.login-header-action,.register-header-action,.publish-header-action,.ecosystem-header-actions .account-menu,.ecosystem-header-actions .notification-link{display:none}
  .language-menu{margin-left:auto}
  .brand-wordmark{font-size:17px}
  .product-strip-grid,.ecosystem-link-grid,.ecosystem-pillars,.template-paths{grid-template-columns:1fr}
  .product-strip article,.product-strip article:first-child{border:0;border-bottom:1px solid var(--ecosystem-border)}
  .ecosystem-link-grid>a{min-height:190px}
  .ecosystem-link-grid h3{margin-top:34px}
  .product-catalog-card{min-height:0;padding:24px 20px}
  .ecosystem-footer-grid{grid-template-columns:1fr 1fr}
  .ecosystem-footer-grid .footer-brand{grid-column:1/-1}
  .ecosystem-home-hero h1,.ecosystem-hero h1{font-size:42px}
  .ecosystem-filter-bar,.academy-course-grid,.lead-directory-grid,.activity-grid,.country-presence-grid,.around-stats,.ecosystem-form{grid-template-columns:1fr}
  .ecosystem-form .field:has(textarea),.ecosystem-form .form-actions{grid-column:auto}
  .ecosystem-form .form-actions{align-items:stretch;flex-direction:column}
  .lead-profile-grid{grid-template-columns:1fr}.lead-profile-avatar{width:100px;height:100px}.lead-profile-grid .product-facts-card{grid-column:auto}
  .review-table>div{grid-template-columns:1fr}.review-table form{text-align:left}
}
@media(max-width:460px){
  .ecosystem-footer-grid{grid-template-columns:1fr}
  .ecosystem-footer-grid .footer-brand{grid-column:auto}
  .ecosystem-visual-head{display:grid}
  .ecosystem-visual-head strong{text-align:left}
}
