/*
 * Sanal Proje editorial theme layer
 * A calm reading system for architecture and construction research.
 */

:root {
    --sp-ink: #14202b;
    --sp-ink-soft: #4f5c66;
    --sp-paper: #f7f6f2;
    --sp-card: #ffffff;
    --sp-line: #dedbd3;
    --sp-line-light: #ebe8e1;
    --sp-accent: #b65f22;
    --sp-accent-dark: #8d4317;
    --sp-blue-wash: #eaf0f3;
    --sp-serif: "Newsreader", Georgia, serif;
    --sp-sans: "Inter", Arial, sans-serif;
    --sp-mono: "JetBrains Mono", monospace;
    --color-1st: var(--sp-accent);
    --primary-color: var(--sp-accent);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--sp-paper);
    color: var(--sp-ink);
    font-family: var(--sp-sans);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

img {
    background: #e9e8e4;
}

.container {
    width: min(1200px, calc(100% - 48px));
}

/* Header */
.header {
    background: rgba(247, 246, 242, .97);
    border-bottom: 1px solid var(--sp-line);
}

.header-menu-top {
    background: var(--sp-ink);
    color: #fff;
}

.header-menu-top .container {
    height: 31px;
    line-height: 31px;
}

.sp-publication-line {
    color: #d9dee2;
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-social {
    top: 0;
}

.language-wrapper,
.language-wrapper .dropdown .btn {
    color: #fff;
    font-family: var(--sp-sans);
    font-size: 12px;
}

.header-top {
    background: var(--sp-paper);
}

.header-top .container {
    align-items: center;
    display: flex;
    height: 96px;
    justify-content: space-between;
}

.logo {
    float: none !important;
    height: 58px;
    margin: 0;
    max-width: 440px;
}

.logo a {
    align-items: center;
    color: var(--sp-ink) !important;
    display: flex;
    font-family: var(--sp-serif);
    font-size: 42px !important;
    line-height: 1 !important;
}

.logo a img {
    height: 58px;
    max-height: 58px;
    max-width: 440px;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.logo a span {
    color: var(--sp-accent) !important;
}

.sp-brand-statement {
    align-items: center;
    color: var(--sp-ink-soft);
    display: flex;
    font-family: var(--sp-mono);
    font-size: 10px;
    gap: 18px;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.sp-brand-statement span {
    align-items: center;
    display: flex;
    gap: 18px;
}

.sp-brand-statement span + span::before {
    background: var(--sp-accent);
    border-radius: 50%;
    content: "";
    height: 4px;
    width: 4px;
}

.header-bottom {
    background: var(--sp-card);
    border-top: 1px solid var(--sp-line-light);
}

.header-bottom .container {
    height: 53px;
    line-height: 53px;
}

.sp-home-link {
    color: var(--sp-accent-dark);
    display: block;
    font-family: var(--sp-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    margin-right: 22px;
    text-transform: uppercase;
}

.main-nav-inner > ul > li {
    background: transparent !important;
}

.main-nav-inner > ul > li > a {
    color: var(--sp-ink);
    font-size: 13px;
    font-weight: 500;
    padding: 0 14px;
}

.main-nav-inner > ul > li.current > a,
.main-nav-inner > ul > li.current-menu-item > a,
.main-nav-inner > ul > li > a:hover {
    color: var(--sp-accent);
}

.main-nav-inner > ul > li ul,
.collap-nav-second ul {
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    box-shadow: 0 14px 35px rgba(20, 32, 43, .1);
}

.main-nav-inner > ul > li ul li,
.collap-nav-second ul li {
    border-color: var(--sp-line-light);
}

.main-nav-inner > ul > li ul li a,
.collap-nav-second ul li a {
    color: var(--sp-ink);
}

.main-nav-inner > ul > li ul li a:hover,
.collap-nav-second ul li a:hover {
    background: var(--sp-blue-wash);
    color: var(--sp-accent-dark);
}

.collap-nav-second {
    background: transparent;
    color: var(--sp-ink);
}

.header-bottom .search-btn {
    color: var(--sp-ink) !important;
    margin-right: 58px;
}

/* Publication introduction */
.sp-intro {
    background: var(--sp-paper);
    border-bottom: 1px solid var(--sp-line);
    padding: 58px 0 54px;
}

.sp-intro .container {
    align-items: end;
    display: grid;
    gap: 80px;
    grid-template-columns: minmax(0, 1fr) 260px;
}

.sp-intro-copy {
    max-width: 820px;
}

.sp-kicker {
    color: var(--sp-accent-dark);
    display: block;
    font-family: var(--sp-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.sp-intro h1 {
    color: var(--sp-ink);
    font-family: var(--sp-serif);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.04;
    margin: 0;
    max-width: 820px;
    overflow-wrap: normal;
    white-space: normal !important;
    width: 100%;
}

.sp-intro-copy p {
    color: var(--sp-ink-soft);
    font-size: 16px;
    line-height: 1.75;
    margin: 24px 0 0;
    max-width: 720px;
}

.sp-intro-note {
    border-left: 1px solid var(--sp-line);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 26px;
}

.sp-intro-note span {
    color: var(--sp-ink-soft);
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .08em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.sp-intro-note strong {
    color: var(--sp-ink);
    font-size: 13px;
    font-weight: 500;
}

.sp-intro-note strong::before {
    color: var(--sp-accent);
    content: "—";
    margin-right: 9px;
}

/* Homepage */
.home-wrap {
    background: var(--sp-paper);
    padding-bottom: 70px;
}

.home-wrap > .container {
    width: 100%;
}

.home-wrap .ck-content > *:not(.shortcode-lazy-loading):not(.featured-home-post) {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: calc(100% - 48px);
}

.featured-home-post {
    background: var(--sp-paper);
    padding: 54px 0 30px;
}

.featured-home-post > .container {
    display: grid;
    gap: 16px;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 232px);
}

.featured-home-post-item,
.featured-home-post-item:nth-child(n+2),
.featured-home-post-item:nth-child(3),
.featured-home-post-item:nth-child(5) {
    float: none !important;
    height: auto;
    margin: 0;
    overflow: hidden;
    position: relative;
    width: auto;
}

.featured-home-post-item:first-child {
    grid-row: 1 / 3;
}

.featured-home-post-item:nth-child(n+4) {
    display: none;
}

.featured-home-post-item > img,
.featured-home-post-item > a > img {
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    width: 100%;
}

.featured-home-post-item:hover > img,
.featured-home-post-item:hover > a > img {
    transform: scale(1.025);
}

.featured-home-post-item-info {
    background: linear-gradient(180deg, transparent 5%, rgba(9, 17, 24, .88) 100%);
    padding: 90px 24px 22px;
}

.featured-home-post-item:first-child .featured-home-post-item-info {
    padding: 140px 34px 30px;
}

.featured-home-post-item-title {
    font-family: var(--sp-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.14;
}

.featured-home-post-item:first-child .featured-home-post-item-title {
    font-size: clamp(30px, 3.2vw, 46px);
    max-width: 790px;
}

.featured-home-post-item-date {
    color: #d3d8da;
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .02em;
}

.featured-home-post-item-date span i {
    color: #d48a58;
}

.featured-home-post-item-des {
    color: #e3e6e7;
    font-size: 13px;
}

/* Category sections */
.home-wrap .primary {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
    width: calc(100% - 330px);
}

.home-wrap .block-post-wrap-item,
.home-wrap .block-post-wrap-item:nth-child(2n+2) {
    background: var(--sp-card);
    border: 1px solid var(--sp-line-light);
    float: none;
    margin: 0;
    min-width: 0;
    padding: 24px;
    width: auto;
}

.block-post-wrap-head,
.sidebar-item-head {
    background: transparent;
    border-bottom: 1px solid var(--sp-line);
    height: auto;
    line-height: 1.3;
    padding: 0 0 14px;
}

.block-post-wrap-head a {
    color: var(--sp-ink);
    font-family: var(--sp-mono);
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sidebar-item-head span {
    background: transparent;
    color: var(--sp-ink);
    font-family: var(--sp-mono);
    font-size: 11px;
    letter-spacing: .06em;
    padding: 0;
    text-transform: uppercase;
}

.sidebar-item-head span::before,
.sidebar-item-head span::after {
    display: none;
}

.block-post-wrap-head i,
.sidebar-item-head i {
    color: var(--sp-accent) !important;
}

.block-post-wrap-content,
.sidebar-item-content {
    background: transparent;
    margin-top: 18px;
    padding: 0;
}

.post1-item-thumb {
    height: 245px;
    overflow: hidden;
}

.post1-item:nth-child(n+2) .post1-item-thumb {
    height: 120px;
}

.post1-item-title {
    font-family: var(--sp-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.18;
    margin-top: 13px;
}

.post1-item-title a,
.post1-item-list a {
    color: var(--sp-ink);
}

.post1-item-title a:hover,
.post1-item-list a:hover {
    color: var(--sp-accent-dark);
}

.post1-item:nth-child(n+2) .post1-item-title {
    font-family: var(--sp-sans);
    font-size: 14px;
    line-height: 1.4;
}

.post1-item-des {
    color: var(--sp-ink-soft);
    font-size: 13px;
    line-height: 1.55;
}

.post1-item-list {
    border-top: 1px solid var(--sp-line-light);
    font-size: 13px;
    line-height: 1.45;
    padding: 11px 0;
}

.post1-item-list a i {
    color: var(--sp-accent);
}

.home-wrap .sidebar {
    margin-top: 34px;
    width: 300px;
}

.sidebar-item {
    background: var(--sp-card);
    border: 1px solid var(--sp-line-light);
    margin-top: 0;
    padding: 22px;
}

.sidebar-item + .sidebar-item {
    margin-top: 22px;
}

/* Galleries */
.gallery-wrap {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}

.gallery-wrap .gallery-item {
    float: none !important;
    margin: 0 !important;
    overflow: hidden;
    width: auto !important;
}

/* Article and archive reading experience */
.sub-page {
    padding: 22px 0 72px;
}

.sub-page > .container {
    width: min(920px, calc(100% - 48px));
}

.sp-article-main {
    float: none !important;
    margin: 0 auto;
    max-width: 860px;
    width: 100% !important;
}

.sp-article-main .new-item-date {
    border-bottom: 1px solid var(--sp-line);
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .02em;
    margin-top: 18px;
    padding-bottom: 18px;
}

.sp-article-main .single-content {
    margin-top: 30px;
}

.sp-article-main .single-content .ck-content > p,
.sp-article-main .single-content .ck-content > ul,
.sp-article-main .single-content .ck-content > ol {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.block-breakcrumb {
    border-color: var(--sp-line);
    color: var(--sp-ink-soft);
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .03em;
    margin-top: 26px;
    padding-bottom: 14px;
    text-transform: uppercase;
}

.single-title {
    color: var(--sp-ink);
    font-family: var(--sp-serif);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.08;
    margin-top: 28px;
}

.single-content {
    color: #26343e;
    font-family: var(--sp-sans);
    font-size: 17px;
    line-height: 1.82;
    margin-top: 24px;
}

.single-content p {
    padding: 10px 0;
}

.primary .single-content h2,
.primary .single-content h3,
.primary .single-content h4 {
    color: var(--sp-ink);
    font-family: var(--sp-serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 32px 0 8px;
}

.primary .single-content blockquote {
    border-left: 3px solid var(--sp-accent);
    color: var(--sp-ink-soft);
    font-family: var(--sp-serif);
    font-size: 21px;
    margin: 28px 0;
    padding: 8px 0 8px 24px;
}

/* Mathematical notation */
.ck-content mjx-container {
    color: var(--sp-ink);
    font-size: 1.02em;
}

.ck-content mjx-container[display="true"] {
    background: var(--sp-card);
    border-left: 3px solid var(--sp-accent);
    margin: 1.65rem 0 !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 22px 24px;
    text-align: center;
}

.ck-content mjx-container[display="true"] > svg {
    min-width: max-content;
}

/* SanalProje Preflight interactive research figures */
.ck-content .sanalproje_preflight {
    background: var(--sp-card) !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: 2px !important;
    box-shadow: 0 12px 30px rgba(20, 32, 43, .06) !important;
    margin: 2rem 0 !important;
}

.ck-content .sanalproje_preflight .vlive-live-head,
.ck-content .sanalproje_preflight .vlive-stage {
    background: var(--sp-paper) !important;
    border-color: var(--sp-line) !important;
}

.ck-content .sanalproje_preflight .vlive-live-badge {
    color: var(--sp-accent-dark) !important;
    font-family: var(--sp-mono) !important;
    letter-spacing: .08em !important;
}

.ck-content .sanalproje_preflight .vlive-play,
.ck-content .sanalproje_preflight .vlive-auto-play {
    background: var(--sp-ink) !important;
    border-color: var(--sp-ink) !important;
}

.ck-content .sanalproje_preflight .vlive-reset,
.ck-content .sanalproje_preflight .vlive-next,
.ck-content .sanalproje_preflight .vlive-prev,
.ck-content .sanalproje_preflight .vlive-auto-button {
    border-radius: 2px !important;
    font-family: var(--sp-sans) !important;
}

.ck-content .sanalproje_preflight .vlive-auto-range {
    accent-color: var(--sp-accent) !important;
}

.ck-content .sanalproje_preflight .vlive-process-status {
    background: #f4eee8 !important;
    border-left-color: var(--sp-accent) !important;
}

.ck-content .sanalproje_preflight .vlive-process-step.is-active {
    border-color: var(--sp-accent) !important;
}

.ck-content .sanalproje_preflight .vlive-step-index {
    background: var(--sp-accent) !important;
}

.new-item {
    border-bottom: 1px solid var(--sp-line);
    padding: 22px 0;
}

.new-item-title {
    font-family: var(--sp-serif);
    font-size: 25px;
    line-height: 1.2;
}

.new-item-title a,
.block-breakcrumb a {
    color: var(--sp-ink);
}

.new-item-date,
.new-item-des {
    color: var(--sp-ink-soft);
}

.new-item-morelink a,
.pagination a,
.pagination span {
    background: var(--sp-ink);
}

.pagination .current,
.pagination a:hover,
.new-item-morelink a:hover {
    background: var(--sp-accent);
}

/* Search */
.super-search.active {
    background: rgba(247, 246, 242, .98);
}

.super-search .search-input {
    color: var(--sp-ink) !important;
    font-family: var(--sp-serif);
}

/* Footer */
.footer {
    background: var(--sp-ink);
    margin-top: 0;
}

.sp-footer-intro {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 56px 0 48px;
}

.sp-footer-intro .container {
    align-items: end;
    display: grid;
    gap: 80px;
    grid-template-columns: 1fr 1fr;
}

.sp-footer-intro .sp-kicker {
    color: #d89768;
}

.sp-footer-intro h2 {
    color: #fff;
    font-family: var(--sp-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

.sp-footer-intro p {
    color: #b9c2c7;
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
    max-width: 560px;
}

.footer-top .container {
    padding: 38px 0 30px;
}

.footer-item-head {
    border-color: rgba(255, 255, 255, .12);
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .07em;
}

.footer-about-content,
.footer-item-content .post1-item-list a,
.footer-item-content ul li a {
    color: #aeb8bd;
    font-size: 13px;
}

.footer-item-content ul li {
    border-color: rgba(255, 255, 255, .09);
}

.footer-bottom .container {
    border-color: rgba(255, 255, 255, .12);
    color: #8e9aa0;
    font-family: var(--sp-mono);
    font-size: 10px;
    letter-spacing: .02em;
    padding: 22px 0;
}

.footer-bottom-right li a {
    color: #aeb8bd !important;
    font-size: 11px;
}

/* Skeletons */
.skeleton-loading-bg {
    background: linear-gradient(90deg, #e8e5df 25%, #f2f0eb 50%, #e8e5df 75%);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--sp-accent);
    outline-offset: 3px;
}

@media screen and (max-width: 1190px) {
    .container {
        width: min(920px, calc(100% - 40px));
    }

    .sp-brand-statement {
        display: none;
    }

    .sp-home-link {
        display: none;
    }

    .collap-main-nav {
        background: var(--sp-ink);
    }

    .main-nav {
        background: var(--sp-ink);
        box-shadow: 8px 0 30px rgba(0, 0, 0, .2);
    }

    .main-nav-inner > ul > li > a,
    .main-nav-inner > ul > li ul li a {
        color: #fff;
    }

    .close-nav {
        background: var(--sp-accent);
    }

    .home-wrap .primary {
        width: 100%;
    }

    .home-wrap .sidebar {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
        width: 100%;
    }

    .sidebar-item + .sidebar-item {
        margin-top: 0;
    }
}

@media screen and (max-width: 890px) {
    .header-top .container {
        height: 82px;
    }

    .logo,
    .logo a img {
        height: 50px;
        max-height: 50px;
    }

    .sp-intro {
        padding: 42px 0;
    }

    .sp-intro .container {
        gap: 36px;
        grid-template-columns: 1fr;
    }

    .sp-intro-note {
        border-left: 0;
        border-top: 1px solid var(--sp-line);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 20px 0 0;
    }

    .sp-intro-note span {
        grid-column: 1 / -1;
    }

    .featured-home-post > .container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 390px 210px;
    }

    .featured-home-post-item:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .featured-home-post-item:first-child .featured-home-post-item-info {
        padding: 100px 24px 24px;
    }

    .home-wrap .primary {
        grid-template-columns: 1fr;
    }

    .sp-footer-intro .container {
        gap: 30px;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 590px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-menu-top-left {
        display: block;
        max-width: calc(100% - 90px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-top .container {
        height: 72px;
    }

    .logo,
    .logo a img {
        height: 42px;
        max-height: 42px;
        max-width: 290px;
    }

    .logo a {
        font-size: 32px !important;
    }

    .header-bottom .container {
        height: 44px;
        line-height: 44px;
    }

    .collap-main-nav {
        height: 44px;
        width: 44px;
    }

    .collap-main-nav img {
        margin-top: 11px;
    }

    .header-bottom .search-btn {
        margin-right: 0 !important;
    }

    .sp-intro {
        padding: 34px 0 36px;
    }

    .sp-intro h1 {
        font-size: 36px;
        hyphens: auto;
        overflow-wrap: break-word;
    }

    .sp-intro-copy p {
        font-size: 14px;
        line-height: 1.7;
        margin-top: 18px;
    }

    .sp-intro-note {
        display: flex;
    }

    .featured-home-post {
        padding-top: 30px;
    }

    .featured-home-post > .container {
        display: flex;
        flex-direction: column;
    }

    .featured-home-post-item,
    .featured-home-post-item:nth-child(n+2) {
        height: 240px;
        width: 100%;
    }

    .featured-home-post-item:first-child {
        height: 360px;
    }

    .featured-home-post-item:first-child .featured-home-post-item-title {
        font-size: 31px;
    }

    .featured-home-post-item-title {
        font-size: 21px;
    }

    .home-wrap .primary {
        margin-top: 24px;
    }

    .home-wrap .block-post-wrap-item,
    .home-wrap .block-post-wrap-item:nth-child(2n+2) {
        padding: 18px;
    }

    .post1-item-thumb {
        height: 210px;
    }

    .home-wrap .sidebar {
        grid-template-columns: 1fr;
    }

    .gallery-wrap {
        grid-template-columns: 1fr 1fr;
    }

    .single-title {
        font-size: 35px;
    }

    .single-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .sub-page {
        padding-top: 10px;
    }

    .sub-page > .container {
        width: calc(100% - 32px);
    }

    .ck-content mjx-container[display="true"] {
        margin-left: -4px !important;
        margin-right: -4px !important;
        padding: 18px 14px;
        text-align: left;
    }

    .sp-footer-intro {
        padding: 42px 0 38px;
    }
}
