/* ==========================================================================
   GTApt Magazine - Premium single article (v2.7.0)
   Loaded only on single posts. Reuses theme vars (--bg-*, --text-*,
   --accent-*, --border-color) and works with [data-theme="light"].
   ========================================================================== */

body.gtapt-article {
  --ga-violet: #8b5cf6;
  --ga-magenta: #d946ef;
  --ga-pink: #ec4899;
  --ga-grad: linear-gradient(90deg, #8b5cf6 0%, #d946ef 55%, #ec4899 100%);
  --ga-grad-v: linear-gradient(180deg, #ec4899 0%, #8b5cf6 100%);
  --ga-glass: rgba(24, 21, 38, 0.62);
  --ga-glass-strong: rgba(24, 21, 38, 0.82);
  --ga-glass-border: rgba(255, 255, 255, 0.075);
  --ga-soft: rgba(255, 255, 255, 0.045);
  --ga-soft-hover: rgba(255, 255, 255, 0.08);
  --ga-shadow: 0 14px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --ga-radius: 16px;
  --ga-sticky-top: 92px;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(1200px 600px at 85% 30%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(900px 500px at 5% 80%, rgba(236, 72, 153, 0.07), transparent 60%);
  background-attachment: fixed;
}

html[data-theme="light"] body.gtapt-article {
  --ga-violet: #7c3aed;
  --ga-magenta: #c026d3;
  --ga-pink: #db2777;
  --ga-grad: linear-gradient(90deg, #7c3aed 0%, #c026d3 55%, #db2777 100%);
  --ga-grad-v: linear-gradient(180deg, #db2777 0%, #7c3aed 100%);
  --ga-glass: rgba(255, 255, 255, 0.86);
  --ga-glass-strong: rgba(255, 255, 255, 0.95);
  --ga-glass-border: rgba(124, 58, 237, 0.13);
  --ga-soft: rgba(124, 58, 237, 0.05);
  --ga-soft-hover: rgba(124, 58, 237, 0.10);
  --ga-shadow: 0 12px 34px rgba(40, 20, 80, 0.08);
  background-image:
    radial-gradient(1200px 600px at 85% 30%, rgba(124, 58, 237, 0.07), transparent 60%),
    radial-gradient(900px 500px at 5% 80%, rgba(219, 39, 119, 0.05), transparent 60%);
}

/* The theme footer adds a big top margin; tighten it on articles */
body.gtapt-article .site-footer { margin-top: 56px; }

/* --------------------------------------------------------------------------
   Reading progress
   ----------------------------------------------------------------------- */
.gtapt-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100000;
  pointer-events: none;
}
.gtapt-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ga-grad);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.65);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}
body.admin-bar .gtapt-progress { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .gtapt-progress { top: 46px; }
}

/* --------------------------------------------------------------------------
   Glass card primitive
   ----------------------------------------------------------------------- */
.gtapt-article-page .gtapt-card {
  background: var(--ga-glass);
  border: 1px solid var(--ga-glass-border);
  border-radius: var(--ga-radius);
  box-shadow: var(--ga-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.gtapt-article-page .gtapt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.gtapt-article-page .gtapt-section-title::before {
  content: '';
  flex: 0 0 4px;
  height: 1.1em;
  border-radius: 4px;
  background: var(--ga-grad-v);
}

.gtapt-article-page .gtapt-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ga-pink);
  background: rgba(236, 72, 153, 0.10);
  border: 1px solid rgba(236, 72, 153, 0.28);
  white-space: nowrap;
}

.gtapt-article-page .gtapt-btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--ga-grad);
  color: #fff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.gtapt-article-page .gtapt-btn-gradient:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.38);
}

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.gtapt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0c0a14;
  color: #fff;
}
.gtapt-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
  transform: scale(1.02);
}
.gtapt-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 9, 16, 0.86) 22%, rgba(10, 9, 16, 0.45) 55%, rgba(10, 9, 16, 0.35) 100%),
    linear-gradient(95deg, rgba(10, 9, 16, 0.88) 0%, rgba(10, 9, 16, 0.55) 45%, rgba(10, 9, 16, 0.10) 80%);
}
/* Light mode: keep the cinematic dark image for legibility, no fade to white */
html[data-theme="light"] .gtapt-hero__overlay {
  background:
    linear-gradient(to top, rgba(12, 10, 22, 0.92) 0%, rgba(12, 10, 22, 0.62) 40%, rgba(12, 10, 22, 0.30) 100%),
    linear-gradient(95deg, rgba(12, 10, 22, 0.80) 0%, rgba(12, 10, 22, 0.45) 45%, rgba(12, 10, 22, 0.05) 80%);
}

/* Fallback when there is no image: Vice City sunset gradient */
.gtapt-hero.no-image {
  background:
    radial-gradient(420px 420px at 82% 38%, rgba(255, 170, 90, 0.55), rgba(236, 72, 153, 0.40) 45%, transparent 70%),
    radial-gradient(700px 400px at 15% 90%, rgba(139, 92, 246, 0.55), transparent 65%),
    linear-gradient(135deg, #1b0c33 0%, #0e0b18 55%, #2a0b27 100%);
}
.gtapt-hero.no-image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: -1;
  opacity: 0.35;
  background:
    repeating-linear-gradient(to bottom, rgba(236, 72, 153, 0.55) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(to right, rgba(139, 92, 246, 0.45) 0 1px, transparent 1px 60px);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 40%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 40%, transparent 100%);
  transform: perspective(400px) rotateX(55deg);
  transform-origin: bottom;
}
.gtapt-hero.no-image .gtapt-hero__overlay {
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 9, 16, 0.55) 25%, transparent 60%);
}
html[data-theme="light"] .gtapt-hero.no-image .gtapt-hero__overlay {
  background: linear-gradient(to top, rgba(12, 10, 22, 0.55) 0%, transparent 60%);
}

.gtapt-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 500px;
  padding-top: 22px;
  padding-bottom: 116px;
}

.gtapt-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}
.gtapt-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.gtapt-breadcrumb li + li::before {
  content: '\203A';
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.05em;
}
.gtapt-breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.gtapt-breadcrumb a:hover { color: #fff; }
.gtapt-breadcrumb [aria-current] span {
  display: inline-block;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: rgba(255, 255, 255, 0.55);
}

.gtapt-hero__content { max-width: 880px; }

.gtapt-article-page .gtapt-pill {
  display: inline-block;
  padding: 6px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--ga-grad);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}
.gtapt-article-page .gtapt-pill:hover { color: #fff; filter: brightness(1.1); }

.gtapt-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.gtapt-hero__subtitle {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
  line-height: 1.55;
}
.gtapt-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}
.gtapt-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.gtapt-meta-author:hover { color: #fff; }
.gtapt-meta-author img,
.gtapt-meta-author__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ga-grad);
  object-fit: cover;
}
.gtapt-meta-author__text { display: flex; flex-direction: column; line-height: 1.2; }
.gtapt-meta-author__text strong { font-size: 0.95rem; }
.gtapt-meta-author__text small { color: rgba(255, 255, 255, 0.62); font-size: 0.78rem; }
.gtapt-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.gtapt-meta-item svg { opacity: 0.85; }
.gtapt-meta-bubble {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.gtapt-meta-bubble:hover { color: #fff; border-color: var(--ga-pink); background: rgba(236, 72, 153, 0.22); }

/* --------------------------------------------------------------------------
   Layout 68 / 32
   ----------------------------------------------------------------------- */
.gtapt-article-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: -84px;
}
.gtapt-article-main { min-width: 0; }

/* --------------------------------------------------------------------------
   Article card + share rail
   ----------------------------------------------------------------------- */
.gtapt-article-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 36px 34px 18px;
}
.gtapt-share {
  position: sticky;
  top: calc(var(--ga-sticky-top) + 8px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gtapt-share__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.gtapt-share__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--ga-glass-border);
  background: var(--ga-soft);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gtapt-share__btn:hover,
.gtapt-share__btn:focus-visible {
  color: #fff;
  background: var(--ga-grad);
  border-color: transparent;
  transform: translateY(-2px);
}
.gtapt-share__btn.is-copied { color: #fff; background: #16a34a; border-color: transparent; }
.gtapt-share__tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--ga-grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.gtapt-share__tip:empty { display: none; }
.gtapt-share__btn.is-copied .gtapt-share__tip { opacity: 1; }

.gtapt-article-body { min-width: 0; }

/* --------------------------------------------------------------------------
   Key points
   ----------------------------------------------------------------------- */
.gtapt-article-page .gtapt-keypoints {
  margin: 0 0 28px;
  padding: 20px 22px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(236, 72, 153, 0.26);
}
.gtapt-article-page .gtapt-keypoints__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gtapt-keypoints__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ga-grad);
  color: #fff;
}
.gtapt-keypoints__badge svg { width: 15px; height: 15px; }
.gtapt-article-page .gtapt-keypoints__list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.gtapt-article-page .gtapt-keypoints__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 9px;
  padding: 0 !important;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.5;
}
.gtapt-article-page .gtapt-keypoints__list li::before { display: none !important; }
.gtapt-keypoints__list li svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 2px;
  border-radius: 50%;
  color: #fff;
  background: var(--ga-pink);
}

/* --------------------------------------------------------------------------
   Article typography
   ----------------------------------------------------------------------- */
.gtapt-article-page .gtapt-prose {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--text-secondary);
  overflow-wrap: break-word;
}
.gtapt-article-page .gtapt-prose > *:first-child { margin-top: 0; }
.gtapt-article-page .gtapt-prose p { margin: 0 0 1.3em; }
.gtapt-article-page .gtapt-prose strong { color: var(--text-primary); }
.gtapt-article-page .gtapt-prose a {
  color: var(--ga-pink);
  text-decoration: underline;
  text-decoration-color: rgba(236, 72, 153, 0.4);
  text-underline-offset: 3px;
}
.gtapt-article-page .gtapt-prose a:hover { text-decoration-color: currentColor; }

.gtapt-article-page .gtapt-prose h2,
.gtapt-article-page .gtapt-prose h3,
.gtapt-article-page .gtapt-prose h4 {
  color: var(--text-primary);
  line-height: 1.25;
  scroll-margin-top: 110px;
}
.gtapt-article-page .gtapt-prose h2 {
  position: relative;
  margin: 2em 0 0.8em;
  padding-left: 18px;
  font-size: 1.6rem;
}
.gtapt-article-page .gtapt-prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 5px;
  border-radius: 5px;
  background: var(--ga-grad-v);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
}
.gtapt-article-page .gtapt-prose h3 { margin: 1.7em 0 0.6em; font-size: 1.25rem; }
.gtapt-article-page .gtapt-prose h4 { margin: 1.5em 0 0.5em; font-size: 1.08rem; }

.gtapt-article-page .gtapt-prose img {
  height: auto;
  max-width: 100%;
  margin: 1.4em 0;
  border-radius: 14px;
}
.gtapt-article-page .gtapt-prose figure,
.gtapt-article-page .gtapt-prose .wp-caption { margin: 1.8em 0; max-width: 100%; }
.gtapt-article-page .gtapt-prose figure img,
.gtapt-article-page .gtapt-prose .wp-caption img { margin: 0; }
.gtapt-article-page .gtapt-prose figcaption,
.gtapt-article-page .gtapt-prose .wp-caption-text,
.gtapt-article-page .gtapt-prose .wp-element-caption {
  margin-top: 0.65em;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* Pull quote */
.gtapt-article-page .gtapt-prose blockquote,
.gtapt-article-page .gtapt-prose .wp-block-pullquote {
  position: relative;
  margin: 2.2em 0;
  padding: 26px 28px 22px 78px;
  border: 1px solid var(--ga-glass-border);
  border-left: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.07));
  color: var(--text-primary);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}
.gtapt-article-page .gtapt-prose .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.gtapt-article-page .gtapt-prose .wp-block-pullquote blockquote::before { display: none; }
.gtapt-article-page .gtapt-prose blockquote::before,
.gtapt-article-page .gtapt-prose .wp-block-pullquote::before {
  content: '\201C';
  position: absolute;
  left: 18px;
  top: 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.2rem;
  font-style: normal;
  line-height: 1;
  background: var(--ga-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gtapt-article-page .gtapt-prose blockquote p:last-child { margin-bottom: 0; }
.gtapt-article-page .gtapt-prose blockquote cite,
.gtapt-article-page .gtapt-prose .wp-block-pullquote cite {
  display: block;
  margin-top: 0.8em;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
}

/* Lists */
.gtapt-article-page .gtapt-prose ul,
.gtapt-article-page .gtapt-prose ol {
  margin: 0 0 1.4em;
  padding: 0;
}
.gtapt-article-page .gtapt-prose ul { list-style: none; }
.gtapt-article-page .gtapt-prose ul > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}
.gtapt-article-page .gtapt-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ga-grad);
}
.gtapt-article-page .gtapt-prose ol {
  list-style: decimal;
  padding-left: 1.5em;
}
.gtapt-article-page .gtapt-prose ol > li { margin-bottom: 0.5em; padding-left: 0.3em; }
.gtapt-article-page .gtapt-prose ol > li::marker { color: var(--ga-pink); font-weight: 800; }

/* Embeds (16:9) */
.gtapt-article-page .gtapt-prose iframe { max-width: 100%; border: 0; }
.gtapt-article-page .gtapt-prose :is(iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="vimeo"], iframe[src*="twitch"], iframe[src*="dailymotion"], iframe[src*="streamable"], video):not(.wp-has-aspect-ratio iframe) {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 1.6em 0;
  border-radius: 14px;
  background: #000;
}
.gtapt-article-page .gtapt-prose .wp-block-embed { margin: 1.6em 0; }
.gtapt-article-page .gtapt-prose .wp-block-embed__wrapper { border-radius: 14px; overflow: hidden; }
/* phpBB s9e media placeholders whose iframe was stripped on import */
.gtapt-article-page .gtapt-prose span[data-s9e-mediaembed]:not(:has(iframe)) { display: none; }

.gtapt-article-page .gtapt-prose hr {
  height: 1px;
  margin: 2em 0;
  border: 0;
  background: var(--ga-glass-border);
}
.gtapt-article-page .gtapt-prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.gtapt-article-page .gtapt-prose th,
.gtapt-article-page .gtapt-prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ga-glass-border);
  text-align: left;
}
.gtapt-article-page .gtapt-prose th { color: var(--text-primary); }
.gtapt-article-page .gtapt-prose pre,
.gtapt-article-page .gtapt-prose code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
.gtapt-article-page .gtapt-prose pre {
  padding: 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--ga-soft);
}

/* Tags */
.gtapt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ga-glass-border);
}
.gtapt-article-page .gtapt-tag {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.12);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}
.gtapt-article-page .gtapt-tag:hover { color: #fff; background: var(--ga-grad); border-color: transparent; }

/* --------------------------------------------------------------------------
   Author bio
   ----------------------------------------------------------------------- */
.gtapt-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
  padding: 24px 26px;
}
.gtapt-author__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: var(--ga-grad);
  object-fit: cover;
}
.gtapt-author__body { min-width: 0; }
.gtapt-author__kicker {
  margin: 0 0 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gtapt-article-page .gtapt-author__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.gtapt-author__name a { color: var(--text-primary); }
.gtapt-author__name a:hover { color: var(--ga-pink); }
.gtapt-author__role {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--ga-violet);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gtapt-author__bio { margin: 0 0 10px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.gtapt-article-page .gtapt-author__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ga-pink);
  font-size: 0.88rem;
  font-weight: 700;
}
.gtapt-author__link svg { transition: transform 0.2s ease; }
.gtapt-author__link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Related
   ----------------------------------------------------------------------- */
.gtapt-related { margin-top: 36px; }
.gtapt-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gtapt-article-page .gtapt-related__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.gtapt-article-page .gtapt-related__card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.5);
}
.gtapt-related__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #151222;
}
.gtapt-related__thumb img,
.gtapt-mostread__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gtapt-related__card:hover .gtapt-related__thumb img { transform: scale(1.05); }
.gtapt-related__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.gtapt-related__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.gtapt-related__meta { color: var(--text-muted); font-size: 0.78rem; }

/* .gtapt-thumb-ph base rule lives in style.css (shared by all cards). */

/* --------------------------------------------------------------------------
   Discussion: forum thread + comments
   ----------------------------------------------------------------------- */
.gtapt-discussion { margin-top: 36px; scroll-margin-top: 100px; }
.gtapt-forum-thread,
.gtapt-article-page .gtapt-comments { padding: 24px 26px; }
.gtapt-forum-thread__head,
.gtapt-comments__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.gtapt-forum-thread__head .gtapt-section-title,
.gtapt-comments__head .gtapt-section-title { margin: 0; }
.gtapt-forum-thread__list { margin: 0 0 18px; padding: 0; list-style: none; }
.gtapt-forum-reply {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ga-glass-border);
}
.gtapt-forum-reply__avatar {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ga-grad);
  color: #fff;
  font-weight: 800;
}
.gtapt-forum-reply__body { min-width: 0; }
.gtapt-forum-reply__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 4px; font-size: 0.85rem; }
.gtapt-forum-reply__meta strong { color: var(--text-primary); }
.gtapt-forum-reply__meta span { color: var(--text-muted); }
.gtapt-forum-reply__text { margin: 0 0 6px; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.55; }
.gtapt-article-page .gtapt-forum-reply__link { color: var(--ga-pink); font-size: 0.8rem; font-weight: 700; }
.gtapt-forum-thread__empty { margin: 10px 0 18px; color: var(--text-secondary); }
.gtapt-forum-thread .gtapt-btn-gradient { width: 100%; }

.gtapt-comment-list,
.gtapt-comment-list .children { margin: 0; padding: 0; list-style: none; }
.gtapt-comment-list .children { margin-left: 26px; padding-left: 16px; border-left: 2px solid var(--ga-glass-border); }
.gtapt-comment__body {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ga-glass-border);
}
.gtapt-comment__avatar img { width: 40px; height: 40px; border-radius: 50%; }
.gtapt-comment__main { flex: 1; min-width: 0; }
.gtapt-comment__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.85rem; }
.gtapt-comment__author { color: var(--text-primary); }
.gtapt-comment__meta time { color: var(--text-muted); }
.gtapt-comment__pending { margin: 4px 0; color: var(--ga-pink); font-size: 0.85rem; }
.gtapt-comment__text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.gtapt-comment__text p { margin: 6px 0; }
.gtapt-comment__actions { display: flex; gap: 14px; font-size: 0.8rem; font-weight: 700; }
.gtapt-comment__actions a { color: var(--ga-pink); }
.gtapt-comments .comment-respond { margin-top: 22px; }
.gtapt-comments .comment-reply-title { margin: 0 0 8px; font-size: 1.1rem; }
.gtapt-comments .comment-reply-title small { margin-left: 10px; font-size: 0.8rem; }
.gtapt-comments .comment-notes,
.gtapt-comments .logged-in-as { margin: 0 0 14px; color: var(--text-muted); font-size: 0.85rem; }
.gtapt-comments .comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gtapt-comments .comment-form > p { margin: 0; }
.gtapt-comments .comment-form .comment-notes,
.gtapt-comments .comment-form .logged-in-as,
.gtapt-comments .comment-form .comment-form-comment,
.gtapt-comments .comment-form .comment-form-cookies-consent,
.gtapt-comments .comment-form .form-submit { grid-column: 1 / -1; }
.gtapt-comments label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.78rem; font-weight: 600; }
.gtapt-comments .comment-form-cookies-consent label { display: inline; }
.gtapt-comments input[type="text"],
.gtapt-comments input[type="email"],
.gtapt-comments input[type="url"],
.gtapt-comments textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--ga-glass-border);
  border-radius: 10px;
  background: var(--ga-soft);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.gtapt-comments input:focus,
.gtapt-comments textarea:focus { outline: none; border-color: var(--ga-pink); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18); }
.gtapt-comments__closed { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Sidebar
   ----------------------------------------------------------------------- */
.gtapt-article-sidebar { min-width: 0; align-self: stretch; }
.gtapt-article-sidebar__inner {
  position: sticky;
  top: var(--gtapt-sidebar-top, var(--ga-sticky-top));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gtapt-article-page .gtapt-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ga-glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.gtapt-card__title svg { flex: 0 0 auto; color: var(--ga-pink); }
.gtapt-article-page .gtapt-card__more { margin-left: auto; color: var(--ga-pink); font-size: 0.78rem; font-weight: 700; }
.gtapt-card__empty { margin: 0; padding: 14px 18px; color: var(--text-muted); font-size: 0.88rem; }

/* ToC */
.gtapt-toc summary { cursor: pointer; list-style: none; user-select: none; }
.gtapt-toc summary::-webkit-details-marker { display: none; }
.gtapt-toc:not([open]) summary { border-bottom-color: transparent; }
.gtapt-toc__chev {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.gtapt-toc[open] .gtapt-toc__chev { transform: rotate(-135deg) translateY(-2px); }
.gtapt-toc__list { margin: 0; padding: 10px; list-style: none; }
.gtapt-article-page .gtapt-toc__item a {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.gtapt-toc__item--h3 a { padding-left: 30px !important; font-size: 0.83rem !important; }
.gtapt-toc__num { color: var(--text-muted); font-weight: 700; }
.gtapt-article-page .gtapt-toc__item a:hover { background: var(--ga-soft-hover); color: var(--text-primary); }
.gtapt-article-page .gtapt-toc__item a.is-active {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.20), rgba(139, 92, 246, 0.08));
  box-shadow: inset 3px 0 0 var(--ga-pink);
  color: var(--text-primary);
}
.gtapt-toc__item a.is-active .gtapt-toc__num { color: var(--ga-pink); }
.gtapt-toc--mobile { display: none; margin-bottom: 18px; }

/* Most read */
.gtapt-mostread__list { margin: 0; padding: 8px; list-style: none; }
.gtapt-article-page .gtapt-mostread__list a {
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.2s ease;
}
.gtapt-article-page .gtapt-mostread__list a:hover { background: var(--ga-soft-hover); }
.gtapt-mostread__num {
  background: var(--ga-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
}
.gtapt-mostread__thumb {
  display: block;
  width: 64px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #151222;
}
.gtapt-mostread__thumb .gtapt-thumb-ph { font-size: 0.65rem; }
.gtapt-mostread__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}
.gtapt-mostread__list li.is-current .gtapt-mostread__title { color: var(--ga-pink); }

/* Forum feed */
.gtapt-forumfeed__list { margin: 0; padding: 6px 8px 10px; list-style: none; }
.gtapt-article-page .gtapt-forumfeed__list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.2s ease;
}
.gtapt-article-page .gtapt-forumfeed__list a:hover { background: var(--ga-soft-hover); }
.gtapt-forumfeed__icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--ga-violet);
}
.gtapt-forumfeed__icon svg { width: 16px; height: 16px; }
.gtapt-forumfeed__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gtapt-forumfeed__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}
.gtapt-forumfeed__meta { color: var(--text-muted); font-size: 0.74rem; }

/* Discord promo */
.gtapt-discord {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--ga-radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #5865f2 0%, #8b5cf6 45%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
}
.gtapt-discord__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}
.gtapt-discord__logo svg { width: 28px; height: 28px; }
.gtapt-article-page .gtapt-discord__title { margin: 0 0 6px; color: #fff; font-size: 1.15rem; }
.gtapt-discord__text { margin: 0 0 16px; color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; line-height: 1.5; }
.gtapt-article-page .gtapt-discord__btn {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  color: #2a1250;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.gtapt-article-page .gtapt-discord__btn:hover { color: #2a1250; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   v2.7.3 wide layout: wider page + sidebar, text kept at a reading measure
   ----------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .gtapt-article-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; }
  .gtapt-article-card { padding-right: 40px; }
  /* Text column centred in the card at ~74 characters per line (measured for
     GTAArtDeco: ~8.7px average glyph at 18px). A rem value keeps headings,
     paragraphs and the key points box on the same left edge. Media may use the
     full card width. */
  .gtapt-article-page .gtapt-prose { font-size: 1.12rem; }
  .gtapt-article-body > .gtapt-keypoints,
  .gtapt-article-body > .gtapt-tags,
  .gtapt-article-page .gtapt-prose > * {
    max-width: 40.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  .gtapt-article-page .gtapt-prose > :is(figure, .wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-video, .wp-block-table, table, iframe, video, pre, hr),
  .gtapt-article-page .gtapt-prose > :is(p, div):has(> :is(img, iframe, video, a > img):only-child) {
    max-width: 100%;
  }
  .gtapt-article-page .gtapt-prose > :is(iframe, video) { display: block; }
}

@media (max-width: 1100px) {
  .gtapt-article-layout { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 22px; }
  .gtapt-article-card { padding-right: 26px; }
}

@media (max-width: 1024px) {
  .gtapt-article-layout { grid-template-columns: minmax(0, 1fr); margin-top: -64px; }
  .gtapt-article-sidebar__inner { position: static; }
  .gtapt-toc--desktop { display: none; }
  .gtapt-toc--mobile { display: block; }
  .gtapt-hero__inner { min-height: 440px; padding-bottom: 96px; }
}

@media (max-width: 768px) {
  .gtapt-hero__inner { min-height: 400px; gap: 28px; padding-top: 16px; padding-bottom: 88px; }
  .gtapt-hero__title { font-size: clamp(1.6rem, 1rem + 3.4vw, 2.2rem); }
  .gtapt-hero__subtitle { font-size: 0.98rem; }
  .gtapt-hero__meta { gap: 10px 16px; font-size: 0.82rem; }
  .gtapt-meta-author img, .gtapt-meta-author__avatar { width: 38px; height: 38px; }
  .gtapt-breadcrumb [aria-current] span { max-width: 24ch; }

  .gtapt-article-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 18px 24px;
  }
  .gtapt-share {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ga-glass-border);
  }
  .gtapt-share__label { margin: 0 6px 0 0; font-size: 0.7rem; }
  .gtapt-share__btn { width: 40px; height: 40px; }
  .gtapt-share__tip { left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); }

  .gtapt-article-page .gtapt-prose { font-size: 1rem; }
  .gtapt-article-page .gtapt-prose h2 { font-size: 1.35rem; }
  .gtapt-article-page .gtapt-prose blockquote { padding: 22px 18px 18px 58px; font-size: 1.08rem; }
  .gtapt-article-page .gtapt-prose blockquote::before { left: 12px; font-size: 4rem; }

  .gtapt-related__grid { grid-template-columns: minmax(0, 1fr); }
  .gtapt-article-page .gtapt-related__card { flex-direction: row; }
  .gtapt-related__thumb { flex: 0 0 38%; aspect-ratio: 16 / 11; }
  .gtapt-related__body { padding: 10px 12px; }

  .gtapt-author { flex-direction: column; gap: 14px; padding: 20px; }
  .gtapt-comments .comment-form { grid-template-columns: minmax(0, 1fr); }
  .gtapt-forum-thread, .gtapt-article-page .gtapt-comments { padding: 20px 18px; }
}

@media (max-width: 480px) {
  .gtapt-hero__inner { min-height: 360px; }
  .gtapt-hero__title { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gtapt-article-page *,
  .gtapt-progress__bar { transition: none !important; }
}
