.ggthrow {
    --throw-ink: #153d2e;
    --throw-muted: #40554a;
    --throw-line: #b9c9bf;
    --throw-surface: #f4f8f5;
    color: var(--throw-ink);
    line-height: 1.5;
}

.ggthrow [hidden] { display: none !important; }
.ggthrow fieldset, .ggthrow-result {
    min-width: 0;
    margin: 1.25rem 0;
    padding: clamp(.75rem, 2vw, 1.25rem);
    border: 1px solid var(--throw-line);
    border-radius: .65rem;
}

.ggthrow fieldset > p {
    margin: .85rem 0;
    color: var(--throw-muted);
}

.ggthrow fieldset > p:first-of-type { margin-top: 0; }
.ggthrow fieldset > .ggthrow-grid + p { margin-top: 1rem; }
.ggthrow legend, .ggthrow-label { font-weight: 700; }
.ggthrow legend { padding-inline: .3rem; }
.ggthrow-label > span { font-weight: 400; }
.ggthrow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .85rem;
}

.ggthrow-field, .ggthrow-field label, .ggthrow-field small { display: block; min-width: 0; }
.ggthrow-field small { color: var(--throw-muted); }
.ggthrow-field [data-aspect-custom] { margin-block-start: .6rem; }
.ggthrow-field .ggthrow-error { margin-block-start: .2rem; color: #922c22; font-weight: 650; }
.ggthrow-measure {
    display: flex;
    gap: .6rem;
}

.ggthrow-measure label { flex: 1 1 0; max-width: 8rem; }
.ggthrow-measure label span { font-size: .9em; color: var(--throw-muted); }
.ggthrow input, .ggthrow select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    margin: .15rem 0 0;
    padding: .45rem .55rem;
    border: 1px solid #73897c;
    border-radius: .35rem;
    background-color: #fff;
    color: var(--throw-ink);
    font: inherit;
}

.ggthrow [aria-invalid="true"] { border-color: #922c22; box-shadow: inset 0 0 0 1px #922c22; }
.ggthrow-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.ggthrow-settings { margin-block-start: 1rem; }
.ggthrow button {
    min-height: 2.75rem;
    padding: .5rem .9rem;
    border: 1px solid #175139;
    border-radius: .35rem;
    color: #fff;
    background: #175139;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.ggthrow .ggthrow-secondary { color: #175139; background: #fff; }
.ggthrow :focus-visible, .ggthrow [data-throw-result-title]:focus {
    outline: 3px solid #a54513;
    outline-offset: 3px;
}

.ggthrow-status:empty { display: none; }
.ggthrow-result { background: var(--throw-surface); }
.ggthrow-result h4 { margin: 0 0 .6rem; }
.ggthrow-result p { margin: .85rem 0; }
.ggthrow-result-grid { margin: 0; }
.ggthrow-result-grid > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    column-gap: 1rem;
    padding: .5rem 0;
    border-block-end: 1px solid var(--throw-line);
    break-inside: avoid;
}

.ggthrow-result-grid dt { font-weight: 650; }
.ggthrow-result-grid dd { margin: 0; overflow-wrap: anywhere; }
.ggthrow-result-grid > div:first-child {
    padding-block-start: .15rem;
    font-size: 1.1em;
}

.ggthrow-result-grid > div:first-child dd { font-weight: 700; }
.ggthrow-decision {
    padding: .65rem .8rem;
    border-inline-start: .2rem solid #447858;
    background: #e8f1eb;
}

.ggthrow-decision[data-no-overlap] { border-color: #91430f; background: #fff3e7; color: #783505; }
.ggthrow-scope { color: var(--throw-muted); }
.ggthrow-method { margin-block: 1rem; }
.ggthrow-method summary { cursor: pointer; font-weight: 650; }

@media print {
    body:has(.ggthrow--printing) :not(.ggthrow--printing, .ggthrow--printing *, :has(.ggthrow--printing)) {
        display: none !important;
    }
    .ggthrow--printing > :not(.ggthrow-result), .ggthrow [data-throw-print] { display: none !important; }
    .ggthrow--printing, .ggthrow--printing .ggthrow-result {
        background: #fff;
        color: #111;
    }
    .ggthrow--printing .ggthrow-result { margin: 0; }
    .ggthrow--printing .ggthrow-result h4 { outline: none; }
}
