
.verses-card,
.verses-card
{
    padding: 1em 1.5em;
    border-radius: 0.75em;
    background-color: #f9f9f9;
    font-family: var(--mono-font-family);
    box-shadow: #00000033 0 0 8px 0px;
    margin-bottom: 2rem;
}


.verses-card.society {
    background-color: #ecf5fc;
}

.verses-card.archetype {
    background-color: #ecfcf9;
}

.verses-card.enemy {
    background-color: #fcfaec;
}

img.archetype-portrait {
    float: left;
    width: 200px;
    margin: 0 1rem 1rem 0;
}

img.enemy-portrait {
    float: right;
    width: 250px;
    margin: 0 0 1rem 1rem;
}

.verses-card h3 {
    margin-top: 0;
    clear: both;
}

.verses-card p:has(label.heading) {
    margin-bottom: 0;
}

.verses-card p:has(label.heading) + p {
    margin-top: 0;
}

.verses-card label.heading {
    display: block;
    font-size: 1em;
    font-weight: bold;
    font-style: italic;
    margin: 0.25em 0 0;
    clear: left;
}

p:has(label.heading) ~ .indent-block {
    margin-left: 1rem;
}

.verses-card h4 + p,
.verses-card h4 + p
{
    margin-top: 0;
}

.verses-species-stats {
    font-family: var(--mono-font-family);
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
}

.verses-species-stats .column,
.verses-species-stats .species-pfp
{
    margin-left: 0.5em;
    min-width: 12em;
    max-width: 25%;
}


.verses-card .verses-species-stats .column,
.verses-card .verses-species-stats .species-pfp
{
    max-width: 40%;
    flex-grow: 1;
}


.verses-species-stats .column:first-of-type {
    margin-left: 0;
}

.verses-species-stats h4 {
    margin: 0;
}

.verses-species-stats .attributes > div {

}

.verses-species-stats .attributes > div > label {
    display: inline-block;
    width: 40%;
    min-width: 4rem;
    font-size: 0.8em;
    padding: 0.125em 0.25em;
    color: var(--md-primary-fg-color);
    white-space: nowrap;
}

.verses-species-stats .attributes.derived > div > label {
    width: 50%;
}


.verses-card.enemy .stats-columns {
    display: flex;
    flex-direction: row;
    flex-justify: stretch;
    flex-align: flex-start;
}

.verses-card.enemy .stats-columns .stats-column {
    display: inline-block;
    min-width: 25%;
}

.verses-card.enemy .stats-columns .stats-column .stat {

}

.verses-card.enemy .stats-columns .stats-column .stat label {
    display: inline-block;
    font-size: 0.8em;
    min-width: 2rem;
    color: var(--md-primary-fg-color);
}

.allocation {
    margin-bottom: 0.25rem;
}

.allocation p {
    margin: 0.25rem 0 0;
}

.allocation .name {
    display: inline-block;
    height: 1rem;
}

.allocation .name p {
    display: inline;
}

.allocation .name .subname {
    display: inline-block;
    height: inherit;
    font-size: 0.9em;
}

.allocation .description {
    margin-left: 2rem;
    font-size: 0.9em;
}

.allocation .dice {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0.125rem;
    margin-right: 0.5em;
    line-height: 1.25;
    text-align: center;
    color: #fcfaec;
    border: var(--md-primary-fg-color) 1px solid;
    border-radius: 4px;
    background-color: var(--md-primary-fg-color);
    cursor: pointer;
}

.allocation .dice .dice-explainer {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    left: 2em;
    top: -0.25em;
    color: black;
    list-style: none;
    background-color: white;
    margin: 0;
    padding: 0.5em 1em;
    border-radius: 4px;
    box-shadow: #00000033 0 0 8px 0px;
    transition: opacity 0.25s;
    z-index: 2000;
}

.allocation .dice .dice-explainer::before {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    top: 0.5em;
    left: -0.75em;
    border: 0.5em solid transparent;
    border-left-width: 0;
    border-right-width: 0.75em;
    border-right-color: white;
}

.allocation .dice:hover .dice-explainer {
    visibility: visible;
    opacity: 1;
}

.allocation .dice .dice-explainer li {
    white-space: nowrap;
    margin: 0;
    border-top: 0.5px black solid;
}

.allocation .dice .dice-explainer li:first-of-type {
    border-top: none;
}

.allocation .dice .dice-explainer li label {
    display: inline-block;
    font-size: 0.8em;
    text-align: left;
    min-width: 3rem;
    color: var(--md-primary-fg-color);
}

.verses-card .col-heads {
    font-size: 0.8em;
    color: var(--md-primary-fg-color);    
}

.verses-card .col-heads label {
    display: inline-block;
    min-width: 2.75em;
}

.verses-card .assigned-weapon {
    border-top: #00000066 0.5px solid;
}

.verses-card .assigned-weapon * {
    display: inline-block;
}

.verses-card .assigned-weapon .name {
    width: 6rem;
    padding: 0 0.5em;
}

.verses-card .assigned-weapon .test {
    min-width: 8rem;
    padding: 0 0.5em;
}
