/* Trade answering-service pages (/hvac-answering-service and friends): the overview hero with
   the paste-your-website row, then a field-notes article. Rides sub.css chrome. */

.sub.sub--lp { padding: 0; }
.sub--lp .nw { white-space: nowrap; }
.sub--lp p, .sub--lp li, .sub--lp dd, .sub--lp td, .sub--lp figcaption { text-wrap: pretty; }
.sub--lp h1, .sub--lp h2, .sub--lp h3 { text-wrap: balance; }

/* ---------- hero: the overview hero; each page sets its own pair of bursts ---------- */
.sub--lp .lp-hero { padding-bottom: clamp(48px, 6vw, 76px); }
.sub--lp .lp-hero .burst--l { fill: var(--lp-l, var(--cobalt)); }
.sub--lp .lp-hero .burst--r { fill: var(--lp-r, var(--tomato)); }
/* a longer first line sets --lp-h1 smaller, so the headline always clears both bursts */
.sub--lp .lp-hero .note-h1 { max-width: none; font-size: clamp(2.9rem, calc(var(--lp-h1, 5.5) * 1.127vw), calc(var(--lp-h1, 5.5) * 1rem)); margin-bottom: 20px; }
/* two set lines from tablet up; phones let the balance decide */
.sub--lp .lp-hero .note-h1 > [data-ewp-words], .sub--lp .lp-line { display: block; }
.sub--lp .lp-hero .lede { max-width: 62ch; }

/* the paste row: the homepage's blank to fill in, with one loud pill (this page's only ask) */
.sub--lp .lp-paste { width: min(800px, 100%); margin: 32px auto 0; }
.sub--lp .lp-paste .siteread__row { gap: 14px 18px; }
.sub--lp .lp-paste .siteread__label { align-self: stretch; display: flex; align-items: center; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.sub--lp .lp-paste .siteread__field { flex: 0 1 300px; }
.sub--lp .lp-paste .siteread__input { padding-block: 8px; }
.sub--lp .lp-paste__go { flex: none; font-size: 1.45rem; padding: 14px 30px; }
.sub--lp .siteread__note { margin: 12px 0 0; font-size: .92rem; font-weight: 500; color: var(--ink); text-align: center; }
.sub--lp .lp-hero__fine { margin: 24px auto 0; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.sub--lp .lp-hero__fine--2 { margin-top: 4px; }
.sub--lp .lp-hero__fine a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- body: the notes article and its rail ---------- */
.sub--lp .lp-body { padding: clamp(44px, 6vw, 76px) var(--pad) 96px; }
.sub--lp .wrap--rail { max-width: 1180px; grid-template-columns: minmax(0, 1fr) 300px; }
.sub--lp .wrap--rail > article { max-width: 70ch; }
.sub--lp .note > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sub--lp .note ul li strong { display: block; margin-bottom: 2px; font: 400 1.3rem/1.15 var(--serif); }

/* the rail: its own paste card first, then the index, whose list sizes itself to the room left */
.sub--lp .sub__rail { top: 90px; gap: 16px; }
.sub--lp .lp-railpaste { padding: 18px 20px 16px; }
.sub--lp .lp-railpaste .rail__h { margin-bottom: 6px; font-size: 1.5rem; }
.sub--lp .lp-railpaste > p:not(.rail__h):not(.rail__alt) { margin-bottom: 12px; }
.sub--lp .lp-railpaste form { display: grid; gap: 10px; }
.sub--lp .rail__card--toc.tocs { --tocs-pad: 11px 34px 11px 0; }
.sub--lp .rail__card--toc .tocs__head { padding: 12px 0 10px; }
.sub--lp .lp-railpaste input[type="text"] { width: 100%; min-width: 0; padding: 11px 16px; font: italic 400 1.25rem/1.1 var(--serif); color: var(--ink); background: var(--cream); border: 1.5px solid var(--ink); border-radius: 999px; }
.sub--lp .lp-railpaste input[type="text"]::placeholder { color: #8a8270; }
.sub--lp .lp-railpaste input[type="text"]:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 2px; }
.sub--lp .lp-railpaste .pill--note { width: 100%; font-family: var(--sans); }
.sub--lp .lp-railpaste .siteread__note { margin: 0; text-align: left; font-size: .86rem; }
.sub--lp .lp-railpaste .rail__alt { margin-bottom: 0; }

/* ---------- the example call card: a manila file with a tab and a stamp ---------- */
.sub--lp .lp-fig { margin: 62px 0 26px; }
.sub--lp .lp-card { position: relative; padding: clamp(14px, 2.6vw, 24px); background: var(--marigold); border: 1.5px solid var(--ink); border-radius: 0 22px 22px 22px; box-shadow: 7px 7px 0 var(--ink); }
.sub--lp .lp-card__tab { position: absolute; left: -1.5px; top: -37px; margin: 0; padding: 10px 22px 8px; background: var(--marigold); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.sub--lp .lp-card__stamp { position: absolute; z-index: 1; right: clamp(14px, 3vw, 26px); top: -17px; margin: 0; padding: 7px 14px 5px; background: var(--cream); border: 2px solid var(--tomato); border-radius: 8px; color: var(--tomato); font: 700 .82rem/1.2 "Courier Prime", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; rotate: 3deg; }
.sub--lp .lp-card__paper { padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 28px) clamp(8px, 1.6vw, 14px); background: #fffdf6; border: 1.5px solid var(--ink); border-radius: 14px; }
.sub--lp .lp-card__kicker { margin: 0 0 8px; font: 600 .7rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.sub--lp .lp-card__h { margin: 0 0 6px; font: 400 clamp(1.75rem, 3vw, 2.2rem)/1.06 var(--serif); color: var(--ink); }
.sub--lp .lp-card__meta { margin: 0 0 16px; font: 400 .95rem/1.4 "Courier Prime", ui-monospace, monospace; color: var(--ink-soft); }
.sub--lp .lp-card__rows { margin: 0; }
.sub--lp .lp-card__rows > div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1.5px dashed rgb(30 27 22 / .3); }
.sub--lp .lp-card__rows dt { padding-top: 3px; font: 700 .8rem/1.4 "Courier Prime", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sub--lp .lp-card__rows dd { margin: 0; line-height: 1.5; color: var(--ink); }
.sub--lp .lp-fig figcaption { margin-top: 20px; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- pick your trade (the two hub pages): the notes index cards, two up ---------- */
.sub--lp .lp-trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 20px; }
.sub--lp .lp-trades .ncard__q { font-size: 1.45rem; }

/* ---------- the comparison table: last column is ours (styles.css tints it) ---------- */
.sub--lp .lp-compare td { width: 38%; }
.sub--lp .lp-compare td:first-child { width: 24%; }

/* ---------- the price: audition beside keep ---------- */
.sub--lp .lp-price { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 24px; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.sub--lp .lp-price__cell { padding: 22px 24px 24px; }
.sub--lp .lp-price__cell--keep { background: #fff3d6; border-left: 1.5px solid var(--ink); }
.sub--lp .lp-price__k { margin: 0 0 12px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.sub--lp .lp-price__n { margin: 0 0 12px; font: 400 clamp(2.6rem, 5vw, 3.3rem)/1 var(--serif); color: var(--ink); }
.sub--lp .lp-price__n small { margin-left: 4px; font: 400 1.2rem/1 var(--serif); }
.sub--lp .lp-price__t { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- keep reading: two cards of links ---------- */
.sub--lp .lp-more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 0; align-items: start; }
.sub--lp .lp-more .lp-more__h { margin: 0 0 12px; font: 400 1.5rem/1.1 var(--serif); color: var(--ink); }
.sub--lp .lp-more .rail__link { padding: 12px 0; font-size: 1rem; line-height: 1.35; text-wrap: balance; }
.sub--lp .lp-more .rail__link.is-first { padding-top: 6px; }

/* the questions never strand a word */
.sub--lp .faq-mini summary { text-wrap: balance; }

@media (max-width: 991px) {
  .sub--lp .wrap--rail { grid-template-columns: 1fr; }
  .sub--lp .sub__rail { display: none; }
}

/* tablets: the bursts drop to the hero's bottom corners (the phone placement), clear of the headline */
@media (max-width: 860px) {
  .sub--lp .lp-hero { padding-bottom: 96px; }
  .sub--lp .lp-hero .burst { width: 120px; }
  .sub--lp .lp-hero .burst--l { top: auto; bottom: -40px; left: -60px; }
  .sub--lp .lp-hero .burst--r { top: auto; bottom: -30px; right: -56px; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .sub--lp .lp-hero { padding-top: 44px; padding-bottom: 96px; }
  .sub--lp .lp-hero .section-kicker { margin-bottom: 10px; }
  .sub--lp .lp-hero .note-h1 { font-size: clamp(2.7rem, 12.2vw, 3.2rem); margin: 0 auto 16px; }
  .sub--lp .lp-line { display: inline; }
  /* the wrapped highlight sits under the words, so it never covers the line above it */
  .sub--lp .lp-hero .note-h1 .ewp-word { position: relative; z-index: 1; }
  .sub--lp .lp-paste { margin-top: 22px; }
  .sub--lp .lp-hero__fine { margin-top: 22px; }
  .sub--lp .lp-hero__fine--2 { margin-top: 10px; }
  .sub--lp .lp-hero__fine a { display: inline-block; padding: 4px 0; }
  .sub--lp .lp-paste .siteread__label { flex: 1 0 100%; justify-content: center; }
  .sub--lp .lp-paste .siteread__field { flex: 1 1 100%; }
  .sub--lp .lp-paste .siteread__input { padding-block: 10px; text-align: center; font-size: 1.5rem; }
  .sub--lp .lp-paste__go { width: 100%; justify-content: center; font-size: 1.5rem; padding: 16px 24px; }
  .sub--lp .lp-body { padding-bottom: 72px; }
  .sub--lp .lp-fig { margin-top: 56px; }
  .sub--lp .lp-card { box-shadow: 5px 5px 0 var(--ink); }
  .sub--lp .lp-card__rows > div { grid-template-columns: 4.9em minmax(0, 1fr); gap: 10px; }
  .sub--lp .lp-trades, .sub--lp .lp-more, .sub--lp .lp-price { grid-template-columns: 1fr; }
  .sub--lp .lp-price__cell--keep { border-left: 0; border-top: 1.5px solid var(--ink); }

  /* the table becomes a card per row: the question, then each side under its own label */
  .sub--lp .lp-compare { overflow: visible; }
  .sub--lp .lp-compare table, .sub--lp .lp-compare tbody, .sub--lp .lp-compare tr, .sub--lp .lp-compare td { display: block; width: auto; }
  .sub--lp .lp-compare tr:first-child { display: none; }
  .sub--lp .lp-compare tr { border-bottom: 1.5px solid var(--ink); }
  .sub--lp .lp-compare tr:last-child { border-bottom: 0; }
  .sub--lp .lp-compare td { padding: 0 16px 12px; border: 0; }
  .sub--lp .lp-compare td:first-child { width: auto; padding: 14px 16px 10px; font: 400 1.3rem/1.15 var(--serif); }
  .sub--lp .lp-compare td:last-child { padding-top: 12px; padding-bottom: 14px; }
  .sub--lp .lp-compare tr:last-child td:last-child { border-radius: 0 0 12px 12px; }
  .sub--lp .lp-compare td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 3px; font: 600 .66rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
}
