/* ==========================================================================
   SPTECH — Pós em Tecnologia e Sustentabilidade
   Depende de styles.css, course.css e pos.css.
   Verde-limão (--lime) é o acento próprio desta pós no site original.
   ========================================================================== */
.ts {
  --lime: #c3d66b;
  --lime-ink: #5d6b12;
  /* cores das 4 trilhas */
  --t-arq: #00a3e0;
  --t-cloud: #c25bbd;
  --t-gti: #c4511f;
  --t-neg: #0f9a4f;
}

/* Hero: trio da coordenação */
.trio {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.trio figure { margin: 0; border-radius: 20px; overflow: hidden; background: var(--lime); box-shadow: var(--shadow); }
.trio figure:nth-child(2) { transform: translateY(-28px); }
.trio img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.trio figcaption { padding: 10px 12px 12px; color: var(--navy); line-height: 1.2; }
.trio small { display: block; color: var(--lime-ink); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.trio strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 0.9rem; }
.trio::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8%; top: 6%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 25%, #fff);
}
.trio::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%; bottom: -8%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 100% 0 0 0;
  background: var(--lime);
}
.partners { margin-top: 28px; }
.partners small { display: block; margin-bottom: 10px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.partners img { width: min(100%, 420px); height: auto; }
@media (max-width: 640px) {
  .trio { max-width: 320px; margin-top: 28px; }
  .trio figcaption { padding: 8px; }
  .trio strong { font-size: 0.78rem; }
}

/* Vídeo (YouTube carregado só ao clicar) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { opacity: 0.75; }

/* Faixas com foto */
.banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); }
.banner img { display: block; width: 100%; height: auto; min-height: 200px; object-fit: cover; }
.banner__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(0deg, rgba(20, 28, 47, 0.85), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}

/* Tipos de módulo e distribuição de horas */
.mod-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mod-type { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.mod-type__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.mod-type h3 { font-family: var(--font-display); font-size: 1.25rem; }
.mod-type__total { color: var(--muted); font-weight: 700; }
.hours { display: flex; gap: 3px; height: 14px; margin: 18px 0 16px; border-radius: 99px; overflow: hidden; }
.hours i { flex: var(--h) 1 0; background: var(--c); }
.hours-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hours-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: start; color: var(--ink); font-size: 0.95rem; }
.hours-list li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 4px; background: var(--c); }
.hours-list b { font-family: var(--font-display); }
.hours-list small { display: block; color: var(--muted); font-size: 0.84rem; }
.mod-type__note { margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .mod-types { grid-template-columns: 1fr; } }

/* Montador de trilha */
.builder { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.presets { position: sticky; top: calc(var(--header-h) + 76px); display: grid; gap: 8px; }
.presets__label { margin-bottom: 4px; color: var(--muted); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.preset {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  text-align: left;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.preset:hover { background: var(--bg-soft); }
.preset small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.preset strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 0.96rem; line-height: 1.25; }
.preset--custom { box-shadow: inset 0 0 0 1.5px var(--lime-ink); }
.preset[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.preset[aria-pressed="true"] small { color: var(--lime); }

.tracks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.tracks__label { margin-right: 4px; color: var(--muted); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.track[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.tdot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.c-arq { --c: var(--t-arq); }
.c-cloud { --c: var(--t-cloud); }
.c-gti { --c: var(--t-gti); }
.c-neg { --c: var(--t-neg); }

.catalog { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--bg-soft); }
.catalog h3 { margin: 0 0 12px; color: var(--muted); font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.catalog h3:not(:first-child) { margin-top: 22px; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.module {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 100px;
  padding: 14px 38px 14px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.3;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.25s, background 0.25s, color 0.25s;
}
.module:hover { box-shadow: 0 0 0 2px var(--lime), var(--shadow-sm); }
.module .dots { display: flex; gap: 6px; }
.module .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.module .tick {
  position: absolute;
  right: 10px; top: 10px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  opacity: 0;
  transform: scale(0.6);
  transition: 0.25s var(--ease);
}
.module .tick svg { width: 13px; height: 13px; }
.module[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 0 0 3px var(--lime); transform: translateY(-2px); }
.module[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.catalog.is-filtered .module:not(.is-match) { opacity: 0.3; }
.mandatory {
  margin-top: 22px;
  padding: 18px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.mandatory small { display: block; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; opacity: 0.9; }
.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.summary__count { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.summary__count span { color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; }
.summary__hint { color: var(--muted); font-size: 0.9rem; }
.builder__note { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.builder__note strong { color: var(--ink); }
@media (max-width: 1000px) {
  .builder { grid-template-columns: 1fr; }
  .presets { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .presets__label { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .modules { grid-template-columns: 1fr 1fr; }
  .module { min-height: 92px; font-size: 0.86rem; }
}

/* Modelo de contratação */
.plans-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line); }
.plans { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; background: #fff; text-align: center; }
.plans th, .plans td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.plans thead th { background: var(--bg-soft); color: var(--ink); font-family: var(--font-display); }
.plans tbody th { color: var(--ink); font-weight: 700; text-align: left; }
.plans tbody th i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--c); }
.plans td { color: var(--ink); font-weight: 600; }
.plans .grp { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.plans tr.vagas td { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.plans tr.cert td { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 0; }
.m1 { --c: var(--navy-700); }
.m2 { --c: var(--pink); }
.m3 { --c: var(--teal); }
.m4 { --c: var(--lime); }
.plan-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.plan-notes p { padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); }
@media (max-width: 760px) { .plan-notes { grid-template-columns: 1fr; } }
