/* ahen26 - page extras. Loaded after footer.css.
   1. The notice at the top of the contact forms for people who came to ask for a chavruta (an HTML field of Convert Forms,
      cssclass "cf-chavruta"; its text is edited in the form builder).
   2. Legal pages (accessibility statement, privacy policy): readable article typography. */

/* ---- 1. chavruta notice ---- */
.cf-control-group.cf-chavruta { width: 100%; }
.cf-chavruta .cf-control-input > div {
  padding: 18px 22px 14px;
  border-radius: var(--r-sm);
  border-inline-start: 5px solid var(--green);
  background: var(--brand-soft);
}
.cf-chavruta p { margin: 0 0 10px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.cf-chavruta .cf-chavruta__title { color: var(--brand-deep); font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.cf-chavruta a.cf-chavruta__btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  border-radius: var(--r-pill);
  background: var(--brand-deep);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cf-chavruta a.cf-chavruta__btn:hover,
.cf-chavruta a.cf-chavruta__btn:focus-visible { background: var(--brand); color: #fff; transform: translateY(-2px); }
.cf-chavruta a.cf-chavruta__btn::after { content: '\2197'; margin-inline-start: 8px; }
.cf-chavruta .cf-chavruta__more { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(8,86,126,.18); color: var(--muted); font-size: .95rem; }

/* ---- 2. legal pages (articles with the class "legal-page" in their text) ---- */
.legal-page { max-width: 820px; margin-inline: auto; line-height: 1.75; }
.legal-page h2 { margin: 2rem 0 .6rem; color: var(--brand-deep); font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; }
.legal-page h3 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }
.legal-page ul { margin: .4rem 0 1rem; padding-inline-start: 1.4rem; }
.legal-page li { margin-bottom: .35rem; }
.legal-page .legal-updated { color: var(--muted); font-size: .95rem; }

/* placeholders that must be filled in before a legal page is published (the script keeps such pages unpublished) */
.legal-todo { background: #fff3b0; color: #5a4600; padding: 0 .25em; border-radius: 3px; }

/* ---- 3. donation page (articles with the class "give-page"): three ways to give as cards, the other ways below ----
   The primary button uses --donate-deep (white text 6:1) rather than --donate (4:1). */
.give-page { max-width: 1040px; margin-inline: auto; color: var(--ink); line-height: 1.7; }
.give-page .give-lead { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.75; }
.give-page .give-tax { margin: 0 0 clamp(22px, 3vw, 34px); color: var(--muted); }
.give-page h2 {
  margin: 0;
  color: var(--brand-deep);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: start;
}
.give-page h2::after { display: none; }

.give-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "il abroad" "phone phone";
  gap: 20px;
}
.give-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.give-card p { margin: 0; }
.give-card--il { grid-area: il; }
.give-card--abroad { grid-area: abroad; }
.give-card--phone { grid-area: phone; }
.give-card--main { border: 2px solid var(--donate-deep); box-shadow: var(--shadow); }
.give-card__intro { display: flex; flex-direction: column; gap: 12px; }
.give-page .give-action { margin-top: auto; padding-top: 6px; }

.give-page a.give-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border: 2px solid var(--donate-deep);
  border-radius: var(--r-pill);
  background: var(--donate-deep);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.give-page a.give-btn:hover,
.give-page a.give-btn:focus-visible { background: #9c2424; border-color: #9c2424; color: #fff; transform: translateY(-2px); }
.give-page a.give-btn--outline { border-color: var(--brand-deep); background: #fff; color: var(--brand-deep); }
.give-page a.give-btn--outline:hover,
.give-page a.give-btn--outline:focus-visible { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
.give-page a.give-btn:focus-visible,
.give-page summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.give-page .give-call { color: var(--muted); }
.give-page .give-call a { font-weight: 700; color: var(--ink); }
.give-page .give-fine { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* the Convert Forms form inside the phone card: full width, no frame of its own */
.give-card__form .convertforms,
.give-card__form .cf,
.give-card__form .cf-form-wrap { width: 100%; max-width: none; margin: 0; padding: 0; }
.give-card__form .cf-control-group { margin-bottom: 14px; }
.give-card__form label { font-weight: 600; }
.give-card__form .cf-input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.give-card__form input[type="text"],
.give-card__form input[type="tel"] { width: 100%; box-sizing: border-box; min-height: 46px; }

.give-page .give-more-title { margin-top: clamp(30px, 4vw, 46px); }
.give-more { margin-top: 10px; border-bottom: 1px solid var(--line); }
.give-more details { padding: 14px 4px; border-top: 1px solid var(--line); }
.give-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  color: var(--brand-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.give-more summary::-webkit-details-marker { display: none; }
.give-more summary::after { content: '+'; color: var(--brand); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.give-more details[open] > summary::after { content: '\2212'; }
.give-more details[open] summary { margin-bottom: 10px; }
.give-more details p { margin: 0 0 8px; }
.give-page .give-more a,
.give-page .give-contact a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.give-page .give-more a:hover,
.give-page .give-contact a:hover { color: var(--brand); }
.give-page .give-address { font-weight: 700; }
.give-table { width: 100%; max-width: 640px; margin: 10px 0 14px; border-collapse: collapse; }
.give-table th,
.give-table td { padding: 9px 12px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.give-table th { width: 38%; background: var(--brand-soft); font-weight: 700; }
.give-page .give-contact { margin: 18px 0 0; color: var(--muted); }

.give-thanks {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 22px clamp(20px, 3vw, 32px);
  border-inline-start: 5px solid var(--green);
  border-radius: var(--r-sm);
  background: var(--brand-soft);
}
.give-thanks p { margin: 0 0 10px; }
.give-thanks .give-sign { margin: 14px 0 0; color: var(--brand-deep); font-weight: 700; }

@media (max-width: 899px) {
  .give-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "il" "phone" "abroad"; }
  .give-page a.give-btn { width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .give-page a.give-btn:hover,
  .give-page a.give-btn:focus-visible { transform: none; }
}
