/* DefaultCSS.css
   Place at the domain root: /DefaultCSS.css
   Include from any page:
   <link rel="stylesheet" href="/DefaultCSS.css">
*/

:root {
  --crpg-red: #82060a;
  --crpg-black: #231f20;
  --crpg-gold: #b0881c;
  --crpg-gold-soft: #d4b45a;
}

/* Row of dice plus an optional text label */
.dice {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: #8a8274;
}

/* A single d6 face */
.die {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #fff;
  border: 2px solid var(--crpg-black);
  display: grid;
  place-items: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--crpg-black);
  line-height: 1;
}

/* Critical, or a face that matters right now */
.die.gold,
.die.critical {
  background: var(--crpg-gold-soft);
}

/* A die that is not being rolled — Harm, Lag, Friction, empty slot */
.die.out,
.die.harm,
.die.lag,
.die.friction {
  background: #e6e1d6;
  color: #8a8274;
  border-style: dashed;
}

/* A face that moved during Leverage */
.die.swap,
.die.leverage {
  background: #2c1011;
  color: var(--crpg-gold-soft);
  border-color: var(--crpg-gold);
}

/*BEGIN FONTIS STYLING CSS*/

/* ===== Overall Fontis Object Block ===== */
.fontis {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 16px;
  padding: 24px;
  color: rgb(226, 232, 240);
  margin-bottom: 1.5rem;
  --fontis-accent: rgb(110, 231, 183); /* emerald */
}

.fontis-header-dont-use {
  color: rgb(110 231 183);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  opacity: 0.9;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.fontis-title {
  color: rgb(110 231 183);
  margin-bottom: 0.35rem;
  opacity: 0.9;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.fontis-tagline {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: rgb(148, 163, 184);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

/* ===== Feature block ===== */
.backup-fontis-feature {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.fontis-feature {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.fontis-feature:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Horizontal title + cost row */
.fontis-feature-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fontis-feature-header h3,
.fontis-feature-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(110 231 183); /* emerald-300 */
  line-height: 1.3;
}

.fontis-feature-cost {
  margin: 0;
  font-size: 0.8rem;
  color: rgb(251, 191, 36);
  white-space: nowrap;
  font-weight: 600;
}

/* Description */
.fontis-feature > p {
  margin: 0;
  color: rgb(203 213 225); /* slate-300 */
  line-height: 1.5;
}

/* Optional: slightly muted cost on the same line */
.fontis-feature-header .fontis-feature-cost {
  opacity: 0.9;
}

.fontis-lore-mechanics-narrative-section {margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgb(51 65 85);}
.fontis-lore-mechanics-narrative-section > p {margin: 0;color: rgb(203 213 225); line-height: 1.5;}
.fontis-lore-section {margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgb(51 65 85);}
.fontis-lore-section > p {margin: 0;color: rgb(203 213 225); line-height: 1.5;}
.fontis-mechanics-section {margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgb(51 65 85);}
.fontis-mechanics-section > p {margin: 0;color: rgb(203 213 225); line-height: 1.5;}
.fontis-narrative-section {margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgb(51 65 85);}
.fontis-narrative-section > p {margin: 0;color: rgb(203 213 225); line-height: 1.5;}

.fontis-lore-mechanics-narrative-header {display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.35rem;}
.fontis-lore-header {display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.35rem;}
.fontis-mechanics-header {display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.35rem;}
.fontis-narrative-header {display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.35rem;}

.fontis-lore-mechanics-narrative-header h3,
.fontis-lore-mechanics-narrative-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(110 231 183); /* emerald-300 */
  line-height: 1.3;
}

.fontis-lore-header h3, .fontis-lore-header h4 { margin: 0; font-size: 1.05rem; font-weight: 600; color: rgb(110 231 183); /* emerald-300 */ line-height: 1.3;}
.fontis-mechanics-header h3, .fontis-mechanics-header h4 { margin: 0; font-size: 1.05rem; font-weight: 600; color: rgb(110 231 183); /* emerald-300 */ line-height: 1.3;}
.fontis-narrative-header h3, .fontis-narrative-header h4 { margin: 0; font-size: 1.05rem; font-weight: 600; color: rgb(110 231 183); /* emerald-300 */ line-height: 1.3;}

.fontis-lore-mechanics-narrative-header {
  opacity: 0.9;
}

.fontis-lore-header { opacity: 0.9;}
.fontis-mechanics-header { opacity: 0.9;}
.fontis-narrative-header { opacity: 0.9;}

.fontis-features-section {
  background-color: rgb(30, 41, 59);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 16px;
  padding: 24px;
  color: rgb(226, 232, 240);
}

.fontis-features-section-header {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(110 231 183); /* emerald-300 */
  line-height: 1.3;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.fontis-features-section-dont-use {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.fontis-features-section-dont-use > p {
  margin: 0;
  color: rgb(203 213 225); /* slate-300 */
  line-height: 1.5;
}

.fontis-title,
.fontis-lore-mechanics-narrative-header h3,
.fontis-lore-mechanics-narrative-header h4,
.fontis-lore-header h3,
.fontis-lore-header h4,
.fontis-mechanics-header h3,
.fontis-mechanics-header h4,
.fontis-narrative-header h3,
.fontis-narrative-header h4,
.fontis-features-section-header,
.fontis-feature-header h3,
.fontis-feature-header h4 {
  color: var(--fontis-accent);
}

.fontis.arcanist {--fontis-accent: #00d4ff;}
.fontis.artificer {--fontis-accent: #8a6a3b;}
.fontis.chronicler {--fontis-accent: #5a4e6d;}
.fontis.contingency {--fontis-accent: #a5b4fc;}
.fontis.echo {--fontis-accent: #c4b5fd;}
.fontis.glimmer {--fontis-accent: #facc15;}
.fontis.haunted {--fontis-accent: #cbd5e1;}
.fontis.hero {--fontis-accent: #34d399;}
.fontis.mycel {--fontis-accent: #2dd4bf;}
.fontis.pilgrim {--fontis-accent: #fbbf24;}
.fontis.ranger {--fontis-accent: #34d399;}
.fontis.rook {--fontis-accent: #94a3b8;}
.fontis.saltwake {--fontis-accent: #38bdf8;}
.fontis.scholar {--fontis-accent: #facc15;}
.fontis.scoundrel {--fontis-accent: #34d399;}
.fontis.tamer {--fontis-accent: #94a3b8;}
.fontis.vanguard {--fontis-accent: #fb7185;}
.fontis.wraith {--fontis-accent: #818cf8;}

/*END FONTIS STYLING CSS*/

.page-after-header {
  margin-left: 4vw;
  margin-right: 4vw;
  margin-top: 5rem;
}