/* FILE SPECS (style page, "File specs" tab)
   Layers over main.css and style-page.css.
   Same skeleton as the type tester: a green 10% panel that hangs from the 20px bar
   under the tabs, and a white card beside it. */


.specsSummary {
    grid-column: span 3;
    align-self: start;
    margin-top: -20px;
    background-color: rgba(21, 71, 52, 0.1);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specsContent {
    grid-column: span 7;
    background-color: #FFF;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    align-items: start;
    min-width: 0;
}

.specsColumn {
    min-width: 0;
}

/* the rule between the two columns stands in the middle of the 40px gap */
.specsColumn + .specsColumn {
    position: relative;
    align-self: stretch;
}

.specsColumn + .specsColumn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    border-left: 1px solid rgba(21, 71, 52, 0.35);
}

/* variable styles: the axes follow the font data in the first column;
   the named instances run under both columns */

.specsColumn .specsLabel + .specsList + .specsLabel {
    margin-top: 20px;
}

.specsAxes dd {
    font-variant-numeric: tabular-nums;
}

.specsInstances {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(21, 71, 52, 0.35);
}

.instanceList {
    list-style: none;
    margin: 0;
    padding: 0;
    column-width: 12em;
    column-gap: 40px;
}

.instanceList li {
    break-inside: avoid;
    padding: 4px 0;
}

@media only screen and (max-width: 1410px) {
    .specsContent {
        grid-column: span 5;
    }
}

@media only screen and (max-width: 1150px) {
    .specsSummary {
        grid-column: span 6;
    }
    .specsContent {
        grid-column: span 6;
    }
}

@media only screen and (max-width: 880px) {
    .specsSummary {
        grid-column: span 5;
    }
    .specsContent {
        grid-column: span 5;
    }
}

@media only screen and (max-width: 760px) {
    .specsSummary {
        grid-column: span 4;
    }
    .specsContent {
        grid-column: span 4;
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    .specsColumn + .specsColumn::before {
        content: none;
    }
}
