/**
 * GovHub Living Layer Map — design tokens & layer UI components
 */

:root {
  --gh-content-max: 960px;
  --gh-content-max-wide: 1080px;
  --gh-radius-sm: 8px;
  --gh-radius-md: 12px;
  --gh-radius-lg: 16px;
  --gh-radius-xl: 20px;
  --gh-radius-pill: 999px;
  --gh-space-xs: 0.25rem;
  --gh-space-sm: 0.5rem;
  --gh-space-md: 1rem;
  --gh-space-lg: 1.5rem;
  --gh-space-xl: 2rem;
  --gh-accent-blue: #4d9fff;
  --gh-accent-purple: #764ba2;
  --gh-accent-cyan: #22d3ee;
  --gh-accent-teal: #2dd4bf;
  --gh-accent-green: #34d399;
  --gh-accent-amber: #fbbf24;
  --gh-glow: rgba(77, 159, 255, 0.35);
  --gh-glow-soft: rgba(77, 159, 255, 0.12);
  --gh-glow-purple: rgba(118, 75, 162, 0.2);
  --gh-gradient-map: linear-gradient(
    135deg,
    rgba(77, 159, 255, 0.16) 0%,
    rgba(102, 126, 234, 0.14) 45%,
    rgba(118, 75, 162, 0.12) 100%
  );
  --gh-gradient-hero: linear-gradient(
    160deg,
    rgba(10, 18, 36, 0.95) 0%,
    rgba(5, 11, 26, 0.98) 55%,
    rgba(10, 18, 36, 0.92) 100%
  );
  --gh-glass-border: rgba(102, 126, 234, 0.22);
  --gh-tab-group-color: var(--text-muted);
  --gh-pulse-dot: #4d9fff;
  --gh-link-hover: #6eb3ff;
}

/* Main page content width (navbar uses same .container) */
.container {
  max-width: var(--gh-content-max);
  margin-left: auto;
  margin-right: auto;
}

.navbar > .container {
  max-width: var(--gh-content-max);
}

.gh-content-wide.container {
  max-width: var(--gh-content-max-wide);
}

/* Docs directory — prod-like two-column cards with dev tokens */
.doc-all-page .document-card {
  margin-bottom: 0;
}

.doc-all-page .document-card .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doc-all-page .document-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.doc-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Documents directory — collapsible tag cloud + wrap chips */
.doc-all-page .doc-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
}

.doc-all-page .doc-active-filters:empty {
  display: none;
}

.doc-all-page .doc-tags-panel {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
}

.doc-all-page .doc-tags-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.doc-all-page #doc-tags-toggle {
  white-space: nowrap;
}

.doc-all-page #sort-filter {
  min-width: 12.5rem;
}

.doc-all-page .doc-tags-panel-body {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid var(--border-color);
}

.doc-all-page .doc-tags-panel-body.is-collapsed {
  display: none;
}

.doc-all-page .doc-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.75rem 0.25rem;
  margin-bottom: 0.65rem;
  line-height: 1;
}

.doc-all-page .doc-tag-cloud-item {
  display: inline-block;
  margin: -0.12em -0.18em;
  padding: 0.05em 0.3em;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--gh-accent-blue, var(--accent-color));
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0.82;
  transform: rotate(var(--tag-rotate, 0deg));
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.doc-all-page .doc-tag-cloud-item.doc-tag-cloud-weight-mid {
  font-weight: 600;
  opacity: 0.92;
}

.doc-all-page .doc-tag-cloud-item.doc-tag-cloud-weight-high {
  font-weight: 700;
  opacity: 1;
}

.doc-all-page .doc-tag-cloud-item:hover {
  opacity: 1;
  transform: rotate(var(--tag-rotate, 0deg)) scale(1.06);
  z-index: 2;
  position: relative;
}

.doc-all-page .doc-tag-cloud-item.is-selected {
  opacity: 1;
  color: var(--gh-accent-blue, var(--accent-color));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  z-index: 3;
  position: relative;
}

.doc-all-page .doc-tag-wrap-scroll {
  max-height: 8rem;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background: var(--bg-color);
}

.doc-all-page .doc-tag-wrap-chip {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.doc-all-page .doc-tag-wrap-chip:hover {
  border-color: var(--accent-color);
  color: var(--gh-accent-blue, var(--accent-color));
}

.doc-all-page .doc-tag-wrap-chip.is-selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.doc-all-page .doc-tag-wrap-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.doc-card-actions .btn {
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Documents directory — collapsible tag cloud + wrap chips */
.doc-all-page .doc-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
}

.doc-all-page .doc-active-filters:empty {
  display: none;
}

.doc-all-page .doc-tags-panel {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
}

.doc-all-page .doc-tags-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.doc-all-page #doc-tags-toggle {
  white-space: nowrap;
}

.doc-all-page #sort-filter {
  min-width: 12.5rem;
}

.doc-all-page .doc-tags-panel-body {
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid var(--border-color);
}

.doc-all-page .doc-tags-panel-body.is-collapsed {
  display: none;
}

.doc-all-page .doc-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.75rem 0.25rem;
  margin-bottom: 0.65rem;
  line-height: 1;
}

.doc-all-page .doc-tag-cloud-item {
  display: inline-block;
  margin: -0.12em -0.18em;
  padding: 0.05em 0.3em;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--gh-accent-blue, var(--accent-color));
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0.82;
  transform: rotate(var(--tag-rotate, 0deg));
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.doc-all-page .doc-tag-cloud-item.doc-tag-cloud-weight-mid {
  font-weight: 600;
  opacity: 0.92;
}

.doc-all-page .doc-tag-cloud-item.doc-tag-cloud-weight-high {
  font-weight: 700;
  opacity: 1;
}

.doc-all-page .doc-tag-cloud-item:hover {
  opacity: 1;
  transform: rotate(var(--tag-rotate, 0deg)) scale(1.06);
  z-index: 2;
  position: relative;
}

.doc-all-page .doc-tag-cloud-item.is-selected {
  opacity: 1;
  color: var(--gh-accent-blue, var(--accent-color));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  z-index: 3;
  position: relative;
}

.doc-all-page .doc-tag-wrap-scroll {
  max-height: 8rem;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background: var(--bg-color);
}

.doc-all-page .doc-tag-wrap-chip {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.doc-all-page .doc-tag-wrap-chip:hover {
  border-color: var(--accent-color);
  color: var(--gh-accent-blue, var(--accent-color));
}

.doc-all-page .doc-tag-wrap-chip.is-selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.doc-all-page .doc-tag-wrap-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.document-card .document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.document-card .document-meta .status-badge {
  margin: 0;
}

.document-card .card-title.document-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.document-card .card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] {
  --gh-glow: rgba(102, 126, 234, 0.45);
  --gh-glow-soft: rgba(102, 126, 234, 0.18);
  --gh-gradient-map: linear-gradient(135deg, rgba(102, 126, 234, 0.22) 0%, rgba(118, 75, 162, 0.18) 50%, rgba(29, 155, 240, 0.1) 100%);
}

/* --- Layer feature pills (top tabs) --- */
.layer-feature-tabs-wrap {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--gh-space-md);
}

.layer-tab-group {
  margin-bottom: var(--gh-space-sm);
}

.layer-tab-group:last-child {
  margin-bottom: 0;
}

.layer-tab-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-tab-group-color);
  margin-bottom: var(--gh-space-xs);
  padding-left: 2px;
}

.layer-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-xs);
  border: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

.layer-tab-group-label-item {
  flex-basis: 100%;
  width: 100%;
  list-style: none;
  margin-top: var(--gh-space-xs);
}

.layer-tab-group-label-item:first-child {
  margin-top: 0;
}

#projectTabContent > .tab-pane:not(.active) {
  display: none;
}

.layer-feature-pills .nav-item {
  margin: 0;
}

.layer-feature-pills .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--gh-radius-pill) !important;
  background: var(--bg-secondary);
  color: var(--text-secondary) !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  border-bottom: 1px solid var(--border-color) !important;
}

.layer-feature-pills .nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary) !important;
  border-color: var(--border-hover) !important;
}

.layer-feature-pills .nav-link.active {
  background: var(--gh-gradient-map) !important;
  border-color: rgba(102, 126, 234, 0.45) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 1px var(--gh-glow-soft), 0 2px 8px var(--gh-glow-soft);
}

.layer-feature-pills .nav-link i {
  font-size: 0.75rem;
  opacity: 0.85;
}

.layer-feature-pills .nav-link.active i {
  opacity: 1;
  color: #667eea;
}

.layer-feature-pills .nav-link.waitlist-tab-flair {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.layer-feature-pills .nav-link.waitlist-tab-flair.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.18) 100%) !important;
}

/* --- Living layer hero --- */
.living-layer-hero {
  position: relative;
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--card-border);
  background: var(--gh-gradient-hero);
  overflow: hidden;
  margin-bottom: var(--gh-space-lg);
  box-shadow: var(--shadow);
}

.living-layer-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gh-gradient-map);
  opacity: 0.5;
  pointer-events: none;
}

.living-layer-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gh-space-md);
  padding: var(--gh-space-lg);
}

@media (min-width: 768px) {
  .living-layer-hero-inner {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .living-layer-hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .living-layer-hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

@media (min-width: 992px) {
  .living-layer-hero-inner {
    grid-template-columns: auto 1fr minmax(200px, 240px);
    align-items: start;
  }

  .living-layer-hero-actions {
    grid-column: auto;
    flex-direction: column;
  }

  .living-layer-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

.living-layer-hero-media {
  display: flex;
  justify-content: center;
}

.living-layer-hero-media img {
  max-height: 120px;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--gh-radius-xl);
  background: var(--card-bg);
  padding: var(--gh-space-sm);
  border: 1px solid var(--card-border);
}

.living-layer-hero-body h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--gh-space-xs);
}

.living-layer-hero-mission {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--gh-space-sm);
  max-width: 42rem;
}

.living-layer-hero-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.living-layer-hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--gh-space-sm);
  min-width: 180px;
}

.living-layer-pulse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-xs);
  margin-top: var(--gh-space-sm);
}

.living-layer-pulse-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--gh-radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.living-layer-pulse-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gh-pulse-dot);
  box-shadow: 0 0 6px var(--gh-glow);
}

.living-layer-pulse-chip.is-live::before {
  animation: gh-pulse-blink 2s ease-in-out infinite;
}

@keyframes gh-pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Living overview modules --- */
.living-modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gh-space-md);
}

@media (min-width: 768px) {
  .living-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stay at 2 columns max — avoids ultra-wide module rows */
@media (min-width: 1200px) {
  .living-modules-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.living-module {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
}

.living-module:hover {
  border-color: rgba(77, 159, 255, 0.32);
  box-shadow: var(--shadow-hover);
}

.living-module-header {
  display: flex;
  align-items: center;
  gap: var(--gh-space-sm);
  padding: var(--gh-space-md) var(--gh-space-md) 0;
}

.living-module-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--gh-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gh-gradient-map);
  color: var(--gh-accent-blue, #4d9fff);
  font-size: 0.9rem;
  box-shadow: 0 0 20px var(--gh-glow-soft);
}

.living-module-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.living-module-body {
  padding: var(--gh-space-md);
}

.living-module-stat {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.living-module-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.living-module-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.living-module-stat-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}

.living-module-stat-link:hover,
.living-module-stat-link:focus-visible {
  text-decoration: none;
}

.living-module-stat-link:hover .living-module-stat-value,
.living-module-stat-link:focus-visible .living-module-stat-value,
.living-module-stat-link:hover .living-module-stat-text,
.living-module-stat-link:focus-visible .living-module-stat-text {
  color: var(--gh-accent, var(--bs-primary, #6ea8fe));
}

.living-module-stat-link .living-module-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.living-module-stat-link .living-module-stat-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.living-module-span-2 {
  grid-column: 1 / -1;
}

.living-module-activity .list-group-item {
  border-left: none;
  border-right: none;
  padding: 0.65rem var(--gh-space-md);
}

/* --- Site-wide directory & page chrome --- */

.gh-page {
  padding-bottom: var(--gh-space-xl);
}

.gh-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gh-space-md);
  margin-bottom: var(--gh-space-lg);
  padding: var(--gh-space-lg);
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--gh-gradient-hero);
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
  box-shadow: var(--shadow);
}

.gh-page-header-main {
  display: flex;
  align-items: flex-start;
  gap: var(--gh-space-md);
  flex: 1;
  min-width: 0;
}

.gh-page-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--gh-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gh-gradient-map);
  color: var(--gh-accent-blue, #4d9fff);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--gh-glow-soft);
}

.gh-page-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 var(--gh-space-xs);
}

.gh-page-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 42rem;
}

.gh-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-sm);
  align-items: center;
}

.gh-filter-bar .form-label.gh-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.gh-alert {
  padding: var(--gh-space-md);
  border-radius: var(--gh-radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.gh-alert-info {
  border-color: rgba(29, 155, 240, 0.25);
  color: var(--text-secondary);
}

.gh-alert-danger {
  border-color: rgba(244, 33, 46, 0.25);
  color: var(--error-color);
}

/* Directory tiles (layers map + all directories) */
.gh-directory-tile,
.layer-map-tile {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gh-directory-tile:hover,
.layer-map-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.35);
}

.gh-directory-tile-visual,
.layer-map-tile-visual {
  position: relative;
  height: 100px;
  background: var(--gh-gradient-map);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--gh-space-md);
}

.gh-directory-tile-visual img,
.layer-map-tile-visual img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--gh-radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gh-directory-placeholder,
.layer-map-tile-visual .layer-map-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--gh-radius-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 1.35rem;
  opacity: 0.55;
  color: var(--text-muted);
}

.gh-directory-tile-pulse,
.layer-map-tile-pulse {
  position: absolute;
  top: var(--gh-space-sm);
  right: var(--gh-space-sm);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--gh-radius-pill);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}

[data-theme="light"] .gh-directory-tile-pulse,
[data-theme="light"] .layer-map-tile-pulse {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.gh-directory-tile-body,
.layer-map-tile-body {
  padding: var(--gh-space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gh-directory-tile-title,
.layer-map-tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: calc(2 * 1.25em);
  max-height: calc(2 * 1.25em);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 var(--gh-space-xs);
}

.gh-directory-tile-title a,
.layer-map-tile-title a {
  color: inherit;
  text-decoration: none;
}

.gh-directory-tile-title a:hover,
.layer-map-tile-title a:hover {
  color: var(--gh-accent-blue, var(--accent-color));
}

.gh-directory-tile-desc,
.layer-map-tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: var(--gh-space-sm);
  flex: 1;
}

.gh-directory-tile-footer,
.layer-map-tile-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gh-space-xs);
  margin-top: auto;
}

.gh-directory-tile-badges,
.layer-map-tile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.gh-directory-tile-meta,
.layer-map-tile-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gh-directory-tile-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--gh-space-xs);
  padding-top: var(--gh-space-xs);
  border-top: 1px solid var(--border-color);
}

/* Detail pages (guild, etc.) — lighter hero */
.gh-detail-hero {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--card-border);
  background: var(--gh-gradient-hero);
  padding: var(--gh-space-lg);
  margin-bottom: var(--gh-space-lg);
}

.gh-detail-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-md);
  align-items: flex-start;
  justify-content: space-between;
}

.gh-detail-hero-media {
  width: 72px;
  height: 72px;
  border-radius: var(--gh-radius-xl);
  overflow: hidden;
  background: var(--gh-gradient-map);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

.gh-detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--gh-radius-xl);
}

.gh-detail-hero-body h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 var(--gh-space-xs);
}

.gh-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-sm);
}

.gh-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gh-space-lg);
}

@media (min-width: 768px) {
  .gh-detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.gh-detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--gh-space-md);
}

.gh-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gh-space-md);
}

/* Workgroup charter & goals — sidebar teasers with expand */
.wg-sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.wg-charter-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.wg-expandable-body.wg-charter-text {
  margin: 0;
}

.wg-expandable--collapsed .wg-expandable-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wg-expandable--collapsed .wg-goals-list li:nth-child(n + 4) {
  display: none;
}

.wg-goals-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.wg-goals-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.wg-goals-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent-color, #667eea);
  opacity: 0.85;
}

.wg-expand-toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.wg-expand-toggle:hover,
.wg-expand-toggle:focus-visible {
  text-decoration: underline;
}

/* Home hub */
.gh-home-hero {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--gh-gradient-hero);
  padding: var(--gh-space-xl) var(--gh-space-lg);
  margin-bottom: var(--gh-space-lg);
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
}

.gh-home-hero--visual {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  margin-bottom: var(--gh-space-md);
}

.gh-home-hero-banner {
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gh-glass-border, rgba(102, 126, 234, 0.28));
  line-height: 0;
}

.gh-home-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.gh-home-hero-tagline-box {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--card-bg);
  padding: var(--gh-space-md) var(--gh-space-lg);
  margin-bottom: var(--gh-space-lg);
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
  box-shadow: var(--shadow);
}

.gh-home-hero-tagline {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Home — single-row activity rotator (between tagline and hub cards) */
.gh-home-activity {
  display: flex;
  align-items: center;
  gap: var(--gh-space-sm);
  margin-bottom: var(--gh-space-lg);
  padding: var(--gh-space-sm) var(--gh-space-md);
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--card-bg);
  min-height: 3rem;
  box-shadow: var(--shadow);
}

.gh-home-activity-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--gh-radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.gh-home-activity-nav:hover,
.gh-home-activity-nav:focus-visible {
  color: var(--text-primary);
  background: rgba(102, 126, 234, 0.12);
  outline: none;
}

.gh-home-activity-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.gh-home-activity-line {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-home-activity-line a {
  font-weight: 600;
  text-decoration: none;
}

.gh-home-activity-line a:hover {
  text-decoration: underline;
}

.gh-home-activity-time {
  font-weight: 400;
  font-size: 0.85em;
}

.gh-home-activity-dots {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.15rem;
}

.gh-home-activity-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gh-home-activity-dot--active {
  opacity: 1;
  background: var(--accent-color, #667eea);
  transform: scale(1.15);
}

@media (max-width: 576px) {
  .gh-home-activity-dots {
    display: none;
  }
  .gh-home-activity-line {
    font-size: 0.82rem;
  }
}

.gh-home-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 var(--gh-space-sm);
}

.gh-home-hero p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 36rem;
}

/* Page heroes — cycling copy over full-width art (Select_3 placeholder until per-page swap) */
.gh-page-hero {
  margin-bottom: var(--gh-space-lg);
}

.gh-page-hero-banner {
  position: relative;
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gh-glass-border, rgba(102, 126, 234, 0.28));
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  line-height: 0;
  min-height: clamp(10rem, 28vw, 16rem);
}

.gh-page-hero-img {
  display: block;
  width: 100%;
  height: clamp(10rem, 28vw, 16rem);
  object-fit: cover;
  object-position: right center;
}

.gh-page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(28rem, 72%);
  padding: var(--gh-space-lg) var(--gh-space-xl);
  background: linear-gradient(
    105deg,
    rgba(8, 14, 28, 0.92) 0%,
    rgba(8, 14, 28, 0.78) 55%,
    rgba(8, 14, 28, 0.15) 100%
  );
  pointer-events: none;
}

.gh-page-hero-title {
  margin: 0 0 var(--gh-space-sm);
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary, #f0f4ff);
  text-wrap: balance;
}

.gh-page-hero-text {
  margin: 0;
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  line-height: 1.55;
  color: var(--text-secondary, rgba(220, 230, 255, 0.88));
  max-width: 26rem;
  text-wrap: pretty;
}

@media (max-width: 575.98px) {
  .gh-page-hero-overlay {
    max-width: 100%;
    padding: var(--gh-space-md);
    background: linear-gradient(
      180deg,
      rgba(8, 14, 28, 0.88) 0%,
      rgba(8, 14, 28, 0.55) 100%
    );
  }
}

.gh-home-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gh-space-md);
}

.gh-home-hub-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: var(--gh-space-sm);
  row-gap: var(--gh-space-xs);
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--card-bg);
  padding: var(--gh-space-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  color: inherit;
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
}

.gh-home-hub-card:hover {
  color: inherit;
  border-color: rgba(77, 159, 255, 0.38);
  box-shadow: 0 8px 32px var(--gh-glow-soft);
  transform: translateY(-2px);
}

.gh-home-hub-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--gh-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gh-gradient-map);
  color: var(--gh-accent-blue, #4d9fff);
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  box-shadow: 0 0 18px var(--gh-glow-soft);
}

/* Shared entity thumbnails — layers, workgroups, roles, guilds */
.gh-entity-thumb,
.layer-hero-image,
.layer-display-image,
.navbar-brand-logo,
#layer-navbar-brand-img {
  border-radius: var(--gh-radius-xl);
}

img.gh-entity-thumb {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: var(--gh-space-xs);
  object-fit: contain;
}

.gh-card-entity-visual {
  height: 120px;
  padding: var(--gh-space-md);
  background: var(--gh-gradient-map);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-card-entity-visual img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--gh-radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card .card-img-top {
  border-top-left-radius: var(--gh-radius-xl);
  border-top-right-radius: var(--gh-radius-xl);
}

.gh-role-design-link {
  padding: var(--gh-space-sm);
  background: var(--bg-secondary) !important;
}

.gh-role-design-link img {
  border-radius: var(--gh-radius-xl);
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gh-home-hub-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.gh-home-hub-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 var(--gh-space-md);
  grid-column: 1 / -1;
  grid-row: 2;
}

.gh-home-hub-card .btn {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
}

.gh-home-stats {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  background: var(--card-bg);
  padding: var(--gh-space-md);
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
  box-shadow: var(--shadow);
}

.gh-home-stats h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 var(--gh-space-md);
}

/* Badge directory tabs — match feature pills */
.gh-badge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-xs);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gh-space-md);
  border: none;
}

.gh-badge-tabs .nav-item {
  margin: 0;
}

.gh-badge-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--gh-radius-pill) !important;
  background: var(--bg-secondary);
  color: var(--text-secondary) !important;
}

.gh-badge-tabs .nav-link.active {
  background: var(--gh-gradient-map);
  border-color: rgba(102, 126, 234, 0.45) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 1px var(--gh-glow-soft);
}

.gh-people-table-wrap {
  overflow-x: auto;
}

.gh-people-table-wrap .table {
  margin-bottom: 0;
}

.gh-people-table-wrap thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.gh-pill-truncate {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.gh-people-pills-cell {
  min-width: 8rem;
  max-width: 14rem;
}

.gh-people-activity {
  font-size: 0.875rem;
  white-space: nowrap;
}

.gh-people-activity-item {
  display: inline-block;
}

.gh-people-last-active {
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--text-secondary);
}

.gh-detail-breadcrumb {
  margin-bottom: var(--gh-space-sm);
}

.gh-detail-breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* Navbar polish */
.navbar {
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Admin & legacy card pages inside gh-page */
.gh-admin-page .card,
.gh-page .card:not(.document-card .card) {
  border: 1px solid var(--border-color);
  border-radius: var(--gh-radius-md);
  background: var(--bg-secondary);
}

.gh-admin-page .card-header,
.gh-page .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.gh-admin-page .card-body h4 {
  font-weight: 700;
}

/* Document directory */
.doc-all-page.gh-page .document-card .card {
  border-radius: var(--gh-radius-md);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.doc-all-page.gh-page .document-card .card:hover {
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: 0 4px 20px var(--gh-glow-soft);
}

/* Profile view tabs */
.gh-profile-page .nav-tabs {
  border-bottom: 1px solid var(--border-color);
  gap: 0.25rem;
}

.gh-profile-page .nav-tabs .nav-link {
  border: none;
  border-radius: var(--gh-radius-pill);
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
}

.gh-profile-page .nav-tabs .nav-link.active {
  background: var(--gh-glow-soft);
  color: var(--text-primary);
  font-weight: 600;
}

.gh-profile-page .tab-content .card,
.gh-profile-page .tab-content .living-module {
  margin-top: var(--gh-space-md);
}

.gh-profile-page .profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.gh-profile-page .profile-stats .stat-card {
  background: var(--bg-secondary);
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  min-width: 0;
}

.gh-profile-page .profile-stats .stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.gh-profile-page .profile-stats .stat-label {
  font-size: 0.62rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 0.15rem;
  display: block;
}

/* Auth panel — hide duplicate module title inside living-module */
.gh-auth-panel .living-module-header {
  display: none;
}

/* Platform invitation welcome modal (?invite=) */
#ghInviteWelcomeModal .modal-content {
  background: var(--card-bg, var(--bg-color));
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#ghInviteWelcomeModal .modal-header,
#ghInviteWelcomeModal .modal-footer {
  border-color: var(--border-color);
}

#ghInviteWelcomeModal .modal-title {
  color: var(--text-primary);
}

#ghInviteWelcomeModal .gh-invite-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

#ghInviteWelcomeModal .gh-invite-panel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--gh-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

#ghInviteWelcomeModal .gh-invite-panel--scroll {
  max-height: 10rem;
  overflow: auto;
}

#ghInviteWelcomeModal .gh-invite-passage {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gh-accent-blue, #667eea);
  border-radius: 0 var(--gh-radius-sm) var(--gh-radius-sm) 0;
}

#ghInviteWelcomeModal .border-top {
  border-color: var(--border-color) !important;
}

/* Styled alert / confirm dialogs */
.gh-dialog .modal-content {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg, var(--bg-color));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gh-dialog .modal-header {
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  gap: 0.75rem;
}

.gh-dialog .modal-footer {
  border-top: 1px solid var(--border-color);
  gap: 0.5rem;
}

.gh-dialog-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--gh-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gh-glow-soft);
  flex-shrink: 0;
}

.gh-dialog-icon {
  font-size: 1.1rem;
}

.gh-dialog-icon--success { color: #198754; }
.gh-dialog-icon--info { color: var(--accent-color, #667eea); }
.gh-dialog-icon--warning { color: #ffc107; }
.gh-dialog-icon--danger { color: #dc3545; }

.gh-dialog-title {
  font-weight: 700;
  margin-bottom: 0;
}

.gh-dialog-message {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Gov Hub brand utilities (site-wide) --- */
.badge.bg-primary {
  background: var(--gh-brand-gradient, var(--accent-color)) !important;
  border: 1px solid rgba(77, 159, 255, 0.25);
}

.nav-tabs .nav-link.active {
  color: var(--gh-accent-blue, var(--accent-color)) !important;
  border-bottom-color: var(--gh-accent-blue, var(--accent-color)) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(77, 159, 255, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(77, 159, 255, 0.15);
}

a {
  color: var(--gh-accent-blue, var(--accent-color));
}

a:hover {
  color: var(--gh-link-hover, var(--accent-hover));
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(77, 159, 255, 0.06);
}

.dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--gh-glass-border, var(--card-border));
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
  box-shadow: var(--shadow-hover);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(77, 159, 255, 0.1);
  color: var(--text-primary);
}

/* Global “Copied” feedback (invite modal, etc.) */
.gh-copy-toast-host {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1095;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.gh-copy-toast {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gh-glass-border, rgba(102, 126, 234, 0.4));
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: var(--gh-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--gh-glass-blur, blur(12px));
}

.gh-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gh-draft-notif-summary {
  margin-bottom: 0;
}

.gh-draft-notif-toggle .fa-chevron-down {
  transition: transform 0.2s ease;
}

.gh-draft-notif-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.gh-copy-toast.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}
