/* Onur Polat Hukuk — v2.0.0 symmetric editorial and publication system. */
:root {
    --polat-rail: 380px;
    --v200-paper: #f4f0e8;
    --v200-white: #fff;
    --v200-ink: #1c2422;
    --v200-green: #1d513f;
    --v200-line: #d4cec3;
    --v200-muted: #626a66;
}

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.polat-theme {
    font-size: 17px;
    font-weight: 430;
    line-height: 1.72;
}

.polat-theme .polat-kicker,
.polat-theme .polat-card-no,
.polat-site-header-v8 .polat-menu-drawer a::after,
.polat-footer-info-row-v7 .polat-footer-label {
    color: var(--v200-green) !important;
}

/* Crisp, responsive identity: a real monogram and live type, not one raster lockup. */
.polat-brand-lockup:not(:has(.polat-brand-custom-image)) {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    width: 100%;
    color: var(--v200-ink) !important;
    line-height: 1 !important;
}

.polat-brand-mark,
.polat-brand-copy {
    display: block;
    min-width: 0;
}

.polat-brand-mark img {
    display: block;
    width: 112px;
    height: auto;
}

.polat-brand-copy {
    padding-left: 13px;
    border-left: 1px solid var(--v200-line);
}

.polat-brand-given,
.polat-brand-service {
    display: block;
    white-space: nowrap;
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
    font-weight: 760;
    text-transform: uppercase;
}

.polat-brand-given {
    margin-bottom: 4px;
    font-size: 0.89rem;
    letter-spacing: 0.085em;
}

.polat-brand-copy strong {
    display: block;
    color: var(--v200-ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 2.55rem;
    font-weight: 720;
    letter-spacing: 0.045em;
    line-height: 0.93;
}

.polat-brand-service {
    margin-top: 8px;
    color: var(--v200-green);
    font-size: 0.61rem;
    letter-spacing: 0.145em;
}

.polat-site-header-v8 .polat-brand-lockup {
    max-width: 344px;
}

.polat-site-header-v8 .polat-rail-inner {
    padding: 32px 18px 24px !important;
}

.polat-site-header-v8 .polat-menu-drawer a {
    font-size: 0.83rem;
}

.polat-site-header-v8 .polat-rail-meta {
    font-size: 0.76rem;
}

/* Equal, straight hero halves. The name is intentionally kept in the rail. */
.polat-v200-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: clamp(390px, 26vw, 480px);
    min-height: 0 !important;
    max-height: 480px;
    overflow: hidden;
    background: var(--v200-paper) !important;
}

.polat-v200-hero-art {
    display: block !important;
    min-height: 390px !important;
    padding: 0 !important;
    background: var(--v200-paper) !important;
}

.polat-v200-hero-art > div,
.polat-v200-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
}

.polat-v200-hero-art img {
    object-fit: cover;
    object-position: left center;
}

.polat-v200-hero .polat-v181-hero-media,
.polat-v200-hero .polat-hero-video,
.polat-v200-hero .polat-hero-video-stage,
.polat-v200-hero .polat-hero-video-media,
.polat-v200-hero .polat-hero-video-poster,
.polat-v200-hero .polat-hero-video-element {
    min-height: 390px !important;
    height: 100% !important;
}

.polat-v200-hero .polat-v181-hero-media::after,
.polat-v200-hero .polat-v181-hero-media .polat-hero-video::after {
    content: none !important;
}

/* Publications: centered heading, topic index, two exact rows on desktop. */
.polat-v181-publications {
    padding: 58px clamp(28px, 4.5vw, 72px) 66px !important;
}

.polat-v200-section-head {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: end !important;
    padding-bottom: 20px !important;
    text-align: center;
}

.polat-v200-section-head h2 {
    grid-column: 2;
    font-family: "Source Serif 4", Georgia, serif !important;
    font-weight: 600 !important;
}

.polat-v200-section-head > p:first-of-type {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    max-width: 350px;
    color: var(--v200-muted);
    text-align: left;
    font-size: 0.92rem;
}

.polat-v200-section-head > p:last-child {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    font-size: 0.82rem;
}

.polat-publication-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1480px;
    margin: 0 auto 28px;
}

.polat-publication-topics .polat-topic-link {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 14px;
    color: var(--v200-ink) !important;
    background: transparent;
    border: 1px solid var(--v200-line);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.polat-publication-topics .polat-topic-link:hover {
    color: var(--v200-white) !important;
    background: var(--v200-green);
    border-color: var(--v200-green);
}

.polat-publication-topics small {
    color: var(--v200-muted);
    font-size: 0.63rem;
    font-weight: 600;
}

.polat-publication-topics .polat-topic-link:hover small {
    color: rgba(255, 255, 255, 0.72);
}

.polat-v200-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.polat-v200-post-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px !important;
}

.polat-v200-post-card .polat-card-category,
.polat-post-card .polat-card-category {
    margin: 0 18px 8px !important;
    color: var(--v200-green);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.polat-v200-post-card .polat-card-category a,
.polat-post-card .polat-card-category a {
    color: inherit;
}

.polat-v200-post-card .wp-block-post-title {
    margin: 0 18px 12px !important;
    font-size: 1.12rem !important;
    line-height: 1.3;
}

.polat-v200-post-card .wp-block-post-excerpt {
    margin: auto 18px 0 !important;
    color: var(--v200-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.polat-v200-post-card .wp-block-post-excerpt__more-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--v200-green);
    font-size: 0.69rem;
    font-weight: 750;
}

/* Slightly larger, still horizontal contact band. */
.polat-v181-contact-compact {
    padding: 34px clamp(28px, 4.5vw, 72px) !important;
}

.polat-v181-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(32px, 5vw, 76px) !important;
}

.polat-v181-contact-copy h2 {
    font-size: clamp(2.1rem, 3.2vw, 3.3rem) !important;
}

.polat-v181-contact-copy > p:not(.polat-kicker):not(.polat-v181-contact-links) {
    font-size: 0.94rem;
}

.polat-v181-contact-links a {
    font-size: 0.82rem;
}

.polat-v181-contact-compact .polat-map-frame,
.polat-v181-contact-compact .polat-map-frame iframe {
    min-height: 260px !important;
    height: 260px !important;
}

/* Work areas and the publication connection use the same straight grid. */
.polat-v200-activities-intro {
    display: block !important;
    max-width: 960px !important;
    text-align: center;
}

.polat-v200-activities-intro h2,
.polat-v200-activities-intro p {
    margin-right: auto !important;
    margin-left: auto !important;
}

.polat-v200-area-publications,
.polat-v200-related-area {
    margin-top: 28px !important;
    padding: 34px !important;
    background: var(--v200-white);
    border: 1px solid var(--v200-line);
}

.polat-v200-area-publications > h2,
.polat-v200-related-area > h2 {
    margin: 0 0 22px !important;
    text-align: center;
}

.polat-publication-topics-areas {
    margin-bottom: 0;
}

.polat-related-publications {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--v200-line);
    border: 1px solid var(--v200-line);
}

.polat-related-publications > a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    min-height: 74px;
    box-sizing: border-box;
    padding: 16px 18px;
    color: var(--v200-ink) !important;
    background: var(--v200-paper);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.04rem;
    font-weight: 600;
}

.polat-related-publications small {
    flex: 0 0 auto;
    color: var(--v200-green);
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
    font-size: 0.66rem;
}

/* Publication archive and article typography. */
.polat-listing > .polat-page-header .polat-publication-topics {
    margin-top: 28px;
    margin-bottom: 0;
}

.polat-publications-query .polat-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.polat-post-card .wp-block-post-title {
    font-size: clamp(1.3rem, 1.55vw, 1.65rem) !important;
    line-height: 1.18;
}

.polat-post-card .wp-block-post-excerpt {
    font-size: 0.91rem;
    line-height: 1.65;
}

.polat-single .polat-article-header {
    max-width: 980px !important;
    text-align: center;
}

.polat-single .polat-article-header .polat-post-meta {
    justify-content: center;
}

.polat-single .polat-featured-image {
    max-width: 1120px !important;
}

.polat-single .polat-featured-image img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.polat-single > .wp-block-post-content {
    max-width: 900px !important;
}

.polat-single .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, blockquote) {
    max-width: 900px !important;
}

.polat-single .wp-block-post-content p {
    color: #303734;
    font-size: 1.08rem;
    line-height: 1.88;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.polat-single .wp-block-post-content .polat-lead {
    color: var(--v200-ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.62rem) !important;
    line-height: 1.58;
}

.polat-single .wp-block-post-content h2 {
    margin-top: 2.5rem;
    color: var(--v200-ink);
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    line-height: 1.16;
}

.polat-single .wp-block-post-content blockquote {
    margin: 2rem 0 !important;
    padding: 22px 28px;
    background: var(--v200-white);
    border: 0;
    border-left: 4px solid var(--v200-green);
}

.polat-single .wp-block-post-content blockquote p {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.28rem;
    font-style: italic;
    text-align: left;
}

.polat-article-contact {
    margin-top: 3rem !important;
    padding: 30px 34px !important;
    color: var(--v200-white);
    background: var(--v200-green);
}

.polat-article-contact h2,
.polat-article-contact p,
.polat-article-contact a {
    color: var(--v200-white) !important;
}

.polat-article-contact h2 {
    margin: 0 0 8px !important;
    font-size: 1.65rem !important;
}

.polat-article-contact p {
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

.polat-article-contact a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

/* Footer is smaller than v1.9 while keeping the identity readable. */
.polat-site-footer-v7 {
    padding: 24px clamp(28px, 4.5vw, 72px) 13px !important;
}

.polat-footer-brand-row-v7 {
    grid-template-columns: minmax(340px, 43%) 1fr !important;
    gap: 34px !important;
    margin-bottom: 18px !important;
}

.polat-site-footer-v7 .polat-brand-lockup {
    grid-template-columns: 94px minmax(0, 1fr);
    max-width: 410px;
}

.polat-site-footer-v7 .polat-brand-mark img {
    width: 94px;
}

.polat-site-footer-v7 .polat-brand-copy strong {
    font-size: 2.28rem;
}

.polat-footer-social-grid > a,
.polat-footer-social-grid > .polat-footer-social-pending {
    min-height: 42px;
}

.polat-footer-info-row-v7 {
    padding: 15px 0 11px !important;
}

.polat-footer-bottom {
    padding-top: 9px !important;
    font-size: 0.68rem;
}

@media (max-width: 1280px) {
    :root {
        --polat-rail: 350px;
    }

    .polat-site-header-v8 .polat-brand-lockup {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .polat-site-header-v8 .polat-brand-mark img {
        width: 98px;
    }

    .polat-site-header-v8 .polat-brand-copy strong {
        font-size: 2.25rem;
    }

    .polat-site-header-v8 .polat-brand-given {
        font-size: 0.8rem;
    }

    .polat-v200-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    body.polat-theme {
        padding-top: 110px !important;
    }

    .polat-site-header-shell,
    .admin-bar .polat-site-header-shell {
        height: 110px;
    }

    .polat-site-header-v8 .polat-brand-lockup {
        grid-template-columns: 88px minmax(0, 1fr);
        width: 330px;
        max-width: calc(100% - 66px);
    }

    .polat-site-header-v8 .polat-brand-mark img {
        width: 88px;
    }

    .polat-site-header-v8 .polat-brand-copy strong {
        font-size: 2rem;
    }

    .polat-site-header-v8 .polat-brand-given {
        font-size: 0.72rem;
    }

    .polat-site-header-v8 .polat-brand-service {
        font-size: 0.54rem;
    }

    .polat-site-header-v8 .polat-primary-navigation.is-open .polat-menu-drawer,
    .polat-site-header-v8 .polat-menu-drawer[aria-hidden="false"] {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .polat-site-header-v8 .polat-menu-close {
        z-index: 2;
        color: var(--v200-ink) !important;
        background: var(--v200-paper) !important;
        border-color: var(--v200-line) !important;
    }

    .polat-v200-section-head {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .polat-v200-section-head h2,
    .polat-v200-section-head > p:first-of-type,
    .polat-v200-section-head > p:last-child {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        text-align: center;
    }

    .polat-publications-query .polat-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 782px) {
    body.polat-theme {
        padding-top: 96px !important;
        font-size: 16px;
    }

    .polat-site-header-shell,
    .admin-bar .polat-site-header-shell {
        height: 96px;
    }

    .polat-site-header-v8 .polat-brand-lockup {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 8px;
        width: 270px;
    }

    .polat-site-header-v8 .polat-brand-mark img {
        width: 70px;
    }

    .polat-site-header-v8 .polat-brand-copy {
        padding-left: 9px;
    }

    .polat-site-header-v8 .polat-brand-copy strong {
        font-size: 1.58rem;
    }

    .polat-site-header-v8 .polat-brand-given {
        font-size: 0.58rem;
    }

    .polat-site-header-v8 .polat-brand-service {
        margin-top: 5px;
        font-size: 0.46rem;
        letter-spacing: 0.11em;
    }

    .polat-v200-hero {
        display: grid !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
        max-height: none;
    }

    .polat-v200-hero-art,
    .polat-v200-hero-art > div,
    .polat-v200-hero-art img {
        min-height: 280px !important;
        height: 280px !important;
    }

    .polat-v200-hero .polat-v181-hero-media,
    .polat-v200-hero .polat-hero-video,
    .polat-v200-hero .polat-hero-video-stage,
    .polat-v200-hero .polat-hero-video-media,
    .polat-v200-hero .polat-hero-video-poster,
    .polat-v200-hero .polat-hero-video-element {
        min-height: 245px !important;
        height: 245px !important;
    }

    .polat-v181-publications {
        padding: 40px 20px 44px !important;
    }

    .polat-publication-topics {
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 7px;
        overflow-x: auto;
    }

    .polat-publication-topics .polat-topic-link {
        flex: 0 0 auto;
    }

    .polat-v181-contact-grid {
        grid-template-columns: 1fr !important;
    }

    .polat-v181-contact-compact .polat-map-frame,
    .polat-v181-contact-compact .polat-map-frame iframe {
        min-height: 230px !important;
        height: 230px !important;
    }

    .polat-related-publications {
        grid-template-columns: 1fr;
    }

    .polat-site-footer-v7 .polat-brand-lockup {
        grid-template-columns: 78px minmax(0, 1fr);
        width: 100%;
    }

    .polat-site-footer-v7 .polat-brand-mark img {
        width: 78px;
    }

    .polat-site-footer-v7 .polat-brand-copy strong {
        font-size: 1.9rem;
    }

    .polat-single .wp-block-post-content p {
        font-size: 1.02rem;
        line-height: 1.8;
    }
}

@media (max-width: 540px) {
    .polat-site-header-v8 .polat-brand-lockup {
        grid-template-columns: 68px minmax(0, 1fr);
        width: 260px;
    }

    .polat-site-header-v8 .polat-brand-mark img {
        width: 68px;
    }

    .polat-site-header-v8 .polat-brand-copy strong {
        font-size: 1.65rem;
    }

    .polat-site-header-v8 .polat-brand-given {
        font-size: 0.66rem;
        letter-spacing: 0.065em;
    }

    .polat-site-header-v8 .polat-brand-service {
        font-size: 0.5rem;
    }

    .polat-v200-post-grid,
    .polat-publications-query .polat-post-grid {
        grid-template-columns: 1fr !important;
    }

    .polat-v200-post-card {
        display: block;
    }

    .polat-v200-post-card .wp-block-post-featured-image {
        height: auto;
    }

    .polat-v200-post-card .wp-block-post-excerpt {
        margin: 0 16px !important;
    }

    .polat-v200-area-publications,
    .polat-v200-related-area {
        padding: 26px 20px !important;
    }

    .polat-related-publications > a {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .polat-single .wp-block-post-content p {
        text-align: left;
        hyphens: manual;
    }
}
