



/* ===== 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;
}








/* 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;
}
