/* ==========================================================
   Global Politics — article.css (compatible with styles.css)
   Uses theme vars: --panel, --panel2, --text, --muted, --border, --link
   Avoids conflicts with global .meta class

   FIXES INCLUDED
   - iOS / Facebook in-app browser tap-safety
   - Sticky/header anchor offsets
   - Hero image non-stretched and non-cropped
   - Floating vote button positioning
   - Mobile TOC styling
   - Live world vote map styling
   - "Your country vs global" comparison styling
   - Mobile reading-order fixes so article content appears first
   - Bottom related cards and right-rail related list use distinct styles
========================================================== */


/* ==========================================================
   GLOBAL SAFETY
========================================================== */
[hidden]{
  display: none !important;
}


/* ==========================================================
   0) TAP-SAFETY (iOS / Facebook in-app browser)
========================================================== */
#siteHeader::before,
#siteHeader::after,
.topbar::before,
.topbar::after,
.siteHeader::before,
.siteHeader::after,
.header::before,
.header::after,
.hero::before,
.hero::after{
  pointer-events: none !important;
}

.menuBackdrop.isHidden,
.mobileBackdrop.isHidden,
.overlay.isHidden{
  pointer-events: none !important;
}

a,
button,
[role="button"],
.copyPillBtn,
.scrollNote,
.voteBtn,
.relatedCard{
  touch-action: manipulation;
}

body::before, body::after,
main::before, main::after,
header::before, header::after,
.articlePage::before, .articlePage::after,
.hero::before, .hero::after,
.cover::before, .cover::after,
.card::before, .card::after,
.rail::before, .rail::after,
.panel::before, .panel::after{
  pointer-events: none !important;
}

a,
button,
input,
select,
textarea,
label,
summary{
  pointer-events: auto;
}

.voteFab,
#stickyVoteBtn{
  pointer-events: auto;
}

.overlay,
.backdrop,
.modalBackdrop{
  pointer-events: none;
}

.overlay.isOpen,
.backdrop.isOpen,
.modalBackdrop.isOpen{
  pointer-events: auto;
}


/* ============================================================
   ACCESSIBILITY: SKIP LINK
============================================================ */
.skip-link,
a[href="#mainContent"]{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus,
a[href="#mainContent"]:focus{
  position: fixed;
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
  z-index: 5000;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b1f3a;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  text-decoration: none;
  font-weight: 800;
}


/* ==========================================================
   1) PAGE CONTAINER HELPERS
========================================================== */
.container.article{
  max-width: 860px;
  margin: 16px auto;
  padding: 0 16px 56px;
}


/* ==========================================================
   1.5) PRIMARY ARTICLE LAYOUT
========================================================== */
.articleShell{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.articleShell > section,
.articleMain,
.articleAside{
  min-width: 0;
}

.articleAside .sticky{
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
}


/* ==========================================================
   2) ARTICLE HEADER ELEMENTS
========================================================== */
.article .kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 4px 0 10px;
}

.article .meta,
.article .articleMeta{
  margin: 8px 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article .meta .dot,
.article .articleMeta .dot{
  opacity: 0.6;
}

.article .meta a,
.article .articleMeta a{
  color: var(--link);
  text-decoration: none;
}

.article .meta a:hover,
.article .articleMeta a:hover{
  text-decoration: underline;
}


/* ==========================================================
   3) TYPOGRAPHY / RHYTHM
========================================================== */
.article h1{
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
}

.article h2{
  margin: 26px 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-size: 1.35rem;
}

.article h3{
  margin: 18px 0 8px;
  line-height: 1.25;
  font-size: 1.1rem;
}

.article p{
  margin: 10px 0;
  line-height: 1.7;
  color: var(--text);
}

.article .lede{
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 12px 0 18px;
  color: var(--text);
  opacity: 0.95;
}

.article ul,
.article ol{
  margin: 10px 0 10px 20px;
}

.article li{
  margin: 6px 0;
  line-height: 1.65;
}

.article hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}


/* ==========================================================
   4) CALLOUTS
========================================================== */
.article .callout{
  border: 1px solid var(--border);
  background: var(--panel2);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
}

.article .callout h3{
  margin: 0 0 6px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article .callout p{
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.article .callout.debate{
  border-left: 5px solid rgba(155, 188, 255, 0.55);
  padding-left: 12px;
}


/* ==========================================================
   5) SOURCES LIST
========================================================== */
.article .sources{
  margin: 10px 0 0;
  padding-left: 18px;
}

.article .sources li{
  margin: 6px 0;
  color: var(--muted);
}

.article .sources li a{
  color: var(--link);
  text-decoration: none;
}

.article .sources li a:hover{
  text-decoration: underline;
}


/* ==========================================================
   6) CTA BLOCK
========================================================== */
.article .cta{
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
}

.article .cta p{
  margin: 0;
  line-height: 1.6;
}


/* ==========================================================
   7) COMMENTS
========================================================== */
.article .commentsMount{
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(230,240,255,0.95)
  );
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.article .commentsMount > .card,
.article .commentsMount > .panel,
.article .commentsMount > .comments,
.article .commentsMount > .commentsInner,
.article .commentsMount > .commentsPanel{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.article .commentsMount h3,
.article .commentsMount h2{
  color: var(--brand-navy);
}

.article .commentsMount .muted{
  color: rgba(10, 25, 55, 0.72);
}

.article .commentsMount .comment{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(20,40,80,0.14);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
}

.article .commentMeta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(10, 25, 55, 0.72);
  margin-bottom: 8px;
}

.article .commentActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.article .commentActions button,
.article .commentActions .btn{
  border: 1px solid rgba(20,40,80,0.18);
  background: rgba(255,255,255,0.75);
  color: rgba(10, 25, 55, 0.9);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}

.article .commentActions button:hover,
.article .commentActions .btn:hover{
  opacity: 0.9;
}

.article .commentsMount textarea,
.article .commentsMount input[type="text"],
.article .commentsMount input[type="search"],
.article .commentsMount input[type="email"]{
  background: #ffffff !important;
  background-image: none !important;
  color: #0b1f3a !important;
  border: 1px solid rgba(20,40,80,0.18);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.article .commentsMount textarea::placeholder,
.article .commentsMount input::placeholder{
  color: rgba(10,25,55,0.45);
}

.article .commentsMount textarea:focus,
.article .commentsMount input:focus{
  outline: none;
  border-color: rgba(31, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.18);
}


/* ==========================================================
   8) RESPONSIVE SPACING
========================================================== */
@media (max-width: 820px){
  .container.article{
    padding: 0 14px 44px;
  }
}


/* ==========================================================
   9) PRINT
========================================================== */
@media print{
  #header,
  #footer,
  #regionMenu,
  .gpPositionBar,
  .commentsMount,
  .articleAside,
  .stickyVoteBtn,
  .voteFab{
    display: none !important;
  }

  body{
    background: #fff !important;
    color: #111 !important;
  }

  .article .callout,
  .article .cta,
  .article .comment,
  .countryVotesBlock,
  .countryVotesSection,
  #countryVotesSection,
  .worldVoteMapBlock,
  .countryCompareBlock,
  .articleHeader,
  #articleContent.prose{
    border: 1px solid #bbb !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}


/* ==========================================================
   10) ARTICLE CARD / BODY
========================================================== */
#articleContent.prose{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

#articleBody{
  max-width: 720px;
  margin: 0 auto;
}

#articleBody.article-body{
  width: 100%;
}


/* ==========================================================
   11) HERO / COVER IMAGE
========================================================== */
#articleHero{
  border: 1px solid var(--border);
  background: #071428;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 14px;
}

#articleHero .articleHeroImg{
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
}

.articleHeader{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 0 0 14px;
  box-sizing: border-box;
}


/* ==========================================================
   12) ON-PAGE TOC
========================================================== */
.onPageToc{
  display: grid;
  gap: 8px;
}

.onPageToc a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  color: var(--link);
  text-decoration: none;
}

.onPageToc a:hover{
  background: var(--panel2);
  border-color: var(--border);
}


/* ==========================================================
   12.5) MOBILE TOC
========================================================== */
.tocMobile{
  display: none;
}

@media (max-width: 900px){
  .tocMobile{
    display: block;
    margin: 18px 0 0;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  }

  .tocMobileBtn{
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(
      135deg,
      rgba(255,255,255,0.95),
      rgba(230,240,255,0.95)
    );
    border: 0;
    border-bottom: 1px solid rgba(155, 188, 255, 0.18);
    color: var(--brand-navy);
    font-weight: 900;
    letter-spacing: 0.2px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
  }

  .tocMobileBtn:focus-visible{
    outline: 2px solid rgba(31, 78, 216, 0.35);
    outline-offset: 3px;
  }

  .tocMobileList{
    display: none;
    padding: 10px 12px 12px;
    background: var(--panel);
  }

  #tocMobile.isOpen .tocMobileList{
    display: block;
  }

  .tocMobileList a{
    display: block;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--link);
    text-decoration: none;
    touch-action: manipulation;
    pointer-events: auto;
  }

  .tocMobileList a:hover{
    background: var(--panel2);
    border-color: var(--border);
  }

  .tocMobileList a:active{
    transform: translateY(1px);
  }
}


/* ==========================================================
   13) RIGHT RAIL HEADERS
========================================================== */
.article .sticky > h3,
.article .sticky > .railHeader{
  color: var(--brand-navy);
  text-align: center;
  padding: 12px 14px;
  margin: 0 0 14px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(230,240,255,0.95)
  );
  border: 1px solid rgba(155, 188, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.article .sticky > button.railHeader,
.article .sticky > button.asideJumpBtn{
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1.1;
  width: 100%;
  cursor: pointer;
}

.article .sticky > button.railHeader{
  margin-top: 18px;
  margin-bottom: 14px;
}

.article .sticky > button.railHeader:hover,
.article .sticky > button.asideJumpBtn:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.article .sticky > button.railHeader:active,
.article .sticky > button.asideJumpBtn:active{
  transform: translateY(1px);
}

.article .sticky > button.railHeader:focus-visible,
.article .sticky > button.asideJumpBtn:focus-visible{
  outline: 2px solid rgba(31, 78, 216, 0.35);
  outline-offset: 3px;
}


/* ==========================================================
   14) DISCUSSION BLOCK
========================================================== */
.discussionTop{
  margin: 28px 0 32px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}


/* ==========================================================
   15) DEBATE CALLOUT LAYOUT
========================================================== */
#debateCallout .debateHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#debateCallout .debateBack{
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

#debateCallout .debateBack:hover{
  background: var(--panel2);
  color: var(--text);
}

#debateCallout .debateQuestion{
  margin: 0;
}

#debateCallout .debateActions{
  margin-top: 12px;
}


/* ==========================================================
   16) VOTE UI — Agree / Disagree / Uncertain
   Backend values remain:
   yes = Agree
   no = Disagree
   unsure = Uncertain

   NOTES
   - This section controls the article-page vote buttons inside #debateCallout.
   - If article vote buttons ever look faded again, check:
     1) #debateCallout .voteBtn
     2) .voteBtn.voteBtn-agree / disagree / uncertain
     3) .voteBtn:disabled
     4) .voteStat / .voteMeter / .voteFill
========================================================== */
#debateCallout .voteRow{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

/* ----------------------------------------------------------
   BASE ARTICLE VOTE BUTTON
   Stronger contrast, less washed-out appearance
---------------------------------------------------------- */
#debateCallout .voteBtn{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 999px;

  border: 2px solid transparent;
  background: #ffffff;
  color: #0f172a;

  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;

  box-shadow:
    0 8px 18px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.65);

  opacity: 1;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

#debateCallout .voteBtn:hover{
  transform: translateY(-1px);
  text-decoration: none;
}

#debateCallout .voteBtn:active{
  transform: translateY(0);
  opacity: 0.98;
}

#debateCallout .voteBtn:focus-visible{
  outline: 2px solid rgba(31,78,216,0.38);
  outline-offset: 2px;
}

#debateCallout .voteBtn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ----------------------------------------------------------
   AGREE BUTTON
---------------------------------------------------------- */
#debateCallout .voteBtn.voteBtn-agree{
  background: linear-gradient(180deg, #ecfdf3 0%, #dcfce7 100%);
  border-color: #86efac;
  color: #166534;
}

#debateCallout .voteBtn.voteBtn-agree:hover{
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #4ade80;
  box-shadow:
    0 10px 22px rgba(22,163,74,0.16),
    0 0 0 3px rgba(34,197,94,0.10);
}

#debateCallout .voteBtn.voteBtn-agree.is-selected,
#debateCallout .voteBtn.voteBtn-agree.selected{
  background: linear-gradient(180deg, #d9fbe5 0%, #bbf7d0 100%);
  border-color: #22c55e;
  color: #14532d;
  box-shadow:
    0 12px 24px rgba(22,163,74,0.18),
    0 0 0 4px rgba(34,197,94,0.14);
}

/* ----------------------------------------------------------
   DISAGREE BUTTON
---------------------------------------------------------- */
#debateCallout .voteBtn.voteBtn-disagree{
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fda4af;
  color: #b91c1c;
}

#debateCallout .voteBtn.voteBtn-disagree:hover{
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
  border-color: #fb7185;
  box-shadow:
    0 10px 22px rgba(239,68,68,0.16),
    0 0 0 3px rgba(239,68,68,0.10);
}

#debateCallout .voteBtn.voteBtn-disagree.is-selected,
#debateCallout .voteBtn.voteBtn-disagree.selected{
  background: linear-gradient(180deg, #ffe0e3 0%, #fecdd3 100%);
  border-color: #ef4444;
  color: #991b1b;
  box-shadow:
    0 12px 24px rgba(239,68,68,0.18),
    0 0 0 4px rgba(239,68,68,0.14);
}

/* ----------------------------------------------------------
   UNCERTAIN BUTTON
---------------------------------------------------------- */
#debateCallout .voteBtn.voteBtn-uncertain{
  background: linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
  border-color: #cbd5e1;
  color: #374151;
}

#debateCallout .voteBtn.voteBtn-uncertain:hover{
  background: linear-gradient(180deg, #f1f5f9 0%, #dbe2ea 100%);
  border-color: #94a3b8;
  box-shadow:
    0 10px 22px rgba(100,116,139,0.14),
    0 0 0 3px rgba(148,163,184,0.10);
}

#debateCallout .voteBtn.voteBtn-uncertain.is-selected,
#debateCallout .voteBtn.voteBtn-uncertain.selected{
  background: linear-gradient(180deg, #eef2f7 0%, #dbe2ea 100%);
  border-color: #64748b;
  color: #1f2937;
  box-shadow:
    0 12px 24px rgba(100,116,139,0.16),
    0 0 0 4px rgba(148,163,184,0.14);
}

.voteComment{
  margin-left: auto;
}

/* ----------------------------------------------------------
   RESULTS WRAP
---------------------------------------------------------- */
.voteResults{
  margin-top: 14px;
}

/* ----------------------------------------------------------
   RESULT CARDS LAYOUT
   Works now, and also supports progress-bar upgrade later
---------------------------------------------------------- */
.voteBar{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 760px){
  .voteBar{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .voteBar{
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   RESULT CARD
---------------------------------------------------------- */
.voteStat{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.96),
    rgba(245,248,252,0.96)
  );
  border: 1px solid rgba(20,40,80,0.10);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  min-width: 0;
}

.voteStatTop{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.voteStat strong{
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 900;
  color: #0b1f3a;
  letter-spacing: -0.03em;
}

.voteStat .muted{
  font-size: 0.98rem;
  color: #4b5563;
  font-weight: 700;
}

/* ----------------------------------------------------------
   PROGRESS BAR UPGRADE READY
   Add markup later:
   <div class="voteMeter"><span class="voteFill ..." style="width:..."></span></div>
---------------------------------------------------------- */
.voteMeter{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148,163,184,0.18);
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.08);
}

.voteFill{
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.voteFill-agree{
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.voteFill-disagree{
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.voteFill-uncertain{
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.voteFill-total{
  background: linear-gradient(90deg, #1d4ed8, #1e40af);
}

/* ----------------------------------------------------------
   HINT / STATUS
---------------------------------------------------------- */
.voteHint{
  margin-top: 12px;
}

.voteHintAlert{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,240,240,0.95), rgba(255,228,228,0.95));
  border: 1px solid rgba(180,35,35,0.35);
  color: #b42323;
  font-weight: 800;
}

.voteHintAlert a{
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.voteHintAlert a:hover{
  opacity: 0.85;
}

.voteHintPending{
  color: #b42323;
  font-weight: 700;
}

/* ============================================================
   ARTICLE – Scroll Engagement Note + Copy pill
============================================================ */
.articleActions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.articleActions > *{
  min-width: 0;
}

.scrollNote{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(230,240,255,0.95)
  );
  color: var(--brand-navy);
  border: 1px solid rgba(20,40,80,0.15);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.scrollNote:hover{
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(245,248,255,0.98),
    rgba(218,232,255,0.98)
  );
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.scrollNote:active{
  transform: translateY(1px);
}

.scrollNote:focus-visible{
  outline: 2px solid rgba(31,78,216,0.35);
  outline-offset: 2px;
}

.scrollArrows{
  font-size: 1rem;
  color: var(--brand-gold);
  letter-spacing: 2px;
  animation: bounceDown 1.6s infinite;
}

.scrollText{
  white-space: nowrap;
}

@keyframes bounceDown{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(4px); }
}

.copyPillBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(230,240,255,0.95)
  );
  color: var(--brand-navy);
  border: 1px solid rgba(20,40,80,0.15);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  user-select: none;
  max-width: 100%;
}

.copyPillBtn:hover{
  background: linear-gradient(
    135deg,
    rgba(245,248,255,0.98),
    rgba(218,232,255,0.98)
  );
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.copyPillBtn:active{
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.copyPillBtn:focus-visible{
  outline: 2px solid rgba(31,78,216,0.35);
  outline-offset: 2px;
}

.copyIcon{
  font-size: 1rem;
  line-height: 1;
  color: var(--brand-gold);
}

.copyText{
  white-space: normal;
}

.copyPillBtn.isCopied{
  border-color: rgba(34,197,94,0.35);
}

.copyPillBtn.isCopyFail{
  border-color: rgba(180,35,35,0.35);
}

@media (max-width: 520px){
  .articleActions{
    justify-content: center;
  }

  .copyPillBtn,
  .scrollNote{
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================
   17) STICKY HEADER ANCHOR OFFSETS
========================================================== */
:root{
  --anchor-offset: 120px;
  --safe-bottom: env(safe-area-inset-bottom);
  --vote-fab-bottom: 88px;
  --vote-fab-gap: 16px;
}

#comments{
  scroll-margin-top: 90px;
}

#debateMount{
  scroll-margin-top: var(--anchor-offset);
}

.articleMain h2,
.articleMain h3{
  scroll-margin-top: var(--anchor-offset);
}

.stickyVoteBtn{
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom, 0px));
  z-index: 1200;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 220px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  cursor: pointer;
  user-select: none;
  transition:
    transform .12s ease,
    opacity .12s ease,
    background .12s ease,
    left 900ms cubic-bezier(.2,.8,.2,1),
    right 900ms cubic-bezier(.2,.8,.2,1);
}

.stickyVoteBtn:hover{
  transform: translateX(-50%) translateY(-1px);
}

.stickyVoteBtn:active{
  transform: translateX(-50%) translateY(0);
  opacity: .95;
}

@media (max-width: 520px){
  .stickyVoteBtn{
    bottom: calc(12px + var(--safe-bottom, 0px));
    padding: 10px 14px;
    max-width: 180px;
  }
}


/* ==============================================
   Auto-build Teaser Button
============================================== */
.cmsAutoTeaserWrap{
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.cmsAutoTeaserBtn{
  appearance: none;
  border: none;
  background: #0b1f3a;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.cmsAutoTeaserBtn:hover{
  background: #122a4f;
}

.cmsAutoTeaserBtn:active{
  transform: translateY(1px);
}

.cmsAutoTeaserBtn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,31,58,0.25);
}


/* ==========================================================
   18) MAIN RETENTION LOOP
   Bottom section = richer editorial cards
   Right rail = compact reading-list style
========================================================== */
.articleNext{
  margin: 18px 0 10px;
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(20,40,80,0.12);
  background: linear-gradient(
    180deg,
    rgba(247,250,255,0.98),
    rgba(239,244,251,0.98)
  );
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.articleNextTitle{
  margin: 0 0 8px;
  color: var(--brand-navy);
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.articleNextSub{
  margin: 0 0 18px;
  color: rgba(10,25,55,0.72);
  font-size: 1.02rem;
  line-height: 1.55;
}

.relatedCards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* =========================
   Bottom editorial cards
========================= */
.relatedCard--bottom{
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(20,40,80,0.12);
  text-decoration: none;
  color: var(--brand-navy);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
  overflow: hidden;
}

.relatedCard--bottom:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border-color: rgba(155,188,255,0.38);
}

.relatedCard--bottom:focus-visible{
  outline: 2px solid rgba(31,78,216,0.35);
  outline-offset: 2px;
}

.relatedCard--bottom .rcThumb{
  float: left;
  width: 112px;
  height: 112px;
  margin: 0 16px 8px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20,40,80,0.10);
  background: rgba(10,25,55,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.relatedCard--bottom .rcThumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.relatedCard--bottom .rcDate{
  margin: 0 0 8px;
  color: rgba(10,25,55,0.58);
  font-size: 0.92rem;
  line-height: 1.2;
}

.relatedCard--bottom .rcTitle{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  font-size: 1.1rem;
  color: #102544;
}

.relatedCard--bottom .rcExcerpt{
  margin: 0 0 12px;
  color: rgba(10,25,55,0.72);
  font-size: 0.97rem;
  line-height: 1.55;
}

.relatedCard--bottom .rcTags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  clear: both;
}

.relatedCard--bottom .rcTags .pill{
  background: #ffffff;
  border: 1px solid rgba(20,40,80,0.12);
  color: rgba(10,25,55,0.74);
}

.relatedCard--bottom::after{
  content: "";
  display: block;
  clear: both;
}

/* =========================
   Right rail related list
========================= */
.relatedRailList{
  display: grid;
  gap: 18px;
}

.gpRailItem{
  display: block;
  text-decoration: none;
  color: var(--brand-navy);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20,40,80,0.10);
}

.gpRailItem:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.gpRailItem:hover{
  opacity: 0.92;
}

.gpRailRow{
  display: grid;
  grid-template-columns: 108px minmax(160px, 1fr);
  gap: 12px;
  align-items: start;
}

.gpRailThumbCol{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.gpRailThumb{
  width: 108px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(20,40,80,0.10);
  background: rgba(10,25,55,0.06);
}

.gpRailThumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.gpRailDate{
  font-size: 0.8rem;
  color: rgba(10,25,55,0.55);
  line-height: 1.2;
  text-align: center;
  width: 108px;
}

.gpRailText{
  min-width: 160px;
  width: auto;
  align-self: start;
  padding-top: 0;
  margin-top: -1px;
}

.gpRailTitle{
  display: block;
  margin: 0;
  color: #102544;
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1180px){
  .relatedCards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .relatedCards{
    grid-template-columns: 1fr;
  }

  .relatedCard--bottom .rcThumb{
    width: 96px;
    height: 96px;
  }
}

/* Mobile fix for right rail */
@media (max-width: 900px){
  .gpRailRow{
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .gpRailThumb{
    width: 92px;
    height: 62px;
  }

  .gpRailDate{
    width: 92px;
    font-size: 0.78rem;
  }

  .gpRailText{
    min-width: 0;
    width: 100%;
  }

  .gpRailTitle{
    font-size: 0.98rem;
    line-height: 1.2;
  }
}

@media (max-width: 520px){
  .articleNext{
    padding: 18px 16px;
  }

  .articleNextTitle{
    font-size: 1.55rem;
  }

  .relatedCard--bottom{
    padding: 14px;
  }

  .relatedCard--bottom .rcThumb{
    width: 88px;
    height: 88px;
    margin-right: 12px;
  }

  .relatedCard--bottom .rcTitle{
    font-size: 1rem;
  }

  .relatedCard--bottom .rcExcerpt{
    font-size: 0.92rem;
  }

  .relatedCard--bottom .rcDate{
    font-size: 0.88rem;
  }
}

/* ==========================================================
   TRUST & IDENTITY MICRO-BLOCK
========================================================== */
.gpTrustCard{
  margin: 14px 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(155,188,255,0.25);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(230,240,255,0.95)
  );
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.gpTrustTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gpTrustTitle{
  margin: 0;
  color: var(--brand-navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.gpTrustPills{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gpTrustPill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(10,25,55,0.78);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(20,40,80,0.14);
}

.gpTrustText{
  margin: 0 0 8px;
  color: rgba(10,25,55,0.82);
  line-height: 1.55;
}

.gpTrustFine{
  margin: 0;
  color: rgba(10,25,55,0.66);
  font-size: 0.92rem;
  line-height: 1.45;
}


/* ==========================================================
   Floating Vote Button
========================================================== */
.voteFab{
  position: fixed;
  left: 50%;
  bottom: calc(var(--vote-fab-bottom) + var(--safe-bottom, 0px));
  transform: translateX(-50%);
  z-index: 9999;
  will-change: transform, left, right;
  pointer-events: auto;
  transition:
    transform 2200ms cubic-bezier(0.25, 0.10, 0.25, 1.00),
    left      2200ms cubic-bezier(0.25, 0.10, 0.25, 1.00),
    right     2200ms cubic-bezier(0.25, 0.10, 0.25, 1.00);
}

.voteFab.isRight{
  left: auto;
  right: var(--vote-fab-gap);
  transform: translateX(0);
}

.voteFab.isReturning{
  transition-duration: 3800ms;
}

@media (prefers-reduced-motion: reduce){
  .voteFab{
    transition: none;
  }
}

@media (max-width: 520px){
  :root{
    --vote-fab-gap: 12px;
    --vote-fab-bottom: 76px;
  }
}

#stickyVoteBtn.isRight,
.stickyVoteBtn.isRight{
  left: auto !important;
  right: var(--vote-fab-gap) !important;
  transform: translateX(0) !important;
}

#stickyVoteBtn.isReturning,
.stickyVoteBtn.isReturning{
  transition-duration: 2200ms !important;
}


/* ==========================================================
   19) COUNTRY VOTING BLOCK
========================================================== */
#countryVotesSection,
.countryVotesSection,
.countryVotesBlock{
  margin: 18px 0 8px;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

.countryVotesHead{
  margin-bottom: 14px;
}

#countryVotesTitle,
.countryVotesTitle{
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0b1f3a;
}

.countryVotesSub{
  margin: 0;
  color: #5f6f86;
  line-height: 1.5;
  font-size: .96rem;
}

#countryVoteResults,
.countryVoteResults{
  min-height: 40px;
}

#countryVoteResults .muted,
.countryVoteResults .muted{
  color: #5f6f86;
}

.countryVoteList{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.countryVoteCard{
  padding: 14px;
  border: 1px solid #d8e1ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(11,31,58,.05);
}

.countryVoteTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.countryVoteName{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0b1f3a;
}

.countryVoteFlag{
  font-size: 1.1rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.countryVoteMeta{
  font-size: .82rem;
  font-weight: 800;
  color: #7b8aa0;
  letter-spacing: .04em;
}

.countryVoteLead{
  margin-bottom: 10px;
  color: #31435d;
  font-size: .95rem;
}

.countryVoteBars{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.countryVoteMiniStat{
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f8fc;
  color: #20324d;
  font-size: .9rem;
  font-weight: 700;
}

/* ----------------------------------------------------------
   MAP INTERACTION (linked to world map clicks)
   Highlight country card when selected from map
   JS: renderWorldVoteMap → click handler
---------------------------------------------------------- */
.countryVoteCard.isHighlighted{
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47,111,237,.14), 0 12px 28px rgba(11,31,58,.08);
  transform: translateY(-1px);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.countryVoteCard{
  cursor: pointer;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.countryVoteCard:hover,
.countryVoteCard:focus-visible{
  border-color: #bfd2e8;
  box-shadow: 0 10px 24px rgba(11,31,58,.08);
  transform: translateY(-1px);
}

.countryVoteCard:focus-visible{
  outline: 2px solid rgba(47,111,237,.22);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   COUNTRY FILTER MODE
   Added for map-driven country selection
---------------------------------------------------------- */
.countryVoteFilterBar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d8e4f1;
  border-radius: 14px;
  background: #ffffff;
}

.countryVoteFilterLabel{
  color: #31435d;
  font-size: .95rem;
  font-weight: 700;
}

.countryVoteResetBtn{
  appearance: none;
  border: 1px solid #c8d7ea;
  background: #f5f8fd;
  color: #0b1f3a;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.countryVoteResetBtn:hover,
.countryVoteResetBtn:focus-visible{
  background: #edf4fd;
  border-color: #2f6fed;
  transform: translateY(-1px);
}

.countryVoteResetBtn:focus-visible{
  outline: 2px solid rgba(47,111,237,.22);
  outline-offset: 2px;
}

/* ==========================================================
   20) LIVE WORLD VOTE MAP
   MAP WORK AREA / MAINTENANCE NOTE
   ----------------------------------------------------------
   This is the main section to update when we work on:
   - world map container styling
   - country shape interaction
   - country fill colors
   - country dot appearance
   - hover tooltips
   - user-country ring styling
   - map responsiveness
   - future click / filter interactions

   JS counterpart:
   - article.js → renderWorldVoteMap(rows)
   - article.js → renderCountryVotes(rows)

   If the map visuals look wrong, check these first:
   1) .worldVoteMapCard / .worldVoteMapFrame / .worldVoteMapSvg
   2) .worldVoteCountry / voteFill-* / .isActive / .isDimmed
   3) .worldVoteDot / .worldVoteDotCore / .worldVoteDotPulse
   4) .worldVoteTooltip / .worldVoteTooltipTitle / .worldVoteTooltipLine
   5) .worldVoteUserRing
========================================================== */
.worldVoteMapCard,
.worldVoteMapBlock{
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #d8e4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 22px rgba(11,31,58,.04);
}

.worldVoteMapHead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.worldVoteMapTitle{
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 900;
  color: #0b1f3a;
}

.worldVoteMapSub{
  margin: 0;
  color: #607088;
  font-size: .92rem;
  line-height: 1.45;
}

.worldVoteLegend{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.worldVoteLegendItem{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #40536e;
  font-size: .84rem;
  font-weight: 700;
}

.worldVoteLegendDot,
.worldVoteLegendItem .swatch{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(11,31,58,0.14);
}

.worldVoteLegendItem .swatch.yes{ background: #2f6fed; }
.worldVoteLegendItem .swatch.no{ background: #dc4c64; }
.worldVoteLegendItem .swatch.unsure{ background: #d4af37; }
.worldVoteLegendItem .swatch.mixed{ background: #7b8aa0; }

.worldVoteMapFrame{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe6f1;
  background: #eef4fb;
}

.worldVoteMapSvg{
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------
   COUNTRY SHAPES
---------------------------------------------------------- */
.worldVoteCountry{
  fill: #dbe4f0;
  stroke: #bcc9da;
  stroke-width: 0.7;
  transition: fill 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.worldVoteCountry.hasVotes{
  cursor: pointer;
}

.worldVoteCountry.voteFill-none{
  fill: #dbe4f0;
}

.worldVoteCountry.voteFill-yes{
  fill: rgba(47,111,237,.28);
}

.worldVoteCountry.voteFill-no{
  fill: rgba(220,76,100,.28);
}

.worldVoteCountry.voteFill-unsure{
  fill: rgba(212,175,55,.30);
}

.worldVoteCountry.voteFill-mixed{
  fill: rgba(123,138,160,.30);
}

.worldVoteMapCountryShape.isDotOnly{
  fill: transparent !important;
}

.worldVoteCountry.hasVotes:hover,
.worldVoteCountry.hasVotes:focus-visible{
  opacity: 1;
  filter: brightness(.98);
  outline: none;
}

.worldVoteCountry.isDimmed{
  opacity: .34;
}

.worldVoteCountry.isActive{
  opacity: 1;
  filter: drop-shadow(0 0 0.32rem rgba(47,111,237,.22));
}

.worldVoteCountry.isActive.voteFill-yes{
  fill: rgba(47,111,237,.42);
}

.worldVoteCountry.isActive.voteFill-no{
  fill: rgba(220,76,100,.42);
}

.worldVoteCountry.isActive.voteFill-unsure{
  fill: rgba(212,175,55,.44);
}

.worldVoteCountry.isActive.voteFill-mixed{
  fill: rgba(123,138,160,.42);
}

/* ----------------------------------------------------------
   INTERACTIVE COUNTRY DOTS
   Includes filter mode states:
   - .isActive
   - .isDimmed
---------------------------------------------------------- */
.worldVoteDot{
  cursor: pointer;
  outline: none;
  transition: opacity 160ms ease;
}

.worldVoteDotCore,
.worldVoteDotPulse{
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
  transform-origin: center;
  transform-box: fill-box;
}

.worldVoteDotPulse{
  opacity: 0.9;
}

.worldVoteDot:hover .worldVoteDotCore,
.worldVoteDot:focus-visible .worldVoteDotCore{
  transform: scale(1.08);
}

.worldVoteDot:hover .worldVoteDotPulse,
.worldVoteDot:focus-visible .worldVoteDotPulse{
  transform: scale(1.12);
  opacity: 1;
}

.worldVoteDot.isDimmed{
  opacity: 0.28;
}

.worldVoteDot.isDimmed .worldVoteDotCore,
.worldVoteDot.isDimmed .worldVoteDotPulse{
  opacity: 0.5;
}

.worldVoteDot.isActive{
  opacity: 1;
}

.worldVoteDot.isActive .worldVoteDotCore{
  filter: drop-shadow(0 0 0.35rem rgba(47,111,237,.35));
  transform: scale(1.12);
}

.worldVoteDot.isActive .worldVoteDotPulse{
  opacity: 1;
  transform: scale(1.18);
}

.worldVoteDot.isPulsing .worldVoteDotCore{
  animation: worldVoteDotPulseCore 1.1s ease;
}

.worldVoteDot.isPulsing .worldVoteDotPulse{
  animation: worldVoteDotPulseRing 1.1s ease;
}

@keyframes worldVoteDotPulseCore{
  0%   { transform: scale(1.12); }
  35%  { transform: scale(1.32); }
  100% { transform: scale(1.12); }
}

@keyframes worldVoteDotPulseRing{
  0%   { transform: scale(1.18); opacity: 1; }
  35%  { transform: scale(1.55); opacity: .75; }
  100% { transform: scale(1.18); opacity: 1; }
}

/* ----------------------------------------------------------
   TOOLTIP
---------------------------------------------------------- */
.worldVoteTooltip{
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.worldVoteTooltip rect{
  fill: rgba(11, 31, 58, 0.94);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.worldVoteTooltipTitle{
  fill: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.worldVoteTooltipLine{
  fill: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 600;
}

.worldVoteDot:hover .worldVoteTooltip,
.worldVoteDot:focus-visible .worldVoteTooltip{
  opacity: 1;
}

/* ----------------------------------------------------------
   USER COUNTRY RING
---------------------------------------------------------- */
.worldVoteUserRing{
  pointer-events: none;
}

@media (max-width: 700px){
  .worldVoteMapCard,
  .worldVoteMapBlock{
    padding: 14px;
  }

  .worldVoteMapHead{
    gap: 10px;
  }

  .worldVoteLegend{
    width: 100%;
  }
}

/* ============================================================
   WORLD VOTE MAP — REGION LEADERBOARD + CLUSTERS + INSIGHTS
============================================================ */

.worldVoteLeaderboardCard {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.96));
}

.worldVoteLeaderboardHead {
  margin-bottom: 10px;
}

.worldVoteLeaderboardTitle {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.worldVoteLeaderboardSub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.worldVoteLeaderboardStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.worldVoteLeaderboardItem {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.worldVoteLeaderboardLabel {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.worldVoteLeaderboardRegion {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.worldVoteLeaderboardValue {
  font-size: 0.92rem;
  font-weight: 800;
}

.worldVoteRegionsLayer {
  pointer-events: auto;
}

.worldVoteRegionCluster {
  opacity: 0.95;
}

.worldVoteRegionClusterAura {
  opacity: 0.16;
}

.worldVoteRegionClusterCore {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5;
  filter: drop-shadow(0 8px 16px rgba(11, 31, 58, 0.14));
}

.worldVoteRegionClusterValue {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.worldVoteRegionClusterLabel {
  fill: #334155;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.worldVoteInsightCard {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,252,0.92));
}

.worldVoteInsightHead {
  margin-bottom: 10px;
}

.worldVoteInsightTitle {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.worldVoteInsightSub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.worldVoteInsightGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.worldVoteInsightItem {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.worldVoteInsightTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.worldVoteInsightTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.worldVoteInsightRegion {
  font-weight: 800;
  color: #0f172a;
}

.worldVoteInsightLead {
  font-weight: 800;
  text-align: right;
  flex: 0 0 auto;
}

.worldVoteInsightBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.worldVoteInsightBadge-shift {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}

.worldVoteInsightBadge-activity {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}

.worldVoteInsightBadge-uncertain {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
  color: #b45309;
}

.worldVoteInsightBadge-stronger {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.worldVoteInsightBadge-soft,
.worldVoteInsightBadge-calmer,
.worldVoteInsightBadge-neutral {
  background: rgba(100, 116, 139, 0.10);
  border-color: rgba(100, 116, 139, 0.18);
  color: #475569;
}

.worldVoteInsightStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 6px;
}

.worldVoteInsightMeta {
  font-size: 0.84rem;
  color: #64748b;
}

.worldVoteMapRoot[data-map-mode="fill"] .worldVoteRegionsLayer {
  opacity: 0.98;
}

.worldVoteMapRoot[data-map-mode="dots"] .worldVoteRegionsLayer,
.worldVoteMapRoot[data-map-mode="both"] .worldVoteRegionsLayer {
  opacity: 1;
}

@media (max-width: 900px) {
  .worldVoteLeaderboardStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worldVoteInsightGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .worldVoteLeaderboardStrip {
    grid-template-columns: 1fr;
  }

  .worldVoteInsightGrid {
    grid-template-columns: 1fr;
  }

  .worldVoteRegionClusterLabel {
    font-size: 10px;
  }

  .worldVoteRegionClusterValue {
    font-size: 12px;
  }

  .worldVoteInsightTop {
    flex-direction: column;
    align-items: flex-start;
  }

  .worldVoteInsightLead {
    text-align: left;
  }
}

/* ============================================================
   WORLD VOTE MAP — REGION FILTER INTERACTION
============================================================ */

.worldVoteRegionCluster {
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.worldVoteRegionClusterHit {
  pointer-events: auto;
}

.worldVoteRegionCluster:hover {
  transform: scale(1.04);
}

.worldVoteRegionCluster.isActive,
.worldVoteRegionCluster.is-active,
.worldVoteRegionCluster.isActive .worldVoteRegionClusterCore,
.worldVoteRegionCluster.is-active .worldVoteRegionClusterCore {
  filter: drop-shadow(0 10px 20px rgba(11, 31, 58, 0.22));
}

.worldVoteRegionCluster.isActive .worldVoteRegionClusterAura,
.worldVoteRegionCluster.is-active .worldVoteRegionClusterAura {
  opacity: 0.28;
}

.worldVoteRegionCluster.isDimmed,
.worldVoteRegionCluster.is-dimmed {
  opacity: 0.34;
}

.worldVoteDot.isOutOfRegion,
.worldVoteCountry.isOutOfRegion {
  opacity: 0.26 !important;
}

.worldVoteInsightItem {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.worldVoteInsightItem:hover {
  transform: translateY(-1px);
}

.worldVoteInsightItem.isActive,
.worldVoteInsightItem.is-active {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(239, 246, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.worldVoteInsightItem.isDimmed,
.worldVoteInsightItem.is-dimmed {
  opacity: 0.45;
}

.countryVoteFilterBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d8e4f1;
  border-radius: 14px;
  background: #ffffff;
}

.countryVoteFilterLabel {
  color: #31435d;
  font-size: .95rem;
  font-weight: 700;
}

.countryVoteFilterActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.countryVoteFilterSep {
  margin: 0 6px;
  color: #94a3b8;
}

.countryVoteResetBtn {
  appearance: none;
  border: 1px solid #c8d7ea;
  background: #f5f8fd;
  color: #0b1f3a;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.countryVoteResetBtn:hover,
.countryVoteResetBtn:focus-visible {
  background: #edf4fd;
  border-color: #2f6fed;
  transform: translateY(-1px);
}

.countryVoteResetBtn:focus-visible {
  outline: 2px solid rgba(47,111,237,.22);
  outline-offset: 2px;
}

/* ==========================================================
   21) YOUR COUNTRY VS GLOBAL
========================================================== */
.countryCompareBlock{
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #d8e4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 22px rgba(11,31,58,.04);
}

.countryCompareHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.countryCompareTitle{
  margin: 0;
  color: #0b1f3a;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.countryCompareMeta{
  font-size: .85rem;
  color: #607088;
}

.countryCompareGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.countryCompareCard{
  padding: 14px;
  border: 1px solid #d8e1ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11,31,58,.05);
}

.countryCompareCardTitle{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #0b1f3a;
  font-size: 1rem;
  font-weight: 900;
}

.countryCompareLabel{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0b1f3a;
}

.countryCompareLead{
  margin: 0 0 10px;
  color: #31435d;
  font-size: .95rem;
  line-height: 1.45;
}

.countryCompareStats{
  display: grid;
  gap: 8px;
}

.countryCompareStat{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8fc;
  color: #20324d;
  font-size: .92rem;
  font-weight: 700;
}

.countryCompareStat strong{
  color: #0b1f3a;
  font-weight: 900;
}

.countryCompareFoot{
  margin-top: 10px;
  color: #607088;
  font-size: .86rem;
}

@media (max-width: 720px){
  .countryCompareGrid{
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WORLD MAP MODE TOGGLE
============================================================ */

.worldVoteMapModeBar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 5;
}

.worldVoteMapModeBtn {
  appearance: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.worldVoteMapModeBtn:hover {
  transform: translateY(-1px);
}

.worldVoteMapModeBtn.is-active {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.worldVoteMapRoot .worldVoteMapDot,
.worldVoteMapRoot .worldVoteMapCountryShape {
  transition: opacity 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.worldVoteMapRoot[data-map-mode="fill"] .worldVoteMapDot {
  opacity: 0;
  pointer-events: none;
}

.worldVoteMapRoot[data-map-mode="dots"] .worldVoteMapDot,
.worldVoteMapRoot[data-map-mode="both"] .worldVoteMapDot {
  opacity: 1;
}

.worldVoteMapRoot[data-map-mode="dots"] .worldVoteMapCountryShape[data-fill-hidden="1"] {
  fill: rgba(203, 213, 225, 0.55) !important;
  stroke: #b8c2d1 !important;
}

/* ============================================================
   WORLD VOTE MAP — GLOBAL INSIGHT SUMMARY
============================================================ */

.worldVoteSummaryCard {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(248, 250, 252, 0.96));
}

.worldVoteSummaryHead {
  margin-bottom: 10px;
}

.worldVoteSummaryTitle {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.worldVoteSummarySub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.worldVoteSummaryBody {
  display: grid;
  gap: 8px;
}

.worldVoteSummaryBody p {
  margin: 0;
  color: #1e293b;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ============================================================
   WORLD VOTE MAP — CHANGE DETECTION
============================================================ */

.worldVoteChangeCard {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.96));
}

.worldVoteChangeHead {
  margin-bottom: 10px;
}

.worldVoteChangeTitle {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.worldVoteChangeSub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.worldVoteChangeBody {
  display: grid;
  gap: 8px;
}

.worldVoteChangeBody p {
  margin: 0;
  color: #1e293b;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ==========================================================
   22) MOBILE ADJUSTMENTS FOR COUNTRY VOTING
========================================================== */
@media (max-width: 640px){
  #countryVotesSection,
  .countryVotesSection,
  .countryVotesBlock{
    padding: 14px;
    border-radius: 16px;
  }

  .countryVoteList{
    grid-template-columns: 1fr;
  }

  .countryVoteBars{
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================
   23) MOBILE READING ORDER FIX
========================================================== */
@media (max-width: 900px){
  .articleShell{
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .articleMain{
    display: flex;
    flex-direction: column;
    order: 1 !important;
    width: 100%;
  }

  #articleContent{
    order: 1;
  }

  .tocMobile{
    order: 2;
  }

  .articleActions{
    order: 3;
  }

  .articleAside{
    order: 4 !important;
    width: 100%;
    margin-top: 0;
  }

  .articleAside .sticky{
    position: static !important;
    top: auto !important;
  }
}

/* ==========================================================
   24) ARTICLE SHARE CARD
   PREMIUM + ANIMATED MOBILE SAFE VERSION
   - professional card styling
   - refined icon interactions
   - animated confirmation message
   - mobile: status appears BELOW icons
========================================================== */

.articleHeaderTopShare {
  margin: 0 0 14px 0;
}

.articleShareCard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,250,252,0.99) 100%);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    0 2px 6px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255,255,255,0.78);
  margin-bottom: 4px;
  overflow: visible;
}

.articleShareRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.articleShareLabel {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

.articleShareButtons {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.articleShareButtonsCompact {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* ==========================================================
   ICON BUTTONS
========================================================== */

.shareIconBtn {
  --share-hover-bg: rgba(15, 23, 42, 0.06);
  --share-hover-border: rgba(15, 23, 42, 0.18);
  --share-hover-color: #111827;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,0.98) 100%);
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.06),
    0 8px 18px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.85);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.shareIconBtn:hover,
.shareIconBtn:focus-visible {
  transform: translateY(-1px);
  background: var(--share-hover-bg);
  border-color: var(--share-hover-border);
  color: var(--share-hover-color);
  outline: none;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.shareIconBtn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.shareIconBtn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.shareSvg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: inherit;
  pointer-events: none;
}

/* ==========================================================
   PLATFORM HOVER COLORS
========================================================== */

.shareFacebook {
  --share-hover-bg: rgba(24, 119, 242, 0.10);
  --share-hover-border: rgba(24, 119, 242, 0.35);
  --share-hover-color: #1877f2;
}

.shareX {
  --share-hover-bg: rgba(17, 24, 39, 0.06);
  --share-hover-border: rgba(17, 24, 39, 0.22);
  --share-hover-color: #111827;
}

.shareLinkedIn {
  --share-hover-bg: rgba(10, 102, 194, 0.10);
  --share-hover-border: rgba(10, 102, 194, 0.35);
  --share-hover-color: #0a66c2;
}

.shareThreads {
  --share-hover-bg: rgba(17, 24, 39, 0.06);
  --share-hover-border: rgba(17, 24, 39, 0.22);
  --share-hover-color: #111111;
}

.shareWhatsApp {
  --share-hover-bg: rgba(37, 211, 102, 0.10);
  --share-hover-border: rgba(37, 211, 102, 0.35);
  --share-hover-color: #1fa855;
}

.shareTelegram {
  --share-hover-bg: rgba(34, 158, 217, 0.10);
  --share-hover-border: rgba(34, 158, 217, 0.35);
  --share-hover-color: #229ed9;
}

.shareReddit {
  --share-hover-bg: rgba(255, 69, 0, 0.10);
  --share-hover-border: rgba(255, 69, 0, 0.35);
  --share-hover-color: #ff4500;
}

.shareEmail {
  --share-hover-bg: rgba(17, 24, 39, 0.06);
  --share-hover-border: rgba(17, 24, 39, 0.22);
  --share-hover-color: #111827;
}

.shareCopyBtn {
  --share-hover-bg: rgba(59, 130, 246, 0.08);
  --share-hover-border: rgba(59, 130, 246, 0.28);
  --share-hover-color: #2563eb;
}

.shareMoreBtn {
  --share-hover-bg: rgba(59, 130, 246, 0.08);
  --share-hover-border: rgba(59, 130, 246, 0.28);
  --share-hover-color: #2563eb;
}

/* ==========================================================
   STATUS MESSAGE
========================================================== */

.shareStatus {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 1.15em;
  font-size: 0.82rem;
  line-height: 1.32;
  color: #475569;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.shareStatus:empty {
  display: none;
}

.shareStatus:not(:empty)::before {
  content: "✓";
  font-weight: 900;
  line-height: 1;
  color: currentColor;
}

@media (min-width: 521px) {
  .shareStatus:not(:empty) {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
    animation: shareStatusFadeSlide 0.24s ease;
  }
}

@keyframes shareStatusFadeSlide {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  .articleShareCard {
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .articleShareButtonsCompact {
    gap: 6px;
  }

  .shareIconBtn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .shareSvg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 720px) {
  .articleShareCard {
    min-height: 56px;
    padding: 9px 10px;
  }

  .articleShareRow {
    gap: 8px;
  }

  .articleShareButtonsCompact {
    gap: 5px;
  }

  .shareIconBtn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .shareSvg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 520px) {
  .articleHeaderTopShare {
    margin-bottom: 12px;
  }

  .articleShareCard {
    min-height: 0;
    padding: 10px 8px;
    border-radius: 14px;
    align-items: stretch;
  }

  .articleShareRow {
    align-items: center;
    gap: 6px;
  }

  .articleShareLabel {
    display: none;
  }

  .articleShareButtons {
    width: 100%;
    justify-content: center;
  }

  .articleShareButtonsCompact {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .shareIconBtn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex: 0 0 auto;
  }

  .shareSvg {
    width: 13px;
    height: 13px;
  }

  .shareStatus {
    margin-left: 0;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    order: 99;
    min-height: 1.25em;
    text-align: center;
    justify-content: center;
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #166534;
  }

  .shareStatus:not(:empty) {
    padding: 4px 6px 0;
    animation: shareStatusFadeSlide 0.24s ease;
  }
}

@media (max-width: 380px) {
  .articleShareCard {
    padding: 8px 7px;
  }

  .articleShareButtonsCompact {
    gap: 4px;
  }

  .shareIconBtn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .shareSvg {
    width: 12px;
    height: 12px;
  }

  .shareStatus {
    font-size: 0.76rem;
  }
}