/* Yenilenmiş Cep — site overrides */

:root {
    --site-header-offset: 4.5rem;
    --article-sticky-offset: 4.5rem;
}

@media (min-width: 768px) {
    :root {
        --site-header-offset: 7rem;
        --article-sticky-offset: 7rem;
    }
}

.site-main-offset {
    padding-top: var(--site-header-offset);
}

.top-site-header {
    top: var(--site-header-offset);
}

@media (min-width: 1024px) {
    .article-sidebar-sticky {
        position: sticky;
        top: calc(var(--site-header-offset) + 0.75rem);
    }
}

.site-header-inner {
    position: relative;
    overflow: visible;
}

.site-header-top {
    position: relative;
    z-index: 40;
}

.site-header-brand {
    max-width: calc(100% - 6rem);
}

@media (min-width: 640px) {
    .site-header-brand {
        max-width: none;
    }
}

.site-header-search-wrap {
    position: relative;
    z-index: 5;
}

.site-header-actions {
    z-index: 2;
}

.site-header-nav {
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.site-header-mobile-search {
    position: relative;
    z-index: 40;
}

.site-header-nav-row {
    overflow: hidden;
}

.site-search-form {
    width: 100%;
}

.site-search-field {
    position: relative;
    width: 100%;
}

.site-search-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.site-search-control:focus-within {
    background: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.site-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    margin: 0;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.site-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0.625rem 0.5rem 0.625rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.25rem;
    outline: none;
    box-shadow: none;
}

.site-search-input::placeholder {
    color: #64748b;
}

.site-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
    align-self: center;
    height: 2.125rem;
    margin: 0.3125rem 0.3125rem 0.3125rem 0;
    padding: 0 1rem;
    border: 0;
    border-radius: 0.5rem;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.site-search-submit:hover {
    background: #115e59;
}

.site-search-submit-icon {
    display: none;
    font-size: 18px;
}

.site-search-header {
    width: 100%;
    max-width: 36rem;
}

.site-search-header .site-search-control {
    min-height: 2.5rem;
}

.site-search-header .site-search-input {
    font-size: 0.8125rem;
}

.site-search-header .site-search-submit {
    height: 2rem;
    padding: 0 0.875rem;
    font-size: 0.75rem;
}

@media (min-width: 1024px) {
    .site-search-header .site-search-control {
        min-height: 2.625rem;
    }

    .site-search-header .site-search-input {
        font-size: 0.875rem;
    }
}

@media (max-width: 767px) {
    .site-search-submit-text {
        display: none;
    }

    .site-search-submit-icon {
        display: inline-flex;
    }

    .site-search-submit {
        width: 2.125rem;
        padding: 0;
    }
}

/* Category dropdown navigation */
.site-nav-dropdown-portal {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.site-nav-dropdown-portal .nav-category-submenu.is-portal-open {
    pointer-events: auto;
}

.nav-category-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.nav-category-submenu.is-portal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-category-submenu-panel {
    min-width: 15rem;
    max-width: min(calc(100vw - 1.5rem), 320px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.nav-submenu-link-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-submenu-link-parent:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.nav-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0.375rem 0;
}

.nav-submenu-list li {
    margin: 0;
}

.nav-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-submenu-link:hover {
    background: #f8fafc;
    color: #0f766e;
}

.nav-all-categories-panel {
    max-height: min(calc(100vh - var(--site-header-offset) - 1rem), 480px);
    overflow-y: auto;
}

.nav-all-categories-panel .nav-category-submenu-panel,
.nav-all-categories-panel > .bg-surface-container-lowest {
    max-width: none;
    min-width: 0;
}

.site-header-nav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.nav-category-item {
    position: relative;
    z-index: 30;
}

.nav-category-item.is-open {
    z-index: 130;
}

.nav-category-item.is-open .nav-category-chevron {
    transform: rotate(180deg);
}

.nav-category-chevron {
    transition: transform 0.2s ease;
}

.site-search-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: min(70vh, 24rem);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    padding: 0.5rem;
    isolation: isolate;
}

.site-search-section + .site-search-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.site-search-section-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.25rem 0.5rem 0.35rem;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-search-section-title .material-symbols-outlined {
    font-size: 14px;
    color: #0f766e;
}

.site-search-item {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.site-search-item:hover,
.site-search-item.is-active,
.site-search-tag.is-active,
.site-search-all.is-active {
    background: #f0fdfa;
}

.site-search-item-type {
    display: block;
    color: #0f766e;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.site-search-item-title {
    display: block;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.site-search-item-meta {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;
}

.site-search-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-search-item-icon {
    color: #0f766e;
    font-size: 18px;
}

.site-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0 0.35rem 0.25rem;
}

.site-search-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-search-tag:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.site-search-all {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #f1f5f9;
    color: #0f766e;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.site-search-empty {
    padding: 0.875rem 0.75rem;
    color: #64748b;
    font-size: 0.8125rem;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article detail typography */
#article-reading {
    --article-font-scale: 1;
}

#article-reading.is-font-scaled .article-page-title {
    font-size: calc(1.875rem * var(--article-font-scale)) !important;
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    #article-reading.is-font-scaled .article-page-title {
        font-size: calc(2.75rem * var(--article-font-scale)) !important;
    }
}

#article-reading.is-font-scaled .article-page-lead {
    font-size: calc(1.125rem * var(--article-font-scale)) !important;
    line-height: 1.65 !important;
}

#article-reading.is-font-scaled .article-page-lead [style*="font-size"] {
    font-size: inherit !important;
}

#article-reading.is-font-scaled .article-toc-panel {
    font-size: calc(0.875rem * var(--article-font-scale));
}

#article-reading.is-font-scaled .article-toc-heading {
    font-size: calc(1.125rem * var(--article-font-scale)) !important;
}

#article-reading.is-font-scaled .article-toc-link {
    font-size: calc(0.875rem * var(--article-font-scale)) !important;
}

#article-reading.is-font-scaled .article-toc-link .font-label-sm {
    font-size: calc(0.75rem * var(--article-font-scale)) !important;
}

#article-reading.is-font-scaled .article-cms-body {
    font-size: calc(1rem * var(--article-font-scale)) !important;
}

.article-lead p {
    margin: 0 0 0.75rem;
}

.article-lead p:last-child {
    margin-bottom: 0;
}

.article-lead a {
    color: #0f766e;
    text-decoration: underline;
}

.article-lead ul,
.article-lead ol {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.article-prose {
    color: #334155;
}

.article-cms-body h2,
.article-cms-body h3,
.article-cms-body h4 {
    color: #0f172a;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-cms-body h2 {
    font-size: 1.5em;
    line-height: 1.3;
}

html {
    scroll-padding-top: var(--article-sticky-offset);
}

.article-cms-body h2[id],
.article-prose section[id] {
    scroll-margin-top: var(--article-sticky-offset);
}

.article-cms-body h3 {
    font-size: 1.25em;
}

.article-cms-body h4 {
    font-size: 1.125em;
}

.article-cms-body {
    font-size: 1rem;
}

.article-cms-body.is-font-scaled [style*="font-size"] {
    font-size: inherit !important;
}

.article-cms-body.is-font-scaled h2 {
    font-size: 1.5em !important;
}

.article-cms-body.is-font-scaled h3 {
    font-size: 1.25em !important;
}

.article-cms-body.is-font-scaled h4 {
    font-size: 1.125em !important;
}

.article-cms-body p,
.article-cms-body li {
    margin-bottom: 0.75rem;
    line-height: 1.625;
}

.article-cms-body ul,
.article-cms-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-cms-body ul {
    list-style: disc;
    list-style-position: outside;
}

.article-cms-body ol {
    list-style: decimal;
    list-style-position: outside;
}

.article-cms-body li {
    display: list-item;
}

.article-cms-body li > ul,
.article-cms-body li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-cms-body ul ul {
    list-style-type: circle;
}

.article-cms-body a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 600;
    word-break: break-word;
}

.article-cms-body a:hover {
    color: #115e59;
}

.article-cms-body a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.2rem;
    vertical-align: -0.05rem;
    background: currentColor;
    opacity: 0.55;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6h-2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6h-2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.article-cms-body img {
    border-radius: 0.75rem;
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}

.article-cms-body blockquote {
    border-left: 4px solid #0f766e;
    padding-left: 1rem;
    color: #64748b;
    font-style: italic;
    margin: 1rem 0;
}

/* Article CMS — tables & rich HTML elements */
.article-cms-body .article-table-wrap {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.article-cms-body table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.9375em;
    line-height: 1.5;
    color: #334155;
}

.article-cms-body thead {
    background: #f1f5f9;
}

.article-cms-body th,
.article-cms-body td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.article-cms-body th {
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    white-space: nowrap;
}

.article-cms-body tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-cms-body tbody tr:hover {
    background: #f0fdfa;
}

.article-cms-body td strong,
.article-cms-body th strong {
    color: #0f172a;
    font-weight: 700;
}

.article-cms-body figure {
    margin: 1.5rem 0;
}

.article-cms-body figure img {
    margin: 0;
}

.article-cms-body figcaption {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.875em;
    line-height: 1.5;
    text-align: center;
}

.article-cms-body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.article-cms-body strong,
.article-cms-body b {
    color: #0f172a;
    font-weight: 700;
}

.article-cms-body em,
.article-cms-body i {
    font-style: italic;
}

.article-cms-body u {
    text-underline-offset: 0.15em;
}

.article-cms-body > div + div,
.article-cms-body > p + div,
.article-cms-body > div + p {
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .article-cms-body .article-table-wrap {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        border-radius: 0.625rem;
    }

    .article-cms-body th,
    .article-cms-body td {
        padding: 0.625rem 0.75rem;
        font-size: 0.875em;
    }
}

/* Legal / policy pages */
.legal-content section {
    margin-bottom: 2rem;
}

.legal-content section[id] {
    scroll-margin-top: var(--site-header-offset);
}

.legal-content h2 {
    color: #0f172a;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    color: #0f172a;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: #334155;
    line-height: 1.625;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-content a:hover {
    color: #115e59;
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent__panel {
    width: min(100%, 56rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
    .cookie-consent {
        padding: 1.5rem;
    }

    .cookie-consent__panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

.cookie-consent__content {
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.cookie-consent__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #f0fdfa;
    color: #0f766e;
}

.cookie-consent__icon .material-symbols-outlined {
    font-size: 1.5rem;
}

.cookie-consent__title {
    margin: 0 0 0.375rem;
    color: #0f172a;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.cookie-consent__text {
    margin: 0;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.625;
}

.cookie-consent__text a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.cookie-consent__text a:hover {
    color: #115e59;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .cookie-consent__actions {
        flex-direction: row;
        align-items: center;
    }
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-consent__btn--primary {
    background: #0f766e;
    color: #ffffff;
}

.cookie-consent__btn--primary:hover {
    background: #115e59;
}

.cookie-consent__btn--secondary {
    background: transparent;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cookie-consent__btn--secondary:hover {
    background: #f1f5f9;
}
