

/* Mini Quest Display                                                                             */
/* ---------------------------------------------------------------------------------------------- */

/* Mini-adventure display styles (mad_*) */

.mad_wrap {
  background: var(--background);
  color: var(--text);
  padding: 1.25rem 1rem 1.5rem;
}

.mad_headerTitle {
  color: var(--primary);
}

.mad_headerSubtitle,
.mad_headerMeta,
.mad_supportNote,
.mad_status {
  color: var(--text);
  opacity: 0.8;
}

.mad_label {
  color: var(--text);
}

/* Search inputs */
.mad_input {
  background: var(--background);             /* was rgba(0,0,0,0.35) */
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

.mad_input:focus {
  background: var(--background);             /* was darker overlay */
  border-color: var(--primary);
  box-shadow: 0 0 0 .15rem rgba(255,255,255,0.1);
  color: var(--text);
}

/* Empty / error alert block inside #mad_list */
.mad_emptyAlert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: transparent;                   /* was rgba(0,0,0,0.35) */
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);   /* optional: subtle outline */
}

.mad_btn {
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.9rem;
  padding-inline: 1rem;
  padding-block: 0.4rem;
}

.mad_btn:hover,
.mad_btn:focus,
.mad_btn:active,
.mad_btn:active:focus {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.mad_btn:disabled {
  opacity: 0.55;
}

.mad_card {
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.08);
}

.mad_cardBody {
  padding: 0.9rem 1rem;
}

.mad_cardTitle {
  color: var(--primary);
  font-size: 1.05rem;
}

.mad_cardSummary {
  color: var(--text);
  opacity: 0.8;
  margin-left: 15px;
  margin-right: 10px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.mad_crBadgeWrap {
  font-size: 0.8rem;
  margin-top: 10px;
}

.mad_crBadge {
  background: var(--primary);
  color: var(--background);
}


/* Pagination */
.mad_pagination .page-link {
  border-radius: 999px !important;
  border-color: rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}

.mad_pagination .page-item.active .page-link {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.mad_pagination .page-item.disabled .page-link {
  opacity: 0.4;
}

/* Modal */
.mad_modalDialog {
  max-width: 900px;
}

.mad_modalContent {
  background: var(--background);
  color: var(--text);
  border-radius: 0.75rem;
  border-color: rgba(255,255,255,0.1);
}

.mad_modalHeader {
  border-bottom-color: rgba(255,255,255,0.08);
}

.mad_modalTitle {
  color: var(--primary);
}

.mad_modalBody {
  font-size: 0.9rem;
}

.mad_modalSource {
  color: var(--text);
  opacity: 0.8;
}

.mad_modalDivider {
  border-top-color: rgba(255,255,255,0.08);
}

.mad_outcomesList dt {
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--primary);
}

.mad_outcomesList dd {
  margin-bottom: 0.25rem;
}

.mad_modalRewards,
.mad_modalNotes {
  min-height: 1.5rem;
}

.mad_modalImageInner {
  background: rgba(0,0,0,0.35);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

/* Paragraph helpers inside modal */
.mad_para {
  color: var(--text);
}

.mad_paraEmpty {
  color: var(--text);
  opacity: 0.7;
}

.mad_wrap {
  background: var(--background);
  color: var(--text);
  padding: 1.25rem 1rem 1.5rem;
}

/* Cards: no muddy overlay, just theme background */
.mad_card {
  background: var(--background); /* was rgba(0,0,0,0.35) */
  border-top: 3px solid rgb(from var(--primary) r g b / .225);
  border-radius: 0px;
  margin-top: 20px;
}

.mad_modalContent {
  background: var(--background);
  color: var(--text);
  border-radius: 6px;            /* was larger */
  border-color: rgba(255,255,255,0.12);
}

.mad_modalImageInner {
  background: transparent;       /* was rgba(0,0,0,0.35) */
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

.mad_btn {
  border-radius: 6px; /* was 999px pill */
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.9rem;
  padding-inline: 0.9rem;
  padding-block: 0.4rem;
  white-space: nowrap;
}

.mad_btn:hover,
.mad_btn:focus,
.mad_btn:active,
.mad_btn:active:focus {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.mad_btn:disabled {
  opacity: 0.55;
}

/* Make all “View Details” buttons visually consistent */
.mad_btnView {
  cursor: pointer;
}

.mad_emptyAlert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: transparent;                   /* no dark panel */
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);   /* subtle outline only */
}

.mad_pagination .page-link {
  border-radius: 6px !important; /* was 999px */
  border-color: rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}

.mad_supporterPromo {
  color: var(--text);
  opacity: 0.9;
}

.mad_supporterLink {
  color: var(--primary);
  text-decoration: underline;
}

.mad_supporterLink:hover {
  text-decoration: none;
}

.mad_modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  z-index: 1000500; /* high enough to beat mobile menu, etc. */
}

.mad_modalOverlay.mad_isOpen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mad_modalShell {
  max-width: 1100px;
  width: 100%;
  max-height: 95vh;   /* modal fits viewport height */
  padding: 1rem;
}

.mad_modalContent {
  background: var(--background);
  color: var(--text);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  max-height: 100%;
  display: flex;
  flex-direction: column; /* header + body + footer */
}

.mad_modalHeader,
.mad_modalFooter {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;  /* header/footer never disappear */
}

.mad_modalBody {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  overflow-y: auto;  /* body scrolls */
  flex: 1 1 auto;    /* fills remaining space */
}

.mad_modalOverlay.mad_isOpen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.mad_modalHeader {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mad_modalFooter {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mad_modalTitle {
  color: var(--primary);
  margin: 0;
}

.mad_btn {
  border-radius: 6px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.9rem;
  padding-inline: 0.9rem;
  padding-block: 0.4rem;
  white-space: nowrap;
}

.mad_btn:hover,
.mad_btn:focus,
.mad_btn:active,
.mad_btn:active:focus {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.mad_btn:disabled {
  opacity: 0.55;
}

.mad_btnIcon {
  padding-inline: 0.5rem;
  padding-block: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure View buttons are consistent width */
.mad_cardActions .mad_btnView {
  min-width: 150px;
  text-align: center;
}

.mad_noScroll {
  overflow: hidden;
}

html.mad_noScroll,
body.mad_noScroll {
  overflow: hidden;
  height: 100%;
}

.mad_modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  z-index: 2147483000; /* bumped way up */
}


.mad_modalSummary {
  margin-top: 25px;
  margin-left: 25px;
  margin-right: 25px;
  border-bottom: 1px dotted var(--primary);
  padding-bottom: 25px;
  font-style: italic;
  color: var(--primary);
}


.mad_sectionHeading {
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .325);
  margin-bottom: 10px;
  padding-bottom: 5px;
  margin-top: 30px;
}

.mad_modalDescriptionBody  {
  margin-left: 25px;
  margin-right: 35px;
  font-size: 0.85rem;
  line-height: 1.5rem;
}

.mad_para {
  margin-top: 20px;
  text-indent: 15px;
}

.mad_outcomesList {
    margin-left: 25px;
  margin-right: 25px;
}

.mad_outcomeBody {
  margin-left: 25px;
}

.mad_outcomeId {
  padding-bottom: 5px;
  font-weight: 300 !important;
}

.mad_outcomeBody strong {
  font-weight: 300;
  color: var(--primary);
}

.mad_outcomeBody > div + div {
  margin-top: 0.35rem;  /* tweak to taste */
}

/* Add space ABOVE each outcome except the first one */
.mad_outcomesList .mad_outcomeId {
  margin-top: 30px;   /* adjust to taste */
}

.mad_modalRewards {
    margin-left: 15px;
  margin-right: 15px;
  font-size: 0.9rem;
  margin-bottom: 50px;
}

.mad_modalNotes {
    margin-left: 15px;
  margin-right: 15px;
  font-size: 0.9rem;
    margin-bottom: 50px;
}

.mad_noTextIndent {
  text-indent: 0;
}



.mad_badgeCr {
  background: var(--primary) !important;
  color: var(--background) !important;
  height: 30px;
  width: auto;
  padding-left: 10px;
  padding-right: 10px;

  display: inline-flex;        
  align-items: center;         
  justify-content: center;     
}

.mad_modalCrText {
  vertical-align: baseline; 
  font-size: 1rem;
  font-weight: 300 !important;   
}

.mad_tagBadge {
  background-color: rgb(from var(--primary) r g b / .625);
  color: var(--background);
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: capitalize;
  font-style: italic;
  height: 20px;
}

.mad_maincrBadge {
  background-color: rgb(from var(--primary) r g b / .925);
  color: var(--background);
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: capitalize;
  font-style: italic;
  height: 20px;
  padding-right: 15px;
  margin-right: 10px;
  margin-left: 10px;
}













































/* Settlement Generator                                                                           */
/* ---------------------------------------------------------------------------------------------- */


/* Shell */
.settGen_shell {
  background: var(--background);
  color: var(--text);
}

/* Card wrapper */
.settGen_card {
  background: var(--background); /* no gray overlay */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Header */
.settGen_header {
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settGen_title {
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settGen_tagline {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Labels & selects */
.settGen_label {
  color: var(--text);
}

.settGen_select {
  background-color: var(--background); /* was rgba(0,0,0,0.5) */
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.settGen_select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.settGen_helpText {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Buttons */
.settGen_btn {
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.9rem;
  padding-inline: 0.9rem;
  padding-block: 0.4rem;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.settGen_btn:hover,
.settGen_btn:focus,
.settGen_btn:active {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.settGen_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.settGen_btnBusy {
  transform: translateY(1px);
}

/* Status & errors */
.settGen_status {
  font-size: 0.8rem;
  opacity: 0.85;
}

.settGen_error {
  font-size: 0.85rem;
}

/* Empty state */
.settGen_empty {
  padding: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Result header */
.settGen_resultHeader {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.settGen_name {
  color: var(--primary);
}

.settGen_oneLiner {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Badges */
.settGen_badgeRow {
  font-size: 0.8rem;
}

.settGen_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent; /* was rgba(0,0,0,0.4) */
  color: var(--text);
}

/* Sections */
.settGen_sectionTitle {
  color: var(--primary);
  font-size: 0.95rem;
}

.settGen_subTitle {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Definition list */
.settGen_dl {
  margin: 0;
}

.settGen_dlRow {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.settGen_dlRow dt {
  flex: 0 0 7rem;
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.9;
}

.settGen_dlRow dd {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.85rem;
}

/* Table */
.settGen_table {
  font-size: 0.8rem;
  margin-bottom: 0;
  background: transparent; /* ensure no table gray */
  color: var(--text);
}

.settGen_table thead th {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}

.settGen_table tbody td {
  border-color: rgba(255, 255, 255, 0.05);
  background: transparent;
}

/* Racial emphasis */
.settGen_racePrimary {
  font-weight: 600;
  color: var(--primary);
}

.settGen_raceSecondary {
  font-weight: 500;
}

/* Features list */
.settGen_featureList {
  list-style: none;
  padding-left: 1rem;
}

.settGen_featureItem {
  position: relative;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.settGen_featureItem::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  top: 0;
  color: var(--primary);
}

/* Divider & DM summary */
.settGen_divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.settGen_dmSummary {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .settGen_header {
    text-align: center;
  }

  .settGen_title {
    font-size: 1.2rem;
  }

  .settGen_badgeRow {
    justify-content: flex-start;
  }
}

/* Filters row: compact labels */
.settGen_filtersRow {
  margin-bottom: 0.5rem;
}

.settGen_filterGroup {
  min-width: 0;
}

.settGen_labelSmall {
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

/* Make the header reroll button small and icon-y */
.settGen_rerollBtn {
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
}

.settGen_rerollBtn i {
  margin: 0;
}

/* On very small screens, let filters wrap nicely */
@media (max-width: 575.98px) {
  .settGen_filtersRow .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.settGen_copyBtn {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}
.settGen_hooksList {
  list-style: none;
  padding-left: 0;
}
.settGen_hookItem {
  margin-bottom: 0.15rem;
}






































/* Custom Spellbook Generator                                                                     */
/* ---------------------------------------------------------------------------------------------- */


/* Spellbook Generator – Readable Theme Using DMTK Variables */

#sbGen_app.sbGen_shell {
  background: var(--background);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Titles & Text */
.sbGen_title {
  font-family: "Faculty Glyphic", var(--heading-font,"Quicksand"), system-ui, sans-serif;
  color: var(--primary);
}

.sbGen_tagline,
.sbGen_label,
.sbGen_status,
.sbGen_bookDesc,
.sbGen_spellBody,
.sbGen_spellSnippet,
.sbGen_spellLine {
  color: var(--text);
}

.sbGen_bookMeta,
.sbGen_spellMeta {
  color: var(--text);
  opacity: 0.75;
}

/* Inputs */
.sbGen_control {
  background: var(--background);
  color: var(--text);
  border: 1px solid var(--primary);
}

.sbGen_control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

/* Buttons */
.sbGen_generateBtn {
  color: var(--primary);
  border-color: var(--primary);
}

.sbGen_generateBtn:hover {
  background: rgba(255,255,255,0.06);
}

.sbGen_generateBtn .sbGen_btnIcon {
  margin-right: 0.35rem;
}

/* Cards */
.sbGen_bookCard,
.sbGen_tocCard,
.sbGen_spellsCard {
  background: var(--background);
  border: 1px solid rgba(255,255,255,0.1);
}

.sbGen_cardHeader {
  background: rgba(255,255,255,0.05);
  color: var(--primary);
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
}

/* TOC Table */
.sbGen_tocTable {
  color: var(--text);
  background: transparent;
  border: none;
}

.sbGen_tocTable > tbody > tr > td {
    background: transparent;
  border: none;

}

.sbGen_tocLabel {
  color: var(--text);
}

.sbGen_tocPages {
  color: var(--text);
}

/* Sections */
.sbGen_sectionHeader {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}





/* Spell Entries */


.sbGen_spellName {
  color: var(--primary);
}

.sbGen_pageBadge {
  color: var(--text);
  font-size: 0.7rem;
}

/* Research Entries */
.sbGen_researchEntry {
  /* border-left: 2px solid var(--primary); */
  padding-left: 10px;
  color: var(--text);
}



/* Error */
#sbGen_error {
  background: rgba(255,0,0,0.12);
  color: var(--text);
  border: 1px solid rgba(255,0,0,0.4);
}

/* Mobile adjustments */
@media (max-width: 767.98px){
  #sbGen_app.sbGen_shell {
    padding: 1rem;
  }
}

.sbGenSectionTitle {
  color: var(--primary);
  margin-left: 7px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
  font-size: 0.95rem;
  line-height: 60px;
}

.sbGenPrefTitle {
  font-size: 0.9rem;
  color: var(--text);
  opacity: .85;
}

.sbGenSpellTitle {
  font-size: 0.8rem;
  color: var(--text);
  margin-left: 16px;
}

.sbGenSectionTitle2 {
  color: var(--primary);
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
  font-size: 0.95rem;
  line-height: 60px;
}

.sbGenPrefTitle2 {
  font-size: 0.9rem;
  color: var(--text);
  margin-left: 7px;
  opacity: .85;
}

.sbGenSpellTitle2 {
  font-size: 0.8rem;
  color: var(--danger);
  margin-left: 16px;
}

.sbGen_spellHeader {
  margin-top: 30px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .425);
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.sbGen_sectionTitle {
  color: var(--primary);
  border-bottom: 2px solid rgb(from var(--primary) r g b / .325);
}

.sbGen_spellHeader {
}

.sbGen_spellEntry {
  margin-left: 20px;
      margin-bottom: 40px;

}

.sbGen_spellLine {
  margin-top: 10px;
  padding-top: 5px;
    margin-left: 5px;
  margin-right: 5px;
  border-top: 1px dotted rgb(from var(--primary) r g b / .225);
}

.sbGen_spellSnippet {
  margin-left: 5px;
  margin-right: 5px;
  text-indent: 10px;
}

.sbGen_spellWarning {
  color: var(--danger);
  margin-top: 10px;
  padding-top: 5px;
  border-top: 1px dotted rgb(from var(--danger) r g b / .225);
}

.sbGen_spellWarning .fa {
  color: var(--danger);
  margin-left: 10px;
  margin-right: 5px;
}

.sbGen_bookDesc {
  color: var(--primary);
}

.sbGen_bookMeta {
  margin-left: 15px;
  margin-right: 15px;
}

.sbGen_pageCount {
  color: var(--text) !important;
  opacity: 1;
}

.sbGen_generateBtn {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

/* Hover + focus */
.sbGen_generateBtn:hover,
.sbGen_generateBtn:focus,
.sbGen_generateBtn:focus-visible {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(0,0,0,0.35); /* or none, if you hate the ring */
}

/* Active / “pressed” states (kills the yellow flash) */
.sbGen_generateBtn:active,
.sbGen_generateBtn.active,
.sbGen_generateBtn:active:focus,
.sbGen_generateBtn.active:focus,
.btn-check:checked + .sbGen_generateBtn,
.btn-check:active + .sbGen_generateBtn,
.sbGen_generateBtn.show,
.sbGen_generateBtn.show:focus {
  background: var(--primary) !important;
  color: var(--background) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.15rem rgba(0,0,0,0.35); /* or none */
}

.sbGen_output {
  margin-top: 25px;
  border-top: 3px solid rgb(from var(--primary) r g b / .325);
  padding-bottom: 10px;
}






















/* Monster Creator                                                                                */
/* ---------------------------------------------------------------------------------------------- */

.mc_shell {
  background: var(--background);
  color: var(--text);
  padding: 1.25rem;
}

/* Top bar with title + New button */
.mc_topBar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: var(--background);
  border-bottom: 1px solid rgba(0,0,0,0.35);
  padding-bottom: 0.75rem;
}

.mc_title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
}

.mc_topNote {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Summary strip (e.g., count of drafts / approved / complete) */
.mc_summaryBar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mc_summaryItem {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.35);
  background: var(--background);
  font-size: 0.85rem;
}

/* Main list container */
.mc_listCard {
  background: var(--background);
  border-radius: 0.5rem;
  border: 1px solid rgba(0,0,0,0.45);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Table of submissions */
.mc_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mc_table th,
.mc_table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.35);
}

.mc_table th {
  font-weight: 300;
  color: var(--primary);
  text-align: left;
}

.mc_table tr:last-child td {
  border-bottom: none;
}

.mc_table_rowActions {
  white-space: nowrap;
}

/* Status pills – no gray fills, just themed borders/fills */
.mc_statusPill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  line-height: 1.1;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

/* 0 = submitted, 1 = approved, 2 = complete */
.mc_statusPill--0 {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,0,0,0.12); /* just a tiny depth; still sits on var(--background) */
}

.mc_statusPill--1 {
  border-color: var(--primary);
  color: var(--primary);
}

.mc_statusPill--2 {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* “New” disabled message */
.mc_limitMessage {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.85;
}

/* Modal – overlay & dialog both use theme background */
.mc_modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,0.75);
  display: none;
}

.mc_modalOverlay.mc_open {
  display: block;
}

.mc_modalDialog {
  position: fixed;
  inset: 0;
  z-index: 9991;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  pointer-events: none; /* click-through except content */
}

.mc_modalInner {
  max-width: 1100px;
  width: 100%;
  background: var(--background);
  color: var(--text);
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
  padding: 1.25rem;
  pointer-events: auto; /* only this is clickable */
}

/* Header row inside modal */
.mc_modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mc_modalHeaderTitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Small “card” sections within modal – reusing admin layout */
.mc_sectionCard {
  background: var(--background);
  border-radius: 0.5rem;
  border: 1px solid rgba(0,0,0,0.45);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

.mc_sectionTitle {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

/* Repeater wrappers (traits, actions, etc.) */
.mc_repItem {
  border-radius: 0.4rem;
  border: 1px dashed rgba(0,0,0,0.4);
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.5rem;
  background: var(--background);
}

/* Tiny labels used in grid rows */
.mc_labelMini {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

/* Image preview wrapper – sits on background */
.mc_imgPreviewWrap {
  margin-top: 0.5rem;
  padding: 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0,0,0,0.45);
  background: var(--background);
}

.mc_imgPreviewWrap img {
  max-width: 225px;
  max-height: 225px;
  border-radius: 0.35rem;
  border: 1px solid rgba(0,0,0,0.55);
}

/* Utility alignment & spacing helpers */
.mc_flexBetween {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc_gapSm {
  display: flex;
  gap: 0.4rem;
}

/* Form tweaks to sit nicely on dark themed background */
.mc_shell .form-label,
.mc_shell .form-text {
  color: var(--text);
}

.mc_shell .form-control,
.mc_shell .form-select {
  background: rgba(0,0,0,0.18);
  color: var(--text);
  border-color: rgba(0,0,0,0.6);
}

.mc_shell .form-control:focus,
.mc_shell .form-select:focus {
  background: rgba(0,0,0,0.22);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1rem rgba(0,0,0,0.8);
}

/* Summernote content on dark background */
.mc_shell .note-editor.note-frame {
  border-color: rgba(0,0,0,0.6);
  background: var(--background);
}

.mc_shell .note-editing-area .note-editable {
  background: var(--background);
  color: var(--text);
}

.mc_abilityTable th,
.mc_abilityTable td {
  padding: 0.25rem 0.35rem;
  text-align: center;
  font-weight: 300;
  font-size: 0.85rem;
}

.mc_abilityTable input.form-control-sm {
  text-align: center;
  font-size: 0.85rem;
  padding-inline: 0.25rem;
}

.mc_abilityRowLabel {
  text-align: right;
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
}

.mc_note {
  color: var(--primary);
  margin-left: 10px;
  font-size: 0.8rem;
}

#mc_root .btn:hover,
#mc_root .btn:focus,
#mc_root .btn:active,
#mc_root .btn.active,
#mc_root .btn.show {
  background-color: var(--primary) !important;
  color: var(--background) !important;
  border-color: var(--primary) !important;
}

/* Keep disabled buttons visibly disabled */
#mc_root .btn.disabled,
#mc_root .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mc_submitBtn {
  height: 22px !important;
  max-height: 22px;
  width: 70px;
  font-size: 0.7rem;
}

.mc_tbody {
  font-size: 0.8rem !important;
}

.mc_notice {
  font-size: 0.85rem;
}

.mc_summaryText {
  font-size: 0.8rem;
}

































/* Quick NPC Description Generator                                                                */
/* ---------------------------------------------------------------------------------------------- */


#npcQuick_shell {
  margin: 0 auto;
  color: var(--text);
  background-color: var(--background);
}

.npcQuick_shell .npcQuick_status {
  font-style: italic;
}

.npcQuick_results {
  margin-top: 0.5rem;
}

/* Flat stacked NPC blocks: no border, no shadow */
.npcQuick_item {
  background-color: transparent; /* or var(--background) if you want a panel look */
  color: var(--text);
  padding: 0.4rem 0;
  margin-bottom: 25px;
  padding-bottom:25px;
  margin-top: 50px;
  border-bottom: 3px solid rgb(from var(--primary) r g b / .5);
  margin-left: 20px;
  margin-right: 20px;
}

.npcQuick_item + .npcQuick_item {
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* optional soft divider; remove if you want none at all */
}

.npcQuick_name {
  font-weight: 300;
  color: var(--primary);
  font-size: 1.25rem;
}

.npcQuick_race {
  background-color: rgb(from var(--primary) r g b / .3);
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px;
  font-weight: 300;
}

.npcQuick_class {
  color: var(--primary);
  font-weight: 300;
  padding-bottom: 5px;
  border-bottom: 1px dotted rgb(from var(--text) r g b / .5);
}

.npcQuick_stats {
  margin-left: 15px;
  color: var(--primary);
  font-weight: 300;
  font-size: 0.75rem;
}

.npcQuick_desc {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-left: 35px;
  margin-right: 35px;
  margin-top: 20px;
  margin-bottom: 20px;
}

#npcQuick_generateBtn, #npcQuick_printBtn {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
#npcQuick_generateBtn:hover:not(:disabled),
#npcQuick_generateBtn:focus-visible:not(:disabled),
#npcQuick_generateBtn:active:not(:disabled) {
  background-color: var(--primary);
  color: var(--background);
  border-color: var(--primary); /* optional, but usually looks better */
}

#npcQuick_printBtn:hover:not(:disabled),
#npcQuick_printBtn:focus-visible:not(:disabled),
#npcQuick_printBtn:active:not(:disabled) {
  background-color: var(--primary);
  color: var(--background);
  border-color: var(--primary); /* optional, but usually looks better */
}
















/* Trap Generator                                                                                 */
/* ---------------------------------------------------------------------------------------------- */

.trapGen_shell {
  background: var(--background);
  color: var(--text);
}

.trapGen_title {
  color: var(--primary);
}

.trapGen_resultHeader,
.trapGen_statsHeader {
  background: rgba(0,0,0,0.3);
  color: var(--text);
}

#trapGen_tags {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.9;
  text-align: center;
}

.trapGen_tag {
  display: inline;
  white-space: nowrap;
  font-size: 0.7rem;
  text-transform: capitalize;
}

/* Add bullets between tags */
.trapGen_tag + .trapGen_tag::before {
  content: "  •  ";
  margin: 0 0.15rem;
}

#trapGen_app .form-label {
  font-size: 0.7rem;
} 

#trapGen_rollBtn:hover,
#trapGen_rollBtn:focus,
#trapGen_rollBtn:active,
#trapGen_rollBtn:active:focus,
#trapGen_rollBtn:focus-visible {
  background-color: var(--primary) !important;
  color: var(--background) !important;
  border-color: var(--primary) !important;
  outline: none;
}

.trapGen_name {
  color: var(--primary);
  font-size: 1.1rem;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
  padding-bottom: 15px;
}

.trapGen_badgeWrap {
  display: flex;
  justify-content: space-between; /* left & right */
  align-items: center;
  gap: 0.5rem;                    /* optional, small spacing */
}

/* Optional: styling for the badges themselves */
.trapGen_badge-severity,
.trapGen_badge-level {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--primary);
}

.trapGen_summary {
  color: var(--primary);
  font-size: 0.8rem;
  margin-left: 10px;
  margin-right: 10px;
  text-align: justify;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
}

#trapGen_app .card-header {
  border: none !important;
}


/* Overall fact list */
.trapGen_factlist {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
}

/* Reset default dl/dt/dd weirdness */
.trapGen_factlist dt,
.trapGen_factlist dd {
  margin: 0;
}

/* Each row: label + value on one line */
.trapGen_factrow {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 2px 0;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .225);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

/* Optional subtle dividers between rows */
.trapGen_factrow + .trapGen_factrow {
  padding-top: 4px;
  margin-top: 2px;
}

/* Label (dt): fixed-ish width, colored with primary */
.trapGen_factrow dt {
  flex: 0 0 120px; /* adjust width to taste */
  font-weight: 300;
  color: var(--primary);
  white-space: nowrap;
  font-size: 0.75rem;
}

/* Value (dd): fills remaining space, wraps nicely */
.trapGen_factrow dd {
  flex: 1 1 auto;
  color: var(--text);
  opacity: 0.9;
  font-size: 0.75rem;
}

/* Mobile: stack label above value if space is tight */
@media (max-width: 576px) {
  .trapGen_factrow {
    flex-direction: column;
    gap: 0;
  }

  .trapGen_factrow dt {
    flex: none;
    white-space: normal;
  }
}








.trapGen_statlist {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
}

/* Reset default dl/dt/dd weirdness */
.trapGen_statlist dt,
.trapGen_statlist dd {
  margin: 0;
}

/* Each row: label + value on one line */
.trapGen_statrow {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 2px 0;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .225);
    margin-bottom: 10px;
  padding-bottom: 10px;
}

/* Optional subtle dividers between rows */
.trapGen_statrow + .trapGen_statrow {
  padding-top: 4px;
  margin-top: 2px;
}

/* Label (dt): fixed-ish width, colored with primary */
.trapGen_statrow dt {
  flex: 0 0 120px; /* adjust width to taste */
  font-weight: 300;
  color: var(--primary);
  white-space: nowrap;
  font-size: 0.75rem;
}

/* Value (dd): fills remaining space, wraps nicely */
.trapGen_statrow dd {
  flex: 1 1 auto;
  color: var(--text);
  opacity: 0.9;
  font-size: 0.75rem;
}

/* Mobile: stack label above value if space is tight */
@media (max-width: 576px) {
  .trapGen_statrow {
    flex-direction: column;
    gap: 0;
  }

  .trapGen_statrow dt {
    flex: none;
    white-space: normal;
  }
}

.trapGen_saveType {
  color: var(--primary);
}

.trapGen_rulesNote {
  margin-top: 15px;
  color: var(--primary);
  font-size: 0.8rem;
}

.trapGen_gmNotes {
  margin-top: 30px;
  color: var(--primary);
  font-size: 0.7rem;
}

.mc_modalFooter {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
}



.mc_card {
  background-color: var(--background);
  position: relative;
}

.mc_card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(from var(--primary) r g b / 0.125);
  pointer-events: none;
  z-index: 0;
}

#mc_root .note-editor.note-frame .note-editing-area .note-editable {
  background-color: var(--background);
  color: var(--text);
}

/* Make sure the placeholder is visible on dark themes */
#mc_root .note-editor.note-frame .note-placeholder {
  color: rgba(255, 255, 255, 0.5); /* or some token if you have one */
}

/* Optional: tweak the border so it feels like an input */
#mc_root .note-editor.note-frame {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent; /* keep the chrome transparent if you like */
}

.mc_emptyState {
  font-size: 0.85rem;
  color: var(--primary);
}










/* League of Adventurers                                                                         */
/* ---------------------------------------------------------------------------------------------- */



/* ===== Mages’ Guild Generator (la_) ===== */
.la_shell { background: var(--background); color: var(--text); padding: 14px; }
.la_toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.la_titleWrap { min-width: 260px; }

.la_guildTitle { 
  font-size: 1.65rem; 
  color: var(--primary); 
  margin: 0; 
  text-transform: capitalize;
}

.la_muted { opacity: .8; font-size: .9rem; }

.la_btn { background: var(--primary); color: var(--background); border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.la_btn.la_btnOutline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.la_card { background: var(--background); border: none; padding: 14px; margin-bottom: 16px; }

.la_cardBand { 
  border-top: 3px solid var(--primary); 
  border-bottom: 1px dotted var(--primary); 
  margin-top: 25px; 
  padding-top: 27px; 
  padding-bottom: 31px; 
}

.la_cardSoftBand { border-bottom: 1px dotted var(--primary); margin-top: 20px; padding-top: 22px; padding-bottom: 30px; }

.la_h2 { color: var(--primary); margin: 0 0 6px; font-size: 1.05rem; }
.la_h3 { color: var(--primary); margin: 10px 0 6px; font-size: 1rem; }

.la_badge { display:inline-block; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--background); font-size: .8rem; }
.la_small { font-size: .9rem; opacity: .9; }

.la_varText { 
  color: var(--primary); 
  font-size: 0.8rem;
}

.la_structureNote { margin-left: 10px; }
.la_mb6 { margin-bottom: 6px; }
.la_mt6 { margin-top: 6px; }

.la_grid { 
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
 }

 .la_grid > * {
  grid-column: auto !important;
 }

 @media (max-width: 1368px) {
  .la_grid {
    grid-template-columns: 1fr;
  }
}

.la_gridWide { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 12px; }

.la_table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.la_table th, .la_table td { padding: 6px 8px; border-bottom: 1px dashed rgba(0,0,0,.15); vertical-align: top; }
.la_kv td:first-child { width: 180px; opacity: .8; white-space: nowrap; }

.la_label { 
  color: var(--text); 
  font-size: .9rem; 
}

#la_ranks, #la_divisions {
  text-indent: 15px;
}

.la_data { color: var(--text); font-size: .9rem; }

.la_hcTable { font-size: .85rem; color: var(--text); }
.la_quests li { font-size: .9rem; line-height: 28px; }
.la_err { color: #c0392b; font-weight: 600; }

/* ===== Duplicated heraldry system under la_ ===== */
.la_heraldry_wrap { position: relative; display: inline-block; }
.la_heraldry_frame { position: relative; display: inline-block; width: 420px; }
.la_heraldry_banner { display: block; width: 100%; height: auto; }
.la_heraldry_emblem { position: absolute; object-fit: contain; pointer-events: none; left: 35%; top: 10%; width: 30%; height: 80%; }
.la_heraldry_reroll { position: absolute; left: -10px; bottom: -40px; z-index: 2; }
.la_heraldry_spacer { height: 52px; min-height: 52px; }

/* ===== Print tweaks (so we don’t need inline styles) ===== */
@media print {
  :root { font-size: 80%; }                    /* ~20% global shrink for rems */
  body { background: #fff; color: #111; }
  .la_shell { padding: 10mm; }
  .la_guildTitle { font-size: 1.32rem; }
  .la_table { font-size: .76rem; }
  .la_label { font-size: .76rem; }
  .la_data { font-size: .72rem; }
  .la_small { font-size: .72rem; }
  .la_quests li { font-size: .76rem; line-height: 1.35; }
  .la_table th, .la_table td { padding: 3px 5px; }
  .la_heraldry_reroll { display: none !important; } /* never print the button */
}

.la_ovTable {
    width: 95%;
    margin-left: 25px;
}

.la_ovTable tr {
    height: 40px;
}

.la_cardBorderBottom { 
    border-bottom: 1px dotted var(--primary);
    margin-top: 15px;
    padding-top: 35px;
    padding-bottom: 25px;
}

.la_tableLabel {
    color: var(--primary);
    font-size: 0.9rem;
}

.la_tableData {
    color: var(--text);
    font-size: 0.9rem;
}

.la_role { 
    font-weight:300; 
    color: var(--primary);
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
    margin-bottom: 10px;
}

.la_structureTitle {
    margin-left: 25px;
    font-size: 1rem;
    color: var(--text);
}

.la_small { 
    font-size:.9rem; 
    opacity:.9; 
}

.la_structureNote {
    margin-left: 10px;
}


.la_structureDues {
    color: var(--primary);
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.la_officerNameLine {
    color: var(--text);
    font-size: 0.9rem;
}

.la_officerDetails {
    color: var(--text);
    font-size: 0.85rem;
}

.la_officerDetails b {
    color: var(--primary);
    margin-left: 15px;
}

.la_officerRace {
  color: var(--primary);
    font-size: 0.8rem;
    margin-left: 7px;
    font-style: italic;
}

#la_privLI ul {
  display: table-row;
  list-style: none;
}

#la_privLI li:first {
  display: none;
}

#la_privLI li {
  display: table-row;
  color: var(--text);
  text-indent: 1em;
}
  
#la_privLI li::before {
  display: table-cell;
  text-align: right;
  content: "■";
  font-size: 1em;
  font-weight: bold;
  color: var(--primary);
  padding-right: 3px;
}

.la_roles_tbodyLabel {
  color: var(--primary);
  font-size: 0.8rem;
}

.la_roles_tbodyCost {
    color: var(--primary);
  font-size: 0.75rem;
}

.la_roles_tbodyData {
  color: var(--text);
  font-size: 0.7rem;
}

.la_h3 {
  margin-top: 15px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.la_coin {
  height: 13px;
  position: relative;
  top: -2px;
}

.la_indent5 {
    margin-left: 15px;
}

.la_indent15 {
    margin-left: 30px;
}

.la_btnSm {
  padding: 4px 10px;
  font-size: 0.85rem;
}

.la_officers {
  text-indent: 15px;
  margin-top: 15px;
}

/* Officers grid */
.la_officers {
  display: grid;
  gap: 12px 18px;
}

/* 2 columns on medium screens */
@media (min-width: 768px) {
  .la_officers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns on larger screens (like your 1920px / ultrawide) */
@media (min-width: 1200px) {
  .la_officers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Optional: kill the old top margin so spacing comes from grid gap */
.la_officers > .la_mb6 {
  margin-top: 0;
}

.la_sectionIndent {
  margin-left: 25px;
  margin-right: 25px;
}

.la_fs08 {
  font-size: 0.8rem;
}

.la_tagline {
  text-indent: 15px;
  margin-top: 5px;
  color: var(--primary);
}

.la_coin {
  width: 12px;
  height: auto;
  margin-top: 1px;
  margin-right: 5px;
}

















/* Fighters Guild                                                                                  */
/* ---------------------------------------------------------------------------------------------- */



/* ===== Mages’ Guild Generator (fg_) ===== */
.fg_shell { background: var(--background); color: var(--text); padding: 14px; }
.fg_toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.fg_titleWrap { min-width: 260px; }
.fg_guildTitle { font-size: 1.65rem; color: var(--primary); margin: 0; }
.fg_muted { opacity: .8; font-size: .9rem; }

.fg_btn { background: var(--primary); color: var(--background); border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.fg_btn.fg_btnOutline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.fg_card { background: var(--background); border: none; padding: 14px; margin-bottom: 16px; }
.fg_cardBand { border-top: 3px solid var(--primary); border-bottom: 1px dotted var(--primary); margin-top: 20px; padding-top: 22px; padding-bottom: 16px; }
.fg_cardSoftBand { border-bottom: 1px dotted var(--primary); margin-top: 20px; padding-top: 22px; padding-bottom: 16px; }

.fg_h2 { color: var(--primary); margin: 0 0 6px; font-size: 1.05rem; }
.fg_h3 { color: var(--primary); margin: 10px 0 6px; font-size: 1rem; }

.fg_badge { display:inline-block; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--background); font-size: .8rem; }
.fg_small { font-size: .9rem; opacity: .9; }
.fg_varText { color: var(--text); }
.fg_structureNote { margin-left: 10px; }
.fg_mb6 { margin-bottom: 6px; }
.fg_mt6 { margin-top: 6px; }

.fg_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fg_gridWide { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 12px; }

.fg_table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fg_table th, .fg_table td { padding: 6px 8px; border-bottom: 1px dashed rgba(0,0,0,.15); vertical-align: top; }
.fg_kv td:first-child { width: 180px; opacity: .8; white-space: nowrap; }
.fg_label { color: var(--primary); font-size: .95rem; }
.fg_data { color: var(--text); font-size: .9rem; }

.fg_hcTable { font-size: .85rem; color: var(--text); }
.fg_quests li { font-size: .9rem; line-height: 28px; }
.fg_err { color: #c0392b; font-weight: 600; }

/* ===== Duplicated heraldry system under fg_ ===== */
.fg_heraldry_wrap { position: relative; display: inline-block; }
.fg_heraldry_frame { position: relative; display: inline-block; width: 420px; }
.fg_heraldry_banner { display: block; width: 100%; height: auto; }
.fg_heraldry_emblem { position: absolute; object-fit: contain; pointer-events: none; left: 35%; top: 10%; width: 30%; height: 80%; }
.fg_heraldry_reroll { position: absolute; left: -10px; bottom: -40px; z-index: 2; }
.fg_heraldry_spacer { height: 52px; min-height: 52px; }

/* ===== Print tweaks (so we don’t need inline styles) ===== */
@media print {
  :root { font-size: 80%; }                    /* ~20% global shrink for rems */
  body { background: #fff; color: #111; }
  .fg_shell { padding: 10mm; }
  .fg_guildTitle { font-size: 1.32rem; }
  .fg_table { font-size: .76rem; }
  .fg_label { font-size: .76rem; }
  .fg_data { font-size: .72rem; }
  .fg_small { font-size: .72rem; }
  .fg_quests li { font-size: .76rem; line-height: 1.35; }
  .fg_table th, .fg_table td { padding: 3px 5px; }
  .fg_heraldry_reroll { display: none !important; } /* never print the button */
}

.fg_ovTable {
    width: 95%;
    margin-left: 25px;
}

.fg_ovTable tr {
    height: 40px;
}

.fg_cardBorderBottom { 
    border-bottom: 1px dotted var(--primary);
    margin-top: 35px;
    padding-top: 35px;
    padding-bottom: 25px;
}

.fg_tableLabel {
    color: var(--primary);
    font-size: 0.95rem;
}

.fg_tableData {
    color: var(--text);
    font-size: 0.9rem;
}

.fg_role { 
    font-weight:300; 
    color: var(--primary);
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
    margin-bottom: 10px;
}

.fg_structureTitle {
    margin-left: 25px;
    font-size: 1rem;
    color: var(--text);
}

.fg_small { 
    font-size:.9rem; 
    opacity:.9; 
}

.fg_structureNote {
    margin-left: 10px;
}


.fg_structureDues b {
    color: var(--primary);
    margin-left: 10px;
}

.fg_officerNameLine {
    color: var(--primary);
    font-size: 1rem;
}

.fg_officerDetails {
    color: var(--text);
    font-size: 0.9rem;
}

.fg_officerDetails b {
    color: var(--primary);
    margin-left: 10px;
}

.fg_officerRace {
    font-size: 0.8rem;
    margin-left: 7px;
    font-style: italic;
}

#fg_privLI ul {
  display: table-row;
  list-style: none;
}

#fg_privLI li:first {
  display: none;
}

#fg_privLI li {
  display: table-row;
  color: var(--text);
  text-indent: 1em;
}
  
#fg_privLI li::before {
  display: table-cell;
  text-align: right;
  content: "■";
  font-size: 1em;
  font-weight: bold;
  color: var(--primary);
  padding-right: 3px;
}

.fg_roles_tbodyLabel {
  color: var(--primary);
  font-size: 0.9rem;
}

.fg_roles_tbodyCost {
    color: var(--primary);
  font-size: 0.75rem;
}

.fg_roles_tbodyData {
  color: var(--text);
  font-size: 0.7rem;
}

.fg_h3 {
  margin-top: 15px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.fg_coin {
  height: 13px;
  position: relative;
  top: -2px;
}

.fg_indent5 {
    margin-left: 15px;
}
























/* Mages Guild                                                                                  */
/* ---------------------------------------------------------------------------------------------- */



/* ===== Mages’ Guild Generator (mg_) ===== */
.mg_shell { background: var(--background); color: var(--text); padding: 14px; }
.mg_toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.mg_titleWrap { min-width: 260px; }
.mg_guildTitle { font-size: 1.65rem; color: var(--primary); margin: 0; }
.mg_muted { opacity: .8; font-size: .9rem; }

.mg_btn { background: var(--primary); color: var(--background); border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.mg_btn.mg_btnOutline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.mg_card { background: var(--background); border: none; padding: 14px; margin-bottom: 16px; }
.mg_cardBand { border-top: 3px solid var(--primary); border-bottom: 1px dotted var(--primary); margin-top: 20px; padding-top: 22px; padding-bottom: 16px; }
.mg_cardSoftBand { border-bottom: 1px dotted var(--primary); margin-top: 20px; padding-top: 22px; padding-bottom: 16px; }

.mg_h2 { color: var(--primary); margin: 0 0 6px; font-size: 1.05rem; }
.mg_h3 { color: var(--primary); margin: 10px 0 6px; font-size: 1rem; }

.mg_badge { display:inline-block; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--background); font-size: .8rem; }
.mg_small { font-size: .9rem; opacity: .9; }
.mg_varText { color: var(--text); }
.mg_structureNote { margin-left: 10px; }
.mg_mb6 { margin-bottom: 6px; }
.mg_mt6 { margin-top: 6px; }

.mg_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mg_gridWide { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 12px; }

.mg_table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mg_table th, .mg_table td { padding: 6px 8px; border-bottom: 1px dashed rgba(0,0,0,.15); vertical-align: top; }
.mg_kv td:first-child { width: 180px; opacity: .8; white-space: nowrap; }
.mg_label { color: var(--primary); font-size: .95rem; }
.mg_data { color: var(--text); font-size: .9rem; }

.mg_hcTable { font-size: .85rem; color: var(--text); }
.mg_quests li { font-size: .9rem; line-height: 28px; }
.mg_err { color: #c0392b; font-weight: 600; }

/* ===== Duplicated heraldry system under mg_ ===== */
.mg_heraldry_wrap { position: relative; display: inline-block; }
.mg_heraldry_frame { position: relative; display: inline-block; width: 420px; }
.mg_heraldry_banner { display: block; width: 100%; height: auto; }
.mg_heraldry_emblem { position: absolute; object-fit: contain; pointer-events: none; left: 35%; top: 10%; width: 30%; height: 80%; }
.mg_heraldry_reroll { position: absolute; left: -10px; bottom: -40px; z-index: 2; }
.mg_heraldry_spacer { height: 52px; min-height: 52px; }

/* ===== Print tweaks (so we don’t need inline styles) ===== */
@media print {
  :root { font-size: 80%; }                    /* ~20% global shrink for rems */
  body { background: #fff; color: #111; }
  .mg_shell { padding: 10mm; }
  .mg_guildTitle { font-size: 1.32rem; }
  .mg_table { font-size: .76rem; }
  .mg_label { font-size: .76rem; }
  .mg_data { font-size: .72rem; }
  .mg_small { font-size: .72rem; }
  .mg_quests li { font-size: .76rem; line-height: 1.35; }
  .mg_table th, .mg_table td { padding: 3px 5px; }
  .mg_heraldry_reroll { display: none !important; } /* never print the button */
}

.mg_ovTable {
    width: 95%;
    margin-left: 25px;
}

.mg_ovTable tr {
    height: 40px;
}

.mg_cardBorderBottom { 
    border-bottom: 1px dotted var(--primary);
    margin-top: 35px;
    padding-top: 35px;
    padding-bottom: 25px;
}

.mg_tableLabel {
    color: var(--primary);
    font-size: 0.95rem;
}

.mg_tableData {
    color: var(--text);
    font-size: 0.9rem;
}

.mg_role { 
    font-weight:300; 
    color: var(--primary);
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
    margin-bottom: 10px;
}

.mg_structureTitle {
    margin-left: 25px;
    font-size: 1rem;
    color: var(--text);
}

.mg_small { 
    font-size:.9rem; 
    opacity:.9; 
}

.mg_structureNote {
    margin-left: 10px;
}


.mg_structureDues b {
    color: var(--primary);
    margin-left: 10px;
}

.mg_officerNameLine {
    color: var(--primary);
    font-size: 1rem;
}

.mg_officerDetails {
    color: var(--text);
    font-size: 0.9rem;
}

.mg_officerDetails b {
    color: var(--primary);
    margin-left: 10px;
}

.mg_officerRace {
    font-size: 0.8rem;
    margin-left: 7px;
    font-style: italic;
}

#mg_privLI ul {
  display: table-row;
  list-style: none;
}

#mg_privLI li:first {
  display: none;
}

#mg_privLI li {
  display: table-row;
  color: var(--text);
  text-indent: 1em;
}
  
#mg_privLI li::before {
  display: table-cell;
  text-align: right;
  content: "■";
  font-size: 1em;
  font-weight: bold;
  color: var(--primary);
  padding-right: 3px;
}

.mg_roles_tbodyLabel {
  color: var(--primary);
  font-size: 0.9rem;
}

.mg_roles_tbodyCost {
    color: var(--primary);
  font-size: 0.75rem;
}

.mg_roles_tbodyData {
  color: var(--text);
  font-size: 0.7rem;
}

.mg_h3 {
  margin-top: 15px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.mg_coin {
  height: 13px;
  position: relative;
  top: -2px;
}

.mg_indent5 {
    margin-left: 15px;
}

.la_henchList .la_henchItem {
  padding: 8px 0;
}
.la_henchList .la_henchItem:first-child {
  border-top: none;
}
.la_henchNameLine {
  font-weight: 300;
  color: var(--primary);
  font-size: 0.9rem;
}
.la_henchMeta {
  font-size: 0.85rem;
  opacity: 0.9;
}
.la_henchRates {
  font-size: 0.85rem;
}
.la_henchNote {
  font-size: 0.8rem;
  opacity: 0.85;
}
.la_btnSm {
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* Jobs: 1 column on small screens, 2 columns on wider */
.la_jobList {
  display: grid;
  grid-template-columns: 1fr;               /* default: single column */
  gap: 12px 18px;                           /* row / column gaps */
  padding-left: 0;                          /* override any ul padding */
  margin: 0;
}

.la_jobList .la_jobItem {
  margin: 0;                                /* let grid control spacing */
}

/* 2 equal columns at tablet/desktop widths */
@media (min-width: 768px) {
  .la_jobList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.la_jobTitle {
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 20px;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
  margin-bottom: 5px;
  padding-bottom: 3px;
  width: 90%;
}

.la_jobIndent {
  margin-left: 10px;
  font-size: 0.8rem;
}

.la_dot {
  padding-left: 15px;
  padding-right: 15px;
}

.la_jobTag {
  color: var(--primary);
  text-indent: 10px;
}

.la_primary {
  color: var(--primary);
}

/* Henchfolk: 1 column on small screens, 2 columns on wider */
.la_henchList {
  display: grid;
  grid-template-columns: 1fr;          /* default single column */
  gap: 12px 18px;                      /* row / column gaps */
  padding-left: 0;                     /* kill default ul indent */
  margin: 0;
}

.la_henchList .la_henchItem {
  margin: 0;                           /* let grid gaps control spacing */
}

/* 2 equal columns from tablet/desktop up */
@media (min-width: 768px) {
  .la_henchList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.la_henchIndent {
  text-indent: 10px;
  font-size: 0.8rem;
}

.la_henchNote {
  color: var(--primary);
  font-size: 0.75rem;
}

.la_rules {
  font-size: 0.8rem;
}















/* Thieves Guild                                                                                  */
/* ---------------------------------------------------------------------------------------------- */



/* Thieves’ Guild Generator */
.tg_shell { background: var(--background); color: var(--text); }
.tg_card  { background: var(--background); border: none; padding: 14px; margin-bottom: 16px; }
.tg_title { color: var(--primary); margin: 0 0 6px; }
.tg_subtle{ opacity: .8 }
.tg_badge { display:inline-block; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--background); font-size: .8rem; }
.tg_btn   { background: var(--primary); color: var(--background); border: none; border-radius: 6px; padding: 8px 14px; cursor:pointer; }
.tg_btn.secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.tg_grid  { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
.tg_grid2  { display:grid; grid-template-columns: repeat(auto-fit,minmax(400px,1fr)); gap: 12px; }
.tg_table { width:100%; border-collapse:collapse; font-size:.95rem; }
.tg_table th, .tg_table td { padding: 6px 8px; border-bottom: 1px dashed rgba(0,0,0,.15); vertical-align: top; }
.tg_kv td:first-child { width: 180px; opacity:.8; white-space:nowrap; }
.tg_note  { font-style: italic; opacity:.85; }
.tg_pill  { border:1px solid rgba(0,0,0,.15); border-radius:999px; padding:2px 8px; margin:2px 6px 2px 0; display:inline-block; }
.tg_spinner { display:none; }
.tg_err { color:#c0392b; font-weight:600; }

/* Frame scales however you like; child images follow */
.heraldry_frame {
  position: relative;
  display: inline-block;
  /* if you want original size, set a fixed width: 412px; otherwise let it be fluid */
}

/* Base banner — visible image */
.heraldry_banner {
  display: block;
  width: 100%;
  height: auto;
}

/* Emblem — masked by the banner image so it never bleeds outside */
.heraldry_frame{
  position: relative;
  display: inline-block;
}

.heraldry_banner{
  display:block;
  width:100%;
  height:auto;
}

.heraldry_emblem{
  position:absolute;
  object-fit: contain;
  pointer-events:none;
  /* no mask here anymore */
}

.hs_inner { position: relative; }

.heraldry_wrap{ position:relative; display:inline-block; }
.heraldry_reroll{
  position:absolute;
  left:-10px;
  bottom:-40px;         /* inside the banner’s lower-left corner */
  z-index:2;
}

.heraldry_spacer {
    height: 52px;
    min-height: 52px;
}

.tg_guildTitle {
    font-size: 1.65rem;
    color: var(--primary);
    text-transform: capitalize;
}

.tg_indent5 {
    margin-left: 15px;
}

.tg_ovTable {
    width: 95%;
    margin-left: 25px;
}

.tg_ovTable tr {
    height: 40px;
}

.tg_cardBorder { 
    border-top: 3px solid var(--primary); 
    border-bottom: 1px dotted var(--primary);
    margin-top: 35px;
    padding-top: 35px;
    padding-bottom: 25px;
}

.tg_tableLabel {
    color: var(--primary);
    font-size: 0.95rem;
}

.tg_tableData {
    color: var(--text);
    font-size: 0.9rem;
}

.tg_role { 
    font-weight:300; 
    color: var(--primary);
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
    margin-bottom: 10px;
}

.tg_structureTitle {
    margin-left: 25px;
    font-size: 1rem;
    color: var(--text);
}

.tg_small { 
    font-size:.9rem; 
    opacity:.9; 
}

.tg_structureNote {
    margin-left: 10px;
}

.tg_cardBorderBottom { 
    border-bottom: 1px dotted var(--primary);
    margin-top: 35px;
    padding-top: 35px;
    padding-bottom: 25px;
}

.tg_columnHeader {
    color: var(--primary);
    margin-top: 15px;
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);
}

.tg_hcTable {
    font-size: 0.85rem;
    color: var(--text);
}

.tg_quests li {
    font-size: 0.9rem;
    line-height: 42px;
}

.tg_officerNameLine {
    color: var(--primary);
    font-size: 1rem;
}

.tg_officerDetails {
    color: var(--text);
    font-size: 0.9rem;
}

.tg_officerDetails b {
    color: var(--primary);
    margin-left: 10px;
}

.tg_officerBorder {
    padding-bottom: 5px;
}

.tg_officerRace {
    font-size: 0.8rem;
    margin-left: 7px;
    font-style: italic;
}

.tg_varText {
    color: var(--text);
}



























/* DRUG GENERATOR                                                                                 */
/* ---------------------------------------------------------------------------------------------- */
/* Fantasy Drug Generator */



.drugGen_shell {
  background: var(--background);
  color: var(--text);
}

.drugGen_title {
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.drugGen_subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.drugGen_controls .btn + .btn {
  margin-left: 0.25rem;
}

.drugGen_current {
  background: rgba(0, 0, 0, 0.15);
}

.drugGen_section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.4rem;
}

.drugGen_section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.drugGen_label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.1rem;
}

.drugGen_value {
  font-size: 0.9rem;
  line-height: 1.5;
}

.drugGen_rarity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.drugGen_rarityPill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.drugGen_rarityDesc {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Status line */
.drugGen_status {
  min-height: 1.1rem;
}
.drugGen_status.drugGen_statusError {
  color: #ff6b6b;
}

/* Saved drugs table */
.drugGen_savedTitle {
  color: var(--primary);
}

.drugGen_savedWrap {
  border-radius: 0.4rem;
  overflow: hidden;
}

#drugGen_savedTable {
  background: var(--background);
}

#drugGen_savedTable {
  background: var(--background);
  border-collapse: collapse;
  border: none;
  border-spacing: 0;
}

#drugGen_savedTable th,
#drugGen_savedTable td {
  border: none;
}

/* if you're using something like Bootstrap that forces borders */
#drugGen_savedTable,
#drugGen_savedTable th,
#drugGen_savedTable td {
  border: none !important;
}

#drugGen_savedTable thead th {
  background: var(--background);
  border-bottom: 1px dotted var(--primary) !important;
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

#drugGen_savedTable tbody td {
  font-size: 0.86rem;
  vertical-align: middle;
}

#drugGen_savedTable tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

#drugGen_savedTable tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

/* Empty ledger text */
#drugGen_savedEmpty {
  font-style: italic;
}


.drugGen_shell,
.drugGen_current {
  background: var(--background);
}

/* Optional: light border, same as your other tools */
.drugGen_shell,
.drugGen_current {
  box-shadow: none; /* or keep a subtle one if you like */
}

.drugGen_row {
  cursor: pointer;
}

.drugGen_rarity {
  text-align: right;
}

.drugGen_rarityName {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.drugGen_rarityDesc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Save icon hover */
.drugGen_saveIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drugGen_saveIcon {
  color: var(--primary);
  outline: none;
  border: none;
}

.drugGen_saveIcon {
    font-size: 1.5rem;
}

.drugGen_saveIcon .fa {
  vertical-align: middle;
}

.drugGen_saveIconI {
    font-size: 1.5rem;
}

#drugGen_generate {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

/* Hover (only when enabled) */
#drugGen_generate:hover:not(:disabled) {
  background: rgb(from var(--primary) r g b / .85);
  border-color: var(--primary);
  color: var(--background);
}

/* Active (when pressed) */
#drugGen_generate:active:not(:disabled) {
  background: rgb(from var(--primary) r g b / .85);
  border-color: var(--primary);
  color: var(--background);
}

.drugGen_modalTitle {
  color: var(--primary);
  font-size: 1.6rem;
}

#drugGen_current .card,
#drugGen_current .card-body {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  margin-bottom: 15px;
}

.drugGen_currentTop {
    border-top: 2px solid var(--primary);
    margin-top: 25px;
    padding-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px dotted var(--primary);
}

.drugGen_modalTitle {
    font-size: 1.65rem;
    color: var(--primary);
}

.plantGen_rarity {
  display: flex;
  flex-direction: column;   /* stack badge over desc */
  align-items: flex-end;    /* right-align inside the column */
}

.drugGen_rarityPill {
  /* whatever you already have, plus: */
  display: inline-block;
}

.drugGen_rarityDesc {
  margin-top: 0.15rem;      /* little gap under badge */
  font-size: 0.8rem;        /* slightly smaller text if you want */
  opacity: 0.85;            /* optional, softer than main text */
  text-align: right;        /* just to be extra sure */
}

.drugGen_rarityPill {
  display: inline-block;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.drugGen_rarityDesc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.drugGen_label {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.1rem;
    margin-top: 10px;
      margin-left: 10px;
      padding-bottom: 3px;
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);

}

.drugGen_value {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-left: 20px;
  margin-top: 5px;
}

.plantGen_border {
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
    width: 100%;
    padding-bottom: 10px;
}

.drugGen_subtitle {
    margin-left: 10px;
}

.drugGen_value b {
    font-weight: 600;
    color: var(--primary);
}

.drugGen_note {
    color: var(--primary);
    font-size: 0.75rem;
    margin-left:35px;
}

/* Buttons inside this shell: ensure active state matches theme */
.drugGen_shell .btn-outline-warning.active,
.drugGen_shell .btn-outline-warning:active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--background);
}

#drugGen_app button:disabled {
  cursor: not-allowed;
  color: var(--primary);
  opacity: 0.6;
  border-color: rgb(from var(--primary) r g b / .5)
}


#drugGen_app button:hover {
  color: var(--background);
  opacity: 0.6;
  background-color: var(--primary);
  border-color: rgb(from var(--primary) r g b / .5)
}

.drugGen_cures {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

/* Ensure the accordion itself stretches edge-to-edge */
#drugGen_cureAccordion {
    position: relative;
    margin-left: auto;
    margin-right: auto;
  display: block;
  width: 100%;
  max-width: 98%;
  margin-top: 20px;
}

/* (Optional polish) make headers fill and bodies align nicely */
.drugGen_accItem { margin-bottom: .5rem; }
.drugGen_accHeader {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--background);
  border: none;
  border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 40px;
  margin-top: 20px;
}
.drugGen_accBody { 
    width: 100%; 
    margin-top: 10px;
    margin-bottom: 35px;
    margin-left: 30px;
    margin-right: 30px;
    color: var(--text);
    font-weight: 300;
    font-size: 0.85rem;
}

.drugGen_accBody li {
    line-height: 32px;
}

.drugGen_accBody li strong{
    color: var(--primary);

}

.drugGen_saveIcon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--primary);          /* or var(--text) — pick your theme color */
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

/* Ensure the icon inherits the button color */
.drugGen_saveIcon .drugGen_saveIconI {
  color: currentColor !important;
}

/* Hover/Focus/Active: keep bg off and color steady */
.drugGen_saveIcon:hover,
.drugGen_saveIcon:focus,
.drugGen_saveIcon:active,
.drugGen_saveIcon:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;      /* prevents framework from switching to white/transparent */
  opacity: 1 !important;          /* in case something fades icons on hover */
  filter: none !important;
}

/* Disabled: keep visible but slightly dim */
.drugGen_saveIcon:disabled,
.drugGen_saveIcon[disabled] {
  background: transparent !important;
  color: var(--primary) !important;  /* or var(--text) */
  opacity: .6;
  cursor: not-allowed;
}

/* Extra specificity if some theme targets `button:hover i` */
button.drugGen_saveIcon:hover i,
button.drugGen_saveIcon:focus i,
button.drugGen_saveIcon:active i {
  color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
}





























/* HERB GENERATOR                                                                                 */
/* ---------------------------------------------------------------------------------------------- */


.plantGen_subtitle {
    margin-left: 10px;
}

/* Herb / Plant Generator */
.plantGen_shell {
  background: var(--background);
  color: var(--text);
}

.plantGen_title {
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plantGen_subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.plantGen_controls .btn + .btn {
  margin-left: 0.25rem;
}

/* Save icon */
.plantGen_saveIcon {
  color: var(--primary);
  outline: none;
  border: none;
}

.plantGen_saveIconI {
    font-size: 1.5rem;
}

.plantGen_saveIcon .fa {
  vertical-align: middle;
}

/* Status line */
.plantGen_status {
  color: var(--primary);
}
.plantGen_statusError {
  color: #ffb3b3;
}

/* Current herb + modal share same styling philosophy */
.plantGen_current,
.plantGen_modal {
  background: var(--background);
  color: var(--text);
  z-index: 99999;
}




.plantGen_section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.4rem;
}
.plantGen_section:first-of-type {
  border-top: none;
  padding-top: 0;
}





.plantGen_rarity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}





/* Saved herbs */
.plantGen_savedTitle {
  color: var(--primary);
}

.plantGen_savedWrap {
  overflow: hidden;
}

/* Keep table using background, not gray overlay */
#plantGen_savedTable {
  background: var(--background);
}

#plantGen_savedTable {
  background: var(--background);
  border-collapse: collapse;
  border: none;
  border-spacing: 0;
}

#plantGen_savedTable th,
#plantGen_savedTable td {
  border: none;
}

/* if you're using something like Bootstrap that forces borders */
#plantGen_savedTable,
#plantGen_savedTable th,
#plantGen_savedTable td {
  border: none !important;
}

#plantGen_savedTable thead th {
  background: var(--background);
  border-bottom: 1px dotted var(--primary) !important;
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

#plantGen_savedTable tbody td {
  font-size: 0.86rem;
  vertical-align: middle;
}

#plantGen_savedTable tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

#plantGen_savedTable tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

/* Empty ledger text */
#plantGen_savedEmpty {
  font-style: italic;
}

/* Search wrap */
.plantGen_searchWrap {
  min-width: 260px;
}

/* Pager */
.plantGen_pager {
  margin-top: 0.75rem;
}

.plantGen_pageInfo {
  color: var(--primary);
}

/* Buttons inside this shell: ensure active state matches theme */
.plantGen_shell .btn-outline-warning.active,
.plantGen_shell .btn-outline-warning:active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--background);
}

/* Custom modal overlay for herb details */
.plantGen_modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;               /* toggled via .show */
  align-items: center;
  justify-content: center;
  z-index: 9999;

    background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    rgb(from var(--primary) r g b / .725);
  background-blend-mode: multiply;
}

.plantGen_modalOverlay.show {
  display: flex;
}

.plantGen_modalDialog {
  background: var(--background);
  color: var(--text);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
  max-width: 900px;
  width: 96%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.plantGen_modalHeader {
  margin-bottom: 0.5rem;
}

.plantGen_modalTitle {
  color: var(--primary);
  font-size: 1.6rem;
}

.plantGen_modalBody {
  font-size: 0.9rem;
}

/* Optional: prevent body scroll when modal is open */
body.plantGen_modalOpen {
  overflow: hidden;
}

#herbGen_app.plantGen_dimmed {
  opacity: 0.6;
}

#plantGen_name,
#herbModal_name {
  text-transform: capitalize;
}


#herbGen_app button:disabled {
  cursor: not-allowed;
  color: var(--primary);
  opacity: 0.6;
  border-color: rgb(from var(--primary) r g b / .5)
}

#plantGen_generate {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

/* Hover (only when enabled) */
#plantGen_generate:hover:not(:disabled) {
  background: rgb(from var(--primary) r g b / .85);
  border-color: var(--primary);
  color: var(--background);
}

/* Active (when pressed) */
#plantGen_generate:active:not(:disabled) {
  background: rgb(from var(--primary) r g b / .85);
  border-color: var(--primary);
  color: var(--background);
}


#plantGen_current .card,
#plantGen_current .card-body {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  margin-bottom: 15px;
}

.plantGen_currentTop {
    border-top: 2px solid var(--primary);
    margin-top: 25px;
    padding-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px dotted var(--primary);
}

.plantGen_herbTitle {
    font-size: 1.65rem;
    color: var(--primary);
}

.plantGen_rarity {
  display: flex;
  flex-direction: column;   /* stack badge over desc */
  align-items: flex-end;    /* right-align inside the column */
}

.plantGen_rarityPill {
  /* whatever you already have, plus: */
  display: inline-block;
}

.plantGen_rarityDesc {
  margin-top: 0.15rem;      /* little gap under badge */
  font-size: 0.8rem;        /* slightly smaller text if you want */
  opacity: 0.85;            /* optional, softer than main text */
  text-align: right;        /* just to be extra sure */
}

.plantGen_rarityPill {
  display: inline-block;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.plantGen_rarityDesc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.plantGen_label {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.1rem;
    margin-top: 10px;
      margin-left: 10px;
      padding-bottom: 3px;
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .3);

}

.plantGen_value {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-left: 20px;
  margin-top: 5px;
}

.plantGen_border {
    border-bottom: 1px dotted rgb(from var(--primary) r g b / .5);
    width: 100%;
    padding-bottom: 10px;
}

#herbGen_app button:hover {
  color: var(--background);
  opacity: 0.6;
  background-color: var(--primary);
  border-color: rgb(from var(--primary) r g b / .5)
}

/* Base: no bg, no border */
.plantGen_saveIcon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--primary);          /* or var(--text) if you prefer */
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

/* Ensure the icon inherits the button color */
.plantGen_saveIcon .plantGen_saveIconI {
  color: currentColor !important;
}

/* Hover/Focus/Active: keep bg off and color steady */
.plantGen_saveIcon:hover,
.plantGen_saveIcon:focus,
.plantGen_saveIcon:active,
.plantGen_saveIcon:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Disabled: visible but dimmed */
.plantGen_saveIcon:disabled,
.plantGen_saveIcon[disabled] {
  background: transparent !important;
  color: var(--primary) !important; /* or var(--text) */
  opacity: .6;
  cursor: not-allowed;
}

/* Extra specificity if a theme targets button:hover i */
button.plantGen_saveIcon:hover i,
button.plantGen_saveIcon:focus i,
button.plantGen_saveIcon:active i {
  color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
}
