/* ============ TRANSPARÊNCIA ============ */

.page-transparencia { --hub-overlap: clamp(3rem, 6vw, 4.5rem); }

/* ícones das categorias — máscara, a cor vem do currentColor */
.ticon {
  display: block;
  width: 24px; height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--ticon) center / contain no-repeat;
          mask: var(--ticon) center / contain no-repeat;
}
.ticon--estatuto {
  --ticon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3Cpath d='M9 8h7M9 12h5'/%3E%3C/svg%3E");
}
.ticon--balancos {
  --ticon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 16v-3M13 16V8M18 16v-6'/%3E%3C/svg%3E");
}
.ticon--relatorios {
  --ticon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
}
.ticon--institucional {
  --ticon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21v-10M9.5 21v-10M14.5 21v-10M19 21v-10M2.5 11 12 4l9.5 7z'/%3E%3C/svg%3E");
}

/* ---------- Capa: espaço para os atalhos sobrepostos ---------- */
.page-transparencia .struct-hero {
  padding-bottom: calc(clamp(2rem, 4vw, 3rem) + var(--hub-overlap));
}

/* ---------- Atalhos das categorias ---------- */
.thub {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--hub-overlap));
  padding-bottom: var(--section-space);
}
.thub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  margin: 0; padding: 0;
  list-style: none;
}
@media (min-width: 1000px) {
  .thub__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.thub__grid > li { display: flex; }

.thub__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  container-type: inline-size;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-radius: var(--r-card);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.thub__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.thub__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--red-deep);
  color: #fff;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.thub__icon .ticon { width: 28px; height: 28px; }
.thub__num {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: rgba(178, 45, 48, .18);
  transition: color var(--dur) var(--ease);
}
.thub__title {
  margin-top: 1.25rem;
  /* "Institucional" precisa caber numa linha em qualquer largura de card */
  font-size: min(var(--step-2), 12.5cqi);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--red-deep);
  transition: color var(--dur) var(--ease);
}
.thub__desc {
  flex: 1;
  margin-top: .55rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}
.thub__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--red-deep);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.thub__foot svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.thub__card:hover,
.thub__card:focus-visible {
  transform: translateY(-4px);
  background: var(--red-deep);
  color: #fff;
  box-shadow: var(--shadow-3);
}
.thub__card:hover .thub__icon,
.thub__card:focus-visible .thub__icon { background: #fff; color: var(--red-deep); }
.thub__card:hover .thub__num,
.thub__card:focus-visible .thub__num { color: rgba(255, 255, 255, .28); }
.thub__card:hover :is(.thub__title, .thub__desc, .thub__foot),
.thub__card:focus-visible :is(.thub__title, .thub__desc, .thub__foot) { color: #fff; }
.thub__card:hover .thub__foot,
.thub__card:focus-visible .thub__foot { border-color: rgba(255, 255, 255, .25); }
.thub__card:hover .thub__foot svg { transform: translateY(3px); }

@media (max-width: 560px) {
  .thub__icon { width: 44px; height: 44px; }
  .thub__icon .ticon { width: 22px; height: 22px; }
  .thub__title { margin-top: .9rem; font-size: min(var(--step-1), 12.5cqi); }
  .thub__desc { display: none; }
  .thub__foot { margin-top: .9rem; padding-top: .75rem; }
}

/* ---------- Seções ---------- */
.tsec {
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-h) + .5rem);
}
.tsec--alt { background: var(--surface-2); }
.tsec + .tsec { border-top: 1px solid var(--line); }

.tsec__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  margin-bottom: var(--head-space);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 2px solid var(--red-deep);
}
.tsec__badge {
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 76px);
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background-color: #a60000;
  background-image: url("../images/ondas.svg");
  background-size: 8rem auto;
  color: #fff;
  box-shadow: var(--shadow-1);
}
.tsec__badge .ticon { width: 46%; height: 46%; }
.tsec__kicker {
  display: block;
  margin-bottom: .55rem;
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--grey);
}
.tsec__lead {
  max-width: 46rem;
  margin-top: .85rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.tsec__count {
  align-self: end;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(178, 45, 48, .08);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--red-deep);
}
@media (max-width: 720px) {
  .tsec__head { grid-template-columns: auto minmax(0, 1fr); }
  .tsec__count { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Cards de documento ---------- */
.tdoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0; padding: 0;
  list-style: none;
}
.tdoc {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tsec:not(.tsec--alt) .tdoc { box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.tdoc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* capa do arquivo: deixa claro que é um PDF e de que tipo */
.tdoc__cover {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "file   status"
    "format format";
  row-gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  background-color: #a60000;
  background-image: url("../images/ondas.svg");
  background-size: 12rem auto;
  color: #fff;
}
.tdoc__file {
  grid-area: file;
  display: grid; place-items: center;
  width: 46px; height: 58px;
  border-radius: 6px;
  background: #fff;
  color: #a60000;
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
}
.tdoc__file .ticon { width: 22px; height: 22px; margin-top: 6px; }
.tdoc__status {
  grid-area: status;
  align-self: start;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.tdoc__status.is-empty { visibility: hidden; }
.tdoc__format {
  grid-area: format;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: .04em;
}
.tdoc__format small {
  font-size: var(--label-size);
  font-weight: 700;
  font-style: normal;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  opacity: .85;
}

.tdoc__body {
  flex: 1;
  padding: 1.25rem 1.25rem 0;
}
.tdoc__tipo {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--grey);
}
.tdoc__title {
  margin-top: .45rem;
  font-size: var(--step-1);
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.tdoc__desc {
  margin-top: .55rem;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.tdoc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: 1.25rem;
}

/* ---------- Cronograma da reforma do estatuto ---------- */
.tsteps {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.tsteps.is-empty { display: none; }
.tsteps__title {
  font-size: var(--step-1);
  font-weight: 800;
  font-style: italic;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.tsteps__list {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0; padding: 0;
  list-style: none;
  counter-reset: passo;
}
.tsteps__item {
  position: relative;
  padding-left: 2.85rem;
  counter-increment: passo;
}
.tsteps__item::before {
  content: counter(passo);
  position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--red-deep);
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
}
/* linha que liga os passos */
.tsteps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px); top: 2rem; bottom: -1.25rem;
  width: 2px;
  background: rgba(178, 45, 48, .2);
}
@media (min-width: 900px) {
  .tsteps__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tsteps__item { padding-left: 0; padding-top: 2.85rem; }
  .tsteps__item:not(:last-child)::after {
    left: 2rem; right: -1.25rem; top: calc(1rem - 1px); bottom: auto;
    width: auto; height: 2px;
  }
}
.tsteps__when {
  display: block;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--red-deep);
}
.tsteps__text {
  display: block;
  margin-top: .35rem;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.tsteps__contact {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.tsteps__contact a { font-weight: 700; color: var(--red-deep); text-decoration: underline; }
