/* ============================================================
   TABLE OF CONTENTS (TOC)
   ============================================================ */
.sz-toc-box {
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--rule, rgba(25,33,15,0.13));
  border-left: 4px solid var(--brand, #0B7A43);
  border-radius: var(--radius-md, 8px);
  padding: 16px 20px;
  margin: 26px 0;
  max-width: 460px;
  box-shadow: var(--shadow-card, 0 12px 28px -15px rgba(19,26,16,0.12));
  box-sizing: border-box;
  width: 100%;
}

.sz-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.sz-toc-title {
  font-family: var(--font-headline, sans-serif);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink, #131A10);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sz-toc-toggle-icon {
  font-family: var(--font-score, monospace);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand, #0B7A43);
  font-weight: 700;
}

.sz-toc-list {
  list-style: none !important;
  margin: 12px 0 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid var(--rule, rgba(25,33,15,0.13));
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: sz-toc;
}

.sz-toc-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 !important;
  padding: 0 !important;
}

.sz-toc-item::before {
  content: counter(sz-toc, decimal-leading-zero);
  counter-increment: sz-toc;
  font-family: var(--font-score, monospace);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand, #0B7A43);
  flex-shrink: 0;
}

.sz-toc-item.level-3 {
  padding-left: 22px !important;
  font-size: 13px;
}

.sz-toc-item.level-3::before {
  content: '—';
  counter-increment: none;
  color: var(--ink-4, #A6AC99);
}

.sz-toc-item a {
  color: var(--ink-2, #39422F);
  font-weight: 600;
  text-decoration: none !important;
  background: none !important;
  border-bottom: none !important;
}

.sz-toc-item a:hover {
  color: var(--brand, #0B7A43);
}

/* Collapse behavior */
.sz-toc-box.collapsed .sz-toc-list {
  display: none;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================================
   EMOJI REACTIONS PANEL
   ============================================================ */
.sz-reactions-box {
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--rule, rgba(14,13,11,0.1));
  border-radius: var(--radius-xl, 16px);
  padding: 24px 28px;
  margin: 40px auto;
  max-width: 580px;
  text-align: center;
  box-shadow: var(--shadow-card, 0 12px 28px -15px rgba(14,13,11,0.12));
  box-sizing: border-box;
  width: 100%;
}

.sz-reactions-title {
  font-family: var(--font-headline, sans-serif);
  font-size: 17.5px;
  margin-bottom: 18px;
  color: var(--ink, #0E0D0B);
}

.sz-reactions-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sz-reaction-btn {
  background: var(--canvas, #F5F6F8);
  border: 1px solid var(--rule, rgba(14,13,11,0.1));
  border-radius: var(--radius-lg, 16px);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 68px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth, all 0.3s ease);
}

.sz-reaction-btn:hover {
  border-color: var(--brand, #E5112B);
  transform: translateY(-2px);
}

.sz-reaction-btn.user-voted {
  border-color: var(--brand, #E5112B);
  background: color-mix(in srgb, var(--brand, #E5112B) 8%, var(--paper, #FFFFFF));
}

.sz-reaction-emoji {
  font-size: 24px;
  line-height: 1;
}

.sz-reaction-label {
  font-family: var(--font-headline, sans-serif);
  font-weight: 500;
  font-size: 10px;
  color: var(--ink-2, #3D3A33);
}

.sz-reaction-count {
  font-family: var(--font-score, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand, #E5112B);
}

.sz-reaction-message {
  margin-top: 14px;
  font-family: var(--font-editorial, serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-3, #76716A);
}

/* ============================================================
   PREMIUM QUOTE SHORTCODE STYLING
   ============================================================ */
.sz-premium-quote {
  border-left: 4px solid var(--brand, #E5112B);
  background: var(--canvas, #F5F6F8);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius-lg, 16px) var(--radius-lg, 16px) 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}

.sz-quote-text {
  font-family: var(--font-editorial, Georgia, serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink, #0E0D0B);
  margin: 0 0 12px 0;
}

.sz-quote-author {
  display: block;
  font-family: var(--font-headline, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3, #76716A);
}

.sz-quote-name {
  color: var(--brand, #E5112B);
}

.sz-quote-role {
  font-weight: 500;
  color: var(--ink-4, #B0A99B);
}

/* ============================================================
   ADS PLACEMENT SHORTCODE STYLING
   ============================================================ */
.sz-ad-wrapper {
  margin: 32px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.sz-ad-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--rule, rgba(14,13,11,0.1));
  box-shadow: var(--shadow-card, 0 12px 28px -15px rgba(14,13,11,0.12));
  transition: transform 0.3s ease;
}

.sz-ad-banner-img:hover {
  transform: scale(1.01);
}

.sz-ad-placeholder {
  margin: 32px 0;
  border: 2px dashed var(--rule, rgba(14,13,11,0.1));
  background: var(--canvas, #F5F6F8);
  color: var(--ink-3, #76716A);
  font-family: var(--font-score, monospace);
  font-size: 11px;
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-md, 10px);
  width: 100%;
}

/* ============================================================
   STANDALONE MATCH CARD STYLING
   ============================================================ */
.sz-match-card-widget {
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--rule, rgba(14,13,11,0.1));
  border-radius: var(--radius-lg, 16px);
  padding: 20px 24px;
  margin: 32px auto;
  max-width: 500px;
  box-shadow: var(--shadow-card, 0 12px 28px -15px rgba(14,13,11,0.12));
  box-sizing: border-box;
  width: 100%;
}

.sz-match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule, rgba(14,13,11,0.1));
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-family: var(--font-score, monospace);
  font-size: 11px;
  color: var(--ink-3, #76716A);
  text-transform: uppercase;
}

.sz-match-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 14px;
}

.sz-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.sz-match-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
}

.sz-match-team-name {
  font-family: var(--font-headline, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0E0D0B);
}

.sz-match-vs {
  font-family: var(--font-display, sans-serif);
  font-size: 20px;
  color: var(--brand, #E5112B);
  font-weight: 900;
}

.sz-match-card-footer {
  text-align: center;
  border-top: 1px solid var(--rule, rgba(14,13,11,0.1));
  padding-top: 12px;
}

.sz-match-time, .sz-match-result {
  font-family: var(--font-score, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2, #3D3A33);
}

.sz-match-status {
  font-family: var(--font-headline, sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand, #E5112B);
}

.live-blink {
  animation: scBlink 1.4s infinite;
}

@keyframes scBlink {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ============================================================
   POLLS v2 — Pitchside fan polls ([sz_poll] / [sz_match_poll])
   ============================================================ */
.sz-poll {
  position: relative;
  max-width: 560px;
  margin: 26px 0;
  padding: 20px 20px 16px;
  background: var(--paper, #FFFFFF);
  border: 1px solid var(--rule, rgba(25, 33, 15, 0.13));
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sz-poll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--poll-c, var(--brand, #0B7A43));
}

.sz-poll:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover, 0 10px 26px rgba(0, 0, 0, 0.12));
  border-color: var(--rule-strong, rgba(25, 33, 15, 0.32));
}

.sz-poll-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sz-poll-kicker {
  font-family: var(--font-score, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-text, #0B7A43);
}

.sz-poll-total {
  font-family: var(--font-score, monospace);
  font-size: 10.5px;
  color: var(--ink-3, #6C7561);
}

/* h3-qualified + double class so the theme's .entry-content h3 margins/size
   can't restyle the card when the shortcode is pasted inside an article. */
.sz-poll h3.sz-poll-q,
.sz-poll-q {
  margin: 0 0 14px;
  font-family: var(--font-headline, sans-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink, #131A10);
}

.sz-poll-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sz-poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--paper, #FFFFFF);
  border: 1.5px solid var(--rule-strong, rgba(25, 33, 15, 0.32));
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink, #131A10);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.sz-poll:not(.is-done) .sz-poll-opt:hover {
  border-color: var(--opt-c, var(--poll-c, var(--brand, #0B7A43)));
  background: rgba(11, 122, 67, 0.07);
  background: var(--brand-wash, rgba(11, 122, 67, 0.07));
  transform: translateX(2px);
}

.sz-poll-opt:focus-visible {
  outline: 2px solid var(--brand, #0B7A43);
  outline-offset: 2px;
}

/* result fill lives BEHIND the label — text keeps full contrast in both modes */
.sz-poll-bar {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sz-poll-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(11, 122, 67, 0.15);
  background: color-mix(in srgb, var(--opt-c, var(--poll-c, var(--brand, #0B7A43))) 15%, transparent);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sz-poll-num,
.sz-poll-label,
.sz-poll-pct,
.sz-poll-opt .sz-sc-crest {
  position: relative;
  z-index: 1;
}

.sz-poll-num {
  font-family: var(--font-score, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-text, #0B7A43);
  flex-shrink: 0;
}

.sz-poll-label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.sz-poll-pct {
  font-family: var(--font-score, monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2, #39422F);
  flex-shrink: 0;
}

/* Crests on match polls — self-contained (match-centre CSS not required) */
.sz-poll-opt .sz-sc-crest {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--rule, rgba(25, 33, 15, 0.13));
  overflow: hidden;
  flex-shrink: 0;
}

.sz-poll-opt .sz-sc-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sz-poll-opt .sz-sc-crest.sz-sc-crest-txt {
  background: var(--c, var(--brand, #0B7A43));
  background: color-mix(in srgb, var(--c, var(--brand, #0B7A43)) 62%, #000);
  color: #FFFFFF;
  font-family: var(--font-score, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Voted state */
.sz-poll.is-done .sz-poll-opt {
  cursor: default;
  border-color: var(--rule, rgba(25, 33, 15, 0.13));
}

.sz-poll.is-done .sz-poll-opt.is-mine {
  border-color: var(--opt-c, var(--poll-c, var(--brand, #0B7A43)));
}

.sz-poll.is-done .sz-poll-num { color: var(--ink-2, #39422F); }

.sz-poll.is-done .sz-poll-opt.is-mine .sz-poll-label::after {
  content: ' \2713';
}

.sz-poll.is-done .sz-poll-opt.is-lead .sz-poll-bar i {
  background: rgba(11, 122, 67, 0.26);
  background: color-mix(in srgb, var(--opt-c, var(--poll-c, var(--brand, #0B7A43))) 26%, transparent);
}

.sz-poll.is-done .sz-poll-opt.is-lead .sz-poll-pct {
  color: var(--ink, #131A10);
}

.sz-poll-note {
  margin: 12px 0 0;
  font-family: var(--font-score, monospace);
  font-size: 10.5px;
  color: var(--ink-3, #6C7561);
  text-align: center;
}

@media (max-width: 640px) {
  .sz-poll { padding: 16px 14px 12px; }
  .sz-poll h3.sz-poll-q,
  .sz-poll-q { font-size: 16.5px; }
  .sz-poll-label { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sz-poll,
  .sz-poll-opt,
  .sz-poll-bar i { transition: none; }
}
