/* Page layout around the design-system components (ds/bundle.css), taken from the design system's homepage.
   Values come from ds/tokens.css. */
.page { position: relative; z-index: 1; }
.ca-header { top: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night-000); }
.wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--space-5); }
.ballot-head { display: flex; flex-direction: column; gap: var(--space-3); padding-block: var(--space-7) var(--space-6); }
.ballot-head h2 { margin: 0; font-size: 44px; line-height: 52px; font-weight: 400; text-wrap: balance; }
.ballot-head p.lede { margin: 0; color: var(--ink-muted); font-size: 18px; line-height: 28px; font-weight: 300; max-width: 640px; }
.nom-index { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.nom-index a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 14px; line-height: 20px; min-height: 40px; transition: border-color .2s, color .2s; white-space: nowrap; }
.nom-index a:hover { border-color: var(--gold-deep); color: var(--ink); }
.nom-index a.is-done { border-color: var(--gold-deep); color: var(--gold-bright); }
.nom-index .num { font-variant-numeric: tabular-nums; color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.ca-category { scroll-margin-top: calc(var(--header-height) + 16px); }
.back-row { display: flex; justify-content: center; margin-top: var(--space-2); }
.gala-band { border-top: 1px solid var(--hairline); padding-block: var(--space-8); display: flex; flex-direction: column; gap: var(--space-8); }
.cd-block { text-align: center; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.sealed { text-align: center; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--night-100); padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.sealed h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 400; }
.sealed p { margin: 0; color: var(--ink-muted); max-width: 520px; }
.sealed .ca-icon { color: var(--gold); }
/* EN · RU switch, placed inside the design system's header */
.lang-slot { display: flex; }
.lang-switch { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 2px; }
.lang-switch button { background: none; border: 0; color: var(--ink-muted); font: inherit; font-size: 12px; letter-spacing: .08em; min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-pill); cursor: pointer; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--night-000); }
.lang-switch button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
/* Who can be nominated, under each nomination's description */
.criteria { margin-top: var(--space-3); }
.criteria-label { margin: 0 0 6px; color: var(--gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.criteria ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.criteria li { position: relative; padding-left: 18px; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.criteria li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); }
/* The sealed card for nominations revealed later */
.secret-nom { margin-top: var(--space-6); text-align: center; border: 1px dashed var(--gold-deep); border-radius: var(--radius-lg); background: var(--night-100); padding: var(--space-7) var(--space-5); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.secret-nom .ca-icon { color: var(--gold); }
.secret-nom .ca-eyebrow { margin: var(--space-2) 0 0; }
.secret-nom h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 400; text-wrap: balance; }
.secret-nom p:last-child { margin: 0; color: var(--ink-muted); }
/* Suggestion round: one form per nomination */
.suggest-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.suggest-form .suggest-reason, .suggest-form > .ca-error, .suggest-actions { grid-column: 1 / -1; }
.suggest-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.suggest-note { font-size: 14px; }
.suggest-mine { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--gold-deep); border-radius: var(--radius-lg); background: var(--night-100); }
.suggest-mine-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.suggest-link { color: var(--gold-bright); font-size: 14px; word-break: break-all; }
.suggest-why { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; white-space: pre-line; overflow-wrap: anywhere; }
.preview-flag { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: calc(var(--z-dialog) - 1); background: var(--gold); color: var(--night-000); font-size: 13px; padding: 6px 14px; border-radius: var(--radius-pill); box-shadow: 0 4px 16px rgba(0,0,0,.4); white-space: nowrap; }
.footer-wrap.no-email .ca-footer a[href^="mailto:"] { display: none; }
.human-check { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 50%; transform: translateX(-50%); z-index: calc(var(--z-dialog) + 1); }
.human-check:empty { display: none; }
.noscript { position: relative; z-index: 1; color: var(--ink); text-align: center; padding: var(--space-8) var(--space-4); }
@media (max-width: 759px) {
  .wrap { padding-inline: var(--space-4); }
  .ballot-head h2 { font-size: 32px; line-height: 40px; }
  .ballot-head p.lede { font-size: 16px; line-height: 24px; }
  .nom-index { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); padding-bottom: 4px; scrollbar-width: none; }
  .gala-band { padding-block: var(--space-7); gap: var(--space-7); }
  .ca-category { scroll-margin-top: 76px; }
  .suggest-form { grid-template-columns: 1fr; }
  .lang-switch button { min-width: 34px; padding: 0 8px; }
  .preview-flag { bottom: 88px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
}
/* The smallest phones (320px): the four countdown units are slightly wider than the screen at the design's size. */
@media (max-width: 360px) {
  .ca-countdown { gap: var(--space-1); }
  .ca-cd-unit { min-width: 48px; }
}
.round-clock { padding-top: var(--space-7); }
/* Before voting opens the public has nothing to sign in for (the team uses /?signin) */
.page.no-signin .ca-header .ca-desk > .ca-btn, .page.no-signin .ca-sheet-panel > .ca-btn-block { display: none; }

/* Sponsors: the primary sponsor (first in SPONSORS) on top, clearly larger; the co-sponsor under it, 10% smaller. */
.ca-sponsor-row { flex-direction: column; align-items: center; gap: var(--space-5); }
.ca-sponsor:first-child img { max-width: 320px; }
.ca-sponsor:nth-child(2) img { max-width: 198px; }
.ca-sponsor-link { display: inline-block; border-radius: var(--radius-sm, 6px); opacity: .92; transition: opacity .2s; }
.ca-sponsor-link:hover { opacity: 1; }
.ca-sponsor-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 6px; } /* co-sponsor 10% smaller than the default 220px */
@media (max-width: 759px) { .ca-sponsor:first-child img { max-width: 230px; } .ca-sponsor:nth-child(2) img { max-width: 135px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Page not found (404.html): plain, no scripts. */
.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-6) var(--space-4); text-align: center; }
.not-found img { width: 240px; height: auto; margin-bottom: var(--space-5); }
.not-found h1 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 400; color: var(--ink); }
.not-found p { margin: 0 0 var(--space-4); color: var(--ink-muted); }

/* Ballot: names only, no photo or logo tile (owner, Nov 21). */
.ca-category .ca-card-media { display: none; }
/* The optional second line (e.g. a blogger's real name under the nickname): name and line stacked, button on the right. */
.ca-category .ca-dense .ca-card-body, .ca-category .ca-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: 2px; align-items: center; }
.ca-category .ca-card-body h3 { grid-column: 1; }
.ca-category .ca-card-body p { grid-column: 1; display: block; margin: 0; font-size: 14px; line-height: 19px; color: var(--ink-muted); -webkit-line-clamp: unset; }
.ca-category .ca-card-body > .ca-btn, .ca-category .ca-card-body > .ca-card-final { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
