/* The committee's review copy (site/review.html only): the bar in the header, editable text blocks, additions, dialogs, setup. */

/* the bar in place of the site's navigation */
.rv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; color: var(--faint); }
.rv-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6420; border: 1px dashed var(--gold); border-radius: 999px; padding: 3px 9px; }
.rv-count { color: var(--ink); font-weight: 600; }
.rv-sync.bad { color: #A04340; }
.rv-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.rv-btn:hover { border-color: var(--ink); }
.rv-freeze { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rv-frozen { border-style: dashed; border-color: #48909F; color: #2F6B63; }
@media (max-width: 1080px) { .rv-sync { display: none; } }
@media (max-width: 820px) { .rv-count, .rv-tag { display: none; } }

/* an editable block in a note: the text as it stands, then who changed it last, Edit and History */
.rv-block { position: relative; }
.rv-block > :first-child { margin-bottom: 4px; }
.rv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; font-size: 12px; color: var(--faint); }
.rv-block.inline .rv-meta { margin-bottom: 8px; }
.rv-edit, .rv-hist { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.rv-edit:hover, .rv-hist:hover { border-color: var(--ink); }
.rv-hist { border-style: dashed; }
.rv-saving { color: #8a6420; font-style: italic; }
.rv-is-frozen .rv-edit, .rv-is-frozen .rv-add { display: none; }

/* the editor */
.rv-editor { margin: 0 0 14px; padding: 12px; border: 1px solid var(--gold); border-radius: 14px; background: #fffdf6; }
.rv-ta { display: block; width: 100%; box-sizing: border-box; min-height: 88px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 14.5px/1.5 var(--font-ui, Inter, system-ui, sans-serif); color: var(--ink); background: #fff; }
.rv-ta:focus, .rv-in:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.rv-in { display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 14px var(--font-ui, Inter, system-ui, sans-serif); color: var(--ink); background: #fff; margin-top: 4px; }
.rv-hint { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; line-height: 1.45; }
.rv-rule { font-size: 12px; color: #2F6B63; margin: 8px 0 0; }
.rv-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rv-actions.left { justify-content: flex-start; }
.rv-who { width: 90px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 13px var(--font-ui, Inter, system-ui, sans-serif); margin-right: auto; }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn.ghost { background: transparent; }

/* what the committee added to a prompt */
.rv-contrib { margin-top: 18px; padding-top: 4px; border-top: 1px dashed var(--line); }
.rv-card { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--card); }
.rv-card-title { display: block; border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.rv-card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-type { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.rv-card-text { font-size: 13.5px; margin: 6px 0; line-height: 1.45; }
.rv-card-by { font-size: 12px; color: var(--faint); margin: 0; }
.rv-add { margin-top: 4px; }
.rv-foot .rv-actions { margin-top: 6px; }

/* dialogs */
.rv-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(34, 33, 28, .32); display: grid; place-items: center; padding: 20px; }
.rv-modal { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; background: var(--paper); border-radius: 20px; box-shadow: 0 20px 60px rgba(34, 33, 28, .25); padding: 24px 26px 20px; }
.rv-modal h2 { font-family: var(--font-serif, Spectral, Georgia, serif); font-weight: 500; font-size: 24px; margin: 0 30px 10px 0; }
.rv-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.rv-list { padding-left: 20px; line-height: 1.5; font-size: 14.5px; }
.rv-list li { margin: 0 0 8px; }
.rv-lab { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 12px 0 0; }
.rv-lab .rv-ta, .rv-lab .rv-in { margin-top: 4px; font-weight: 400; }
.rv-versions { list-style: none; padding: 0; margin: 0; }
.rv-versions li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--card); }
.rv-versions li.now { border-color: var(--gold); }
.rv-versions p { margin: 4px 0 8px; font-size: 14px; line-height: 1.45; }
.rv-h-by { font-size: 12px; color: var(--faint); }
.rv-toast { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--paper); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; box-shadow: var(--shadow); transition: opacity .4s; }
.rv-toast.out { opacity: 0; }

/* setup: the owner pastes the Form and Sheet links once */
body.rv-setup-on .app { display: block; overflow: auto; }
.rv-setup { max-width: 760px; margin: 0 auto; padding: 36px 24px 80px; }
.rv-setup h1 { font-family: var(--font-serif, Spectral, Georgia, serif); font-weight: 500; font-size: 34px; margin: 0 0 10px; }
.rv-lede { font-size: 16px; line-height: 1.55; }
.rv-steps { padding-left: 22px; line-height: 1.55; font-size: 15px; }
.rv-steps li { margin: 0 0 10px; }
.rv-out { margin-top: 16px; }
.rv-out .bad { color: #A04340; font-weight: 600; }
.rv-out .good { color: #2F6B63; font-weight: 600; }

/* edit mode on the map: the switch in the header, and text that can be clicked into */
.rv-bar { margin-right: 18px; }
.rv-toggle { font-weight: 600; }
.rv-toggle[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.rv-field { border-radius: 6px; cursor: text; outline: 1.5px dashed rgba(201, 150, 63, .6); outline-offset: 3px; transition: background .15s, outline-color .15s; }
.rv-field:hover { background: rgba(201, 150, 63, .08); }
.rv-field.on, .rv-field:focus { outline: 2px solid var(--gold); background: #fffdf6; }
.rv-md { white-space: pre-wrap; font-size: 14px; line-height: 1.55; padding: 6px 8px; margin: 4px 0; }
.rv-block { margin-bottom: 4px; }
body.rv-editing .rv-meta { margin-top: 6px; }
@media (max-width: 1280px) { body.rv-editing #siteHeader .nav { display: none; } }
