/* Remove border-bottom from header anchor links - higher specificity to override style.css */
.entry-content .aal_anchor,
.entry-content .aal_anchor:hover,
.entry-content .aal_anchor:focus,
.entry-content .aal_anchor:active {
    border-bottom: none !important;
    text-decoration: none !important;
    transition: none !important;
    position: relative;
    top: 2pt;
}

/* Remove the :after pseudo-element that creates the animated underline */
.entry-content .aal_anchor:after {
    display: none !important;
    content: none !important;
}

/* Also target anchor links that might be in other containers */
h1 .aal_anchor, 
h2 .aal_anchor, 
h3 .aal_anchor, 
h4 .aal_anchor, 
h5 .aal_anchor, 
h6 .aal_anchor {
    border-bottom: none !important;
    text-decoration: none !important;
    transition: none !important;
    position: relative;
    top: 2pt;
}

h1 .aal_anchor:hover,
h2 .aal_anchor:hover,
h3 .aal_anchor:hover,
h4 .aal_anchor:hover,
h5 .aal_anchor:hover,
h6 .aal_anchor:hover,
h1 .aal_anchor:focus,
h2 .aal_anchor:focus,
h3 .aal_anchor:focus,
h4 .aal_anchor:focus,
h5 .aal_anchor:focus,
h6 .aal_anchor:focus {
    border-bottom: none !important;
    text-decoration: none !important;
}

/* Remove :after pseudo-elements from header anchors too */
h1 .aal_anchor:after,
h2 .aal_anchor:after,
h3 .aal_anchor:after,
h4 .aal_anchor:after,
h5 .aal_anchor:after,
h6 .aal_anchor:after {
    display: none !important;
    content: none !important;
}

/* Remove outline box on clicked/focused links */
a:focus {
    outline: none !important;
}

.entry-content a:focus,
p:not(.site-title) a:focus,
span a:focus,
.nav-previous a:focus,
.nav-next a:focus {
    outline: none !important;
}

/* Remove underlines/borders from links that contain images */
a img {
    border: none !important;
}

a:has(img),
a:has(img):hover,
a:has(img):focus,
a:has(img):active {
    border-bottom: none !important;
    text-decoration: none !important;
    transition: none !important;
}

a:has(img):after {
    display: none !important;
    content: none !important;
}

/* Also target specific classes that might wrap images */
.no-underline,
.no-underline:hover,
.no-underline:focus,
.no-underline:active {
    border-bottom: none !important;
    text-decoration: none !important;
    transition: none !important;
}

.no-underline:after {
    display: none !important;
    content: none !important;
}

/* Profile paragraph positioning */
.widget_custom_html .textwidget p:has(.profile) {
    position: relative !important;
    margin-left: 66px !important; /* 56px width + 10px spacing */
    min-height: 56px !important;
}

/* Profile link positioning - position absolutely within the paragraph */
a:has(.profile) {
    position: absolute !important;
    left: -66px !important; /* Move into the left margin */
    top: 0 !important;
    display: block !important;
}

/* Profile image styling */
.profile {
    border-radius: 2pt !important;
    margin: 0 !important;
}

/* Muse icon float styling */
img[src*="muse"] {
    float: left !important;
    margin: 0 10px 10px 0 !important;
}

/* Override Enlightener font size - make it more readable */
.enlighter-t-beyond,
.enlighter-t-beyond .enlighter-text {
    font-size: 12pt !important;
}

/* Hide all Enlightener toolbar buttons */
.enlighter-toolbar {
    display: none !important;
}

/* Customize Beyond theme colors and styling */
.enlighter-t-beyond {
    background-color: #fafafa !important;
    border: solid 1px #e0e0e0 !important;
    border-radius: 8px !important;
}

.enlighter-t-beyond div.enlighter>div {
    background-color: #fafafa !important;
}

.enlighter-t-beyond div.enlighter>div.enlighter-special {
    background-color: #f0f8ff !important;
}

/* Customize line numbers */
.enlighter-t-beyond.enlighter-linenumbers div.enlighter>div::before {
    color: #999 !important;
    background-color: #f5f5f5 !important;
}

/* Extend navigation to counteract row padding */
nav.pagination {
    margin: 0 24px 0 -30px;
}

.nav-links {
    margin: 0 -0.5rem;
}

/* Style navigation links - bigger and medium weight */
.nav-links a {
    font-size: 1.2em !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border: 1pt #454545 solid;
    border-radius: 4pt;
}

/* Alternative: inherit from page font size */
/* 
.enlighter-default,
.enlighter-default .enlighter-text {
    font-size: inherit !important;
}
*/