/* RentMaxxer pages, direction A, "Editorial" (docs/design/mocks/a.html on
   design/homepage-directions). Every page but the home page: listing, listings, pricing,
   how it works, about, partners, the wizard, the account page and the legal pages. Loaded
   after app.css by those templates only (their {% block head %}); every rule is scoped under
   body.pg, so the home page and the other pages are untouched.
   A light page: white paper, near-black type, a huge serif, hairline rules, whitespace.
   Listings are plain rows with small thumbnails; one photo at most per page.
   Binding: docs/brand/identity.md "Anti-slop rules": no gradients, glows, pills, badges,
   icon lists or cards. Amber only for the one main action.
   Type: the huge number, the headline, the line (EB Garamond); body and small (Geist).
   Sections: 1 tokens (and app.css re-pointed to light), 2 base, 3 chrome on light, 4 type,
   5 actions, 6 rules and prose, 7 listing, 8 listing rows, 9 pricing, 10 wizard, 11 account,
   12 shared partials (units table, paywall, folds), 13 wide screens. */

/* ---------------------------------------------------------------- 1. tokens */
body.pg {
  --pg-paper: #FFFFFF;
  --pg-ink: #16140F;
  --pg-muted: #5E5A52;
  --pg-rule: #D9D5CC;
  --pg-wash: #F4F2ED;          /* a hover or a pressed row; never a card */
  --pg-amber: #FFB224;
  --pg-amber-press: #F5A300;
  --pg-alert: #A3271B;
  --pg-serif: "EB Garamond", Georgia, serif;
  --pg-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pg-gut: max(16px, env(safe-area-inset-left));
  --pg-max: 1120px;
  /* the type scale */
  --pg-huge: clamp(4rem, 15vw, 7.5rem);          /* 64 to 120: the one number */
  --pg-display: clamp(4rem, 17vw, 8.75rem);      /* 64 to 140: a page's title, rarely */
  --pg-head: clamp(2.125rem, 6vw, 3.5rem);       /* 34 to 56: headlines */
  --pg-line: clamp(1.25rem, 2.4vw, 1.625rem);    /* 20 to 26: the dek, a row title */
  --pg-body: 1.0625rem;                          /* 17 */
  --pg-small: 0.875rem;                          /* 14 */
  /* space */
  --pg-s1: 8px; --pg-s2: 14px; --pg-s3: 20px; --pg-s4: 28px; --pg-s5: 48px; --pg-s6: 96px; --pg-s7: 120px;

  /* app.css, re-pointed to the light page, so the shared nav, footer, inputs and partials
     follow without a second copy of their rules */
  color-scheme: light;
  --bg: var(--pg-paper);
  --bg-band: var(--pg-paper);
  --surface-1: var(--pg-paper);
  --surface-2: var(--pg-wash);
  --surface-3: #ECE9E2;
  --surface-4: #E2DED6;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --line: var(--pg-rule);
  --line-2: var(--pg-rule);
  --line-3: #B9B4AA;
  --line-input: #8C877E;
  --text: var(--pg-ink);
  --text-2: var(--pg-muted);
  --text-3: #7A756C;
  --accent-text: var(--pg-ink);
  --accent-line: var(--pg-ink);
  --accent-soft: var(--pg-wash);
  --danger: var(--pg-alert);
  --success: #1F6B45;
  --hl: none;
  --lift: none;
  --float: none;

  background: var(--pg-paper);
  color: var(--pg-ink);
  font-variant-numeric: lining-nums tabular-nums;
  caret-color: var(--pg-ink);
  scrollbar-color: #C9C4BA var(--pg-paper);
}
body.pg ::selection { background: var(--pg-ink); color: var(--pg-paper); }
body.pg :focus-visible { outline: 2px solid var(--pg-ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- 2. base */
.pg main { font-size: var(--pg-body); line-height: 1.55; }
.pg main a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.pg main a:hover { text-decoration-thickness: 2px; }
.pg .pg-wrap { width: 100%; max-width: calc(var(--pg-max) + 2 * var(--pg-gut)); margin-inline: auto; padding-inline: var(--pg-gut); }
.pg .pg-wrap--text { max-width: calc(720px + 2 * var(--pg-gut)); }
.pg .pg-end { padding-bottom: var(--pg-s7); }

/* ---------------------------------------------------------------- 3. chrome on light */
.pg .gov { background: var(--pg-paper); color: var(--pg-muted); border-bottom-color: var(--pg-rule); }
.pg .gov a { color: var(--pg-ink); text-decoration-color: var(--pg-rule); }
.pg .nav { background: rgba(255, 255, 255, 0.94); border-bottom-color: var(--pg-rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pg .brand, .pg .footer .brand { color: var(--pg-ink); }
.pg .nav__link { border-radius: 4px; color: var(--pg-ink); }
.pg .nav__link:hover { background: none; text-decoration: underline; text-underline-offset: 0.22em; }
.pg .nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.22em; }
.pg .nav .btn--primary, .pg .menu__panel .btn--primary, .pg .dock .btn--primary {
  border-radius: 4px; background: var(--pg-amber); color: var(--pg-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14); font-weight: 500;
}
.pg .menu__btn { border-radius: 4px; background: none; border-color: var(--pg-rule); color: var(--pg-ink); }
.pg .menu__panel { background: var(--pg-paper); border-bottom-color: var(--pg-rule); box-shadow: none; }
.pg .menu__link { border-radius: 0; border-bottom: 1px solid var(--pg-rule); }
.pg .menu__link:hover { background: var(--pg-wash); }
.pg .footer { background: var(--pg-paper); border-top-color: var(--pg-rule); color: var(--pg-muted); }
.pg .footer__head { color: var(--pg-ink); }
.pg .footer__link { color: var(--pg-muted); }
.pg .footer__link:hover { color: var(--pg-ink); text-decoration-color: var(--pg-ink); }
.pg .dock { background: var(--pg-paper); border-top: 1px solid var(--pg-rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pg .skip { border-radius: 4px; }

/* ---------------------------------------------------------------- 4. type */
.pg .pg-h { margin: 0; max-width: 18ch; font: 400 var(--pg-head)/1.05 var(--pg-serif); letter-spacing: -0.02em; text-wrap: balance; }
.pg .pg-h em, .pg .pg-h--ask { font-style: italic; }
.pg .pg-title { margin: 0; max-width: 14ch; font: 400 var(--pg-display)/0.92 var(--pg-serif); letter-spacing: -0.03em; text-wrap: balance; }
.pg .pg-huge { margin: var(--pg-s2) 0 0; font: 400 var(--pg-huge)/0.9 var(--pg-serif); letter-spacing: -0.03em; white-space: nowrap; }
.pg .pg-huge small { font-size: 0.32em; letter-spacing: 0; color: var(--pg-muted); margin-left: 0.06em; }
.pg .pg-line { margin: var(--pg-s3) 0 0; max-width: 34ch; font: 400 var(--pg-line)/1.35 var(--pg-serif); text-wrap: pretty; }
.pg .pg-body { margin: var(--pg-s2) 0 0; max-width: 62ch; }
.pg .pg-fine { margin: var(--pg-s2) 0 0; max-width: 62ch; font-size: var(--pg-small); line-height: 1.5; color: var(--pg-muted); }
.pg .pg-crumbs { font-size: var(--pg-small); }
.pg .pg-crumbs .crumbs { min-height: 44px; }
.pg .pg-crumbs .crumbs a { color: var(--pg-muted); font-weight: 400; }
.pg .pg-crumbs [aria-current] { color: var(--pg-muted); }

/* ---------------------------------------------------------------- 5. actions */
.pg .pg-cta,
.pg main .btn--primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; height: auto;
  padding: 0 28px; margin: 0; border: 0; border-radius: 4px; background: var(--pg-amber); color: var(--pg-ink);
  font: 500 var(--pg-body)/1.15 var(--pg-sans); letter-spacing: 0; text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14); cursor: pointer;
}
.pg .pg-cta:hover, .pg main .btn--primary:hover { background: var(--pg-amber-press); text-decoration: none; }
.pg .pg-cta .icon, .pg main .btn .icon { width: 18px; height: 18px; }
.pg .pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pg-s2) var(--pg-s4); margin-top: var(--pg-s4); }
.pg main .btn--secondary, .pg main .btn--ghost, .pg main .btn--danger {
  min-height: 48px; padding: 0 20px; border-radius: 4px; background: transparent; box-shadow: none;
  border: 1px solid var(--pg-ink); color: var(--pg-ink); font-weight: 500;
}
.pg main .btn--ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 0.22em; }
.pg main .btn--secondary:hover, .pg main .btn--ghost:hover { background: var(--pg-wash); }
.pg main .btn--danger { color: var(--pg-alert); border-color: var(--pg-alert); }
.pg main .btn--danger-solid { border-radius: 4px; box-shadow: none; background: var(--pg-alert); color: #fff; }
.pg main .btn:active { transform: none; }
.pg .pg-textlink { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- 6. rules and prose */
.pg .pg-head { padding-block: 72px var(--pg-s5); }
.pg .pg-head > * + * { margin-top: var(--pg-s3); }
.pg .pg-section { padding-block: var(--pg-s6); border-top: 1px solid var(--pg-rule); }
.pg .pg-section--first { border-top: 0; padding-top: 0; }
.pg .pg-rows-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pg-ink); }
.pg .pg-rows-list > li { padding-block: var(--pg-s3); border-bottom: 1px solid var(--pg-rule); max-width: 62ch; }
.pg .pg-banner { margin: 0; padding: var(--pg-s2) 0; border-top: 1px solid var(--pg-rule); border-bottom: 1px solid var(--pg-rule); max-width: 62ch; }
.pg .pg-banner strong { font-weight: 600; }
.pg .pg-banner--alert { color: var(--pg-alert); }
.pg .pg-note { margin-top: var(--pg-s5); padding-top: var(--pg-s2); border-top: 1px solid var(--pg-rule); }

/* long reads: the guide, about, partners, the legal pages */
.pg .pg-prose { display: block; max-width: 66ch; color: var(--pg-ink); line-height: 1.6; }
.pg .pg-prose > * + * { margin-top: 1em; }
.pg .pg-prose h2 {
  margin: var(--pg-s6) 0 var(--pg-s3); padding-top: var(--pg-s4); border-top: 1px solid var(--pg-ink);
  font: 400 var(--pg-head)/1.05 var(--pg-serif); letter-spacing: -0.02em; color: var(--pg-ink); text-wrap: balance;
}
.pg .pg-prose > h2:first-child { margin-top: 0; }
.pg .pg-prose h3 { margin: var(--pg-s5) 0 var(--pg-s2); font: 500 var(--pg-line)/1.25 var(--pg-serif); color: var(--pg-ink); }
.pg .pg-prose h4 { margin: var(--pg-s4) 0 0; font-size: var(--pg-body); font-weight: 600; color: var(--pg-ink); }
.pg .pg-prose p, .pg .pg-prose li, .pg .pg-prose dd { color: var(--pg-ink); }
.pg .pg-prose strong { font-weight: 600; color: var(--pg-ink); }
.pg .pg-prose a { color: var(--pg-ink); text-decoration-color: var(--line-3); }
.pg .pg-prose a:hover { text-decoration-color: var(--pg-ink); }
.pg .pg-prose ul, .pg .pg-prose ol { padding-left: 1.1em; display: grid; gap: 10px; margin-block: 1em 0; }
.pg .pg-prose li::marker { color: var(--pg-muted); }
.pg .pg-prose table { width: 100%; border-collapse: collapse; margin-block: var(--pg-s3); font-size: var(--pg-body); }
.pg .pg-prose th, .pg .pg-prose td { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pg-rule); font-weight: 400; overflow-wrap: anywhere; color: var(--pg-ink); }
.pg .pg-prose thead th { font-size: var(--pg-small); color: var(--pg-muted); border-bottom-color: var(--pg-ink); }
.pg .pg-prose td:last-child { text-align: right; padding-right: 0; font: 400 1.375rem/1.1 var(--pg-serif); }
.pg .pg-prose thead th:last-child { text-align: right; padding-right: 0; }
.pg .pg-prose dl { display: grid; margin: 0; border-top: 1px solid var(--pg-ink); }
.pg .pg-prose dl > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--pg-rule); }
.pg .pg-prose dt { font: 500 1.25rem/1.2 var(--pg-serif); }
.pg .pg-prose dd { margin: 0; color: var(--pg-muted); }
.pg .pg-prose section { scroll-margin-top: 96px; }
.pg .legal h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.pg .pg-toc { margin-top: var(--pg-s5); border-top: 1px solid var(--pg-ink); padding-top: var(--pg-s2); }
.pg .pg-toc p { margin: 0 0 var(--pg-s1); font-size: var(--pg-small); color: var(--pg-muted); }
.pg .pg-toc ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pg .pg-toc ul ul { padding-left: 1.25em; margin-bottom: 8px; }
.pg .pg-toc a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.pg .pg-toc a:hover { text-decoration: underline; }
.pg .pg-toc > div > ul > li > a { font: 500 1.25rem/1.2 var(--pg-serif); }

/* ---------------------------------------------------------------- 7. listing */
.pg .pg-listing-head .pg-h { max-width: 20ch; }
.pg .pg-plate { margin: 0 0 var(--pg-s5); }
.pg .pg-plate img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pg-wash); }
.pg .pg-plate figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .pg-plate figcaption b { font-weight: 500; color: var(--pg-ink); }
.pg .pg-facts { display: grid; margin: 0; border-top: 1px solid var(--pg-ink); }
.pg .pg-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--pg-rule); }
.pg .pg-facts dt { font-size: var(--pg-body); }
.pg .pg-facts dd { margin: 0; text-align: right; font: 400 1.5rem/1.1 var(--pg-serif); }
.pg .pg-facts dd small { display: block; margin-top: 4px; font: 400 var(--pg-small)/1.4 var(--pg-sans); color: var(--pg-muted); }
.pg .pg-apply { display: grid; gap: var(--pg-s2); justify-items: start; }
.pg .pg-apply .pg-line, .pg .pg-apply .pg-fine { margin: 0; }

/* ---------------------------------------------------------------- 8. listing rows */
/* /listings, "Similar listings" and the account's matches: plain rows, a small thumbnail,
   the name in the serif, the rent at the right. The whole row is the link. */
.pg .lrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pg-ink); }
.pg .lrow { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--pg-rule); }
.pg .lrow:hover { background: var(--pg-wash); box-shadow: -12px 0 0 var(--pg-wash), 12px 0 0 var(--pg-wash); }
.pg .lrow__media { position: relative; width: 72px; height: 72px; overflow: hidden; background: var(--pg-wash); }
.pg .lrow__media img, .pg .lrow__media > span { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pg .lrow__media > span { opacity: 0.35; filter: grayscale(1); }
.pg .lrow__media .photo-caption { display: none; }
.pg .lrow__title { margin: 0; font: 500 1.3125rem/1.15 var(--pg-serif); text-wrap: balance; overflow-wrap: anywhere; }
.pg .lrow__link { text-decoration: none; }
.pg .lrow__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pg .lrow__link:hover { text-decoration: underline; }
.pg .lrow__meta { margin: 2px 0 0; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .lrow__meta b { font-weight: 500; color: var(--pg-ink); }
.pg .lrow__price { margin: 0; text-align: right; font: 400 1.5rem/1 var(--pg-serif); white-space: nowrap; }
.pg .lrow__price small { display: block; margin-top: 4px; font: 400 0.8125rem/1.4 var(--pg-sans); color: var(--pg-muted); white-space: normal; max-width: 9em; margin-left: auto; }
.pg .lrow__price--word { font-size: 1.125rem; white-space: normal; max-width: 8em; }
.pg .lrow--closed .lrow__media img { filter: grayscale(1); opacity: 0.6; }

/* the filters: words, not pills. The checked one is underlined. */
.pg .pg-filters.filters { display: grid; gap: var(--pg-s1); margin-top: var(--pg-s4); padding: var(--pg-s2) 0 0; border: 0; border-top: 1px solid var(--pg-rule); border-radius: 0; background: none; box-shadow: none; }
.pg .pg-filters fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pg .pg-filters .chips { display: flex; flex-wrap: wrap; gap: 0 20px; overflow: visible; padding: 0; margin: 0; -webkit-mask: none; mask: none; }
.pg .pg-filters .chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; color: var(--pg-muted); }
.pg .pg-filters .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pg .pg-filters .chip span, .pg .pg-filters .chip input:checked + span { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; }
.pg .pg-filters .chip b, .pg .pg-filters .chip input:checked + span b { margin-left: 4px; font-weight: 400; color: var(--pg-muted); }
.pg .pg-filters .chip:hover { color: var(--pg-ink); }
.pg .pg-filters .chip:has(input:checked) { color: var(--pg-ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.pg .pg-filters .chip:has(input:focus-visible) { outline: 2px solid var(--pg-ink); outline-offset: 2px; }
.pg .pg-filters__label { display: block; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: var(--pg-s5); font-size: var(--pg-small); }
.pg .pager > :last-child { justify-self: end; }
.pg .pg-empty { padding-block: var(--pg-s5); border-top: 1px solid var(--pg-ink); border-bottom: 1px solid var(--pg-rule); }
.pg .pg-results { padding-bottom: var(--pg-s6); }

/* ---------------------------------------------------------------- 9. pricing */
.pg .tiers { display: grid; border-top: 1px solid var(--pg-ink); }
.pg .tier { display: block; padding: var(--pg-s4) 0 var(--pg-s5); border-bottom: 1px solid var(--pg-rule); }
.pg .tier__name { margin: 0; font: 500 1.3125rem/1.2 var(--pg-serif); }
.pg .tier .pg-huge { margin-top: var(--pg-s1); }
.pg .tier .pg-line { margin-top: var(--pg-s2); }
.pg .tier__note { margin: var(--pg-s1) 0 0; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .tier__now { margin: var(--pg-s3) 0 0; font-weight: 500; }
.pg .tier form { display: grid; gap: var(--pg-s2); justify-items: start; margin-top: var(--pg-s4); }
.pg .tier__toggle { display: flex; flex-wrap: wrap; gap: 0 22px; border: 0; margin: 0; padding: 0; }
.pg .tier__toggle label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.pg .tier__toggle input[type="radio"] { -webkit-appearance: radio; appearance: auto; accent-color: var(--pg-ink); width: 18px; height: 18px; margin: 0; background: transparent; border: 0; box-shadow: none; }
.pg .tier__terms { margin: var(--pg-s2) 0 0; max-width: 62ch; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .tier__more { margin-top: var(--pg-s2); }
.pg .tier__more summary { display: inline-block; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: var(--pg-small); color: var(--pg-muted); text-decoration: underline; text-underline-offset: 3px; }
@supports selector(:has(*)) {
  .pg .tier--toggle .tier__terms--yearly { display: none; }
  .pg .tier--toggle:has(input[value="yearly"]:checked) .tier__terms--yearly { display: block; }
  .pg .tier--toggle:has(input[value="yearly"]:checked) .tier__terms--monthly { display: none; }
}
.pg .pg-steps { list-style: none; margin: var(--pg-s4) 0 0; padding: 0; border-top: 1px solid var(--pg-ink); }
.pg .pg-steps li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--pg-rule); }
.pg .pg-steps b { font: 400 1.5rem/1.1 var(--pg-serif); }
.pg .faq { margin-top: var(--pg-s4); border-top: 1px solid var(--pg-ink); }
.pg .faq__item { border: 0; border-bottom: 1px solid var(--pg-rule); border-radius: 0; background: none; box-shadow: none; }
.pg .faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; list-style: none; cursor: pointer; font: 500 1.3125rem/1.2 var(--pg-serif); color: var(--pg-ink); }
.pg .faq__q::-webkit-details-marker { display: none; }
.pg .faq__q .icon { flex: none; width: 18px; height: 18px; transition: transform 200ms ease-out; }
.pg .faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.pg .faq__a { padding: 0 0 20px; max-width: 62ch; color: var(--pg-ink); }

/* ---------------------------------------------------------------- 10. wizard */
.pg .pg-wizard { display: flex; flex-direction: column; min-height: calc(100svh - 140px); max-width: calc(720px + 2 * var(--pg-gut)); padding-block: var(--pg-s4) var(--pg-s5); }
.pg .pg-wizard .wizard__top { margin-bottom: var(--pg-s5); }
.pg .pg-wizard .wizard__bar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .pg-wizard .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--pg-ink); text-decoration: none; }
.pg .pg-wizard .progress { display: grid; grid-auto-flow: column; gap: 6px; margin-top: 8px; }
.pg .pg-wizard .progress__seg { height: 1px; border-radius: 0; background: var(--pg-rule); }
.pg .pg-wizard .progress__seg.is-done, .pg .pg-wizard .progress__seg.is-current { height: 2px; background: var(--pg-ink); }
.pg .pg-wizard form { flex: 1; display: flex; flex-direction: column; gap: var(--pg-s5); }
.pg .pg-wizard fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pg .pg-wizard legend { float: left; width: 100%; padding: 0; }
.pg .pg-wizard legend + * { clear: left; }
.pg .pg-wizard__group { display: grid; gap: var(--pg-s5); }
.pg .pg-q { margin: 0; max-width: 16ch; font: italic 400 var(--pg-head)/1.05 var(--pg-serif); letter-spacing: -0.02em; text-wrap: balance; }
.pg .pg-q2 { margin: 0; font: 400 var(--pg-line)/1.3 var(--pg-serif); text-wrap: balance; }
.pg .pg-wizard .pg-fine { clear: left; margin: 0; padding-top: var(--pg-s1); }
.pg .pg-wizard .tiles { margin-top: var(--pg-s4); gap: 8px; }
.pg .pg-wizard .tile {
  min-height: 72px; padding: 14px 16px; border: 1px solid var(--line-3); border-radius: 4px; background: var(--pg-paper);
  box-shadow: none; color: var(--pg-ink); transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.pg .pg-wizard .tile:hover { border-color: var(--pg-ink); background: var(--pg-paper); }
.pg .pg-wizard .tile:active { transform: none; }
.pg .pg-wizard .tile:has(.tile__input:checked) { background: var(--pg-ink); border-color: var(--pg-ink); color: var(--pg-paper); box-shadow: none; }
.pg .pg-wizard .tile:has(.tile__input:checked) .tile__label,
.pg .pg-wizard .tile:has(.tile__input:checked) .tile__meta,
.pg .pg-wizard .tile:has(.tile__input:checked) .tile__meta b { color: var(--pg-paper); }
.pg .pg-wizard .tile:has(.tile__input:focus-visible) { outline: 2px solid var(--pg-ink); outline-offset: 3px; }
.pg .pg-wizard .tile__check { display: none; }
.pg .pg-wizard .tile__big { font: 400 2.5rem/1 var(--pg-serif); letter-spacing: -0.02em; }
.pg .pg-wizard .tile__word { font: 500 1.375rem/1.15 var(--pg-serif); letter-spacing: 0; }
.pg .pg-wizard .tile__label, .pg .pg-wizard .tile__meta { color: var(--pg-muted); }
.pg .pg-wizard .tile__meta b { color: var(--pg-ink); }
.pg .pg-wizard .tile--tall { min-height: 104px; }
.pg .pg-wizard .why { display: block; margin-top: var(--pg-s2); font-size: var(--pg-small); color: var(--pg-muted); background: none; border: 0; padding: 0; }
.pg .pg-wizard .why .icon { display: none; }
.pg .pg-wizard .actionbar { display: grid; gap: 10px; margin-top: auto; padding-top: var(--pg-s3); background: none; border: 0; box-shadow: none; }
.pg .pg-wizard .actionbar--sticky { position: sticky; bottom: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: var(--pg-paper); border-top: 1px solid var(--pg-rule); }
.pg .pg-wizard .actionbar .btn--primary { width: 100%; }
.pg .pg-wizard .actionbar__note { font-size: var(--pg-small); color: var(--pg-muted); text-align: left; }
.pg .pg-wizard .field__error { margin-top: var(--pg-s2); color: var(--pg-alert); }

/* ---------------------------------------------------------------- 11. account */
.pg .acct { display: block; }
.pg .acct > section, .pg .acct > div { padding-block: var(--pg-s5); border-top: 1px solid var(--pg-rule); }
.pg .acct > :first-child { border-top-color: var(--pg-ink); }
.pg .acct-card { display: grid; gap: var(--pg-s3); padding-inline: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.pg .acct-card__head { display: grid; gap: 4px; }
.pg .acct h2, .pg .acct .acct-h, .pg .acct .t-h3 { margin: 0; font: 400 clamp(1.75rem, 4vw, 2.5rem)/1.1 var(--pg-serif); letter-spacing: -0.015em; }
.pg .acct .acct-strong, .pg .acct .t-strong { font-weight: 600; color: var(--pg-ink); }
.pg .acct .pg-fine { margin-top: 0; }
.pg .acct .card, .pg .acct .panel, .pg .acct .billing-card, .pg .acct .ap-card, .pg .acct .ib-card, .pg .acct .ap-core {
  padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
.pg .acct .billing-card__title { font: 400 var(--pg-line)/1.2 var(--pg-serif); }
.pg .acct .billing-card__plan { padding: 0; background: none; border: 0; border-radius: 0; }
.pg .switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 12px; border-bottom: 1px solid var(--pg-rule); }
.pg .switch-row__text { display: grid; gap: 2px; }
.pg .switch-row .pg-fine { margin: 0; }
.pg main .switch { background: var(--surface-4); border-color: var(--line-3); }
.pg main .switch::before { background: var(--pg-paper); }
.pg main .switch:checked { background: var(--pg-ink); border-color: var(--pg-ink); }
.pg main .switch:checked::before { background: var(--pg-paper); }
.pg main .check input { border-radius: 2px; background: var(--pg-paper); border-color: var(--line-3); }
.pg main .check input:checked { background: var(--pg-ink); border-color: var(--pg-ink); }
.pg main .check input::after { border-color: var(--pg-paper); }
.pg .acct .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg .acct .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pg .acct .chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 4px; background: var(--pg-paper); color: var(--pg-ink); box-shadow: none; }
.pg .acct .chip input:checked + span { background: var(--pg-ink); border-color: var(--pg-ink); color: var(--pg-paper); }
.pg .acct .chip:has(input:focus-visible) span { outline: 2px solid var(--pg-ink); outline-offset: 2px; }
.pg .acct .filters__group { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.pg .acct .filters__label { font-size: var(--pg-small); color: var(--pg-muted); }
.pg .acct .input, .pg .acct input[type="text"], .pg .acct input[type="tel"] { border-radius: 4px; background: var(--pg-paper); border-color: var(--line-input); color: var(--pg-ink); box-shadow: none; }
.pg .acct .input:focus-visible { border-color: var(--pg-ink); box-shadow: none; outline: 2px solid var(--pg-ink); outline-offset: 2px; }
.pg .acct .reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pg .acct .reasons li { display: block; padding: 0; background: none; border: 0; }
.pg .acct .reasons .icon { display: none; }
.pg .acct .badge { padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--pg-small); color: var(--pg-muted); }
.pg .acct .danger-zone h2 { color: var(--pg-alert); }
.pg .acct .confirm > summary { display: inline-flex; list-style: none; }
.pg .acct .confirm > summary::-webkit-details-marker { display: none; }
.pg .acct-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pg .acct-count .midnum { font: 400 var(--pg-huge)/0.9 var(--pg-serif); letter-spacing: -0.03em; }
.pg .acct-count .pg-line { margin: 0; }
.pg .acct .lrows { margin-top: var(--pg-s3); }
.pg .toast { border-radius: 4px; background: var(--pg-ink); color: var(--pg-paper); border: 0; box-shadow: none; }
.pg .toast .icon { display: none; }

/* ---------------------------------------------------------------- 12. shared partials, quietened */
/* the units table (_units_table.html): hairlines, no boxes */
.pg .ut { gap: var(--pg-s4); }
.pg .ut__title { font: 400 var(--pg-head)/1.05 var(--pg-serif); letter-spacing: -0.02em; }
.pg .ut .ut__tier { border: 0; border-top: 1px solid var(--pg-ink); border-radius: 0; background: none; }
.pg .ut .ut__caption { padding: 14px 0 10px; background: none; border-bottom: 1px solid var(--pg-rule); font: 500 var(--pg-line)/1.2 var(--pg-serif); }
.pg .ut .ut__table th, .pg .ut .ut__table td { padding-left: 0; background: none; }
.pg .ut .ut__table thead th { color: var(--pg-muted); border-bottom-color: var(--pg-rule); }
.pg .ut .ut__unit + .ut__unit { border-top-color: var(--pg-rule); }
.pg .ut .ut__rent { font: 400 1.375rem/1.1 var(--pg-serif); }
.pg .ut .ut__table .ut__cell::before { font: 400 var(--pg-small)/1.4 var(--pg-sans); color: var(--pg-muted); align-self: center; }
.pg .ut .ut__notes, .pg .ut .ut__legend { font-size: var(--pg-small); color: var(--pg-muted); }
@media (max-width: 639px) {
  .pg .ut .ut__unit { padding: 16px 0; }
  .pg .ut .ut__table .ut__line:first-child .ut__hh, .pg .ut .ut__table .ut__line:first-child .ut__inc { border-top: 1px solid var(--pg-rule); }
}

/* the paywall (_paywall.html): type and one action, no glow */
.pg .paywall { gap: var(--pg-s2); padding: var(--pg-s4) 0 0; background: none; border: 0; border-top: 1px solid var(--pg-ink); border-radius: 0; color: var(--pg-ink); }
.pg .paywall__lock { display: none; }
.pg .paywall__title { max-width: 18ch; font: 400 var(--pg-head)/1.05 var(--pg-serif); letter-spacing: -0.02em; }
.pg .paywall__lead { max-width: 52ch; color: var(--pg-ink); }
.pg .paywall__list { gap: 0; border-top: 1px solid var(--pg-rule); }
.pg .paywall__list li { display: block; padding-block: 10px; border-bottom: 1px solid var(--pg-rule); }
.pg .paywall__list svg { display: none; }
.pg .paywall__actions { gap: 16px 24px; margin-top: var(--pg-s2); }
.pg .paywall__terms { color: var(--pg-muted); }
.pg .locked { display: grid; gap: var(--pg-s5); }
.pg .locked__teaser { max-height: 260px; opacity: 0.4; }
.pg .locked__teaser::after { display: none; }
.pg .locked__teaser + .locked__card { margin-top: 0; }
.pg .locked__card { justify-items: start; text-align: left; padding: 0; background: none; border: 0; box-shadow: none; }

/* the folds on a listing: hairline rows */
.pg .folds { display: block; border-top: 1px solid var(--pg-ink); border-radius: 0; background: none; }
.pg .fold { border: 0; border-bottom: 1px solid var(--pg-rule); border-radius: 0; background: none; box-shadow: none; }
.pg .fold__head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 0; list-style: none; cursor: pointer; }
.pg .fold__head::-webkit-details-marker { display: none; }
.pg .fold__title { flex: 1; font: 500 1.3125rem/1.2 var(--pg-serif); color: var(--pg-ink); }
.pg .fold__meta { font-size: var(--pg-small); color: var(--pg-muted); }
.pg .fold__icon { width: 18px; height: 18px; transition: transform 200ms ease-out; }
.pg .fold[open] .fold__icon { transform: rotate(90deg); }
.pg .fold__body { padding: 0 0 24px; color: var(--pg-ink); }
.pg .fold--cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 0; }
.pg .fold--cta .fold__line { grid-column: 1 / -1; margin: 0; }
.pg .fold .reasons { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--pg-rule); }
.pg .fold .reasons li { display: block; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--pg-rule); border-radius: 0; color: var(--pg-ink); }
.pg .fold .reasons .icon { display: none; }
.pg .fold .reasons .reason--no { color: var(--pg-alert); }
.pg .fold .bar__track { border-radius: 0; background: var(--pg-wash); }
.pg .fold .bar__fill, .pg .fold .bar__range { border-radius: 0; background: var(--pg-ink); box-shadow: none; }
.pg .fold .bar__band { border-radius: 0; background: rgba(255, 178, 36, 0.55); box-shadow: none; }
.pg .fold .key__swatch { border-radius: 0; background: var(--pg-ink); }
.pg .fold .key__swatch--band { background: var(--pg-amber); }
.pg .pg-plainlist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--pg-rule); }
.pg .pg-plainlist li { padding: 10px 0; border-bottom: 1px solid var(--pg-rule); }

/* ---------------------------------------------------------------- 13. wide screens */
@media (max-width: 899px) { .pg .pg-section { padding-block: 72px; } }
@media (min-width: 900px) {
  body.pg { --pg-gut: 48px; }
  .pg .pg-head { padding-block: var(--pg-s7) 72px; }
  .pg .pg-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: end; }
  .pg .pg-split .pg-line { margin-top: 0; padding-bottom: 12px; }
  .pg .pg-plate img { aspect-ratio: 3 / 2; }
  .pg .pg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .pg .lrow { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; }
  .pg .lrow__media { width: 112px; height: 80px; }
  .pg .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 0; }
  .pg .tier { border-top: 1px solid var(--pg-ink); border-bottom: 0; }
  .pg .pg-wizard .tiles { gap: 12px; }
  .pg .pg-wizard .actionbar--sticky { position: static; padding-bottom: 0; border-top: 0; }
  .pg .pg-wizard .actionbar .btn--primary { width: auto; min-width: 280px; justify-self: start; }
  .pg .acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
  .pg .acct__wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .pg .faq__q .icon, .pg .fold__icon, .pg .pg-wizard .tile { transition: none; }
}
.pg .pg-lhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pg .pg-lhead a { white-space: nowrap; }
.pg .lrow__price small { max-width: 6.5em; }
.pg .pg-section .lrows, .pg .pg-section .pg-rows-list, .pg .pg-results .lrows, .pg .pg-section .faq { margin-top: var(--pg-s4); }
.pg .pg-risk { padding-block: 72px; }
