/* Icon review page (review.html), on top of lab.css */
/* Sticky bar: the section links, and the switch for the proposal side's glyphs, which drops to its own row when
   both don't fit. review.js keeps --bar-h at the bar's height for the section offsets. */
.rv-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; background: var(--black); border-bottom: 1px solid var(--line); }
.rv-bar .lb-tabs { position: static; flex: 1 0 auto; max-width: 100%; border-bottom: 0; }
.rv-src { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; padding: 6px 24px; }
.rv-src > label { color: var(--muted); font-size: 13px; }
.rv-src .lb-seg { flex-wrap: nowrap; }
.rv-src .lb-seg button { min-height: 30px; padding: 4px 10px 3px; white-space: nowrap; }
.rv-src .cnt { color: var(--muted); font-size: 12px; }
.rv-src + .rv-src { margin-left: 0; }
.rv-toc a { padding: 14px 14px 11px; font-size: 15px; color: #c8ccd1; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.rv-toc a:hover { color: #fff; border-bottom-color: #444; }
.rv-toc a.on { color: #fff; border-bottom-color: var(--blue); }
.rv-pager { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 96px; padding-top: 24px; border-top: 1px solid var(--line); }
.rv-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: #fff; text-decoration: none; font-size: 15px; }
.rv-pager a:hover { border-color: var(--blue); }
.rv-pager a.next { margin-left: auto; text-align: right; }
.rv-pager small { color: var(--muted); font-size: 12px; }

.rv section { margin: 8px 0 64px; scroll-margin-top: calc(var(--bar-h, 49px) + 7px); }
.rv h2 { font-size: 24px; font-weight: 400; margin: 16px 0 8px; }
.rv h3 { font-size: 16px; font-weight: 500; margin: 0 0 10px; }
.rv p { margin: 0 0 12px; color: #c9ced4; }
.rv .lede { max-width: 820px; margin-bottom: 24px; }
.rv code { font-size: 12.5px; background: #333; color: #e8e8e8; border-radius: 4px; padding: 1px 5px; }
.rv-take { max-width: 820px; margin-top: 16px !important; padding: 12px 16px; border-left: 3px solid var(--blue-hi); background: #232a35; border-radius: 0 6px 6px 0; }
.rv-k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.rv-h3 { margin-top: 32px !important; }
.rv-none { font-size: 12px; color: #6f757c; }
.rv-vs { color: var(--muted); font-size: 20px; }

.rv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.rv-card p { font-size: 13.5px; }
.rv-find { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 16px; }
/* The toy-box example on the first page */
.rv-toy { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.rv-toy-pics { display: flex; gap: 10px; flex: none; }
.rv-toy-pics img { display: block; height: 240px; width: auto; border-radius: 6px; }
.rv-toy-pics a { display: block; border-radius: 6px; cursor: zoom-in; transition: opacity .15s; }
.rv-toy-pics a:hover { opacity: .85; }

/* Photo lightbox */
.rv-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px 72px; background: rgba(0, 0, 0, .88); }
.rv-lightbox[hidden] { display: none; }
.rv-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.rv-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; border-radius: 6px; }
.rv-lightbox figcaption { color: #c9ced4; font-size: 13px; text-align: center; }
.rv-lightbox figcaption span { color: var(--muted); margin-left: 8px; }
.rv-lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #555; border-radius: 50%; background: rgba(30, 30, 30, .85); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.rv-lightbox button:hover { border-color: #999; }
.rv-lb-x { top: 16px; right: 16px; }
.rv-lb-prev, .rv-lb-next { top: 50%; transform: translateY(-50%); }
.rv-lb-prev { left: 16px; }
.rv-lb-next { right: 16px; }
@media (max-width: 760px) {
  .rv-lightbox { padding: 72px 12px 80px; }
  .rv-lb-prev, .rv-lb-next { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rv-toy-pics a { transition: none; } }
.rv-toy p { max-width: 640px; }
@media (max-width: 760px) { .rv-toy { flex-direction: column; } .rv-toy-pics img { height: 200px; } }
.rv-proposal-teaser { border-color: #33507c; background: #1d2633; }
.rv-proposal-teaser .rv-note { margin: 0; font-size: 12px; color: var(--muted); }
.rv-proposal-teaser .rv-preview { margin: 14px 0; padding: 12px 14px; border: 1px dashed #33507c; border-radius: 8px; }

.rv-icons { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.rv-icons.lg { gap: 10px; margin-bottom: 14px; }
.rv-icons + .rv-icons { margin-top: 8px; }
.rv-more { margin-top: 12px !important; align-items: center; }
.rv-more small { color: var(--muted); font-size: 12px; margin-left: 4px; }

/* before → after */
.rv-ba { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.rv-arrow { width: 22px; height: 22px; flex: none; fill: none; stroke: #7d838a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* matrix tables */
.rv-scroll { overflow-x: auto; }
.rv-mx { border-collapse: collapse; }
.rv-mx th, .rv-mx td { padding: 8px 10px; text-align: center; vertical-align: middle; }
.rv-mx thead th { font-size: 11.5px; font-weight: 400; color: var(--muted); max-width: 72px; line-height: 1.25; vertical-align: bottom; }
.rv-mx tbody th { text-align: left; font-weight: 500; font-size: 14px; white-space: nowrap; padding-right: 18px; }
.rv-mx tbody th small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.rv-mx tbody tr { border-top: 1px solid #2f2f2f; }
.rv-mx tbody tr.sep { border-top: 2px dashed #4a4a4a; }
.rv-mx td svg.ico { margin: 0 auto; }

/* result */
.rv h3.lb-gh { margin: 32px 0 14px; }
.rv-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 20px 12px; }
.rv-res div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rv-res span { font-size: 13px; line-height: 1.3; color: #d0d0d0; }
.rv-res-sb + .rv-res-sb { margin-top: 6px; }

/* rules */
.rv-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.rv-rules h3 { display: flex; align-items: center; gap: 10px; }
.rv-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; flex: none; }

/* proposal */
.rv-set { margin-bottom: 18px; }
.rv-set .strip { gap: 8px; }
.rv-rails { display: flex; flex-wrap: wrap; gap: 16px; }
.rv-rails .cx-rail.open { width: 230px; }
.rv-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.rv-sz { background: #121212; border-radius: 8px; padding: 14px 16px; }
.rv-sz .rv-icons { gap: 12px; align-items: center; }
.rv-sz .rv-icons + .rv-icons { margin-top: 12px; }

.rv-next { max-width: 820px; padding-left: 22px; color: #c9ced4; }
.rv-next li { margin-bottom: 10px; }
.rv-next b { color: #fff; font-weight: 500; }

@media (max-width: 760px) {
  .rv-src { padding: 0 16px 8px; margin-left: 0; }
  .rv-src > label { display: none; }
  .rv-rails .cx-rail.open { display: block; width: 100%; }
  .rv-rails > div { width: 100%; }
}
.rv-cv { border-collapse: collapse; margin-top: 4px; }
.rv-cv th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 4px 14px 4px 0; white-space: nowrap; }
.rv-cv td { display: flex; gap: 8px; padding: 4px 0; }
.rv-src { font-size: 12px !important; color: var(--muted) !important; margin-top: 8px !important; }
.rv-wall { padding-top: 40px; }
