/* GGD Logo Review: public page. Adjust the colours below to match the live GGD Studio theme. */
:root {
	--lr-blue: #1b4f9c;
	--lr-peri: #8d9ced;
	--lr-peri-soft: #eef0fc;
	--lr-ink: #333b45;
	--lr-mute: #7b8491;
	--lr-line: #e3e6ee;
	--lr-bg: #ffffff;
	--lr-stroke: 3px;
}

* { box-sizing: border-box; }

body.ggd-lr {
	margin: 0;
	background: var(--lr-bg);
	color: var(--lr-ink);
	font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}

.lr-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 18px 80px; }

.lr-head { margin-bottom: 26px; }
.lr-title { margin: 0 0 4px; font-size: clamp(26px, 5vw, 40px); font-weight: 700; color: var(--lr-blue); line-height: 1.1; text-wrap: balance; }
.lr-sub { margin: 0; color: var(--lr-mute); font-size: 15px; text-wrap: pretty; }
.lr-count { margin: 10px 0 0; font-size: 13px; color: var(--lr-mute); letter-spacing: .02em; }
.lr-count.is-closed { color: var(--lr-ink); font-weight: 600; }

/* Name bar */
.lr-me {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
	padding: 14px 16px; margin-bottom: 26px;
	background: var(--lr-peri-soft); border-radius: 14px;
}
.lr-me label { font-weight: 600; font-size: 15px; }
.lr-me input[type="text"] {
	flex: 1 1 200px; min-width: 0; padding: 10px 14px;
	border: 2px solid var(--lr-peri); border-radius: 999px;
	font: inherit; color: var(--lr-ink); background: #fff;
}
.lr-me input[type="text"]:focus { outline: 0; border-color: var(--lr-blue); }

/* Grid */
.lr-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .lr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .lr-grid { grid-template-columns: repeat(3, 1fr); } }

.lr-card { border: 1px solid var(--lr-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lr-img { background: #fff; position: relative; padding: 0; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--lr-line); }
.lr-img img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); max-width: none; max-height: none; object-fit: contain; object-position: center; display: block; }
.lr-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.lr-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--lr-blue); }
.lr-avg-top { font-size: 13px; font-weight: 400; color: var(--lr-mute); }

/* Slider */
.lr-vote { display: flex; flex-direction: column; gap: 6px; }
.lr-vote-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--lr-mute); }
.lr-val { font-weight: 700; color: var(--lr-ink); min-width: 4ch; text-align: right; }
.lr-val.is-empty { color: var(--lr-mute); font-weight: 400; }

input[type="range"].lr-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"].lr-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--lr-peri) var(--p, 0%), var(--lr-line) var(--p, 0%)); }
input[type="range"].lr-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--lr-line); }
input[type="range"].lr-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--lr-peri); }
input[type="range"].lr-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: var(--lr-stroke) solid var(--lr-blue); margin-top: -10px; }
input[type="range"].lr-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: var(--lr-stroke) solid var(--lr-blue); }
input[type="range"].lr-range.is-untouched::-webkit-slider-thumb { border-color: var(--lr-peri); }
input[type="range"].lr-range.is-untouched::-moz-range-thumb { border-color: var(--lr-peri); }
input[type="range"].lr-range:focus-visible { outline: 2px solid var(--lr-peri); outline-offset: 4px; border-radius: 8px; }
input[type="range"].lr-range:disabled { cursor: default; opacity: .55; }

.lr-comment {
	width: 100%; min-height: 56px; resize: vertical; padding: 9px 12px;
	border: 1px solid var(--lr-line); border-radius: 10px;
	font: inherit; font-size: 15px; color: var(--lr-ink); background: #fff;
}
.lr-comment:focus { outline: 0; border-color: var(--lr-peri); }
.lr-comment:disabled { background: #fafbfd; }

/* Everyone else */
.lr-others { border-top: 1px solid var(--lr-line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.lr-other { font-size: 14px; }
.lr-other-head { display: flex; align-items: center; gap: 8px; }
.lr-other-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.lr-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--lr-blue); background: var(--lr-peri-soft); padding: 1px 8px; border-radius: 999px; }
.lr-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--lr-line); overflow: hidden; min-width: 30px; }
.lr-bar > i { display: block; height: 100%; background: var(--lr-peri); }
.lr-bar.is-owner > i { background: var(--lr-blue); }
.lr-other-pct { font-weight: 700; min-width: 4ch; text-align: right; }
.lr-other-note { margin: 3px 0 0; color: var(--lr-mute); text-wrap: pretty; overflow-wrap: anywhere; }
.lr-none { font-size: 14px; color: var(--lr-mute); margin: 0; }

/* Buttons: lozenge, all caps, outline frame */
.lr-btn {
	display: inline-block; cursor: pointer;
	padding: 6px 20px; border-radius: 999px;
	border: calc(var(--lr-stroke) * 2) solid var(--lr-peri);
	background: transparent; color: var(--lr-peri);
	font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}
.lr-btn:hover, .lr-btn:focus-visible { color: var(--lr-blue); border-color: var(--lr-blue); outline: 0; }
.lr-btn[disabled] { opacity: .45; cursor: default; }
.lr-btn.is-small { font-size: 11px; padding: 2px 12px; border-width: var(--lr-stroke); }

.lr-actions { margin: 26px 0 8px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.lr-msg { font-size: 14px; color: var(--lr-mute); }
.lr-msg.is-error { color: #b3261e; }
.lr-msg.is-ok { color: var(--lr-blue); }

/* Summary */
.lr-summary { margin-top: 44px; }
.lr-summary h2 { margin: 0 0 4px; font-size: 24px; color: var(--lr-blue); }
.lr-summary > p { margin: 0 0 16px; color: var(--lr-mute); font-size: 14px; }
.lr-rows { display: flex; flex-direction: column; gap: 10px; }
.lr-row { display: grid; grid-template-columns: 78px 1fr 64px; gap: 12px; align-items: center; }
.lr-row img { width: 78px; height: 58px; object-fit: contain; border: 1px solid var(--lr-line); border-radius: 8px; background: #fff; padding: 4px; }
.lr-row-mid { min-width: 0; }
.lr-row-name { font-weight: 600; font-size: 15px; }
.lr-row-name small { font-weight: 400; color: var(--lr-mute); margin-left: 6px; }
.lr-row .lr-bar { height: 10px; margin-top: 4px; }
.lr-row .lr-bar > i { background: var(--lr-blue); }
.lr-row-pct { font-weight: 700; font-size: 20px; text-align: right; }
.lr-row.is-top .lr-row-pct { color: var(--lr-blue); }

.lr-voters { margin-top: 26px; font-size: 14px; color: var(--lr-mute); }
.lr-voters button { margin-left: 8px; }

.lr-error { padding: 40px 0; text-align: center; color: var(--lr-mute); }
.lr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
	.lr-bar > i { transition: width .25s ease; }
}

/* Cloud background (only when the GGD Studio theme's clouds.js is present). Same sky colour and white column as the site. */
body.ggd-lr.has-clouds { background: #d6e1ff; }
body.ggd-lr.has-clouds .lr-wrap {
	background: #fff;
	margin-top: 24px; margin-bottom: 24px;
	padding-top: 32px; padding-bottom: 48px;
	border-radius: 20px;
}
.ggd-clouds { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media (max-width: 640px) {
	body.ggd-lr.has-clouds .lr-wrap { margin-top: 0; margin-bottom: 0; border-radius: 0; }
}

.lr-foot-logo { display: none; }
body.has-clouds .lr-foot-logo { display: block; width: 90px; margin: 0 auto 36px; opacity: .9; }
body.has-clouds .lr-foot-logo img { display: block; width: 100%; height: auto; }

/* v1.0.3: lighter, centred, all-caps headline; blue logo bottom right under the block */
.lr-title { text-align: center; text-transform: uppercase; font-weight:400; letter-spacing: .05em; }
body.has-clouds .lr-foot-logo { display: flex; justify-content: flex-end; width: 100%; max-width: 1180px; margin: 0 auto 36px; opacity: 1; }
body.has-clouds .lr-foot-logo .lr-logo-mark { display: block; width: 70px; aspect-ratio: 200 / 85.84; background-color: #285bd3; -webkit-mask: var(--lr-logo) no-repeat center / contain; mask: var(--lr-logo) no-repeat center / contain; }
@media (max-width: 640px) { body.has-clouds .lr-foot-logo { padding: 18px 18px 0; margin-bottom: 24px; } }

/* v1.0.4: logo inside the white block (bottom right), more room under the headline, phone friendly */
body.has-clouds .lr-foot-logo { display: flex; justify-content: flex-end; width: auto; max-width: none; margin: 40px 0 0; padding: 0; }
body.has-clouds .lr-foot-logo .lr-logo-mark { width: 64px; }
.lr-title { margin-bottom: 14px; overflow-wrap: anywhere; }
.lr-head { margin-bottom: 44px; }
@media (max-width: 640px) {
	.lr-title { font-size: clamp(22px, 7vw, 30px); letter-spacing: .03em; }
	.lr-head { margin-bottom: 32px; }
	body.has-clouds .lr-foot-logo { margin-top: 32px; padding: 0; }
	body.has-clouds .lr-foot-logo .lr-logo-mark { width: 56px; }
}

/* v1.0.5: logo centred, close to the bottom edge of the white block */
body.has-clouds .lr-wrap { padding-bottom: 20px; }
body.has-clouds .lr-foot-logo { justify-content: center; margin-top: 48px; }
@media (max-width: 640px) { body.has-clouds .lr-wrap { padding-bottom: 18px; } body.has-clouds .lr-foot-logo { margin-top: 36px; } }

/* v1.0.6: everything centred, logo in the headline blue and closer to the bottom edge */
.lr-wrap { text-align: center; }
.lr-me { justify-content: center; }
.lr-label { justify-content: center; gap: 10px; }
.lr-comment { text-align: left; }
body.has-clouds .lr-wrap { padding-bottom: 10px; }
body.has-clouds .lr-foot-logo { margin-top: 40px; }
body.has-clouds .lr-foot-logo .lr-logo-mark { background-color: var(--lr-blue); }
@media (max-width: 640px) { body.has-clouds .lr-wrap { padding-bottom: 10px; } body.has-clouds .lr-foot-logo { margin-top: 32px; } }

/* v1.0.7: gap under the logo equals the logo's own x-height (about 26% of its width) */
body.has-clouds .lr-wrap { padding-bottom: calc(64px * .259); }
@media (max-width: 640px) { body.has-clouds .lr-wrap { padding-bottom: calc(56px * .259); } }

/* v1.0.8: same selector weight as the base cloud rule, so the x-height gap really applies */
body.ggd-lr.has-clouds .lr-wrap { padding-bottom: calc(64px * .259); }
@media (max-width: 640px) { body.ggd-lr.has-clouds .lr-wrap { padding-bottom: calc(56px * .259); } }


/* GGD cards on blue (14 Nov 2026): same look as the tool cards on ggdstudio.co.za */
.lr-grid{padding:1.5rem;gap:1.5rem;border-radius:1.25rem;background:color-mix(in srgb,#ccdaff 30%,#fff)}
.lr-card{border:0;border-radius:1rem;background:#fff;transition:box-shadow .2s ease}
.lr-card,.lr-img{-webkit-tap-highlight-color:transparent}.lr-card,.lr-card:hover,.lr-card:focus-within{box-shadow:none}
.lr-img{background:#fff}
@media (max-width:639px){.lr-grid{padding:1rem;gap:1rem}}

/* Name bar joins the card panel; site-style buttons (14 Nov 2026) */
.lr-me{margin-bottom:0;padding:1.5rem 1.5rem 0;border-radius:1.25rem 1.25rem 0 0;background:color-mix(in srgb,#ccdaff 30%,#fff)}
.lr-me input[type=text]{border:0;background:#fff}
.lr-me input[type=text]:focus{outline:0;box-shadow:0 0 0 .11rem #285bd3}
.lr-grid{border-radius:0 0 1.25rem 1.25rem}
@media (max-width:639px){.lr-me{padding:1rem 1rem 0}}
.lr-btn{padding:.75rem 1.4rem .65rem;border:0;border-radius:999px;background:color-mix(in srgb,#ccdaff 50%,#fff);color:#285bd3;font-size:.8rem;font-weight:700;letter-spacing:.06em;line-height:1}
.lr-btn:hover,.lr-btn:focus-visible{background:#285bd3;color:#fff;outline:0}
.lr-btn.is-small{padding:.45rem .9rem .35rem;font-size:.7rem;border:0}

/* Click a logo to see it full screen (15 Nov 2026) */
.lr-img.is-zoomable{cursor:zoom-in}
.lr-img.is-zoomable:focus,.lr-img.is-zoomable:focus-visible{outline:none}
body.lr-lb-open{overflow:hidden}
.lr-lightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:clamp(1rem,4vw,3rem);background:#fff;cursor:zoom-out}
.lr-lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.lr-lb-close{position:absolute;top:1rem;right:1rem;padding:.75rem 1.4rem .65rem;border:0;border-radius:999px;background:color-mix(in srgb,#ccdaff 50%,#fff);color:#285bd3;font:700 .8rem/1 "Titillium Web",system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.lr-lb-close:hover,.lr-lb-close:focus-visible{background:#285bd3;color:#fff;outline:0}

/* Exactly four logos sit two by two (15 Nov 2026) */
@media (min-width:640px){.lr-grid:has(> .lr-card:nth-child(4):last-child){grid-template-columns:repeat(2,1fr)}}
