/* Homepage adaptation of the existing Material CV template. */
:root {
    color-scheme: light;
    --cv-background: #f5f5f5;
    --cv-surface: #fff;
    --cv-text: #3e3e3e;
    --cv-secondary: #59636c;
    --cv-accent: #046c40;
    --cv-border: #d7dce0;
}
html, body { background: var(--cv-background); color: var(--cv-text); line-height: 1.65; }
body :is(h1, h2, h3, h4, h5, h6) { color: var(--cv-text); font-family: Raleway, sans-serif; }
body :is(p, a, li, div, span, button) { font-family: Muli, sans-serif; }
body p { color: var(--cv-secondary); }
body a, body a:hover, body a:focus { color: var(--cv-accent); }
a:hover, a:focus { text-decoration: underline; text-underline-offset: .2em; }
body :focus-visible { outline: 3px solid var(--cv-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 75px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--cv-surface); }
.skip-link:focus { top: 16px; }
body .card { background: var(--cv-surface); color: var(--cv-text); border: 1px solid var(--cv-border); box-shadow: none; }
body .card .card-content p { color: var(--cv-secondary); text-align: left; }
body .card .card-content p + p { margin-top: 15px; }
body .card .card-action { border-color: var(--cv-border); }
#home .header-background { height: auto; padding: 105px 0 28px; background-attachment: scroll; }
#home .header-background #v-card-holder { position: relative; top: auto; }
#home .header-background #v-card-holder #v-card { background: var(--cv-surface); margin: 0; height: 400px; }
#home .header-background #v-card-holder #v-card > .card-content { width: calc(100% - 400px); padding: 35px; }
#home .header-background #v-card-holder #v-card .info-headings { max-width: none; }
.info-headings h1 { font-size: 32px; line-height: 1.25; font-weight: 600; margin: 0 0 18px; }
#home .card-content .professional-subheading { color: var(--cv-text); font-family: Raleway, sans-serif; font-size: 17px; line-height: 1.6; margin: 0; }
#home .header-background #v-card-holder #v-card .infos { margin-top: 24px; max-width: none; }
.profile-list { list-style: none; margin: 0; padding: 0; }
.profile-list li { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.profile-list .fa { width: 18px; flex-shrink: 0; color: var(--cv-secondary); }
.profile-list a { overflow-wrap: anywhere; }
#home .header-background #v-card-holder #v-card .links { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; height: auto; max-width: none; }
#home .header-background #v-card-holder #v-card .links .social { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; margin: 0; border-radius: 50%; }
.social img { width: 28px; height: 28px; border-radius: 50%; }
#home .header-background #v-card-holder #v-card #profile .slant { border-style: solid; border-left-color: var(--cv-surface); }
#about { margin-top: 0; }
#about .card-content { padding-bottom: 24px; }
#about .about-btn { padding: 12px; }
#about .about-btn .btn { background: var(--cv-text); color: var(--cv-surface); height: auto; min-height: 44px; padding: 10px 18px; box-shadow: none; text-transform: none; }
#about .about-btn .btn:hover, #about .about-btn .btn:focus, #about .about-btn .btn:active { background: var(--cv-accent); color: var(--cv-background); }
.resource-type { font-size: 12px; }
.section { padding-block: 20px; }
.section .section-title { margin: 0 0 24px; }
.section-title h2 { font-size: 24px; line-height: 1.4; font-weight: 500; text-align: center; text-transform: uppercase; margin: 0; }
.section-title .title-icon { font-size: 23px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-grid .card { margin: 0; }
.project-grid .card-content { padding: 24px; }
.project-category { font-size: 12px; color: var(--cv-secondary); }
.project-card h3 { font-size: 19px; line-height: 1.45; font-weight: 600; margin: 12px 0; }
.project-card h3 a { color: var(--cv-text); }
.status { font-size: 12px; margin: 18px 0 8px !important; }
.text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; }
.section-link { text-align: center; margin: 20px 0 0; }
.section-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.expertise-item h3 { font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.expertise-item p { font-size: 14px; }
#timeline-experience::before { background: var(--cv-border); height: auto; top: 20px; bottom: 20px; opacity: 1; }
.timeline-block, .timeline-block:first-child, .timeline-block:last-child { margin: 20px 0; }
.timeline-block .timeline-content { background: var(--cv-surface); border-left-color: var(--cv-text); }
.timeline-block .timeline-content::before, .timeline-block:nth-child(even) .timeline-content::before { top: 55px; background: var(--cv-text); width: 14%; }
.timeline-block .timeline-dot { top: 32px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--cv-border); box-shadow: none; }
.organization-logo { display: block; width: 36px; height: 36px; object-fit: contain; }
.organization-logo-decagon { border-radius: 3px; }
.organization-logo-google { width: 30px; height: 30px; }
.timeline-block .timeline-content h3 { font-size: 18px; line-height: 1.5; margin: 0; }
.entry-meta { font-size: 12px; }
.publication-list .list-heading { font-size: 14px; font-weight: 600; margin-top: 24px; }
.publication-list article { border-top: 1px solid var(--cv-border); padding: 16px 0; }
.publication-list article h3 { font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.publication-list article a { display: inline-block; padding-block: 10px; }
.legacy-anchors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding-block: 12px; font-size: 12px; }
.legacy-anchors a { display: inline-flex; align-items: center; min-height: 44px; }
footer { background: var(--cv-background); padding: 24px 0; text-align: center; }
footer .template-credit { font-size: 12px; }
@media (min-width: 768px) and (max-width: 991px) {
    #home .header-background #v-card-holder #v-card { height: 440px; }
    #home .header-background #v-card-holder #v-card #profile img { width: 300px; height: 440px; object-fit: cover; }
    #home .header-background #v-card-holder #v-card #profile .slant { border-left-width: 45px; border-top-width: 440px; }
    #home .header-background #v-card-holder #v-card > .card-content { width: calc(100% - 300px); padding: 25px; }
    .info-headings h1 { font-size: 27px; }
    #home .card-content .professional-subheading { font-size: 15px; }
}
@media (max-width: 767px) {
    #home .header-background { padding: 150px 0 15px; }
    #home .header-background #v-card-holder #v-card { top: auto; height: auto; overflow: visible; padding-top: 90px; }
    #home .header-background #v-card-holder #v-card #profile { position: absolute; top: -75px; bottom: auto; left: 50%; transform: translateX(-50%); width: 150px; }
    #home .header-background #v-card-holder #v-card #profile img { display: block; width: 150px; height: 150px; border-radius: 50%; box-shadow: none; }
    #home .header-background #v-card-holder #v-card > .card-content { width: 100%; padding: 15px 24px 24px; }
    .info-headings h1 { font-size: 27px; text-align: center; }
    #home .card-content .professional-subheading { text-align: center; font-size: 15px; }
    #home .header-background #v-card-holder #v-card .infos { display: block; margin: 22px 0 0; }
    #home .header-background #v-card-holder #v-card .links { justify-content: center; }
    .project-grid, .expertise-grid { grid-template-columns: 1fr; }
    .card .card-content { padding: 24px; }
    .section-title h2 { font-size: 21px; }
    .section .section-title .title-icon { margin-right: 12px; }
    #timeline-experience::before { display: none; }
    .timeline-block .timeline-dot { top: 32px; left: 20px; right: auto; width: 44px; height: 44px; margin: 0; }
    .timeline-block .timeline-dot .organization-logo { width: 32px; height: 32px; }
    .timeline-block .timeline-dot .organization-logo-google { width: 28px; height: 28px; }
    .timeline-block .timeline-content { width: 100%; }
    .timeline-block .timeline-content .timeline-title { max-width: none; min-height: 44px; padding-left: 56px; }
    .project-card h3, .publication-list article h3 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
