/* ═══ Award nomination form (awards-form.js) ═════════════════════════
   Clean and calm: plain numbered steps, category tiles with line icons,
   a round photo by the name, a live preview card on the right.
   Red is kept for what is chosen and for the send button. */
#awardsNomOverlay.af .modal { max-width: 1020px !important; width: min(1020px, calc(100vw - 32px)); }
#awardsNomOverlay.af .af-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#awardsNomOverlay.af .af-shell > .form-body { overflow: visible !important; max-height: none !important; padding: 22px 28px 26px !important; }
.af-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; }

/* steps: a small numbered circle and a plain title */
#awardsNomOverlay.af .se-sec.af-step { display: flex; align-items: center; gap: 10px; margin: 30px 0 16px; padding-top: 22px; color: #fff;
  font-family: inherit; font-size: 1.02rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
#awardsNomOverlay.af .se-sec.af-step.se-sec-first { margin-top: 4px; padding-top: 0; }
.af-step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); font-size: .8rem; font-weight: 700; color: #fff; flex: none; }

/* labels: quieter, so the inputs lead */
#awardsNomOverlay.af .field > label, #awardsNomOverlay.af .field-label-row label { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.82); text-transform: none; letter-spacing: 0; }

/* name row with the round photo */
.af-who { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.af-photo { position: relative; flex: none; width: 84px; height: 84px; margin-top: 2px; border-radius: 50%; padding: 0; cursor: pointer; overflow: hidden;
  border: 1.5px dashed rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: rgba(255,255,255,.7); transition: border-color .18s, background .18s, color .18s; }
.af-photo:hover { border-color: rgba(255,92,122,.75); color: #fff; background: rgba(200,16,46,.08); }
.af-photo:focus-visible { outline: 2px solid #ff5c7a; outline-offset: 3px; }
.af-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; }
.af-photo-empty small { font-size: .7rem; font-weight: 600; }
.af-photo.has { border: 2px solid rgba(255,255,255,.9); }
.af-photo.has .af-photo-empty { display: none; }
.af-who .af-name { flex: 1; min-width: 0; margin: 0 !important; }

/* already nominated */
.af-dup { margin-top: 10px; padding: 11px 13px; border-radius: 12px; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.88);
  background: rgba(244,176,0,.08); border: 1px solid rgba(244,176,0,.32); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.af-dup b { color: #fff; }
.af-dup-btn { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .8rem; color: #fff; background: #c8102e; }
.af-dup-btn:disabled { opacity: .6; }

/* category tiles */
.af-cat-field { margin-bottom: 18px !important; }
.af-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.af-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 92px; padding: 14px 14px 12px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: rgba(255,255,255,.86);
  font: inherit; font-size: .84rem; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s, color .16s; }
.af-tile:hover { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.af-tile:focus-visible { outline: 2px solid #ff5c7a; outline-offset: 2px; }
.af-tile-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); transition: background .16s, color .16s; }
.af-tile-ok { position: absolute; top: 10px; right: 10px; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #c8102e; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .16s, transform .16s; }
.af-tile.on { border-color: rgba(255,92,122,.85); background: rgba(200,16,46,.12); color: #fff; }
.af-tile.on .af-tile-ic { background: linear-gradient(135deg, #C8102E, #ff3a5c); color: #fff; }
.af-tile.on .af-tile-ok { opacity: 1; transform: none; }

/* length guide */
.af-guide { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .78rem; color: rgba(255,255,255,.6); }
.af-guide svg { vertical-align: -2px; }
.af-guide-bar { flex: none; width: 70px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.af-guide-bar i { display: block; height: 100%; background: rgba(255,255,255,.45); border-radius: 4px; transition: width .2s ease; }
.af-guide.ok { color: #3DCB83; }
.af-guide.ok .af-guide-bar i { background: #3DCB83; }

/* preview column */
.af-side { position: relative; padding: 22px 24px 26px; border-left: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.015); }
.af-side-in { position: sticky; top: 0; }
.af-prev-label { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.af-card { border-radius: 18px; overflow: hidden; background: #1d1417; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.af-card-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #4a1220 0%, #1d1417 70%); }
.af-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af-card-ini { font-size: 2.4rem; font-weight: 800; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.af-card-body { padding: 14px 16px 16px; }
.af-card-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
.af-card-cat.on { background: rgba(200,16,46,.16); color: #ff8098; }
.af-card-name { margin-top: 10px; font-size: 1.15rem; font-weight: 800; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.af-card-name.empty, .af-card-why.empty { color: rgba(255,255,255,.35); }
.af-card-loc { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: .8rem; color: rgba(255,255,255,.6); }
.af-card-why { margin: 10px 0 0; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.af-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); font-size: .74rem; color: rgba(255,255,255,.5); }
.af-prev-note { margin: 12px 2px 0; font-size: .74rem; line-height: 1.5; color: rgba(255,255,255,.45); }

/* tablets and phones: one column, the preview after the form */
@media (max-width: 900px) {
  #awardsNomOverlay.af .af-shell { grid-template-columns: 1fr; }
  .af-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .af-side-in { position: static; }
  .af-card { max-width: 340px; }
  .af-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #awardsNomOverlay.af .af-shell > .form-body { padding: 16px 16px 18px !important; }
  .af-side { padding: 16px; }
  .af-who { gap: 12px; }
  .af-photo { width: 68px; height: 68px; }
  .af-tile { min-height: 78px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .af-tile, .af-tile-ok, .af-photo, .af-guide-bar i { transition: none; } }

/* light theme */
[data-theme="light"] #awardsNomOverlay.af .se-sec.af-step { color: #18090C; }
[data-theme="light"] .af-step-n { background: #f4eeef; border-color: rgba(0,0,0,.1); color: #18090C; }
[data-theme="light"] #awardsNomOverlay.af .field > label, [data-theme="light"] #awardsNomOverlay.af .field-label-row label { color: #4a3438; }
[data-theme="light"] .af-photo { border-color: rgba(0,0,0,.22); background: #faf7f7; color: #6b5458; }
[data-theme="light"] .af-tile { background: #fff; border-color: rgba(0,0,0,.1); color: #2a1a1e; }
[data-theme="light"] .af-tile-ic { background: #f4eeef; color: #4a3438; }
[data-theme="light"] .af-tile.on { background: #fff1f3; border-color: #C8102E; color: #18090C; }
[data-theme="light"] .af-guide { color: #6b5458; }
[data-theme="light"] .af-guide-bar { background: rgba(0,0,0,.08); }
[data-theme="light"] .af-side { background: #fbf8f8; border-color: rgba(0,0,0,.07); }
[data-theme="light"] .af-prev-label, [data-theme="light"] .af-prev-note { color: #8a7a7e; }
[data-theme="light"] .af-dup { color: #3a2a12; }
[data-theme="light"] .af-dup b { color: #18090C; }
.af-dup[hidden], .af-card-loc[hidden], .af-photo img[hidden] { display: none !important; }

/* the header and the send button always stay in view; only the middle scrolls */
#awardsNomOverlay.af .modal { display: flex !important; flex-direction: column !important; max-height: calc(100dvh - 40px) !important; overflow: hidden !important; }
#awardsNomOverlay.af .modal > .modal-header, #awardsNomOverlay.af .modal > .modal-footer { flex: none !important; }
#awardsNomOverlay.af .modal > .modal-footer { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.07); }
@media (max-width: 600px) { #awardsNomOverlay.af .modal { max-height: calc(100dvh - 12px) !important; } }

.af-rights { margin: 8px 0 0; font-size: .74rem; line-height: 1.45; color: rgba(255,255,255,.45); }
[data-theme="light"] .af-rights { color: #8a7a7e; }
