/*
Theme Name: GG Guides
Theme URI: https://ggguides.com
Author: Antigravity
Author URI: https://ggguides.com
Description: A simple, ultra-fast, lightweight, and fully SEO-optimized WordPress theme designed for gaming guides and walkthrough websites. Optimized for 100/100 Lighthouse Performance, 0.00 CLS layout stability, and WCAG AA accessibility contrast compliance.
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, custom-menu, featured-images, grid-layout, sticky-post, theme-options, translation-ready, one-column, two-columns, three-columns, four-columns, right-sidebar
Text Domain: ggguides
*/

/* ==========================================================================
   1. CSS Custom Properties & Accessible WCAG Palette
   ========================================================================== */
:root {
  --gg-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --gg-bg: #f4f7f9;
  --gg-card-bg: #ffffff;
  --gg-text: #111827;           /* High contrast 14:1 */
  --gg-text-muted: #4b5563;     /* WCAG AA Compliant > 5.5:1 contrast */
  --gg-link: #c2410c;           /* Deep orange contrast > 4.6:1 */
  --gg-link-hover: #9a3412;     /* Hover contrast > 6.0:1 */
  --gg-accent: #c2410c;
  --gg-border-color: #e2e8f0;
  --gg-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --gg-container-max: 1240px;
}

/* ==========================================================================
   2. Core & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Dynamic Font Sizes Controlled via Body Classes */
body.gg-font-small { font-size: 15px; }
body.gg-font-medium { font-size: 16px; }
body.gg-font-large { font-size: 18px; }

body {
  font-family: var(--gg-font-primary);
  background-color: var(--gg-bg);
  color: var(--gg-text);
  line-height: 1.7;
  letter-spacing: -0.011em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gg-link);
  text-decoration: underline; /* WCAG Accessible Link Distinction */
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--gg-link-hover);
}

/* Images & Layout Stability (CLS 0.00 Prevention) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img:not([src]),
img[src=""],
img[src="#"] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gg-text);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   3. Container & Layout
   ========================================================================== */
.gg-container {
  width: 100%;
  max-width: var(--gg-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.gg-layout-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

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

.gg-main-content.no-sidebar {
  width: 100%;
}

/* Sidebar & Sticky Option */
.gg-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.gg-sidebar.is-sticky {
  position: sticky;
  top: 25px;
  align-self: flex-start;
}

/* ==========================================================================
   4. Header & Navigation Bar
   ========================================================================== */
.gg-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gg-border-color);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.gg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gg-logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gg-accent);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.gg-logo img {
  max-height: 48px;
  width: auto;
}

/* Navigation Menu */
.gg-main-nav ul {
  display: flex;
  list-style: none !important;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.gg-main-nav li {
  list-style: none !important;
}

.gg-main-nav a {
  color: var(--gg-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.gg-main-nav a:hover {
  color: var(--gg-link);
}

/* Search Form Header */
.gg-search-form {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.gg-search-form input[type="search"] {
  width: 100%;
  padding: 10px 42px 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--gg-border-color);
  border-radius: 6px;
  background-color: #fafafa;
  color: var(--gg-text);
  outline: none;
  transition: all 0.2s ease;
}

.gg-search-form input[type="search"]:focus {
  background-color: #ffffff;
  border-color: var(--gg-accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.gg-search-form button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gg-accent);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gg-search-form button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   5. Breadcrumb Section (Accessible <li> Only with CSS Pseudo Separator)
   ========================================================================== */
.gg-breadcrumb-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gg-border-color);
  padding: 10px 0;
  font-size: 0.875rem;
  color: var(--gg-text-muted);
}

.gg-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: none !important;
}

.gg-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gg-breadcrumbs li::marker {
  content: "" !important;
  display: none !important;
}

/* CSS Pseudo-Element Separator for 100% WCAG List Compliance */
.gg-breadcrumbs li + li::before {
  content: "•";
  margin: 0 8px;
  color: var(--gg-text-muted);
  user-select: none;
}

.gg-breadcrumbs.sep-slash li + li::before { content: "/"; }
.gg-breadcrumbs.sep-arrow li + li::before { content: ">"; }
.gg-breadcrumbs.sep-dash li + li::before  { content: "-"; }

.gg-breadcrumbs a {
  color: var(--gg-link);
  font-weight: 500;
  text-decoration: underline;
}

.gg-breadcrumbs a:hover {
  color: var(--gg-link-hover);
}

.gg-breadcrumbs .current {
  color: var(--gg-text-muted);
  font-weight: 500;
  word-break: break-word;
}

/* ==========================================================================
   6. Homepage & Archive Post Grid (Fixed Bounds for CLS 0.00)
   ========================================================================== */
.gg-posts-grid {
  display: grid;
  gap: 24px;
}

/* Dynamic Columns via Body Classes */
body.gg-cols-2 .gg-posts-grid, .gg-posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
body.gg-cols-3 .gg-posts-grid, .gg-posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
body.gg-cols-4 .gg-posts-grid, .gg-posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.gg-post-card {
  background-color: var(--gg-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--gg-shadow);
  border: 1px solid var(--gg-border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gg-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Fixed Layout Reservation to Prevent CLS Shift */
.gg-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #edf2f7;
  position: relative;
  display: block;
  contain: layout size;
}

.gg-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  transition: transform 0.3s ease;
}

.gg-post-card:hover .gg-card-thumb img {
  transform: scale(1.04);
}

.gg-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gg-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gg-accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.gg-card-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.gg-card-title a {
  color: var(--gg-text);
  text-decoration: none;
}

.gg-card-title a:hover {
  color: var(--gg-link);
}

.gg-card-excerpt {
  font-size: 0.9rem;
  color: var(--gg-text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.gg-post-meta {
  font-size: 0.8rem;
  color: var(--gg-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.gg-meta-item strong {
  color: var(--gg-text);
  font-weight: 600;
}

.gg-meta-sep {
  color: #cbd5e0;
}

/* Archive Page Header */
.gg-archive-header {
  background-color: var(--gg-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--gg-border-color);
  margin-bottom: 30px;
  box-shadow: var(--gg-shadow);
}

.gg-archive-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.gg-archive-description {
  color: var(--gg-text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   7. Single Post Page & Hero Bounds (CLS 0.00 Reserved Height)
   ========================================================================== */
.gg-single-hero {
  width: 100%;
  height: 480px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 0;
  box-shadow: var(--gg-shadow);
  background-color: #edf2f7;
  contain: layout size;
}

.gg-single-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Elevated Single Post Overlay Card — only when hero image is present */
.gg-single-card {
  background-color: var(--gg-card-bg);
  border-radius: 12px;
  padding: 40px 45px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gg-border-color);
}

/* Hero image present → pull card up to overlap the bottom of the image */
.gg-has-hero .gg-single-card {
  margin-top: -120px;
  z-index: 2;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}

.gg-single-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--gg-border-color);
}

.gg-single-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--gg-text);
}

.gg-single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gg-accent);
  font-weight: 600;
}

.gg-single-meta a {
  color: var(--gg-accent);
  text-decoration: underline;
}

.gg-single-meta span.meta-text {
  color: var(--gg-text-muted);
  font-weight: 400;
}

.gg-single-meta .sep {
  color: #cbd5e0;
}

/* In-Post Article Content Styling & Clean Responsive Images */
.gg-entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gg-text);
}

.gg-entry-content a {
  text-decoration: underline;
}

.gg-entry-content img,
.gg-entry-content figure img,
.gg-entry-content .wp-block-image img,
.gg-entry-content .wp-block-cover img {
  max-width: 100%;
  height: auto !important;
  max-height: none;
  border-radius: 8px;
  display: block;
  margin: 1.5rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: none !important;
}

.gg-entry-content figure,
.gg-entry-content .wp-block-image,
.gg-entry-content .wp-block-media-text {
  margin: 1.75rem 0;
  max-width: 100%;
  text-align: center;
}

.gg-entry-content figcaption {
  font-size: 0.85rem;
  color: var(--gg-text-muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

.gg-entry-content h2 {
  font-size: 1.65rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.gg-entry-content h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.gg-entry-content ul, .gg-entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.gg-entry-content li {
  margin-bottom: 0.5rem;
}

.gg-entry-content blockquote {
  border-left: 4px solid var(--gg-accent);
  padding: 15px 20px;
  background-color: #fff9f5;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #374151;
}

/* In-Content Guide Callout Box (Matching Screenshot Box) */
.gg-guide-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 2rem 0;
}

.gg-guide-box-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gg-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.gg-guide-box-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gg-guide-box-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gg-guide-box-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.gg-guide-box-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gg-text);
  text-decoration: none;
}

.gg-guide-box-link:hover {
  color: var(--gg-link);
}

/* Author Box */
.gg-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: #fafafa;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--gg-border-color);
  margin-top: 35px;
}

.gg-author-avatar img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
}

.gg-author-info h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.gg-author-bio {
  font-size: 0.9rem;
  color: var(--gg-text-muted);
}

/* Post Navigation (Next / Prev) */
.gg-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--gg-border-color);
}

.gg-nav-card {
  flex: 1;
  background-color: #fafafa;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--gg-border-color);
}

.gg-nav-next {
  text-align: right;
}

.gg-nav-card span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gg-text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.gg-nav-card a {
  font-weight: 600;
  color: var(--gg-text);
  display: block;
  text-decoration: none;
}

.gg-nav-card a:hover {
  color: var(--gg-link);
}

/* ==========================================================================
   8. Sidebar Widgets & Featured Post Widget
   ========================================================================== */
.gg-widget {
  background-color: var(--gg-card-bg);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--gg-shadow);
  border: 1px solid var(--gg-border-color);
}

.gg-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gg-accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gg-accent);
}

.gg-widget-desc {
  font-size: 0.9rem;
  color: var(--gg-text-muted);
}

/* Featured Posts Sidebar List */
.gg-featured-widget-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gg-featured-widget-item {
  list-style: none !important;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gg-border-color);
}

.gg-featured-widget-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.gg-featured-widget-item a {
  color: var(--gg-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  text-decoration: none;
}

.gg-featured-widget-item a:hover {
  color: var(--gg-link);
}

/* ==========================================================================
   9. Comments Styling
   ========================================================================== */
.gg-comments-area {
  margin-top: 40px;
  background-color: var(--gg-card-bg);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--gg-border-color);
  box-shadow: var(--gg-shadow);
}

.gg-comments-title {
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.comment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 30px 0 !important;
}

.comment-body {
  padding: 16px 0;
  border-bottom: 1px solid var(--gg-border-color);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.comment-author cite {
  font-style: normal;
  font-weight: 700;
  color: var(--gg-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gg-border-color);
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 0.95rem;
}

.comment-form input[type="submit"],
.gg-btn {
  background-color: var(--gg-accent);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.comment-form input[type="submit"]:hover,
.gg-btn:hover {
  background-color: var(--gg-link-hover);
}

/* ==========================================================================
   10. Footer Styling & Navigation Fix
   ========================================================================== */
.gg-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--gg-border-color);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gg-text-muted);
}

.gg-footer-nav {
  margin-bottom: 15px;
}

.gg-footer-nav ul,
.gg-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 15px 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.gg-footer-nav li,
.gg-footer li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gg-footer a {
  color: var(--gg-text);
  text-decoration: none;
}

.gg-footer a:hover {
  color: var(--gg-link);
}

/* Pagination */
.gg-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gg-pagination .page-numbers {
  padding: 8px 14px;
  background-color: var(--gg-card-bg);
  border: 1px solid var(--gg-border-color);
  border-radius: 6px;
  color: var(--gg-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.gg-pagination .page-numbers.current {
  background-color: var(--gg-accent);
  color: #ffffff;
  border-color: var(--gg-accent);
}

/* 404 Styling */
.gg-404-wrapper {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  background-color: var(--gg-card-bg);
  padding: 50px 30px;
  border-radius: 12px;
  border: 1px solid var(--gg-border-color);
  box-shadow: var(--gg-shadow);
}

.gg-404-code {
  font-size: 5rem;
  color: var(--gg-accent);
  line-height: 1;
  margin-bottom: 10px;
}

.gg-404-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.gg-404-text {
  color: var(--gg-text-muted);
  margin-bottom: 30px;
}

/* ==========================================================================
   11. Mobile Responsiveness (Phone & Tablet)
   ========================================================================== */
@media (max-width: 991px) {
  .gg-layout-wrapper {
    flex-direction: column;
  }
  
  .gg-sidebar {
    width: 100%;
  }

  body.gg-cols-4 .gg-posts-grid,
  body.gg-cols-3 .gg-posts-grid,
  .gg-posts-grid.cols-4,
  .gg-posts-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gg-single-card {
    padding: 25px 20px;
  }

  .gg-has-hero .gg-single-card {
    margin-top: -60px;
  }

  .gg-single-hero {
    height: 380px;
  }

  .gg-single-hero img {
    height: 380px;
  }

  .gg-single-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .gg-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .gg-search-form {
    max-width: 100%;
  }

  .gg-breadcrumbs {
    font-size: 0.8rem;
    gap: 5px;
  }

  body.gg-cols-4 .gg-posts-grid,
  body.gg-cols-3 .gg-posts-grid,
  body.gg-cols-2 .gg-posts-grid,
  .gg-posts-grid.cols-4,
  .gg-posts-grid.cols-3,
  .gg-posts-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .gg-single-card {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .gg-has-hero .gg-single-card {
    margin-top: -30px;
  }

  .gg-single-title {
    font-size: 1.45rem;
  }

  .gg-author-box {
    flex-direction: column;
    text-align: center;
  }

  .gg-post-nav {
    flex-direction: column;
  }

  .gg-footer-nav ul,
  .gg-footer ul {
    gap: 12px;
  }
}

/* ==========================================================================
   Table of Contents (TOC)
   ========================================================================== */
.gg-toc-box {
  background: var(--gg-card-bg);
  border: 2px solid var(--gg-border-color);
  border-left: 4px solid var(--gg-accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  max-width: 680px;
}

.gg-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gg-toc-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gg-text);
}

.gg-toc-list,
.gg-entry-content .gg-toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gg-toc-item,
.gg-entry-content .gg-toc-item {
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.gg-toc-item::marker {
  content: "" !important;
  display: none !important;
}

.gg-toc-item a {
  text-decoration: none;
  color: var(--gg-link);
  font-size: 0.93rem;
  line-height: 1.5;
  transition: color 0.15s ease;
  display: block;
}

.gg-toc-item a:hover {
  color: var(--gg-link-hover);
  text-decoration: underline;
}

/* Indent by heading level */
.gg-toc-item.level-h2 { padding-left: 0 !important; }
.gg-toc-item.level-h3 { padding-left: 16px !important; font-size: 0.88rem; }
.gg-toc-item.level-h4 { padding-left: 32px !important; font-size: 0.84rem; color: var(--gg-text-muted); }

.gg-toc-item.level-h2 > a::before { content: '\2014\00a0'; opacity: 0.4; }
.gg-toc-item.level-h3 > a::before { content: '\203A\00a0'; }
.gg-toc-item.level-h4 > a::before { content: '\00b7\00a0'; }

/* ==========================================================================
   HTML Sitemap Shortcode
   ========================================================================== */
.gg-html-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

.gg-sitemap-section {
  background: var(--gg-card-bg);
  border: 1px solid var(--gg-border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--gg-shadow);
}

.gg-sitemap-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gg-accent);
}

.gg-sitemap-cat-title a {
  color: var(--gg-text);
  text-decoration: none;
}

.gg-sitemap-cat-title a:hover {
  color: var(--gg-link);
}

.gg-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gg-sitemap-list li::before {
  content: '\203A\00a0';
  color: var(--gg-accent);
  font-weight: 700;
}

.gg-sitemap-list a {
  color: var(--gg-link);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.gg-sitemap-list a:hover {
  color: var(--gg-link-hover);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .gg-html-sitemap {
    grid-template-columns: 1fr;
  }
  .gg-toc-box {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   FAQ Section & Accordion Component (Cross-Browser Optimized)
   ========================================================================== */
.gg-faq-section,
.gg-entry-content .gg-faq-section {
  margin: 45px 0 35px;
  padding-top: 30px;
  border-top: 2px solid var(--gg-border-color);
}

.gg-faq-title,
.gg-entry-content .gg-faq-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--gg-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-faq-title::before,
.gg-entry-content .gg-faq-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--gg-accent);
  border-radius: 2px;
}

.gg-faq-list,
.gg-entry-content .gg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.gg-faq-item,
.gg-entry-content .gg-faq-item {
  background: var(--gg-card-bg);
  border: 1px solid var(--gg-border-color);
  border-left: 4px solid var(--gg-border-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gg-faq-item:hover {
  border-color: #cbd5e1;
  border-left-color: var(--gg-accent);
}

.gg-faq-item[open] {
  border-color: var(--gg-border-color);
  border-left: 4px solid var(--gg-accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Remove default disclosure triangle across ALL browsers (Firefox, Chrome, Safari) */
.gg-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gg-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}

.gg-faq-question::-webkit-details-marker,
.gg-faq-question::marker {
  display: none !important;
  content: "" !important;
}

.gg-faq-question:hover {
  color: var(--gg-link);
}

.gg-faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gg-accent);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 14px;
  line-height: 1;
}

.gg-faq-item[open] .gg-faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--gg-accent);
  color: #ffffff;
}

.gg-faq-answer {
  padding: 4px 22px 20px 22px;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.gg-faq-answer p {
  margin: 12px 0 0 0;
}

@media (max-width: 600px) {
  .gg-faq-question {
    padding: 14px 16px;
    font-size: 0.98rem;
  }
  .gg-faq-answer {
    padding: 2px 16px 16px 16px;
    font-size: 0.93rem;
  }
}

