/* FixFinch · screen-size fixes (2026-11-18)
   Layout only: no copy, phone-number, tel: link or tracking changes.
   Loaded after style.css, calls.css and guides.css on every page of fixfinch.com, leads. and calls.
   Breakpoints:
     phone    < 768px    one column, headings and call-to-action buttons centred
     tablet   768–1023   the phone layout in a centred ~720px column (no squeezed desktop grids)
     desktop  >= 1024    two-column layouts where they help, images contained in their column */

/* ---------- all widths ---------- */

/* Header scrolls away with the page (it was sticky) */
.site-head, .site-head.call { position: relative; top: auto; }

/* Header controls: big enough to tap, label on one line */
.nav .btn, .head-call { min-height: 44px; white-space: nowrap; }
.head-note { font-size: .95rem; }

/* Buttons: icon and text centred together; a label that has to wrap stays centred */
.btn, .cp-call, .pl-go { text-align: center; }
.btn svg, .cp-call svg, .pl-go svg { flex: none; }

/* Text: body copy at least 16px, small print at least 14px */
.eyebrow { font-size: .875rem; }
.cat p, .up p, .cat .go, .up .go, .hub-card-t small, .tool-link span, .scenario p, .hub-list li, .hub-points li,
.calc-lines, .art-related span, .tool-card p, .tool-go, .hub-more, .hub-sec p, .next, .ticks, .callbox p, .cta-band p,
.cl-head p, .pl-figs li, .guide-list a, .cost-table, .prose table, .ask-list li, .art-note, .art-warn p, .cp-tip, .cp-end p,
.pl-cta p, .note-box, .match-banner, .suggest, .recap, .checks, .lookout, .aside-cost p, .paused-card .tool-link span,
.call-strip p span, .faq details p, .review figcaption, .proof-row, .qc-note, .qc-summary:not(:empty), .calc-bench,
.popular a, .jump-links a, .toc, .foot, .foot-links, .assure, .trust-row, .byline, .cp-geo, .pl-geo, .secure { font-size: 1rem; }
.fine, .consent, .disc, .cp-fine, .pl-fine, .zipcta-fine, .legal-mini, .art-cap, .ed-fig figcaption, .pl-pair figcaption,
.basis-key, .cost-src, .cp-note, .pl-support, .crumbs, .aside-cost p:last-child, .cost-box p:last-child, .callbox small,
.eff, .cookie { font-size: .875rem; }
.cost-table th, .recap dt, .prog-top, .qc-h th { font-size: .8125rem; }
.basis { font-size: .8125rem; }
.ad-label { font-size: .75rem; }
.disc p.pn-line { font-size: .875rem !important; }

/* Price rows: the label wraps, the amount stays on one line */
.guide-list a > span, .hub-list li > span, .calc-lines li > span, .cl-t, .aside-cost { min-width: 0; overflow-wrap: break-word; }
.guide-list b, .hub-list b, .calc-lines b, .cost-table td.mono { white-space: nowrap; }
.hub-list li { align-items: baseline; }
.guide-list b { font-size: .9375rem; }
@media (max-width: 1023px) {
  .guide-list a { flex-wrap: wrap; row-gap: 2px; }
  .guide-list a > span:nth-child(2) { flex: 1 1 0; }
  .guide-list b { margin-left: auto; }
}

/* Long words and web addresses wrap instead of pushing the page sideways */
h1, h2, h3, p, li, dd, td, th, figcaption, summary, address { overflow-wrap: break-word; }
.prose a, .disc a, .addr a { overflow-wrap: anywhere; }

/* Photos keep their subject in frame as the crop changes */
.ph img, .ed-fig img, .pl img, .cat-ph img { object-position: center 40%; }

/* Contents links wrap onto more lines instead of scrolling sideways out of view */
.jump-links { flex-wrap: wrap !important; overflow-x: visible !important; }
.jump-links a { white-space: normal !important; }

/* ---------- desktop guide lists: two columns until there is room for three ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone and tablet (< 1024): the phone layout ---------- */
@media (max-width: 1023px) {
  /* Header: logo left, call number (tablet) and main button right; the text menu stays on desktop */
  .nav a:not(.btn):not(.nav-call) { display: none; }
  .head-row { gap: 12px; }

  /* Home hero: one column, centred; the side photo stays off below desktop (it pushed the projects down) */
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .hero-side { display: none; }
  .hero .hero-row > div:first-child { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .popular { justify-content: center; }
  .cat-group h2 { justify-content: center; text-align: center; }
  .cat-group h2::before { content: ""; flex: 1; height: 1px; background: var(--line); }

  /* Grids: the phone version (no squeezed desktop columns) */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .how-row, .upsell-grid, .guide-list, .proof-grid, .scenarios, .hub-grid, .hub-cards, .tool-cards, .tools-grid,
  .art-related, .calc, .cl-grid, .cp-list, .pl-choice, .sched-features, .opts, .opts.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .how-ph img { aspect-ratio: 3 / 2; max-height: 320px; width: 100%; }
  .flow-grid { grid-template-columns: minmax(0, 640px); }
  .flow-aside { position: static; margin-top: 8px; }
  .aside-ph { display: none; }

  /* Headings and calls to action centred */
  .sec-head, .upsell-head, .cp-hero, .pl-head, .cl-head { text-align: center; justify-items: center; }
  .cp-hero .cp-badge, .cp-geo, .pl-geo { justify-self: center; }
  .cp-hero .lede, .pl-head .lede { margin-left: auto; margin-right: auto; }
  .cta-band { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .callbox { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .callbox .btn, .cta-band .btn, .call-strip .btn { width: 100%; justify-content: center; }
  .call-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .callnow { justify-content: center; text-align: center; }

  /* Call pages and pre-landers: the main button spans the column, as on phones */
  .cp-call.wide, .cp-end .cp-call.wide { width: 100%; justify-self: stretch; }
  .cp-note, .cp-alt, .pl-support { text-align: center; }
  .pl-top-cta .pl-go { width: 100%; justify-self: stretch; }
  .pl-mid { justify-items: stretch; }
  .pl-mid .btn, .pl-mid .pl-go { width: 100%; }
  .zipcta-row .btn { flex: 1 1 100%; }

  /* Article photos never taller than about half a phone screen */
  .lead-ph img, .hero-ph img, .pl-hero img { max-height: 420px; }
}

/* ---------- phone (< 768) ---------- */
@media (max-width: 767px) {
  /* Tighter spacing: cut the big empty gaps between sections */
  .section { padding-block: 40px; }
  .cats { padding-block: 14px 36px; gap: 28px; }
  .prose { padding-block: 16px 44px; }
  .guide, .advert { padding-bottom: 40px; }
  .foot { padding-block: 32px 28px; }
  .newsletter { padding: 24px 0 !important; }
  .flow-page { padding-block: 14px 36px; }
  .hero .lede { font-size: 1.06rem; }

  /* Phone call number lives in the bar at the bottom, so the header keeps one button */
  .nav-call { display: none; }

  /* Main buttons: a little less side padding so more labels fit on one line (font size unchanged) */
  .btn, .cp-call, .pl-go { padding-left: 16px; padding-right: 16px; }
  .call-sticky { left: 8px; right: 8px; padding: 14px 12px; gap: 8px; }
  /* text-and-arrow buttons: if the label has to wrap, the lines and the arrow stay centred as one block */
  .pl-go:not(:has(svg)) { display: block; line-height: 1.3; }

  /* Category tiles on phones: big readable names */
  .cat h3 { font-size: 1.05rem; }
  .cat .go { font-size: .9375rem; }

  /* Tables become stacked cards: one card per row, each value under its column name */
  .cost-table thead, .prose table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table td, .cost-table tbody th,
  .prose table, .prose table tbody, .prose table tr, .prose table td { display: block; width: 100%; }
  .tablewrap, .table-wrap { overflow-x: visible !important; }
  /* the quote comparison worksheet stays a wide table that scrolls inside its own box */
  .tablewrap:has(.qc-table) { overflow-x: auto !important; }
  /* a long amount phrase wraps between words on its own line under the label */
  .hub-list b { white-space: normal; text-align: right; margin-left: auto; }
  .cost-table, .prose table { background: transparent; border: 0; }
  .cost-table tr, .prose table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .cost-table td, .cost-table tbody th, .prose table td { border: 0; padding: 3px 0; text-align: left; }
  .cost-table tr > :first-child, .prose table tr > :first-child { font-weight: 700; font-size: 1.04rem; padding-bottom: 6px; }
  .cost-table td[data-label]:not(:first-child)::before, .cost-table th[data-label]:not(:first-child)::before,
  .prose table td[data-label]:not(:first-child)::before {
    content: attr(data-label); display: block; font: 600 .8125rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px;
  }
  .cost-table td[data-label=""]::before, .prose table td[data-label=""]::before { display: none; }
  /* the price-basis tag (Installed, Labor only…) explains itself, so its column name is left off */
  .cost-table td[data-label="What it covers"]::before { display: none; }
  .cost-table td[data-label="What it covers"] { padding-top: 6px; }
  /* amounts: whole figures never split; a long description after the figure may wrap at a space */
  .cost-table td.mono { white-space: normal; word-break: keep-all; overflow-wrap: normal; font-size: 1.06rem; }
  .art-table tbody th { font-size: 1.04rem; }
}

/* ---------- small phones (< 400) ---------- */
@media (max-width: 399px) {
  .cat-grid { gap: 8px; }
  .cat-body { padding: 10px 10px 12px; }
}

/* ---------- very narrow phones (320–359): logo shrinks a little before anything overlaps ---------- */
@media (max-width: 359px) {
  .wrap { padding-inline: 16px; }
  .head-row { gap: 8px; }
  .site-head .logo-img { height: 34px; }
  .nav .btn { padding-left: 12px; padding-right: 12px; margin-left: 0; }
  .head-call { padding-left: 10px; padding-right: 10px; }
}

/* ---------- tablet (768–1023): the phone layout in a centred ~720px column ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .wrap { max-width: 760px; padding-inline: 20px; }
  .site-head .wrap, .foot .wrap { max-width: none; padding-inline: 28px; }
  .nav-call { display: inline-flex; padding: 10px 8px; }
  .cats, .section .wrap, .guide, .advert, .prose, .hub, .flow-grid, .cp, .pl { max-width: 720px; margin-left: auto; margin-right: auto; }
  .card { max-width: 640px; }
  .lead-ph, .ed-fig.side { max-width: 100%; }
}
