/* Approved secondary in-page CTA: exact five anchors, no other buttons or forms. */
body[data-page] #app a[class][href="#ag16-offers"],
body[data-page] #app a[class][href="#research-situations"],
body[data-page] #app a[class][href="#aw-models"],
body[data-page] #app a[class][href="#www-efekt"],
body[data-page] #app a[class][href="#ds-discovery-results"]{
 display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;
 color:#0050FF!important;background:transparent!important;border:0!important;border-bottom:1px solid currentColor!important;border-radius:0;
 padding:0 0 4px;margin:0;min-height:0;height:auto;width:fit-content!important;inline-size:fit-content!important;max-width:100%;justify-content:flex-start!important;text-align:left!important;
 font-size:14px;font-weight:800;line-height:1.56;text-decoration:none;white-space:normal;box-shadow:none;transform:none;
}
body[data-page] #app a[class][href="#ag16-offers"]:hover,
body[data-page] #app a[class][href="#research-situations"]:hover,
body[data-page] #app a[class][href="#aw-models"]:hover,
body[data-page] #app a[class][href="#www-efekt"]:hover,
body[data-page] #app a[class][href="#ds-discovery-results"]:hover{color:#111216!important;background:transparent!important;transform:none}
body[data-page] #app a[class][href="#ag16-offers"]:focus-visible,
body[data-page] #app a[class][href="#research-situations"]:focus-visible,
body[data-page] #app a[class][href="#aw-models"]:focus-visible,
body[data-page] #app a[class][href="#www-efekt"]:focus-visible,
body[data-page] #app a[class][href="#ds-discovery-results"]:focus-visible{outline:3px solid #0050FF;outline-offset:4px}

/* Approved 24px gap; mobile secondary link centered under the full-width primary. */
body[data-page="/discovery-sprint"] #app .ds-hero .ds-actions,
body[data-page="/agencje"] #app .ag16-hero .ag16-actions,
body[data-page="/badania"] #app .rs-hero .rs-hero-actions,
body[data-page="/strony-www-dla-agencji"] #app .aw-hero .actions,
body[data-page="/strony-www"] #app .www-hero .actions{gap:24px!important}
@media(max-width:809px){
body[data-page="/discovery-sprint"] #app .ds-hero .ds-actions,
body[data-page="/agencje"] #app .ag16-hero .ag16-actions,
body[data-page="/badania"] #app .rs-hero .rs-hero-actions,
body[data-page="/strony-www-dla-agencji"] #app .aw-hero .actions,
body[data-page="/strony-www"] #app .www-hero .actions{display:grid!important;grid-template-columns:minmax(0,1fr);gap:24px!important}
body[data-page] #app a[class][href="#ag16-offers"],
body[data-page] #app a[class][href="#research-situations"],
body[data-page] #app a[class][href="#aw-models"],
body[data-page] #app a[class][href="#www-efekt"],
body[data-page] #app a[class][href="#ds-discovery-results"]{justify-self:center;margin-inline:auto}
body[data-page="/discovery-sprint"] #app .ds-hero .ds-actions > a:first-child,body[data-page="/agencje"] #app .ag16-hero .ag16-actions > a:first-child,body[data-page="/badania"] #app .rs-hero .rs-hero-actions > a:first-child,body[data-page="/strony-www-dla-agencji"] #app .aw-hero .actions > a:first-child,body[data-page="/strony-www"] #app .www-hero .actions > a:first-child{width:100%!important;inline-size:100%!important}
}

/* Legacy agency flex stretch must not lower the underline to button height. */
body[data-page="/agencje"] #app .ag16-hero .ag16-actions > a.btn[href="#ag16-offers"]{align-self:center}
@media(max-width:809px){
/* Beat legacy full-width HERO .btn rules only for the two secondary anchors. */
body[data-page="/agencje"] #app .ag16-hero .ag16-actions > a.btn[href="#ag16-offers"],
body[data-page="/strony-www"] #app .www-hero .actions > a.btn[href="#www-efekt"]{
 width:fit-content!important;inline-size:fit-content!important;max-width:100%!important;min-width:0!important;
 justify-self:center;align-self:center;margin-inline:auto;
}
}
