/* ================================================================
   TERRITÓRIO MLS — Copa 2026 Hub Redesign
   Drop-in override for existing .tmls-copa markup
   Goal: editorial hub, mobile-first, denser above the fold
   ================================================================ */

body.page-template-page-copa-do-mundo-2026-php,
body.page-id-123360 {
  --copa-bg: #f4f1e9;
  --copa-paper: #fffaf0;
  --copa-ink: #101216;
  --copa-muted: #62666f;
  --copa-border: rgba(16,18,22,.14);
  --copa-accent: #c2e45c;
  --copa-red: #b92334;
  --copa-blue: #173a67;
  --copa-dark: #07111f;
  --copa-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(194,228,92,.18), transparent 34rem),
    linear-gradient(180deg, #f7f4ed 0%, var(--copa-bg) 42%, #fff 100%);
  color: var(--copa-ink);
}

body.page-template-page-copa-do-mundo-2026-php .site-content,
body.page-id-123360 .site-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.tmls-copa {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

/* HERO */
.tmls-copa__header {
  position: relative;
  overflow: hidden;
  text-align: left;
  min-height: 430px;
  margin: 0 0 28px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(7,17,31,.96) 0%, rgba(7,17,31,.82) 48%, rgba(7,17,31,.45) 100%),
    radial-gradient(circle at 85% 12%, rgba(194,228,92,.35), transparent 20rem),
    linear-gradient(135deg, #07111f, #173a67 52%, #b92334);
  color: #fff;
  box-shadow: 0 26px 70px rgba(7,17,31,.24);
}

.tmls-copa__header::before {
  content: "GUIA ESPECIAL • COPA 2026";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px 6px;
  border: 1px solid rgba(194,228,92,.45);
  border-radius: 999px;
  background: rgba(194,228,92,.12);
  color: var(--copa-accent);
  font: 800 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: .12em;
}

.tmls-copa__header::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background:
    linear-gradient(transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%);
  opacity: .65;
  pointer-events: none;
}

.tmls-copa__title {
  max-width: 850px;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.06em;
}

.tmls-copa__sub {
  max-width: 660px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

/* GLOBAL SECTION SYSTEM */
.tmls-copa__section {
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--copa-border);
  border-radius: var(--copa-radius);
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 34px rgba(10,20,35,.06);
}

.tmls-copa__section-title,
.tmls-copa__equipe-title,
.tmls-copa__slides-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--copa-ink);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: left;
}

.tmls-copa__section-desc,
.tmls-copa__equipe-sub {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--copa-muted);
  font-size: .98rem;
  line-height: 1.55;
  text-align: left;
}

/* HOSTS: make them a compact editorial strip */
.tmls-copa__hosts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tmls-copa__host-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-areas: "logo name" "logo badge";
  align-items: center;
  column-gap: 14px;
  padding: 16px;
  border: 1px solid var(--copa-border);
  border-radius: 16px;
  background: var(--copa-paper);
  box-shadow: none;
}

.tmls-copa__host-logo { grid-area: logo; width: 54px; height: 54px; }
.tmls-copa__host-logo img { max-width: 54px; max-height: 54px; }
.tmls-copa__host-name {
  grid-area: name;
  margin: 0;
  color: var(--copa-ink);
  font-size: .95rem;
  line-height: 1.2;
  text-align: left;
}
.tmls-copa__host-badge {
  grid-area: badge;
  justify-self: start;
  margin-top: 6px;
  background: var(--copa-dark);
  color: var(--copa-accent);
}

/* TEAMS */
.tmls-copa__teams-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tmls-copa__team-card {
  min-height: 108px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--copa-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.tmls-copa__team-logo,
.tmls-copa__team-logo img,
.tmls-copa__team-placeholder { width: 38px; height: 38px; }
.tmls-copa__team-name { font-size: .86rem; line-height: 1.25; }
.tmls-copa__host-tag { top: 10px; right: 10px; color: var(--copa-blue); background: rgba(23,58,103,.08); }

/* COVERAGE TEAM: operations-room card style */
.tmls-copa__equipe {
  background:
    radial-gradient(circle at 88% 20%, rgba(194,228,92,.18), transparent 24rem),
    linear-gradient(135deg, #07111f, #101927);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.tmls-copa__equipe-title,
.tmls-copa__equipe-sub { color: #fff; }
.tmls-copa__equipe-sub { color: rgba(255,255,255,.68); }

.tmls-copa__equipe-grid {
  max-width: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tmls-copa__equipe-card {
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: none;
  text-align: left;
}

.tmls-copa__equipe-name {
  margin: 0 0 6px;
  color: var(--copa-accent);
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.25rem;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-transform: none;
}

.tmls-copa__equipe-role {
  color: rgba(255,255,255,.62);
  font-size: .72rem;
}

.tmls-copa__equipe-flags { margin-top: 10px; font-size: 1rem; }
.tmls-copa__equipe-link { text-align: left; }
.tmls-copa__equipe-link a { color: var(--copa-accent); }

/* SLIDES */
.tmls-copa__slides { padding-inline: 0; background: transparent; border: 0; box-shadow: none; }
.tmls-copa__slides-title { padding-inline: clamp(20px, 3vw, 34px); }
.tmls-copa__slides-track {
  max-width: none;
  padding: 0 clamp(20px, 3vw, 34px) 16px;
  gap: 14px;
}
.tmls-copa__slide-item { flex-basis: min(84vw, 390px); border-radius: 18px; box-shadow: 0 12px 28px rgba(7,17,31,.14); }

/* ARTICLES: first story leads, rest more like a newsroom rail */
.tmls-copa__articles {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
  gap: 0 24px;
}

.tmls-copa__article {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--copa-border);
  transform: none !important;
}

.tmls-copa__article:first-child {
  grid-row: span 11;
  display: block;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(10,20,35,.12);
}

.tmls-copa__article:first-child .tmls-copa__article-img { height: clamp(240px, 34vw, 430px); }
.tmls-copa__article:first-child .tmls-copa__article-body { padding: 20px 22px 24px; }
.tmls-copa__article:first-child .tmls-copa__article-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  -webkit-line-clamp: 4;
}

.tmls-copa__article:not(:first-child) {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 0 0 13px;
  margin-bottom: 13px;
}

.tmls-copa__article:not(:first-child) .tmls-copa__article-img {
  width: 86px;
  height: 70px;
  border-radius: 10px;
}

.tmls-copa__article:not(:first-child) .tmls-copa__article-body { padding: 0; }
.tmls-copa__article-title { color: var(--copa-ink); }
.tmls-copa__article:not(:first-child) .tmls-copa__article-title {
  margin-bottom: 4px;
  font-size: .94rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

/* INFO QUICK FACTS */
.tmls-copa__info-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.tmls-copa__info-card {
  padding: 16px 12px;
  border: 1px solid var(--copa-border);
  border-radius: 14px;
  background: var(--copa-paper);
  box-shadow: none;
}
.tmls-copa__info-label { color: var(--copa-red); }
.tmls-copa__info-value { font-size: .86rem; }

/* INTERACTIONS */
.tmls-copa a { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.tmls-copa a:hover { transform: translateY(-2px); }
.tmls-copa__article:not(:first-child):hover { transform: none !important; }

@media (max-width: 900px) {
  .tmls-copa { width: min(100% - 22px, 720px); padding-top: 12px; }
  .tmls-copa__header { min-height: 0; padding: 30px 24px 130px; border-radius: 22px; }
  .tmls-copa__hosts { grid-template-columns: 1fr; }
  .tmls-copa__teams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmls-copa__equipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmls-copa__articles { grid-template-columns: 1fr; }
  .tmls-copa__article:first-child { margin-bottom: 18px; }
  .tmls-copa__info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .tmls-copa { width: 100%; padding: 0 10px 44px; }
  .tmls-copa__header { border-radius: 0 0 24px 24px; margin-inline: -10px; padding: 28px 18px 120px; }
  .tmls-copa__section { padding: 18px 14px; border-radius: 16px; }
  .tmls-copa__title { font-size: clamp(2.35rem, 15vw, 4.25rem); }
  .tmls-copa__sub { font-size: 1rem; }
  .tmls-copa__teams-grid { grid-template-columns: 1fr; }
  .tmls-copa__team-card { min-height: 82px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .tmls-copa__equipe-card { min-height: 120px; }
  .tmls-copa__article:not(:first-child) { grid-template-columns: 78px 1fr; }
  .tmls-copa__article:not(:first-child) .tmls-copa__article-img { width: 78px; height: 64px; }
}
