/* Additions to the WordPress theme made after the move (not part of the 2026-09-05 replica). */

/* "Give" (Heidi, 2026-10-27): the one brand-red action in the header, beside the search on
   desktop and beside the menu button on phones, so it is never hidden in the collapsed menu. */
.give-button {
  display: inline-block; padding: 0 22px; height: 40px; line-height: 40px; background: #C36057; color: #fff;
  font-family: Adelle-Sans, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.give-button:hover, .give-button:focus { background: #A64A42; color: #fff; text-decoration: none; }
.give-button:focus-visible { outline: 2px solid #404041; outline-offset: 2px; }

@media (min-width: 992px) {
  .site-search { display: flex; align-items: center; gap: 8px; width: 340px; }
  .site-search form { flex: 1; min-width: 0; }
  .give-button-mobile { display: none; }
}
@media (max-width: 991px) {
  .site-search .give-button { display: none; }
  /* full-width bar under the logo row, the peer pattern (Montpelier) for a tall header */
  .give-button-mobile { display: block; clear: both; margin: 4px 15px 14px; height: 44px; line-height: 44px; text-align: center; font-size: 14px; letter-spacing: .14em; }
}

/* Full-width chrome lines (2026-10-27): the line under the main menu and the footer rule run edge to edge.
   box-shadow + clip-path widen the paint without widening the page (no sideways scroll). */
@media (min-width: 992px) {
  .main-navi { border-bottom: 0; position: relative; }
  .main-navi::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: #f2f2f2; box-shadow: 0 0 0 100vmax #f2f2f2; clip-path: inset(0 -100vmax); }
}
#inner-footer > hr { box-shadow: 0 0 0 100vmax #e7e7e7; clip-path: inset(0 -100vmax); border-color: #e7e7e7; }

/* Landing blocks (Giving band, Stats, Action cards, FAQ with heading): admin sections in lib/sections.ts */
.jjh-x { --jj-slate: #5C6E7E; --jj-slate-ink: #3E4B57; --jj-red: #C36057; --jj-red-deep: #A64A42; --jj-wash: #F3F1EE; --jj-muted: #6B7178; --jj-line: #E2DFDA;
  font-family: Adelle-Sans, "Helvetica Neue", Arial, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.55; color: #404041; padding: 34px 0 10px; }
.jjh-x h1, .jjh-x h2 { font-family: Adelle, Georgia, serif; font-weight: 400; color: var(--jj-slate-ink); text-wrap: balance; clear: none; }
.jjh-x h3 { font-family: Adelle-Sans, Arial, sans-serif; font-weight: 700; font-size: 17px; margin: 0; color: #404041; clear: none; }
.jjh-x p { margin: 0 0 8px; }
.jjh-band { background: var(--jj-wash); box-shadow: 0 0 0 100vmax var(--jj-wash); clip-path: inset(0 -100vmax); }
.jjh-x + .jjh-x:not(.jjh-band) { border-top: 1px solid var(--jj-line); }
.jjh-h2 { font-size: 28px; margin: 0 0 4px; }
.jjh-intro { color: var(--jj-muted); margin: 0 0 22px !important; }
.jjh-giving { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; padding: 40px 0; }
.jjh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jj-red); }
.jjh-giving h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 12px; }
.jjh-lede { font-size: 18px; }
.jjh-ask { background: #fff; padding: 24px; border-top: 4px solid var(--jj-red); }
.jjh-ask h2 { font-size: 22px; margin: 0 0 4px; }
.jjh-ask > p { color: var(--jj-muted); font-size: 14px; margin: 0 0 14px; }
.jjh-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-bottom: 12px; }
.jjh-amount { border: 1px solid var(--jj-line); padding: 11px 0; text-align: center; font-weight: 700; color: var(--jj-slate-ink); text-decoration: none; }
.jjh-amount:hover, .jjh-amount:focus { border-color: var(--jj-slate); color: var(--jj-slate-ink); text-decoration: none; }
.jjh-btn { display: block; text-align: center; background: var(--jj-red); color: #fff !important; text-decoration: none; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; padding: 14px; }
.jjh-btn:hover, .jjh-btn:focus { background: var(--jj-red-deep); text-decoration: none; }
.jjh-btn-alt { background: #fff; color: var(--jj-slate-ink) !important; border: 1px solid var(--jj-slate); margin-top: 8px; }
.jjh-btn-alt:hover, .jjh-btn-alt:focus { background: var(--jj-wash); }
.jjh-fine { font-size: 12px; color: var(--jj-muted); margin: 10px 0 0 !important; text-align: center; }
.jjh-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.jjh-grid3 > div { min-width: 0; }
.jjh-num { font-family: Adelle, Georgia, serif; font-size: 38px; color: var(--jj-red); line-height: 1; }
.jjh-stats h3 { margin: 10px 0 6px; }
.jjh-stats p, .jjh-card-text p { color: var(--jj-muted); font-size: 15px; margin: 0; }
.jjh-card { border: 1px solid var(--jj-line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.jjh-card-text { flex: 1; }
.jjh-card-lead { border-color: var(--jj-slate); background: var(--jj-wash); }
.jjh-go { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--jj-red); }
.jjh-go:hover, .jjh-go:focus { color: var(--jj-red-deep); }
.jjh-sec-faq.jjh-x details { border-top: 1px solid var(--jj-line) !important; padding: 13px 0 !important; }
.jjh-sec-faq.jjh-x details:last-of-type { border-bottom: 1px solid var(--jj-line); }
.jjh-sec-faq.jjh-x summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--jj-slate-ink); font-weight: 700 !important; }
.jjh-sec-faq.jjh-x summary::-webkit-details-marker { display: none; }
.jjh-sec-faq.jjh-x summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--jj-red); font-weight: 400; }
.jjh-sec-faq.jjh-x details[open] summary::after { content: "\2212"; }
.jjh-sec-faq.jjh-band { margin-top: 30px; }
.jjh-landing .jjh-x:first-child { margin-top: 0; }
@media (max-width: 820px) {
  .jjh-giving, .jjh-grid3 { grid-template-columns: 1fr; }
  .jjh-giving { gap: 20px; padding: 26px 0; }
  .jjh-giving h1 { font-size: 30px; }
}
/* landing pages: plain text, text+image and columns blocks follow the block system (type, rhythm, reading width) */
.jjh-landing .post_content > h2, .jjh-landing .jjh-sec-textimage h2, .jjh-landing .jjh-sec-columns h2 { font-family: Adelle, Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.15; color: #3E4B57; margin: 0 0 12px; padding: 0; text-wrap: balance; }
.jjh-landing .post_content > h2 { margin-top: 30px; padding-top: 34px; border-top: 1px solid #E2DFDA; }
.jjh-landing .jjh-band + h2 { border-top: 0; }
.jjh-landing .post_content > p, .jjh-landing .post_content > ul, .jjh-landing .jjh-sec-textimage p, .jjh-landing .jjh-sec-columns p { max-width: 68ch; font-size: 16px; line-height: 1.65; }
.jjh-landing .jjh-sec-textimage, .jjh-landing .jjh-sec-columns { margin-top: 30px; padding-top: 34px; border-top: 1px solid #E2DFDA; }
.jjh-landing .jjh-band + .jjh-sec-textimage, .jjh-landing .jjh-band + .jjh-sec-columns { border-top: 0; }
.jjh-landing .jjh-sec-textimage img { max-height: 400px; object-fit: contain; object-position: center top; }
.jjh-landing .jjh-band + .jjh-x { border-top: 0; }
.jjh-landing .jjh-band { margin-top: 30px; }
.jjh-landing .jjh-band:first-child { margin-top: 0; }
@media (min-width: 768px) { .jjh-landing .jjh-sec-textimage { display: flex; align-items: center; } }
@media (max-width: 767px) { .jjh-landing .jjh-sec-columns > div + div { margin-top: 28px; } }
