/* WordPress-only additions to site.css */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }

.article-body { gap: 18px; }
.article-body > section, .article-body > div, .article-body > p { margin: 0; }
.article-cover { margin: 0; border-radius: var(--radius); overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; }

img.scene { object-fit: cover; }
.post-cover img.scene, .news-thumb img.scene { width: 100%; height: 100%; display: block; }
.news.news-single { grid-template-columns: 1fr; }

/* Lofty widget slot and its fallback link */
.lofty-widget { width: 100%; overflow: hidden; }
.lofty-widget iframe { width: 100%; border: 0; }
.lofty-widget iframe.chime-widget { display: block; height: 640px; }
.widget-fallback { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); text-decoration: none; color: var(--ink); }
.widget-fallback > .stack { flex: 1 1 220px; }
.widget-fallback b { font-size: 17px; }
.widget-fallback .muted { font-size: 14px; }
.widget-fallback:hover b { color: var(--gold-text); }

/* Live social feed */
.social-tiles.videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .social-tiles.videos { grid-template-columns: 1fr 1fr; } }
.social-tile.video { aspect-ratio: auto; color: var(--on-navy); padding: 0; gap: 0; align-items: stretch; justify-content: flex-start; text-decoration: none; color: var(--ink); overflow: hidden; }
.social-tile.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.social-tile.video span { padding: 8px 10px 10px; font-size: 13px; line-height: 1.35; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.social-embed { margin-top: 14px; }

/* Plain pages and pagination */
.prose { max-width: 46rem; display: flex; flex-direction: column; gap: 16px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; }
.prose img { max-width: 100%; height: auto; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { max-width: 100%; height: auto; }
/* Region page: link to all listings, and district chips on the all-listings page */
.areas-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 20px 40px; align-items: end; padding-block: 40px 20px; }
.all-listings { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border: 1.5px solid var(--gold); border-radius: var(--radius); background: var(--gold-soft); color: var(--ink); text-decoration: none; }
.all-listings b { font-size: 17px; line-height: 1.35; }
.all-listings .btn { margin-top: 8px; }
.all-listings:hover { border-color: var(--navy); }
@media (max-width: 820px) { .areas-hero { grid-template-columns: 1fr; padding-block: 28px 16px; } .all-listings { padding: 16px; } .all-listings .ico-chip { display: none; } }
.chip-link { font-weight: 600; }
.chip-link:hover { background: var(--navy); color: var(--on-navy); }
/* Consultation page */
.contact-card .btn { margin-top: 6px; }
.contact-mail { font-size: 15px; color: var(--ink); }
/* Lead form (/tu-van/) */
.lead-form { display: flex; flex-direction: column; gap: 18px; max-width: 760px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.lead-progress li { counter-increment: s; font-size: 13px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.lead-progress li::before { content: counter(s) ". "; }
.lead-progress li.on { color: var(--gold-text); border-color: var(--gold); }
.lead-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lead-step[hidden], .lead-form [data-show][hidden] { display: none; }
.lead-step legend { font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.lead-row { display: grid; gap: 16px; }
.lead-row.two { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.lead-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead-label { font-size: 14px; font-weight: 600; }
.req { color: #b3261e; font-weight: 700; }
.lead-form input[type=text], .lead-form input:not([type]), .lead-form input[type=tel], .lead-form input[type=email], .lead-form select, .lead-form textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; background: var(--bg); cursor: pointer; }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opts.big .opt span { min-height: 48px; padding: 10px 18px; font-size: 16px; font-weight: 600; }
.opts.areas { flex-direction: column; gap: 10px; }
.opt-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opt-group-name { flex: 0 0 100%; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.lead-consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.lead-error { margin: 0; padding: 10px 12px; border-radius: 4px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.lead-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.lead-nav [data-next], .lead-nav [data-submit] { margin-left: auto; }
.lead-nav [hidden] { display: none; }
.lead-nav button { cursor: pointer; font-family: inherit; }
.lead-nav button:disabled { opacity: .6; cursor: wait; }
.lead-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 760px; padding: 24px; border: 1.5px solid var(--gold); border-radius: var(--radius); background: var(--gold-soft); }
.lead-done[hidden] { display: none; }
.lead-done h3 { margin: 0; font-size: 20px; }
@media (max-width: 640px) { .lead-form, .lead-done { padding: 16px; } .lead-nav .btn { flex: 1 1 auto; } }
.lead-wrap { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 32px; align-items: start; }
.lead-head h2 { margin: 0; }
.lead-head p { margin: 2px 0 0; }
.lead-form { scroll-margin-top: 96px; }
.lead-nav .btn-line { background: transparent; }
.lead-done .ico-chip { background: var(--bg); }
.lead-after { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--mist); margin-top: 62px; }
.lead-after b { font-size: 17px; }
.lead-after ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lead-after li { display: flex; gap: 12px; }
.lead-after .n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.lead-after li > span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; }
.lead-after strong { font-size: 15px; }
@media (max-width: 980px) { .lead-wrap { grid-template-columns: 1fr; } .lead-after { position: static; margin-top: 0; } }
