﻿/* =========================================================
   Music Industry Directory — Adobe Audition 3 palette
   Palette:
     #38322C — main background
     #4A433C — panel background
     #635A50 — borders / dividers / row gaps
     #7D7368 — muted text / icons
     #D9CEB2 — primary text
     #558A83 — accent (navigation, links, focus)
     #8C3220 — donate accent
   ========================================================= */

/* ===== Variables ===== */

:root {
  --bg-main:    #38322C;
  --bg-panel:   #4A433C;
  --border:     #635A50;
  --text-muted: #7D7368;
  --text-main:  #D9CEB2;
  --accent:     #558A83;
  --accent-donate: #8C3220;

  --col-width: 280px;
  --row-height: 36px;

  --font: Tahoma, Verdana, "Segoe UI", sans-serif;
  --fs-base: 12px;
  --fs-small: 11px;
  --fs-title: 16px;
}

/* ===== Base ===== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Header ===== */

.app-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}

.header-titles {
  min-width: 0;
}

.form-download {
  margin: 4px 0 20px;
}

.form-download .help-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.92em;
  letter-spacing: 0.01em;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.app-logo {
  height: 22px;
  width: auto;
}

.app-subtitle {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 720px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-input {
  width: 240px;
  padding: 6px 10px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font);
  font-size: var(--fs-base);
  outline: none;
  border-radius: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: color .12s, border-color .12s, background .12s;
}

.icon-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.icon-btn:active {
  background: var(--bg-main);
}

.donate-btn:hover {
  color: var(--accent-donate);
  border-color: var(--accent-donate);
}

/* ===== Layout ===== */

.app-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.col {
  min-height: 0;
  overflow-y: auto;
}

.col-categories,
.col-companies {
  width: var(--col-width);
  flex-shrink: 0;
  background: var(--bg-main);
  border-right: 1px solid var(--border);
}

.detail-scroll-wrapper {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
}

.col-detail {
  flex: 1 1 auto;
  min-width: 560px;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.col-reserve {
  width: 560px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.reserve-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* ===== Reserve: guide list ===== */

.reserve-guide-list {
  padding: 16px 20px;
}

.reserve-guide-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reserve-guide-items li {
  margin-bottom: 8px;
}

.reserve-guide-link {
  color: var(--accent);
  text-decoration: none;
  font-size: var(--fs-base);
  display: inline-block;
  padding: 4px 0;
}

.reserve-guide-link:hover {
  text-decoration: underline;
}

.reserve-guide-loading {
  padding: 16px 20px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Reserve: guide content ===== */

.reserve-guide {
  padding: 16px 20px 24px 20px;
  font-size: var(--fs-base);
  color: var(--text-main);
  line-height: 1.5;
}

.reserve-guide-back {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.reserve-guide-back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: var(--fs-small);
}

.reserve-guide-back-link:hover {
  text-decoration: underline;
}

.reserve-guide h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.reserve-guide h4 {
  margin: 20px 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.reserve-guide h5 {
  margin: 14px 0 6px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.reserve-guide p {
  margin: 0 0 8px 0;
}

.reserve-guide ul,
.reserve-guide ol {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.reserve-guide li {
  margin-bottom: 4px;
}

.reserve-guide .guide-intro {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
}

.reserve-guide code {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 1px 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: var(--text-main);
}

.reserve-guide .callout {
  margin: 10px 0;
  padding: 8px 12px;
  font-size: var(--fs-small);
  border-left: 3px solid var(--accent);
  background: var(--bg-main);
}

.reserve-guide .callout-warn {
  border-left-color: var(--accent-donate);
}

.reserve-guide .callout-note {
  border-left-color: var(--text-muted);
}

/* ===== Column header ===== */

/* Identical height in both columns */

.col-header {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 14px 0 17px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.col-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FCB900;
}

/* ===== Lists ===== */

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Row with 1px light divider between items (no top/bottom border on the list itself). */

.nav-list > li {
  position: relative;
  min-height: var(--row-height);
  padding: 0 14px 0 17px;
  cursor: pointer;
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
  user-select: none;
  display: flex;
  align-items: center;
}

.nav-list > li:hover {
  background: var(--bg-panel);
}

.nav-list > li.is-active {
  background: var(--bg-panel);
}

/* Green marker on every visible row — always shown, not only on active */
.nav-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

/* Active row: background change only — marker stays */
.nav-list > li.is-active {
  background: var(--bg-panel);
}

/* Category items */

.nav-list > li .cat-label {
  font-size: var(--fs-base);
  color: var(--text-main);
  font-weight: 700;
}

/* .cat-label is always bold — no weight change on active state */
.nav-list > li.is-active .cat-label {
  /* font-weight removed: label already bold to prevent layout shift */
}

/* Company items: two-line name + country badge. */

.nav-list-companies > li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 0;
  align-items: center;
}

.nav-list-companies .co-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 700;
  color: var(--text-main);
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-list-companies .co-fullname {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--fs-small);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.nav-list-companies .co-country {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 5px;
  border: 1px solid var(--border);
}

.nav-list-companies > li.is-active .co-country {
  color: var(--text-main);
  border-color: var(--accent);
}

/* ===== Empty hint ===== */

/* Shown in the middle column before a category is selected */

.empty-hint {
  padding: 14px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Detail column ===== */

.breadcrumbs {
  position: relative;
  padding: 0 20px 0 23px;
  height: 34px;
  display: flex;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  flex-shrink: 0;
}

.breadcrumbs::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FCB900;
}

.breadcrumbs .crumb-sep {
  margin: 0 6px;
  color: var(--border);
}

.breadcrumbs .crumb-current {
  color: var(--text-main);
  font-weight: 700;
}

/* ===== Copy data button ===== */

.copy-data-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  min-width: 75px;
  height: 22px;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.copy-data-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

.text-default {
  transform: translateY(0);
}

.text-success {
  transform: translateY(100%);
  color: #32B741;
}

.copy-data-btn.is-active .text-default {
  transform: translateY(-100%);
}

.copy-data-btn.is-active .text-success {
  transform: translateY(0);
}

.text-success.is-blinking {
  animation: blink-text-anim 0.3s 2;
}

@keyframes blink-text-anim {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ===== Detail body ===== */

.detail-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ===== Company card ===== */

.company-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 18px;
  align-items: start;
}

.company-logo {
  width: 72px;
  height: 72px;
  background: var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.company-head {
  min-width: 0;
}

.company-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.company-fullname {
  margin: 2px 0 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.company-country-line {
  margin: 6px 0 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.company-country-line strong {
  color: var(--text-main);
  font-weight: 700;
}

.company-description {
  margin: 18px 0 0 0;
  color: var(--text-main);
  opacity: 0.92;
}

.company-contact-block {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  row-gap: 6px;
  align-items: baseline;
  max-width: 640px;
}

.contact-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
}

.contact-line {
  font-size: var(--fs-base);
  color: var(--text-main);
  word-break: break-word;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.contact-line .sep {
  color: var(--text-muted);
  margin: 0 6px;
}

.help-link-row {
  margin-top: 22px;
}

.help-link {
  display: inline-block;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: var(--fs-base);
}

.help-link:hover {
  background: var(--accent);
  color: var(--bg-main);
}

/* Company notes (visible caveats under the card) */

.company-notes {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
}

.company-notes .notes-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Company info block (generic key-value rows: membership, payouts, etc.) */

.company-info-block {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 4px;
  max-width: 640px;
}

.info-line {
  font-size: var(--fs-base);
  color: var(--text-main);
}

.info-line .info-label {
  color: var(--text-muted);
  font-weight: 700;
}

/* ===== Submissions badge ===== */

.company-submissions {
  margin-top: 18px;
  font-size: var(--fs-base);
  color: var(--text-main);
}

.submissions-label {
  color: var(--text-muted);
  font-weight: 700;
}

.sub-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.3px;
  border: 1px solid currentColor;
}

.sub-badge-open {
  color: #32B741;
}

.sub-badge-selective {
  color: #FCB900;
}

.sub-badge-closed {
  color: #CB472F;
}

/* ===== Type badge (major / indie / admin) ===== */

.company-type-line {
  margin: 4px 0 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.type-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.type-major {
  color: var(--text-main);
}

.type-indie {
  color: #527CFF;
}

.type-admin {
  color: #32B741;
}

/* ===== Services ===== */

.company-services {
  margin-top: 12px;
  font-size: var(--fs-base);
  color: var(--text-main);
  line-height: 1.5;
}

.services-label {
  color: var(--text-muted);
  font-weight: 700;
}

/* ===== Toast ===== */

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-panel);
  border: 1px solid var(--accent);
  color: var(--text-main);
  padding: 8px 16px;
  font-size: var(--fs-base);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {

  .app-body {
    min-width: 0;
    overflow-x: visible;
  }

  .col-detail {
    min-width: 0;
  }

  .col-reserve {
    display: none;
  }

  .app-body {
    flex-wrap: wrap;
  }

  .col-categories {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .col-categories .col-header {
    height: 28px;
    padding: 0 14px;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .nav-list > li {
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 10px 16px;
    white-space: nowrap;
    min-height: auto;
    display: flex;
    align-items: center;
  }

  .nav-list > li:last-child {
    border-right: none;
  }

  .nav-list > li::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
  }

  .col-companies {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 40vh;
  }

  .col-detail {
    width: 100%;
    min-height: 60vh;
  }

  .header-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .search-input {
    width: 180px;
  }
}

/* ===== Glossary ===== */

.glossary p strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05em;
  font-weight: 600;
  color: var(--text-primary, #e8e8e8);
  letter-spacing: 0.01em;
}

.glossary p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== Modal base ===== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 12, 8, 0.65);
  backdrop-filter: blur(2px);
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  padding: 28px 30px 22px;
  background: #D9CEB2;
  color: #38322C;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.modal-btn {
  padding: 7px 18px;
  background: transparent;
  color: #38322C;
  border: 2px solid #38322C;
  border-radius: 4px;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.modal-btn:hover {
  background: #38322C;
  color: #D9CEB2;
}

/* ===== About modal ===== */

.about-logo {
  text-align: center;
  margin-bottom: 16px;
}

.about-logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.about-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #38322C;
  text-align: center;
  letter-spacing: 0.2px;
}

.about-subtitle {
  margin: 0 0 20px;
  font-size: var(--fs-small);
  color: #38322C;
  opacity: 0.65;
  text-align: center;
}

.about-grid {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #E6DBBF;
  border-radius: 4px;
}

.about-grid-inner {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 12px;
  font-size: var(--fs-small);
}

.about-grid-inner > div:nth-child(odd) {
  font-weight: 700;
  color: #38322C;
}

.about-grid-inner > div:nth-child(even) {
  color: #38322C;
  opacity: 0.85;
}

.about-description {
  margin: 0 0 20px;
  font-size: var(--fs-base);
  color: #38322C;
  line-height: 1.55;
}

.about-actions {
  display: flex;
  justify-content: flex-end;
}

/* ===== Scrollbars (MME style) ===== */

.col,
.detail-body,
.detail-scroll-wrapper,
.reserve-body {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg-main);
}

.col::-webkit-scrollbar,
.detail-body::-webkit-scrollbar,
.detail-scroll-wrapper::-webkit-scrollbar,
.reserve-body::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.col::-webkit-scrollbar-track,
.detail-body::-webkit-scrollbar-track,
.detail-scroll-wrapper::-webkit-scrollbar-track,
.reserve-body::-webkit-scrollbar-track {
  background: var(--bg-main);
}

.col::-webkit-scrollbar-thumb,
.detail-body::-webkit-scrollbar-thumb,
.detail-scroll-wrapper::-webkit-scrollbar-thumb,
.reserve-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.col::-webkit-scrollbar-thumb:hover,
.detail-body::-webkit-scrollbar-thumb:hover,
.detail-scroll-wrapper::-webkit-scrollbar-thumb:hover,
.reserve-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== Donate modal ===== */

.donate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.modal-btn.is-primary {
  display: inline-block;
  padding: 7px 18px;
  background: #38322C;
  color: #D9CEB2;
  border: 2px solid #38322C;
  border-radius: 4px;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.modal-btn.is-primary:hover {
  background: #558A83;
  border-color: #558A83;
  color: #D9CEB2;
}

.donate-qr {
  text-align: center;
  margin-top: 18px;
}

.donate-qr img {
  max-width: 220px;
  border-radius: 4px;
  border: 2px solid #38322C;
}

/* ===== Glossary mode ===== */

.detail-body.glossary-mode {
  padding: 0;
  background: var(--bg-main);
}

/* ---------- Global search results ---------- */

.nav-list > li.search-group-header {
  padding: 10px 14px 6px 17px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  min-height: auto;
  display: block;
  cursor: default;
}

.nav-list > li.search-group-header::before {
  display: none;
}

.nav-list > li.search-result-item {
  padding: 10px 14px 10px 17px;
  cursor: pointer;
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.nav-list > li.search-result-item::before {
  display: none;
}

.nav-list > li.search-result-item:hover {
  background: var(--bg-panel);
}

.search-result-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.search-result-match {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}

.search-result-match mark {
  background: var(--accent);
  color: var(--bg-main);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- Glossary search highlight ---------- */

@keyframes glossaryPulse {
  0%, 100% { background: transparent; }
  25%, 75% { background: rgba(85, 138, 131, 0.3); }
}

.glossary-highlight {
  animation: glossaryPulse 1.2s ease-in-out 2;
  border-radius: 4px;
  scroll-margin-top: 10px;
}

/* ---------- Back to search button ---------- */

.back-to-search-btn {
  margin-left: 12px;
  padding: 2px 8px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.12s, color 0.12s;
}

.back-to-search-btn:hover {
  background: var(--accent);
  color: var(--bg-main);
}