/*
Theme Name: JRPG Pursuit
Theme URI: https://jrpgpursuit.com
Author: JRPG Pursuit
Description: Custom theme for the JRPG Pursuit podcast — scored game reviews with per-host takes, plus a podcast archive with video and audio for every episode.
Version: 2.38.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jrpg-pursuit
*/

:root {
  --ink: #16121c;
  --surface: #211a2c;
  --surface-2: #2a2138;
  --line: #372c4a;
  --text: #efe9f4;
  --muted: #9c8fb5;
  --gold: #d2a94f;
  --gold-soft: #e5c78a;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0 1.25rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-logo { flex: none; line-height: 0; }
.site-logo img { max-height: 56px; width: auto; display: block; }

.site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-title a { color: var(--text); text-decoration: none; }
.site-title a:hover { color: var(--gold-soft); }

.site-tagline {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.site-nav { margin-left: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap; /* "Release Calendar" wraps as a unit, never mid-name */
}

.site-nav a:hover { color: var(--gold-soft); text-decoration: underline; }

/* ---------- Side rails ---------- */

.side-rail {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.side-left { left: 1.5rem; }
.side-right { right: 1.5rem; }

.side-rail-ornament { opacity: 0.55; }
.side-right.side-rail-ornament svg { transform: scaleX(-1); }

.side-rail-art img {
  max-width: 170px;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* Only show rails when there's comfortable room beside the (wider) content column. */
@media (min-width: 1500px) {
  .side-rail.side-rail-ornament { display: block; }
}
@media (min-width: 1720px) {
  .side-rail.side-rail-art { display: block; }
}

/* ---------- Ad slots ---------- */

.ad-slot { padding: 1.25rem 0 0; }

.ad-slot .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ad-unit { max-width: 100%; overflow: hidden; text-align: center; }

.ad-unit::before {
  content: "advertisement";
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

/* ---------- Utility bar ---------- */

.utility-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.utility-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0.45rem 0;
}

.utility-bar a { color: var(--muted); text-decoration: none; }
.utility-bar a:hover { color: var(--gold-soft); text-decoration: underline; }

.utility-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Social icon rows ---------- */

.social-icons { display: flex; align-items: center; gap: 1rem; }

.social-icons a {
  color: var(--muted);
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.social-icons a:hover { color: var(--gold); }

.social-icons svg { width: 1.05rem; height: 1.05rem; }

.site-social { margin-left: auto; padding: 0.3rem 0; }

.author-links { margin-top: 0.8rem; }
.author-links a { color: var(--gold-soft); }
.author-links a:hover { color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .social-icons a { transition: color 160ms ease; }
}

/* ---------- Front page spotlight ---------- */

.spotlight-section { padding-top: 2rem; }

.spotlight-head { align-items: baseline; margin-bottom: 1.5rem; }
.spotlight-head h1 { margin: 0; font-size: 1.85rem; font-weight: 700; }
.spotlight-sub { margin: 0; color: var(--muted); font-style: italic; font-size: 0.98rem; }

.spotlight-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  grid-template-areas: "ep" "lead" "stack";
}

.spotlight-grid > .spot-lead { grid-area: lead; }
.spotlight-grid > .spot-stack { grid-area: stack; }
.spotlight-grid > .hero-episode { grid-area: ep; }

/* Without an episode yet, the spotlight fills the full width. */
.spotlight-grid:not(.has-episode) { grid-template-areas: "lead" "stack"; }

/* The supporting stories: compact rows (thumbnail left, text right). */
.spot-stack { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.spot-stack .spot-card { flex: 1 1 0; flex-direction: row; align-items: center; }
.spot-stack .spot-card .card-media { flex: 0 0 44%; border-bottom: none; align-self: stretch; display: flex; align-items: center; padding: 0.9rem 0 0.9rem 0.9rem; background: transparent; }
.spot-stack .spot-card .card-media img { width: 100%; border: 1px solid var(--line); }
.spot-stack .spot-body { padding: 0.9rem 1rem 0.9rem 0.9rem; min-width: 0; }
.spot-stack .spot-card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.spot-stack .spot-card .kicker { font-size: 0.82rem; margin-bottom: 0.25rem; }
.spot-stack .spot-card .meta { font-size: 0.82rem; }
.spot-stack .spot-title-row { gap: 0.6rem; }

/* Mid widths: lead beside the episode, the three stories in a row below. */
@media (min-width: 900px) and (max-width: 1179px) {
  .spotlight-grid.has-episode {
    grid-template-columns: 1fr 0.5fr;
    grid-template-areas:
      "lead  ep"
      "stack stack";
    align-items: start;
  }
  .spotlight-grid:not(.has-episode) { grid-template-areas: "lead" "stack"; }
  .spot-stack { flex-direction: row; }
  .spot-stack .spot-card { flex-direction: column; align-items: stretch; }
  .spot-stack .spot-card .card-media { flex: none; padding: 0; border-bottom: 1px solid var(--line); display: block; }
  .spot-stack .spot-card .card-media img { border: none; }
}

/* Wide screens: lead left, three stories stacked beside it (top and bottom
   aligned with the lead), episode at the far right. The lead keeps its full
   16:9 art uncropped. */
@media (min-width: 1180px) {
  .spotlight-grid.has-episode {
    grid-template-columns: 1.75fr 1fr 0.85fr;
    grid-template-areas: "lead stack ep";
    align-items: stretch;
  }
  .spotlight-grid:not(.has-episode) {
    grid-template-columns: 1.9fr 1fr;
    grid-template-areas: "lead stack";
    align-items: stretch;
  }
  .spotlight-grid.has-episode > .hero-episode { align-self: start; }
}

.spot-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.spot-card .card-media { border-bottom: 1px solid var(--line); }

.spot-body { padding: 1.2rem 1.4rem 1.15rem; flex: 1; }

.spot-card .kicker { margin: 0 0 0.35rem; color: var(--gold); font-style: italic; font-size: 0.88rem; }

.spot-title-row { display: flex; gap: 1rem; align-items: flex-start; }

.spot-text { min-width: 0; flex: 1; }

.spot-title-row .crystal { margin: 0.35rem 0.35rem 0 0.3rem; position: relative; z-index: 1; flex: none; }

.spot-card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.spot-lead h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); font-weight: 700; line-height: 1.2; }

.spot-card h3 a { color: var(--text); text-decoration: none; }
.spot-card h3 a::after { content: ""; position: absolute; inset: 0; }
.spot-card:hover { border-color: var(--gold); }
.spot-card:hover h3 a { color: var(--gold-soft); }

.spot-excerpt { margin: 0.25rem 0 0.6rem; font-size: 1.05rem; }

.spot-card .meta { margin: 0; color: var(--muted); font-size: 0.88rem; font-style: italic; }

/* ---------- Hero episode panel ---------- */

.hero-episode {
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 1.2rem 1.4rem 1.3rem;
}

.hero-episode .kicker { margin: 0 0 0.75rem; color: var(--gold); font-style: italic; font-size: 0.88rem; }

.hero-episode .episode-thumb { flex: none; max-width: 100%; margin-bottom: 1rem; }

.hero-episode .episode-player { margin: 0 0 1rem; }

.hero-episode h3 { margin: 0 0 0.3rem; font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.hero-episode h3 a { color: var(--text); text-decoration: none; }
.hero-episode h3 a:hover { color: var(--gold-soft); }
.hero-episode .episode-number { margin-right: 0.4rem; }

.hero-episode .meta { color: var(--muted); font-size: 0.88rem; font-style: italic; margin: 0 0 0.75rem; }
.hero-episode .episode-excerpt { margin: 0 0 1rem; font-size: 0.98rem; }

.hero-episode .episode-actions { margin-top: 0; }

/* ---------- Section headings ---------- */

.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
}

.section-head a { font-size: 0.95rem; }

/* ---------- Review cards & score crystal ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
/* The front page's four latest reviews sit in one row on wide screens. */
@media (min-width: 1180px) {
  .front-reviews .review-grid { grid-template-columns: repeat(4, 1fr); }
}

.review-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card-media {
  line-height: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1.4rem;
  flex: 1;
}

/* On cards with art, nudge the crystal up so it overlaps the image edge. */
.review-card.has-media .card-body { padding-top: 1.1rem; }
.review-card.has-media .crystal { margin-top: -2.4rem; z-index: 1; }

.review-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.review-card h3 a { color: var(--text); text-decoration: none; }
.review-card h3 a::after { content: ""; position: absolute; inset: 0; }
.review-card:hover { border-color: var(--gold); }
.review-card:hover h3 a { color: var(--gold-soft); }

@media (prefers-reduced-motion: no-preference) {
  .card-media img { transition: transform 400ms ease; }
  .review-card:hover .card-media img,
  .spot-card:hover .card-media img,
  .feature-card:hover .card-media img { transform: scale(1.03); }
}

.review-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* The score crystal: a rotated square, like a JRPG gem/save crystal */

.crystal {
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0.3rem 0.4rem 0 0.2rem;
}

.crystal::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  background: linear-gradient(160deg, var(--surface-2), var(--ink));
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 12px rgba(210, 169, 79, 0.25);
}

.crystal span {
  position: relative;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-soft);
  font-variant-numeric: lining-nums;
}

.crystal-lg { width: 5.6rem; height: 5.6rem; }
.crystal-lg span { font-size: 1.9rem; }

.crystal-sm { width: 2.5rem; height: 2.5rem; margin: 0; }
.crystal-sm span { font-size: 0.95rem; }

/* ---------- Single review ---------- */

.review-header { padding: 3.5rem 0 2rem; }

.review-header .kicker {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
}

.review-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.review-topline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.review-topline .byline { color: var(--muted); font-style: italic; margin: 0; }

.verdict-word {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-soft);
  font-style: italic;
}

.gamebox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.gamebox dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.5rem;
}

.gamebox dt { color: var(--muted); font-style: italic; }
.gamebox dd { margin: 0; font-weight: 500; }

.gamebox .disclosure {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
  font-size: 0.875rem;
}

.entry-content { font-size: 1.125rem; }
.entry-content > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.entry-content h2 { font-size: 1.6rem; font-weight: 700; margin: 2.5rem auto 1rem; }
.entry-content h3 { font-size: 1.3rem; font-weight: 500; margin: 2rem auto 0.75rem; }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem auto;
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-style: italic;
  color: var(--gold-soft);
}
.entry-content img { display: block; margin: 2rem auto; }
.entry-content .wp-block-image figcaption,
.entry-content figcaption { color: var(--muted); font-size: 0.875rem; font-style: italic; text-align: center; }
.entry-content .alignwide { max-width: 62rem; }
.entry-content .alignfull { max-width: none; }

/* ---------- Host takes ---------- */

.host-takes {
  max-width: 46rem;
  margin: 3.5rem auto 0;
  padding: 0 1.25rem;
}

.host-takes-inner { border-top: 1px solid var(--line); padding-top: 2rem; }

.host-takes h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.take {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.take-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.take-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.take-body { font-size: 1.05rem; }
.take-body p:first-child { margin-top: 0; }
.take-body p:last-child { margin-bottom: 0; }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.feature-card .card-media { border-bottom: 1px solid var(--line); }

.feature-card .feature-body { padding: 1.4rem 1.5rem 1.35rem; flex: 1; }

.feature-card .kicker {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-style: italic;
  font-size: 0.9rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.feature-card h3 a { color: var(--text); text-decoration: none; }
.feature-card h3 a::after { content: ""; position: absolute; inset: 0; }
.feature-card:hover { border-color: var(--gold); }
.feature-card:hover h3 a { color: var(--gold-soft); }

.feature-excerpt { margin: 0 0 0.6rem; color: var(--text); font-size: 0.98rem; }

.feature-card .meta { margin: 0; color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* Lead card: newest feature spans the grid with a bigger presence. */
.feature-card.is-lead { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .feature-card.is-lead { flex-direction: row; }
  .feature-card.is-lead .card-media { flex: 0 0 58%; border-bottom: none; border-right: 1px solid var(--line); }
  .feature-card.is-lead .card-media img { height: 100%; aspect-ratio: auto; }
  .feature-card.is-lead .feature-body { align-self: center; padding: 2rem; }
  .feature-card.is-lead h3 { font-size: 1.9rem; }
}

/* Single feature hero banner */
.feature-hero { line-height: 0; border-bottom: 1px solid var(--line); }

.feature-hero img {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  display: block;
}

/* "Show the full image" mode: the whole image, centered, uncropped. */
.feature-hero.hero-fit {
  text-align: center;
  background: var(--surface);
}

.feature-hero.hero-fit img {
  width: auto;
  max-width: min(100%, 62rem);
  max-height: 70vh;
  object-fit: contain;
  display: inline-block;
}

.feature-header { padding-top: 2.5rem; }
.feature-header .kicker { color: var(--gold); }

/* ---------- Guides ---------- */

.guide-jump {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.guide-jump-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
}

.guide-jump-label {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.guide-jump ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.98rem;
}

.guide-jump li { margin-bottom: 0.3rem; break-inside: avoid; }

@media (max-width: 560px) {
  .guide-jump ol { columns: 1; }
}

.guide-entries {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.guide-entry {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 3rem;
}

/* Section titles ("subtitles") dividing the list into groups. */

.guide-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.guide-section-title::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  transform: rotate(45deg);
  border: 1.5px solid var(--gold);
}

.guide-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.guide-text-block {
  margin-top: 2.5rem;
  font-size: 1.1rem;
}

.guide-text-block p:last-child { margin-bottom: 0; }

.guide-section-title + .guide-text-block { margin-top: 1.5rem; }

/* An entry right under a section title doesn't need its own divider. */
.guide-section-title + .guide-entry {
  border-top: 0;
  margin-top: 2rem;
  padding-top: 0;
}

.guide-entry-media { line-height: 0; margin-bottom: 1.5rem; }

.guide-entry-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.guide-entry-name {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.guide-entry-num { color: var(--gold); margin-right: 0.35rem; }

.guide-entry-meta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem 1.5rem;
  font-size: 0.95rem;
}

.guide-entry-meta dt { color: var(--muted); font-style: italic; }
.guide-entry-meta dd { margin: 0; font-weight: 500; }
.guide-entry-meta dd a { color: var(--gold-soft); text-decoration: none; }
.guide-entry-meta dd a:hover { color: var(--gold); text-decoration: underline; }

.guide-entry-blurb { font-size: 1.1rem; }
.guide-entry-blurb p:last-child { margin-bottom: 0; }

.guide-entry-link { margin: 1.25rem 0 0; }

/* ---------- Reader takes ("Your Take") ---------- */

.reader-takes { margin-bottom: 1rem; }

.reader-count { color: var(--muted); font-weight: 300; font-size: 1.1rem; }

.take-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  flex: none;
}

.reader-note { color: var(--muted); font-style: italic; }

.comment-awaiting-moderation { color: var(--gold-soft); font-style: italic; font-size: 0.95rem; }

#respond { margin-top: 2.5rem; }

.comment-reply-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.35rem; }

.reader-guidelines {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 1.25rem;
  max-width: 46rem;
}

.comment-form label { display: block; margin-bottom: 0.3rem; color: var(--muted); font-style: italic; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form select,
.comment-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  width: 100%;
  max-width: 100%;
}

.comment-form-author, .comment-form-email { max-width: 24rem; }
.comment-form-score select { width: auto; min-width: 9rem; }

.comment-form textarea { resize: vertical; }

.comment-form input:focus, .comment-form select:focus, .comment-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.form-submit input[type="submit"] {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}

.form-submit input[type="submit"]:hover {
  background: var(--gold);
  color: var(--ink);
}

.comment-navigation, .comments-pagination { margin-top: 1.5rem; }

/* ---------- Scorecard footer of a review ---------- */

.scorecard {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.scorecard-inner {
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.scorecard .final-label { color: var(--muted); font-style: italic; margin: 0 0 0.2rem; }
.scorecard .final-word { font-size: 1.35rem; font-weight: 700; margin: 0; }

/* ---------- Podcast archive ---------- */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.5rem 1rem 0.6rem;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
}

.tabs a:hover { color: var(--gold-soft); }

.tabs a[aria-current="page"] {
  color: var(--gold-soft);
  font-weight: 500;
  background: var(--surface);
  border-color: var(--line);
  border-bottom: 1px solid var(--surface);
}

.episode {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.episode-layout { display: flex; gap: 1.5rem; align-items: flex-start; }

.episode-main { flex: 1; min-width: 0; }

.episode-thumb { flex: 0 0 280px; max-width: 280px; }

.episode-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.episode-thumb-btn,
.episode-thumb-link {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  width: 100%;
}

/* Diamond play mark, echoing the score crystal. */
.episode-thumb-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.6rem;
  height: 2.6rem;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(22, 18, 28, 0.75);
  border: 1.5px solid var(--gold);
  z-index: 1;
}

.episode-thumb-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.8rem;
  border-color: transparent transparent transparent var(--gold-soft);
  z-index: 2;
}

.episode-thumb-btn:hover::before { background: rgba(22, 18, 28, 0.55); box-shadow: 0 0 14px rgba(210, 169, 79, 0.45); }
.episode-thumb-btn:hover img { opacity: 0.9; }

.episode.is-video-open .episode-thumb { display: none; }

@media (max-width: 720px) {
  .episode-layout { flex-direction: column; }
  .episode-thumb { flex: none; max-width: 100%; width: 100%; }
}

.episode-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

.episode-number {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
}

.episode h2, .episode h3 { margin: 0; font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
.episode h2 a, .episode h3 a { color: var(--text); text-decoration: none; }
.episode h2 a:hover, .episode h3 a:hover { color: var(--gold-soft); }

.episode .meta { color: var(--muted); font-style: italic; font-size: 0.9rem; margin: 0.35rem 0 0; }

.episode-notes { margin-top: 0.85rem; }
.episode-notes p { margin: 0; }

.episode-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.btn {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}

.btn:hover, .btn[aria-expanded="true"] {
  background: var(--gold);
  color: var(--ink);
}

.btn-link { text-decoration: none; display: inline-block; }

.episode-player { margin-top: 1.25rem; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-player audio { width: 100%; }

.listen-links { margin-top: 0.75rem; font-size: 0.95rem; }

/* ---------- Author box & About-page authors list ---------- */

.author-box-wrap {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.author-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-photo { flex: none; line-height: 0; }

.author-box .author-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.author-kicker {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-style: italic;
  font-size: 0.88rem;
}

.author-name {
  margin: 0 0 0.15rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.author-role {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.author-bio { font-size: 0.98rem; }
.author-bio p { margin: 0 0 0.6rem; }
.author-bio p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .author-box { flex-direction: column; }
  .author-box .author-photo img { width: 72px; height: 72px; }
}

/* About page: the full crew via [jrpg_authors] */

.authors-list { display: grid; gap: 1.25rem; margin: 2rem 0; }

.authors-list .author-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

@media (max-width: 560px) {
  .authors-list .author-photo img { width: 96px; height: 96px; }
}

/* ---------- Header search ---------- */

.search-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.search-toggle svg { width: 1.15rem; height: 1.15rem; }

.search-toggle:hover, .search-toggle[aria-expanded="true"] {
  color: var(--gold-soft);
  border-color: var(--line);
  background: var(--surface);
}

.header-search {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding: 1rem 0;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 36rem;
}

.search-form-label { flex: 1; }

.search-form input[type="search"] {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.6rem 0.9rem;
}

.search-form input[type="search"]:focus {
  border-color: var(--gold);
  outline: none;
}

.archive-search { margin-top: 1.25rem; }

.search-tabs { margin-top: 1.75rem; }

/* ---------- Search results ---------- */

.search-result-list { max-width: 52rem; }

.search-result {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.search-result:hover { border-color: var(--gold); }

.result-media { flex: 0 0 200px; line-height: 0; }

.result-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.result-body { flex: 1; min-width: 0; }

.search-result .kicker { margin: 0 0 0.3rem; color: var(--gold); font-style: italic; font-size: 0.85rem; }

.result-title-row { display: flex; gap: 1rem; align-items: flex-start; }
.result-title-row .crystal { flex: none; margin: 0.35rem 0.35rem 0 0.3rem; }
.result-text { flex: 1; min-width: 0; }

.search-result h2 { margin: 0 0 0.3rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.search-result h2 a { color: var(--text); text-decoration: none; }
.search-result h2 a::after { content: ""; position: absolute; inset: 0; }
.search-result:hover h2 a { color: var(--gold-soft); }

.search-result .meta { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.88rem; font-style: italic; }

.result-excerpt { margin: 0; font-size: 0.98rem; }

/* Info-box values that link to filtered archives */
.gamebox dd a { color: var(--gold-soft); text-decoration: none; }
.gamebox dd a:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 640px) {
  .search-result { flex-direction: column; }
  .result-media { flex: none; width: 100%; }
}

/* ---------- Game hub pages ---------- */

.game-hub-kicker { margin: 0 0 0.25rem; color: var(--gold); font-style: italic; font-size: 0.95rem; }

.game-hub-review {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}

.game-hub-review .final-label { margin: 0 0 0.2rem; color: var(--muted); font-style: italic; }
.game-hub-review-link { margin: 0; }

.game-hub-facts { max-width: 46rem; }

.guide-entry-name a { color: var(--text); text-decoration: none; }
.guide-entry-name a:hover { color: var(--gold-soft); }

/* ---------- Author links & writer pages ---------- */

.byline a {
  color: var(--gold-soft);
  text-decoration: none;
}

.byline a:hover { color: var(--gold); text-decoration: underline; }

.author-name a { color: var(--text); text-decoration: none; }
.author-name a:hover { color: var(--gold-soft); }

.writer-page-head { max-width: 46rem; margin-bottom: 1.25rem; }
.writer-page-head .author-name { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.15rem; }

.writer-count { margin: 0; color: var(--muted); font-style: italic; }

/* ---------- Subscribe box ---------- */

.subscribe-wrap {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.subscribe-inner {
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.subscribe-inner h2 { margin: 0 0 0.3rem; font-size: 1.35rem; font-weight: 700; }

.subscribe-text { margin: 0 0 1.1rem; color: var(--muted); font-style: italic; font-size: 0.98rem; }

.subscribe-inner form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.subscribe-inner input[type="email"] {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.6rem 0.9rem;
  min-width: 16rem;
  flex: 1;
  max-width: 24rem;
}

.subscribe-inner input[type="email"]:focus { border-color: var(--gold); outline: none; }

.subscribe-inner button,
.subscribe-inner input[type="submit"],
.subscribe-inner .wp-block-button__link {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}

.subscribe-inner button:hover,
.subscribe-inner input[type="submit"]:hover,
.subscribe-inner .wp-block-button__link:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.subscribe-inner p { margin-bottom: 0; }

/* ---------- Share bar ---------- */

.share-wrap {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.share-wrap-episode { max-width: none; padding: 0; margin-top: 2rem; }

.share-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.share-label {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-right: 0.4rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.share-btn svg { width: 1.1rem; height: 1.1rem; display: block; }

.share-btn:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.share-copied {
  color: var(--gold-soft);
  font-style: italic;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .share-btn { transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
}

/* ---------- Jetpack Related Posts (relocated & themed) ---------- */

.jp-related-wrap {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.jp-related-wrap #jp-relatedposts {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin: 0;
}

.jp-related-wrap #jp-relatedposts h3.jp-relatedposts-headline {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.jp-related-wrap #jp-relatedposts h3.jp-relatedposts-headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  border: none;
}

.jp-related-wrap #jp-relatedposts .jp-relatedposts-post {
  opacity: 1;
}

.jp-related-wrap #jp-relatedposts .jp-relatedposts-post-title {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.jp-related-wrap #jp-relatedposts .jp-relatedposts-post-title a.jp-relatedposts-post-a {
  color: var(--gold-soft) !important;
  font-weight: 500;
  text-decoration: none;
}

.jp-related-wrap #jp-relatedposts .jp-relatedposts-post-title a.jp-relatedposts-post-a:hover {
  color: var(--gold) !important;
  text-decoration: underline;
}

.jp-related-wrap #jp-relatedposts .jp-relatedposts-post-date,
.jp-related-wrap #jp-relatedposts .jp-relatedposts-post-context {
  font-family: var(--serif);
  color: var(--muted) !important;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 1;
}

.jp-related-wrap #jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post img.jp-relatedposts-post-img {
  border: 1px solid var(--line);
}

/* ---------- Archive headers, pagination, generic ---------- */

.archive-header { padding: 3.5rem 0 0.5rem; }
.archive-header h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; }
.archive-header p { margin: 0; color: var(--muted); font-style: italic; max-width: 55ch; }

.pagination { margin: 2.5rem 0 0; font-size: 1rem; }
.pagination .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.pagination .page-numbers { color: var(--gold-soft); }
.pagination .page-numbers.current { color: var(--text); }

.page-content { padding: 3rem 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  /* Phone header: logo + search on the first row, tagline under it,
     then the menu wrapping across the full width. */
  .site-header { padding: 1.1rem 0 1rem; }
  .site-header .wrap { gap: 0.6rem 1rem; }
  .site-logo img { max-height: 48px; }
  .search-toggle { order: 1; margin-left: auto; }
  .site-tagline { order: 2; width: 100%; font-size: 0.85rem; }
  .site-nav { order: 3; margin-left: 0; width: 100%; margin-top: 0.25rem; }
  .site-nav ul { gap: 0.4rem 1.1rem; }
  .site-nav a { font-size: 0.95rem; }
  .header-search { margin-top: 1rem; }

  /* Utility bar: links on one row, account on its own full-width row. */
  .utility-wrap { gap: 0 1rem; }
  .utility-bar ul { gap: 0.25rem 1rem; padding: 0.4rem 0 0.2rem; }
  .utility-right { margin-left: 0; width: 100%; justify-content: space-between; gap: 1rem; padding-bottom: 0.4rem; }
  .utility-right:only-child { justify-content: flex-start; }
  .utility-account { padding: 0; }

  .scorecard-inner { gap: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .review-card, .btn { transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
}

/* ---------- Front page: news band, features/guides split, release teaser ---------- */

/* The news band's accent — deliberately not gold, so the strip reads as
   its own thing next to the episode panel. Change it here in one place. */
:root { --news: #cf6a5e; }

.news-section { padding: 1.75rem 0; }

.news-band {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--news);
  padding: 1.25rem 1.5rem;
}

.news-label { flex: 0 0 8.5rem; }

.news-label h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--news);
}

.news-all {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.news-all:hover { color: var(--news); text-decoration: underline; }

.news-list {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: none; padding-bottom: 0; }

.news-today {
  flex: none;
  font-size: 0.68rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--news);
  padding: 0.1rem 0.45rem;
  transform: translateY(-0.1em);
}

.news-headline {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.news-headline:hover { color: var(--gold-soft); text-decoration: underline; }

.news-meta { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.news-meta a { color: var(--muted); }
.news-meta a:hover { color: var(--gold-soft); }

@media (max-width: 720px) {
  .news-band { flex-direction: column; gap: 0.75rem; }
  .news-label { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; }
  .news-label h2 { margin: 0; }
  /* The band collapses to the three newest headlines on phones. */
  .news-list li:nth-child(n+4) { display: none; }
}

/* News index cards: the image-forward counterpart to the text-only band.
   They ride on the feature-card base, recolored with the news accent. */

.news-card .kicker.news-kicker {
  color: var(--news);
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-kicker .news-today { margin-right: 0.45rem; }

.news-card:hover { border-color: var(--news); }

/* Features & Guides, side by side. */

.fg-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2.5rem 3rem;
}

.fg-col .section-head { margin-bottom: 1.25rem; }

.fg-row {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.fg-row:last-child { padding-bottom: 0; }

.fg-thumb {
  flex: 0 0 8rem;
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
}
.fg-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.fg-body { min-width: 0; }

.fg-body .kicker {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-style: italic;
  font-size: 0.85rem;
}

.fg-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
}
.fg-body h3 a { color: var(--text); text-decoration: none; }
.fg-body h3 a::after { content: ""; position: absolute; inset: 0; }
.fg-row:hover h3 a { color: var(--gold-soft); }
/* Keep the company/author links above the stretched title link. */
.fg-body .meta { position: relative; margin: 0; color: var(--muted); font-size: 0.85rem; font-style: italic; }

.fg-excerpt {
  margin: 0 0 0.35rem;
  font-size: 0.93rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 560px) {
  .fg-thumb { flex-basis: 6rem; }
}

/* Release calendar teaser ("Coming up"). */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
}
/* Front page: six upcoming releases in one row on wide screens, four elsewhere. */
.front-upcoming .cal-grid > .cal-card:nth-child(n+5) { display: none; }
@media (min-width: 1180px) {
  .front-upcoming .cal-grid { grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
  .front-upcoming .cal-grid > .cal-card:nth-child(n+5) { display: block; }
  .front-upcoming .cal-card { padding: 0.85rem 0.9rem; }
  .front-upcoming .cal-card h3 { font-size: 0.98rem; }
  .front-upcoming .cal-card-cover { margin: -0.85rem -0.9rem 0.7rem; }
}

.cal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.cal-card:hover { border-color: var(--gold); }

.cal-date {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.cal-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}
.cal-card h3 a { color: var(--text); text-decoration: none; }
.cal-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cal-card:hover h3 a { color: var(--gold-soft); }

.cal-platforms { margin: 0; font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ---------- Release calendar page ---------- */

.calendar-header { padding-bottom: 0; }
.calendar-intro { color: var(--muted); font-style: italic; max-width: 60ch; }
.calendar-intro p { margin: 0 0 0.6rem; }
.calendar-filter { margin-top: 1.5rem; flex-wrap: wrap; }

.calendar-section { padding-top: 2rem; }

.cal-month + .cal-month { margin-top: 3rem; }

.cal-month-head {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
  font-size: 1.45rem;
  font-weight: 700;
}

.cal-note { margin: -0.4rem 0 1rem; color: var(--muted); font-style: italic; font-size: 0.95rem; }

.cal-list { list-style: none; margin: 0; padding: 0; }

.cal-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.cal-row:last-child { border-bottom: none; }

.cal-day {
  flex: 0 0 3.6rem;
  text-align: center;
  line-height: 1;
  padding-top: 0.15rem;
}
.cal-day-num { display: block; font-size: 1.9rem; font-weight: 700; color: var(--gold); }
.cal-day-name {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-day-window { flex-basis: 7rem; text-align: left; padding-top: 0.45rem; }
.cal-window { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }

.cal-body { flex: 1; min-width: 0; }
.cal-body h3 { margin: 0 0 0.25rem; font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.cal-body h3 a { color: var(--text); text-decoration: none; }
.cal-body h3 a:hover { color: var(--gold-soft); text-decoration: underline; }

.cal-meta { margin: 0; font-size: 0.9rem; color: var(--muted); font-style: italic; }
.cal-meta a { color: var(--muted); }
.cal-meta a:hover { color: var(--gold-soft); }
.cal-meta .sep, .cal-meta .dot { color: var(--line); margin: 0 0.1em; }
.cal-platforms a { color: var(--gold-soft); font-style: normal; text-decoration: none; }
.cal-platforms a:hover { color: var(--gold); text-decoration: underline; }

.cal-badge {
  flex: none;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.2rem 0.55rem;
}
.cal-row.is-today .cal-body h3 a { color: var(--gold-soft); }

.cal-row.is-past .cal-day-num { color: var(--muted); }

.cal-review {
  flex: none;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--gold-soft);
  text-decoration: none;
}
.cal-review:hover { color: var(--gold); text-decoration: underline; }
.cal-review .crystal { margin: 0; }

@media (max-width: 560px) {
  .cal-row { gap: 0.9rem; }
  .cal-day { flex-basis: 2.9rem; }
  .cal-day-num { font-size: 1.5rem; }
  .cal-day-window { flex-basis: 5.5rem; }
  .cal-review > span { display: none; }
}

/* ---------- Reader accounts ---------- */

.utility-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.utility-right .site-social { margin-left: 0; }
.utility-account { white-space: nowrap; padding: 0.3rem 0; }
.utility-account .sep { color: var(--line); margin: 0 0.35rem; }
.utility-account a { color: var(--gold-soft); }
.utility-account a:hover { color: var(--gold); text-decoration: underline; }

.account-header p, .account-intro { color: var(--muted); font-style: italic; }
.account-section { padding-top: 2rem; }

.account-notice {
  margin: 0 0 1.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--surface);
  font-size: 0.98rem;
}
.account-notice.is-ok  { border-left-color: var(--gold); }
.account-notice.is-err { border-left-color: var(--news); }

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  align-items: start;
}

.account-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.25rem;
}
.account-form h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 700; }
.account-form p { margin: 0 0 1rem; }
.account-form label { display: block; margin-bottom: 0.3rem; color: var(--muted); font-style: italic; }
.account-optional { font-size: 0.85rem; }

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.account-form input:focus { border-color: var(--gold); outline: none; }
.account-hint { display: block; margin-top: 0.3rem; font-size: 0.82rem; color: var(--muted); font-style: italic; }
.account-remember label { display: inline; font-style: normal; color: var(--text); }
.account-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.account-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0 !important; }
.account-forgot { font-size: 0.9rem; }

.account-form .button,
.account-card .button {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.account-form .button:hover, .account-card .button:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.account-card .button-quiet { background: transparent; color: var(--gold-soft); }
.account-card .button-quiet:hover { background: transparent; color: var(--gold); }

.account-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 1.5rem;
}
.account-avatar { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; width: 128px; }
.account-card img.avatar { display: block; width: 128px; height: 128px; object-fit: cover; border: 1px solid var(--line); }
.account-avatar-pick { position: relative; font-size: 0.85rem; color: var(--gold-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.account-avatar-pick:hover { color: var(--gold); }
.account-avatar-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.account-avatar-pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.account-avatar-remove { font-size: 0.8rem; color: var(--muted); }
.account-card-body { flex: 1; min-width: 0; }
.account-card-body p { margin: 0 0 1rem; }
.account-card-body label { display: block; margin-bottom: 0.3rem; color: var(--muted); font-style: italic; }
.account-card-body input[type="text"] {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  width: 100%;
  max-width: 22rem;
}
.account-card-body input[type="text"]:focus { border-color: var(--gold); outline: none; }
.account-quiet-link { font-size: 0.9rem; }
.account-name { margin: 0; font-size: 1.4rem; font-weight: 700; }
.account-handle { margin: 0 0 0.75rem; color: var(--muted); font-style: italic; }
.account-note { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.account-actions { margin: 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.account-logout { font-size: 0.9rem; color: var(--muted); }

.comment-account-note { margin: 0 0 1rem; color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* Badges next to names (comments, account page). --badge is set per badge. */
.badges { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; vertical-align: middle; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--badge, var(--gold));
  border: 1px solid var(--badge, var(--gold));
  padding: 0.2rem 0.45rem;
  cursor: default;
}
.badge img { width: 0.9em; height: 0.9em; object-fit: contain; }
.badge-icon { font-size: 0.85em; }
.badge.badge-icon-only, .badge.badge-icon { border: none; padding: 0; font-size: 0.85rem; }
.badge.badge-ring { background: color-mix(in srgb, var(--badge, var(--gold)) 14%, transparent); }
.take-head h3 .badges { margin-left: 0.6rem; }

@media (max-width: 560px) {
  .account-card { flex-direction: column; }
}

/* Game covers on calendar rows and upcoming-release cards. */
.cal-cover {
  flex: 0 0 7rem;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  align-self: center;
}
.cal-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cal-cover-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); }
.cal-card-cover { margin: -1rem -1.1rem 0.8rem; border-bottom: 1px solid var(--line); }
.cal-card-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 560px) {
  .cal-cover { flex-basis: 5rem; }
}

/* Plain list items (features): the "From <game>" line under the name. */
.guide-item-from { margin: -0.4rem 0 0.9rem; color: var(--muted); font-style: italic; font-size: 0.95rem; }
.guide-item-from a { color: var(--gold-soft); }
.guide-item-from a:hover { color: var(--gold); }

/* Company page: social handles under the heading. */
.company-socials { margin-top: 0.5rem !important; font-size: 0.92rem; }
.company-socials a { color: var(--gold-soft); text-decoration: none; }
.company-socials a:hover { color: var(--gold); text-decoration: underline; }
.company-socials .dot { color: var(--line); margin: 0 0.25rem; }
.company-socials .sr-net { position: absolute; left: -9999px; }

/* About page: team group headings between author boxes. */
.authors-group-title {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold);
  font-size: 1.45rem;
  font-weight: 700;
}
.authors-list > .authors-group-title:first-child { margin-top: 0; }
.authors-list .author-name { font-size: 1.5rem; }

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  word-wrap: normal;
}
