/*
Theme Name: LFW Cabin John
Theme URI: https://lfw.com/
Author: LFW.com LLC
Author URI: https://lfw.com/
Description: The website of the Cabin John Citizens Association. Volunteers fill in plain fields for events, news, Village News issues, meeting minutes and photo albums. Pages use Secure Custom Fields Flexible Content. Colors, type and the homepage order live in concept.php; the accent palette is chosen under Appearance, Site colors.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lfw-cabin-john
*/

/* Colors and fonts arrive as custom properties from concept.php (base colors plus the active palette). Light only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font-body); overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.w { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; color: #fff; }
h1, h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); }

/* Header */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 24px; background: var(--action); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-quiet { background: var(--morning); color: var(--ink); }
.btn-quiet:hover { color: #fff; }
.page-body > p:has(.btn-quiet) { margin-bottom: 36px; }

/* Homepage, Concept A */
.ah { position: relative; }
.ah img { width: 100%; height: clamp(300px, 48vw, 640px); object-fit: cover; object-position: 50% 28%; }
.photo-credit { position: absolute; right: 0; bottom: 0; padding: 3px 10px; background: rgb(22 33 29 / 78%); color: #fff; font-size: 14px; }
.at { background: var(--foot); color: #fff; }
.at .w { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px; }
.at h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.04; color: #fff; }
.at p { font-size: 19px; }
.welcome { padding-top: 48px; font-size: 21px; line-height: 1.45; }
.welcome p { max-width: 60ch; }
.welcome p + p { margin-top: 12px; }
.welcome .welcome-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; margin-bottom: 40px; font-size: 17px; }
.an { padding-block: 48px 72px; }
.as { padding-block: 72px; }
.an h2, .as h2, .section > h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-bottom: 18px; }
.ev li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding-block: 14px; }
.ev time { font-weight: 700; }
.ev b { display: block; font-weight: 600; }
.ev span:not(.sr) { color: var(--muted); }
.ev-act { grid-column: 2; justify-self: start; color: var(--river); font-weight: 600; }
.plain { color: inherit; text-decoration: none; }
.plain:hover { text-decoration: underline; color: inherit; }
.more { margin-top: 22px; font-weight: 600; }
.asg { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 48px; }
.asg h3 { font-size: 17px; font-weight: 700; margin-top: 18px; }
.asg h3:first-child { margin-top: 0; }
.asg .lead-link { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--river); }
.search { margin-top: 26px; max-width: 460px; }
.search label { display: block; margin-bottom: 6px; font-weight: 600; }
.search-row { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--muted); background: #fff; color: var(--ink); font: inherit; }
.search button { min-height: 44px; padding: 0 18px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.page-body .search { color: var(--ink); }

/* Inside pages */
.page-body { padding-block: 48px 72px; }
.section { margin-bottom: 48px; }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 28px; line-height: 1.15; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose h4 { font-size: 17px; margin-top: 1.3em; margin-bottom: 0; }
.prose ul { list-style: square outside; padding-left: 1.3em; }
.prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: .3em; }
.prose img { margin-block: 8px; }
.prose img.alignleft, .prose figure.alignleft { float: left; margin: 6px 22px 12px 0; max-width: 45%; }
.prose img.alignright, .prose figure.alignright { float: right; margin: 6px 0 12px 22px; max-width: 45%; }
.prose img.aligncenter, .prose figure.aligncenter { margin-inline: auto; }
.prose figcaption, .photo figcaption { margin-top: 6px; color: var(--muted); font-size: 15px; }
.prose blockquote { margin: 1em 0; padding-left: 18px; border-left: 3px solid var(--canopy); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.prose th, .prose td { padding: 6px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose::after { content: ""; display: block; clear: both; }
.photo img { width: 100%; max-width: 900px; }
.date { margin-bottom: 18px; color: var(--muted); }
.kick { color: var(--canopy); font-weight: 700; font-size: 15px; }
.post-row { display: flex; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.post-row h2 { font-size: 26px; line-height: 1.15; }
.post-row .date { margin-bottom: 6px; font-size: 15px; }
.post-thumb { flex: 0 0 200px; }
.tabs-plain { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 24px; font-weight: 600; }
.tabs-plain a { display: inline-block; padding-block: 3px; }
.tabs-plain a[aria-current] { color: var(--ink); text-decoration: none; }
.years { font-weight: 500; }
.link-list li { padding-block: 10px; border-top: 1px solid var(--line); }
.link-list a { font-weight: 600; }
.link-list span { display: block; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--morning); }
.issues .card img { aspect-ratio: 3 / 4; object-position: top; border: 1px solid var(--line); }
.card strong { display: block; margin-top: 10px; font-weight: 600; }
.card span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--morning); }
.cj-mail-button { padding: 0 2px; border: 0; background: none; color: var(--river); font: inherit; text-decoration: underline; cursor: pointer; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 32px; }
.page-numbers { display: inline-block; min-width: 28px; padding-block: 3px; }
.page-numbers.current { font-weight: 700; }
.viewer { max-width: min(1100px, 96vw); max-height: 96vh; padding: 12px; border: 0; }
.viewer::backdrop { background: rgb(22 33 29 / 86%); }
.viewer img { max-height: 76vh; margin-inline: auto; }
.viewer p { margin-top: 8px; color: var(--muted); }
.viewer-bar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.viewer-bar button { min-height: 40px; padding: 0 14px; border: 1px solid var(--muted); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }

/* Concept B, the neighborhood paper */
.bm { padding-block: 28px 24px; text-align: center; }
.bm h1 { font-size: clamp(40px, 8.6vw, 112px); line-height: 1; letter-spacing: -.02em; }
.bm p { margin-top: 10px; color: var(--muted); }
/* Home hero: everything current on the first screen, on top of the bridge. */
.hh { position: relative; isolation: isolate; background: var(--ink); color: #fff; }
.hh-photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hh-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hh-photo .photo-credit { z-index: 1; top: 0; bottom: auto; height: fit-content; }
.hh .w { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-content: end; align-items: end; min-height: clamp(600px, calc(100vh - 84px), 740px); padding-block: 40px; }
.hh-intro { display: flex; flex-direction: column; max-width: 520px; margin-left: -24px; padding: 26px 30px 28px 24px; background: var(--foot); font-size: 18px; line-height: 1.45; }
.hh-intro h1 { color: #fff; font-size: clamp(44px, 4.8vw, 66px); line-height: 1.02; }
.hh-intro h1 { margin-bottom: 16px; }
.hh-intro p + p { margin-top: 10px; }
.hh-intro a:not(.btn) { color: #fff; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hh-intro a:not(.btn):hover { color: var(--accent); }
.hh .hh-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 22px; }
.hh-btn { background: var(--accent); color: var(--ink); }
.hh-btn-quiet { background: #fff; color: var(--ink); }
.hh-btn:hover, .hh-btn-quiet:hover { background: var(--foot); color: #fff; }
.hh-now { padding: 22px 24px 14px; background: var(--paper); color: var(--ink); }
.hh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hh-head h2 { font-size: 26px; line-height: 1.15; }
.hh-head a { color: var(--link); font-size: 15px; font-weight: 600; white-space: nowrap; }
.hh-list { margin: 6px 0 16px; padding: 0; list-style: none; }
.hh-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; margin: 0; padding-block: 6px; border-top: 1px solid var(--line); line-height: 1.3; font-size: 16px; }
.hh-list time { color: var(--foot); font-size: 15px; font-weight: 700; }
.hh-list a { display: -webkit-box; overflow: hidden; color: var(--ink); font-weight: 500; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hh-list a:hover { color: var(--link); text-decoration: underline; }
.hh :focus-visible { outline-color: var(--accent); }
.hh-now :focus-visible { outline-color: var(--river); }
@media (max-width: 999px) {
	.hh { background: var(--foot); }
	.hh-photo { position: relative; inset: auto; z-index: auto; }
	.hh-photo img { height: clamp(220px, 50vw, 420px); }
	.hh-photo .photo-credit { top: auto; bottom: 0; }
	.hh .w { display: block; min-height: 0; padding-block: 24px 0; }
	.hh-intro { max-width: 620px; margin-left: 0; padding: 0 0 26px; }
	.hh-now { margin-inline: -24px; padding-inline: 24px; }
}
/* The next big event, right under the hero. */
.ap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--brick-field); color: #fff; }
.ap-copy { align-self: center; padding: 40px 48px 40px max(24px, calc((100vw - 1240px) / 2 + 24px)); }
.ap h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; }
.ap p { margin: 12px 0 22px; font-size: 19px; }
.ap img { width: 100%; height: clamp(260px, 26vw, 400px); object-fit: cover; object-position: 50% 30%; }
@media (max-width: 760px) {
	.ap { grid-template-columns: minmax(0, 1fr); }
	.ap-copy { order: 2; padding: 26px 24px 30px; }
	.ap img { height: clamp(200px, 52vw, 320px); }
}
/* Title cards take any of three colors. They carry no meaning. */
.card-yellow { --card: var(--sun-field); --card-ink: var(--ink); }
.card-red { --card: var(--brick-field); --card-ink: #fff; }
.card-blue { --card: var(--river); --card-ink: #fff; }
.at-page { background: var(--card); color: var(--card-ink); }
.at-page .w { display: block; }
.at-page p { margin-top: 10px; max-width: 60ch; }
.at-date { display: flex; align-items: flex-start; gap: 10px; }
.at-date svg { flex: none; margin-top: 3px; }
.at-page h1 { color: var(--card-ink); font-size: clamp(38px, 5.4vw, 68px); text-wrap: balance; }
.page-photo.focus-top img { object-position: 50% 0; }
.page-photo.focus-upper img { object-position: 50% 25%; }
.page-photo.focus-lower img { object-position: 50% 75%; }
.page-photo.focus-bottom img { object-position: 50% 100%; }
.bf { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; padding-block: 32px 72px; }
.bl h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin: 18px 0 10px; }
.bl img { width: 100%; }
.bl .lead-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.bf aside h2 { font-size: 26px; margin-bottom: 6px; }
.mini li { grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; padding-block: 10px; }
.bt { background: var(--morning); padding-block: 56px; }
.bs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.bs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bs .bv img { object-position: top; }
.bs h2 { font-size: 24px; line-height: 1.2; margin-top: 12px; }
.bs p { color: var(--muted); }

/* Concept C, a year in Cabin John */
.cy { background: var(--sun); }
.cy .w { padding-block: 44px; }
.cy h1 { font-size: clamp(44px, 9vw, 128px); line-height: .98; letter-spacing: -.03em; }
.cy p { font-size: 21px; margin-top: 12px; }
.cm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cm.r .ci { order: 2; }
.ci img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.ct { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.mo { font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--river); }
.ct h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -.02em; }
.concept-c .btn { background: var(--river); }
.cs { padding-block: 72px; }
.cs > h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 22px; }
.cg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cg h3 { font-size: 17px; }

/* LFW Forms takes the site's colors. */
.lfwf { --lfwf-ink: var(--ink); --lfwf-muted: var(--muted); max-width: 560px; }
.lfwf button[type=submit] { background: var(--canopy); color: #fff; }

@media (max-width: 900px) {
	.cards, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.asg, .bf, .bs, .cm, .cg { grid-template-columns: minmax(0, 1fr); }
	.cm.r .ci { order: 0; }
	.ct { padding: 32px 24px; }
	.ci img { min-height: 260px; }
	.asg figure { max-width: 220px; }
	.ev li { grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; }
	.an, .as { padding-block: 48px; }
	.post-thumb { flex-basis: 110px; }
	.post-row h2 { font-size: 22px; }
	.prose img.alignleft, .prose img.alignright, .prose figure.alignleft, .prose figure.alignright { float: none; margin: 8px 0; max-width: 100%; }
}


.cl li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding-block: 5px; font-size: 18px; }
.cl span { font-weight: 700; }
.cl a { color: inherit; font-weight: 600; }



/* The header: one solid green band, site title on the left, everything else on the right. */
.bar { background: var(--foot); color: #fff; }
.bar .w { display: flex; align-items: center; gap: 0 18px; padding-block: 12px; }
.bar :focus-visible { outline-color: var(--accent); }
.wm { display: inline-grid; flex: none; margin-right: auto; color: #fff; font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1; text-transform: uppercase; text-decoration: none; }
.wm:hover { color: #fff; }
.wm span { font: 600 11px/1 var(--font-body); letter-spacing: .19em; }
.wm b { padding-block: 5px 4px; color: var(--accent); font-size: 29px; font-weight: inherit; line-height: 1; letter-spacing: .035em; }
.wm span:last-child { justify-self: end; margin-right: -.19em; }
.bar-nav { display: flex; gap: 0 16px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.bar-nav > li { position: relative; display: flex; align-items: center; margin: 0; white-space: nowrap; }
.bar-nav > li > a { display: inline-block; padding-block: 10px; color: #fff; font-size: 16px; text-decoration: none; text-underline-offset: 7px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.bar-nav > li > a:hover, .bar-nav > .current-menu-item > a, .bar-nav > .current-menu-ancestor > a { color: #fff; text-decoration-line: underline; }
.bar-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 20; display: none; width: 320px; margin: 0; padding: 8px 0; background: var(--paper); box-shadow: 0 10px 28px rgb(22 33 29 / 24%); list-style: none; white-space: normal; }
.bar-nav .sub-menu li { margin: 0; }
.bar-nav .sub-menu a { display: block; padding: 8px 16px; color: var(--ink); font-weight: 500; text-decoration: none; }
.bar-nav .sub-menu a:hover { background: var(--morning); color: var(--ink); }
.bar-nav > li.open > .sub-menu { display: block; }
html:not(.js) .bar-nav > li:hover > .sub-menu, html:not(.js) .bar-nav > li:focus-within > .sub-menu { display: block; }
.bar-nav > li:nth-last-child(-n+2) .sub-menu { right: 0; left: auto; }
.sub-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; text-underline-offset: 7px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; cursor: pointer; }
.sub-toggle:hover, .open > .sub-toggle, .bar-nav > .current-menu-ancestor > .sub-toggle { text-decoration-line: underline; }
.sub-toggle::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.open > .sub-toggle::after { margin-top: 4px; transform: rotate(225deg); }
.bar-search { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: #fff; }
.bar-search:hover { color: var(--accent); }
.act { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; background: var(--accent); color: var(--ink); font-weight: 700; line-height: 1.2; text-decoration: none; }
.act:hover { background: #fff; color: var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 1239px) {
	.bar .w { flex-wrap: wrap; }
	.bar-search { order: 2; }
	.bar .act { order: 3; }
	.menu-toggle { order: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 2px solid #fff; background: transparent; color: #fff; font: 600 16px/1 var(--font-body); cursor: pointer; }
	.bar nav { order: 5; flex-basis: 100%; }
	.js .bar nav { display: none; }
	.bar-nav { display: block; margin-top: 8px; padding-bottom: 8px; }
	.bar-nav > li { flex-wrap: wrap; justify-content: space-between; white-space: normal; }
	.bar-nav .sub-menu { position: static; display: none; flex-basis: 100%; width: auto; padding: 0 0 10px 14px; background: transparent; box-shadow: none; }
	.bar-nav .sub-menu a { padding: 8px 0; color: #fff; }
	.bar-nav .sub-menu a:hover { background: transparent; color: var(--accent); }
	html:not(.js) .bar-nav .sub-menu { display: block; }
	.sub-toggle { justify-content: space-between; width: 100%; min-height: 44px; }
}
/* Phones: the title, search, Support and an icon-only menu button share one line. */
@media (max-width: 560px) {
	.bar .w { gap: 0 4px; padding-block: 10px; padding-inline: 16px; }
	.wm b { font-size: 22px; }
	.wm span { font-size: 9px; letter-spacing: .15em; }
	.wm span:last-child { margin-right: -.15em; }
	.bar-search { width: 40px; }
	.bar .act { padding-inline: 12px; }
	.bar .act span { display: none; }
	.menu-toggle { width: 44px; padding: 0; justify-content: center; }
	.menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 374px) {
	.bar .w { padding-inline: 12px; }
	.bar-search { width: 36px; }
	.bar .act { padding-inline: 10px; }
}
/* The narrowest phones: Support moves into the open menu. */
@media (max-width: 355px) {
	.js .bar .act { display: none; }
}

/* The small-screen menu fills the screen. */
html:has(.menu-dialog[open]) { overflow: hidden; }
.menu-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow-y: auto; border: 0; background: var(--foot); color: #fff; }
.menu-dialog :focus-visible { outline-color: var(--accent); }
.bar-nav button, .menu-dialog button, .menu-dialog a { -webkit-tap-highlight-color: transparent; }
.menu-sheet { display: flex; flex-direction: column; min-height: 100%; padding: 12px 24px 24px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.menu-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.menu-dialog .bar-nav { margin: 0; padding: 0; border-bottom: 1px solid rgb(255 255 255 / 24%); }
.menu-dialog .bar-nav > li { display: block; min-height: 0; border-top: 1px solid rgb(255 255 255 / 24%); }
.menu-dialog .sub-toggle { min-height: 56px; padding: 0; font: 600 19px/1.2 var(--font-body); text-decoration: none; }
.menu-dialog .sub-toggle::after { width: 9px; height: 9px; margin-right: 17px; }
.menu-dialog .open > .sub-toggle { color: var(--accent); }
.menu-dialog .bar-nav .sub-menu { padding: 0 0 12px; }
.menu-dialog .bar-nav .sub-menu a { padding-block: 10px; font-size: 17px; font-weight: 400; }
.menu-dialog .act { width: 100%; min-height: 52px; font-size: 18px; }
.menu-slot { padding-bottom: 20px; }
@media (prefers-reduced-motion: no-preference) {
	.menu-dialog[open] { animation: menu-in .22s cubic-bezier(.32, .72, 0, 1); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) { .menu-sheet { padding: 10px 16px 20px; } .menu-top { padding-bottom: 10px; } .menu-dialog .wm b { font-size: 22px; } .menu-dialog .wm span { font-size: 9px; letter-spacing: .15em; } .menu-dialog .wm span:last-child { margin-right: -.15em; } }
@media (min-width: 1240px) { .menu-dialog { display: none; } }

/* The footer: title, search and Support, then every menu, then the credit. */
.foot { padding-block: 40px 22px; background: var(--foot); color: #fff; }
.foot a:not(.act):not(.wm) { color: #fff; text-decoration-color: rgb(255 255 255 / 45%); text-underline-offset: 3px; }
.foot a:not(.act):not(.wm):hover { color: var(--accent); text-decoration-color: currentColor; }
.foot :focus-visible { outline-color: var(--accent); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / 28%); }
.foot-top .wm { margin-right: auto; }
/* Search opens the same sheet as the header. The form below is only for browsers without JavaScript. */
#site-search { display: flex; align-items: center; }
.foot .bar-search { color: #fff; }
.foot .bar-search:hover { color: var(--accent); }
html:not(.js) .foot .bar-search, .js .foot .search { display: none; }
.foot .search { width: min(100%, 340px); margin: 0; }
.foot .search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot .search-row { gap: 0; }
.foot .search input { border: 1px solid rgb(255 255 255 / 70%); border-right: 0; background: transparent; color: #fff; }
.foot .search input::placeholder { color: #d5ded9; opacity: 1; }
.foot .search button { border-color: rgb(255 255 255 / 70%); color: #fff; }
.foot .search button:hover { background: #fff; color: var(--ink); }
.foot-menu { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 30px 0 34px; list-style: none; }
.foot-menu li { margin: 0; }
.foot-menu > li > a, .foot-contact strong { display: block; padding-bottom: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.foot-menu .sub-menu { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.3; }
.foot-menu .sub-menu a { display: block; padding-block: 5px; text-decoration: none; }
.foot-menu .sub-menu a:hover { text-decoration: underline; }
.foot-contact p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 28%); font-size: 15px; }
@media (max-width: 999px) {
	.foot-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.foot-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	html:not(.js) #site-search { flex-basis: 100%; order: 3; }
	html:not(.js) .foot .search { width: 100%; }
	.foot-menu .sub-menu a { padding-block: 8px; }
}

/* A news story: a short title band, then the story beside what else is new. */
.at-story h1 { max-width: 28ch; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
.story-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; max-width: none; font-size: 17px; }
.at-page .story-meta { max-width: none; }
.story-meta a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.story-meta a:hover { color: inherit; text-decoration-thickness: 2px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.story .prose { font-size: 18px; line-height: 1.6; }
.story .prose h2 { font-size: 27px; line-height: 1.2; }
.story-side { position: sticky; top: 24px; }
.story-issue { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: var(--foot); color: #fff; line-height: 1.3; text-decoration: none; }
.story-issue:hover { background: var(--ink); color: #fff; }
.story-issue img { display: block; width: 100%; height: auto; }
.story-issue b { display: block; margin-bottom: 2px; font: var(--heading-weight) 22px/1.15 var(--font-heading); }
.story-side h2 { margin: 32px 0 14px; font-size: 26px; line-height: 1.15; }
.story-more { margin: 0 0 20px; padding: 0; list-style: none; }
.story-more li { margin: 0 0 16px; }
.story-more a { display: block; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.story-more a:hover { color: var(--link); text-decoration: underline; }
.story-more time { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
	.story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.story-side { position: static; }
}

/* A Village News issue: read it here, on any screen big enough for a PDF. */
.issue-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.issue-viewer { display: block; width: 100%; height: min(86vh, 1040px); border: 1px solid var(--line); background: var(--morning); }
.issue-cover { display: none; }
.issue-cover-still { width: 300px; margin-bottom: 18px; border: 1px solid var(--line); }
.issue-prior { margin-top: 56px; }
.issue-prior h2 { margin-bottom: 20px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.cn-more { margin-top: 24px; }
@media (max-width: 760px) {
	.issue-viewer { display: none; }
	.issue-cover { display: block; width: min(100%, 420px); }
	.issue-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
}

/* Search drops from the top of the page in the colors of the site title. */
.search-dialog { position: fixed; inset: 0 0 auto; width: 100%; max-width: none; max-height: 100dvh; margin: 0; padding: 0; overflow: auto; border: 0; background: var(--ink); color: #fff; }
.search-dialog::backdrop { background: rgb(22 33 29 / 62%); }
.search-dialog :focus-visible { outline-color: var(--accent); }
.search-sheet { position: relative; max-width: 1240px; margin-inline: auto; padding: 44px 24px 40px; }
.search-sheet label { display: block; padding-right: 56px; color: var(--accent); font: 600 14px/1.2 var(--font-body); letter-spacing: .17em; text-transform: uppercase; }
.search-line { display: flex; align-items: center; margin-top: 14px; border-bottom: 3px solid #fff; }
.search-line:focus-within { border-color: var(--accent); }
.search-line input { flex: 1; min-width: 0; padding: 6px 0 12px; border: 0; background: transparent; color: #fff; font: var(--heading-weight) clamp(30px, 5.4vw, 60px)/1.15 var(--font-heading); caret-color: var(--accent); appearance: none; }
.search-line input:focus-visible { outline: 0; }
.search-line input::placeholder { color: #a9b5ae; opacity: 1; }
.search-line input::-webkit-search-cancel-button { display: none; }
.search-go { display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 0; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; }
.search-go:hover { background: #fff; }
.search-quick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-top: 26px; }
.search-quick h2 { margin: 0; color: #c9d2cc; font: 400 16px/1.4 var(--font-body); }
.search-quick ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.search-quick li { margin: 0; }
.search-quick a { display: inline-block; padding-block: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.search-quick a:hover { color: var(--accent); }
.search-close { position: absolute; top: 28px; right: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.search-close:hover { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
	.search-dialog[open] { animation: search-drop .24s var(--ease-out); }
	.search-dialog[open]::backdrop { animation: search-fade .24s var(--ease-out); }
}
@keyframes search-drop { from { transform: translateY(-24px); opacity: 0; } }
@keyframes search-fade { from { opacity: 0; } }
@media (max-width: 640px) {
	.search-sheet { padding: 28px 16px 28px; }
	.search-close { top: 14px; right: 12px; }
	.search-line input { font-size: 23px; }
	.search-go { width: 48px; height: 48px; }
	.search-quick { display: block; }
	.search-quick ul { margin-top: 4px; }
}

/* The community's own menus. */

/* Page photographs and sections made of the community's own pictures. */
.page-photo { position: relative; }
.photo-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--accent); }
.photo-credit a:focus-visible { outline-color: #fff; }
.page-photo img { width: 100%; height: clamp(260px, 38vw, 540px); object-fit: cover; object-position: 50% 40%; }
.page-body { padding-top: 56px; }
/* Inside pages: the story beside its photographs. */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-bottom: 72px; }
.story .section { margin-bottom: 0; }
.story .prose > p:first-of-type { font-size: 22px; line-height: 1.45; }
.story .prose img { max-width: min(100%, 420px); height: auto; }
.page-body .prose { font-size: 18px; }
.page-band { margin-top: 24px; }
.story-photos { position: sticky; top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.story-photos img { width: 100%; height: clamp(170px, 15vw, 220px); object-fit: cover; }
.story-photos img:first-child { grid-column: 1 / -1; height: clamp(240px, 24vw, 340px); }
.story-photos img:nth-child(2):last-child { grid-column: 1 / -1; }
@media (min-width: 901px) {
	.cards { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.cards > li { grid-column: span 3; }
	.card img { aspect-ratio: auto; height: clamp(190px, 20vw, 290px); }
	.issues .card img { height: auto; aspect-ratio: 3 / 4; }
	.cards > li:only-child { grid-column: span 6; }
	.cards > li:nth-child(4n+1):nth-last-child(2), .cards > li:nth-child(4n+1):nth-last-child(2) + li { grid-column: span 6; }
	.cards > li:nth-child(4n+1):nth-last-child(3), .cards > li:nth-child(4n+1):nth-last-child(3) + li, .cards > li:nth-child(4n+1):nth-last-child(3) + li + li { grid-column: span 4; }
	.cards > li:nth-child(4n+1):nth-last-child(5), .cards > li:nth-child(4n+1):nth-last-child(5) + li, .cards > li:nth-child(4n+1):nth-last-child(5) + li + li { grid-column: span 4; }
	.cards > li:nth-child(4n+1):nth-last-child(5) + li + li + li, .cards > li:nth-child(4n+1):nth-last-child(5) + li + li + li + li { grid-column: span 6; }
}
@media (max-width: 900px) {
	.story { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 48px; }
	.story-photos { position: static; }
	.story .prose > p:first-of-type { font-size: 20px; }
	.cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.story-photos img { height: clamp(150px, 42vw, 260px); }
	.story-photos img:first-child { height: clamp(220px, 58vw, 380px); }
}
/* The Classic palette's accent colors, as a fallback. The active palette in concept.php prints its own. */
:root { --accent: #eeb04f; --sun-field: #f2b632; --brick-field: #a3231b; }
.section-wide { margin-bottom: 96px; }
.section-intro { max-width: 60ch; margin-bottom: 36px; font-size: 21px; line-height: 1.45; }
.section-more { margin-top: 40px; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.tiles li:nth-child(4n+1), .tiles li:nth-child(4n) { grid-column: span 7; }
.tiles li:nth-child(4n+2), .tiles li:nth-child(4n+3) { grid-column: span 5; }
.tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tiles a, .guide a { display: block; height: 100%; text-decoration: none; }
.tiles a { --tile: var(--sun-field); --tile-ink: var(--ink); background: var(--tile); color: var(--tile-ink); }
.tiles a:hover { color: var(--tile-ink); }
.tiles li:nth-child(4n+2) a { --tile: var(--brick-field); --tile-ink: #fff; }
.tiles li:nth-child(4n+3) a { --tile: var(--river); --tile-ink: #fff; }
.tiles li:nth-child(4n) a { --tile: var(--canopy); --tile-ink: #fff; }
.tile-photo { display: block; overflow: hidden; }
.tile-photo img { width: 100%; height: clamp(280px, 32vw, 460px); object-fit: cover; transition: transform .25s var(--ease-out); }
.row-when { display: block; font-weight: 700; }
.tiles .row-when, .tiles .row-title, .tiles .row-note { padding-inline: 24px; }
.tiles .row-title { padding-top: 20px; }
.tiles .row-when { padding-top: 4px; }
.tiles .row-note { padding-bottom: 24px; max-width: none; }
.guide .row-when { color: var(--link); }
.row-title { display: block; font: var(--heading-weight) clamp(27px, 2.8vw, 38px)/1.12 var(--font-heading); }
.tiles a:hover .row-title, .guide a:hover .row-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.row-note { display: block; max-width: 56ch; margin-top: 8px; font-size: 18px; line-height: 1.5; }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide a { padding: 28px; background: var(--morning); color: var(--ink); }


/* Homepage bands: the old site's photo tiles, edge to edge. */
/* Section bars run edge to edge, like the photos under them. A thick rule marks each new section. */
.w.band-head { display: flex; align-items: baseline; gap: 4px 22px; flex-wrap: wrap; max-width: none; padding: 16px 24px 15px; }
/* Activities: a gold field with room around everything; the photos sit inside the page margins. */
.band-activities { padding-block: clamp(40px, 5vw, 72px); background: var(--sun-field); color: var(--ink); }
.band-activities .w.band-head { max-width: 1240px; padding: 0 24px 28px; gap: 6px 28px; }
.band-activities .band-head h2 { font-size: clamp(38px, 5vw, 64px); }
.band-activities .mosaic { gap: 16px; }
.band-activities .mosaic img { height: clamp(200px, 18vw, 260px); }
.band-activities .mosaic b { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 14px; font-size: clamp(18px, 1.5vw, 21px); }
/* Community Service: copy beside a smaller photo grid, so two photo walls never stack. */
.band-service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--river); color: #fff; }
.band-panel { align-self: center; padding: 40px 48px 40px max(24px, calc((100vw - 1240px) / 2 + 24px)); }
.band-panel h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; }
.band-panel p { margin: 12px 0 22px; font-size: 19px; }
.band-links { margin: 0 0 24px; padding: 0; list-style: none; }
.band-links li { margin: 0; }
.band-links a { display: inline-block; padding-block: 4px; color: #fff; font-size: 18px; font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.band-links a:hover { color: var(--accent); }
/* On the blue and red bands a blue focus ring would vanish; the accent shows on both in every palette. */
.band-service :focus-visible, .ap :focus-visible { outline-color: var(--accent); }
.band-photo { margin: 0; }
.band-photo img { width: 100%; height: 100%; min-height: 380px; max-height: 560px; object-fit: cover; }
/* The Village News gets the room the community gives it. */
.vn { background: var(--paper); }
.vn-in { display: grid; grid-template-columns: 300px minmax(0, 1fr) 220px; gap: 48px; align-items: center; padding-block: 56px; }
.vn-cover { display: block; border: 1px solid var(--line); }
.vn-cover img { display: block; width: 100%; height: auto; }
.vn-copy h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; }
.vn-issue { margin: 8px 0 16px; color: var(--brick-field); font-size: 21px; font-weight: 700; }
.vn-copy p:not(.vn-issue) { max-width: 46ch; margin-bottom: 22px; font-size: 19px; }
.vn-recent h3 { margin-bottom: 10px; font: 700 17px/1.3 var(--font-body); }
.vn-recent ul { margin: 0 0 16px; padding: 0; list-style: none; }
.vn-recent li { margin: 0; }
.vn-recent li a { display: inline-block; padding-block: 5px; color: var(--ink); text-underline-offset: 4px; }
.vn-all { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 999px) {
	.vn-in { grid-template-columns: 220px minmax(0, 1fr); gap: 28px 32px; }
	.vn-recent { grid-column: 2; }
}
@media (max-width: 640px) {
	.vn-in { grid-template-columns: minmax(0, 1fr); padding-block: 36px; }
	.vn-cover { width: min(70%, 260px); }
	.vn-recent { grid-column: auto; }
}
.band-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.band-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: inherit; text-underline-offset: 4px; }
.band-head a svg { flex: none; transition: transform .15s var(--ease-out); }
.band-head a:hover { color: inherit; text-decoration-thickness: 2px; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaic a { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.mosaic img { width: 100%; height: clamp(220px, 21vw, 340px); object-fit: cover; transition: transform .25s var(--ease-out); }
.mosaic b { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 24px); padding: 8px 24px; text-wrap: balance; background: var(--card); color: var(--card-ink); font: var(--heading-weight) clamp(20px, 1.8vw, 25px)/1.15 var(--font-heading); }
.mosaic a:hover { color: #fff; }
@media (max-width: 900px) {
	.tiles { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.band-activities .mosaic { gap: 12px; }
	.band-activities .mosaic img { height: clamp(170px, 44vw, 300px); }
	.band-activities .mosaic b { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 10px; font-size: 17px; }
	.band-service { grid-template-columns: minmax(0, 1fr); }
	.band-panel { padding: 28px 24px 30px; }
	.band-photo img { min-height: 0; height: clamp(220px, 56vw, 420px); }
	.mosaic img { height: clamp(170px, 44vw, 320px); }
	.mosaic b { font-size: 18px; padding: 6px 10px; }
	.band-head { padding-block: 44px 20px; }
	.tiles li:nth-child(n) { grid-column: auto; }
	.tile-photo img { height: clamp(220px, 58vw, 420px); }
	.guide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.guide a { padding: 22px; }
}
@media (max-width: 460px) {
}
@media (prefers-reduced-motion: reduce) {
	.tile-photo img, .mosaic img { transition: none; }
}

/* Motion: quick and responsive. Nothing here delays reading, and reduced motion turns it off. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) {
	.mosaic a:hover img { transform: scale(1.04); }
	.tiles a:hover img { transform: scale(1.03); }
	.band-head a:hover svg { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) {
	.btn, .act, .search-go, .menu-toggle, .bar-search, .search-close { transition: transform .14s var(--ease-out), background-color .15s ease, color .15s ease; }
	.btn:active, .act:active, .search-go:active, .menu-toggle:active, .bar-search:active, .search-close:active { transform: scale(.97); }
	.sub-toggle::after { transition: transform .15s var(--ease-out), margin .15s var(--ease-out); }
}

/* An embedded Google Form (cj_google_form_embeds). */
.prose .form-embed { margin-top: 24px; max-width: 760px; }
.prose .form-embed iframe { display: block; width: 100%; height: 1400px; border: 0; }
.prose .form-embed-link { margin-top: 8px; font-size: 15px; }
@media (max-width: 600px) { .prose .form-embed iframe { height: 1700px; } }

/* Publications: covers in a grid, oldest first. One column on phones. */
.page-photo-short img { height: clamp(150px, 17vw, 260px); }
.pubs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; align-items: start; }
.pub-cover img { width: 100%; aspect-ratio: 612 / 792; object-fit: cover; object-position: top; border: 1px solid var(--line); background: var(--morning); }
.pub-title { margin: 18px 0 0; font: var(--heading-weight) 25px/1.2 var(--font-heading); text-wrap: balance; }
.pub-year { margin-top: 4px; color: var(--muted); font-weight: 600; }
.pub-note { margin-top: 12px; font-size: 16px; line-height: 1.55; }
.pub-note p + p { margin-top: .8em; }
.pub-open { margin-top: 16px; }
.pub-open a { display: inline-flex; align-items: flex-start; gap: 8px; padding-block: 10px; font-weight: 600; text-underline-offset: 3px; }
.pub-open svg { flex: none; margin-top: 2px; }
.pub-size { font-weight: 400; }
@media (max-width: 1000px) { .pubs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pubs-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } .pub-cover img { max-width: 420px; } }

/* Community notice: a full-width band under the header. Off when it has no text. */
.notice-band { background: var(--morning); color: var(--ink); border-bottom: 1px solid var(--line); }
.notice-band[hidden] { display: none; }
.notice-band .w { display: flex; align-items: flex-start; gap: 16px; padding-block: 14px; }
.notice-text { flex: 1; min-width: 0; max-width: 80ch; font-size: 17px; line-height: 1.5; }
.notice-text p + p { margin-top: .4em; }
.notice-link a { font-weight: 700; text-underline-offset: 3px; }
.notice-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -10px -8px auto; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.notice-close:hover { background: var(--line); }
.notice-close[hidden] { display: none; }
main[tabindex="-1"]:focus { outline: none; }
