.president-public-brand,
.application-brand-home {
    color: inherit;
    text-decoration: none;
}

.president-public-header {
    position: relative;
}

.public-header-return,
.application-portal-return {
    border: 1px solid rgba(242, 140, 0, .35);
    border-radius: 999px;
    color: #b96500;
    font-size: .72rem;
    font-weight: 850;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.application-header-inner {
    justify-content: space-between;
}

.application-brand-home {
    align-items: center;
    display: flex;
    gap: 13px;
    min-width: 0;
}

@media (max-width: 680px) {
    /* Vatandaş portalı: ilk ekranda seçeneklere hızlı erişim. */
    .portal-header {
        height: 68px;
        padding: 7px 12px;
    }

    .portal-brand img {
        width: 106px;
        height: 47px;
        padding-right: 8px;
    }

    .portal-brand span {
        line-height: 1.08;
    }

    .portal-brand strong {
        font-size: .72rem;
    }

    .portal-brand small {
        font-size: .55rem;
    }

    .portal-main {
        width: calc(100% - 20px);
        padding: 10px 0 20px;
    }

    .portal-hero {
        min-height: 0;
        gap: 13px;
        padding: 15px;
        border-radius: 19px;
    }

    .portal-hero > div:first-child {
        min-width: 0;
    }

    .portal-party-signature {
        min-height: 68px;
        padding: 5px 12px;
        gap: 10px;
        border-radius: 14px;
    }

    .portal-party-signature img {
        width: 56px;
        height: 56px;
    }

    .portal-party-signature strong {
        font-size: .9rem;
    }

    .portal-party-signature small {
        font-size: .48rem;
    }

    .portal-kicker {
        font-size: .56rem;
    }

    .portal-hero h1 {
        margin: 7px 0 8px;
        font-size: 1.9rem;
        line-height: 1.03;
    }

    .portal-hero p {
        font-size: .76rem;
        line-height: 1.45;
    }

    .portal-actions {
        gap: 9px;
        margin-top: 10px;
    }

    .portal-card {
        min-height: 112px;
        padding: 13px;
        border-radius: 16px;
        display: grid;
        grid-template-columns: 43px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 0 11px;
    }

    .portal-icon {
        width: 43px;
        height: 43px;
        margin: 0;
        border-radius: 12px;
    }

    .portal-icon svg {
        width: 24px;
        height: 24px;
    }

    .portal-card-copy strong {
        margin: 3px 0 4px;
        font-size: 1.05rem;
    }

    .portal-card-copy small {
        font-size: .49rem;
    }

    .portal-card-copy p {
        display: -webkit-box;
        overflow: hidden;
        font-size: .66rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .portal-card > b {
        width: 30px;
        margin: 0;
        padding: 0;
        font-size: 0;
    }

    .portal-card > b i {
        font-size: 1.25rem;
    }

    .portal-trust {
        margin-top: 10px;
    }

    /* Başkana İlet: form ilk ekranın devamında görünür. */
    .president-public-header {
        min-height: 70px !important;
        padding: 7px 12px !important;
        justify-content: space-between !important;
    }

    .president-public-brand {
        width: auto;
        min-width: 0;
        gap: 8px;
    }

    .president-public-brand > img {
        width: 104px !important;
        height: 48px;
    }

    .president-public-brand > span {
        padding-left: 8px;
    }

    .president-public-brand strong {
        font-size: .76rem;
    }

    .president-public-brand b {
        font-size: .52rem;
        margin-top: 3px;
    }

    .public-header-return {
        position: absolute;
        top: 18px;
        right: 10px;
        width: 34px;
        height: 34px;
        padding: 0;
        display: grid;
        place-items: center;
        background: #fff8ed;
        font-size: 0 !important;
    }

    .public-header-return:after {
        content: "←";
        font-size: 1rem;
    }

    .president-message-public main {
        width: min(100% - 20px, 760px);
        padding: 10px 0 28px;
    }

    .president-message-intro {
        padding: 0 0 11px;
    }

    .president-message-intro picture {
        display: block;
    }

    .president-hero-banner {
        width: 100%;
        height: 128px;
        margin: 0 auto 10px;
        border-radius: 12px;
        object-fit: cover;
    }

    .president-message-intro h1 {
        margin: 7px 0 3px !important;
        font-size: 1.35rem;
    }

    .president-message-intro p {
        font-size: .78rem;
        line-height: 1.4;
    }

    .citizen-membership-callout {
        display: none;
    }

    .president-message-form {
        gap: 16px;
        padding: 15px 13px;
    }

    .president-message-form select,
    .president-message-form input,
    .president-message-form textarea {
        padding: 12px 13px;
        font-size: .9rem;
    }

    /* Üyelik formu: çakışmayan, kompakt adım akışı. */
    .application-header {
        position: sticky;
        min-height: 64px;
        padding: 7px 10px;
    }

    .application-header-inner {
        gap: 8px;
    }

    .application-brand-home {
        gap: 8px;
    }

    .application-header img {
        width: 52px;
        height: 40px;
    }

    .application-header strong {
        overflow: hidden;
        max-width: 165px;
        font-size: .8rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .application-header small {
        font-size: .56rem;
    }

    .application-portal-return {
        padding: 7px 8px;
        border-color: rgba(255, 255, 255, .35);
        color: #fff;
        font-size: 0;
    }

    .application-portal-return:after {
        content: "← Merkez";
        font-size: .58rem;
    }

    .application-main {
        padding: 0 10px 26px;
    }

    .membership-hero {
        min-height: 0;
        margin: 10px 0;
        padding: 18px 16px;
        border-radius: 17px;
    }

    .membership-hero h1 {
        margin: 7px 0 8px;
        font-size: 1.7rem;
        line-height: 1.05;
    }

    .membership-hero h1 br {
        display: none;
    }

    .membership-hero p {
        font-size: .76rem;
        line-height: 1.45;
    }

    .membership-hero .application-trust {
        gap: 5px;
        margin-top: 11px;
    }

    .membership-hero .application-trust span {
        padding: 5px 7px;
        font-size: .62rem;
    }

    .wizard-progress {
        top: 64px;
        margin-bottom: 10px;
        padding: 6px;
    }

    .wizard-progress span {
        padding: 6px 4px;
    }

    .form-card {
        padding: 16px 12px;
    }

    .form-step {
        min-height: 0 !important;
        padding-bottom: 16px;
    }

    .wizard-actions {
        position: static;
        z-index: auto;
        margin: 17px 0 0;
        padding: 13px 0 0;
        background: transparent;
    }

    .wizard-actions button {
        min-height: 46px;
    }

    .application-submit {
        position: static;
        margin-top: 14px;
        padding: 0 0 calc(10px + env(safe-area-inset-bottom));
        background: transparent;
    }

    .application-form input,
    .application-form select,
    .application-form textarea {
        font-size: 16px;
    }

    .application-footer {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    /* Anketler de aynı kompakt başlık ritmini kullanır. */
    .public-survey-page > header {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .public-survey-page > header img {
        width: 125px;
        height: 44px;
    }
}
