/* ARQOM GLOBAL MARKETS v0.7 | FOR REVIEW
   Ref: AG-WEB-GM-2026-001 | 21 August 2026
*/
:root{
  --ag-navy:#08263a;
  --ag-navy-2:#0d334d;
  --ag-ink:#142330;
  --ag-muted:#66727b;
  --ag-gold:#b59658;
  --ag-line:#dce3e7;
  --ag-paper:#f6f8f9;
  --ag-white:#ffffff;
  --ag-shadow:0 18px 48px rgba(8,38,58,.08);
}
.agm-home{
  background:linear-gradient(180deg,#f8fafb 0%,#ffffff 100%);
  border-top:1px solid var(--ag-line);
  border-bottom:1px solid var(--ag-line);
  padding:64px 0 54px;
}
.agm-home .shell,
.agm-page .shell{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
}
.agm-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:36px;
  align-items:end;
  margin-bottom:32px;
}
.agm-kicker{
  margin:0 0 9px;
  color:var(--ag-gold);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.agm-head h2,.agm-page h1,.agm-page h2{
  color:var(--ag-navy);
  margin:0;
  font-weight:600;
  letter-spacing:-.025em;
}
.agm-head h2{font-size:clamp(30px,3.3vw,46px);line-height:1.05}
.agm-intro{
  max-width:790px;
  margin:14px 0 0;
  color:var(--ag-muted);
  font-size:16px;
  line-height:1.7;
}
.agm-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border:1px solid var(--ag-navy);
  background:var(--ag-navy);
  color:var(--ag-white)!important;
  text-decoration:none!important;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:.2s ease;
}
.agm-cta:hover{background:var(--ag-navy-2);transform:translateY(-1px)}
.agm-board{
  border:1px solid var(--ag-line);
  background:var(--ag-white);
  box-shadow:var(--ag-shadow);
}
.agm-band{padding:24px 24px 20px}
.agm-band + .agm-band{border-top:1px solid var(--ag-line)}
.agm-band-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.agm-band-title strong{
  color:var(--ag-ink);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.agm-band-title span{color:var(--ag-muted);font-size:12px}
.agm-widget-wrap{min-height:92px;width:100%;overflow:hidden}
.agm-widget-wrap.compact{min-height:72px}
.agm-widget-wrap tv-tickers{display:block;width:100%}
.agm-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  align-items:center;
  padding:14px 24px;
  border-top:1px solid var(--ag-line);
  background:#fbfcfc;
  color:var(--ag-muted);
  font-size:11.5px;
  line-height:1.55;
}
.agm-meta a{color:var(--ag-muted);text-decoration:underline;text-underline-offset:2px}

/* Global Markets page */
body.agm-page{
  margin:0;
  background:#fff;
  color:var(--ag-ink);
  font-family:Arial,Helvetica,sans-serif;
}
.agm-page *{box-sizing:border-box}
.agm-utility{background:#061f31;color:#d8e1e6;font-size:11px}
.agm-utility .shell{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.agm-header{
  background:#fff;
  border-bottom:1px solid var(--ag-line);
  position:sticky;
  top:0;
  z-index:30;
}
.agm-nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.agm-brand img{
  display:block;
  width:210px;
  max-height:56px;
  object-fit:contain;
  object-position:left center;
}
.agm-links{display:flex;align-items:center;gap:23px;font-size:13px}
.agm-links a{color:var(--ag-ink);text-decoration:none}
.agm-links a.active{color:var(--ag-gold);font-weight:700}
.agm-links .contact{
  border:1px solid var(--ag-navy);
  padding:10px 15px;
  color:var(--ag-navy);
  font-weight:700;
}
.agm-hero{
  background:linear-gradient(135deg,#061f31 0%,#0b3854 70%,#16445d 100%);
  color:#fff;
  padding:76px 0 66px;
}
.agm-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);
  gap:60px;
  align-items:end;
}
.agm-hero .agm-kicker{color:#d2b97e}
.agm-page h1{
  color:#fff;
  font-size:clamp(42px,6vw,72px);
  line-height:.98;
  max-width:850px;
}
.agm-hero p{
  max-width:760px;
  color:#d6e0e5;
  line-height:1.75;
  font-size:17px;
  margin:22px 0 0;
}
.agm-status-card{
  border:1px solid rgba(255,255,255,.22);
  padding:24px;
  background:rgba(255,255,255,.055);
}
.agm-status-card span{
  display:block;
  color:#d2b97e;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:13px;
}
.agm-status-card p{font-size:13px;margin:0;color:#d7e1e6}
.agm-section{padding:64px 0}
.agm-section.alt{background:var(--ag-paper)}
.agm-section-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.52fr);
  gap:36px;
  align-items:end;
  margin-bottom:28px;
}
.agm-section-head h2{font-size:clamp(30px,4vw,46px)}
.agm-section-head p{margin:0;color:var(--ag-muted);line-height:1.7}
.agm-quote-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
}
.agm-quote-card,.agm-overview-card,.agm-embed-card{
  background:#fff;
  border:1px solid var(--ag-line);
  box-shadow:var(--ag-shadow);
  overflow:hidden;
}
.agm-quote-card{
  min-height:550px;
  padding:12px;
}
.agm-quote-card .tradingview-widget-container{
  width:100%;
  height:525px;
}
.agm-quote-card .tradingview-widget-container__widget{
  width:100%;
  height:calc(100% - 30px);
}
.agm-overview-card{
  min-height:520px;
  padding:18px;
}
.agm-overview-card tv-market-overview{
  display:block;
  width:100%;
  min-height:480px;
}
.agm-two{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
.agm-embed-card{padding:18px;min-height:600px}
.agm-embed-card .tradingview-widget-container{height:560px;width:100%}
.agm-embed-card .tradingview-widget-container__widget{height:calc(100% - 28px);width:100%}
.agm-disclosure{
  padding:26px;
  border:1px solid var(--ag-line);
  background:#fbfcfc;
  color:var(--ag-muted);
  font-size:13px;
  line-height:1.75;
}
.agm-disclosure strong{color:var(--ag-ink)}
.agm-lens{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.agm-lens article{
  border-top:3px solid var(--ag-gold);
  background:#fff;
  padding:22px;
  box-shadow:var(--ag-shadow);
}
.agm-lens h3{margin:0 0 10px;color:var(--ag-navy);font-size:18px}
.agm-lens p{margin:0;color:var(--ag-muted);font-size:14px;line-height:1.65}
.agm-footer{background:#061f31;color:#cbd6dc;padding:42px 0 28px}
.agm-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:36px}
.agm-footer h3{color:#fff;font-size:13px;margin:0 0 14px}
.agm-footer a{display:block;color:#cbd6dc;text-decoration:none;font-size:13px;margin:8px 0}
.agm-footer p{font-size:13px;line-height:1.7;max-width:520px}
.agm-footer-bottom{
  margin-top:28px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);
  font-size:11px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap
}
@media (max-width:980px){
  .agm-links{display:none}
  .agm-head,.agm-section-head,.agm-hero-grid{grid-template-columns:1fr}
  .agm-head{align-items:start}
  .agm-quote-grid,.agm-two{grid-template-columns:1fr}
  .agm-lens{grid-template-columns:1fr}
  .agm-footer-grid{grid-template-columns:1fr 1fr}
  .agm-hero-grid{gap:28px}
}
@media (max-width:680px){
  .agm-home{padding:42px 0 38px}
  .agm-home .shell,.agm-page .shell{width:min(100% - 28px,1180px)}
  .agm-band{padding:18px 14px 16px}
  .agm-band-title{align-items:flex-start;flex-direction:column;gap:5px}
  .agm-meta{padding:12px 14px}
  .agm-head{gap:20px}
  .agm-cta{width:100%}
  .agm-utility .shell{justify-content:center;text-align:center}
  .agm-utility .shell span:last-child{display:none}
  .agm-nav{min-height:68px}
  .agm-brand img{width:170px}
  .agm-hero{padding:55px 0 48px}
  .agm-section{padding:48px 0}
  .agm-quote-card,.agm-overview-card,.agm-embed-card{padding:10px}
  .agm-footer-grid{grid-template-columns:1fr}
}


/* v0.7 stable institutional monitoring framework */
.agm-framework{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--ag-line);
  border:1px solid var(--ag-line);
  box-shadow:var(--ag-shadow);
}
.agm-framework article{
  background:#fff;
  padding:28px 24px 26px;
  min-height:210px;
}
.agm-framework .num{
  display:block;
  color:var(--ag-gold);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  margin-bottom:24px;
}
.agm-framework h3{
  margin:0 0 12px;
  color:var(--ag-navy);
  font-size:19px;
  line-height:1.2;
}
.agm-framework p{
  margin:0;
  color:var(--ag-muted);
  font-size:13px;
  line-height:1.7;
}
.agm-framework-note{
  margin-top:16px;
  border-left:3px solid var(--ag-gold);
  padding:12px 0 12px 18px;
  color:var(--ag-muted);
  font-size:12px;
  line-height:1.7;
  max-width:920px;
}
@media (max-width:980px){
  .agm-framework{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .agm-framework{grid-template-columns:1fr}
}


/* v0.7 HOMEPAGE HOTFIX
   Constrain TradingView ticker components to the intended executive-snapshot height.
*/
.agm-home .agm-widget-wrap{
  height:92px !important;
  min-height:92px !important;
  max-height:92px !important;
  overflow:hidden !important;
  position:relative;
}
.agm-home .agm-widget-wrap.compact{
  height:78px !important;
  min-height:78px !important;
  max-height:78px !important;
}
.agm-home .agm-widget-wrap tv-tickers{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:100% !important;
  overflow:hidden !important;
}
.agm-home .agm-band{
  overflow:hidden;
}



/* v0.7 MOBILE HOTFIX
   Desktop remains compact. Mobile gets enough vertical space for the responsive
   TradingView card stack so all selected references remain reachable.
*/
@media (max-width:680px){
  .agm-home .agm-widget-wrap{
    height:196px !important;
    min-height:196px !important;
    max-height:196px !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .agm-home .agm-widget-wrap.compact{
    height:162px !important;
    min-height:162px !important;
    max-height:162px !important;
    overflow:auto !important;
  }
  .agm-home .agm-widget-wrap tv-tickers{
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .agm-home .agm-band{
    overflow:visible;
  }
  .agm-home .agm-meta{
    gap:8px;
  }
}


/* v0.7 MOBILE STABLE
   Desktop uses tv-tickers. Mobile uses TradingView Market Quotes tables.
*/
.agm-mobile-marketquotes{
  display:none;
}
@media (max-width:680px){
  .agm-home .agm-desktop-tickers{
    display:none !important;
  }
  .agm-home .agm-mobile-marketquotes{
    display:block;
  }
  .agm-home .agm-mobile-marketquotes .tradingview-widget-container{
    width:100%;
    height:100%;
  }
  .agm-home .agm-mobile-marketquotes .tradingview-widget-container__widget{
    width:100%;
    height:calc(100% - 28px);
  }
  .agm-home .agm-mobile-equities{
    height:430px;
    min-height:430px;
    overflow:hidden;
  }
  .agm-home .agm-mobile-cross{
    height:350px;
    min-height:350px;
    overflow:hidden;
  }
  .agm-home .agm-mobile-marketquotes .tradingview-widget-copyright{
    font-size:10px;
    line-height:1.4;
    text-align:center;
    padding-top:4px;
  }
}
