/*
# ============================ #
#                              #
#   SSSSSSSS      K       K    #
#  S              K      K     #
#  S              K     K      #
#   SSSSSSSS      KKKKKK       #
#           S     K     K      #
#           S     K      K     #
#  SSSSSSSS       K       K    #
#                              #
# ============================ #
*/


/* -------------------------------- 
   Styles related to all html-pages
-------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


body {
    background: #ffffff;
}


.container {
    display: flex;
    height: 100vh;
}


.sidebar {
    width: 220px;
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative; /* Provides the positioning reference for the divider below. */
}


/* Draws a shorter divider instead of a line spanning the entire sidebar. */
.sidebar::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    width: 2px;
    height: calc(100% - 135px);
    background: #000;
}


.menu-box {
    border: 2px solid #000;
    padding: 15px;
    height: calc(100% - 96px);
    display: flex;
    flex-direction: column;
}


.menu-box li {
    padding: 10px 5px;
    cursor: pointer;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
}


.menu-box li:hover {
    background: #efefef;
}


.menu-box a {
    text-decoration: none;
    color: inherit;
}


/* Add lines BETWEEN items */
.menu-box li:not(:last-child) {
    border-bottom: 2px solid #000;
}


.menu-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
}


.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* Image in upper-left */
.header-img {
    position: absolute;
    top: 10px;
    left: 20px;
    height: 80px;
    max-height: 12vh;
}


.top-title-box {
    width: 100%;
    margin: 0;
    padding: 24px 20px;
    border: 2px solid #000;
    background: #fff;
    text-align: center;
}


.top-title-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


.top-title-box h2 {
    font-size: 38px;
    letter-spacing: 1px;
    line-height: 1.2;
}


.content {
    display: flex; /* Lets the content area participate in the page’s flexible layout. */
    flex: 1;       /* Expands it across all available space beside the sidebar. */
    flex-direction: column; /* Keeps headings, paragraphs, lists, and images stacked vertically. */
    padding: 24px 20px; /* Adds the same top/bottom and side spacing */
    line-height: 1.4;
    font-family: system-ui, sans-serif;
    gap: 24px; /* Spaces headings, paragraphs, lists, and other content consistently. */
}


/* ----------------------------------------- 
    Special Styles related to the index-page
------------------------------------------ */

.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex: 1; /* Makes the text-and-image layout occupy the full width of .content. */
}


.about-text {
    flex: 1;
    min-width: 0;
    display: flex; /* Makes the paragraphs vertically managed flex items. */
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px; /* Matches the spacing used between AI‑KaSa content entries. */
}


.about-image {
    width: 240px;
    max-width: 35vw;
    height: auto;
    object-fit: cover;
}



/* -------------------------------------------- 
    Special Styles related to the Research-page
--------------------------------------------- */

.legacy-codes {
    list-style-type: disc;
    padding-left: 1.5em; /* ensures indentation */
}


@media (max-width: 800px) {
    .top-title-box h2 {
        font-size: 28px; /* Reduces the large header title on narrow screens. */
    }
    .about-layout {
        flex-direction: column; /* Places the portrait below the text when horizontal space is limited. */
    }
}


.content > ul {
    padding-left: 1.5em; /* Moves the bullets and list text away from the content edge. */
}
