/* Tools and blog pages (/finder/, /estimate/, /blog/ and the posts): the parts the HQ.ai design lacks.
   Built from site.css's custom properties, so both themes work. */

/* Finder: five questions in HQ.ai's question box */
.fd .qz__bar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fd-off { color: var(--ink-2); text-align: center; }
.fd-sub { margin: clamp(32px, 4vw, 48px) 0 16px; color: var(--muted); }
.fd-svcs { margin-bottom: 4px; }
.fd-svcs .type .mono { color: var(--muted); }
.fd-again { margin-top: 24px; }
.ucard.is-new { animation: fd-in .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
@keyframes fd-in { from { opacity: 0; transform: translateY(18px); } }

/* Finder: every use case and service, as plain links (the finder reads its data from them) */
.fd-all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.fd-col__h { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink); }
.fd-col__h span:last-child { color: var(--muted); }
.fd-all li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); transition: padding-left .3s cubic-bezier(.2, .7, .2, 1), color .2s; }
.fd-all li a:hover { padding-left: 8px; color: var(--accent); }
.fd-li__t { font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.fd-li__m { color: var(--muted); text-align: right; }

/* Estimator: the steps the range is made of */
.est-steps .step dd.price { color: var(--ink); }

/* Blog: category filter and empty state */
.bl-cats { margin-bottom: 20px; }
.bl-empty { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); max-width: 70ch; }
.bl-empty b { color: var(--ink); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }

/* Blog post: video, related service, use case and posts */
.article { grid-template-columns: minmax(0, 1fr); }
.article--post > table { display: block; max-width: 100%; overflow-x: auto; }
.article--post video { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--panel); }
.article--post figure.photo img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--panel); }
.post-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px clamp(24px, 3vw, 44px); align-items: start; margin-top: 24px; }
.post-more .nrow { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 14px; }
.post-more .nrow__d, .post-more .nrow__u { grid-column: 1; }
.post-more .nrow__a { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
.post-more .nrow__t { font-size: clamp(19px, 1.7vw, 24px); }
.post-svc { text-decoration: none; }
.post-svc .btn { pointer-events: none; }

@media (max-width: 900px) {
  .fd-all, .post-more { grid-template-columns: minmax(0, 1fr); }
  .fd-col + .fd-col { margin-top: 28px; }
}
@media (max-width: 640px) {
  .fd-all li a { grid-template-columns: minmax(0, 1fr); }
  .fd-li__m { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ucard.is-new, .qz__q { animation: none !important; }
}

/* Estimator: the security audit is a fixed-price audit (US$1,800 quick, from US$4,800 full), not a build, so the
   build ranges in site.js do not apply to it; its row stays out of the list (it is not linked here with ?uc=audit). */
#uc-list button[data-uc="audit"] { display: none; }
