@font-face {
    font-family: 'Baskervville';
    src: url('/fonts/Baskervville-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baskervville';
    src: url('/fonts/Baskervville-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baskervville';
    src: url('/fonts/Baskervville-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('/fonts/roboto-mono-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    height: 100%;
    margin: 0;
    background-color: #fcf2de;
    font-family: 'Baskervville', serif;
    font-size: 18px;
}

body {
    width: 1000px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.logo {
    font-weight: 400;
    font-size: 100px;
    letter-spacing: -0.06em;
    text-align: center;
    margin: 30px 0 0;
}

.menu {
    width: 100%;
    height: 30px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    border-top: 1px solid;
    border-bottom: 1px solid black;
    position: relative;
    top: -20px;
    padding: 5px 40px 7px 40px;
    box-sizing: border-box;
}

a {
    color: #000;
    font-weight: 600;
    text-decoration: underline dotted;
    text-decoration-color: rgba(0, 0, 0, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:visited {
    color: #000;
}

a:hover {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: #000;
}

.content a:not(.back-link)::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.25em;
    font-size: 0.9em;
    text-decoration: none;
}

.menu a {
    text-decoration: none;
}

.menu a:hover {
    text-decoration: underline dotted;
}

.content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: row;
}

.firstColumn,
.secondColumn,
.thirdColumn {
    flex: 1;
    box-sizing: border-box;
    padding: 7px;
    text-align: justify;
}

.vignette {
    position: relative;
    height: 1px;
    margin: 2.5rem 0;
    border: 0;
    overflow: visible;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.5) 16%,
        rgba(0, 0, 0, 0.5) 84%,
        transparent
    );
}

.vignette::after {
    content: var(--vignette-glyph);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 0.7rem;
    background: #fcf2de;
    color: #000;
    font-family: 'Baskervville', serif;
    font-size: var(--vignette-size, 1.3rem);
    line-height: 1;
}

.fleur-de-lis-vignette {
    --vignette-size: 1.0rem;
}

.fleur-de-lis-vignette::after {
    content: "";
    width: var(--vignette-size);
    height: var(--vignette-size);
    padding: 0 0.8rem;
    background-color: #fcf2de;
    background-image: url("/img/fleur-de-lis.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.interpunct-monogram-vignette {
    --vignette-glyph: "S·C";
    --vignette-size: 0.95rem;
}

.interpunct-monogram-vignette::after {
    font-weight: 600;
    letter-spacing: 0.08em;
}

.latest-holdings-reports {
    text-align: left;
}

.latest-holdings-reports h2 {
    margin-top: 10px;
}

.latest-holdings-subtitle {
    margin: 2px 0 10px;
    color: #555;
    font-size: 14px;
}

.latest-holding-card {
    padding: 10px 0;
}

.latest-holding-separator {
    margin: 1.1rem 0;
}

.latest-holding-separator:last-child {
    display: none;
}

.latest-holding-card h3 {
    margin: 0 0 3px;
    font-size: 18px;
}

.latest-holding-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.latest-holding-date {
    color: #555;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

.latest-holding-change-heading {
    color: #555;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    white-space: nowrap;
}

.latest-holding-changes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.latest-holding-changes li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    font-size: 14px;
}

.latest-holding-issuer {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-holding-changes .numeric {
    flex-shrink: 0;
}

.latest-holding-empty {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.historical-heading {
    margin-top: 35px;
    font-size: 20px;
    font-weight: 400;
    color: #666;
}

.historical-table {
    background: transparent;
}

.historical-table thead {
    background: transparent;
}

.historical-table th {
    font-size: 15px;
    font-weight: 400;
    color: #777;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.historical-table td {
    font-size: 14px;
    color: #777;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.historical-table a {
    color: #777;
    text-decoration-color: rgba(119, 119, 119, 0.45);
}

.historical-table tbody tr {
    transition: background-color 120ms ease;
}

.historical-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.holding-history-cell {
    padding: 2px 10px;
    vertical-align: middle;
}

.holding-sparkline {
    overflow: visible;
}

.footer {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 40px;
    text-align: center;
}

.footer-vignette {
    margin: 20px 5px;
}

body.error-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-code {
    font-size: 150px;
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1;
    margin: 0 0 20px 0;
}

.holdings-list-container,
.holdings-table-container {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 10px 40px 10px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 10px 0 5px 0;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    margin: 20px 0 5px 0;
    letter-spacing: -0.02em;
}

.back-link {
    display: inline-block;
    font-size: 15px;
    margin-bottom: 10px;
}

.portfolio-meta {
    display: flex;
    gap: 25px;
    margin: 10px 0 10px 0;
    font-size: 16px;
    color: #666;
    border-bottom: 1px solid #666;
    padding-bottom: 8px;
}

.price-history {
    margin: 18px 0 26px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
}

table thead {
    background-color: #f4e9d5;
}

table th,
table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    text-align: left;
}

table th {
    border-bottom: 2px solid #000;
    font-weight: 600;
    font-size: 20px;
}

th.col-numeric {
    text-align: right;
}

.sort-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sort-label {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sort-label:hover {
    text-decoration: underline;
}

.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    line-height: 0.7;
}

.sort-arrow {
    padding: 0;
    border: 0;
    background: none;
    color: #b7aa99;
    font-size: 8px;
    line-height: 0.8;
    cursor: pointer;
}

.sort-arrow.active {
    color: #000;
}

.sort-arrow:not(.active):hover {
    color: #555;
}

td.col-numeric {
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.numeric {
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.positive {
    color: #166534;
    font-weight: bold;
}

.negative {
    color: #991b1b;
    font-weight: bold;
}

table tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.empty-message {
    font-style: italic;
    margin: 20px 0;
    color: #666;
}


