/* Trait and flaw cards share the finalized Focus Attack visual hierarchy. */
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding-top: 8px;
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > h3 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  border: 0;
  font: var(--pm-compact-title-size, 28px)/1.2 HYSinMyeongJo, serif !important;
  text-align: left !important;
  text-shadow: none !important;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > h3::after,
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > .row::after {
  display: none !important;
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > :not(h3, .pm-trait-flaw-cost-row) {
  grid-column: 1 / -1;
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > .pm-trait-flaw-cost-row {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding-right: 10px;
}
body.pm-layout-ready .pm-trait-flaw-choice .pm-trait-flaw-cost {
  flex-direction: column-reverse;
  gap: 1px;
  min-width: 44px;
  font-size: 0 !important;
  line-height: 0;
}
body.pm-layout-ready .pm-trait-flaw-choice .pm-trait-flaw-cost::before {
  content: 'COST';
  color: #a9a397;
  font: 11px/1.2 HYSinMyeongJo, serif;
  text-shadow: none;
}
body.pm-layout-ready .pm-trait-flaw-choice .pm-trait-flaw-cost::after {
  content: attr(data-pm-compact-cost);
  color: #d9b56a;
  font: 500 18px/1.1 HYSinMyeongJo, serif;
  text-shadow: none;
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100::after {
  content: '';
  grid-column: 1 / -1;
  grid-row: 2;
  height: 1px;
  margin: 15px 4px 6px;
  background: linear-gradient(to right, transparent, rgba(209,187,159,.85) 24%, rgba(209,187,159,.85) 76%, transparent);
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > p,
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .d-column > .text-center > .m-0 > p {
  font-family: HYSinMyeongJo, serif;
  font-size: 17px !important;
  line-height: 1.3;
  color: #c8c8c8 !important;
  text-align: left !important;
  padding: 6px 10px !important;
}

/* Requirements stay distinct without a second divider above the description. */
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > p.pm-choice-condition-end {
  font-size: 18px !important;
  padding-bottom: 0 !important;
  font-weight: 700;
  text-align: center !important;
}
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > p.pm-choice-condition-end::after {
  display: none;
}

/* Match technique use-condition spacing around trait/flaw condition blocks. */
body.pm-layout-ready .pm-trait-flaw-choice > .d-column > .w-100 > p.pm-choice-mutual-only {
  padding-top: 11px !important;
  padding-bottom: 6px !important;
}
