/* Approved selector styling, 2026-10-27. Mobile Option 4; desktop Option 5.
   Native site elements and dynamically generated electoral areas are reused. */
#citySwitch.vifElectionChoiceSelector,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector{
  display:flex;align-items:center;gap:20px;margin:18px 0 16px;
  box-sizing:border-box;width:100%;padding:13px 20px;
  border:1px solid #c99577;background:#e6b69c;
  border-radius:999px;box-shadow:none;
}
#citySwitch.vifElectionChoiceSelector:empty,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector:empty,
#citySwitch.vifElectionChoiceSelector[hidden]{display:none!important}
#citySwitch.vifElectionChoiceSelector::before,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector::before{
  content:"STEP 1 · CHOOSE AN ELECTION";display:block;
  flex:0 0 180px;max-width:180px;font-size:14px;font-weight:900;
  letter-spacing:.015em;line-height:1.3;color:#462718;
  margin:0 5px 0 0;padding:0;border:0;text-shadow:none;
}
#citySwitch.vifElectionChoiceSelector .areaGroup,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaGroup,
#citySwitch.vifElectionChoiceSelector .areaGroup+.areaGroup,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaGroup+.areaGroup{
  display:flex;align-items:center;justify-content:flex-start;
  flex:1 1 0;flex-wrap:wrap;gap:8px;
  width:auto;min-width:0;max-width:100%;
  padding:0;margin:0;border:0;border-radius:0;background:transparent;
}
#citySwitch.vifElectionChoiceSelector .areaLabel,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaLabel{
  display:block;flex:0 0 auto;margin:0 4px 0 0;
  font-size:10px;font-weight:900;letter-spacing:.05em;
  text-transform:uppercase;color:#7b503b;white-space:normal;
}
#citySwitch.vifElectionChoiceSelector .citybtn,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .citybtn{
  margin:0;padding:9px 13px;max-width:100%;
  border:1px solid #cda990;border-radius:999px;
  background:#fffaf2;color:#7e4631;
  font-size:12px;font-weight:800;line-height:1.35;
  white-space:normal;text-align:left;cursor:pointer;
}
#citySwitch.vifElectionChoiceSelector .citybtn.active,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .citybtn.active{
  background:#85442c;border-color:#85442c;color:#fff;
}
#citySwitch.vifElectionChoiceSelector .citybtn:focus-visible,
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .citybtn:focus-visible{
  outline:3px solid #95583d;outline-offset:3px;
}
/* Only reveal election context while postal confirmation remains required.
   Candidate cards, profile content and picks stay locked. */
body.vifElectionChoicePending .heroGrid{display:grid!important}
body.vifElectionChoicePending .voteStrip{display:flex!important}
body.vifElectionChoicePending #neighbourhoodBox.show{display:block!important}
body.vifElectionChoicePending .postalWelcomePhoto{display:none!important}
body.vifElectionChoicePending #citySwitch{display:none!important}
body.vifElectionChoicePending #compare,
body.vifElectionChoicePending #background,
body.vifElectionChoicePending #raceTabs,
body.vifElectionChoicePending #raceRule,
body.vifElectionChoicePending .candidateSearchRow{display:none!important}
/* Desktop: bold rounded rectangle; center the actual Municipal + Provincial
   groups as a unit to the right of the fixed Step 1 label. */
@media(min-width:951px){
  #citySwitch.vifElectionChoiceSelector,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector{
    position:relative;display:flex;align-items:center;
    justify-content:center;flex-wrap:wrap;
    column-gap:20px;row-gap:12px;
    padding:16px 20px 16px 235px;min-height:66px;border-radius:17px;
  }
  #citySwitch.vifElectionChoiceSelector::before,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector::before{
    position:absolute;top:50%;left:20px;transform:translateY(-50%);
    flex:none;width:185px;max-width:185px;
    margin:0;padding:0;border:0;text-align:left;
  }
  #citySwitch.vifElectionChoiceSelector .areaGroup,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaGroup,
  #citySwitch.vifElectionChoiceSelector .areaGroup+.areaGroup,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaGroup+.areaGroup{
    flex:0 1 auto;width:max-content;max-width:100%;
    min-width:0;justify-content:center;gap:9px;margin:0;
  }
  #citySwitch.vifElectionChoiceSelector .citybtn,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .citybtn{
    flex:0 1 auto;min-width:0;max-width:100%;
  }
}
@media(min-width:851px) and (max-width:950px){
  #citySwitch.vifElectionChoiceSelector,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector{
    flex-wrap:wrap;border-radius:17px;
  }
  #citySwitch.vifElectionChoiceSelector::before,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector::before{
    flex:0 0 100%;max-width:none;margin:0 0 2px;
  }
}
/* Mobile: approved bold compact (Option 4). */
@media(max-width:850px){
  body.vifElectionChoicePending .heroGrid{display:flex!important}
  #citySwitch.vifElectionChoiceSelector,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector{
    gap:22px;padding:15px 20px;border-radius:999px;
  }
}
@media(max-width:740px){
  #citySwitch.vifElectionChoiceSelector,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector{
    flex-wrap:wrap;gap:12px;border-radius:17px;
  }
  #citySwitch.vifElectionChoiceSelector::before,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector::before{
    flex:0 0 100%;max-width:none;margin:0 0 2px;
  }
}
@media(max-width:650px){
  #citySwitch.vifElectionChoiceSelector,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector{
    flex-direction:column;align-items:stretch;
    gap:12px;padding:14px 15px;border-radius:16px;
  }
  #citySwitch.vifElectionChoiceSelector .areaGroup,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaGroup,
  #citySwitch.vifElectionChoiceSelector .areaGroup+.areaGroup,
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector .areaGroup+.areaGroup{
    flex:0 0 auto;width:100%;gap:8px;
  }
}

/* 2026-10-29 approved Option B: choices above the original picture.
   Never hide the picture after an election is selected; retain all existing
   contextual election details, voting-location/reminder strips and profiles. */
#citySwitch.vifElectionChoiceSelector[hidden]{display:none!important}
body.vifNationalAreaSelected #citySwitch{display:none!important}
body.vifNationalAreaSelected .postalWelcomePhoto{
  display:block!important;
  margin-top:16px;
  margin-bottom:20px;
}
body.vifNationalAreaSelected .heroArt{display:none!important}
body.vifNationalAreaSelected .heroGrid{
  grid-template-columns:minmax(0,1fr);
  display:grid;
}
/* Keep the same picture above the full election guide on small screens. */
@media(max-width:850px){
  body.vifNationalAreaSelected .heroGrid{display:flex;flex-direction:column}
}
#postalResults.vifElectionChoiceSelector .postalHelpTitle{
  display:block;flex:0 1 auto;
  margin:0 4px 0 0;padding:0;border:0;background:transparent;
  font:700 19px/1.2 Georgia,serif;
  color:#482b21;
}
#postalResults.vifElectionChoiceSelector .vifArchivedGuideNote{
  flex:1 1 100%;font-size:11px;line-height:1.4;color:#754731;
  text-align:center;
}

/* Saskatchewan uses the same above-photo Option B choice and existing
   landscape; no fabricated BC candidate guide or ballot assignment. */
#postalResults.vifPlainPostalChoices .vifSkLookupFallback{
  flex:1 1 100%;display:flex;flex-direction:column;gap:9px;min-width:0;
}
#postalResults.vifPlainPostalChoices .vifSkLookupFallback label{
  font-size:13px;color:#482b21;font-weight:800;
}
#postalResults.vifPlainPostalChoices .vifSkLookupInput{
  background:#fffaf3;color:#482b21;max-width:360px;width:100%;
  padding:10px 12px;border:1px solid #c99577;border-radius:9px;font:inherit;
}
#postalResults.vifPlainPostalChoices .vifSkSearchResults{
  display:flex;gap:8px;flex-wrap:wrap;
}
#postalResults.vifPlainPostalChoices .vifSkChoiceHelp{
  flex:1 1 100%;margin:0;font-size:12px;color:#704a39;
}
.vifSkCommunityResult{margin:22px 0 28px;color:#482b21}
.vifSkAreaKicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#9f4b2c}
.vifSkAreaTitle{font:700 clamp(28px,4vw,42px)/1.16 Georgia,serif;margin:6px 0 16px;color:#472b20}
.vifSkVotingStrip{background:#f4dfc8;border-radius:18px;padding:16px 20px;font-size:14px}
.vifSkVotingStrip p{margin:8px 0 11px;font-size:13px;line-height:1.5}
.vifSkLinkRow{display:flex;gap:10px;flex-wrap:wrap}
.vifSkOfficialLink{
  color:#934528;background:#fff9f2;border:1px solid #ce9678;
  border-radius:999px;padding:9px 14px;font-size:12px;font-weight:800;text-decoration:none;
}
/* Owner-approved Saskatchewan division selection: no empty candidate scaffolding
   before choice or for an off-cycle division. Active contests retain original
   Quick/Full, search, cards, and saved-picks interface. */
body.vifSkNoContest #raceTabs,
body.vifSkNoContest #raceRule,
body.vifSkNoContest .candidateSearchRow,
body.vifSkNoContest #removedTray,
body.vifSkNoContest #compare,
body.vifSkNoContest #background{display:none!important}
/* Named acclaimed councillors retain their normal site profile display,
   but do not become My Picks/ballot choices. */
body.vifSkAcclaimed #raceRule,
body.vifSkAcclaimed #compare .vifCandidateActions,
body.vifSkAcclaimed #compare .vifMirrorBallotControls,
body.vifSkAcclaimed #background .addBtn{display:none!important}
.vifSkResearchStatus{
  margin:18px 0 24px;padding:20px 22px;
  border:1px solid #e3cbb7;border-left:4px solid #ba5b39;
  border-radius:12px;background:#fffaf3;
}
.vifSkResearchStatus.vifSkAcclaimedNotice{background:#f7e9d8}
.vifSkResearchStatus .vifSkNoticeEyebrow{
  color:#ae593a;font-size:11px;font-weight:850;letter-spacing:.08em;
  text-transform:uppercase;
}
.vifSkResearchStatus h3{font:700 24px Georgia,serif;margin:11px 0 9px}
.vifSkResearchStatus p{font-size:13px;line-height:1.6;color:#6e5344;margin:0 0 12px}
.vifSkResearchStatus .vifSkNextDate{
  margin:15px 0 0;padding-top:11px;
  border-top:1px solid #ebd9c9;color:#795849;
}
.vifSkResearchStatus .vifSkNextDate strong{color:#41291d}
.vifSkResearchStatus .vifSkOfficialLink{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:17px;padding:12px 18px;color:#fff;background:#b6502f;
  border-color:#b6502f;
}
.vifSkResearchStatus .vifSkOfficialLink:hover{background:#984328}
@media(max-width:650px){
  .vifSkAreaTitle{font-size:28px}
  .vifSkLinkRow{flex-direction:column}
  .vifSkOfficialLink{text-align:center}
}

/* Owner-approved Saskatchewan off-cycle notice: text-only Festival treatment.
   This is separate from the unchanged Step 1 selector below it. */
.vifSkUpcomingNotice{
  box-sizing:border-box;width:100%;margin:18px 0 0;padding:21px 27px 23px;
  border:1px solid #dfb090;border-radius:20px;background:#fff6ed;
  color:#44281d;box-shadow:none;
}
.vifSkUpcomingNotice .vifSkUpcomingEyebrow{
  margin:0 0 5px;color:#b84f2a;font-size:12px;font-weight:850;
  letter-spacing:.085em;line-height:1.4;text-transform:uppercase;
}
.vifSkUpcomingNotice .vifSkUpcomingHeading{
  margin:0 0 7px;font:700 clamp(23px,2.5vw,30px)/1.2 Georgia,"Times New Roman",serif;
  color:#422519;
}
.vifSkUpcomingNotice .vifSkUpcomingSummary{
  margin:0;font-size:14px;line-height:1.6;color:#442a20;
}
.vifSkUpcomingNotice strong{font-weight:800;color:#3d241b}
.vifSkUpcomingNotice .vifSkUpcomingDates{
  display:flex;align-items:center;flex-wrap:wrap;gap:12px 26px;margin-top:17px;
}
.vifSkUpcomingNotice .vifSkUpcomingDate{
  display:flex;align-items:center;gap:10px;min-width:0;
  font-size:13px;line-height:1.55;
}
.vifSkUpcomingNotice .vifSkUpcomingPill{
  flex:none;padding:4px 11px;border-radius:999px;
  font-size:12px;line-height:1.35;font-weight:800;
}
.vifSkUpcomingNotice .vifSkUpcomingProvincial{background:#b94e2a;color:#fff}
.vifSkUpcomingNotice .vifSkUpcomingFederal{background:#f5d1bf;color:#65311f}
@media(max-width:650px){
  .vifSkUpcomingNotice{padding:18px 19px 20px;border-radius:16px}
  .vifSkUpcomingNotice .vifSkUpcomingDates{
    flex-direction:column;align-items:stretch;gap:12px;
  }
  .vifSkUpcomingNotice .vifSkUpcomingDate{align-items:flex-start;gap:9px}
}

/* Owner-approved Saskatchewan reserve-information notice spacing (desktop/mobile).
   Scoped to reserve notices: the other 2028 off-cycle notice is unchanged. */
.vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDates {
  display:flex; flex-direction:column; align-items:flex-start; gap:13px;
}
.vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDate {
  display:flex; align-items:center; gap:10px; min-width:0; width:100%;
}
.vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDateCopy {
  min-width:0; line-height:1.65;
}
.vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDateCopy .vifSkOfficialLink {
  display:inline-flex; align-items:center; justify-content:center;
  box-sizing:border-box; vertical-align:middle; white-space:nowrap;
  padding:5px 10px; margin-left:12px;
  font-size:11px; line-height:1.35; font-weight:800;
  border-radius:999px;
}
@media(max-width:650px){
  .vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDates {align-items:stretch;gap:18px;}
  .vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDate {flex-direction:column;align-items:flex-start;gap:7px;}
  .vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDateCopy {display:block;width:100%;}
  .vifSkUpcomingNotice.vifSkReserveNotice .vifSkUpcomingDateCopy .vifSkOfficialLink {
    display:table; margin:9px 0 0; padding:7px 11px;
  }
}

/* Keep all seven source-backed RM choices in the existing peach Step 1 bar.
   They wrap naturally; never shrink the labels until unreadable or add an
   overflow Browse button when all seven can be shown directly. */
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector.vifSkSevenRmChoices .areaGroup{
  flex:1 1 100%;width:100%;max-width:100%;
  justify-content:center;gap:8px;
}
#postalResults.vifPlainPostalChoices.vifElectionChoiceSelector.vifSkSevenRmChoices .citybtn{
  padding:8px 11px;font-size:11px;line-height:1.4;
}
@media(max-width:650px){
  #postalResults.vifPlainPostalChoices.vifElectionChoiceSelector.vifSkSevenRmChoices .areaGroup{
    justify-content:flex-start;
  }
}

/* Approved Uranium City exception: same warm, text-only 2028 notice component.
   The extra line of local-governance context needs more space under its title,
   and three election types wrap without crowding at tablet/mobile widths. */
.vifSkUpcomingNotice.vifSkUraniumNotice{
  padding:25px 29px 26px;
}
.vifSkUraniumNotice .vifSkUpcomingHeading{
  margin-bottom:12px;
}
.vifSkUraniumNotice .vifSkUpcomingSummary{
  line-height:1.7;
}
.vifSkUraniumNotice .vifSkUpcomingDates{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:23px;row-gap:16px;margin-top:23px;
}
.vifSkUraniumNotice .vifSkUpcomingDate{
  align-items:flex-start;gap:10px;
}
.vifSkUraniumNotice .vifSkUpcomingDateCopy{min-width:0}
.vifSkUraniumNotice .vifSkUpcomingLocal{
  background:#c56a3e;color:#fff;
}
@media(max-width:1050px){
  .vifSkUraniumNotice .vifSkUpcomingDates{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:740px){
  .vifSkUpcomingNotice.vifSkUraniumNotice{
    padding:20px 20px 22px;
  }
  .vifSkUraniumNotice .vifSkUpcomingDates{
    grid-template-columns:1fr;
    gap:15px;margin-top:19px;
  }
}
