/*
 * World Hunger Fund: pages shown inside the mobile app (/app/gaza/, /app/faq/ and so on).
 * Built phone-first; wider screens get more room. Nov 2026.
 * Below 768px (phones, the app) the site footer and payment buttons are hidden.
 */
.ap { background: #F7F5F0; }

/* ---------- Header picture with the title on it ---------- */
.ap-hero {
  position: relative; overflow: hidden; background: #2E2E2E;
  height: clamp(250px, 66vw, 340px);
  display: flex; align-items: flex-end;
}
.ap-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.ap-hero::after { /* darkens the bottom so the white title is always readable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.86) 0%, rgba(20, 18, 16, 0.45) 45%, rgba(20, 18, 16, 0.10) 75%, rgba(20, 18, 16, 0.25) 100%);
}
.ap-hero__text {
  position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 0 20px 22px;
}
.ap-hero__kicker {
  display: block; width: fit-content; margin: 0 0 8px; padding: 0 0 0 10px;
  border-left: 3px solid #E0C072;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #E0C072; line-height: 1.4;
}
.ap-hero__title {
  margin: 0; color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: clamp(1.85rem, 8.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  white-space: normal; overflow-wrap: break-word;
}
.ap-hero--plain { height: auto; min-height: 150px; background: #2E2E2E; }
.ap-hero--plain::after { display: none; }
.ap-hero--plain .ap-hero__text { padding-top: 40px; }

/* ---------- Page text ---------- */
.ap-main { background: #fff; }
.ap-content {
  max-width: 760px; margin: 0 auto; padding: 26px 20px 36px;
  font-family: 'Raleway', sans-serif; color: #3d3a36;
  font-size: 1.06rem; line-height: 1.75; white-space: normal;
}
.ap-content h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: #2E2E2E;
  font-size: clamp(1.3rem, 5.4vw, 1.85rem); line-height: 1.25; margin: 0 0 14px;
}
.ap-content h2 + p { margin-top: 0; }
.ap-content * + h2 { margin-top: 34px; }
.ap-content h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: #2E2E2E;
  font-size: 1.1rem; line-height: 1.35; margin: 26px 0 8px;
}
.ap-content p { margin: 0 0 1.05em; }
.ap-content a { color: #CF5315; text-decoration: underline; text-underline-offset: 2px; }
.ap-content strong { color: #2E2E2E; }
.ap-lead { font-size: 1.12rem; color: #2E2E2E; }

/* gold-edged note box */
.ap-note {
  margin: 26px 0 0; padding: 16px 18px; background: #F7F5F0;
  border-left: 4px solid #E0C072; border-radius: 0 8px 8px 0;
  font-family: 'Lora', serif; font-style: italic; font-size: 1.08rem; color: #2E2E2E;
}
.ap-note p:last-child { margin-bottom: 0; }

/* numbered steps */
.ap-steps { list-style: none; counter-reset: ap-step; margin: 18px 0 8px; padding: 0; }
.ap-steps li {
  counter-increment: ap-step; position: relative; margin: 0 0 18px; padding: 2px 0 0 52px;
}
.ap-steps li::before {
  content: counter(ap-step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: #CF5315; color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.ap-steps strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1rem; margin-bottom: 2px; }

/* donation breakdown bars */
.ap-bars { list-style: none; margin: 22px 0 10px; padding: 0; }
.ap-bars li { margin: 0 0 22px; }
.ap-bars__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ap-bars__name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #2E2E2E; font-size: 1rem; }
.ap-bars__pct { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.35rem; }
.ap-bars__desc { display: block; font-size: 0.95rem; color: #6b655e; margin: 2px 0 8px; }
.ap-bars__track { height: 10px; background: #ece8df; border-radius: 6px; overflow: hidden; }
.ap-bars__fill { height: 100%; border-radius: 6px; width: 0; animation: ap-fill 1.6s ease-out forwards; }
@keyframes ap-fill { from { width: 0; } to { width: var(--pct); } }
@media (prefers-reduced-motion: reduce) { .ap-bars__fill { animation: none; width: var(--pct); } }
.ap-chart { display: block; width: 190px; height: auto; margin: 10px auto 4px; }

/* questions and answers (tap to open) */
.ap-faq { margin: 8px 0 0; }
.ap-faq details { border-bottom: 1px solid #ece8df; }
.ap-faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 16px 34px 16px 0;
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: #2E2E2E; font-size: 1rem; line-height: 1.4;
}
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; line-height: 1; color: #CF5315; font-weight: 400;
}
.ap-faq details[open] summary::after { content: "\2212"; }
.ap-faq details > div { padding: 0 0 16px; }
.ap-faq details > div p:last-child { margin-bottom: 0; }

/* fact boxes */
.ap-facts { display: grid; gap: 12px; margin: 20px 0; }
.ap-fact { background: #F7F5F0; border-top: 3px solid #CF5315; border-radius: 8px; padding: 14px 16px; }
.ap-fact__label { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8A6417; }
.ap-fact__value { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: #2E2E2E; margin-top: 2px; }
@media (min-width: 600px) { .ap-facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Payment buttons (website only, never on phone/app widths) ---------- */
.ap-pay { background: #F7F5F0; padding: 34px 20px 40px; text-align: center; }
.ap-pay__btn {
  display: inline-block; background: #CF5315; color: #fff !important; text-decoration: none !important;
  font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.9rem; padding: 15px 34px; border-radius: 6px; box-shadow: 0 6px 18px rgba(207, 83, 21, 0.25);
  transition: background 0.2s ease;
}
.ap-pay__btn:hover, .ap-pay__btn:focus { background: #a8410f; }
.ap-pay__small { display: block; margin-top: 10px; font-family: 'Raleway', sans-serif; font-size: 0.85rem; color: #6b655e; }
.ap-pay .gg-donate-btn { margin-top: 14px; }

/* ---------- Wider screens ---------- */
@media (min-width: 768px) {
  .ap-hero { height: clamp(360px, 52vh, 560px); }
  .ap-hero__text { padding: 0 40px 40px; }
  .ap-hero__kicker { font-size: 0.8rem; }
  .ap-content { padding: 48px 40px 56px; font-size: 1.1rem; }
}

/* ---------- Phones and the app: no site footer, no payment buttons ---------- */
@media (max-width: 767.98px) {
  .ap-desktop-only, .ap-pay { display: none !important; }
  .ap-main { padding-bottom: env(safe-area-inset-bottom); }
}

/* Urgent Need articles (Nov 2026): the editor's "quote" button makes the gold-edged note box */
.ap-content blockquote {
  margin: 26px 0; padding: 16px 18px; background: #F7F5F0;
  border-left: 4px solid #E0C072; border-radius: 0 8px 8px 0;
  font-family: 'Lora', serif; font-style: italic; font-size: 1.08rem; color: #2E2E2E;
}
.ap-content ul, .ap-content ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.ap-content li { margin-bottom: 0.35em; }
.ap-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ap-content .ql-align-center { text-align: center; }
.ap-content .ql-align-right { text-align: right; }