/* =========================================
   NEWS SUBMIT PAGE
========================================= */

.news-submit-page {
    min-height: 100vh;
    background: #ffffff;
    color: #171717;
}


/* =========================================
   HERO
========================================= */

.news-submit-hero {
    padding: 90px 30px 65px;
    background: #f4f6f6;
    border-bottom: 1px solid #e1e5e5;
}

.news-submit-hero-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.news-submit-eyebrow {
    margin: 0 0 14px;
    color: #164b4b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.news-submit-hero h1 {
    margin: 0;
    color: #111111;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.news-submit-lead {
    margin: 24px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 2;
}


/* =========================================
   CONTENT
========================================= */

.news-submit-content {
    padding: 70px 30px 110px;
}

.news-submit-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}


/* =========================================
   STATE
========================================= */

.news-submit-state {
    padding: 80px 20px;
    text-align: center;
    color: #777777;
    font-size: 13px;
}


/* =========================================
   ERROR
========================================= */

.news-submit-error {
    padding: 50px;
    border: 1px solid #e0e4e4;
    text-align: center;
}

.news-submit-error h2 {
    margin: 0 0 15px;
    font-size: 22px;
}

.news-submit-error p {
    margin: 0 0 25px;
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
}

.news-submit-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 22px;

    background: #164b4b;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   FORM
========================================= */

.news-submit-form {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.news-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-form-label {
    color: #222222;
    font-size: 14px;
    font-weight: 700;
}

.required {
    margin-left: 8px;
    color: #8a2a2a;
    font-size: 10px;
}

.optional {
    margin-left: 8px;
    color: #777777;
    font-size: 10px;
}

.news-form-input,
.news-form-textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d7dddd;

    background: #ffffff;

    color: #171717;

    font: inherit;

    outline: none;

    transition: border-color 0.2s ease;
}

.news-form-input {
    min-height: 52px;
    padding: 0 16px;
}

.news-form-textarea {
    min-height: 300px;
    padding: 16px;
    resize: vertical;
    line-height: 1.8;
}

.news-form-input:focus,
.news-form-textarea:focus {
    border-color: #164b4b;
}

.news-form-help {
    margin: 0;
    color: #888888;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================
   PREVIEW
========================================= */

.news-preview-section {
    padding-top: 15px;
}

.news-preview-label {
    margin: 0 0 14px;

    color: #164b4b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.15em;
}

.news-preview-card {
    padding: 30px;

    border: 1px solid #dfe4e4;

    background: #f8f9f9;
}

.news-preview-date {
    margin: 0 0 12px;

    color: #164b4b;

    font-size: 11px;
    font-weight: 700;
}

.news-preview-title {
    margin: 0 0 18px;

    color: #171717;

    font-size: 24px;
    line-height: 1.5;
}

.news-preview-content {
    margin: 0;

    color: #555555;

    font-size: 14px;
    line-height: 2;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.news-preview-image-wrap {
    margin-top: 25px;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e9eded;
}

.news-preview-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================
   ACTIONS
========================================= */

.news-submit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    padding-top: 20px;

    border-top: 1px solid #e3e7e7;
}

.news-cancel-button,
.news-publish-button {
    min-height: 48px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.news-cancel-button {
    border: 1px solid #cfd6d6;

    background: #ffffff;

    color: #333333;

    text-decoration: none;
}

.news-publish-button {
    border: 1px solid #164b4b;

    background: #164b4b;

    color: #ffffff;
}

.news-publish-button:hover {
    background: #ffffff;
    color: #164b4b;
}

.news-publish-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================
   MESSAGE
========================================= */

.news-submit-message {
    margin: 0;

    padding: 16px 18px;

    border-left: 3px solid #164b4b;

    background: #f3f7f7;

    color: #444444;

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .news-submit-hero {
        padding: 65px 20px 50px;
    }

    .news-submit-content {
        padding: 50px 20px 80px;
    }

    .news-submit-error {
        padding: 35px 20px;
    }

    .news-preview-card {
        padding: 22px;
    }

    .news-preview-title {
        font-size: 20px;
    }

    .news-submit-actions {
        flex-direction: column-reverse;
    }

    .news-cancel-button,
    .news-publish-button {
        width: 100%;
    }

}