/*
Theme Name: Chad Wells Family
Theme URI: https://chadwellsfamily.com/
Description: A focused Twenty Fourteen child theme for the Chad Wells Family ministry site.
Author: Chad Wells Family
Template: twentyfourteen
Version: 1.5.0
Text Domain: twentyfourteen-cwf
*/

:root {
  --cwf-ink: #34291f;
  --cwf-muted: #756654;
  --cwf-green: #925b27;
  --cwf-green-dark: #70401f;
  --cwf-brown: #59331e;
  --cwf-brown-dark: #2f1d14;
  --cwf-gold: #bd7e29;
  --cwf-cream: #f4ead5;
  --cwf-card: #fffaf1;
  --cwf-line: #d9c5a1;
  --cwf-shadow: 0 18px 50px rgba(62, 39, 23, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cwf-ink);
  background: #e8dcc5;
  font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.site {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  box-shadow: none;
}

.site-header,
.primary-navigation {
  background-color: var(--cwf-brown-dark);
}

.site-header {
  width: 100%;
  max-width: none;
}

#site-header {
  overflow: hidden;
  width: 100%;
  background: var(--cwf-brown-dark);
}

#site-header img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.header-main {
  min-height: 54px;
  border-top: 1px solid rgba(241, 218, 156, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  background: linear-gradient(90deg, var(--cwf-brown-dark), #54351f 55%, #3e2a1c);
  box-shadow: 0 7px 20px rgba(42, 27, 17, 0.18);
}

.site-title a,
.site-title a:hover,
.site-title a:focus {
  color: #fff;
}

.primary-navigation li:hover > a,
.primary-navigation li.focus > a,
.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current_page_item > a,
.primary-navigation .current_page_ancestor > a {
  color: #fff6dc;
  background-color: var(--cwf-green-dark);
}

.search-toggle,
.search-toggle:hover,
.search-toggle.active {
  background-color: var(--cwf-gold);
}

.primary-navigation a {
  color: #f0dba6;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.site:before,
#secondary {
  background-color: var(--cwf-brown-dark);
  background-image: linear-gradient(180deg, #3d281b, #2c1c13);
}

#secondary,
#secondary .widget,
#secondary .widget-title {
  color: #eee2c7;
}

#secondary a,
#secondary a:visited {
  color: #f0d68d;
}

#secondary a:hover,
#secondary a:focus {
  color: #fff8e7;
}

#secondary .primary-sidebar {
  padding-top: 18px;
}

#secondary .widget_media_video,
#secondary #custom_html-3 {
  overflow: hidden;
  box-sizing: border-box;
  max-width: 420px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  border: 1px solid rgba(240, 214, 141, 0.22);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 12px 28px rgba(19, 11, 7, 0.24);
}

#secondary .widget_media_video .wp-video,
#secondary .widget_media_video .mejs-container {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  background: #120d09;
}

#secondary .widget_media_video .mejs-inner,
#secondary .widget_media_video .mejs-mediaelement,
#secondary .widget_media_video mediaelementwrapper,
#secondary .widget_media_video .mejs-iframe-overlay,
#secondary .widget_media_video iframe {
  width: 100% !important;
  height: 100% !important;
}

#secondary .widget_media_video .mejs-controls {
  min-height: 34px;
  background: linear-gradient(180deg, rgba(24, 17, 11, 0.62), rgba(16, 10, 7, 0.94));
}

#secondary .widget_media_video::after {
  display: block;
  padding: 10px 12px 11px;
  color: #f3dda1;
  background: rgba(24, 15, 10, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

#secondary #media_video-3::after {
  content: "Tumbuna Jungle Tales";
}

#secondary #media_video-5::after {
  content: "Pangia Baptist Missionary School";
}

#secondary #custom_html-3 {
  padding: 16px 12px 14px;
  color: var(--cwf-ink);
  border-color: rgba(240, 214, 141, 0.52);
  background: linear-gradient(150deg, #fff8e5, #ead9ad);
  text-align: center;
}

#secondary #custom_html-3::before {
  display: block;
  color: var(--cwf-brown);
  content: "Support the Ministry";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

#secondary #custom_html-3::after {
  display: block;
  margin-top: 8px;
  color: #665844;
  content: "Secure donation through PayPal";
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

#secondary #custom_html-3 form {
  margin: 12px 0 0;
  padding: 0;
}

#secondary #custom_html-3 input[type="image"] {
  display: block;
  width: 100%;
  max-width: 166px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 5px 9px rgba(74, 47, 24, 0.2));
  transition: transform 160ms ease, filter 160ms ease;
}

#secondary #custom_html-3 input[type="image"]:hover,
#secondary #custom_html-3 input[type="image"]:focus {
  filter: drop-shadow(0 7px 12px rgba(74, 47, 24, 0.28));
  transform: translateY(-1px);
}

.site-main,
.content-area,
.site-content {
  background-color: #f3ecdf;
}

.content-area {
  padding-top: 24px;
}

.site-content .hentry,
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary {
  background-color: transparent;
}

.site-content .hentry {
  margin-bottom: 18px;
}

.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.page-content {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1500px;
}

.site-content .entry-header {
  padding: 18px 12px 12px;
}

.site-content .entry-content {
  padding: 0 12px 28px;
}

.entry-title {
  color: var(--cwf-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
}

.cwf-page {
  color: var(--cwf-ink);
  font-size: 17px;
  line-height: 1.72;
}

.cwf-section {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 2rem;
  padding: clamp(1.25rem, 2.7vw, 2.25rem);
  border: 1px solid var(--cwf-line);
  border-radius: 18px;
  background-color: var(--cwf-card);
  background-position: center;
  background-size: cover;
  box-shadow: var(--cwf-shadow);
}

.cwf-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.cwf-column {
  min-width: 0;
  flex: 1 1 100%;
}

.cwf-col-1-2 { flex-basis: calc(50% - 1.25rem); }
.cwf-col-1-3 { flex-basis: calc(33.333% - 1.7rem); }
.cwf-col-2-3 { flex-basis: calc(66.667% - 0.85rem); }
.cwf-col-1-4 { flex-basis: calc(25% - 1.9rem); }
.cwf-col-3-4 { flex-basis: calc(75% - 0.65rem); }

.cwf-page h1,
.cwf-page h2,
.cwf-page h3,
.cwf-page h4,
.cwf-page h5,
.cwf-page h6 {
  clear: both;
  color: var(--cwf-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.cwf-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.cwf-page h2 { margin-top: 2.5rem; font-size: clamp(1.7rem, 3.5vw, 2.35rem); }
.cwf-page h3 { margin-top: 2rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.cwf-page h6 { font-family: inherit; font-size: 1rem; font-weight: 600; }

.cwf-page p,
.cwf-page ul,
.cwf-page ol {
  margin-bottom: 1.35rem;
}

.cwf-page a:not(.cwf-button):not(.cwf-social-link) {
  color: var(--cwf-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.cwf-page-home .cwf-column {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.cwf-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 1.5rem 0 2rem;
}

.cwf-gallery[data-gallery-items="1"] { grid-template-columns: minmax(0, 1fr); }
.cwf-gallery[data-gallery-items="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cwf-gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  margin: 0;
  border: 1px solid rgba(87, 53, 31, 0.12);
  border-radius: 14px;
  background: #e6ddca;
  box-shadow: 0 8px 22px rgba(62, 40, 24, 0.1);
}

.cwf-gallery-item a {
  display: block;
  height: 100%;
}

.cwf-gallery-item img,
.cwf-gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.cwf-gallery-item a:hover img,
.cwf-gallery-item a:focus img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.cwf-actions {
  margin: 1.75rem 0;
  text-align: center;
}

.cwf-button,
.cwf-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--cwf-green-dark);
  border-radius: 999px;
  color: #fff;
  background: var(--cwf-green-dark);
  box-shadow: 0 8px 20px rgba(70, 62, 32, 0.22);
  font-weight: 700;
  text-decoration: none;
}

.cwf-button:hover,
.cwf-button:focus {
  color: #fff;
  border-color: var(--cwf-brown);
  background: var(--cwf-brown);
  transform: translateY(-1px);
}

.cwf-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem 0;
}

.cwf-social-link,
.cwf-social-link:visited {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--cwf-line);
  border-radius: 999px;
  color: var(--cwf-brown);
  background: var(--cwf-cream);
  font-weight: 700;
  text-decoration: none;
}

.cwf-social-link:hover,
.cwf-social-link:focus {
  color: #fff;
  border-color: var(--cwf-green-dark);
  background: var(--cwf-green-dark);
}

.cwf-video-embed,
.cwf-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-radius: 14px;
  background: #1b120d;
  box-shadow: var(--cwf-shadow);
}

.cwf-video-embed { aspect-ratio: 16 / 9; }
.cwf-map { min-height: 430px; }

.cwf-video-embed iframe,
.cwf-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol {
  padding-left: 0;
  list-style: none;
  counter-reset: cwf-faq;
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li {
  counter-increment: cwf-faq;
  margin: 0 0 1rem;
  padding: 1.15rem 1.2rem 0.15rem 3.5rem;
  border: 1px solid var(--cwf-line);
  border-radius: 12px;
  background: #fbfcfa;
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li::before {
  float: left;
  width: 2rem;
  margin-left: -2.75rem;
  color: var(--cwf-gold);
  content: counter(cwf-faq, decimal-leading-zero);
  font-weight: 800;
}

.cwf-page-donations form,
#mc_embed_signup {
  box-sizing: border-box;
  width: min(100%, 560px) !important;
  margin: 1.5rem auto !important;
}

.cwf-missing-photo {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 260px;
  margin: 1.5rem auto;
  padding: 2rem;
  border: 1px dashed #b89b70;
  border-radius: 12px;
  color: var(--cwf-muted);
  background: linear-gradient(135deg, #f2e8d7, #fbf6ed);
  text-align: center;
}

.cwf-missing-photo span {
  display: block;
  color: var(--cwf-gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cwf-missing-photo strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--cwf-green-dark);
  font-size: 1.2rem;
}

#mc_embed_signup input[type="text"],
#mc_embed_signup input[type="email"] {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 44px;
}

.cwf-spacer:empty { display: block; }

.cwf-section {
  border-top: 3px solid rgba(199, 131, 29, 0.3);
}

.site-footer,
.footer-sidebar {
  color: #eadfca;
  background: var(--cwf-brown-dark);
}

.site-info a,
.site-info a:visited,
.footer-sidebar a,
.footer-sidebar a:visited {
  color: #f0d68d;
}

.menu-toggle {
  color: #f5e8bd;
  background-color: transparent;
}

.cwf-page table,
.cwf-page img,
.cwf-page video,
.cwf-page iframe {
  max-width: 100%;
}

@media screen and (min-width: 783px) {
  .header-main {
    box-sizing: border-box;
    width: 100%;
    padding: 0;
  }

  .site-title {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 222px;
    height: 54px;
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.2;
  }

  .search-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 54px;
  }

  .primary-navigation {
    position: absolute;
    top: 0;
    right: 54px;
    left: 222px;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    height: 54px;
    font-size: clamp(10px, 0.85vw, 13px);
    text-transform: none;
  }

  .primary-navigation .nav-menu {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 54px;
    margin: 0;
  }

  .primary-navigation .nav-menu > li {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .primary-navigation .nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    border-left: 1px solid rgba(242, 224, 184, 0.1);
    line-height: 1.18;
    padding-right: 12px;
    padding-left: 12px;
    white-space: normal;
  }

  .primary-navigation .nav-menu > li:first-child > a {
    border-left: 0;
  }

  .primary-navigation .nav-menu > .current-menu-item > a,
  .primary-navigation .nav-menu > .current-menu-ancestor > a,
  .primary-navigation .nav-menu > li:hover > a,
  .primary-navigation .nav-menu > li.focus > a {
    box-shadow: inset 0 -3px 0 var(--cwf-gold);
  }

  .primary-navigation .sub-menu {
    min-width: 230px;
    border: 1px solid rgba(242, 224, 184, 0.14);
    background: var(--cwf-brown-dark);
    box-shadow: 0 14px 32px rgba(29, 18, 11, 0.28);
    text-align: left;
  }

  .primary-navigation .sub-menu a {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(242, 224, 184, 0.1);
    line-height: 1.35;
    white-space: normal;
  }
}

@media screen and (min-width: 1080px) {
  #secondary {
    box-sizing: border-box;
    width: 222px;
    padding-right: 16px;
    padding-left: 16px;
    background-color: transparent;
    background-image: none;
  }
}

@media screen and (max-width: 782px) {
  #site-header img {
    height: clamp(90px, 20vw, 154px);
    object-fit: cover;
    object-position: left center;
  }

  .site-content .entry-header,
  .site-content .entry-content {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .cwf-section {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .cwf-col-1-2,
  .cwf-col-1-3,
  .cwf-col-2-3,
  .cwf-col-1-4,
  .cwf-col-3-4 {
    flex-basis: 100%;
  }

  .cwf-gallery,
  .cwf-gallery[data-gallery-items="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 480px) {
  .cwf-page { font-size: 16px; }
  .cwf-gallery,
  .cwf-gallery[data-gallery-items="2"] { grid-template-columns: 1fr; }
  .cwf-gallery-item,
  .cwf-gallery-item img,
  .cwf-gallery-item video { min-height: 210px; }
  .cwf-social-link { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .cwf-map { min-height: 340px; }
}

/* Refined page content system. */
::selection {
  color: #fff;
  background: var(--cwf-green-dark);
}

.cwf-page {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
}

.cwf-page [style*="text-align: justify"] {
  text-align: left !important;
}

.cwf-page > .cwf-section > .cwf-row > .cwf-column > p,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > ul,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > ol,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > h2,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > h3,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > h4,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > h5,
.cwf-page > .cwf-section > .cwf-row > .cwf-column > h6 {
  max-width: 82ch;
  margin-right: auto;
  margin-left: auto;
}

.cwf-page p {
  text-wrap: pretty;
}

.cwf-page li + li {
  margin-top: 0.5rem;
}

.cwf-page h2,
.cwf-page h3,
.cwf-page h4 {
  text-wrap: balance;
}

.cwf-page h2 {
  margin-bottom: 1.1rem;
}

.cwf-page h3 {
  margin-bottom: 0.8rem;
}

.cwf-page a:focus-visible,
.cwf-button:focus-visible,
.cwf-social-link:focus-visible,
.cwf-gallery-item a:focus-visible,
.cwf-zoomable:focus-visible {
  outline: 3px solid var(--cwf-gold);
  outline-offset: 4px;
}

.cwf-spacer {
  max-height: 0.75rem !important;
  margin-bottom: 0.45rem !important;
}

.cwf-page-home .cwf-spacer {
  height: 0.35rem !important;
  margin-bottom: 0.25rem !important;
}

.cwf-gallery {
  gap: clamp(10px, 1.35vw, 18px);
  margin-top: 1.8rem;
  margin-bottom: 2.5rem;
}

.cwf-gallery--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cwf-gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cwf-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cwf-gallery-item {
  min-height: 0;
  border-color: rgba(87, 53, 31, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, #eee5d2, #ded1b8);
  box-shadow: 0 8px 20px rgba(62, 40, 24, 0.12);
}

.cwf-gallery-item a {
  position: relative;
  isolation: isolate;
}

.cwf-gallery-item img,
.cwf-gallery-item video {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.cwf-gallery-item a::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(45, 30, 19, 0.78);
  box-shadow: 0 4px 12px rgba(24, 15, 9, 0.24);
  content: "+";
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cwf-gallery-item a:hover::after,
.cwf-gallery-item a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.cwf-video-embed {
  margin-top: 0.75rem;
  border: 1px solid rgba(87, 53, 31, 0.15);
  box-shadow: 0 14px 34px rgba(48, 34, 22, 0.16);
}

.cwf-page-videos .cwf-column > h3 {
  margin-top: 0.6rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cwf-page-videos .cwf-col-1-1:last-child {
  padding-top: 0.5rem;
}

.cwf-page-ministeries .cwf-column > h3,
.cwf-page-png .cwf-column > h3 {
  position: relative;
  margin-top: 3.4rem;
  padding-bottom: 0.75rem;
  text-align: center !important;
}

.cwf-page-ministeries .cwf-column > h3::after,
.cwf-page-png .cwf-column > h3::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--cwf-gold);
  content: "";
  transform: translateX(-50%);
}

.cwf-page-information .cwf-column > p,
.cwf-page-printing-ministry .cwf-column > p,
.cwf-page-are-you-sure .cwf-column > p {
  max-width: 76ch;
}

.cwf-page-information .cwf-lead,
.cwf-page-printing-ministry .cwf-lead {
  color: #4b3c2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.cwf-page-information .cwf-legacy-heading,
.cwf-page-printing-ministry .cwf-timeline-heading {
  position: relative;
  max-width: 76ch;
  margin-top: 2.75rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border-left: 4px solid var(--cwf-gold);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(242, 234, 215, 0.95), rgba(242, 234, 215, 0));
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.cwf-page-printing-ministry img.aligncenter {
  width: min(100%, 760px);
  height: auto;
  margin: 1.5rem auto 2.1rem;
  border: 1px solid rgba(87, 53, 31, 0.16);
  border-radius: 12px;
  background: #e6ddca;
  box-shadow: 0 12px 28px rgba(62, 40, 24, 0.14);
}

.cwf-zoomable {
  cursor: zoom-in;
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol {
  max-width: 88ch;
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li {
  margin-bottom: 1.1rem;
  padding: 1.3rem 1.4rem 1.15rem 4.15rem;
  border-color: rgba(87, 53, 31, 0.15);
  background: linear-gradient(145deg, #fffefa, #faf6ed);
  box-shadow: 0 7px 18px rgba(62, 40, 24, 0.06);
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li::before {
  width: 2.3rem;
  margin-left: -3.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.cwf-page-faq ol > li > strong:first-child {
  color: var(--cwf-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
}

.cwf-page-faq ol ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: #51483d;
}

.cwf-page-faq ol ul > li::marker {
  color: var(--cwf-gold);
}

.cwf-page-donations .cwf-section {
  text-align: center;
}

.cwf-page-donations .cwf-column > p {
  max-width: 58ch !important;
  margin-bottom: 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.cwf-page-donations form {
  padding: 1.5rem;
  border: 1px solid var(--cwf-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff9e9, #f1e3bd);
  box-shadow: 0 12px 30px rgba(67, 45, 27, 0.12);
}

.cwf-page-donations form input[type="image"] {
  width: auto;
  min-width: 150px;
  filter: drop-shadow(0 6px 10px rgba(72, 47, 24, 0.2));
}

.cwf-page-contact .cwf-spacer {
  display: none;
}

.cwf-page-contact .cwf-column > p {
  margin-top: 0.7rem;
  margin-bottom: 0.45rem;
}

.cwf-page-contact .cwf-social-links {
  margin-top: 0;
  margin-bottom: 1.7rem;
}

#mc_embed_signup {
  margin-top: 1.4rem !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  border: 1px solid var(--cwf-line) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #fffefa, #f4ede0) !important;
  box-shadow: 0 14px 34px rgba(67, 45, 27, 0.1);
}

#mc_embed_signup h2 {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  color: var(--cwf-brown) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#mc_embed_signup .indicates-required {
  margin-bottom: 1.25rem;
  color: var(--cwf-muted) !important;
}

#mc_embed_signup .mc-field-group {
  margin-bottom: 1rem;
}

#mc_embed_signup .mc-field-group label,
#mc_embed_signup .input-group strong {
  color: var(--cwf-ink) !important;
  font-size: 14px;
  font-weight: 700;
}

#mc_embed_signup input[type="text"],
#mc_embed_signup input[type="email"] {
  min-height: 48px;
  padding: 10px 12px !important;
  border: 1px solid #c8bda9 !important;
  border-radius: 7px !important;
  color: var(--cwf-ink);
  background: #fff;
  font-size: 16px !important;
}

#mc_embed_signup input[type="text"]:focus,
#mc_embed_signup input[type="email"]:focus {
  border-color: var(--cwf-green-dark) !important;
  outline: 3px solid rgba(105, 107, 55, 0.2);
}

#mc_embed_signup .input-group ul {
  display: flex;
  gap: 1.25rem;
  margin: 0.6rem 0 1.2rem;
  padding: 0;
  list-style: none;
}

#mc_embed_signup .input-group li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

#mc_embed_signup .input-group label {
  display: inline;
  margin: 0;
}

#mc-embedded-subscribe.button {
  min-height: 46px;
  padding: 0.7rem 1.35rem !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--cwf-green-dark) !important;
  box-shadow: 0 8px 18px rgba(70, 62, 32, 0.2);
  font-weight: 800;
}

#mc-embedded-subscribe.button:hover,
#mc-embedded-subscribe.button:focus {
  background: var(--cwf-brown) !important;
}

/* Accessible image viewer. */
.cwf-lightbox[hidden] {
  display: none;
}

.cwf-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 3vw, 42px);
  place-items: center;
  color: #fff;
  background: rgba(18, 12, 8, 0.94);
  backdrop-filter: blur(8px);
}

.cwf-lightbox__figure {
  display: grid;
  width: min(100%, 1500px);
  height: 100%;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
}

.cwf-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 132px);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.cwf-lightbox__caption {
  max-width: 78ch;
  margin: 0;
  padding: 14px 60px 0;
  color: #f5ead4;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.cwf-lightbox__count {
  color: #d9bd76;
  font-weight: 800;
}

.cwf-lightbox__close,
.cwf-lightbox__previous,
.cwf-lightbox__next {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  background: rgba(70, 49, 31, 0.82);
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.cwf-lightbox__close:hover,
.cwf-lightbox__previous:hover,
.cwf-lightbox__next:hover,
.cwf-lightbox__close:focus-visible,
.cwf-lightbox__previous:focus-visible,
.cwf-lightbox__next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: var(--cwf-gold);
  transform: scale(1.05);
}

.cwf-lightbox__close {
  top: 16px;
  right: 16px;
}

.cwf-lightbox__previous,
.cwf-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.cwf-lightbox__previous:hover,
.cwf-lightbox__previous:focus-visible,
.cwf-lightbox__next:hover,
.cwf-lightbox__next:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.cwf-lightbox__previous { left: 16px; }
.cwf-lightbox__next { right: 16px; }

body.cwf-lightbox-open {
  overflow: hidden;
}

@media screen and (max-width: 960px) {
  .cwf-gallery--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 782px) {
  .cwf-page {
    line-height: 1.68;
  }

  .cwf-section {
    padding: clamp(1.15rem, 5vw, 1.75rem);
  }

  .cwf-gallery--4,
  .cwf-gallery--3,
  .cwf-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cwf-gallery-item a::after {
    width: 30px;
    height: 30px;
    opacity: 0.88;
    transform: none;
  }

  .cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li {
    padding: 1.15rem 1rem 1rem 3.55rem;
  }

  .cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li::before {
    margin-left: -2.7rem;
  }

  .cwf-lightbox__previous,
  .cwf-lightbox__next {
    top: auto;
    bottom: 18px;
  }

  .cwf-lightbox__caption {
    padding: 12px 48px 58px;
  }
}

@media screen and (max-width: 480px) {
  .cwf-gallery--4,
  .cwf-gallery--3,
  .cwf-gallery--2 {
    grid-template-columns: 1fr;
  }

  .cwf-gallery-item,
  .cwf-gallery-item img,
  .cwf-gallery-item video {
    min-height: 0;
  }

  .cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li {
    padding-left: 1rem;
  }

  .cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li::before {
    float: none;
    display: block;
    margin: 0 0 0.35rem;
  }

  .cwf-lightbox {
    padding: 10px;
  }

  .cwf-lightbox__close {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cwf-gallery-item img,
  .cwf-gallery-item a::after,
  .cwf-lightbox button { transition: none; }
}

/* Header-derived typography and color system. */
.site-title,
.site-title a,
.entry-title,
.cwf-page h1,
.cwf-page h2,
.cwf-page h3,
.cwf-page h4,
.cwf-page h5 {
  font-family: Georgia, "Times New Roman", serif;
}

.site-title a {
  color: #f4dfaa;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-main,
.primary-navigation {
  background: linear-gradient(180deg, #3b2519, #2d1b13);
}

.primary-navigation .nav-menu > li > a {
  color: #f1dda9;
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 750;
  letter-spacing: 0.055em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.primary-navigation .nav-menu > .current-menu-item > a,
.primary-navigation .nav-menu > .current-menu-ancestor > a,
.primary-navigation .current_page_item > a,
.primary-navigation .current_page_ancestor > a {
  color: #fff7df;
  background: linear-gradient(180deg, #7b4b27, #65401f);
  box-shadow: inset 0 -3px 0 #d79a38;
}

.primary-navigation .nav-menu > li:hover > a,
.primary-navigation .nav-menu > li.focus > a,
.primary-navigation a:hover,
.primary-navigation a:focus {
  color: #fff8e5;
  background: linear-gradient(180deg, #70431f, #56321c);
}

.primary-navigation .sub-menu,
.primary-navigation ul ul {
  border-color: rgba(224, 182, 98, 0.28);
  background: #342016;
}

.primary-navigation .sub-menu a {
  color: #eed79f;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-shadow: none;
}

.search-toggle,
.search-toggle:hover,
.search-toggle.active {
  background: linear-gradient(180deg, #c88628, #a8661e);
}

.search-toggle:hover,
.search-toggle:focus,
.search-toggle.active {
  background: linear-gradient(180deg, #a96620, #89501b);
}

.menu-toggle {
  color: #f2dba5;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.entry-title {
  color: #56311d;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.cwf-page {
  color: #41352b;
}

.cwf-page h1,
.cwf-page h2,
.cwf-page h3,
.cwf-page h4,
.cwf-page h5,
.cwf-page h6 {
  color: #5b351f;
}

.cwf-page h1,
.cwf-page h2,
.cwf-page h3 {
  letter-spacing: -0.012em;
}

.cwf-page p,
.cwf-page li {
  color: #493d32;
}

.cwf-page strong,
.cwf-page b {
  color: #3a2c22;
}

.cwf-page a:not(.cwf-button):not(.cwf-social-link) {
  color: #76431f;
  text-decoration-color: rgba(189, 126, 41, 0.72);
  text-decoration-thickness: 1.5px;
}

.cwf-page a:not(.cwf-button):not(.cwf-social-link):hover,
.cwf-page a:not(.cwf-button):not(.cwf-social-link):focus {
  color: #a05f21;
  text-decoration-color: currentColor;
}

.cwf-section {
  border-color: #d9c49e;
  border-top-color: #c88931;
  background: linear-gradient(150deg, #fffaf2, #fdf8ef);
  box-shadow: 0 16px 44px rgba(63, 41, 25, 0.1);
}

.cwf-button,
.cwf-button:visited {
  border-color: #76431f;
  color: #fff8e8;
  background: linear-gradient(180deg, #815027, #653b1e);
  box-shadow: 0 9px 22px rgba(91, 51, 26, 0.24);
  letter-spacing: 0.01em;
}

.cwf-button:hover,
.cwf-button:focus {
  border-color: #a66722;
  color: #fff;
  background: linear-gradient(180deg, #a66722, #7f481e);
}

.cwf-social-link,
.cwf-social-link:visited {
  border-color: #d7c29b;
  color: #60391f;
  background: linear-gradient(180deg, #f8efd9, #eee0c2);
  box-shadow: 0 4px 12px rgba(70, 46, 28, 0.06);
}

.cwf-social-link:hover,
.cwf-social-link:focus {
  border-color: #8b5426;
  color: #fff8e7;
  background: #74431f;
}

#secondary,
#secondary .widget {
  color: #eadcc0;
}

#secondary a,
#secondary a:visited {
  color: #e8c97f;
}

#secondary a:hover,
#secondary a:focus {
  color: #fff3ce;
}

#secondary .widget_media_video::after,
#secondary #custom_html-3::before {
  color: #e7c77c;
}

#secondary #custom_html-3 {
  color: #3d2d21;
  background: linear-gradient(150deg, #fff5d8, #e7d09a);
}

#secondary #custom_html-3::before {
  color: #63391f;
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li {
  background: linear-gradient(145deg, #fffaf2, #f8efdf);
}

.cwf-page-faq > .cwf-section > .cwf-row > .cwf-column > ol > li::before,
.cwf-page-faq ol ul > li::marker {
  color: #b87524;
}

#mc_embed_signup {
  background: linear-gradient(145deg, #fffaf2, #f0e3ce) !important;
}

#mc_embed_signup input[type="text"]:focus,
#mc_embed_signup input[type="email"]:focus {
  border-color: #8a5224 !important;
  outline-color: rgba(189, 126, 41, 0.22);
}

#mc-embedded-subscribe.button {
  background: linear-gradient(180deg, #815027, #653b1e) !important;
}

#mc-embedded-subscribe.button:hover,
#mc-embedded-subscribe.button:focus {
  background: linear-gradient(180deg, #a66722, #7f481e) !important;
}

.site-footer,
.footer-sidebar {
  color: #e9d8b7;
  background: #2f1d14;
}

.site-info a,
.site-info a:visited,
.footer-sidebar a,
.footer-sidebar a:visited {
  color: #e3be70;
}

@media screen and (max-width: 782px) {
  .primary-navigation .nav-menu > li > a,
  .primary-navigation .sub-menu a {
    font-size: 13px;
    letter-spacing: 0.035em;
  }
}
