/* =========================================================
   WCA Events Survey 2026
   ========================================================= */

:root {
  --green: #69d59b;
}

.page-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 20px 64px;
}


/* =========================================================
   Hero
   ========================================================= */

.document-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 0 42px;
  text-align: center;
}

.document-hero h1 {
  max-width: 850px;
  margin: 0 auto;

  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 760px;
  margin: 22px auto 0;

  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-context {
  max-width: 720px;
  margin: 18px auto 0;

  color: #bdbdbd;
  font-size: 0.95rem;
  line-height: 1.65;
}


/* =========================================================
   Generic section
   ========================================================= */

.source-context,
.rationale-analysis,
.source-significance {
  max-width: 790px;
  margin: 64px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.source-context h2,
.rationale-analysis > h2,
.source-significance h2 {
  margin: 0 0 20px;

  color: var(--fg);
  font-size: clamp(1.6rem, 3.7vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.source-context > p:not(.section-kicker),
.rationale-analysis > p:not(.section-kicker),
.source-significance > p:not(.section-kicker) {
  margin: 0 0 18px;

  color: #d0d0d0;
  font-size: 1rem;
  line-height: 1.72;
}

.rationale-intro {
  margin-bottom: 30px !important;
}


/* =========================================================
   Participation
   ========================================================= */

.survey-participation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;

  margin-top: 30px;
}

.survey-stat {
  padding: 24px 20px;

  background: #0b0b0b;
  border: 1px solid #343434;
  border-radius: 12px;

  text-align: center;
}

.survey-stat strong {
  display: block;

  color: var(--fg);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.survey-stat span {
  display: block;
  margin-top: 10px;

  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   Favorability scale
   ========================================================= */

.favorability-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;

  margin-top: 30px;
}

.favorability-scale > div {
  padding: 20px 16px;

  background: #0b0b0b;
  border: 1px solid #343434;
  border-radius: 10px;

  text-align: center;
}

.favorability-scale strong {
  display: block;

  color: var(--fg);
  font-size: 1.15rem;
}

.favorability-scale span {
  display: block;
  margin-top: 8px;

  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}


/* =========================================================
   Survey comparison cards
   ========================================================= */

.survey-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;

  margin: 28px 0 0;
}

.survey-result {
  padding: 20px 18px;

  background: #0b0b0b;
  border: 1px solid #343434;
  border-radius: 10px;

  text-align: left;
}

.survey-label {
  display: block;

  color: #777;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.survey-result strong {
  display: block;
  margin-top: 8px;

  color: var(--fg);
  font-size: 1rem;
  line-height: 1.45;
}

.survey-value {
  display: block;
  margin-top: 12px;

  color: #cfcfcf;
  font-size: 1.15rem;
  font-weight: 750;
}

.survey-value.positive {
  color: #f5f5f5;
}

.survey-value.negative {
  color: #a7a7a7;
}


/* =========================================================
   FTO highlight
   ========================================================= */

.survey-highlight {
  max-width: 620px;
  margin: 32px auto 0;
  padding: 28px 26px;

  background: #101010;
  border: 1px solid #555;
  border-radius: 14px;

  text-align: center;
}

.survey-highlight > strong {
  display: block;
  margin-top: 8px;

  color: var(--fg);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.survey-big-number {
  display: block;
  margin-top: 18px;

  color: var(--fg);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.survey-caption {
  display: block;
  max-width: 500px;
  margin: 14px auto 0;

  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}


/* =========================================================
   Key conclusion blocks
   ========================================================= */

.survey-principle {
  margin: 30px 0 0 !important;
  padding: 20px 22px;

  background: #101010;
  border-left: 3px solid #f5f5f5;

  color: var(--fg) !important;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem) !important;
  line-height: 1.6 !important;
}


/* =========================================================
   Rankings
   ========================================================= */

.survey-ranking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;

  margin-top: 30px;
}

.survey-ranking-column {
  padding: 22px 20px;

  background: #0b0b0b;
  border: 1px solid #343434;
  border-radius: 12px;
}

.survey-ranking-column ol {
  margin: 18px 0 0;
  padding-left: 1.4rem;
}

.survey-ranking-column li {
  margin: 0 0 14px;
  padding-left: 4px;

  color: #cfcfcf;
  line-height: 1.5;
}

.survey-ranking-column li strong {
  color: var(--fg);
}

.survey-ranking-column li span {
  display: block;

  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}


/* =========================================================
   Notes
   ========================================================= */

.rationale-note {
  margin-top: 28px;
  padding: 18px 20px;

  background: #0d0d0d;
  border-left: 2px solid #555;
}

.rationale-note p {
  margin: 0;

  color: #c8c8c8;
  font-size: 0.94rem;
  line-height: 1.68;
}

.rationale-note strong {
  color: var(--fg);
}


/* =========================================================
   Compromise table
   ========================================================= */

.compromise-table {
  margin-top: 30px;

  border: 1px solid #343434;
  border-radius: 12px;

  overflow: hidden;
}

.compromise-row {
  display: grid;
  grid-template-columns: 42px 1fr 72px;
  gap: 14px;
  align-items: center;

  padding: 16px 18px;

  background: #0b0b0b;
  border-bottom: 1px solid #303030;
}

.compromise-row:last-child {
  border-bottom: 0;
}

.compromise-row > span {
  color: #777;

  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.compromise-row p {
  margin: 0;

  color: #d0d0d0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.compromise-row strong {
  color: var(--fg);

  font-size: 1rem;
  text-align: right;
}

.compromise-row.preferred {
  background: #111;
  border-left: 3px solid #f5f5f5;
}


/* =========================================================
   Rationale flow
   ========================================================= */

.rationale-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  max-width: 650px;
  margin: 30px auto 0;
}

.rationale-step {
  padding: 17px 20px;

  background: #0b0b0b;
  border: 1px solid #3b3b3b;
  border-radius: 10px;

  text-align: center;
}

.rationale-step strong {
  display: block;

  color: var(--fg);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rationale-step-missing {
  border-style: dashed;
  border-color: #777;
  background: #101010;
}

.rationale-arrow {
  position: relative;

  width: 14px;
  height: 27px;
  margin: 0 auto;
}

.rationale-arrow::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: 1px;
  height: 20px;

  background: #555;

  transform: translateX(-50%);
}

.rationale-arrow::after {
  content: "";

  position: absolute;
  bottom: 2px;
  left: 50%;

  width: 6px;
  height: 6px;

  border-right: 1px solid #777;
  border-bottom: 1px solid #777;

  transform: translateX(-50%) rotate(45deg);
}


/* =========================================================
   Central conclusion
   ========================================================= */

.survey-central-conclusion {
  margin-top: 32px;
  padding: 26px 24px;

  border: 1px solid #555;
  border-radius: 12px;
  background: #101010;

  text-align: center;
}

.survey-central-conclusion p {
  margin: 0;

  color: var(--fg);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.6;
}

.survey-central-conclusion p + p {
  margin-top: 12px;

  color: #d0d0d0;
}


/* =========================================================
   Decision chain
   ========================================================= */

.decision-chain {
  max-width: 680px;
  margin: 34px auto 0;
}

.decision-chain-item {
  padding: 18px 20px;

  background: #0b0b0b;
  border: 1px solid #3b3b3b;
  border-radius: 10px;

  text-align: center;
}

.decision-chain-item span {
  display: block;

  margin-bottom: 6px;

  color: #777;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-chain-item strong {
  display: block;

  color: var(--fg);
  font-size: 0.94rem;
  line-height: 1.5;
}

.decision-chain-item.missing {
  border-style: dashed;
  border-color: #777;
  background: #101010;
}

.decision-chain-item.final {
  background: #f5f5f5;
  border-color: #f5f5f5;
}

.decision-chain-item.final span,
.decision-chain-item.final strong {
  color: #050505;
}

.decision-chain-arrow {
  margin: 6px 0;

  color: #666;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}


/* =========================================================
   Quote / governance question
   ========================================================= */

.identity-question {
  margin: 34px 0 0;
  padding: 22px 24px;

  background: #111;
  border: 1px solid #444;
  border-left: 4px solid #f5f5f5;
  border-radius: 10px;
}

.identity-question p {
  margin: 0;

  color: #d8d8d8;
  font-size: clamp(1.03rem, 2.2vw, 1.17rem);
  line-height: 1.65;
}

.identity-question strong {
  color: var(--fg);
}


/* =========================================================
   Primary source links
   ========================================================= */

.milestone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 26px;
}

.milestone-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 15px;

  border: 1px solid #555;
  border-radius: 8px;

  color: var(--fg);
  font-size: 0.84rem;
  font-weight: 650;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.milestone-links a:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
  color: #050505;

  transform: translateY(-2px);
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 720px) {

  .page-shell {
    padding: 14px 14px 44px;
  }

  .document-hero {
    padding: 34px 0 28px;
  }

  .document-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .source-context,
  .rationale-analysis,
  .source-significance {
    margin-top: 50px;
    padding-top: 28px;
  }

  .survey-participation,
  .survey-comparison,
  .survey-ranking {
    grid-template-columns: 1fr;
  }

  .favorability-scale {
    grid-template-columns: 1fr;
  }

  .survey-highlight {
    padding: 24px 18px;
  }

  .compromise-row {
    grid-template-columns: 32px 1fr 58px;
    gap: 10px;

    padding: 14px 12px;
  }

  .compromise-row p {
    font-size: 0.84rem;
  }

  .compromise-row strong {
    font-size: 0.92rem;
  }

  .survey-central-conclusion {
    padding: 22px 18px;
  }

  .identity-question {
    padding: 19px 17px;
  }

  .milestone-links {
    flex-direction: column;
  }

  .milestone-links a {
    width: 100%;
  }

}


/* =========================================================
   EVIDENCE BUTTON
   ========================================================= */

.evidence-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 15px;

  background: transparent;
  border: 1px solid var(--green);
  border-radius: 8px;

  color: var(--green);

  font: inherit;
  font-size: .84rem;
  font-weight: 650;

  cursor: pointer;

  transition:
    background .15s ease,
    color .15s ease;
}

.evidence-button:hover {
  background: var(--green);
  color: var(--bg);
}


/* =========================================================
   EVIDENCE MODAL
   ========================================================= */

.evidence-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.evidence-modal.is-open {
  display: flex;
}

.evidence-modal {
  visibility: hidden;
  opacity: 0;
}

.evidence-modal.is-open {
  visibility: visible !important;
  opacity: 1 !important;
}

.evidence-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
}

body .evidence-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: none !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100vw !important;
  height: 100vh !important;

  padding: 24px;
}

body .evidence-modal.is-open {
  display: flex !important;
}


.evidence-modal-content {
  position: relative;
  z-index: 1;

  width: min(1000px, 96vw);
  max-height: 92vh;

  padding: 28px;

  overflow-y: auto;

  background: #0b0b0b;
  border: 1px solid #3c3c3c;
  border-radius: 14px;

  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.evidence-modal-content h2 {
  margin: 0 0 22px;

  color: var(--fg);

  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.evidence-modal-content img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 8px;
}

.evidence-modal-caption {
  margin: 12px 0 0;

  color: var(--muted);

  font-size: .66rem;
  line-height: 1.5;
  letter-spacing: .02em;
}

.evidence-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;

  width: 36px;
  height: 36px;

  padding: 0;

  background: transparent;
  border: 1px solid #444;
  border-radius: 50%;

  color: var(--fg);

  font-size: 1.4rem;
  line-height: 1;

  cursor: pointer;
}

.evidence-modal-close:hover {
  background: var(--fg);
  color: var(--bg);
}

body.modal-open {
  overflow: hidden;
}


/* Mobile */

@media (max-width: 700px) {

  .evidence-modal {
    padding: 12px;
  }

  .evidence-modal-content {
    padding: 22px 16px 18px;
  }

}

