/* ==========================================================================
   a.pass para produtores · componentes
   Blocos de conteúdo reutilizados pelas páginas: jornada, listas numeradas,
   grade de cards, matriz de setores, pulseira, painel ao vivo, tabela
   técnica, hub de funcionalidades, blog e mapa do site.
   ========================================================================== */

/* ---------- JORNADA (home) ---------- */
.jornada { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.fase { padding: 38px 34px; border-right: 1px solid var(--border); }
.fase:last-child { border-right: none; }
.fase .num { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.fase h4 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.fase ul { list-style: none; }
.fase li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.fase li strong { color: var(--text); font-weight: 500; }

/* ---------- LISTA NUMERADA ---------- */
.exp-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 19px 0; border-top: 1px solid var(--border);
}
.exp-row:last-child { border-bottom: 1px solid var(--border); }
.exp-row .n { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.exp-row h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.exp-row p { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.exp-row p strong { color: var(--text); font-weight: 500; }
.rows-list .exp-row:first-child { border-top: 1px solid var(--border); }

/* ---------- GRADE DE CARDS ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.cg-card { padding: 30px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards-grid.c3 .cg-card:nth-child(3n) { border-right: none; }
.cards-grid.c3 .cg-card:nth-last-child(-n+3) { border-bottom: none; }
.cg-card .n { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.cg-card h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.cg-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cg-card p strong { color: var(--text); font-weight: 500; }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
/* Sem isto, um item largo (a matriz de setores) usa o próprio min-content
   como piso e empurra a página inteira para a rolagem horizontal no mobile. */
.split > * { min-width: 0; }

/* ---------- PULSEIRA ---------- */
.wb {
  background: var(--surface); border: 1px solid var(--border);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; margin-bottom: 22px;
}
.wb::before, .wb::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 50%;
}
.wb::before { left: -8px; }
.wb::after { right: -8px; }
.wb .l .ed { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.wb .l .ed em { color: var(--accent); }
.wb .l .nm { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.wb .c { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wb .c .chip-nfc { width: 30px; height: 22px; background: var(--text); opacity: 0.9; }
.wb .c .lbl { font-size: 8px; color: var(--muted); letter-spacing: 0.08em; }
.wb .r { text-align: right; font-size: 12px; }
.wb .r .code { font-weight: 500; font-variant-numeric: tabular-nums; }
.wb .r .meta { color: var(--muted); font-size: 10px; margin-top: 3px; }

/* ---------- MATRIZ DE SETORES ---------- */
.matrix-wrap { border: 1px solid var(--border); overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.matrix th, .matrix td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.matrix th { font-size: 11px; color: var(--muted); font-weight: 500; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix td:first-child { font-weight: 500; }
.matrix tr:last-child td { border-bottom: none; }
.matrix .full { color: var(--text); }
.matrix .partial { color: var(--accent); }
.matrix .none { color: #3a3a3a; }
.matrix-legend { display: flex; gap: 24px; margin-top: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.matrix-legend .partial { color: var(--accent); }
.matrix-legend .full { color: var(--text); }

/* ---------- FLUXO DO PEDIDO ---------- */
.kds-flow {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); padding: 22px 26px; margin-bottom: 22px;
  flex-wrap: wrap; font-size: 12px;
}
.kds-flow .lbl { font-size: 11px; color: var(--muted); margin-right: 8px; }
.kds-flow .st { border: 1px solid var(--border); padding: 7px 13px; color: var(--muted); border-radius: 999px; }
.kds-flow .st.on { color: var(--text); border-color: var(--accent); }
.kds-flow .arr { color: var(--muted); }

/* ---------- PAINEL AO VIVO ---------- */
.ops { border: 1px solid var(--border); background: var(--surface); }
.ops-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--muted); gap: 12px; flex-wrap: wrap;
}
.ops-head .live { display: flex; align-items: center; gap: 7px; }
.ops-head .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.ops-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.ops-stat { padding: 18px 20px; border-right: 1px solid var(--border); }
.ops-stat:last-child { border-right: none; }
.ops-stat .v { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ops-stat .k { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.ops-bars { padding: 16px 20px; border-bottom: 1px solid var(--border); display: grid; gap: 12px; }
.ops-bar .t { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.ops-bar .t strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.ops-bar .track { height: 4px; background: #242424; }
.ops-bar .fill { height: 100%; background: var(--text); width: 0; transition: width 1.2s ease; }
.ops-feed { padding: 8px 0; min-height: 216px; }
.ops-row {
  display: flex; gap: 14px; padding: 9px 20px;
  font-size: 12px; color: var(--muted);
  border-left: 2px solid transparent;
  animation: rowIn 0.3s;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ops-row strong { color: var(--text); font-weight: 500; }
.ops-row .tm { font-variant-numeric: tabular-nums; flex: 0 0 58px; }
.ops-row.deny { border-left-color: var(--accent); }

/* ---------- TABELA TÉCNICA ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; border-top: 1px solid var(--border); }
.tech-row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--border);
}
.tech-row .k { font-size: 14.5px; font-weight: 500; }
.tech-row .k small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.tech-row .v { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- HUB DE FUNCIONALIDADES ---------- */
.hub-bloco + .hub-bloco { margin-top: 56px; }
.hub-titulo {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px;
  font-size: 12px; color: var(--muted);
}
.hub-titulo h3 { font-size: 13px; color: var(--text); font-weight: 500; }
.hub-titulo .line { flex: 1; height: 1px; background: var(--border); align-self: center; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.hub-card {
  padding: 28px 26px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; transition: background 0.15s;
}
.hub-grid .hub-card:nth-child(3n) { border-right: none; }
.hub-grid .hub-card:nth-last-child(-n+3) { border-bottom: none; }
.hub-card:hover { background: var(--surface); }
.hub-card h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.hub-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.hub-card .go { color: var(--accent); font-size: 13px; margin-top: 14px; }

/* ---------- BLOG ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); }
.post-card {
  padding: 34px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; transition: background 0.15s;
}
.post-list .post-card:nth-child(2n) { border-right: none; }
.post-list .post-card:nth-last-child(-n+2) { border-bottom: none; }
.post-card:hover { background: var(--surface); }
.pc-meta { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.pc-meta .dot { color: var(--border); }
.post-card h3 { font-size: 25px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.12; margin: 14px 0 10px; }
.post-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.post-card .pc-go { color: var(--accent); font-size: 13px; margin-top: 18px; }

.post { max-width: 780px; padding-top: 44px; }
.post-head { padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.post-head h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.038em; line-height: 1.02; margin: 18px 0 0; }
.post-lede { font-size: 18px; color: var(--muted); line-height: 1.6; margin-top: 20px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.post-tags span { font-size: 11px; color: var(--muted); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.post-body { padding: 40px 0 10px; font-size: 17px; line-height: 1.7; }
.post-body p { margin-bottom: 22px; opacity: 0.92; }
.post-body h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 46px 0 18px; }
.post-body h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 36px 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; }
.post-body li { margin-bottom: 10px; opacity: 0.92; }
.post-body a { color: var(--accent); font-weight: 500; }
.post-body strong { font-weight: 600; }
.post-body code { background: var(--surface); border: 1px solid var(--border); padding: 2px 6px; font-size: 15px; }
.post-body blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; margin: 0 0 22px; color: var(--muted); }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-body img { display: block; margin: 0 0 22px; border: 1px solid var(--border); }
.post-share {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 22px; margin-top: 20px;
  font-size: 13px;
}
.post-share .ps-l { color: var(--muted); }
.post-share a, .post-share .ps-copiar {
  color: var(--text); border-bottom: 1px solid var(--border);
  padding: 0 0 3px; font-size: 13px; transition: all 0.15s;
}
.post-share a:hover, .post-share .ps-copiar:hover { color: var(--accent); border-color: var(--accent); }
.post-share .ps-copiar.ok { color: var(--ok); border-color: var(--ok); }

.post-foot { border-top: 1px solid var(--border); padding-top: 34px; margin-top: 34px; }
.post-foot p { font-size: 16px; color: var(--muted); margin-bottom: 24px; max-width: 560px; }

/* ---------- CURSOS (índice) ---------- */
.curso-list { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); }
.curso-card {
  padding: 34px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; transition: background 0.15s;
}
.curso-list .curso-card:nth-child(2n) { border-right: none; }
.curso-list .curso-card:nth-last-child(-n+2) { border-bottom: none; }
.curso-card:hover { background: var(--surface); }
.cc-top { display: flex; justify-content: space-between; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.cc-nivel { color: var(--accent); }
.curso-card h3 { font-size: 25px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.12; margin: 14px 0 10px; }
.curso-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.cc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.cc-go { color: var(--accent); }

/* ---------- MAPA DO SITE ---------- */
.mapa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.mapa-col h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.mapa-col ul { list-style: none; }
.mapa-col li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 15px; }
.mapa-col li a:hover { color: var(--accent); }
.mapa-full { margin-top: 48px; }

/* ---------- ESTADO VAZIO ---------- */
.vazio { border: 1px solid var(--border); padding: 44px 34px; }
.vazio p { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.6; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .jornada { grid-template-columns: 1fr; }
  .fase { border-right: none; border-bottom: 1px solid var(--border); }
  .fase:last-child { border-bottom: none; }
  .cards-grid, .hub-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid.c3 .cg-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .cards-grid.c3 .cg-card:nth-child(2n) { border-right: none; }
  .cards-grid.c3 .cg-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .cards-grid.c3 .cg-card:nth-last-child(-n+2) { border-bottom: none; }
  .hub-grid .hub-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .hub-grid .hub-card:nth-child(2n) { border-right: none; }
  .hub-grid .hub-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .hub-grid .hub-card:nth-last-child(-n+2) { border-bottom: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .tech-grid { grid-template-columns: 1fr; }
  .mapa-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .post-list, .curso-list { grid-template-columns: 1fr; }
  .post-list .post-card, .curso-list .curso-card { border-right: none; border-bottom: 1px solid var(--border); }
  .post-list .post-card:last-child, .curso-list .curso-card:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .cards-grid, .hub-grid { grid-template-columns: 1fr; }
  .cards-grid.c3 .cg-card, .hub-grid .hub-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .cards-grid.c3 .cg-card:last-child, .hub-grid .hub-card:last-child { border-bottom: none !important; }
  .ops-stats { grid-template-columns: 1fr; }
  .ops-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .ops-stat:last-child { border-bottom: none; }
  .mapa-grid { grid-template-columns: 1fr; }
  .fase { padding: 30px 24px; }
  .post-card, .curso-card { padding: 28px 22px; }
}
