.news-website, .news-editor-page { color: #eee; }
.news-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 50px 0 90px; box-sizing: border-box; }
.news-page-header { margin: 14px 0 30px; }
.news-page-header h1, .news-article-heading h1 { padding: 0; text-shadow: none; text-align: left; text-transform: none; font-size: clamp(2.1rem, 4.3vw, 3.6rem); line-height: 1.13; }
.news-page-header p, .news-article-heading p { padding: 0; color: #c8c8c8; font-size: 1rem; line-height: 1.55; margin-top: 14px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.news-filters button, .news-button-secondary, .news-button, .news-button-danger { border-radius: 4px; padding: 10px 16px; border: 1px solid #505050; background: #292929; color: #f4f4f4; font: 600 .9rem Inter, sans-serif; cursor: pointer; text-decoration: none; }
.news-filters button.active, .news-button { border-color: #ff7f00; background: #ff7f00; color: #101010; }
.news-button-danger { border-color: #a94b4b; color: #ffd5d5; background: #3d1d1d; }
.news-filters button:hover, .news-button:hover, .news-button-secondary:hover, .news-button-danger:hover { filter: brightness(1.12); }
.news-button:disabled, .news-button-secondary:disabled, .news-button-danger:disabled { opacity: .45; cursor: not-allowed; }
.news-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { border: 1px solid #383838; display: block; overflow: hidden; background: #1e1e1e; border-radius: 6px; color: #f4f4f4; text-decoration: none; transition: transform .15s, border-color .15s; }
.news-card:hover { transform: translateY(-3px); border-color: #ff7f00; }
.news-card-image { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; background: #242424; }
.news-card-body { padding: 18px; }
.news-card-label { color: #ff9d3e; text-transform: uppercase; font: 700 .72rem Inter, sans-serif; letter-spacing: .07em; }
.news-card-title { color: #fff; padding: 0; margin: 9px 0; text-shadow: none; text-transform: none; text-align: left; font: 700 1.25rem 'Chakra Petch', sans-serif; }
.news-card-description { font: 400 .92rem/1.5 Inter, sans-serif; color: #bcbcbc; margin: 0 0 12px; padding: 0; }
.news-card-date { font: 400 .78rem Inter, sans-serif; color: #999; }
.news-card-grid .news-card:first-child { grid-column: span 2; }
.news-card-grid .news-card:first-child .news-card-title { font-size: 1.6rem; }
.news-empty { font: 400 1rem Inter, sans-serif; padding: 8px 0; color: #bbb; }
.news-more { margin: 25px auto 0; display: block; }
.news-back { display: inline-block; color: #ff9d3e; text-decoration: none; font: 600 .95rem Inter, sans-serif; margin-bottom: 22px; }
.news-back-bottom { margin: 40px 0 0; }
.news-article-shell { max-width: 1100px; }
.news-hero { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 5px; background: #242424; }
.news-article-heading { margin: 36px auto 26px; max-width: 900px; }
.news-eyebrow { color: #ff9d3e; font: 700 .8rem Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 15px; }
.news-eyebrow span { color: #777; padding: 0 7px; }
.news-byline { color: #aaa; font: 400 .87rem Inter, sans-serif; margin-top: 18px; }
.news-article-heading .news-summary { font: 400 1.1rem/1.6 Inter, sans-serif; color: #ccc; margin-top: 24px; }
.news-prose { margin: 0 auto; padding-top: 26px; border-top: 1px solid #3d3d3d; max-width: 900px; font: 400 1.04rem/1.8 Inter, sans-serif; overflow-wrap: anywhere; }
.news-prose h2, .news-prose h3, .news-prose h4, .news-prose h5 { margin: 30px 0 12px; padding: 0; font: 700 1.55rem/1.3 'Chakra Petch', sans-serif; color: #fff; text-shadow: none; text-transform: none; }
.news-prose h3 { font-size: 1.25rem; }.news-prose h4, .news-prose h5 { font-size: 1.1rem; }
.news-prose p { padding: 0; margin: 0 0 17px; font: inherit; color: #ddd; }
.news-prose ul, .news-prose ol { padding-left: 24px; margin-bottom: 20px; }
.news-prose li { margin: 5px 0; }
.news-prose img { max-width: 100%; height: auto; margin: 22px auto; border-radius: 4px; }
.news-prose blockquote { margin: 20px 0; padding: 10px 20px; border-left: 3px solid #ff7f00; background: #202020; color: #ddd; }
.news-prose pre { background: #101010; border: 1px solid #3a3a3a; border-radius: 4px; padding: 18px; overflow-x: auto; }
.news-prose code { background: #272727; padding: 2px 5px; font: .9rem/1.5 monospace; }
.news-prose pre code { background: transparent; padding: 0; }
.news-preview-label { background: #48321c; color: #ffc176; padding: 12px; border: 1px solid #ff7f00; margin-bottom: 20px; text-align: center; font: 700 .9rem Inter, sans-serif; }
.news-editor-page .dev-page { max-width: 1260px; }
.news-dev-heading, .news-dashboard-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.news-dev-heading h2, .news-dashboard-title h3 { color: #fff; margin: 0 0 8px; padding: 0; font: 700 1.6rem 'Chakra Petch', sans-serif; }
.news-dev-heading p, .news-image-control p, .news-help { font: 400 .88rem/1.5 Inter, sans-serif; color: #b7b7b7; padding: 0; margin: 0; }
.news-panel { border: 1px solid #444; border-radius: 5px; background: #1c1c1c; padding: 24px; }
.news-alert { border: 1px solid #ff7f00; background: #312211; padding: 12px 15px; margin-bottom: 20px; font: .92rem Inter, sans-serif; }
.news-alert.error { border-color: #ac5656; background: #361c1c; }
.news-table-scroll { width: 100%; overflow-x: auto; }
.news-table { width: 100%; border-collapse: collapse; font: .91rem Inter, sans-serif; }
.news-table th { text-align: left; color: #aaa; font-size: .8rem; }
.news-table th, .news-table td { padding: 14px 12px; border-bottom: 1px solid #373737; }
.news-table a { color: #ff9d3e; text-decoration: none; }
.news-pill { border: 1px solid #a2632e; border-radius: 30px; padding: 6px 12px; color: #ffc176; white-space: nowrap; font: 700 .77rem Inter, sans-serif; }
.news-editor-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.news-field { display: block; font: 700 .89rem Inter, sans-serif; margin-bottom: 20px; }
.news-field input, .news-field textarea, .news-field select, .news-markdown-input { display: block; box-sizing: border-box; width: 100%; padding: 12px; margin: 8px 0 0; border: 1px solid #565656; border-radius: 4px; color: #fff; background: #111; font: 400 .96rem/1.5 Inter, sans-serif; }
.news-markdown-input { width: 100%; min-height: 380px; resize: vertical; font-family: ui-monospace, Consolas, monospace; line-height: 1.55; }
.news-hint { color: #999; font-weight: 400; }
.news-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.news-toolbar button { padding: 7px 10px; border: 1px solid #555; color: #f1f1f1; background: #303030; border-radius: 4px; cursor: pointer; font: 700 .85rem Inter, sans-serif; }
.news-image-control { margin: 20px 0; padding-bottom: 18px; border-bottom: 1px solid #353535; font: .9rem Inter, sans-serif; }
.news-image-control strong { display: block; margin-bottom: 6px; }
.news-image-control img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 3px; margin: 13px 0; }
.news-upload-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.news-editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 24px 0 8px; }
#save-status { padding-bottom: 25px; }
.news-latest { background: #171717; padding: 50px 22px 60px; }
.news-latest-inner { max-width: 1160px; margin: 0 auto; }
.news-latest h2 { margin: 0 0 22px; text-transform: uppercase; font: 700 2rem 'Chakra Petch', sans-serif; }
.news-latest-footer { text-align: right; margin-top: 20px; }
@media (max-width: 840px) { .news-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .news-editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .news-shell { width: min(100% - 28px,1200px); padding: 34px 0 65px; } .news-card-grid { grid-template-columns: 1fr; } .news-card-grid .news-card:first-child { grid-column: auto; } .news-dev-heading { align-items: start; flex-direction: column; } .news-panel { padding: 14px; } .news-hero { max-height: 300px; } }

.news-website [hidden], .news-editor-page [hidden] { display: none !important; }

.news-filters {
    width: min(1120px, calc(100% - 36px));
    box-sizing: border-box;
    margin: 22px auto 18px;
}

#news-list {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#news-list .news-card:first-child {
    grid-column: auto;
}

#news-list .news-card {
    min-width: 0;
}

#news-list .news-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #191919;
}

#news-list .news-card-body {
    padding: 14px 15px;
}

#news-list .news-card-title {
    margin: 6px 0 8px;
    font-size: 1.08rem;
    line-height: 1.3;
}

#news-list .news-card-description {
    margin-bottom: 10px;
    font-size: .86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

#more-news[hidden] {
    display: none !important;
}

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

@media (max-width: 580px) {
    #news-list {
        grid-template-columns: 1fr;
    }
}


/* Compact, transparent previews on individual game pages only. */
.news-latest[data-news-game] {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 18px 0 32px;
}
.news-latest[data-news-game] .news-latest-inner {
    width: min(1120px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
}
.news-latest[data-news-game] .news-latest-inner > h2 {
    font: 700 1.35rem/1.3 'Chakra Petch', sans-serif;
    margin: 0 0 18px;
    text-transform: uppercase;
}
.news-latest[data-news-game] .news-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.news-latest[data-news-game] .news-card:first-child {
    grid-column: auto;
}
.news-latest[data-news-game] .news-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #191919;
}
.news-latest[data-news-game] .news-card-body {
    padding: 14px 15px;
}
.news-latest[data-news-game] .news-card-title {
    padding: 0;
    margin: 6px 0 8px;
    font: 700 1.08rem/1.3 'Chakra Petch', sans-serif;
    text-transform: none;
    text-shadow: none;
}
.news-latest[data-news-game] .news-card-description {
    margin-bottom: 10px;
    font-size: .86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.news-latest[data-news-game] .news-latest-footer {
    text-align: left;
    margin-top: 16px;
}
.news-latest[data-news-game] .news-empty {
    grid-column: 1 / -1;
    margin: 0;
}
@media (max-width: 840px) {
    .news-latest[data-news-game] .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .news-latest[data-news-game] .news-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.news-article-layout--game { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 36px; }
.news-article-layout--studio { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 36px; }
.news-article-layout--game .news-article-main,
.news-article-layout--studio .news-article-main { min-width: 0; }
.news-article-layout--game .news-article-heading,
.news-article-layout--game .news-prose,
.news-article-layout--studio .news-article-heading,
.news-article-layout--studio .news-prose {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.news-game-sidebar {
    box-sizing: border-box;
    margin-top: 36px;
    padding: 20px;
    min-width: 0;
    border: 1px solid #383838;
    border-radius: 5px;
    background: #1e1e1e;
    font-family: Inter, sans-serif;
}
.news-game-sidebar-title {
    margin-bottom: 20px;
    font: 700 .75rem Inter, sans-serif;
    color: #ff9d3e;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.news-game-logo-link { display: block; text-align: center; }
.news-game-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.news-game-name {
    margin: 17px 0 20px;
    padding: 0;
    color: #f7f7f7;
    text-shadow: none;
    text-transform: none;
    text-align: left;
    font: 700 1.3rem/1.25 'Chakra Petch', sans-serif;
}
.news-game-facts { margin: 0 0 18px; }
.news-game-facts > div {
    padding: 12px 0;
    border-top: 1px solid #383838;
}
.news-game-facts dt {
    margin-bottom: 6px;
    color: #a8a8a8;
    font-size: .78rem;
}
.news-game-facts dd { margin: 0; color: #eee; font-size: .89rem; line-height: 1.5; }
.news-game-facts dd a { color: #ffab55; text-decoration: none; }
.news-game-facts dd a:hover { text-decoration: underline; }
.news-game-sidebar-link {
    box-sizing: border-box;
    display: block;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #5a5a5a;
    border-radius: 4px;
    color: #f3f3f3;
    background: #303030;
    font: 700 .85rem Inter, sans-serif;
    text-align: center;
    text-decoration: none;
}
.news-game-sidebar-steam { background: #303030; color: #f3f3f3; border-color: #5a5a5a; }
.news-game-sidebar-link:hover { filter: brightness(1.12); }
@media (max-width: 780px) {
    .news-article-layout--game { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .news-article-layout--studio { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .news-article-aside { margin-top: 30px; }
}

.news-game-description { margin: -8px 0 18px; color: #ccc; font: 400 .89rem/1.55 Inter, sans-serif; }

/* The like button is grouped immediately under the game/studio details panel. */
.news-article-aside { min-width: 0; margin-top: 36px; }
.news-article-aside .news-game-sidebar { margin-top: 0; }
.news-article-aside .news-article-likes { margin-top: 12px; }
.news-article-likes {
    padding: 14px; border: 1px solid #383838; border-radius: 5px;
    background: #1e1e1e; font-family: Inter, sans-serif;
}
.news-like-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 42px; padding: 10px 12px;
    border: 1px solid #555; border-radius: 4px;
    background: #303030; color: #f3f3f3;
    font: 700 .88rem Inter, sans-serif; cursor: pointer;
}
.news-like-button svg { width: 17px; height: 17px; fill: currentColor; }
.news-like-button:not(:disabled):hover { background: #3c3c3c; }
.news-like-button.is-liked { border-color: #777; background: #363636; color: #ddd; }
.news-like-button:disabled { cursor: default; opacity: .8; }
.news-like-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.news-like-message { display: block; margin-top: 6px; font-size: .77rem; color: #ddd; }
.news-like-message:empty { display: none; }
@media (max-width: 780px) {
    .news-article-aside { margin-top: 30px; }
}

/* Main news page utility bar. Add content in news/index.html. */
.news-utility-bar {
    box-sizing: border-box;
    width: 100%;
    margin: 56px 0 0px;
    padding: 22px 0;
    border-top: 1px solid #454545;
    border-bottom: 1px solid #353535;
    background: #1b1b1b;
    color: #f3f3f3;
}
.news-utility-inner {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    flex-wrap: wrap;
}
.news-utility-info { flex: 1 1 260px; min-width: 0; }
.news-utility-info strong {
    display: block;
    font: 700 1.05rem 'Chakra Petch', sans-serif;
}
.news-utility-info p {
    margin: 5px 0 0;
    padding: 0;
    color: #bdbdbd;
    font: 400 .9rem/1.5 Inter, sans-serif;
}
.news-utility-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.news-utility-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #303030;
    color: #f3f3f3;
    text-decoration: none;
    white-space: nowrap;
    font: 600 .88rem Inter, sans-serif;
    transition: background .15s, border-color .15s;
}
.news-utility-link:hover, .news-utility-link:focus-visible {
    background: #3c3c3c;
    border-color: #888;
}
.news-utility-link:focus-visible { outline: 2px solid #ff9d3e; outline-offset: 2px; }
@media (max-width: 580px) {
    .news-utility-bar { margin-top: 44px; margin-bottom: 26px; padding: 20px 0; }
    .news-utility-inner { align-items: flex-start; gap: 16px; }
    .news-utility-info { flex-basis: 100%; }
}

/* Article share action and recommendations, using the existing news cards. */
.news-article-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.news-copy-status { color: #ccc; font: 400 .85rem Inter, sans-serif; }
.news-related { margin-top: 36px; padding-top: 28px; border-top: 1px solid #383838; }
.news-related > h2 { margin: 0 0 20px; padding: 0; text-align: left; text-transform: none; text-shadow: none; font: 700 1.5rem 'Chakra Petch', sans-serif; }
.news-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; }
@media (max-width: 840px) {
    .news-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .news-related-grid { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
}
.news-related-grid .news-card:first-child { grid-column: auto; }
.news-related-grid .news-card:first-child .news-card-title { font-size: 1.25rem; }
