/* Swarna Bharat Times Preferred Sources controls.
   Header CTA intentionally omitted. Preferred Sources appears beside footer socials
   and as a single button on article/page-share pages. */
.preferred-source-google-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:block;
}

@keyframes preferred-source-border-flow{
  0%{background-position:0 0,0% 50%}
  100%{background-position:0 0,300% 50%}
}

/* Footer: compact Google-style button beside social icons. */
.foot-social .preferred-source-footer-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:42px;
  padding:8px 13px;
  border:2px solid transparent;
  border-radius:7px;
  background:
    linear-gradient(#f8f9fa,#f8f9fa) padding-box,
    linear-gradient(90deg,#4285f4,#ea4335,#fbbc05,#34a853,#4285f4,#ea4335,#fbbc05,#34a853) border-box;
  background-size:100% 100%,400% 100%;
  background-position:0 0,0% 50%;
  color:#3c4043!important;
  font:600 13px/1.2 Arial,Helvetica,sans-serif;
  text-decoration:none!important;
  white-space:nowrap;
  line-height:1.2!important;
  box-shadow:0 1px 2px rgba(60,64,67,.12);
  animation:preferred-source-border-flow 10s linear infinite;
  transition:background-color .15s ease,box-shadow .15s ease,transform .15s ease,filter .15s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

/* Article/page share: one button only, with a slower moving Google-color border. */
.preferred-source-share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:min(100%,480px);
  min-height:50px;
  margin:10px 0 28px;
  padding:11px 18px;
  border:3px solid transparent;
  border-radius:12px;
  background:
    linear-gradient(105deg,#0f5fb7,#286ac2) padding-box,
    linear-gradient(90deg,#4285f4,#ea4335,#fbbc05,#34a853,#4285f4,#ea4335,#fbbc05,#34a853) border-box;
  background-size:100% 100%,400% 100%;
  background-position:0 0,0% 50%;
  color:#fff!important;
  font:700 16px/1.25 Arial,Helvetica,sans-serif;
  text-decoration:none!important;
  text-align:center;
  box-shadow:0 3px 9px rgba(15,63,126,.22);
  animation:preferred-source-border-flow 9s linear infinite;
  transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.preferred-source-share-btn .preferred-source-google-icon{
  width:23px;
  height:23px;
  flex-basis:23px;
  padding:2px;
  border-radius:50%;
  background:rgba(255,255,255,.9);
}

@media(hover:hover) and (pointer:fine){
  .foot-social .preferred-source-footer-btn:hover{
    background:
      linear-gradient(#fff,#fff) padding-box,
      linear-gradient(90deg,#4285f4,#ea4335,#fbbc05,#34a853,#4285f4,#ea4335,#fbbc05,#34a853) border-box;
    background-size:100% 100%,400% 100%;
    animation-duration:8s;
    box-shadow:0 3px 8px rgba(60,64,67,.2);
    transform:translateY(-1px);
  }
  .preferred-source-share-btn:hover{
    filter:brightness(1.07);
    animation-duration:7s;
    box-shadow:0 6px 16px rgba(15,63,126,.3);
    transform:translateY(-1px);
  }
}

.preferred-source-footer-btn:active,.preferred-source-share-btn:active{
  transform:translateY(1px) scale(.995);
}
.preferred-source-footer-btn:focus-visible,.preferred-source-share-btn:focus-visible{
  outline:3px solid #1f5bb8;
  outline-offset:3px;
}

@media(max-width:720px){
  .foot-social .preferred-source-footer-btn{
    min-height:44px;
    padding:9px 12px;
    font-size:12.5px;
  }
  .preferred-source-share-btn{
    width:100%;
    min-height:52px;
    font-size:15px;
    padding:12px 14px;
  }
}
@media(max-width:420px){
  .foot-social .preferred-source-footer-btn{
    flex-basis:100%;
    width:min(100%,280px);
    max-width:280px;
    margin-top:3px;
  }
  .preferred-source-share-btn{
    font-size:14.5px;
    border-width:2px;
    border-radius:11px;
  }
}
@media(prefers-reduced-motion:reduce){
  .preferred-source-footer-btn,.preferred-source-share-btn{
    animation:none;
    transition:none;
    background-position:0 0,45% 50%;
  }
}
