/* Watterson project grid (Elementor widget). Every rule is scoped to .wts-pg[data-wts-pg] so the theme's
   heading, link and button styles cannot reach in. Text uses the site's own font (inherited).
   Look follows the Watterson projects page cards (pcard) and filter chips (pfilter). */

.wts-pg[data-wts-pg] {
	--ink: #15173A; --muted: #5B6082; --line: #DDE2F0; --lift: #ECEEFF;
	--violet: #5661E6; --violet-ink: #3B45C2;
	--cols: var(--wts-pg-cols, 3); --gap: 20px;
	display: block; width: 100%; color: var(--ink); font-family: inherit; line-height: 1.5; text-align: left;
}
.wts-pg[data-wts-pg] *, .wts-pg[data-wts-pg] *::before, .wts-pg[data-wts-pg] *::after { box-sizing: border-box; font-family: inherit; }
.wts-pg[data-wts-pg] [hidden] { display: none !important; }
/* theme icons drawn with ::before / ::after on links and buttons */
.wts-pg[data-wts-pg] a::before, .wts-pg[data-wts-pg] a::after,
.wts-pg[data-wts-pg] button::before, .wts-pg[data-wts-pg] button::after { content: none !important; display: none !important; }

/* ---------- filter chips ---------- */
.wts-pg[data-wts-pg] .wts-pg__filters { display: grid; gap: 12px; margin: 0 0 18px; }
.wts-pg[data-wts-pg] .wts-pg__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.wts-pg[data-wts-pg] .wts-pg__flabel { min-width: 92px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wts-pg[data-wts-pg] .wts-pg__chip,
.wts-pg[data-wts-pg] .wts-pg__clear {
	display: inline-flex; align-items: center; width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important;
	padding: 8px 14px !important; border: 1px solid var(--line) !important; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important;
	font-size: 13px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: normal !important; text-transform: none !important;
	box-shadow: none !important; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.wts-pg[data-wts-pg] .wts-pg__chip:hover, .wts-pg[data-wts-pg] .wts-pg__clear:hover { border-color: var(--violet) !important; }
.wts-pg[data-wts-pg] .wts-pg__chip:focus-visible, .wts-pg[data-wts-pg] .wts-pg__clear:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.wts-pg[data-wts-pg] .wts-pg__chip.is-on { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.wts-pg[data-wts-pg] .wts-pg__count { margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--muted); }
.wts-pg[data-wts-pg] .wts-pg__none { margin: 8px 0 0; padding: 0; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- grid: every card the same size ---------- */
.wts-pg[data-wts-pg] .wts-pg__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gap); }
.wts-pg[data-wts-pg] .wts-pg__card {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px;
	color: var(--ink) !important; text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(21, 23, 58, .06), 0 8px 20px -16px rgba(21, 23, 58, .28);
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.wts-pg[data-wts-pg] .wts-pg__card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 1px 0 rgba(21, 23, 58, .04), 0 18px 40px -24px rgba(21, 23, 58, .35); }
.wts-pg[data-wts-pg] .wts-pg__card:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.wts-pg[data-wts-pg] .wts-pg__img { display: block; flex: 0 0 auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lift); }
.wts-pg[data-wts-pg] .wts-pg__img img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0; border-radius: 0; transition: transform .4s; }
.wts-pg[data-wts-pg] .wts-pg__card:hover .wts-pg__img img { transform: scale(1.04); }
.wts-pg[data-wts-pg] .wts-pg__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; padding: 18px 20px 20px; }
.wts-pg[data-wts-pg] .wts-pg__pill { display: inline-block; margin: 0 0 10px; padding: 5px 10px; border-radius: 999px; background: var(--lift); color: var(--violet-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.wts-pg[data-wts-pg] .wts-pg__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em;
	margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink);
}
.wts-pg[data-wts-pg] .wts-pg__text {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted);
}
.wts-pg[data-wts-pg] .wts-pg__eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; }
.wts-pg[data-wts-pg] .wts-pg__eql { margin-right: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wts-pg[data-wts-pg] .wts-pg__tag { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--lift); color: var(--violet-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 11.5px; line-height: 1.4; }
.wts-pg[data-wts-pg] .wts-pg__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--violet); }
.wts-pg[data-wts-pg] .wts-pg__more svg { transition: transform .2s; }
.wts-pg[data-wts-pg] .wts-pg__card:hover .wts-pg__more svg { transform: translateX(3px); }

/* ---------- field note cards (no photo; type label and date on top, reading time and topics at the foot) ---------- */
.wts-pg[data-wts-pg] .wts-pg__card--note .wts-pg__body { padding: 22px 22px 20px; }
.wts-pg[data-wts-pg] .wts-pg__ntop { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 14px; }
.wts-pg[data-wts-pg] .wts-pg__ntop .wts-pg__pill { margin: 0; }
.wts-pg[data-wts-pg] .wts-pg__ntop time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.wts-pg[data-wts-pg] .wts-pg__pill--buyers-guide { background: rgba(23, 181, 131, .12); color: #0E8A61; }
.wts-pg[data-wts-pg] .wts-pg__pill--jar-test { background: rgba(240, 164, 23, .14); color: #B9760A; }
.wts-pg[data-wts-pg] .wts-pg__pill--troubleshooting { background: rgba(228, 87, 61, .1); color: #C2412B; }
.wts-pg[data-wts-pg] .wts-pg__pill--process-explainer { background: rgba(20, 191, 220, .12); color: #0A93AB; }
.wts-pg[data-wts-pg] .wts-pg__card--note .wts-pg__title { -webkit-line-clamp: 3; min-height: 3.9em; }
.wts-pg[data-wts-pg] .wts-pg__card--note .wts-pg__text { -webkit-line-clamp: 4; }
.wts-pg[data-wts-pg] .wts-pg__nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; }
.wts-pg[data-wts-pg] .wts-pg__min { margin-right: 4px; font-size: 12.5px; color: var(--muted); }
.wts-pg[data-wts-pg] .wts-pg__empty { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- numbered pages ---------- */
.wts-pg[data-wts-pg] .wts-pg__pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 32px 0 0; }
.wts-pg[data-wts-pg] .wts-pg__page {
	display: inline-flex; align-items: center; justify-content: center; width: auto !important; min-width: 42px; height: 42px !important; min-height: 0 !important; margin: 0 !important;
	padding: 0 12px !important; border: 1px solid var(--line) !important; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important;
	font-size: 14px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: normal !important; text-transform: none !important;
	box-shadow: none !important; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.wts-pg[data-wts-pg] .wts-pg__page:hover:not(:disabled) { border-color: var(--violet) !important; }
.wts-pg[data-wts-pg] .wts-pg__page:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.wts-pg[data-wts-pg] .wts-pg__page.is-on { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; cursor: default; }
.wts-pg[data-wts-pg] .wts-pg__page:disabled { opacity: .4; cursor: default; }
.wts-pg[data-wts-pg] .wts-pg__gap { padding: 0 2px; color: var(--muted); }

@media (max-width: 1024px) { .wts-pg[data-wts-pg] { --cols: min(var(--wts-pg-cols, 3), 2); } }
@media (max-width: 640px) {
	.wts-pg[data-wts-pg] { --cols: 1; --gap: 16px; }
	.wts-pg[data-wts-pg] .wts-pg__grid { grid-auto-rows: auto; }
	.wts-pg[data-wts-pg] .wts-pg__flabel { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.wts-pg[data-wts-pg] .wts-pg__card, .wts-pg[data-wts-pg] .wts-pg__img img, .wts-pg[data-wts-pg] .wts-pg__more svg { transition: none; }
}
