/*
 * site.css — reviews.mti.tools components that franklin.css does not carry.
 * Tokens only; every value maps to MTI Design Standards v4.8.
 *   .review          in-card scaffold § 5.5: --ui-light border, --radius
 *   .reply           § 5.13 blockquote: --brand-purple-light bar on --ui-soft-gray
 *   form controls    § 5.16
 */

main { padding: 0 20px 48px; }
@media (max-width: 700px) { main { padding: 0 12px 36px; } }

.nav-links a { margin-right: 24px; }

/* Review cards */
.review { background: var(--ui-white); border: 1px solid var(--ui-light); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 16px; }
.review-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.review-head .who { font-weight: 500; }
.review-head .when { margin-left: auto; font-family: "Roboto Mono", monospace; font-size: 13px; color: var(--text-muted); }
.review .tag { font-size: 13px; color: var(--text-muted); }
/* pre-line: keep the reviewer's line breaks, collapse the double spaces scraped text is full of. */
.review .comment { white-space: pre-line; margin: 0; }
.reply { margin: 12px 0 0; padding: 8px 16px; background: var(--ui-soft-gray);
  border-left: 3px solid var(--brand-purple-light); border-radius: 0 var(--radius) var(--radius) 0; }
.reply .by { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius); font-size: 12px;
  font-weight: 600; color: var(--ui-white); background: var(--status-neutral); }
.status-pill.pending { background: var(--status-warning); color: var(--text-primary); }
.status-pill.published { background: var(--status-success); }

.empty { color: var(--text-muted); padding: 24px 0; }
.notice { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; background: var(--status-warning-soft); }
.notice.error { background: var(--status-danger-soft); }
.notice.ok { background: var(--status-success-soft); }

/* Embed code page */
.embed-row { padding: 24px 0; border-bottom: 1px solid var(--ui-light); }
.embed-row h2 { margin: 0 0 4px; }
.embed-row .page-meta { text-align: left; }
.snippet { background: var(--ui-soft-gray); border: 1px solid var(--ui-light); border-radius: var(--radius);
  padding: 12px 16px; font: 13px/1.5 "Roboto Mono", monospace; white-space: pre-wrap; word-break: break-all; margin: 12px 0 0; }
.embed-row details { margin-top: 16px; }
.embed-row summary { cursor: pointer; color: var(--action-teal); }
.embed-row .preview { margin-top: 16px; }

/* Form — § 5.16 */
.form { max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.form legend, .form label.q { display: block; font-weight: 500; margin-bottom: 8px; }
.form input[type=text], .form textarea, .form select { width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--ui-light); border-radius: var(--radius); font: 16px/1.5 var(--font-body); color: var(--text-primary); }
.form input[type=text]:focus, .form textarea:focus, .form select:focus { border-color: var(--action-teal);
  outline: none; box-shadow: 0 0 0 2px rgba(73, 119, 142, 0.2); }
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px 20px; }
.form .hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale label { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--action-green); color: var(--action-green);
  font-weight: 600; cursor: pointer; user-select: none; }
.scale input:checked + label { background: var(--brand-purple); color: var(--ui-white); box-shadow: none; }
.scale label:hover { background: var(--action-teal); color: var(--ui-white); box-shadow: inset 0 0 0 1px var(--action-teal); }
.scale input:focus-visible + label { outline: 2px solid var(--action-teal); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); max-width: 560px; margin-top: 4px; }
.scale-ends.short { max-width: 250px; }
.reply-form { margin-top: 12px; max-width: none; }
.reply-form textarea { min-height: 80px; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

footer .fine { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; }
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } .review-head .when { margin-left: 0; } }
