/* Styles for the later systems: leaders, deposits that run out and what a settlement is fitted
   with, and the last stand. Loaded after style.css; the control deck's own styles are in deck.css. */

/* ---------------------------------------------------------------- choosing a god to follow */

.leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.leader {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding: 12px 9px 11px;
  text-align: center;
  background: #fffaf0;
  border: 1.5px solid var(--line, #cdbb93);
  border-top: 6px solid var(--who, #2a2433);
  border-radius: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.leader:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(6, 26, 36, 0.22); border-color: var(--ink-2, #5d5466); border-top-color: var(--who, #2a2433); }
.leader.sel { box-shadow: 0 0 0 2px var(--who, #2a2433); }
.leader img { width: 96px; height: 96px; display: block; }
.leader b { font: 600 16px/1.15 var(--serif, Georgia, serif); margin-top: 2px; }
.leader em { font: 700 10px/1.25 var(--sans, system-ui, sans-serif); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold, #efc66b); }
.leader i { font: italic 13px/1.3 var(--serif, Georgia, serif); color: var(--ink-2, #5d5466); min-height: 2.6em; }
.leader .perk { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.leader small { font-size: 11px; line-height: 1.3; }
.modal-card.wide:has(.leaders) { width: min(820px, 100%); }

/* The leader you sail under, at the head of the chart and on the custom island form. */
.leader-strip, .sk-leader {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  border: 1.5px solid var(--line, #cdbb93);
  border-left: 6px solid var(--who, var(--ink, #2a2433));
  border-radius: 14px;
  background: #fbf4e2;
}
.leader-strip .face, .sk-leader .face { width: 44px; height: 44px; }
.leader-strip b { font: 600 16px/1.2 var(--serif, Georgia, serif); }
.leader-strip small, .sk-leader small { display: block; }
/* Once the world is begun there is no changing who you are, and the strip says so where the button was. */
.leader-strip .fixed { flex: none; max-width: 190px; text-align: right; font-style: italic; opacity: 0.75; }
.sk-leader { grid-column: 1 / -1; font-size: 13px; }

/* You, in the list of tribes. */
.tag.you { background: var(--ink, #2a2433); }

/* Your own leader reporting in, as against a rival having their say. */
.speech.own { background: #fffaf0; border-style: solid; border-color: var(--who, #2a2433); border-left-width: 6px; }
.speech.own .speech-body b { font-size: 13px; font-family: var(--sans, system-ui, sans-serif); font-weight: 700; letter-spacing: 0.02em; }
.speech.own .speech-body p { font-style: normal; }

/* ---------------------------------------------------------------- deposits and fittings */

.dep small { font-size: 11px; font-weight: 400; color: var(--ink-2, #5d5466); margin-left: 3px; white-space: nowrap; }
.dep.out { background: transparent; border-style: dashed; color: var(--ink-2, #5d5466); padding-left: 8px; }
.dep.out img { filter: grayscale(1); opacity: 0.55; margin-left: -5px; }
.dep.deep { border-color: var(--gold, #d99a2b); }
.fits { font-size: 12px; line-height: 1.35; color: var(--ink-2, #5d5466); margin-top: 8px; }
.note.warn { color: var(--bad, #b83a2e); font-weight: 600; }

/* ---------------------------------------------------------------- the last stand */

#research .tips { padding-left: 16px; font-size: 13px; }
#research .tips li { line-height: 1.35; }

@media (max-width: 760px) {
  .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader img { width: 76px; height: 76px; }
}

/* The gods' paintings on the cards you choose between, each with its shield hung on the frame. */
.leader .leader-art { position: relative; display: block; width: 100%; margin-bottom: 20px; }
.leader .leader-art .leader-pic { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 10px; box-shadow: 0 0 0 2px var(--who, #2a2433), 0 6px 14px rgba(6, 26, 36, 0.3); }
.leader .leader-art .shield { position: absolute; left: 50%; bottom: -22px; width: 40px; height: 47px; margin: 0; transform: translateX(-50%); border: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.leader .temper { font-size: 11.5px; line-height: 1.35; text-align: left; }
