/* /recordreview — hand-authored (recordreview/index.html is generated).
   Builds on the site-wide /assets/styles.css tokens and glass recipe. */

.rr-header {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 40px 36px 40px;
}

.rr-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
}
.rr-back:hover { color: var(--accent-green); }

.rr-h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

.rr-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0;
}

.rr-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}

.rr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--bg);
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(10, 14, 6, 0.35);
    transition: transform 0.15s ease;
}
.rr-btn:hover { text-decoration: none; opacity: 1; transform: translateY(-2px); }

.rr-progress {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.rr-main {
    max-width: 860px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
}

.rr-note {
    color: var(--text-subtle);
    font-size: 13px;
    margin: 0 0 14px 4px;
}

/* ---- list ---- */
.rr-list { list-style: none; margin: 0; padding: 0; }

.rr-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 12px 0;
    padding: 0 0 0 20px;
    background: linear-gradient(160deg, var(--surface-hover), var(--surface));
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow:
        0 14px 32px rgba(10, 14, 6, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.rr-item:hover { border-color: var(--border-strong); }
.rr-item:target { border-color: var(--accent); }

/* Custom glass checkbox; stays a real focusable input. */
.rr-check {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 17px 0 0 0;
    border-radius: 8px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.rr-check::after {
    content: "";
    width: 11px;
    height: 6px;
    border-left: 2.5px solid var(--bg);
    border-bottom: 2.5px solid var(--bg);
    transform: translateY(-2px) rotate(-45deg) scale(0);
    transition: transform 0.12s ease;
}
.rr-check:checked { background: var(--accent-green); border-color: var(--accent-green); }
.rr-check:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.rr-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rr-check:hover { border-color: var(--accent-green); }

.rr-details, .rr-summary-plain { flex: 1; min-width: 0; }

.rr-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 16px 0;
    cursor: pointer;
    list-style: none;
}
.rr-summary::-webkit-details-marker { display: none; }
.rr-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }

.rr-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.15s ease;
}
.is-done .rr-title {
    color: var(--text-subtle);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.rr-chevron {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}
.rr-details[open] .rr-chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.rr-summary:hover .rr-chevron { border-color: var(--accent); }

.rr-content {
    padding: 0 22px 18px 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Rendered instruction content — keep in step with .rr-content in backend admin.css */
.rr-content p { margin: 0 0 8px; }
.rr-content ol, .rr-content ul { margin: 4px 0 10px; padding-left: 1.5rem; }
.rr-content li { margin-bottom: 4px; }
.rr-content strong { color: var(--text); }
.rr-content a { text-decoration: underline; word-break: break-word; }
.rr-content u { text-underline-offset: 2px; }
.rr-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
}

@media (max-width: 600px) {
    .rr-header { padding: 48px 16px 28px 16px; }
    .rr-main { padding: 0 16px; }
    .rr-item { padding-left: 14px; gap: 12px; }
    .rr-summary { padding-right: 14px; }
    .rr-content { padding-right: 14px; }
}

@media print {
    .mesh, .noise, .rr-back, .rr-cta-row, .rr-note { display: none; }
    body { background: #fff; color: #000; }
    .rr-item { box-shadow: none; backdrop-filter: none; background: none; border-color: #999; }
    .rr-title, .rr-content, .rr-content strong { color: #000; }
}
