/* =====================================================================
   ABEPRO, componentes compartilhados das páginas de história (prefixo hs-)
   Carregado DEPOIS de tokens.css + abepro.css por:
   abepro-historia.html, abepro-historia-diretorias.html, abepro-historia-simbolo.html
   Ícones: Font Awesome 6 (cdnjs), carregado pela própria página.
   ===================================================================== */

/* ---- Hero ---- */
.hs-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(140deg, var(--brand-950) 0%, var(--brand-800) 45%, var(--brand-600) 100%); padding: var(--space-10) 0; }
.hs-hero__deco { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.hs-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; }
.hs-hero .overline { color: var(--accent-400); }
.hs-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5.2vw, var(--text-display)); line-height: 1.02; color: #fff; margin: 12px 0 20px; }
.hs-hero__lead { font-size: var(--text-lg); line-height: 1.6; color: rgba(255,255,255,.84); max-width: 560px; }
.hs-hero__lead strong { color: #fff; font-weight: 600; }
.hs-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hs-hero__media { position: relative; padding: 0 24px 28px 24px; }
.hs-hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); background: linear-gradient(120deg, var(--brand-700), var(--brand-500)); }
.hs-hero__panel { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); padding: var(--space-6); }
.hs-hero__panel img { width: 100%; max-width: 380px; height: auto; }
.hs-hero__chip { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--brand-800); border-radius: var(--radius-xl); padding: 12px 16px; box-shadow: var(--shadow-lg); }
.hs-hero__chip strong { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--brand-700); }
.hs-hero__chip i { font-size: 22px; color: var(--accent-600); width: 28px; text-align: center; }
.hs-hero__chip span { font-size: 12px; line-height: 1.3; color: var(--neutral-600); max-width: 140px; }
.hs-hero__chip--a { left: 0; bottom: 0; }
.hs-hero__chip--b { right: 0; top: 24px; }

/* ---- Texto + colagem ---- */
.hs-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.hs-split .section__title { margin-top: 8px; }
.hs-collage { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: auto auto; gap: 14px; }
.hs-collage img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); background: var(--brand-100); }
.hs-collage__tall { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.hs-collage__wide { aspect-ratio: 4 / 3; }
.hs-collage__quote { background: var(--brand-700); color: #fff; border-radius: var(--radius-xl); padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.hs-collage__quote p { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.4; }
.hs-collage__quote small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-400); font-weight: 700; }
.hs-collage__quote i { font-size: 22px; color: var(--accent-400); }

/* ---- Destaque mídia + texto ---- */
.hs-feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.hs-feature--reverse .hs-feature__media { order: 2; }
.hs-feature__media { position: relative; padding: 0 20px 24px 20px; }
.hs-feature__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); background: var(--brand-100); }
.hs-feature__badge { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--brand-800); border-radius: var(--radius-xl); padding: 12px 16px; box-shadow: var(--shadow-lg); }
.hs-feature--reverse .hs-feature__badge { left: auto; right: 0; }
.hs-feature__badge strong { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--brand-700); }
.hs-feature__badge i { font-size: 22px; color: var(--accent-600); width: 28px; text-align: center; }
.hs-feature__badge span { font-size: 12px; line-height: 1.3; color: var(--neutral-600); max-width: 140px; }
.hs-feature__body .section__title { margin-top: 8px; }
.hs-feature__lead { font-size: var(--text-md); color: var(--neutral-700); line-height: 1.7; margin-top: 14px; }
.hs-feature__text { font-size: 14.5px; color: var(--neutral-600); line-height: 1.7; margin-top: 12px; }
.hs-feature__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hs-feature__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--neutral-700); line-height: 1.5; }
.hs-feature__list i { width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.hs-feature__list strong { color: var(--neutral-900); font-weight: 600; }
.hs-feature__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---- Cards com ícone ---- */
.hs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.hs-cards--2 { grid-template-columns: repeat(2, 1fr); }
.hs-cards--4 { grid-template-columns: repeat(4, 1fr); }
.hs-cards--5 { grid-template-columns: repeat(5, 1fr); }
.hs-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: var(--space-4) var(--space-3) var(--space-3); overflow: hidden; color: inherit; transition: box-shadow var(--duration-base), transform var(--duration-base) var(--ease-out); }
a.hs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hs-card::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 0; height: 3px; background: var(--brand-500); border-radius: 3px 3px 0 0; transform: scaleX(.35); transform-origin: left; transition: transform var(--duration-slow) var(--ease-out); }
.hs-card:hover::after { transform: scaleX(1); }
.hs-card__icon { width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
.hs-card__kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 6px; }
.hs-card__title { font-family: var(--font-sans); font-weight: 600; font-size: 18px; color: var(--brand-800); margin-bottom: 8px; line-height: 1.3; }
.hs-card__text { font-size: 14px; color: var(--neutral-600); line-height: 1.6; flex: 1; }
.hs-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand-500); }
.hs-card:hover .hs-card__link { gap: 9px; color: var(--brand-600); }

/* ---- Linha do tempo alternada ---- */
.hs-tl { position: relative; max-width: 1000px; margin: 0 auto; padding-top: 8px; }
.hs-tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--brand-100), var(--brand-400) 20%, var(--brand-400) 80%, var(--brand-100)); transform: translateX(-50%); }
.hs-tl__item { position: relative; width: 50%; padding: 0 52px 44px 0; }
.hs-tl__item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 52px; }
.hs-tl__item:last-child { padding-bottom: 0; }
.hs-tl__dot { position: absolute; top: 24px; right: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--brand-500); box-shadow: 0 0 0 5px var(--white); }
.section--alt .hs-tl__dot { box-shadow: 0 0 0 5px var(--neutral-50); }
.hs-tl__item:nth-child(even) .hs-tl__dot { right: auto; left: -10px; }
.hs-tl__item--accent .hs-tl__dot { border-color: var(--accent-600); }
.hs-tl__card { position: relative; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.hs-tl__card::before { content: ""; position: absolute; top: 26px; right: -8px; width: 14px; height: 14px; background: var(--white); border-right: 1px solid var(--neutral-200); border-top: 1px solid var(--neutral-200); transform: rotate(45deg); }
.hs-tl__item:nth-child(even) .hs-tl__card::before { right: auto; left: -8px; border-right: none; border-top: none; border-left: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); }
.hs-tl__year { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; color: var(--brand-600); }
.hs-tl__item--accent .hs-tl__year { color: var(--accent-600); }
.hs-tl__title { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--neutral-900); margin: 10px 0 6px; }
.hs-tl__text { font-size: 14px; color: var(--neutral-600); line-height: 1.6; }
.hs-tl__text a { color: var(--brand-500); text-decoration: underline; }
.hs-tl__tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-500); }
.hs-tl__tag i { font-size: 12px; }

/* ---- Avatar de iniciais ---- */
.hs-avatar { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; background: var(--brand-600); }

/* ---- Presidentes ao longo do tempo ---- */
.hs-presidents { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.hs-pres { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 16px 18px; }
.hs-pres__name { font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--neutral-900); line-height: 1.3; }
.hs-pres__period { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--brand-500); margin-top: 4px; }
.hs-pres__terms { font-size: 11.5px; color: var(--neutral-500); margin-top: 2px; }

/* ---- Explorador de gestões ---- */
.hs-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-4); }
.hs-search { position: relative; flex: 1 1 260px; max-width: 400px; }
.hs-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--neutral-400); pointer-events: none; font-size: 14px; }
.hs-search .input { padding-left: 40px; }
.hs-toolbar__meta { font-size: 13px; color: var(--neutral-500); }
.hs-gestoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.hs-gestao { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); padding: 20px; }
.hs-gestao.is-hidden, .hs-gestao.is-collapsed { display: none; }
.hs-gestao__period { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--brand-500); }
.hs-gestao__period .badge { font-family: var(--font-sans); }
.hs-gestao__pres { display: flex; gap: 12px; align-items: center; }
.hs-gestao__pres .hs-avatar { background: var(--brand-800); }
.hs-gestao__pres-name { font-weight: 600; font-size: 15.5px; color: var(--neutral-900); line-height: 1.3; }
.hs-gestao__pres-role { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-700); margin-top: 2px; }
.hs-gestao__list { list-style: none; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--neutral-100); padding-top: 12px; font-size: 13.5px; }
.hs-gestao__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hs-gestao__list li span:first-child { color: var(--neutral-800); }
.hs-gestao__list li span:last-child { color: var(--neutral-500); font-size: 12px; text-align: right; flex-shrink: 0; max-width: 46%; }
.hs-gestoes mark { background: var(--accent-100); color: inherit; border-radius: 2px; padding: 0 1px; }
.hs-more { text-align: center; margin-top: var(--space-5); }
.hs-more [hidden] { display: none !important; }
.hs-empty { display: none; text-align: center; padding: var(--space-6); color: var(--neutral-500); font-size: 14.5px; }
.hs-empty.is-visible { display: block; }

/* ---- Paleta (página do símbolo) ---- */
.hs-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: 20px; }
.hs-swatch { border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.hs-swatch__color { height: 72px; }
.hs-swatch__body { padding: 10px 12px; }
.hs-swatch__name { font-size: 13px; font-weight: 600; color: var(--neutral-900); }
.hs-swatch__hex { font-family: var(--font-mono); font-size: 11.5px; color: var(--neutral-500); margin-top: 2px; }

/* ---- Membros de grupo (avatar + nome + instituição) ---- */
.hs-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hs-members__group { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-500); margin-top: 8px; }
.hs-member { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); }
.hs-member .hs-avatar { width: 40px; height: 40px; font-size: 13px; }
.hs-member__name { font-size: 14px; font-weight: 600; color: var(--neutral-800); line-height: 1.3; }
.hs-member__inst { font-size: 12.5px; color: var(--neutral-500); margin-top: 2px; }
.hs-member__role { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-700); margin-top: 3px; }
.hs-member--coord { border-color: var(--accent-400); background: var(--accent-50); }
.hs-member--coord .hs-avatar { background: var(--accent-600) !important; }

/* ---- Passos numerados ---- */
.hs-steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hs-steps--3 { grid-template-columns: repeat(3, 1fr); }
.hs-steps--4 { grid-template-columns: repeat(4, 1fr); }
.hs-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 16px 18px; }
.hs-steps__num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-700); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.hs-steps__title { font-weight: 600; font-size: 14.5px; color: var(--neutral-900); line-height: 1.35; }
.hs-steps__text { font-size: 13px; color: var(--neutral-600); line-height: 1.5; margin-top: 3px; }
.hs-steps__text a { color: var(--brand-500); text-decoration: underline; }

/* ---- Responsivo ---- */
@media (max-width: 1023px) {
  .hs-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hs-hero__media { max-width: 560px; }
  .hs-split, .hs-feature { grid-template-columns: 1fr; gap: var(--space-6); }
  .hs-feature--reverse .hs-feature__media { order: 0; }
  .hs-feature__media { max-width: 560px; }
  .hs-collage { max-width: 620px; }
  .hs-cards, .hs-cards--2, .hs-cards--4, .hs-cards--5, .hs-gestoes, .hs-swatches, .hs-members, .hs-steps--3, .hs-steps--4 { grid-template-columns: repeat(2, 1fr); }
  .hs-presidents { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hs-hero { padding: var(--space-6) 0 var(--space-8); }
  .hs-hero__media { padding: 0 0 26px 0; }
  .hs-hero__chip--b { display: none; }
  .hs-hero__chip--a { left: 12px; }
  .hs-feature__media, .hs-feature--reverse .hs-feature__media { padding: 0 0 22px 0; }
  .hs-feature__badge, .hs-feature--reverse .hs-feature__badge { left: 12px; right: auto; }
  .hs-cards, .hs-cards--2, .hs-cards--4, .hs-cards--5, .hs-gestoes, .hs-presidents, .hs-swatches, .hs-members, .hs-steps, .hs-steps--3, .hs-steps--4 { grid-template-columns: 1fr; }
  .hs-collage { grid-template-columns: 1fr 1fr; }
  .hs-tl::before { left: 9px; transform: none; }
  .hs-tl__item, .hs-tl__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 28px 36px; }
  .hs-tl__dot, .hs-tl__item:nth-child(even) .hs-tl__dot { left: 0; right: auto; top: 22px; width: 18px; height: 18px; }
  .hs-tl__card::before, .hs-tl__item:nth-child(even) .hs-tl__card::before { right: auto; left: -8px; border: none; border-left: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); }
}
