/* ===== Retro Mundial — pages.css ===== */

/* Page intro band */
.page-intro {
  border: 3px double var(--ink);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 20%, rgba(194,120,58,0.3), transparent 45%),
    linear-gradient(135deg, var(--paper-2), var(--paper-3));
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}
.page-intro::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(43,33,24,0.28) 1px, transparent 1.2px);
  background-size: 7px 7px;
  opacity: .4; mix-blend-mode: multiply; pointer-events: none;
}
.page-intro__inner { position: relative; max-width: 720px; }
.page-intro h1 { margin: 10px 0 14px; }
.page-intro p { font-size: 1.16rem; color: var(--ink-soft); margin: 0; max-width: 62ch; }

/* Lead paragraph */
.lead { font-size: 1.28rem; line-height: 1.6; color: var(--ink-soft); font-family: var(--serif-body); }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.28);
}
.stats div { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats .n { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent); line-height: 1; }
.stats .l { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sepia-deep); margin-top: 8px; }
@media (max-width: 700px){ .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2){border-right:0;} .stats div:nth-child(1),.stats div:nth-child(2){border-bottom:1px solid var(--line);} }

/* Legend profile cards */
.legends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.legend {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.3);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.legend:hover { transform: translateY(-4px); box-shadow: 0 14px 28px var(--shadow); }
.legend__top { aspect-ratio: 1/1; position: relative; display: grid; place-items: center; }
.legend__no {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--serif); font-weight: 900; font-size: 2.4rem; color: rgba(244,236,220,.85);
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.legend__body { padding: 20px 22px 24px; }
.legend__body h3 { margin-bottom: 4px; }
.legend__role { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.legend__body p { font-size: .95rem; color: var(--ink-soft); margin: 12px 0 0; }
@media (max-width: 820px){ .legends { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .legends { grid-template-columns: 1fr; } }

/* Match recap blocks */
.match {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.3);
  padding: 26px 28px;
  margin-bottom: 26px;
}
.match__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.match__score { font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.match__teams { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; }
.match__tag { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.match p { margin-bottom: 0; color: var(--ink-soft); }

/* About team */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team .person { text-align: center; }
.team .avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--ink); }
.team h4 { margin-bottom: 2px; }
.team .role { font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px){ .team { grid-template-columns: 1fr; } }

/* Legal / doc pages */
.doc { max-width: 760px; }
.doc h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-top: 1.8em; }
.doc .updated { font-family: var(--sans); font-size: .82rem; color: var(--sepia-deep); margin-bottom: 26px; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94rem; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border: 1px solid var(--line); }
.doc th { background: rgba(255,255,255,0.4); font-family: var(--sans); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }

/* CTA band */
.cta {
  border: 3px double var(--ink);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink), var(--sepia-deep));
  color: var(--paper);
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1.2px); background-size: 8px 8px; opacity:.5; }
.cta h2 { color: var(--paper); position: relative; }
.cta p { color: rgba(244,236,220,.86); position: relative; max-width: 56ch; margin: 0 auto 22px; }
.cta .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); position: relative; }
.cta .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* Featured longread hero */
.lr-hero {
  border-bottom: 3px double var(--ink);
  padding-bottom: 26px;
  margin-bottom: 30px;
}
.lr-hero h1 { max-width: 18ch; }
.lr-hero .lead { margin-top: 10px; }
