/* Minegolia compact desktop scale pass — no browser zoom or page transform hacks. */
:root{
  --mg-container:1320px;
  --mg-compact-container:1320px;
  --mg-compact-gutter:48px;
  --mg-section-y:56px;
  --mg-section-y-sm:42px;
  --mg-card-pad:18px;
  --mg-control-h:42px;
  --mg-hero-title:clamp(36px,3vw,52px);
  --mg-page-title:clamp(34px,2.7vw,48px);
  --mg-section-title:clamp(24px,2vw,32px);
}
.mg-container{width:min(calc(100% - var(--mg-compact-gutter)),var(--mg-compact-container));}
body{font-size:15px;line-height:1.48;}

/* Header/navigation: compact professional portal scale. */
.mg-header-inner{min-height:66px;gap:20px;}
.mg-brand{gap:9px;font-size:20px;}
.mg-brand .mg-logo-mark{width:54px!important;height:36px!important;}
.mg-navigation{margin-left:auto;}
.mg-nav-list{gap:18px;}
.mg-nav-list a{font-size:13px;padding:21px 0 18px;line-height:1.1;}
.mg-header-actions{gap:8px;}
.mg-lang{font-size:13px;padding-inline:5px;}
.mg-button{min-height:40px;padding:9px 15px;border-radius:7px;font-size:13px;gap:7px;}
.mg-icon-action{width:16px;height:16px;}

/* Shared page hero scale. */
.mg-hero{min-height:500px;}
.mg-hero-grid{min-height:500px;gap:36px;padding-block:54px;}
.mg-hero h1{font-size:var(--mg-hero-title);line-height:1.04;letter-spacing:-.04em;max-width:760px;margin-bottom:16px;}
.mg-hero p{font-size:15px;max-width:610px;margin-bottom:20px;}
.mg-market,.mg-hero-card,.mg-module-hero-panel,.mg-mineral-market{padding:18px;border-radius:10px;}

/* Homepage first viewport: header + compact hero + search + KPI visible at 100%. */
.mg-home-hero{min-height:318px;}
.mg-home-hero-inner{width:min(calc(100% - var(--mg-compact-gutter)),1320px);min-height:318px;grid-template-columns:minmax(0,1fr) 280px;gap:32px;}
.mg-home-hero-copy{padding:16px 0;}
.mg-home-hero h1{font-size:var(--mg-hero-title);line-height:1.02;letter-spacing:-.045em;max-width:780px;margin-bottom:12px;}
.mg-home-hero p{font-size:14px;max-width:640px;margin-bottom:14px;}
.mg-home-search{max-width:680px;height:44px;border-radius:7px;}
.mg-home-search input{font-size:13px;padding:0 8px;}
.mg-home-search button{font-size:13px;padding:0 18px;}
.mg-home-search .mg-icon-search{width:26px;height:26px;margin-inline:6px;}
.mg-home-search .mg-filter-button{width:38px;}
.mg-popular{margin-top:9px;gap:6px;font-size:10px;}
.mg-popular a{padding:4px 8px;}
.mg-home-market{padding:16px;}
.mg-home-market h2{font-size:17px;margin:8px 0;}
.mg-home-market strong{font-size:18px;}
.mg-market-line{height:62px;margin-top:12px;}

/* KPI/stat strips. */
.mg-home-kpi{padding:12px 12px;min-height:74px;}
.mg-home-kpi .mg-icon-img{width:26px;height:26px;}
.mg-home-kpi small,.mg-stat small{font-size:10px;}
.mg-home-kpi strong,.mg-stat strong{font-size:17px;}
.mg-home-kpi em,.mg-stat em{font-size:10px;}
.mg-metric-grid .mg-stat{padding:16px 14px;}

/* Section spacing and card density. */
.mg-section,.mg-home-section{padding-top:var(--mg-section-y);padding-bottom:0;}
.mg-section-head,.mg-home-section-title{margin-bottom:18px;}
.mg-section h2,.mg-home-section-title h2{font-size:var(--mg-section-title);line-height:1.12;margin:0;}
.mg-section p,.mg-card p,.mg-dashboard-card p{font-size:14px;}
.mg-card,.mg-dashboard-card,.mg-result-summary,.mg-data-panel,.mg-sidebar-block{padding:var(--mg-card-pad);border-radius:10px;}
.mg-card-grid,.mg-card-grid-3,.mg-card-grid-4,.mg-dashboard-grid{gap:14px;}
.mg-card-image{min-height:150px;}
.mg-card h3,.mg-dashboard-card h3{font-size:17px;line-height:1.2;}
.mg-card-body{padding:16px;}
.mg-compact-row,.mg-compact-project{padding:10px 0;gap:8px;}

/* Map/GIS modules: keep useful, reduce surrounding chrome. */
.mg-home-map-layout{grid-template-columns:minmax(0,1fr) 280px;gap:14px;}
.mg-home-map{min-height:430px;}
.mg-map-art{min-height:400px;}
.mg-home-map-sidebar{gap:14px;}
.mg-map-toolbar{font-size:10px;gap:6px;}
.mg-home-map-controls button{width:30px;height:30px;font-size:13px;}
.mg-home-map-legend{font-size:10px;gap:8px;}
.mg-data-map{grid-template-columns:minmax(0,1fr) 280px;gap:16px;}

/* Mineral rail and detail pages. */
.mg-mineral-price{min-height:118px;grid-template-columns:88px 1fr 16px;gap:10px;padding:12px;}
.mg-mineral-price .mg-mineral-photo{width:88px;height:82px;}
.mg-mineral-image{width:98px;height:80px;}
.mg-mineral-price small{font-size:11px;}
.mg-mineral-price strong{font-size:17px;}
.mg-mineral-price em{font-size:10px;}
.mg-mineral-hero{min-height:330px;}
.mg-mineral-hero-grid{min-height:330px!important;grid-template-columns:minmax(0,1fr) minmax(220px,330px) 270px!important;gap:26px!important;}
.mg-mineral-hero h1{font-size:clamp(42px,5.2vw,76px);line-height:.92;letter-spacing:-.045em;}
.mg-mineral-hero h2{font-size:20px;margin:14px 0 6px;}
.mg-mineral-hero p{font-size:14px;max-width:520px;}
.mg-mineral-actions{margin-top:16px;gap:8px;}
.mg-mineral-hero-visual{min-height:260px;}
.mg-mineral-hero-img{height:245px;width:min(330px,100%);}
.mg-mineral-market{padding:16px;}
.mg-mineral-chart{height:56px;margin:10px 0;}
.mg-mineral-kpis article{padding:12px 10px;grid-template-columns:30px 1fr;}
.mg-mineral-kpis article img{width:24px;height:24px;}
.mg-mineral-kpis small{font-size:10px;}
.mg-mineral-kpis strong{font-size:15px;}
.mg-mineral-map{min-height:300px;}
.mg-mineral-summary{padding:16px;}
.mg-mineral-trend{gap:16px;padding:18px;grid-template-columns:1fr 250px;}
.mg-trend-bars{height:110px;}
.mg-related-minerals{gap:8px;}
.mg-related-minerals a{min-height:140px!important;padding:10px;}
.mg-related-minerals a img{height:78px;}

/* Module pages: Exploration/Services/News/Map/Tenders/Marketplace/Login/Register. */
.mg-module-hero{padding:58px 0 44px;}
.mg-module-hero-grid{grid-template-columns:minmax(0,1fr) 300px;gap:34px;}
.mg-module-hero h1{font-size:var(--mg-page-title);line-height:1.04;letter-spacing:-.045em;max-width:720px;margin-bottom:13px;}
.mg-module-hero p{font-size:15px;max-width:610px;margin-bottom:18px;}
.mg-module-search{max-width:640px;border-radius:8px;padding:4px;}
.mg-module-search input{padding:10px 12px;font-size:13px;}
.mg-module-search button{min-height:38px;padding:0 16px;font-size:13px;}
.mg-module-hero-panel{padding:20px;}
.mg-ref-hero-icon{width:82px;height:82px;margin-bottom:10px;}
.mg-hero-panel-list{gap:8px;margin-top:14px;font-size:12px;}
.mg-filter-grid{padding:15px;gap:10px;}
.mg-filter-grid select,.mg-result-summary select{min-height:38px;font-size:13px;}
.mg-results-layout{gap:16px;}

/* Desktop breakpoint tuning. */
@media (min-width:1281px){
  .mg-container{width:min(calc(100% - 56px),1320px);}
}
@media (max-width:1366px) and (min-width:1001px){
  :root{--mg-compact-container:1260px;--mg-compact-gutter:36px;}
  .mg-header-inner{gap:16px;}
  .mg-nav-list{gap:14px;}
  .mg-nav-list a{font-size:12.5px;}
  .mg-header-actions .mg-button{padding-inline:12px;}
  .mg-home-hero-inner{grid-template-columns:minmax(0,1fr) 260px;gap:24px;}
  .mg-home-hero h1{font-size:clamp(34px,3vw,47px);}
  .mg-module-hero h1{font-size:clamp(32px,2.8vw,44px);}
}
@media (max-width:1100px){
  :root{--mg-compact-gutter:32px;--mg-section-y:46px;}
  .mg-header-inner{min-height:62px;gap:14px;}
  .mg-nav-list{gap:12px;}
  .mg-nav-list a{font-size:12px;padding:19px 0 16px;}
  .mg-home-hero-inner{grid-template-columns:1fr 250px;gap:20px;}
  .mg-home-kpi-grid{grid-template-columns:repeat(3,1fr);}
  .mg-home-map-layout,.mg-data-map{grid-template-columns:1fr;}
  .mg-home-map{min-height:380px;}
  .mg-mineral-hero-grid{grid-template-columns:1fr 260px!important;}
  .mg-mineral-hero-visual{order:3;grid-column:1/-1;min-height:210px;}
}
@media (max-width:780px){
  :root{--mg-compact-gutter:32px;--mg-section-y:42px;--mg-hero-title:clamp(34px,8vw,42px);--mg-page-title:clamp(32px,7vw,40px);}
  body{font-size:15px;}
  .mg-header-inner{min-height:64px;}
  .mg-navigation{top:64px;}
  .mg-brand{font-size:19px;}
  .mg-brand .mg-logo-mark{width:48px!important;height:32px!important;flex-basis:48px;}
  .mg-hero,.mg-hero-grid{min-height:auto;}
  .mg-hero-grid{padding-block:52px;}
  .mg-home-hero{min-height:auto;}
  .mg-home-hero-inner{grid-template-columns:1fr;min-height:auto;padding-block:48px;}
  .mg-home-hero h1{font-size:var(--mg-hero-title);}
  .mg-home-market{max-width:380px;}
  .mg-home-kpi{min-height:0;}
  .mg-home-map{min-height:330px;}
  .mg-mineral-rail{grid-template-columns:repeat(2,1fr);}
  .mg-mineral-hero{min-height:auto;}
  .mg-mineral-hero-grid{grid-template-columns:1fr!important;min-height:auto!important;padding-block:44px;}
  .mg-mineral-hero-visual{order:0;min-height:190px;}
  .mg-mineral-hero-img{height:190px;}
  .mg-mineral-hero h1{font-size:clamp(40px,12vw,58px);}
  .mg-mineral-kpis>.mg-container{grid-template-columns:repeat(2,1fr);}
  .mg-module-hero{padding:48px 0 38px;}
  .mg-module-hero-grid{grid-template-columns:1fr;gap:22px;}
  .mg-module-hero h1{font-size:var(--mg-page-title);}
}
@media (max-width:480px){
  :root{--mg-compact-gutter:28px;--mg-section-y:36px;}
  .mg-brand .mg-logo-mark{width:44px!important;height:29px!important;flex-basis:44px;}
  .mg-home-hero-inner{padding-block:40px;}
  .mg-home-hero h1{font-size:34px;line-height:1.04;}
  .mg-home-search{height:auto;}
  .mg-mineral-rail{grid-template-columns:1fr;}
  .mg-mineral-price{min-height:112px;}
  .mg-home-map{min-height:290px;}
  .mg-module-hero h1{font-size:33px;}
  .mg-mineral-hero h1{font-size:44px;}
}
