/* Streets of London RP - faction guides
 *
 * /factions/ and the pages under it. Built from the site's own tokens and
 * panels (styles.css); the faction rules reuse the rulebook's chapters
 * as they are. */

/* ------------------------------------------------------- Jump to a section */

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.page-jump a, .page-jump button { text-decoration: none }

/* ---------------------------------------------------------- Guide sections */

.guide-section {
  margin: 0 0 22px;
  padding: 28px 30px 30px;
  background: var(--surface);
  border-radius: var(--round);
  box-shadow: var(--bevel);
  scroll-margin-top: 150px;
}

.guide-section > h2 { margin-bottom: 8px }
.guide-section > p { color: var(--muted); max-width: 72ch }
.guide-section h3 { margin: 28px 0 8px; font-size: 18px }
.guide-section h4 { margin: 18px 0 6px; font-family: RevainUI, sans-serif; font-size: 15px; font-weight: 500; color: var(--text) }

.guide-section ul { padding-left: 22px; margin: 8px 0 0 }
.guide-section li { margin-bottom: 8px; color: var(--muted) }
.guide-section li strong { color: var(--text); font-weight: 500; font-family: RevainUI, sans-serif }
.guide-section a { text-decoration: underline; text-underline-offset: 3px }

.guide-note { color: var(--dim); font-size: 14.5px; margin-top: 14px }

@media (max-width: 600px) {
  .guide-section { padding: 22px 18px 24px }
}

/* Inside the faction rulebook's chapters. */
.rules-area h4 { margin: 18px 0 6px; font-family: RevainUI, sans-serif; font-size: 15px; font-weight: 500 }
.rules-area .chapter-body > p.guide-note { margin-top: 10px }

/* -------------------------------------------------------------- Point values */

.pts { font-family: RevainUI, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums }
.pts.plus { color: var(--good) }
.pts.minus { color: var(--danger) }
.data-table td.pts { color: inherit }
.data-table td.pts.plus { color: var(--good) }
.data-table td.pts.minus { color: var(--danger) }

/* ------------------------------------------------------------ Hub (/factions/) */

.guide-list { display: grid; gap: 12px; max-width: 760px }

.guide-list a {
  display: block;
  padding: 22px 26px;
  background: var(--surface);
  border-radius: var(--round);
  box-shadow: var(--bevel);
  transition: background .2s ease, transform .3s var(--ease);
}

.guide-list a:hover { background: var(--surface-2); transform: translateX(4px) }
.guide-list h2 { margin: 0 0 4px; font-size: 24px }
.guide-list p { color: var(--muted); margin: 0 }

/* ------------------------------------------------------------ Drug tier list */

.price-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: -14px 0 26px;
  color: var(--dim);
  font-size: 14.5px;
}

.tier-head { margin: 40px 0 6px; scroll-margin-top: 150px }
.tier-head h2 { margin: 0 }
.tier-head p { color: var(--muted); margin: 4px 0 0; max-width: 72ch }
.tier-head .tier-from { color: var(--dim); font-size: 14.5px }

.drug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.drug {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px;
  background: var(--surface);
  border-radius: var(--round);
  box-shadow: var(--bevel);
  scroll-margin-top: 150px;
}

.drug h3 { margin: 0; font-family: RevainDisplay, sans-serif; font-size: 24px; line-height: 1.2 }
.drug .aka { margin: 2px 0 0; color: var(--dim); font-size: 14.5px }

/* The three numbers people come here for, side by side. */
.drug-facts {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.drug-facts > div { min-width: 0 }
.drug-facts dt, .drug-detail dt { font-family: RevainUI, sans-serif; font-size: 13px; color: var(--dim) }
.drug-facts dd { margin: 2px 0 0; color: var(--text); font-size: 15px; line-height: 1.5 }

.price-lines { font-family: RevainUI, sans-serif; font-size: 16px }
.price-lines span { display: block }

.drug-detail { margin: 0; display: grid; gap: 12px }
.drug-detail dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65 }
.drug-detail dd.risk { color: var(--danger) }

@media (max-width: 520px) {
  .drug { padding: 20px 18px }
  .drug-facts { grid-template-columns: 1fr 1fr }
  .drug-facts > div:first-child { grid-column: 1 / -1 }
}

/* Police priority: colour only because it means something. */
.level {
  display: inline-block;
  font-family: RevainUI, sans-serif;
  font-size: 15px;
}

.level-low { color: var(--good) }
.level-medium { color: var(--warn) }
.level-high { color: var(--danger) }

/* ----------------------------------------------------- Editing prices (owners) */

.price-edit {
  width: 100%;
  min-height: 0;
  margin-top: 6px;
  padding: 8px 10px;
  font-family: RevainUI, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}

.price-default { display: block; margin-top: 4px; font-size: 12.5px; color: var(--dim) }

.price-save {
  position: sticky;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: var(--round);
  box-shadow: var(--bevel);
}

.price-save .hint { margin: 0; color: var(--muted); font-size: 14px; flex: 1 1 260px }
.price-save .status-line { font-size: 14px; color: var(--dim) }
.price-save .status-line.is-error { color: var(--danger) }
