/* NetSheet.org — landing pages (title-company hub, buyer calculator, template, app, /compare/).
   Builds on site.css, pages.css and seo.css. The embedded calculator uses netsheet-calc.css and try-it.css as on try-it.html. */

/* Embedded calculator: the page heading sits in .calc-intro like try-it.html */
.calc-page .crumbs { margin-bottom: 0.75rem; }
.calc-intro .lede { max-width: 66ch; }

/* The mobile net bar only while the calculator is on screen */
body.calc-out-of-view .calc-bar { display: none; }

/* Affiliation disclaimer on pages that name another company */
.disclaimer { max-width: 48rem; margin: 0; padding: 0.9rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius-sm, 8px); background: var(--paper); color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 0.5rem; }

/* Comparison and tool tables: let long cells wrap, keep the first column readable */
.rates.tools th[scope="row"] { font-weight: 600; min-width: 9rem; }
.rates.tools td { min-width: 9rem; }
.rates.tools a { overflow-wrap: anywhere; }
.rates.compare td, .rates.compare th { min-width: 8rem; }

/* Link lists to the other comparison pages */
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; }
.link-grid li { border: 1px solid var(--rule); border-radius: var(--radius-sm, 8px); background: var(--paper); }
.link-grid a { display: block; padding: 0.85rem 1rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-grid a:hover { color: var(--green); }
.link-grid span { display: block; margin-top: 0.2rem; font-weight: 400; font-size: var(--step--1); color: var(--muted); }

/* "Available now / coming soon" tags on the app page */
.status-tag { display: inline-block; margin-left: 0.4rem; font-size: 0.78rem; font-weight: 600; padding: 0.12rem 0.55rem; border-radius: 999px; vertical-align: 0.15em; color: var(--green); background: var(--green-soft); white-space: nowrap; }
.status-tag.is-soon { color: #6b5a12; background: #fdf8e2; }

/* On phones the tool tables become one card per tool instead of a sideways scroll */
@media (max-width: 640px) {
  .rates.tools thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates.tools, .rates.tools tbody, .rates.tools tr, .rates.tools th, .rates.tools td { display: block; width: auto; min-width: 0; }
  .rates.tools tr { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .rates.tools tbody tr:last-child { border-bottom: 0; }
  .rates.tools th[scope="row"], .rates.tools td { border: 0; padding: 0.2rem 1rem; }
  .rates.tools th[scope="row"] { font-size: 1rem; padding-bottom: 0.35rem; }
  .rates.tools td[data-label]::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
  .rates.tools caption { display: block; }
  .table-scroll:has(.rates.tools) { overflow-x: visible; }
}
