/* Cartomize professional interface.
   A restrained, map-first system: neutral surfaces, one Cartomize blue and
   clear sans-serif hierarchy. This file intentionally loads after legacy CSS. */
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-soft:#f5f7fa;
  --text:#16181d;
  --muted:#596273;
  --line:#e2e6ec;
  --primary:#2456a6;
  --primary-dark:#173f80;
  --teal:#2456a6;
  --dark:#142b4f;
  --shadow-sm:0 6px 22px rgba(20,43,79,.08);
  --shadow-lg:0 18px 50px rgba(20,43,79,.12);
  --radius:6px;
  --radius-sm:4px;
  --shell:1280px;
  --ecosystem-blue:#2456a6;
  --ecosystem-blue-dark:#173f80;
  --ecosystem-navy:#142b4f;
  --ecosystem-pale:#f5f7fa;
  --ecosystem-border:#e2e6ec;
  --ecosystem-muted:#596273;
}

html{scroll-padding-top:82px}
body{
  background:#fff;
  color:var(--text);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:15px;
  line-height:1.6;
}
h1,h2,h3,h4,h5,h6,
.hero h1,.page-header h1,.section-heading h2,.ecosystem-hero h1,
.ecosystem-action-panel h2,.product-catalog-card h2,.product-catalog-card h3,
.ecosystem-link-grid h3,.ecosystem-pillars h2,.cta-panel h2{
  color:var(--text);
  font-family:"DM Sans",Arial,sans-serif;
  font-weight:600;
  letter-spacing:-.025em;
}
::selection{background:#dce7f8;color:#10274a}
:focus-visible{outline:3px solid rgba(36,86,166,.25);outline-offset:3px}
.shell,.container{width:min(calc(100% - 48px),var(--shell))}
.overline,.eyebrow{
  margin-bottom:14px;
  color:var(--primary);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:none;
}

/* Navigation */
.site-header{
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.98);
  box-shadow:none;
  backdrop-filter:blur(16px);
}
.site-header.is-scrolled{background:#fff;box-shadow:0 5px 18px rgba(20,43,79,.06)}
.ecosystem-header-grid{min-height:72px;gap:22px}
.brand-mark{width:36px;height:36px}
.brand-wordmark{
  color:var(--dark);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:19px;
  font-weight:700;
  letter-spacing:.13em;
}
.main-nav a,.nav-more>summary{
  padding:25px 10px 23px;
  color:#414957;
  font-size:13px;
  font-weight:600;
}
.main-nav a:hover,.main-nav a[aria-current=page],
.nav-more[open]>summary,.nav-more>summary:hover{
  color:var(--primary);
  background:transparent;
  box-shadow:inset 0 -2px var(--primary);
}
.icon-button,.language-menu>summary{
  border-color:var(--line);
  border-radius:4px;
  background:#fff;
  color:var(--text);
}
.icon-button:hover,.language-menu>summary:hover{border-color:var(--primary);color:var(--primary)}
.nav-more-popover,.language-popover,.account-popover{
  border:1px solid var(--line);
  border-radius:6px;
  box-shadow:var(--shadow-lg);
}
.nav-more-popover a:hover,.language-popover a:hover,.language-popover a[aria-current=true],
.account-popover a:hover,.account-popover button:hover{background:var(--surface-soft);color:var(--primary)}
.count-badge,.mini-avatar,.author-avatar,.creator-avatar,.profile-avatar{background:var(--primary)}
.nav-toggle{border-color:var(--line);border-radius:4px;background:#fff}

/* Controls */
.btn{
  min-height:43px;
  border-radius:4px;
  font-weight:600;
  box-shadow:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.btn:hover{transform:none}
.btn-primary{background:var(--primary);color:#fff;box-shadow:none}
.btn-primary:hover{background:var(--primary-dark)}
.btn-secondary{border-color:#cdd3dd;background:#fff;color:var(--text)}
.btn-secondary:hover,.btn-ghost:hover{border-color:var(--primary);background:#f7f9fc;color:var(--primary)}
.btn-light{border-color:#fff;background:#fff;color:var(--dark)}
.btn-outline-light{border-color:rgba(255,255,255,.55);color:#fff}
.text-link,.pagination a,.table-actions a{color:var(--primary);font-weight:600}
.text-link:hover,.pagination a:hover{color:var(--primary-dark)}
input,select,textarea{border-color:#cfd5df;border-radius:4px;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(36,86,166,.12)}

/* Homepage */
.ecosystem-home-hero{
  padding:82px 0 88px;
  background:linear-gradient(100deg,#fff 0%,#fff 54%,#f5f7fb 54%,#f5f7fb 100%);
}
.ecosystem-home-hero:before{display:none}
.ecosystem-home-hero .hero-grid{grid-template-columns:minmax(0,.88fr) minmax(480px,1.12fr);gap:68px}
.ecosystem-home-hero h1{
  max-width:680px;
  color:var(--dark);
  font-size:clamp(48px,5vw,72px);
  font-weight:600;
  line-height:1.03;
  letter-spacing:-.045em;
}
.ecosystem-home-hero .hero-brand-line{
  margin:18px 0 0;
  color:var(--primary);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:17px;
  font-weight:600;
  letter-spacing:0;
}
.ecosystem-home-hero .hero-lead{max-width:620px;margin:23px 0 8px;color:var(--muted);font-size:18px}
.hero-legacy-tagline{margin:0 0 28px;color:#414957;font-size:14px;font-weight:500}
.hero-template-card{
  overflow:hidden;
  border:0;
  border-radius:4px;
  background:#fff;
  box-shadow:0 16px 42px rgba(20,43,79,.13);
  transform:none;
}
.hero-template-card img{padding:10px;object-fit:contain}
.qgis-inline-link{color:#38455a;font-size:13px;font-weight:600}
.qgis-inline-link:hover{color:var(--primary)}
.status-dot{background:var(--primary);box-shadow:0 0 0 4px rgba(36,86,166,.12)}

.home-value-band{background:var(--dark);color:#fff}
.home-value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.home-value-grid article{padding:30px 34px}
.home-value-grid article+article{border-left:1px solid rgba(255,255,255,.16)}
.home-value-grid strong{display:block;margin-bottom:6px;font-size:17px;font-weight:600}
.home-value-grid p{margin:0;color:#cbd5e4;font-size:13px}

.section{padding:82px 0}
.section-muted,.section-soft,.home-network-section{background:var(--surface-soft)}
.section-heading{margin-bottom:32px}
.section-heading h2{margin:0 0 10px;font-size:clamp(34px,3.7vw,50px);line-height:1.08}
.section-heading p{max-width:690px;color:var(--muted)}
.split-heading{align-items:end}

.product-catalog-grid{gap:24px}
.product-catalog-card{
  min-height:300px;
  padding:32px;
  border:0;
  border-radius:6px;
  background:#f6f8fb;
  box-shadow:none;
}
.product-catalog-card:hover{background:#f1f5fa;box-shadow:none;transform:none}
.product-card-head{color:var(--muted);font-family:"DM Sans",Arial,sans-serif;letter-spacing:.02em}
.product-catalog-card h2,.product-catalog-card h3{margin:25px 0 10px;font-size:28px}
.product-catalog-card li>span{color:var(--primary)}
.status-pill{font-family:"DM Sans",Arial,sans-serif}
.status-available,.status-approved,.status-published{background:#e3ebf7;color:var(--primary-dark)}
.availability-notice{border:0;border-radius:4px;background:#f4eee0;color:#6c5424}

.ecosystem-link-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  border:0;
  background:transparent;
}
.ecosystem-link-grid>a{
  min-height:190px;
  padding:26px;
  border:0;
  border-radius:6px;
  background:#fff;
  box-shadow:0 2px 12px rgba(20,43,79,.05);
}
.ecosystem-link-grid>a:hover{background:#fff;box-shadow:0 12px 32px rgba(20,43,79,.1);transform:translateY(-2px)}
.ecosystem-link-grid h3{margin:0 0 9px;font-size:23px}
.ecosystem-link-grid p{min-height:50px;margin:0 0 25px;color:var(--muted);font-size:14px}
.ecosystem-link-grid>a>span{color:var(--primary);font-family:"DM Sans",Arial,sans-serif;font-size:13px;font-weight:600}
.template-paths a{border:0;border-radius:5px;background:var(--surface-soft)}
.template-paths a:hover{background:#edf2f8}
.ecosystem-action-panel h2{font-size:38px}

/* Cards and media */
.asset-grid{gap:26px}
.asset-card{
  overflow:hidden;
  border:0;
  border-radius:6px;
  background:#fff;
  box-shadow:0 3px 18px rgba(20,43,79,.08);
}
.asset-card:hover{border:0;box-shadow:0 14px 36px rgba(20,43,79,.12);transform:translateY(-2px)}
.asset-preview{margin:0;padding:10px;border:0;border-radius:0;background:#f3f5f8}
.preview-meta{min-height:36px;padding:9px 18px;border:0;background:#fff;color:var(--muted)}
.asset-content{padding:15px 19px 22px}
.asset-content h3{margin:15px 0 7px;color:var(--text);font-size:19px}
.asset-content>p{color:var(--muted)}
.author-row{font-size:13px}
.author-avatar{background:var(--primary)}
.tag-row a,.skill-list span{border-radius:3px;background:#eef2f7;color:#374f72}
.asset-card-link{display:inline-flex;gap:7px;margin-top:20px;color:var(--primary);font-size:13px;font-weight:600}
.engagement-row,.card-menu{display:none!important}
.marketing-video-card{border:0;border-radius:6px;box-shadow:var(--shadow-sm)}
.marketing-video-content>span{color:var(--primary);font-family:"DM Sans",Arial,sans-serif;letter-spacing:.03em;text-transform:none}
.social-follow-panel{border:0;border-radius:6px;background:var(--surface-soft)}
.social-link-list a{border-color:var(--line);border-radius:4px;color:var(--text)}
.social-link-list a:hover{border-color:var(--primary);color:var(--primary)}
.social-link-list a span{background:#e4ebf6;color:var(--primary-dark)}

/* Interior pages */
.page-header,.ecosystem-hero{
  padding:68px 0 58px;
  border-bottom:0;
  background:#f6f8fb;
}
.page-header h1,.ecosystem-hero h1{max-width:850px;color:var(--dark);font-size:clamp(42px,4.6vw,62px);line-height:1.05}
.ecosystem-hero h1+p,.page-header p{color:var(--muted)}
.ecosystem-status-card,.product-facts-card{
  padding:26px;
  border:0;
  border-radius:6px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.ecosystem-status-card>span{color:var(--primary);font-family:"DM Sans",Arial,sans-serif;letter-spacing:.02em}
.ecosystem-status-card>strong{margin:13px 0 0;color:var(--text)}
.ecosystem-pillars{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ecosystem-pillars article{min-height:230px;padding:27px;border:0;border-radius:6px;background:#f6f8fb}
.ecosystem-pillars h2{margin:20px 0 10px;font-size:24px}
.honest-empty-state{max-width:none;padding:34px;border:0;border-radius:6px;background:#fff}
.honest-empty-state h2{font-size:30px}
.capability-grid article,.info-card,.repository-card,.install-steps li{border-color:var(--line);border-radius:6px}
.capability-grid article>span,.install-steps li>span{color:var(--primary)}

.filters-sidebar,.feed-card,.sidebar-card,.detail-panel,.asset-detail-sidebar,
.profile-about,.dashboard-nav,.dashboard-panel,.form-card,.quota-panel{
  border-color:var(--line);
  border-radius:6px;
  box-shadow:none;
}
.filters-sidebar{border:0;background:var(--surface-soft)}
.feed-card{border:0;box-shadow:var(--shadow-sm)}
.feed-card footer a,.feed-card footer button{color:var(--primary);font-weight:600}
.detail-preview{border:0;border-radius:6px;background:var(--surface-soft)}
.asset-detail-sidebar{border:0;background:var(--surface-soft)}
.resource-specs div{border-color:#d9dee7}
.comment-list article{border-color:var(--line)}
.profile-banner{background:linear-gradient(100deg,#dce5f3,#f5f7fa)}
.profile-stat-grid{grid-template-columns:repeat(3,1fr);border:0;border-radius:6px;background:var(--surface-soft)}
.profile-stat-grid div+div{border-color:var(--line)}
.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-stats article{border:0;border-radius:6px;background:var(--surface-soft)}
.resource-table-head,.resource-table-row{grid-template-columns:1.7fr .7fr .7fr .6fr}
.resource-table-head{background:var(--surface-soft)}

/* Call to action and footer */
.final-cta{padding:72px 0;background:#fff}
.cta-panel{
  padding:50px 54px;
  border-radius:6px;
  background:var(--dark);
}
.cta-panel:after{display:none}
.cta-panel .overline{color:#b9cbe7}
.cta-panel h2{color:#fff;font-size:40px}
.cta-panel p{color:#cbd5e4}
.site-footer,.ecosystem-footer{
  padding:68px 0 24px;
  border-top:0;
  background:#111d31!important;
  color:#fff!important;
}
.ecosystem-footer .brand-wordmark,.footer-grid strong{color:#fff}
.ecosystem-footer .footer-brand p,.ecosystem-footer a,.site-footer .footer-grid a{color:#b8c3d2!important}
.ecosystem-footer a:hover,.site-footer .footer-grid a:hover{color:#fff!important}
.footer-social-links a{color:#b8c3d2!important;text-transform:none!important}
.footer-bottom{border-color:rgba(255,255,255,.14);color:#8795a8;font-family:"DM Sans",Arial,sans-serif}

/* Remove the abandoned advertising treatment even if legacy markup is cached. */
.marketing-ticker{display:none!important}

@media(max-width:1100px){
  .ecosystem-home-hero{background:#fff}
  .ecosystem-home-hero .hero-grid{grid-template-columns:1fr;gap:46px}
  .hero-template-card{max-width:760px}
  .ecosystem-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .shell,.container{width:calc(100% - 32px)}
  .main-nav{border-color:var(--line);border-radius:6px;background:#fff}
  .main-nav a,.nav-more>summary{padding:11px 12px}
  .main-nav a:hover,.main-nav a[aria-current=page],.nav-more[open]>summary,.nav-more>summary:hover{box-shadow:none;background:var(--surface-soft)}
  .ecosystem-home-hero{padding:58px 0 62px}
  .ecosystem-home-hero h1{font-size:50px}
  .home-value-grid{grid-template-columns:1fr}
  .home-value-grid article{padding:23px 0}
  .home-value-grid article+article{border-top:1px solid rgba(255,255,255,.16);border-left:0}
  .ecosystem-pillars{grid-template-columns:1fr}
  .dashboard-stats{grid-template-columns:1fr 1fr}
  .resource-table-head{display:none}
  .resource-table-row{grid-template-columns:1fr}
}
@media(max-width:560px){
  .ecosystem-home-hero h1{font-size:41px}
  .ecosystem-home-hero .hero-actions .btn{width:100%}
  .ecosystem-link-grid{grid-template-columns:1fr}
  .ecosystem-link-grid>a{min-height:0}
  .ecosystem-link-grid p{min-height:0}
  .section{padding:62px 0}
  .cta-panel{padding:34px 24px}
  .cta-panel h2{font-size:32px}
  .profile-stat-grid{grid-template-columns:1fr}
  .profile-stat-grid div+div{border-top:1px solid var(--line);border-left:0}
  .dashboard-stats{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
