/* ================================================================
   TERRITÓRIO MLS — Single Post Redesign
   Mobile-first. Self-contained. Athletic-style editorial.
   ================================================================ */

/* ── Page-level overrides — strip ALL wrapper constraints ── */
body.single-post {
  background: #fff;
  color: #111;
}

body.single-post .site-content,
body.single-post.one-container .site-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto;
}

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

body.single-post .content-area,
body.single-post .site-main {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ── Article shell: flex column for reordering ── */
body.single-post .inside-article {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ── Visual order (header[kicker+title]→dek→image→caption→meta→share→body) ── */
body.single-post .entry-header         { order: 1; }
body.single-post .tmls-post-resumo     { order: 2; }
body.single-post .featured-image       { order: 3; }
body.single-post .tmls-featured-caption { order: 4; }
body.single-post .tmls-article-meta    { order: 5; }
body.single-post .tmls-article-actions { order: 6; }
body.single-post .tmls-mh             { order: 7; }
body.single-post .entry-content        { order: 8; }
body.single-post .tmls-post-guides     { order: 9; }
body.single-post .tmls-ad              { order: 10; }
body.single-post .post-navigation      { order: 11; display: none; }
body.single-post .comments-area        { order: 12; }

/* ── Kicker (inside entry-header, before title) ── */
.tmls-article-kicker {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 8px;
}

.tmls-article-kicker a {
  color: inherit;
  text-decoration: none;
}

/* ── Headline ── */
body.single-post .entry-header {
  padding: 0 !important;
  margin: 24px 0 0;
}

body.single-post h1.entry-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  color: #111;
  text-align: left;
}

/* ── Entry meta (byline/date) — hide from GP header, we inject our own ── */
body.single-post .entry-header .entry-meta {
  display: none;
}

/* ── Dek / Excerpt ── */
body.single-post .tmls-post-resumo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.45;
  color: #4b5563;
  margin: 0 0 20px;
  padding: 0 !important;
  border-bottom: none !important;
  font-style: normal;
}

/* ── Hero image ── */
body.single-post .featured-image {
  margin: 0 -20px;
  padding: 0;
  width: calc(100% + 40px);
}

body.single-post .featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* ── Caption ── */
body.single-post .tmls-featured-caption {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
  font-style: normal;
  margin: 8px 0 0;
  text-align: left;
}

/* ── Byline/date (custom injected) ── */
.tmls-article-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 13px;
  color: #4b5563;
  margin: 16px 0 0;
  line-height: 1.4;
}

.tmls-article-meta a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.tmls-article-meta .meta-sep {
  color: #9ca3af;
  margin: 0 4px;
}

/* ── Share row ── */
.tmls-article-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 24px;
  flex-wrap: wrap;
}

.tmls-article-actions a,
.tmls-article-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tmls-article-actions a:hover,
.tmls-article-actions button:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

/* ── Match Header (keep but tighten) ── */
body.single-post .tmls-mh {
  margin: 0 -20px 24px;
  width: calc(100% + 40px);
}

/* ── Body typography ── */
body.single-post .entry-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.65;
  color: #111;
  max-width: 100%;
  padding: 0 !important;
  margin: 0;
}

body.single-post .entry-content p {
  margin: 0 0 24px;
}

body.single-post .entry-content a {
  color: #0057b8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post .entry-content a:hover {
  color: #003d80;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  color: #111;
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 14px;
}

body.single-post .entry-content h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

body.single-post .entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

body.single-post .entry-content blockquote {
  border-left: 3px solid #111;
  padding: 0 0 0 16px;
  margin: 28px 0;
  font-style: italic;
  color: #374151;
}

body.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 14px;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

body.single-post .entry-content th {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom: 2px solid #d1d5db;
}

body.single-post .entry-content img {
  border-radius: 4px;
  height: auto;
}

body.single-post .entry-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

/* ── Guias & Recursos (bottom nav) ── */
body.single-post .tmls-post-guides {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

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

body.single-post .tmls-post-guides__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-post .tmls-post-guides__link {
  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;
}

body.single-post .tmls-post-guides__link:hover {
  border-color: #c0392b;
  background: #fef5f4;
}

/* ── Ad spacing ── */
body.single-post .tmls-ad {
  margin: 28px 0;
}

/* ── Hide WordPress barnacles ── */
body.single-post .cat-links,
body.single-post .tags-links,
body.single-post .post-navigation,
body.single-post .nav-previous,
body.single-post .nav-next,
body.single-post .taxonomy-description {
  display: none;
}

/* ── Very small phones ── */
@media (max-width: 380px) {
  body.single-post .entry-content {
    font-size: 17px;
  }

  body.single-post h1.entry-title {
    font-size: 26px;
  }
}

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

@media (min-width: 768px) {
  body.single-post .inside-article {
    max-width: 780px;
    padding: 0 24px 56px;
  }

  body.single-post .featured-image {
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  body.single-post .entry-content {
    font-size: 20px;
  }

  body.single-post h1.entry-title {
    font-size: clamp(36px, 5vw, 48px);
  }

  body.single-post .tmls-post-resumo {
    font-size: 20px;
  }
}

/* ================================================================
   DESKTOP (1024px+) — editorial layout with optional sidebar
   ================================================================ */

@media (min-width: 1024px) {
  body.single-post .inside-article {
    max-width: 820px;
    padding: 0 32px 64px;
  }

  body.single-post .featured-image {
    margin: 0;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
  }

  body.single-post .featured-image img {
    border-radius: 6px;
  }

  body.single-post h1.entry-title {
    font-size: clamp(42px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  body.single-post .entry-content {
    font-size: 21px;
    line-height: 1.68;
  }

  body.single-post .entry-content p {
    margin: 0 0 26px;
  }

  body.single-post .tmls-post-resumo {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 24px;
  }

  body.single-post .tmls-featured-caption {
    max-width: 100%;
    margin: 10px 0 0;
  }

  .tmls-article-kicker {
    margin: 0 0 10px;
  }

  .tmls-article-meta {
    margin: 20px 0 0;
  }

  .tmls-article-actions {
    margin: 16px 0 32px;
  }
}

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

@media (min-width: 1280px) {
  body.single-post .inside-article {
    max-width: 880px;
  }

  body.single-post h1.entry-title {
    font-size: 56px;
  }
}
