/* Minegolia global compact scale unification — internal pages only; homepage remains master reference. No zoom/transform/browser scaling hacks. */
:root{
  --mg-master-container:1240px;
  --mg-master-container-wide:1260px;
  --mg-master-container-mid:1180px;
  --mg-master-gutter:42px;
  --mg-master-gap:18px;
  --mg-master-section:38px;
  --mg-master-card-pad:14px;
  --mg-master-control:38px;
  --mg-master-hero:clamp(26px,2vw,36px);
  --mg-master-hero-internal:clamp(25px,1.9vw,34px);
  --mg-master-mineral-title:clamp(36px,4.4vw,58px);
  --mg-master-h2:clamp(19px,1.45vw,25px);
}
body:not(.home) .mg-container{width:min(calc(100% - var(--mg-master-gutter)),var(--mg-master-container));margin-inline:auto;}
body:not(.home){font-size:15px;line-height:1.48;}
body:not(.home) .mg-eyebrow{font-size:9px;letter-spacing:.12em;}

/* Shared internal/module heroes aligned to homepage content frame. */
body:not(.home) .mg-module-hero{padding:42px 0 32px;}
body:not(.home) .mg-module-hero-grid{grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:var(--mg-master-gap);align-items:center;}
body:not(.home) .mg-module-hero h1{font-size:var(--mg-master-hero-internal);line-height:1.04;letter-spacing:-.036em;max-width:680px;margin:0 0 9px;text-wrap:balance;}
body:not(.home) .mg-module-hero p{font-size:12.75px;line-height:1.45;max-width:560px;margin:0 0 12px;color:#bcc8c6;}
body:not(.home) .mg-module-hero-panel{width:100%;max-width:300px;justify-self:end;padding:14px;border-radius:9px;}
body:not(.home) .mg-module-hero-panel h2{font-size:15px;line-height:1.2;margin:0 0 6px;}
body:not(.home) .mg-module-hero-panel p{font-size:11.5px;line-height:1.35;margin:0;}
body:not(.home) .mg-ref-hero-icon{width:54px;height:54px;margin-bottom:8px;}
body:not(.home) .mg-hero-panel-list{gap:6px;margin-top:10px;font-size:11px;}
body:not(.home) .mg-filter-chips{gap:5px 6px;margin-top:8px;}
body:not(.home) .mg-filter-chips span{font-size:9.5px;padding:3px 7px;border-radius:999px;}

/* Search, filters, buttons and controls match homepage compact control height. */
body:not(.home) .mg-module-search{height:38px;max-width:610px;padding:3px 4px;border-radius:6px;}
body:not(.home) .mg-module-search input{font-size:12px;padding:0 8px;}
body:not(.home) .mg-module-search button{min-height:32px;font-size:12px;padding:0 14px;border-radius:5px;}
body:not(.home) .mg-filter-grid{padding:12px;gap:8px;border-radius:9px;}
body:not(.home) .mg-filter-grid label,body:not(.home) .mg-result-summary label{font-size:11.5px;}
body:not(.home) .mg-filter-grid select,body:not(.home) .mg-result-summary select,body:not(.home) .mg-filter-grid input{min-height:34px;font-size:11.5px;padding:0 9px;border-radius:6px;}
body:not(.home) .mg-button,body:not(.home) button{min-height:36px;font-size:12px;padding:7px 12px;border-radius:6px;}
body:not(.home) .mg-view-toggle button{min-height:32px;font-size:11px;padding:6px 10px;}

/* Internal section rhythm and cards. */
body:not(.home) .mg-section{padding-top:var(--mg-master-section);scroll-margin-top:76px;}
body:not(.home) .mg-section-head{margin-bottom:12px;gap:14px;}
body:not(.home) .mg-section h2,body:not(.home) .mg-section-head h2{font-size:var(--mg-master-h2);line-height:1.12;letter-spacing:-.02em;margin:0;}
body:not(.home) .mg-section p{font-size:13px;line-height:1.45;}
body:not(.home) .mg-card,body:not(.home) .mg-service-card,body:not(.home) .mg-news-card,body:not(.home) .mg-report-card,body:not(.home) .mg-result-card,body:not(.home) .mg-sidebar-block,body:not(.home) .mg-data-panel,body:not(.home) .mg-result-summary{padding:var(--mg-master-card-pad);border-radius:9px;}
body:not(.home) .mg-card-grid,body:not(.home) .mg-card-grid-3,body:not(.home) .mg-card-grid-4,body:not(.home) .mg-service-category-grid,body:not(.home) .mg-news-card-grid,body:not(.home) .mg-mineral-grid,body:not(.home) .mg-results-layout,body:not(.home) .mg-report-grid{gap:10px;}
body:not(.home) .mg-card h3,body:not(.home) .mg-service-card h3,body:not(.home) .mg-news-card h3,body:not(.home) .mg-report-card h3,body:not(.home) .mg-result-card h3{font-size:14px;line-height:1.2;margin-top:0;}
body:not(.home) .mg-card small,body:not(.home) .mg-news-card small,body:not(.home) .mg-result-card small,body:not(.home) .mg-meta,body:not(.home) .mg-data-note{font-size:10px;}
body:not(.home) .mg-card-image,body:not(.home) .mg-editorial-image{min-height:135px;}
body:not(.home) .mg-editorial-copy{padding:16px;}
body:not(.home) .mg-editorial-copy h2{font-size:20px;line-height:1.15;}
body:not(.home) .mg-compact-row{padding:7px 0;gap:7px;}
body:not(.home) .mg-compact-row strong{font-size:11.5px;line-height:1.2;}
body:not(.home) .mg-compact-row small{font-size:9.5px;}
body:not(.home) .mg-icon-img{width:18px;height:18px;}
body:not(.home) .mg-icon-sm{width:15px;height:15px;}
body:not(.home) .mg-icon-md{width:21px;height:21px;}
body:not(.home) .mg-icon-lg{width:42px;height:42px;}

/* Exploration/services/news specific density without changing content. */
body:not(.home) .mg-mineral-grid a,body:not(.home) .mg-service-category-grid a{min-height:118px;padding:12px;}
body:not(.home) .mg-mineral-grid img,body:not(.home) .mg-service-category-grid img{width:42px;height:42px;object-fit:contain;}
body:not(.home) .mg-news-feature{gap:14px;}
body:not(.home) .mg-newsletter{gap:6px;}
body:not(.home) .mg-newsletter input{min-height:36px;font-size:12px;padding:0 10px;}

/* Map-focused pages: compact chrome, preserve useful map area. */
body:not(.home) .mg-data-map{grid-template-columns:minmax(0,1fr) 250px;gap:12px;}
body:not(.home) .mg-map-art{min-height:360px;border-radius:10px;}
body:not(.home) .mg-map-toolbar{font-size:9px;gap:5px;}
body:not(.home) .mg-map-toolbar span{padding:4px 6px;border-radius:5px;}
body:not(.home) .mg-map-controls button,body:not(.home) .mg-home-map-controls button{width:27px;height:27px;font-size:12px;}
body:not(.home) .mg-map-legend,body:not(.home) .mg-home-map-legend{font-size:9px;gap:6px;}

/* Login/register pages: keep design, normalize scale. */
body:not(.home) .mg-auth-card,body:not(.home) .mg-login-card,body:not(.home) .mg-register-card{max-width:420px;padding:18px;border-radius:10px;}
body:not(.home) .mg-auth-card h2,body:not(.home) .mg-login-card h2,body:not(.home) .mg-register-card h2{font-size:20px;line-height:1.15;margin-bottom:10px;}
body:not(.home) input[type="email"],body:not(.home) input[type="password"],body:not(.home) input[type="text"],body:not(.home) input[type="search"],body:not(.home) select{min-height:34px;font-size:12px;}

/* Mineral detail pages: distinctive but no longer oversized against homepage. */
body:not(.home) .mg-mineral-hero{min-height:280px;}
body:not(.home) .mg-mineral-hero-grid{min-height:280px!important;grid-template-columns:minmax(0,1fr) minmax(190px,260px) minmax(230px,270px)!important;gap:18px!important;align-items:center;}
body:not(.home) .mg-mineral-hero h1{font-size:var(--mg-master-mineral-title);line-height:.96;letter-spacing:-.036em;margin:0 0 5px;}
body:not(.home) .mg-mineral-hero h2{font-size:16px;margin:8px 0 5px;}
body:not(.home) .mg-mineral-hero p{font-size:12.5px;line-height:1.42;max-width:500px;margin:0;}
body:not(.home) .mg-mineral-actions{margin-top:10px;gap:6px;}
body:not(.home) .mg-mineral-hero-visual{min-height:200px;}
body:not(.home) .mg-mineral-hero-img{height:190px;width:min(260px,100%);object-fit:contain;}
body:not(.home) .mg-mineral-market{max-width:270px;justify-self:end;padding:13px;border-radius:9px;}
body:not(.home) .mg-mineral-market h3{font-size:10px;margin:0 0 5px;}
body:not(.home) .mg-mineral-market strong{font-size:15px;line-height:1.15;}
body:not(.home) .mg-mineral-market em,body:not(.home) .mg-mineral-market small{font-size:9.5px;}
body:not(.home) .mg-mineral-chart{height:45px;margin:8px 0 5px;gap:4px;}
body:not(.home) .mg-mineral-kpis article{padding:9px 10px;grid-template-columns:24px 1fr;gap:7px;}
body:not(.home) .mg-mineral-kpis article img{width:20px;height:20px;}
body:not(.home) .mg-mineral-kpis small{font-size:9px;}
body:not(.home) .mg-mineral-kpis strong{font-size:13px;}
body:not(.home) .mg-mineral-map{min-height:260px;border-radius:10px;}
body:not(.home) .mg-mineral-summary{padding:14px;border-radius:9px;}
body:not(.home) .mg-mineral-trend{gap:12px;padding:14px;grid-template-columns:1fr 220px;border-radius:9px;}
body:not(.home) .mg-trend-bars{height:90px;}
body:not(.home) .mg-related-minerals{gap:8px;}
body:not(.home) .mg-related-minerals a{min-height:118px!important;padding:9px;border-radius:9px;}
body:not(.home) .mg-related-minerals a img{height:62px;object-fit:contain;}

/* Shared footer normalized to homepage compact footer scale on internal pages. */
body:not(.home) .mg-footer-grid{padding:28px 0;gap:22px;}
body:not(.home) .mg-footer-grid h3{font-size:13px;margin-bottom:9px;}
body:not(.home) .mg-footer-grid a,body:not(.home) .mg-footer-grid p{font-size:12px;line-height:1.45;}
body:not(.home) .mg-footer-bottom{padding:14px 0;font-size:11px;}
body:not(.home) .mg-partners{padding:14px 0;gap:14px;font-size:11px;}

/* Verified override-fix: real WP template class for Exploration. These selectors intentionally outrank legacy .mg-module-hero rules. */
body.page-template-page-exploration .mg-container{width:min(calc(100% - 42px),1240px)!important;margin-inline:auto;}
body.page-template-page-exploration .mg-module-hero{padding:34px 0 26px!important;min-height:0!important;}
body.page-template-page-exploration .mg-module-hero-grid{min-height:0!important;grid-template-columns:minmax(0,1fr) minmax(240px,288px)!important;gap:16px!important;align-items:center!important;}
body.page-template-page-exploration .mg-module-hero h1{font-size:clamp(26px,2vw,36px)!important;line-height:1.03!important;letter-spacing:-.034em!important;max-width:670px!important;margin:0 0 8px!important;text-wrap:balance;}
body.page-template-page-exploration .mg-module-hero p{font-size:12.5px!important;line-height:1.42!important;max-width:545px!important;margin:0 0 9px!important;}
body.page-template-page-exploration .mg-module-search{height:38px!important;max-width:600px!important;padding:3px 4px!important;border-radius:6px!important;}
body.page-template-page-exploration .mg-module-search input{font-size:12px!important;padding:0 8px!important;}
body.page-template-page-exploration .mg-module-search button{min-height:32px!important;font-size:12px!important;padding:0 13px!important;border-radius:5px!important;}
body.page-template-page-exploration .mg-filter-chips{gap:5px 6px!important;margin-top:7px!important;}
body.page-template-page-exploration .mg-filter-chips span{font-size:9.5px!important;padding:3px 7px!important;}
body.page-template-page-exploration .mg-module-hero-panel{max-width:288px!important;justify-self:end!important;padding:12px!important;border-radius:9px!important;}
body.page-template-page-exploration .mg-module-hero-panel h2{font-size:14px!important;line-height:1.18!important;margin:0 0 5px!important;}
body.page-template-page-exploration .mg-module-hero-panel p{font-size:11px!important;line-height:1.35!important;}
body.page-template-page-exploration .mg-hero-panel-list{gap:5px!important;margin-top:8px!important;font-size:10.5px!important;}
body.page-template-page-exploration .mg-section{padding-top:34px!important;}
body.page-template-page-exploration .mg-section-head{margin-bottom:11px!important;}
body.page-template-page-exploration .mg-filter-grid{padding:11px!important;gap:8px!important;}
body.page-template-page-exploration .mg-filter-grid select{min-height:34px!important;font-size:11.5px!important;}
body.page-template-page-exploration .mg-mineral-grid{gap:9px!important;}
body.page-template-page-exploration .mg-mineral-grid a{min-height:106px!important;padding:10px!important;}

/* Verified override-fix: real WP template classes for remaining internal pages. */
body.page-template-page-services .mg-container,
body.page-template-page-news .mg-container,
body.page-template-page-reference-module .mg-container,
body.page-template-page-mineral-detail .mg-container{width:min(calc(100% - 42px),1240px)!important;margin-inline:auto;}

body.page-template-page-services .mg-module-hero,
body.page-template-page-news .mg-module-hero,
body.page-template-page-reference-module .mg-module-hero{padding:34px 0 26px!important;min-height:0!important;}
body.page-template-page-services .mg-module-hero-grid,
body.page-template-page-news .mg-module-hero-grid,
body.page-template-page-reference-module .mg-module-hero-grid{min-height:0!important;grid-template-columns:minmax(0,1fr) minmax(240px,288px)!important;gap:16px!important;align-items:center!important;}
body.page-template-page-services .mg-module-hero h1,
body.page-template-page-news .mg-module-hero h1,
body.page-template-page-reference-module .mg-module-hero h1{font-size:clamp(26px,2vw,36px)!important;line-height:1.03!important;letter-spacing:-.034em!important;max-width:670px!important;margin:0 0 8px!important;text-wrap:balance;}
body.page-template-page-services .mg-module-hero p,
body.page-template-page-news .mg-module-hero p,
body.page-template-page-reference-module .mg-module-hero p{font-size:12.5px!important;line-height:1.42!important;max-width:545px!important;margin:0 0 9px!important;}
body.page-template-page-services .mg-module-search,
body.page-template-page-news .mg-module-search,
body.page-template-page-reference-module .mg-module-search{height:38px!important;max-width:600px!important;padding:3px 4px!important;border-radius:6px!important;}
body.page-template-page-services .mg-module-search input,
body.page-template-page-news .mg-module-search input,
body.page-template-page-reference-module .mg-module-search input{font-size:12px!important;padding:0 8px!important;}
body.page-template-page-services .mg-module-search button,
body.page-template-page-news .mg-module-search button,
body.page-template-page-reference-module .mg-module-search button{min-height:32px!important;font-size:12px!important;padding:0 13px!important;border-radius:5px!important;}
body.page-template-page-services .mg-module-hero-panel,
body.page-template-page-news .mg-module-hero-panel,
body.page-template-page-reference-module .mg-module-hero-panel{max-width:288px!important;justify-self:end!important;padding:12px!important;border-radius:9px!important;}
body.page-template-page-services .mg-module-hero-panel h2,
body.page-template-page-news .mg-module-hero-panel h2,
body.page-template-page-reference-module .mg-module-hero-panel h2{font-size:14px!important;line-height:1.18!important;margin:0 0 5px!important;}
body.page-template-page-services .mg-module-hero-panel p,
body.page-template-page-news .mg-module-hero-panel p,
body.page-template-page-reference-module .mg-module-hero-panel p{font-size:11px!important;line-height:1.35!important;}
body.page-template-page-services .mg-ref-hero-icon,
body.page-template-page-news .mg-ref-hero-icon,
body.page-template-page-reference-module .mg-ref-hero-icon{width:44px!important;height:44px!important;margin-bottom:7px!important;}
body.page-template-page-services .mg-filter-chips,
body.page-template-page-news .mg-filter-chips,
body.page-template-page-reference-module .mg-filter-chips{gap:5px 6px!important;margin-top:7px!important;}
body.page-template-page-services .mg-filter-chips span,
body.page-template-page-news .mg-filter-chips span,
body.page-template-page-reference-module .mg-filter-chips span{font-size:9.5px!important;padding:3px 7px!important;}

body.page-template-page-services .mg-section,
body.page-template-page-news .mg-section,
body.page-template-page-reference-module .mg-section,
body.page-template-page-mineral-detail .mg-section{padding-top:34px!important;}
body.page-template-page-services .mg-section-head,
body.page-template-page-news .mg-section-head,
body.page-template-page-reference-module .mg-section-head,
body.page-template-page-mineral-detail .mg-section-head{margin-bottom:11px!important;}
body.page-template-page-services .mg-section h2,
body.page-template-page-news .mg-section h2,
body.page-template-page-reference-module .mg-section h2,
body.page-template-page-mineral-detail .mg-section h2{font-size:clamp(19px,1.45vw,25px)!important;line-height:1.12!important;}
body.page-template-page-services .mg-filter-grid,
body.page-template-page-news .mg-filter-grid,
body.page-template-page-reference-module .mg-filter-grid{padding:11px!important;gap:8px!important;}
body.page-template-page-services .mg-filter-grid select,
body.page-template-page-services .mg-filter-grid input,
body.page-template-page-news .mg-filter-grid select,
body.page-template-page-news .mg-filter-grid input,
body.page-template-page-reference-module .mg-filter-grid select,
body.page-template-page-reference-module .mg-filter-grid input{min-height:34px!important;font-size:11.5px!important;}
body.page-template-page-services .mg-card,
body.page-template-page-services .mg-service-card,
body.page-template-page-news .mg-card,
body.page-template-page-news .mg-news-card,
body.page-template-page-news .mg-report-card,
body.page-template-page-reference-module .mg-card,
body.page-template-page-reference-module .mg-result-card{padding:12px!important;border-radius:9px!important;}
body.page-template-page-services .mg-card-grid,
body.page-template-page-services .mg-service-category-grid,
body.page-template-page-news .mg-news-card-grid,
body.page-template-page-news .mg-report-grid,
body.page-template-page-reference-module .mg-card-grid{gap:9px!important;}
body.page-template-page-services .mg-service-category-grid a{min-height:106px!important;padding:10px!important;}
body.page-template-page-news .mg-editorial-copy{padding:14px!important;}
body.page-template-page-news .mg-editorial-copy h2{font-size:19px!important;line-height:1.15!important;}
body.page-template-page-news .mg-editorial-image{min-height:120px!important;}
body.page-template-page-reference-module .mg-data-map{grid-template-columns:minmax(0,1fr) 230px!important;gap:10px!important;}
body.page-template-page-reference-module .mg-map-art{min-height:345px!important;}
body.page-id-15 .mg-module-hero-panel,
body.page-id-16 .mg-module-hero-panel{max-width:390px!important;padding:14px!important;}
body.page-id-15 input,
body.page-id-16 input,
body.page-id-15 select,
body.page-id-16 select{min-height:34px!important;font-size:12px!important;}

body.page-template-page-mineral-detail .mg-mineral-hero{min-height:240px!important;padding:0!important;}
body.page-template-page-mineral-detail .mg-mineral-hero-grid{min-height:240px!important;grid-template-columns:minmax(0,1fr) minmax(160px,220px) minmax(220px,260px)!important;gap:16px!important;align-items:center!important;}
body.page-template-page-mineral-detail .mg-mineral-hero h1{font-size:clamp(32px,3.8vw,50px)!important;line-height:.98!important;letter-spacing:-.032em!important;margin:0 0 4px!important;}
body.page-template-page-mineral-detail .mg-mineral-hero h2{font-size:15px!important;margin:6px 0 4px!important;}
body.page-template-page-mineral-detail .mg-mineral-hero p{font-size:12.5px!important;line-height:1.4!important;max-width:470px!important;margin:0!important;}
body.page-template-page-mineral-detail .mg-mineral-actions{margin-top:8px!important;gap:6px!important;}
body.page-template-page-mineral-detail .mg-mineral-hero-visual{min-height:170px!important;}
body.page-template-page-mineral-detail .mg-mineral-hero-img{height:165px!important;width:min(220px,100%)!important;object-fit:contain!important;}
body.page-template-page-mineral-detail .mg-mineral-market{max-width:260px!important;justify-self:end!important;padding:12px!important;border-radius:9px!important;}
body.page-template-page-mineral-detail .mg-mineral-chart{height:42px!important;margin:7px 0 5px!important;}
body.page-template-page-mineral-detail .mg-mineral-kpis article{padding:8px 9px!important;grid-template-columns:22px 1fr!important;gap:6px!important;}
body.page-template-page-mineral-detail .mg-mineral-kpis article img{width:18px!important;height:18px!important;}
body.page-template-page-mineral-detail .mg-mineral-kpis strong{font-size:12.5px!important;}
body.page-template-page-mineral-detail .mg-mineral-map{min-height:240px!important;}
body.page-template-page-mineral-detail .mg-related-minerals a{min-height:108px!important;padding:8px!important;}
body.page-template-page-mineral-detail .mg-related-minerals a img{height:56px!important;}

@media (min-width:1600px){:root{--mg-master-container:1260px;--mg-master-gutter:48px;}}
@media (max-width:1366px) and (min-width:1001px){
  :root{--mg-master-container:1180px;--mg-master-gutter:32px;--mg-master-gap:16px;--mg-master-hero-internal:clamp(24px,2vw,32px);--mg-master-mineral-title:clamp(34px,4.2vw,52px);}
  body:not(.home) .mg-module-hero-grid{grid-template-columns:minmax(0,1fr) 270px;}
  body:not(.home) .mg-module-hero-panel{max-width:270px;}
  body:not(.home) .mg-data-map{grid-template-columns:minmax(0,1fr) 230px;}
  body:not(.home) .mg-mineral-hero-grid{grid-template-columns:minmax(0,1fr) minmax(170px,230px) 250px!important;}
}
@media (max-width:1100px){
  :root{--mg-master-container:100%;--mg-master-gutter:32px;--mg-master-section:34px;}
  body:not(.home) .mg-module-hero{padding:34px 0 28px;}
  body:not(.home) .mg-module-hero-grid{grid-template-columns:1fr 245px;gap:16px;}
  body:not(.home) .mg-module-hero h1{font-size:clamp(26px,3.2vw,34px);}
  body:not(.home) .mg-data-map{grid-template-columns:1fr;}
  body:not(.home) .mg-map-art{min-height:330px;}
  body:not(.home) .mg-mineral-grid{grid-template-columns:repeat(4,1fr);}
  body:not(.home) .mg-mineral-hero-grid{grid-template-columns:1fr 230px!important;min-height:auto!important;padding-block:28px;}
  body:not(.home) .mg-mineral-hero-visual{order:3;grid-column:1/-1;min-height:170px;}
}
@media (max-width:780px){
  :root{--mg-master-gutter:30px;--mg-master-section:34px;}
  body:not(.home) .mg-module-hero{padding:38px 0 30px;}
  body:not(.home) .mg-module-hero-grid{grid-template-columns:1fr;gap:18px;}
  body:not(.home) .mg-module-hero h1{font-size:clamp(31px,8vw,40px);max-width:100%;}
  body:not(.home) .mg-module-hero p{font-size:14px;}
  body:not(.home) .mg-module-search{height:44px;max-width:100%;}
  body:not(.home) .mg-module-hero-panel{justify-self:start;max-width:380px;}
  body:not(.home) .mg-filter-grid{grid-template-columns:1fr;}
  body:not(.home) .mg-mineral-grid,body:not(.home) .mg-service-category-grid,body:not(.home) .mg-news-card-grid{grid-template-columns:repeat(2,1fr);}
  body:not(.home) .mg-mineral-hero{min-height:auto;}
  body:not(.home) .mg-mineral-hero-grid{grid-template-columns:1fr!important;padding-block:34px;}
  body:not(.home) .mg-mineral-hero h1{font-size:clamp(40px,12vw,58px);}
  body:not(.home) .mg-mineral-hero-visual{order:0;min-height:180px;}
  body:not(.home) .mg-mineral-hero-img{height:180px;}
  body:not(.home) .mg-mineral-kpis>.mg-container{grid-template-columns:repeat(2,1fr);}
  body:not(.home) .mg-mineral-trend{grid-template-columns:1fr;}
}
@media (max-width:480px){
  :root{--mg-master-gutter:28px;--mg-master-section:30px;}
  body:not(.home) .mg-module-hero h1{font-size:31px;line-height:1.04;}
  body:not(.home) .mg-module-search{height:auto;display:block;}
  body:not(.home) .mg-module-search input{height:38px;width:100%;}
  body:not(.home) .mg-module-search button{height:38px;width:100%;margin-top:4px;}
  body:not(.home) .mg-mineral-grid,body:not(.home) .mg-service-category-grid,body:not(.home) .mg-news-card-grid{grid-template-columns:1fr;}
  body:not(.home) .mg-map-art{min-height:285px;}
  body:not(.home) .mg-mineral-hero h1{font-size:42px;}
}

/* FORCE FIX STAGE 1 — Exploration content scale. Final cascade block; homepage excluded. */
html body.page-template-page-exploration:not(.home) .mg-module-hero{padding:22px 0 18px!important;min-height:0!important;}
html body.page-template-page-exploration:not(.home) .mg-module-hero-grid{width:min(calc(100% - 42px),1180px)!important;min-height:0!important;grid-template-columns:minmax(0,1fr) 240px!important;gap:12px!important;align-items:center!important;}
html body.page-template-page-exploration:not(.home) .mg-module-hero h1{font-size:clamp(27px,1.75vw,32px)!important;line-height:1.02!important;letter-spacing:-.035em!important;max-width:610px!important;margin:0 0 6px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-hero p{font-size:12px!important;line-height:1.38!important;max-width:500px!important;margin:0 0 7px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-search{height:36px!important;max-width:560px!important;padding:2px 3px!important;border-radius:6px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-search input{font-size:11.5px!important;height:30px!important;padding:0 7px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-search button{min-height:30px!important;height:30px!important;font-size:11.5px!important;padding:0 11px!important;border-radius:5px!important;}
html body.page-template-page-exploration:not(.home) .mg-filter-chips{gap:4px 5px!important;margin-top:5px!important;}
html body.page-template-page-exploration:not(.home) .mg-filter-chips span{font-size:9px!important;line-height:1.1!important;padding:2px 6px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-hero-panel{max-width:240px!important;padding:10px!important;border-radius:8px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-hero-panel h2{font-size:13px!important;line-height:1.15!important;margin:0 0 4px!important;}
html body.page-template-page-exploration:not(.home) .mg-module-hero-panel p{font-size:10.5px!important;line-height:1.32!important;margin:0!important;}
html body.page-template-page-exploration:not(.home) .mg-hero-panel-list{gap:4px!important;margin-top:6px!important;font-size:10px!important;}
html body.page-template-page-exploration:not(.home) .mg-section{padding-top:26px!important;}
html body.page-template-page-exploration:not(.home) .mg-section-head{margin-bottom:8px!important;gap:10px!important;}
html body.page-template-page-exploration:not(.home) .mg-section-head h2{font-size:clamp(18px,1.25vw,23px)!important;line-height:1.1!important;}
html body.page-template-page-exploration:not(.home) .mg-filter-grid{padding:9px!important;gap:6px!important;border-radius:8px!important;}
html body.page-template-page-exploration:not(.home) .mg-filter-grid label{font-size:10.5px!important;gap:4px!important;}
html body.page-template-page-exploration:not(.home) .mg-filter-grid select,
html body.page-template-page-exploration:not(.home) .mg-filter-grid input{min-height:32px!important;height:32px!important;font-size:11px!important;padding:0 8px!important;}
html body.page-template-page-exploration:not(.home) .mg-filter-grid .mg-button,
html body.page-template-page-exploration:not(.home) .mg-button{min-height:32px!important;font-size:11.5px!important;padding:6px 10px!important;border-radius:6px!important;}
html body.page-template-page-exploration:not(.home) .mg-mineral-grid{gap:7px!important;}
html body.page-template-page-exploration:not(.home) .mg-mineral-grid a{min-height:88px!important;padding:8px!important;border-radius:8px!important;}
html body.page-template-page-exploration:not(.home) .mg-mineral-grid strong{font-size:12px!important;line-height:1.15!important;}
html body.page-template-page-exploration:not(.home) .mg-mineral-grid small{font-size:9.5px!important;}
html body.page-template-page-exploration:not(.home) .mg-card,
html body.page-template-page-exploration:not(.home) .mg-result-summary,
html body.page-template-page-exploration:not(.home) .mg-feature-panel{padding:10px!important;border-radius:8px!important;}
html body.page-template-page-exploration:not(.home) .mg-card-grid,
html body.page-template-page-exploration:not(.home) .mg-results-layout,
html body.page-template-page-exploration:not(.home) .mg-split-grid{gap:8px!important;}
html body.page-template-page-exploration:not(.home) .mg-card-image{min-height:108px!important;}
html body.page-template-page-exploration:not(.home) .mg-data-map{gap:9px!important;grid-template-columns:minmax(0,1fr) 220px!important;}
html body.page-template-page-exploration:not(.home) .mg-map-art{min-height:310px!important;}
html body.page-template-page-exploration:not(.home) .mg-data-panel{padding:10px!important;border-radius:8px!important;}
@media (max-width:780px){
  html body.page-template-page-exploration:not(.home) .mg-module-hero-grid{width:min(calc(100% - 30px),100%)!important;grid-template-columns:1fr!important;}
  html body.page-template-page-exploration:not(.home) .mg-module-hero h1{font-size:clamp(28px,7.2vw,34px)!important;}
  html body.page-template-page-exploration:not(.home) .mg-module-search{height:auto!important;display:block!important;}
  html body.page-template-page-exploration:not(.home) .mg-module-search input,
  html body.page-template-page-exploration:not(.home) .mg-module-search button{height:38px!important;width:100%!important;}
  html body.page-template-page-exploration:not(.home) .mg-module-hero-panel{max-width:100%!important;}
}

/* FORCE FIX STAGE 2 — Services content scale. Same proven final-cascade strategy; homepage excluded. */
html body.page-template-page-services:not(.home) .mg-module-hero{padding:22px 0 18px!important;min-height:0!important;}
html body.page-template-page-services:not(.home) .mg-module-hero-grid{width:min(calc(100% - 42px),1180px)!important;min-height:0!important;grid-template-columns:minmax(0,1fr) 240px!important;gap:12px!important;align-items:center!important;}
html body.page-template-page-services:not(.home) .mg-module-hero h1{font-size:clamp(27px,1.75vw,32px)!important;line-height:1.02!important;letter-spacing:-.035em!important;max-width:610px!important;margin:0 0 6px!important;}
html body.page-template-page-services:not(.home) .mg-module-hero p{font-size:12px!important;line-height:1.38!important;max-width:500px!important;margin:0 0 7px!important;}
html body.page-template-page-services:not(.home) .mg-module-search{height:36px!important;max-width:560px!important;padding:2px 3px!important;border-radius:6px!important;}
html body.page-template-page-services:not(.home) .mg-module-search input{font-size:11.5px!important;height:30px!important;padding:0 7px!important;}
html body.page-template-page-services:not(.home) .mg-module-search button{min-height:30px!important;height:30px!important;font-size:11.5px!important;padding:0 11px!important;border-radius:5px!important;}
html body.page-template-page-services:not(.home) .mg-filter-chips{gap:4px 5px!important;margin-top:5px!important;}
html body.page-template-page-services:not(.home) .mg-filter-chips span{font-size:9px!important;line-height:1.1!important;padding:2px 6px!important;}
html body.page-template-page-services:not(.home) .mg-module-hero-panel{max-width:240px!important;padding:10px!important;border-radius:8px!important;}
html body.page-template-page-services:not(.home) .mg-module-hero-panel h2{font-size:13px!important;line-height:1.15!important;margin:0 0 4px!important;}
html body.page-template-page-services:not(.home) .mg-module-hero-panel p{font-size:10.5px!important;line-height:1.32!important;margin:0!important;}
html body.page-template-page-services:not(.home) .mg-ref-hero-icon{width:36px!important;height:36px!important;margin-bottom:5px!important;}
html body.page-template-page-services:not(.home) .mg-section{padding-top:26px!important;}
html body.page-template-page-services:not(.home) .mg-section-head{margin-bottom:8px!important;gap:10px!important;}
html body.page-template-page-services:not(.home) .mg-section-head h2{font-size:clamp(18px,1.25vw,23px)!important;line-height:1.1!important;}
html body.page-template-page-services:not(.home) .mg-service-category-grid{gap:7px!important;}
html body.page-template-page-services:not(.home) .mg-service-category-grid a{min-height:88px!important;padding:8px!important;border-radius:8px!important;}
html body.page-template-page-services:not(.home) .mg-service-category-grid strong{font-size:12px!important;line-height:1.15!important;}
html body.page-template-page-services:not(.home) .mg-service-category-grid small{font-size:9.5px!important;}
html body.page-template-page-services:not(.home) .mg-filter-grid{padding:9px!important;gap:6px!important;border-radius:8px!important;}
html body.page-template-page-services:not(.home) .mg-filter-grid label{font-size:10.5px!important;gap:4px!important;}
html body.page-template-page-services:not(.home) .mg-filter-grid select,
html body.page-template-page-services:not(.home) .mg-filter-grid input{min-height:32px!important;height:32px!important;font-size:11px!important;padding:0 8px!important;}
html body.page-template-page-services:not(.home) .mg-filter-grid .mg-button,
html body.page-template-page-services:not(.home) .mg-button{min-height:32px!important;font-size:11.5px!important;padding:6px 10px!important;border-radius:6px!important;}
html body.page-template-page-services:not(.home) .mg-card,
html body.page-template-page-services:not(.home) .mg-service-card,
html body.page-template-page-services:not(.home) .mg-feature-panel{padding:10px!important;border-radius:8px!important;}
html body.page-template-page-services:not(.home) .mg-card-grid,
html body.page-template-page-services:not(.home) .mg-results-layout,
html body.page-template-page-services:not(.home) .mg-split-grid{gap:8px!important;}
html body.page-template-page-services:not(.home) .mg-card-image{min-height:108px!important;}
@media (max-width:780px){
  html body.page-template-page-services:not(.home) .mg-module-hero-grid{width:min(calc(100% - 30px),100%)!important;grid-template-columns:1fr!important;}
  html body.page-template-page-services:not(.home) .mg-module-hero h1{font-size:clamp(28px,7.2vw,34px)!important;}
  html body.page-template-page-services:not(.home) .mg-module-search{height:auto!important;display:block!important;}
  html body.page-template-page-services:not(.home) .mg-module-search input,
  html body.page-template-page-services:not(.home) .mg-module-search button{height:38px!important;width:100%!important;}
  html body.page-template-page-services:not(.home) .mg-module-hero-panel{max-width:100%!important;}
}

/* FORCE FIX STAGE 3 — Remaining internal pages, same proven final-cascade strategy; homepage excluded. */
html body.page-template-page-news:not(.home) .mg-module-hero,
html body.page-template-page-reference-module:not(.home) .mg-module-hero{padding:22px 0 18px!important;min-height:0!important;}
html body.page-template-page-news:not(.home) .mg-module-hero-grid,
html body.page-template-page-reference-module:not(.home) .mg-module-hero-grid{width:min(calc(100% - 42px),1180px)!important;min-height:0!important;grid-template-columns:minmax(0,1fr) 240px!important;gap:12px!important;align-items:center!important;}
html body.page-template-page-news:not(.home) .mg-module-hero h1,
html body.page-template-page-reference-module:not(.home) .mg-module-hero h1{font-size:clamp(27px,1.75vw,32px)!important;line-height:1.02!important;letter-spacing:-.035em!important;max-width:610px!important;margin:0 0 6px!important;}
html body.page-template-page-news:not(.home) .mg-module-hero p,
html body.page-template-page-reference-module:not(.home) .mg-module-hero p{font-size:12px!important;line-height:1.38!important;max-width:500px!important;margin:0 0 7px!important;}
html body.page-template-page-news:not(.home) .mg-module-search,
html body.page-template-page-reference-module:not(.home) .mg-module-search{height:36px!important;max-width:560px!important;padding:2px 3px!important;border-radius:6px!important;}
html body.page-template-page-news:not(.home) .mg-module-search input,
html body.page-template-page-reference-module:not(.home) .mg-module-search input{font-size:11.5px!important;height:30px!important;padding:0 7px!important;}
html body.page-template-page-news:not(.home) .mg-module-search button,
html body.page-template-page-reference-module:not(.home) .mg-module-search button{min-height:30px!important;height:30px!important;font-size:11.5px!important;padding:0 11px!important;border-radius:5px!important;}
html body.page-template-page-news:not(.home) .mg-filter-chips,
html body.page-template-page-reference-module:not(.home) .mg-filter-chips{gap:4px 5px!important;margin-top:5px!important;}
html body.page-template-page-news:not(.home) .mg-filter-chips span,
html body.page-template-page-reference-module:not(.home) .mg-filter-chips span{font-size:9px!important;line-height:1.1!important;padding:2px 6px!important;}
html body.page-template-page-news:not(.home) .mg-module-hero-panel,
html body.page-template-page-reference-module:not(.home) .mg-module-hero-panel{max-width:240px!important;padding:10px!important;border-radius:8px!important;}
html body.page-template-page-news:not(.home) .mg-module-hero-panel h2,
html body.page-template-page-reference-module:not(.home) .mg-module-hero-panel h2{font-size:13px!important;line-height:1.15!important;margin:0 0 4px!important;}
html body.page-template-page-news:not(.home) .mg-module-hero-panel p,
html body.page-template-page-reference-module:not(.home) .mg-module-hero-panel p{font-size:10.5px!important;line-height:1.32!important;margin:0!important;}
html body.page-template-page-news:not(.home) .mg-ref-hero-icon,
html body.page-template-page-reference-module:not(.home) .mg-ref-hero-icon{width:36px!important;height:36px!important;margin-bottom:5px!important;}
html body.page-template-page-news:not(.home) .mg-section,
html body.page-template-page-reference-module:not(.home) .mg-section,
html body.page-template-page-mineral-detail:not(.home) .mg-section{padding-top:26px!important;}
html body.page-template-page-news:not(.home) .mg-section-head,
html body.page-template-page-reference-module:not(.home) .mg-section-head,
html body.page-template-page-mineral-detail:not(.home) .mg-section-head{margin-bottom:8px!important;gap:10px!important;}
html body.page-template-page-news:not(.home) .mg-section-head h2,
html body.page-template-page-reference-module:not(.home) .mg-section-head h2,
html body.page-template-page-mineral-detail:not(.home) .mg-section-head h2{font-size:clamp(18px,1.25vw,23px)!important;line-height:1.1!important;}
html body.page-template-page-news:not(.home) .mg-card,
html body.page-template-page-news:not(.home) .mg-news-card,
html body.page-template-page-news:not(.home) .mg-report-card,
html body.page-template-page-reference-module:not(.home) .mg-card,
html body.page-template-page-reference-module:not(.home) .mg-result-card,
html body.page-template-page-reference-module:not(.home) .mg-data-panel{padding:10px!important;border-radius:8px!important;}
html body.page-template-page-news:not(.home) .mg-news-card-grid,
html body.page-template-page-news:not(.home) .mg-report-grid,
html body.page-template-page-reference-module:not(.home) .mg-card-grid,
html body.page-template-page-reference-module:not(.home) .mg-results-layout{gap:8px!important;}
html body.page-template-page-news:not(.home) .mg-editorial-copy{padding:12px!important;}
html body.page-template-page-news:not(.home) .mg-editorial-copy h2{font-size:18px!important;line-height:1.14!important;}
html body.page-template-page-news:not(.home) .mg-editorial-image,
html body.page-template-page-news:not(.home) .mg-card-image,
html body.page-template-page-reference-module:not(.home) .mg-card-image{min-height:108px!important;}
html body.page-template-page-reference-module:not(.home) .mg-filter-grid{padding:9px!important;gap:6px!important;border-radius:8px!important;}
html body.page-template-page-reference-module:not(.home) .mg-filter-grid label{font-size:10.5px!important;gap:4px!important;}
html body.page-template-page-reference-module:not(.home) .mg-filter-grid select,
html body.page-template-page-reference-module:not(.home) .mg-filter-grid input{min-height:32px!important;height:32px!important;font-size:11px!important;padding:0 8px!important;}
html body.page-template-page-reference-module:not(.home) .mg-button{min-height:32px!important;font-size:11.5px!important;padding:6px 10px!important;border-radius:6px!important;}
html body.page-template-page-reference-module:not(.home) .mg-data-map{gap:9px!important;grid-template-columns:minmax(0,1fr) 220px!important;}
html body.page-template-page-reference-module:not(.home) .mg-map-art{min-height:315px!important;}
html body.page-id-15:not(.home) .mg-module-hero-panel,
html body.page-id-16:not(.home) .mg-module-hero-panel{max-width:330px!important;padding:12px!important;}
html body.page-id-15:not(.home) input,
html body.page-id-16:not(.home) input,
html body.page-id-15:not(.home) select,
html body.page-id-16:not(.home) select{min-height:34px!important;height:34px!important;font-size:12px!important;}

html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero{min-height:210px!important;padding:0!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero-grid{width:min(calc(100% - 42px),1180px)!important;min-height:210px!important;grid-template-columns:minmax(0,1fr) minmax(140px,190px) minmax(205px,240px)!important;gap:12px!important;align-items:center!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero h1{font-size:clamp(30px,3.2vw,42px)!important;line-height:.98!important;letter-spacing:-.032em!important;margin:0 0 4px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero h2{font-size:14px!important;margin:5px 0 3px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero p{font-size:12px!important;line-height:1.36!important;max-width:440px!important;margin:0!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-actions{margin-top:7px!important;gap:5px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero-visual{min-height:145px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero-img{height:140px!important;width:min(190px,100%)!important;object-fit:contain!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-market{max-width:240px!important;padding:10px!important;border-radius:8px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-market strong{font-size:13.5px!important;line-height:1.12!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-chart{height:36px!important;margin:6px 0 4px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-kpis article{padding:7px 8px!important;grid-template-columns:20px 1fr!important;gap:5px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-kpis article img{width:16px!important;height:16px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-kpis strong{font-size:11.5px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-mineral-map{min-height:220px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-related-minerals a{min-height:96px!important;padding:7px!important;}
html body.page-template-page-mineral-detail:not(.home) .mg-related-minerals a img{height:48px!important;}
@media (max-width:780px){
  html body.page-template-page-news:not(.home) .mg-module-hero-grid,
  html body.page-template-page-reference-module:not(.home) .mg-module-hero-grid,
  html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero-grid{width:min(calc(100% - 30px),100%)!important;grid-template-columns:1fr!important;}
  html body.page-template-page-news:not(.home) .mg-module-hero h1,
  html body.page-template-page-reference-module:not(.home) .mg-module-hero h1{font-size:clamp(28px,7.2vw,34px)!important;}
  html body.page-template-page-mineral-detail:not(.home) .mg-mineral-hero h1{font-size:clamp(32px,9vw,42px)!important;}
  html body.page-template-page-news:not(.home) .mg-module-search,
  html body.page-template-page-reference-module:not(.home) .mg-module-search{height:auto!important;display:block!important;}
  html body.page-template-page-news:not(.home) .mg-module-search input,
  html body.page-template-page-news:not(.home) .mg-module-search button,
  html body.page-template-page-reference-module:not(.home) .mg-module-search input,
  html body.page-template-page-reference-module:not(.home) .mg-module-search button{height:38px!important;width:100%!important;}
  html body.page-template-page-news:not(.home) .mg-module-hero-panel,
  html body.page-template-page-reference-module:not(.home) .mg-module-hero-panel{max-width:100%!important;}
  html body.page-template-page-reference-module:not(.home) .mg-data-map{grid-template-columns:1fr!important;}
}
