/* =========================================================
   WCA EVENT FRAMEWORK HISTORY
   2019 → 2025 → 2026
   ========================================================= */

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


/* =========================================================
   Top navigation
   ========================================================= */

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  max-width: 940px;
  margin: 0 auto;
  padding: 12px 0 24px;
}

.page-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--fg);
}


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

.document-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 0 34px;

  text-align: center;
}

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

  color: var(--fg);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

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

  color: #d3d3d3;
  font-size: clamp(1.05rem, 2.3vw, 1.24rem);
  line-height: 1.65;
}

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

  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}


/* =========================================================
   Generic sections
   ========================================================= */

.framework-section,
.source-significance {
  max-width: 820px;
  margin: 64px auto 0;
  padding-top: 34px;

  border-top: 1px solid var(--line);
}

.framework-section > h2,
.source-significance > h2 {
  margin: 0 0 22px;

  color: var(--fg);
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

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


/* =========================================================
   2019 primary source
   ========================================================= */

.primary-source-quote {
  margin: 32px 0 0;
  padding: 28px 30px;

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

.primary-source-quote::before {
  content: "2019 · PRIMARY SOURCE";

  display: block;
  margin-bottom: 15px;

  color: #8d8d8d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.primary-source-quote p {
  margin: 0;

  color: var(--fg);
  font-size: clamp(1.03rem, 2.3vw, 1.18rem);
  line-height: 1.68;
}

.primary-source-quote cite {
  display: block;
  margin-top: 17px;

  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}


/* =========================================================
   Three findings
   ========================================================= */

.framework-findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;

  margin-top: 30px;
}

.framework-finding {
  padding: 22px 20px;

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

.framework-finding > span {
  display: block;

  color: #777;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.framework-finding strong {
  display: block;
  margin-top: 9px;

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

.framework-finding p {
  margin: 9px 0 0;

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


/* =========================================================
   Institutional principle
   ========================================================= */

.framework-principle {
  margin: 28px 0;
  padding: 22px 24px;

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

.framework-principle strong {
  color: var(--fg);
  font-size: clamp(1.04rem, 2.2vw, 1.18rem);
  line-height: 1.6;
}


/* =========================================================
   Historical chain
   ========================================================= */

.history-chain {
  max-width: 680px;
  margin: 32px auto 0;
}

.history-chain-item {
  padding: 20px 22px;

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

  text-align: center;
}

.history-chain-item span {
  display: block;
  margin-bottom: 7px;

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

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

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

.history-arrow {
  margin: 7px 0;

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


/* =========================================================
   Governance question
   ========================================================= */

.framework-question-section {
  max-width: 860px;
}

.governance-question {
  margin: 30px 0 0;
  padding: 25px 27px;

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

.governance-question p {
  margin: 0;

  color: #d6d6d6;
  font-size: clamp(1.05rem, 2.35vw, 1.22rem);
  line-height: 1.67;
}

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

.framework-conclusion {
  max-width: 790px;
  margin: 18px auto 0 !important;
  padding: 20px 24px;

  background: #f5f5f5;
  border-radius: 10px;

  text-align: center;
}

.framework-conclusion strong {
  color: #050505;
  font-size: clamp(1.03rem, 2.3vw, 1.2rem);
  line-height: 1.55;
}


/* =========================================================
   Community record
   ========================================================= */

.community-record {
  max-width: 900px;
}


/* =========================================================
   Archived Ryan post
   ========================================================= */

.archived-post {
  margin-top: 30px;

  background: #0a0a0a;
  border: 1px solid #444;
  border-radius: 14px;

  overflow: hidden;
}

.archived-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 18px 22px;

  background: #111;
  border-bottom: 1px solid #353535;
}

.archived-post-header strong {
  display: block;

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

.archived-post-header div > span {
  display: block;
  margin-top: 4px;

  color: var(--muted);
  font-size: 0.77rem;
}

.archive-label {
  color: #8b8b8b;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.archived-post blockquote {
  margin: 0;
  padding: 26px 28px;
}

.archived-post blockquote p {
  margin: 0 0 18px;

  color: #d4d4d4;
  font-size: 0.96rem;
  line-height: 1.7;
}

.archived-post blockquote p:last-child {
  margin-bottom: 0;
}

.archive-context {
  margin-top: 20px !important;

  color: var(--muted) !important;
  font-size: 0.88rem !important;
}


/* =========================================================
   SaveClock response
   ========================================================= */

.archived-response {
  margin-top: 30px;
  padding: 28px 30px;

  background: #0d0d0d;
  border: 1px solid #3d3d3d;
  border-radius: 14px;
}

.archived-response > p {
  margin: 0 0 18px;

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

.archived-response > p:last-child {
  margin-bottom: 0;
}

.archived-response blockquote {
  margin: 24px 0;
  padding: 20px 22px;

  background: #111;
  border-left: 3px solid #777;
}

.archived-response blockquote p {
  margin: 0;

  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.65;
}

.response-question {
  margin: 27px 0 !important;
  padding: 18px 20px;

  background: #151515;
  border-radius: 9px;

  text-align: center;
}

.response-question strong {
  color: var(--fg);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.response-conclusion {
  margin: 26px 0 !important;
  padding: 20px 22px;

  background: #f5f5f5;
  border-radius: 10px;

  text-align: center;
}

.response-conclusion strong {
  color: #050505;
  font-size: 1.04rem;
  line-height: 1.58;
}


/* =========================================================
   Methodology
   ========================================================= */

.methodology-section {
  max-width: 850px;
}

.method-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;

  margin: 30px 0;
  padding: 22px;

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

.method-chain span {
  padding: 9px 12px;

  background: #111;
  border: 1px solid #3b3b3b;
  border-radius: 7px;

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

.method-chain b {
  color: #666;
  font-weight: 400;
}


/* =========================================================
   Links
   ========================================================= */

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

  margin-top: 26px;
}

.section-links a,
.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;
}

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

  transform: translateY(-2px);
}

.institutional-continuity-statement {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 24px 26px;

  background: #f5f5f5;
  border-radius: 12px;

  text-align: center;
}

.institutional-continuity-statement p {
  margin: 0;

  color: #222;
  font-size: 1rem;
  line-height: 1.65;
}

.institutional-continuity-statement p + p {
  margin-top: 12px;
}

.institutional-continuity-statement strong {
  color: #050505;
}


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

@media (max-width: 720px) {

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

  .page-nav {
    padding-bottom: 18px;
  }

  .document-hero {
    padding: 32px 0 26px;
  }

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

  .framework-section,
  .source-significance {
    margin-top: 50px;
    padding-top: 28px;
  }

  .framework-findings {
    grid-template-columns: 1fr;
  }

  .archived-post-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-source-quote,
  .governance-question,
  .archived-response {
    padding: 21px 18px;
  }

  .archived-post blockquote {
    padding: 22px 18px;
  }

  .method-chain {
    align-items: stretch;
    flex-direction: column;
  }

  .method-chain span {
    text-align: center;
  }

  .method-chain b {
    transform: rotate(90deg);
    text-align: center;
  }

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

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

}

