/*
 * DontWorryPress — "Dignified Opportunity" front end.
 * Tokens follow THEME-HANDOFF.md (resolved values). Mobile first.
 */

:root {
	--dwp-primary: #245b82;
	--dwp-strong: #004368;
	--dwp-teal: #00677d;
	--dwp-canvas: #f7f9fc;
	--dwp-card: #fff;
	--dwp-ink: #191c1e;
	--dwp-muted: #475569;
	--dwp-line: #e2e8f0;
	--dwp-line-soft: #edf0f3;
	/* Handoff value #B7C3CF is 1.79:1 on white; #768594 meets 3:1 for control boundaries. */
	--dwp-form-line: #768594;
	--dwp-info-bg: #e6f4f8;
	--dwp-info-ink: #004e5f;
	--dwp-radius: 12px;
	--dwp-control-radius: 8px;
	--dwp-gutter: 16px;
	--dwp-shadow-1: 0 2px 4px rgba(34, 34, 34, .04), 0 1px 2px rgba(34, 34, 34, .02);
	--dwp-shadow-2: 0 6px 16px rgba(36, 91, 130, .08), 0 2px 6px rgba(34, 34, 34, .04);
	--dwp-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.dwp {
	margin: 0;
	background: var(--dwp-canvas);
	color: var(--dwp-ink);
	font-family: var(--dwp-font);
	font-size: 15px;
	line-height: 22px;
	-webkit-text-size-adjust: 100%;
	color-scheme: light;
}

.dwp *,
.dwp *::before,
.dwp *::after { box-sizing: border-box; }

.dwp img { max-width: 100%; height: auto; }
.dwp [hidden] { display: none !important; }
.dwp button, .dwp input, .dwp select, .dwp textarea { font: inherit; color: inherit; }
.dwp a { color: var(--dwp-primary); text-underline-offset: 3px; }
.dwp a:hover { color: var(--dwp-strong); }

.dwp a:focus-visible,
.dwp button:focus-visible,
.dwp input:focus-visible,
.dwp select:focus-visible,
.dwp textarea:focus-visible,
.dwp summary:focus-visible {
	outline: 3px solid var(--dwp-teal);
	outline-offset: 3px;
}

.dwp h1 { font-size: 26px; line-height: 34px; letter-spacing: -.02em; font-weight: 700; color: var(--dwp-strong); margin: 0 0 8px; }
.dwp h2 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 600; margin: 0; }
.dwp h3 { font-size: 18px; line-height: 26px; letter-spacing: -.01em; font-weight: 600; margin: 0; }
.dwp p { margin: 0 0 16px; }

.dwp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dwp-icon { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.dwp-skip {
	position: absolute; left: 8px; top: -100px; z-index: 100;
	background: #fff; padding: 12px 16px; border-radius: var(--dwp-control-radius);
	box-shadow: var(--dwp-shadow-2);
}
.dwp-skip:focus { top: 8px; }

.dwp-wrap { max-width: calc(1140px + 2 * var(--dwp-gutter)); margin: 0 auto; padding: 0 var(--dwp-gutter); }

.dwp-sub { color: var(--dwp-muted); }

.dwp-eyebrow {
	font-size: 11px; line-height: 14px; letter-spacing: .12em; font-weight: 700;
	text-transform: uppercase; color: var(--dwp-teal); margin: 0 0 8px;
}

/* ---------- Buttons ---------- */

.dwp-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 16px;
	border: 1px solid #cbd5e1; border-radius: var(--dwp-control-radius);
	background: #fff; color: var(--dwp-primary);
	font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
	touch-action: manipulation;
}
.dwp-button:hover { background: #ebf3f8; color: var(--dwp-strong); }
.dwp-button.is-primary { background: var(--dwp-primary); border-color: var(--dwp-primary); color: #fff; padding: 10px 20px; }
.dwp-button.is-primary:hover { background: var(--dwp-strong); border-color: var(--dwp-strong); color: #fff; }
.dwp-button.is-quiet { border-color: transparent; background: transparent; padding: 8px; }
.dwp-button.is-quiet:hover { background: #ebf3f8; }
.dwp-button.is-disabled { background: #eceef1; border-color: #c1c7cf; color: #41474e; cursor: not-allowed; }

/* ---------- Header ---------- */

.dwp-header { background: #fff; border-bottom: 1px solid var(--dwp-line); padding-top: 14px; }
.dwp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }

.dwp-logo { display: inline-block; min-height: 48px; line-height: 1.1; color: var(--dwp-strong); text-decoration: none; }
.dwp-logo strong { font-size: 25px; letter-spacing: -1.2px; }
.dwp-logo strong span { color: var(--dwp-teal); }
.dwp-logo small { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.dwp-logo:hover { color: var(--dwp-strong); }

.dwp-trust { display: none; align-items: center; gap: 8px; font-size: 12px; color: var(--dwp-muted); margin-left: auto; }
.dwp-top-save { display: none; }
.dwp-top-save[aria-current="page"] { border-color: var(--dwp-primary); }

.dwp-saved-count {
	display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--dwp-info-bg); color: var(--dwp-info-ink); font-size: 12px; line-height: 20px; text-align: center;
}

.dwp-nav { display: none; }
.dwp-nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; }
.dwp-nav a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 8px 0;
	border-bottom: 3px solid transparent; color: var(--dwp-muted);
	font-size: 13px; font-weight: 600; text-decoration: none;
}
.dwp-nav a:hover { color: var(--dwp-primary); }
.dwp-nav a[aria-current="page"] { color: var(--dwp-primary); border-bottom-color: var(--dwp-primary); }

.dwp-menu { background: #fff; border-bottom: 1px solid var(--dwp-line); }
.dwp-menu ul { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 8px; }
.dwp-menu a {
	display: flex; align-items: center; min-height: 48px; padding: 12px 0;
	border-bottom: 1px solid var(--dwp-line); color: var(--dwp-ink); text-decoration: none;
}
.dwp-menu li:last-child a { border-bottom: 0; }
.dwp-menu a[aria-current="page"] { color: var(--dwp-primary); font-weight: 600; }

/* ---------- Hero & search ---------- */

.dwp-hero { background: #edf4f8; border-bottom: 1px solid #dce7ed; padding: 24px 0; }
.dwp-hero .dwp-sub { max-width: 60ch; }

.dwp-search { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; margin-top: 20px; }
.dwp-search label,
.dwp-form label,
.dwp-filters label { display: block; font-size: 12px; font-weight: 600; line-height: 16px; }

.dwp-search input,
.dwp-search select,
.dwp-form select,
.dwp-form textarea,
.dwp-filters select {
	display: block; width: 100%; min-height: 48px; margin-top: 6px;
	padding: 10px 12px; border: 1.5px solid var(--dwp-form-line); border-radius: var(--dwp-control-radius);
	background: #fff; color: var(--dwp-ink); font-size: 16px; line-height: 24px;
}
.dwp-search select:disabled,
.dwp-filters select:disabled,
.dwp-form :disabled { background: #f2f4f7; color: #41474e; cursor: not-allowed; }

.dwp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 8px 0 0; font-size: 12px; color: var(--dwp-muted); }
.dwp-quick a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px; font-weight: 600; }

/* ---------- Layout ---------- */

.dwp-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; padding-bottom: 32px; align-items: start; }
.dwp-primary { min-width: 0; }

.dwp-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; color: var(--dwp-muted); }
.dwp-breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.dwp-breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }

.dwp-results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.dwp-count { color: var(--dwp-muted); font-size: 13px; line-height: 18px; margin: 4px 0 0; }
.dwp-term-description { color: var(--dwp-muted); margin-bottom: 16px; }
.dwp-section-title { margin: 28px 0 12px !important; }

/* ---------- Cards ---------- */

.dwp-card {
	background: var(--dwp-card); border: 1px solid var(--dwp-line); border-radius: var(--dwp-radius);
	box-shadow: var(--dwp-shadow-1); padding: 16px; margin-bottom: 12px;
}
.dwp-card.is-expired { background: #fafbfc; }
.dwp-card.is-expired .dwp-card-title a { color: var(--dwp-muted); }

.dwp-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.dwp-closing { font-size: 12px; line-height: 16px; color: var(--dwp-muted); margin-left: auto; }

.dwp-pill {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	font-size: 12px; line-height: 16px; font-weight: 600;
	background: #ebf3f8; color: var(--dwp-primary);
}
.dwp-pill.is-learn { background: #e6f4f8; color: #00667c; }
.dwp-pill.is-fund { background: #ede9fe; color: #6d28d9; }
.dwp-pill.is-gov { background: #fef3c7; color: #92400e; }
.dwp-pill.is-guide { background: #f1f5f9; color: var(--dwp-muted); }

.dwp-status {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	font-size: 12px; line-height: 16px; font-weight: 600;
}
.dwp-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dwp-status.is-open { background: #dcfce7; color: #166534; }
.dwp-status.is-closing { background: #fef3c7; color: #92400e; }
.dwp-status.is-expired { background: #fee2e2; color: #991b1b; }

.dwp-card-identity { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; }
.dwp-card-identity-text { min-width: 0; flex: 1; }
.dwp-card-title { font-size: 18px; line-height: 26px; }
.dwp-card-title a {
	display: inline-block; padding: 11px 0; margin: -11px 0; /* 48px target, no layout growth */
	color: var(--dwp-strong); text-decoration: none; overflow-wrap: anywhere;
}
.dwp-card-title a:hover { text-decoration: underline; }
.dwp-company { font-size: 14px; line-height: 20px; color: var(--dwp-muted); margin: 4px 0 0; }
.dwp-card-excerpt {
	font-size: 14px; line-height: 20px; color: var(--dwp-ink); margin: 6px 0 0;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

.dwp-thumb {
	flex: 0 0 48px; width: 48px; height: 48px; margin-top: 3px;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	border-radius: 8px; border: 1px solid #dce7ed; background: #edf4f8;
}
.dwp-thumb img { width: 100%; height: 100%; }
.dwp-thumb.is-photo img { object-fit: cover; }
.dwp-thumb.is-logo { background: #fff; padding: 6px; }
.dwp-thumb.is-logo img { object-fit: contain; }

.dwp-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 18px; color: var(--dwp-muted); }
.dwp-meta li { display: inline-flex; align-items: center; gap: 5px; }

.dwp-card-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--dwp-line-soft); font-size: 13px;
}
.dwp-card-foot strong { font-size: 14px; }

.dwp-save {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 48px; min-height: 48px; padding: 0 10px;
	border: 0; border-radius: 8px; background: #fff; color: var(--dwp-primary);
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.dwp-save:hover { background: #ebf3f8; }
.dwp-save[aria-pressed="true"] { background: var(--dwp-info-bg); color: var(--dwp-info-ink); }
.dwp-save[aria-pressed="true"] .dwp-icon { fill: currentColor; }
.dwp-save.is-outline { border: 1.5px solid var(--dwp-primary); padding: 0 16px; }

.dwp-card.is-advice .dwp-card-title { margin: 12px 0 4px; }
.dwp-card.is-advice .dwp-sub { margin-bottom: 4px; }

.dwp-empty { background: #fff; border: 1px solid var(--dwp-line); border-radius: var(--dwp-radius); padding: 24px; }
.dwp-empty .dwp-sub { margin-top: 12px; }

/* ---------- Filters ---------- */

.dwp-filters { background: #fff; border: 1px solid var(--dwp-line); border-radius: var(--dwp-radius); margin-bottom: 16px; }
.dwp-filters summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font-weight: 600; color: var(--dwp-primary); cursor: pointer; }
.dwp-filters-body { padding: 0 16px 16px; }
.dwp-filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.dwp-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.dwp-filter-note { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--dwp-muted); }

/* ---------- Pagination ---------- */

.dwp-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.dwp-pagination a,
.dwp-pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 12px;
	border: 1px solid var(--dwp-line); border-radius: var(--dwp-control-radius); background: #fff;
	font-weight: 600; text-decoration: none;
}
.dwp-pagination .current { background: var(--dwp-primary); border-color: var(--dwp-primary); color: #fff; }
.dwp-pagination .dots { border: 0; background: transparent; }

/* ---------- Sidebar ---------- */

/* Phones reach these via the bottom bar (Explore, Guides); matches the design. */
.dwp-aside { display: none; min-width: 0; }
@media (min-width: 600px) { .dwp-aside { display: block; } }
.dwp-side { background: #fff; border: 1px solid var(--dwp-line); border-radius: var(--dwp-radius); padding: 16px; margin-bottom: 16px; }
.dwp-side h2 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.dwp-side p { font-size: 13px; line-height: 18px; color: var(--dwp-muted); margin: 8px 0; }
.dwp-side.is-guide { background: var(--dwp-info-bg); border-color: #d1e8ef; }
.dwp-side.is-guide p { color: var(--dwp-info-ink); }

.dwp-cat-list { list-style: none; margin: 0 0 8px; padding: 0; }
.dwp-cat {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 0;
	border-bottom: 1px solid var(--dwp-line-soft); font-size: 13px; text-decoration: none;
}
.dwp-cat-count { color: var(--dwp-muted); font-size: 12px; }

.dwp-grid-cats { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.dwp-grid-cats a,
.dwp-grid-cat-empty {
	display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 16px 20px;
	background: #fff; border: 1px solid var(--dwp-line); border-radius: var(--dwp-radius);
	color: var(--dwp-strong); font-weight: 600; text-decoration: none;
}
.dwp-grid-cats a > span:first-of-type,
.dwp-grid-cat-empty > span:first-child { flex: 1; }
.dwp-grid-cats a:hover { box-shadow: var(--dwp-shadow-2); }
.dwp-grid-cat-empty { flex-wrap: wrap; color: var(--dwp-muted); background: #fafbfc; border-style: dashed; }

/* ---------- Detail & articles ---------- */

.dwp-back { margin-bottom: 12px; }
.dwp-detail { background: #fff; border: 1px solid var(--dwp-line); border-radius: var(--dwp-radius); padding: 16px; }
.dwp-detail h1 { margin-top: 12px; overflow-wrap: anywhere; }
.dwp-detail > section > h2,
.dwp-detail .dwp-body > h2 { margin: 28px 0 12px; }
.dwp-detail ul, .dwp-detail ol { padding-left: 22px; margin: 0 0 20px; }
.dwp-detail li { margin-bottom: 8px; }
.dwp-employer { font-size: 16px; margin-bottom: 12px; }
.dwp-detail .dwp-meta { padding: 0; margin: 0; }
.dwp-detail .dwp-meta li { margin: 0; }

.dwp-facts {
	display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; padding: 16px;
	background: var(--dwp-canvas); border-radius: 8px;
}
.dwp-facts > div { min-width: 0; }
.dwp-facts dt { color: var(--dwp-muted); font-size: 12px; line-height: 16px; margin-bottom: 4px; }
.dwp-facts dd { margin: 0; overflow-wrap: anywhere; }

.dwp-notice { background: var(--dwp-info-bg); color: var(--dwp-info-ink); border-radius: 8px; padding: 16px; font-size: 13px; line-height: 18px; margin: 16px 0; }
.dwp-notice.is-expired { background: #fee2e2; color: #991b1b; font-weight: 600; }

.dwp-apply { border-top: 1px solid var(--dwp-line); margin-top: 24px; padding-top: 20px; }
.dwp-action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dwp-apply .dwp-sub { margin: 12px 0 0; font-size: 13px; }

.dwp-prose { overflow-wrap: anywhere; }
.dwp-prose h2 { margin: 24px 0 12px; }
.dwp-prose h3 { font-size: 17px; line-height: 24px; margin: 24px 0 8px; }
.dwp-prose h4 { font-size: 15px; line-height: 22px; margin: 20px 0 8px; }
.dwp-prose > :first-child { margin-top: 0; }
.dwp-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.dwp-prose td, .dwp-prose th { border: 1px solid var(--dwp-line); padding: 8px; text-align: left; }
.dwp-prose .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: var(--dwp-control-radius);
	background: var(--dwp-primary); color: #fff; font-weight: 600; text-decoration: none;
}

.dwp-article { line-height: 24px; font-size: 16px; }
.dwp-article .dwp-prose { max-width: 68ch; }
.dwp-byline { color: var(--dwp-muted); font-size: 13px; line-height: 18px; }
.dwp-toc { background: var(--dwp-canvas); border-radius: 8px; padding: 16px; margin: 16px 0 24px; }
.dwp-toc h2 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.dwp-toc ol { margin: 0; padding-left: 20px; }
.dwp-toc li { margin: 0; }
.dwp-toc li.is-h3 { margin-left: 16px; }
.dwp-toc a { display: inline-flex; align-items: center; min-height: 40px; }
.dwp-related { margin-top: 28px; }
.dwp-related > h2 { margin-bottom: 12px; }

.dwp-form { display: grid; gap: 16px; max-width: 480px; }
.dwp-form fieldset { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; }
.dwp-form textarea { min-height: 96px; }

/* ---------- Ads (labelled placeholder, non-interactive) ---------- */

.dwp-ad {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	min-height: 160px; margin: 28px 0; padding: 16px;
	background: #f2f4f7; border: 1px solid var(--dwp-line); border-radius: 4px;
	color: #59636e; text-align: center; font-size: 12px;
}
.dwp-ad small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
/* Live ad: no placeholder box; the unit takes the full width (responsive AdSense). */
.dwp-ad.has-ad { display: block; min-height: 0; padding: 0; background: none; border: 0; }
.dwp-ad.has-ad small { display: block; margin-bottom: 6px; }
.dwp-ad-unit { width: 100%; min-width: 0; overflow: hidden; }

/* ---------- Footer & mobile bar ---------- */

.dwp-footer {
	--dwp-footer-text: #d3e3ec;
	--dwp-footer-dim: #a9c4d3;
	--dwp-footer-line: rgba(255, 255, 255, .14);
	--dwp-footer-accent: #7fd6e6;
	background: linear-gradient(180deg, #004368 0%, #002f4a 100%);
	color: var(--dwp-footer-text); font-size: 14px; line-height: 22px;
	padding: 32px 0 20px; margin-top: 32px;
}
.dwp-footer a { color: #fff; text-decoration: none; }
.dwp-footer a:hover { color: #fff; text-decoration: underline; }
.dwp-footer :focus-visible { outline-color: #fff; }
.dwp-footer h2 { margin: 0; color: #fff; }
.dwp-footer p { margin: 0; }
.dwp-footer .dwp-icon { width: 18px; height: 18px; flex: none; }

/* Call to action band */
.dwp-footer-cta {
	display: grid; gap: 16px; align-items: center;
	padding: 20px; border: 1px solid var(--dwp-footer-line); border-radius: 16px;
	background: rgba(255, 255, 255, .06);
}
.dwp-footer-cta h2 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; margin-bottom: 4px; }
.dwp-footer-cta p { color: var(--dwp-footer-text); max-width: 60ch; }
.dwp-footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dwp-footer .dwp-button { gap: 8px; min-height: 48px; padding: 10px 18px; font-weight: 600; text-decoration: none; }
.dwp-footer .dwp-button.is-inverse { background: #fff; border-color: #fff; color: var(--dwp-strong); }
.dwp-footer .dwp-button.is-inverse:hover { background: #e6f4f8; border-color: #e6f4f8; color: var(--dwp-strong); }
.dwp-footer .dwp-button.is-outline-inverse { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.dwp-footer .dwp-button.is-outline-inverse:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* Brand and link columns */
.dwp-footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 32px 0 24px; }
.dwp-footer-brand { grid-column: 1 / -1; }
.dwp-logo.is-inverse,
.dwp-logo.is-inverse:hover { color: #fff; text-decoration: none; }
.dwp-logo.is-inverse strong span { color: var(--dwp-footer-accent); }
.dwp-logo.is-inverse small { color: var(--dwp-footer-dim); }
.dwp-footer-brand > p { margin-top: 12px; max-width: 36ch; }
.dwp-footer-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.dwp-footer-trust li { display: flex; align-items: flex-start; gap: 8px; color: var(--dwp-footer-text); }
.dwp-footer-trust .dwp-icon { color: var(--dwp-footer-accent); margin-top: 2px; }
.dwp-footer-col h2 {
	font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--dwp-footer-dim); margin-bottom: 8px;
}
.dwp-footer-col ul { list-style: none; margin: 0; padding: 0; }
.dwp-footer-col a,
.dwp-muted-link { display: inline-flex; align-items: center; min-height: 44px; }
.dwp-footer-col a { color: var(--dwp-footer-text); }
.dwp-footer-col a:hover { color: #fff; }
.dwp-muted-link { color: var(--dwp-footer-dim); }

/* Bottom bar */
.dwp-footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
	padding-top: 16px; border-top: 1px solid var(--dwp-footer-line);
	font-size: 13px; line-height: 20px; color: var(--dwp-footer-dim);
}
.dwp-footer-promise { display: inline-flex; align-items: center; gap: 8px; }
.dwp-footer-promise .dwp-icon { color: var(--dwp-footer-accent); }
.dwp-footer .dwp-gaps-panel a { color: #92400e; }
.dwp-bottom {
	display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--dwp-line);
}
.dwp-bottom a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-width: 48px; min-height: 48px; font-size: 11px; line-height: 14px; color: var(--dwp-primary); text-decoration: none;
}
.dwp-bottom .dwp-icon { width: 20px; height: 20px; }

/* ---------- Gap flags (editors only) ---------- */

.dwp-flag {
	display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
	margin: 4px 0; padding: 2px 8px; border: 1px dashed #b45309; border-radius: 6px;
	background: #fffbeb; color: #92400e; font-size: 11px; line-height: 16px; font-weight: 600;
	cursor: help; overflow-wrap: anywhere;
}
.dwp-flag .dwp-icon { width: 12px; height: 12px; }
.dwp-flag-line { display: flex; margin: 8px 0 0; }
.dwp-gaps-panel { margin-top: 16px; padding: 12px 16px; border: 1px dashed #b45309; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: 13px; line-height: 18px; }
.dwp-gaps-panel summary { display: flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 600; cursor: pointer; }
.dwp-gaps-panel ul { margin: 8px 0; padding-left: 20px; }

/* ---------- Density ---------- */

.dwp-compact .dwp-card { padding: 12px 16px; }
.dwp-compact .dwp-card-identity { margin: 8px 0; }
.dwp-compact .dwp-card-foot { margin-top: 8px; }

/* ---------- Tablet (600px+) ---------- */

@media (min-width: 600px) {
	:root { --dwp-gutter: 24px; }
	.dwp-thumb { flex-basis: 72px; width: 72px; height: 72px; margin-top: 0; border-radius: 10px; }
	.dwp-card-identity { align-items: center; gap: 16px; margin: 16px 0; }
	.dwp-grid-cats { grid-template-columns: 1fr 1fr; }
	.dwp-facts { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
	.dwp-filter-grid { grid-template-columns: 1fr 1fr; }
	.dwp-detail { padding: 24px; }
	.dwp-empty { padding: 32px; }
}

/* ---------- Full navigation (768px+) ---------- */

@media (min-width: 768px) {
	.dwp-header { padding-top: 20px; }
	.dwp-top { padding-bottom: 18px; }
	.dwp-logo strong { font-size: 27px; }
	.dwp-trust { display: flex; }
	.dwp-top-save { display: inline-flex; }
	.dwp-menu-button { display: none; }
	.dwp-nav { display: block; }
	.dwp-menu { display: none !important; }
	.dwp-bottom { display: none; }
	.dwp-hero { padding: 32px 0 28px; }
	.dwp h1 { font-size: 28px; line-height: 36px; }
	.dwp-search { grid-template-columns: 1.6fr 1fr auto; margin-top: 24px; }
	.dwp-quick { margin-top: 16px; }
	.dwp-content { padding-top: 28px; }
	.dwp-footer { padding: 40px 0 24px; }
	.dwp-footer-cta { grid-template-columns: minmax(0, 1fr) auto; padding: 24px 28px; }
	.dwp-filter-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Desktop (1024px+) ---------- */

@media (min-width: 1024px) {
	:root { --dwp-gutter: 32px; }
	.dwp-content { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
	.dwp-footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 32px; }
	.dwp-footer-brand { grid-column: auto; }
	.dwp-footer-col a,
	.dwp-muted-link { min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.dwp * { scroll-behavior: auto !important; transition: none !important; }
}
