.welcome {
	color: red;
}

/* Global gradient background */
.gp-gradient {
  background-color: var(--gp-color-bg);
  min-height: 100vh;
}

.nunito-sans-900 {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

/* Card focus states */
.card:focus-within, .card:focus {
  outline: var(--gp-focus-ring-width) solid var(--gp-focus-ring-color);
  outline-offset: var(--gp-focus-ring-offset);
}

/* Button focus visible */
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: var(--gp-focus-ring-width) solid var(--gp-focus-ring-color) !important;
  outline-offset: var(--gp-focus-ring-offset);
}

.gp-navbar-dark { background-color: #333333; }
.hero-lede { color: #111; }
.hero-sublede { color: #444; }
.category-chip { border-radius: 9999px; padding: 4px 10px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.8); }
.category-chip:hover { background: #fff; }

/* v0.03: Global design tokens */
:root {
  /* Colors */
  --gp-color-bg: #000000;
  --gp-color-surface: #0f1525;
  --gp-color-surface-muted: #0b1220;
  --gp-color-surface-pronounced: #1a3469;
  --gp-color-text: #dbe4ff;
  --gp-color-muted: #8aa0b3;
  --gp-color-accent: #D96D4B;
  --gp-color-tertiary: #8D9EDC;

  /* Radii */
  --gp-radius-sm: 8px;
  --gp-radius-md: 12px;
  --gp-radius-lg: 16px;
  --gp-radius-xl: 20px;
  --gp-radius-card: 24px;
  --gp-radius-chip: 12px;

  /* Shadows */
  --gp-shadow-sm: 0 2px 6px -2px rgba(0,0,0,0.12);
  --gp-shadow-md: 0 6px 18px -8px rgba(0,0,0,0.18);
  --gp-shadow-lg: 0 12px 36px -18px rgba(0,0,0,0.22);

  /* Motion */
  --gp-transition-fast: 120ms cubic-bezier(0.2, 0, 0, 1);
  --gp-transition-base: 200ms cubic-bezier(0.2, 0, 0, 1);

  /* Typography */
  --gp-font-sans: "Nunito Sans", sans-serif;
  --gp-font-weight-regular: 400;
  --gp-font-weight-medium: 600;
  --gp-font-weight-bold: 700;
  --gp-font-weight-extrabold: 900;

  --gp-display-1-size: 48px;
  --gp-display-1-line: 1.1;

  /* Glass and hero */
  --gp-glass-bg: rgba(17,24,39,0.55);
  --gp-glass-border: 1px solid rgba(255,255,255,0.08);
  --gp-glass-blur: 16px;
  --gp-grad-hero: radial-gradient(700px 420px at 50% 5%, rgba(120,168,255,0.18), rgba(255,255,255,0) 60%), radial-gradient(800px 520px at 50% -10%, rgba(16,58,219,0.25), rgba(255,255,255,0) 70%);

  /* Nav glass tokens */
  --gp-nav-bg: rgba(10,16,30,0.65);
  --gp-nav-blur: 12px;
  --gp-nav-border: 1px solid rgba(255,255,255,0.06);
  --gp-nav-shadow: 0 8px 24px -8px rgba(0,0,0,0.2);

  /* Focus ring */
  --gp-focus-ring-color: var(--gp-color-accent);
  --gp-focus-ring-width: 2px;
  --gp-focus-ring-offset: 2px;
}

/* Base link styling */
a {
  color: var(--gp-color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover,
a:active { color: var(--gp-color-accent); opacity: 0.9; }

/* Ensure buttons/controls keep their own styles */
.control a { text-decoration: none; }

/* Base layout */
.gp-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.gp-display-1 {
  font-family: var(--gp-font-sans);
  font-weight: var(--gp-font-weight-extrabold);
  font-size: var(--gp-display-1-size);
  line-height: var(--gp-display-1-line);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Controls */
.control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--gp-radius-md);
  border: 1px solid transparent;
  font-weight: var(--gp-font-weight-medium);
  transition: background-color var(--gp-transition-base), color var(--gp-transition-base), border-color var(--gp-transition-base), transform var(--gp-transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.control.is-disabled,
.control[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.control--btn {
  padding: 0.5rem 2rem;
  min-height: 44px;
  border-radius: var(--gp-radius-md);
}

.control--btn.control--accent {
  background-color: var(--gp-color-accent);
  background: var(--gp-color-accent);
  color: #fff;
  border: 1px solid #E39E3F;
  box-shadow: 0 0.92px 0.92px 0 rgba(0,0,0,0.40), inset 0 1.84px 1.84px 0 rgba(255,255,255,0.29);

}

.control--btn.control--accent:hover {
  filter: brightness(0.95);
}

.dropdown-item--btn {
  background-color: var(--gp-color-accent);
  background: var(--gp-color-accent);
  color: #fff;
  border: 1px solid #E39E3F;
  box-shadow: 0 0.92px 0.92px 0 rgba(0,0,0,0.40), inset 0 1.84px 1.84px 0 rgba(255,255,255,0.29);
  max-width: calc(100% - 16px);
  margin-left: 8px;
  margin-bottom: 8px;

}

.dropdown-item--btn:hover {
  filter: brightness(0.95);
  background-color: var(--gp-color-accent);

}

.control--btn.control--tertiary {
  background-color: var(--gp-color-tertiary);
  background: var(--gp-color-tertiary);
  color: #355073;
  border: 1px solid #8D9EDC;
  box-shadow: 0 0.92px 0.92px 0 rgba(0,0,0,0.40), inset 0 1.84px 1.84px 0 rgba(255,255,255,0.29);

}

.control--btn.control--tertiary:hover {
  filter: brightness(0.95);
}

.control--btn.control--outline {
  background-color: transparent;
  border-color: var(--gp-color-accent);
  color: var(--gp-color-accent);
}


.control--btn.control--outline:hover {
  background-color: rgba(13,110,253,0.08);
}

.control--btn.control--outline-danger {
  background-color: transparent;
  border-color: #ff00aa;
  color: #ff00aa;
}


.control--btn.control--outline-danger:hover {
  background-color: #ff00aa;
  color: #ffffff;
}

.control--btn.control--muted {
  background-color: transparent;
  border-color: transparent;
  color: #ffffff;
}

.control--btn.control--outline:hover {
  background-color: rgba(13,110,253,0.08);
}


.control--btn.control--outline-tertiary {
  background-color: transparent;
  border-color: var(--gp-color-tertiary);
  color: var(--gp-color-tertiary);
}

.control--btn.control--outline-tertiary:hover {
  background-color: rgba(13,110,253,0.08);
}
.control--chip {
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--gp-radius-chip);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--gp-color-text);
}

.control--chip:hover {
  background: #fff;
}

.control--chip.is-active,
.control--chip[aria-pressed="true"] {
  background-color: rgba(13,110,253,0.12);
  border-color: rgba(13,110,253,0.35);
  color: var(--gp-color-accent);
}

/* Surfaces */
.surface {
  background: rgba(3, 15, 36, 0.60);
  border-radius: var(--gp-radius-lg);
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.30), inset 0 1px 1px 0 rgba(255,255,255,0.12);
  padding: 2rem 1rem;
}

.surface--card {
  box-shadow: var(--gp-shadow-lg);
  border-radius: var(--gp-radius-lg);
  box-shadow: 0 1px 1px 0 rgba(75, 75, 75, 0.40), 0 1px 1px 0 rgba(255, 255, 255, 0.25) inset, 0 2px 2px 0 rgba(255, 255, 255, 0.30) inset;
}

.surface--panel {
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-md);
}

.surface--glass {
  background: var(--gp-glass-bg);
  -webkit-backdrop-filter: blur(var(--gp-glass-blur));
  backdrop-filter: blur(var(--gp-glass-blur));
  border: var(--gp-glass-border);
}

/* Prompt grid */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 576px) {
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Avatars */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  font-weight: var(--gp-font-weight-bold);
}

.avatar--sm { width: 24px; height: 24px; font-size: 12px; }
.avatar--md { width: 32px; height: 32px; font-size: 14px; }
.avatar--lg { width: 40px; height: 40px; font-size: 16px; }
.avatar--fill { width: 100%; height: 0; padding-bottom: 100%; position: relative; overflow: hidden; }
.avatar--image { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Ensure images fill ratio-based avatar containers */
.avatar--fill > .avatar--image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--gp-radius-chip);
  font-size: 12px;
  font-weight: var(--gp-font-weight-medium);
}
.pill--chip { border-color: rgba(56,189,248,.35);
  color: #ffffff;
  background: radial-gradient(108.11% 108.11% at 50% 0%, rgba(18, 36, 120, 0.80) 35.1%, rgba(32, 56, 171, 0.80) 62.5%, rgba(126, 125, 192, 0.80) 82.69%, rgba(73, 63, 126, 0.80) 100%);
  backdrop-filter: blur(12);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.20), 0 1px 1px 0 rgba(255, 255, 255, 0.30) inset, 0 6.682px 6.682px 0 rgba(0, 0, 0, 0.10);}

.pill--featured {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(217,109,75,0.9) 0%, rgba(217,109,75,0.75) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 2px rgba(0,0,0,0.25), inset 0 1px 1px rgba(255,255,255,0.20);
}

.pill--muted { background: #eef2f7; color: #495057; }
.pill--success { background: #e8f5e9; color: #2e7d32; }
.pill--warning { background: #fff8e1; color: #b26a00; }
.pill--info { background: #e3f2fd; color: #1565c0; }

/* Nav */
.gp-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  -webkit-backdrop-filter: blur(var(--gp-nav-blur));
  backdrop-filter: blur(var(--gp-nav-blur));
  border-bottom: var(--gp-nav-border);
  box-shadow: var(--gp-nav-shadow);
}

.gp-nav .gp-nav__cta .control--btn { margin-left: 8px; }

/* Forms */
.field { margin-bottom: 16px; }
.field--lg { margin-bottom: 20px; }
.label { display: block; margin-bottom: 8px; font-weight: var(--gp-font-weight-medium); color: #ffffff; }
.text-white { color: #ffffff; }
.input, .textarea, .select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--gp-radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--gp-color-surface);
  transition: border-color var(--gp-transition-fast), box-shadow var(--gp-transition-fast);
}
.textarea { min-height: 120px; }

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--gp-color-accent);
  outline: var(--gp-focus-ring-width) solid var(--gp-focus-ring-color);
  outline-offset: var(--gp-focus-ring-offset);
}
.help { color: var(--gp-color-muted); font-size: 12px; margin-top: 6px; }
.field--error .input, .field--error .textarea, .field--error .select { border-color: #dc3545; }
.error { color: #dc3545; font-size: 12px; margin-top: 6px; }

/* Profile/Detail helpers */
.profile-header { display: flex; align-items: center; gap: 12px; }
.profile-name { font-weight: var(--gp-font-weight-bold); }
.profile-handle { color: var(--gp-color-muted); }
.profile-meta { color: var(--gp-color-muted); font-size: 12px; }
.profile-bio { color: var(--gp-color-text); }

.stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; color: var(--gp-color-muted); padding: 48px 0; }

.detail-title { font-weight: var(--gp-font-weight-bold); }
.detail-meta { color: var(--gp-color-muted); font-size: 12px; }
.detail-grid { display: grid; gap: 24px; }
@media (min-width: 992px) {
  .detail-grid { grid-template-columns: 1fr 360px; }
}
.panel-header { display: flex; align-items: center; gap: 8px; }
.view-toggle .control--chip { min-height: 28px; padding: 4px 10px; }

/* Hero */
.gp-hero {
  background: #000000;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Plaintext preview block */
.plaintext-preview {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.4;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-muted-2 { color: var(--gp-color-muted); }

/* Global focus ring for common interactive elements */
button:focus-visible,
a:focus-visible,
.control:focus-visible,
.surface:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--gp-focus-ring-width) solid var(--gp-focus-ring-color);
  outline-offset: var(--gp-focus-ring-offset);
}

/* A11y: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ensure readable text on surfaces */
.surface { color: var(--gp-color-text); }
.surface--glass { color: var(--gp-color-text); }

/* Explicit focus ring on key controls (uses tokens) */
.control--btn:focus-visible,
.control--chip:focus-visible {
  outline: var(--gp-focus-ring-width) solid var(--gp-focus-ring-color);
  outline-offset: var(--gp-focus-ring-offset);
}

.hero-text { font-size: 4rem; }

/* Mobile performance: reduce heavy shadows */
@media (max-width: 576px) {
  .surface--card { box-shadow: var(--gp-shadow-md); }
  .surface--panel { box-shadow: var(--gp-shadow-sm); }
  .hero-text { font-size: 3rem; }
  .search-bar__input { font-size: 0.875rem; }
}

/* Fallback when blur is unsupported: use more opaque background */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .gp-nav { background: rgba(255,255,255,0.92); border-bottom: 1px solid rgba(0,0,0,0.08); }
  .surface--glass { background: rgba(255,255,255,0.92); }
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(var(--gp-glass-blur));
  backdrop-filter: blur(var(--gp-glass-blur));
}
.search-bar__icon { color: var(--gp-color-muted); display:inline-flex; }
.search-bar__input { flex: 1; background: transparent; border: 0; color: var(--gp-color-text); font-size: 1rem; }
.search-bar__input::placeholder { color: var(--gp-color-muted); }
@media (max-width: 576px) {
  .search-bar__input { font-size: 0.66rem !important; }
}

.search-bar__btn { flex: 0 0 auto; }

/* Landing hero background */
.gp-hero { position: relative; overflow: hidden; background: #000000; }

.gp-hero > .gp-container { position: relative; z-index: 1; }

/* Hero overlay to increase headline contrast */
.gp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

/* Larger headline on wide screens */
@media (min-width: 1200px) {
  .gp-display-1 { font-size: 60px; letter-spacing: -0.015em; font-weight: 800; }
}

/* Search bar refinements */
.search-bar { border-radius: 20px; padding: 10px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.search-bar__btn { min-height: 36px; }

/* Dark chip variants */
.control--chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.control--chip:hover { background: rgba(255,255,255,.1); }
.control--chip.is-active, .control--chip[aria-pressed="true"] {
  border-color: rgba(56,189,248,.35);
  color: #9fd9ff;
  border-radius: var(--gp-radius-chip);
  background: radial-gradient(108.11% 108.11% at 50% 0%, rgba(18, 36, 120, 0.80) 35.1%, rgba(32, 56, 171, 0.80) 62.5%, rgba(126, 125, 192, 0.80) 82.69%, rgba(73, 63, 126, 0.80) 100%);
  backdrop-filter: blur(12);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.20), 0 1px 1px 0 rgba(255, 255, 255, 0.30) inset, 0 6.682px 6.682px 0 rgba(0, 0, 0, 0.10);
  
}

/* Card glow and radius */
.surface--card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 1px 0 rgba(75,75,75,0.40),
    inset 0 1px 1px 0 rgba(255,255,255,0.12),
    0 10px 30px -18px rgba(0,0,0,0.85);
}
.surface--card:hover { box-shadow: 0 14px 44px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(56,189,248,.25) inset; }
.card-title { font-weight: 700; letter-spacing: -0.01em; }
.card-body p { margin-bottom: 0; }

/* Denser grid and wider container for 4 cols on 1440 */
.gp-container { max-width: 1280px; }
.prompt-grid { gap: 20px; }

/* Hero image intensity */
.gp-hero::before { opacity: 0.32; background-position: center 20%; }

/* Hero headline tweaks */
.gp-hero .gp-display-1 {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  color: #ecf2ff;
  text-shadow: 0 6px 40px rgba(16,58,219,0.25), 0 2px 12px rgba(0,0,0,0.45);
}

/* Hero spacing balance */
.gp-hero > .gp-container { padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 1200px) {
  .gp-hero > .gp-container { padding-top: 80px; padding-bottom: 56px; }
}

/* Framed hero image under the search bar */
.hero-scene {
  position: relative;
  max-width: 50%;
  margin: -20% auto 8px;
  z-index: -10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(120,140,180,.18) inset;
}
.hero-scene img { display: block; width: 100%; height: auto; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 160px at 50% 28%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}

.counter-badge {
  background-color: var(--gp-color-surface-pronounced);
  color: #ffffff;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
}

/* Global page background image helper (non-landing pages) */
.has-gradient-bg {
  background-image: url('../images/gradient-bg.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  min-height: 100vh;
}

/* No-JS radio chips */
.chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-input:checked + .control--chip {
  border-color: rgba(56,189,248,.35);
  color: #9fd9ff;
  border-radius: var(--gp-radius-chip);
  background: radial-gradient(108.11% 108.11% at 50% 0%, rgba(18, 36, 120, 0.80) 35.1%, rgba(32, 56, 171, 0.80) 62.5%, rgba(126, 125, 192, 0.80) 82.69%, rgba(73, 63, 126, 0.80) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.20), 0 1px 1px 0 rgba(255, 255, 255, 0.30) inset, 0 6.682px 6.682px 0 rgba(0, 0, 0, 0.10);
}
.chip-input:focus-visible + .control--chip {
  outline: var(--gp-focus-ring-width) solid var(--gp-focus-ring-color);
  outline-offset: var(--gp-focus-ring-offset);
}
@media (max-width: 576px) {
  .control--btn {
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
  }
}

/* Dark theme autofill overrides */
.search-bar__input:-webkit-autofill,
.search-bar__input:-webkit-autofill:hover,
.search-bar__input:-webkit-autofill:focus,
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--gp-color-text) !important;
	caret-color: var(--gp-color-text) !important;
	/* Fill the field to suppress the default yellow background */
	box-shadow: 0 0 0 1000px var(--gp-color-surface) inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* Firefox */
.search-bar__input:-moz-autofill,
.input:-moz-autofill {
	/* Firefox respects background-color */
	background-color: var(--gp-color-surface) !important;
	color: var(--gp-color-text) !important;
	caret-color: var(--gp-color-text) !important;
}