/* Blog post: Water Purification Methods (/water-purification-methods/). Theme 1.0.51.43. Loaded only on that post,
   after ammo-blog.css and byrna-blog.css (shared .am / .by components). Adds: hero position, methods comparison table,
   photo figures, Grayl and Jetboil product cards, and the field-guide box. */
.am.wtr .am-hero__img { object-position: 70% 50%; }
.am.wtr .am-hero picture { display: contents; }
.am.wtr .am-title { max-width: 19ch; }
/* Match body type. Do not inherit the oversized Byrna lede. */
.am.wtr .by-lede { font-size: inherit; line-height: inherit; color: inherit; }
.am.wtr .am-title .am-gold { font-size: .5em; line-height: 1.15; display: block; margin-top: .35em; }

/* Methods comparison table */
.am .wtr-tablewrap { margin: 1.4rem 0 .6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--am-line-lt); border-radius: 10px; background: #fff; }
.am .wtr-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .98rem; }
.am .wtr-table caption { caption-side: top; text-align: left; font-family: var(--am-head); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--am-gold-deep); padding: .8rem .9rem .5rem; }
.am .wtr-table th, .am .wtr-table td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--am-line-lt); line-height: 1.4; }
.am .wtr-table thead th { background: var(--am-ink); color: var(--am-gold); font-family: var(--am-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.am .wtr-table tbody th { font-family: var(--am-head); font-weight: 800; white-space: nowrap; }
.am .wtr-table tbody th small { display: block; margin-top: .15rem; font-family: var(--am-body); font-weight: 400; font-size: .82rem; color: #666; letter-spacing: 0; text-transform: none; }
.am .wtr-table tbody tr:last-child th, .am .wtr-table tbody tr:last-child td { border-bottom: 0; }
.am .wtr-table td.y { font-weight: 700; color: #1d6b35; background: #f0f8f2; }
.am .wtr-table td.n { font-weight: 700; color: #a11212; background: #fbf1f1; }
.am .wtr-table td.p { font-weight: 700; color: #7a5200; background: #fff8e6; }
.am .wtr-note { font-size: .88rem; line-height: 1.5; color: #666; }

/* Photos */
.am .wtr-ph { margin: 1.8rem auto; max-width: 520px; }
.am .wtr-ph img { display: block; width: 100%; height: auto; border-radius: 10px; background: #0b0b0b; }
.am .wtr-ph figcaption { margin-top: .55rem; font-size: .92rem; line-height: 1.45; color: #555; }
.am .wtr-ph--tall img { max-height: 640px; object-fit: cover; object-position: 50% 40%; }

/* Grayl product card: tall photo, cropped square-ish */
.am .wtr-prod .by-prod__img img { width: 100%; max-height: 210px; object-fit: cover; object-position: 50% 42%; border-radius: 8px; }

/* Five-stage kit list */
.am .wtr-stages { counter-reset: wtr; list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.am .wtr-stages li { counter-increment: wtr; position: relative; margin: 0; padding: .9rem 1rem .9rem 3.6rem; background: #fff; border: 1px solid var(--am-line-lt); border-left: 5px solid var(--am-gold); border-radius: 0 10px 10px 0; line-height: 1.5; }
.am .wtr-stages li::before { content: counter(wtr); position: absolute; left: .9rem; top: .8rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--am-ink); color: var(--am-gold); font-family: var(--am-head); font-weight: 800; font-size: .95rem; }

/* Field-guide box */
.am .wtr-guide { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; margin: 2.6rem 0 2.4rem; padding: 1.6rem; background: var(--am-ink); color: #fff; border-top: 5px solid var(--am-gold); border-radius: 12px; scroll-margin-top: 110px; }
.am .wtr-guide__pic { margin: 0; }
.am .wtr-guide__pic img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 36px -18px rgba(0,0,0,.8); }
.am .wtr-guide__k { margin: 0 0 .3rem; font-family: var(--am-head); font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--am-gold); }
.am .wtr-guide .wtr-guide__h { margin: 0 0 .6rem; color: #fff; font-family: var(--am-head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; }
.am .wtr-guide p { color: #e8e8e8; }
.am .wtr-guide ul { margin: .6rem 0 1rem; padding-left: 1.1rem; color: #e8e8e8; line-height: 1.5; }
.am .wtr-guide li::marker { color: var(--am-gold); }
.am .wtr-guide .wtr-guide__p { color: #fff; font-size: 1.05rem; margin: 0 0 .9rem; }
.am .wtr-guide .wtr-guide__p s { color: #bbb; }

@media (max-width: 640px) {
	.am.wtr .am-hero__img { object-position: 68% 58%; }
	.am .wtr-guide { grid-template-columns: 1fr; padding: 1.3rem 1.1rem; }
	.am .wtr-guide__pic { max-width: 200px; }
	.am .wtr-stages li { padding-left: 3.3rem; }
	.am .wtr-ph { max-width: none; }
}

/* Stack the comparison table into cards on phones (no sideways scroll). */
@media (max-width: 640px) {
	.am .wtr-tablewrap { overflow: visible; border: 0; background: transparent; border-radius: 0; }
	.am .wtr-table { min-width: 0; width: 100%; }
	.am .wtr-table thead { display: none; }
	.am .wtr-table caption { padding: 0 0 .7rem; }
	.am .wtr-table tbody { display: block; }
	.am .wtr-table tbody tr { display: block; margin: 0 0 .75rem; border: 1px solid var(--am-line-lt); border-radius: 10px; overflow: hidden; background: #fff; }
	.am .wtr-table tbody th,
	.am .wtr-table tbody td { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; width: auto; border-bottom: 1px solid var(--am-line-lt); }
	.am .wtr-table tbody th { background: var(--am-ink); color: #fff; }
	.am .wtr-table tbody th small { color: #cfcfcf; }
	.am .wtr-table tbody td::before { content: attr(data-label); font-family: var(--am-head); font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #555; flex: 0 0 6.8rem; padding-top: .12rem; }
	.am .wtr-table tbody td:last-child { border-bottom: 0; }
	.am .wtr-table tbody tr:last-child th,
	.am .wtr-table tbody tr:last-child td { /* keep row separators */ }
}
