/* =========================================================================
   Lab-iMetrics — pages.css
   Interior page components in the Home visual language.
   Loaded after home.css. Tokens come from home.css :root.
   ========================================================================= */

/* ===== Page hero (interior) ===== */
.page-hero { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero .inner { max-width: 920px; }
.page-hero .tagline { display: block; margin-bottom: 16px; }
.page-hero .lead { margin-top: 24px; max-width: 60ch; }
.page-hero.center { text-align: center; }
.page-hero.center .inner { margin-inline: auto; }
.page-hero.center .lead { margin-inline: auto; }

.hairline { height: 1px; background: var(--line-soft); border: 0; }

/* ===== Section header (split / stacked) ===== */
.sec-head { max-width: 760px; }
.sec-head .tagline { display: block; margin-bottom: 14px; }
.sec-head .h-sec { margin-bottom: 0; }
.sec-head .lead { margin-top: 22px; }
.sec-head.center { max-width: 820px; margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ===== Generic media placeholder (uses .ph-img from home.css) ===== */
.media-box { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface); }

/* ===== Slot (conteúdo a preencher) ===== */
.slot {
  border: 1px dashed var(--line); border-radius: 8px;
  background: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(255,255,255,0.03) 11px, rgba(255,255,255,0.03) 12px);
  color: var(--body-dim); display: flex; flex-direction: column; gap: 6px; padding: 22px;
}
.slot .slot-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 7px; }
.slot .slot-tag svg { width: 13px; height: 13px; }
.slot p { font-size: 0.9rem; color: var(--body-dim); }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); color: var(--body); }
.badge.teal { color: var(--teal); border-color: rgba(26,188,156,0.4); }
.badge.amber { color: var(--amber); border-color: rgba(243,156,18,0.4); }

/* ===== Manifesto block (sobre) ===== */
.manifesto-text { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 40px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.manifesto-text .hl { color: var(--teal); font-style: italic; font-weight: 700; }
.manifesto-sub { margin-top: 28px; max-width: 60ch; color: var(--body); font-size: clamp(1rem, 1.3vw, 19px); }
.two-col { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col-aside { position: sticky; top: 96px; }

/* ===== Timeline ===== */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: 1px solid var(--line-soft); }
.tl-year { font-family: var(--mono); color: var(--amber); font-size: 0.95rem; padding-top: 6px; }
.tl-body .h-card { font-size: clamp(1.3rem, 2vw, 28px); margin-bottom: 10px; }
.tl-body p { color: var(--body); max-width: 62ch; }

/* ===== Diferenciais ===== */
.diffs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.diff { padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diff:nth-child(2n) { border-right: 0; }
.diff:nth-last-child(-n+2) { border-bottom: 0; }
.diff-n { font-family: var(--mono); color: var(--teal); font-size: 0.9rem; }
.diff p { margin-top: 14px; font-size: clamp(1.05rem, 1.5vw, 22px); color: var(--white); font-family: var(--serif); font-weight: 700; line-height: 1.35; max-width: 38ch; }

/* ===== Line cards (linhas de pesquisa) ===== */
.line-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.line-card { border: 1px solid var(--line); border-radius: 2px; padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.line-card-idx { font-family: var(--mono); color: var(--amber); font-size: 0.95rem; }
.line-card .h-card { font-size: clamp(1.25rem, 1.9vw, 26px); }
.line-card p { color: var(--body); font-size: 1rem; }
.line-card-meta { margin-top: auto; font-family: var(--mono); font-size: 0.76rem; color: var(--body-dim); padding-top: 8px; }

/* ===== Tag cloud ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ===== Link cards (vinculações) ===== */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cards-3-eq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.link-card { position: relative; border: 1px solid var(--line); border-radius: 2px; padding: 32px; padding-right: 60px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s ease; }
.link-card:hover { border-color: rgba(255,255,255,0.4); }
.link-card .h-card { font-size: clamp(1.2rem, 1.7vw, 24px); color: var(--white); }
.link-card p { color: var(--body); font-size: 0.98rem; max-width: 44ch; }
.link-card-arrow { position: absolute; top: 30px; right: 30px; width: 22px; height: 22px; color: var(--body-dim); transition: transform .2s ease, color .2s ease; }
.link-card:hover .link-card-arrow { color: var(--amber); transform: translate(2px,-2px); }

/* ===== Team ===== */
.team-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.team-stats span { font-family: var(--mono); font-size: 0.85rem; color: var(--body); }
.team-stats b { color: var(--amber); font-weight: 700; font-size: 1.05rem; margin-right: 5px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.person { border: 1px solid var(--line); border-radius: 2px; padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.person-avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--teal); }
.person-avatar.empty { color: var(--body-dim); }
.person-avatar.empty svg { width: 24px; height: 24px; }
.person-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.person-body .h-card { font-size: 1.15rem; line-height: 1.3; color: var(--white); }
.person-role { font-family: var(--mono); color: var(--amber); font-size: 0.78rem; letter-spacing: 0.03em; }
.person-area { color: var(--body); font-size: 0.92rem; }
.person-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.person-links .badge { cursor: pointer; }
.person-links .badge svg { width: 12px; height: 12px; }
.person-slot { border-style: dashed; }
.person-slot .slot-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 7px; }
.person-slot .slot-tag svg { width: 13px; height: 13px; }
.slot-line { height: 9px; border-radius: 3px; background: var(--surface); margin-top: 4px; width: 100%; }
.slot-line.short { width: 60%; }

/* ===== Publicações ===== */
.note-line { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 0.88rem; color: var(--body-dim); }
.note-line svg { width: 16px; height: 16px; color: var(--teal); }
.filters { display: flex; flex-wrap: wrap; gap: 28px 44px; padding: 28px 0; border-block: 1px solid var(--line-soft); }
.filter-group { display: flex; flex-direction: column; gap: 12px; }
.filter-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--body-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--sans); font-size: 0.86rem; color: var(--body); padding: 7px 15px; border: 1px solid var(--line); border-radius: 100px; transition: all .18s ease; white-space: nowrap; }
.chip:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.chip.active { background: var(--white); border-color: var(--white); color: var(--ink); }
.pub-count-bar { padding: 24px 0 8px; }
.pub-count-bar .mono { font-family: var(--mono); font-size: 0.8rem; color: var(--body-dim); }
.pub-count-bar #pub-count { color: var(--amber); }
.pub-list { display: flex; flex-direction: column; }
.pub { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line-soft); transition: background .2s ease, padding .2s ease; }
.pub:first-child { border-top: 1px solid var(--line-soft); }
.pub:hover { background: var(--surface-2); padding-inline: 20px; }
.pub-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.pub-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 26px); line-height: 1.3; letter-spacing: -0.005em; max-width: 54ch; color: var(--white); }
.pub-authors { color: var(--body); font-size: 0.95rem; margin-top: 10px; }
.pub-doi { font-family: var(--mono); color: var(--body-dim); font-size: 0.76rem; margin-top: 8px; }
.pub-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 112px; }
.altmetric { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 12px 0; border: 1px solid var(--line); border-radius: 2px; }
.altmetric .alt-score { font-family: var(--num); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.altmetric .alt-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body-dim); }
.altmetric.high { border-color: rgba(243,156,18,0.5); }
.altmetric.high .alt-score { color: var(--amber); }
.pub-empty { margin-top: 32px; padding: 28px; border: 1px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 10px; background: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(255,255,255,0.03) 11px, rgba(255,255,255,0.03) 12px); }
.pub-empty .slot-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 7px; }
.pub-empty .slot-tag svg { width: 13px; height: 13px; }
.pub-empty p { color: var(--body-dim); font-size: 0.92rem; max-width: 64ch; }

/* ===== Blog ===== */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--body-dim); }
.post-meta .dot-sep { opacity: 0.5; }
.post-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.post-featured-media { aspect-ratio: 16/10; }
.post-featured-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.post-featured-body .h-card { color: var(--white); }
.post-featured-body p { color: var(--body); max-width: 50ch; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card-media { aspect-ratio: 16/10; }
.post-card .h-card { font-size: clamp(1.2rem, 1.7vw, 24px); color: var(--white); }
.post-card p { color: var(--body); font-size: 0.96rem; }
.social-embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.social-embed { border: 1px solid var(--line); border-radius: 2px; padding: 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.social-embed-head { display: flex; align-items: center; gap: 11px; color: var(--teal); }
.social-embed-head svg { width: 20px; height: 20px; }
.social-embed-head .mono { font-family: var(--mono); font-size: 0.86rem; color: var(--white); }
.social-embed-slot { width: 100%; aspect-ratio: 16/9; align-items: center; justify-content: center; text-align: center; }

/* ===== Contato ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body); }
.field input, .field textarea, .field select { font-family: var(--sans); font-size: 1rem; color: var(--white); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 6px; padding: 13px 16px; width: 100%; transition: border-color .2s ease; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--body-dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; }
.select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--body); pointer-events: none; }
.form-ok { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--teal); font-size: 0.95rem; }
.form-ok svg { width: 18px; height: 18px; }
.form-note { font-family: var(--mono); margin-top: 14px; font-size: 0.72rem; color: var(--body-dim); }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.info-block { display: flex; flex-direction: column; gap: 16px; }
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list li > svg { width: 19px; height: 19px; color: var(--teal); flex: 0 0 auto; margin-top: 3px; }
.info-label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body-dim); margin-bottom: 3px; }
.info-list a { color: var(--white); transition: color .2s ease; }
.info-list a:hover { color: var(--teal); }
.info-address { font-style: normal; color: var(--body); line-height: 1.8; font-size: 0.96rem; }
.info-address .mono { font-family: var(--mono); font-size: 0.82rem; color: var(--body-dim); }
.info-social { display: flex; flex-direction: column; gap: 10px; }
.info-social-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--white); transition: border-color .2s ease; }
.info-social-btn svg { width: 18px; height: 18px; color: var(--teal); }
.info-social-btn span { flex: 1; font-size: 0.94rem; }
.info-social-btn .ext { width: 15px; height: 15px; color: var(--body-dim); }
.info-social-btn:hover { border-color: rgba(255,255,255,0.4); }

/* ===== Light-band adjustments ===== */
.band-light .slot,
.band-light .pub-empty,
.band-light .social-embed-slot {
  background: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(15,21,53,0.05) 11px, rgba(15,21,53,0.05) 12px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 18px; }
  .two-col-aside { position: static; }
  .line-cards, .post-grid, .cards-3-eq, .team-grid { grid-template-columns: 1fr; }
  .diffs, .cards-2, .social-embed-grid, .contact-grid, .post-featured { grid-template-columns: 1fr; }
  .diff { border-right: 0; }
  .diff:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .team-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tl-item { grid-template-columns: 96px 1fr; gap: 20px; }
  .pub { grid-template-columns: 1fr; gap: 18px; }
  .pub-aside { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}
