/* Student reviews: section, cards with generated abstract art, and the write-a-review dialog.
   Colours come from the site tokens (--panel, --line, --text, --dim, --brass, --teal) so both themes work. */
/* One warm pair for every gradient in this feature (yellow -> amber-orange, kept on the yellow side so it never reads red). Green is only ever a flat "published" status colour. */
:root { --rv-a: #F0C378; --rv-b: #EBA23C; --rv-ok: #5FC0B4; --rv-warm: 214, 162, 74; }
html[data-theme="light"] { --rv-a: #DDA83C; --rv-b: #CF8A17; --rv-ok: #1F8F82; --rv-warm: 185, 127, 20; }
.reviews {
  width: min(calc(100% - var(--gutter, 24px) * 2), var(--max, 1180px));
  margin: 0 auto; padding: clamp(48px, 6vw, 84px) 0;
}
.seo-main .reviews { width: auto; margin: 48px 0 0; padding: 0; }
.reviews[hidden] { display: none; }

/* ---- header: intro + summary ---- */
.rv-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(22px, 4vw, 56px); align-items: end; margin-bottom: 32px; }
/* Heading: uses the site's own .kicker + h2 (css/landing.css, css/typography.css) so it matches every other section. Only spacing is set here, same as .pdf-tools / .home-faq. */
.rv-intro .kicker { display: inline-flex; }
.rv-intro h2 { margin: 10px 0 12px; color: var(--text); }
.rv-intro p { margin: 0 0 24px; max-width: 520px; color: var(--dim); font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.rv-sum { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; padding: 24px 26px 22px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 28px 50px -38px rgba(0, 0, 0, .75); }
.rv-sum::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; left: -70px; top: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--rv-warm), .16), transparent); }
html[data-theme="light"] .rv-sum { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 26px 46px -36px rgba(31, 45, 110, .35); }
.rv-avg { font: 600 56px/1 "Space Grotesk", sans-serif; letter-spacing: -.045em; color: var(--text); }
.rv-avg-meta { display: grid; gap: 6px; }
.rv-avg-meta small { color: var(--dim); font-size: 12.5px; letter-spacing: .01em; }
.rv-bars { grid-column: 1 / -1; display: grid; gap: 7px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-bar { display: grid; grid-template-columns: 14px 1fr 28px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rv-bar i { display: block; height: 5px; border-radius: 6px; background: color-mix(in srgb, var(--line-2) 70%, transparent); overflow: hidden; }
.rv-bar i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--rv-a), var(--rv-b)); transform-origin: left; animation: rvGrow 1.1s var(--ease, ease) both; }
.rv-bar span:last-child { text-align: right; }
@keyframes rvGrow { from { transform: scaleX(0); } }

.rv-stars { display: inline-flex; gap: 3px; color: var(--brass); font-size: 13px; line-height: 1; filter: drop-shadow(0 0 6px rgba(var(--rv-warm), .28)); }
.rv-stars svg { width: 1em; height: 1em; display: block; }
.rv-stars .off { color: var(--line-2); filter: none; }

/* ---- grid + cards ---- */
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; grid-auto-rows: 1fr; }
.seo-main .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-card {
  --cg-size: 260px;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  min-height: 230px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(175deg, var(--panel-2), var(--panel) 65%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -36px rgba(0, 0, 0, .7);
  transition: border-color .45s var(--ease, ease), box-shadow .45s var(--ease, ease);
}
.rv-card:hover { border-color: var(--line-2); }
html[data-theme="light"] .rv-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 48px -34px rgba(31, 45, 110, .35); }

/* abstract art: sits behind the text, fades out toward the text side. Every curve starts and ends off the card edge, so it flows in from the corner instead of stopping mid-card. */
.rv-art { position: absolute; z-index: -2; top: 0; right: 0; width: min(100%, 300px); height: 220px; pointer-events: none; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 95% 105% at 100% 0%, #000 18%, rgba(0,0,0,.45) 52%, transparent 82%);
  mask-image: radial-gradient(ellipse 95% 105% at 100% 0%, #000 18%, rgba(0,0,0,.45) 52%, transparent 82%); }
html[data-theme="light"] .rv-art { opacity: 1; }
.rv-art .mv { transform-box: fill-box; transform-origin: center; }
.rv-card.rv-on .rv-art .sway { animation: rvSway 19s ease-in-out infinite alternate; }
.rv-card.rv-on .rv-art .spin { animation: rvSpin 90s linear infinite; }
.rv-card.rv-on .rv-art .breathe { animation: rvBreathe 7s ease-in-out infinite alternate; }
@keyframes rvSway { to { transform: translate3d(9px, -6px, 0); } }
@keyframes rvSpin { to { transform: rotate(360deg); } }
@keyframes rvBreathe { from { opacity: .35; } to { opacity: 1; } }

.rv-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font: 600 17px "Space Grotesk", sans-serif; color: var(--brass-2); background: var(--panel-3);
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px var(--panel); }
.rv-av img, .rv-av svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.rv-who { min-width: 0; display: grid; gap: 2px; }
.rv-who b { font: 600 15px/1.25 "Space Grotesk", sans-serif; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-who small { color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-card .rv-stars { margin-left: auto; align-self: flex-start; margin-top: 4px; }
.rv-text { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.75; overflow-wrap: anywhere; }
.rv-text p { margin: 0; }
.rv-text p + p, .rv-text p + ul, .rv-text ul + p { margin-top: 10px; }
.rv-text ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rv-text ul:first-child { margin-top: 0; }
.rv-text li { position: relative; padding-left: 20px; line-height: 1.6; }
.rv-text li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px rgba(var(--rv-warm), .16); }
/* cards are all the same height: a clamped preview, the full review opens in a dialog */
.rv-short { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.rv-toggle { align-self: flex-start; margin: -6px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--brass-2); font: 600 13px "Space Grotesk", sans-serif; }
.rv-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform .3s var(--ease, ease); }
.rv-toggle:hover { color: var(--brass); }
.rv-toggle:hover::after { transform: translateX(3px) rotate(-45deg); }
.rv-toggle:focus-visible, .rv-chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.rv-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-chip { padding: 4px 11px; border: 1px solid rgba(var(--rv-warm), .35); border-radius: 999px; background: rgba(var(--rv-warm), .09); color: var(--brass-2); font: 600 11.5px "Space Grotesk", sans-serif; cursor: pointer; }
.rv-chip:hover { background: rgba(var(--rv-warm), .16); }
.rv-read-in { display: grid; gap: 16px; padding: 24px; }
.rv-read-in .rv-text { font-size: 15px; }
.rv-read-in .rv-reply { margin-top: 0; }
.rv-read-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-reply { margin-top: auto; padding: 12px 14px; border-left: 2px solid var(--brass); border-radius: 0 12px 12px 0; background: rgba(214, 162, 74, .08); }
.rv-reply b { display: block; margin-bottom: 4px; font: 600 12.5px "Space Grotesk", sans-serif; color: var(--brass-2); }
.rv-reply p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.rv-date { color: var(--faint); font-size: 12px; }

.rv-more { display: flex; justify-content: center; margin-top: 22px; }
.rv-empty { padding: 34px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--dim); }
.rv-empty b { display: block; margin-bottom: 6px; color: var(--text); font: 600 17px "Space Grotesk", sans-serif; }

/* ---- dialog ---- */
.rv-dlg { margin: auto; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 24px; background: var(--panel); color: var(--text); overflow: auto; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.rv-dlg::backdrop { background: rgba(5, 7, 12, .62); backdrop-filter: blur(3px); }
.rv-form { display: grid; gap: 16px; padding: 24px 24px 22px; }
.rv-form h3 { margin: 0; font: 600 21px "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.rv-rules { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.65; }
.rv-f { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.rv-f > label, .rv-f > legend { padding: 0; font-weight: 600; font-size: 13.5px; color: var(--text); }
.rv-f > label small, .rv-f > legend small { font-weight: 400; color: var(--faint); margin-left: 6px; }
.rv-f input[type="text"], .rv-f textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.rv-f textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.rv-f input:focus-visible, .rv-f textarea:focus-visible { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(var(--rv-warm), .2); }
.rv-count { justify-self: end; font-size: 12px; color: var(--faint); }
.rv-count.bad { color: #E2788A; }
.rv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rv-rate { display: flex; gap: 4px; }
.rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate label { cursor: pointer; padding: 2px; color: var(--line-2); font-size: 28px; line-height: 1; transition: color .25s var(--ease, ease), transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.rv-rate label:hover { transform: scale(1.14); }
.rv-rate label svg { width: 1em; height: 1em; display: block; }
.rv-rate label.on { color: var(--brass); }
.rv-rate input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

.rv-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.rv-tab { flex: 1; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font: 600 13px Inter, sans-serif; cursor: pointer; }
.rv-tab[aria-selected="true"] { background: var(--panel-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.rv-pane { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.rv-pane[hidden] { display: none; }
.rv-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; width: 100%; }
.rv-presets button { padding: 0; aspect-ratio: 1; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: none; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s, transform .2s; }
.rv-presets button svg { width: 100%; height: 100%; display: block; }
.rv-presets button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--brass); }
.rv-pane .rv-av { width: 56px; height: 56px; }
.rv-pane .secondary-btn { padding: 9px 14px; font-size: 13px; }
.rv-pane small { color: var(--faint); font-size: 12px; line-height: 1.5; }

.rv-err { margin: 0; color: #E2788A; font-size: 13px; }
.rv-err[hidden] { display: none; }
.rv-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.rv-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 34px 26px 28px; }
.rv-done > svg { width: 54px; height: 54px; color: var(--brass); }
.rv-done h3 { margin: 0; font: 600 21px "Space Grotesk", sans-serif; }
.rv-done p { margin: 0; color: var(--dim); line-height: 1.7; font-size: 14.5px; max-width: 360px; }

@media (max-width: 960px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .rv-top { grid-template-columns: 1fr; align-items: start; }
  .rv-grid, .seo-main .rv-grid { grid-template-columns: 1fr; }
  .rv-card { min-height: 0; }
  .rv-form { padding: 20px 16px 18px; }
  .rv-presets { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rv-card .rv-art .mv, .rv-bar i::after { animation: none !important; }
}

/* buttons inside the section / dialog are real <button>s: reset the browser border and font */
.reviews button.primary-btn, .rv-dlg button.primary-btn { border: 0; font-family: inherit; }
.reviews button.secondary-btn, .rv-dlg button.secondary-btn { font-family: inherit; }
.rv-dlg button:disabled { opacity: .6; cursor: progress; }

/* ================= tracking: "Your review" pill, 3-step tracker, track dialog ================= */
.rv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.rv-mine { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel-2); color: var(--text); font: 600 13px Inter, sans-serif; cursor: pointer; transition: border-color .35s var(--ease, ease), background .35s var(--ease, ease), transform .35s var(--ease, ease); }
.rv-mine:active { transform: scale(.98); }
.rv-mine[hidden] { display: none; }
.rv-mine:hover { border-color: var(--brass); }
.rv-mine i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.rv-mine[data-s="pending"] i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--brass); animation: rvPing 1.8s ease-out infinite; }
.rv-mine[data-s="approved"] i { background: var(--rv-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rv-ok) 22%, transparent); }
.rv-mine[data-s="rejected"] i { background: #E2788A; }
@keyframes rvPing { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* tracker: Submitted -> In review (waits at the middle) -> Published / Not published */
.rv-trk { --dot: 34px; position: relative; width: 100%; padding-top: 4px; }
.rv-trk-rail { position: absolute; left: 16.667%; right: 16.667%; top: calc(4px + var(--dot) / 2 - 1.5px); height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.rv-trk-fill { position: relative; display: block; height: 100%; width: 0; border-radius: inherit; overflow: hidden; background: linear-gradient(90deg, var(--rv-a), var(--rv-b)); transition: width 1.5s cubic-bezier(.65, 0, .35, 1) .35s; }
.rv-trk[data-s="pending"] .rv-trk-fill { width: 50%; }
.rv-trk[data-s="approved"] .rv-trk-fill { width: 100%; }
.rv-trk[data-s="rejected"] .rv-trk-fill { width: 100%; background: linear-gradient(90deg, var(--rv-a), #E2788A); }
.rv-trk[data-s="pending"] .rv-trk-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: rvSweep 2.1s ease-in-out 1.9s infinite; }
@keyframes rvSweep { to { transform: translateX(100%); } }

.rv-trk-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.rv-trk .st { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; text-align: center; }
.rv-trk .dot { position: relative; display: grid; place-items: center; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--panel); color: var(--faint); box-shadow: inset 0 0 0 2px var(--line-2); transition: background .45s, color .45s, box-shadow .45s; }
.rv-trk .ic { position: absolute; width: 17px; height: 17px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.rv-trk .st b { margin-top: 8px; font: 600 12.5px "Space Grotesk", sans-serif; color: var(--faint); transition: color .45s; }
.rv-trk .st small { font-size: 11.5px; line-height: 1.4; color: var(--faint); }

/* step 1: done as soon as the tracker starts */
.rv-trk:not([data-s="init"]) .st1 .dot { background: var(--rv-a); color: #1B1405; box-shadow: none; transition-delay: .1s; }
.rv-trk:not([data-s="init"]) .st1 .ic-ok { opacity: 1; transform: none; transition-delay: .1s; }
.rv-trk:not([data-s="init"]) .st1 b { color: var(--text); }
/* step 2: reached when the bar gets to the middle; pulses while we wait */
.rv-trk[data-s="pending"] .st2 .dot { color: var(--brass); box-shadow: inset 0 0 0 2px var(--brass); transition-delay: 1.5s; }
.rv-trk[data-s="pending"] .st2 .ic-wait { opacity: 1; transform: none; transition-delay: 1.5s; }
.rv-trk[data-s="pending"] .st2 b { color: var(--text); transition-delay: 1.5s; }
.rv-trk[data-s="pending"] .st2 .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brass); opacity: 0; animation: rvRing 2s ease-out 2s infinite; }
@keyframes rvRing { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.75); opacity: 0; } }
.rv-trk[data-s="approved"] .st2 .dot, .rv-trk[data-s="rejected"] .st2 .dot { background: var(--rv-b); color: #1B1405; box-shadow: none; transition-delay: .8s; }
.rv-trk[data-s="approved"] .st2 .ic-ok, .rv-trk[data-s="rejected"] .st2 .ic-ok { opacity: 1; transform: none; transition-delay: .8s; }
.rv-trk[data-s="approved"] .st2 b, .rv-trk[data-s="rejected"] .st2 b { color: var(--text); transition-delay: .8s; }
/* step 3: the outcome */
.rv-trk[data-s="approved"] .st3 .dot { background: var(--rv-ok); color: #06231F; box-shadow: none; transition-delay: 1.7s; animation: rvPop .55s cubic-bezier(.3, 1.5, .5, 1) 1.7s backwards; }
.rv-trk[data-s="approved"] .st3 .ic-ok { opacity: 1; transform: none; transition-delay: 1.7s; }
.rv-trk[data-s="approved"] .st3 b { color: var(--text); transition-delay: 1.7s; }
.rv-trk[data-s="rejected"] .st3 .dot { background: #E2788A; color: #2B0B12; box-shadow: none; transition-delay: 1.7s; animation: rvPop .55s cubic-bezier(.3, 1.5, .5, 1) 1.7s backwards; }
.rv-trk[data-s="rejected"] .st3 .ic-no { opacity: 1; transform: none; transition-delay: 1.7s; }
.rv-trk[data-s="rejected"] .st3 b { color: var(--text); transition-delay: 1.7s; }
@keyframes rvPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.rv-trk[data-s="gone"] .rv-trk-fill { width: 0; }

.rv-trk .rv-trk-msg { margin: 18px 0 0; min-height: 3.2em; text-align: center; color: var(--dim); font-size: 13.5px; line-height: 1.65; }
.rv-trk-msg b { color: var(--text); }

/* after sending */
.rv-done-trk { padding-top: 30px; }
.rv-done-trk .rv-trk { max-width: 400px; margin: 10px 0 0; }
.rv-code { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; width: 100%; max-width: 400px; box-sizing: border-box; padding: 12px 14px; border: 1px dashed var(--brass); border-radius: 14px; background: var(--panel-2); }
.rv-code span { flex: 1 0 100%; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rv-code code, .rv-my-top code { font: 600 16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--text); }
.rv-saved { max-width: 340px; color: var(--faint); font-size: 12px; line-height: 1.55; }
.rv-done-trk .rv-actions { justify-content: center; margin-top: 4px; }

/* track dialog */
.rv-trkdlg { padding: 24px; }
.rv-mylist { display: grid; gap: 12px; }
.rv-my { display: grid; gap: 12px; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.rv-my-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rv-my-b { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.rv-my .rv-trk { --dot: 30px; }
.rv-my .rv-trk .rv-trk-msg { margin-top: 12px; font-size: 13px; }
.rv-my-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 12px; }
.rv-link { padding: 0; border: 0; background: none; color: var(--faint); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.rv-link:hover { color: var(--text); }
.rv-none { margin: 0; color: var(--dim); font-size: 13.5px; }
.rv-codeadd { display: flex; gap: 8px; }
.rv-codeadd input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .05em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
.rv-codeadd .secondary-btn { flex: none; padding: 0 16px; }
.rv-dlg button.rv-link, .reviews button.rv-mine { font-family: Inter, sans-serif; }
/* the small Copy button is a wave button too, just compact */
.rv-dlg button.secondary-btn.rv-copy { flex: none; padding: 6px 12px; min-height: 0; border-radius: 9px; font: 700 12px/1.2 Inter, sans-serif; }

@media (max-width: 700px) {
  .rv-trkdlg { padding: 20px 16px; }
  .rv-trk .st small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-trk *, .rv-trk *::after, .rv-mine i::after { animation: none !important; transition-delay: 0s !important; transition-duration: .01s !important; }
}

/* ---- SEO pages: dialog buttons follow the page's own wave buttons (smaller, navy primary in the light theme) ----
   seo-pages.css scopes these to .seo-main, and a <dialog> sits outside it, so the same values are repeated here. */
.rv-dlg.rv-seo button.primary-btn, .rv-dlg.rv-seo button.secondary-btn { width: auto; min-height: 0; padding: 10px 18px; font-size: 13.5px; line-height: 1.2; border-radius: 10px; }
.rv-dlg.rv-seo button.secondary-btn.rv-copy { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.rv-dlg.rv-seo button:focus:not(:focus-visible) { outline: none; }
html:root:not([data-theme="light"]) .rv-dlg.rv-seo button.primary-btn {
  --wb-bg: linear-gradient(180deg, #D8AE62 0%, #BE9244 100%);
  --wb-wave: radial-gradient(ellipse 60% 140% at 0% 0%, rgba(255, 238, 190, .45) 0%, transparent 65%), linear-gradient(115deg, #CFA04C 0%, #B98C35 100%);
  --wb-wave2: rgba(232, 196, 116, .55); --wb-fg: #1A1305; --wb-fg-h: #1A1305; --wb-bd: #A97F34; --wb-bd-h: #8F6A24;
}
html:root[data-theme="light"] .rv-dlg.rv-seo button.primary-btn {
  --wb-bg: linear-gradient(180deg, #22346F 0%, #14224F 100%);
  --wb-wave: radial-gradient(ellipse 60% 140% at 0% 0%, rgba(170, 190, 255, .2) 0%, transparent 65%), linear-gradient(115deg, #2E48A2 0%, #1D3180 100%);
  --wb-wave2: rgba(60, 92, 190, .5); --wb-fg: #FFFFFF; --wb-fg-h: #FFFFFF; --wb-bd: #14224F; --wb-bd-h: #1F3584;
}
html:root[data-theme="light"] .rv-dlg.rv-seo button.secondary-btn {
  --wb-bg: linear-gradient(180deg, #FFFFFF 0%, #F3F5FA 100%);
  --wb-wave: radial-gradient(ellipse 75% 170% at 0% 0%, rgba(255, 255, 255, .75) 0%, transparent 70%), linear-gradient(115deg, #F6E1A3 0%, #EDC965 50%, #F3D98C 100%);
  --wb-wave2: rgba(237, 201, 101, .6); --wb-fg: #0F1B3D; --wb-fg-h: #0F1B3D; --wb-bd: rgba(15, 27, 61, .24); --wb-bd-h: #C99A3B;
}

/* ---- compact buttons: smaller and lighter on phones; only inside the reviews section and its dialogs ---- */
html .reviews button.primary-btn, html .reviews button.secondary-btn, html .rv-dlg button.primary-btn, html .rv-dlg button.secondary-btn {
  width: auto; min-height: 0; padding: 9px 16px; font-size: 13px; line-height: 1.2; border-radius: 10px; gap: 6px;
}
html .rv-dlg button.secondary-btn.rv-copy { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
html .reviews button.rv-mine { padding: 8px 14px; font-size: 12.5px; }
.rv-cta { gap: 8px 10px; }
.rv-rate label { font-size: 24px; }
@media (max-width: 700px) {
  .rv-sum { padding: 18px 18px 16px; }
  .rv-avg { font-size: 46px; }
  .rv-card { padding: 20px 18px 16px; }
}

/* ---- Bangla reviews: Li Ador Noirrit, same font the cover pages use in Bangla mode ----
   Self-hosted from /fonts and limited to the Bengali block (U+0980-09FF + danda/ZWJ/ZWNJ), so English
   text in the same review keeps the site font and only Bengali glyphs switch. size-adjust offsets
   the face's small x-height (the cover CSS bumps it for the same reason). */
@font-face { font-family: "CG Ador Noirrit"; font-weight: 400; font-style: normal; font-display: swap; size-adjust: 108%;
  src: local("Li Ador Noirrit"), url("../fonts/li%20ador%20noirrit%20regular.ttf") format("truetype");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
@font-face { font-family: "CG Ador Noirrit"; font-weight: 600; font-style: normal; font-display: swap; size-adjust: 108%;
  src: url("../fonts/li%20ador%20noirrit%20semibold.ttf") format("truetype");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
@font-face { font-family: "CG Ador Noirrit"; font-weight: 700; font-style: normal; font-display: swap; size-adjust: 108%;
  src: url("../fonts/li%20ador%20noirrit%20bold.ttf") format("truetype");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
.rv-text, .rv-who small, .rv-reply p, .rv-my-b, .rv-f input[type="text"], .rv-f textarea { font-family: "CG Ador Noirrit", "Inter", system-ui, sans-serif; }
.rv-who b, .rv-reply b, .rv-av { font-family: "CG Ador Noirrit", "Space Grotesk", sans-serif; }
