/* Likes & comments on Taste Lab recipes */
.rs { margin-top: 1.6rem; }

.rs-bar { display: flex; flex-wrap: wrap; gap: .7rem; }

.rs-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    height: 2.6rem; line-height: 1; padding: 0 1.1rem;
    background: rgba(255, 255, 255, .08);
    color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer; box-shadow: none;
    transition: background .2s, border-color .2s, transform .15s;
}
.rs-btn:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-1px); }
.rs-btn:disabled { opacity: .6; cursor: progress; }
.rs-btn:focus-visible, .rs-send:focus-visible { outline: 3px solid #9bf6ff; outline-offset: 3px; }

.rs-count {
    min-width: 1.5rem; padding: .15rem .45rem; text-align: center;
    background: rgba(255, 255, 255, .15); border-radius: 999px; font-size: .75rem;
}

.rs-heart { font-size: 1.05rem; color: #cfd3e6; transition: color .2s, transform .2s; }
.rs-like.is-liked { border-color: #ff7b8f; background: rgba(255, 90, 120, .18); }
.rs-like.is-liked .rs-heart { color: #ff5c7a; transform: scale(1.2); }

.rs-panel {
    margin-top: 1rem; padding: 1.1rem;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
}
.rs-panel[hidden] { display: none; }

.rs-list { max-height: 22rem; overflow-y: auto; margin-bottom: 1rem; }
.rs-empty { margin: 0; color: #b9bdd3; font-size: .95rem; text-transform: none; letter-spacing: 0; }

.rs-item { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.rs-item:last-child { border-bottom: 0; }
.rs-item-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.rs-author { color: #e3a857; font-size: .9rem; letter-spacing: .04em; }
.rs-when { color: #b9bdd3; font-size: .8rem; white-space: nowrap; }
.rs-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #f2f3f8; line-height: 1.55; letter-spacing: 0; text-transform: none; }

.rs-form input[type=text], .rs-form textarea {
    width: 100%; margin-bottom: .7rem; padding: .7rem .9rem;
    background: rgba(255, 255, 255, .08); color: #fff;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
    font-size: 1rem; height: auto; letter-spacing: 0; box-shadow: none;
}
.rs-form textarea { resize: vertical; min-height: 5.5rem; }
.rs-form input:focus, .rs-form textarea:focus { border-color: #e3a857; outline: none; }

.rs-form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rs-send {
    height: 2.6rem; line-height: 1; padding: 0 1.4rem; border: 0; border-radius: 999px;
    background: #e3a857; color: #1b1e33; font-size: .8rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: none;
}
.rs-send:hover { background: #efb96b; }
.rs-send:disabled { opacity: .6; cursor: progress; }
.rs-status { font-size: .9rem; color: #b9bdd3; letter-spacing: 0; text-transform: none; }
.rs-status.ok { color: #8ee9a8; }
.rs-status.err { color: #ff9d9d; }

.rs-hp { position: absolute !important; left: -9999px !important; width: 0; height: 0; overflow: hidden; }
.rs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 480px) {
    .rs-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .rs-btn, .rs-heart { transition: none; }
}

/* Lumen Lab cards */
.lumen-card .rs { margin-top: 1.2rem; }
.lumen-card .rs-text { padding: 0; text-indent: 0; }
.lumen-card .rs-item-head { padding: 0; }
.lumen-card .rs-form-foot .rs-status { font-size: .85rem; letter-spacing: 0; text-transform: none; }
