/* Content pages (2026-10-07 redesign): hiring guides, For engineers, About,
   FAQ, 404. Builds on the .legal article layout in styles.css. */
.page { padding-top: 64px; }
.page .legal-updated { display: none; }
.page h1 { font-size: clamp(2.4rem, 4.8vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 18px; }
.page .lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.55; }
.page h2 { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.page h3 { font-size: 1.1rem; margin: 26px 0 6px; }
.page a.btn { text-decoration: none; }
.page .btn-primary { color: #fff; }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }

/* Lists: small marks instead of default bullets. */
.page ul:not([class]) { list-style: none; padding-left: 0; }
.page ul:not([class]) > li { position: relative; padding-left: 22px; margin-bottom: 12px; }
.page ul:not([class]) > li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.page ol:not([class]) { list-style: none; padding-left: 0; counter-reset: step; }
.page ol:not([class]) > li { position: relative; padding-left: 46px; margin-bottom: 18px; counter-increment: step; }
.page ol:not([class]) > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--display); font-weight: 650; font-size: 0.92rem; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.page strong { color: var(--ink); }
.page .points { padding-left: 0; }
.page .points li { margin-bottom: 0; }
.page h2 { max-width: none; }
.page a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.page a:not(.btn):hover { color: var(--orange-ink); }
.page a.btn-ghost { color: var(--ink); }

/* Cities: one quiet line, not a long bullet list. */
.page .city-list, .city-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); font-size: 0.97rem; }
.city-list li { margin: 0; }
.city-list li:not(:last-child)::after { content: "\00B7"; margin: 0 10px; color: var(--line-2); }

/* Questions and answers. */
.faq-list { margin: 8px 0 0; border-top: 1px solid var(--line); }
.faq-list dt { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); margin: 0; padding-top: 22px; }
.faq-list dd { margin: 8px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); }

.related { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.related a { margin-right: 16px; display: inline-block; margin-bottom: 6px; }

/* Wide page with a product view beside the opening (Hire engineers). */
.page-wide .legal-inner { max-width: var(--max-width); }
.page-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-bottom: 24px; }
.page-body { max-width: 760px; }
.page-body.wide { max-width: none; }
@media (max-width: 920px) { .page-hero { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .page { padding-top: 40px; } }
/* Footer links wrap on narrow screens (all pages). */
.footer-links { flex-wrap: wrap; row-gap: 8px; }

/* Questions that open on tap (2026-10-07: "I don't want the page to get too
   wordy"). Same text as the JSON-LD; only the layout folds. */
.faq-fold { margin: 8px 0 0; border-top: 1px solid var(--line); }
.faq-fold details { border-bottom: 1px solid var(--line); }
.faq-fold summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); }
.faq-fold summary::-webkit-details-marker { display: none; }
.faq-fold summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.15s ease; }
.faq-fold details[open] summary::after { transform: rotate(45deg); }
.faq-fold details p { margin: -4px 0 20px; color: var(--ink-2); max-width: 46em; }
.faq-fold summary:hover { color: var(--orange-ink); }
.page .flow { margin-top: 28px; }
.page .flow li { padding-left: 0; margin-bottom: 0; }
.page .flow li::before { position: static; width: auto; height: auto; border: 0; background: none; display: block; font-size: 0.95rem; color: var(--orange-ink); }
.page .inline-links { margin-top: 18px; }
.page .inline-links li { padding-left: 0; margin: 0; }
.page .inline-links li::before { display: none; }
.page .inline-links a { text-decoration: none; }
.page-sub { color: var(--muted); font-size: 0.97rem; margin-top: 14px; }
.about-photo { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 22px; justify-self: center; }
.page .flow, .page .inline-links { padding-left: 0; }

/* Brand accents on content pages (2026-10-07). */
.page h2 { border-top: 0; background:
  var(--gradient) top left / 48px 3px no-repeat,
  linear-gradient(var(--line), var(--line)) top left / 100% 1px no-repeat; }
.about-photo { padding: 4px; background: var(--gradient); }
.faq-fold details[open] summary { color: var(--orange-ink); }

/* Founder's quote on About (2026-10-07). */
.about-quote { margin: 48px 0 8px; padding: 28px 0 0; background: var(--gradient) top left / 48px 3px no-repeat; }
.about-quote blockquote { margin: 0 0 14px; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); max-width: 40em; }
.about-quote figcaption { font-weight: 600; color: var(--ink); }

/* Closing panel at the end of Hire engineers and For engineers
   (2026-10-07): the home page's .cta-band with one column. */
.cta-single { grid-template-columns: 1fr; margin-top: 56px; }
.page .cta-band h3 { font-size: 1.5rem; margin: 0 0 14px; }
@media (max-width: 640px) {
  .page .inline-links a { text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
  .page .inline-links a:hover { text-decoration-color: var(--orange); }
}

/* Who does what (hire-engineers) */
.page .who-wrap { overflow-x: auto; margin: 20px 0 8px; -webkit-overflow-scrolling: touch; }
.page table.who { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.93rem; }
.page table.who th, .page table.who td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.page table.who thead th { font-family: var(--display); font-weight: 650; color: var(--ink); border-bottom: 2px solid var(--ink); }
.page table.who tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.page table.who td { color: var(--ink-2); }
/* Sample review (demo-review) */
.page .demo-note { color: var(--ink-2); font-size: 0.93rem; }
.page .demo-frame { margin: 24px 0 28px; }
.page button.app-btn { font: inherit; cursor: pointer; }
.page .demo-result { margin: 14px 0 0; min-height: 1.5em; color: var(--ink); font-size: 0.95rem; }
