/* ============================================================
   HOMEM GOL — Página de Matéria
   (carrega depois de styles.css; reusa todos os tokens)
   ============================================================ */

/* ---------- reading progress ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.read-progress .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .08s linear;
}
[data-theme="dark"] .read-progress .bar { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 22px 0 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-mut); }
.breadcrumb a { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--green); }
[data-theme="dark"] .breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }

/* ---------- article shell ---------- */
.article { padding: 26px 0 70px; }
.article-wrap { max-width: 1180px; margin: 0 auto; }

/* header */
.art-head { max-width: 760px; margin: 0 auto 34px; text-align: left; }
.art-head .cat-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.art-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.015em;
  margin: 0 0 20px; color: var(--text); text-wrap: balance;
}
.art-head .standfirst {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 22px; line-height: 1.5; color: var(--text-sec); margin: 0 0 28px;
  text-wrap: pretty;
}

/* byline + meta row */
.art-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.art-author { display: flex; align-items: center; gap: 13px; }
.art-author .avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none; overflow: hidden;
  border: 1.5px solid var(--gold); background: var(--bg-alt);
}
.art-author .avatar.illustrated { background: radial-gradient(circle at 50% 36%, var(--gold-bright), var(--gold) 44%, var(--green) 100%); position: relative; }
.art-author .avatar.illustrated::after { content:""; position:absolute; inset:0; background:url("assets/homem-gol-shield.png") center 60%/auto 88% no-repeat; opacity:.85; mix-blend-mode: luminosity; }
.art-author .by-name { font-weight: 600; font-size: 15px; color: var(--text); }
.art-author .by-name a:hover { color: var(--green); }
.art-author .by-sub { font-size: 13px; color: var(--text-sec); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.art-author .ai-seal { margin-top: 0; }
.art-meta .meta-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mut); }

/* ---------- hero figure ---------- */
.art-figure { margin: 0 0 8px; }
.art-figure .ph { aspect-ratio: 16/9; border-radius: 6px; }
figure.art-figure { max-width: 1020px; margin: 0 auto 8px; }
.art-figure figcaption,
.fig-cap {
  max-width: 760px; margin: 12px auto 0; font-size: 13px; color: var(--text-mut);
  line-height: 1.5; display: flex; gap: 8px;
}
.fig-cap .cap-credit { font-style: italic; }
.fig-cap::before { content: ""; width: 16px; height: 1px; background: var(--gold); flex: none; margin-top: 10px; }

/* ============================================================
   ARTICLE BODY  (text column + share rail)
   ============================================================ */
.art-layout {
  display: grid; grid-template-columns: 64px minmax(0, 760px) 1fr;
  gap: 0 40px; max-width: 1180px; margin: 40px auto 0; align-items: start;
}
.share-rail { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; }
.share-rail .sr-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); writing-mode: vertical-rl; margin: 0 auto 6px; }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-sec); display: grid; place-items: center;
  cursor: pointer; transition: all .18s ease;
}
.share-btn:hover { border-color: var(--gold); color: var(--green); transform: translateY(-2px); }
[data-theme="dark"] .share-btn:hover { color: var(--gold-bright); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.copied { border-color: var(--green); color: var(--green); }

.art-body { font-size: 19px; line-height: 1.72; color: var(--text); max-width: 760px; }
.art-body > p { margin: 0 0 26px; }
.art-body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; float: left;
  font-size: 76px; line-height: .82; padding: 6px 14px 0 0; color: var(--green);
}
[data-theme="dark"] .art-body > p:first-of-type::first-letter { color: var(--gold); }
.art-body h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 27px; line-height: 1.2;
  letter-spacing: -.01em; margin: 44px 0 16px; color: var(--text);
}
.art-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 34px 0 12px; }
.art-body a.inline { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
[data-theme="dark"] .art-body a.inline { color: var(--gold-bright); }
.art-body strong { font-weight: 600; }

/* pull quote */
.pullquote {
  margin: 40px 0; padding: 6px 0 6px 30px; border-left: 3px solid var(--gold);
}
.pullquote p {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: 27px; line-height: 1.32; color: var(--text); margin: 0 0 12px; letter-spacing: -.01em;
}
.pullquote cite { font-style: normal; font-size: 14px; color: var(--text-mut); font-family: var(--font-body); }
.pullquote cite b { color: var(--text-sec); font-weight: 600; }

/* inline figure within body */
.body-figure { margin: 38px 0; }
.body-figure .ph { aspect-ratio: 3/2; border-radius: 6px; }
.body-figure figcaption { font-size: 13px; color: var(--text-mut); margin-top: 10px; line-height: 1.5; display: flex; gap: 8px; }
.body-figure figcaption::before { content:""; width:16px; height:1px; background:var(--gold); flex:none; margin-top:10px; }

/* stat callout */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 38px 0; }
.stat-cell { background: var(--surface); padding: 22px 20px; text-align: center; }
.stat-cell .s-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--green); }
[data-theme="dark"] .stat-cell .s-num { color: var(--gold-bright); }
.stat-cell .s-lab { font-size: 12.5px; color: var(--text-sec); margin-top: 8px; line-height: 1.35; }

/* end mark + tags + share */
.art-end { max-width: 760px; margin: 44px auto 0; }
.art-end .endmark { display: flex; align-items: center; gap: 12px; color: var(--text-mut); font-size: 13px; margin-bottom: 30px; }
.art-end .endmark::before, .art-end .endmark::after { content:""; height:1px; background: var(--border); flex: 1; }
.art-end .endmark img { width: 22px; opacity: .8; }
.art-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.art-tags a {
  font-size: 13px; color: var(--text-sec); border: 1px solid var(--border-str); border-radius: 100px;
  padding: 7px 15px; transition: all .16s ease;
}
.art-tags a:hover { border-color: var(--gold); color: var(--green); background: var(--bg-alt); }

/* author bio card */
.author-card {
  display: flex; gap: 18px; align-items: flex-start; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 10px; padding: 24px 26px; margin-bottom: 14px;
}
[data-theme="dark"] .author-card { background: var(--surface); }
.author-card .ac-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; border: 2px solid var(--gold); background: radial-gradient(circle at 50% 36%, var(--gold-bright), var(--gold) 44%, var(--green) 100%); position: relative; overflow: hidden; }
.author-card .ac-avatar::after { content:""; position:absolute; inset:0; background:url("assets/homem-gol-shield.png") center 60%/auto 88% no-repeat; opacity:.85; mix-blend-mode: luminosity; }
.author-card .ac-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); }
.author-card .ac-role { font-size: 13px; color: var(--gold-deep); font-weight: 600; letter-spacing: .02em; margin: 3px 0 10px; }
[data-theme="dark"] .author-card .ac-role { color: var(--gold); }
.author-card .ac-bio { font-size: 14.5px; line-height: 1.6; color: var(--text-sec); margin: 0; }

/* mobile inline share (below meta) */
.share-inline { display: none; gap: 9px; margin-top: 16px; }

/* ============================================================
   RELATED
   ============================================================ */
.related { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0; }
[data-theme="dark"] .related { background: var(--navy-deep); }
.related .section-head { border-color: var(--gold); max-width: 1180px; margin-left: auto; margin-right: auto; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1180px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .art-layout { grid-template-columns: 1fr; gap: 0; }
  .share-rail { display: none; }
  .art-body { margin: 0 auto; }
  .share-inline { display: flex; }
}
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .article { padding: 14px 0 50px; }
  .breadcrumb { display: none; }
  .art-head { margin-bottom: 24px; }
  .art-head h1 { font-size: clamp(28px, 8vw, 36px); }
  .art-head .standfirst { font-size: 18px; }
  .art-meta { gap: 14px; }
  .art-meta .meta-right { width: 100%; }
  .art-figure .ph, figure.art-figure .ph { aspect-ratio: 4/3; border-radius: 0; }
  figure.art-figure { margin-left: -18px; margin-right: -18px; max-width: none; }
  .art-figure figcaption, .fig-cap { padding: 0 18px; }
  .art-body { font-size: 17.5px; line-height: 1.7; }
  .art-body > p:first-of-type::first-letter { font-size: 62px; }
  .pullquote p { font-size: 22px; }
  .art-body h2 { font-size: 23px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-cell { padding: 18px; }
  .stat-cell .s-num { font-size: 34px; }
  .related-grid { grid-template-columns: 1fr; gap: 22px; }
  .related .card { display: grid; grid-template-columns: 116px 1fr; column-gap: 14px; }
  .related .card .ph { grid-row: 1 / span 4; aspect-ratio: 1/1; margin-bottom: 0; }
  .related .card .credit { display: none; }
  .related .card .meta-row, .related .card h4, .related .card .card-by { grid-column: 2; }
  .author-card { flex-direction: column; gap: 14px; }
}
/* ── Byline IA (M26) ───────────────────────────────────────── */
.ia-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  padding: 7px 12px;
  background: #f9f9f4;
  border-left: 2px solid var(--gold, #C6A24E);
  border-radius: 0 4px 4px 0;
}
.ia-byline a { color: var(--green, #15402A); }
.ia-byline svg { color: var(--gold, #C6A24E); flex-shrink: 0; }
