body.custom-background {
  background: #57bfc6 url("/wp-content/themes/zeenews/images/background.png") left top repeat fixed;
  font-size: 17px;
  line-height: 1.7;
}

#header,
#foot_wrap {
  background: #0b2f6f;
}

#header {
  padding: 0.18rem 0;
}

#head,
#wrap {
  width: min(1100px, calc(100% - 2rem));
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-brand-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none !important;
  min-width: 0;
  max-width: 100%;
}

.site-brand:visited,
.site-brand:hover,
.site-brand:focus,
.site-brand:active {
  color: #fff;
  text-decoration: none !important;
}

.site-brand__crest-tile {
  display: grid;
  place-items: center;
  padding: 0.22rem;
  border-radius: 4px;
  background: #f5f1e7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.site-brand__crest {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

.site-brand__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
  color: #f7f2e7;
  white-space: nowrap;
}

.site-brand__subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
}

#content {
  float: none;
  width: 100%;
}

#nav_toggle {
  margin-left: auto;
  flex: 0 0 auto;
}

.site-nav-wrap {
  margin-left: auto;
  min-width: 0;
  flex: 0 0 auto;
}

#nav_toggle summary {
  display: none;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

#nav ul,
#nav li,
#nav a {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

#nav li {
  float: none;
}

#nav .nav-cta {
  margin-left: 0.55rem;
}

#nav a {
  height: 100%;
  box-sizing: border-box;
  padding: 0.28rem 0.28rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  background: transparent;
}

#nav .nav-cta > a {
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(247, 242, 231, 0.95);
  border-radius: 4px;
  background: #f7f2e7;
  color: #0b2f6f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}

#nav .nav-cta > a:hover,
#nav .nav-cta > a:focus,
#nav .nav-cta.current_page_item > a {
  background: #fff7d8;
  color: #0b2f6f;
  border-color: #fff7d8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

#nav .current_page_item > a,
#nav .current_page_item > a:visited {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#nav .nav-cta.current_page_item > a,
#nav .nav-cta.current_page_item > a:visited {
  background: #f7f2e7;
  color: #0b2f6f;
  border-color: #f7f2e7;
}

#head,
.site-head {
  max-width: 1100px;
  width: min(1100px, calc(100% - 2rem));
}

#wrap {
  box-sizing: border-box;
}

.post-title,
.page-title {
  color: #000;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 15px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

h2 {
  margin-top: 1.6em;
  margin-bottom: 0.65em;
}

h3 {
  margin-top: 1.1em;
  margin-bottom: 0.5em;
}

.page-title {
  display: none;
}

.post-title a {
  color: #000;
  text-decoration: none;
}

.entry img,
.textwidget img {
  max-width: 100%;
  height: auto;
}

.entry iframe {
  max-width: 100%;
  width: 100%;
}

.map-embed {
  margin: 1.5em 0;
}

.map-embed iframe {
  display: block;
  height: 420px;
}

.legacy-links {
  margin: 1.5em 0;
}

.legacy-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.legacy-link-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #000;
  text-decoration: none;
  text-align: center;
}

.legacy-link-card img {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: contain;
}

.legacy-link-card span {
  display: block;
  font-weight: bold;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.has-text-align-center {
  text-align: center;
}

.wp-block-image {
  margin: 0 0 1em;
}

.wp-block-image figure {
  margin: 0;
}

#content .entry p {
  margin: 0 0 1em;
}

.legacy-details {
  margin: 1.25em 0;
}

.legacy-details details {
  border: 1px solid #c7c7c7;
  margin: 0 0 8px;
  background: #fff;
}

.legacy-details summary {
  cursor: pointer;
  font-weight: bold;
  padding: 10px 12px;
}

.legacy-details .details-body {
  padding: 0 12px 12px;
  overflow-x: auto;
}

.legacy-details table {
  width: 100%;
  border-collapse: collapse;
}

.legacy-details th,
.legacy-details td {
  border: 1px solid #d8d8d8;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.founder-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding: 0;
}

.founder-list span {
  border-bottom: 1px solid #e7e7e7;
  padding: 4px 0;
}

.current-members-table td:first-child {
  width: 16%;
  white-space: nowrap;
}

.current-members-table td:nth-child(2) {
  width: 60%;
  font-weight: bold;
}

.current-members-table td:nth-child(3) {
  width: auto;
}

.current-members-table .member-ra {
  color: #c61f1f;
  font-weight: 700;
}

.charity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 1rem 0 1.5rem;
}

.charity-card {
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.charity-card__link {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.charity-card__logo {
  width: 100%;
  height: 96px;
  object-fit: contain;
  background: #fff;
}

.charity-card h3 {
  margin: 0;
  font-size: 1.05em;
}

.charity-card p {
  margin: 0;
}

.charity-card__cta {
  color: #0b5c8f;
  font-weight: bold;
}

.charity-card__link:hover .charity-card__cta,
.charity-card__link:focus-visible .charity-card__cta {
  text-decoration: underline;
}

.charity-archive {
  margin-top: 0.8rem;
}

.charity-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.charity-archive-card {
  border: 1px solid #e1e1e1;
  background: #fafafa;
  padding: 0.9rem;
}

.charity-archive-card h4 {
  margin: 0 0 0.35rem;
}

.charity-archive-card__amount {
  margin: 0 0 0.45rem;
  font-weight: bold;
  color: #0b5c8f;
}

.events-table td:first-child {
  width: 84px;
  text-align: center;
  vertical-align: middle;
}

.events-table td:nth-child(2) {
  width: auto;
}

.events-table td:nth-child(3),
.events-table td:nth-child(4) {
  white-space: nowrap;
}

.event-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  font-size: 0.85em;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.event-type-meeting .event-type {
  background: #0b5c8f;
}

.event-type-loi .event-type {
  background: #7a4a08;
}

.event-type-social .event-type {
  background: #2f7a4f;
}

.join-page {
  display: grid;
  gap: 1.5rem;
}

.join-hero,
.join-panel,
.join-section,
.join-cta {
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 1.2rem;
}

.join-hero h1,
.join-section h2,
.join-panel h2,
.join-cta h2 {
  margin-bottom: 0.65rem;
}

.join-kicker {
  margin: 0 0 0.55rem;
  color: #0b5c8f;
  font-size: 0.85em;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.join-hero p:last-child,
.join-panel p:last-child,
.join-cta p:last-child,
.join-text p:last-child {
  margin-bottom: 0;
}

.join-panel {
  display: grid;
  gap: 1rem;
}

.join-contact {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.join-contact div {
  border-top: 1px solid #ececec;
  padding-top: 0.75rem;
}

.join-contact div:first-child {
  border-top: 0;
  padding-top: 0;
}

.join-contact dt {
  margin: 0 0 0.15rem;
  font-weight: bold;
}

.join-contact dd {
  margin: 0;
}

.join-cards {
  display: grid;
  gap: 0.9rem;
}

.join-card {
  border: 1px solid #e3e3e3;
  padding: 1rem;
  background: #fafafa;
}

.join-card h3 {
  margin-bottom: 0.45rem;
}

.join-text {
  display: grid;
  gap: 0.75rem;
  max-width: 72ch;
}

.join-steps {
  display: grid;
  gap: 0.9rem;
}

.join-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.join-step__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0b5c8f;
  color: #fff;
  font-weight: bold;
  line-height: 1;
}

.join-step h3 {
  margin-bottom: 0.35rem;
}

.join-facts {
  display: grid;
  gap: 0.75rem;
}

.join-facts > div {
  border-top: 1px solid #ececec;
  padding-top: 0.75rem;
}

.join-facts > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.join-facts span {
  display: block;
  margin-bottom: 0.15rem;
  color: #5a5a5a;
  font-size: 0.92em;
}

.join-facts strong {
  display: block;
  font-weight: 600;
}

.join-cta__links {
  margin-top: 1rem;
}

.join-cta__links a {
  color: #0b5c8f;
  font-weight: bold;
  text-decoration: none;
}

.join-cta__links span {
  color: #777;
  margin: 0 0.35rem;
}

@media (max-width: 1040px) {
  #head,
  #wrap {
    width: calc(100% - 1.5rem);
  }

  .site-brand {
    gap: 0.6rem;
  }

  .site-brand__crest {
    height: 42px;
  }

  .site-brand__title {
    font-size: 1rem;
  }
}

@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  #content {
    float: none;
    width: 100%;
  }

  #header {
    padding: 0.14rem 0 0.18rem;
  }

  .site-brand {
    gap: 0.5rem;
  }

  .site-brand__crest {
    height: 38px;
  }

  .site-brand__crest-tile {
    padding: 0.22rem;
  }

  .site-brand__title {
    font-size: 0.92rem;
  }

  .site-brand__subtitle {
    font-size: 0.7rem;
  }

  .site-head {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-nav-wrap {
    width: 100%;
    margin-left: 0;
  }

  #nav_toggle summary {
    display: flex;
    width: 100%;
    margin: 0.15rem 0 0;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: #fff;
    font-weight: 700;
    border-radius: 0;
  }

  #nav_toggle summary::-webkit-details-marker {
    display: none;
  }

  .nav-toggle__icon {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 0.8rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
  }

  #nav_toggle:not([open]) #navi {
    display: none;
  }

  #navi {
    width: 100%;
  }

  #nav {
    display: block;
    width: 100%;
  }

  #nav li {
    width: 100%;
  }

  #nav a {
    display: block;
    width: 100%;
    line-height: 1.35;
    padding: 0.62rem 0.45rem;
  }

  #nav .nav-cta {
    margin-left: 0;
  }

  #nav .nav-cta > a {
    margin-top: 0.1rem;
    padding: 0.78rem 0.75rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  }

  #wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .legacy-details summary {
    padding: 12px;
  }

  .legacy-details table {
    min-width: 0;
  }

  .current-members-table,
  .current-members-table tbody,
  .current-members-table tr,
  .current-members-table td,
  .events-table,
  .events-table tbody,
  .events-table tr,
  .events-table td {
    display: block;
    width: 100%;
  }

  .current-members-table tr,
  .events-table tr {
    border: 1px solid #d8d8d8;
    margin: 0 0 8px;
  }

  .current-members-table td,
  .events-table td {
    border: 0;
    box-sizing: border-box;
  }

  .current-members-table td:first-child,
  .current-members-table td:nth-child(2),
  .current-members-table td:nth-child(3),
  .events-table td:first-child,
  .events-table td:nth-child(3),
  .events-table td:nth-child(4) {
    width: 100%;
  }

  .charity-grid {
    grid-template-columns: 1fr;
  }

  .join-step {
    grid-template-columns: 1.9rem 1fr;
  }

  .events-table td:first-child {
    text-align: left;
  }
}

@media (min-width: 760px) {
  #nav_toggle summary {
    display: none;
  }

  .join-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
  }

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

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

  .join-facts > div {
    border-top: 0;
    padding-top: 0;
  }

  .join-facts > div:nth-child(n + 3) {
    border-top: 1px solid #ececec;
    padding-top: 0.75rem;
  }
}
