/* Pill buttons and text links across the site get the hero CTA's moving border highlight (scripts/build.mjs links this file on every page).
   Outline pills on dark sections also fill white on hover like the CTA; black pills on light sections keep their fill. */
@property --kr-a{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes kr-spin{to{--kr-a:360deg}}

.link-3,.link-6,.link-12,.link-2.linkbutton.invert,.link-2.content-grid-button:not(.blue),.kr-glow-wrap{position:relative;isolation:isolate;overflow:hidden}
.link-3::before,.link-6::before,.link-12::before,.link-2.linkbutton.invert::before,.link-2.content-grid-button:not(.blue)::before,.kr-glow-wrap::before{content:"";position:absolute;inset:-1px;z-index:1;border-radius:inherit;padding:1.5px;background:conic-gradient(from var(--kr-a),transparent 0deg,transparent 230deg,rgba(255,255,255,.5) 290deg,#fff 330deg,transparent 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:kr-spin 3.2s linear infinite;pointer-events:none}
.link-2.content-grid-button:not(.blue)::before,.kr-glow-wrap::before{inset:0}

/* outline pills: dimmed border, white fill wipes in on hover */
.link-3,.link-6,.link-12,.link-2.linkbutton.invert{border-color:rgba(255,255,255,.28);transition:color .3s,border-color .3s}
.link-3::after,.link-6::after,.link-12::after,.link-2.linkbutton.invert::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:#fff;transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.65,0,.35,1)}
.link-3:hover,.link-6:hover,.link-12:hover,.link-2.linkbutton.invert:hover{background-color:transparent;color:#000;border-color:#fff}
.link-3:hover::after,.link-6:hover::after,.link-12:hover::after,.link-2.linkbutton.invert:hover::after{transform:scaleX(1)}

/* black pills on light sections: lighter fill on hover */
.link-2.content-grid-button:not(.blue)::after,.kr-glow-wrap::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:#2b2b2b;transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.65,0,.35,1);pointer-events:none}
.link-2.content-grid-button:not(.blue):hover::after,.kr-glow-wrap:hover::after{transform:scaleX(1)}

/* form submit (an input has no ::before): the wrapper carries the effect */
.kr-glow-wrap{display:inline-block;vertical-align:top;border-radius:120px;margin:20px 0}
.kr-glow-wrap>input{position:relative;z-index:1;display:block;margin:0!important;background-color:transparent!important}
.kr-glow-wrap{background:#000}
@media screen and (max-width:767px){.kr-glow-wrap{display:block;align-self:stretch;width:100%;margin:40px 0 20px}.kr-glow-wrap>input{width:100%}}

/* text links (kr-link, kr-inline, review card links and Read more): subtle 1px grey underline; on hover a white line wipes in from the left like the button fill */
a.kr-link,a.kr-inline,a.sup-rev-site,.sup-more>span{text-decoration:none;background-image:linear-gradient(#fff,#fff),linear-gradient(rgba(255,255,255,.3),rgba(255,255,255,.3));background-repeat:no-repeat;background-position:0 100%,0 100%;background-size:0 1px,100% 1px;padding-bottom:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .45s cubic-bezier(.65,0,.35,1)}
a.kr-link:hover,a.kr-inline:hover,a.kr-link:focus-visible,a.kr-inline:focus-visible,a.sup-rev-site:hover,a.sup-rev-site:focus-visible,.sup-more:hover>span,.sup-more:focus-visible>span{background-size:100% 1px,100% 1px}

@media (prefers-reduced-motion:reduce){
  .link-3::before,.link-6::before,.link-12::before,.link-2.linkbutton.invert::before,.link-2.content-grid-button:not(.blue)::before,.kr-glow-wrap::before{animation:none;background:none}
  .link-3,.link-6,.link-12,.link-2.linkbutton.invert{border-color:#fff}
  a.kr-link,a.kr-inline,a.sup-rev-site,.sup-more>span{transition:none}
}
