/* Perguntar ao Escanção · editorial (pocas.pt): branco, oliva #35382E, vermelho #702F2F, linhas finas, sem caixas atrás de números ou ícones. */
.pg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 44px; align-items: start; min-height: calc(100vh - 120px); }
.pg-lado { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 18px; border-right: 1px solid var(--linha); }
.pg-lado h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-3); font-weight: 700; margin: 26px 0 8px; }
.pg-lado ul { list-style: none; margin: 0; padding: 0; }
.pg-lado li button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 9px 4px; cursor: pointer; border-bottom: 1px solid var(--linha-2); color: var(--tinta-2); }
.pg-lado li button .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--tinta-3); flex: none; }
.pg-lado li button b { display: block; font-weight: 400; font-size: 13.5px; line-height: 1.35; color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-lado li button small { display: block; font-size: 11.5px; color: var(--tinta-3); margin-top: 2px; }
.pg-lado li button:hover b, .pg-lado li.ativo b { color: #702F2F; }
.pg-lado li.ativo button { border-bottom-color: #702F2F; }
.pg-lado .pg-vazio { font-size: 13px; color: var(--tinta-3); padding: 8px 4px; }
.pg-nova-l { width: 100%; justify-content: center; }
.pg-uso { margin-top: 22px; }

.pg-main { min-width: 0; max-width: 900px; display: flex; flex-direction: column; min-height: calc(100vh - 120px); }
.pg-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--linha); }
.pg-cab h1 { margin: 2px 0 6px; }
.pg-estado { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--tinta-2); font-size: 14px; }
.pg-estado .ico { width: 17px; height: 17px; color: #702F2F; flex: none; }
.pg-cab-acoes { display: flex; gap: 18px; }
.pg-so-m { display: none; }

.pg-fio { flex: 1; padding: 8px 0 24px; }
.pg-inicio { padding: 48px 0 12px; }
.pg-grande { font-family: var(--serif); text-transform: uppercase; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; margin: 0 0 10px; color: #000; }
.pg-sug { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linha); }
.pg-sug li { border-bottom: 1px solid var(--linha); }
.pg-sug li:nth-child(odd) { border-right: 1px solid var(--linha-2); }
.pg-sug button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 16px 14px 16px 0; cursor: pointer; font-size: 14.5px; color: var(--tinta); line-height: 1.4; }
.pg-sug li:nth-child(even) button { padding-left: 16px; }
.pg-sug button .ico { width: 18px; height: 18px; color: #702F2F; margin-top: 1px; flex: none; }
.pg-sug button:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.pg-turno { padding: 30px 0 26px; border-bottom: 1px solid var(--linha); animation: pg-entra .35s ease both; }
@keyframes pg-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pg-perg { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 0 0 16px; color: #000; }
.pg-passos { margin: 0 0 14px; font-size: 13px; color: var(--tinta-3); }
.pg-passos summary { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; color: var(--tinta-2); }
.pg-passos summary::-webkit-details-marker { display: none; }
.pg-passos summary .ico { width: 15px; height: 15px; color: #702F2F; }
.pg-passos[open] summary .ico { animation: pg-brilho 1.6s ease-in-out infinite; }
@keyframes pg-brilho { 50% { opacity: .35; } }
.pg-passos ol { margin: 8px 0 0 7px; padding: 0 0 0 16px; border-left: 1px solid var(--linha); list-style: none; }
.pg-passos li { position: relative; padding: 3px 0; }
.pg-passos li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 7px; height: 1px; background: var(--tinta-3); }
.pg-passos li.nota { font-style: italic; }

.pg-corpo { font-size: 15.5px; line-height: 1.65; color: var(--tinta); }
.pg-corpo p { margin: 0 0 12px; }
.pg-corpo ul, .pg-corpo ol { margin: 4px 0 14px; padding-left: 20px; }
.pg-corpo li { margin: 3px 0; }
.pg-corpo h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-3); font-weight: 700; margin: 18px 0 6px; }
.pg-corpo b { font-weight: 700; }
.pg-corpo code { font-size: 13px; background: var(--linha-2); padding: 1px 4px; }
.pg-ent { color: #702F2F; border-bottom: 1px solid rgba(112, 47, 47, .35); }
.pg-ent:hover { border-bottom-color: #702F2F; }
.pg-caret { display: inline-block; width: 7px; height: 16px; margin-left: 2px; background: #35382E; vertical-align: -2px; animation: pg-brilho 1s steps(2) infinite; }
.pg-cursor { display: flex; gap: 5px; height: 22px; align-items: center; }
.pg-cursor i { width: 5px; height: 5px; border-radius: 50%; background: var(--tinta-3); animation: pg-ponto 1.2s ease-in-out infinite; }
.pg-cursor i:nth-child(2) { animation-delay: .15s; } .pg-cursor i:nth-child(3) { animation-delay: .3s; }
@keyframes pg-ponto { 40% { transform: translateY(-4px); opacity: .5; } }
.pg-erro { display: flex; gap: 8px; align-items: center; color: #702F2F; }
.pg-erro .ico { width: 18px; height: 18px; }

.pg-tab-w { overflow-x: auto; margin: 14px 0; }
.pg-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pg-tab th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3); font-weight: 700; padding: 8px 12px 8px 0; border-bottom: 1px solid #35382E; white-space: nowrap; }
.pg-tab td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
.pg-tab .num { text-align: right; font-variant-numeric: tabular-nums; }

.pg-graf { margin: 18px 0 10px; }
.pg-graf figcaption { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-3); font-weight: 700; margin-bottom: 8px; }
.pg-graf figcaption span { letter-spacing: 0; text-transform: none; font-weight: 400; }
.pg-graf svg { width: 100%; height: auto; display: block; }
.pg-g-grelha { stroke: var(--linha); stroke-width: 1; }
.pg-g-eixo { font-size: 11px; fill: var(--tinta-3); font-family: var(--sans); }
.pg-g-leg { display: flex; gap: 16px; font-size: 12.5px; color: var(--tinta-2); margin-top: 4px; }
.pg-g-leg i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }

.pg-acoes { margin: 18px 0 6px; }
.pg-acoes h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-3); font-weight: 700; margin: 0 0 4px; font-family: var(--sans); }
.pg-acao { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.pg-acao > .ico { width: 18px; height: 18px; color: #35382E; flex: none; }
.pg-acao > span:first-of-type { flex: 1; }
.pg-acao-b { display: flex; gap: 12px; align-items: center; flex: none; }
.pg-acao.feita > span:first-of-type { color: var(--tinta-3); }
.pg-acao.cancelada > span:first-of-type { color: var(--tinta-3); text-decoration: line-through; }
.pg-feito { display: inline-flex; gap: 6px; align-items: center; color: var(--verde); font-size: 13px; }
.pg-feito .ico { width: 16px; height: 16px; }

.pg-seg { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 4px; }
.pg-chip { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 13.5px; color: #702F2F; border-bottom: 1px solid transparent; }
.pg-chip .ico { width: 14px; height: 14px; }
.pg-chip:hover { border-bottom-color: #702F2F; }
.pg-ferr { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 14px; color: var(--tinta-3); }
.pg-ferr .b-link.ativo { color: #702F2F; }
.pg-ferr .ico.inv { transform: scaleY(-1); }
.pg-aval { display: inline-flex; gap: 14px; }
.pg-motor { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3); }

.pg-comp { position: sticky; bottom: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 22%); padding: 22px 0 14px; }
.pg-campo { display: flex; align-items: flex-end; gap: 6px; border: 1px solid #35382E; background: #fff; padding: 8px 8px 8px 16px; }
.pg-campo:focus-within { box-shadow: 0 0 0 3px rgba(53, 56, 46, .08); }
.pg-campo textarea { flex: 1; border: 0; outline: 0; resize: none; font-size: 16px; line-height: 1.5; padding: 7px 0; max-height: 200px; background: transparent; }
.pg-mic, .pg-env { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: #35382E; flex: none; }
.pg-env { background: #000; color: #fff; }
.pg-env:disabled { opacity: .35; cursor: default; }
.pg-mic .ico, .pg-env .ico { width: 20px; height: 20px; }
.pg-mic.a-ouvir { color: #702F2F; animation: pg-brilho 1.2s ease-in-out infinite; }
.pg-nota { font-size: 12px; color: var(--tinta-3); margin: 8px 0 0; }

.procura-perg { display: flex !important; gap: 10px; justify-content: flex-start !important; align-items: center; color: #702F2F; border-bottom: 1px solid var(--linha-2); }
.procura-perg .ico { width: 18px; height: 18px; flex: none; }
.procura-perg b { font-weight: 700; }

.pg-lado-m { position: static; max-height: none; border: 0; padding: 0; }

@media (max-width: 900px) {
  .pg { grid-template-columns: 1fr; }
  .pg > .pg-lado { display: none; }
  .pg-so-m { display: inline-flex; }
  .pg-main { min-height: calc(100vh - 150px); }
  .pg-sug { grid-template-columns: 1fr; }
  .pg-sug li:nth-child(odd) { border-right: 0; }
  .pg-sug li:nth-child(even) button { padding-left: 0; }
  .pg-perg { font-size: 19px; }
  .pg-cab { flex-direction: column; align-items: flex-start; }
  .pg-acao { flex-wrap: wrap; }
  .pg-acao-b { width: 100%; justify-content: flex-end; }
  .pg-comp { bottom: calc(66px + env(safe-area-inset-bottom)); padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pg-turno, .pg-cursor i, .pg-caret, .pg-passos[open] summary .ico, .pg-mic.a-ouvir { animation: none; } }
@media print { .pg-lado, .pg-comp, .pg-ferr, .pg-acoes, .pg-seg, .pg-cab-acoes { display: none !important; } .pg { display: block; } }
