/* calculadoras/horas-extras.css — migrado para design system do site */

/*  Hero  */
.he-hero {
  background: var(--color-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: var(--border-soft);
}

.he-container {
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

.he-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-12);
}

.he-breadcrumb a {
  color: var(--color-neutral-700);
  text-decoration: none;
}

.he-breadcrumb a:hover {
  color: var(--color-neutral-900);
}

.he-breadcrumb span[aria-current] {
  color: var(--color-neutral-900);
}

.he-breadcrumb span[aria-hidden] {
  color: var(--color-neutral-200);
}

.he-hero__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-12);
  align-items: flex-start;
}

.he-eyebrow {
  display: inline-block;
  background: var(--color-yellow-100);
  color: var(--color-yellow-700);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
}

.he-hero__copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: var(--lh-heading-tight);
  letter-spacing: -0.03em;
  margin-block: var(--space-2) var(--space-6);
  max-width: 28ch;
}

.he-h1-accent {
  color: var(--color-brand-accent);
}

.he-hero__desc {
  font-size: var(--fs-body);
  color: var(--color-neutral-700);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: var(--space-6);
}

.he-hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.he-hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-neutral-900);
}

.he-check {
  color: var(--color-green-500);
  font-size: 18px;
}

/*  Calculadora Card  */
.pt-he-calculator {
  --he-purple: var(--color-purple-700);
  --he-accent-purple: var(--color-purple-500);
  --he-green: var(--color-green-500);
  --he-border: var(--color-neutral-200);
  --he-muted: var(--color-neutral-700);
  --color-error: var(--color-orange-500);
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--he-border);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-body);
}

.pt-he-calculator,
.pt-he-calculator * {
  box-sizing: border-box;
}

.pt-he-calculator .calc-card {
  background: var(--color-purple-700);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

.calc-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-card__body {
  flex: 1;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.field-hint {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-1);
}

.field-error {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-error);
  margin-top: var(--space-1);
}

.field-error[hidden] {
  display: none;
}

/* Cenário tabs */
.cenarios {
  border: none;
  padding: 0;
  margin: 0;
}

.cenarios legend.field-label {
  margin-bottom: var(--space-2);
}

.cenarios__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.cenario-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 64px;
  padding: var(--space-3) var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 0;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.cenario-tab[data-cenario='custom'] {
  min-height: 56px;
}

.cenario-tab strong {
  font-size: 16px;
  font-weight: 900;
}

.cenario-tab small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
}

.cenario-tab:hover,
.cenario-tab.is-active {
  background: var(--color-yellow-500);
  border-color: var(--color-yellow-500);
  color: var(--color-neutral-900);
}

.cenario-tab:hover small,
.cenario-tab.is-active small {
  opacity: 0.78;
}

.cenario-tab:focus-visible {
  outline: 2px solid var(--color-yellow-500);
  outline-offset: 2px;
}

.pt-he-calculator .calc-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.pt-he-calculator .calc-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.pt-he-calculator .calc-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  accent-color: var(--color-yellow-500);
  justify-self: center;
}

.pt-he-calculator .calc-option:has(input:checked) {
  background: rgba(255, 214, 0, 0.14);
  border-color: rgba(255, 214, 0, 0.7);
}

.pt-he-calculator .calc-option span {
  display: grid;
  gap: 3px;
}

.pt-he-calculator .calc-option strong {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.pt-he-calculator .calc-option small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

/* Inputs */
.input-group {
  display: flex;
}

.input-group__prefix,
.input-group__suffix {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--color-white);
  color: var(--color-purple-700);
  font-size: 14px;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.input-group__prefix {
  border-right: none;
  border-radius: 0;
}

.input-group__suffix {
  border-left: none;
  border-radius: 0;
}

.input-group input,
.calc-card input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-neutral-900);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
}

.input-group input {
  flex: 1;
}

.input-group input:focus,
.calc-card input:focus {
  border-color: var(--color-yellow-500);
}

.input-group input:focus:not(:focus-visible),
.calc-card input:focus:not(:focus-visible) {
  outline: none;
}

.input--error {
  border-color: var(--color-error) !important;
}

.input-mono {
  font-family: ui-monospace, 'Cascadia Code', monospace;
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Base CTA — usado nas seções fora do card */
.he-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--color-yellow-500);
  color: var(--color-neutral-900);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 800;
  letter-spacing: var(--tracking-wide-md);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}

.he-btn-cta:hover {
  background: var(--color-yellow-700);
  text-decoration: none;
}

/* Botões da calc */
.calc-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.btn--calc {
  flex: 1;
  background: var(--color-yellow-500) !important;
  color: var(--color-neutral-900) !important;
  border: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.15em !important;
  border-radius: var(--radius-pill) !important;
  padding: 14px var(--space-4) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn--limpar {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--color-white) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  border-radius: var(--radius-pill) !important;
  padding: 14px var(--space-4) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--space-2) !important;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Resultado */
.pt-he-calculator .calc-resultado {
  padding: 24px;
  background: var(--color-white);
  border-top: 1px solid var(--he-border);
  color: var(--color-neutral-900);
}

.pt-he-calculator .calc-resultado[hidden] {
  display: none;
}

.pt-he-calculator .calc-resultado__label {
  color: var(--he-purple);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}

.pt-he-calculator .calc-resultado__total {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--color-neutral-100);
  border-left: 4px solid var(--he-green);
}

.pt-he-calculator .calc-resultado__total span {
  color: var(--he-purple);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pt-he-calculator .calc-resultado__total strong {
  color: var(--color-neutral-900);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.pt-he-calculator .calc-resultado__list {
  display: grid;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--he-border);
}

.pt-he-calculator .calc-resultado__lead {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  background: var(--color-yellow-100);
  border: 1px solid rgba(252, 204, 49, 0.55);
  border-radius: var(--radius-card);
}

.pt-he-calculator .calc-resultado__lead-title {
  max-width: none;
  color: var(--color-neutral-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.pt-he-calculator .calc-resultado__lead-text {
  max-width: none;
  margin: 0;
  color: var(--he-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pt-he-calculator .calc-resultado__lead .btn--calc-lead {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-yellow-500);
  color: var(--color-neutral-900);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide-sm);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}

.pt-he-calculator .calc-resultado__lead .btn--calc-lead:hover {
  background: var(--color-yellow-700);
}

.pt-he-calculator .resultado-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--he-border);
  box-sizing: border-box;
}

.pt-he-calculator .resultado-row span,
.pt-he-calculator .resultado-row__val {
  min-width: 0;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.35;
}

.pt-he-calculator .resultado-row span {
  color: var(--he-muted);
  font-weight: 500;
}

.pt-he-calculator .resultado-row__val {
  color: var(--color-neutral-900);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.pt-he-calculator .resultado-row--destaque .resultado-row__val {
  color: var(--he-accent-purple);
}

.pt-he-calculator .resultado-row:last-child span,
.pt-he-calculator .resultado-row:last-child .resultado-row__val {
  border-bottom: 0;
}

/*  Content grid  */
.he-content-bg {
  background: var(--color-white);
}

.he-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-12);
  align-items: flex-start;
  width: 100%;
  padding-block: var(--space-8);
}

.he-content-grid--intro {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 0;
}

/*  Article  */
.he-article {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.he-article section {
  display: block;
}

#como-usar-calculadora {
  width: 100%;
  max-width: none;
  gap: 14px;
}

.he-article h2 {
  margin: 0 0 14px;
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  max-width: none;
}

.he-article section:first-child h2 {
  margin-top: 0;
}

.he-article h3 {
  margin: 28px 0 10px;
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}

.he-article p {
  margin: 24px 0;
  max-width: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 32px;
}

.he-article a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#como-usar-calculadora p {
  width: 100%;
  max-width: none;
  margin: 0;
  line-height: 1.55;
}

.he-step-list {
  counter-reset: steps;
  display: grid;
  gap: var(--space-2);
  width: 100%;
  margin: 6px 0;
  padding: 0;
  list-style: none;
}

.he-step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: var(--space-3);
  row-gap: 0;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-neutral-200);
}

.he-step-list li::before {
  content: counter(steps);
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--color-purple-700);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 900;
}

.he-step-list strong {
  grid-column: 2;
  display: block;
  margin-bottom: 0;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.he-step-list span {
  grid-column: 2;
  display: block;
  margin-top: 1px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.he-callout {
  margin: 24px 0;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.he-callout--warning {
  border-left: 4px solid var(--color-orange-500);
  background: var(--color-neutral-100);
}

.he-callout strong {
  font-size: inherit;
  font-weight: 800;
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-heading);
}

.he-callout p {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  color: var(--color-text-muted);
}

.he-formula-box {
  margin: 16px 0 24px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-purple-500);
  padding: var(--space-4) var(--space-6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Tabela cenários */
.he-tabela-cenarios {
  margin: 24px 0;
  border: var(--border-soft);
  border-radius: 0;
  overflow: hidden;
  font-size: 14px;
}

.he-tabela-cenarios__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-soft);
  align-items: center;
}

.he-tabela-cenarios__row:last-child {
  border-bottom: none;
}

.he-tabela-cenarios__row:nth-child(even) {
  background: var(--color-bg-alt);
}

.he-tabela-cenarios__head {
  background: var(--color-neutral-900);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.he-tabela-cenarios__head:nth-child(even) {
  background: var(--color-neutral-900);
}

.he-tabela-cenarios__pct {
  font-weight: 800;
  color: var(--color-purple-500);
}

.he-tabela-cenarios__fator {
  font-weight: 700;
}

.he-tabela-cenarios__base {
  font-size: 12px;
  color: var(--color-neutral-700);
}

/* Riscos */
.he-article ul.he-riscos-list {
  padding-left: 1.25rem;
  margin: 24px 0;
  list-style: disc;
  list-style-position: outside;
  display: block;
}

.he-article ul.he-riscos-list li {
  display: list-item;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-text-muted);
  padding-left: 0;
  margin: 0 0 10px;
  border-left: 0;
}

/*  Sidebar  */
.he-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: 80px;
}

.he-sidebar-cta {
  background: var(--color-purple-500);
  color: var(--color-white);
  padding: var(--space-8);
  border-bottom: 6px solid var(--color-purple-700);
}

.he-sidebar-cta .he-sidebar-cta__title {
  font-size: clamp(24px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: var(--space-4);
  color: var(--color-white);
  max-width: none;
}

.he-sidebar-cta > p:not(.he-sidebar-cta__title) {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.he-sidebar-cta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.he-sidebar-cta li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  line-height: var(--lh-body);
}

.he-sidebar-cta span {
  color: var(--color-yellow-500);
  flex-shrink: 0;
}

.he-sidebar-cta__btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 12px !important;
  padding: 12px !important;
  border-radius: var(--radius-pill) !important;
  background: var(--color-yellow-500) !important;
  color: var(--color-neutral-900) !important;
  border: none !important;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.he-sidebar-materials {
  background: var(--color-white);
  border: var(--border-soft);
  padding: var(--space-6);
}

.he-sidebar-material {
  display: block;
  padding: var(--space-4) 0;
  color: var(--color-neutral-900);
  text-decoration: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.he-sidebar-material + .he-sidebar-material {
  border-top: var(--border-soft);
}

.he-sidebar-material:hover {
  text-decoration: none;
}

.he-sidebar-material__label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-neutral-700);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-soft);
}

.he-sidebar-material__label + .he-sidebar-material {
  padding-top: 0;
}

.he-sidebar-material:last-child {
  padding-bottom: 0;
}

.he-sidebar-material__content {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.he-sidebar-material__icon {
  width: 36px;
  height: 36px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.he-sidebar-material strong {
  font-size: 13px;
  font-weight: 800;
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-neutral-900);
}

.he-sidebar-material p {
  font-size: 12px;
  color: var(--color-neutral-700);
  margin: 0 0 var(--space-2);
}

.he-sidebar-material__link {
  font-size: 12px;
  color: var(--color-purple-500);
  font-weight: 700;
}

.he-sidebar-material:hover .he-sidebar-material__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/*  FAQ  */
.he-faq.section {
  background: var(--color-white);
  padding-block: var(--space-10) var(--space-4);
}

.he-faq h2 {
  margin-bottom: var(--space-2);
}

.he-faq__sub {
  font-size: 15px;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-6);
}

.he-faq__list {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.he-faq__item {
  border-bottom: 1px solid var(--color-yellow-700);
}

.he-faq__question {
  position: relative;
  display: block;
  padding: var(--space-4) 42px var(--space-4) 0;
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  color: var(--color-neutral-900);
  cursor: pointer;
  list-style: none;
}

.he-faq__question::-webkit-details-marker {
  display: none;
}

.he-faq__question-text {
  display: block;
  width: 100%;
  max-width: none;
  white-space: nowrap;
  line-height: 1.25;
}

.he-faq__icon {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border: 1.5px solid var(--color-yellow-700);
  border-radius: 999px;
  color: var(--color-yellow-700);
}

.he-faq__icon::before,
.he-faq__icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.he-faq__icon::after {
  transform: rotate(90deg);
  transition: transform 280ms var(--ease-out);
}

.he-faq__item[open] .he-faq__icon::after {
  transform: rotate(0deg);
}

.he-faq__answer {
  width: 100%;
  max-width: none;
  padding: 0 42px var(--space-4) 0;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

/*  Related  */
.he-related.section {
  background: var(--color-white);
  padding-block: var(--space-12);
}

.he-related h2 {
  margin-bottom: var(--space-2);
}

.he-related__sub {
  font-size: 15px;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-6);
}

.he-related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.he-related__header h2,
.he-related__header .he-related__sub {
  margin-bottom: 0;
}

.he-btn--blog {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral-900);
  text-decoration: none;
  white-space: nowrap;
  background: var(--color-white);
}

.he-btn--blog:hover {
  border-color: var(--color-neutral-500);
  text-decoration: none;
}

.he-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 40px;
}

.he-related-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
  text-decoration: none;
}

.he-related-card__media {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  border-bottom: 4px solid var(--color-yellow-700);
  background: var(--color-neutral-200);
}

.he-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.he-related-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 12px;
  background: var(--color-purple-500);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.he-related-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px;
}

.he-related-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-neutral-700);
  font-size: 12px;
  line-height: 1.4;
}

.he-related-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.he-related-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-neutral-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.he-related-card p {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  margin: 0 0 16px;
  color: var(--color-neutral-700);
  font-size: 14px;
  line-height: 1.625;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.he-related-card__link {
  margin-top: auto;
  color: var(--color-neutral-900);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.he-related-card:hover .he-related-card__link {
  color: var(--color-purple-500);
}

/*  Responsive  */
@media (max-width: 768px) {
  .he-hero__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
    gap: var(--space-6);
  }

  .he-hero__copy h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  .he-hero__desc {
    font-size: 15px;
  }

  .he-hero__trust {
    gap: var(--space-2);
  }

  .he-hero__trust li {
    font-size: 12px;
  }

  .he-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-block: var(--space-8);
  }

  .he-sidebar {
    position: static;
    display: none;
  }

  .he-related__grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .he-tabela-cenarios__row {
    grid-template-columns: 1fr 1fr;
  }

  .he-tabela-cenarios__fator,
  .he-tabela-cenarios__base,
  .he-tabela-cenarios__head span:nth-child(3),
  .he-tabela-cenarios__head span:nth-child(4) {
    display: none;
  }

  .he-faq__question-text {
    white-space: normal;
  }

  .fields-row {
    grid-template-columns: 1fr;
  }

  .cenarios__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-he-calculator .calc-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-he-calculator .calc-resultado {
    padding: var(--space-5);
  }

  .pt-he-calculator .calc-resultado__label {
    font-size: 18px;
  }

  .pt-he-calculator .calc-resultado__total {
    padding: var(--space-4) var(--space-5);
  }

  .pt-he-calculator .calc-resultado__total strong {
    font-size: 24px;
  }

  .pt-he-calculator .resultado-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: var(--space-3);
  }

  .pt-he-calculator .resultado-row span {
    font-size: 11px;
  }

  .pt-he-calculator .resultado-row__val {
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .he-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: var(--space-8);
  }

  .he-content-grid {
    grid-template-columns: 1fr 260px;
    gap: var(--space-8);
  }

  .he-related__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 36px;
    row-gap: 36px;
  }
}

@media (max-width: 560px) {
  .he-hero__grid {
    grid-template-columns: 1fr;
  }

  .he-hero__copy h1 {
    font-size: 34px;
  }

  .he-hero__desc {
    max-width: none;
  }

  .he-related__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
