/* Sales page: intentionally follows the site's light page language. */
#sales-top{padding-top:6rem;padding-bottom:1rem;background:#fff}
.sales-intro{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:1.5rem}
.sales-kicker{display:block;font-size:.65rem;letter-spacing:.16em;font-weight:700;color:#167f95;text-transform:uppercase}
.sales-intro h1{font-size:clamp(2.2rem,5vw,4.5rem);line-height:.95;letter-spacing:-.06em;margin:.5rem 0 1rem;color:#004f88}
.sales-intro h1 i{font-weight:300;color:#b13fd4}
.sales-intro p{max-width:620px;color:#5f737a;margin:0;line-height:1.6}
.sales-controls{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;justify-content:flex-end}
.year-control{display:flex;align-items:center;gap:8px;padding:.55rem .7rem;border:1px solid #d6e5e9;border-radius:10px;background:#fff;white-space:nowrap}
.year-control span{font-size:.5rem;letter-spacing:.12em;color:#80949a}.year-control b{font-size:1.1rem;color:#004f88}.year-control input{width:120px;accent-color:#004f88}

.sales-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:1rem}
.sales-map-panel{position:relative;min-height:540px;border:1px solid #d7e5e8;border-radius:14px;background:#edf7f9;overflow:hidden;box-shadow:0 5px 18px rgba(18,54,64,.07)}
.sales-map-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 49.8%,#167f9512 50%,transparent 50.2%),linear-gradient(transparent 49.8%,#167f9512 50%,transparent 50.2%);background-size:120px 120px;pointer-events:none}
.map-title{position:absolute;z-index:3;top:14px;left:17px;right:17px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:.13em;color:#66838c}.map-title b{color:#004f88}
.real-map{position:absolute;inset:30px 7px 34px}.real-map svg{width:100%;height:100%;display:block}.country{stroke:#5b7c85;stroke-width:.55;vector-effect:non-scaling-stroke;cursor:pointer}.country:hover,.country.selected{stroke:#004f88;stroke-width:1.5}
.map-legend{position:absolute;bottom:11px;left:16px;right:16px;z-index:3;display:flex;gap:12px;flex-wrap:wrap;color:#58747c;font-size:7px;letter-spacing:.08em}.map-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:-1px;margin-right:4px}.map-legend .normal{background:#f0b900}.map-legend .smart{background:#0ba9c5}.map-legend .ai{background:#9b55c4}.map-legend .ar{background:#22a879}.heat-key{margin-left:auto;color:#6f8c94}
.map-tip{position:absolute;z-index:5;min-width:175px;padding:11px 13px;background:rgba(255,255,255,.98);color:#173640;border:1px solid #c9dfe4;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.14);pointer-events:none;font-size:.7rem}.map-tip strong{display:block;font-size:.85rem;margin-bottom:7px;color:#004f88}.map-tip div{display:flex;justify-content:space-between;gap:15px;color:#6c8188}.map-tip b{color:#173640}
.sales-side{border:1px solid #d7e5e8;border-radius:14px;background:#fff;padding:1.25rem;display:flex;flex-direction:column;min-height:540px}.sales-side h2{font-size:1.35rem;letter-spacing:-.03em;margin:.35rem 0 1.2rem;color:#004f88}.hero-number{font-size:2.7rem;letter-spacing:-.07em;line-height:1;margin-bottom:.2rem;color:#111}.sales-side>small{color:#7b9096;font-size:.58rem}.region-bars{display:grid;gap:9px;margin-top:1.4rem}.bar-row{display:grid;grid-template-columns:48px 1fr 45px;gap:7px;align-items:center;font-size:.52rem;color:#667c83}.bar-row i{height:7px;background:#e7eff1;border-radius:10px;overflow:hidden}.bar-row i b{display:block;height:100%;border-radius:10px}.bar-row>b{text-align:right;font-size:.52rem;color:#304f58}.insight{margin-top:auto;padding-top:1.2rem;color:#71858b;font-size:.65rem;line-height:1.55}.side-kpi{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2ecee;display:grid;gap:2px}.side-kpi span{font-size:.5rem;letter-spacing:.12em;color:#6f8790}.side-kpi b{font-size:1.45rem;color:#159a70}.side-kpi small{font-size:.5rem;color:#87999e}
.sales-kpis{display:grid;grid-template-columns:repeat(4,1fr) 1.25fr;gap:10px;margin-top:1rem}.sales-kpis article{border:1px solid #d7e5e8;border-radius:12px;background:#fff;padding:.9rem 1rem}.sales-kpis span{display:block;font-size:.5rem;letter-spacing:.12em;color:#6e858c}.sales-kpis b{display:block;font-size:1.45rem;letter-spacing:-.06em;margin:.2rem 0}.sales-kpis small{font-size:.5rem;color:#87999e}.sales-kpis article:nth-child(1) b{color:#b88600}.sales-kpis article:nth-child(2) b{color:#119dbb}.sales-kpis article:nth-child(3) b{color:#9a43c1}.sales-kpis article:nth-child(4) b{color:#159a70}.sales-kpis .shift{background:#f1f8fa}.sales-kpis .shift b{color:#159a70}
.sales-source{font-size:.52rem;color:#84969c;margin:1rem 0 0;line-height:1.5}
@media(max-width:900px){#sales-top{padding-top:5.5rem}.sales-intro{display:block}.sales-controls{justify-content:flex-start;margin-top:1rem}.sales-dashboard{grid-template-columns:1fr}.sales-side{min-height:0}.sales-map-panel{min-height:460px}.sales-kpis{grid-template-columns:repeat(2,1fr)}.sales-kpis .shift{grid-column:1/-1}}
@media(max-width:600px){#sales-top{padding-top:5rem}.sales-map-panel{min-height:390px}.year-control input{width:90px}.sales-kpis{grid-template-columns:1fr 1fr}.sales-intro h1{font-size:2.5rem}.map-legend{gap:7px}.heat-key{margin-left:0}}


/* One-viewport desktop composition: keep the complete Sales dashboard above the footer. */
@media(min-width:901px){
  #sales-top{padding-top:5.1rem;padding-bottom:.7rem}
  .sales-intro{gap:1.5rem;margin-bottom:1rem;align-items:center}
  .sales-intro h1{font-size:clamp(2rem,4vw,3.7rem);margin:.35rem 0 .65rem}
  .sales-intro p{font-size:.82rem;line-height:1.45;max-width:560px}
  .sales-controls{gap:.55rem}
  .mode-switch button{padding:6px 8px}
  .year-control{padding:.45rem .6rem;gap:6px}
  .year-control input{width:105px}
  .sales-dashboard{grid-template-columns:minmax(0,1fr) 245px;gap:.8rem}
  .sales-map-panel{min-height:415px;height:415px}
  .sales-side{min-height:415px;height:415px;padding:1rem}
  .sales-side h2{font-size:1.2rem;margin:.25rem 0 .8rem}
  .hero-number{font-size:2.35rem}
  .region-bars{gap:7px;margin-top:1rem}
  .insight{padding-top:.8rem;font-size:.6rem}
  .side-kpi{margin-top:.7rem;padding-top:.7rem}
  .sales-kpis{gap:8px;margin-top:.7rem}
  .sales-kpis article{padding:.65rem .8rem}
  .sales-kpis b{font-size:1.2rem;margin:.12rem 0}
  .sales-source{margin:.55rem 0 0}
}
@media(min-width:901px) and (max-height:800px){
  #sales-top{padding-top:4.6rem}
  .sales-intro h1{font-size:3rem}
  .sales-intro p{font-size:.76rem}
  .sales-map-panel,.sales-side{height:360px;min-height:360px}
  .real-map{inset:27px 7px 31px}
  .sales-kpis article{padding:.55rem .7rem}
  .sales-kpis small{font-size:.45rem}
}
@media(max-width:900px){
  #sales-top{padding-top:5rem}
  .sales-intro{margin-bottom:1rem}
  .sales-intro h1{font-size:clamp(2.1rem,7vw,3.2rem);margin:.4rem 0 .65rem}
  .sales-intro p{font-size:.8rem;line-height:1.45}
  .sales-controls{margin-top:.7rem}
  .sales-map-panel{min-height:430px}
}


/* Keep the Sales heading compact so the map starts in the initial viewport. */
@media(min-width:901px){
  #sales-top{padding-top:4.15rem}
  .sales-intro{gap:1.25rem;margin-bottom:.65rem;align-items:center}
  .sales-intro h1{font-size:clamp(1.85rem,3.2vw,3rem);line-height:.92;margin:.25rem 0 .45rem}
  .sales-intro p{font-size:.72rem;line-height:1.35;max-width:500px}
  .sales-kicker{font-size:.56rem;letter-spacing:.13em}
  .sales-controls{gap:.45rem}
  .mode-switch button{padding:5px 7px;font-size:.5rem}
  .year-control{padding:.38rem .55rem}
  .year-control input{width:220px}
  .sales-map-panel,.sales-side{height:385px;min-height:385px}
}
@media(min-width:901px) and (max-height:800px){
  #sales-top{padding-top:3.7rem}
  .sales-intro h1{font-size:2.6rem}
  .sales-intro p{font-size:.68rem}
  .sales-map-panel,.sales-side{height:345px;min-height:345px}
}
@media(max-width:900px){
  #sales-top{padding-top:4.6rem}
  .sales-intro h1{font-size:clamp(1.95rem,7vw,2.9rem)}
}
@media(max-width:600px){
  #sales-top{padding-top:4.2rem}
  .sales-intro h1{font-size:2.25rem}
}


/* Map-first hierarchy: give the real map more room and make the controls unmistakable. */
@media(min-width:901px){
  .sales-intro h1{font-size:clamp(1.55rem,2.5vw,2.35rem);margin:.15rem 0 .3rem}
  .sales-intro p{font-size:.65rem;line-height:1.3;max-width:460px}
  .sales-kicker{font-size:.5rem}
  .sales-controls{gap:.65rem}
  .mode-switch{gap:4px;padding:4px;background:#eef4f6;border-color:#bdd2d8;box-shadow:0 2px 7px rgba(18,54,64,.06)}
  .mode-switch button{padding:7px 10px;font-size:.52rem;color:#45636c}
  .mode-switch button.active{box-shadow:0 2px 6px rgba(0,79,136,.2)}
  .year-control{padding:.48rem .65rem;border-color:#bdd2d8;box-shadow:0 2px 7px rgba(18,54,64,.05)}
  .year-control b{font-size:1rem}
  .year-control input{width:220px}
  .sales-dashboard{grid-template-columns:minmax(0,1fr) 225px;gap:.7rem}
  .sales-map-panel,.sales-side{height:420px;min-height:420px}
  .real-map{inset:28px 5px 31px}
  .map-title{top:11px;font-size:7px}
  .sales-side{padding:.9rem}
  .sales-side h2{font-size:1.05rem}
  .hero-number{font-size:2.15rem}
}
@media(min-width:901px) and (max-height:800px){
  .sales-map-panel,.sales-side{height:380px;min-height:380px}
}


/* Hover narrative for KPI cards: reveal context without adding permanent page height. */
.sales-kpis .kpi-story{position:relative;cursor:help;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.sales-kpis .kpi-story:hover{transform:translateY(-2px);border-color:#9fc8d2;box-shadow:0 9px 22px rgba(18,54,64,.11)}
.sales-kpis .kpi-story::after{content:attr(data-story);position:absolute;left:10px;right:10px;bottom:calc(100% + 8px);z-index:20;padding:10px 11px;border:1px solid #c6dde2;border-radius:9px;background:rgba(255,255,255,.98);box-shadow:0 10px 24px rgba(18,54,64,.14);color:#526c74;font-size:.58rem;font-weight:400;line-height:1.45;letter-spacing:0;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}
.sales-kpis .kpi-story:hover::after{opacity:1;visibility:visible;transform:translateY(0)}
@media(max-width:900px){.sales-kpis .kpi-story::after{bottom:auto;top:calc(100% + 8px)}}
@media(prefers-reduced-motion:reduce){.sales-kpis .kpi-story,.sales-kpis .kpi-story::after{transition:none}}


/* With the KPI strip removed, let the map and market panel own the available space. */
@media(min-width:901px){
  .sales-dashboard{grid-template-columns:minmax(0,1fr) 250px;gap:.8rem}
  .sales-map-panel,.sales-side{height:530px;min-height:530px}
  .real-map{inset:30px 4px 32px}
  .map-title{top:12px;font-size:8px}
  .sales-side{padding:1rem}
  .sales-side h2{font-size:1.15rem}
  .hero-number{font-size:2.35rem}
  .region-bars{gap:8px;margin-top:1.1rem}
}
@media(min-width:901px) and (max-height:800px){
  .sales-map-panel,.sales-side{height:465px;min-height:465px}
}

/* Natural terrain map: no sales-color legend; country fills now use geographic terrain tones. */
.sales-map-panel{background:#b9d8e6}
.sales-map-panel:before{background:linear-gradient(90deg,transparent 49.8%,rgba(255,255,255,.16) 50%,transparent 50.2%),linear-gradient(transparent 49.8%,rgba(255,255,255,.16) 50%,transparent 50.2%)}
.country{stroke:#71806c;stroke-width:.5}
.country:hover,.country.selected{stroke:#315b48;stroke-width:1.6}

/* Detailed physical-map treatment inspired by Natural Earth reference cartography. */
.sales-map-panel{background:linear-gradient(180deg,#a9cddd 0%,#86b6ca 100%)}
.sales-map-panel:before{background:radial-gradient(ellipse at 50% 45%,rgba(255,255,255,.2),transparent 58%),linear-gradient(90deg,transparent 49.8%,rgba(255,255,255,.12) 50%,transparent 50.2%),linear-gradient(transparent 49.8%,rgba(255,255,255,.12) 50%,transparent 50.2%);background-size:auto,120px 120px,120px 120px}
.real-map svg{filter:drop-shadow(0 3px 5px rgba(38,72,55,.08))}
.country{stroke:#657766;stroke-width:.5;transition:filter .12s ease}
.country:hover{filter:brightness(1.08) saturate(1.08)}
.country.selected{stroke:#274f40;stroke-width:1.8;filter:brightness(1.06) saturate(1.08)}
.lakes path{opacity:.88}
.rivers path{mix-blend-mode:multiply}
