/* GW Reviews - matches the 2A Maps palette: navy text, soft blue borders, OD green for positive, red for negative. */
.gwrv {
	--gwrv-navy: #1f3b5c;
	--gwrv-ink: #222;
	--gwrv-muted: #5b6b7c;
	--gwrv-line: #c9d6e3;
	--gwrv-soft: #f5f8fb;
	--gwrv-card: #fff;
	--gwrv-pos: #66773a;
	--gwrv-pos-soft: #e7ecd9;
	--gwrv-neg: #b8463d;
	--gwrv-neg-soft: #f6e3e1;
	--gwrv-accent: #e07b24;
	--gwrv-off: #d3dae2;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--gwrv-ink);
	background: var(--gwrv-card);
	border: 1px solid var(--gwrv-line);
	border-radius: 10px;
	padding: 28px;
	margin: 28px 0;
	box-sizing: border-box;
}
.gwrv *, .gwrv *::before, .gwrv *::after { box-sizing: border-box; }
.gwrv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header + summary */
.gwrv-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 28px; align-items: start; }
.gwrv-title { margin: 0 0 8px; font-size: 28px; line-height: 1.2; color: var(--gwrv-navy); }
.gwrv-intro { margin: 0; color: var(--gwrv-muted); font-size: 16px; line-height: 1.55; }
.gwrv-summary { background: var(--gwrv-soft); border: 1px solid var(--gwrv-line); border-radius: 8px; padding: 16px; min-height: 80px; }
.gwrv-sum-empty { margin: 0; color: var(--gwrv-muted); font-size: 15px; }
.gwrv-sum-head { display: flex; align-items: center; gap: 12px; }
.gwrv-sum-pct { font-size: 36px; font-weight: 700; line-height: 1; color: var(--gwrv-pos); font-variant-numeric: tabular-nums; }
.gwrv-sum-txt { display: flex; flex-direction: column; font-size: 14px; color: var(--gwrv-muted); line-height: 1.3; }
.gwrv-sum-txt strong { color: var(--gwrv-ink); font-size: 15px; }
.gwrv-sum-avg { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 13px; color: var(--gwrv-muted); }
.gwrv-bars { display: grid; gap: 5px; }
.gwrv-bar { display: grid; grid-template-columns: 78px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; white-space: nowrap; }
.gwrv-bar-k { color: var(--gwrv-muted); overflow: hidden; text-overflow: ellipsis; }
.gwrv-bar-t { height: 8px; background: #e3e9ef; border-radius: 4px; overflow: hidden; }
.gwrv-bar-f { display: block; height: 100%; background: var(--gwrv-pos); border-radius: 4px; transition: width .4s ease; }
.gwrv-bar.is-neg .gwrv-bar-f { background: var(--gwrv-neg); }
.gwrv-bar-n { text-align: right; color: var(--gwrv-muted); font-variant-numeric: tabular-nums; }

/* Rating display */
.gwrv-r { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.gwrv-r svg { width: 17px; height: 17px; fill: var(--gwrv-off); }
.gwrv-r svg.on { fill: var(--gwrv-pos); }
.gwrv-r-neg { gap: 5px; color: var(--gwrv-neg); font-size: 13px; font-weight: 600; background: var(--gwrv-neg-soft); border-radius: 999px; padding: 2px 9px 2px 7px; }
.gwrv-r-neg svg { fill: var(--gwrv-neg); width: 15px; height: 15px; }

/* Form */
.gwrv-form { margin-top: 24px; border-top: 1px solid var(--gwrv-line); padding-top: 22px; }
.gwrv-rate { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.gwrv-rate legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; color: var(--gwrv-navy); }
.gwrv-rate-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gwrv-rate label { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--gwrv-line); background: var(--gwrv-card); transition: background .15s, border-color .15s, transform .1s; }
.gwrv-rate label:active { transform: scale(.94); }
.gwrv-rate svg { width: 28px; height: 28px; fill: var(--gwrv-off); transition: fill .15s; }
.gwrv-divider { width: 1px; height: 32px; background: var(--gwrv-line); margin: 0 6px; }
.gwrv-rate-label { margin-left: 10px; font-size: 15px; font-weight: 600; color: var(--gwrv-pos); min-width: 90px; white-space: nowrap; }
.gwrv-rate-label.is-neg { color: var(--gwrv-neg); }
.gwrv-rate-row[data-show=""] .gwrv-rate-label, .gwrv-rate-row:not([data-show]) .gwrv-rate-label { color: var(--gwrv-muted); font-weight: 400; }

/* Stars light up through the chosen one; the negative option lights up on its own. */
.gwrv-rate-row[data-show="1"] .gwrv-star[data-v="1"] svg,
.gwrv-rate-row[data-show="2"] .gwrv-star:is([data-v="1"], [data-v="2"]) svg,
.gwrv-rate-row[data-show="3"] .gwrv-star:is([data-v="1"], [data-v="2"], [data-v="3"]) svg,
.gwrv-rate-row[data-show="4"] .gwrv-star svg { fill: var(--gwrv-pos); }
.gwrv-rate-row[data-show="1"] .gwrv-star[data-v="1"],
.gwrv-rate-row[data-show="2"] .gwrv-star:is([data-v="1"], [data-v="2"]),
.gwrv-rate-row[data-show="3"] .gwrv-star:is([data-v="1"], [data-v="2"], [data-v="3"]),
.gwrv-rate-row[data-show="4"] .gwrv-star { background: var(--gwrv-pos-soft); border-color: var(--gwrv-pos); }
.gwrv-rate-row[data-show="-1"] .gwrv-neg { background: var(--gwrv-neg-soft); border-color: var(--gwrv-neg); }
.gwrv-rate-row[data-show="-1"] .gwrv-neg svg { fill: var(--gwrv-neg); }
.gwrv-rate input:focus-visible + label { outline: 3px solid var(--gwrv-accent); outline-offset: 2px; }

.gwrv-fields { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 14px; margin-bottom: 14px; }
.gwrv-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gwrv-navy); position: relative; }
.gwrv-field em { font-style: normal; font-weight: 400; color: var(--gwrv-muted); }
.gwrv input[type="text"], .gwrv select, .gwrv textarea {
	font: inherit; font-size: 16px; font-weight: 400; color: var(--gwrv-ink); width: 100%;
	border: 1px solid var(--gwrv-line); border-radius: 6px; padding: 10px 12px; background: var(--gwrv-card);
}
.gwrv textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.gwrv input:focus, .gwrv select:focus, .gwrv textarea:focus { outline: none; border-color: var(--gwrv-navy); box-shadow: 0 0 0 3px rgba(31, 59, 92, .15); }
.gwrv-count { align-self: flex-end; font-weight: 400; color: var(--gwrv-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.gwrv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gwrv .cf-turnstile { margin: 6px 0 12px; }
.gwrv-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.gwrv-submit { font: inherit; font-size: 16px; font-weight: 600; background: var(--gwrv-navy); color: #fff; border: 0; border-radius: 6px; padding: 12px 26px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.gwrv-submit:hover { background: #16304d; }
.gwrv-submit:focus-visible { outline: 3px solid var(--gwrv-accent); outline-offset: 2px; }
.gwrv-submit:disabled { opacity: .6; cursor: default; }
.gwrv-note { margin: 0; font-size: 13px; color: var(--gwrv-muted); flex: 1; min-width: 200px; }
.gwrv-msg { margin: 12px 0 0; font-size: 15px; font-weight: 600; min-height: 1em; }
.gwrv-msg.is-ok { color: var(--gwrv-pos); }
.gwrv-msg.is-err { color: var(--gwrv-neg); }
.gwrv-form.is-done .gwrv-rate, .gwrv-form.is-done .gwrv-fields, .gwrv-form.is-done .gwrv-field-body { opacity: .55; }

/* Browse */
.gwrv-browse { margin-top: 28px; border-top: 1px solid var(--gwrv-line); padding-top: 22px; }
.gwrv-part-list .gwrv-browse { margin-top: 0; border-top: 0; padding-top: 0; }
.gwrv-browse-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gwrv-list-title { margin: 0; font-size: 22px; color: var(--gwrv-navy); }
.gwrv-sort select { width: auto; font-size: 14px; padding: 7px 10px; }
.gwrv-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gwrv-chip { font: inherit; font-size: 13px; white-space: nowrap; border: 1px solid var(--gwrv-line); background: var(--gwrv-card); color: var(--gwrv-navy); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.gwrv-chip:hover { border-color: var(--gwrv-navy); }
.gwrv-chip.is-on { background: var(--gwrv-navy); border-color: var(--gwrv-navy); color: #fff; }
.gwrv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; transition: opacity .2s; }
.gwrv.is-loading .gwrv-list, .gwrv-browse.is-loading .gwrv-list { opacity: .5; }
.gwrv-item { background: var(--gwrv-soft); border: 1px solid var(--gwrv-line); border-left: 4px solid var(--gwrv-pos); border-radius: 8px; padding: 14px 16px; margin: 0; }
.gwrv-item.is-neg { border-left-color: var(--gwrv-neg); }
.gwrv-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.gwrv-who { display: inline-flex; align-items: center; gap: 6px; }
.gwrv-who strong { color: var(--gwrv-ink); }
.gwrv-state { font-size: 11px; font-weight: 700; letter-spacing: .04em; background: #e3e9ef; color: var(--gwrv-navy); border-radius: 4px; padding: 1px 6px; }
.gwrv-date { margin-left: auto; color: var(--gwrv-muted); font-size: 13px; white-space: nowrap; }
.gwrv-body { margin: 10px 0 10px; white-space: pre-line; line-height: 1.55; font-size: 16px; overflow-wrap: anywhere; }
.gwrv-item-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--gwrv-muted); }
.gwrv-helpful { margin-right: 2px; }
.gwrv-vote { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--gwrv-line); background: var(--gwrv-card); color: var(--gwrv-muted); border-radius: 999px; padding: 3px 10px 3px 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.gwrv-vote svg { width: 16px; height: 16px; fill: currentColor; }
.gwrv-vote:hover { border-color: var(--gwrv-navy); color: var(--gwrv-navy); }
.gwrv-up.is-on { background: var(--gwrv-pos-soft); border-color: var(--gwrv-pos); color: var(--gwrv-pos); }
.gwrv-down.is-on { background: var(--gwrv-neg-soft); border-color: var(--gwrv-neg); color: var(--gwrv-neg); }
.gwrv-vote:disabled { opacity: .6; cursor: default; }
.gwrv-report { font: inherit; font-size: 12px; background: none; border: 0; color: var(--gwrv-muted); text-decoration: underline; cursor: pointer; margin-left: auto; padding: 4px; }
.gwrv-report:hover { color: var(--gwrv-neg); }
.gwrv-item-msg { flex-basis: 100%; font-size: 12px; color: var(--gwrv-navy); }
.gwrv-item-msg:empty { display: none; }
.gwrv-empty { color: var(--gwrv-muted); margin: 6px 0 0; }
.gwrv-more { font: inherit; font-size: 15px; font-weight: 600; display: block; margin: 16px auto 0; background: var(--gwrv-card); color: var(--gwrv-navy); border: 1px solid var(--gwrv-navy); border-radius: 6px; padding: 9px 24px; cursor: pointer; }
.gwrv-more:hover { background: var(--gwrv-soft); }

/* Badge */
.gwrv-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #1f3b5c; background: #f5f8fb; border: 1px solid #c9d6e3; border-radius: 999px; padding: 5px 14px; text-decoration: none; white-space: nowrap; }
.gwrv-badge:hover { border-color: #1f3b5c; }
.gwrv-badge .gwrv-r svg { width: 15px; height: 15px; fill: #d3dae2; }
.gwrv-badge .gwrv-r svg.on { fill: #66773a; }
.gwrv-badge .gwrv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
	.gwrv { padding: 18px 16px; }
	.gwrv-top { grid-template-columns: 1fr; gap: 16px; }
	.gwrv-title { font-size: 24px; }
	.gwrv-fields { grid-template-columns: 1fr 110px; }
	.gwrv-rate label { width: 44px; height: 44px; }
	.gwrv-rate-label { flex-basis: 100%; margin: 6px 0 0; }
	.gwrv-date { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gwrv * { transition: none !important; }
}
.gwrv [hidden] { display: none !important; }

/* Badge tucked into another element: hidden until moved, so it never flashes in its original spot. */
.gwrv-badge[data-into]:not(.is-placed) { display: none !important; }

/* Compact badge: a single small text line, no pill, inherits the color of wherever it sits. */
a.gwrv-badge.gwrv-compact {
	display: inline-flex; align-items: center; gap: 6px;
	background: none !important; border: 0 !important; border-radius: 0; padding: 0 !important; margin: 4px 0 0;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none;
	color: inherit !important; opacity: .8; text-decoration: none !important; white-space: nowrap; box-shadow: none !important;
}
a.gwrv-badge.gwrv-compact:hover, a.gwrv-badge.gwrv-compact:focus-visible { opacity: 1; text-decoration: underline !important; text-underline-offset: 2px; }
a.gwrv-badge.gwrv-compact .gwrv-r svg { width: 12px; height: 12px; }
a.gwrv-badge.gwrv-compact.has-ratings .gwrv-badge-text::after { content: " \00b7  Rate"; font-weight: 700; }
.gwrv-badge-stars:empty { display: none; }
a.gwrv-badge.gwrv-right { margin-left: auto !important; align-self: center; }
a.gwrv-badge.gwrv-compact.gwrv-right { margin-top: 0; padding-left: 8px !important; }
