/* ChkLease.com */
:root {
  --ink: #0f1b33; --ink-2: #26324d; --muted: #5d6882; --line: #d4d9e4; --line-2: #e3e6ee;
  --bg: #f5f6fa; --panel: #ffffff; --tint: #eef0f6;
  --brand: #d62839; --brand-ink: #b81f2f; --brand-tint: #fdeced;
  --navy: #14213d; --focus: #2563eb;
  --red: #b42318; --red-tint: #fdecea; --yellow: #9a6700; --yellow-tint: #fff4d6; --info: #2457a6; --info-tint: #e8f0fb; --green: #0f7a55;
  --radius: 16px; --shadow: 0 1px 2px rgba(15,27,51,.05), 0 8px 24px -8px rgba(15,27,51,.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.2em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .9em; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line-2); }
thead th { font-size: .85rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.num { text-align: end; white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.page { padding-top: 1.5rem; padding-bottom: 3rem; }
.prose { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 .4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: .4rem .8rem; border-radius: 6px; z-index: 50; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; border-radius: 11px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; padding: .65rem 1.15rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; }
.btn-outline { background: var(--panel); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--tint); color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); text-decoration: underline; cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* header / footer */
.topbar { background: rgba(245,246,250,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 20; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 600; }
.brand b { color: var(--brand); }
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: -2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--brand), #9e1424); color: #fff; display: grid; place-items: center; flex: none; }
#primary-nav { display: flex; align-items: center; gap: 1.1rem; }
#primary-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; }
#primary-nav a:not(.btn):hover, #primary-nav a[aria-current] { color: var(--brand-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .7rem; font: inherit; cursor: pointer; }
.footer { border-top: 1px solid var(--line); background: var(--panel); padding: 2.2rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.footer-brand { font-weight: 700; font-size: 1.1rem; margin: 0 0 .3rem; }
.footer-brand b { color: var(--brand); }
.footer-col { display: flex; flex-direction: column; gap: .35rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-h { font-weight: 700; font-size: .85rem; margin: 0 0 .2rem; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 1.5rem; border-top: 1px solid var(--line-2); padding-top: 1rem; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 0 .9rem; font-size: .9rem; margin-top: .6rem; }
.lang-switch span[aria-current] { font-weight: 700; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .15rem; }

/* hero + scanner */
.hero {
  background: radial-gradient(ellipse at 92% 5%, rgba(214,40,57,.12), transparent 49%),
              radial-gradient(ellipse at 4% 100%, rgba(37,99,235,.08), transparent 52%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); padding-block: 76px 84px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-ink); }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); flex: none; }
.hero h1 { font-size: clamp(2.25rem, 5.1vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin: .3em 0; text-wrap: balance; }
.hero h1 em { color: var(--brand-ink); font-style: normal; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.hero-actions { margin-top: 1.5rem; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; gap: .35rem; align-items: baseline; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; }
.card.preview { padding: clamp(16px, 2.5vw, 26px); border-radius: 22px; box-shadow: 0 18px 48px -20px rgba(15,27,51,.32); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.preview-head h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.preview p { margin: 0; font-size: .875rem; color: var(--muted); }
.preview-badge { background: #e4f6ee; color: #0b6846; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: .2rem .65rem; white-space: nowrap; }
.preview-list { display: grid; gap: .55rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.preview-list li { display: flex; align-items: center; gap: .75rem; padding: .75rem; background: #f9fafc; border: 1px solid var(--line-2); border-radius: 12px; }
.preview-index { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 10px; background: var(--brand-tint); color: var(--brand-ink); font-size: .85rem; font-weight: 800; }
.preview-list li:nth-child(2) .preview-index { background: var(--info-tint); color: var(--info); }
.preview-list li:nth-child(3) .preview-index { background: var(--yellow-tint); color: var(--yellow); }
.preview-caption { border-top: 1px solid var(--line-2); padding-top: .7rem; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.scanner { padding: clamp(16px, 3vw, 30px); min-width: 0; }
.scanner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 1.5rem; align-items: start; }
.scanner-tips { background: var(--navy); color: #dfe5f2; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.scanner-tips h3 { color: #fff; }
.scanner-tips .ticks li::before { color: #ff9ca6; }
.scanner-tips p { margin: 0; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .875rem; }
.seg-toggle { display: flex; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: .9rem; }
.seg-toggle button { flex: 1; border: 0; background: none; font: inherit; font-size: .92rem; padding: .4rem .9rem; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.seg-toggle button[aria-selected="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem 1rem; cursor: pointer; background: var(--bg); transition: background .15s, border-color .15s; }
.drop strong { overflow-wrap: anywhere; }
.drop:hover, .drop.over { background: var(--brand-tint); border-color: var(--brand); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop-icon { color: var(--brand); }
textarea, input[type=email], input:not([type]), input[type=text] { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
textarea { resize: vertical; min-height: 9rem; }
textarea:focus, input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.scan-go { margin-top: 1rem; display: grid; gap: .5rem; }
.scan-go .btn { width: 100%; }
.progress { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); }
.progress li { padding-inline-start: 1.6rem; position: relative; }
.progress li::before { content: ""; position: absolute; inset-inline-start: .2rem; top: .45em; width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid var(--line); }
.progress li.done { color: var(--ink-2); }
.progress li.done::before { background: var(--brand); border-color: var(--brand); }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { min-height: 1.2em; margin: .5rem 0 0; font-size: .92rem; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--brand-ink); }
[data-result]:empty { display: none; }
.home [data-result] .result { margin: 2rem 0; }

/* sections */
.home-section { padding-block: clamp(36px, 5vw, 68px); }
.home-section.section-alt { background: var(--panel); border-block: 1px solid var(--line-2); }
.home-section h2 { margin-top: 0; }
.home-section > h2, .section-head h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; }
.section-head { max-width: 680px; margin-bottom: 1.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }
.section-alt .cards + p { margin: 1.25rem 0 0; text-align: center; }
.home-section + .home-section { border-top: 1px solid var(--line-2); }
.band { padding-top: 1.2rem; padding-bottom: 1rem; }
.cards { display: grid; gap: 1rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards .card h3 { margin-top: 0; }
.group-card, .article-card { display: flex; flex-direction: column; gap: .35rem; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.group-card:hover, .article-card:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.group-card .count { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--brand); }
.article-card .eyebrow { margin: 0; }
.compare td, .compare th { text-align: center; }
.compare th[scope=row], .compare thead th:first-child { text-align: start; font-weight: 500; }
.compare thead th:last-child, .compare td:last-child { background: var(--brand-tint); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: .2rem 1rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; padding: .65rem 0; }
details[open] summary { border-bottom: 1px solid var(--line-2); margin-bottom: .6rem; }
.notice { background: var(--yellow-tint); border: 1px solid #f0d58c; border-radius: 10px; padding: .75rem 1rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: .45rem; }
.ticks li { padding-inline-start: 1.5rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }

/* result */
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); border-top: 5px solid var(--c, var(--brand)); margin-bottom: 1rem; }
.band-green { --c: var(--green); } .band-yellow { --c: #d4a017; } .band-red { --c: var(--red); }
.result-head h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.score-ring { --p: 0; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 11px; background: var(--panel); border-radius: 50%; }
.score-num, .score-of { position: relative; line-height: 1; }
.score-num { font-size: 2.6rem; font-weight: 800; }
.score-of { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.chips { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border-radius: 999px; padding: .15rem .7rem; font-size: .9rem; }
.chip-red { background: var(--red-tint); color: var(--red); } .chip-yellow { background: var(--yellow-tint); color: var(--yellow); } .chip-info { background: var(--info-tint); color: var(--info); }
.h-sm { font-size: 1.15rem; }
.flag { background: var(--panel); border: 1px solid var(--line); border-inline-start: 5px solid var(--fc); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .9rem; }
.flag-red { --fc: var(--red); } .flag-yellow { --fc: #d4a017; } .flag-info { --fc: var(--info); }
.flag header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.flag h3 { margin: 0 0 .6rem; }
.sev { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 6px; padding: .1rem .5rem; white-space: nowrap; }
.sev-red { background: var(--red-tint); color: var(--red); } .sev-yellow { background: var(--yellow-tint); color: var(--yellow); } .sev-info { background: var(--info-tint); color: var(--info); }
.pts { font-weight: 800; color: var(--muted); }
.ref { font-size: .82rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-tint); border-radius: 6px; padding: .05rem .45rem; white-space: nowrap; }
.quote { margin: 0 0 .6rem; padding: .6rem .9rem; background: var(--tint); border-radius: 8px; font-size: .95rem; color: var(--ink-2); border: 0; }
.quote-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .2rem; }
.note { font-weight: 600; color: var(--ink); }
.action { margin: 0; font-size: .95rem; }
.ok-card { border-inline-start: 5px solid var(--green); }
.unlock { margin-top: 1.2rem; border: 2px solid var(--brand); }
.unlock h2 { margin-top: 0; }
.unlock-form .row { display: flex; gap: .6rem; margin-top: .3rem; }
.unlock-form .row input { flex: 1; }
.unlock-form label { font-weight: 600; font-size: .92rem; }
.result-foot { margin-top: 1rem; }
.report-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; margin: 1rem 0; }
.toc ol { margin: 0; padding-inline-start: 1.2rem; columns: 2; }
.toc-h { font-weight: 700; margin: 0 0 .4rem; }
.module { margin-top: 2rem; }
.deduct tfoot td { border-top: 1px solid var(--line); border-bottom: 0; }
.negotiate { padding-inline-start: 1.3rem; display: grid; gap: .7rem; }
.negotiate p { margin: .25rem 0 0; }
.clauses { list-style: none; padding: 0; display: grid; gap: .6rem; }
.clause { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; }
.clause-red { border-inline-start: 4px solid var(--red); } .clause-yellow { border-inline-start: 4px solid #d4a017; } .clause-info { border-inline-start: 4px solid var(--info); }
.clause-top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .35rem; }
.clause p { margin: .2rem 0; }
.clause .head { font-size: .88rem; color: var(--muted); font-style: italic; }
.tag { font-size: .75rem; border-radius: 6px; padding: .05rem .45rem; background: var(--line-2); color: var(--ink-2); }
.lean-landlord { background: var(--yellow-tint); color: var(--yellow); } .lean-tenant { background: var(--brand-tint); color: var(--brand-ink); }
.tag-warn { background: var(--red-tint); color: var(--red); }
.rule-says { font-size: .9rem; font-weight: 600; }
.concern { font-size: .9rem; color: var(--info); }
.letter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.letter-fields label { font-size: .85rem; font-weight: 600; display: grid; gap: .25rem; }
.letter-fields p { grid-column: 1 / -1; margin: 0; }
.letter-body { display: grid; gap: .6rem; }
.letter-body textarea { min-height: 0; font-size: .95rem; line-height: 1.55; }
.letter-disclaimer { font-size: .82rem; font-style: italic; color: var(--muted); margin: 0; }

/* articles */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; align-items: start; }
.article-main { max-width: 760px; }
.article-main section > h2 { margin-top: 1.6em; }
.article-main table { background: var(--panel); }
.meta { color: var(--muted); font-size: .88rem; }
.answer { background: var(--brand-tint); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.answer-label, .keypoints-h { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-ink); margin: 0 0 .3rem; }
.answer p:last-child { margin-bottom: 0; }
.keypoints { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; background: var(--panel); }
.keypoints ul { margin: 0; padding-inline-start: 1.2rem; }
.mistakes { padding-inline-start: 1.3rem; }
.mistakes h3 { margin: .2rem 0 .3rem; }
.article-side { position: sticky; top: 80px; display: grid; gap: 1rem; }
.side-h { font-weight: 700; margin: 0 0 .3rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.scan-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.8rem 0; }
.scan-cta p { margin: 0; }
.scan-cta .scan-cta-h { font-weight: 700; font-size: 1.08rem; }
.scan-cta .btn { background: #fff; color: var(--ink); flex-shrink: 0; }
.disclaimer-box { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.sources ul { padding-inline-start: 1.2rem; }
.legend .card p { margin: .5rem 0 0; font-size: .92rem; }
.rules td p { margin: .25rem 0 0; color: var(--ink-2); }
.print-only { display: none; }

@media (max-width: 900px) {
  .hero-grid, .article-layout, .scanner-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .hero-grid { padding-block: 42px 50px; }
  .nav-toggle { display: inline-block; }
  #primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .6rem 16px 1rem; gap: .6rem; }
  #primary-nav.open { display: flex; }
  .cards-2, .cards-4, .letter-fields { grid-template-columns: 1fr; }
  .result-head { grid-template-columns: 1fr; justify-items: start; padding: 1.1rem; }
  .score-ring { width: 110px; height: 110px; }
  .unlock-form .row { flex-direction: column; }
  .scan-cta { flex-direction: column; align-items: flex-start; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .footer, .no-print, .unlock, .scan-cta, .result-foot button { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; font-size: 11pt; }
  .card, .flag, .result-head, .clause, .table-wrap { box-shadow: none; break-inside: avoid; }
  .letter-body[hidden] { display: none; }
  .letter-body textarea { border: 0; padding: 0; resize: none; overflow: visible; height: auto; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* language menu (10 languages) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .88rem; color: var(--ink-2); background: var(--panel); white-space: nowrap; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--brand); color: var(--brand-ink); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: .35rem; min-width: 11rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; }
.lang-menu li a { display: block; padding: .4rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-menu li a:hover { background: var(--line-2); }
.lang-menu li a[aria-current] { font-weight: 700; color: var(--brand-ink); }
/* details is a block in the mobile nav; keep the list in flow there */
@media (max-width: 720px) {
  .lang-menu ul { position: static; box-shadow: none; margin-top: .4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* scripts: fonts and line height for Gurmukhi, Nastaliq (Urdu), Arabic and Persian */
:lang(pa) body, body:lang(pa) { font-family: "Noto Sans Gurmukhi", "Nirmala UI", "Raavi", var(--font); }
:lang(ar) body, body:lang(ar) { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, var(--font); }
:lang(fa) body, body:lang(fa) { font-family: "Vazirmatn", "Segoe UI", Tahoma, var(--font); }
:lang(ur) body, body:lang(ur) { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", var(--font); line-height: 2.1; }
html:lang(ur) h1, html:lang(ur) h2, html:lang(ur) h3 { line-height: 1.9; }
html:lang(ur) .btn { line-height: 1.9; }
/* right-to-left pages: direction-specific bits that logical properties don't cover */
[dir="rtl"] .crumbs span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .quote, [dir="rtl"] .head { unicode-bidi: plaintext; }
.letter-body textarea, .quote { unicode-bidi: plaintext; }

/* sister sites (Canadian Living & Real Estate Suite) */
.suite { margin-top: 1.6rem; border-top: 1px solid var(--line-2); padding-top: 1rem; }
.suite ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .2rem 1.2rem; }
.suite li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; padding: .35rem 0; font-size: .9rem; }
.suite li > span:last-child { flex-basis: 100%; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.suite a { color: var(--ink-2); font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.suite a:hover { text-decoration: underline; }
.suite li[aria-current] strong { color: var(--brand-ink); }
.suite-lang { color: var(--muted); font-size: .75rem; font-weight: 400; }
.more-tools ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.more-tools li { display: block; }
.more-tools li > span { color: var(--muted); }
.more-tools a { display: inline; min-height: 0; overflow-wrap: anywhere; }
.brand-line a { color: inherit; }
.next-steps { margin-top: 1.6rem; }
.next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.next-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.next-card p { margin: 0 0 .5rem; }
.next-card a { font-weight: 600; }

/* call-to-action box inside a guide (e.g. LeaseOntario 2229E wizard) */
.guide-cta { margin: 1.4rem 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.guide-cta h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.guide-cta p { margin: 0 0 .7rem; }
.guide-cta p:last-child { margin-bottom: 0; }
.guide-cta .btn { color: #fff; }
.guide-cta .btn:hover { color: #fff; background: var(--brand-ink); }

/* province picker (scanner) and province links */
.prov-pick { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.prov-pick legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
.prov-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.prov-opts label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); cursor: pointer; font-weight: 500; }
.prov-opts label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.prov-opts input { accent-color: var(--brand); margin: 0; }
.prov-pick [data-prov-note] { margin: .45rem 0 0; min-height: 1.3em; }
.prov-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: .8rem 0 1rem; font-size: .95rem; }
.prov-switch-h { color: var(--muted); }
.prov-switch a, .prov-switch span[aria-current] { display: inline-flex; align-items: center; min-height: 36px; }
.prov-switch span[aria-current] { font-weight: 700; }
