/* SMG V29.3 Gold Edge Total Polish
   Targeted global visual correction after live review:
   - prevents cropped first letters in footer/section/card headings
   - makes all title tiers gold, all body copy readable white
   - compacts legacy footers/quick-link ribbons to remove black holes
   - stabilizes forms, cards, tables and Monaco/SMG watermark layering. */
:root{
  --smg-v293-gold:#f4d276;
  --smg-v293-gold-2:#d6a948;
  --smg-v293-white:#fffaf0;
  --smg-v293-soft:#eadfca;
  --smg-v293-panel:rgba(7,9,12,.94);
  --smg-v293-line:rgba(244,210,118,.45);
  --smg-v293-line-soft:rgba(244,210,118,.22);
  --smg-v293-grad:linear-gradient(135deg,#fff7bd 0%,#f4d276 24%,#d6a948 52%,#9c7027 76%,#ffe596 100%);
}
html,body{background-color:#020304!important;color:var(--smg-v293-white)!important;overflow-x:hidden!important;}
body{letter-spacing:0!important;text-rendering:geometricPrecision!important;-webkit-font-smoothing:antialiased!important;}
*,*::before,*::after{box-sizing:border-box!important;}
/* 1) Absolute title discipline — no cropped first glyphs */
h1,h2,h3,h4,h5,h6,
.smg-title,.section-title,.page-title,.smg-display,.smg-kicker,.smg-eyebrow,.eyebrow,
[class*="title"],[class*="Title"],[class*="heading"],[class*="Heading"],
[class*="kicker"],[class*="Kicker"],.smg-v282-table th,th,
footer h1,footer h2,footer h3,footer h4,footer h5,footer h6,
.smg-guardian-footer h3,.smg-guardian-footer h4,.smg-executive-control-card h3{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background:var(--smg-v293-grad)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  text-shadow:0 10px 30px rgba(0,0,0,.62),0 0 18px rgba(244,210,118,.16)!important;
  overflow:visible!important;
  clip-path:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  padding-left:.08em!important;
  margin-left:-.08em!important;
  padding-top:.04em!important;
  padding-bottom:.05em!important;
  max-width:100%!important;
}
h1,.smg-display,.page-title{line-height:1.08!important;}
h2{line-height:1.10!important;}
h3,h4,h5,h6{line-height:1.18!important;}
/* 2) Text readability */
p,li,a,span,small,td,th,label,legend,summary,dd,dt,input,textarea,select,button{
  color:var(--smg-v293-white)!important;
  -webkit-text-fill-color:currentColor!important;
}
p,li,dd,td,th,label,summary{line-height:1.62!important;}
.muted,.smg-muted,.lead,.smg-lead,.subtitle,.description,.smg-card p,.card p,.smg-v282-card p,footer p{color:var(--smg-v293-soft)!important;}
/* 3) Stop first-letter clipping inside modules */
section,.smg-card,.card,.smg-v282-card,.smg-detail,.smg-pipeline-stage,.panel,.module,.box,article[class*="card"],div[class*="card"]{
  overflow:visible!important;
}
section::before,.smg-card::before,.card::before,.smg-v282-card::before,.smg-detail::before,.smg-pipeline-stage::before,article[class*="card"]::before,div[class*="card"]::before{
  border-radius:inherit!important;
  overflow:hidden!important;
}
section,.smg-card,.card,.smg-v282-card,.smg-detail,.smg-pipeline-stage,.panel,.module,.box,article[class*="card"],div[class*="card"],form,fieldset,table{
  background:
    radial-gradient(circle at 82% 6%,rgba(244,210,118,.10),transparent 32%),
    linear-gradient(145deg,rgba(9,11,15,.96),rgba(3,4,7,.88))!important;
  border-color:var(--smg-v293-line)!important;
}
/* 4) Footer correction: cropped Platform/Operations/Executive Contact fixed */
.smg-guardian-footer,.smg-guardian-footer *{overflow:visible!important;clip-path:none!important;}
.smg-guardian-footer{padding:clamp(28px,3.5vw,54px) clamp(18px,4vw,58px)!important;margin-top:24px!important;}
.smg-guardian-footer-grid{
  display:grid!important;
  grid-template-columns:minmax(260px,1.5fr) minmax(160px,.8fr) minmax(180px,.9fr) minmax(260px,1.1fr)!important;
  gap:clamp(22px,3vw,46px)!important;
  align-items:start!important;
  max-width:1380px!important;
  margin:0 auto!important;
}
.smg-guardian-footer section{
  min-width:0!important;
  padding-left:12px!important;
  padding-right:12px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  margin:0!important;
}
.smg-guardian-footer h3,.smg-guardian-footer h4{
  display:block!important;
  margin:0 0 12px!important;
  padding-left:.12em!important;
  margin-left:-.12em!important;
  letter-spacing:.01em!important;
}
.smg-guardian-footer a{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  padding:5px 0!important;
  color:var(--smg-v293-white)!important;
  text-decoration:none!important;
  overflow-wrap:anywhere!important;
}
.smg-guardian-footer a:hover{color:var(--smg-v293-gold)!important;-webkit-text-fill-color:var(--smg-v293-gold)!important;}
/* 5) Legacy footer/quick links were creating large black gaps. Turn them into compact premium ribbons. */
footer.footer:not(.smg-guardian-footer),.footer:not(.smg-guardian-footer){
  min-height:0!important;
  height:auto!important;
  padding:14px clamp(16px,3vw,42px)!important;
  margin:18px auto 0!important;
  max-width:1380px!important;
  border:1px solid var(--smg-v293-line-soft)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,rgba(244,210,118,.06),rgba(4,5,8,.78))!important;
  box-shadow:0 20px 58px rgba(0,0,0,.35)!important;
  overflow:visible!important;
}
.smg-rc11-footer-links{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px 18px!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
}
.smg-rc11-footer-links a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border:1px solid var(--smg-v293-line-soft)!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.28)!important;
  color:var(--smg-v293-white)!important;
  text-decoration:none!important;
}
/* 6) Forms/buttons: avoid huge empty areas and ensure CTA text contrast */
form,.smg-mail-form{overflow:visible!important;min-height:0!important;}
textarea{min-height:118px!important;resize:vertical!important;}
button,.btn,.button,.smg-btn,.smg-v282-btn,a[class*="btn"],input[type="submit"]{
  white-space:normal!important;
  overflow:visible!important;
  text-align:center!important;
}
button[type="submit"],input[type="submit"],.btn:not(.ghost),.smg-btn-primary,.smg-v282-btn:not(.ghost){
  background:var(--smg-v293-grad)!important;
  color:#120e06!important;
  -webkit-text-fill-color:#120e06!important;
  text-shadow:none!important;
  border-color:rgba(255,231,150,.72)!important;
}
/* 7) Tables/admin analytics stability */
table,.table,.smg-v282-table{overflow:visible!important;max-width:100%!important;}
th,td{padding-left:16px!important;padding-right:16px!important;}
.smg-v282-admin-hero,.hero,[class*="hero"]{overflow:visible!important;}
.smg-v282-admin-hero h1,.hero h1,[class*="hero"] h1{padding-left:.08em!important;margin-left:-.08em!important;}
/* 8) Monaco watermark stays background, never on top of text */
body::after{z-index:0!important;pointer-events:none!important;opacity:.085!important;}
main,header,footer,section,.smg-guardian-footer,.smg-executive-control-card{position:relative!important;z-index:1!important;}
/* 9) Mobile/tablet */
@media(max-width:1100px){
  .smg-guardian-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px){
  .smg-guardian-footer{padding:26px 16px!important;}
  .smg-guardian-footer-grid{grid-template-columns:1fr!important;gap:20px!important;}
  .smg-guardian-footer section{padding-left:10px!important;padding-right:10px!important;}
  h1,h2,h3,h4,h5,h6{padding-left:.10em!important;margin-left:-.10em!important;}
}
