/* ReuseWood front end. AWC brand palette; works inside any theme. */
.rw {
	--rw-forest: #203A1B;
	--rw-navy: #20486A;
	--rw-light: #A8D69F;
	--rw-bright: #44B64D;
	--rw-ink: #1d2320;
	--rw-muted: #5a6560;
	--rw-line: #d9e2dc;
	--rw-tint: #f3f8f1;
	--rw-surface: #ffffff;
	--rw-radius: 10px;
	font-family: "ABC Whyte", Arial, Helvetica, sans-serif;
	color: var(--rw-ink);
	box-sizing: border-box;
}
.rw *, .rw *::before, .rw *::after { box-sizing: inherit; }
.rw a { color: var(--rw-navy); }
.rw a:hover { color: var(--rw-forest); }
.rw [hidden] { display: none !important; }
.rw h2, .rw h3 { color: var(--rw-forest); line-height: 1.2; }

/* Buttons and chips */
.rw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .7em 1.2em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.rw-btn-primary { background: var(--rw-forest); color: #fff !important; }
.rw-btn-primary:hover { background: var(--rw-navy); }
.rw-btn-secondary { background: #fff; color: var(--rw-forest) !important; border-color: var(--rw-forest); }
.rw-btn-secondary:hover, .rw-btn-secondary.is-active { background: var(--rw-forest); color: #fff !important; }
.rw-btn:focus-visible, .rw-tab:focus-visible, .rw-chip:focus-visible { outline: 3px solid var(--rw-bright); outline-offset: 2px; }
.rw-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--rw-navy); text-decoration: underline; cursor: pointer; }
.rw-chips { list-style: none; margin: .4em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.rw-chips li { margin: 0; }
.rw-chip {
	display: inline-block; padding: .3em .75em; border-radius: 999px;
	background: var(--rw-tint); border: 1px solid var(--rw-light); color: var(--rw-forest) !important;
	font-size: .9em; text-decoration: none;
}
a.rw-chip:hover { background: var(--rw-light); }
.rw-chips-sm .rw-chip { font-size: .8em; padding: .2em .6em; }
.rw-chip-more { background: #fff; }

/* Home */
.rw-hero {
	background: var(--rw-forest); color: #fff; border-radius: var(--rw-radius);
	padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px); margin-bottom: 28px;
}
.rw-eyebrow { margin: 0 0 .5em; color: var(--rw-light); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85em; }
.rw .rw-hero-title { color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 .3em; }
.rw-hero-lead { font-size: 1.15em; max-width: 46ch; margin: 0 0 1.5em; color: #e9f3e6; }
.rw-hero-search { display: flex; gap: 8px; max-width: 560px; flex-wrap: wrap; }
.rw-hero-search input { flex: 1 1 240px; min-width: 0; padding: .8em 1em; border-radius: 999px; border: 0; font: inherit; }
.rw-hero-search .rw-btn-primary { background: var(--rw-bright); color: var(--rw-forest) !important; }
.rw-hero-search .rw-btn-primary:hover { background: var(--rw-light); }

.rw-cards { display: grid; gap: 20px; margin-bottom: 28px; }
.rw-cards-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rw-feature {
	display: block; padding: 28px; border-radius: var(--rw-radius); border: 1px solid var(--rw-line);
	background: var(--rw-surface); text-decoration: none; color: var(--rw-ink) !important;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rw-feature:hover { border-color: var(--rw-bright); box-shadow: 0 8px 24px rgba(32, 58, 27, .12); transform: translateY(-2px); }
.rw-feature h3 { margin: .2em 0 .4em; font-size: 1.5em; }
.rw-feature p { margin: 0 0 1em; color: var(--rw-muted); }
.rw-feature-kicker { color: var(--rw-bright); font-weight: 700; font-size: .9em; }
.rw-feature-cta { color: var(--rw-navy); font-weight: 700; }

.rw-callout {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--rw-tint); border-left: 6px solid var(--rw-bright); border-radius: var(--rw-radius);
	padding: 22px 26px; margin-bottom: 28px;
}
.rw-callout h3 { margin: 0 0 .2em; }
.rw-callout p { margin: 0; }
.rw-sponsors { text-align: center; padding: 12px 0 8px; }
.rw-sponsors h3 { font-size: .9em; text-transform: uppercase; letter-spacing: .06em; color: var(--rw-muted); }
.rw-sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.rw-sponsor-logos img { max-height: 64px; width: auto; }

/* Directory */
.rw-filters {
	display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	background: var(--rw-tint); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 18px;
}
.rw-field label { display: block; font-weight: 700; font-size: .85em; margin-bottom: .3em; color: var(--rw-forest); }
.rw-field input, .rw-field select, .rw-field textarea {
	width: 100%; padding: .6em .7em; border: 1px solid #b8c5bd; border-radius: 6px; font: inherit; background: #fff; color: var(--rw-ink);
}
.rw-field input:focus, .rw-field select:focus, .rw-field textarea:focus { outline: 2px solid var(--rw-bright); border-color: var(--rw-bright); }
.rw-field-q { grid-column: 1 / -1; }
.rw-near { display: flex; gap: 6px; }
.rw-near .rw-btn { padding: .55em .9em; white-space: nowrap; }
.rw-near select { flex: 1; min-width: 0; }
.rw-field-reset { display: flex; align-items: flex-end; }

.rw-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 12px; }
.rw-count { margin: 0; font-weight: 700; color: var(--rw-muted); }
.rw-tabs { display: inline-flex; border: 2px solid var(--rw-forest); border-radius: 999px; overflow: hidden; }
.rw-tab { background: #fff; color: var(--rw-forest); border: 0; padding: .45em 1.2em; font: inherit; font-weight: 700; cursor: pointer; }
.rw-tab.is-active { background: var(--rw-forest); color: #fff; }

.rw-view-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rw-card {
	display: flex; gap: 14px; padding: 16px; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); background: #fff;
}
.rw-card:hover { border-color: var(--rw-light); }
.rw-card-logo { flex: 0 0 56px; }
.rw-card-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: var(--rw-tint); }
.rw-card-body { min-width: 0; }
.rw .rw-card-title { font-size: 1.05em; margin: 0 0 .25em; }
.rw-card-title a { text-decoration: none; }
.rw-card-title a:hover { text-decoration: underline; }
.rw-card-loc { margin: 0; color: var(--rw-muted); font-size: .92em; }
.rw-dist { display: inline-block; margin-left: .4em; font-weight: 700; color: var(--rw-forest); }
.rw-card-stale { margin: .5em 0 0; font-size: .8em; color: #8a5a00; }
.rw-view-map { height: min(70vh, 620px); border-radius: var(--rw-radius); border: 1px solid var(--rw-line); overflow: hidden; }
.rw-more-wrap { text-align: center; margin: 18px 0; }
.rw-empty { grid-column: 1 / -1; padding: 24px; text-align: center; background: var(--rw-tint); border-radius: var(--rw-radius); }

/* Single listing */
.rw-listing-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.rw-listing-logo img { max-width: 200px; height: auto; border-radius: 8px; }
.rw-listing-contact { flex: 1 1 260px; }
.rw-addr { margin: 0 0 .4em; font-size: 1.05em; }
.rw-contact-list { list-style: none; margin: .6em 0 0; padding: 0; }
.rw-contact-list li { margin: .25em 0; }
.rw-k { display: inline-block; min-width: 6.5em; font-weight: 700; color: var(--rw-forest); }
.rw-listing-desc { margin: 0 0 20px; }
.rw-listing-picture { margin: 0 0 20px; }
.rw-listing-picture img { max-width: 100%; height: auto; border-radius: var(--rw-radius); }
.rw-tag-group { margin-bottom: 16px; }
.rw-tag-group h3 { font-size: 1em; margin: 0; }
.rw-listing-map { height: 280px; border-radius: var(--rw-radius); border: 1px solid var(--rw-line); margin: 20px 0; }
.rw-listing-meta { font-size: .9em; color: var(--rw-muted); border-top: 1px solid var(--rw-line); padding-top: 12px; }

/* Guide */
.rw-guide-search { max-width: 480px; margin-bottom: 8px; }
.rw-guide-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 12px; }
.rw-guide-card {
	display: flex; flex-direction: column; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); overflow: hidden;
	text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.rw-guide-card:hover { border-color: var(--rw-bright); box-shadow: 0 6px 18px rgba(32, 58, 27, .1); }
.rw-guide-thumb { display: block; aspect-ratio: 4 / 3; background: var(--rw-tint); }
.rw-guide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-guide-title { display: block; padding: 10px 12px; font-weight: 700; color: var(--rw-forest); }
.rw-topic-find { background: var(--rw-tint); border-radius: var(--rw-radius); padding: 16px 20px; margin: 24px 0; }
.rw-topic-find h3 { margin-top: 0; }
.rw-topic-find .rw-btn { margin: 4px 6px 4px 0; }

/* Forms */
.rw-form fieldset { border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 16px 18px; margin: 0 0 18px; }
.rw-form legend { font-weight: 700; color: var(--rw-forest); padding: 0 .4em; }
.rw-form .rw-field { margin-bottom: 12px; }
.rw-grid-3 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rw-check-grid { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rw-check-grid label { font-weight: 400; font-size: .95em; }
.rw-req { color: #b3261e; }
.rw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rw-notice { padding: 12px 16px; border-radius: 8px; background: var(--rw-tint); border-left: 5px solid var(--rw-navy); margin: 0 0 16px; }
.rw-notice-ok { border-left-color: var(--rw-bright); }
.rw-notice-err { border-left-color: #b3261e; background: #fdf0ef; }

@media (max-width: 600px) {
	.rw-filters { grid-template-columns: 1fr; padding: 14px; }
	.rw-toolbar { flex-direction: column; align-items: stretch; }
	.rw-tabs { align-self: flex-start; }
	.rw-view-list { grid-template-columns: 1fr; }
	.rw-k { min-width: 0; margin-right: .4em; }
}

/* Business accounts */
.rw-account-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rw-panel { border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 20px 22px; margin-bottom: 20px; background: #fff; }
.rw-panel h2 { margin-top: 0; font-size: 1.3em; }
.rw-panel-accent { background: var(--rw-tint); border-color: var(--rw-light); }
.rw-panel form p { margin: 0 0 12px; }
.rw-panel #loginform label { display: block; font-weight: 700; font-size: .85em; color: var(--rw-forest); margin-bottom: .3em; }
.rw-panel #loginform input[type="text"], .rw-panel #loginform input[type="password"] { width: 100%; padding: .6em .7em; border: 1px solid #b8c5bd; border-radius: 6px; font: inherit; }
.rw-panel #loginform .login-remember label { font-weight: 400; display: inline; }
.rw-panel #loginform #rw-login-submit { background: var(--rw-forest); color: #fff; border: 0; border-radius: 999px; padding: .7em 1.4em; font: inherit; font-weight: 700; cursor: pointer; }
.rw-panel #loginform #rw-login-submit:hover { background: var(--rw-navy); }
.rw-help { font-size: .9em; color: var(--rw-muted); }
.rw-muted { color: var(--rw-muted); font-size: .9em; margin-left: .3em; }
.rw-account-hello { color: var(--rw-muted); }
.rw-account-list { list-style: none; margin: 0; padding: 0; }
.rw-account-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--rw-line); }
.rw-account-list li:first-child { border-top: 0; }
.rw-account-list li > span:first-child { min-width: 0; }
.rw-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rw-account-actions .rw-btn { padding: .5em 1em; }
.rw-inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rw-inline-form input[type="search"] { flex: 1 1 220px; min-width: 0; padding: .6em .7em; border: 1px solid #b8c5bd; border-radius: 6px; font: inherit; }
.rw-badge-inline { display: inline-block; margin-left: .4em; padding: .1em .6em; border-radius: 999px; background: #e7f0fa; color: var(--rw-navy); font-size: .8em; font-weight: 700; }
.rw-badge-warn { background: #fcf0e1; color: #8a5a00; }
.rw-logo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rw-logo-current img { width: 72px; height: 72px; object-fit: contain; background: var(--rw-tint); border-radius: 6px; }
.rw-callout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
