/* A member's own reading choices (Core/Personal): the Reading and time settings page
   (Pages/Account/Reading.cshtml), and the photos and videos that wait behind a button in
   other people's posts for a reader who asked (DocumentRenderer, .rf-fold). Variables
   from site.css only. */

/* ---- The settings page ---- */
.reading-form { display: flex; flex-direction: column; gap: 14px; }
.reading-form .settings-buttons { position: sticky; bottom: 0; padding: 10px 0; background: var(--ground); }
.reading-form .field select { width: 100%; min-height: 48px; font-size: 16px; }
/* An example of what a choice looks like, quieter, on its own line on a phone. */
.reading-example { display: block; color: var(--muted); font-size: 14px; }
.reading-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
.reading-suggest { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--accent-line); border-radius: var(--radius-small); background: var(--accent-soft); }
.reading-suggest[hidden], .reading-form [hidden] { display: none; }
.reading-suggest .forum-button.small { min-height: 44px; }

@media (min-width: 640px) {
    .reading-pair { grid-template-columns: 1fr 1fr; }
    .reading-example { display: inline; margin-left: 6px; }
}

/* ---- A photo or a video that waits behind a button ---- */
.rf-fold { margin: 0.75em 0; }
.rf-fold > summary {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--button-line); border-radius: var(--radius-small);
    background: var(--surface-raised); color: var(--ink); font-weight: 600; cursor: pointer;
    box-shadow: var(--elev-1); list-style: none; max-width: 100%; overflow-wrap: anywhere;
}
.rf-fold > summary::-webkit-details-marker { display: none; }
.rf-fold > summary::before { content: "+"; font-weight: 700; color: var(--accent); }
.rf-fold[open] > summary::before { content: "\2212"; }
.rf-fold > summary:hover { border-color: var(--accent-line); }
.rf-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rf-fold[open] > summary { margin-bottom: 8px; }
.rf-fold > .rf-image, .rf-fold > .rf-embed { margin-top: 0; }
