/* Almasraf Gold Prices Pro 1.6.25 — unified responsive/layout contract.
   One responsive engine for Home + Country + Gold News.
   Mobile <=767: exactly one content card per row, centered, no viewport clipping.
   Tablet 768-1024: max two cards where appropriate. Desktop: base layout. */
html,body{max-width:100%}
html body .agp-ui-root{box-sizing:border-box!important;width:100%!important;max-width:1180px!important;min-width:0!important;margin-inline:auto!important}
html body .agp-ui-root *,html body .agp-gold-news-content *{box-sizing:border-box;min-width:0}
html body .agp-ui-root :is(img,svg,canvas,video,iframe),html body .agp-gold-news-content :is(img,svg,canvas,video,iframe){max-width:100%!important;height:auto}
html body .agp-ui-root :is(input,select,textarea,button){max-width:100%!important}
html body .agp-ui-root :is(.agp-home-hero,.agp-home-section,.agp-home-faq,.agp-hero-reference,.agp-price-section,.agp-content-panel,.agp-analysis-panel,.agp-country-home-section,.agp-faq,.agp-chart-panel,.agp-all-country-directory){max-width:100%!important;min-width:0!important}
html body .agp-ui-root :is(.agp-summary-grid,.agp-home-country-grid,.agp-ounce-box,.agp-price-grid,.agp-important-grid,.agp-news-grid,.agp-country-news-grid,.agp-method-grid,.agp-interest-links-grid,.agp-country-links-grid,.agp-weekly-summary,.agp-local-summary-grid,.agp-calc-grid,.agp-home-faq,.agp-faq,.agp-bar-meta){width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:auto!important}
html body .agp-ui-root :is(.agp-summary-card,.agp-home-country-card,.agp-price-card,.agp-important-card,.agp-news-card,.agp-country-news-card,.agp-method-card,.agp-interest-group,.agp-country-link,.agp-home-faq details,.agp-faq details,.agp-weekly-summary>div,.agp-local-summary-grid>*){max-width:100%!important;min-width:0!important;margin-inline:auto!important}
html body .agp-ui-root :is(.agp-home-title,.agp-main-title,.agp-home-section-title,.agp-blue-heading,.agp-summary-title,.agp-price-section-title,.agp-card-heading){max-width:100%!important;min-width:0!important;text-align:center!important;margin-inline:auto!important}
html body .agp-ui-root.agp-gold-home :is(.agp-home-title,.agp-home-section-title),
html body .agp-ui-root.agp-gold-box .agp-gold-head h1.agp-main-title,
html body .agp-ui-root.agp-gold-box :is(.agp-home-section-title,h2.agp-blue-heading,h2.agp-summary-title,h2.agp-price-section-title,h3.agp-blue-heading){text-align:center!important;justify-content:center!important;margin-left:auto!important;margin-right:auto!important}
html body .agp-ui-root :is(.agp-summary-card,.agp-home-country-card,.agp-price-card,.agp-important-card,.agp-news-card,.agp-country-news-card,.agp-method-card,.agp-interest-group,.agp-country-link,.agp-home-faq details,.agp-faq details){width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
html body .agp-ui-root .agp-history-table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
html body .agp-ui-root :is(.agp-chart-wrap,.agp-history-chart){width:100%!important;max-width:100%!important}
@supports(content-visibility:auto){html body .agp-gold-home>.agp-home-section:nth-of-type(n+4),html body .agp-gold-box>:is(.agp-analysis-panel,.agp-country-home-section,.agp-country-news,.agp-faq,.agp-country-links){content-visibility:auto;contain-intrinsic-size:auto 560px}}

/* Tablet: consistent two-column card system. */
@media (min-width:768px) and (max-width:1024px){
 html body .agp-ui-root.agp-gold-home,html body .agp-ui-root.agp-gold-box{padding-inline:14px!important;overflow-x:clip!important}
 html body .agp-ui-root.agp-gold-home :is(.agp-summary-grid,.agp-home-country-grid,.agp-ounce-box,.agp-important-grid,.agp-news-grid,.agp-method-grid,.agp-interest-links-grid,.agp-home-faq),
 html body .agp-ui-root.agp-gold-box :is(.agp-summary-grid,.agp-price-grid,.agp-important-grid,.agp-country-news-grid,.agp-method-grid,.agp-interest-links-grid,.agp-country-links-grid,.agp-weekly-summary,.agp-local-summary-grid,.agp-faq){grid-template-columns:repeat(2,minmax(0,1fr))!important;justify-items:stretch!important}
 html body .agp-ui-root.agp-gold-home .agp-calc-grid,html body .agp-ui-root.agp-gold-box .agp-calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body .agp-ui-root.agp-gold-home .agp-home-hero{grid-template-columns:1fr!important;grid-template-areas:"title" "copy" "visual"!important}
 html body .agp-ui-root.agp-gold-box :is(.agp-hero-reference,.agp-chart-panel),html body .agp-ui-root.agp-gold-home .agp-bar-feature,html body .agp-ui-root.agp-gold-box .agp-bar-feature{grid-template-columns:1fr!important}
 html body .agp-ui-root.agp-gold-home .agp-home-visual,html body .agp-ui-root.agp-gold-box .agp-hero-visual{justify-self:center!important;margin-inline:auto!important;max-width:520px!important}
 /* Tablet-safe headings: no legacy negative margins or widths beyond their section. */
 html body .agp-ui-root.agp-gold-home .agp-home-section>.agp-home-section-title,html body .agp-ui-root.agp-gold-home .agp-home-faq>.agp-home-section-title{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;margin-top:0!important}
 html body .agp-ui-root.agp-gold-box .agp-price-section>h2.agp-price-section-title,html body .agp-ui-root.agp-gold-box .agp-content-panel>h2.agp-blue-heading,html body .agp-ui-root.agp-gold-box .agp-faq>h2.agp-blue-heading,html body .agp-ui-root.agp-gold-box .agp-country-home-section>.agp-home-section-title,html body .agp-ui-root.agp-gold-box .agp-analysis-panel>h2.agp-blue-heading{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;margin-top:0!important}
}

/* Mobile contract: one card per line, centered, everything remains inside viewport. */
@media (max-width:767px){
 html,body{overflow-x:clip!important}
 html body .agp-gold-home,html body .agp-gold-box,html body .agp-gold-news-content{width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:auto!important;padding-left:10px!important;padding-right:10px!important;overflow-x:clip!important}
 html body .agp-ui-root :is(.agp-home-hero,.agp-home-section,.agp-home-faq,.agp-hero-reference,.agp-price-section,.agp-content-panel,.agp-analysis-panel,.agp-country-home-section,.agp-faq,.agp-chart-panel,.agp-all-country-directory){width:100%!important;max-width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important}

 /* Every genuine card collection becomes exactly one centered column. */
 html body .agp-ui-root.agp-gold-home :is(.agp-summary-grid,.agp-home-country-grid,.agp-ounce-box,.agp-important-grid,.agp-news-grid,.agp-method-grid,.agp-interest-links-grid,.agp-home-faq,.agp-calc-grid,.agp-bar-meta),
 html body .agp-ui-root.agp-gold-box :is(.agp-summary-grid,.agp-price-grid,.agp-important-grid,.agp-country-news-grid,.agp-method-grid,.agp-interest-links-grid,.agp-country-links-grid,.agp-weekly-summary,.agp-local-summary-grid,.agp-calc-grid,.agp-faq,.agp-bar-meta){display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;align-items:stretch!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;gap:12px!important}
 html body .agp-ui-root.agp-gold-home :is(.agp-summary-card,.agp-home-country-card,.agp-important-card,.agp-news-card,.agp-method-card,.agp-interest-group,.agp-home-faq details,.agp-ounce-box>*),
 html body .agp-ui-root.agp-gold-box :is(.agp-summary-card,.agp-price-card,.agp-important-card,.agp-country-news-card,.agp-method-card,.agp-interest-group,.agp-country-link,.agp-faq details,.agp-weekly-summary>div,.agp-local-summary-grid>*){box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;grid-column:auto!important}
 html body .agp-ui-root.agp-gold-home :is(.agp-summary-card,.agp-home-country-card,.agp-important-card,.agp-news-card,.agp-method-card,.agp-interest-group,.agp-home-faq details,.agp-ounce-box>*),
 html body .agp-ui-root.agp-gold-box :is(.agp-summary-card,.agp-price-card,.agp-important-card,.agp-country-news-card,.agp-method-card,.agp-interest-group,.agp-country-link,.agp-faq details,.agp-weekly-summary>div,.agp-local-summary-grid>*){justify-self:center!important}

 /* Complex visual/functional sections stack without forcing page width. */
 html body .agp-ui-root.agp-gold-home .agp-home-hero{grid-template-columns:1fr!important;grid-template-areas:"title" "copy" "visual"!important;width:100%!important;max-width:100%!important}
 html body .agp-ui-root.agp-gold-box .agp-hero-reference{grid-template-columns:1fr!important;grid-template-areas:"title" "copy" "visual"!important;width:100%!important;max-width:100%!important}
 html body .agp-ui-root.agp-gold-box .agp-chart-panel{grid-template-columns:1fr!important;grid-template-areas:"chart-title" "chart" "table" "summary" "downloads"!important;width:100%!important;max-width:100%!important}
 html body .agp-ui-root.agp-gold-home .agp-bar-feature,html body .agp-ui-root.agp-gold-box .agp-bar-feature{grid-template-columns:1fr!important;grid-template-areas:"copy" "visual"!important;width:100%!important;max-width:100%!important}
 html body .agp-ui-root.agp-gold-home .agp-calc-actions{grid-template-columns:1fr!important}
 html body .agp-ui-root.agp-gold-box .agp-country-switcher{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;text-align:center!important;gap:8px!important}
 html body .agp-ui-root.agp-gold-box .agp-country-switcher :is(select,label,.agp-current-country),html body .agp-ui-root.agp-gold-home :is(.agp-country-search,.agp-bars-country select){width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:auto!important}
 html body .agp-ui-root.agp-gold-home :is(.agp-home-visual,.agp-bar-feature-visual),html body .agp-ui-root.agp-gold-box :is(.agp-hero-visual,.agp-bar-feature-visual){width:100%!important;max-width:100%!important;justify-self:center!important;margin-inline:auto!important}
 html body .agp-ui-root.agp-gold-home .agp-home-visual img,html body .agp-ui-root.agp-gold-box .agp-hero-visual img{display:block!important;width:min(100%,440px)!important;max-width:100%!important;margin-inline:auto!important}

 /* Headings: centered, fully inside viewport, no decorative rails squeezing text. */
 html body .agp-ui-root.agp-gold-home :is(.agp-home-title,.agp-home-section-title),
 html body .agp-ui-root.agp-gold-box .agp-gold-head h1.agp-main-title,
 html body .agp-ui-root.agp-gold-box :is(h2.agp-blue-heading,h2.agp-summary-title,h2.agp-price-section-title,h3.agp-blue-heading),
 html body .agp-gold-news-content :is(h1,h2,h3){box-sizing:border-box!important;display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto 12px!important;padding:8px 10px!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;text-indent:0!important;line-height:1.55!important}
 html body .agp-ui-root.agp-gold-home :is(.agp-home-title,.agp-home-section-title)::before,html body .agp-ui-root.agp-gold-home :is(.agp-home-title,.agp-home-section-title)::after,
 html body .agp-ui-root.agp-gold-box .agp-gold-head h1.agp-main-title::before,html body .agp-ui-root.agp-gold-box .agp-gold-head h1.agp-main-title::after,
 html body .agp-ui-root.agp-gold-box .agp-home-section-title::before,html body .agp-ui-root.agp-gold-box .agp-home-section-title::after,
 html body .agp-ui-root.agp-gold-box :is(h2.agp-blue-heading,h2.agp-summary-title,h2.agp-price-section-title,h3.agp-blue-heading)::before,html body .agp-ui-root.agp-gold-box :is(h2.agp-blue-heading,h2.agp-summary-title,h2.agp-price-section-title,h3.agp-blue-heading)::after{content:none!important;display:none!important}
 html body .agp-ui-root.agp-gold-home .agp-home-title,html body .agp-ui-root.agp-gold-box .agp-gold-head h1.agp-main-title{font-size:clamp(20px,5.5vw,24px)!important;font-weight:900!important;line-height:1.55!important;text-wrap:balance}
 html body .agp-ui-root.agp-gold-home .agp-home-section-title,html body .agp-ui-root.agp-gold-box :is(h2.agp-blue-heading,h2.agp-summary-title,h2.agp-price-section-title){font-size:clamp(16px,4.7vw,19px)!important;text-wrap:balance}
 html body .agp-ui-root.agp-gold-home .agp-home-section>.agp-home-section-title,html body .agp-ui-root.agp-gold-home .agp-home-faq>.agp-home-section-title,
 html body .agp-ui-root.agp-gold-box .agp-price-section>h2.agp-price-section-title,
 html body .agp-ui-root.agp-gold-box .agp-content-panel>h2.agp-blue-heading,
 html body .agp-ui-root.agp-gold-box .agp-faq>h2.agp-blue-heading,
 html body .agp-ui-root.agp-gold-box .agp-country-home-section>.agp-home-section-title,
 html body .agp-ui-root.agp-gold-box .agp-analysis-panel>h2.agp-blue-heading{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;margin-top:0!important}
 html body .agp-ui-root.agp-gold-box .agp-price-card .agp-card-heading{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}

 /* Only compact controls and tables can scroll horizontally. */
 html body .agp-ui-root.agp-gold-box .agp-chart-controls,html body .agp-ui-root.agp-gold-box .agp-bar-weight-tabs,html body .agp-ui-root.agp-gold-home .agp-bar-weight-tabs{display:flex!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:5px!important}
 html body .agp-ui-root.agp-gold-box .agp-chart-controls button,html body .agp-ui-root.agp-gold-box .agp-bar-weight-button,html body .agp-ui-root.agp-gold-home .agp-bar-weight-button{flex:0 0 auto!important;min-height:44px!important}
 html body .agp-ui-root.agp-gold-box .agp-history-downloads{display:flex!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;gap:8px!important}
 html body .agp-ui-root.agp-gold-box .agp-history-downloads :is(a,button){flex:1 1 100%!important;width:100%!important;max-width:100%!important}

 /* Images in story cards keep predictable dimensions. */
 html body .agp-ui-root.agp-gold-home .agp-news-card img,html body .agp-ui-root.agp-gold-box .agp-country-news-card img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:2/1!important;object-fit:cover!important}
}

@media (max-width:430px){
 html body .agp-gold-home,html body .agp-gold-box,html body .agp-gold-news-content{padding-left:8px!important;padding-right:8px!important}
 html body .agp-ui-root.agp-gold-home .agp-home-title,html body .agp-ui-root.agp-gold-box .agp-gold-head h1.agp-main-title{font-size:20px!important;line-height:1.55!important}
 html body .agp-ui-root.agp-gold-home .agp-home-section-title,html body .agp-ui-root.agp-gold-box :is(h2.agp-blue-heading,h2.agp-summary-title,h2.agp-price-section-title){font-size:16px!important;line-height:1.55!important}
}
