/* BAHAMUT COMMERCE — Germination Desk Manual (unique bulletin layout) */

.page-help.a29-hd {
  background: var(--a29-cream);
}

/* —— Masthead —— */
.a29-hd-mast {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background: var(--a29-emerald-dark);
  color: var(--a29-white);
  overflow: hidden;
}

.a29-hd-mast-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--a29-mustard) 0,
    var(--a29-mustard) 28px,
    var(--a29-tomato) 28px,
    var(--a29-tomato) 56px,
    var(--a29-emerald) 56px,
    var(--a29-emerald) 84px
  );
}

.a29-hd-mast::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--a29-cream));
  pointer-events: none;
}

.a29-hd-mast-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: end;
}

.a29-hd-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a29-mustard);
}

.a29-hd-title {
  margin: 0 0 0.75rem;
  font-family: var(--a29-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 12ch;
}

.a29-hd-title em {
  font-style: italic;
  color: var(--a29-mustard);
}

.a29-hd-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.a29-hd-search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.a29-hd-search-bar {
  display: flex;
  align-items: stretch;
  background: var(--a29-white);
  border: 2px solid var(--a29-mustard);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}

.a29-hd-search-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--a29-emerald-dark);
  background: var(--a29-linen);
  border-right: 1px solid var(--a29-linen);
  white-space: nowrap;
}

.a29-hd-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.8rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--a29-ink);
  outline: none;
}

.a29-hd-search-bar button {
  border: none;
  padding: 0 1.1rem;
  background: var(--a29-tomato);
  color: var(--a29-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.a29-hd-search-bar button:hover {
  background: var(--a29-emerald);
}

.a29-hd-temp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 1rem;
}

.a29-hd-temp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.a29-hd-temp-node:hover {
  background: rgba(255, 255, 255, 0.12);
}

.a29-hd-temp-node.is-active {
  background: var(--a29-white);
  color: var(--a29-emerald-dark);
  border-color: var(--a29-white);
  transform: translateY(-2px);
}

.a29-hd-temp-node.accent-emerald.is-active { box-shadow: inset 0 -3px 0 var(--a29-emerald); }
.a29-hd-temp-node.accent-mustard.is-active { box-shadow: inset 0 -3px 0 var(--a29-mustard); }
.a29-hd-temp-node.accent-tomato.is-active { box-shadow: inset 0 -3px 0 var(--a29-tomato); }
.a29-hd-temp-node.accent-ink.is-active { box-shadow: inset 0 -3px 0 var(--a29-ink); }

.a29-hd-temp-num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.a29-hd-temp-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Board —— */
.a29-hd-board {
  padding: 2rem 0 3.5rem;
  margin-top: -1rem;
}

.a29-hd-board-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 240px;
  gap: 1.25rem;
  align-items: start;
}

/* Folder tabs */
.a29-hd-folders {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 140px;
}

.a29-hd-folder {
  position: relative;
  text-align: left;
  padding: 0.85rem 0.85rem 0.85rem 1.1rem;
  border: 1px solid var(--a29-linen);
  border-left-width: 4px;
  background: var(--a29-white);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.a29-hd-folder strong {
  display: block;
  font-size: 0.92rem;
  color: var(--a29-ink);
}

.a29-hd-folder small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--a29-muted);
  line-height: 1.35;
}

.a29-hd-folder-lane {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a29-muted);
}

.a29-hd-folder-tab {
  position: absolute;
  top: -8px;
  left: 12px;
  width: 48px;
  height: 10px;
  background: inherit;
  border: 1px solid var(--a29-linen);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.a29-hd-folder.accent-emerald { border-left-color: var(--a29-emerald); }
.a29-hd-folder.accent-mustard { border-left-color: var(--a29-mustard); }
.a29-hd-folder.accent-tomato { border-left-color: var(--a29-tomato); }
.a29-hd-folder.accent-ink { border-left-color: var(--a29-ink); }

.a29-hd-folder:hover {
  transform: translateX(4px);
  box-shadow: var(--a29-shadow);
}

.a29-hd-folder.is-active {
  transform: translateX(8px);
  box-shadow: var(--a29-shadow);
  border-color: var(--a29-emerald);
  z-index: 1;
}

.a29-hd-folder.is-active.accent-emerald { background: linear-gradient(90deg, rgba(11, 110, 79, 0.08), var(--a29-white)); }
.a29-hd-folder.is-active.accent-mustard { background: linear-gradient(90deg, rgba(255, 193, 7, 0.12), var(--a29-white)); }
.a29-hd-folder.is-active.accent-tomato { background: linear-gradient(90deg, rgba(228, 87, 46, 0.08), var(--a29-white)); }
.a29-hd-folder.is-active.accent-ink { background: linear-gradient(90deg, rgba(20, 20, 20, 0.06), var(--a29-white)); }

/* Ledger sheet */
.a29-hd-ledger {
  position: relative;
  min-height: 420px;
}

.a29-hd-sheet {
  display: none;
  background: var(--a29-white);
  border: 1px solid var(--a29-linen);
  box-shadow: var(--a29-shadow);
}

.a29-hd-sheet.is-active {
  display: block;
}

.a29-hd-sheet-perf {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 6px,
      var(--a29-linen) 6px,
      var(--a29-linen) 12px
    );
  border-bottom: 1px dashed var(--a29-linen);
}

.a29-hd-sheet-head {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--a29-linen);
}

.a29-hd-sheet-stamp {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--a29-emerald);
  border-radius: 50%;
  text-align: center;
  line-height: 1.1;
}

.a29-hd-sheet-stamp span {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a29-muted);
}

.a29-hd-sheet-stamp strong {
  font-family: var(--a29-font-display);
  font-size: 1.1rem;
  color: var(--a29-emerald-dark);
}

.a29-hd-sheet.accent-mustard .a29-hd-sheet-stamp { border-color: var(--a29-mustard); }
.a29-hd-sheet.accent-tomato .a29-hd-sheet-stamp { border-color: var(--a29-tomato); }
.a29-hd-sheet.accent-ink .a29-hd-sheet-stamp { border-color: var(--a29-ink); }

.a29-hd-sheet-tag {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a29-emerald);
}

.a29-hd-sheet-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--a29-font-display);
  font-size: 1.45rem;
  color: var(--a29-emerald-dark);
}

.a29-hd-sheet-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--a29-muted);
  line-height: 1.55;
}

.a29-hd-faq-list {
  padding: 0.5rem 0;
}

.a29-hd-faq {
  border-bottom: 1px solid var(--a29-linen);
}

.a29-hd-faq:last-child {
  border-bottom: none;
}

.a29-hd-faq-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.a29-hd-faq-toggle:hover {
  background: var(--a29-cream);
}

.a29-hd-faq-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--a29-muted);
}

.a29-hd-faq-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--a29-ink);
  line-height: 1.4;
}

.a29-hd-faq-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--a29-linen);
  position: relative;
  flex-shrink: 0;
}

.a29-hd-faq-icon::before,
.a29-hd-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--a29-emerald);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.a29-hd-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.a29-hd-faq.is-open .a29-hd-faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.a29-hd-faq-a {
  display: none;
  padding: 0 1.25rem 1.15rem 4.5rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--a29-muted);
}

.a29-hd-faq-a a {
  color: var(--a29-emerald);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.a29-hd-faq.is-open .a29-hd-faq-a {
  display: block;
}

.a29-hd-no-match {
  display: none;
  margin: 1.5rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--a29-linen);
  font-size: 0.9rem;
  color: var(--a29-muted);
}

.a29-hd-no-match.is-visible {
  display: block;
}

.a29-hd-no-match a {
  color: var(--a29-emerald);
  font-weight: 600;
}

/* Manifest sidebar */
.a29-hd-manifest {
  position: sticky;
  top: 140px;
  padding: 1.25rem;
  background: var(--a29-ink);
  color: var(--a29-white);
  border-top: 4px solid var(--a29-mustard);
}

.a29-hd-manifest-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--a29-emerald);
}

.a29-hd-manifest-head h3 {
  margin: 0 0 0.5rem;
  font-family: var(--a29-font-display);
  font-size: 1.25rem;
}

.a29-hd-manifest-head p {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.a29-hd-manifest-rows {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.a29-hd-manifest-rows div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.a29-hd-manifest-rows dt {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.a29-hd-manifest-rows dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.a29-hd-manifest-cta {
  width: 100%;
  margin-bottom: 0.85rem;
}

.a29-hd-manifest-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.a29-hd-manifest-contact a {
  color: var(--a29-mustard);
  word-break: break-all;
}

.a29-hd-manifest-contact a:hover {
  color: var(--a29-white);
}

.a29-hd-manifest-chill {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.a29-hd-manifest-chill span {
  display: block;
  font-family: var(--a29-font-display);
  font-size: 1.75rem;
  color: var(--a29-mustard);
  line-height: 1;
}

.a29-hd-manifest-chill em {
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Tag rail */
.a29-hd-tags {
  padding: 0 0 4rem;
}

.a29-hd-tags-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.a29-hd-tags-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--a29-font-display);
  font-size: 1.5rem;
  color: var(--a29-emerald-dark);
}

.a29-hd-tags-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--a29-muted);
}

.a29-hd-tag-rail {
  height: 2px;
  background: var(--a29-ink);
  margin: 0 auto 1.75rem;
  max-width: min(900px, 100%);
  position: relative;
}

.a29-hd-tag-rail::before,
.a29-hd-tag-rail::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--a29-emerald);
}

.a29-hd-tag-rail::before { left: 0; }
.a29-hd-tag-rail::after { right: 0; }

.a29-hd-tag-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: min(980px, 100%);
  margin-inline: auto;
}

.a29-hd-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.65rem 0.85rem;
  background: var(--a29-white);
  border: 1px solid var(--a29-linen);
  transform: rotate(-2deg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 2px 3px 0 rgba(20, 20, 20, 0.06);
}

.a29-hd-tag:nth-child(even) {
  transform: rotate(2deg);
}

.a29-hd-tag:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: var(--a29-emerald);
  box-shadow: var(--a29-shadow);
}

.a29-hd-tag-code {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--a29-mustard);
  color: var(--a29-ink);
}

.a29-hd-tag strong {
  display: block;
  font-size: 0.82rem;
  color: var(--a29-ink);
  margin-bottom: 0.2rem;
}

.a29-hd-tag span:last-child {
  font-size: 0.68rem;
  color: var(--a29-muted);
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .a29-hd-mast-grid {
    grid-template-columns: 1fr;
  }

  .a29-hd-board-grid {
    grid-template-columns: 1fr;
  }

  .a29-hd-folders {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .a29-hd-folder {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .a29-hd-folder.is-active,
  .a29-hd-folder:hover {
    transform: none;
  }

  .a29-hd-manifest {
    position: static;
  }

  .a29-hd-tag-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .a29-hd-temp-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .a29-hd-folder {
    flex: 1 1 100%;
  }

  .a29-hd-sheet-head {
    flex-direction: column;
  }

  .a29-hd-faq-toggle {
    grid-template-columns: 2rem 1fr auto;
    padding: 0.85rem 1rem;
  }

  .a29-hd-faq-a {
    padding-left: 1rem;
  }

  .a29-hd-tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .a29-hd-tag {
    transform: none;
  }

  .a29-hd-tag:nth-child(even) {
    transform: none;
  }
}
