body {
    margin: 0;
    font-family: Georgia, serif;
    background: #f8f9fa;
    color: #222;
}

.header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

.layout {
    display: grid;
    grid-template-columns: 230px 1fr 300px;
    gap: 20px;
    padding: 30px;
}

/* SIDEBAR */
.sidebar{
position:sticky;
 font-size: 14px;
top:100px;
height:fit-content;
background:white;
border:1px solid #ddd;
padding:15px;
}

.sidebar a{
text-decoration:none;
color:#0645ad;
}

.sidebar a.active{
font-weight:bold;
color:#000;
} */

/* .sidebar {
    font-size: 14px;
    border-right: 1px solid #a2a9b1;
    padding-right: 12px;
} */

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar a {
    text-decoration: none;
    color: #0645ad;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* CONTENT */
.content {
    background: white;
    border: 1px solid #ddd;
    padding: 25px;
}

/* .content h2{
border-bottom:1px solid #ddd;
padding-bottom:5px;
scroll-margin-top:120px;
} */
section {
    scroll-margin-top: 140px;
}


/* INFOBOX */
.infobox {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    height: fit-content;
}

.infobox img {
    width: 100%;
    margin-bottom: 10px;
}

.infobox table {
    width: 100%;
}

.infobox th {
    text-align: left;
    padding: 6px;
}

.infobox td {
    padding: 6px;
}

/* DARK MODE */
.dark {
    background: #0d1117;
    color: #c9d1d9;
}

.dark .content,
.dark .sidebar,
.dark .infobox,
.dark .header {
    background: #161b22;
    border-color: #30363d;
}

/* MOBILE */
@media(max-width:900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .infobox {
        position: relative;
        top: 0;
    }
}

html {
    scroll-behavior: smooth;
}

/* header */
.wiki-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #a2a9b1;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 999;
}

.wiki-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiki-logo {
    width: 40px;
}

.wiki-title {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500;
}

.wiki-search {
    display: flex;
    border: 1px solid #a2a9b1;
    background: white;
}

.wiki-search input {
    border: none;
    padding: 6px 10px;
    outline: none;
    width: 220px;
}

.wiki-search {
    border: none;
    background: #f8f9fa;
    padding: 6px 10px;
    cursor: pointer;
}

/* image for css */
.section-image {
    margin: 10px 0;
}

.section-image.right {
    float: right;
    margin-left: 20px;
    width: 280px;
}

.section-image img {
    width: 100%;
    border: 1px solid #a2a9b1;
    padding: 4px;
    background: #fff;
}

section::after {
    content: "";
    display: block;
    clear: both;
}

/* title name */
.name {
    font-weight: bold;
    font-size: 1.5rem;
}

/* reference */
.wiki-ref {
    font-size: 14px;
    line-height: 1.6;
}

.reference-list {
    padding-left: 20px;
}

.reference-list li {
    margin-bottom: 6px;
}

.reference-list a {
    text-decoration: none;
    color: #0645ad;
}

.reference-list a:hover {
    text-decoration: underline;
}

.back {
    margin-left: 8px;
    color: #888;
    font-size: 12px;
}