/* ================================================================
   TERRITÓRIO MLS — MLS Hub Page
   ESPN-style editorial density. Mobile-first. Sports app behavior.
   ================================================================ */

/* ── Page-level overrides ── */
body.page-template-page-mls-hub-php {
  background: #f5f5f5;
  color: #111;
}
body.page-template-page-mls-hub-php .site-content,
body.page-template-page-mls-hub-php.one-container .site-content {
  width: 100%;
  max-width: none;
  padding: 0;
}
body.page-template-page-mls-hub-php .site.grid-container {
  max-width: 100%;
  padding: 0;
}
body.page-template-page-mls-hub-php .featured-image.page-header-image,
body.page-template-page-mls-hub-php .entry-header { display: none; }

/* ── Container ── */
.hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* ================================================================
   HUB HEADER + SUBNAV
   ================================================================ */

.hub__header {
  padding: 12px 0 0;
  margin-bottom: 12px;
}
.hub__brand {
  margin-bottom: 8px;
}
.hub__brand-label {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}
.hub__brand-desc {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}
.hub__nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid #ddd;
}
.hub__nav::-webkit-scrollbar { display: none; }
.hub__nav a {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.hub__nav a:hover {
  color: #c0392b;
  border-bottom-color: #c0392b;
}

/* ================================================================
   SHARED ELEMENTS
   ================================================================ */

.hub__section {
  margin-bottom: 16px;
}
.hub__section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 2px solid #111;
  margin-bottom: 10px;
}
.hub__section-header--dark {
  border-bottom-color: #c0392b;
}
.hub__section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #111;
  margin: 0;
}
.hub__section-more {
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: none;
  white-space: nowrap;
}
.hub__section-more:hover { text-decoration: underline; }

.hub__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c0392b;
  margin-bottom: 4px;
}
.hub__meta {
  font-size: 12px;
  color: #888;
  opacity: .7;
}
.hub__meta--light {
  color: #aaa;
  opacity: .7;
}

/* ================================================================
   HERO + QUICK STACK
   ================================================================ */

.hub__hero-grid {
  margin-bottom: 16px;
}

/* Hero */
.hub__hero {
  margin-bottom: 12px;
}
.hub__hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hub__hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 240px;
}
.hub__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.hub__hero-link:hover .hub__hero-media img {
  transform: scale(1.02);
}
.hub__hero-body {
  padding-top: 8px;
}
.hub__hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub__hero-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.45;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quick Stories */
.hub__quick {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hub__quick-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  min-height: 44px;
  align-items: center;
}
.hub__quick-item:last-child { border-bottom: none; }
.hub__quick-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 64px;
  overflow: hidden;
}
.hub__quick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub__quick-body {
  flex: 1;
  min-width: 0;
}
.hub__quick-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 2px;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub__quick-title a {
  color: inherit;
  text-decoration: none;
}
.hub__quick-title a:hover { color: #c0392b; }

/* ================================================================
   STANDINGS
   ================================================================ */

.hub__standings {
  background: #fff;
  padding: 12px 16px;
  margin-left: -16px;
  margin-right: -16px;
}
.hub__stand-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hub__stand-conf-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #444;
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}
.hub__stand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.hub__stand-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  padding: 3px 4px;
  border-bottom: 1px solid #eee;
}
.hub__stand-th--pos { width: 24px; text-align: center; }
.hub__stand-th--club { text-align: left; }
.hub__stand-th--pts { color: #111; }
.hub__stand-table td {
  padding: 4px;
  text-align: center;
  border-bottom: 1px solid #f5f5f5;
  color: #444;
  height: 36px;
}
.hub__stand-pos {
  font-weight: 600;
  color: #888;
  text-align: center;
}
.hub__stand-club {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.hub__stand-club a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
}
.hub__stand-club a:hover { color: #c0392b; }
.hub__stand-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.hub__stand-pts {
  font-weight: 700;
  color: #111;
}
.hub__stand-row--playoff .hub__stand-pos {
  color: #c0392b;
  font-weight: 700;
}

/* ================================================================
   NEWS FEED
   ================================================================ */

.hub__feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hub__feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  min-height: 44px;
  align-items: flex-start;
}
.hub__feed-item:last-child { border-bottom: none; }
.hub__feed-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 72px;
  overflow: hidden;
}
.hub__feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub__feed-body {
  flex: 1;
  min-width: 0;
}
.hub__feed-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 3px;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub__feed-title a {
  color: inherit;
  text-decoration: none;
}
.hub__feed-title a:hover { color: #c0392b; }
.hub__feed-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   ANALYSIS — dark section
   ================================================================ */

.hub__analysis {
  background: #111;
  color: #fff;
  padding: 16px;
  margin-left: -16px;
  margin-right: -16px;
}
.hub__analysis .hub__section-title { color: #fff; }
.hub__analysis .hub__section-more { color: #e74c3c; }

.hub__analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hub__analysis-card {
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
}
.hub__analysis-card:last-child { border-bottom: none; padding-bottom: 0; }
.hub__analysis-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.hub__analysis-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 8px;
}
.hub__analysis-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter .2s;
}
.hub__analysis-link:hover .hub__analysis-media img {
  filter: brightness(1);
}
.hub__analysis-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 3px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   TRANSFER TRACKER
   ================================================================ */

.hub__transfers {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hub__transfer-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  min-height: 44px;
}
.hub__transfer-item:last-child { border-bottom: none; }
.hub__transfer-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0392b;
  margin-top: 6px;
}
.hub__transfer-body {
  flex: 1;
  min-width: 0;
}
.hub__transfer-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 2px;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub__transfer-title a {
  color: inherit;
  text-decoration: none;
}
.hub__transfer-title a:hover { color: #c0392b; }

/* ================================================================
   BETTING MODULE
   ================================================================ */

.hub__betting {
  background: #fff;
  padding: 12px 16px;
  margin-left: -16px;
  margin-right: -16px;
}
.hub__bet-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Featured pick */
.hub__bet-featured {
  margin-bottom: 10px;
}
.hub__bet-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hub__bet-featured-media {
  aspect-ratio: 16 / 9;
  max-height: 180px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hub__bet-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub__bet-featured-body {
  padding: 0;
}
.hub__bet-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fef2f2;
  color: #c0392b;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.hub__bet-featured-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 3px;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bet list items */
.hub__bet-item {
  border-bottom: 1px solid #eee;
}
.hub__bet-item:last-child { border-bottom: none; }
.hub__bet-item-link {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.hub__bet-item-link:hover .hub__bet-item-title { color: #c0392b; }
.hub__bet-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px;
  color: #111;
  transition: color .15s;
}

/* ================================================================
   CLUBS CAROUSEL
   ================================================================ */

.hub__clubs-track {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 6px;
  padding-bottom: 4px;
}
.hub__clubs-track::-webkit-scrollbar { display: none; }
.hub__club-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 72px;
  min-height: 44px;
  scroll-snap-align: start;
  transition: border-color .15s;
}
.hub__club-chip:hover {
  border-color: #c0392b;
}
.hub__club-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.hub__club-name {
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}

/* ================================================================
   NEWSLETTER CTA
   ================================================================ */

.hub__newsletter {
  text-align: center;
  padding: 20px 16px;
  border-top: 1px solid #ddd;
  margin-top: 8px;
}
.hub__newsletter-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.hub__newsletter-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}
.hub__newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}
.hub__newsletter-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  min-height: 44px;
}
.hub__newsletter-input:focus {
  border-color: #c0392b;
}
.hub__newsletter-btn {
  padding: 10px 16px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s;
}
.hub__newsletter-btn:hover {
  background: #a93226;
}

/* ================================================================
   DESKTOP (768px+)
   ================================================================ */

@media (min-width: 768px) {
  .hub { padding: 0 24px 48px; }
  .hub__header { padding: 20px 0 0; margin-bottom: 16px; }
  .hub__brand-label { font-size: 28px; }
  .hub__section { margin-bottom: 28px; }

  /* Hero grid: 60/40 */
  .hub__hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
  }
  .hub__hero { margin-bottom: 0; }
  .hub__hero-media { max-height: none; }
  .hub__hero-title { font-size: 28px; -webkit-line-clamp: unset; }
  .hub__hero-excerpt { display: block; -webkit-line-clamp: 3; }

  /* Standings side-by-side */
  .hub__standings {
    padding: 20px 24px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
  }
  .hub__stand-grid {
    flex-direction: row;
    gap: 32px;
  }
  .hub__stand-conf { flex: 1; }
  .hub__stand-table { font-size: 13px; }

  /* Feed thumb bigger */
  .hub__feed-thumb {
    width: 160px;
    height: 90px;
  }
  .hub__feed-title { font-size: 18px; }
  .hub__feed-item { padding: 12px 0; }

  /* Analysis 2-col */
  .hub__analysis {
    padding: 24px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
  }
  .hub__analysis-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Betting: featured left, list right */
  .hub__betting {
    padding: 20px 24px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
  }
  .hub__bet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0 24px;
  }
  .hub__bet-featured {
    grid-row: 1 / -1;
    margin-bottom: 0;
  }
  .hub__bet-featured-media { max-height: none; }

  /* Clubs bigger on desktop */
  .hub__club-chip {
    flex-direction: row;
    min-width: auto;
    padding: 8px 14px;
    font-size: 13px;
  }
  .hub__club-logo { width: 24px; height: 24px; }
}

/* ================================================================
   LARGE DESKTOP (1024px+)
   ================================================================ */

@media (min-width: 1024px) {
  .hub__hero-grid {
    grid-template-columns: 1fr 380px;
  }
  .hub__hero-title { font-size: 32px; }
  .hub__feed-title { font-size: 20px; }

  /* Analysis 4-col */
  .hub__analysis-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hub__analysis-card { border-bottom: none; padding-bottom: 0; }

  /* Quick stories tighter */
  .hub__quick-title { font-size: 15px; }
}
