/* === Quotes & Echoes Styles v2.6.3 === */
/* Light UI */
.qe-archive.light,
.qe-single.light {
  --qe-max: 1620px;
  --qe-min-card: 560px;
  padding: 1rem 0 2rem;
  color: #111;
}

/* Archive Header */
.qe-archive-header {
  max-width: var(--qe-max);
  margin: 0 auto 1rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Filters Row */
.qe-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0;
  width: 100%;
}

.qe-filters input[type="text"] {
  padding: 0.6rem 0.8rem;
  border: 1px solid #d7dbe3;
  border-radius: 0.75rem;
  background: #fff;
  height: 36px;
}

/* Reset Button — fully centered and polished */
.qe-filters #qe-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 0.75rem;
  background: #2b5cdb;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.qe-filters #qe-filter-reset:hover {
  background: #3b6cff;
}

.qe-filters #qe-filter-reset:active {
  transform: translateY(1px);
}

.qe-filters #qe-filter-reset:focus-visible {
  outline: 2px solid #8fb0ff;
  outline-offset: 2px;
}

/* Results Counter */
.results-bar {
  width: 100%;
  text-align: left;
  margin: 0.15rem 0 1rem 0;
}

#qe-results-count {
  color: #9aa0a6;
  font-size: 0.875rem;
}

/* Grid Layout */
.qe-grid {
  max-width: var(--qe-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--qe-min-card), 1fr));
  gap: 1rem;
}

/* Quote Cards */
.qe-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.qe-media {
  display: block;
  background: #fff;
}

.qe-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.qe-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f1f3f7;
}

.qe-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qe-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.qe-title a {
  color: #111;
  text-decoration: none;
}

.qe-title a:hover {
  text-decoration: underline;
}

.qe-summary {
  color: #475569;
  margin: 0;
}

.qe-badges,
.qe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.qe-badge,
.qe-chip {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #f1f3f7;
  border: 1px solid #e6e9f1;
}

.qe-card-cta {
  margin-top: 0.4rem;
}

/* Single Quote Page */
.qe-single-article {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.qe-single-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
}

.qe-single-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.qe-single-meta {
  padding: 1.25rem;
}

.qe-single-title {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
}

.qe-single-summary {
  margin: 0.25rem 0 1rem;
  color: #475569;
}

.qe-single-content {
  padding: 1rem 1.25rem 1.5rem;
  color: #111;
}

/* Forms */
.qe-form {
  max-width: 900px;
  margin: 1rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.qe-field {
  margin-bottom: 1rem;
}

.qe-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.qe-field input[type="text"],
.qe-field input[type="file"],
.qe-field textarea,
.qe-field input[type="url"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d7dbe3;
  border-radius: 0.5rem;
}

.qe-actions {
  display: flex;
  gap: 0.5rem;
}

.qe-thumb img {
  max-height: 120px;
  border-radius: 0.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Tag Selector */
.qe-tags-wrap {
  background: #0b1020;
  color: #e7ecf6;
  border: 1px solid #1b2236;
  border-radius: 0.6rem;
  padding: 0.6rem;
}

.qe-tags-wrap .fqe2-tag-filter {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #2b3552;
  background: #101630;
  border-radius: 0.5rem;
  color: #e7ecf6;
  margin-bottom: 0.5rem;
}

.fqe2-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
  max-height: 260px;
  overflow: auto;
  padding: 0.25rem;
}

.fqe2-tag-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #0f152b;
  border: 1px solid #223058;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  color: #dfe7fb;
}

.fqe2-tag-item input[type="checkbox"] {
  transform: scale(1.2);
}

.fqe2-tag-new {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Related Chooser */
.qe-related-control {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 0.5rem;
  padding: 0.6rem;
}

.fqe2-related-results {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 0.5rem;
  margin-top: 0.4rem;
  max-height: 220px;
  overflow: auto;
}

.fqe2-related-results .row {
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f7;
}

.fqe2-related-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.fqe2-related-selected .qe-chip {
  background: #fff;
}

.qe-ext-new {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

@media (max-width: 720px) {
  .qe-ext-new {
    grid-template-columns: 1fr;
  }
}

/* Compact Cards */
.qe-compact .qe-body {
  padding: 0.65rem;
}

.qe-compact .qe-title {
  font-size: 1rem;
}

/* Meta Spacing Fixes */
.qe-meta-title {
  font-weight: 700;
  margin: 0.25rem 0 0.25rem;
}

.qe-single .qe-tags + .qe-meta-title {
  margin-top: 0.5rem;
}

.qe-single .qe-tags {
  margin-bottom: 0.6rem;
}
/* === Firmament Q&E – Reset Button Alignment & Hover Fix v2.6.3b === */
.qe-filters #qe-filter-reset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;            /* override theme’s 50px min height */
  min-height: unset !important;       /* remove inherited var(--theme-button-min-height) */
  line-height: 1 !important;          /* ensure vertical centering */
  padding: 0 1rem !important;
  border-radius: .75rem !important;
  background: #2b5cdb !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .05s ease !important;
  box-shadow: none !important;
}

/* Subtle glow or brightness shift on hover */
.qe-filters #qe-filter-reset:hover {
  background: #3b6cff !important;
  box-shadow: 0 0 10px rgba(59,108,255,0.3) !important;
}

/* Active press feedback */
.qe-filters #qe-filter-reset:active {
  transform: translateY(1px) !important;
}

/* Focus ring (keyboard accessibility) */
.qe-filters #qe-filter-reset:focus-visible {
  outline: 2px solid #8fb0ff !important;
  outline-offset: 2px;
}
