/* Rowley Park — internal page components (loaded after site.css) */

/* Plain title band for pages without a photograph */
.page-band { background: var(--stone); border-bottom: 1px solid rgba(180, 154, 100, .55); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.page-band .crumbs, .page-band .crumbs a { color: var(--ink-soft); }
.page-band h1 { font: 500 clamp(2.4rem, 5.5vw, 4rem)/1.05 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.page-band .lede { margin-top: 1rem; max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; }

/* Running text */
.page-body { padding-block: clamp(3rem, 7vw, 5rem); }
.prose { max-width: var(--measure); display: grid; gap: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.25rem; }
.prose h3 { font-size: 1.2rem; margin-top: .75rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--gold); }
.prose .callout { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1.1rem; color: var(--green); font-style: italic; }
.prose strong { color: var(--green); font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-card { background: var(--stone); padding: 1.5rem; border-top: 2px solid var(--gold); display: grid; gap: .8rem; }
.aside-card h2 { font-size: 1.15rem; }
.aside-card p { font-size: .95rem; color: var(--ink-soft); }

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section + .section { padding-top: 0; }
.section.alt { background: var(--stone); padding-top: clamp(3rem, 7vw, 5rem); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }
.section-intro { max-width: var(--measure); color: var(--ink-soft); margin-bottom: 1.5rem; }

/* Document links */
.docs { display: grid; gap: .75rem; max-width: 640px; }
.doc-link {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.2rem; min-height: 64px; background: var(--ivory); border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.doc-link:hover { border-color: var(--gold); background: #fff; color: var(--ink); }
.doc-link .tag { font: 600 .7rem/1 var(--label); letter-spacing: .14em; color: var(--burgundy); border: 1px solid currentColor; padding: .35rem .45rem; }
.doc-link .name { font-family: var(--heading); color: var(--green); line-height: 1.35; }
.doc-link .go { font: 600 .75rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

/* Figures */
.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption { font: 400 .875rem/1.5 var(--label); color: var(--ink-soft); margin-top: .6rem; }
.wide-figure { margin-block: 0; }
.wide-figure img { width: 100%; max-height: 560px; object-fit: cover; }
.photo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.framed { position: relative; }
.framed::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(247, 243, 234, .6); pointer-events: none; }

/* Lists of plants / objectives */
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { border: 1px solid var(--rule); background: var(--ivory); padding: .45rem .8rem; font-size: .95rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { display: grid; grid-template-columns: 18px 1fr; gap: .75rem; align-items: baseline; }
.check-list li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg) translateY(-2px); background: var(--gold); justify-self: center; }

/* FAQ */
.faq { list-style: none; margin: 0; padding: 0; counter-reset: q; max-width: 820px; }
.faq > li { counter-increment: q; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.faq > li::before { content: counter(q); font: 500 1.9rem/1 var(--display); color: var(--burgundy); }
.faq h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.faq .answer { display: grid; gap: .7rem; color: var(--ink); }
.faq dl { margin: 0; display: grid; gap: .6rem; }
.faq dt { font-weight: 600; color: var(--green); }
.faq dd { margin: 0 0 .2rem; }
.faq-index { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-bottom: 2rem; }
.faq-index a { font: 500 .875rem/1.3 var(--label); padding: .45rem .7rem; border: 1px solid var(--rule); text-decoration: none; background: var(--ivory); }
.faq-index a:hover { border-color: var(--gold); }

/* Committee */
.officers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.member { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .3rem; align-content: start; background: var(--ivory); }
.member .role { font: 600 .72rem/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); }
.member .name { font: 400 1.15rem/1.35 var(--heading); color: var(--green); }
.member .trustee { font: italic 400 .95rem/1.3 var(--display); color: var(--ink-soft); }
.member address { font-style: normal; font-size: .95rem; color: var(--ink-soft); }

/* Notices / news cards */
.notices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--ivory); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); min-width: 0; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 16px 30px -24px rgba(36, 61, 50, .6); color: var(--ink); }
.card .cover { aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover.empty { display: grid; place-items: center; }
.card .cover.empty img { width: 64px; height: auto; opacity: .55; mix-blend-mode: multiply; object-fit: contain; }
.card .body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.card .meta { font: 500 .78rem/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy); }
.card h3 { font-size: 1.12rem; line-height: 1.35; }
.card p { font-size: .95rem; line-height: 1.55; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skeleton .cover, .skeleton .line { background: linear-gradient(90deg, var(--stone), #EFE9DD, var(--stone)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton .line { height: .9rem; border-radius: 2px; }
.skeleton .line.short { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state-msg { padding: 1.5rem; border: 1px dashed var(--rule); color: var(--ink-soft); text-align: center; grid-column: 1 / -1; }
.state-msg.error { border-color: var(--burgundy); color: var(--burgundy); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  font: 500 .875rem/1 var(--label); letter-spacing: .03em; padding: .7rem 1rem; min-height: 44px;
  background: var(--ivory); color: var(--green); border: 1px solid var(--rule); cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s;
}
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.more { display: flex; justify-content: center; margin-top: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .85rem 1.5rem;
  background: var(--green); color: #fff; border: 1px solid var(--green); cursor: pointer; text-decoration: none;
  font: 600 .8125rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }

/* Single post */
.post-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.post-head .eyebrow a { color: inherit; text-decoration: none; }
.post-head h1 { font: 500 clamp(2rem, 4.6vw, 3.3rem)/1.12 var(--display); color: var(--green); margin-top: .9rem; max-width: 24ch; }
.post-head .meta { margin-top: 1rem; font: 500 .85rem/1.4 var(--label); letter-spacing: .06em; color: var(--ink-soft); }
.post-cover { margin: 2rem 0 0; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.post-body { max-width: 720px; margin-inline: auto; padding-block: clamp(2rem, 5vw, 3.5rem); }
.post-body .rich { display: grid; gap: 1rem; overflow-wrap: anywhere; }
.post-body .rich img, .post-body .rich video, .post-body .rich iframe { max-width: 100%; height: auto; }
.post-body .rich figure { margin: .5rem 0; }
.post-body .rich h2, .post-body .rich h3, .post-body .rich h4 { margin-top: .75rem; }
.post-body .rich ul, .post-body .rich ol { padding-left: 1.3rem; margin: 0; }
.post-body .rich blockquote { margin: 0; border-left: 2px solid var(--gold); padding-left: 1.1rem; font-style: italic; color: var(--green); }
.post-body .rich table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.post-body .rich td, .post-body .rich th { border: 1px solid var(--rule); padding: .4rem .6rem; }
.post-back { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2.5rem; }

/* Forms */
.form-panel { background: var(--ivory); border: 1px solid var(--rule); border-top: 2px solid var(--gold); padding: clamp(1.5rem, 4vw, 2.25rem); max-width: 640px; }
.form-panel h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.wix-form { display: grid; gap: 1.1rem; }
.wix-form .field { display: grid; gap: .4rem; }
.wix-form label, .wix-form legend { font: 600 .875rem/1.3 var(--label); letter-spacing: .02em; color: var(--green); }
.wix-form .req { color: var(--burgundy); margin-left: .2rem; }
.wix-form input[type="text"], .wix-form input[type="email"], .wix-form input[type="tel"], .wix-form input[type="number"],
.wix-form input[type="url"], .wix-form input[type="date"], .wix-form select, .wix-form textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 1px solid #B9B2A3; border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.wix-form textarea { min-height: 120px; resize: vertical; }
.wix-form input:focus, .wix-form select:focus, .wix-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 61, 50, .15); }
.wix-form [aria-invalid="true"] { border-color: var(--burgundy); }
.wix-form .help { font-size: .875rem; color: var(--ink-soft); }
.wix-form .err { font: 500 .875rem/1.3 var(--label); color: var(--burgundy); min-height: 0; }
.wix-form .err:empty { display: none; }
.wix-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.wix-form .choice { display: flex; gap: .6rem; align-items: center; min-height: 40px; font-size: 1rem; }
.wix-form .choice input { width: 20px; height: 20px; accent-color: var(--green); }
.wix-form .form-error { padding: .8rem 1rem; border: 1px solid var(--burgundy); color: var(--burgundy); font: 500 .9rem/1.4 var(--label); }
.wix-form .form-error:empty { display: none; }
.form-thanks { padding: 1.5rem; background: var(--stone); border-left: 2px solid var(--gold); color: var(--green); font-family: var(--heading); display: grid; gap: .5rem; }

/* Location */
.location-figure img { width: 100%; max-height: 640px; object-fit: cover; }

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .officers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .officers, .notices { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq > li { grid-template-columns: 2.2rem minmax(0, 1fr); gap: .6rem; }
  .doc-link { grid-template-columns: auto 1fr; }
  .doc-link .go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton .cover, .skeleton .line { animation: none; }
  .card:hover { transform: none; }
}
/* Facebook panel (Communications) */
.fb-intro { display: flex; gap: 1.25rem; align-items: flex-start; }
.fb-logo { width: 56px; height: 56px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(180, 154, 100, .6); }
.community { scroll-margin-top: 90px; }
/* Post page breadcrumbs sit on ivory */
.post-head .crumbs, .post-head .crumbs a { color: var(--ink-soft); }
@media (max-width: 600px) { .fb-logo { width: 46px; height: 46px; } .fb-intro { gap: 1rem; } }

/* Committee: officer grid of four and highlighted email addresses */
.officers.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member .name + address { margin-bottom: .35rem; }
.member-email {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: center; margin-top: .6rem;
  padding: .7rem .8rem; min-height: 48px; background: var(--green); color: #fff; text-decoration: none;
  border-left: 3px solid var(--gold); transition: background-color .3s var(--ease);
}
.member-email:hover { background: var(--burgundy); color: #fff; }
.member-email svg { color: var(--gold); }
.member-email .email-label { display: block; font: 600 .7rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: #E2D9C6; }
.member-email .email-addr { display: block; font: 600 .95rem/1.35 var(--label); overflow-wrap: anywhere; user-select: all; }
@media (max-width: 1080px) { .officers.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .officers.four { grid-template-columns: 1fr; } }
/* Document links: dark green panels */
.doc-link { background: var(--green); border: 0; border-left: 3px solid var(--gold); color: #fff; }
.doc-link:hover { background: var(--burgundy); color: #fff; }
.doc-link .tag { color: var(--gold); border-color: var(--gold); }
.doc-link .name { color: #fff; }
.doc-link .go { color: #E2D9C6; display: inline-flex; align-items: center; gap: .4rem; }
.doc-link .go::after { content: "\2192"; font-family: var(--body); letter-spacing: 0; transition: transform .3s var(--ease); }
.doc-link:hover .go::after { transform: translateX(3px); }
.doc-link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
/* Document links: file-type icon beside the PDF label */
.doc-link .tag { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .55rem; }
.doc-link .tag::before {
  content: ""; flex: none; width: 16px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M1.5 1.5h8.5l4.5 4.5v12.5h-13z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M10 1.5v4.5h4.5' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4.5 10h7M4.5 13h7M4.5 16h4.5' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M1.5 1.5h8.5l4.5 4.5v12.5h-13z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M10 1.5v4.5h4.5' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4.5 10h7M4.5 13h7M4.5 16h4.5' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* Committee cards: equal-height columns, email panels aligned along the bottom */
.member { display: flex; flex-direction: column; gap: .3rem; }
.member .name + address { margin-bottom: 0; }
.member address + .name { margin-top: .6rem; }
.member-email { margin-top: auto; width: 100%; }
.member address:has(+ .member-email) { margin-bottom: 1.1rem; }

/* Photo galleries (Nov 2026): book photographs, click to view full size */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 1.75rem); margin-top: 2rem; }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; background: var(--ivory); padding: 10px 10px 12px; box-shadow: 0 10px 24px -18px rgba(36, 61, 50, .6); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.docs-grid img { object-fit: contain; background: #fff; }
.gallery figcaption { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.08rem; line-height: 1.3; color: var(--green); margin-top: .7rem; }
.gallery-source { font-size: .92rem; color: #5b5e58; margin-top: 1.4rem; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery, .gallery.two { grid-template-columns: 1fr; } }
.zoom-btn { all: unset; display: block; position: relative; cursor: zoom-in; }
.zoom-btn img { display: block; width: 100%; }
.zoom-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.zoom-btn .zoom-hint { position: absolute; right: .6rem; bottom: .6rem; background: rgba(20,32,26,.8); color: #fff; font: 600 .7rem/1 "Source Sans 3", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .6rem; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,32,26,.94); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.lightbox .lb-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font: 400 28px/1 Georgia, serif; cursor: pointer; }
.lightbox .lb-close:focus-visible { outline: 2px solid #B49A64; outline-offset: 2px; }

@media (hover: hover) { .gallery .zoom-btn .zoom-hint { opacity: 0; transition: opacity .2s; } .gallery .zoom-btn:hover .zoom-hint, .gallery .zoom-btn:focus-visible .zoom-hint { opacity: 1; } }

.section.alt + .section:not(.alt), .section:not(.alt) + .section.alt { padding-top: clamp(3rem, 7vw, 5rem); }
