/* Inner pages, in the same Coropuna language as the home page: a pale page head
   with the sage diamond and a photo to the edge, square bordered boxes with a
   sage bar, cards with a bar across the photo, and quiet forms with square
   fields. Loaded on every page after theme.css; pages use these parts rather
   than styling themselves. */

/* ---- Page head ---------------------------------------------------------- */
/* The title on a pale band with the sage diamond at the right, as in the home
   hero, and the breadcrumb on a sage tab sitting on the band's bottom edge.
   Short, so the page itself still starts in the first screen. Only a single
   cause gets the photo version. */

.dwt-pagehead {
  position: relative;
  overflow: hidden;
  background: var(--dwt-paper);
  border-bottom: 1px solid var(--dwt-line);
}
.dwt-pagehead::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7%;
  width: 300px;
  height: 300px;
  background: var(--dwt-sage-soft);
  transform: translateY(-50%) rotate(45deg);
}
/* When the page opens on a pale section, the band goes white so the two don't merge */
.dwt-pagehead:has(+ main > .dwt-section--paper:first-child) { background: var(--dwt-white); }
.dwt-pagehead__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
  max-width: var(--dwt-wrap);
  margin: 0 auto;
  padding: 40px 20px 0;
}
.dwt-pagehead__main { max-width: 780px; }
.dwt-pagehead .dwt-eyebrow { margin-bottom: 8px; }
.dwt-pagehead__title {
  font-family: var(--dwt-heading);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--dwt-deep);
  margin: 0;
}
.dwt-pagehead__sub { text-wrap: pretty; font-size: 16px; color: var(--dwt-ink-soft); line-height: 1.6; margin: 10px 0 0; max-width: 660px; }

/* The breadcrumb tab: always the last row, on the band's bottom edge */
.dwt-crumbs {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 26px;
  padding: 11px 20px;
  background: var(--dwt-sage);
  font-family: var(--dwt-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dwt-deep);
}
.dwt-crumbs a { color: var(--dwt-deep); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(15, 59, 28, 0.35); text-underline-offset: 4px; }
.dwt-crumbs a:hover { color: var(--dwt-deep); text-decoration-color: currentColor; }
.dwt-crumbs i { font-size: 9px; opacity: 0.6; }
.dwt-crumbs a:focus-visible { outline-color: var(--dwt-deep); }

/* Task pages: tighter, so the form starts high */
.dwt-pagehead--compact .dwt-pagehead__inner { padding-top: 32px; }
.dwt-pagehead--compact .dwt-pagehead__title { font-size: clamp(28px, 2.6vw, 38px); }
.dwt-pagehead--compact .dwt-crumbs { margin-top: 24px; }

/* Older names kept so pages built on them still work: nothing overlaps now */
.dwt-pull { position: relative; }
.dwt-section--pulled { padding-top: 40px; }

/* Single cause: title in white over its photo, still short */
.dwt-pagehead--photo { background: var(--dwt-deep); border-bottom: 0; }
.dwt-pagehead--photo::before { content: none; }
.dwt-pagehead__bg { position: absolute; inset: 0; }
.dwt-pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.dwt-pagehead--photo .dwt-pagehead__inner { padding-top: 150px; }
.dwt-pagehead--photo .dwt-pagehead__main { justify-self: start; padding: 26px 32px 28px; background: var(--dwt-deep); }
.dwt-pagehead--photo .dwt-pagehead__title { color: var(--dwt-white); font-size: clamp(32px, 3.4vw, 50px); max-width: 760px; }
.dwt-pagehead--photo .dwt-pagehead__sub { color: rgba(255, 255, 255, 0.88); }
.dwt-pagehead--photo .dwt-eyebrow { color: var(--dwt-sage); }
.dwt-pagehead--photo .dwt-crumbs { margin-top: 0; }

/* ---- Layout helpers ---------------------------------------------------- */

.dwt-split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.dwt-split2--top { align-items: start; }
.dwt-grid { display: grid; gap: 26px; }
.dwt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dwt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dwt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dwt-center { text-align: center; margin-top: 50px; }
.dwt-stack > * + * { margin-top: 18px; }
.dwt-copy p { font-size: 15px; line-height: 1.85; margin: 0 0 16px; }
.dwt-copy .dwt-heading { margin-bottom: 22px; }
.dwt-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* A photo with a sage block set behind its corner */
.dwt-media { position: relative; padding: 0 24px 24px 0; }
.dwt-media::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 60%;
  background: var(--dwt-sage);
}
.dwt-media img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- Boxes -------------------------------------------------------------- */

/* Square box with a deep border and the sage bar at the foot */
.dwt-box {
  position: relative;
  background: var(--dwt-white);
  border: 3px solid var(--dwt-deep);
  padding: 34px 32px 40px;
}
.dwt-box::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 32px;
  width: 66px;
  height: 10px;
  background: var(--dwt-sage);
}
.dwt-box--center { text-align: center; }
.dwt-box--center::after { left: 50%; transform: translateX(-50%); }
.dwt-box .dwt-icon { width: 64px; height: 64px; }
.dwt-box h3 { font-size: 21px; font-weight: 600; margin: 18px 0 8px; color: var(--dwt-deep); }
.dwt-box p { font-size: 15px; line-height: 1.75; margin: 0; }
.dwt-box p + p { margin-top: 12px; }
.dwt-box__role { color: var(--dwt-forest); font-size: 14px; }

/* Quiet panel for supporting text */
.dwt-panel { background: var(--dwt-paper); padding: 34px 36px; }
.dwt-panel--dark { background: var(--dwt-deep); color: rgba(255, 255, 255, 0.88); }
.dwt-panel--dark h2, .dwt-panel--dark h3, .dwt-panel--dark h4 { color: var(--dwt-white); }
.dwt-panel--dark a:not(.dwt-btn) { color: var(--dwt-sage); }
.dwt-panel h3 { font-size: 21px; font-weight: 600; margin: 0 0 10px; color: var(--dwt-deep); }
.dwt-panel--dark h3 { color: var(--dwt-white); }

/* Hadith and quotes, one style everywhere: an eight point star from Islamic pattern work, the
   words in upright type, the source in small capitals between two fine rules, on a soft panel
   with a thin inner frame. --light puts it on white for coloured bands. */
.dwt-quote {
  position: relative;
  margin: 34px 0 0;
  padding: 50px 44px 40px;
  background: var(--dwt-sage-soft);
  outline: 1px solid rgba(15, 59, 28, 0.16);
  outline-offset: -9px;
  text-align: center;
}
.dwt-quote::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23b5d4a0' stroke='%230f3b1c' stroke-width='1.3' stroke-linejoin='round'%3E%3Crect x='9.5' y='9.5' width='21' height='21'/%3E%3Crect x='9.5' y='9.5' width='21' height='21' transform='rotate(45 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='4' fill='%23ffffff' stroke='%230f3b1c' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dwt-quote p {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--dwt-heading);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--dwt-deep);
  text-wrap: balance;
}
.dwt-quote cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  font-family: var(--dwt-heading);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dwt-forest);
}
.dwt-quote cite::before, .dwt-quote cite::after { content: ""; width: 28px; height: 1px; background: var(--dwt-sage-2); }
.dwt-quote--light { background: var(--dwt-white); }

/* Several quotes in one place fade from one to the next ([data-rotator] in motion.js) */
.dwt-quotes { display: grid; }
.dwt-quotes > .dwt-quote { grid-area: 1 / 1; margin: 0; transition: opacity 0.6s ease, visibility 0.6s; }
.dwt-quotes > .dwt-quote:not(.is-active) { opacity: 0; visibility: hidden; }
.dwt-quotes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.dwt-quotes__dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(15, 59, 28, 0.25); cursor: pointer; transition: background-color 0.2s ease; }
.dwt-quotes__dots button[aria-current="true"] { background: var(--dwt-deep); }
.dwt-quotes__dots button:hover { background: var(--dwt-forest); }
@media (max-width: 767.98px) {
  .dwt-quote { padding: 40px 24px 32px; }
}

/* Small flat tags for facts (places, ways to give): read as labels, never as buttons */
.dwt-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.dwt-chips li {
  padding: 5px 12px;
  background: var(--dwt-sage-soft);
  font-family: var(--dwt-heading);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--dwt-deep);
}
.dwt-section--paper .dwt-chips li, .dwt-split__panel .dwt-chips li { background: var(--dwt-white); }

/* Tick list */
.dwt-ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.dwt-ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; line-height: 1.7; font-size: 15px; }
.dwt-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--dwt-forest);
  border-bottom: 3px solid var(--dwt-forest);
  transform: rotate(-45deg);
}

/* ---- Call to action band ------------------------------------------------ */

.dwt-ctaband { text-align: center; }
.dwt-ctaband .dwt-title { margin-bottom: 14px; }
.dwt-ctaband p { max-width: 620px; margin: 0 auto 30px; font-size: 16px; line-height: 1.75; color: var(--dwt-deep); }
.dwt-ctaband__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---- Cause cards (home and projects pages) ------------------------------- */

.dwt-causes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.dwt-causes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dwt-cause { background: var(--dwt-white); display: flex; flex-direction: column; border: 1px solid var(--dwt-line); }
.dwt-cause__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dwt-sage-soft); }
.dwt-cause__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dwt-cause:hover .dwt-cause__media img { transform: scale(1.05); }
.dwt-cause__flag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--dwt-red);
  color: var(--dwt-white);
  font-family: var(--dwt-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dwt-cause__bar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--dwt-deep);
  color: var(--dwt-white);
  font-size: 13px;
}
.dwt-cause__bar span { color: var(--dwt-sage); flex-shrink: 0; }
.dwt-cause__bar strong { font-family: var(--dwt-heading); font-weight: 500; text-align: right; }
.dwt-cause__body { padding: 26px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.dwt-cause__kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dwt-forest); margin-bottom: 8px; text-transform: capitalize; }
.dwt-cause__kind i { color: var(--dwt-leaf); }
.dwt-cause__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.dwt-cause__row h3 { font-size: 22px; font-weight: 600; margin: 4px 0 0; line-height: 1.25; }
.dwt-cause__row h3 a { color: var(--dwt-deep); text-decoration: none; }
.dwt-cause__row h3 a:hover { color: var(--dwt-forest); }
.dwt-cause__body p { font-size: 15px; line-height: 1.75; margin: 0; }
.dwt-cause__foot { margin-top: auto; padding-top: 20px; }
.dwt-btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; flex-shrink: 0; }

/* ---- Long text (policies) ------------------------------------------------ */

.dwt-prose { max-width: 780px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: var(--dwt-ink-soft); }
.dwt-prose h2 { font-size: 26px; font-weight: 700; color: var(--dwt-deep); margin: 46px 0 14px; }
.dwt-prose h3 { font-size: 20px; font-weight: 600; color: var(--dwt-deep); margin: 30px 0 10px; }
.dwt-prose h2:first-child { margin-top: 0; }
.dwt-prose ul, .dwt-prose ol { padding-left: 22px; }
.dwt-prose li { margin-bottom: 8px; }
.dwt-prose a:not(.dwt-btn) { color: var(--dwt-forest); text-underline-offset: 3px; }
.dwt-prose strong { color: var(--dwt-deep); }

/* Contents list beside long text */
.dwt-toc { position: sticky; top: 120px; border: 3px solid var(--dwt-deep); padding: 26px 26px 30px; background: var(--dwt-white); }
.dwt-toc h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 14px; color: var(--dwt-deep); }
.dwt-toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.dwt-toc li { margin-bottom: 8px; }
.dwt-toc a { color: var(--dwt-deep); text-decoration: none; }
.dwt-toc a:hover { color: var(--dwt-forest); text-decoration: underline; }
.dwt-withtoc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
.dwt-withtoc .dwt-prose { margin: 0; }

/* ---- Forms --------------------------------------------------------------- */

.dwt-form label, .dwt-form .form-label {
  display: block;
  font-family: var(--dwt-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--dwt-deep);
  margin-bottom: 8px;
}
.dwt-form .form-control, .dwt-form .form-select,
.dwt-form input[type="text"], .dwt-form input[type="email"], .dwt-form input[type="tel"],
.dwt-form input[type="password"], .dwt-form input[type="number"], .dwt-form input[type="date"],
.dwt-form select, .dwt-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--dwt-line);
  border-radius: 0;
  background-color: var(--dwt-white);
  font-family: var(--dwt-body);
  font-size: 15px;
  color: var(--dwt-ink);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dwt-form textarea { min-height: 150px; }
.dwt-form .form-control:focus, .dwt-form .form-select:focus,
.dwt-form input:focus, .dwt-form select:focus, .dwt-form textarea:focus {
  outline: none;
  border-color: var(--dwt-deep);
  box-shadow: 0 0 0 3px var(--dwt-sage);
}
.dwt-form .form-check-input { border-radius: 0; border-color: var(--dwt-deep); }
.dwt-form .form-check-input[type="radio"] { border-radius: 50%; }
.dwt-form .form-check-input:checked { background-color: var(--dwt-deep); border-color: var(--dwt-deep); }
.dwt-form .form-check-label { font-family: var(--dwt-body); font-weight: 400; display: inline; }
.dwt-form .invalid-feedback, .dwt-form .errorlist { color: #b3261e; font-size: 13px; list-style: none; padding: 0; margin: 6px 0 0; }
.dwt-form .is-invalid { border-color: #b3261e !important; }
.dwt-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.dwt-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dwt-form__full { grid-column: 1 / -1; }
.dwt-form__group + .dwt-form__group { margin-top: 18px; }
.dwt-form__legend {
  font-family: var(--dwt-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dwt-deep);
  margin: 34px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dwt-line);
}
.dwt-form__legend:first-child { margin-top: 0; }
.dwt-form__help { font-size: 13px; color: var(--dwt-ink-soft); margin-top: 6px; }
.dwt-form__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* A form set in a bordered box */
.dwt-formbox { background: var(--dwt-white); border: 3px solid var(--dwt-deep); padding: 40px; position: relative; }
.dwt-formbox::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 40px;
  width: 66px;
  height: 10px;
  background: var(--dwt-sage);
}
.dwt-formbox__title { font-family: var(--dwt-heading); font-size: 26px; font-weight: 700; color: var(--dwt-deep); margin: 0 0 6px; }
.dwt-formbox__lede { font-size: 15px; color: var(--dwt-ink-soft); margin: 0 0 26px; }

/* ---- Bootstrap parts used on several pages ------------------------------- */

.accordion { --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-border-color: var(--dwt-line); }
.accordion-button { font-family: var(--dwt-heading); font-weight: 500; color: var(--dwt-deep); }
.accordion-button:not(.collapsed) { background: var(--dwt-sage-soft); color: var(--dwt-deep); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px var(--dwt-sage); border-color: var(--dwt-deep); }

.nav-pills .nav-link { border-radius: 0; color: var(--dwt-deep); font-family: var(--dwt-heading); font-weight: 500; }
.nav-pills .nav-link.active { background: var(--dwt-deep); color: var(--dwt-white); }

/* ---- Icon boxes (the theme's priorities grid) ------------------------- */

.dwt-iconbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 190px;
  padding: 30px 20px;
  border: 1px solid var(--dwt-line);
  background: var(--dwt-white);
  text-align: center;
  text-decoration: none;
  color: var(--dwt-deep);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.dwt-iconbox:hover, .dwt-iconbox.is-active { border-color: var(--dwt-deep); box-shadow: inset 0 -6px 0 var(--dwt-sage); color: var(--dwt-deep); }
.dwt-iconbox .dwt-icon { width: 66px; height: 66px; }
.dwt-iconbox strong { font-family: var(--dwt-heading); font-size: 17px; font-weight: 600; }
.dwt-iconbox small { font-size: 14px; color: var(--dwt-ink-soft); line-height: 1.6; }

/* ---- Dark accordion bars (the theme's FAQ page) ---------------------------- */

.dwt-faq { max-width: 860px; margin: 0 auto; }
.dwt-faq details { margin-bottom: 12px; background: var(--dwt-white); }
.dwt-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--dwt-deep);
  color: var(--dwt-white);
  font-family: var(--dwt-heading);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.dwt-faq summary::-webkit-details-marker { display: none; }
.dwt-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--dwt-sage); }
.dwt-faq details[open] > summary::after { content: "\2212"; }
.dwt-faq details[open] > summary { background: var(--dwt-forest); }
.dwt-faq__body { padding: 22px 24px 24px; border: 1px solid var(--dwt-line); border-top: 0; font-size: 15px; line-height: 1.8; }
.dwt-faq__body p:last-child { margin-bottom: 0; }
.dwt-faq__body details summary { background: var(--dwt-sage-soft); color: var(--dwt-deep); }
.dwt-faq__body details summary::after { color: var(--dwt-deep); }
.dwt-faq__body details[open] > summary { background: var(--dwt-sage); }

/* ---- Photo band: the photo in full colour, the words on a solid deep panel - */
/* The panel's left edge lines up with the page grid. */

.dwt-photoband { position: relative; color: var(--dwt-white); background: var(--dwt-deep); overflow: hidden; }
.dwt-photoband__bg { position: absolute; inset: 0; }
.dwt-photoband__bg img { width: 100%; height: 100%; object-fit: cover; }
.dwt-photoband__inner {
  position: relative;
  max-width: 600px;
  margin: 110px 0 110px max(20px, calc((100% - var(--dwt-wrap)) / 2 + 20px));
  padding: 48px 48px 52px;
  background: var(--dwt-deep);
}
.dwt-photoband h2 { color: var(--dwt-white); font-size: clamp(28px, 3vw, 42px); font-weight: 700; margin: 0 0 14px; }
.dwt-photoband p { color: rgba(255, 255, 255, 0.88); font-size: 16px; line-height: 1.75; margin: 0 0 28px; }
.dwt-photoband p:last-child { margin-bottom: 0; }

/* ---- Photo grid (the theme's gallery grid) -------------------------------- */

.dwt-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dwt-gallery a, .dwt-gallery figure { display: block; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--dwt-sage-soft); }
.dwt-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dwt-gallery a:hover img { transform: scale(1.05); }

/* ---- People and places cards (the theme's team and office pages) ---------- */

/* A trustee or team member: drawn person mark, name, role */
.dwt-member {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--dwt-white);
  border: 1px solid var(--dwt-line);
  box-shadow: inset 4px 0 0 var(--dwt-sage);
}
.dwt-member__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--dwt-deep);
  color: var(--dwt-sage);
  font-family: var(--dwt-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dwt-member h3 { font-size: 17px; font-weight: 600; color: var(--dwt-deep); margin: 0 0 3px; line-height: 1.3; }
.dwt-member p { font-size: 13px; color: var(--dwt-forest); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.dwt-team { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.dwt-team__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.dwt-place { background: var(--dwt-white); }
.dwt-place h3 { font-size: 19px; font-weight: 600; color: var(--dwt-deep); margin: 0 0 12px; }
.dwt-place ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.dwt-place li { margin-bottom: 6px; }
.dwt-place li strong { color: var(--dwt-deep); font-weight: 600; }
.dwt-place a { color: var(--dwt-forest); }

/* Section with the paper background and centred head, as the theme's forms */
.dwt-formband { background: var(--dwt-paper); }
.dwt-formband .dwt-formbox { max-width: 820px; margin: 0 auto; }

/* ---- Smaller screens ----------------------------------------------------- */

@media (max-width: 1199.98px) {
  .dwt-causes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .dwt-pagehead::before { right: -110px; }
  .dwt-split2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dwt-team { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .dwt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwt-withtoc { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .dwt-toc { position: static; }
}

@media (max-width: 767.98px) {
  .dwt-causes, .dwt-causes--3 { grid-template-columns: minmax(0, 1fr); }
  .dwt-cause__row { flex-direction: column; }
  .dwt-grid--2, .dwt-grid--3, .dwt-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .dwt-grid--keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dwt-iconbox { min-height: 150px; padding: 22px 14px; }
  .dwt-pagehead::before { display: none; }
  .dwt-pagehead__inner { grid-template-columns: minmax(0, 1fr); padding: 26px 16px 0; }
  .dwt-pagehead--compact .dwt-pagehead__inner { padding-top: 22px; }
  .dwt-pagehead--photo .dwt-pagehead__inner { padding-top: 140px; }
  .dwt-pagehead--photo .dwt-pagehead__main { padding: 20px 20px 22px; }
  .dwt-pagehead__title, .dwt-pagehead--compact .dwt-pagehead__title { font-size: 28px; }
  .dwt-pagehead--photo .dwt-pagehead__title { font-size: 30px; }
  .dwt-pagehead__sub { font-size: 15px; margin-top: 8px; }
  .dwt-crumbs, .dwt-pagehead--compact .dwt-crumbs { margin-top: 20px; padding: 9px 16px; font-size: 13px; }
  .dwt-pagehead--photo .dwt-crumbs { margin-top: 0; }
  .dwt-section--pulled { padding-top: 24px; }
  .dwt-gallery { gap: 10px; }
  .dwt-photoband__bg { position: relative; height: 220px; }
  .dwt-photoband__inner { max-width: none; margin: 0; padding: 32px 20px 38px; }
  .dwt-team__list { grid-template-columns: minmax(0, 1fr); }
  .dwt-form__row, .dwt-form__row--3 { grid-template-columns: minmax(0, 1fr); }
  .dwt-formbox { padding: 28px 22px; }
  .dwt-box { padding: 28px 24px 34px; }
  .dwt-panel { padding: 26px 22px; }
}

/* ---- Error pages (404, 403, 400, 500) ------------------------------------ */
/* What happened and the two main ways on, beside a short list of popular pages. */

.dwt-error__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 80px; align-items: start; }
.dwt-error__lede { max-width: 560px; margin: 0 0 30px; font-size: 18px; line-height: 1.7; color: var(--dwt-ink-soft); }
.dwt-error__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.dwt-error__links { padding: 30px 32px 32px; background: var(--dwt-paper); }
.dwt-error__links h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--dwt-deep); }
.dwt-error__links ul { list-style: none; margin: 0; padding: 0; }
.dwt-error__links li { padding: 12px 0; border-top: 1px solid var(--dwt-line); }
.dwt-error__links li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 767.98px) {
  .dwt-error__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dwt-error__actions .dwt-btn { width: 100%; }
  .dwt-error__links { padding: 24px 22px 26px; }
}
