﻿/* Public news pages */
.news-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 56px;
    color: #1f2933
}

.news-topbar {
    background: #063d2e;
    color: #fff;
    padding: 16px 24px
}

.news-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.news-brand {
    color: #f0d18a;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none
}

.news-public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px
}

    .news-public-nav a {
        color: #fff;
        text-decoration: none
    }

        .news-public-nav a:hover {
            color: #f0d18a
        }

.news-eyebrow {
    color: #a27c34;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 12px
}

.news-page h1 {
    font-size: clamp(28px,4vw,42px);
    line-height: 1.2;
    margin: 8px 0 12px
}

.news-lead {
    color: #66736e;
    max-width: 760px;
    margin-bottom: 28px
}

.news-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 26px;
    align-items: center;
    background: #fff;
    border: 1px solid #e4dfd3;
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0 34px
}

    .news-featured img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 280px;
        max-height: 400px;
        object-fit: cover
    }

.news-featured-copy {
    padding: 24px
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px
}

.news-card {
    background: #fff;
    border: 1px solid #e4dfd3;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0
}

    .news-card img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        display: block;
        background: #edf3ef
    }

.news-card-body {
    padding: 16px
}

.news-card h2 {
    font-size: 19px;
    line-height: 1.35;
    margin: 8px 0
}

    .news-card h2 a, .news-title-link {
        color: #1f2933;
        text-decoration: none
    }

        .news-card h2 a:hover, .news-title-link:hover {
            color: #8b682b
        }

.news-meta {
    color: #6b7280;
    font-size: 13px
}

.news-summary {
    color: #53615b;
    line-height: 1.65
}

.news-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0
}

    .news-category-list a {
        border: 1px solid #d9e1dc;
        border-radius: 999px;
        padding: 7px 13px;
        color: #063d2e;
        text-decoration: none;
        background: #fff
    }

        .news-category-list a:hover {
            background: #063d2e;
            color: #fff
        }

.news-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 30px 0
}

    .news-pager a, .news-pager span {
        padding: 8px 12px;
        border: 1px solid #d8ded9;
        border-radius: 6px;
        text-decoration: none;
        color: #063d2e
    }

    .news-pager .current {
        background: #063d2e;
        color: #fff
    }

.news-article {
    background: #fff;
    border: 1px solid #e4dfd3;
    border-radius: 14px;
    padding: clamp(18px,4vw,42px)
}

    .news-article h1 {
        max-width: 900px
    }

.news-article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 10px;
    margin: 22px 0
}

.news-article-content {
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere
}

    .news-article-content h2, .news-article-content h3 {
        line-height: 1.35;
        margin-top: 1.6em
    }

    .news-article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px
    }

    .news-article-content blockquote {
        border-left: 4px solid #c49a45;
        padding: 8px 18px;
        margin: 20px 0;
        color: #53615b;
        background: #f7f4ec
    }

.news-empty {
    padding: 32px;
    background: #fff;
    border: 1px dashed #d0d8d2;
    border-radius: 12px;
    text-align: center;
    color: #66736e
}

.news-footer {
    padding: 24px;
    background: #063d2e;
    color: #e5eee9;
    text-align: center;
    margin-top: 30px
}
/* Admin */
.news-admin {
    padding: 4px 0 28px
}

.news-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0
}

.news-admin input[type=text], .news-admin select, .news-admin textarea {
    max-width: 100%;
    padding: 10px;
    border: 1px solid #cbd2cf;
    border-radius: 6px
}

.news-admin .news-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff
}

    .news-admin .news-table th, .news-admin .news-table td {
        padding: 10px;
        border: 1px solid #e5e7eb;
        text-align: left;
        vertical-align: top
    }

    .news-admin .news-table th {
        background: #edf3ef
    }

.news-admin .news-button {
    display: inline-block;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    background: #063d2e;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    margin: 2px
}

    .news-admin .news-button.secondary {
        background: #6b7280
    }

    .news-admin .news-button.danger {
        background: #9b2929
    }

.news-admin .news-editor {
    min-height: 320px;
    background: #fff
}

.news-admin .news-cover-preview {
    display: block;
    max-width: 320px;
    max-height: 180px;
    object-fit: contain;
    margin: 10px 0
}

.news-admin .news-form-grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(260px,1fr);
    gap: 22px
}

.news-admin label {
    display: block;
    margin: 12px 0 5px;
    font-weight: 600
}

@media(max-width:850px) {
    .news-featured {
        grid-template-columns: 1fr
    }

    .news-card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .news-form-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .news-card-grid {
        grid-template-columns: 1fr
    }

    .news-admin .news-table {
        font-size: 13px
    }

        .news-admin .news-table th, .news-admin .news-table td {
            padding: 7px
        }
}

.ql-container {
    height: 50vh !important;
    max-height: 600px;
    min-height: 300px;
    box-sizing: border-box;
}

.ql-editor {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}