/* Max ad cost per order (/tools/max-ad-cost/). Loaded on that page only; the shell, cards, track and PDF
   report come from the Real Profit Calculator's rules in styles.css (.calc-page, .calc, .calc-report). */
.maxad__usd { font-family: var(--mono); font-size: 13.5px; color: var(--on-dark); padding-top: 4px; }
[dir="rtl"] .maxad__usd { font-family: var(--font); }
.maxad__usd bdi { font-weight: 600; color: var(--pos); }
.maxad__now[hidden] { display: none; }
.maxad__noad { margin-block: 6px 12px; }
/* Sibling cards in a pair line up part by part: label, number, note. */
.maxad .calc__pair { grid-template-rows: auto auto 1fr; }
.maxad .calc__pair > .calc__card { grid-row: span 3; grid-template-rows: subgrid; }
@media (max-width: 560px) { .maxad .calc__pair { grid-template-rows: none; } .maxad .calc__pair > .calc__card { grid-row: auto; grid-template-rows: none; } }
@media print {
  .calc-report__pair .calc__card { grid-row: auto; grid-template-rows: none; }
  .calc-report .maxad__usd { color: var(--ink); }
}
/* The keyword H1 is longer than the calculator's: keep it to two lines on phones. */
@media (max-width: 560px) { .maxad-page .calc-page__title { font-size: 30px; } }
/* Short explainer and FAQ blocks: even lines, no one-word last line. */
.maxad-page .tools-page__lead, .maxad-page .calc-guide li, .maxad-page .calc-guide p, .maxad-page .calc-guide dd { text-wrap: balance; }
