/* Make site name match h1 styling */
.md-header__title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-left: 16px !important;
    padding: 6px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

/* Larger on desktop (when navigation tabs show) */
@media screen and (min-width: 76.25em) {
    .md-header__title {
        font-size: 2rem;
    }
}

/* Keep both header topics bold */
.md-header__topic {
    font-weight: 700 !important;
}

/* Homepage only: disable animation and hide second topic */
body.homepage .md-header__topic {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

body.homepage .md-header__topic:last-child {
    display: none !important;
}

/* Ensure non-homepage pages still animate properly */
body:not(.homepage) .md-header__topic {
    transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.15s;
}

.md-header__button.md-logo {
    display: none;
}

/* Make H1 headings darker/black instead of grey */
.md-typeset h1 {
    color: var(--md-default-fg-color);
}

/* Profile photo styling */
.profile-image {
    float: left;
    margin: 0 2rem 1rem 0;
    max-width: 280px;
}

.profile-photo {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Ensure h2 headings clear the float and appear below image */
.md-typeset .profile-image ~ * h2,
.md-typeset h2 {
    clear: both;
}

/* On mobile, center the image and don't float */
@media screen and (max-width: 60em) {
    .profile-image {
        float: none;
        margin: 0 auto 1.5rem;
        max-width: 240px;
        display: block;
    }
    
    .profile-photo {
        display: block;
        margin: 0 auto;
    }
}

/* Hide the page title in left sidebar, keep sub-navigation items */
.md-nav__item--active > .md-nav__link {
    display: none;
}

/* Make blog author avatar circular */
.md-author__image {
    border-radius: 50%;
}

/* Deep navy button styling - professional and classic */
.md-button--primary {
    background-color: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: white !important;
}

.md-button--primary:hover {
    background-color: #2c5282 !important;
    border-color: #2c5282 !important;
}

/* Apply navy styling to regular buttons (but not primary) */
.md-button:not(.md-button--primary) {
    border: 2px solid #1e3a5f !important;
    color: #1e3a5f !important;
}

.md-button:not(.md-button--primary):hover {
    background-color: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: white !important;
}

/* Match link colors to navy theme (but not buttons) */
.md-typeset a:not(.md-button) {
    color: #1e3a5f !important;
}

.md-typeset a:not(.md-button):hover {
    color: #2c5282 !important;
}

/* Lighter links in dark mode */
[data-md-color-scheme="slate"] .md-typeset a:not(.md-button) {
    color: #60a5fa !important;
}

[data-md-color-scheme="slate"] .md-typeset a:not(.md-button):hover {
    color: #93c5fd !important;
}

/* Lighter buttons in dark mode */
[data-md-color-scheme="slate"] .md-button--primary {
    background-color: #60a5fa !important;
    border-color: #60a5fa !important;
}

[data-md-color-scheme="slate"] .md-button--primary:hover {
    background-color: #93c5fd !important;
    border-color: #93c5fd !important;
}

[data-md-color-scheme="slate"] .md-button:not(.md-button--primary) {
    border-color: #60a5fa !important;
    color: #60a5fa !important;
}

[data-md-color-scheme="slate"] .md-button:not(.md-button--primary):hover {
    background-color: #60a5fa !important;
    border-color: #60a5fa !important;
    color: white !important;
}

/* Add spacing between buttons on mobile */
@media screen and (max-width: 60em) {
    .md-typeset .md-button {
        display: block;
        width: 100%;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .md-typeset .md-button:last-child {
        margin-bottom: 0;
    }
}

/* Make footer social icons white */
.md-footer .md-social__link svg {
    fill: white !important;
}

.md-footer .md-social__link:hover svg {
    fill: rgba(255, 255, 255, 0.7) !important;
}

/* Sidebar author profile */
.sidebar-author {
    display: none;
}

.sidebar-author-wrapper {
    display: block !important;
}

.sidebar-author__profile {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.sidebar-author__image {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-author__info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-author__info strong {
    font-size: 0.64rem;
    line-height: 1.5;
}

.sidebar-author__info strong a {
    color: var(--md-default-fg-color);
    text-decoration: none;
}

.sidebar-author__description {
    font-size: 0.64rem;
    color: var(--md-default-fg-color--light);
    line-height: 1.5;
}

.sidebar-author__cta {
    margin-top: 0.8rem;
}

.sidebar-author__cta .md-button {
    width: 100%;
    text-align: center;
    font-size: 0.64rem;
    padding: 0.4rem 0.8rem;
}

/* Align site name with navigation tabs */
.md-header__inner {
    padding-left: 1rem;
}

@media screen and (min-width: 76.25em) {
    .md-header__inner {
        padding-left: 0;
    }
    
    .md-header__title {
        margin-left: 16px !important;
    }
}

