/* Content pages (search pages). Loaded after styles.css. Every new class starts with pg-.
   Uses the variables from styles.css: --ink --body --mute --line --soft --char --amber --radius --sans. */

.pg-main { max-width: 760px; padding: 40px 16px 64px; }
@media (min-width: 768px) { .pg-main { padding: 56px 24px 88px; } }

.pg-main h1 { font-size: 32px; line-height: 1.12; font-weight: 800; }
@media (min-width: 768px) { .pg-main h1 { font-size: 44px; } }
.pg-main h2 { font-size: 26px; line-height: 1.2; font-weight: 800; margin: 48px 0 14px; }
.pg-main h3 { font-size: 20px; font-weight: 700; }
.pg-main p, .pg-main li { color: var(--body); font-size: 18px; line-height: 1.6; }
.pg-main p { margin: 0 0 14px; }
.pg-main ul, .pg-main ol { margin: 0 0 14px; padding-left: 22px; }
.pg-main li + li { margin-top: 8px; }
.pg-main a { color: #24496E; }
.pg-main a.btn { color: var(--char); }

.pg-date { margin: 14px 0 24px; font-size: 15px; font-weight: 600; color: var(--mute); }
.pg-main .pg-date { font-size: 15px; color: var(--mute); }

/* Short answer */
.pg-short { margin: 0 0 8px; padding: 20px 22px; background: var(--amber-50); border: 1px solid var(--amber-line); border-left: 5px solid var(--amber); border-radius: var(--radius); }
.pg-short p { margin: 0; color: var(--ink); font-size: 19px; }
.pg-short p + p { margin-top: 10px; }

/* Where the rival is strong */
.pg-strong { margin: 0 0 14px; padding: 20px 22px 8px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.pg-strong p:first-child { margin-top: 0; }
.pg-strong ul { margin-bottom: 12px; }

/* Tables on a white page */
.pg-table { margin: 4px 0 14px; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.pg-table .cmp { min-width: 0; }
.pg-table .cmp th, .pg-table .cmp td { padding: 13px 14px; }
.pg-table .cmp tbody th[scope=row] { text-align: left; }
.pg-table .cmp thead th { font-size: 15px; }
@media (max-width: 767px) {
  .pg-table .cmp { font-size: 14.5px; }
  .pg-table .cmp th, .pg-table .cmp td { padding: 11px 8px; }
  .pg-table .cmp .col-name { font-size: 15px; }
  .pg-table .cmp tbody th[scope=row] small, .pg-table .cmp tbody td small { font-size: 13px; }
}
.pg-note { font-size: 15px !important; color: var(--mute) !important; }
/* Four-column price table: column widths so the software names never run into the next column */
.pg-table .cmp .pg-c1 { width: 29%; } .pg-table .cmp .pg-c2 { width: 20%; } .pg-table .cmp .pg-c3 { width: 28%; } .pg-table .cmp .pg-c4 { width: 23%; }
@media (max-width: 767px) {
  .pg-table .cmp.pg-cols4 th, .pg-table .cmp.pg-cols4 td { padding: 11px 5px; font-size: 14px; }
  .pg-table .cmp.pg-cols4 tbody th[scope=row] { font-size: 13.5px; }
  .pg-table .cmp.pg-cols4 thead th { font-size: 13.5px; }
}

/* Numbered source links */
.pg-cite { font-size: 12px; line-height: 1; margin-left: 2px; vertical-align: super; }
.pg-cite a { text-decoration: none; font-weight: 700; padding: 0 1px; }
.pg-cite a:hover { text-decoration: underline; }
.pg-cite a + a::before { content: ","; display: inline-block; margin-right: 1px; color: var(--mute); }

/* FAQ caret without an icon font */
.pg-faq { max-width: none; margin: 0 0 14px; }
.pg-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--mute); border-bottom: 2.5px solid var(--mute); transform: rotate(45deg); margin-top: -4px; }
.pg-faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.pg-faq .ans p { font-size: 17px; }

/* Call to action in charcoal */
.pg-cta { margin: 48px 0 0; padding: 30px 28px; background: var(--char); border-radius: 16px; color: var(--on-char); }
.pg-main .pg-cta h2 { margin: 0 0 10px; color: #fff; font-size: 28px; }
.pg-main .pg-cta p { color: var(--on-char-2); margin: 0 0 18px; }
@media (max-width: 767px) {
  .pg-cta { padding: 24px 18px; }
  .pg-main .pg-cta h2 { font-size: 24px; }
  .pg-cta .btn { width: 100%; }
}

/* Related pages */
.pg-related { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.pg-related li { margin: 0 !important; }
.pg-related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; text-decoration: none; color: var(--ink); }
.pg-related a:hover { border-color: var(--amber); background: var(--amber-50); }
.pg-related small { display: block; margin-top: 2px; font-weight: 400; font-size: 15px; color: var(--mute); }
@media (min-width: 640px) { .pg-related { grid-template-columns: 1fr 1fr; } }

/* Sources in small type */
.pg-sources { font-size: 14.5px; }
.pg-main .pg-sources li { font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.pg-sources li:target { background: var(--amber-50); }
.pg-main .pg-sources-intro { font-size: 15px; color: var(--mute); }

/* Labor rate calculator */
.pg-lr-form { display: grid; gap: 0 20px; margin: 0 0 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-sm); }
@media (min-width: 640px) { .pg-lr-form { grid-template-columns: 1fr 1fr; } }
.pg-lr-form input[type=number] { width: 100%; min-height: 56px; padding: 0 16px; font: 400 18px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #B5B3AE; border-radius: 10px; }
.pg-main .pg-lr-hint { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--mute); }
.pg-main .pg-lr-example { margin: 0 0 10px; font-weight: 600; }
.pg-lr-results { margin: 8px 0 0; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.pg-lr-big { display: grid; gap: 14px; }
@media (min-width: 640px) { .pg-lr-big { grid-template-columns: 1fr 1fr; } }
.pg-lr-box { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pg-lr-box-target { background: var(--amber-50); border-color: var(--amber-line); border-left: 5px solid var(--amber); }
.pg-lr-label { display: block; font-size: 15px; font-weight: 600; color: var(--mute); }
.pg-lr-box strong { display: inline-block; margin-top: 4px; font-size: 44px; line-height: 1.1; font-weight: 800; color: var(--ink); }
.pg-lr-unit { margin-left: 6px; font-size: 16px; color: var(--mute); }
.pg-lr-small { display: grid; gap: 10px 20px; margin: 16px 0 0; }
@media (min-width: 640px) { .pg-lr-small { grid-template-columns: 1fr 1fr; } }
.pg-lr-small div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pg-lr-small dt { font-size: 16px; color: var(--body); }
.pg-lr-small dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.pg-main .pg-lr-error { margin: 0 0 10px; font-weight: 600; color: var(--red-ink); }
.pg-main .pg-lr-error:empty { display: none; }
@media (max-width: 767px) {
  .pg-lr-form, .pg-lr-results { padding: 16px; }
  .pg-lr-box strong { font-size: 38px; }
}
