/* Public references and their administrator editor. */
.public-reviews{background:#f4f7fb}
.public-partners{background:#f4f7fb}
.reference-admin .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.reference-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.reference-review{display:flex;flex-direction:column;gap:24px;margin:0;padding:32px;border:1px solid #dbe5f2;border-radius:4px;background:#fff;box-shadow:0 12px 32px rgba(13,42,74,.05);min-width:0}
.reference-stars{display:inline-flex;align-items:center;gap:4px;color:#bb8100;flex-shrink:0}
.reference-stars svg{display:block;flex-shrink:0}
.reference-review blockquote{margin:0;color:#274361;line-height:1.75;overflow-wrap:anywhere}
.reference-review blockquote p{margin:0}
.reference-review figcaption{display:flex;align-items:center;gap:12px;margin-top:auto;font-weight:700;color:#0d2a4a;overflow-wrap:anywhere}
.reference-avatar{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;overflow:hidden;border-radius:50%;background:#ffda28;color:#0d2a4a;font-size:20px;font-weight:700}
.reference-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.reference-entry-person{display:flex;align-items:center;gap:12px;min-width:0}
.reference-avatar-picker{min-width:0;margin:0;padding:0;border:0}
.reference-avatar-picker legend{padding:0;margin-bottom:12px;font-size:14px;font-weight:700;color:#42556d}
.reference-avatar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.reference-avatar-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:24px 8px 12px;border:1px solid #dbe5f2;border-radius:4px;background:#fff;color:#0d2a4a;font-size:13px;font-weight:600;cursor:pointer}
.reference-admin .reference-avatar-choice>input{position:absolute;top:8px;right:8px;width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:#0d5fc0;box-shadow:none}
.reference-avatar-choice .reference-avatar{flex-basis:44px;width:44px;height:44px}
.reference-avatar-choice:has(input:checked){background:#edf5ff;border-color:#0b3769}
.reference-avatar-choice:has(input:focus-visible){outline:2px solid #1473e6;outline-offset:2px}
.client-review .reference-avatar-choice>input{position:absolute;top:8px;right:8px;width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:#0d5fc0;box-shadow:none}
.client-review-intro{max-width:740px;color:#627893;line-height:1.65;margin:0 0 24px}
.client-review-editor{max-width:740px;padding:28px}
.client-review .reference-entry-heading{align-items:center;margin-bottom:28px}
.client-review .reference-entry-heading h2{margin:0;font-size:19px}
.client-review .app-form{gap:22px}
.client-review-rating{border:0;min-width:0;margin:0;padding:0}
.client-review-rating legend{font-size:15px;font-weight:700;color:#42556d;margin-bottom:8px}
.client-review-stars{display:flex;gap:6px}
.client-review-stars label{position:relative;display:grid;place-items:center;width:44px;height:44px;cursor:pointer;border-radius:4px}
.client-review-stars input{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;opacity:0}
.client-review-stars span{font-size:36px;line-height:1;color:#c8d3e0}
.client-review-stars label:has(input:checked) span,.client-review-stars label:has(~label input:checked) span{color:#ffd21c}
.client-review-stars label:has(input:focus-visible){outline:2px solid #1473e6;outline-offset:2px}
.client-review-rating p,.client-review-help,.reference-origin{font-size:13px;line-height:1.6;color:#627893;margin:8px 0 0}
.client-review-help{margin-top:-12px}
.client-review-publication{font-size:14px;line-height:1.65;color:#526379;margin:0;padding:16px;border-radius:4px;background:#f4f8fd}
.reference-entry-actions>form{margin:0}
@media(max-width:600px){.client-review-editor{padding:20px}.client-review .reference-entry-heading{flex-wrap:wrap;gap:12px}.client-review .reference-entry-person{flex:1 1 190px}}
.reference-partner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:0;margin:0;list-style:none}
@media(min-width:1101px){.reference-partner-grid:has(>.reference-partner:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
.reference-partner{min-width:0;padding:28px 22px;text-align:center;border:1px solid #dbe5f2;border-radius:4px;background:#fff;box-shadow:0 10px 28px rgba(13,42,74,.04)}
.reference-logo{display:flex;align-items:center;justify-content:center;height:128px;margin-bottom:16px}
.reference-logo img{display:block;width:auto;height:auto;max-width:100%;max-height:128px;object-fit:contain}
.reference-partner h3{margin:0;color:#0d2a4a;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.reference-admin .screen-title p{max-width:780px;margin:12px 0 0;color:#627893;font-size:16px;line-height:1.6;font-weight:400;letter-spacing:normal;text-transform:none}
.reference-tabs{display:grid;grid-template-columns:max-content max-content;gap:12px;margin:24px 0}
.reference-tabs span{display:grid;place-items:center;min-width:26px;height:26px;border-radius:4px;background:#f0f4fa;font-size:14px}
.reference-admin-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:24px;align-items:start}
.reference-admin .reference-editor h2{margin:0 0 12px;font-size:22px;line-height:1.35}
.reference-admin .reference-help{font-size:14px;line-height:1.6;color:#627893;margin:0 0 16px}
.reference-admin .reference-visibility{display:flex;align-items:center;gap:10px;cursor:pointer}
.reference-admin .reference-visibility input{width:20px;height:20px;min-height:0;flex:0 0 20px;accent-color:#1262be;margin:0}
.reference-form-actions,.reference-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.reference-entry-actions{grid-template-columns:repeat(2,minmax(0,140px));gap:10px;max-width:290px}
#main-content.reference-admin .reference-entry-actions :is(.app-secondary-button,.app-danger-button),#main-content.reference-admin .reference-form-actions :is(.app-primary-button,.app-secondary-button){width:100%;min-height:48px;margin:0}
/* Match the shared desktop action override while keeping this change local to reference cards. */
#main-content.mobile-app.reference-admin .reference-entry-actions :is(.app-secondary-button,.app-danger-button){width:100%!important;align-self:start}
.reference-list{display:grid;gap:20px;min-width:0}
.reference-admin-entry{min-width:0}
.reference-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.reference-entry-heading h2{font-size:20px;margin:0;overflow-wrap:anywhere;min-width:0}
.reference-status{white-space:nowrap;font-size:12px;line-height:20px;padding:4px 10px;border-radius:4px;background:#eef2f7;color:#576579;font-weight:700}
.reference-status.is-visible{background:var(--app-green);color:#fff}
.reference-review-text{line-height:1.65;overflow-wrap:anywhere;margin:18px 0 24px;color:#405978}
.reference-edit-logo{display:flex;align-items:center;justify-content:center;border:1px solid #e0e8f2;border-radius:4px;background:#fff;padding:16px;margin:0 0 20px;min-height:110px}
.reference-edit-logo img{width:auto;height:auto;max-width:100%;max-height:100px;object-fit:contain}
.reference-delete{min-width:0}
.reference-delete form{box-sizing:border-box;width:calc(200% + 10px);margin:12px 0 0 calc(-100% - 10px);padding:14px;border:1px solid #f0c5c1;border-radius:4px;background:#fff8f7}
.reference-delete p{font-size:14px;line-height:1.6;margin:0 0 12px}
.reference-empty{text-align:center;padding:40px 28px}
.reference-empty>span{display:block;font-size:48px;color:#1262be;margin-bottom:12px}
.reference-empty h2{font-size:22px;margin:0 0 12px}
.reference-empty p{max-width:400px;margin:0 auto;color:#627893;line-height:1.65}
@media(min-width:1000px){.reference-review-grid:has(>.reference-review:only-child){grid-template-columns:minmax(0,760px)}.reference-review-grid:has(>.reference-review:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.reference-partner-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-admin-layout{grid-template-columns:1fr}}
@media(max-width:900px){.reference-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.reference-review-grid{grid-template-columns:1fr}.reference-review{padding:24px;gap:20px}.reference-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reference-partner{padding:20px 14px}.reference-logo{height:100px}.reference-logo img{max-height:100px}.reference-partner h3{font-size:15px}.reference-tabs{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px}#main-content.reference-admin .reference-tabs .app-secondary-button{gap:6px;padding-inline:10px}.reference-tabs span{flex-shrink:0;min-width:24px;height:24px;font-size:13px}.reference-entry-heading{gap:10px}.reference-admin-layout{gap:18px}.reference-form-actions{grid-template-columns:1fr}}
