/* Direction, provider states, accessibility and standalone viewport containment. */
.ifbgm-app[dir="rtl"]{direction:rtl;text-align:right}.ifbgm-app[dir="ltr"]{direction:ltr;text-align:left}
.ifbgm-markets-page .ifbgm-app{width:min(1480px,calc(100vw - 32px));max-width:1480px;margin-inline:auto}
@media(max-width:600px){.ifbgm-markets-page .ifbgm-app{width:calc(100vw - 10px);margin-inline:auto}}
.ifbgm-standalone-page.ifbgm-markets-page .ifbgm-app{width:100%;max-width:1480px;margin-inline:auto}
.ifbgm-live.is-partial,.ifbgm-live.is-cached{color:#f0d18a}.ifbgm-live.is-partial i,.ifbgm-live.is-cached i{background:#d7a93e;box-shadow:0 0 0 4px #d7a93e22}
.ifbgm-live.is-stale{color:#ffd28a;border-color:#806535}.ifbgm-live.is-stale i{background:#e29828;box-shadow:0 0 0 4px #e2982828}
.ifbgm-live.is-disconnected{color:#ffb3ad;border-color:#743f3a}.ifbgm-live.is-disconnected i{background:#df554b;box-shadow:0 0 0 4px #df554b22}
.ifbgm-app :focus-visible{outline:3px solid #c3ab73;outline-offset:3px}
.ifbgm-app[dir="rtl"] .ifbgm-table-ohl small{font-size:0}.ifbgm-app[dir="rtl"] .ifbgm-table-ohl span:nth-child(1) small:before{content:"السابق";font-size:.65rem}.ifbgm-app[dir="rtl"] .ifbgm-table-ohl span:nth-child(2) small:before{content:"الأعلى";font-size:.65rem}.ifbgm-app[dir="rtl"] .ifbgm-table-ohl span:nth-child(3) small:before{content:"الأدنى";font-size:.65rem}
.ifbgm-app[dir="rtl"] .ifbgm-summary>ul:before{content:"اليوم"}.ifbgm-app[dir="rtl"] .ifbgm-summary>.ifbgm-demo-badge:after{content:"أهم المؤشرات  •  الذهب  •  برنت";white-space:normal}
.ifbgm-app[dir="ltr"] .ifbgm-summary>ul:before{content:"Today"}.ifbgm-app[dir="ltr"] .ifbgm-summary>.ifbgm-demo-badge:after{content:"Key indicators  •  Gold  •  Brent";white-space:normal}
@media(prefers-reduced-motion:reduce){.ifbgm-app *,.ifbgm-app *::before,.ifbgm-app *::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.ifbgm-reveal{opacity:1!important;transform:none!important}}

@media(max-width:600px){
	html.ifbgm-standalone-html,body.ifbgm-standalone-page{width:100%;max-width:100%;margin:0!important;padding:0!important;overflow-x:hidden!important}
	.ifbgm-standalone-page .ifbgm-site-main{width:100%;max-width:100%;margin:0!important;padding:0!important;overflow-x:hidden!important}
	.ifbgm-standalone-page .ifbgm-app{box-sizing:border-box;width:100%!important;max-width:100%!important;margin:0!important;padding:5px!important;border-radius:0!important;overflow-x:hidden!important}
	.ifbgm-standalone-page .ifbgm-app *{box-sizing:border-box;min-width:0}
	.ifbgm-standalone-page .ifbgm-hero{width:100%;max-width:100%;padding:18px 14px!important;grid-template-columns:minmax(0,1fr)!important}
	.ifbgm-standalone-page .ifbgm-hero-copy,.ifbgm-standalone-page .ifbgm-hero-stats{width:100%;max-width:100%}
	.ifbgm-standalone-page .ifbgm-hero h1{font-size:clamp(1.75rem,9vw,2.25rem)!important;overflow-wrap:anywhere}
	.ifbgm-standalone-page .ifbgm-eyebrow{overflow-wrap:anywhere}
	.ifbgm-standalone-page .ifbgm-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
	.ifbgm-standalone-page .ifbgm-market-grid{grid-template-columns:minmax(0,1fr)!important}
	.ifbgm-standalone-page .ifbgm-market-card{width:100%;max-width:100%}
	.ifbgm-standalone-page .ifbgm-quote{flex-wrap:wrap;gap:4px 10px}.ifbgm-standalone-page .ifbgm-quote span{max-width:100%;overflow-wrap:anywhere}
}

/* Keep dark IFBGM surfaces isolated from Elementor and theme heading colors. */
body .ifbgm-app .ifbgm-hero :is(h1,h2,h3,h4,h5,h6),
body .ifbgm-app .ifbgm-compare :is(h1,h2,h3,h4,h5,h6),
body .ifbgm-app .ifbgm-heatmap-tile :is(h1,h2,h3,h4,h5,h6),
body .ifbgm-app .ifbgm-position-result :is(h1,h2,h3,h4,h5,h6),
body .ifbgm-app .ifbgm-summary :is(h1,h2,h3,h4,h5,h6){color:#fff}
body .ifbgm-app .ifbgm-hero-copy>p,
body .ifbgm-app .ifbgm-summary>div:not(.ifbgm-summary-health)>p,
body .ifbgm-app .ifbgm-summary>ul>li,
body .ifbgm-app .ifbgm-position-result [data-position-name],
body .ifbgm-app .ifbgm-position-result [data-position-current],
body .ifbgm-app .ifbgm-position-result [data-position-cost],
body .ifbgm-app .ifbgm-position-result [data-position-value],
body .ifbgm-app .ifbgm-converter-result>strong,
body .ifbgm-app .ifbgm-detail-price>strong{color:#fff}

/* The economic-events radar is intentionally removed without leaving a grid/flex gap. */
body .ifbgm-app [data-ifbgm-events-radar]{display:none}

/* Modernized movement arrows and chart strokes; semantic up/down colors stay unchanged. */
body .ifbgm-app .ifbgm-card-trend .ifbgm-trend-badge{border:1px solid #ffffff47;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff38,0 8px 18px #00000024}
body .ifbgm-app .ifbgm-card-trend .ifbgm-trend-badge svg{filter:drop-shadow(0 2px 2px #0000002b)}
body .ifbgm-app .ifbgm-card-trend .ifbgm-trend-badge path{stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
body .ifbgm-app .ifbgm-spark{color:var(--ifbgm-gold);overflow:visible}
body .ifbgm-app .ifbgm-spark.ifbgm-up{color:var(--ifbgm-up)}
body .ifbgm-app .ifbgm-spark.ifbgm-down{color:var(--ifbgm-down)}
body .ifbgm-app .ifbgm-spark-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
body .ifbgm-app .ifbgm-spark-arrowhead{fill:currentColor}
