/* Weekly voting pages (voting app). 2026-10-05, Rockman.EXE. Mobile-first, RTL. */
.vt { max-width: 1100px; margin: 0 auto; padding: 18px 14px 40px; font-family: var(--mainfont), Tajawal, sans-serif; color: var(--black); }
body.dark-mode .vt { color: #e8f0ec; }
.vt h1 { font-size: 24px; font-weight: 800; margin: 6px 0 4px; }
.vt h2 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.vt .muted { color: var(--textgrey); font-size: 14px; }
.vt .crumbs { font-size: 13px; color: var(--textgrey); margin-bottom: 6px; }
.vt .crumbs a { color: var(--green-dark); text-decoration: none; }

/* category tabs */
.vt-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; }
.vt-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: #eef6f4; color: var(--black); text-decoration: none; font-weight: 700; font-size: 14px; border: 2px solid transparent; }
.vt-tab.on { border-color: var(--green-dark); background: #dff1ec; }
.vt-tab .ok { color: var(--green-dark); }
body.dark-mode .vt-tab { background: #1c2c27; color: #e8f0ec; }

/* home cards */
.vt-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 760px) { .vt-cards { grid-template-columns: repeat(3, 1fr); } }
.vt-card { display: block; border-radius: 16px; padding: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #219478, #61aaaa); box-shadow: 0 6px 18px rgba(6,25,20,.15); }
.vt-card.male { background: linear-gradient(135deg, #2e6f9e, #61aaaa); }
.vt-card.female { background: linear-gradient(135deg, #b63d43, #e09a81); }
.vt-card .ic { font-size: 34px; }
.vt-card .t { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.vt-card .s { font-size: 13px; opacity: .9; }
.vt-card .cta { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.22); padding: 7px 14px; border-radius: 999px; font-weight: 700; }
.vt-card.done { filter: saturate(.55); }

/* options grid */
.vt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .vt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .vt-grid { grid-template-columns: repeat(5, 1fr); } }
.vt-opt { position: relative; display: block; cursor: pointer; border-radius: 14px; overflow: hidden; background: #fff;
  border: 3px solid #e3ece9; transition: border-color .15s, transform .15s; }
body.dark-mode .vt-opt { background: #16241f; border-color: #2a3f38; }
.vt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vt-opt .img { aspect-ratio: 3/4; background: #eef3f1 center/cover no-repeat; }
.vt-opt .nm { padding: 7px 8px 9px; font-size: 13.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.vt-opt .an { display: block; font-weight: 500; font-size: 12px; color: var(--textgrey); }
.vt-opt .chk { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: 2px solid #c9d8d3; display: flex; align-items: center; justify-content: center; font-size: 16px; color: transparent; }
.vt-opt input:checked ~ .chk { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.vt-opt:has(input:checked) { border-color: var(--green-dark); transform: translateY(-2px); }
.vt-opt input:focus-visible ~ .chk { outline: 3px solid #f4c464; }
.vt-opt.disabled { opacity: .45; cursor: not-allowed; }
.vt-zoom { position: absolute; bottom: 52px; right: 8px; background: rgba(6,25,20,.65); color: #fff; border: 0; border-radius: 8px;
  font-size: 13px; padding: 3px 7px; cursor: zoom-in; }

/* sticky counter + submit */
/* 2026-10-08: the site's main.css sets `html, body { height: 100vh; overflow-x: hidden }`, which turns
   <body> into a 100vh-tall scroll box. With the sticky bar, everything below the first screen was
   clipped into a big white box on mobile. Vote pages only: let the page grow normally. */
html, body { height: auto !important; min-height: 100%; overflow-x: clip !important; overflow-y: visible !important; }
.vt-bar { position: sticky; bottom: 0; z-index: 50; margin: 14px -14px 0; padding: 10px 14px; background: rgba(255,255,255,.96);
  box-shadow: 0 -4px 14px rgba(6,25,20,.1); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.dark-mode .vt-bar { background: rgba(15,26,23,.96); }
.vt-count { font-weight: 800; font-size: 15px; }
.vt-btn { background: var(--green-dark); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font-size: 16px; font-weight: 800; cursor: pointer; }
.vt-btn[disabled] { opacity: .45; cursor: not-allowed; }
.vt-btn.ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark); }

/* about-you step */
.vt-about { margin-top: 18px; display: grid; gap: 14px; }
.vt-q { background: #f6faf8; border-radius: 14px; padding: 12px; }
body.dark-mode .vt-q { background: #16241f; }
.vt-q .lbl { font-weight: 800; margin-bottom: 8px; }
.vt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-pills label { cursor: pointer; }
.vt-pills input { position: absolute; opacity: 0; }
.vt-pills span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 2px solid #cfe0da; font-weight: 700; font-size: 14px; }
.vt-pills input:checked + span { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.vt-pills input:focus-visible + span { outline: 3px solid #f4c464; }
.vt-captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-captcha input[type=text] { border: 2px solid #cfe0da; border-radius: 10px; padding: 9px 12px; font-size: 16px; width: 150px; }

/* messages */
.vt-err { background: #fdecea; color: #8a1c1c; border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 700; }
.vt-err ul { margin: 0; padding: 0 18px; }
.vt-ok { background: #e6f5ef; border-radius: 16px; padding: 22px; text-align: center; margin: 14px 0; }
body.dark-mode .vt-ok { background: #16302a; }
.vt-ok .big { font-size: 44px; }
.vt-ok .t { font-size: 21px; font-weight: 800; margin: 6px 0; }
.vt-info { background: #fff8e6; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
body.dark-mode .vt-info { background: #2b2614; }

/* results */
.vt-res { display: grid; gap: 8px; }
.vt-row { display: grid; grid-template-columns: 34px 52px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 10px;
  border: 1px solid #e3ece9; }
body.dark-mode .vt-row { background: #16241f; border-color: #2a3f38; }
.vt-row .rk { font-size: 18px; font-weight: 900; text-align: center; }
.vt-row.r1 { border: 2px solid #e2b544; } .vt-row.r1 .rk { color: #c99a1d; }
.vt-row .th { width: 52px; height: 52px; border-radius: 10px; background: #eef3f1 center/cover no-repeat; }
.vt-row .nm { font-weight: 800; font-size: 14.5px; }
.vt-row .an { font-size: 12px; color: var(--textgrey); }
.vt-row .bar { height: 7px; border-radius: 4px; background: #e3ece9; margin-top: 5px; overflow: hidden; }
.vt-row .bar i { display: block; height: 100%; background: var(--green-dark); }
.vt-row .v { font-weight: 800; text-align: left; white-space: nowrap; }
.vt-row .v small { display: block; font-weight: 500; color: var(--textgrey); font-size: 11.5px; }
.vt-3col { display: grid; gap: 18px; }
@media (min-width: 960px) { .vt-3col { grid-template-columns: repeat(3, 1fr); } }
.vt-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vt-links a { padding: 6px 12px; border-radius: 999px; background: #eef6f4; color: var(--black); text-decoration: none; font-weight: 700; font-size: 13px; }
body.dark-mode .vt-links a { background: #1c2c27; color: #e8f0ec; }

/* image lightbox */
.vt-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.82); display: none; align-items: center; justify-content: center; padding: 20px; }
.vt-lb.on { display: flex; }
.vt-lb img { max-width: 92vw; max-height: 82vh; border-radius: 12px; border: 3px solid #fff; }
.vt-lb .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 800; }

/* The voting pages are the vote: hide the site-wide "vote now" banner/ribbon here
   (it covered the breadcrumb on phones). */
.vote-banner, .bottom-voteBanner { display: none !important; }

/* Phone: all 3 category tabs fit on one line (third tab was cut off at 390px). */
@media (max-width: 600px) {
  .vt-tabs { gap: 6px; overflow-x: visible; }
  .vt-tab { flex: 1 1 0; justify-content: center; padding: 8px 6px; font-size: 12.5px; text-align: center; line-height: 1.25; }
}
/* the site styles every <nav> dark; the category tabs are a <nav> too */
nav.vt-tabs { background: transparent !important; height: auto !important; position: static !important; box-shadow: none !important; }
