/* Public voting purpose and verified-vote standings. */
.amb-purpose { position: relative; isolation: isolate; overflow: hidden; min-height: 0; padding: 28px 160px 26px 30px; background: #1d1b19; color: #fffaf0; }
.amb-purpose::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(22,19,17,.95),rgba(22,19,17,.82) 56%,rgba(22,19,17,.72)),url('/img/charity/gilded-theatre-bg.jpg') center / cover; }
.amb-purpose::after { content: ''; position: absolute; inset: auto 30px 0; height: 1px; background: #9f7938; }
.amb-purpose-eyebrow { margin: 0; color: #d6b67c; font: 500 11px/1.4 var(--font-ui); letter-spacing: .19em; text-transform: uppercase; }
.amb-purpose h1, .amb-purpose h3 { max-width: 100%; margin: 10px 0 14px; font: 500 clamp(36px,5.4vw,46px)/1.02 var(--font-display); letter-spacing: -.025em; }
.amb-purpose h1 span, .amb-purpose h3 span { display: block; color: #e4c37c; }
.amb-purpose > p:not(.amb-purpose-eyebrow) { max-width: 590px; margin: 0 0 8px; color: #f0ebe3; font: 400 13px/1.55 var(--font-ui); }
.amb-purpose > p:last-child { margin-bottom: 0; }
.amb-purpose-weight { position: absolute; top: -1px; right: -1px; display: grid; place-content: center; width: 121px; height: 125px; border: 1px solid #caa965; border-bottom-left-radius: 20px; background: #f8f6f2; color: #876a1f; text-align: center; }
.amb-purpose-weight b { font: 500 43px/1 var(--font-display); }
.amb-purpose-weight span { max-width: 90px; margin: 5px auto 0; font: 500 11px/1.18 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; }
.charity-page .contestants .amb-purpose { margin: 0 0 28px; }

.ambassador-page.lb { padding-top: 28px; }
.ambassador-page .back { margin-bottom: 22px; }
.amb-board { padding: 30px; background: #f8f6f2; }
.amb-home-board { margin-top: 38px; }
.amb-board-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.amb-board-head h2 { margin: 5px 0 0; font: 500 42px/1.08 var(--font-display); letter-spacing: -.03em; }
.amb-board-head .gz-eyebrow { margin: 0; color: #6b511e; }
#lbPeriod { margin: 0 0 5px; color: #695f51; font: 500 11px/1.3 var(--font-ui); letter-spacing: .07em; text-align: right; text-transform: uppercase; }
.amb-count-note { margin: 18px 0 16px; color: #493c25; font: 400 13px/1.4 var(--font-ui); }
.amb-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 17px; }
.amb-tab { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 50px; padding: 8px; border: 1px solid #c8ae76; border-radius: 2px; background: #f8f6f2; color: #26231f; font: 500 12px/1.2 var(--font-ui); white-space: nowrap; transition: background-color 220ms var(--ease-out),color 220ms var(--ease-out); }
.amb-tab[aria-selected="true"] { background: #282624; color: #fffaf0; }
.amb-tab-total { color: #876a1f; }
.amb-tab[aria-selected="true"] .amb-tab-total { color: #e4c37c; }
.amb-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 7px; }
.amb-list-head h3 { margin: 0; font: 500 27px/1.16 var(--font-display); }
.amb-list-head span { color: #665d52; font: 400 12px/1.3 var(--font-ui); text-align: right; }
.amb-column-head { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 8px; padding: 8px 10px 8px 0; border-bottom: 1px solid #d7c7a7; color: #685b46; font: 500 11px/1.2 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; }
.amb-column-head span:last-child { text-align: right; }
.amb-list { margin: 0; padding: 0; list-style: none; }
.amb-row { display: block; width: 100%; min-height: 72px; padding: 7px 10px 9px 0; border: 0; border-bottom: 1px solid #ded6c8; border-radius: 0; background: #fff; color: #26231f; text-align: left; }
.amb-row[aria-expanded="false"]:hover { background: #f5f0e7; }
.amb-row.is-clear-leader { background: #26231f; color: #fffaf0; }
.amb-row[aria-expanded="true"] { box-shadow: inset 3px 0 #876a1f; }
.amb-row-main { display: grid; grid-template-columns: 40px 35px 43px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.amb-rank { padding-left: 3px; color: #876a1f; font: 500 23px/1 var(--font-display); }
.amb-row.is-clear-leader .amb-rank { color: #e4c37c; }
.amb-photo { width: 35px; height: 45px; object-fit: cover; object-position: 50% 15%; background: #ece5da; }
.amb-code { display: grid; place-items: center; min-height: 28px; border: 1px solid #c9b27d; border-radius: 0 0 8px 0; background: #f4efe5; color: #59461e; font: 500 11px/1 var(--font-ui); }
.amb-row.is-clear-leader .amb-code { background: #e0c58e; color: #211b12; }
.amb-name { min-width: 0; overflow-wrap: anywhere; font: 500 13px/1.22 var(--font-ui); }
.amb-votes { white-space: nowrap; font: 500 13px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.amb-row.is-clear-leader .amb-votes { color: #e4c37c; }
.amb-track { position: relative; display: block; height: 5px; margin: 8px 1px 0 138px; background: #e9e2d4; }
.amb-row.is-clear-leader .amb-track { background: #5a5040; }
.amb-fill { position: absolute; inset: 0 auto 0 0; width: var(--bar-width); background: #9a782e; transition: width 220ms var(--ease-out); }
.amb-row.is-clear-leader .amb-fill { background: #dfbd74; }
.amb-ghost { position: absolute; top: 0; bottom: 0; left: var(--bar-width); width: var(--ghost-width); background: repeating-linear-gradient(110deg,#d8b76d 0 5px,#f1dcaa 5px 9px); transition: left 220ms var(--ease-out),width 220ms var(--ease-out); }
.amb-support-panel { padding: 17px 19px; border: 1px solid #c8ae76; border-top: 0; background: #f6f0e4; }
.amb-support-panel h4 { margin: 0 0 5px; font: 500 27px/1.12 var(--font-display); }
.amb-support-panel p { margin: 0 0 9px; font: 400 13px/1.4 var(--font-ui); }
.amb-support-panel .amb-goal { margin: 10px 0; color: #876a1f; font: 500 25px/1.15 var(--font-display); }
.amb-suggest, .amb-other-toggle { min-height: 40px; padding: 8px 12px; border: 1px solid #876a1f; border-radius: 999px; background: transparent; color: #5a461d; font: 500 12px/1.2 var(--font-ui); }
.amb-panel-hint { color: #62574a; font-size: 12px !important; }
.amb-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: 9px 0 11px; }
.amb-option { min-width: 0; min-height: 50px; padding: 5px; border: 1px solid #bfa66e; border-radius: 2px; background: #fffcf6; color: #26231f; font: 500 12px/1.24 var(--font-ui); text-align: center; }
.amb-option[aria-pressed="true"] { background: #282624; color: #fffaf0; }
.amb-option span { display: block; color: #876a1f; }
.amb-option[aria-pressed="true"] span { color: #e4c37c; }
.amb-other { margin: 10px 0; }
.amb-other-field { margin-top: 9px; }
.amb-other-field label { display: block; margin-bottom: 4px; font: 500 12px/1.2 var(--font-ui); }
.amb-other-field input { width: 112px; min-height: 44px; padding: 7px 10px; border: 1px solid #aa956d; border-radius: 3px; background: #fff; color: #26231f; font: 400 16px/1.2 var(--font-ui); }
.amb-error { color: #8b2d1f; font: 500 12px/1.3 var(--font-ui) !important; }
.amb-quote { padding-top: 10px; border-top: 1px solid #cdbb95; }
.amb-quote strong { color: #876a1f; font-weight: 500; }
.amb-support-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid #876a1f; border-radius: 999px; background: #876a1f; color: #fff; font: 500 12px/1.2 var(--font-ui); text-decoration: none; }
.amb-support-cta:hover { color: #fff; background: #6b511e; }
.amb-support-cta:disabled { cursor: not-allowed; opacity: .55; }
.amb-board :is(button,input):focus-visible { outline: 3px solid #a47417; outline-offset: 2px; }
.amb-sheet-note { margin: 0 0 15px; padding: 9px 11px; border-left: 3px solid #9a782e; background: #f8f3e9; color: #4d4028; font: 400 12px/1.45 var(--font-ui); }
.amb-footnote { margin: 16px 0 0; color: #5f564a; font: 400 12px/1.5 var(--font-ui); }
.ambassador-page .lb-updated { margin-top: 18px; }
@media (max-width: 600px) {
  .amb-purpose { padding: 137px 18px 19px; }
  .amb-purpose h1, .amb-purpose h3 { font-size: clamp(31px,9vw,39px); }
  .amb-purpose h1 span, .amb-purpose h3 span { font-size: clamp(28px,8vw,36px); }
  .amb-board { padding: 27px 16px 24px; }
  .amb-board-head, .amb-list-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .amb-board-head h2 { font-size: 32px; }
  .amb-list-head h3 { font-size: 23px; }
  #lbPeriod, .amb-list-head span { text-align: left; }
  .amb-tab { min-height: 50px; padding: 5px; font-size: 11px; }
  .amb-column-head { grid-template-columns: 32px minmax(0,1fr) auto; }
  .amb-row-main { grid-template-columns: 32px 31px 34px minmax(0,1fr) auto; gap: 5px; }
  .amb-rank { padding-left: 2px; font-size: 20px; }
  .amb-photo { width: 31px; height: 40px; }
  .amb-row { min-height: 72px; padding-right: 5px; }
  .amb-name, .amb-votes { font-size: 12px; }
  .amb-track { margin-left: 112px; }
  .amb-support-panel { padding: 14px 11px; }
  .amb-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .amb-tab, .amb-fill, .amb-ghost { transition: none; } }
