/* ============================================================
   Resume — Custom Styles
   ============================================================ */

/* --- Base Font Size --- */
.md-typeset {
    font-size: 0.7rem;
    line-height: 1.6;
}

/* --- Layout --- */
.md-grid {
    max-width: 820px;
}

/* Hide the default page title rendered by MkDocs Material */
.md-content h1:first-child {
    display: none;
}

/* --- Contact Icons --- */
.contact-icons {
    display: none; /* Hidden down in the markdown body */
}

.header-icons,
.header-icons p {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.0rem;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.header-icons {
    margin-right: 1rem;
}

.header-icons a {
    color: var(--md-default-fg-color);
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.header-icons a:hover {
    color: var(--md-accent-fg-color);
    opacity: 1;
    transform: translateY(-2px);
}

.header-icons .contact-icon {
    font-size: 1.15rem;
}

/* --- Download Button --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    color: #ffffff !important;
    background: var(--md-accent-fg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    
    /* Sticky bottom right */
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 100;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

@media screen and (max-width: 768px) {
    .download-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
}

/* --- Section Headings (h2) --- */
.md-typeset h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--md-accent-fg-color);
    margin-top: 1.6rem;
}

/* --- Job Titles (h3) --- */
.md-typeset h3 {
    font-weight: 600;
    font-size: 0.82rem;
    margin-top: 1.2rem;
    margin-bottom: 0.1rem;
}

/* --- Role Meta (dates / tenure) --- */
.role-meta {
    display: block;
    font-size: 0.68rem;
    color: var(--md-default-fg-color--lighter);
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* --- Skills Grid — single column to avoid wrapping --- */
.skills-grid {
    display: block;
}

.skills-grid dt {
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 0;
}

.skills-grid dd {
    font-size: 0.7rem;
    margin-left: 0;
    margin-bottom: 0.45rem;
    color: var(--md-default-fg-color--light);
}

/* --- Bullets --- */
.md-typeset ul li {
    margin-bottom: 0.25rem;
}

/* --- Horizontal Rule --- */
.md-typeset hr {
    border: none;
    border-top: 1px solid var(--md-default-fg-color--lightest);
    margin: 1.2rem 0;
}

/* --- Links --- */
.md-typeset a:not(.download-btn):not(.contact-icons a) {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.md-typeset a:not(.download-btn):not(.contact-icons a):hover {
    border-bottom-color: var(--md-accent-fg-color);
}

/* --- Print Styles --- */
@media print {
    .md-header,
    .md-footer,
    .md-sidebar,
    .download-btn {
        display: none !important;
    }

    .md-grid {
        max-width: 100%;
    }
}