:root {
    --color-bg-darkest: rgb(23, 23, 23);
    --color-bg-even-darker: rgb(163, 163, 163);
    --color-bg-darker: rgb(212, 212, 212);
    --color-bg-dark: rgb(229, 229, 229);
    --color-bg-light: rgb(245, 245, 245);
    --color-bg-lightest: rgb(250, 250, 250);
    --color-border-default: rgb(229, 229, 229);
}

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    font-family: sans-serif;
    overflow-x: hidden;
}

header {
    display: flex;
    flex-direction: column;
    width: calc(100% - 48px);
    height: 84px;
    border-bottom: 1px solid var(--color-border-default);
    padding: 16px 24px;
}

.header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 48px;
}

.logo-placeholder {
    width: 96px;
    height: 32px;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
    margin-right: 30px;
    flex-shrink: 0; 
}

.search-bar {
    width: 460px;
    height: 48px;
    background-color: var(--color-bg-lightest);
    border: 1px solid var(--color-border-default);
    border-radius: 24px;
    box-shadow: 0 1px 6px rgba(32,33,36,0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.action-icon {
    background-color: var(--color-bg-dark);
}

.action-icon.square {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.action-icon.circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

nav {
    display: flex;
    align-items: flex-end;
    width: calc(100% - 128px);
    height: 20px;
    margin-top: 16px;
    margin-left: 128px;
    padding-bottom: 0;
}

nav ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
    height: 20px;
}

nav ul li {
    list-style: none;
    width: 60px;
    height: 16px;
    border-radius: 4px;
    background-color: var(--color-bg-dark);
}

nav ul li.active {
    background-color: var(--color-bg-darkest);
    width: 40px;
    border-bottom: 3px solid var(--color-bg-darkest); 
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 117px);
    padding-top: 24px;
    overflow-y: scroll;
}

#results-meta {
    margin-left: 152px;
    margin-bottom: 20px;
    width: 600px;
}

.result-count {
    width: 180px;
    height: 14px;
    background-color: var(--color-bg-dark);
    border-radius: 4px;
}

#posts_container {
    margin-left: 152px;
    width: 600px;
    padding-bottom: 40px;
}

#posts_container ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.post-breadcrumb {
    width: 200px;
    height: 16px;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    margin-bottom: 10px;
}

.post-title {
    width: 360px;
    height: 22px;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
    margin-bottom: 12px;
}

.post-desc {
    height: 14px;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    margin-bottom: 6px;
}

.post-desc.line-1 {
    width: 100%;
}

.post-desc.line-2 {
    width: 85%;
}