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

article,
figure,
footer,
header,
main,
nav {
	display: block;
}

/* Structure */
html {
	font-size: 100%;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	word-wrap: break-word;
	background: #faf7ea;
}

/* Keep the footer at the bottom of the window on short pages */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Content sits in a centered column on every page */
main {
	flex: 1 0 auto;
	width: 100%;
	box-sizing: border-box;
	max-width: 62rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem;
}

.post__header,
.main__header {
	text-align: center;
}

/* Button */
.btn {
	padding: 5px 10px;
	font-weight: 700;
	color: #e7e7e7;
	white-space: pre-line;
}

.btn:hover {
	color: #e7e7e7;
	background: #477000;
}

/* Animation */
nav.menu li,
.btn {
	transition: background-color .25s ease-out;
}

/* Typography */
h1,
h2,
h3 {
	margin: 1rem 0 0.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.25rem;
}

a {
	color: #1a1a1a;
	text-decoration: none;
}

a:hover {
	color: #477000;
}

p {
	margin: 0 0 1.25rem;
}

b,
strong {
	font: inherit;
	font-weight: 700;
}

i,
em {
	font: inherit;
	font-style: italic;
}

ol,
ul {
	padding: 0;
	margin: 0;
}

sup {
	font-size: .625rem;
	font-style: normal;
	vertical-align: super;
}

.warning {
	padding: 20px 10px;
	text-align: center;
	border: 1px solid #ddd;
}

/* Header */
.logo__link {
	display: inline-block;
	padding: 0.5rem 1rem;
	line-height: 0;
}

.logo__img {
	display: block;
	width: 400px;
	max-width: 100%;
	height: auto;
}

/* Main navigation menu */
/* https://www.sitepoint.com/pure-css-off-screen-navigation-menu/ */
nav {
	border-bottom: none;
	margin-bottom: 0.25rem;
}

/* This is the green from our logo. */
nav.menu ul, nav.menu .menu__toggle {
  background: #477000;
}

/* Shrink the nav bar's vertical padding. */
nav.menu a, nav.menu .menu__toggle {
	display: block;
	font-weight: 700;
	color: #e7e7e7;
	text-transform: uppercase;
	padding: 0.35rem 0.9375rem;
}

nav.menu .menu__toggle {
	width: 100%;
	margin: 0;
	border: 0;
	font: inherit;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
}

nav.menu .menu__toggle[hidden] {
	display: none;
}

nav.menu .menu__arrow::after {
	content: " \25BE"; /* small down arrow */
}

nav.menu.menu--open .menu__arrow::after {
	content: " \25B4"; /* small up arrow */
}

nav.menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* On phones, hide the links until the Menu button is pressed. Only
   applies when JavaScript is running (menu--js), so the links are never
   unreachable. */
nav.menu.menu--js ul {
	display: none;
}

nav.menu.menu--js.menu--open ul {
	display: block;
}

/* Current page in the menu: darker green plus a yellow bar, so it
   stands out by more than color alone. Bar is on the left on phones
   (stacked menu) and along the bottom on wider screens. */
nav.menu li.active {
	background: #2f4a00;
	box-shadow: inset 5px 0 0 #ffd23f;
}

@media screen and (min-width: 767px) {
	nav.menu li.active {
		box-shadow: inset 0 -4px 0 #ffd23f;
	}
}

/* Posts/Pages */
.content a,
.warning a {
	font-weight: 700;
	color: #477000;
}

.content a:hover,
.warning a:hover {
	color: #477000;
	text-decoration: underline;
}

.content ul {
	list-style: square;
}

.content ol {
	list-style: decimal;
}

.content ul,
.content ol {
	margin: 0 0 20px 40px;
}

.content ul ul,
.content ol ol,
.content ol ul,
.content ul ol {
	margin: 0 0 0 40px;
}

.content li {
	margin-bottom: 5px;
}

/* Pagination */
.pagination {
	margin-top: 20px;
}

.pagination__item {
	display: inline-block;
	padding: 10px 15px;
	font-weight: 700;
	color: #1a1a1a;
	background: #f5f5f5;
}

.pagination__item:hover,
.pagination__item--current {
	color: #e7e7e7;
	background: #477000;
}

/* Images / Video */
img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

iframe {
	max-width: 100%;
}

/* Table */
table {
	width: 100%;
	margin-bottom: 1.25rem;
	border-spacing: 0;
	border-collapse: collapse;
	border-top: 1px solid #ebebeb;
	border-left: 1px solid #ebebeb;
}

td,
th {
	padding: 5px 10px;
	border-right: 1px solid #ebebeb;
	border-bottom: 1px solid #ebebeb;
}

th {
	font-weight: 700;
}

/* Forms */
input {
	margin: 0;
	font-family: inherit;
	line-height: inherit;
	padding: 5px;
	font-size: 12px;
	vertical-align: middle;
	background: #f5f5f5;
	border: 1px solid #ebebeb;
	transition: all .25s ease-in-out;
}

/* Media Queries */
@media screen and (max-width: 900px) {
	.footer__copyright {
		text-align: center;
	}
}

@media screen and (min-width: 767px) {
	nav.menu .menu__toggle {
		display: none !important;
	}

	nav.menu ul,
	nav.menu.menu--js ul {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		visibility: visible;
		border: 0;
		transform: none;
	}

	nav.menu li {
		border-left: 1px solid rgba(255, 255, 255, .1);
	}
}

@media screen and (max-width: 767px) {
	.logo__img {
		width: 260px;
	}

	.content ul,
	.content ol {
		margin: 0 0 20px 20px;
	}

	.content ul ul,
	.content ol ol,
	.content ol ul,
	.content ul ol {
		margin: 0 0 0 20px;
	}
}

@media print {
	.logo__img {
		width: 240px;
	}

  nav.menu, footer {
    display: none !important;
  }
}

footer {
	font-size: .75rem;
	padding: 6px 25px;
  background: #477000;
  color: #e7e7e7;
}

.content a, .warning a {
  color: #477000;
	text-decoration: underline;
}

/* Prominent donation buttons for PayPal, Amazon, and Chewy links. */
.donate-btn {
	display: inline-block;
	margin: 0.5rem 0.5rem 0.5rem 0;
	padding: 0.75rem 1.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 6px;
	transition: background-color .25s ease-out;
}

.donate-btn--paypal {
	background: #0070ba;
}
.donate-btn--paypal:hover {
	background: #005ea6;
}

.donate-btn--amazon {
	background: #ff9900;
	color: #111 !important;
}
.donate-btn--amazon:hover {
	background: #e88a00;
}

.donate-btn--chewy {
	background: #0f3c5f;
}
.donate-btn--chewy:hover {
	background: #0a2c46;
}

/* Clickable thumbnail preview of the donation flyer. */
.flyer-preview {
	display: block;
	max-width: 220px;
	height: auto;
	margin: 0.5rem 0;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: box-shadow .25s ease-out;
}
.flyer-preview:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100;
	padding: 0.5rem 1rem;
	font-weight: 700;
	color: #fff;
	background: #1a1a1a;
}

.skip-link:focus {
	top: 0.5rem;
}

main:focus {
	outline: none;
}

/* Clear, thick focus outline for keyboard users */
a:focus-visible,
button:focus-visible,
iframe:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
}

nav.menu a:focus-visible,
nav.menu .menu__toggle:focus-visible {
	outline: 3px solid #ffd23f;
	outline-offset: -3px;
}

/* Footer contact details */
footer {
	margin-top: 2rem;
}

.footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 3rem;
	padding: 1rem 0 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
}

.footer__heading {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
	color: #fff;
}

.footer__section p,
.footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

footer a {
	color: #fff;
	text-decoration: underline;
}

footer a:focus-visible {
	outline: 3px solid #ffd23f;
	outline-offset: 2px;
}

.footer__copyright {
	padding: 0.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, .2);
}

.footer__subheading {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	color: #fff;
}

/* Section landing pages (Need Help?, Please Donate) */
.action-btn {
	display: inline-block;
	margin: 0.5rem 0;
	padding: 0.75rem 1.25rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	background: #477000;
	border-radius: 6px;
}

.action-btn:hover {
	background: #365500;
}

.steps {
	margin: 1rem 0 !important;
	padding: 0;
	list-style: none !important;
	counter-reset: step;
	max-width: 50rem;
}

.step,
.way {
	position: relative;
	margin: 0 0 1rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border-left: 6px solid #477000;
	border-radius: 6px;
}

.step {
	counter-increment: step;
	padding-left: 4rem;
}

.step::before {
	content: counter(step);
	position: absolute;
	left: 1rem;
	top: 1rem;
	width: 2rem;
	height: 2rem;
	line-height: 2rem;
	text-align: center;
	font-weight: 700;
	color: #fff;
	background: #477000;
	border-radius: 50%;
}

.step__title,
.way__title {
	margin-top: 0.25rem;
}

.ways {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.way {
	margin: 0;
}

@media screen and (max-width: 767px) {
	.step {
		padding-left: 3.25rem;
	}
	.step::before {
		left: 0.75rem;
	}
}

/* Home page */
.home-lead {
	max-width: 46rem;
	font-size: 1.35rem;
	line-height: 1.45;
}

.home-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0 !important;
	padding: 0;
	list-style: none !important;
}

.home-stats li {
	flex: 1 1 12rem;
	max-width: 16rem;
	margin: 0;
	padding: 1rem 1.25rem;
	background: #fff;
	border-top: 5px solid #477000;
	border-radius: 6px;
}

.home-stats__number {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: #477000;
}

.home-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	max-width: 60rem;
}

.home-contact iframe {
	width: 100%;
	height: 320px;
	border: 1px solid #d8d3c0;
	border-radius: 6px;
	background: #fff;
}

@media screen and (max-width: 767px) {
	.home-contact {
		grid-template-columns: 1fr;
	}
	.home-contact iframe {
		height: 240px;
	}
}

/* Center the home page content */
.home main {
	text-align: center;
}

.home .home-lead {
	margin-left: auto;
	margin-right: auto;
}

.home .home-stats {
	justify-content: center;
}

.home .home-contact {
	margin: 0 auto;
}

.home main p {
	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
}

/* Logo, menu and footer are centered on every page */
body > header {
	text-align: center;
}

/* Keep the stacked phone menu left-aligned so it's easy to scan */
nav.menu {
	text-align: left;
}

@media screen and (min-width: 767px) {
	nav.menu ul,
	nav.menu.menu--js ul {
		justify-content: center;
	}
}

.footer__contact {
	justify-content: center;
	text-align: center;
}

.footer__copyright {
	text-align: center;
}

/* Shopping hours (When and How to Shop page) */
.shop-hours {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin: 1rem 0 !important;
	padding: 0;
	list-style: none !important;
}

.shop-hours__item {
	margin: 0 !important;
	padding: 1rem 1.25rem;
	background: #fff;
	border-top: 5px solid #477000;
	border-radius: 6px;
}

.shop-hours__day {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
}

.shop-hours__time {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #477000;
}

.shop-hours__note {
	margin: 0;
}

/* Nearby Pantries page */
.town-list {
	margin: 0.5rem 0 1rem;
	line-height: 2;
}

.pantry-town {
	margin-top: 2rem;
	padding-bottom: 0.25rem;
	border-bottom: 2px solid #477000;
	scroll-margin-top: 1rem;
}

.pantry {
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	background: #fff;
	border-left: 6px solid #477000;
	border-radius: 6px;
}

.pantry--featured {
	border-left-color: #bf2238;
}

.pantry h3,
.pantry__name {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

.pantry p {
	margin: 0 0 0.5rem;
}

.pantry__hours {
	margin-bottom: 0.5rem !important;
}
