/* article-styles/hha.css — split from public-article.css (2026-07-20).
 * Loaded per-article via a server-rendered <link> when
 * src/lib/blog/article-style-chunks.ts resolves the "hha" chunk.
 * Served raw from /public (no build step) — this file IS the source of
 * truth. Cascade: loads AFTER public-core.css + public-article.css in
 * document order. Source order preserves the original monolith order —
 * do not re-sort. New rules for this collection belong here. */


/* ════════════════════════════════════════════════════════════════
   Housing in Canada — bespoke enhanced-article scope (.hha).
   Same wayfinding palette as the hub (.hh): slate ink, trail-marker
   amber, teal for official-source cues. Fonts remapped to StormIt's
   (--serif display, --sans body). Components: factcheck, govt cards,
   rent/buy & lease split, deposit table, numbered steps, red-flags +
   calm variant, checklist (label→.hha-check, input→.hha-box), pull
   quote, drop cap, citations + sources. ════════════════════════════ */
.hha {
  --ha-ink: #1c2530; --ha-ink-soft: #475263; --ha-ink-faint: #626b78;
  --ha-paper-2: #fffdf9; --ha-line: #e2ddd2; --ha-line-strong: #cdc6b8;
  --ha-marker: #c8782d; --ha-marker-deep: #8a4d15;
  --ha-route: #3a6b6b; --ha-route-deep: #2f5550;
  --ha-path: #315f92; --ha-path-soft: #edf4fb;
  --ha-official: #2f6f58; --ha-official-soft: #edf6f1;
  --ha-warn-bg: #fbf2e6; --ha-warn-line: #e8c79a; --ha-radius: 8px;
  color: var(--ha-ink); font-family: var(--sans), system-ui, sans-serif; font-size: 18px; line-height: 1.72;
}
.hha .hha-body { max-width: 740px; }

/* fact-check box (editorial rule) */
.hha .factcheck { background: var(--ha-warn-bg); border: 1px solid var(--ha-warn-line); border-left: 3px solid var(--ha-marker); border-radius: var(--ha-radius); padding: 16px 18px; margin: 0 0 30px; font-size: 14px; color: var(--ha-marker-deep); line-height: 1.55; display: flex; gap: 12px; align-items: flex-start; }
.hha .factcheck .ic { font-size: 16px; }
.hha .factcheck strong { color: var(--ha-marker-deep); }

/* body typography */
.hha .hha-sec { display: inline-flex; align-items: center; width: fit-content; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ha-marker-deep); background: var(--ha-warn-bg); border: 1px solid var(--ha-warn-line); border-radius: 999px; padding: 4px 9px; margin: 52px 0 0; }
.hha .body h2 { font-family: var(--serif), Georgia, serif; font-weight: 500; font-size: clamp(29px, 4.2vw, 36px); letter-spacing: 0; margin: 10px 0 18px; line-height: 1.12; scroll-margin-top: 96px; color: var(--ha-ink); }
.hha .body h3 { font-family: var(--serif), Georgia, serif; font-weight: 500; font-size: 21px; margin: 32px 0 10px; letter-spacing: -.01em; color: var(--ha-ink); }
.hha .body p { margin: 16px 0; line-height: 1.72; }
.hha .body a { color: var(--ha-route); text-decoration: none; font-weight: 500; }
.hha .body a:hover { text-decoration: underline; }
.hha sup.cite { font-size: .7em; color: var(--ha-marker-deep); font-weight: 600; vertical-align: super; line-height: 0; }
.hha sup.cite a { color: inherit; text-decoration: none; }
.hha sup.cite a:hover { text-decoration: underline; }
.hha .lead-cap::first-letter { font-family: var(--serif), serif; float: left; font-size: 62px; line-height: .78; padding: 6px 10px 0 0; color: var(--ha-marker-deep); font-weight: 500; }
@media (max-width: 620px) { .hha .lead-cap::first-letter { font-size: 48px; } }
.hha .pull { border-left: 3px solid var(--ha-marker); padding: 4px 0 4px 22px; margin: 28px 0; font-family: var(--serif), serif; font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ha-ink); }

/* decision architecture shared by the buyer-path articles */
.hha .hha-finder { position: sticky; top: 92px; z-index: 2; background: var(--ha-path-soft); border: 1px solid #c8daea; border-left: 4px solid var(--ha-path); border-radius: var(--ha-radius); padding: 20px 22px; margin: 4px 0 34px; box-shadow: 0 14px 34px rgba(28, 37, 48, .08); }
.hha .hha-finder-kicker { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ha-path); margin-bottom: 6px; }
.hha .hha-finder h3, .hha .hha-route-head h3 { font-family: var(--serif), Georgia, serif; font-weight: 500; font-size: 24px; line-height: 1.15; margin: 0 0 6px; color: var(--ha-ink); }
.hha .hha-finder p { font-size: 15px; line-height: 1.55; color: var(--ha-ink-soft); margin: 0; }
.hha .hha-finder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hha .hha-find-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 999px; border: 1px solid #b9d0e4; background: #fff; color: var(--ha-path); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.hha .hha-find-chip:hover { background: #f8fbff; text-decoration: none; border-color: var(--ha-path); }

.hha .hha-route-cards { margin: 28px 0 36px; display: grid; gap: 12px; }
.hha .hha-route-head { margin-bottom: 2px; }
.hha .hha-route-card { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-left: 4px solid var(--ha-path); border-radius: var(--ha-radius); padding: 18px 20px; }
.hha .hha-route-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hha .hha-route-card h3 { font-family: var(--serif), Georgia, serif; font-size: 21px; font-weight: 500; margin: 0; line-height: 1.2; }
.hha .hha-source-link { flex: none; color: var(--ha-official); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.hha .hha-source-link:hover { text-decoration: underline; }
.hha .hha-badge-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hha .hha-badge-row span { min-width: 0; background: #fff; border: 1px solid var(--ha-line); border-radius: var(--ha-radius); padding: 9px 10px; font-size: 13px; line-height: 1.35; color: var(--ha-ink-soft); }
.hha .hha-badge-row span b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-path); margin-bottom: 3px; }
.hha .hha-badge-row span.official { background: var(--ha-official-soft); border-color: #bfddcf; }
.hha .hha-badge-row span.official b, .hha .hha-badge-row span.verified b { color: var(--ha-official); }
.hha .hha-badge-row span.verified { background: #eef3f0; border-color: #cfe0d9; }

.hha .hha-checkpoint { background: #fff; border: 1px solid #c8daea; border-left: 4px solid var(--ha-path); border-radius: var(--ha-radius); padding: 20px 22px; margin: 32px 0; }
.hha .hha-checkpoint h3 { font-family: var(--serif), Georgia, serif; font-size: 21px; font-weight: 500; color: var(--ha-path); margin: 0 0 12px; }
.hha .hha-checkpoint-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.hha .hha-checkpoint p { margin: 0; padding: 12px 13px; border-radius: var(--ha-radius); border: 1px solid var(--ha-line); font-size: 14.5px; line-height: 1.55; color: var(--ha-ink-soft); background: #fff; }
.hha .hha-checkpoint p:first-child { background: var(--ha-official-soft); border-color: #bfddcf; }
.hha .hha-checkpoint p:nth-child(2) { background: var(--ha-warn-bg); border-color: var(--ha-warn-line); }
.hha .hha-checkpoint p:nth-child(3) { background: var(--ha-path-soft); border-color: #c8daea; }
.hha .hha-checkpoint b { color: var(--ha-ink); }

@media (max-width: 900px) {
  .hha .hha-finder { position: relative; top: auto; box-shadow: none; }
  .hha .hha-badge-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hha .hha-finder { padding: 18px; }
  .hha .hha-finder-chips { display: grid; grid-template-columns: 1fr; }
  .hha .hha-find-chip { justify-content: center; border-radius: 10px; }
  .hha .hha-route-card-top { flex-direction: column; gap: 6px; }
  .hha .hha-badge-row { grid-template-columns: 1fr; }
}

/* three-level government cards */
.hha .govt { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 26px 0; }
.hha .govt .lvl { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 18px 20px; position: relative; overflow: hidden; }
.hha .govt .lvl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.hha .govt .lvl.fed::before { background: var(--ha-route); }
.hha .govt .lvl.prov::before { background: var(--ha-marker); }
.hha .govt .lvl.muni::before { background: #7a8594; }
.hha .govt .lvl h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18px; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.hha .govt .lvl .tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.hha .govt .lvl.fed .tag { background: #e4efed; color: var(--ha-route-deep); }
.hha .govt .lvl.prov .tag { background: var(--ha-warn-bg); color: var(--ha-marker-deep); }
.hha .govt .lvl.muni .tag { background: #eceef1; color: #5a6573; }
.hha .govt .lvl p { margin: 6px 0 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.5; }

/* split (rent-vs-buy in #1, lease-type in #3) */
.hha .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.hha .split .col { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 20px; }
.hha .split .col h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hha .split .col .meta { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ha-marker-deep); margin-bottom: 10px; }
.hha .split .col p { font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.5; margin: 0; }
.hha .split .col ul { list-style: none; margin: 0; padding: 0; }
.hha .split .col li { font-size: 14.5px; color: var(--ha-ink-soft); padding: 6px 0 6px 20px; position: relative; line-height: 1.45; }
.hha .split .col li::before { position: absolute; left: 0; top: 6px; font-size: 13px; }
.hha .split .col.rent li::before { content: "🔑"; }
.hha .split .col.buy li::before { content: "🏠"; }
@media (max-width: 620px) { .hha .split { grid-template-columns: 1fr; } }

/* deposit table */
.hha .dep { margin: 26px 0; border: 1px solid var(--ha-line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.hha .dep table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.hha .dep th { background: var(--ha-ink); color: #fff; font-family: var(--mono); font-weight: 500; text-align: left; padding: 12px 14px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.hha .dep td { padding: 12px 14px; border-top: 1px solid var(--ha-line); color: var(--ha-ink-soft); vertical-align: top; }
.hha .dep tr:nth-child(even) td { background: #fbf9f4; }
.hha .dep td:first-child { font-weight: 600; color: var(--ha-ink); font-family: var(--serif), serif; font-size: 16px; }
.hha .dep .cap { font-size: 13px; color: var(--ha-ink-faint); padding: 10px 14px; background: var(--ha-warn-bg); border-top: 1px solid var(--ha-warn-line); }

/* numbered steps */
.hha .steps { counter-reset: st; margin: 24px 0; }
.hha .steps .st { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ha-line); }
.hha .steps .st:last-child { border-bottom: none; }
.hha .steps .st .n { counter-increment: st; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--ha-marker-deep); color: #fff; display: grid; place-items: center; font-family: var(--serif), serif; font-size: 16px; font-weight: 600; }
.hha .steps .st .n::before { content: counter(st); }
.hha .steps .st .tx h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18px; margin-bottom: 3px; }
.hha .steps .st .tx p { margin: 0; font-size: 15px; color: var(--ha-ink-soft); }

/* red-flags box + calm/green variant */
.hha .flags { background: #fdf5f3; border: 1px solid #e7c4bb; border-radius: var(--ha-radius); padding: 22px 24px; margin: 30px 0; }
.hha .flags h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin-bottom: 4px; color: #9c4226; }
.hha .flags .sub { font-size: 13.5px; color: #9c4226; margin-bottom: 14px; }
.hha .flags ul { list-style: none; margin: 0; padding: 0; }
.hha .flags li { font-size: 15px; color: var(--ha-ink-soft); padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid #efd9d2; line-height: 1.45; }
.hha .flags li:last-child { border-bottom: none; }
.hha .flags li::before { content: "⚠"; position: absolute; left: 0; top: 8px; color: #c0563a; }
.hha .flags li b { color: var(--ha-ink); }
.hha .flags.calm { background: #eef3f0; border-color: #cfe0d9; }
.hha .flags.calm h3 { color: #2f5d52; }
.hha .flags.calm .sub { color: #4c685e; }
.hha .flags.calm li { border-bottom-color: #d8e6e0; }

/* checklist (label→.hha-check, input→.hha-box, small→.hha-small) */
.hha .checklist { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: var(--ha-radius); padding: 24px; margin: 30px 0; }
.hha .checklist h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.hha .checklist .sub { font-size: 14px; color: var(--ha-ink-faint); margin-bottom: 16px; }
.hha .hha-check { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--ha-line); font-size: 15px; }
.hha .checklist .hha-check:last-child { border-bottom: none; }
.hha .hha-box { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; border: 1.6px solid var(--ha-marker); border-radius: 4px; background: #fff; }
.hha .hha-check span b { display: block; font-weight: 600; }
.hha .hha-small { display: block; color: var(--ha-ink-faint); font-size: 13px; font-weight: 400; }

/* sources / citations */
.hha .sources { border-top: 2px solid var(--ha-marker); margin-top: 50px; padding-top: 24px; }
.hha .sources h2 { font-family: var(--serif), serif; font-weight: 500; font-size: 22px; margin-bottom: 16px; }
.hha .sources ol { counter-reset: src; list-style: none; margin: 0; padding: 0; }
.hha .sources li { counter-increment: src; font-size: 13.5px; color: var(--ha-ink-soft); line-height: 1.5; padding: 9px 0 9px 34px; position: relative; border-bottom: 1px solid var(--ha-line); }
.hha .sources li::before { content: "[" counter(src) "]"; position: absolute; left: 0; font-family: var(--serif), serif; color: var(--ha-marker-deep); font-weight: 600; font-size: 13px; }
.hha .sources li a { color: var(--ha-route); text-decoration: none; word-break: break-word; }
.hha .sources li a:hover { text-decoration: underline; }

/* Comparison table + "where to turn" box — used by the newer-template
   articles (e.g. affordable-housing-co-ops-canada). Cream housing theme. */
.hha .tablewrap { overflow-x: auto; margin: 28px 0 12px; border: 1px solid var(--ha-line); border-radius: 12px; }
.hha .tablewrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; line-height: 1.5; margin: 0; }
.hha .tablewrap th, .hha .tablewrap td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--ha-line); vertical-align: top; }
.hha .tablewrap thead th { font-family: var(--sans), sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ha-ink); }
.hha .tablewrap tbody th { font-family: var(--sans), sans-serif; font-weight: 600; color: var(--ha-ink); font-size: 13px; width: 26%; background: #fbf9f4; }
.hha .tablewrap td { color: var(--ha-ink-soft); }
.hha .tablewrap tbody tr:last-child th, .hha .tablewrap tbody tr:last-child td { border-bottom: none; }
.hha .tnote { font-family: var(--sans), sans-serif; font-size: 13px; color: var(--ha-ink-faint); display: flex; gap: 9px; align-items: flex-start; margin: 14px 2px 0; line-height: 1.5; }
.hha .tnote .ico { color: var(--ha-marker-deep); flex: none; }
.hha .resources { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: var(--ha-radius); padding: 22px 22px 8px; margin: 34px 0; }
.hha .resources .rh { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ha-marker-deep); margin: 0 0 14px; }
.hha .resources ul { list-style: none; padding: 0; margin: 0; }
.hha .resources li { padding: 12px 0; border-top: 1px solid var(--ha-line); font-size: 15px; line-height: 1.55; color: var(--ha-ink-soft); }
.hha .resources li:first-child { border-top: none; }
.hha .resources li b { color: var(--ha-ink); font-family: var(--sans), sans-serif; font-weight: 600; font-size: 14.5px; }

/* Companion-worksheet download CTA (gated behind the reader tool-gate). */
.hha .hha-download { display: flex; gap: 18px; align-items: flex-start; background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-left: 4px solid var(--ha-marker); border-radius: var(--ha-radius); padding: 22px 24px; margin: 36px 0; }
.hha .hha-download .hha-dl-doc { font-size: 30px; line-height: 1; flex: none; }
.hha .hha-download .hha-dl-body h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin: 2px 0 6px; }
.hha .hha-download .hha-dl-body p { font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.55; margin: 0 0 14px; }
.hha .hha-dl-btn { display: inline-block; font-family: var(--sans), sans-serif; font-weight: 600; font-size: 14px; color: #fff; background: var(--ha-route-deep); padding: 9px 18px; border-radius: 999px; text-decoration: none; }
.hha .hha-dl-btn:hover { background: var(--ha-ink); }
@media (max-width: 560px) { .hha .hha-download { flex-direction: column; gap: 10px; } }

/* Body subheads, real lists, and warning callout — used by the newer-template
   housing articles (#2 market, #8 shared housing, #9 setup, #10 ending). */
.hha .body h4 { font-family: var(--serif), Georgia, serif; font-weight: 600; font-size: 18px; color: var(--ha-ink); margin: 30px 0 8px; letter-spacing: -.005em; }
.hha .body ul, .hha .body ol { margin: 16px 0 20px; padding-left: 1.2em; }
.hha .body li { margin: 0 0 10px; line-height: 1.6; }
.hha .body li::marker { color: var(--ha-marker); }
.hha .callout { background: var(--ha-warn-bg); border: 1px solid var(--ha-warn-line); border-left: 4px solid var(--ha-marker); border-radius: 10px; padding: 16px 18px; margin: 26px 0; font-size: 15.5px; line-height: 1.62; color: var(--ha-ink-soft); }
.hha .callout h4 { margin: 0 0 6px; color: var(--ha-marker-deep); display: flex; gap: 8px; align-items: center; font-family: var(--serif), Georgia, serif; font-weight: 600; font-size: 17px; }
.hha .callout p { margin: 0; }
.hha .callout strong { color: var(--ha-ink); }
.hha .hha-table-label { display: none; }

/* .hha — components for #6 Renting Without Credit: know-your-rights (green)
   + alert (red) variant, toolkit cards, warning box */
.hha .rights { background: #eef3f0; border: 1px solid #cfe0d9; border-left: 3px solid var(--ha-route); border-radius: var(--ha-radius); padding: 22px 24px; margin: 30px 0; }
.hha .rights h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin-bottom: 4px; color: #2f5d52; }
.hha .rights .sub { font-size: 13.5px; color: #4c685e; margin-bottom: 14px; }
.hha .rights ul { list-style: none; margin: 0; padding: 0; }
.hha .rights li { font-size: 15px; color: var(--ha-ink-soft); padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid #d9e6e0; line-height: 1.45; }
.hha .rights li:last-child { border-bottom: none; }
.hha .rights li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--ha-route); font-weight: 700; }
.hha .rights li b { color: var(--ha-ink); }
.hha .rights.alert { background: #fdf5f3; border-color: #e7c4bb; border-left-color: #c0563a; }
.hha .rights.alert h3 { color: #9c4226; }
.hha .rights.alert .sub { color: #b06a52; }
.hha .rights.alert li { border-bottom-color: #efd9d2; }

/* toolkit cards */
.hha .kit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.hha .kit .c { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 18px 20px; }
.hha .kit .c .ic { font-size: 22px; }
.hha .kit .c h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18px; margin: 6px 0 5px; }
.hha .kit .c p { margin: 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.5; }
@media (max-width: 620px) { .hha .kit { grid-template-columns: 1fr; } }

/* warning box (amber) */
.hha .warn { background: var(--ha-warn-bg); border: 1px solid var(--ha-warn-line); border-left: 3px solid var(--ha-marker); border-radius: var(--ha-radius); padding: 20px 22px; margin: 30px 0; }
.hha .warn h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 19px; margin-bottom: 8px; color: var(--ha-marker-deep); }
.hha .warn p { margin: 8px 0; font-size: 15px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .warn p:first-of-type { margin-top: 0; }

/* .hha — components for #4 Tenant Rights: rights/responsibilities duo,
   "is this legal?" quick-reference, eviction province table */
.hha .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.hha .duo .col { border-radius: 12px; padding: 20px 22px; }
.hha .duo .col.r { background: #eef3f0; border: 1px solid #cfe0d9; }
.hha .duo .col.d { background: var(--ha-paper-2); border: 1px solid var(--ha-line); }
.hha .duo .col h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hha .duo .col.r h4 { color: #2f5d52; }
.hha .duo .col ul { list-style: none; margin: 0; padding: 0; }
.hha .duo .col li { font-size: 14px; color: var(--ha-ink-soft); padding: 7px 0 7px 22px; position: relative; line-height: 1.45; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.hha .duo .col li:last-child { border-bottom: none; }
.hha .duo .col.r li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--ha-route); font-weight: 700; }
.hha .duo .col.d li::before { content: "•"; position: absolute; left: 2px; top: 7px; color: var(--ha-marker); font-weight: 700; }
@media (max-width: 620px) { .hha .duo { grid-template-columns: 1fr; } }

/* "is this legal?" quick-reference */
.hha .qr { margin: 26px 0; }
.hha .qr .row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ha-line); align-items: flex-start; }
.hha .qr .row:last-child { border-bottom: none; }
.hha .qr .verdict { flex: 0 0 92px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 0; text-align: center; border-radius: 6px; }
.hha .qr .verdict.no { background: #fdece7; color: #9c4226; }
.hha .qr .verdict.yes { background: #eaf2ee; color: #2f5d52; }
.hha .qr .verdict.dep { background: var(--ha-warn-bg); color: var(--ha-marker-deep); }
.hha .qr .q h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 16.5px; margin-bottom: 3px; }
.hha .qr .q p { margin: 0; font-size: 14px; color: var(--ha-ink-soft); line-height: 1.45; }
@media (max-width: 620px) { .hha .qr .verdict { flex-basis: 76px; } }

/* eviction province table */
.hha .evt { margin: 26px 0; border: 1px solid var(--ha-line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.hha .evt table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.hha .evt th { background: var(--ha-ink); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hha .evt td { padding: 12px 14px; border-top: 1px solid var(--ha-line); color: var(--ha-ink-soft); vertical-align: top; }
.hha .evt tr:nth-child(even) td { background: #fbf9f4; }
.hha .evt td:first-child { font-weight: 600; color: var(--ha-ink); font-family: var(--serif), serif; font-size: 15px; }
.hha .evt .cap { font-size: 13px; color: var(--ha-ink-faint); padding: 10px 14px; background: var(--ha-warn-bg); border-top: 1px solid var(--ha-warn-line); }

/* .hha — components for #5 Finding a Rental: viewing grid, scam table, report box */
.hha .viewgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; margin: 20px 0; }
.hha .viewgrid .vi { font-size: 14.5px; color: var(--ha-ink-soft); padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--ha-line); line-height: 1.4; }
.hha .viewgrid .vi::before { content: "🔍"; position: absolute; left: 0; top: 8px; font-size: 13px; }
.hha .viewgrid .vi b { color: var(--ha-ink); }
@media (max-width: 620px) { .hha .viewgrid { grid-template-columns: 1fr; } }
.hha .scam { margin: 26px 0; border: 1px solid #e7c4bb; border-radius: 12px; overflow: hidden; }
.hha .scam .hd { background: #9c4226; color: #fff; padding: 14px 20px; font-family: var(--serif), serif; font-size: 18px; font-weight: 500; }
.hha .scam .item { padding: 16px 20px; border-top: 1px solid #efd9d2; }
.hha .scam .item:first-of-type { border-top: none; }
.hha .scam .item h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 16.5px; margin-bottom: 4px; color: #9c4226; display: flex; align-items: center; gap: 8px; }
.hha .scam .item p { margin: 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .report { background: #eef3f0; border: 1px solid #cfe0d9; border-left: 3px solid var(--ha-route); border-radius: var(--ha-radius); padding: 20px 22px; margin: 30px 0; }
.hha .report h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 19px; margin-bottom: 8px; color: #2f5d52; }
.hha .report p { margin: 8px 0; font-size: 15px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .report p:first-of-type { margin-top: 0; }
.hha .report strong { color: var(--ha-ink); }

/* .hha — components for #12 Saving for a Home: account comparison,
   down-payment tiers table, worked example, cost-beyond cards */
.hha .accts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.hha .accts .a { border-radius: 12px; padding: 22px; border: 1px solid var(--ha-line); background: var(--ha-paper-2); }
.hha .accts .a.fhsa { border-top: 4px solid var(--ha-route); }
.hha .accts .a.hbp { border-top: 4px solid var(--ha-marker); }
.hha .accts .a h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin-bottom: 3px; }
.hha .accts .a .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ha-ink-faint); margin-bottom: 14px; display: block; }
.hha .accts .a dl { margin: 0; }
.hha .accts .a dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ha-marker-deep); margin-top: 12px; }
.hha .accts .a.fhsa dt { color: var(--ha-route-deep); }
.hha .accts .a dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.45; }
@media (max-width: 620px) { .hha .accts { grid-template-columns: 1fr; } }

.hha .tiers { margin: 26px 0; border: 1px solid var(--ha-line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.hha .tiers table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.hha .tiers th { background: var(--ha-ink); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.hha .tiers td { padding: 12px 14px; border-top: 1px solid var(--ha-line); color: var(--ha-ink-soft); vertical-align: top; }
.hha .tiers tr:nth-child(even) td { background: #fbf9f4; }
.hha .tiers td:first-child { font-weight: 600; color: var(--ha-ink); font-family: var(--serif), serif; font-size: 15px; }
.hha .tiers .cap { font-size: 13px; color: var(--ha-ink-faint); padding: 10px 14px; background: var(--ha-warn-bg); border-top: 1px solid var(--ha-warn-line); }

.hha .example { background: #eef3f0; border: 1px solid #cfe0d9; border-radius: var(--ha-radius); padding: 22px 24px; margin: 30px 0; }
.hha .example h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 19px; margin-bottom: 12px; color: #2f5d52; }
.hha .example .calc { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #d9e6e0; font-size: 15px; }
.hha .example .calc:last-of-type { border-bottom: none; }
.hha .example .calc .lab { color: var(--ha-ink-soft); }
.hha .example .calc .val { font-weight: 600; color: var(--ha-ink); font-variant-numeric: tabular-nums; }
.hha .example .tot { display: flex; justify-content: space-between; padding: 12px 0 0; margin-top: 4px; border-top: 2px solid var(--ha-route); font-size: 16px; }
.hha .example .tot .lab { font-family: var(--serif), serif; font-weight: 500; }
.hha .example .tot .val { font-weight: 700; color: var(--ha-route-deep); font-variant-numeric: tabular-nums; }
.hha .example p.note { margin: 12px 0 0; font-size: 13.5px; color: #4c685e; line-height: 1.45; }

.hha .beyond { margin: 24px 0; }
.hha .beyond .b { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ha-line); }
.hha .beyond .b:last-child { border-bottom: none; }
.hha .beyond .b .ic { font-size: 20px; flex: 0 0 auto; }
.hha .beyond .b .tx h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 17px; margin-bottom: 2px; }
.hha .beyond .b .tx p { margin: 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.45; }

/* .hha — components for #14 Mortgages 101: term/amortization bar, concept
   pairs, rate-type list, stress-test box (.warn/.report/.checklist reused) */
.hha .timeline { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 22px 24px; margin: 26px 0; }
.hha .timeline h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 17px; margin-bottom: 14px; }
.hha .timeline .bar { display: flex; height: 42px; border-radius: 8px; overflow: hidden; border: 1px solid var(--ha-line-strong); }
.hha .timeline .bar .term { flex: 0 0 20%; background: var(--ha-marker-deep); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.hha .timeline .bar .rest { flex: 1; background: #efe9dd; display: grid; place-items: center; font-size: 12.5px; color: var(--ha-ink-soft); font-weight: 500; }
.hha .timeline .legend { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--ha-ink-soft); }
.hha .timeline .legend span { display: flex; align-items: center; gap: 7px; }
.hha .timeline .legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.hha .timeline .legend .sw-term { background: var(--ha-marker); }
.hha .timeline .legend .sw-rest { background: #efe9dd; }

.hha .pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.hha .pairs .p { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 18px 20px; }
.hha .pairs .p h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.hha .pairs .p p { margin: 0; font-size: 14px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .pairs .p p b { color: var(--ha-ink); }
@media (max-width: 620px) { .hha .pairs { grid-template-columns: 1fr; } }

.hha .rates { margin: 24px 0; }
.hha .rates .r { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ha-line); }
.hha .rates .r:last-child { border-bottom: none; }
.hha .rates .r .ic { font-size: 22px; flex: 0 0 auto; }
.hha .rates .r .tx h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18px; margin-bottom: 2px; }
.hha .rates .r .tx p { margin: 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.45; }

.hha .stress { background: #eef3f0; border: 1px solid #cfe0d9; border-left: 3px solid var(--ha-route); border-radius: var(--ha-radius); padding: 22px 24px; margin: 30px 0; }
.hha .stress h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin-bottom: 8px; color: #2f5d52; }
.hha .stress p { margin: 8px 0; font-size: 15px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .stress p:first-of-type { margin-top: 0; }
.hha .stress .formula { background: #fff; border: 1px solid #cfe0d9; border-radius: 8px; padding: 14px 16px; margin: 14px 0; font-size: 15.5px; text-align: center; color: var(--ha-ink); font-weight: 600; }
.hha .stress .formula b { color: var(--ha-route-deep); }

/* .hha — components for #13 Building Credit: score-factor bars, score-range
   scale, do/avoid duo variant, newcomer note box */
.hha .factors { margin: 24px 0; }
.hha .factors .f { margin: 14px 0; }
.hha .factors .f .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.hha .factors .f .name { font-family: var(--serif), serif; font-weight: 500; font-size: 16px; }
.hha .factors .f .wt { font-size: 13px; font-weight: 600; color: var(--ha-marker-deep); font-variant-numeric: tabular-nums; }
.hha .factors .f .track { height: 9px; background: #ece6da; border-radius: 6px; overflow: hidden; }
.hha .factors .f .fill { height: 100%; background: var(--ha-marker); border-radius: 6px; }
.hha .factors .f .fill.w95 { width: 95%; }
.hha .factors .f .fill.w80 { width: 80%; }
.hha .factors .f .fill.w55 { width: 55%; }
.hha .factors .f .fill.w35 { width: 35%; }
.hha .factors .f .fill.w30 { width: 30%; }
.hha .factors .f p { margin: 5px 0 0; font-size: 13.5px; color: var(--ha-ink-soft); line-height: 1.45; }
.hha .factors .note { font-size: 13.5px; color: var(--ha-ink-faint); margin-top: 14px; line-height: 1.45; }

.hha .scale { margin: 24px 0; border: 1px solid var(--ha-line); border-radius: 12px; overflow: hidden; }
.hha .scale .bar { display: flex; height: 38px; font-size: 12px; font-weight: 600; color: #fff; }
.hha .scale .bar div { display: grid; place-items: center; }
.hha .scale .s1 { background: #b3543c; flex: 1; }
.hha .scale .s2 { background: #a85f1c; flex: 1; }
.hha .scale .s3 { background: #75682e; flex: 1; }
.hha .scale .s4 { background: #47705a; flex: 1; }
.hha .scale .s5 { background: #3a6b6b; flex: 1; }
.hha .scale .lbl { display: flex; font-size: 11.5px; color: var(--ha-ink-faint); padding: 6px 0; }
.hha .scale .lbl div { flex: 1; text-align: center; }

.hha .note-box { background: var(--ha-warn-bg); border: 1px solid var(--ha-warn-line); border-left: 3px solid var(--ha-marker); border-radius: var(--ha-radius); padding: 20px 22px; margin: 30px 0; }
.hha .note-box h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 19px; margin-bottom: 8px; color: var(--ha-marker-deep); }
.hha .note-box p { margin: 8px 0; font-size: 15px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .note-box p:first-of-type { margin-top: 0; }

/* do/avoid variant of .duo */
.hha .duo .col.do { background: #eef3f0; border: 1px solid #cfe0d9; }
.hha .duo .col.av { background: #fdf5f3; border: 1px solid #e7c4bb; }
.hha .duo .col.do h4 { color: #2f5d52; }
.hha .duo .col.av h4 { color: #9c4226; }
.hha .duo .col.do li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--ha-route); font-weight: 700; }
.hha .duo .col.av li::before { content: "✕"; position: absolute; left: 1px; top: 7px; color: #c0563a; font-weight: 700; }

/* .hha — components for #15 First-Time Buyer Programs: program cards,
   provincial LTT table, discontinued-programs box, "new" badge */
.hha .prog { margin: 24px 0; }
.hha .prog .p { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; border-left: 4px solid var(--ha-route); }
.hha .prog .p.am { border-left-color: var(--ha-marker); }
.hha .prog .p .hd { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.hha .prog .p h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 18.5px; }
.hha .prog .p .worth { font-size: 13px; font-weight: 600; color: var(--ha-route-deep); background: #e4efed; padding: 3px 9px; border-radius: 999px; }
.hha .prog .p p { margin: 6px 0 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .prog .p p .lab { font-weight: 600; color: var(--ha-ink); }
@media (max-width: 620px) { .hha .prog .p .hd { flex-direction: column; } }

.hha .newbadge { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ha-marker-deep); padding: 2px 8px; border-radius: 5px; vertical-align: middle; margin-left: 6px; }

.hha .prov { margin: 26px 0; border: 1px solid var(--ha-line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.hha .prov table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.hha .prov th { background: var(--ha-ink); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hha .prov td { padding: 12px 14px; border-top: 1px solid var(--ha-line); color: var(--ha-ink-soft); vertical-align: top; }
.hha .prov tr:nth-child(even) td { background: #fbf9f4; }
.hha .prov td:first-child { font-weight: 600; color: var(--ha-ink); font-family: var(--serif), serif; font-size: 15px; }
.hha .prov .cap { font-size: 12px; color: var(--ha-ink-faint); padding: 10px 14px; background: var(--ha-warn-bg); border-top: 1px solid var(--ha-warn-line); }

.hha .dead { background: #f1eee9; border: 1px solid var(--ha-line-strong); border-left: 3px solid #8a8478; border-radius: var(--ha-radius); padding: 20px 22px; margin: 30px 0; }
.hha .dead h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 19px; margin-bottom: 8px; color: #6b6558; }
.hha .dead p { margin: 8px 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .dead p:first-of-type { margin-top: 0; }
.hha .dead .x { color: #8a4a3a; font-weight: 600; }

/* .hha — components for #16 The Home Buying Process: numbered journey steps,
   offer-contents box, condition cards, closing-day flow */
.hha .journey { counter-reset: js; margin: 24px 0; }
.hha .journey .js { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ha-line); }
.hha .journey .js:last-child { border-bottom: none; }
.hha .journey .js .n { counter-increment: js; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: var(--ha-marker); color: #fff; display: grid; place-items: center; font-family: var(--serif), serif; font-size: 19px; font-weight: 600; }
.hha .journey .js .n::before { content: counter(js); }
.hha .journey .js .tx h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 21px; margin: 2px 0 6px; }
.hha .journey .js .tx p { margin: 8px 0 0; font-size: 15px; color: var(--ha-ink-soft); line-height: 1.55; }
.hha .journey .js .tx p:first-of-type { margin-top: 0; }
.hha .journey .js .tx .link { font-size: 13.5px; color: var(--ha-route); text-decoration: none; font-weight: 500; }
.hha .journey .js .tx .link:hover { text-decoration: underline; }

.hha .offer { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: var(--ha-radius); padding: 20px 22px; margin: 22px 0; }
.hha .offer h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 17px; margin-bottom: 12px; }
.hha .offer ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 0; padding: 0; }
.hha .offer li { font-size: 14px; color: var(--ha-ink-soft); padding: 5px 0 5px 20px; position: relative; line-height: 1.4; }
.hha .offer li::before { content: "\203A"; position: absolute; left: 2px; top: 5px; color: var(--ha-marker); font-weight: 700; }
@media (max-width: 620px) { .hha .offer ul { grid-template-columns: 1fr; } }

.hha .conds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.hha .conds .c { background: var(--ha-paper-2); border: 1px solid var(--ha-line); border-radius: 12px; padding: 16px 18px; }
.hha .conds .c h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 16.5px; margin-bottom: 4px; }
.hha .conds .c p { margin: 0; font-size: 14px; color: var(--ha-ink-soft); line-height: 1.45; }
@media (max-width: 620px) { .hha .conds { grid-template-columns: 1fr; } }

.hha .closing { background: #eef3f0; border: 1px solid #cfe0d9; border-left: 3px solid var(--ha-route); border-radius: var(--ha-radius); padding: 22px 24px; margin: 30px 0; }
.hha .closing h3 { font-family: var(--serif), serif; font-weight: 500; font-size: 20px; margin-bottom: 8px; color: #2f5d52; }
.hha .closing p { margin: 8px 0; font-size: 15px; color: var(--ha-ink-soft); line-height: 1.5; }
.hha .closing p:first-of-type { margin-top: 0; }
.hha .closing .flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; font-size: 13px; }
.hha .closing .flow .b { background: #fff; border: 1px solid #cfe0d9; border-radius: 8px; padding: 7px 12px; font-weight: 600; color: var(--ha-route-deep); }
.hha .closing .flow .ar { color: var(--ha-route); font-weight: 700; }

/* .hha — components for #18 Closing Costs: line-item table, big-number
   callout, after-move cost cards (.example reused from Saving guide) */
.hha .costs { margin: 26px 0; border: 1px solid var(--ha-line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.hha .costs table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.hha .costs th { background: var(--ha-ink); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hha .costs th:last-child { text-align: right; }
.hha .costs td { padding: 12px 14px; border-top: 1px solid var(--ha-line); color: var(--ha-ink-soft); vertical-align: top; }
.hha .costs td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--ha-ink); }
.hha .costs tr:nth-child(even) td { background: #fbf9f4; }
.hha .costs td:first-child { font-weight: 600; color: var(--ha-ink); font-family: var(--serif), serif; font-size: 14.5px; }
.hha .costs td .d { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--ha-ink-soft); margin-top: 2px; }
.hha .costs .cap { font-size: 12px; color: var(--ha-ink-faint); padding: 10px 14px; background: var(--ha-warn-bg); border-top: 1px solid var(--ha-warn-line); }

.hha .big { background: var(--ha-ink); color: #e9e5db; border-radius: var(--ha-radius); padding: 26px 30px; margin: 26px 0; text-align: center; }
.hha .big .pct { font-family: var(--serif), serif; font-size: 42px; font-weight: 600; color: #fff; line-height: 1; }
.hha .big .lab { font-size: 14px; color: #b3bac4; margin-top: 8px; }

.hha .after { margin: 24px 0; }
.hha .after .a { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ha-line); }
.hha .after .a:last-child { border-bottom: none; }
.hha .after .a .ic { font-size: 20px; flex: 0 0 auto; }
.hha .after .a .tx h4 { font-family: var(--serif), serif; font-weight: 500; font-size: 17px; margin-bottom: 2px; }
.hha .after .a .tx p { margin: 0; font-size: 14.5px; color: var(--ha-ink-soft); line-height: 1.45; }

/* Keep the mobile table-card treatment after all article-specific tables. */
@media (max-width: 680px) {
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) { border: 0; border-radius: 0; overflow: visible; background: transparent; }
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) table { min-width: 0; width: 100%; border-collapse: separate; border-spacing: 0 12px; display: block; }
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) thead { display: none; }
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) tbody { display: block; }
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) tr { display: block; border: 1px solid var(--ha-line); border-radius: var(--ha-radius); overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(28, 37, 48, .05); }
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) td,
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) th { display: grid; grid-template-columns: minmax(104px, .42fr) minmax(0, 1fr); gap: 12px; align-items: start; border: 0; border-top: 1px solid var(--ha-line); padding: 12px 14px; text-align: left; background: #fff; color: var(--ha-ink-soft); font-family: var(--sans), sans-serif; font-size: 14.5px; }
  .hha :is(.dep, .tiers, .evt, .prov, .costs, .tablewrap) tr > :first-child { border-top: 0; background: #fbf9f4; color: var(--ha-ink); font-weight: 600; }
  .hha .costs td:last-child { text-align: left; white-space: normal; }
  .hha .hha-table-label { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-path); line-height: 1.35; }
  .hha .hha-table-value { min-width: 0; line-height: 1.45; }
  .hha :is(.dep, .tiers, .evt, .prov, .costs) .cap { border: 1px solid var(--ha-warn-line); border-radius: 10px; margin-top: 10px; }
}
