/*
 * article-css-patch.css
 * Telegrama Digital — Verge Style v2
 *
 * PATCH FILE — applies on top of conexaoesg-style-final.css
 * Overrides / replaces all rules in section 12 (SINGLE ARTICLE)
 * and adds the new 2-column hero grid, sidebar, share row, etc.
 *
 * Variables already defined in the base CSS:
 *   --clr-accent-teal:  #00cfaa
 *   --clr-accent-purple:#7c3aed
 *   --clr-text-article: #1a1a1a
 *   --clr-meta:         #888888
 *   --clr-bg-article:   #ffffff
 *   --font-base:        'Inter', …
 *   --gap:              (layout gap)
 *   --max-width:        (site max-width)
 */

/* ============================================================
   OVERRIDES — section 12 replacements
   ============================================================ */

/* Remove old centered header alignment */
.verge-article-header {
  margin-bottom: 28px;
  text-align: left;          /* LEFT-aligned, overrides old center */
}

/* Categories: teal, left-aligned, "+" prefix */
.verge-article-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.verge-category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent-teal);   /* teal, not purple */
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.verge-category-tag:hover {
  opacity: 0.75;
}

/* Article title: LEFT-aligned, larger, max-width 780px */
.verge-article-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--clr-text-article);
  margin: 0 0 0 0;
  max-width: 780px;
  text-align: left;           /* LEFT, overrides any center */
}

/* Widen the article wrapper to accommodate the wider layout */
.verge-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px var(--gap) 80px;
}

/* ============================================================
   2-COLUMN HERO GRID
   Left  ~60%: featured image + caption
   Right ~40%: excerpt / byline / share / disclaimer
   ============================================================ */
.verge-article-hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;   /* ~60% / ~40% */
  gap: 36px;
  align-items: start;
  margin: 28px 0 40px;
}

/* LEFT column: image */
.verge-article-image-col {
  margin: 0;
  padding: 0;
}

.verge-article-image-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.verge-image-caption {
  font-size: 0.76rem;
  color: var(--clr-meta);
  margin-top: 8px;
  line-height: 1.45;
  font-style: italic;
}

/* Placeholder when no image */
.verge-no-image {
  background: #f0f0f0;
  min-height: 260px;
}

/* RIGHT column: sidebar */
.verge-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Excerpt block: "/" slash + italic text */
.verge-article-excerpt {
  margin-bottom: 20px;
}

.verge-slash {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--clr-accent-teal);
  margin-right: 4px;
  vertical-align: middle;
  font-style: normal;
  letter-spacing: -0.05em;
}

.verge-excerpt-text {
  display: inline;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: #333333;
  font-weight: 400;
  margin: 0;
}

/* Byline: "por Autor (teal link)" */
.verge-article-byline {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--clr-meta);
}

.verge-byline-label {
  color: var(--clr-meta);
  font-size: 0.88rem;
}

.verge-author-link {
  color: var(--clr-accent-teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.15s ease;
}

.verge-author-link:hover {
  opacity: 0.75;
}

/* Date + reading time row */
.verge-byline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 16px;
}

.verge-byline-date {
  font-size: 0.8rem;
  color: var(--clr-meta);
}

.verge-byline-reading-time {
  font-size: 0.8rem;
  color: var(--clr-meta);
  border-left: 1px solid #ddd;
  padding-left: 14px;
}

/* Share icons row */
.verge-share-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.verge-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #555;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  padding: 0;
}

.verge-share-btn:hover,
.verge-share-btn:focus-visible {
  border-color: var(--clr-accent-teal);
  color: var(--clr-accent-teal);
  background: rgba(0, 207, 170, 0.06);
  outline: none;
}

.verge-share-btn--copied {
  border-color: var(--clr-accent-teal);
  color: var(--clr-accent-teal);
  background: rgba(0, 207, 170, 0.1);
}

.verge-comment-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #555;
  margin-left: 6px;
  border-left: 1px solid #e0e0e0;
  padding-left: 12px;
}

/* Thin horizontal divider in sidebar */
.verge-sidebar-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2px 0 14px;
}

/* Disclaimer text */
.verge-sidebar-disclaimer {
  font-size: 0.72rem;
  color: var(--clr-meta);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   ARTICLE BODY — update to match spec
   ============================================================ */
.verge-article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text-article);
  max-width: 720px;           /* narrower reading column */
}

.verge-article-body p {
  margin-bottom: 1.6em;
}

.verge-article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-text-article);
  margin: 2em 0 0.6em;
  border-bottom: 2px solid var(--clr-accent-teal); /* teal accent for h2 underline */
  padding-bottom: 8px;
}

.verge-article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text-article);
  margin: 1.5em 0 0.5em;
}

.verge-article-body a {
  color: var(--clr-accent-teal);   /* teal links in body */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.verge-article-body a:hover {
  color: var(--clr-text-article);
}

.verge-article-body blockquote {
  margin: 2em 0;
  padding: 0 0 0 24px;
  border-left: 4px solid var(--clr-accent-teal);
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
}

.verge-article-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 0;
  color: var(--clr-accent-teal);
}

/* ============================================================
   ARTICLE TAGS FOOTER — use teal accent
   ============================================================ */
.verge-tag:hover {
  border-color: var(--clr-accent-teal);
  color: var(--clr-accent-teal);
}

/* ============================================================
   RELATED POSTS — teal section label
   ============================================================ */
.verge-related .verge-section-label {
  color: var(--clr-accent-teal);
  padding: 0 0 var(--gap);
  border-bottom: 1px solid #e5e5e5;
}

.verge-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}

.verge-related-item h4 a:hover {
  color: var(--clr-accent-teal);
}

/* ============================================================
   RESPONSIVE — single column on mobile (≤ 680px)
   ============================================================ */
@media (max-width: 680px) {

  .verge-article-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0 28px;
  }

  /* On mobile, sidebar comes AFTER the image — already natural DOM order */

  .verge-article-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .verge-slash {
    font-size: 2.5rem;
  }

  .verge-excerpt-text {
    font-size: 1rem;
  }

  .verge-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .verge-related-grid {
    grid-template-columns: 1fr;
  }

  .verge-share-row {
    gap: 6px;
  }
}
