/*
 * Section8Finder design system v1 (2026-10-04)
 * Target: /home/section8/design_2026-10-04/mockup/Section8Finder Page Mockup.pdf
 * Spec:   /home/section8/DESIGN_SYSTEM.md
 * Loaded last on every front-end page. On data pages (body.s8f-data) it is the ONLY
 * stylesheet besides WordPress core blocks: theme + old directory CSS are dequeued.
 */

/* Public Sans (OFL), self-hosted variable font, latin subset, weights 400-700. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/public-sans-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched fallbacks (widths measured 2026-10-04: Public Sans = 92.6% of Arial at 400/500, 84% of Arial Bold at 600/700),
   so text wraps the same before and after the web font arrives: no layout shift. */
@font-face { font-family: "Public Sans Fallback"; font-weight: 400 500; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Nimbus Sans"); size-adjust: 92.6%; }
@font-face { font-family: "Public Sans Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Nimbus Sans Bold"); size-adjust: 84%; }

:root {
	--font: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--navy: #13294B;
	--link: #1A4E8A;
	--text: #1C2430;
	--text-2: #4A5565;
	--text-3: #5A6676;
	--bg: #F5F7FA;
	--card: #FFFFFF;
	--border: #DCE2EA;
	--radius: 12px;
	--radius-sm: 8px;
	--th: #EEF2F7;
	--zebra: #FAFBFD;
	--pill-bg: #FDF1D8;
	--pill-text: #7A4A00;
	--callout-bg: #EEF4FB;
	--callout-border: #C9D9EE;
	--badge-bg: #E6EDF6;
	--focus: #F2B705;
	--footer-text: #C9D4E3;
	--maxw: 1200px;
	--side: 280px;
	--gap: 24px;
}

/* ================= base (every page) ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.s8f-ds { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.s8f-ds h1, body.s8f-ds h2, body.s8f-ds h3, body.s8f-ds h4, body.s8f-ds h5, body.s8f-ds h6,
body.s8f-ds button, body.s8f-ds input, body.s8f-ds select, body.s8f-ds textarea,
body.s8f-ds .page-title, body.s8f-ds .entry-title, body.s8f-ds [class*="s8f-"] { font-family: var(--font); letter-spacing: normal; }
body.s8f-ds h1, body.s8f-ds h2, body.s8f-ds h3 { color: var(--navy); line-height: 1.25; font-weight: 700; text-transform: none; }
body.s8f-ds a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
body.s8f-ds a:hover { color: var(--navy); }
body.s8f-ds :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.s8f-ds img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Real-estate theme leftovers: never shown */
body.s8f-ds #scroll-top, body.s8f-ds .page-loader, body.s8f-ds #mobile-header, body.s8f-ds .user-nav,
body.s8f-ds .contact-number, body.s8f-ds .currency-switcher, body.s8f-ds #login-modal, body.s8f-ds .modal-backdrop,
body.s8f-ds .advance-search, body.s8f-ds .property-search-form, body.s8f-ds .agent-widget, body.s8f-ds .s8f-mobile-cta { display: none !important; }

.s8f-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .s8f-container { padding: 0 24px; } }
.s8f-skip { position: absolute; left: -9999px; top: 0; }
.s8f-skip:focus { left: 16px; top: 8px; z-index: 1000; background: #fff; color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); }

/* ================= header ================= */
.s8f-site-header { background: #fff; border-bottom: 1px solid var(--border); position: static; }
.s8f-site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.s8f-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--navy) !important; min-height: 44px; }
.s8f-brand__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.s8f-brand__name { font-size: 19px; font-weight: 700; }
.s8f-menu { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: space-between; }
.s8f-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.s8f-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text) !important; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--radius-sm); }
.s8f-nav a:hover { background: var(--bg); color: var(--navy) !important; }
.s8f-search { display: flex; gap: 8px; }
.s8f-search input { height: 44px; width: 200px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px; color: var(--text); background: #fff; }
.s8f-search button, .ds-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); font: 600 15px/1.2 var(--font); text-decoration: none !important; cursor: pointer; border: 1px solid var(--navy); }
.s8f-search button, .ds-btn--primary { background: var(--navy); color: #fff !important; }
.s8f-search button:hover, .ds-btn--primary:hover { background: #0c1c35; }
.ds-btn--outline { background: #fff; color: var(--navy) !important; }
.ds-btn--outline:hover { background: var(--bg); }
.s8f-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.s8f-nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
@media (max-width: 1023px) {
	.s8f-site-header__inner { gap: 12px; }
	.s8f-nav-toggle { display: flex; }
	.s8f-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 0 16px; }
	.s8f-menu.is-open { display: flex; }
	.s8f-nav ul { flex-direction: column; gap: 0; }
	.s8f-nav a { border-top: 1px solid var(--border); border-radius: 0; font-size: 16px; min-height: 48px; padding: 0 4px; }
	.s8f-search input { flex: 1; width: auto; height: 48px; }
	.s8f-search button { min-height: 48px; }
	html:not(.s8f-js) .s8f-menu { display: flex; }
	html:not(.s8f-js) .s8f-nav-toggle { display: none; }
}

/* ================= footer ================= */
.s8f-site-footer { background: var(--navy); color: var(--footer-text); margin-top: 48px; padding: 32px 0; font-size: 14px; }
.s8f-site-footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.s8f-site-footer__about { max-width: 460px; }
.s8f-site-footer__about p { margin: 0 0 8px; color: var(--footer-text); }
.s8f-site-footer__name { color: #fff !important; font-weight: 700; font-size: 16px; }
.s8f-site-footer .s8f-footer-disclaimer { color: #fff !important; font-weight: 600; background: none !important; padding: 0 !important; text-align: left !important; }
.s8f-site-footer__links { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: flex-start; }
.s8f-site-footer__links a { color: #fff !important; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }

/* footer guides column */
.s8f-site-footer__guides { display: flex; flex-direction: column; align-items: flex-start; }
.s8f-site-footer__guides a { color: #fff !important; text-decoration: underline; display: inline-flex; align-items: center; min-height: 36px; }
.s8f-site-footer__label { margin: 0 0 4px; color: #fff !important; font-weight: 700; }

/* compact sources line: mobile only (shown by the mobile media query below) */
.ds-sources__compact { display: none; }

/* income limits: full table on desktop; 50% list + toggle on mobile */
.ds-il-50, .ds-il-toggle { display: none; }
.ds-il-toggle { margin: 4px 0 0; min-height: 44px; padding: 0; background: none; border: 0; color: var(--link); font: 600 15px var(--font); text-decoration: underline; cursor: pointer; text-align: left; }

/* ================= data page shell ================= */
body.s8f-data .s8f-directory-wrapper, body.s8f-data #content, body.s8f-data .s8f-directory-main, body.s8f-data .s8f-directory-article { max-width: none; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; float: none; width: auto; }
.ds-wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 0; }
@media (min-width: 768px) { .ds-wrap { padding: 24px 24px 0; } }

.ds-crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.ds-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--text-3); }
.ds-crumbs a { color: var(--link); text-decoration: underline; }
.ds-back { display: none; }

.ds-head { margin: 0 0 20px; }
.ds-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.ds-h1 { margin: 0 0 8px !important; font-size: 40px !important; line-height: 1.15 !important; font-weight: 700; color: var(--navy) !important; letter-spacing: -0.01em !important; }
.ds-summary { margin: 0; font-size: 17px; color: var(--text-2); max-width: 900px; }
.ds-summary strong { color: var(--text); }

.ds-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.ds-tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.ds-tile dt { font-size: 13px; color: var(--text-2); margin: 0 0 4px; font-weight: 400; }
.ds-tile dd { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ds-tile--text dd { font-size: 17px; line-height: 1.3; font-weight: 600; }
.ds-pill { display: inline-block; background: var(--pill-bg); color: var(--pill-text); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; line-height: 1.4; margin-top: 4px; }

.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); align-items: start; }
.ds-main { min-width: 0; }
.ds-aside { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.ds-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 20px; }
.ds-card__title { font-size: 20px !important; font-weight: 600 !important; color: var(--navy) !important; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; }
.ds-card__sub { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }
.ds-card h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; color: var(--navy); }
.ds-card p { margin: 0 0 12px; color: var(--text); }
.ds-card ul, .ds-card ol { margin: 0 0 12px; padding-left: 1.25em; }
.ds-card li { margin: 0 0 6px; }
.ds-card > :last-child { margin-bottom: 0; }
.ds-card code { background: var(--th); border-radius: 4px; padding: 1px 5px; font-size: 0.85em; color: var(--text); }
.ds-card dl.s8f-facts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ds-card dl.s8f-facts dt, .ds-card dl.s8f-facts dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.ds-card dl.s8f-facts dt { background: var(--th); color: var(--text-2); font-weight: 600; }
.ds-card .s8f-muted, .ds-card .s8f-source-note, .ds-card .s8f-last-verified { color: var(--text-3); font-size: 13px; }
.ds-card .s8f-related, .ds-card .s8f-vpage-list { list-style: none; padding: 0; }
.ds-card .s8f-related li, .ds-card .s8f-vpage-list li { padding: 8px 0; border-bottom: 1px solid var(--border); margin: 0; }
.ds-card .s8f-related li:last-child, .ds-card .s8f-vpage-list li:last-child { border-bottom: 0; }
.ds-card .s8f-related a, .ds-card .s8f-vpage-list a { font-weight: 600; }
.ds-card blockquote { margin: 0 0 12px; padding: 8px 16px; border-left: 3px solid var(--border); color: var(--text-2); }

/* status card */
.ds-status__text p { color: var(--text-2); margin: 0 0 16px; }
.ds-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* tables */
.ds-table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 12px; }
.ds-table table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: 0; background: #fff; }
.ds-table th, .ds-table td { padding: 11px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; color: var(--text); }
.ds-table thead th { background: var(--th); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ds-table tbody th { font-weight: 600; }
.ds-table tbody tr:nth-child(even) th, .ds-table tbody tr:nth-child(even) td { background: var(--zebra); }
.ds-table tbody tr:last-child th, .ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-hz + .ds-vt { display: none; }

/* see-all */
.ds-seeall { display: none; margin: 4px 0 0; min-height: 44px; padding: 0; background: none; border: 0; color: var(--link); font: 600 15px var(--font); text-decoration: underline; cursor: pointer; }

/* ad slots (AdSense unit; nothing fixed to any edge) */
.ds-ad { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); margin: 0 0 20px; padding: 10px; text-align: center; overflow: hidden; }
.ds-ad__label { display: block; font-size: 12px; color: var(--text-3); margin: 0 0 6px; }
.ds-ad--content { min-height: 140px; }
.ds-ad--sidebar { min-height: 284px; }
.ds-ad--sidebar ins { max-width: 100%; }

/* how to apply */
.ds-steps { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; }
.ds-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; margin: 0 0 14px; }
.ds-step__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--badge-bg); color: var(--navy); font-weight: 700; font-size: 14px; }
.ds-step__t { font-weight: 600; margin: 2px 0 2px !important; color: var(--text); }
.ds-step__d { margin: 0 !important; color: var(--text-2); font-size: 15px; }
.ds-step__t + .ds-step__d { font-size: 14px; }

/* related grid */
.ds-related { margin: 8px 0 20px; }
.ds-section-title { font-size: 20px !important; font-weight: 600 !important; margin: 0 0 12px !important; color: var(--navy) !important; }
.ds-related__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ds-related__grid li { margin: 0; }
.ds-related__grid a { display: block; height: 100%; min-height: 56px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-decoration: none !important; }
.ds-related__grid a:hover { border-color: var(--link); }
.ds-related__grid strong { display: block; color: var(--link); font-weight: 600; font-size: 15px; line-height: 1.35; }
.ds-related__grid span { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.ds-related__grid.ds-collapse:not(.is-open) > li:nth-child(n+7) { display: none; }
.ds-related .ds-seeall { display: inline-flex; }
.ds-related .ds-seeall--m { display: none; }
@media (max-width: 767px) { .ds-related .ds-seeall--m { display: inline-flex; } }

/* sources + disclaimer */
.ds-sources ul { margin: 6px 0 8px !important; }
.ds-sources li { font-size: 14px; color: var(--text-2); }
.ds-sources__notes p { font-size: 13px; color: var(--text-3); }
.ds-callout { background: var(--callout-bg); border: 1px solid var(--callout-border); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 20px; font-size: 15px; color: var(--text); }
.ds-callout p { margin: 0 0 6px; }
.ds-callout__title { font-weight: 600; color: var(--navy); }
.ds-callout__more { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--callout-border); font-size: 13px; color: var(--text-2); }
.ds-callout__more h2 { display: none; }
.ds-callout__more p { color: var(--text-2); }

/* sidebar cards */
.ds-aside .ds-card { margin: 0; padding: 16px 18px; }
.ds-aside .ds-card__title { font-size: 16px !important; margin-bottom: 10px !important; }
.ds-contact dl { margin: 0; display: grid; gap: 8px; }
.ds-contact dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.ds-contact dt { color: var(--text-2); }
.ds-contact dd { margin: 0; overflow-wrap: anywhere; }
.ds-others ul { list-style: none; margin: 0 0 8px; padding: 0; }
.ds-others li { margin: 0; }
.ds-others a { display: flex; align-items: center; min-height: 36px; font-size: 14px; }
.ds-others .ds-more { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.ds-only-mobile { display: none; }

/* ================= mobile ================= */
@media (max-width: 1023px) {
	.ds-layout { grid-template-columns: minmax(0, 1fr); }
	.ds-aside { display: none; }
	.ds-only-mobile { display: block; }
	.ds-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ds-crumbs { display: none; }
	.ds-back { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 4px; font-size: 14px; color: var(--link); text-decoration: underline; }
	.ds-h1 { font-size: 28px !important; }
	.ds-summary { font-size: 15px; }
	.ds-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
	.ds-tile { padding: 10px 12px; }
	.ds-tile dt { font-size: 12px; }
	.ds-tile dd { font-size: 20px; }
	.ds-tile--text dd { font-size: 15px; }
	.ds-card { padding: 16px; border-radius: var(--radius); }
	.ds-card__title { font-size: 18px !important; }
	.ds-btns { flex-direction: column; }
	.ds-btn { width: 100%; min-height: 48px; }
	/* tables become label / value rows */
	.ds-hz { display: none; }
	.ds-hz + .ds-vt { display: block; }
	.ds-table { border: 0; border-radius: 0; overflow: visible; }
	.ds-table table, .ds-table tbody, .ds-table tr, .ds-table th, .ds-table td { display: block; width: 100%; }
	.ds-table thead { display: none; }
	.ds-table tbody tr { border-top: 1px solid var(--border); padding: 8px 0; }
	.ds-table tbody tr:first-child { border-top: 0; }
	.ds-table tbody th { padding: 4px 0; background: none !important; font-size: 15px; }
	.ds-table tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; background: none !important; }
	.ds-table tbody td::before { content: attr(data-label); color: var(--text-2); text-align: left; }
	.ds-table tbody td { text-align: right; }
	/* two-column tables (unit size → rent): one line per row */
	.ds-vt tbody tr, .ds-table:not(.ds-hz) table.s8f-fmr tbody tr { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
	.ds-vt tbody th, .ds-vt tbody td, .ds-table table.s8f-fmr tbody th, .ds-table table.s8f-fmr tbody td { width: auto; padding: 0; font-weight: 400; border: 0 !important; }
	.ds-vt tbody td::before, .ds-table table.s8f-fmr tbody td::before { content: none; }
	/* long lists + tables: top 5 then "See all" */
	.ds-collapse:not(.is-open) > li:nth-child(n+6), .ds-collapse:not(.is-open) tbody tr:nth-child(n+6) { display: none; }
	.ds-seeall { display: inline-flex; }
	/* related: single list with chevrons, as in the mockup */
	.ds-related__grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
	.ds-related__grid a { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); position: relative; padding-right: 32px; min-height: 52px; }
	.ds-related__grid li:last-child a { border-bottom: 0; }
	.ds-related__grid a::after { content: "\203A"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 18px; }
	.ds-related__grid.ds-collapse:not(.is-open) > li:nth-child(n+6) { display: none; }
	.ds-ad--content { min-height: 280px; }
	.ds-il-50 { display: block; }
	.ds-il-full { display: none; }
	.ds-il.is-open .ds-il-full { display: block; }
	.ds-il.is-open .ds-il-50 { display: none; }
	.ds-il-toggle { display: inline-flex; align-items: center; }
	.ds-il-50 tbody tr { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
	.ds-il-50 tbody th, .ds-il-50 tbody td { width: auto; padding: 0; font-weight: 400; border: 0 !important; }
	.ds-il-50 tbody td::before { content: none; }
	/* compact mobile page (mockup mobile treatment) */
	.ds-il-50 tbody tr:nth-child(n+5) { display: none; }
	.ds-steps .ds-step__t + .ds-step__d { display: none; }
	.ds-steps li { margin-bottom: 10px; align-items: center; }
	.ds-card .s8f-source-note { display: none; }
	.ds-sources__full, .ds-sources__notes { display: none; }
	.ds-sources__compact { display: block; font-size: 13px; color: var(--text-3); margin: 0 !important; }
	.ds-card { margin-bottom: 14px; padding: 14px 16px; }
	.ds-card__title { margin-bottom: 4px !important; }
	.ds-card p { margin-bottom: 8px; }
	.ds-vt tbody tr, .ds-il-50 tbody tr { padding: 8px 0; }
	.ds-related { margin-bottom: 14px; }
	.ds-sources .ds-card__title { font-size: 15px !important; }
	.ds-table tbody .ds-minor { display: none !important; }
	.ds-collapse.ds-list:not(.is-open) tbody tr:nth-child(n+4) { display: none; }
	.ds-related__grid.ds-collapse:not(.is-open) > li:nth-child(n+5) { display: none; }
	.ds-card--programs-and-size { display: none; }
	.ds-card p, .ds-card li, .ds-status__text p { font-size: 15px; line-height: 1.5; }
	.s8f-site-footer { padding: 24px 0; margin-top: 32px; }
	.s8f-site-footer__guides { flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
	.s8f-site-footer__label { flex-basis: 100%; }
	/* mockup mobile footer: one-line description + required disclaimer + links */
	.s8f-site-footer__about p:not(.s8f-site-footer__name):not(.s8f-footer-disclaimer) { display: none; }
	.s8f-site-footer__inner { gap: 12px; }
	/* developments card: the table carries the content on mobile */
	.ds-card--public-housing-developments > h3, .ds-card--public-housing-developments > p:not(.ds-card__sub) { display: none; }
}

/* ================= regular pages (about, privacy, posts) ================= */
body.s8f-ds.page:not(.home) .page-head, body.s8f-ds.single-post .page-head,
body.s8f-ds.search .page-head, body.s8f-ds.archive .page-head { background: transparent none !important; padding: 28px 0 8px !important; min-height: 0 !important; height: auto !important; }
body.s8f-ds .page-head::before, body.s8f-ds .page-head::after { display: none !important; }
body.s8f-ds .page-head .page-title, body.s8f-ds .page-head h1, body.s8f-ds .page-head h2 { color: var(--navy) !important; font-size: 40px !important; font-weight: 700 !important; text-transform: none !important; text-align: left !important; margin: 0 !important; line-height: 1.15 !important; }
body.s8f-ds .page-head .page-head-content { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: left; }
body.s8f-ds .page-head .breadcrumb, body.s8f-ds .page-head .inspiry-breadcrumb { display: none !important; }
body.s8f-ds .site-pages, body.s8f-ds .site-content-wrapper { background: transparent !important; }
body.s8f-ds .site-pages .container { max-width: var(--maxw); width: auto; }
body.s8f-ds .site-main.default-page, body.s8f-ds .site-main.blog-page, body.s8f-ds .single-post .site-main { background: #fff !important; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px !important; box-shadow: none !important; }
body.s8f-ds .entry-content { font-size: 16px; line-height: 1.7; color: var(--text); }
body.s8f-ds .entry-content h2 { font-size: 22px; margin: 28px 0 10px; }
body.s8f-ds .entry-content h3 { font-size: 18px; margin: 22px 0 8px; }
body.s8f-ds .entry-content p, body.s8f-ds .entry-content li { color: var(--text); }
body.s8f-ds .default-page .entry-content a, body.s8f-ds .entry-content a { color: var(--link) !important; }
body.s8f-ds .site-main.default-page article, body.s8f-ds .site-main.default-page .entry-content, body.s8f-ds .site-main.default-page .entry-header { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
body.s8f-ds .site-sidebar-content .widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
body.s8f-ds .site-sidebar-content .widget_search { display: none; }
@media (max-width: 767px) { body.s8f-ds .page-head .page-title, body.s8f-ds .page-head h1 { font-size: 28px !important; } body.s8f-ds .site-main.default-page { padding: 18px 16px !important; } }

/* ================= home ================= */
body.s8f-ds.home .s8f-hero { background: var(--navy) !important; background-image: none !important; color: #fff; }
body.s8f-ds.home .s8f-hero__overlay { display: none !important; }
body.s8f-ds.home .s8f-hero__title { color: #fff !important; font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
body.s8f-ds.home .s8f-hero__subtitle { color: var(--footer-text) !important; }
body.s8f-ds.home .s8f-hero .s8f-btn, body.s8f-ds.home .s8f-hero .btn-default { background: #fff !important; color: var(--navy) !important; border: 1px solid #fff !important; border-radius: var(--radius-sm) !important; font-weight: 600 !important; min-height: 44px; text-transform: none !important; }
body.s8f-ds.home .s8f-hero__search input { height: 48px; border-radius: var(--radius-sm); border: 0; }
body.s8f-ds.home .s8f-hero__search button { background: #fff !important; color: var(--navy) !important; border-radius: var(--radius-sm) !important; min-height: 48px; font-weight: 600; }
body.s8f-ds.home .s8f-section { background: transparent !important; }
body.s8f-ds.home .s8f-section__title { color: var(--navy) !important; font-size: 26px; font-weight: 700; }
body.s8f-ds.home .s8f-section__lead { color: var(--text-2); }
body.s8f-ds.home .s8f-card, body.s8f-ds.home .s8f-zip-browse__card, body.s8f-ds.home .s8f-waitlists__item, body.s8f-ds.home .s8f-states__grid a,
body.s8f-ds.home .s8f-state-link, body.s8f-ds.home .s8f-resources__list a { background: #fff !important; border: 1px solid var(--border) !important; border-radius: 10px !important; box-shadow: none !important; }
body.s8f-ds.home .s8f-card__title, body.s8f-ds.home .s8f-zip-browse__code { color: var(--link) !important; font-weight: 600 !important; }
body.s8f-ds.home .s8f-card__meta, body.s8f-ds.home .s8f-zip-browse__label { color: var(--text-3) !important; }
body.s8f-ds.home a.s8f-btn--primary, body.s8f-ds.home a.btn-green, body.s8f-ds.home a.btn-orange, body.s8f-ds.home .s8f-section__footer-link > a.btn-default { background: var(--navy) !important; color: #fff !important; border: 1px solid var(--navy) !important; border-radius: var(--radius-sm) !important; text-transform: none !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; font-weight: 600; }
body.s8f-ds.home .s8f-section__footer-link { background: transparent !important; color: var(--text-2) !important; text-align: center; font-size: 15px; }
body.s8f-ds.home .s8f-section__footer-link a:not(.btn-default) { color: var(--link) !important; font-weight: 600; }
body.s8f-ds.home .s8f-hero__subtitle { font-size: 17px !important; }
body.s8f-ds.home .s8f-section__lead, body.s8f-ds.home .s8f-zip-browse__intro, body.s8f-ds.home .s8f-states__subtitle { font-size: 15px !important; line-height: 1.6; }
body.s8f-ds.home .s8f-card__title, body.s8f-ds.home .s8f-states__grid a, body.s8f-ds.home .s8f-zip-browse__code { font-size: 15px !important; }
body.s8f-ds.home .s8f-card__meta, body.s8f-ds.home .s8f-zip-browse__label, body.s8f-ds.home .s8f-waitlists__date { font-size: 13px !important; }
body.s8f-ds.home .s8f-states__grid a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--link) !important; font-weight: 600; text-decoration: none; }
body.s8f-ds.home .s8f-waitlists__status { background: var(--pill-bg) !important; color: var(--pill-text) !important; border-radius: 999px; padding: 2px 10px; font-weight: 600; }
body.s8f-ds.home .s8f-seo-content { background: transparent !important; }

/* ================= home v2 (national, data-driven) [S8F-2026-10-04] ================= */
body.s8f-ds.home .s8f-site-header .s8f-search { display: none; } /* one search box: the hero's */
body.s8f-ds.home .s8f-hero .container, body.s8f-ds.home .s8f-section .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
body.s8f-ds.home .s8f-section { padding: 48px 0 8px; }
body.s8f-ds.home .s8f-section__header { text-align: center; max-width: 760px; margin: 0 auto 24px; }
body.s8f-ds.home .s8f-section__title { margin: 0 0 8px; }
body.s8f-ds.home .s8f-section__lead { margin: 0; }
body.s8f-ds.home .s8f-hero { padding: 56px 0 48px; }
body.s8f-ds.home .s8f-hero__inner { max-width: 760px; }
body.s8f-ds.home .s8f-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
body.s8f-ds.home .s8f-hero .s8f-btn--light { background: #fff !important; color: var(--navy) !important; border: 1px solid #fff !important; }
body.s8f-ds.home .s8f-hero .s8f-btn--outline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.75) !important; }
body.s8f-ds.home .s8f-hero__search { display: flex; gap: 8px; max-width: 560px; }
body.s8f-ds.home .s8f-hero__search input { flex: 1; padding: 0 14px; font-size: 16px; }
.s8f-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.s8f-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s8f-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s8f-grid li { margin: 0; }
body.s8f-ds.home .s8f-grid .s8f-card { display: block; height: 100%; padding: 14px 16px; text-decoration: none; }
body.s8f-ds.home .s8f-card__title { display: block; }
.s8f-card__place { display: block; color: var(--text) !important; font-size: 14px; margin-top: 2px; }
body.s8f-ds.home .s8f-card__meta { display: block; margin-top: 4px; }
.s8f-guide-card { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.s8f-guide-card h3 { margin: 0 0 4px; font-size: 20px; }
.s8f-guide-card p { margin: 0; color: var(--text-2); max-width: 60ch; }
.s8f-guide-card__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--navy); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.s8f-subhead { text-align: center; font-size: 16px !important; margin: 28px 0 12px !important; color: var(--text-2) !important; font-weight: 600 !important; }
.s8f-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.s8f-chips li { margin: 0; }
.s8f-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--link) !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.s8f-chips a:hover { border-color: var(--link); }
@media (max-width: 1023px) { .s8f-grid--3, .s8f-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
	.s8f-grid--3, .s8f-grid--4 { grid-template-columns: minmax(0, 1fr); }
	body.s8f-ds.home .s8f-hero .container, body.s8f-ds.home .s8f-section .container { padding: 0 16px; }
	body.s8f-ds.home .s8f-hero__title { font-size: 28px !important; }
	body.s8f-ds.home .s8f-hero__ctas a { flex: 1 1 100%; justify-content: center; min-height: 48px; }
	body.s8f-ds.home .s8f-hero__search { flex-direction: column; }
	body.s8f-ds.home .s8f-hero__search input, body.s8f-ds.home .s8f-hero__search button { min-height: 48px; width: 100%; }
	.s8f-guide-card__btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* ================= home: mobile compaction [S8F-2026-10-04] (desktop unchanged) ================= */
.s8f-state-picker, .s8f-more, .s8f-about-toggle-wrap { display: none; }
@media (max-width: 767px) {
	html.s8f-js body.home .s8f-state-picker { display: block; max-width: 520px; margin: 0 auto; }
	html.s8f-js body.home .s8f-state-picker label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
	html.s8f-js body.home .s8f-state-picker__row { display: flex; gap: 8px; }
	html.s8f-js body.home .s8f-state-picker select { flex: 1; min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font: 16px var(--font); color: var(--text); }
	html.s8f-js body.home .s8f-state-picker__go { min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font: 600 16px var(--font); }
	html.s8f-js body.home #s8f-states-grid:not(.is-open), html.s8f-js body.home .s8f-states__grid--upcoming, html.s8f-js body.home .s8f-states .s8f-section__footer-link, html.s8f-js body.home .s8f-states__subtitle { display: none !important; }
	html.s8f-js body.home .s8f-states .s8f-section__lead { display: none; }
	html.s8f-js body.home .s8f-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 12px 0 0; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--link); font: 600 15px var(--font); width: 100%; }
	html.s8f-js body.home .s8f-mlimit--4:not(.is-open) > li:nth-child(n+5), html.s8f-js body.home .s8f-mlimit--6:not(.is-open) > li:nth-child(n+7) { display: none; }
	html.s8f-js body.home .s8f-waitlists-national .s8f-subhead, html.s8f-js body.home .s8f-waitlists-national .s8f-chips { display: none; }
	html.s8f-js body.home .s8f-about-toggle-wrap { display: block; padding: 24px 16px 0; text-align: center; }
	html.s8f-js body.home .s8f-about-block:not(.is-open) { display: none; }
	body.s8f-ds.home .s8f-section { padding: 28px 0 0; }
	body.s8f-ds.home .s8f-section__header { margin-bottom: 14px; }
	body.s8f-ds.home .s8f-hero { padding: 32px 0 28px; }
}
