.wp-block-buttons { display: flex; flex-wrap: wrap;}
.wp-block-button,
p:has(> strong:only-child > a:only-child),
p:has(> a:only-child > strong:only-child),
p:has(> em:only-child > a:only-child),
p:has(> a:only-child > em:only-child),
.cta { font-size: 18px !important;  line-height: 1.4 !important; margin:1em 0;  margin: 0; letter-spacing: 0.01em;  }

p:not(.cta) + p.cta { margin-top: 1.5em;}
p.cta + p:not(.cta){ margin-bottom: 1.5em;}

/*.wp-block-button:last-child,*/
.cta:last-child { margin-bottom: 0;}

p > strong:only-child > a:only-child,
p > a:only-child > strong:only-child,
p > em:only-child > a:only-child,
p > a:only-child > em:only-child,
.wp-block-button a,
.cta a { margin:0 0 0.5em 0; display: inline-flex; align-items: center; font-style: normal; text-decoration: none; }

.cta a:last-child { margin-bottom: 0;}


ul.cta { display: flex; flex-wrap: wrap; gap:0.5em; }
ul.cta li { font-size: inherit; line-height: inherit; }
ul.cta li:not(:last-child) { margin-bottom: 16px; }

/*button[type="submit"]:not(.searchsubmit),*/
.wp-block-button a,
.cta a,
.cta span:not(.sr-only) {
    box-sizing: content-box;

    cursor:pointer;

    background:var(--erasmus_blue);
    border: 1px solid white;
    color:white;

    font-weight: 600 !important;


    font-size: inherit;
    line-height: inherit;

    vertical-align: top;

    display: inline-block;
    text-shadow: none;


    border-radius: 300px;

    padding: 0.75em 2em; min-height:1.25em;

    transition: all 0.2s ease;

    overflow: hidden;
    position: relative;

}
/*
button[type="submit"],

*/

.cta2 a {
    background: var(--hum_green);
    border: 1px solid var(--hum_blue);
    color: var(--hum_nearblack);
}

.pageheader .cta a {
    background: white; color: black; border-color: white;
}
.pageheader .cta2 a {
    border-color: var(--hum_blue);
    background-color: var(--hum_green);
    color: var(--hum_nearblack);

}
.pageheader ul.cta li+li a {
    background: transparent; color: inherit; border-color: currentColor;
}

.wp-block-button a:not(:last-child),
.cta a:not(:last-child) { margin-right: 8px;}

button[type="submit"]:is(:hover,:focus-visible),
.wp-block-button a:hover,
.cta a:is(:hover,:focus-visible),
.cta span:hover  {
    border-color: var(--hum_blue) !important ;
    background-color: var(--hum_green)  !important ;
    color: var(--hum_nearblack) !important;

}
.cta2 a:is(:hover,:focus-visible){
    border-color: white !important ;
    background-color: var(--hum_blue) !important ;
    color: white !important;
}

.pageheader .cta2 a:is(:hover,:focus-visible){
    border-color: white !important ;
    background-color: var(--hum_blue) !important ;
    color: white !important;
}

/*
.white .cta a:is(:hover,:focus-visible),
.lighter_blue .cta a:is(:hover,:focus-visible) {
    border-color: var(--hum_blue) !important;
    background-color: var(--hum_blue) !important;
    color: white !important;
}*/

body.grey .bodytext .cta a:is(:hover,:focus-visible){
    border-color: var(--white) !important;
    background-color: var(--white) !important;
    color: black !important;
}

.cta a:focus-visible {
    outline: 3px solid black;
    box-shadow: 0 0 0 6px white;
}


@media (prefers-color-scheme: dark) {

}



.wp-block-button a:focus-visible,
.cta a:focus-visible,
.cta span:focus-visible {  /* outline:2px solid var(--ttl_error); outline-offset: 2px; */   }

.cta a:not([href^="mailto:"])::after {
    content: "\2192";
    position: relative;

    font-family: 'Inter';
    /*margin-left: .33em;*/
    left: 0.33em;
}

/*
.cta.sq a {  border-radius: var(--radius_small);  padding: 0.75em 1em; }
*/
.cta a[href*="//"]:not([href*="//erasmus.newgraphic.ie"]):not([href*="//erasmusirelandhe.ie"]):not([href*="//www.erasmusirelandhe.ie"]):not([href^="mailto:"])::after {
    content: "\2197";
    position: relative;
    /*bottom: .2em;*/
    font-family: 'Inter';
    margin-left: .33em;
    left: 0.2em;
}

.cta a:is([href*=".pdf"],[href*=".doc"]):not([href^="mailto:"])::after {
    content: "\2193";
}

.cta.up a::after { transform: rotate(-90deg); }

p.biolink.cta a::after,
.cta.down a::after,
.cta :is(a[href$=".pdf"],a[href$=".doc"],a[href$=".docx"],a[href$=".xls"],a[href$=".xlsx"],a[href$=".csv"],a[href$=".txt"])::after { transform: rotate(90deg); }







@media all and (max-width: 599px) {
    .wp-block-button,
    .cta { font-size: 14px !important; }

    .cta a,
    .cta span  {
    }

}