.news-directory-hero {
    min-height: 310px;
    background:
        radial-gradient(circle at 84% 16%, rgba(185, 154, 104, 0.18), transparent 34%),
        linear-gradient(135deg, var(--surface) 0%, var(--bg-darker) 100%);
}

.news-directory-hero h1 {
    max-width: 780px;
    font-size: clamp(2.15rem, 5.1vw, 4.25rem);
}

.news-directory-hero-mark svg {
    width: 70%;
    height: 70%;
}

.news-card[id] { scroll-margin-top: 100px; }
.news-save-feedback { grid-column: 1 / -1; padding: 0.9rem; border: 1px solid #6aa87b; border-radius: 0.65rem; background: var(--surface); color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.news-save-feedback.is-error { border-color: #da8585; }
.news-save-feedback a { display: block; margin-top: 0.5rem; color: var(--gold); text-decoration: underline; }
.news-save-feedback:focus { outline: 2px solid var(--gold); outline-offset: 3px; }

.news-flash {
    margin: 0 0 1rem;
    color: var(--text);
    border: 1px solid rgba(185, 154, 104, 0.32);
    border-radius: 0.85rem;
    background: var(--surface);
}

.news-section {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(185, 154, 104, 0.18);
    border-radius: 1rem;
    background: var(--bg-darker);
}

.news-section-heading {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.news-section-heading .distillery-directory-eyebrow {
    margin-bottom: 0.2rem;
}

.news-section-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(185, 154, 104, 0.25);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.news-card:not(.news-card-featured) {
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 154, 104, 0.5);
    box-shadow: var(--shadow-lg);
}

.news-card-featured {
    grid-column: 1 / -1;
    min-height: 340px;
}

.news-card-media {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    background: var(--bg-dark);
}

.news-card:not(.news-card-featured) .news-card-media {
    aspect-ratio: 16 / 8.5;
}

.news-card-featured .news-card-media {
    width: 48%;
    flex: 0 0 48%;
}

.news-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.48), transparent 55%);
    pointer-events: none;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.025);
}

.news-card-media-placeholder {
    display: grid;
    place-items: center;
    color: rgba(185, 154, 104, 0.48);
    background:
        radial-gradient(circle at 35% 30%, rgba(185, 154, 104, 0.12), transparent 35%),
        linear-gradient(135deg, var(--surface), var(--bg-dark));
}

.news-card-media-placeholder svg {
    width: min(34%, 120px);
    height: auto;
    stroke-width: 1.4;
}

.news-featured-label {
    position: absolute;
    z-index: 1;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem 0.6rem;
    color: #211a0d;
    border-radius: 999px;
    background: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-card-content {
    display: flex;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.45rem);
    flex: 1 1 auto;
    flex-direction: column;
}

.news-card-date {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin: 0 0 0.55rem;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
}

.news-card-date svg {
    width: 0.95rem;
    height: 0.95rem;
}

.news-card-content h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    line-height: 1.25;
}

.news-card-featured .news-card-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.news-card-copy {
    position: relative;
    max-height: 9.8rem;
    margin-top: 0.85rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.62;
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.news-card-featured .news-card-copy {
    max-height: 12rem;
}

.news-card-copy > :first-child {
    margin-top: 0;
}

.news-card-copy > :last-child {
    margin-bottom: 0;
}

.news-card-link {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.news-card-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 150ms ease;
}

.news-card-link:hover,
.news-card-link:focus-visible {
    color: var(--gold-light, var(--gold));
}

.news-card-link:hover svg,
.news-card-link:focus-visible svg {
    transform: translate(2px, -2px);
}

/* News editor */
.news-editor-page {
    min-height: 100%;
    padding-bottom: 4rem;
}

.news-editor-shell {
    max-width: 1240px;
}

.news-editor-breadcrumb {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.news-editor-breadcrumb a {
    color: var(--muted);
}

.news-editor-breadcrumb a:hover,
.news-editor-breadcrumb a:focus-visible {
    color: var(--gold);
}

.news-editor-breadcrumb svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.news-editor-hero {
    min-height: 250px;
    margin-bottom: 1.25rem;
}

.news-editor-hero h1 {
    max-width: 780px;
    font-size: clamp(2.15rem, 5.1vw, 4.25rem);
}

.news-editor-hero-mark svg {
    width: 72%;
    height: 72%;
}

.news-editor-form {
    --news-line: color-mix(in srgb, var(--gold) 30%, transparent);
    --news-muted: color-mix(in srgb, var(--text) 66%, transparent);
}

.news-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    align-items: start;
    gap: 1.25rem;
}

.news-editor-main {
    display: grid;
    gap: 1rem;
}

.news-form-section,
.news-editor-summary,
.news-editor-actions {
    border: 1px solid var(--news-line);
    border-radius: 1.1rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
}

.news-form-section {
    padding: clamp(1.15rem, 2.8vw, 2rem);
}

.news-form-section-heading {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 0.85rem;
}

.news-form-step {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    color: var(--gold);
    border: 1px solid var(--news-line);
    border-radius: 0.8rem;
    background: color-mix(in srgb, var(--gold) 9%, transparent);
    font-family: var(--font-heading);
    place-items: center;
}

.news-form-section-heading p {
    margin: 0 0 0.12rem;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-form-section-heading h2,
.news-editor-summary h2 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.news-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.65fr);
    align-items: start;
    gap: 1rem;
}

.news-field {
    min-width: 0;
}

.news-field + .news-field {
    margin-top: 1rem;
}

.news-field-grid .news-field + .news-field {
    margin-top: 0;
}

.news-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.news-field label span {
    color: var(--gold);
}

.news-field input,
.news-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0.72rem 0.85rem;
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
    border-radius: 0.75rem;
    outline: 0;
    background: color-mix(in srgb, var(--bg-darker) 82%, transparent);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.news-field textarea {
    min-height: 220px;
    line-height: 1.55;
    resize: vertical;
}

.news-field input:focus,
.news-field textarea:focus {
    border-color: var(--gold);
    background: var(--bg-darker);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}

.news-field input::placeholder,
.news-field textarea::placeholder {
    color: var(--news-muted);
    opacity: 0.75;
}

.news-field small,
.news-upload small {
    display: block;
    margin-top: 0.38rem;
    color: var(--news-muted);
    font-size: 0.75rem;
}

.news-field-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.news-field-meta small:last-child {
    flex: 0 0 auto;
}

.news-upload {
    display: grid;
    position: relative;
    min-height: 112px;
    padding: 1rem;
    border: 1px dashed color-mix(in srgb, var(--gold) 48%, transparent);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--gold) 6%, transparent);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.news-upload:hover,
.news-upload:focus-within,
.news-upload.has-file {
    border-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.news-upload > svg {
    width: 2rem;
    height: 2rem;
    color: var(--gold);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.news-upload label {
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.news-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#news-image-name {
    overflow: hidden;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    grid-column: 2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-image-preview {
    display: grid;
    margin: 1rem 0 0;
    padding: 0.85rem;
    border: 1px solid var(--news-line);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--bg-darker) 82%, transparent);
    grid-template-columns: minmax(220px, 0.8fr) minmax(160px, 0.4fr);
    align-items: center;
    gap: 1rem;
}

.news-image-preview[hidden] {
    display: none;
}

.news-image-preview-frame {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 430px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
    border-radius: 0.8rem;
    background: var(--bg-dark);
    place-items: center;
}

.news-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image-preview figcaption {
    min-width: 0;
}

.news-image-preview figcaption strong,
.news-image-preview figcaption span {
    display: block;
    overflow-wrap: anywhere;
}

.news-image-preview figcaption strong {
    color: var(--text);
}

.news-image-preview figcaption span {
    margin-top: 0.3rem;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
}

.news-editor-aside {
    display: grid;
    position: sticky;
    top: 1rem;
    gap: 0.85rem;
}

.news-editor-summary {
    padding: 1.35rem;
}

.news-editor-summary ul {
    display: grid;
    margin: 1.1rem 0 0;
    padding: 0;
    gap: 0.75rem;
    list-style: none;
}

.news-editor-summary li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--news-muted);
    font-size: 0.82rem;
}

.news-editor-summary li svg,
.news-editor-actions .btn svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.news-editor-summary li svg {
    margin-top: 0.1rem;
    color: var(--gold);
}

.news-editor-actions {
    display: grid;
    padding: 0.85rem;
    gap: 0.55rem;
}

.news-editor-actions .btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 760px) {
    .news-section-heading {
        display: block;
    }

    .news-section-heading > p {
        margin-top: 0.45rem;
    }

    .news-grid,
    .news-grid.news-archive-grid {
        grid-template-columns: 1fr;
    }

    .news-card-featured {
        grid-column: auto;
        min-height: 0;
        flex-direction: column;
    }

    .news-card-featured .news-card-media {
        width: auto;
        aspect-ratio: 16 / 9;
        flex-basis: auto;
    }

    .news-directory-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.15rem);
    }

    .news-editor-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.15rem);
    }
}

@media (max-width: 900px) {
    .news-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-editor-grid {
        grid-template-columns: 1fr;
    }

    .news-editor-aside {
        position: static;
    }

    .news-editor-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .news-archive-grid {
        grid-template-columns: 1fr;
    }

    .news-editor-page {
        padding-top: 1rem;
    }

    .news-editor-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .news-editor-hero-mark {
        display: none;
    }

    .news-field-grid,
    .news-image-preview,
    .news-editor-actions {
        grid-template-columns: 1fr;
    }

    .news-field-grid .news-field + .news-field {
        margin-top: 0;
    }
}

@media (max-width: 430px) {
    .news-section {
        padding: 0.75rem;
    }

    .news-card-media {
        min-height: 165px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-directory *,
    .news-directory *::before,
    .news-directory *::after {
        transition-duration: 0.01ms !important;
    }

    .news-editor-page * {
        transition-duration: 0.01ms !important;
    }
}
