/* ============================================================================
   /questions-to-ask-a-property-manager/ (src/p-questions.mjs; design A, Aldo's pick, 24 Oct 2026): a card for every question,
   grouped under its topics. The question leads each card, since that's what an owner takes to an interview; what we do, what's
   common among most managers and what it takes on your own sit under it, with the homepage comparison's marks (home.css
   .cmp__mark). An "Asked" box on each card, with the progress under the intro (web/js/questions.js keeps the ticks on this
   device). From 1000px the topics are a menu at the side, held in view, with the current one marked; under 1000px they're a
   row of chips held under the site header, scrolling sideways inside itself. On paper it's a light sheet whatever the screen's
   theme: our name, number, email and the page's address at the top, each question numbered with an empty box, our answer and
   a ruled line for the other manager's, the topics as headings, and no site chrome and no ticks.
   ========================================================================== */
:root { --qa-pin: var(--header-h); }
/* Short screens: the header scrolls away (base.css), so the chips hold at the top. */
@media (max-height: 500px) { :root { --qa-pin: 0px; } }

.qa-top { padding-block: clamp(28px, 5vw, 64px) clamp(24px, 4vw, 40px); }
.qa-top .wrap { display: grid; gap: var(--s3); justify-items: start; }
.qa-top .crumbs { margin-bottom: var(--s2); }
.qa-top .crumbs ol { font-size: 0.85rem; }
.qa-top h1 { margin: 0; max-width: 18ch; font: 700 clamp(2rem, 1.4rem + 2.6vw, 3.1rem)/1.06 var(--font-display); letter-spacing: -0.02em; color: var(--heading); text-wrap: balance; }
.qa-top__lede { margin: 0; max-width: 60ch; font-size: clamp(1.02rem, 1rem + 0.3vw, 1.15rem); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.qa-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: var(--s2); }
.qa-tools .btn svg { width: 20px; height: 20px; flex: none; }
.qa-prog { display: flex; align-items: center; gap: 12px; }
.qa-prog__t { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qa-prog__bar { flex: none; width: 110px; height: 8px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.qa-prog__bar i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-1), var(--gold-mid)); transition: width 300ms var(--ease); }
/* The printed sheet's own lines: on paper only. */
.qa-print-head, .qa-print-lede, .qa-print-note, .qa-card__rule { display: none; }

.qa-list { padding-top: clamp(8px, 2vw, 24px); }
.qa-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
.qa-main { min-width: 0; }

/* The topics, under 1000px: chips in a row held under the site header, scrolling sideways inside themselves. */
.qa-side { display: none; }
.qa-chips { position: sticky; top: var(--qa-pin); z-index: 5; margin-inline: calc(-1 * max(var(--gut), env(safe-area-inset-left, 0px))) calc(-1 * max(var(--gut), env(safe-area-inset-right, 0px)));
  padding: 10px 0; background: color-mix(in oklab, var(--paper-2) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.qa-chips ol { display: flex; gap: 6px; margin: 0; padding: 0 max(var(--gut), env(safe-area-inset-left, 0px)); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)); }
.qa-chips ol::-webkit-scrollbar { display: none; }
.qa-chips li { flex: none; }
.qa-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--paper); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.qa-chips a:hover { border-color: var(--teal); color: var(--heading); }
.qa-chips a[aria-current="true"] { border-color: var(--heading); background: var(--heading); color: var(--paper); }

/* A topic: its heading and how many questions it holds; under 1000px a jump lands below the chips. */
.qa-grp { margin-top: clamp(28px, 4vw, 40px); scroll-margin-top: 64px; }
.qa-grp > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.45rem)/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--heading); }
.qa-grp__n { font: 500 0.9rem/1 var(--font-text); letter-spacing: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qa-grp__note { margin: -8px 0 14px; font: 600 0.72rem/1.3 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* A question card. */
.qa-cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.qa-card { display: grid; gap: 12px; padding: 18px 20px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); box-shadow: var(--e1); transition: border-color 200ms var(--ease); }
.qa-card__top { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.qa-card__n { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--r-pill); background: var(--paper-3); font: 700 0.8rem/1 var(--font-text); color: var(--heading); font-variant-numeric: tabular-nums; }
.qa-card__need { flex: 1; min-width: 0; font: 600 0.72rem/1.3 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); overflow-wrap: anywhere; }
/* "Asked": a 44px tap target around a 22px box. */
.qa-tick { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -8px -10px -8px 0; padding: 0 10px; border-radius: 12px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.qa-tick:hover { background: var(--paper-2); }
.qa-tick input { width: 22px; height: 22px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.qa-card__q { margin: 0; font: 600 clamp(1.12rem, 1rem + 0.4vw, 1.28rem)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--heading); text-wrap: pretty; overflow-wrap: anywhere; }
.qa-card__ans { display: grid; gap: 9px; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.qa-line { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.qa-line > span { min-width: 0; overflow-wrap: anywhere; }
.qa-line b { font-weight: 600; color: var(--ink-soft); }
.qa-line--us { font-weight: 600; color: var(--heading); }
.qa-line--us b { color: var(--accent-ink); }
.qa-line--us.is-y .cmp__mark { background: var(--gold-mid); color: #2b1a08; }
.qa-line--us.is-a .cmp__mark { background: var(--paper); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px currentColor; font-size: 0.95rem; }
/* Asked: the card's edge turns green and its question steps back. */
.qa-card.is-done { border-color: var(--ok); }
.qa-card.is-done .qa-card__q { color: var(--ink-soft); }
.qa-card.is-done .qa-tick { color: var(--ok); }

.qa-note { margin: var(--s5) 0 0; max-width: 72ch; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.qa-more { margin: var(--s3) 0 0; max-width: 72ch; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.qa-more a { color: var(--heading); font-weight: 600; text-underline-offset: 3px; }

/* From 1000px: the topic menu at the side, held in view, with each topic's count and the current one marked; the cards in one
   column of 760px. The current topic is bolder by a stroke, not a heavier weight, so the menu never re-wraps. */
@media (min-width: 1000px) {
  .qa-layout { grid-template-columns: 220px minmax(0, 760px); }
  .qa-chips { display: none; }
  .qa-side { display: block; position: sticky; top: calc(var(--qa-pin) + 24px); align-self: start; padding-top: clamp(28px, 4vw, 40px); }
  .qa-grp { scroll-margin-top: 8px; }
}
.qa-side__k { margin: 0 0 10px; font: 600 0.74rem/1.2 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.qa-side ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--border); }
.qa-side a { display: flex; justify-content: space-between; gap: 10px; margin-left: -2px; padding: 8px 0 8px 14px; border-left: 2px solid transparent; font-size: 0.93rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.qa-side a > span { font-weight: 500; font-variant-numeric: tabular-nums; }
.qa-side a:hover { color: var(--heading); }
.qa-side a[aria-current="true"] { border-left-color: var(--accent-ink); color: var(--heading); -webkit-text-stroke: 0.35px currentColor; }

/* ---------------------------------------------------------------- print -- */
/* The sheet an owner takes to an interview: light whatever the screen's theme, no header, footer, phone bar, menus, ticks or
   form; our name, number, email and the page's address at the top; each question numbered with an empty box, our answer, and a
   ruled line for the other manager's answer; the topics as headings; and where the other managers' column comes from, at the end. */
@media print {
  @page { margin: 13mm 12mm; }
  :root, :root[data-theme="dark"] {
    --paper: #ffffff; --paper-2: #ffffff; --paper-3: #eef2f4; --ink: #1f2629; --ink-soft: #4d5a5f; --teal: #103947; --teal-subtle: #e9eff1;
    --heading: #103947; --border: #d9dfe2; --border-strong: #a9b7bd; --accent-ink: #7a4d24; --ok: #15803d; color-scheme: light;
  }
  html, body { background: #fff !important; color: var(--ink) !important; }
  body.has-bar { padding-bottom: 0 !important; }
  .site-header, .site-footer, .action-bar, .sheet, .a11y, .privacy-dlg, .skip, .dock-line, .notice, .crumbs, .qa-top .hsec__eyebrow, .qa-top__lede, .qa-tools,
  .qa-side, .qa-chips, .qa-grp__n, .qa-card__need, .qa-tick, .qa-line--them, .qa-line--diy, .qa-line .cmp__mark, .qa-note, .qa-more, .page-qa .est { display: none !important; }
  .qa-top, .qa-list { padding: 0; background: none !important; }
  .qa-top .wrap, .qa-list .wrap { max-width: none; padding: 0; gap: 0; }
  .qa-layout { display: block; }
  .qa-print-head { display: flex; justify-self: stretch; justify-content: space-between; gap: 12pt; margin: 0 0 10pt; padding-bottom: 6pt; border-bottom: 1.5pt solid #dfa062; font: 400 8.5pt/1.3 var(--font-text); color: #444; }
  .qa-print-head b { color: #103947; }
  .qa-top h1 { max-width: none; font-size: 19pt; line-height: 1.1; }
  .qa-print-lede { display: block; margin: 4pt 0 2pt; font-size: 9pt; line-height: 1.35; color: #444; }
  .qa-grp { margin-top: 10pt; }
  .qa-grp > h2 { margin: 0 0 2pt; font: 700 9pt/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: #103947; break-after: avoid; }
  .qa-grp__note { margin: 0 0 2pt; font-size: 7pt; }
  .qa-cards { gap: 0; }
  /* An item: the empty box, then "1. The question", our answer under it, and the line. */
  .qa-card, .qa-card.is-done { display: grid; grid-template-columns: 12pt auto minmax(0, 1fr); gap: 1pt 5pt; padding: 6pt 0 7pt; border: 0; border-radius: 0; background: none; box-shadow: none; break-inside: avoid; }
  .qa-card::before { content: ""; grid-row: 1 / span 3; width: 9pt; height: 9pt; margin-top: 1.5pt; border: 1pt solid #555; border-radius: 2pt; }
  .qa-card__top { display: contents; }
  .qa-card__n { grid-column: 2; display: block; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; font: 700 9.5pt/1.3 var(--font-text); color: #111; }
  .qa-card__n::after { content: "."; }
  .qa-card__q, .qa-card.is-done .qa-card__q { grid-column: 3; font: 700 9.5pt/1.3 var(--font-text); letter-spacing: 0; color: #111; }
  .qa-card__ans { grid-column: 2 / -1; display: block; padding: 0; border: 0; }
  .qa-line { display: block; font-size: 8.8pt; line-height: 1.35; font-weight: 400; color: #444; }
  .qa-line--us b { color: #935e2e; font-weight: 700; }
  .qa-card__rule { grid-column: 2 / -1; display: block; height: 13pt; border-bottom: 0.75pt solid #999; }
  .qa-print-note { display: block; margin-top: 10pt; font-size: 8pt; line-height: 1.35; color: #555; }
}
