/* Decorative arrow from the supplied LdL icon pack; text remains selectable. */
.rule-choice,.rule-list>li,.discipline-intro {position:relative;padding-inline-start:28px}
.rule-choice::before,.rule-list>li::before,.discipline-intro::before {
  content:"";position:absolute;inset-inline-start:0;top:.3em;
  width:20px;height:20px;background:var(--accent);
  mask:url("icons/rule-choice-arrow.svg") center/contain no-repeat;
  -webkit-mask:url("icons/rule-choice-arrow.svg") center/contain no-repeat;
  pointer-events:none;
}
ul.rule-list {list-style:none;padding-inline-start:0}
.rule-list>li+li {margin-top:8px}
.discipline-intro {font:400 21px/1.5 var(--reading);margin-block:20px;min-width:0;overflow-wrap:anywhere}
.discipline-intro>p {margin:0}
.discipline-branches:has(>.discipline-intro):has(>:nth-child(2)) {grid-template-columns:minmax(0,1fr);--branch-fork-display:none}
.discipline-branches>.discipline-intro {grid-column:1/-1;border:0;background:transparent;padding:0 0 0 28px}
.discipline-branches>.discipline-intro::before {border:0;left:0;top:.3em;width:20px;height:20px}
.discipline-branches>.discipline-intro::after {content:none;display:none}
.discipline-branches.discipline-recipes {border-left:0;padding:0}
.discipline-branches.discipline-recipes::before,
.discipline-branches.discipline-recipes>:not(.discipline-intro)::before,
.discipline-branches.discipline-recipes>:nth-child(n)::after {display:none}
@container discipline-tree (min-width:900px) {
  .discipline-branches.discipline-recipes:has(>.discipline-intro) {grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;padding:0;--branch-fork-display:none}
}
/* Static tier indicators show the sequence, not a character's current resource. */
.rule-threshold-meter {display:inline-flex;flex-wrap:wrap;gap:4px;max-width:100%;vertical-align:middle;margin-inline-end:10px;margin-block-end:.15em;pointer-events:none}
.rule-threshold-square {display:block;flex:0 0 8px;width:8px;height:8px;background:var(--line)}
.rule-threshold-filled {background:var(--accent)}
td.rule-threshold-item .rule-threshold-meter,th.rule-threshold-item .rule-threshold-meter {display:flex;flex-wrap:nowrap;width:max-content;max-width:none;margin:0 0 6px}
.rule-list>li.rule-threshold-item {padding-inline-start:0}
.rule-list>li.rule-threshold-item::before {content:none}
@media (forced-colors:active) {
  .rule-choice::before,.rule-list>li::before,.discipline-intro::before {background:CanvasText}
  .rule-threshold-square {background:GrayText;forced-color-adjust:none}
  .rule-threshold-filled {background:CanvasText}
}
