/* Phone & tablet polish (9 Nov 2026). Loaded after the other stylesheets; desktop (>1020px) is unchanged. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (max-width:1020px){
  main img,main video,main iframe{max-width:100%}
  .leaflet-container img{max-width:none!important}
  /* Ore-to-gold calculator: cards were wider than the screen and got cut off on the right */
  html .oc .oc-grid{grid-template-columns:minmax(0,1fr)}
  html .oc .oc-grid>*,html .oc .oc-form,html .oc .oc-card,html .oc .oc-f{min-width:0}
  html .oc .oc-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  html .oc input,html .oc select{min-width:0;max-width:100%}
  html .oc .oc-f select{text-overflow:ellipsis}
  /* Form fields: 16px text so iPhone Safari does not zoom in when a field is tapped */
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
  /* Larger tick boxes on the map layer lists and the due-diligence checklist */
  .intel-app input[type=checkbox],.intel-filters .g-chk input{width:22px;height:22px;flex:none;margin-top:0}
  .intel-legend label{min-height:32px;align-items:center}
  /* Bigger map zoom buttons */
  .leaflet-touch .leaflet-bar a{width:40px;height:40px;line-height:40px}
  /* Hide the WhatsApp and chat bubbles while the menu is open so they don't cover menu links */
  body:has(#site-nav.open) .wa-float,body:has(#site-nav.open) .agc-launch{display:none}
  /* Long words, links and e-mail addresses wrap instead of pushing the page sideways */
  main p,main li,main dd,.site-footer li,.site-footer p{overflow-wrap:break-word}
  .table-wrap,.intel-scroll,.oc-scroll{-webkit-overflow-scrolling:touch;max-width:100%}
}
@media (max-width:560px){html .oc .oc-2,html .oc .oc-3l{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  /* Footer and contact links: easier to tap */
  .site-footer li a{display:inline-block;padding:5px 0}
  .contact-layout li a,.contact-info li a{display:inline-block;padding:4px 0}
  a.more{display:inline-block;padding:8px 0}
}
/* Desktop nav: slightly tighter link spacing so the added "Minerals" item still fits on one line */
@media (min-width:1241px) and (max-width:1340px){.site-header .nav a{padding:8px 5px}}
@media (min-width:1241px){html[lang=fr] .site-header .nav a{padding:8px 5px}}
/* Subtle, motion-safe transitions */
@media (prefers-reduced-motion:no-preference){.btn,.nav a,.goldbar{transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}}
/* WCAG AA contrast (10 Nov 2026): gold stays the brand colour for buttons, borders and fills;
   text on gold uses dark navy, and small gold text on light backgrounds uses a deeper gold. */
:root{--gold-text:#7d5f1a}
.btn-gold,.btn-gold:hover,.skip,.gt-range button[aria-pressed="true"],.site-pin[aria-pressed="true"] .pin-label{color:#131d34 !important}
.eyebrow,.l2g-step .cap-num,.timeline .date,.person .role,.nav a[aria-current="page"],a:hover,.najim-seealso-cta{color:var(--gold-text)}
.nav a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--gold)}
.hero .eyebrow{color:var(--gold-light)}
.intel-promo .eyebrow,.site-footer .eyebrow,.section-navy .eyebrow{color:var(--gold)}
.site-footer a:hover{color:var(--gold-light)}
.capability-card .cap-num,.capability-card .cap-link a{color:var(--gold-light)}
.capability-card .cap-link a:hover{color:#fff}

/* 13 Nov 2026: keep the 8-item nav (with News) on one row at typical desktop widths */
@media (min-width:1021px) and (max-width:1480px){
  .site-header .container{padding-left:16px;padding-right:16px}
  .site-header .nav{gap:0}
  .site-header .nav a{padding:8px 4px;font-size:.84rem;letter-spacing:0}
  html[lang=fr] .site-header .nav a,
  html[lang=sw] .site-header .nav a,
  html[lang=ar] .site-header .nav a{padding:8px 3px;font-size:.81rem}
}
