/* MercadoLand: ferramentas grátis (calculadoras), 07/11/2026.
   Usado por calculadora-mercado-autonomo.php e calculadora-franquia-ou-licenca.php via $extra_css. */
.ph-calc { padding: 40px 0 44px; }
.ph-calc h1 { font-size: clamp(28px, 3.6vw, 42px); max-width: 980px; }
.ph-calc .lead { font-size: 18px; max-width: 860px; }
.ph-calc + .sec { padding-top: 48px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px; align-items: start; }
.calc-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh-sm); min-width: 0; }
.calc-box h2 { font-size: 22px; margin-bottom: 4px; }
.calc-box h3 { font-size: 16px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-box h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 14px; }
.calc-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 6px; }
.fl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fl .full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f label { font-weight: 700; color: var(--navy); font-size: 14.5px; line-height: 1.3; }
.f small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.f .ex { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #8a6a00;
  background: var(--yel-soft); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.f .vz { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--navy-3);
  background: var(--bg-2); border: 1px dashed var(--gray); border-radius: 6px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.in { display: flex; align-items: stretch; border: 1.5px solid #d3d5e3; border-radius: 12px; background: #fff; overflow: hidden; }
.in:focus-within { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(74, 73, 131, .15); }
.in span { display: flex; align-items: center; padding: 0 10px; background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: 14px; flex: none; }
.in input, .in select { border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 12px; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.in select { cursor: pointer; }
.in select.un { width: auto; flex: none; border-left: 1px solid #d3d5e3; background: var(--bg-2); font-weight: 700; color: var(--navy); padding: 10px 8px; font-size: 15px; }
.calc-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc-acts button { font: inherit; cursor: pointer; }
.btn-link { background: none; border: 0; color: var(--navy-3); font-weight: 700; text-decoration: underline; padding: 6px 2px; font-size: 14.5px; }

.res { position: sticky; top: 90px; background: var(--navy); color: #dcdcf0; border-radius: var(--r); padding: 24px; box-shadow: var(--sh); min-width: 0; }
.res h2 { color: #fff; font-size: 21px; margin-bottom: 14px; }
.res-l { list-style: none; padding: 0; margin: 0; }
.res-l li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.res-l li b { color: #fff; font-size: 16.5px; white-space: nowrap; }
.res-l li.neg b { color: #ff9c9e; }
.res-big { background: rgba(255,255,255,.07); border-radius: 14px; padding: 14px 16px; margin: 14px 0 0; }
.res-big small { display: block; color: #c9c9e6; font-size: 13px; }
.res-big b { display: block; color: var(--yel); font-size: 28px; line-height: 1.2; }
.res-big.neg b { color: #ff9c9e; }
.res-big em { font-style: normal; display: block; font-size: 13.5px; color: #dcdcf0; margin-top: 4px; }
.res-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.res-two .res-big b { font-size: 22px; }
.res-msg { font-size: 13.5px; color: #c9c9e6; margin: 14px 0 0; }
.res .btn { margin-top: 16px; width: 100%; justify-content: center; }
.res-t { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 4px; }
.res-t th, .res-t td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: right; }
.res-t th:first-child, .res-t td:first-child { text-align: left; }
.res-t thead th { color: #c9c9e6; font-weight: 700; font-size: 13px; }
.res-t td { color: #fff; font-weight: 700; white-space: nowrap; }
.res-t td.dif { color: var(--yel); }

.exs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.exs button { font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--yel-soft); border: 1px solid var(--yel-2);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.exs-src { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

/* explicação */
.txt { max-width: 820px; }
.txt h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.4em; }
.txt h2:first-child { margin-top: 0; }
.txt h3 { margin-top: 1.2em; }
.txt li { margin-bottom: 6px; }
.txt .cmp { margin: 14px 0 18px; }
.txt .cmp table { min-width: 0; }
.upd { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.ans { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 14px 18px; margin: 18px 0 0; max-width: 760px; font-size: 16.5px; }
.links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.links a { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; height: 100%; }
.links a:hover { border-color: var(--red); }
.links .ic { width: 20px; height: 20px; color: var(--red); margin-top: 1px; }
.calc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: var(--yel-soft); border-radius: var(--r); padding: 20px 22px; margin: 26px 0; }
.calc-cta p { margin: 0; flex: 1 1 260px; color: var(--ink); }
.calc-cta b { color: var(--navy); }

@media (max-width: 940px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .res { position: static; }
}
@media (max-width: 620px) {
  .calc-box, .res { padding: 18px 16px; }
  .fl, .links, .res-two { grid-template-columns: minmax(0, 1fr); }
  .res-t { font-size: 13px; }
  .res-t th, .res-t td { padding: 8px 3px; }
  .calc-cta .btn { width: 100%; justify-content: center; }
}
