/* ──────────────────────────────────────────────────────────────────────── */
/*  Assemble the Hired Host — ecosystem adventurer league generator         */
/* ──────────────────────────────────────────────────────────────────────── */

.la-page { max-width: 1300px; margin: 0 auto; }

/* Toolbar */
.la_toolbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.la_titleWrap .la-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid rgba(80, 180, 140, .3); background: rgba(80, 180, 140, .06);
  color: #8be0b8; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem;
}
.la_guildTitle {
  margin: 0 0 .3rem; font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: .02em;
  background: linear-gradient(135deg, #ffffff 10%, #c7e5d3 45%, #f0cf7d 85%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.la_tagline { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 640px; }
.la_muted { color: var(--muted); }
.la_small { font-size: .82rem; }
.la_h2 { font-family: var(--display); font-size: 1.15rem; color: var(--gold-hi); letter-spacing: .02em; margin: 0 0 .7rem; }
.la_h3 { font-family: var(--display); font-size: 1rem; color: var(--gold); letter-spacing: .02em; border-bottom: 1px solid var(--border-soft); padding-bottom: .35rem; margin: 1rem 0 .6rem; }
.la_h3.mt-5 { margin-top: 1.75rem; }

.la_structureDues { color: var(--muted); line-height: 1.55; }
.la_rules { color: var(--text); line-height: 1.7; font-size: .88rem; }
.la_rules b { color: var(--gold); }
.la_rules p { margin: .5rem 0; }
.la_rules ul { padding-left: 1.2rem; margin: .4rem 0; }

.la_sectionIndent { padding-left: .25rem; }
.la_mt6 { margin-top: 1rem; }

/* Buttons */
.la_btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 10px;
  font-size: .84rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .16s ease; white-space: nowrap;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #a589ff 0%, var(--violet) 55%, #6a4df4 100%);
  color: #fff; border-color: rgba(139,112,255,.55);
  box-shadow: 0 3px 14px rgba(139,112,255,.3);
}
.la_btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(139,112,255,.45); }
.la_btnOutline {
  background: transparent; color: var(--muted); border-color: var(--border); box-shadow: none;
}
.la_btnOutline:hover { color: var(--text); border-color: var(--gold); background: rgba(214,178,87,.06); transform: none; }
.la_btnSm { padding: .4rem .75rem; font-size: .75rem; }
.la_btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Cards */
.la_card {
  background: linear-gradient(180deg, var(--panel-top), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  margin-bottom: 1.25rem;
}
.la_cardBand       { border-left: 3px solid rgba(214,178,87,.4); }
.la_cardSoftBand   { background: linear-gradient(180deg, rgba(139,112,255,.05), var(--panel)); }
.la_cardBorderBottom { border-left: 3px solid rgba(80, 180, 140, .35); }

/* Context controls card (reuses tg_card from shared) */
.tg_card {
  background: linear-gradient(180deg, var(--panel-top), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.tg_card .form-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; display: block; }
.tg_card .form-select-sm {
  padding: .55rem .75rem;
  background: rgba(8,8,14,.65); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: .88rem; font-family: inherit; outline: none;
  width: 100%;
}
.tg_card .form-select-sm:focus { border-color: var(--gold); }
.tg_card .row { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: flex-end; }
.tg_card .col-12 { flex: 1 1 180px; min-width: 160px; }

/* Tables */
.la_table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .3rem; }
.la_table th, .la_table td {
  padding: .55rem .55rem; border-bottom: 1px solid var(--border-soft);
  text-align: left; vertical-align: top;
}
.la_table tr:last-child td { border-bottom: none; }
.la_table thead th {
  color: var(--gold); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
}
.la_table td { color: var(--text); line-height: 1.55; }

.la_ovTable .la_tableLabel, .la_kv .la_tableLabel {
  width: 200px; color: var(--gold); font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}
.la_ovTable .la_tableData, .la_kv .la_tableData { color: var(--text); line-height: 1.55; font-size: .9rem; }

.la_hcTable { margin-top: .5rem; }

/* Coin icon inline with prices */
.la_coin {
  display: inline-block; width: 13px; height: 13px;
  vertical-align: -2px; margin: 0 .08rem;
}

/* Grids */
.la_grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.la_grid .la_card { margin: 0; }

/* Officers */
.la_officers {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.la_officers .la_card { margin: 0; padding: .9rem 1rem 1rem; background: rgba(255,255,255,.015); border-color: var(--border-soft); box-shadow: none; }
.la_officers .la_role { font-size: .7rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.la_officers .la_officerBorder { padding: .35rem 0 .5rem; border-left: 2px solid rgba(214,178,87,.4); padding-left: 1rem; }
.la_officers .la_officerNameLine { font-weight: 700; color: var(--text); font-size: .98rem; }
.la_officers .la_officerRace { color: var(--muted); font-size: .82rem; }
.la_officers .la_officerDetails { color: var(--muted); line-height: 1.55; padding-left: 1rem; font-size: .82rem; }
.la_officers .la_officerDetails b { color: var(--gold); font-weight: 700; }

/* Ranks / Divisions — the shared module outputs .la_mb6 divs with a label,
   a description, and (for ranks) a baseline-rates line. */
#la_ranks, #la_divisions { display: flex; flex-direction: column; gap: 1.1rem; }
#la_ranks .la_mb6, #la_divisions .la_mb6 {
  padding: .55rem 0 .55rem .9rem;
  border-left: 2px solid rgba(214,178,87,.32);
}
#la_ranks .la_label, #la_divisions .la_label {
  font-family: var(--display);
  color: var(--gold-hi);
  font-size: 1.02rem;
  letter-spacing: .02em;
  margin-bottom: .3rem;
}
#la_ranks .la_label.mt-3, #la_divisions .la_label.mt-3 { margin-top: 0; }

/* Description line — mute it, drop the gold */
#la_ranks .la_varText, #la_divisions .la_varText {
  color: var(--muted) !important;
  font-style: normal;
  font-size: .86rem;
  line-height: 1.55;
  margin-bottom: .3rem;
}
.la_indent5  { padding-left: 0; }
.la_indent15 { padding-left: 0; }
.la_fs08     { font-size: .82rem; }

/* Rates line — brighter, gold bold label */
#la_ranks .la_indent15 {
  color: var(--text);
  font-size: .86rem;
  line-height: 1.55;
}
#la_ranks .la_indent15 b { color: var(--gold); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-right: .35rem; }

/* Coin-price span: compact, cursor:help so users see the tippy affordance */
.la_coinVal {
  display: inline-flex; align-items: center; gap: .2rem;
  white-space: nowrap; cursor: help;
}

/* Job / Hench lists */
.la_jobList, .la_henchList { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.la_jobList li, .la_henchList li {
  padding: .75rem .9rem;
  background: rgba(255,255,255,.015);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: .88rem; line-height: 1.55;
  color: var(--text);
}
.la_jobList li:hover, .la_henchList li:hover { border-color: rgba(214,178,87,.3); }
.la_jobList b, .la_henchList b { color: var(--gold-hi); font-weight: 700; }
.la_jobList .la_muted, .la_henchList .la_muted { color: var(--muted); }

.la_err {
  color: #ff9ba8; font-size: .82rem;
  padding: .6rem .9rem; border: 1px solid rgba(233,69,96,.35);
  background: rgba(233,69,96,.05); border-radius: 10px;
}

/* Toast */
.la-toast-host { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; max-width: calc(100vw - 32px); }
.la-toast { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem; border-radius: 10px; background: linear-gradient(180deg, rgba(26,26,45,.97), rgba(19,19,33,.97)); border: 1px solid var(--border); color: var(--text); font-size: .86rem; box-shadow: 0 10px 28px rgba(0,0,0,.5); pointer-events: auto; animation: la-toast-in .22s ease-out; max-width: 440px; }
.la-toast i { font-size: .9rem; flex-shrink: 0; }
.la-toast.is-info i { color: var(--violet); }
.la-toast.is-warn { border-color: rgba(232,160,80,.5); }
.la-toast.is-warn i { color: #e8a050; }
.la-toast.is-error { border-color: rgba(233,69,96,.55); }
.la-toast.is-error i { color: #e94560; }
.la-toast.is-out { opacity: 0; transform: translateY(-6px); transition: all .2s ease-in; }
@keyframes la-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Print */
@media print {
  body { background: #fff !important; color: #1b1b20; }
  .topbar, .footer, .la_toolbar .d-flex, .page-back, .tg_card:first-of-type, .la-toast-host, #la_jobs_reroll, #la_hench_reroll { display: none !important; }
  .la_card { background: #fff; border-color: #ccc; box-shadow: none; color: #1b1b20; }
  .la_guildTitle, .la_h2, .la_h3, .la_role, .la_tableLabel, .la_muted { color: #1b1b20 !important; -webkit-text-fill-color: #1b1b20 !important; background: none !important; }
  .la_tableData, .la_officerDetails, .la_rules { color: #2a2a30 !important; }
  .la_coin { filter: grayscale(100%); }
  .la_jobList li, .la_henchList li { border: 1px solid #ccc; background: #fff; }
}

/* Responsive */
@media (max-width: 720px) {
  .la_toolbar { align-items: stretch; }
  .la_ovTable .la_tableLabel { width: 140px; }
}
