@font-face {
    font-family: "Source Han Sans KR VF";
    src: url("SourceHanSans/SourceHanSansKR-VF.ttf.woff2") format(woff2) tech(variations);
    font-weight: 1 999;
}

:root {
    font-family: "Source Han Sans KR VF", sans-serif;
    font-weight: 500;
    --title-line-height: 175%;
    --warning-shift: -5px;
    --auth-year-line-height: 150%;
    --info-display: inline;
}

:root:has(option[value=compact]:checked) {
    --title-line-height: 125%;
    --warning-shift: -1px;
    --auth-year-line-height: 125%;
    --info-display: none;
}

#notifPanel {
    position: fixed;
    right: 0;
    top: 0;
}

.notif {
    margin-left: auto;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: solid 1px #888888;
    border-radius: 5px;
    width: fit-content;
    max-height: 0px;
    padding: 0px 10px;
    overflow: hidden;
    transition: max-height 0.2s, padding 0.2s;
}

.notif.inflate {
    max-height: 40px;
    padding: 5px 10px;
}

.notif-icon {
    color: #666666;
}

.notif-article-name {
    quotes: "“" "”";
}

.notif-article-name::before {
    content: open-quote;
}

.notif-article-name::after {
    content: close-quote;
}

button,
select {
    background-color: #f0f0f0;
    border: solid 1px #888888;
    padding: 2px 5px;
    border-radius: 4px;
    transition: background-color 75ms;
}

button:hover,
button:focus,
select:hover,
select:focus {
    background-color: #dddddd;
}

.result-item {
    padding: 10px;
    border-bottom: solid 1px #d0d0d0;
}

.require-userscript {
    display: inline-block;
    transform: translateY(var(--warning-shift));
    color: goldenrod;
    margin-right: 5px;
}

body[data-userscript-version="2024-04-17"] .require-userscript {
    display: none;
}

a {
    color: inherit;
    transition: color 0.1s ease-out;
}

a:hover {
    color: gray;
}

#aboutLink {
    display: inline-block;
    transform: translateY(-2em);
}

.title a {
    line-height: var(--title-line-height);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
    overflow-y: visible;
    display: inline-block;
    max-width: calc(100% - 24px);
}

.title a,
.cite-btn,
#siteTitle a,
#aboutLink {
    color: inherit !important;
    position: relative;
    text-decoration: none;
}

.title a::before,
.cite-btn::before,
#siteTitle a::before,
#aboutLink::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: top left;
    transition: transform 0.2s ease-out;
}

#siteTitle a::before {
    height: 3px;
}

.title a:hover::before,
.cite-btn:hover::before,
#siteTitle a:hover::before,
#aboutLink:hover::before {
    transform: scaleX(1);
}

.auth-year {
    font-size: 0.9em;
    line-height: var(--info-display);
    color: #818181;
}

.info {
    font-size: 0.8em;
    line-height: 125%;
    color: #818181;
}

.info {
    display: var(--info-display);
}

.dot {
    display: inline-block;
    vertical-align: middle;
    width: 3px;
    height: 3px;
    transform: translateY(-50%);
    margin: 0 2px;
    border-radius: 50%;
    background-color: gray;
}

header {
    text-align: center;
    margin-top: 3em;
}

header h1 {
    font-size: 3em;
}

#searchPanel {
    text-align: center;
    margin-bottom: 0.5em;
}

#searchOptions {
    margin: 1em;
}

#result {
    max-width: 860px;
    padding: 0 30px;
    margin: 0 auto;
}

#prose {
    max-width: 660px;
    padding: 0 30px;
    margin: 0 auto;
}

#navPanel {
    text-align: center;
    margin-top: 1em;
}

#curr {
    display: inline-block;
    width: 250px;
}

footer {
    margin-top: 1em;
    padding: 1em;
    text-align: center;
}

#indexList {
    display: inline-block;
    line-break: strict;
    max-width: 1000px;
}

#embedPane {
    width: 90vw;
    overflow: hidden;
    margin: 0 auto;
}

#embedPane iframe {
    width: 100%;
    height: calc(100vh - 250px);
    border: none;
}