/* tools/photo-restoration.css — /tools/photo-restoration
   Builds on object-remover.css (the one-photo editor: toolbar, stage, mask
   layer, status, actions) and colorize.css (the two color sliders). Its own:
   the step switches, the marks layer, and the before/after examples. */

.pr-steps {
    justify-content: center;
    gap: 8px;
}

.pr-step {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pr-step input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pr-step span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pr-step span::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    flex: none;
}

.pr-step input:checked + span {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: #1D1B20;
}

.pr-step input:checked + span::before {
    border: 0;
    background: #1D1B20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.pr-step input:focus-visible + span {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.pr-step input:disabled + span {
    opacity: 0.45;
    cursor: default;
}

/* Offered for a black-and-white photo: a gentle ring until it is used. */
.pr-step.is-offered input:not(:checked) + span {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.pr-page .or-toolbar.hidden,
.pr-mask.hidden {
    display: none;
}

/* Marks: a solid red layer, shown only while reviewing them. */
.pr-mask {
    opacity: 0.6;
}

.pr-done {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 14px;
}

.pr-page .or-actions .or-tool-btn:disabled {
    opacity: 0.4;
}

/* ── Content below the tool ──────────────────────────────────────────── */
.pr-examples {
    display: grid;
    gap: 28px;
    margin: 8px 0 36px;
}

.pr-example {
    margin: 0;
}

.pr-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pr-pair img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.pr-example figcaption {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.55;
}

.pr-honest {
    margin: 0 0 32px;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
}

.pr-honest li {
    margin-bottom: 10px;
}

@media (min-width: 900px) {
    .pr-examples {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .pr-steps {
        justify-content: flex-start;
    }
    .pr-step span {
        padding: 7px 12px;
        font-size: 13px;
    }
    .pr-page .or-actions .or-tool-btn {
        flex: 1 1 40%;
    }
}
