* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    font-family: "JetBrains Mono", monospace;
    flex-direction: column;
    min-height: 100vh;
    background: #eeece0;
}

header{
    display: flex;
    background: #eeece0;
    padding: 25px 3rem;
    font-weight: bold;
    justify-content: space-between;
    border-top: solid 3px black;
    border-bottom: solid 3px black;
    margin-top: 0.5px;
}

header .acronym{
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
    color: inherit;
    padding-left: 3.5px;
}

header nav{
    display: flex;
    gap: 10px;
    cursor: pointer;
    padding-right: 3.5px;
}

header nav a{
    padding: 10px 10px;
    border: 2px solid black;
    font-size: 15px;
    text-decoration: none;
    color: inherit;
}
header nav a:hover{
    background: black;
    color: #eeece0;
}

/*================================= ML PORTFOLIO =====================================*/
.ml-box{
    width: 90%;
    margin: 5rem auto 2rem auto;
    display: grid;
}

.ml-box .title-group h1{
    font-size: 5rem;
    text-align: center;
    margin-bottom: 0;
}

.ml-box .title-group #subtitle{
    text-align: center;
    color: #6b6a63;
    margin-top: 0;
    margin-bottom: 3rem;
}

.badge{
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
    margin-right: 6px;
    color: #2b2b2b;
}

.badge.REG{ background: #9ad0c2; }
.badge.CLS{ background: #e8a7a0; }
.badge.lang{ background: #d8d6cc; color: #1c1c1a; }

/*--------------------------- repo block ---------------------------*/
.repo-block{
    margin-bottom: 3.5rem;
    border-left: 6px solid black;
    padding-left: 1.5rem;
    width: 85%;
}

.repo-block.repo-1{ border-left-color: #33876f; }
.repo-block.repo-2{ border-left-color: #bc4a3c; }

.repo-header{
    margin-bottom: 1.25rem;
}

.repo-header h2, .repo-header p.repo-title-link{
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    display: inline;
}

.repo-link-icon{
    font-size: 1rem;
    font-weight: 400;
}

.repo-status{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b6a63;
    margin-left: 10px;
}

.repo-status .dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33876f;
    display: inline-block;
}

.repo-desc{
    font-size: 14px;
    margin: 8px 0 10px;
    width: 80%;
}

.repo-stack{
    margin-bottom: 4px;
}

/*--------------------------- code card ---------------------------*/
.code-card{
    background: #e3e1d6;
    border: 3px solid #3e977e;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.repo-block.repo-2 .code-card{
    border-color: #bc4a3c;
}

.code-card-toggle{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.code-card-toggle .file-tag{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.code-card-toggle .file-tag::before{
    content: "</>";
    margin-right: 8px;
    color: #6b6a63;
}

.code-chevron{
    font-size: 12px;
    transition: transform .2s ease;
}

.code-card-toggle[aria-expanded="true"] .code-chevron{
    transform: rotate(180deg);
}

.code-panel{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .28s ease, opacity .2s ease;
}

.code-panel.open{
    grid-template-rows: 1fr;
    opacity: 1;
}

.code-panel-inner{
    overflow: hidden;
}

/* file tabs, for repos with more than one snippet */
.code-tabs{
    display: flex;
    gap: 2px;
    padding: 0 1rem;
    background: #d8d6cc;
    overflow-x: auto;
}

.code-tab{
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #6b6a63;
    white-space: nowrap;
    font-family: inherit;
}

.code-tab.active{
    color: #1c1c1a;
    border-bottom-color: #3e977e;
    background: #95c1b4;
}

.repo-block.repo-2 .code-tab.active{
    border-bottom-color: #bc4a3c;
    background: #dd9f98;
}

.code-window{
    background: #e3e1d6;
    padding: 0.75rem 1rem 1rem;
}

.code-window-bar{
    display: flex;
    gap: 6px;
    padding: 0 0.25rem 0.75rem;
}

.code-window-bar span{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.code-window-bar span:nth-child(1){ background: #ff5f56; }
.code-window-bar span:nth-child(2){ background: #ffbd2e; }
.code-window-bar span:nth-child(3){ background: #27c93f; }

.code-window pre{
    margin: 0;
    max-height: 480px;
    overflow: auto;
    border-radius: 6px;
}

.code-window code{
    font-family: "JetBrains Mono", monospace;
    font-size: 12.5px;
    line-height: 1.6;
}

.code-status{
    color: #8b949e;
    font-size: 12px;
    padding: 1rem;
    font-style: italic;
}

.repo-actions{
    display: flex;
    gap: 10px;
    padding: 0.9rem 1.25rem;
    background: #ecebe0;
    border-top: 2px solid #d8d6cc;
    flex-wrap: wrap;
}

.repo-actions a{
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    padding: 6px 12px;
    border-radius: 999px;
}

.repo-actions.regression a{
    border: 2px solid #3b9179;
}
.repo-actions.classification a{
    border: 2px solid #b3473a;
}

.repo-actions.regression a:hover{
    background: #065c47;
    color: #eeece0;
}
.repo-actions.classification a:hover{
    background: #931f13;
    color: #eeece0;
}



/*================================= FOOTER =====================================*/
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: solid 3px black;
    border-bottom: solid 3px black;
    border-left: none;
    border-right: none;
    margin-bottom: 0.5rem;
}
.footer p:hover{
    color: #bc0707;
}
.footer p{
    font-size: 14px;
    font-weight: bold;
    padding: 2rem 4.5rem;
}

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

.copyright{
    color: #686868;
    font-weight: bold;
    font-size: clamp(8px, 4vw, 13px);
    padding-right: 1.5rem;
}



@media (max-width: 700px) {

header {
    padding: 15px 1.25rem;
    flex-wrap: wrap;
    row-gap: 10px;
}

header .acronym {
    font-size: 20px;
}

header nav {
    flex-wrap: wrap;
    gap: 8px;
}

header nav a {
    padding: 6px 8px;
    font-size: 11px;
    border-width: 1.5px;
}

/* ---------- ML title ---------- */
.ml-box{
    width: 95%;
    margin: 3rem auto 2rem auto;
}

.ml-box .title-group h1{
    font-size: 2.5rem;
}

.ml-box .title-group #subtitle{
    font-size: 13px;
    padding: 0 0.5rem;
}

.repo-block{ width: 100%; }

/* ---------- Repo header ---------- */
.repo-header h2, .repo-header p.repo-title-link{
    font-size: 1.2rem;
}

.repo-desc{
    width: 100%;
}

.repo-status{
    display: block;
    margin-left: 0;
    margin-top: 4px;
}

/* ---------- Code card ---------- */
.code-card-toggle{
    padding: 0.75rem 1rem;
}

.code-tab{
    padding: 8px 10px;
    font-size: 11px;
}

.code-window{
    padding: 0.5rem 0.75rem 0.75rem;
}

.code-window code{
    font-size: 11px;
}

.code-window pre{
    max-height: 320px;
}

/* ---------- Repo action buttons ---------- */
.repo-actions{
    padding: 0.75rem 1rem;
}

.repo-actions a{
    font-size: 11px;
    padding: 5px 10px;
}

.footer p{ padding: 1.5rem 1.5rem; font-size: 12px; }

}