:root {
  --psj-navy: #073b68;
  --psj-blue: #0b4f84;
  --psj-blue-light: #eaf2f9;
  --psj-ink: #153858;
  --psj-muted: #66798c;
  --psj-line: #dbe4eb;
  --psj-paper: #ffffff;
  --psj-soft: #f5f8fb;
  --psj-radius: 8px;
  --psj-shadow: 0 8px 26px rgba(14, 53, 86, 0.1);
  --psj-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--psj-paper);
  color: var(--psj-ink);
  font-family: "Tahoma", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--psj-blue);
}

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.psj-container {
  width: min(calc(100% - 40px), var(--psj-container));
  margin-inline: auto;
}

.narrow-container {
  width: min(calc(100% - 40px), 820px);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  right: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: #fff;
  color: var(--psj-navy);
}

.button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--psj-navy);
  border-radius: 8px;
  padding: 9px 25px;
  background: var(--psj-navy);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  background: var(--psj-blue);
  color: #fff;
  transform: translateY(-1px);
}

.button-small {
  min-height: 38px;
  padding: 6px 18px;
  font-size: 14px;
}

.outline-button {
  min-height: 38px;
  margin-top: 18px;
  padding: 5px 24px;
  background: transparent;
  color: var(--psj-navy);
  font-size: 14px;
}

.outline-button:hover {
  background: var(--psj-navy);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: 84px;
  border-bottom: 1px solid rgba(10, 57, 95, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(14, 53, 86, 0.04);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.site-branding,
.custom-logo-link,
.text-logo {
  display: flex;
  align-items: center;
}

.site-branding {
  gap: 11px;
}

.custom-logo-link {
  flex: 0 0 auto;
}

.custom-logo {
  width: auto;
  max-width: 74px;
  max-height: 68px;
}

.text-logo {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.site-title {
  color: var(--psj-navy);
  font-size: 18px;
  font-weight: 800;
}

.site-tagline {
  color: var(--psj-muted);
  font-size: 12px;
}

.primary-navigation .menu,
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 31px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation .menu a {
  position: relative;
  display: block;
  padding: 29px 0 25px;
  color: #234764;
  font-size: 14px;
  font-weight: 700;
}

.primary-navigation .menu a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--psj-blue);
  content: "";
  transition: width 0.2s ease;
}

.primary-navigation .current-menu-item > a::after,
.primary-navigation .menu a:hover::after {
  width: 100%;
}

.header-actions,
.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--psj-navy);
}

.social-links svg {
  width: 17px;
  height: 17px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--psj-navy);
}

/* Hero */
.hero-section {
  position: relative;
  display: grid;
  min-height: 570px;
  overflow: hidden;
  background-color: #bfd2e4;
  background-image:
    radial-gradient(circle at 78% 28%, rgba(255, 244, 219, 0.92), transparent 27%),
    linear-gradient(135deg, #dceaf5 0%, #b8d0e5 50%, #6e96bf 100%);
  background-position: center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 44, 80, 0.34), rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 72px 55px;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 2px;
  color: var(--psj-navy);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 500;
}

.hero-content h1 {
  margin: 0 0 4px;
  color: #05345f;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.25;
}

.hero-verse {
  margin: 6px 0 0;
  color: #173f65;
  font-size: clamp(21px, 2.4vw, 32px);
}

.hero-reference {
  margin: 0;
  color: #173f65;
  font-size: 15px;
  font-weight: 700;
}

.hero-values {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 29px;
}

.hero-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  padding-inline: 31px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.hero-value + .hero-value {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.7);
}

.value-icon {
  display: grid;
  width: 77px;
  height: 77px;
  place-items: center;
  margin-bottom: 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(9, 56, 96, 0.24);
  backdrop-filter: blur(4px);
}

.value-icon svg {
  width: 49px;
  height: 49px;
}

/* General sections */
.section {
  padding-block: 53px;
}

.section-heading {
  margin-bottom: 29px;
  text-align: center;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  color: var(--psj-navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
}

.section-heading h2::before,
.section-heading h2::after {
  width: 48px;
  height: 1px;
  background: #879eb1;
  content: "";
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--psj-muted);
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.article-card,
.content-card {
  overflow: hidden;
  border: 1px solid rgba(11, 59, 104, 0.08);
  border-radius: var(--psj-radius);
  background: #fff;
  box-shadow: var(--psj-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover,
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(14, 53, 86, 0.15);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dce7ef;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .card-media img {
  transform: scale(1.035);
}

.media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100px;
  background: linear-gradient(135deg, #d7e5f0, #8caac4);
}

.card-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 74px;
  padding: 6px 14px;
  border-radius: 0 0 0 7px;
  background: var(--psj-blue);
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.card-body {
  padding: 17px 20px 20px;
}

.card-body time,
.content-card time,
.entry-meta {
  color: #8995a1;
  font-size: 13px;
}

.card-body h3 {
  margin: 5px 0 3px;
  color: var(--psj-navy);
  font-size: 20px;
}

.card-body p {
  margin: 0 0 10px;
  color: #486079;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--psj-navy);
  font-size: 14px;
  font-weight: 700;
}

.text-link svg {
  width: 17px;
  height: 17px;
}

.activity-gallery-section {
  padding-top: 0;
}

.split-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
}

.content-panel {
  padding: 20px 27px 24px;
  border-radius: var(--psj-radius);
  background: var(--psj-blue-light);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--psj-navy);
  font-size: 27px;
}

.panel-icon svg {
  width: 27px;
  height: 27px;
  color: var(--psj-navy);
}

.event-list {
  display: grid;
  gap: 9px;
}

.event-item {
  display: grid;
  grid-template-columns: 130px 1fr 66px;
  align-items: center;
  gap: 15px;
  min-height: 97px;
  border-radius: 5px;
}

.event-image {
  height: 97px;
  overflow: hidden;
  border-radius: 5px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-copy h3 {
  margin: 0 0 4px;
  color: var(--psj-navy);
  font-size: 17px;
}

.event-copy p {
  margin: 0;
  color: #486079;
  font-size: 12px;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border-radius: 6px;
  background: var(--psj-blue);
  color: #fff;
  line-height: 1.1;
}

.event-date span {
  font-size: 12px;
}

.event-date strong {
  margin-top: 4px;
  font-size: 25px;
}

.events-panel .outline-button,
.gallery-panel .outline-button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.gallery-grid > a,
.gallery-placeholder span {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #a9c0d3, #e8eff5);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(0, 40, 74, 0.82));
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-grid > a:hover .gallery-title {
  opacity: 1;
}

.empty-state {
  padding: 30px 20px;
  border: 1px dashed #adc0d0;
  border-radius: 6px;
  color: #60788e;
  text-align: center;
}

/* Mission */
.mission-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(4, 48, 86, 0.92), rgba(4, 48, 86, 0.92)),
    radial-gradient(circle at 20% 20%, #507aa0, #062f57);
  color: #fff;
}

.mission-section::after {
  position: absolute;
  right: 0;
  bottom: -70px;
  width: 360px;
  height: 230px;
  border-radius: 50% 0 0;
  background: rgba(0, 26, 54, 0.18);
  content: "";
}

.mission-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1.55fr;
  align-items: center;
  gap: 60px;
  min-height: 255px;
  padding-block: 44px;
}

.mission-inner blockquote {
  position: relative;
  margin: 0;
  padding: 20px 38px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.75;
}

.mission-inner blockquote::before {
  position: absolute;
  top: -21px;
  right: 0;
  color: rgba(255, 255, 255, 0.25);
  content: "“";
  font-family: Georgia, serif;
  font-size: 92px;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mission-value {
  padding-inline: 27px;
  text-align: center;
}

.mission-value + .mission-value {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.45);
}

.mission-value > span {
  display: inline-block;
}

.mission-value svg {
  width: 56px;
  height: 56px;
}

.mission-value h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.mission-value p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

/* Newsletter and footer */
.newsletter-section {
  background: #fafafa;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 65px;
  min-height: 135px;
  padding-block: 28px;
}

.newsletter-inner h2 {
  margin: 0;
  color: var(--psj-navy);
  font-size: 25px;
}

.newsletter-inner p {
  margin: 3px 0 0;
  color: var(--psj-muted);
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  padding: 10px 17px;
  background: #fff;
  color: var(--psj-ink);
}

.newsletter-form .button {
  min-width: 110px;
}

.site-footer {
  background: #06365f;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr 1.05fr;
  gap: 55px;
  padding-block: 42px 30px;
}

.footer-brand .custom-logo {
  max-width: 92px;
  max-height: 92px;
  filter: brightness(0) invert(1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-text-logo .site-title,
.footer-text-logo .site-tagline {
  color: #fff;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}

.footer-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-column li {
  margin: 3px 0;
}

.footer-column a,
.footer-column p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-menu {
  display: block;
}

.contact-column p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 7px 0;
}

.contact-column p svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 4px;
}

.footer-social {
  margin-top: 14px;
}

.footer-social a {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
  margin: 0;
  padding-block: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 11px;
}

/* Inner content */
.inner-main {
  min-height: 55vh;
  padding-block: 65px;
  background: var(--psj-soft);
}

.archive-heading {
  margin-bottom: 30px;
  text-align: center;
}

.archive-heading h1,
.entry-header h1 {
  margin: 0;
  color: var(--psj-navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.3;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-card > div {
  padding: 18px 20px 22px;
}

.content-card h2 {
  margin: 5px 0 8px;
  color: var(--psj-navy);
  font-size: 22px;
}

.single-entry {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--psj-shadow);
}

.entry-header {
  padding: 42px 45px 0;
  text-align: center;
}

.entry-featured {
  margin: 28px -45px 0;
}

.entry-featured img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.entry-content {
  padding: 38px 45px 50px;
  color: #294a65;
  font-size: 18px;
  line-height: 1.95;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content a {
  color: var(--psj-blue);
  text-decoration: underline;
}

.entry-content h2,
.entry-content h3 {
  color: var(--psj-navy);
}

.entry-content .alignwide {
  width: min(1100px, calc(100vw - 40px));
  max-width: none;
  margin-right: 50%;
  transform: translateX(50%);
}

.error-page {
  padding-block: 80px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: #abc0d1;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: minmax(220px, 280px) 1fr auto;
    gap: 14px;
  }

  .primary-navigation .menu {
    gap: 16px;
  }

  .primary-navigation .menu a {
    font-size: 13px;
  }

  .social-links {
    display: none;
  }

  .mission-inner {
    gap: 25px;
  }
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .primary-navigation {
    order: 3;
  }

  .menu-toggle {
    display: block;
  }

  .menu-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 24px rgba(10, 47, 79, 0.14);
    transition: max-height 0.3s ease;
  }

  .menu-is-open .menu-panel {
    max-height: 75vh;
    overflow-y: auto;
  }

  .primary-navigation .menu {
    display: block;
    width: min(calc(100% - 40px), var(--psj-container));
    margin: 0 auto;
    padding-block: 12px 20px;
  }

  .primary-navigation .menu a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--psj-line);
  }

  .primary-navigation .menu a::after {
    display: none;
  }

  .split-panels,
  .mission-inner,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .mission-inner {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .psj-container,
  .narrow-container {
    width: min(calc(100% - 28px), var(--psj-container));
  }

  .site-header,
  .header-inner {
    min-height: 72px;
  }

  .custom-logo {
    max-width: 62px;
    max-height: 56px;
  }

  .donate-button {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    display: none;
  }

  .hero-section {
    min-height: 510px;
  }

  .hero-content {
    padding-block: 55px 38px;
  }

  .hero-eyebrow {
    font-size: 25px;
  }

  .hero-content h1 {
    font-size: 39px;
  }

  .hero-values {
    width: 100%;
  }

  .hero-value {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
    font-size: 15px;
  }

  .value-icon {
    width: 62px;
    height: 62px;
  }

  .value-icon svg {
    width: 39px;
    height: 39px;
  }

  .section {
    padding-block: 40px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading h2::before,
  .section-heading h2::after {
    width: 25px;
  }

  .card-grid,
  .content-card-grid {
    grid-template-columns: 1fr;
  }

  .content-panel {
    padding: 18px 15px 22px;
  }

  .panel-heading h2 {
    font-size: 23px;
  }

  .event-item {
    grid-template-columns: 92px 1fr 58px;
    gap: 10px;
  }

  .event-image {
    height: 83px;
  }

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

  .mission-inner blockquote {
    padding: 10px 20px;
    font-size: 22px;
    text-align: center;
  }

  .mission-values {
    gap: 0;
  }

  .mission-value {
    padding-inline: 10px;
  }

  .mission-value svg {
    width: 42px;
    height: 42px;
  }

  .mission-value p {
    display: none;
  }

  .newsletter-inner {
    gap: 18px;
    padding-block: 28px 34px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .entry-header,
  .entry-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .entry-featured {
    margin-right: -24px;
    margin-left: -24px;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .hero-verse {
    font-size: 19px;
  }

  .hero-value {
    font-size: 14px;
  }

  .value-icon {
    width: 55px;
    height: 55px;
  }

  .event-item {
    grid-template-columns: 76px 1fr 51px;
  }

  .event-copy h3 {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
