/*
Theme Name:   GTA 6 Waypoint
Theme URI:    https://gta6waypoint.com/
Description:  Custom standalone theme for GTA 6 Waypoint: dark, mobile-first news and guide design with a launch countdown. No parent theme required.
Author:       Vijay J
Author URI:   https://gta6waypoint.com/author-vijay-j/
Version:      2.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain:  newsmatic-child
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   0. FONTS (self-hosted, no Google Fonts request)
   ========================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ==========================================================================
   1. COLOURS, FONTS, SIZES  (change the look here)
   ========================================================================== */
:root {
  --bg-color: #0E1116;
  --surface-color: #171B22;
  --surface-hover: #1E232C;
  --border-color: #262C36;

  --text-main: #EDEAE4;
  --text-sub: #A9B1BC;
  --text-muted: #8A94A4;

  --accent-color: #FF7A66;
  --brand-gradient: linear-gradient(90deg, #9E1263 0%, #C4245A 50%, #D2461A 100%);
  --brand-pink: #C4245A;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1520px;
  --content-max: 720px;
  --radius: 12px;
  --gutter: 16px;

  --heading-color: #FFFFFF;
  --box-color: #1A2029;
  --media-bg: #12161E;
  --footer-bg: #0A0C10;
  --stripe: rgba(255, 255, 255, .02);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-color); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.15;
  margin: 0;
  overflow-wrap: break-word;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Visually hidden text for screen readers (skip link, labels) */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  left: 8px; top: 8px; z-index: 100000; padding: 12px 16px;
  background: #FFFFFF; color: #0E1116; border-radius: 6px;
}

.cat-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-color);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.section-header h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .01em; }
.section-header .see-all { font-size: 13px; font-weight: 600; color: var(--accent-color); white-space: nowrap; }

/* Show/hide helpers (900px = mobile/desktop switch) */
@media (max-width: 899px) { .desktop-only { display: none !important; } }
@media (min-width: 900px) { .mobile-only { display: none !important; } }

/* ==========================================================================
   3. HEADER & MENU
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-wrapper { min-width: 0; display: flex; flex-direction: column; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { max-height: 44px; width: auto; }

.logo-text-lockup {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--heading-color); line-height: 1;
}
.logo-text-lockup .badge-6 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: 0 4px; border-radius: 4px;
  background: var(--brand-pink); font-size: 17px;
}

.site-tagline { margin: 3px 0 0; font-size: 11px; font-weight: 500; color: var(--text-sub); }
@media (max-width: 899px) { .site-tagline { display: none; } }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Search form */
.header-search-form { position: relative; display: flex; align-items: center; }
.header-search-input {
  width: 220px;
  min-height: 40px;
  padding: 8px 40px 8px 12px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font: inherit;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
}
.header-search-input::placeholder { color: var(--text-muted); }
.header-search-input:focus { border-color: var(--accent-color); }
.header-search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 0; color: var(--text-sub); cursor: pointer;
}

/* Social icons */
.social-icons-wrapper { display: flex; gap: 8px; }
.social-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
}
.social-icon-link:hover { color: var(--accent-color); border-color: var(--accent-color); }
.social-icon-link svg { width: 16px; height: 16px; fill: currentColor; }

/* Menu button (mobile) */
.menu-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--heading-color);
  cursor: pointer;
}
.menu-toggle-btn .icon-close { display: none; }
.menu-toggle-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle-btn[aria-expanded="true"] .icon-close { display: block; }

/* Gradient menu bar (desktop) */
.main-navigation-bar { background: var(--brand-gradient); }
.main-navigation-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-navigation-bar li a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}
.main-navigation-bar li a:hover,
.main-navigation-bar .current-menu-item > a,
.main-navigation-bar .current-category-ancestor > a { background: rgba(0, 0, 0, .22); color: #FFFFFF; }

/* Mobile menu panel */
@media (max-width: 899px) {
  .main-navigation-bar {
    display: none;
    background: var(--surface-color);
    border-top: 3px solid transparent;
    border-image: var(--brand-gradient) 1;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-navigation-bar.is-open { display: block; }
  .main-navigation-bar .container { padding-top: 8px; padding-bottom: 20px; }
  .main-navigation-bar ul { flex-direction: column; flex-wrap: nowrap; }
  .main-navigation-bar li { border-bottom: 1px solid var(--border-color); }
  .main-navigation-bar li a {
    padding: 14px 4px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
  }
  .main-navigation-bar li a:hover,
  .main-navigation-bar .current-menu-item > a { background: none; color: var(--accent-color); }

  .mobile-menu-extras { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
  .mobile-menu-extras .header-search-input { width: 100%; font-size: 16px; min-height: 46px; }
  body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   4. HERO & COUNTDOWN
   ========================================================================== */
.hero-section { margin: 20px 0 40px; }

.hero-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}
.hero-media { aspect-ratio: 16 / 9; background: var(--media-bg); overflow: hidden; }
.hero-media a, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-content { padding: 18px; }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--text-sub); }
.hero-title { font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.hero-excerpt { margin: 0; font-size: 16px; color: var(--text-sub); }

.countdown-strip-container { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }

.countdown-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.countdown-label {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.countdown-unit { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 2px; }
.countdown-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; color: var(--heading-color);
  font-variant-numeric: tabular-nums;
}
.countdown-unit:last-child .countdown-num { color: var(--accent-color); }
.countdown-text { margin-top: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sub); }
.countdown-out-now-text { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--accent-color); }

.countdown-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-primary, .btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--brand-gradient); color: #FFFFFF; border: 0; }
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-secondary { background: var(--surface-color); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--accent-color); color: var(--accent-color); }
.btn-primary svg, .btn-secondary svg { flex-shrink: 0; }

/* ==========================================================================
   5. EXPLORE TILES
   ========================================================================== */
.explore-section { margin-bottom: 40px; }
.explore-tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.explore-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}
.explore-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.explore-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0) 30%, rgba(14, 17, 22, .92) 100%);
}
.explore-tile:hover .explore-tile-img { transform: scale(1.04); }
.explore-tile-info { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; }
.explore-tile-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.1; color: #FFFFFF; text-transform: uppercase; }
.explore-tile-link { font-size: 12px; font-weight: 600; color: var(--accent-color); }

/* ==========================================================================
   6. POST CARDS
   ========================================================================== */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.post-card:hover { border-color: rgba(255, 122, 102, .55); }
.post-card-thumb { display: block; aspect-ratio: 16 / 9; background: var(--media-bg); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 14px 16px 16px; }
.post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--text-sub); }
.post-card-title { font-size: 21px; line-height: 1.15; }

/* Phones: compact list rows (small image left, text right) */
@media (max-width: 639px) {
  .posts-grid { gap: 12px; }
  .post-card { flex-direction: row; align-items: stretch; }
  .post-card-thumb { flex: 0 0 38%; aspect-ratio: auto; min-height: 96px; }
  .post-card-content { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .post-card-title { font-size: 18px; }
}

/* Characters */
.characters-section { margin-bottom: 40px; }
.characters-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.character-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; }
.character-card:hover { border-color: rgba(255, 122, 102, .55); }
.character-card-thumb { aspect-ratio: 16 / 9; background: var(--media-bg); overflow: hidden; }
.character-card-thumb a, .character-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.character-card-body { padding: 16px 18px 18px; }
.character-card-body h3 { font-size: 24px; margin: 4px 0 8px; }
.character-card-body p { margin: 0; font-size: 15px; color: var(--text-sub); }

/* ==========================================================================
   7. FOLLOW BAND
   ========================================================================== */
.follow-band {
  margin-bottom: 40px;
  padding: 28px 18px;
  text-align: center;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}
.follow-band h2 { font-size: 28px; margin-bottom: 6px; }
.follow-band p { max-width: 520px; margin: 0 auto 18px; font-size: 15px; color: var(--text-sub); }
.follow-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   8. SINGLE ARTICLE
   ========================================================================== */
.single-article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin: 20px 0 50px; }
.article-main-column { min-width: 0; max-width: var(--content-max); width: 100%; }

.single-post-header { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.single-post-header .cat-pill a { color: var(--accent-color); }
.single-post-title { font-size: 34px; line-height: 1.08; margin: 8px 0 12px; }
.single-post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--text-sub); }
.single-post-byline a { font-weight: 700; color: var(--text-main); }

.single-featured-media { margin: 0 0 24px; }
.single-featured-media img { width: 100%; border-radius: var(--radius); }
.single-featured-media figcaption { padding-top: 6px; font-size: 13px; color: var(--text-muted); }

/* Article text */
.entry-content { font-size: 18px; line-height: 1.7; color: var(--text-main); overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 22px; }
.entry-content p { margin: 0 0 20px; }

/* Links inside articles: always visible */
.entry-content a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--heading-color); }

.entry-content h2 { font-size: 30px; margin: 40px 0 14px; }
.entry-content h3 { font-size: 25px; margin: 34px 0 12px; }
.entry-content h4 { font-size: 20px; margin: 26px 0 10px; }
.entry-content strong { color: var(--heading-color); }
.entry-content em { color: var(--text-sub); }

.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content li::marker { color: var(--accent-color); }

/* Quick answer box = the first quote block in every post */
.entry-content blockquote,
.entry-content .wp-block-quote {
  margin: 0 0 26px;
  padding: 18px 20px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  line-height: 1.65;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--text-muted); font-style: normal; }

/* Rank Math table of contents */
.entry-content .wp-block-rank-math-toc-block,
.entry-content .rank-math-toc-box {
  padding: 18px 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.entry-content .wp-block-rank-math-toc-block h2,
.entry-content .wp-block-rank-math-toc-block h3,
.entry-content .rank-math-toc-box h2 {
  margin: 0 0 10px; padding: 0; border: 0;
  font-size: 18px; text-transform: uppercase; letter-spacing: .03em;
}
.entry-content .wp-block-rank-math-toc-block ul,
.entry-content .wp-block-rank-math-toc-block ol { margin: 0; padding-left: 18px; }
.entry-content .wp-block-rank-math-toc-block li { margin-bottom: 6px; font-size: 15px; }
.entry-content .wp-block-rank-math-toc-block a { color: var(--text-sub); text-decoration: none; }
.entry-content .wp-block-rank-math-toc-block a:hover { color: var(--accent-color); }

/* Tables: scroll sideways inside their own box on phones */
.entry-content .wp-block-table { margin: 0 0 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface-color); color: var(--heading-color); font-weight: 700; }
.entry-content td { color: var(--text-main); }
.entry-content tr:nth-child(even) td { background: var(--stripe); }
.entry-content table + figcaption, .entry-content .wp-block-table figcaption { font-size: 13px; color: var(--text-muted); }

/* Images, embeds, captions */
.entry-content figure { margin: 0 0 26px; }
.entry-content .wp-block-image img { border-radius: 10px; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 6px; font-size: 13px; color: var(--text-muted); text-align: left; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { position: relative; }

/* Related posts */
.related-posts-section { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.related-posts-section h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 12px; }
.related-posts-list { list-style: none; margin: 0; padding: 0; }
.related-posts-list li { border-bottom: 1px solid var(--border-color); }
.related-posts-list a { display: block; padding: 12px 0; font-size: 16px; font-weight: 600; color: var(--text-main); }
.related-posts-list a:hover { color: var(--accent-color); }

/* ==========================================================================
   9. SIDEBAR (desktop: right column; phone: after the article)
   ========================================================================== */
.article-sidebar { min-width: 0; }
.sidebar-widget {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.sidebar-widget .countdown-box { padding: 0; border: 0; background: none; }
.sidebar-widget-title { font-size: 20px; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.sidebar-posts-list { list-style: none; margin: 0; padding: 0; }
.sidebar-post-item { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.sidebar-post-item:first-child { padding-top: 0; }
.sidebar-post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-post-item h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 2px 0; }
.sidebar-post-item .date { font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   10. ARCHIVES, PAGES, PAGINATION, SEARCH, COMMENTS
   ========================================================================== */
.archive-header, .page-header, .search-header { margin: 24px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.archive-title, .page-title, .search-title { font-size: 38px; text-transform: uppercase; margin-bottom: 8px; }
.archive-description { max-width: 640px; font-size: 16px; color: var(--text-sub); }
.archive-description p { margin: 0; }

.page-article { max-width: var(--content-max); margin: 0 auto 60px; }

.navigation.pagination { margin: 8px 0 50px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px;
  font-weight: 600;
}
.navigation.pagination .page-numbers.current { background: var(--brand-gradient); border-color: transparent; color: #FFFFFF; }

.search-header .header-search-form, .error-404 .header-search-form { max-width: 420px; }
.search-header .header-search-input, .error-404 .header-search-input { width: 100%; min-height: 46px; font-size: 16px; }

.comments-area { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] {
  width: 100%; padding: 10px 12px; background: var(--surface-color); border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-main); font: inherit;
}
.comments-area .submit { min-height: 46px; padding: 10px 20px; background: var(--brand-gradient); border: 0; border-radius: 8px; color: #FFFFFF; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { margin-top: 40px; padding: 40px 0 28px; background: var(--footer-bg); border-top: 1px solid var(--border-color); font-size: 14px; color: var(--text-sub); }
.footer-top { display: flex; flex-direction: column; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.footer-about-text { max-width: 480px; margin: 10px 0 0; line-height: 1.6; }
.footer-nav ul { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { display: inline-block; padding: 8px 0; color: var(--text-sub); font-weight: 500; }
.footer-nav a:hover { color: var(--accent-color); }
.footer-disclaimer { margin: 0 0 8px; font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.footer-copyright { margin: 0; font-size: 13px; font-weight: 600; }

/* ==========================================================================
   12. LARGER SCREENS
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero-title { font-size: 40px; }
  .hero-content { padding: 24px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-tiles-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
  .follow-buttons { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; }
  .follow-buttons .btn-primary, .follow-buttons .btn-secondary { white-space: nowrap; padding: 12px 24px; }
  .single-post-title { font-size: 42px; }
}

@media (min-width: 900px) {
  .hero-section { margin-top: 28px; }
  .hero-card { display: grid; grid-template-columns: 3fr 2fr; }
  .hero-media { aspect-ratio: auto; min-height: 380px; }
  .hero-content { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
  .hero-title { font-size: 44px; }
  .countdown-strip-container { grid-template-columns: 7fr 5fr; align-items: stretch; }
  .countdown-actions { grid-template-columns: 1fr; align-content: center; }
  .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .explore-tiles-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .single-article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.countdown-date { margin-top: 10px; font-size: 12px; color: var(--text-sub); }

/* First paragraph of every article = Quick answer box (works even when it is a plain paragraph) */
.single .entry-content > p:first-child {
  padding: 18px 20px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  line-height: 1.65;
}

/* Homepage "About GTA 6" intro (content from the page with slug homepage-intro) */
.home-intro {
  margin: 0 0 40px;
  padding: 24px 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}
.home-intro-title { font-size: 30px; text-transform: uppercase; margin-bottom: 14px; }
.home-intro-content { font-size: 17px; }
.home-intro-content > *:last-child { margin-bottom: 0; }
.single .home-intro-content > p:first-child, .home-intro-content > p:first-child { padding: 0; background: none; border: 0; }
@media (min-width: 900px) {
  .home-intro { padding: 32px 36px; }
  .home-intro-title { font-size: 36px; }
  .home-intro-content { columns: 1; }
}

/* ==========================================================================
   13. LAUNCH HERO (full-width image + big countdown)
   ========================================================================== */
.launch-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 36px;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(210, 70, 26, .45) 0%, rgba(14, 17, 22, 0) 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(158, 18, 99, .55) 0%, rgba(14, 17, 22, 0) 60%),
    #0E1116;
}
.launch-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 30%;
}
.launch-hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .92) 0%, rgba(14, 17, 22, .65) 45%, rgba(14, 17, 22, .1) 100%),
    linear-gradient(0deg, rgba(14, 17, 22, 1) 0%, rgba(14, 17, 22, 0) 35%);
}
.launch-hero-inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 40px; }

.launch-hero-kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #FFFFFF;
}
.launch-hero-kicker::before { content: ""; width: 40px; height: 3px; border-radius: 2px; background: var(--brand-gradient); }

.launch-hero-title { margin: 0 0 18px; line-height: .9; text-transform: uppercase; }
.launch-hero-title-main { display: block; font-size: 96px; font-weight: 800; letter-spacing: -.01em; color: #FFFFFF; }
.launch-hero-six {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-color);
  padding-right: 4px;
}
.launch-hero-title-sub { display: block; margin-top: 8px; font-size: 34px; font-weight: 700; letter-spacing: .01em; color: #FFFFFF; }

.launch-hero-meta {
  display: inline-flex; flex-wrap: wrap; gap: 6px 12px;
  margin: 0 0 22px; padding: 8px 14px;
  background: rgba(14, 17, 22, .75);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF;
}

/* Big countdown inside the hero */
.launch-countdown { padding: 0; margin: 0 0 24px; background: none; border: 0; text-align: left; }
.launch-countdown .countdown-grid { max-width: 640px; margin: 0; gap: 10px; }
.launch-countdown .countdown-unit {
  position: relative;
  padding: 16px 14px 14px;
  text-align: left;
  background: rgba(14, 17, 22, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
}
.launch-countdown .countdown-unit::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-gradient); opacity: .9;
}
.launch-countdown .countdown-num { font-size: 64px; line-height: .95; color: #FFFFFF; }
.launch-countdown .countdown-unit:last-child .countdown-num { color: var(--accent-color); }
.launch-countdown .countdown-text { margin-top: 8px; font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .75); }
.launch-countdown .countdown-out-now-text { font-size: 64px; }

.launch-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.launch-hero-actions .btn-primary { padding: 14px 26px; white-space: nowrap; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 24px;
  background: rgba(14, 17, 22, .6);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  color: #FFFFFF; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(14, 17, 22, .85); }

/* Phones */
@media (max-width: 639px) {
  .launch-hero { min-height: 0; margin-bottom: 28px; }
  .launch-hero.has-image::before {
    background: linear-gradient(0deg, rgba(14, 17, 22, 1) 0%, rgba(14, 17, 22, .8) 45%, rgba(14, 17, 22, .35) 100%);
  }
  .launch-hero-inner { padding-top: 120px; padding-bottom: 28px; }
  .launch-hero-kicker { font-size: 10px; letter-spacing: .18em; }
  .launch-hero-title-main { font-size: 64px; }
  .launch-hero-title-sub { font-size: 24px; }
  .launch-hero-meta { font-size: 11px; letter-spacing: .1em; }
  .launch-countdown .countdown-grid { gap: 6px; }
  .launch-countdown .countdown-unit { padding: 12px 6px 10px; text-align: center; border-radius: 10px; }
  .launch-countdown .countdown-num { font-size: 36px; }
  .launch-countdown .countdown-text { font-size: 9px; letter-spacing: .12em; }
  .launch-hero-actions { display: grid; grid-template-columns: 1fr; }
  .launch-hero-actions .btn-primary, .btn-ghost { width: 100%; }
}

@media (min-width: 900px) {
  .launch-hero { min-height: 640px; }
  .launch-hero-title-main { font-size: 132px; }
  .launch-hero-title-sub { font-size: 42px; }
  .launch-countdown .countdown-num { font-size: 76px; }
}

/* Top story card under the hero */
.top-story { margin-bottom: 40px; }
.top-story-label {
  padding: 3px 8px; border-radius: 4px;
  background: var(--brand-gradient); color: #FFFFFF;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Sidebar countdown: same look, smaller */
.sidebar-widget .countdown-unit { position: relative; overflow: hidden; border-radius: 10px; }
.sidebar-widget .countdown-unit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-gradient); }
.sidebar-widget .countdown-num { font-size: 34px; }

/* Wide screens: use more of the width, with comfortable side margins */
@media (min-width: 1200px) {
  :root { --gutter: 40px; }
  .single-article-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .article-main-column { max-width: none; }
}
@media (min-width: 1600px) {
  :root { --gutter: 56px; }
}

/* Breadcrumbs (Rank Math) */
.gw-breadcrumbs { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.gw-breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.gw-breadcrumbs a { color: var(--text-sub); text-decoration: underline; text-decoration-color: rgba(169, 177, 188, .45); text-underline-offset: 3px; }
.gw-breadcrumbs a:hover { color: var(--accent-color); }
.gw-breadcrumbs .separator { margin: 0 6px; color: var(--text-muted); }
.gw-breadcrumbs .last { color: var(--text-muted); }
@media (max-width: 639px) {
  .single .gw-breadcrumbs .last { display: none; }    /* hide the long post title on phones (articles only) */
  .single .gw-breadcrumbs .separator:nth-last-child(2) { display: none; }
}

/* Comments list */
.comments-title, .comment-reply-title { font-size: 22px; text-transform: uppercase; margin: 0 0 14px; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.comment-list .children { list-style: none; margin: 10px 0 0 24px; padding: 0; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; }
.comment-content p { margin: 0 0 10px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-sub); }
.comment-form p { margin: 0 0 14px; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--text-muted); }
.no-posts-box { padding: 40px 0; color: var(--text-sub); }

/* WordPress core alignment / caption classes */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--text-muted); }
.sticky, .bypostauthor { }

/* Author box (end of articles) */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 32px 0 0; padding: 18px 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.author-box-avatar { flex: 0 0 64px; width: 64px; height: 64px; }
.author-box-avatar img { display: block; width: 64px !important; height: 64px !important; max-width: none; border-radius: 50%; object-fit: cover; }
.author-box-body { flex: 1 1 auto; min-width: 0; }
.author-box-body p { margin: 0; }
.author-box-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-color); }
.author-box-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.author-box-name a { color: var(--heading-color); }
.author-box-bio { margin-top: 6px !important; font-size: 15px; line-height: 1.6; color: var(--text-sub); }
.author-box-links { margin-top: 8px !important; font-size: 14px; }
.author-box-links a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }

/* Links inside running text are always underlined (accessibility: not colour-only) */
.single-post-byline a, .footer-about-text a, .archive-description a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(237, 234, 228, .35); }

@media (max-width: 639px) { .author-box { flex-direction: column; } }

/* Post tags (end of article) */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--border-color); }
.post-tags-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.post-tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.post-tags-list a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px;
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-main);
}
.post-tags-list a::before { content: "#"; margin-right: 2px; color: var(--accent-color); }
.post-tags-list a:hover { border-color: var(--accent-color); color: var(--accent-color); }


/* ==========================================================================
   Jetpack Subscribe form (added by Jetpack at the end of posts):
   dark styling to match the site
   ========================================================================== */
.wp-block-jetpack-subscriptions { margin: 32px 0 0 !important; }
.wp-block-jetpack-subscriptions form,
.wp-block-jetpack-subscriptions__form-elements { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.wp-block-jetpack-subscriptions form:has(.wp-block-jetpack-subscriptions__form-elements) { display: block; }
.wp-block-jetpack-subscriptions p { margin: 0 !important; }
.wp-block-jetpack-subscriptions #subscribe-email,
.wp-block-jetpack-subscriptions p:first-of-type { flex: 1 1 220px; min-width: 0; }
.wp-block-jetpack-subscriptions input[type="email"],
.wp-block-jetpack-subscriptions input[type="text"] {
  width: 100% !important; min-height: 48px; padding: 0 14px !important; margin: 0 !important;
  font: inherit !important; font-size: 16px !important; color: var(--text-main) !important;
  background: var(--surface-color) !important; border: 1px solid var(--border-color) !important; border-radius: 10px !important;
}
.wp-block-jetpack-subscriptions input:focus { outline: 2px solid var(--accent-color); outline-offset: 1px; }
.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-subscriptions .wp-block-button__link {
  min-height: 48px; padding: 0 22px !important; margin: 0 !important; cursor: pointer;
  font: inherit !important; font-size: 15px !important; font-weight: 700 !important; color: #FFFFFF !important;
  background: var(--brand-gradient) !important; border: 0 !important; border-radius: 10px !important; white-space: nowrap;
}
@media (max-width: 479px) {
  .wp-block-jetpack-subscriptions p, .wp-block-jetpack-subscriptions button { flex: 1 1 100%; width: 100%; }
}

/* ==========================================================================
   Share buttons (single posts)
   ========================================================================== */
.gw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.gw-share-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.gw-share-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gw-share-list li { margin: 0; }
.gw-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 10px; margin: 0;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--text-main);
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 999px;
  cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s;
}
.gw-share-btn svg { flex: 0 0 18px; width: 18px; height: 18px; }
.gw-share-btn .gw-share-name { white-space: nowrap; }
.gw-share-btn:hover, .gw-share-btn:focus-visible { color: #FFFFFF; border-color: transparent; }
.gw-share-whatsapp:hover, .gw-share-whatsapp:focus-visible { background: #1FA855; }
.gw-share-facebook:hover, .gw-share-facebook:focus-visible { background: #1877F2; }
.gw-share-x:hover, .gw-share-x:focus-visible { background: #000000; border-color: #3A3F48; }
.gw-share-telegram:hover, .gw-share-telegram:focus-visible { background: #229ED9; }
.gw-share-reddit:hover, .gw-share-reddit:focus-visible { background: #FF4500; }
.gw-share-copy:hover, .gw-share-copy:focus-visible, .gw-share-copy.is-copied { background: var(--brand-gradient); }
.gw-share--top { margin-top: 14px; }
.gw-share--bottom { margin: 28px 0 0; padding: 18px 20px; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius); }
.gw-share--bottom .gw-share-label { width: 100%; color: var(--text-main); font-size: 13px; }
.gw-share--bottom .gw-share-btn { padding: 0 14px; background: var(--bg-color); }
@media (max-width: 479px) {
  .gw-share--bottom .gw-share-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .gw-share--bottom { padding: 16px 14px; }
  .gw-share--bottom .gw-share-btn { width: 100%; gap: 6px; padding: 0 6px; font-size: 13px; }
  .gw-share--bottom .gw-share-list { gap: 6px; }
}

/* ==========================================================================
   Mobile tap targets & legibility (48px-friendly touch areas, 13px+ small text)
   ========================================================================== */
@media (max-width: 899px) {
  .social-icon-link { width: 44px; height: 44px; }
  .footer-nav ul { gap: 0 20px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .footer-disclaimer { font-size: 13px; }
  .post-tags-list a { min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .gw-share-btn { min-width: 44px; height: 44px; }
  .gw-breadcrumbs { font-size: 14px; line-height: 2.2; }
  .gw-breadcrumbs a { display: inline-block; padding: 6px 0; }
  .single-post-byline { font-size: 15px; line-height: 2; }
  .section-header .see-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .explore-tile-link { font-size: 13px; }
  .post-card-meta { font-size: 13px; }
  .cat-pill a { display: inline-flex; align-items: center; min-height: 32px; }
  .author-box-links a { display: inline-block; padding: 8px 0; }
}

/* ==========================================================================
   v2.3 — Homepage sections (numbered headers, latest grid, start here, timeline)
   ========================================================================== */
.section-header h2 { display: flex; align-items: baseline; gap: 10px; }
.section-num {
  font-family: var(--font-display);
  font-size: .8em;
  font-weight: 800;
  letter-spacing: .02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 2px;
}
.section-note { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* 01 Latest guides */
.home-latest { margin-top: 8px; }
.post-card-excerpt { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-sub); }
.posts-grid--four .post-card-title { font-size: 19px; }
@media (max-width: 639px) {
  .post-card-excerpt { display: none; }
}
@media (min-width: 1200px) {
  .posts-grid--four { grid-template-columns: repeat(4, 1fr); }
}

/* 02 Browse by topic: post counts */
.explore-tile-count { font-size: 12px; font-weight: 600; color: var(--text-sub); margin: 2px 0 2px; }

/* 03 Start here */
.start-here { margin-bottom: 40px; }
.start-here-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: none; }
.start-here-link {
  display: flex; align-items: stretch; height: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.start-here-link:hover { border-color: rgba(255, 122, 102, .55); color: inherit; }
.start-here-thumb { flex: 0 0 38%; background: var(--media-bg); min-height: 88px; }
.start-here-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.start-here-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; min-width: 0; }
.start-here-step { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-color); }
.start-here-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--heading-color); }
@media (min-width: 640px) { .start-here-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .start-here-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .start-here-link { flex-direction: column; }
  .start-here-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .start-here-text { justify-content: flex-start; padding: 14px 16px 16px; }
}

/* 04 Timeline: vertical on phones, horizontal on desktop */
.timeline-section { margin-bottom: 40px; }
.gw-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.gw-timeline-item { position: relative; padding: 0 0 18px 26px; display: flex; flex-direction: column; }
.gw-timeline-item::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--border-color);
}
.gw-timeline-item:last-child::before { display: none; }
.gw-timeline-item.is-done::before { background: var(--brand-pink); }
.gw-timeline-dot {
  position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-color); border: 2px solid var(--border-color);
}
.gw-timeline-item.is-done .gw-timeline-dot { background: var(--brand-pink); border-color: var(--brand-pink); }
.gw-timeline-item.is-next .gw-timeline-dot { border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(255, 122, 102, .2); }
.gw-timeline-date { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.gw-timeline-item.is-done .gw-timeline-date { color: var(--text-sub); }
.gw-timeline-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--text-main); }
a.gw-timeline-title { text-decoration: underline; text-decoration-color: rgba(255, 122, 102, .5); text-underline-offset: 3px; }
a.gw-timeline-title:hover { color: var(--accent-color); }
.gw-timeline-next {
  align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #FFFFFF; background: var(--brand-gradient);
}
@media (min-width: 900px) {
  .gw-timeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 12px; padding: 0; }
  .gw-timeline-item { padding: 26px 0 0; text-align: left; }
  .gw-timeline-item::before { left: 6px; right: -12px; top: 5px; bottom: auto; width: auto; height: 2px; }
  .gw-timeline-item:last-child::before { display: none; }
  .gw-timeline-dot { top: 0; }
  .gw-timeline-title { font-size: 15px; }
}

/* ==========================================================================
   v2.3 — Card grids inside posts: [gw_cards] / [gw_card]
   ========================================================================== */
.gw-cards { margin: 0 0 30px; }
.gw-cards-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.gw-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  font: 600 14px/1 var(--font-body); color: var(--text-sub);
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 999px; cursor: pointer;
}
.gw-chip:hover { color: var(--heading-color); border-color: rgba(255, 122, 102, .55); }
.gw-chip.is-active { color: #FFFFFF; border-color: transparent; background: var(--brand-gradient); }
.gw-chip-count { font-size: 12px; opacity: .75; }

.entry-content .gw-cards-grid,
.gw-cards-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.entry-content .gw-card { margin: 0; }
.gw-card::marker { content: none; }
.gw-card[hidden] { display: none; }

.entry-content a.gw-card-inner,
.gw-card-inner {
  display: flex; flex-direction: column; height: 100%;
  color: inherit; text-decoration: none;
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
a.gw-card-inner:hover { border-color: rgba(255, 122, 102, .55); color: inherit; transform: translateY(-2px); }
.gw-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--media-bg); overflow: hidden; }
.gw-cards--portrait .gw-card-media { aspect-ratio: 3 / 4; }
.entry-content .gw-card-media img,
.gw-card-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }
.gw-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.gw-card-type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-color); }
.gw-card-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--heading-color); }
.gw-card-meta { font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.gw-card-text { font-size: 14px; line-height: 1.5; color: var(--text-sub); }

.gw-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
  color: #FFFFFF; background: rgba(14, 17, 22, .82); border: 1px solid rgba(255, 255, 255, .14);
}
.gw-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gw-badge--confirmed { color: #4ADE80; }
.gw-badge--shown { color: #5EC8F2; }
.gw-badge--reported { color: #F5B544; }
.gw-badge--not-confirmed { color: #B4BDC9; }

/* Layouts */
.gw-cards--portrait .gw-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gw-cards--wide .gw-cards-grid { grid-template-columns: 1fr; }
.gw-cards--list .gw-cards-grid { grid-template-columns: 1fr; }
.gw-cards--list .gw-card-inner { flex-direction: row; }
.gw-cards--list .gw-card-media { flex: 0 0 34%; aspect-ratio: auto; min-height: 110px; }
.gw-cards--portrait .gw-card-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 479px) {
  .gw-cards--portrait .gw-card-title { font-size: 18px; }
  .gw-cards--portrait .gw-card-body { padding: 10px 10px 12px; }
  .gw-cards--portrait .gw-card-text { font-size: 13px; -webkit-line-clamp: 3; }
}
@media (min-width: 640px) {
  .gw-cards--portrait .gw-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gw-cards--wide .gw-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gw-cards--list .gw-card-media { flex-basis: 30%; min-height: 130px; }
}
@media (prefers-reduced-motion: reduce) { a.gw-card-inner:hover { transform: none; } }
.gw-card-noimg {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: .02em; color: rgba(255, 255, 255, .9);
  background: radial-gradient(120% 90% at 20% 10%, rgba(255, 122, 102, .35), transparent 60%), linear-gradient(160deg, #3A1030 0%, #171B22 70%);
}

/* Character previews (homepage + Characters category) */
.gw-cards--preview .gw-card-body { padding: 10px 12px 12px; }
.gw-cards--preview .gw-card-title { font-size: 19px; }
@media (min-width: 900px) {
  .gw-cards--home .gw-cards-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gw-cards--archive .gw-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .gw-cards--archive .gw-cards-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.characters-section .gw-cards { margin-bottom: 40px; }
.archive-hub { margin-bottom: 36px; }
.archive-hub-cta { margin: 18px 0 0; }
.archive-hub-cta .btn-primary { display: inline-flex; }

/* v2.5: full grid on the Characters category page */
@media (min-width: 900px) {
  .archive-hub .gw-cards--portrait .gw-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1300px) {
  .archive-hub .gw-cards--portrait .gw-cards-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ==========================================================================
   v2.6 — Light mode (toggle in the header; choice is remembered)
   ========================================================================== */
html[data-theme="light"] {
  --bg-color: #F5F3EF;
  --surface-color: #FFFFFF;
  --surface-hover: #F1EEE9;
  --border-color: #E2DDD5;
  --text-main: #1B1E24;
  --text-sub: #4B5361;
  --text-muted: #687180;
  --accent-color: #C4245A;
  --heading-color: #12141A;
  --box-color: #FBF2EF;
  --media-bg: #E7E3DD;
  --footer-bg: #ECE8E2;
  --stripe: rgba(0, 0, 0, .025);
  color-scheme: light;
}
html[data-theme="light"] .single-post-byline a,
html[data-theme="light"] .footer-about-text a,
html[data-theme="light"] .archive-description a { text-decoration-color: rgba(27, 30, 36, .35); }
html[data-theme="light"] .gw-badge { background: rgba(255, 255, 255, .92); border-color: rgba(0, 0, 0, .08); }
html[data-theme="light"] .gw-badge--confirmed { color: #15803D; }
html[data-theme="light"] .gw-badge--shown { color: #0369A1; }
html[data-theme="light"] .gw-badge--reported { color: #B45309; }
html[data-theme="light"] .gw-badge--not-confirmed { color: #4B5563; }

/* Logo: white logo in dark mode, black logo in light mode */
.custom-logo-link .logo-light { display: none; }
html[data-theme="light"] .custom-logo-link .custom-logo { display: none; }
html[data-theme="light"] .custom-logo-link .logo-light { display: block; }
html[data-theme="light"] .logo-text-lockup { color: var(--heading-color); }

/* Logo breathing space */
.header-main { min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
.custom-logo-link { padding: 4px 0; }
.custom-logo-link img { max-height: 40px; }
@media (max-width: 899px) {
  .header-main { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .custom-logo-link img { max-height: 34px; }
}

/* Theme toggle button */
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px;
  color: var(--text-main); cursor: pointer;
}
.theme-toggle-btn:hover { color: var(--accent-color); border-color: var(--accent-color); }
.theme-toggle-btn svg { width: 18px; height: 18px; }
.theme-toggle-btn .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle-btn .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle-btn .icon-moon { display: none; }
@media (max-width: 899px) { .theme-toggle-btn { width: 44px; height: 44px; } }
