/* The ballot shares the programme's header, typeface and footer. */
main.cc.ballot {
  --night: #101d23;
  --lime: #c6f674;
  --ink: #15292e;
  --muted: #526469;
  --line: #d3ddda;
  width: 100%; max-width: none; margin: 0; padding: 0;
  background: #f5f7f4; color: var(--ink);
  text-align: left; font: 400 1rem/1.5 Arial, Helvetica, sans-serif;
}
.ballot *, .ballot *::before, .ballot *::after { box-sizing: border-box; }
.ballot .bv-wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.ballot h1, .ballot h2, .ballot h3, .bv-avatar > span {
  font-family: CCProxima, Arial, sans-serif; font-weight: 900;
}
.ballot .bv-hero {
  isolation: isolate; overflow: hidden; position: relative; color: white; background: var(--night);
}
.ballot .bv-hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 0 40%; pointer-events: none;
  background: linear-gradient(90deg, var(--night), transparent 50%),
    url('/vybor-klienta/assets/client-choice/brand/smoke-dark.webp') center 61% / cover no-repeat;
  opacity: .43;
}
.ballot .bv-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2rem, 3.65vw, 3.2rem);
}
.ballot .bv-hero-copy { position: relative; z-index: 1; min-width: 0; }
.ballot .bv-kicker {
  margin: 0 0 1rem; color: #b6c7c7; font: 700 .8125rem/1.2 Arial, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.ballot .bv-hero h1 {
  margin: 0; color: #fff; font-size: clamp(2.9rem, 5vw, 4.65rem);
  line-height: .96; letter-spacing: -.037em;
}
.ballot .bv-hero h1 span { display: block; color: var(--lime); }
.ballot .bv-lead { max-width: 32rem; margin: 1.25rem 0 0; color: #e3ebe9; font-size: 1.08rem; line-height: 1.52; }
.ballot .bv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin: 1.3rem 0 0; color: #ced9d7; font-size: .9rem; }
.ballot .bv-meta span { color: var(--lime); font-weight: 700; }
.ballot .bv-meta i { width: 1px; height: 1em; background: #607270; }
.ballot .bv-award {
  position: relative; isolation: isolate; justify-self: center;
  width: min(100%, clamp(14rem, 27vw, 21rem));
}
.ballot .bv-award::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: auto 17% 1%; height: 7%;
  background: radial-gradient(ellipse, #3bcec366, transparent 70%);
}
.ballot .bv-award img {
  display: block; width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 .55rem .6rem #03121688);
}
.ballot .bv-content { padding-block: clamp(2rem, 3.6vw, 3.4rem) 2.8rem; }
.ballot .bv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin: 0 0 1.35rem; }
.ballot .bv-section-head h2, .ballot .bv-confirm h2, .ballot .bv-notice h2 {
  margin: 0; color: var(--ink); font-size: clamp(1.9rem, 3vw, 2.65rem); letter-spacing: -.035em; line-height: 1.08;
}
.ballot .bv-section-head p, .ballot .bv-confirm-copy > p, .ballot .bv-notice p { margin: .55rem 0 0; color: var(--muted); line-height: 1.52; }
.ballot .bv-text-link, .ballot .bv-card-link, .ballot .bv-refresh, .ballot .bv-notes a, .ballot .bv-admin a {
  color: #254540; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .23em;
  text-decoration-color: #9caca7;
}
.ballot .bv-text-link { flex: none; }
.ballot .bv-text-link:hover, .ballot .bv-card-link:hover, .ballot .bv-refresh:hover { text-decoration-color: currentColor; }
.ballot .bv-options { display: block; min-inline-size: 0; width: 100%; padding: 0; margin: 0; border: 0; }
.ballot .bv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
.ballot .bv-form { margin: 0; padding: 0; background: transparent; border: 0; }
.ballot .bv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ballot .bv-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0;
  padding: clamp(1.1rem, 2vw, 1.55rem); background: white; border: 1px solid var(--line); border-radius: 1.15rem;
}
.ballot .bv-card:has(input:checked) { background: #f6fce9; border-color: #657f41; box-shadow: inset 0 0 0 1px #657f41; }
.ballot .bv-identity { display: flex; gap: 1rem; align-items: center; }
.ballot .bv-avatar {
  --tile: #e1efc9; --letter: #35562a; position: relative; flex: 0 0 3.75rem;
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem;
  border-radius: 1.05rem; background: var(--tile); color: var(--letter);
}
.ballot .bv-tint-1 { --tile: #e4ecd6; --letter: #3a553d; }
.ballot .bv-tint-2 { --tile: #dcebe6; --letter: #254d49; }
.ballot .bv-tint-3 { --tile: #dfe9ed; --letter: #354e5c; }
.ballot .bv-avatar > span { font-size: 1.8rem; line-height: 1; }
.ballot .bv-avatar img { width: 100%; height: 100%; border-radius: inherit; }
.ballot .bv-photo { object-fit: cover; }
.ballot .bv-logo { object-fit: contain; background: #fff; padding: .2rem; }
.ballot .bv-avatar .bv-seal { position: absolute; right: -.22rem; bottom: -.18rem; width: 1.7rem; height: 1.7rem; object-fit: contain; background: #fff; border: 2px solid #fff; border-radius: 50%; }
.ballot .bv-name { min-width: 0; }
.ballot .bv-name p { margin: 0 0 .18rem; color: var(--muted); font-size: .875rem; line-height: 1.3; }
.ballot .bv-name h3 { margin: 0; color: var(--ink); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ballot .bv-description {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #43565b; margin: 1.05rem 0 1rem; line-height: 1.5; overflow-wrap: anywhere;
}
.ballot .bv-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid #e1e7e2; }
.ballot .bv-card .bv-select { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .55rem .85rem; min-height: 2.75rem; font-size: .9375rem; font-weight: 700; line-height: 1.15; color: var(--ink); background: #f4f6f1; border: 1px solid #d5dfd3; border-radius: .68rem; cursor: pointer; }
.ballot .bv-select input { margin: 0; padding: 0; width: 1.05rem; height: 1.05rem; min-height: 0; accent-color: #36502b; cursor: pointer; }
.ballot .bv-select:has(input:checked) { background: var(--lime); border-color: var(--lime); }
.ballot .bv-checked, .ballot .bv-select:has(input:checked) .bv-unchecked { display: none; }
.ballot .bv-select:has(input:checked) .bv-checked { display: inline; }
.ballot .bv-count { margin-inline-start: auto; color: #5a686b; font-size: .875rem; white-space: nowrap; }
.ballot .bv-confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); margin-top: 1.75rem; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid #cdd9ce; border-radius: 1.15rem; background: #e9efe6; }
.ballot .bv-confirm-copy { max-width: 25rem; }
.ballot .bv-confirm h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.ballot .bv-confirm .bv-selection { display: inline-block; margin-top: 1.25rem; padding: .5rem .85rem; border-radius: .5rem; background: #d5e5c8; color: #28412c; font-weight: 700; }
.ballot [hidden] { display: none !important; }
.ballot .bv-fields { min-width: 0; }
.ballot .bv-challenge { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; }
.ballot .bv-challenge img { display: block; width: min(11.5rem, 100%); height: auto; border: 1px solid #c1cfc3; border-radius: .5rem; background: #fff; }
.ballot .bv-code-label { display: block; margin: 1rem 0 .35rem; color: var(--ink); font-weight: 700; }
.ballot .bv-code { display: block; width: 100%; max-width: 16rem; padding: .55rem .85rem; height: 2.9rem; margin: 0; border: 1px solid #8a9b91; border-radius: .55rem; background: white; color: var(--ink); font: 600 1.25rem/1.2 Arial, sans-serif; letter-spacing: .24em; }
.ballot .bv-consent { display: flex; gap: .7rem; align-items: flex-start; margin: 1.15rem 0; font-size: .875rem; line-height: 1.5; }
.ballot .bv-consent a { color: #214e40; text-decoration: underline; text-underline-offset: .18em; }
.ballot .bv-consent input { flex: 0 0 auto; margin: .08rem 0 0; width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: #36502b; }
.ballot .bv-submit { display: block; width: 100%; min-height: 3.1rem; border: 0; border-radius: .65rem; background: var(--lime); color: var(--night); font: 700 1rem/1.25 Arial, sans-serif; cursor: pointer; }
.ballot .bv-submit:hover { background: #b7eb5f; }
.ballot .bv-fine { margin: .55rem 0 0; color: #53645a; font-size: .875rem; }
.ballot .bv-notice { padding: 1.3rem 1.5rem; margin: 0 0 1.5rem; background: #e1edce; border-radius: .85rem; }
.ballot .bv-notice h2 { font-size: 1.5rem; }
.ballot .bv-notes, .ballot .bv-admin { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-top: 1.3rem; }
.ballot .bv-notes p { font-size: .875rem; color: var(--muted); max-width: 47rem; margin: 0; }
.ballot .bv-admin { justify-content: flex-start; }
.ballot :focus-visible { outline: 3px solid #486e34; outline-offset: 3px; }

@media (max-width: 700px) {
  .ballot .bv-wrap { width: calc(100% - 2.25rem); }
  .ballot .bv-hero-inner {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: 'kicker kicker' 'title title' 'lead award' 'meta meta';
    gap: .75rem .7rem; align-items: center; padding-block: 1.65rem 1.5rem;
  }
  .ballot .bv-hero-copy { display: contents; }
  .ballot .bv-kicker { grid-area: kicker; margin: 0; }
  .ballot .bv-hero h1 { grid-area: title; font-size: clamp(2.45rem, 9.5vw, 3.6rem); }
  .ballot .bv-lead { grid-area: lead; margin: 0; font-size: 1rem; line-height: 1.44; }
  .ballot .bv-award { grid-area: award; width: min(100%, 13rem); }
  .ballot .bv-meta { grid-area: meta; margin: 0; font-size: .875rem; gap: .3rem .55rem; }
  .ballot .bv-section-head { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .ballot .bv-grid { grid-template-columns: 1fr; gap: .8rem; }
  .ballot .bv-content { padding-block: 1.75rem; }
  .ballot .bv-confirm { grid-template-columns: 1fr; gap: 1.1rem; }
  .ballot .bv-notes { align-items: flex-start; flex-direction: column; }
  .ballot .bv-section-head p { margin-top: .3rem; }
}
@media (max-width: 360px) {
  .ballot .bv-card-actions { gap: .35rem .65rem; }
  .ballot .bv-wrap { width: calc(100% - 1.75rem); }
}
@media (max-width: 360px) {
  .ballot .bv-meta { display: grid; gap: .15rem; }
  .ballot .bv-meta i { display: none; }
}

/* Keep the signed-in portal menu within the ballot's programme header. */
body:has(main.ballot) .kd-cc-header:has(> #rd-account-menu) {
  display: grid;
  grid-template-columns: minmax(1.25rem, 1fr) minmax(0, 65rem) auto minmax(1.25rem, 1fr);
  align-items: center;
}
body:has(main.ballot) .kd-cc-header:has(> #rd-account-menu) > .kd-cc-top {
  grid-column: 2; grid-row: 1; width: 100%; margin: 0; padding-inline: 0;
}
body:has(main.ballot) .kd-cc-header:has(#rd-account-menu a[href="/admin/company-management/"]) > #rd-admin-entry { display: none !important; }
body:has(main.ballot) .kd-cc-header > #rd-account-menu {
  grid-column: 3; grid-row: 1; width: auto !important; margin: 0 0 0 .75rem !important;
  z-index: 20;
}
body:has(main.ballot) .kd-cc-header > #rd-account-menu > summary {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .5rem .85rem; background: #192b31; color: #e4edeb;
  border: 1px solid #43575b; border-radius: .65rem; font: 700 .875rem/1.2 Arial, sans-serif;
}
body:has(main.ballot) #rd-account-menu > .rd-account-panel {
  left: auto; right: 0; max-width: min(22rem, calc(100vw - 2.5rem));
}
@media (max-width: 720px) {
  body:has(main.ballot) .kd-cc-header:has(> #rd-account-menu) { display: block; }
  body:has(main.ballot) .kd-cc-header:has(> #rd-account-menu) > .kd-cc-top { padding-inline: 1.15rem; }
  body:has(main.ballot) .kd-cc-header > #rd-account-menu { width: fit-content !important; margin: 0 1.15rem .65rem auto !important; }
  body:has(main.ballot) .kd-cc-header:has(.cc-header-toggle[aria-expanded="false"]) > #rd-account-menu { display: none !important; }
}
