/* CV CSS styles for US Letter format */

@import url('https://fonts.googleapis.com/css2?family=Belleza&display=swap');

:root {
    --page-width: 8.5in;
    --page-height: 11in;
    --page-margin: 0.5in;
    --sidebar-width: 2.75in;
    --sidebar-border: 1px solid #ddd;
    --sidebar-border-radius: 6px;
    --sidebar-horizontal-padding: 0.3in;
    --sidebar-vertical-padding: 0.2in;
    --sidebar-background: whitesmoke;
    --content-width: calc(var(--page-width) - (var(--page-margin) * 2));
    --main-width: calc(var(--content-width) - var(--sidebar-width) - 0.1in);
    --main-left-padding: 0;
    --main-right-padding: 0.2in;
    --paper-colour: white;
    --paper-shadow-colour: #bfbfbf;
    --text-colour: #333;
    --text-font-size: 10pt;
    --title-font-size: 24pt;
    --institution-color: #2c2c2c;
    --job-title-color: #404040;
    --accent-color: #666666;
}

@page {
    size: 8.5in 11in portrait;
    margin: 0.5in;

    @bottom-right {
        content: "Updated: September 2025";
        width: 50mm;
        height: 10mm;
        font-size: 8pt;
        color: #666;
    }
}

#cv-page-1 {
    page: cv-page-1;
}

/* Style and interface */

body {
    background-color: #fbfbfb;
    font-size: var(--text-font-size);
    font-weight: 300;
    color: var(--text-colour);
    font-family: "Belleza", "Open Sans", sans-serif;
    hyphens: auto;
    line-height: 1.4;
    margin: 0;
    padding: 10px;
}

section {
    break-before: page;
    width: var(--page-width);
    height: var(--page-height);
    position: relative;
    margin: 0 auto;
    padding: 0;
}

h1 {
    font-size: var(--title-font-size);
    margin-top: 0;
    margin-bottom: 0.1in;
    font-weight: 400;
    color: var(--institution-color);
}

h2 {
    font-size: 14pt;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--institution-color);
}

.sidebar h2 {
    font-size: 12pt;
    margin-bottom: 6px;
}

h3 {
    font-size: 11pt;
    margin: 0;
    font-weight: 400;
    color: var(--job-title-color);
}

.institution {
    font-weight: 600;
    color: var(--institution-color);
    font-size: 11pt;
}

.institution-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.earlier-position {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.education-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.education-text {
    font-size: 10pt;
    color: var(--text-colour);
}

a {
    color: var(--text-colour);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.block h3 {
    margin-bottom: 8px;
}

.position-text {
    font-size: 10pt;
    color: var(--text-colour);
}

.job-title {
    font-weight: 500;
    color: var(--job-title-color);
    font-size: 10pt;
    margin-top: 2px;
}

.job-title-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 2px;
}

.date {
    font-size: 9pt;
    font-weight: 300;
    color: #666;
}

ul {
    padding-left: 0;
    margin-left: 16pt;
    margin-top: 6px;
    margin-bottom: 6px;
}

li {
    margin-left: -4.25pt;
    margin-bottom: 2px;
    line-height: 1.2;
}

.main {
    width: var(--main-width);
    padding-left: var(--main-left-padding);
    padding-right: var(--main-right-padding);
    padding-top: 0;
    padding-bottom: 0;
    float: left;
    position: relative;
}

.subsection {
    padding-top: 20px;
    padding-bottom: 0;
}

.subsection:first-child {
    padding-top: 5px;
}

.block {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 0;
    padding-right: 0;
    line-height: 1.2;
}

.experience-item {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.experience-item:last-child {
    border-bottom: none;
}

.title {
    position: relative;
    left: 0;
    line-height: 1.2;
    padding-bottom: 0;
    margin-bottom: 0;
}

.title h1 {
    font-size: var(--title-font-size);
    font-weight: 400;
    padding-bottom: 0px;
    margin-bottom: 10px;
}

.title p {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 5px; /* space between subtitle and Education */
    font-size: 13.61px;
    color: #666;
    font-style: italic;
}

.sidebar {
    width: var(--sidebar-width);
    padding-left: var(--sidebar-horizontal-padding);
    padding-right: var(--sidebar-horizontal-padding);
    padding-top: var(--sidebar-vertical-padding);
    padding-bottom: var(--sidebar-vertical-padding);
    float: right;
    position: absolute;
    right: calc(var(--page-margin) + 0.4in);
    top: 0;
    border: var(--sidebar-border);
    border-radius: var(--sidebar-border-radius);
    background-color: var(--sidebar-background);
    height: calc(100% - 2 * var(--sidebar-vertical-padding) - 0.7in);
    box-sizing: border-box;
}

.sidebar .block {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar .block:last-child {
    border-bottom: none;
}

.sidebar p {
    font-size: 10pt;
    line-height: 1.3;
    margin: 0;
    color: #555;
}

.sidebar ul {
    font-size: 10pt;
    margin-left: 12pt;
}

.sidebar li {
    margin-bottom: 2px;
}

.leadership-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.leadership-section:last-child {
    border-bottom: none;
}

.leadership-section h3 {
    font-size: 10pt;
    margin: 0 0 4px 0;
    color: var(--accent-color);
    font-weight: 500;
}

.leadership-section p {
    font-size: 8pt;
    margin: 0;
    line-height: 1.2;
}

@media screen,
pagedjs-ignore {

    .pagedjs_page {
        background-color: var(--paper-colour);
        box-shadow: 0 0 0 1px var(--paper-shadow-colour);
        margin: 1mm;
    }

    .pagedjs_pages {
        display: flex;
        max-width: var(--pagedjs-width);
        flex: 0;
        flex-wrap: wrap;
        margin: 0 auto;
    }

}
