body {
    font-family: "Inter", arial, sans-serif;
    margin: 0;
    background-color: #bfbfbf;
    color: #001489;
}

header {
    background-color: #e5c700;
    font-family: "EB Garamond", arial, serif;
    color: #001bb3;
    text-align: center;
    height: 7em;
}
header h1 {
    margin: 0;
    font-variant: small-caps;
    font-size: 3em;
}
header h2 {
    margin: 0;
    font-size: 1.8em;
    font-variant: small-caps;
    text-align: center;
    margin-top: -0.4em;
}
header div.lamen {
    display: inline-block;
    vertical-align: top;
    height: 6em;
    padding-top: 0.5em;
    padding-right: 1em;
}
header div.lamen img {
    height: 100%;
}
header div.title {
    display: inline-block;
    padding-top: 0.5em;
    text-align: left;
}

nav {
    background-color: #8c0e8c;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    border-bottom: 1px solid #001489;
}
nav a {
    color: #e5c700;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    letter-spacing: 1px;
}
nav a:hover {
    text-decoration: underline;
}
footer {
    background-color: #001489;
    color: #FEDD00;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #8c0e8c;
}

.main {
    max-width: 850px;
    margin: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.page {
    padding: 1.5em 2.5em;
    background-color: #ffffff;
    min-height: 50em;
}
.page a {
    color: #8c0e8c;
    text-decoration: none;
    font-weight: bold;
}
.page a:hover {
    text-decoration: underline;
}

.page h1 {
    font-family: "EB Garamond", arial, serif;
    margin: 0;
    font-variant: small-caps;
    font-size: 2.5em;
    text-align: center;
}

section {
    margin-bottom: 40px;
}
.page h2 {
    border-bottom: 2px solid #8c0e8c;
    padding-bottom: 6px;
    color: #001489;
    font-weight: normal;
}
.page p {
    margin-block-start: 0.5em;
    margin-block-end: 0.75em;
}

.category-buttons {
    margin: 10px 0;
}
.category-buttons button {
    background-color: #FEDD00;
    border: 1px solid #8c0e8c;
    color: #001489;
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "EB Garamond", serif;
}
.category-buttons button:hover {
    background-color: #ffe54e;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.card {
    background-color: #f4f4f4;
    padding: 15px;
    border: 1px solid #BB29BB;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.grid > .centered {
    grid-column: span 2; /* spans both columns */
    justify-self: center; /* centers the item horizontally */
}
.card:hover {
    transform: scale(1.02);
}
.card h3 {
    margin-top: 0em;
    margin-bottom: 0em;
    color: #8c0e8c;
    font-family: "Garamond", serif;
    font-size: 1.4em;
}
.card p {
    margin: 6px 0;
    font-size: 0.95em;
}

input[type="text"] {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    font-size: 1em;
    margin-top: 10px;
    background-color: #ffffff;
    color: #001489;
    border: 1px solid #8c0e8c;
    border-radius: 6px;
}
input[type="text"]::placeholder {
    color: #888;
}

select {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    font-size: 1em;
    margin-top: 10px;
    background-color: #ffffff;
    color: #001489;
    border: 1px solid #8c0e8c;
    border-radius: 6px;
}

p.title {
    margin-bottom: 0.25em;
    margin-top: 1em;
}
p.abstract {
    margin-top: 0.25em;
    margin-left: 1em;
    font-style: italic;
}

@media (max-width: 600px) {
    header div.title {
        font-size: 0.6em;
        padding-top: 2.5em;
    }
    nav {
        font-size: 0.8em;
    }
    .page h1 {
        font-size: 1.8em;
    }
}

.page .oldsite table p {
    margin-block-start: 0.4em;
    margin-block-end: 0.4em;
}
.oldsite .title {
    font-size: 23pt;
    font-style: normal;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    margin-top: 0.5em;
}
.oldsite .subtitle {
    font-size: 14pt;
    font-style: italic;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
}
.oldsite .doc_class {
    font-style: normal;
    font-weight: bold;
    margin-bottom: 28pt;
    margin-top: 28pt;
    text-align: center;
    text-decoration: none;
}
.oldsite .author {
    font-size: 12pt;
    font-style: normal;
    font-weight: normal;
    line-height: 17pt;
    text-align: center;
    text-decoration: none;
}
.oldsite .author_org {
    font-size: 12pt;
    font-style: italic;
    font-weight: normal;
    line-height: 17pt;
    text-align: center;
    text-decoration: none;
}

.oldsite .chinese {
    font-family: ar pl zenkai uni, ar pl shanheisun uni, simsun, arial unicode ms, pmingliu, serif;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

.oldsite .ctr {
    text-align: center;
}

.oldsite .nobr {
    white-space: nowrap;
}

.oldsite .date {
    font-size: 13pt;
    font-style: italic;
    font-weight: normal;
    line-height: 18pt;
    margin-top: 39pt;
    margin-bottom: 18pt;
    text-align: center;
    text-decoration: none;
}

.oldsite .err {
    background: #F00000;
    color: #FFFF00;
    font-size: 12pt;
    font-style: normal;
    font-weight: bold;
    margin-top: 20pt;
    margin-bottom: 20pt;
    padding: 1em;
    text-decoration: none;
}

.oldsite .fl {
    margin-top: 1px;
    text-indent: 2em;
}

.oldsite .fli {
    text-indent: 2em;
}

.oldsite .fll {
    margin-top: 1px;
}

.oldsite .flr {
    margin-top: 1px;
    text-align: right;
    text-indent: 2em;
}

.oldsite .hang {
    margin-left: 2em;
    margin-top: 1px;
    text-indent: -2em;
}

.oldsite .hangi {
    margin-left: 2em;
    text-indent: -2em;
}

.oldsite .ind {
    margin-left: 4em;
    margin-top: 1px;
    text-indent: -2em;
}

.oldsite .indl {
    margin-left: 2em;
}

.oldsite .left {
    text-align: left;
}

.oldsite .right {
    text-align: right;
}

.oldsite .righti {
    margin-top: 1px;
    text-align: right;
}

.oldsite .section {
    font-size: 15pt;
    font-style: normal;
    font-weight: bold;
    line-height: 20pt;
    margin-top: 40pt;
    text-align: center;
    text-decoration: none;
}

.oldsite .sectionl {
    font-size: 15pt;
    font-style: normal;
    font-weight: bold;
    line-height: 20pt;
    margin-top: 40pt;
    text-decoration: none;
}

.oldsite .subsection {
    font-size: 13pt;
    font-style: italic;
    font-weight: normal;
    line-height: 18pt;
    text-align: center;
    text-decoration: none;
}

.oldsite .subsectioni {
    font-size: 13pt;
    font-style: italic;
    font-weight: normal;
    line-height: 18pt;
    margin-top: 24pt;
    text-align: center;
    text-decoration: none;
}

.oldsite .subsectionl {
    font-size: 13pt;
    font-style: italic;
    font-weight: normal;
    line-height: 18pt;
    text-decoration: none;
}

.oldsite .subsubsection {
    font-style: italic;
    margin-top: 20pt;
}
.oldsite .gk {
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

.oldsite .hb {
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    unicode-bidi: embed;
}

.oldsite .hbi {
    color: #C00000;
    font-size: 18pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    unicode-bidi: embed;
}

.oldsite .hbl {
    font-size: 18pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    unicode-bidi: embed;
}

.oldsite .hbll {
    font-size: 23pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    unicode-bidi: embed;
}

.oldsite .marginnote {
    background: #FFFFFF;
    font-family: arial, helvetica;
    text-align: center;
    border: thin inset #888;
}

.oldsite .red {
    color: #C00000;
}

.oldsite .symbol {
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

.oldsite .symi {
    color: #C00000;
    font-size: 14pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}