/**
 * assets/article-page.css
 * Reviews and news stories (includes/article_page.php), after blog.css,
 * which carries the article rules shared with the blogs (title, summary,
 * byline, header picture, share row, author box).
 */

.hg-article .article-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hg-article .article-title { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.hg-article .article-title i, .hg-article .article-title em { font-style: italic; }
.hg-article .article-summary { font-size: var(--text-xl); line-height: var(--leading-tight); font-style: normal; color: var(--color-ink-muted); margin: 0 0 var(--space-4); }

/* Byline, and the writer's or staff's Edit button beside it. */
.hg-article .article-byline-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-6); }
.hg-article .article-byline-row .article-byline { margin: 0; }
.hg-article .article-byline a:not(.article-byline-author) { color: inherit; }
.hg-article .article-byline a[href^="#"] { color: var(--color-brand); }
.hg-article .article-tools { margin: 0; display: flex; gap: var(--space-2); }

/* "Listen to this review". */
.hg-article .article-listen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: calc(-1 * var(--space-3)) 0 var(--space-6); }
.hg-article .article-listen-btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 14px 4px 8px; border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-bg); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); cursor: pointer; }
.hg-article .article-listen-btn:hover, .hg-article .article-listen-btn[aria-pressed="true"] { border-color: var(--color-brand); color: var(--color-brand); }
.hg-article .article-listen-btn .article-listen-pause { display: none; }
.hg-article .article-listen-btn[aria-pressed="true"] .article-listen-pause { display: inline; }
.hg-article .article-listen-btn[aria-pressed="true"] .article-listen-play { display: none; }
.hg-article .article-listen-note { font-size: var(--text-xs); color: var(--color-ink-faint); }

/* The focus picture: blog.css's header image, framed a little lower. */
.hg-article .article-focus { margin: 0 0 var(--space-8); background: #111; }
.hg-article .article-focus img { object-fit: contain; }

/* Old-format text: the writer's own HTML with line breaks. */
.hg-article .article-old-body { overflow-wrap: break-word; }
.hg-article .article-old-body img { max-width: 100%; height: auto; }
.hg-article .article-old-body .screenshot-standard,
.hg-article .article-old-body .screenshot-double { display: block; margin: var(--space-4) auto; border-radius: var(--radius); }
.hg-article .article-body a { color: var(--color-brand); }

/* Stars: five, with halves (1 to 10 ratings). */
.hg-article .article-stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.hg-article .astar { width: 22px; height: 22px; background: var(--color-border-strong);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hg-article .astar.is-full { background: #F5A623; }
.hg-article .astar.is-half { background: linear-gradient(90deg, #F5A623 50%, var(--color-border-strong) 50%); }
.hg-article .article-stars.is-small { gap: 2px; }
.hg-article .article-stars.is-small .astar { width: 15px; height: 15px; }

/* The verdict box (reviews) or the game box (everything else), after the text:
   Gameroni's review score box, with the game's cover where its ring is. */
.hg-article .article-game { display: flex; align-items: center; gap: var(--space-6); margin: var(--space-8) 0; padding: var(--space-6);
    background: var(--color-brand-tint); border: 1px solid var(--color-border); border-left: 6px solid var(--color-brand); border-radius: var(--radius); }
.hg-article .article-game:not(.is-review) { background: var(--color-bg-subtle); border-left-color: var(--color-border-strong); }
.hg-article .article-game-cover { flex-shrink: 0; line-height: 0; }
.hg-article .article-game-cover img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); background: var(--color-bg); }
.hg-article .article-game-text { min-width: 0; }
.hg-article .article-game-text p { margin: 0; }
.hg-article .article-game-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-brand-darker); }
.hg-article .article-game:not(.is-review) .article-game-label { color: var(--color-ink-muted); }
.hg-article .article-game-score { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-1) !important; }
.hg-article .article-game-num { font-size: var(--text-2xl); font-weight: 800; line-height: 1; color: var(--color-brand-darker); }
.hg-article .article-game-num small { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-muted); margin-left: 1px; }
.hg-article .article-game-unrated { font-weight: 700; color: var(--color-ink-muted); }
.hg-article .article-game-title { font-size: var(--text-xl); font-weight: 700; line-height: var(--leading-tight); margin-top: var(--space-2) !important; }
.hg-article .article-game-title a { color: var(--color-ink); }
.hg-article .article-game-title a:hover { color: var(--color-brand-dark); }
.hg-article .article-game-platform { font-size: var(--text-sm); color: var(--color-ink-muted); margin-top: 2px !important; }
.hg-article .article-game-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-2) !important; font-size: var(--text-sm); font-weight: 600; }
@media (max-width: 479px) {
    .hg-article .article-game { gap: var(--space-4); padding: var(--space-4); align-items: flex-start; }
    .hg-article .article-game-cover img { width: 76px; height: 76px; }
}

.hg-article .author-box { margin-top: var(--space-6); }
.hg-article .author-box-bio a { color: var(--color-brand); }
.hg-article .author-box-support { font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.hg-article .author-box .author-links { margin-bottom: var(--space-3); }

/* Section headings: More by, Feedback. */
.hg-article .article-section-heading { font-size: var(--text-xl); margin: 0 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-border); }

/* More by the writer. */
.hg-article .article-more { margin: var(--space-8) 0; }
.hg-article .article-more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.hg-article .article-more-item { display: flex; gap: var(--space-3); align-items: flex-start; color: inherit; text-decoration: none; }
.hg-article .article-more-item:hover { text-decoration: none; }
.hg-article .article-more-item img { flex-shrink: 0; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--color-bg-subtle); }
.hg-article .article-more-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hg-article .article-more-title { font-size: var(--text-sm); font-weight: 700; line-height: var(--leading-tight); color: var(--color-ink); }
.hg-article .article-more-item:hover .article-more-title { color: var(--color-brand); }
.hg-article .article-more-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-ink-faint); }
@media (max-width: 900px) {
    .hg-article .article-more-list { grid-template-columns: 1fr; }
}

/* Feedback: the page's heading, then the thread and the reply box. */
.article-feedback.hg-article { margin-top: var(--space-8); }
.article-feedback .forum-feedback { margin-top: 0; }
@media (max-width: 767px) {
    .hg-article .article-title { font-size: var(--text-2xl); }
    .hg-article .article-summary { font-size: var(--text-lg); }
}
.hg-article .article-page { padding-bottom: 0; margin-bottom: 0; }

/* Review of the Week winners: a gold badge beside the type. */
.hg-article a.type-badge.is-rotw:link, .hg-article a.type-badge.is-rotw:visited { background: #FFF3D6; color: #8A5A00; }
.hg-article a.type-badge.is-rotw::before { content: '\2605'; margin-right: 4px; color: #D4A017; }
.hg-article a.type-badge.is-rotw:hover { background: #FFE9B3; text-decoration: none; }
.hg-article a.type-badge.is-excl:link, .hg-article a.type-badge.is-excl:visited { background: var(--color-brand); color: #fff; }
.hg-article a.type-badge.is-excl:hover { background: var(--color-brand-dark); text-decoration: none; }
