.tab-contents.laws {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-contents.laws .current-laws {
    display: grid;
    grid-auto-columns: 1fr;
    gap: 0.5em;
}

.tab-contents.laws .current-laws > * {
    grid-row: 1;
}

.tab-contents.laws .current-law {
    border-radius: 0.5em 0.5em 0 0;
    background-color: var(--color-tab-not-selected);
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.tab-contents.laws .current-law.selected {
    background-color: var(--color-bg-gray);
}

.tab-contents.laws .current-law:not(.selected):hover {
    cursor: pointer;
    background-color: var(--color-button-hover);
}

.tab-contents.laws .current-law > * {
    text-align: center;
}

.tab-contents.laws .current-law .name {
    font-size: 1.25em;
    font-weight: bold;
}

.tab-contents.laws .current-law .desc {
    font-size: 0.8em;
    color: var(--color-text-gray);
}

.tab-contents.laws .law-options {
    flex-grow: 1;
    border-radius: 0 0 0.5em 0.5em;
    background-color: var(--color-bg-gray);
    padding: 0.5em;
    display: grid;
    grid-auto-columns: 1fr;
    gap: 0.5em;
}

.tab-contents.laws .law-options > * {
    grid-row: 1;
}

.tab-contents.laws .law-options .option {
    border-radius: 0.5em;
    box-shadow: 0.15em 0.15em var(--color-button-shadow);
    background-color: var(--color-button-not-selected);

    display: flex;
    flex-direction: column;
    gap: 0.15em;
    overflow: hidden;
}

.tab-contents.laws .law-options .option.disabled {
    background-color: var(--color-button-disabled);
}

.tab-contents.laws .law-options .option.selected {
    background-color: var(--color-upgrade-complete);
}

.tab-contents.laws .law-options .option:not(.selected):not(.disabled):hover {
    cursor: pointer;
    background-color: var(--color-button-hover);
}

.tab-contents.laws .law-options .option.selected .cost {
    visibility: hidden;
}

.tab-contents.laws .law-options .option .name {
    font-weight: bold;
    font-size: 1.25em;
    text-align: center;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    background-color: var(--color-reverse-shadow);
}

.tab-contents.laws .law-options .option .desc {
    font-size: 0.8em;
    color: var(--color-text-gray);
    text-align: center;
    height: 7em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.tab-contents.laws .law-options .option .class-opinion-holder {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.tab-contents.laws .law-options .option .class-opinion {
    display: flex;
    align-items: center;
    justify-self: center;
    align-self: center;
    width: 4em;
    gap: 0.5em;
}

.tab-contents.laws .law-options .option .class-opinion .class-die {
    height: 1.25em;
    width: 1.25em;
    border-radius: 0.25em;
}

.tab-contents.laws .law-options .option .class-opinion .class-support {
    font-size: 1.25em;
}

.tab-contents.laws .law-options .option .cost {
    font-weight: bold;
    font-size: 1.25em;
    text-align: center;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    background-color: var(--color-reverse-shadow);
}

.tab-contents.laws .law-options .option.default .support-meter {
    visibility: hidden;
}

.tab-contents.laws .law-options .option .support-meter {
    margin: 0.25em;
    border-radius: 0.5em;
    height: 1.3em;
    background-color: var(--color-detection-progressbar);

    overflow: hidden;
    position: relative;
}

.tab-contents.laws .law-options .option .support-meter .support {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: calc(100% * (1 - var(--support-percentage)));
    background-color: var(--color-text-good);
}

.tab-contents.laws .law-options .option .support-meter .percentage {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    color: var(--color-text-negative);
}