/* Shared review styles: guest section and private moderation page. */
.reviews { background: #f1f5f9; }
.rv-heading { align-items: end; }
.rv-intro-bar { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 28px; }
.rv-intro-bar > p { max-width: 640px; color: #354a61; font-size: 1rem; line-height: 1.75; }
.rv-intro-bar > button { flex-shrink: 0; }
.rv-list-status { padding: 28px 30px; border: 1px solid #d7e1ec; border-radius: 10px; background: #fff; color: #354a61; line-height: 1.75; }
.rv-list-status:empty { display: none; }
.rv-summary { color: #0b2347; margin: 0 0 20px; font-size: 1.125rem; font-weight: 600; }
.rv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rv-card { min-width: 0; padding: 26px; background: #fff; border: 1px solid #d7e1ec; border-radius: 12px; }
.rv-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.rv-card-name { font-size: 1.125rem; line-height: 1.45; font-weight: 600; color: #0b2347; overflow-wrap: anywhere; }
.rv-card-score { display: inline-flex; align-items: baseline; flex-shrink: 0; gap: 4px; padding: 4px 10px; border-radius: 5px; background: #fff3e6; color: #8c4300; font-size: 1rem; font-weight: 600; }
.rv-card-score small { font-size: .875rem; font-weight: 400; }
.rv-verified { width: fit-content; display: inline-flex; gap: 7px; align-items: baseline; padding: 4px 8px; margin: 0 0 11px; background: #edf5f4; color: #1e6154; border: 1px solid #d6e7e1; border-radius: 5px; font-size: .875rem; line-height: 1.5; }
.rv-card-meta { color: #4b6077; font-size: .875rem; line-height: 1.7; margin-bottom: 17px; overflow-wrap: anywhere; }
.rv-card-text { color: #354a61; font-size: 1rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-media-list { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.rv-media { margin: 0; border-radius: 7px; overflow: hidden; min-width: 0; background: #eef3f8; border: 1px solid #d7e1ec; }
.rv-media img, .rv-media video { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; }
.rv-media video { background: #061d3c; color-scheme: dark; }
.reviews video::-webkit-media-controls-mute-button,
.reviews video::-webkit-media-controls-volume-slider,
.reviews video::-webkit-media-controls-volume-control-container { display: none !important; }
.rv-media.rv-is-video { grid-column: 1 / -1; }
.rv-media figcaption { font-size: .875rem; color: #4b6077; padding: 8px 10px; line-height: 1.5; }
.rv-media-fallback { padding: 18px; font-size: .875rem; color: #4b6077; line-height: 1.6; }
.rv-more { margin: 28px auto 0; }
.rv-more:not([hidden]) { display: flex; }
.reviews [hidden], .rv-admin [hidden] { display: none !important; }
.rv-contribute { margin-top: 30px; padding: clamp(22px, 4vw, 40px); border: 1px solid #ccd9e8; border-radius: 12px; background: #fff; max-width: 860px; }
.rv-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.rv-form-heading h3 { color: #0b2347; font-family: Ride, Arial, sans-serif; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; font-style: normal; line-height: 1.35; }
.rv-form-heading h3:focus { outline: none; }
.rv-intro { font-size: 1rem; color: #354a61; line-height: 1.75; margin: 0 0 24px; }
.rv-fields { min-width: 0; border: 0; margin: 0; padding: 0; }
.rv-field { margin-bottom: 24px; min-width: 0; }
.rv-field > label, .rv-rating-field > legend, .rv-progress > label { display: block; font-size: 1rem; font-weight: 600; color: #0b2347; line-height: 1.55; margin-bottom: 8px; }
.rv-field input:not([type=checkbox]):not([type=radio]), .rv-field textarea, .rv-admin-select { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #8194ab; border-radius: 6px; color: #0b2347; background: #fff; font: inherit; font-size: 1rem; line-height: 1.5; box-shadow: none; }
.rv-field input::placeholder, .rv-field textarea::placeholder { color: #596d84; opacity: 1; }
.rv-field textarea { resize: vertical; }
.rv-field input[type=file] { padding: 11px; font-size: .9375rem; overflow: hidden; }
.rv-field input[type=file]::file-selector-button { border: 1px solid #c6d4e3; border-radius: 4px; background: #f1f5f9; color: #0b2347; padding: 8px 12px; margin: -2px 12px -2px -2px; font: inherit; cursor: pointer; }
.rv-help { font-size: .875rem; color: #4b6077; line-height: 1.65; margin: 8px 0 0; }
.rv-help a, .rv-note a { text-decoration: underline; text-underline-offset: 3px; }
.rv-optional { font-size: .875rem; font-weight: 400; color: #4b6077; }
.rv-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 21px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; text-decoration: none; }
.rv-primary { background: #082951; border-color: #082951; color: #fff; }
.rv-primary:hover { background: #124374; border-color: #124374; }
.rv-secondary { border-color: #a9bbce; background: #fff; color: #0b2347; }
.rv-secondary:hover { background: #edf3f9; }
.rv-danger { border-color: #d8b7b7; background: #fff; color: #8c3030; }
.rv-danger:hover { background: #fff1f1; }
.rv-button:disabled, .rv-link-button:disabled { opacity: .6; cursor: wait; }
.rv-link-button { font: inherit; font-size: .9375rem; font-weight: 600; min-height: 44px; border: 0; padding: 7px 0; color: #36516e; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.rv-access-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; }
.rv-access-form > button { margin-top: 33px; }
.rv-trip { border-left: 3px solid #ff8500; border-radius: 0 7px 7px 0; background: #fff5e9; color: #0b2347; padding: 15px 18px; line-height: 1.7; margin: 20px 0 25px; }
.rv-trip strong { display: block; font-weight: 600; }
.rv-rating-field { margin: 0 0 24px; padding: 0; border: 0; }
.rv-rating-options { display: flex; gap: 10px; }
.rv-rating-options label { position: relative; width: 50px; cursor: pointer; }
.rv-rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rating-options label > span { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid #8194ab; border-radius: 6px; color: #0b2347; font-size: 1.125rem; font-weight: 600; background: #fff; }
.rv-rating-options input:checked + span { color: #0b2347; background: #ffb05c; border-color: #9d4c00; }
.rv-rating-options input:focus-visible + span { outline: 3px solid #0a63a4; outline-offset: 4px; }
.rv-check { display: flex; align-items: flex-start; gap: 12px; color: #354a61; font-size: 1rem; line-height: 1.7; cursor: pointer; }
.rv-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 4px 0 0; accent-color: #a94e00; }
.rv-form-actions { margin-top: 26px; }
.rv-form-actions > .rv-help { max-width: 640px; margin-top: 14px; }
.rv-progress { margin-top: 25px; }
.rv-progress progress { width: 100%; height: 12px; accent-color: #a94e00; }
.rv-status { font-size: 1rem; line-height: 1.7; color: #0b2347; margin-top: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.rv-status:empty { display: none; }
.rv-status.rv-error { color: #9b2727; }
.rv-status.rv-success { color: #1e6154; padding: 19px; background: #edf5f4; border: 1px solid #cde2da; border-radius: 8px; }
.rv-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rv-attachment { min-width: 0; border: 1px solid #d7e1ec; border-radius: 7px; overflow: hidden; background: #f8fafc; }
.rv-attachment-preview { height: 150px; background: #edf2f7; display: flex; justify-content: center; align-items: center; color: #4b6077; font-size: .875rem; text-align: center; padding: 0; }
.rv-attachment-preview img, .rv-attachment-preview video { display: block; max-height: 150px; height: 100%; width: 100%; object-fit: contain; }
.rv-attachment-preview video { background: #061d3c; }
.rv-uploaded-placeholder { padding: 18px; }
.rv-attachment-copy { padding: 11px 13px; }
.rv-attachment-copy > p { font-size: .875rem; color: #4b6077; overflow-wrap: anywhere; line-height: 1.6; }
.rv-attachment-copy .rv-link-button { min-height: 38px; font-size: .875rem; padding-block: 6px; }
.rv-note { color: #4b6077; font-size: 1rem; line-height: 1.75; margin-top: 18px; }
.rv-admin-link { display: block; width: fit-content; margin-top: 24px; color: #36516e; font-size: .875rem; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.rv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reviews :where(button,a,input,textarea,select):focus-visible, .rv-admin :where(button,a,input,textarea,select):focus-visible { outline: 3px solid #0a63a4; outline-offset: 4px; }
.rv-admin { color: #0b2347; background: #f1f5f9; }
.rv-admin *, .rv-admin *::before, .rv-admin *::after { box-sizing: border-box; }
.rv-admin .rv-admin-wrap { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.rv-admin-header { padding: 22px 0; background: #082951; color: white; }
.rv-admin-header .rv-admin-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.rv-admin-brand { font-size: 1.125rem; font-weight: 600; letter-spacing: .04em; }
.rv-admin-header a:last-child { padding: 7px 0; text-decoration: underline; text-underline-offset: 5px; font-size: 1rem; }
.rv-admin main { padding: 48px 0 80px; }
.rv-admin h1, .rv-admin h2, .rv-admin h3 { font-family: Ride, Arial, sans-serif; font-style: normal; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.rv-admin h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 16px; }
.rv-admin h2 { font-size: 1.6rem; margin: 0 0 14px; }
.rv-admin h3 { font-size: 1.125rem; }
.rv-admin-lead { max-width: 780px; color: #354a61; line-height: 1.75; margin: 0 0 30px; }
.rv-admin-panel { padding: 30px; margin-top: 28px; background: #fff; border: 1px solid #d7e1ec; border-radius: 12px; }
.rv-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.rv-admin-panel > form { margin-top: 24px; }
.rv-admin-wide { grid-column: 1 / -1; }
.rv-admin-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 25px 0; }
.rv-admin-toolbar .rv-field { margin: 0; width: min(100%, 350px); }
.rv-admin-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='m3 3 5 5 5-5' fill='none' stroke='%23082951' stroke-width='2'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; }
.rv-admin .rv-list { grid-template-columns: 1fr; }
.rv-admin .rv-card { background: #f9fbfd; }
.rv-admin .rv-card + .rv-card { margin-top: 0; }
.rv-admin-private { margin: 13px 0; font-size: .875rem; color: #4b6077; }
.rv-moderate { margin-top: 22px; padding-top: 20px; border-top: 1px solid #d7e1ec; }
.rv-moderate .rv-field { margin-bottom: 14px; }
.rv-moderate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-admin-media { max-width: 680px; }
.rv-invitation-list { display: grid; gap: 13px; margin-top: 22px; }
.rv-invitation-row { display: flex; justify-content: space-between; align-items: start; gap: 20px; border: 1px solid #d7e1ec; border-radius: 8px; padding: 18px; background: #f9fbfd; }
.rv-invitation-row p { color: #4b6077; line-height: 1.7; font-size: .9375rem; }
.rv-invitation-row strong { color: #0b2347; font-weight: 600; display: block; }
.rv-invitation-row .rv-link-button { flex-shrink: 0; }
.rv-issued-link { margin-top: 25px; padding: 22px; background: #edf5f4; border: 1px solid #cde2da; border-radius: 8px; }
.rv-issued-link .rv-field { margin-bottom: 14px; }
.rv-issued-link textarea { background: #fff; resize: vertical; font-size: .9375rem; }
.rv-admin-session { padding: 25px; background: #fff; border: 1px solid #d7e1ec; border-radius: 10px; }
.rv-admin-session p { margin-bottom: 16px; color: #354a61; }
@media(max-width:960px) {
  .rv-intro-bar { align-items: flex-start; }
  .rv-intro-bar > p { max-width: 510px; }
  .rv-card { padding: 22px; }
}
@media(max-width:740px) {
  .rv-intro-bar { flex-direction: column; align-items: stretch; gap: 20px; }
  .rv-intro-bar > .button { align-self: flex-start; }
  .rv-list { grid-template-columns: 1fr; gap: 20px; }
  .rv-list-status { padding: 22px; }
  .rv-contribute { padding: 22px 18px; }
  .rv-form-heading { gap: 12px; }
  .rv-form-heading .rv-link-button { font-size: .875rem; }
  .rv-access-form { grid-template-columns: 1fr; gap: 0; }
  .rv-access-form > button { margin-top: 0; justify-self: start; }
  .rv-card { padding: 22px 20px; }
  .rv-media-list { gap: 8px; }
  .rv-admin .rv-admin-wrap { width: calc(100% - 36px); }
  .rv-admin main { padding-top: 32px; }
  .rv-admin-panel { padding: 22px 18px; }
  .rv-admin-grid { grid-template-columns: 1fr; }
  .rv-admin-wide { grid-column: auto; }
  .rv-admin-toolbar { flex-wrap: wrap; gap: 14px; }
  .rv-invitation-row { flex-direction: column; gap: 7px; }
  .rv-issued-link { padding: 18px; }
}
@media(max-width:380px) {
  .rv-rating-options { gap: 8px; }
  .rv-rating-options label { width: 43px; }
  .rv-attachments { grid-template-columns: 1fr; }
  .rv-form-actions .rv-button { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .reviews *, .rv-admin * { scroll-behavior: auto !important; }
}
