/* nSuns calculator, on top of base.css, calc.css and plan.css */
.ns-form {
    display: grid;
    gap: 22px;
}

.ns-row {
    display: grid;
    gap: 18px 22px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
    .ns-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ns-row--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 480px) and (max-width: 759px) {
    .ns-row--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ns-form .f-hint {
    margin: -6px 0 0;
}

.wp-warn {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: #d4dcde;
}

.wp-warn[hidden] {
    display: none;
}

.ns-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.ns-actions .btn {
    min-height: 46px;
    padding: 11px 24px;
}

.ns-pdf {
    border: none;
    cursor: pointer;
}

.ns-pdf:disabled {
    opacity: 0.6;
    cursor: default;
}

.ns-days {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.ns-day {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.ns-day-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 14px;
}

.ns-day-head h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
}

.ns-lift + .ns-lift {
    margin-top: 16px;
}

.ns-lift-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.ns-lift-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.ns-tier {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
}

.ns-tm {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.ns-sets {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ns-set {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 7px 2px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.ns-set b {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
}

.ns-n {
    font-size: 0.68rem;
    color: var(--muted);
}

.ns-r {
    font-size: 0.8rem;
    color: #c5cfd2;
}

.ns-set.is-amrap {
    border-color: var(--gold);
}

.ns-set.is-amrap .ns-r {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 699px) {
    .ns-day {
        padding: 16px 14px;
    }

    .ns-sets {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ns-next {
    margin-top: 34px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ns-next h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #fff;
}

.ns-next > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.ns-reps {
    width: 100%;
    max-width: 200px;
}

.ns-reps:disabled {
    opacity: 0.4;
}

.ns-next-res {
    margin: 16px 0 6px;
    padding: 0;
    list-style: none;
    color: #fff;
    font-weight: 600;
}

.ns-next-res:empty {
    display: none;
}

.ns-next .f-hint {
    margin: 6px 0 0;
}

#nsUse {
    margin-top: 14px;
}

.tool .dl-band {
    margin-top: 34px;
}

/* Optional weighted pull-ups and dips */
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.ns-extra {
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.ns-extra .check {
    color: #fff;
    font-weight: 500;
}

.ns-extra-box {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.ns-extra-box[hidden] {
    display: none;
}

.ns-extra-box .f-hint {
    margin: 0;
    max-width: 62ch;
}

.ns-done {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: var(--body);
}

.ns-done a {
    color: var(--gold);
    font-weight: 600;
}
