/* WasteXchange.org site styles */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #f7f6f2;
	color: #1f2a24;
	font-family: 'IBM Plex Sans', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}
img, iframe, video { max-width: 100%; }
a { color: #1f6b3f; font-weight: 600; }
a:hover { color: #2f8f4e; }
h1, h2, h3 { font-family: 'Jost', Arial, sans-serif; color: #16331f; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
p { margin: 0 0 1em; }
.wx-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* Header */
.wx-header { background: rgba(247,246,242,0.96); border-bottom: 1px solid #e3e1da; position: sticky; top: 0; z-index: 10; }
.wx-header .wx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.wx-logo { display: block; width: 300px; max-width: 72vw; }
.wx-logo svg { display: block; width: 100%; height: auto; }
.wx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.wx-nav a { color: #1f2a24; text-decoration: none; font-weight: 500; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.wx-nav a:hover { color: #2f8f4e; }
.wx-nav a.is-current { color: #1f4d33; border-bottom-color: #b9e56b; }

/* Hero */
.wx-hero { background: #16331f; color: #fff; }
.wx-hero .wx-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.wx-hero h1 { color: #fff; }
.wx-hero p { color: #d9e6dc; font-size: 18px; max-width: 560px; }
.wx-eyebrow { color: #b9e56b; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.wx-btn { display: inline-block; background: #b9e56b; color: #16331f; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 6px; margin-top: 8px; }
.wx-btn:hover { background: #cff07f; color: #16331f; }
.wx-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0f2416; border: 1px solid #2c5a3c; }
.wx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wx-video-caption { font-size: 14px; color: #9fbca8; margin-top: 10px; }
.wx-video-caption a { color: #d9e6dc; font-weight: 500; }

/* Content */
.wx-section { padding: 96px 0; }
.wx-section--white { background: #fff; }
.wx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.wx-card--wide { grid-column: 1 / span 2; }
.wx-card.wx-card--dark { background: #1f6b3f; color: #fff; }
.wx-card.wx-card--dark h3 { color: #fff; }
.wx-card.wx-card--dark p { color: #d9e6dc; }
.wx-icon svg { display: block; width: 44px; height: 44px; margin-bottom: 12px; }
.wx-card h3 a { color: #16331f; text-decoration: none; }
.wx-card h3 a:hover { color: #2f8f4e; text-decoration: underline; }
@media (max-width: 760px) {
	.wx-cards { grid-template-columns: minmax(0, 1fr); }
	.wx-card--wide { grid-column: auto; }
}
.wx-card { background: #f7f6f2; border-radius: 10px; padding: 28px; display: flex; flex-direction: column; }
.wx-card.wx-card--tint { background: #e8f4d4; }
.wx-card-btn { align-self: flex-start; margin-top: auto; display: inline-block; background: #1f6b3f; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 6px; }
.wx-card-btn:hover { background: #16331f; color: #fff; }
.wx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.wx-actions .wx-btn { margin-top: 0; }
.wx-btn.wx-btn--outline { background: transparent; color: #b9e56b; box-shadow: inset 0 0 0 2px #b9e56b; }
.wx-btn.wx-btn--outline:hover { background: #b9e56b; color: #16331f; }
.wx-num { font-family: 'Jost', Arial, sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: #b9e56b; -webkit-text-stroke: 3px #1f4d33; paint-order: stroke fill; margin-bottom: 12px; }
.wx-card h3 { font-size: 22px; font-weight: 700; }
.wx-card p { margin: 0 0 24px; color: #4a524c; font-size: 16px; }
.wx-card.wx-card--dark p { margin-bottom: 0; }
.wx-social { display: flex; justify-content: center; }
.wx-social iframe { border: 0; overflow: hidden; width: 500px; height: 600px; border-radius: 10px; background: #fff; }

/* Footer */
.wx-footer { background: #16331f; color: #c9dccd; font-size: 15px; }
.wx-footer .wx-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.wx-footer a { color: #fff; font-weight: 500; }
.wx-footer strong { color: #fff; }
.wx-footer p { margin: 0 0 0.8em; }
.wx-footer .wx-logo { width: 280px; }

/* Listings page */
.wx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wx-page-head { background: #16331f; color: #fff; padding: 56px 0 88px; }
.wx-page-head h1 { color: #fff; margin-bottom: 24px; }
.wx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.wx-toolbar__submit { background: #b9e56b; color: #16331f; margin-top: 0; }
.wx-toolbar__submit:hover { background: #cff07f; color: #16331f; }
.wx-search { display: flex; flex: 1 1 420px; min-width: 0; background: #fff; border-radius: 8px; overflow: hidden; }
.wx-search select, .wx-search input, .wx-search button { font: inherit; font-size: 15px; border: 0; margin: 0; }
.wx-search select { background: #eef3e8; color: #16331f; font-weight: 600; padding: 12px 14px; border-right: 1px solid #d8e2d0; }
.wx-search input { flex: 1; min-width: 0; padding: 12px 14px; color: #1f2a24; outline: none; }
.wx-search button { background: #1f6b3f; color: #fff; font-weight: 600; padding: 12px 22px; cursor: pointer; }
.wx-search button:hover { background: #2f8f4e; }
.wx-search:focus-within { box-shadow: 0 0 0 3px #b9e56b; }
.wx-listings { margin-top: -56px; padding-bottom: 96px; }
.wx-tabs { display: flex; gap: 6px; }
.wx-tab { flex: 1; text-align: center; background: #2c5a3c; color: #d9e6dc; text-decoration: none; font-family: 'Jost', Arial, sans-serif; font-weight: 700; font-size: 18px; padding: 16px 12px 14px; border-radius: 12px 12px 0 0; }
.wx-tab:hover { background: #367d4a; color: #fff; }
.wx-tab.is-current { background: #fff; color: #16331f; box-shadow: inset 0 4px 0 #4fb163; }
.wx-panel { background: #fff; border-radius: 0 0 12px 12px; padding: 8px 28px 28px; box-shadow: 0 1px 0 #e3e1da; }
.wx-count { color: #4a524c; font-size: 15px; margin: 16px 0 8px; }
.wx-rows { list-style: none; margin: 0; padding: 0; }
.wx-row { display: grid; grid-template-columns: 96px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid #ecebe5; }
.wx-rows .wx-row:last-child { border-bottom: 0; }
.wx-row--head { padding: 8px 0; border-bottom: 2px solid #16331f; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #4a524c; }
.wx-thumb { display: grid; place-items: center; width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; background: repeating-linear-gradient(135deg, #e3e8dd 0 8px, #edf1e8 8px 16px); color: #6b7a6f; font-size: 11px; font-weight: 500; text-decoration: none; overflow: hidden; }
.wx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-thumb--none { background: #f7f6f2; color: #9aa39c; border: 1px dashed #d6d4cc; }
.wx-row__title { font-size: 17px; text-decoration: none; color: #1f6b3f; }
.wx-row__title:hover { text-decoration: underline; }
.wx-row:not(.wx-row--head):hover { background: #f7faf3; }
.wx-row__meta { font-size: 16px; color: #1f2a24; }
.wx-label { display: none; }
.wx-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.wx-pager a, .wx-pager span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 6px; font-size: 15px; text-decoration: none; }
.wx-pager a { color: #1f6b3f; background: #f2f5ee; }
.wx-pager a:hover { background: #e8f4d4; }
.wx-pager a.is-current { background: #1f6b3f; color: #fff; }
.wx-pager a.is-disabled { color: #9aa39c; background: transparent; pointer-events: none; }
@media (max-width: 760px) {
	.wx-tab { font-size: 15px; padding: 12px 6px 10px; }
	.wx-panel { padding: 8px 18px 22px; }
	.wx-row--head { display: none; }
	.wx-row { grid-template-columns: 80px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
	.wx-thumb { width: 80px; grid-row: span 3; }
	.wx-label { display: inline; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #6b7a6f; margin-right: 8px; }
	.wx-row__meta { font-size: 15px; }
}

/* Content pages (Publications etc.) */
.wx-page-head--short { padding-bottom: 96px; }
.wx-page-head--short h1 { margin-bottom: 0; }
.wx-panel.wx-panel--round { border-radius: 12px; padding: 12px 28px; }
.wx-docs { list-style: none; margin: 0; padding: 0; }
.wx-docs li + li { border-top: 1px solid #ecebe5; }
.wx-doc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: #1f6b3f; }
.wx-doc:hover { background: #f7faf3; }
.wx-doc:hover .wx-doc__title { text-decoration: underline; }
.wx-doc__type { display: grid; place-items: center; height: 30px; border-radius: 6px; background: #e8f4d4; color: #1f4d33; font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.wx-doc__title { font-size: 17px; font-weight: 600; text-wrap: pretty; }
.wx-doc__size { font-size: 14px; font-weight: 400; color: #6b7a6f; white-space: nowrap; }
@media (max-width: 760px) {
	.wx-panel.wx-panel--round { padding: 6px 18px; }
	.wx-doc { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; }
	.wx-doc__type { grid-row: span 2; }
	.wx-doc__size { grid-column: 2; }
}

/* Form fields: optional (MyInput*) and required (MyInputReq*) */
.MyInputBlur, .MyInputFocus, .MyInputReqBlur, .MyInputReqFocus {
	font: inherit; font-size: 16px; color: #1f2a24;
	width: 100%; max-width: 100%; padding: 11px 14px;
	background: #fff; border: 1px solid #cfd6ca; border-radius: 6px;
	outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea.MyInputBlur, textarea.MyInputFocus, textarea.MyInputReqBlur, textarea.MyInputReqFocus { min-height: 120px; resize: vertical; }
.MyInputBlur::placeholder, .MyInputFocus::placeholder, .MyInputReqBlur::placeholder, .MyInputReqFocus::placeholder { color: #8a948c; }

/* Optional */
.MyInputBlur { background: #fff; border-color: #cfd6ca; }
.MyInputFocus, .MyInputBlur:focus { background: #fff; border-color: #1f6b3f; box-shadow: 0 0 0 3px #d6ecc0; }

/* Required: light tint + solid green left edge */
.MyInputReqBlur { background: #f6faf1; border-color: #b7c9ad; border-left: 4px solid #4fb163; }
.MyInputReqFocus, .MyInputReqBlur:focus { background: #fff; border-color: #1f6b3f; border-left: 4px solid #1f6b3f; box-shadow: 0 0 0 3px #d6ecc0; }

/* Buttons: MyButton (default, :hover, :active) */
.MyButton, input.MyButton, button.MyButton {
	display: inline-block; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
	color: #fff; background: #1f6b3f; border: 0; border-radius: 6px;
	padding: 12px 22px; text-decoration: none; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	transition: background-color .15s, box-shadow .15s, transform .05s;
}
.MyButton:hover { background: #2f8f4e; color: #fff; }
.MyButton:active { background: #16331f; color: #fff; transform: translateY(1px); }
.MyButton:focus-visible { outline: none; box-shadow: 0 0 0 3px #b9e56b; }
.MyButton:disabled, .MyButton[disabled] { background: #cfd6ca; color: #6b7a6f; cursor: not-allowed; transform: none; }


.wx-intro { color: #d9e6dc; margin-top: 20px; max-width: 760px; }
.wx-intro a { color: #b9e56b; }
.wx-empty { margin: 28px 0 12px; font-weight: 600; color: #a33a2b; }
.wx-search select { max-width: 45%; }


/* Listing detail */
.wx-page-head--detail { padding: 40px 0 96px; }
.wx-page-head--detail h1 { margin-bottom: 0; text-wrap: pretty; }
.wx-back { display: inline-block; color: #b9e56b; font-size: 15px; text-decoration: none; margin-bottom: 20px; }
.wx-back:hover { color: #fff; text-decoration: underline; }
.wx-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.wx-detail--photo { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.wx-detail__main { display: grid; gap: 24px; }
.wx-panel__title { font-size: 20px; margin: 16px 0 8px; }
.wx-dl { margin: 0 0 8px; }
.wx-dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid #ecebe5; }
.wx-dl dt { color: #6b7a6f; font-size: 15px; }
.wx-dl dd { margin: 0; overflow-wrap: anywhere; }
.wx-photo { margin: 0; position: sticky; top: 110px; background: #fff; border-radius: 12px; padding: 12px; }
.wx-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.wx-toolbar--detail { margin-bottom: 32px; }
@media (max-width: 860px) {
	.wx-detail--photo { grid-template-columns: minmax(0, 1fr); }
	.wx-photo { position: static; order: -1; }
	.wx-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}


