/* ================================================================
   TERRITÓRIO MLS — Homepage (Athletic-style Newsroom)
   Mobile-first. Self-contained. No dark-mode variable dependency.
   ================================================================ */

/* ── Page-level overrides ── */
body.home,
body.home.one-container .site-content {
  background: #fafafa;
  color: #111;
}

body.home .site-content,
body.home.one-container .site-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.home .site.grid-container {
  max-width: 100%;
  padding: 0;
}

body.home .featured-image.page-header-image { display: none; }

/* ── Container ── */
.hp {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* ================================================================
   HERO GRID
   Mobile: stacked (hero then side-stack)
   Desktop: 60/40 asymmetric
   ================================================================ */

.hp-hero-grid {
  margin-bottom: 20px;
}

/* ── Hero Article ── */
.hp-hero {
  margin-bottom: 16px;
}

.hp-hero__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hp-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
}

.hp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.hp-hero__link:hover .hp-hero__media img {
  transform: scale(1.02);
}

.hp-hero__body {
  padding-top: 12px;
}

.hp-hero__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 6px;
}

.hp-hero__title {
  margin: 0 0 8px;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
}

.hp-hero__excerpt {
  display: none; /* hidden on mobile per spec */
}

.hp-hero__meta {
  font-size: 12px;
  color: #666;
}

/* ── Side Stack (top stories) ── */
.hp-side-stack {
  border-top: 2px solid #111;
  padding-top: 12px;
}

/* ================================================================
   COMPACT ROW — the density workhorse
   thumb right, headline left
   ================================================================ */

.hp-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

.hp-row:last-child {
  border-bottom: none;
}

.hp-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-row__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c0392b;
}

.hp-row__title {
  margin: 0;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111;
}

.hp-row__title a {
  color: inherit;
  text-decoration: none;
}

.hp-row__title a:hover {
  color: #c0392b;
}

.hp-row__meta {
  font-size: 12px;
  color: #888;
}

.hp-row__thumb {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
}

.hp-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-row__thumb--sm {
  width: 64px;
  height: 48px;
}

.hp-row--tight {
  padding: 10px 0;
}

/* ================================================================
   SECTIONS
   ================================================================ */

.hp-section {
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.hp-section--last {
  border-bottom: none;
}

.hp-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hp-section__title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.hp-section__more {
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: none;
  white-space: nowrap;
}

.hp-section__more:hover {
  text-decoration: underline;
}

/* ── Wire (Últimas) ── */
.hp-wire {
  display: grid;
  gap: 0;
}

/* ── Feature Block (1 medium + compact side) ── */
.hp-feature-block {
  display: grid;
  gap: 0;
}

.hp-feature {
  margin-bottom: 12px;
}

.hp-feature__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hp-feature__media {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
}

.hp-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-feature__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-feature__title {
  margin: 0;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

.hp-feature__link:hover .hp-feature__title {
  color: #c0392b;
}

.hp-feature__side {
  border-top: 1px solid #e5e5e5;
}

/* ── 2-col Grid ── */
.hp-grid-2col {
  display: grid;
  gap: 0;
}

/* ── Ticker (ultra compact) ── */
.hp-ticker {
  display: grid;
  gap: 0;
}

.hp-ticker__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.hp-ticker__item:last-child {
  border-bottom: none;
}

.hp-ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0392b;
  flex-shrink: 0;
  margin-top: 6px;
}

.hp-ticker__title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.hp-ticker__title a {
  color: inherit;
  text-decoration: none;
}

.hp-ticker__title a:hover {
  color: #c0392b;
}

.hp-ticker__time {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

/* ── Quick Links ── */
.hp-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-quicklink {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}

.hp-quicklink:hover {
  border-color: #c0392b;
  background: #fef5f4;
}

/* ── Socials ── */
.hp-socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hp-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.hp-social:hover {
  color: #c0392b;
}

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

@media (min-width: 768px) {
  .hp {
    padding: 20px 24px 56px;
  }

  .hp-hero__title {
    font-size: 36px;
  }

  .hp-hero__excerpt {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .hp-wire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .hp-wire .hp-row:nth-child(odd) {
    padding-right: 16px;
    border-right: 1px solid #e5e5e5;
  }

  .hp-wire .hp-row:nth-child(even) {
    padding-left: 16px;
  }

  .hp-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .hp-grid-2col .hp-row:nth-child(odd) {
    padding-right: 16px;
    border-right: 1px solid #e5e5e5;
  }

  .hp-grid-2col .hp-row:nth-child(even) {
    padding-left: 16px;
  }
}

/* ================================================================
   DESKTOP (1024px+) — Athletic-style asymmetric hero
   ================================================================ */

@media (min-width: 1024px) {
  .hp {
    padding: 24px 32px 64px;
  }

  /* Hero grid: 60/40 asymmetric */
  .hp-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid #111;
    padding-bottom: 24px;
  }

  .hp-hero {
    margin-bottom: 0;
    padding-right: 24px;
    border-right: 1px solid #e5e5e5;
  }

  .hp-hero__media {
    aspect-ratio: 3 / 2;
    max-height: none;
  }

  .hp-hero__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .hp-hero__excerpt {
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
  }

  .hp-side-stack {
    border-top: none;
    padding-top: 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hp-side-stack .hp-row__title {
    font-size: 16px;
  }

  /* Section density */
  .hp-section {
    padding: 24px 0;
  }

  /* Feature block: image left, compact side right */
  .hp-feature-block {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
  }

  .hp-feature {
    margin-bottom: 0;
  }

  .hp-feature__title {
    font-size: 26px;
  }

  .hp-feature__side {
    border-top: none;
    border-left: 1px solid #e5e5e5;
    padding-left: 20px;
  }

  /* Wider wire */
  .hp-wire {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (min-width: 1280px) {
  .hp {
    max-width: 1320px;
  }

  .hp-hero__title {
    font-size: 48px;
  }

  .hp-row__title {
    font-size: 18px;
  }
}
