/* ACM's Libertine/Biolinum families, adapted to a single-column web reading layout. */
@font-face {
    font-family: "Linux Libertine";
    src: url("fonts/libertine/LinLibertine_R.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Linux Libertine";
    src: url("fonts/libertine/LinLibertine_RI.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Linux Libertine";
    src: url("fonts/libertine/LinLibertine_RB.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Linux Libertine";
    src: url("fonts/libertine/LinLibertine_RBI.woff2") format("woff2");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Linux Biolinum";
    src: url("fonts/libertine/LinBiolinum_R.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Linux Biolinum";
    src: url("fonts/libertine/LinBiolinum_RB.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.research-notes {
    --notes-serif: "Linux Libertine", "Linux Libertine O", Georgia, serif;
    --notes-sans: "Linux Biolinum", "Linux Biolinum O", "Helvetica Neue", sans-serif;
    color: #252525;
}

/* Bootstrap assigns Helvetica directly to p, so inheritance from #main is insufficient. */
.research-notes p {
    font-family: var(--notes-serif);
}

.research-notes #content.row {
    margin-left: 0;
}

.research-notes #main {
    box-sizing: border-box;
    float: none;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    font-family: var(--notes-serif);
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
}

.notes-header {
    padding: 48px 0 34px;
    border-bottom: 1px solid #383838;
}

.research-notes .notes-eyebrow,
.research-notes .post-kicker {
    margin: 0 0 18px;
    color: #555;
    font-family: var(--notes-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notes-header h1 {
    margin: 0 0 18px;
    font-family: var(--notes-sans);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.notes-intro {
    max-width: 650px;
    margin: 0;
    color: #5b636b;
    font-size: 18px;
    line-height: 1.6;
}

.notes-archive-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 4px;
}

.notes-archive-heading h2 {
    margin: 0;
    font-family: var(--notes-sans);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
}

.notes-archive-heading p {
    margin: 0;
    color: #68727b;
    font-family: var(--notes-sans);
    font-size: 13px;
}

.notes-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.notes-list > li {
    padding: 30px 0;
    border-bottom: 1px solid #dfe3e7;
}

.note-entry {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.notes-list > li:first-child {
    grid-column: 1 / -1;
}

.notes-list > li:first-child .note-entry {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
}

.notes-list > li:first-child h3 {
    font-size: 32px;
}

.note-cover {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #e0e4e8;
    background: #f2f4f5;
}

.note-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.note-cover.note-cover-scale {
    background: #fff;
}

.note-cover-scale img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.research-notes .note-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin: 0 0 8px;
    color: #68727b;
    font-family: var(--notes-sans);
    font-size: 12px;
    line-height: 1.5;
}

.note-meta > span {
    color: #555;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.note-entry h3 {
    margin: 0 0 10px;
    font-family: var(--notes-sans);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0;
}

.note-entry h3 a {
    color: #243949;
    text-decoration: none;
}

.note-entry h3 a:hover {
    color: #80534b;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.research-notes a:focus-visible {
    outline: 2px solid #80534b;
    outline-offset: 4px;
}

.note-summary {
    margin: 0 0 12px;
    color: #535d65;
    font-size: 17px;
    line-height: 1.55;
}

.note-topics {
    display: block;
    color: #68727b;
    font-family: var(--notes-sans);
    font-size: 12px;
    line-height: 1.6;
}

.note-content {
    min-width: 0;
}

.note-citation {
    margin-top: 14px;
    color: #68727b;
    font-size: 14px;
    line-height: 1.6;
}

.note-citation summary {
    font-family: var(--notes-sans);
    width: fit-content;
    padding: 4px 0;
    cursor: pointer;
}

.note-citation summary span {
    margin-left: 8px;
    color: #80534b;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.note-citation summary:focus-visible {
    outline: 2px solid #80534b;
    outline-offset: 4px;
}

.note-citation p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.note-citation pre {
    padding: 14px;
    border: 1px solid #e1e5e8;
    border-radius: 0;
    background: #f7f8f9;
    color: #46515b;
    font-size: 11px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
}

.post-citation {
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid #dfe3e7;
}

.note-engagement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin-top: 12px;
    color: #68727b;
    font-family: var(--notes-sans);
    font-size: 12px;
    line-height: 1.5;
}

.notes-archive .note-reads,
.post-engagement-footer .note-reads {
    display: none;
}

.note-like {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    margin: 0;
    padding: 4px 9px;
    border: 1px solid #dfe3e7;
    border-radius: 3px;
    background: transparent;
    color: #596773;
    font: inherit;
    cursor: pointer;
}

.note-like .fa {
    font-size: 16px;
}

.note-like:hover:not(:disabled),
.note-like[aria-pressed="true"] {
    border-color: #80534b;
    color: #80534b;
    background: #faf6f4;
}

.note-like:focus-visible {
    outline: 2px solid #80534b;
    outline-offset: 3px;
}

.note-like:disabled {
    cursor: default;
    color: #858b91;
}

.note-metrics-status {
    color: #737c85;
    font-size: 11px;
}

.note-metrics-status:empty {
    display: none;
}

.post-engagement {
    margin: -14px 0 28px;
}

.post-engagement-footer {
    margin: 28px 0 0;
    font-size: 14px;
}

.post-engagement-footer .note-like {
    min-height: 44px;
    padding: 8px 14px;
}

.research-notes #main.notes-article {
    max-width: 740px;
}

.research-notes .post-header {
    margin: 0;
    padding: 44px 0 18px;
    border: 0;
}

.research-notes .post-header h1 {
    margin: 0;
    color: #252c33;
    font-family: var(--notes-sans);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: 0;
    text-align: left;
}

.research-notes .post-meta {
    margin: 0 0 28px;
    color: #68727b;
    font-family: var(--notes-sans);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.research-notes .post-cover {
    margin: 0 0 30px;
}

/* Show the complete figure at every viewport width; use its link for detail. */
.research-notes .post figure {
    min-width: 0;
    max-width: 100%;
}

.research-notes .post figure img,
.research-notes .post figure video {
    display: block;
    min-width: 0;
    max-width: 100%;
    height: auto;
}

.research-notes .post-cover video,
.research-notes .post-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #eef0f2;
}

.research-notes .post-cover figcaption {
    margin-top: 10px;
    color: #68727b;
    font-size: 15px;
    line-height: 1.6;
}

.research-notes .post-body {
    font-size: 18px;
    line-height: 1.62;
    overflow-wrap: break-word;
}

.research-notes .post-body p,
.research-notes .post-body li {
    font-size: inherit;
    line-height: inherit;
}

.research-notes .post-body > p {
    margin: 0 0 0.55em;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.research-notes .post-body > p + p {
    text-indent: 1.2em;
}

.research-notes .post-body figure {
    margin: 28px 0;
    text-align: left;
}

.research-notes .post-body figcaption {
    margin-top: 10px;
    color: #555;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

.research-notes .post-body blockquote {
    margin: 22px 0;
    padding: 0 0 0 18px;
    border-left: 2px solid #c6c6c6;
    color: #454545;
}

.research-notes .post-body blockquote p {
    font-size: inherit;
    line-height: inherit;
}

.research-notes .post-body .post-source {
    margin-top: 18px;
    font-size: 15px;
    text-align: left;
    text-indent: 0;
}

.research-notes .post-body h2 {
    margin: 30px 0 12px;
    font-family: var(--notes-sans);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.research-notes .post-body h3 {
    margin: 24px 0 10px;
    font-family: var(--notes-sans);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.research-notes .post-nav {
    padding-top: 20px;
    border-top-color: #dfe3e7;
    font-family: var(--notes-sans);
    font-size: 14px;
}

@media (min-width: 768px) and (max-width: 979px) {
    .notes-list > li:first-child .note-entry {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }

    .notes-list > li:first-child h3 {
        font-size: 27px;
    }
}

@media (max-width: 767px) {
    .notes-header {
        padding: 28px 0;
    }

    .notes-header h1 {
        font-size: 36px;
    }

    .notes-eyebrow,
    .research-notes .post-kicker {
        font-size: 11px;
    }

    .notes-intro {
        font-size: 17px;
    }

    .notes-list,
    .notes-list > li:first-child .note-entry {
        grid-template-columns: minmax(0, 1fr);
    }

    .note-entry,
    .notes-list > li:first-child .note-entry {
        gap: 18px;
    }

    .note-entry h3,
    .notes-list > li:first-child h3 {
        font-size: 25px;
    }

    .notes-list > li {
        padding: 24px 0;
    }

    .research-notes .post-header {
        padding-top: 24px;
    }

    .research-notes .post-header h1 {
        font-size: 32px;
    }

    .research-notes .post-body {
        font-size: 17px;
    }

    .research-notes .post-body > p {
        text-align: left;
        hyphens: manual;
        -webkit-hyphens: manual;
    }
}
