/*
 * AKDENİZ BARMENLER DERNEĞİ — GÖRÜNÜM DOSYASI
 *
 * Tema renkleri en üstteki :root ve [data-theme=light] bölümünden ayarlanır.
 * Gündüz ve gece arka planları images/ klasöründen yüklenir.
 * Bağlantı çizgileri ekrana göre js/app.js tarafından otomatik çizilir.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Libre+Baskerville:wght@400;700&display=swap');
:root {
    --ink: #faf4e9;
    --muted: rgba(250,244,234,.89);
    --fine: rgba(250,244,234,.7);
    --champagne: #c9a06d;
    --champagne-strong: #e7c38d;
    --line: rgba(223,183,126,.76);
    --panel: rgba(8,19,30,.79);
    --panel-border: rgba(248,228,193,.27);
    --panel-shadow: 0 30px 110px rgba(1,6,15,.24);
    --modal-bg: #f7f3eb;
    --modal-ink: #172836;
    --veil: linear-gradient(180deg,rgba(3,17,30,.64) 0%,rgba(3,17,30,.32) 39%,rgba(3,14,23,.55) 70%,rgba(2,10,17,.70) 100%);
    --portrait-back: linear-gradient(145deg,#bcad92,#736c64 62%,#304150);
    --control: rgba(9,20,33,.36);
    color-scheme: dark;
}

html[data-theme=light] {
    --ink: #1c3040;
    --muted: rgba(27,46,59,.88);
    --fine: rgba(33,52,63,.7);
    --champagne: #90632e;
    --champagne-strong: #865a28;
    --line: rgba(140,93,45,.72);
    --panel: rgba(254,251,245,.91);
    --panel-border: rgba(128,98,57,.26);
    --panel-shadow: 0 24px 75px rgba(38,41,42,.13);
    --veil: linear-gradient(180deg,rgba(255,252,242,.78) 0%,rgba(255,252,242,.45) 43%,rgba(255,253,247,.53) 70%,rgba(251,249,242,.83) 100%);
    --control: rgba(255,253,247,.68);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

body {
    font-family: 'Inter','Arial',sans-serif;
    background: #102032;
    color: var(--ink);
    -webkit-tap-highlight-color:transparent;
}

button,a {
    font: inherit;
    -webkit-tap-highlight-color:transparent;
}

button {
    cursor: pointer;
}

button:focus-visible,a:focus-visible {
    outline: 2px solid var(--champagne-strong);
    outline-offset: 4px;
}

.stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg,.veil,.grain,.sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.bg {
    background-size: cover;
    background-position: center 49%;
    transition: opacity 3.4s cubic-bezier(.19,1,.22,1),transform 3.4s cubic-bezier(.19,1,.22,1);
    transform: scale(1.04);
    will-change: opacity,transform;
}

.bg.day {
    background-image: url('../images/alanya-gunduz.webp');
    opacity: 0;
}

.bg.night {
    background-image: url('../images/alanya-gece.webp');
    opacity: 1;
}

html[data-theme=light] .bg.day {
    opacity: 1;
}

html[data-theme=light] .bg.night {
    opacity: 0;
}

html.theme-motion-running .bg {
    transform: scale(1);
}

.veil {
    background: linear-gradient(180deg,rgba(3,17,30,.64) 0%,rgba(3,17,30,.32) 39%,rgba(3,14,23,.55) 70%,rgba(2,10,17,.70) 100%);
    z-index: -1;
}

.veil:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(255,252,242,.78) 0%,rgba(255,252,242,.45) 43%,rgba(255,253,247,.53) 70%,rgba(251,249,242,.83) 100%);
    opacity: 0;
    transition: opacity 3.4s cubic-bezier(.19,1,.22,1);
}

html[data-theme=light] .veil:after {
    opacity: 1;
}

.brand,.brand-text small,.social-link,.theme-control,.intro,.intro h1,.intro h2,.description,.eyebrow,.profile,.profile-role,.board-label,.bottom {
    transition: color 2.5s ease,border-color 2.5s ease,background-color 2.5s ease;
}

.grain {
    z-index: -1;
    background: radial-gradient(circle at 50% 45%,transparent 8%,rgba(2,8,16,.18) 100%);
    opacity: .55;
}

html[data-theme=light] .grain {
    opacity: 0;
}

.sweep {
    z-index: 0;
    inset: -25% -38%;
    background: linear-gradient(110deg,transparent 29%,rgba(250,203,137,0) 42%,rgba(255,228,177,.14) 50%,rgba(255,233,183,0) 56%,transparent 68%);
    opacity: 0;
    transform: translateX(-65%);
    transition: none;
}

html.theme-motion-running .sweep {
    animation: lightSweep 3.4s ease-in-out both;
}

@keyframes lightSweep {
    0% {
        opacity: 0;
        transform: translateX(-65%);
    }

    35% {
        opacity: .5;
    }

    75% {
        opacity: .5;
    }

    100% {
        opacity: 0;
        transform: translateX(65%);
    }

}

header {
    width: 100%;
    height: 92px;
    min-height: 76px;
    padding: 21px clamp(22px,4.3vw,77px) 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
}

.brand-marks {
    display: flex;
    gap: 8px;
    align-items: center;
}

.brand-marks img {
    width: 51px;
    height: 51px;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0,0,0,.19));
}

.brand-rule {
    width: 1px;
    height: 35px;
    background: var(--line);
    margin: 0 3px 0 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-text strong {
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: .045em;
    font-weight: 800;
    white-space: nowrap;
}

.brand-text small {
    font-size: 9px;
    letter-spacing: .27em;
    font-weight: 600;
    color: var(--muted);
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 6px;
}

.controls-rule {
    height: 22px;
    width: 1px;
    background: var(--line);
    opacity: .7;
    margin: 0 5px;
}

.social-link {
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--control);
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    width: 39px;
    height: 39px;
    text-decoration: none;
    transition: transform .2s,border-color .2s,background .3s;
    backdrop-filter: blur(6px);
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--champagne-strong);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-control {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--panel-border);
    border-radius: 40px;
    background: var(--control);
    padding: 4px 9px 4px 5px;
    height: 39px;
    color: var(--ink);
    backdrop-filter: blur(6px);
}

.theme-control>span:last-child {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
}

.theme-circle {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--champagne-strong);
    color: #202b31;
    position: relative;
    flex: none;
    transition: transform 1.1s cubic-bezier(.2,.85,.2,1),background-color 2.4s ease;
}

.theme-circle svg {
    width: 17px;
    height: 17px;
    position: absolute;
    inset: 6px;
    transition: transform 1s ease,opacity .7s ease;
    stroke-width: 1.8;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-circle .sun {
    opacity: 1;
    transform: rotate(0);
}

.theme-circle .moon {
    opacity: 0;
    transform: rotate(120deg);
}

html[data-theme=light] .theme-circle .sun {
    opacity: 0;
    transform: rotate(-105deg);
}

html[data-theme=light] .theme-circle .moon {
    opacity: 1;
    transform: rotate(0);
}

.main {
    position: relative;
    z-index: 2;
    width: min(1290px,calc(100% - 48px));
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0 30px;
    gap: clamp(14px,2.1dvh,24px);
}

.intro {
    text-align: center;
    width: 100%;
    max-width: 980px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
}

.eyebrow {
    color: var(--champagne-strong);
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
    margin: 0 0 13px;
}

.intro h1 {
    font-family: 'Libre Baskerville',Georgia,serif;
    font-size: clamp(27px,3.55vw,50px);
    line-height: 1.19;
    font-weight: 700;
    letter-spacing: -.033em;
    margin: 0;
    text-shadow: 0 3px 24px rgba(0,0,0,.17);
    text-wrap: balance;
}

.header-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 13px;
    color: var(--champagne-strong);
}

.header-rule::before,.header-rule::after {
    content: '';
    width: 51px;
    height: 1px;
    background: currentColor;
    opacity: .62;
}

.header-rule i {
    width: 6px;
    height: 6px;
    background: currentColor;
    transform: rotate(45deg);
}

.intro h2 {
    font-family: 'Libre Baskerville',Georgia,serif;
    font-size: clamp(17px,1.83vw,24px);
    font-weight: 700;
    line-height: 1.34;
    margin: 0 0 9px;
    letter-spacing: -.026em;
}

.description {
    margin: 0;
    max-width: 820px;
    font-size: clamp(11px,.97vw,14px);
    line-height: 1.65;
    font-weight: 500;
    color: var(--muted);
    text-wrap: balance;
}

.board {
    width: 100%;
    max-width: 1235px;
    min-height: 0;
    flex: 0 1 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid color-mix(in srgb,var(--panel-border) 68%, transparent);
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter:none;
    padding: 14px clamp(14px,2.5vw,38px) 13px;
    transition: border-color 2.3s,box-shadow 2.3s;
}

.board::before {
    content: '';
    position: absolute;
    left: 32px;
    right: 32px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,transparent,var(--champagne-strong),transparent);
    opacity: .55;
}

.board-label {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    color: var(--champagne-strong);
    font-weight: 700;
    letter-spacing: .25em;
    font-size: 10px;
    line-height: 15px;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.board-label::before,.board-label::after {
    content: '';
    height: 1px;
    width: 35px;
    background: var(--champagne);
    opacity: .5;
}

.org {
    display: flex;
    position: relative;
    isolation: isolate;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px,2.5dvh,26px);
    width: 100%;
    max-width: 1110px;
}

.tier {
    display: grid;
    align-items: start;
    justify-items: center;
    z-index: 2;
    position: relative;
    width: 100%;
    margin: 0 auto;
    gap: 14px;
}

.tier-president {
    grid-template-columns: 1fr;
    max-width: 188px;
}

.tier-vice {
    grid-template-columns: repeat(3,minmax(0,1fr));
    max-width: 690px;
    gap: 20px;
}

.tier-founder {
    grid-template-columns: repeat(6,minmax(0,1fr));
    max-width: 930px;
    gap: 16px;
}

.tier-team {
    grid-template-columns: 1fr;
    max-width: 310px;
    padding-top: 2px;
}

.profile {
    appearance: none;
    background: none;
    border: 0;
    color: var(--ink);
    padding: 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform .25s ease;
}

.profile:hover {
    transform: translateY(-3px);
}

.portrait {
    width: clamp(52px,7.4dvh,77px);
    height: clamp(52px,7.4dvh,77px);
    border-radius: 50%;
    border: 2px solid var(--line);
    box-shadow: 0 0 0 4px rgba(205,164,106,.075);
    background: var(--portrait-back);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #efe9db;
    position: relative;
    transition: box-shadow .25s,border-color .25s,transform .25s ease;
}

.profile:hover .portrait {
    border-color: var(--champagne-strong);
    box-shadow: 0 0 0 5px rgba(212,170,109,.23);
    transform: translateY(-1px);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 29%;
    filter: grayscale(1);
    display: none;
}

.portrait.loaded img {
    display: block;
}

.portrait .initials {
    font-family: Georgia,serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.06em;
}

.portrait.loaded .initials {
    display: none;
}

.tier-president .portrait {
    width: clamp(70px,9.2dvh,92px);
    height: clamp(70px,9.2dvh,92px);
    border-width: 2.5px;
    border-color: var(--champagne-strong);
}

.tier-vice .portrait {
    width: clamp(57px,7.9dvh,79px);
    height: clamp(57px,7.9dvh,79px);
}

.tier-founder .portrait {
    width: clamp(46px,6.9dvh,69px);
    height: clamp(46px,6.9dvh,69px);
}

.profile-name {
    display: block;
    max-width: 100%;
    font-size: clamp(11px,.96vw,14px);
    line-height: 1.2;
    font-weight: 800;
    margin-top: 9px;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.tier-president .profile-name {
    font-size: clamp(15px,1.24vw,17px);
}

.tier-vice .profile-name {
    font-size: clamp(12px,1.08vw,15px);
}

.profile-role {
    display: block;
    font-size: clamp(9px,.7vw,10px);
    line-height: 1.28;
    color: var(--champagne-strong);
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: .02em;
}

.tier-team {
    border-top: 1px solid var(--panel-border);
    padding-top: 8px;
    margin-top: 0;
}

.tier-team .profile {
    display: grid;
    grid-template-columns: 34px auto;
    grid-template-rows: 17px 15px;
    column-gap: 10px;
    align-items: center;
    text-align: left;
    justify-content: center;
    max-width: 265px;
}

.tier-team .portrait {
    grid-column: 1;
    grid-row: 1/3;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    box-shadow: none;
}

.tier-team .portrait .initials {
    font-size: 15px;
}

.tier-team .profile-name {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 11px;
    align-self: end;
}

.tier-team .profile-role {
    grid-column: 2;
    grid-row: 2;
    margin: 2px 0 0;
    font-size: 9px;
    align-self: start;
}

.org-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}

.org-lines .halo {
    fill: none;
    stroke: var(--line);
    stroke-width: 5.5;
    stroke-opacity: .10;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.org-lines .wire {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.org-lines .sheen {
    fill: none;
    stroke: rgba(255,247,230,.30);
    stroke-width: .56;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.org-lines .joint {
    fill: var(--champagne-strong);
    stroke: rgba(255,248,232,.66);
    stroke-width: .6;
    vector-effect: non-scaling-stroke;
}

.bottom {
    position: absolute;
    bottom: 13px;
    left: clamp(22px,4.3vw,77px);
    right: clamp(22px,4.3vw,77px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    z-index: 3;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .03em;
}

.bottom span:last-child {
    color: var(--champagne-strong);
    font-weight: 700;
    letter-spacing: .06em;
}

/* Biyografi penceresi ekranın üzerinde açılır; yalnızca metin alanı kaydırılır. */
.dialog-shade {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5,11,18,.74);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter:blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s,visibility .25s;
}

.dialog-shade.open {
    opacity: 1;
    visibility: visible;
}

.dialog {
    position: relative;
    width: min(828px,100%);
    height: min(560px,86dvh);
    display: grid;
    grid-template-columns: 36% 64%;
    background: var(--modal-bg);
    color: var(--modal-ink);
    box-shadow: 0 30px 120px rgba(0,0,0,.37);
    border: 1px solid rgba(208,182,139,.28);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(14px) scale(.99);
    transition: transform .25s;
}

.dialog-shade.open .dialog {
    transform: none;
}

.dialog-left {
    background: linear-gradient(155deg,#203748 0%,#0b1d2b 100%);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 14px;
}

.dialog-left:before {
    content: none;
}

.dialog-portrait {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 140px 140px 11px 11px;
    overflow: hidden;
    background: linear-gradient(145deg,#b7ad96,#4c5860);
    color: #f8eedc;
    display: grid;
    place-items: center;
    border: 1px solid rgba(233,209,164,.57);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,248,230,.09);
}

.dialog-portrait img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.10);
    transform-origin: center 34%;
    /* Biyografi modalındaki fotoğraflar orijinal renkleriyle gösterilir. */
    filter: none;
}

.dialog-portrait.loaded img {
    display: block;
}

.dialog-portrait.loaded .initials {
    display: none;
}

.dialog-portrait .initials {
    font: 700 clamp(76px,7vw,110px) Georgia,serif;
}

.dialog-right {
    padding: 39px 42px 31px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c3a16b transparent;
}

.dialog-kicker {
    color: #926b3e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.dialog h3 {
    font-family: 'Libre Baskerville',Georgia,serif;
    font-weight: 700;
    font-size: clamp(23px,2.1vw,31px);
    line-height: 1.24;
    margin: 11px 34px 19px 0;
}

.dialog-bio {
    font-size: 13px;
    line-height: 1.84;
    font-weight: 450;
    white-space: pre-line;
    color: #34424c;
}

.dialog-socials {
    border-top: 1px solid #dfd6c8;
    margin-top: 23px;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dialog-socials a {
    color: #263747;
    background: #eae5db;
    padding: 9px 11px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.dialog-socials a:hover {
    background: #d8c5a5;
}

.dialog-socials .none {
    color: #6b737b;
    font-size: 12px;
}

.dialog-close {
    position: absolute;
    top: 15px;
    right: 19px;
    border: 0;
    background: transparent;
    color: #4e5d63;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    z-index: 2;
}

.dialog-close:hover {
    background: #eae5db;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%) translateY(12px);
    background: #f8f1e4;
    color: #1b2a34;
    padding: 12px 17px;
    border-radius: 6px;
    z-index: 30;
    font-size: 12px;
    max-width: 92vw;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s,transform .2s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media(max-width:980px) {
    header {
        padding-inline: 24px;
    }

    .brand-text strong {
        font-size: 9px;
    }

    .brand-text small {
        font-size: 8px;
    }

    .main {
        width: calc(100% - 30px);
    }

    .board {
        padding: 12px 12px 11px;
    }

    .tier-founder {
        gap: 5px;
    }

    .profile-name {
        font-size: 10px;
    }

    .profile-role {
        font-size: 8px;
    }

}

@media(max-width:700px) {
    header {
        height: 67px;
        min-height: 67px;
        padding: 12px 13px 0;
    }

    .brand-marks {
        gap: 4px;
    }

    .brand-marks img {
        width: 37px;
        height: 37px;
    }

    .brand-rule {
        height: 26px;
        margin-left: 2px;
        margin-right: 0;
    }

    .brand {
        gap: 8px;
    }

    .brand-text strong {
        font-size: 7px;
        letter-spacing: .01em;
        white-space: nowrap;
    }

    .brand-text small {
        font-size: 7px;
        letter-spacing: .08em;
    }

    .controls {
        gap: 5px;
        padding-top: 1px;
    }

    .controls-rule {
        height: 17px;
        margin: 0 1px;
    }

    .theme-control {
        height: 32px;
        padding: 2px;
        border: 0;
        background: transparent;
    }

    .theme-control>span:last-child {
        display: none;
    }

    .theme-circle {
        width: 28px;
        height: 28px;
    }

    .social-link {
        width: 30px;
        height: 30px;
        border: 0;
        background: transparent;
    }

    .social-link svg {
        width: 19px;
        height: 19px;
    }

    .main {
        width: calc(100% - 20px);
        gap: 8px;
        padding: 0 0 22px;
        justify-content: center;
    }

    .eyebrow {
        font-size: 7px;
        letter-spacing: .16em;
        margin-bottom: 6px;
    }

    .intro h1 {
        font-size: clamp(23px,6vw,34px);
        line-height: 1.17;
        max-width: 430px;
    }

    .header-rule {
        margin: 8px 0 7px;
    }

    .header-rule::before,.header-rule::after {
        width: 24px;
    }

    .intro h2 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .description {
        font-size: clamp(9px,2.38vw,11px);
        line-height: 1.37;
        max-width: 470px;
    }

    .board {
        border-radius: 13px;
        padding: 8px 5px 8px;
        backdrop-filter: none;
        -webkit-backdrop-filter:none;
    }

    .board-label {
        font-size: 7px;
        letter-spacing: .17em;
        margin-bottom: 6px;
    }

    .board-label::before,.board-label::after {
        width: 17px;
    }

    .org {
        gap: clamp(6px,1dvh,9px);
    }

    .tier-vice {
        max-width: 345px;
        gap: 5px;
    }

    .tier-founder {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 330px;
        gap: 8px 0;
    }

    .tier-founder .profile {
        flex: 0 0 33.333%;
        width: 33.333%;
        min-width: 0;
        padding-inline: 1px;
    }

    .portrait {
        width: clamp(43px,6.3dvh,58px);
        height: clamp(43px,6.3dvh,58px);
    }

    .tier-president .portrait {
        width: clamp(53px,7.3dvh,67px);
        height: clamp(53px,7.3dvh,67px);
    }

    .tier-vice .portrait {
        width: clamp(46px,6.6dvh,59px);
        height: clamp(46px,6.6dvh,59px);
    }

    .tier-founder .portrait {
        width: clamp(38px,5.2dvh,50px);
        height: clamp(38px,5.2dvh,50px);
    }

    .portrait .initials {
        font-size: 17px;
    }

    .profile-name {
        font-size: 9px;
        line-height: 1.17;
        margin-top: 4px;
    }

    .profile-role {
        font-size: 7px;
        line-height: 1.18;
        margin-top: 1px;
    }

    .tier-president .profile-name {
        font-size: 12px;
    }

    .tier-vice .profile-name {
        font-size: 10px;
    }

    .tier-team {
        padding-top: 4px;
    }

    .tier-team .portrait {
        width: 28px;
        height: 28px;
    }

    .tier-team .profile {
        grid-template-columns: 28px auto;
        grid-template-rows: 14px 13px;
    }

    .tier-team .profile-name {
        font-size: 10px;
    }

    .tier-team .profile-role {
        font-size: 8px;
    }

    .bottom {
        left: 14px;
        right: 14px;
        bottom: 9px;
        font-size: 8px;
    }

    .bottom span:last-child {
        letter-spacing: 0;
    }

    .dialog {
        grid-template-columns: 1fr;
        grid-template-rows: 128px minmax(0,1fr);
        height: min(610px,88dvh);
    }

    .dialog-left:before {
        content: none;
    }

    .dialog-left {
        padding: 8px;
    }

    .dialog-portrait {
        height: 105px;
        width: 105px;
        max-height: 100%;
        border-radius: 50%;
        aspect-ratio: auto;
    }

    .dialog-portrait .initials {
        font-size: 35px;
    }

    .dialog-right {
        padding: 19px 22px 24px;
    }

    .dialog h3 {
        font-size: 24px;
        margin: 7px 30px 12px 0;
    }

    .dialog-bio {
        font-size: 12px;
        line-height: 1.65;
    }

    .dialog-close {
        top: 12px;
        right: 13px;
        background: rgba(255,255,255,.88);
    }

}

@media(max-width:700px) and (min-height:790px) {
    .main {
        gap: 12px;
    }

    .intro h2 {
        font-size: 19px;
    }

    .description {
        font-size: 10.8px;
        line-height: 1.48;
    }

    .board {
        padding: 11px 6px 12px;
    }

    .org {
        gap: 12px;
    }

    .tier-president .portrait {
        width: 75px;
        height: 75px;
    }

    .tier-vice .portrait {
        width: 66px;
        height: 66px;
    }

    .tier-founder .portrait {
        width: 53px;
        height: 53px;
    }

    .profile-name {
        font-size: 10px;
        margin-top: 6px;
    }

    .profile-role {
        font-size: 7.5px;
        margin-top: 2px;
    }

    .tier-president .profile-name {
        font-size: 14px;
    }

    .tier-vice .profile-name {
        font-size: 11px;
    }

    .tier-team {
        padding-top: 8px;
    }

}

@media(max-width:700px) and (max-height:740px) {
    header {
        height: 58px;
        min-height: 58px;
        padding-top: 8px;
    }

    .main {
        gap: 5px;
        padding-bottom: 18px;
    }

    .eyebrow {
        margin-bottom: 4px;
    }

    .intro h1 {
        font-size: 22px;
    }

    .header-rule {
        margin: 5px 0 4px;
    }

    .intro h2 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .description {
        font-size: 9px;
        line-height: 1.25;
    }

    .board {
        padding: 5px 4px 5px;
    }

    .board-label {
        margin-bottom: 3px;
    }

    .org {
        gap: 5px;
    }

    .tier-president .portrait {
        width: 49px;
        height: 49px;
    }

    .tier-vice .portrait {
        width: 43px;
        height: 43px;
    }

    .tier-founder .portrait {
        width: 36px;
        height: 36px;
    }

    .profile-name {
        margin-top: 2px;
        font-size: 8.2px;
    }

    .profile-role {
        font-size: 6.5px;
    }

    .tier-president .profile-name {
        font-size: 11px;
    }

    .tier-vice .profile-name {
        font-size: 9px;
    }

    .tier-founder {
        row-gap: 3px;
    }

    .tier-team {
        padding-top: 3px;
    }

}

@media(max-height:760px) and (min-width:701px) {
    header {
        height: 75px;
        min-height: 75px;
        padding-top: 12px;
    }

    .main {
        gap: 8px;
        padding-bottom: 21px;
    }

    .eyebrow {
        margin-bottom: 5px;
    }

    .intro h1 {
        font-size: clamp(27px,3.1vw,40px);
    }

    .header-rule {
        margin: 8px 0;
    }

    .intro h2 {
        font-size: 19px;
        margin-bottom: 4px;
    }

    .description {
        font-size: 11px;
    }

    .board {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .board-label {
        margin-bottom: 3px;
    }

    .org {
        gap: 8px;
    }

    .tier-president .portrait {
        width: 65px;
        height: 65px;
    }

    .tier-vice .portrait {
        width: 56px;
        height: 56px;
    }

    .tier-founder .portrait {
        width: 48px;
        height: 48px;
    }

    .profile-name {
        margin-top: 4px;
    }

}

@media(prefers-reduced-motion:reduce) {
    .bg,.veil,.theme-circle,.theme-circle svg,.dialog,.dialog-shade {
        transition: none!important;
    }

    .sweep {
        animation: none!important;
    }

}

/* Son görsel dokunuşlar: şeffaf yüzeyi ve dengeli renkleri korur. */
html[data-theme=light] .intro h1 {
    text-shadow: 0 2px 20px rgba(255,255,255,.4);
}

html[data-theme=light] .org-lines .sheen {
    stroke: rgba(255,246,226,.24);
}

html[data-theme=light] .portrait {
    box-shadow: 0 0 0 4px rgba(143,99,48,.09);
}

@media(max-width:700px) and (max-height:740px) {
    .dialog {
        grid-template-rows: 110px minmax(0,1fr);
    }

    .dialog-portrait {
        width: 88px;
        height: 88px;
    }

}

@media(prefers-reduced-motion:reduce) {
    .dialog-portrait img {
        transform: none;
    }

}


/* ==========================================================
   11 EKİM YARIŞMA DERECELERİ MODALI
   Ana sayfa kaydırılmaz; yalnızca bu pencere gerekirse kayar.
   ========================================================== */

.results-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0 7px 12px;
    border: 0;
    background: transparent;
    color: var(--champagne-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    white-space: nowrap;
    line-height: 1.15;
    transition: color .3s ease, opacity .3s ease;
}
.results-trigger:hover { opacity: .72; }
.results-trigger svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.results-arrow { font-size: 15px; line-height: 1; }

.results-shade {
    position: fixed;
    inset: 0;
    z-index: 45;
    padding: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(5, 13, 22, .76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .32s ease, visibility .32s ease;
}
.results-shade.open { opacity: 1; visibility: visible; }

.results-dialog {
    --result-text: #f6f0e6;
    --result-subtle: #c0b4a2;
    --result-edge: rgba(227, 190, 132, .28);
    --result-surface: rgba(255,255,255,.035);
    --result-warm: #dcb681;
    position: relative;
    width: min(920px, 100%);
    max-height: min(92dvh, 690px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 17px;
    border: 1px solid var(--result-edge);
    color: var(--result-text);
    background: radial-gradient(ellipse at 50% 4%,rgba(163,120,65,.18),transparent 49%),
                linear-gradient(158deg,#142e3d 0%,#0b1c29 66%,#091823 100%);
    box-shadow: 0 34px 100px rgba(0,0,0,.38);
    padding: 27px clamp(16px, 4vw, 48px) 23px;
    scrollbar-width: thin;
    scrollbar-color: #b28b57 transparent;
    transform: translateY(18px) scale(.985);
    transition: transform .34s cubic-bezier(.22,1,.36,1),background .5s ease;
}
.results-shade.open .results-dialog { transform: none; }
html[data-theme=light] .results-dialog {
    --result-text: #1d3442;
    --result-subtle: #586673;
    --result-edge: rgba(144,105,57,.25);
    --result-surface: rgba(255,255,255,.55);
    --result-warm: #926333;
    background: radial-gradient(ellipse at 50% 4%,rgba(215,179,119,.24),transparent 51%),
                linear-gradient(150deg,#fcfaf4,#ece6dc);
    box-shadow: 0 30px 100px rgba(3,19,31,.34);
}
.results-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    border: 1px solid var(--result-edge);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 27px;
    font-weight: 300;
    color: var(--result-text);
    background: var(--result-surface);
    line-height: 1;
}
.results-close:hover { background: rgba(194,157,103,.20); }
.results-header { text-align: center; display: grid; justify-items: center; }
.results-emblem {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    color: var(--result-warm);
    border: 1px solid var(--result-edge);
    border-radius: 50%;
    margin-bottom: 11px;
}
.results-emblem svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.results-eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    color: var(--result-warm);
    font-weight: 750;
    letter-spacing: .28em;
}
.results-eyebrow span { margin-inline: 3px; }
.results-header h2 {
    font: 700 clamp(25px, 3.5vw, 36px)/1.2 'Libre Baskerville', Georgia, serif;
    letter-spacing: -.035em;
    margin: 0 35px 9px;
}
.results-header > p:last-child {
    font-size: 12px;
    font-weight: 500;
    color: var(--result-subtle);
    margin: 0 0 16px;
}
.results-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: end;
    gap: clamp(10px, 2.2vw, 22px);
    margin: 0 auto;
    width: 100%;
}
.result-card {
    min-width: 0;
    min-height: 304px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 14px 20px;
    text-align: center;
    border: 1px solid var(--result-edge);
    border-radius: 12px 12px 5px 5px;
    background: var(--result-surface);
}
.result-card--1 {
    padding-top: 19px;
    min-height: 338px;
    border-color: rgba(212,166,94,.7);
    background: linear-gradient(180deg,rgba(199,149,69,.18),rgba(210,163,95,.035));
    box-shadow: inset 0 1px 0 rgba(250,222,159,.33), 0 5px 30px rgba(0,0,0,.07);
}
.result-card--2 { border-color: rgba(164,174,182,.46); }
.result-card--3 { border-color: rgba(168,125,96,.50); }
.result-place {
    font: 700 32px/1 'Libre Baskerville', Georgia, serif;
    letter-spacing: -.05em;
    color: #b6bec4;
    margin-bottom: 10px;
}
.result-card--1 .result-place { font-size: 38px; color: #e0b878; }
.result-card--3 .result-place { color: #c59a75; }
html[data-theme=light] .result-card--1 .result-place { color:#936227; }
html[data-theme=light] .result-card--2 .result-place { color:#667480; }
html[data-theme=light] .result-card--3 .result-place { color:#95684a; }
.result-photo {
    width: min(100%, 158px);
    aspect-ratio: 5 / 5.5;
    position: relative;
    border-radius: 80px 80px 7px 7px;
    overflow: hidden;
    border: 1px solid var(--result-edge);
    background: linear-gradient(160deg,rgba(180,152,113,.20),rgba(95,104,109,.12));
    margin-bottom: 14px;
}
.result-card--1 .result-photo { width:min(100%,175px); }
/* Fotoğraf DOM içinde görünür kaldığından tarayıcı yüklemeyi engellemez. */
.result-photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    opacity: 0;
    transition: opacity .35s ease;
}
.result-photo.has-photo > img { opacity: 1; }
.result-photo.has-photo .result-photo-fallback { opacity: 0; }
.result-photo-fallback { transition: opacity .35s ease; }
.result-photo-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.result-photo-fallback span {
    font: 700 42px/1 'Libre Baskerville',Georgia,serif;
    color: var(--result-subtle);
    opacity: .65;
    letter-spacing: -.08em;
}
.result-rank {
    margin: auto 0 7px;
    color: var(--result-warm);
    font-size: 9px;
    letter-spacing: .2em;
    font-weight: 800;
}
.result-name {
    margin: 0;
    color: var(--result-text);
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(14px,1.35vw,17px);
    font-weight: 800;
    line-height: 1.35;
}
.result-cocktail { margin: 8px 0 0; font-size: 11px; color: var(--result-subtle); }
.results-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--result-edge);
    margin-top: 20px;
    padding-top: 15px;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .14em;
    color: var(--result-subtle);
}
.results-bottom a {
    text-decoration: none;
    color: var(--result-warm);
    font-size: 10px;
    letter-spacing: 0;
    font-weight: 700;
}
.results-bottom a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .results-trigger { gap: 5px; font-size: 8px; letter-spacing: .025em; padding: 5px 0; }
    .results-trigger svg { width: 16px; height: 16px; }
    .results-trigger-date { display: none; }
    .results-arrow { display: none; }
    .results-shade { padding: 10px; }
    .results-dialog { max-height: 91dvh; padding: 22px 12px 15px; border-radius: 13px; }
    .results-close { right: 9px; top: 8px; width: 30px; height: 30px; font-size: 22px; }
    .results-emblem { width: 32px; height: 32px; margin-bottom: 8px; }
    .results-emblem svg { width: 17px; height: 17px; }
    .results-eyebrow { font-size: 8px; margin-bottom: 8px; letter-spacing: .16em; }
    .results-header h2 { font-size: clamp(18px,5.2vw,25px); margin: 0 23px 7px; }
    .results-header > p:last-child { font-size: 10px; line-height: 1.4; margin-bottom: 15px; }
    .results-podium { gap: 7px; }
    .result-card { min-height: 206px; padding: 10px 5px 12px; border-radius: 9px 9px 4px 4px; }
    .result-card--1 { min-height: 226px; padding-top: 12px; }
    .result-place { font-size: 25px; margin-bottom: 7px; }
    .result-card--1 .result-place { font-size: 30px; }
    .result-photo { width: 100%; max-width: 110px; margin-bottom: 8px; }
    .result-photo-fallback span { font-size: 28px; }
    .result-rank { font-size: 8px; letter-spacing: .04em; margin-bottom: 6px; }
    .result-name { font-size: 11px; line-height: 1.24; overflow-wrap: anywhere; }
    .results-bottom { margin-top: 14px; padding-top: 11px; font-size: 8px; letter-spacing: 0; }
    .results-bottom a { font-size: 9px; }
}
@media (max-width: 370px) {
    .bottom { font-size: 7px; }
    .results-trigger { font-size: 7px; }
    .results-dialog { padding-inline: 9px; }
    .result-name { font-size: 10px; }
    .result-card { padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    .results-shade, .results-dialog { transition: none; }
}


/* -------------------------------------------------------------
 * ÜÇ DİLLİ ÜST MENÜ (TR / EN / RU)
 * Dil değiştirici tema ve sosyal ikonlardan bağımsız çalışır.
 * ------------------------------------------------------------- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--control);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.lang-button {
    appearance: none;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 10px;
    letter-spacing: .045em;
    font-weight: 700;
    line-height: 1;
    min-width: 28px;
    height: 28px;
    padding: 0 5px;
    opacity: .72;
    transition: background .2s, opacity .2s, color .2s;
}
.lang-button:hover { opacity: 1; }
.lang-button.active,
.lang-button[aria-pressed="true"] {
    background: var(--champagne-strong);
    color: #172535;
    opacity: 1;
}
html[data-theme="light"] .lang-button.active,
html[data-theme="light"] .lang-button[aria-pressed="true"] { color: #fff; }
.lang-button:focus-visible { outline: 2px solid var(--champagne-strong); outline-offset: 3px; }

/* Uzun çevirilerde başlıkların rahatça satırlara ayrılması */
html[lang="ru"] .intro h1 { font-size: clamp(25px,3.1vw,43px); }
html[lang="ru"] .brand-text strong { letter-spacing: .02em; }
@media (max-width: 980px) {
    .controls { gap: 7px; }
}
@media (max-width: 700px) {
    /* Telefonda dil seçici logoların karşısında ikinci bir mini satırdadır. */
    .lang-switch {
        position: absolute;
        top: 48px;
        right: 12px;
        z-index: 8;
        padding: 1px 3px;
        background: var(--control);
    }
    .lang-button { height: 22px; min-width: 26px; font-size: 9px; padding: 0 4px; }
    html[lang="ru"] .intro h1 { font-size: clamp(20px,5.4vw,29px); }
    html[lang="ru"] .description { font-size: clamp(8.6px,2.1vw,10px); }
    html[lang="ru"] .profile-role { font-size: clamp(6.2px,1.7vw,8px); }
    html[lang="ru"] .tier-vice .profile-role { max-width: 130px; }
    html[lang="ru"] .results-trigger { font-size: 7.5px; }
}
@media (max-width: 380px) {
    .lang-switch { top: 42px; right: 9px; }
    .lang-button { min-width: 22px; font-size: 8px; }
    html[lang="ru"] .intro h1 { font-size: 20px; }
}


/* Organizasyon şemasının dış çerçevesi kaldırıldı; bağlantı çizgileri korunur. */
.board { border: 0; }
.board::before { display: none; }
