/**
 * assets/blog.css
 * Member blogs (blogsnew/*.php, includes/blogs.php). Loaded only on blog
 * pages, after frame.css. Three parts:
 *   1. Resets: the blog pages use Gameroni's type, not css.css's 13px Arial
 *      and black heading bars.
 *   2. Gameroni's blog rules (from its site.css), as they are.
 *   3. HonestGamers additions: the header image and tabs, the featured and
 *      compact post cards, the design page, and the older blog pages.
 */

/* ---- 1. Resets ---------------------------------------------------------- */

.hg-blog, .blog-top {
    font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-normal);
    color: var(--color-ink); text-align: left;
}
.hg-blog *, .hg-blog *::before, .hg-blog *::after,
.blog-top *, .blog-top *::before, .blog-top *::after { box-sizing: border-box; }
:where(.hg-blog, .blog-top, .page-side-col) :is(h1, h2, h3, h4) {
    border: 0; background: none; width: auto; max-width: none; padding: 0; text-align: inherit; color: inherit;
}
:where(.hg-blog) :is(h1, h2, h3, h4) {
    font-family: var(--font-display); font-weight: 700; line-height: var(--leading-tight); margin: 0 0 var(--space-3);
}
:where(.hg-blog) h1 { font-size: 2rem; }
:where(.hg-blog) h2 { font-size: 1.5rem; }
:where(.hg-blog) h3 { font-size: 1.17rem; }
:where(.hg-blog) h4 { font-size: 1rem; }
:where(.hg-blog) p { margin: 0 0 var(--space-4); }
:where(.hg-blog) :is(ul, ol) { margin: 0 0 var(--space-4); padding-left: 1.25em; }
.hg-blog button, .hg-blog input, .hg-blog textarea, .hg-blog select,
.blog-top button, .blog-top input { font-family: inherit; font-size: inherit; }
.hg-blog a, .blog-top a { font-size: inherit; color: var(--color-brand); }
.hg-blog a:hover, .blog-top a:hover { color: var(--color-brand-dark); }
.hg-blog a.btn, .blog-top a.btn { color: var(--blog-btn-text, #fff); }
.hg-blog a.btn:hover, .blog-top a.btn:hover { color: var(--blog-btn-text, #fff); text-decoration: none; }
.hg-blog a.btn-outline, .blog-top a.btn-outline { color: var(--color-ink); }
.hg-blog a.btn-outline:hover, .blog-top a.btn-outline:hover { color: var(--color-brand); }
.hg-blog .form-input { display: block; width: 100%; padding: var(--space-2) var(--space-3); font: inherit; color: var(--color-ink);
    background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius); }
.hg-blog .form-input:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; border-color: var(--color-brand); }
.hg-blog .form-hint { font-size: var(--text-sm); color: var(--color-ink-muted); }
.hg-blog .form-success { background: #E8F7EE; border: 1px solid #A8DDBC; color: #14532D; padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.hg-blog .form-errors { background: #FDECEC; border: 1px solid #F2B8B8; color: #7F1D1D; padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); }
.hg-blog .form-errors p { margin: 0; }
.hg-blog .form-field { margin-bottom: var(--space-4); }
.hg-blog .form-field label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.hg-blog textarea.form-input { resize: vertical; }

/* ---- 2. Gameroni's blog rules ------------------------------------------- */

.hg-sheet .type-badge { display: inline-block; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-brand-dark); background: var(--color-brand-tint); padding: 2px 8px; border-radius: 3px; }
.hg-sheet .card-meta { font-size: var(--text-xs); color: var(--color-ink-faint); margin: 0; }
.hg-sheet .empty-state { text-align: center; color: var(--color-ink-muted); padding: var(--space-16) 0; }
@media (max-width: 767px) {
    .hg-sheet .article-title { font-size: var(--text-2xl); }
    .hg-sheet .article-body { font-size: var(--text-base); }
}
.hg-sheet .site-container-narrow { max-width: var(--content-narrow-width); }
.hg-sheet .preview-banner { background: #FFF6D9; border: 1px solid #E8D27A; color: #6B5B00; padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin: var(--space-6) 0 0; font-size: var(--text-sm); }
.hg-sheet .article-page { padding-bottom: var(--space-16); }
.hg-sheet .article-meta-top { margin: var(--space-8) 0 var(--space-3); }
.hg-sheet .article-head .article-meta-top { margin-top: 0; }
.hg-sheet .article-title { font-size: var(--text-3xl); line-height: var(--leading-tight); margin: 0 0 var(--space-3); }
.hg-sheet .article-byline { color: var(--color-ink-muted); font-size: var(--text-sm); margin: 0 0 var(--space-6); }
.hg-sheet .article-header-image { margin-bottom: var(--space-6); aspect-ratio: 16 / 9; background: #333; overflow: hidden; border-radius: var(--radius); }
.hg-sheet .article-header-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hg-sheet .article-summary { font-size: var(--text-lg); font-style: italic; color: var(--color-ink-muted); margin-bottom: var(--space-4); }
.hg-sheet .article-body { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--color-ink); }
.hg-sheet .article-body h2 { font-size: var(--text-2xl); margin-top: var(--space-8); }
.hg-sheet .article-body h3 { font-size: var(--text-xl); margin-top: var(--space-6); }
.hg-sheet .article-body blockquote { margin: var(--space-6) 0; padding: var(--space-2) var(--space-4); border-left: 3px solid var(--color-border-strong); color: var(--color-ink-muted); }
.hg-sheet .article-body table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; }
.hg-sheet .article-body table td, .hg-sheet .article-body table th { border: 1px solid var(--color-border); padding: var(--space-2) var(--space-3); }
@media (max-width: 767px) {
    .hg-sheet .article-title { font-size: var(--text-2xl); }
    .hg-sheet .article-header-image img { max-height: 280px; }
    .hg-sheet .article-body { font-size: var(--text-base); }
}
.hg-sheet .pagination { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-12); }
.hg-sheet .pagination-status { font-size: var(--text-sm); color: var(--color-ink-muted); }
.hg-sheet .avatar-lg { width: 88px; height: 88px; font-size: var(--text-2xl); }
.hg-sheet .form-check { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-4); cursor: pointer; }
.hg-sheet .form-check input { margin-top: 0.3em; flex-shrink: 0; }
.hg-sheet .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.hg-sheet .avatar-xl { width: 120px; height: 120px; font-size: var(--text-3xl); }
.hg-sheet .author-hero { display: flex; align-items: flex-start; gap: var(--space-6); padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--color-border); }
.hg-sheet .author-hero-body { min-width: 0; }
.hg-sheet .author-hero-name { font-size: var(--text-3xl); margin: 0 0 var(--space-1); }
.hg-sheet .author-hero-meta { color: var(--color-ink-muted); font-size: var(--text-sm); margin: 0 0 var(--space-3); }
.hg-sheet .author-handle { font-weight: 600; color: var(--color-brand-dark); }
.hg-sheet .author-hero-bio { max-width: 680px; margin: 0 0 var(--space-4); }
.hg-sheet .author-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hg-sheet .author-links a { display: inline-block; padding: 2px 12px; border: 1px solid var(--color-border-strong); border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); text-decoration: none; }
.hg-sheet .author-links a:hover { border-color: var(--color-brand); color: var(--color-brand); text-decoration: none; }
.hg-sheet .article-byline-author { font-weight: 600; }
.hg-sheet .author-box { display: flex; gap: var(--space-6); margin: var(--space-12) 0 var(--space-8); padding: var(--space-6); background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius); }
.hg-sheet .author-box .author-links { margin-bottom: var(--space-3); }
@media (max-width: 600px) {
    .hg-sheet .author-hero, .hg-sheet .author-box { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
    .hg-sheet .avatar-xl { width: 96px; height: 96px; }
}
.hg-sheet .article-header-image { position: relative; }
.hg-sheet .avatar-sm { width: 36px; height: 36px; font-size: var(--text-sm); }
.hg-sheet .blog-badge { text-decoration: none; }
.hg-sheet a.blog-badge:hover { text-decoration: none; }
.hg-sheet .blog-card-list { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--space-8); }
.hg-sheet .blog-card { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-bg); }
.hg-sheet .blog-card .card-meta { margin: 0 0 var(--space-3); }
.hg-sheet .blog-owner-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; }
.hg-sheet .article-head .blog-owner-tools { margin: calc(-1 * var(--space-2)) 0 var(--space-6); }
.hg-sheet .blog-byline, .hg-sheet .article-byline-avatar { display: flex; align-items: center; gap: var(--space-2); }
.hg-sheet .blog-edited { color: var(--color-ink-faint); }
.hg-sheet .blog-manage-note { margin: calc(-1 * var(--space-4)) 0 var(--space-6); }
.hg-sheet .page-main-col .author-hero { padding-top: 0; margin-bottom: var(--space-8); }
.hg-sheet.blog-theme .article-page { padding-bottom: var(--space-6); }
.hg-sheet.blog-theme .btn:not(.btn-outline):not(.btn-danger) { color: var(--blog-btn-text, #fff); }
.hg-sheet.blog-theme .btn:not(.btn-outline):not(.btn-danger):hover { color: var(--blog-btn-text, #fff); }
.hg-sheet.blog-theme .article-body figcaption, .hg-sheet.blog-theme .article-image figcaption { color: var(--color-ink-muted); }
.hg-sheet .design-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-8); align-items: start; }
.hg-sheet .design-fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4); margin: 0 0 var(--space-6); }
.hg-sheet .design-fieldset legend { font-weight: 700; padding: 0 var(--space-2); }
.hg-sheet .design-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--space-3); }
.hg-sheet .design-theme { position: relative; display: block; padding: 10px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; }
.hg-sheet .design-theme.is-selected { border-color: var(--color-brand); box-shadow: 0 0 0 2px var(--color-brand-tint); }
.hg-sheet .design-theme input, .hg-sheet .design-image input { position: absolute; opacity: 0; pointer-events: none; }
.hg-sheet .design-theme input:focus-visible + .design-theme-sample { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.hg-sheet .design-theme-sample { display: block; padding: 10px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.hg-sheet .design-theme-name { display: block; font-weight: 700; font-size: var(--text-sm); }
.hg-sheet .design-theme-line { display: block; height: 4px; width: 60%; border-radius: 2px; margin: 6px 0; }
.hg-sheet .design-theme-text { font-size: var(--text-xs); }
.hg-sheet .design-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-2); max-height: 320px; overflow-y: auto; padding: 2px; }
.hg-sheet .design-image { position: relative; display: block; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--color-bg-subtle); }
.hg-sheet .design-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hg-sheet .design-image.is-selected { border-color: var(--color-brand); box-shadow: 0 0 0 2px var(--color-brand-tint); }
.hg-sheet .design-image-none { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; font-size: var(--text-sm); color: var(--color-ink-muted); }
.hg-sheet .design-bg-settings { margin-top: var(--space-4); }
.hg-sheet .design-bg-settings.is-disabled { opacity: 0.45; }
.hg-sheet .design-radios { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-3); }
.hg-sheet .design-radios .form-check { margin: 0; }
.hg-sheet .design-bg-settings input[type=range] { width: 100%; max-width: 360px; accent-color: var(--color-brand); }
.hg-sheet .design-preview-wrap { position: sticky; top: var(--space-6); }
.hg-sheet .design-preview-bar { display: flex; align-items: center; height: 34px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.hg-sheet .design-preview-bar img { height: 18px; width: auto; }
.hg-sheet .design-preview { border-radius: 0 0 var(--radius) var(--radius); padding: var(--space-6) var(--space-4); border: 1px solid var(--color-border); background-position: center; }
.hg-sheet .design-preview-panel { border-radius: 8px; padding: var(--space-4); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }
.hg-sheet .design-preview-badge { display: inline-block; margin: 0 0 var(--space-2); padding: 2px 8px; border-radius: 4px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.hg-sheet .design-preview-title { font-size: var(--text-xl); font-weight: 700; line-height: var(--leading-tight); margin: 0 0 var(--space-2); }
.hg-sheet .design-preview-meta { font-size: var(--text-xs); margin: 0 0 var(--space-3); }
.hg-sheet .design-preview-body { font-size: var(--text-sm); margin: 0 0 var(--space-4); }
.hg-sheet .design-preview-btn { display: inline-block; padding: 6px 12px; border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; }
@media (max-width: 900px) {
    .hg-sheet .design-layout { grid-template-columns: 1fr; }
    .hg-sheet .design-preview-wrap { position: static; order: -1; }
}
.hg-sheet .blog-card-compact .card-meta { margin-bottom: var(--space-2); }
.hg-sheet .comments { margin: var(--space-8) 0; scroll-margin-top: var(--space-4); }
.hg-sheet .comment-form { margin: 0 0 var(--space-6); }
.hg-sheet .comment-input { width: 100%; resize: vertical; min-height: 84px; font-size: var(--text-sm); line-height: var(--leading-normal); }
.hg-sheet .comment-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.hg-sheet .comment-form-status { margin-right: auto; font-size: var(--text-xs); color: var(--color-ink-muted); }
.hg-sheet .comment-form-status.is-error { color: var(--color-danger); font-weight: 600; }
.hg-sheet .comment-form-inline { margin: var(--space-3) 0 var(--space-2); }
.hg-sheet .comment-depth-0 { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.hg-sheet .comment-list > .comment-depth-0:first-child { border-top: 0; padding-top: 0; }
.hg-sheet .comment-depth-1 { margin-left: 72px; }
.hg-sheet .comment-depth-2 { margin-left: 112px; }
.hg-sheet .comment-avatar { flex-shrink: 0; }
.hg-sheet .comment-main { flex: 1; min-width: 0; }
.hg-sheet .comment-head { margin: 0 0 var(--space-1); font-size: var(--text-sm); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.hg-sheet .comment-author { font-weight: 700; color: var(--color-ink); }
.hg-sheet .comment-badge { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--color-brand-tint); color: var(--color-brand-dark); border-radius: 4px; padding: 1px 6px; }
.hg-sheet .comment-time, .hg-sheet .comment-edited { font-size: var(--text-xs); color: var(--color-ink-faint); }
.hg-sheet .comment-time:hover { color: var(--color-brand); }
.hg-sheet .comment-replying { margin: 0 0 var(--space-1); font-size: var(--text-xs); color: var(--color-ink-muted); }
.hg-sheet .comment-author a { color: var(--color-brand); }
.hg-sheet .comment-author a:hover { color: var(--color-brand-dark); text-decoration: underline; }
.hg-sheet .comment-avatar a { display: block; line-height: 0; border-radius: 50%; }
.hg-sheet .comment-avatar a:hover .avatar { box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-brand); }
.hg-sheet .comment-body { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--color-ink); overflow-wrap: anywhere; }
.hg-sheet .comment-body a { color: var(--color-brand); text-decoration: underline; }
.hg-sheet .comment.is-editing .comment-body { display: none; }
.hg-sheet .comment-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-1); }
.hg-sheet .comment-action { background: none; border: 0; padding: 2px 0; font: inherit; font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-muted); cursor: pointer; }
.hg-sheet .comment-action:hover { color: var(--color-brand); }
.hg-sheet .comment-action:disabled { cursor: default; color: var(--color-ink-faint); }
.hg-sheet .comment-action-danger:hover { color: var(--color-danger); }
.hg-sheet .comment-hidden { display: block; }
.hg-sheet .comment-hidden.comment-depth-0 { padding-left: 48px; }
.hg-sheet .comment-unavailable { margin: 0; font-size: var(--text-sm); font-style: italic; color: var(--color-ink-faint); }
.hg-sheet .comment-staff-removed { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); margin-top: var(--space-1); font-size: var(--text-xs); color: var(--color-ink-muted); }
.hg-sheet .comment-staff-removed summary { cursor: pointer; }
.hg-sheet .comment-staff-removed details[open] { flex-basis: 100%; }
.hg-sheet .comment-staff-removed .comment-body { color: var(--color-ink-muted); border-left: 3px solid var(--color-border-strong); padding-left: var(--space-3); }
.hg-sheet .comment-removed-meta { margin: var(--space-1) 0; }
@media (max-width: 600px) {
    .hg-sheet .comment-depth-1 { margin-left: 64px; }
    .hg-sheet .comment-depth-2 { margin-left: 88px; }
}
.hg-sheet .comment-count-icon { vertical-align: -3px; }
.hg-sheet .queue-table th .comment-count-icon { color: #fff; }
.hg-sheet .comment-count-zero { color: var(--color-ink-faint); }
.hg-sheet .review-score + .author-box { margin-top: var(--space-6); }
.hg-sheet .pitch-panel-badges .type-badge { text-transform: none; letter-spacing: 0; border-radius: 999px; color: var(--color-brand-darker); }
.hg-sheet .related-card .card-meta { margin: 0; }
.hg-sheet .share-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-6) 0; }
.hg-sheet .share-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-muted); }
.hg-sheet .share-links li[hidden] { display: none; }
.hg-sheet .share-links button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 12px; border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-bg); font: inherit; font-size: var(--text-sm); font-weight: 600; line-height: inherit; color: var(--color-ink); cursor: pointer; }
.hg-sheet .share-links button:hover { border-color: var(--color-brand); color: var(--color-brand); }
.hg-sheet .share-native { background: var(--color-brand) !important; border-color: var(--color-brand) !important; color: #fff !important; }
.hg-sheet .article-tags + .share-row { margin-top: calc(-1 * var(--space-2)); }
.hg-sheet .side-article-list { display: flex; flex-direction: column; gap: var(--space-4); }
.hg-sheet .side-article-item { display: flex; align-items: flex-start; gap: var(--space-3); color: inherit; text-decoration: none; }
.hg-sheet .side-article-item:hover { text-decoration: none; }
.hg-sheet .side-article-item-image { flex: 0 0 90px; width: 90px; aspect-ratio: 16 / 9; background: var(--color-bg-subtle); overflow: hidden; border-radius: var(--radius); }
.hg-sheet .side-article-item-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hg-sheet .side-article-item-body { min-width: 0; }
.hg-sheet .side-article-item-title { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); line-height: var(--leading-tight); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hg-sheet .side-article-item:hover .side-article-item-title { color: var(--color-brand); }
.hg-sheet .side-article-item-meta { font-size: var(--text-xs); color: var(--color-ink-faint); margin: var(--space-1) 0 0; }
.hg-sheet .author-box-avatar { flex-shrink: 0; }
.hg-sheet .author-box-avatar:hover { text-decoration: none; }
.hg-sheet .author-box-body { min-width: 0; }
.hg-sheet .author-box-eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-faint); margin: 0 0 var(--space-1); }
.hg-sheet .author-box-name { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.hg-sheet .author-box-name a { color: var(--color-ink); }
.hg-sheet .author-box-name a:hover { color: var(--color-brand); }
.hg-sheet .author-box-bio { font-size: var(--text-sm); color: var(--color-ink-muted); margin: 0 0 var(--space-3); }
.hg-sheet .author-box-more { font-size: var(--text-sm); font-weight: 600; }
.hg-sheet .blog-card-image { display: block; aspect-ratio: 16 / 9; background: #333; overflow: hidden; }
.hg-sheet .blog-card-image img { width: 100%; height: 100%; object-fit: contain; }
.hg-sheet .blog-card-body { padding: var(--space-6); }
.hg-sheet .blog-card-title { font-size: var(--text-2xl); line-height: var(--leading-tight); margin: 0 0 var(--space-2); }
.hg-sheet .blog-card-title a { color: var(--color-ink); }
.hg-sheet .blog-card-title a:hover { color: var(--color-brand); text-decoration: none; }
.hg-sheet .blog-card-author { color: inherit; font-weight: 600; }
.hg-sheet .blog-card-excerpt { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--color-ink); margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
.hg-sheet .blog-card-more { font-weight: 600; font-size: var(--text-sm); }
.hg-sheet .blog-hero-eyebrow { margin: 0 0 var(--space-1); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-brand); }
@media (max-width: 767px) {
    .hg-sheet .blog-card-body { padding: var(--space-4); }
    .hg-sheet .blog-card-title { font-size: var(--text-xl); }
}
.hg-sheet .blog-card-list-compact { gap: var(--space-4); }
.hg-sheet .blog-card-compact { display: flex; align-items: stretch; }
.hg-sheet .blog-card-compact .blog-card-image { flex: 0 0 240px; aspect-ratio: auto; min-height: 150px; }
.hg-sheet .blog-card-compact .blog-card-image img { height: 100%; }
.hg-sheet .blog-card-image-placeholder { background: var(--color-bg-subtle); }
.hg-sheet .blog-card-compact .blog-card-body { flex: 1; min-width: 0; padding: var(--space-4) var(--space-4) var(--space-3); display: flex; flex-direction: column; }
.hg-sheet .blog-card-compact .blog-card-title { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.hg-sheet .blog-card-compact .blog-card-excerpt { font-size: var(--text-sm); line-height: var(--leading-normal); margin-bottom: var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-sheet .blog-card-compact .blog-card-more { margin-top: auto; }
@media (max-width: 600px) {
    .hg-sheet .blog-card-compact .blog-card-image { flex-basis: 110px; min-height: 0; }
    .hg-sheet .blog-card-compact .blog-card-body { padding: var(--space-3); }
    .hg-sheet .blog-card-compact .blog-card-title { font-size: var(--text-base); }
    .hg-sheet .blog-card-compact .blog-card-excerpt { display: none; }
}
.hg-sheet .comments-jump { margin: calc(-1 * var(--space-2)) 0 var(--space-4); font-size: var(--text-sm); font-weight: 600; }
.hg-sheet .comments-jump a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-brand); text-decoration: none; }
.hg-sheet .comments-jump a:hover span:first-of-type { text-decoration: underline; }
.hg-sheet .comments-jump-icon { color: var(--color-brand); flex-shrink: 0; }
.hg-sheet .comments-jump-count { color: var(--color-ink-muted); font-weight: 400; }
.hg-sheet .comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; border-bottom: 2px solid var(--color-border); padding-bottom: var(--space-2); margin-bottom: var(--space-4); }
.hg-sheet .comments-title { font-size: var(--text-xl); margin: 0; }
.hg-sheet .comments-count { color: var(--color-ink-muted); font-weight: 400; }
.hg-sheet .comments-close-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: var(--text-xs); color: var(--color-ink-muted); cursor: pointer; text-decoration: underline; }
.hg-sheet .comments-close-toggle:hover { color: var(--color-brand); }
.hg-sheet .comments-note { font-size: var(--text-sm); color: var(--color-ink-muted); background: var(--color-bg-subtle); border-radius: 8px; padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-6); }
.hg-sheet .comments-empty { font-size: var(--text-sm); color: var(--color-ink-muted); margin: 0; }
.hg-sheet .comment { display: flex; gap: var(--space-3); padding: var(--space-3) 0; scroll-margin-top: var(--space-8); transition: background-color 0.6s; }
.hg-sheet .comment.is-highlighted { background: var(--color-brand-tint); }
.hg-sheet .blog-card-comments { display: inline-flex; align-items: center; gap: 4px; margin-left: var(--space-2); color: var(--color-brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hg-sheet .blog-card-comments:hover span { text-decoration: underline; }
.hg-sheet .blog-card-comments-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- 3. HonestGamers additions ------------------------------------------ */

/* The top of every blog page, across the sheet: the blogger's header image,
   then the tab bar. It runs to the sheet's edges. The old banners were made
   750 pixels wide, so the picture sits at its own size, centered, over a
   blurred, darkened copy of itself that fills the width. */
.blog-top { margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-6); }
.blog-banner { display: block; position: relative; overflow: hidden; background: #111; border-radius: var(--radius) var(--radius) 0 0; }
.blog-banner::before { content: ''; position: absolute; inset: -30px; background: var(--blog-banner) center / cover no-repeat;
    filter: blur(22px) brightness(0.6); transform: scale(1.1); }
.blog-banner img { position: relative; display: block; margin: 0 auto; max-width: 100%; max-height: 320px; width: auto; height: auto; }
.blog-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
    padding: 0 var(--space-6); border-bottom: 1px solid var(--color-border); background: var(--color-bg-subtle);
    border-radius: var(--radius) var(--radius) 0 0; }
.blog-banner + .blog-nav-bar { border-radius: 0; }
.blog-nav { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; }
.blog-nav::-webkit-scrollbar { display: none; }
.blog-top a.blog-nav-tab { display: block; padding: var(--space-3) var(--space-3); color: var(--color-ink-muted); font-weight: 600;
    border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.blog-top a.blog-nav-tab:hover { color: var(--color-ink); text-decoration: none; }
.blog-top a.blog-nav-tab.is-active { color: var(--color-brand); border-bottom-color: var(--color-brand); }
.blog-search { display: flex; align-items: center; margin: var(--space-2) 0; border: 1px solid var(--color-border-strong);
    border-radius: 999px; background: var(--color-bg); overflow: hidden; }
.blog-search input { border: 0; background: transparent; color: var(--color-ink); padding: 6px 4px 6px 14px; width: 190px; font-size: var(--text-sm); outline: none; }
.blog-search input::placeholder { color: var(--color-ink-faint); }
.blog-search button { border: 0; background: transparent; color: var(--color-ink-muted); padding: 6px 12px 6px 6px; cursor: pointer; display: flex; }
.blog-search button:hover { color: var(--color-brand); }
.blog-search:focus-within { border-color: var(--color-brand); }
@media (max-width: 767px) {
    .blog-top { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-3)) var(--space-4); }
    .blog-nav-bar { padding: 0 var(--space-3); }
    .blog-search { flex: 1 1 100%; }
    .blog-search input { width: 100%; }
}

/* The blogger's name and buttons. */
.hg-sheet .blog-hero { margin-bottom: var(--space-8); }
.blog-hero .author-hero-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-border-strong); text-underline-offset: 3px; }
.blog-hero .author-hero-meta a:hover { color: var(--color-brand); }
.blog-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.blog-hero-actions:empty { display: none; }
.hg-sheet .blog-hero-actions .author-links { margin: 0; }
.author-box-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hg-blog .blog-owner-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* The newest post at full size, then "Earlier posts" as compact cards. */
.hg-sheet .blog-card-list .blog-card:not(.blog-card-compact) .blog-card-title { font-size: var(--text-3xl); }
.blog-list-heading { font-size: var(--text-xs) !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-ink-faint) !important; margin: var(--space-2) 0 calc(-1 * var(--space-4)) !important;
    padding-bottom: var(--space-2) !important; border-bottom: 1px solid var(--color-border) !important; }
.hg-sheet .blog-card-list-compact { gap: var(--space-4); }
.hg-sheet .blog-card-image-placeholder { background: linear-gradient(135deg, var(--color-brand-tint), var(--color-bg-subtle)); }
@media (max-width: 767px) {
    .hg-sheet .blog-card-list .blog-card:not(.blog-card-compact) .blog-card-title { font-size: var(--text-2xl); }
}

/* Sidebar posts with no picture. */
.hg-sheet .side-article-item-image.is-empty { background: linear-gradient(135deg, var(--color-brand-tint), var(--color-bg-subtle)); }

/* The /blogs/ page. */
.hg-sheet .blog-index-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.hg-sheet .blog-index-head .section-page-title { margin-bottom: var(--space-2); }
.hg-sheet .blog-index-intro { margin: 0; color: var(--color-ink-muted); }

/* The post page's comment box. */
.hg-sheet .comment-form-main .comment-input { min-height: 96px; }

/* The blog tab pages (Reviews, Following): heading, sort chips, tables. */
.hg-sheet .blog-tab-head { margin-bottom: var(--space-6); }
.hg-sheet .blog-tab-head .section-page-title { margin-bottom: var(--space-2); }
.blog-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.hg-blog a.blog-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--color-border-strong);
    color: var(--color-ink-muted); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.hg-blog a.blog-chip:hover { border-color: var(--color-brand); color: var(--color-brand); }
.hg-blog a.blog-chip.is-active { background: var(--color-brand); border-color: var(--color-brand); color: var(--blog-btn-text, #fff); }
.blog-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: var(--space-6); }
.blog-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.blog-table th { text-align: left; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--color-ink-muted); background: var(--color-bg-subtle); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.blog-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.blog-table tbody tr:last-child td { border-bottom: 0; }
.blog-table tbody tr:hover td { background: var(--color-bg-subtle); }
.hg-blog .blog-table-title a { display: block; font-weight: 600; font-size: var(--text-base); color: var(--color-ink); }
.hg-blog .blog-table-title a:hover { color: var(--color-brand); }
.blog-table-sub { display: block; font-size: var(--text-xs); color: var(--color-ink-faint); }
.blog-table-num { text-align: right !important; white-space: nowrap; }
.blog-table-date { white-space: nowrap; color: var(--color-ink-muted); }
.blog-rating { font-weight: 700; color: var(--color-ink); }
.blog-rating span { font-weight: 400; color: var(--color-ink-faint); }
.blog-follow-list { list-style: none; padding: 0 !important; margin: 0 0 var(--space-6) !important; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hg-blog .blog-follow-list a { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 12px 4px 4px; border-radius: 999px;
    border: 1px solid var(--color-border); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.hg-blog .blog-follow-list a:hover { border-color: var(--color-brand); color: var(--color-brand); }
.blog-follow-list .avatar-sm { width: 28px; height: 28px; font-size: var(--text-xs); }

/* The pages still on the old code (the Games tab and its editor, the post
   editor, images): their old markup, dressed in the blog's own type and
   colors so they sit in the new design. */
.hg-blog-legacy { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-normal);
    color: var(--color-ink); text-align: left; overflow-x: auto; }
.hg-blog-legacy p { margin: 0 0 var(--space-4); }
.hg-blog-legacy a:link, .hg-blog-legacy a:visited, .hg-blog-legacy a:active { font-size: inherit; font-weight: 600; color: var(--color-brand); text-decoration: none; }
.hg-blog-legacy a:hover { font-size: inherit; color: var(--color-brand-dark); text-decoration: underline; }
.hg-blog-legacy H1, .hg-blog-legacy .divider-right { font-size: var(--text-xl); font-weight: 700; color: var(--color-ink); text-align: left;
    margin: 0 0 var(--space-2); padding: 0; width: auto; border: 0; background: none; }
.hg-blog-legacy H2, .hg-blog-legacy H3, .hg-blog-legacy H4 { font-size: var(--text-lg); font-weight: 700; color: var(--color-ink); border: 0; background: none; width: auto; max-width: none; padding: 0; margin: 0 0 var(--space-2); }
.hg-blog-legacy hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }
.hg-blog-legacy .standard, .hg-blog-legacy .bio-right, .hg-blog-legacy .article-tagline { font-family: inherit; color: var(--color-ink); font-size: inherit; }
.hg-blog-legacy .article-tagline { font-size: var(--text-lg); font-style: italic; color: var(--color-ink-muted); }
.hg-blog-legacy .header { background: var(--color-bg-subtle); color: var(--color-ink-muted); font-family: inherit; font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; padding: var(--space-2) var(--space-3); border: 0; border-bottom: 1px solid var(--color-border); }
.hg-blog-legacy .border { border: 1px solid var(--color-border) !important; border-radius: var(--radius); }
.hg-blog-legacy div.border, .hg-blog-legacy p.border { padding: var(--space-2) var(--space-3); background: var(--color-bg-subtle); }
.hg-blog-legacy .alert-box { background: var(--color-brand-tint); color: var(--color-ink); max-width: none; font-size: inherit; padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.hg-blog-legacy .padding-centered { margin: 4px; text-align: center; }
.hg-blog-legacy .padding-left { margin: 4px; text-align: left; }
.hg-blog-legacy .stripe-light { background: transparent; color: var(--color-ink); }
.hg-blog-legacy .stripe-dark { background: var(--color-bg-subtle); color: var(--color-ink); }
.hg-blog-legacy .bio-shell { width: 100%; }
.hg-blog-legacy .bio-left { width: 60px; height: 60px; }
.hg-blog-legacy .bio-left img { border-radius: 50%; }
.hg-blog-legacy .chart-image { width: 230px; height: 127px; border: 1px solid var(--color-border); border-radius: var(--radius); object-fit: cover; }
.hg-blog-legacy table { border-collapse: collapse; }
.hg-blog-legacy .comments-shell { width: 100%; max-width: none; min-width: 0; font-family: inherit; color: var(--color-ink); font-size: inherit;
    border: 1px solid var(--color-border); border-radius: var(--radius); }
.hg-blog-legacy .comments-shell thead td { background: var(--color-bg-subtle); color: var(--color-ink-muted); border: 0; border-bottom: 1px solid var(--color-border);
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: var(--space-2) var(--space-3); }
.hg-blog-legacy .comments-shell tbody td { color: var(--color-ink); padding: var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.hg-blog-legacy .comments-shell tbody tr:nth-child(odd), .hg-blog-legacy .comments-shell tbody tr:nth-child(even) { background: transparent; }
.hg-blog-legacy .comments-shell tbody tr:hover { background: var(--color-bg-subtle); }
.hg-blog-legacy .comments-avatar { width: 60px; min-width: 60px; }
.hg-blog-legacy .comments-headshot { width: 50px; min-width: 50px; border-radius: 50%; border: 0; }
.hg-blog-legacy .lead-picture { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius); }
.hg-blog-legacy img { max-width: 100%; height: auto; }
.hg-blog-legacy img.border { border-radius: 4px; object-fit: cover; }
.hg-blog-legacy input[type=text], .hg-blog-legacy input[type=search], .hg-blog-legacy input[type=file], .hg-blog-legacy select, .hg-blog-legacy textarea {
    font: inherit; color: var(--color-ink); background: var(--color-bg); border: 1px solid var(--color-border-strong);
    border-radius: var(--radius); padding: 6px 10px; max-width: 100%; }
.hg-blog-legacy textarea { width: 100%; }
.hg-blog-legacy input[type=text]:focus, .hg-blog-legacy select:focus, .hg-blog-legacy textarea:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; border-color: var(--color-brand); }
.hg-blog-legacy input[type=submit], .hg-blog-legacy input[type=button], .hg-blog-legacy button {
    font: inherit; font-weight: 600; cursor: pointer; padding: 6px 16px; border-radius: var(--radius);
    border: 1px solid var(--color-brand); background: var(--color-brand); color: var(--blog-btn-text, #fff); }
.hg-blog-legacy input[type=submit]:hover, .hg-blog-legacy button:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); }
.hg-blog-legacy font[color], .hg-blog-legacy span[style*="C0C0C0"] { color: var(--color-ink-faint) !important; }

/* The design page: header image picks, and the header image in the preview. */
.hg-sheet button.design-image { padding: 0; font: inherit; width: 100%; }
.hg-sheet .design-preview-banner { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3); background: #111; border-radius: 8px 8px 0 0; overflow: hidden; }
.hg-sheet .design-preview-banner img { display: block; margin: 0 auto; max-width: 100%; max-height: 70px; }
.hg-sheet .design-bg-url { margin-top: var(--space-3); }
.hg-blog .form-check { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 400; }

/* Old inline styles: black borders become the scheme's, and form fields fit. */
.hg-blog-legacy [style*="solid #000000"], .hg-blog-legacy [style*="solid #000;"], .hg-blog-legacy [style*="solid black"] {
    border-color: var(--color-border) !important; border-radius: var(--radius); background: var(--color-bg-subtle); }
.hg-blog-legacy input, .hg-blog-legacy select, .hg-blog-legacy textarea { box-sizing: border-box; }
@media (max-width: 600px) {
    .blog-table th:nth-child(3), .blog-table td:nth-child(3) { display: none; } /* views */
    .blog-table th, .blog-table td { padding-left: var(--space-3); padding-right: var(--space-3); }
}

/* Game covers: square, in the blog sidebar's reviews and the Reviews tab. */
.hg-sheet .side-review-cover { flex: 0 0 56px; width: 56px; aspect-ratio: 1 / 1; background: var(--color-bg-subtle); }
.hg-sheet .side-review-cover img { object-fit: cover; }
.hg-blog .blog-table-title { display: flex; align-items: center; gap: var(--space-3); }
.hg-blog a.blog-table-cover { flex: 0 0 48px; width: 48px; height: 48px; display: block; border-radius: 4px; overflow: hidden; background: var(--color-bg-subtle); }
.blog-table-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Pictures and videos in posts from the new editor (includes/blog_body.php),
        from Gameroni's article_body_assets.php and site.css ---- */
.hg-sheet .article-body .article-image { margin: var(--space-6) 0; text-align: center; }
.hg-sheet .article-image-frame { position: relative; display: inline-block; vertical-align: top; max-width: 100%; }
.hg-sheet .article-image img { max-width: 100%; height: auto; display: block; margin: 0 auto; cursor: zoom-in; }
.hg-sheet .article-image figcaption { font-size: var(--text-sm); color: var(--color-ink-muted); margin-top: 6px; }
.hg-sheet .article-image-row { display: flex; gap: 12px; margin: var(--space-6) 0; }
.hg-sheet .article-image-row .article-image { flex: 1; margin: 0; min-width: 0; }
.hg-sheet .article-image-row-frame { width: 100%; aspect-ratio: 16 / 9; background: #333; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.hg-sheet .article-image-row-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hg-sheet .article-image-carousel { margin: var(--space-6) 0; }
.hg-sheet .article-carousel-main { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hg-sheet .article-carousel-main-figure { margin: 0; flex: 1; max-width: 600px; }
.hg-sheet .article-carousel-main-figure-frame { width: 100%; aspect-ratio: 16 / 9; background: #333; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.hg-sheet .article-carousel-main-figure-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hg-sheet .article-carousel-prev, .hg-sheet .article-carousel-next { background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 24px; padding: 10px 16px; cursor: pointer; flex-shrink: 0; }
.hg-sheet .article-carousel-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.hg-sheet .article-carousel-thumb { width: 70px; height: 50px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.6; }
.hg-sheet .article-carousel-thumb.is-active { border-color: var(--color-brand); opacity: 1; }
.hg-sheet .article-video-embed { position: relative; width: 100%; max-width: 600px; aspect-ratio: 16 / 9; margin: var(--space-6) auto; }
.hg-sheet .article-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hg-sheet .article-body :is(ul, ol) { margin: 0 0 var(--space-4); padding-left: 1.5em; }
.hg-sheet .article-body a { text-decoration: underline; }
.hg-sheet .article-header-image { position: relative; }
.image-credit { position: absolute; top: 0; right: 0; max-width: 70%; padding: 3px 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; line-height: 1.4; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom-left-radius: 4px; pointer-events: none; }
.image-credit[hidden] { display: none; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 1000; cursor: zoom-out; padding: 20px; box-sizing: border-box; }
.lightbox-frame { position: relative; line-height: 0; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-caption { color: #eee; text-align: center; margin-top: 14px; font-size: 14px; max-width: 90vw; }
@media (max-width: 600px) {
    .hg-sheet .article-image-row { flex-direction: column; }
}

/* ---- The "Are you sure?" window (assets/confirm.js); the same rules as
        contact_css() in includes/contacts.php ---- */
.cdialog-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(16, 20, 28, 0.45); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.cdialog { background: #fff; color: #16181D; border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28); width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: var(--space-6); font-family: var(--font-body); text-align: left; }
.cdialog-title { font-size: var(--text-lg); margin: 0 0 var(--space-3); border: 0; background: none; color: inherit; padding: 0; }
.cdialog-text { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
.cdialog-buttons { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }
.cdialog-buttons .btn { color: #fff; }
.cdialog-buttons .btn-outline { color: #16181D; }
body.cdialog-open { overflow: hidden; }
/* The comment windows (assets/comments.js): leaving the site, reporting. */
.cdialog, .cdialog * { box-sizing: border-box; }
.cdialog-muted { color: #5B6470; }
.cdialog-host { font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--space-1); overflow-wrap: anywhere; }
.cdialog-url { font-size: var(--text-xs); color: #5B6470; margin: 0 0 var(--space-3); overflow-wrap: anywhere; background: #F5F7FA; border-radius: 6px; padding: var(--space-2) var(--space-3); max-height: 5.5em; overflow-y: auto; }
.cdialog-reasons { display: grid; gap: var(--space-1); margin-bottom: var(--space-3); font-size: var(--text-sm); }
.cdialog-reasons .form-check { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; cursor: pointer; }
.cdialog-reasons .form-check input { margin-top: 0.3em; flex-shrink: 0; }
.cdialog-note { width: 100%; font: inherit; font-size: var(--text-sm); padding: var(--space-2); border: 1px solid #D5DAE1; border-radius: 6px; resize: vertical; }
.cdialog-note:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-tint); }
.cdialog-error { color: var(--color-danger); font-size: var(--text-sm); font-weight: 600; margin: var(--space-3) 0 0; }
.cdialog-buttons .btn-danger { background: var(--color-danger); }
.cdialog-buttons .btn-danger:hover { background: #B33636; }
.cdialog-buttons .btn:disabled { opacity: 0.5; cursor: default; }
.hg-sheet .comment-input { box-sizing: border-box; }
.hg-sheet .blog-post-page > .preview-banner { margin: 0 0 var(--space-4); }

/* Reviews tab: title search, system menu and the count (assets/blog-reviews.js). */
.hg-blog .blog-review-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.hg-blog .blog-review-filters .blog-review-search { flex: 1 1 220px; width: auto; min-width: 0; }
.hg-blog .blog-review-filters .blog-review-system { flex: 0 1 auto; width: auto; max-width: 100%; }
.hg-blog .blog-review-count { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--color-ink-muted); }
.hg-blog .blog-review-count:empty { display: none; }

/* Staff > Social links (staff/social.php), from Gameroni */
.hg-blog .social-admin { max-width: 720px; }
.hg-blog .social-admin-intro { margin-bottom: var(--space-6); }
.hg-blog .social-admin-row { display: flex; align-items: center; gap: var(--space-3); }
.hg-blog .social-admin-row .form-input { flex: 1; min-width: 0; margin: 0; box-sizing: border-box; }
.hg-blog .social-admin-check { font-size: var(--text-sm); font-weight: 600; }
.hg-blog .social-admin-form .has-error .form-input { border-color: var(--color-danger, #C62828); }
.hg-blog .social-admin-form .form-error-text { color: var(--color-danger, #C62828); font-size: var(--text-sm); margin: var(--space-1) 0 0; }
.hg-blog .social-admin .form-success { margin-bottom: var(--space-4); }

/* The Staff page's team list (pages.php), from Gameroni */
.hg-blog .site-page-team-heading { margin-top: var(--space-8); }
.hg-blog .staff-list { list-style: none; margin: var(--space-3) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); }
.hg-blog .staff-list li { margin: 0; }
.hg-blog a.staff-card { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-ink); text-decoration: none; }
.hg-blog a.staff-card:hover { border-color: var(--color-brand); text-decoration: none; }
.hg-blog .staff-card-avatar { flex: none; width: 64px; height: 64px; font-size: 1.5rem; }
.hg-blog .staff-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hg-blog .staff-card-text strong { font-size: var(--text-lg); line-height: var(--leading-tight); }
.hg-blog a.staff-card:hover strong { color: var(--color-brand); }
.hg-blog .staff-card-role { font-size: var(--text-sm); color: var(--color-ink-muted); }
.hg-blog .staff-card-bio { font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink); }
