/**
 * single-module-theme.css — Module page dark/light theme tokens (v1.11.7)
 * Replaces hardcoded light-only colors on project module detail pages.
 */

/* ── Author bio ── */
body.gtt-module-page .gtt-article-author-bar {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}

body.gtt-module-page .gtt-article-author-bar img {
  border-color: var(--border-subtle) !important;
}

body.gtt-module-page .gtt-article-author-bar strong {
  color: var(--text-primary) !important;
}

body.gtt-module-page .gtt-article-author-bar span {
  color: var(--text-secondary) !important;
}

/* ── Prev / Next navigation ── */
body.gtt-module-page .gtt-module-nav-footer {
  border-top-color: var(--border-subtle) !important;
}

body.gtt-module-page .gtt-module-nav-btn {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

body.gtt-module-page a.gtt-module-nav-btn:hover {
  background: var(--bg-muted, rgba(255, 255, 255, 0.05)) !important;
  border-color: var(--border-medium, rgba(255, 255, 255, 0.12)) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

body.gtt-module-page .gtt-module-nav-btn__dir {
  color: var(--green-500) !important;
}

body.gtt-module-page .gtt-module-nav-btn__meta {
  color: var(--text-tertiary, var(--text-secondary)) !important;
}

body.gtt-module-page .gtt-module-nav-btn__title {
  color: var(--text-primary) !important;
}

body.gtt-module-page .gtt-module-nav-btn--soon {
  background: var(--bg-elevated) !important;
  border-color: var(--border-subtle) !important;
  opacity: 0.85;
}

/* ── Questions & discussion / comments ── */
body.gtt-module-page .gtt-module-comments {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}

body.gtt-module-page .gtt-module-comments.glass-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.gtt-module-page .gtt-module-comments__header h2,
body.gtt-module-page .gtt-module-comments #reply-title,
body.gtt-module-page .gtt-module-comments .comments-title {
  color: var(--text-primary) !important;
}

body.gtt-module-page .gtt-module-comments__header p {
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments a {
  color: var(--green-500) !important;
}

body.gtt-module-page .gtt-module-comments a:hover {
  color: var(--green-400, #34d399) !important;
}

body.gtt-module-page .gtt-module-comments .comment-form-comment label,
body.gtt-module-page .gtt-module-comments .comment-notes,
body.gtt-module-page .gtt-module-comments .gtt-comment-field label,
body.gtt-module-page .gtt-module-comments .comment-form-author label,
body.gtt-module-page .gtt-module-comments .comment-form-email label,
body.gtt-module-page .gtt-module-comments .comment-form-comment label {
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments textarea,
body.gtt-module-page .gtt-module-comments input[type="text"],
body.gtt-module-page .gtt-module-comments input[type="email"],
body.gtt-module-page .gtt-module-comments input[type="url"] {
  background: var(--bg-base) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

body.gtt-module-page .gtt-module-comments textarea::placeholder,
body.gtt-module-page .gtt-module-comments input::placeholder {
  color: var(--text-tertiary, var(--text-secondary)) !important;
  opacity: 0.7;
}

body.gtt-module-page .gtt-module-comments textarea:focus,
body.gtt-module-page .gtt-module-comments input[type="text"]:focus,
body.gtt-module-page .gtt-module-comments input[type="email"]:focus,
body.gtt-module-page .gtt-module-comments input[type="url"]:focus {
  background: var(--bg-base) !important;
  border-color: var(--green-500) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 106, 0.18) !important;
}

body.gtt-module-page .gtt-module-comments .gtt-comment-gate-note {
  background: var(--bg-base) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments .gtt-comment-subscribe-consent {
  background: var(--bg-base) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments .gtt-comment-subscribe-consent label {
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments .gtt-comment-privacy {
  color: var(--text-tertiary, var(--text-secondary)) !important;
}

body.gtt-module-page .gtt-module-comments #submit,
body.gtt-module-page .gtt-module-comments .form-submit input[type="submit"] {
  background: var(--green-500) !important;
  color: var(--text-inverse, #0b1120) !important;
}

body.gtt-module-page .gtt-module-comments #submit:hover,
body.gtt-module-page .gtt-module-comments .form-submit input[type="submit"]:hover {
  background: var(--green-600, #00b85c) !important;
}

/* Comment list */
body.gtt-module-page .gtt-module-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

body.gtt-module-page .gtt-module-comments .comment-body {
  background: var(--bg-base) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

body.gtt-module-page .gtt-module-comments .comment-meta {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments .comment-author .fn,
body.gtt-module-page .gtt-module-comments .comment-author .fn a {
  color: var(--text-primary) !important;
  font-style: normal;
  font-weight: 600;
}

body.gtt-module-page .gtt-module-comments .comment-metadata,
body.gtt-module-page .gtt-module-comments .comment-metadata a {
  color: var(--text-tertiary, var(--text-secondary)) !important;
  font-size: 0.8125rem;
}

body.gtt-module-page .gtt-module-comments .comment-content,
body.gtt-module-page .gtt-module-comments .comment-content p {
  color: var(--text-secondary) !important;
}

body.gtt-module-page .gtt-module-comments .reply a,
body.gtt-module-page .gtt-module-comments .comment-reply-link {
  color: var(--green-500) !important;
  font-size: 0.875rem;
  font-weight: 500;
}

body.gtt-module-page .gtt-module-comments .children {
  list-style: none;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
  border-left: 2px solid var(--border-subtle);
}

body.gtt-module-page .gtt-module-comments .logged-in-as {
  color: var(--text-secondary) !important;
}

/* ── Related articles ── */
body.gtt-module-page .gtt-related-posts h2 {
  color: var(--text-primary) !important;
}

body.gtt-module-page .gtt-related-grid .gtt-article-card,
body.gtt-module-page .gtt-related-grid .gtt-glass-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}

body.gtt-module-page .gtt-related-grid .gtt-article-card:hover,
body.gtt-module-page .gtt-related-grid .gtt-glass-card:hover {
  border-color: var(--border-medium, rgba(255, 255, 255, 0.12)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

body.gtt-module-page .gtt-related-grid .gtt-article-card__image {
  background: var(--bg-base) !important;
}

body.gtt-module-page .gtt-related-grid .gtt-article-card__title,
body.gtt-module-page .gtt-related-grid .gtt-article-card__title a {
  color: var(--text-primary) !important;
}

body.gtt-module-page .gtt-related-grid .gtt-article-card__title a:hover {
  color: var(--green-500) !important;
}

body.gtt-module-page .gtt-related-grid .gtt-article-card__meta {
  color: var(--text-tertiary, var(--text-secondary)) !important;
}