/* P346.org × P346 Social: sections that bring the community onto the ministry's pages, in the
   site's newspaper style (assets/site-social.js). */

/* Header: you, on P346 Social */
#navigation a.site-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.site-me-pic {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  color: #c6a34a;
  box-shadow: 0 0 0 1.5px #c6a34a;
  font: 700 10px/1 'Playfair Display', Georgia, serif;
  letter-spacing: 0;
}
.site-me-name {
  text-transform: none;
  letter-spacing: 0.02em;
}
.site-me-count {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 99px;
  background: #b23a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

/* Need help? */
.site-help {
  background: var(--cream, #f1ebdc);
  border-top: 1px solid var(--rule, #cfc6b2);
  border-bottom: 1px solid var(--rule, #cfc6b2);
}
.site-help-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.site-help h2 {
  margin: 6px 0 10px;
  font: 700 32px/1.15 var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--navy, #13213c);
}
.site-help-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted, #384152);
}
.site-help-box {
  padding: 22px 24px;
  background: var(--paper, #fbf8f1);
  border: 1px solid var(--navy, #13213c);
  box-shadow: 4px 4px 0 var(--navy, #13213c);
}
.site-help-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
}
.site-help-form select,
.site-help-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--rule, #cfc6b2);
  border-radius: 4px;
  background: #fff;
  color: var(--ink, #1c2433);
  font: 15px var(--sans, Inter, Arial, sans-serif);
}
.site-help-form .button {
  min-height: 46px;
  border: 0;
  cursor: pointer;
}
.site-help-quick {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted, #384152);
}
.site-help-quick a {
  color: var(--gold-text, #7a5a12);
  font-weight: 600;
}
.site-help-urgent {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule, #cfc6b2);
  font-size: 13px;
  color: var(--muted, #384152);
}
.site-help-urgent a {
  color: inherit;
  font-weight: 700;
}

/* Happening in the community: calendar listings */
.site-ev-cols.site-n4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.site-ev-cols.site-n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-ev-cols.site-n1 {
  grid-template-columns: minmax(0, 1fr);
}
.site-ev-cols > * {
  padding: 0 24px !important;
}
.site-ev-cols > *:first-child {
  padding-left: 0 !important;
}
.site-ev-cols > *:last-child {
  padding-right: 0 !important;
}
.site-ev-link {
  color: inherit;
  text-decoration: none;
}
.site-ev-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.site-ev-dateline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px !important;
}
.site-ev-date {
  display: grid;
  place-items: center;
  align-content: center;
  flex: none;
  width: 52px;
  height: 56px;
  background: #000;
  color: #fff;
  line-height: 1;
}
.site-ev-date span {
  color: #c6a34a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.site-ev-date strong {
  font: 700 24px/1.1 var(--serif, 'Playfair Display', Georgia, serif);
}
.site-ev-day {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text, #7a5a12) !important;
  line-height: 1.4 !important;
}
.site-ev h3 {
  font-size: 22px !important;
}
.site-ev-host {
  margin: 0 0 2px !important;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--ink, #1c2433) !important;
}
.site-ev-where {
  margin: 0 0 12px !important;
  font-size: 15px !important;
}
.site-ev-more {
  font-size: 14px;
  font-weight: 700;
}
.site-ev-note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted, #384152);
}

/* Volunteer: open opportunities */
.site-vol-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-vol {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule, #cfc6b2);
}
.site-vol-when {
  display: grid;
  gap: 2px;
}
.site-vol-when strong {
  font: 700 20px/1.1 var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--navy, #13213c);
}
.site-vol-when span {
  font-size: 14px;
  color: var(--muted, #384152);
}
.site-vol-what h3 {
  margin: 0 0 4px;
  font: 700 22px/1.25 var(--serif, 'Playfair Display', Georgia, serif);
}
.site-vol-what h3 a {
  color: var(--navy, #13213c);
  text-decoration: none;
}
.site-vol-what p {
  margin: 0;
  color: var(--muted, #384152);
}
.site-vol-spots {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #384152);
}
.site-low {
  color: #b23a2e;
}

@media (max-width: 900px) {
  .site-help-in {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .site-help-form {
    grid-template-columns: 1fr;
  }
  .site-ev-cols.site-n4,
  .site-ev-cols.site-n3,
  .site-ev-cols.site-n2 {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
  .site-ev-cols > * {
    padding: 0 16px !important;
    border-left: 0 !important;
  }
  .site-vol {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-me-name {
    display: none;
  }
}
@media (max-width: 560px) {
  .site-ev-cols.site-n4,
  .site-ev-cols.site-n3,
  .site-ev-cols.site-n2 {
    grid-template-columns: 1fr;
  }
  .site-ev-cols > * {
    padding: 0 !important;
  }
}

/* The Volunteer page doesn't use the home page's styles, so the section brings its own. */
main:not(.home) .site-vols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
}
main:not(.home) .site-vols .home-center {
  text-align: center;
  margin-bottom: 28px;
}
main:not(.home) .site-vols .kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text, #7a5a12);
}
main:not(.home) .site-vols .section-title {
  margin: 6px 0 0;
  font: 700 40px/1.15 var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--navy, #13213c);
}
main:not(.home) .site-vols .rule2 {
  border-top: 3px solid var(--navy, #13213c);
  border-bottom: 1px solid var(--navy, #13213c);
}
main:not(.home) .site-vols .more {
  text-align: center;
  margin-top: 28px;
}
main:not(.home) .site-vols .tl {
  font-weight: 700;
  color: var(--navy, #13213c);
}

/* Partners: partner organizations on P346 Social */
.site-partners {
  padding-top: 56px;
  padding-bottom: 56px;
}
.site-partners .kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text, #7a5a12);
}
.site-partners h2 {
  margin: 6px 0 8px;
  font: 700 34px/1.2 var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--navy, #13213c);
}
.site-partners-lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted, #384152);
  font-size: 17px;
  line-height: 1.6;
}
.site-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 3px solid var(--navy, #13213c);
}
.site-partner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--rule, #cfc6b2);
}
.site-partner + .site-partner {
  border-left: 1px solid var(--rule, #cfc6b2);
}
.site-partner:nth-child(3n + 1) {
  border-left: 0;
  padding-left: 0;
}
.site-partner-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.site-partner-head strong {
  font: 700 20px/1.25 var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--navy, #13213c);
}
.site-partner-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #384152);
  font-size: 13px;
}
.site-verified {
  color: var(--gold-text, #7a5a12);
  font-size: 12px;
  font-weight: 700;
}
.site-partner-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  color: #c6a34a;
  font: 700 16px/1 var(--serif, 'Playfair Display', Georgia, serif);
  box-shadow: 0 0 0 2px #c6a34a;
}
.site-partner-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text, #7a5a12);
}
.site-partner-needs ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink, #1c2433);
  line-height: 1.6;
}
.site-urgent span {
  color: #b23a2e;
  font-weight: 700;
  font-size: 13px;
}
.site-partner-quiet {
  margin: 0;
  color: var(--muted, #384152);
}
.site-partner .tl {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy, #13213c);
}
.site-partners .more {
  margin-top: 24px;
}
.site-partners .more .tl {
  font-weight: 700;
  color: var(--navy, #13213c);
}
@media (max-width: 900px) {
  .site-partner-grid {
    grid-template-columns: 1fr;
  }
  .site-partner,
  .site-partner + .site-partner {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Stories: comments from the P346 community (members only) */
.site-comments {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 32px 0 8px;
  border-top: 3px solid var(--navy, #13213c);
  font-family: var(--sans, Inter, Arial, sans-serif);
}
.site-cm-head .kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text, #7a5a12);
}
.site-cm-head h2 {
  margin: 4px 0 20px;
  font: 700 30px/1.2 var(--serif, 'Playfair Display', Georgia, serif);
  color: var(--navy, #13213c);
}
.site-cm-gate {
  padding: 24px;
  background: var(--cream, #f1ebdc);
  border: 1px solid var(--rule, #cfc6b2);
}
.site-cm-gate p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink, #1c2433);
}
.site-cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.site-cm-small {
  font-size: 13px !important;
  color: var(--muted, #384152) !important;
}
.site-cm-small a {
  color: var(--gold-text, #7a5a12);
  font-weight: 600;
}
.site-cm-pic {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  color: #c6a34a;
  font: 700 13px/1 var(--serif, 'Playfair Display', Georgia, serif);
}
.site-cm-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.site-cm-form-main {
  flex: 1;
  min-width: 0;
}
.site-cm-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--rule, #cfc6b2);
  border-radius: 4px;
  background: #fff;
  font: 16px/1.5 var(--sans, Inter, Arial, sans-serif);
  color: var(--ink, #1c2433);
  resize: vertical;
}
.site-cm-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.site-cm-form .button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.site-cm-error {
  margin: 6px 0 0;
  color: #b23a2e;
  font-size: 14px;
}
.site-cm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-cm {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule, #cfc6b2);
}
.site-cm-nested {
  padding: 12px 0 0;
  border-top: 0;
}
.site-cm-nested .site-cm-pic {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.site-cm-main {
  flex: 1;
  min-width: 0;
}
.site-cm-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 4px;
}
.site-cm-who a {
  font-weight: 700;
  color: var(--navy, #13213c);
  text-decoration: none;
}
.site-cm-staff {
  padding: 1px 6px;
  background: #000;
  color: #c6a34a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-cm-when {
  color: var(--muted, #384152);
  font-size: 13px;
}
.site-cm-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink, #1c2433);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.site-cm-acts {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.site-cm-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-text, #7a5a12);
  font: 600 13px var(--sans, Inter, Arial, sans-serif);
  text-decoration: none;
  cursor: pointer;
}
.site-cm-reply-form {
  margin: 12px 0 0;
}
.site-cm-reply-form .site-cm-pic {
  width: 32px;
  height: 32px;
}
.site-cm-empty {
  padding: 16px 0;
  border-top: 1px solid var(--rule, #cfc6b2);
  color: var(--muted, #384152);
}
.site-cm-social {
  margin-top: 20px !important;
  padding-top: 14px;
  border-top: 1px solid var(--rule, #cfc6b2);
}
@media (max-width: 560px) {
  .site-cm-form-foot {
    flex-direction: column;
    align-items: stretch;
  }
}
.site-comments .site-cm-list {
  margin: 0 !important;
  padding: 0 !important;
}
.site-comments .site-cm-list li {
  margin: 0 !important;
}
.site-comments .site-cm-head .kicker {
  margin: 0 !important;
}
.site-comments .site-cm-head h2 {
  margin: 4px 0 20px !important;
}

/* ---------- The P346 Social banner ("Many hands. One network.") ---------- */
.site-ad-wrap {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}
.site-ad {
  display: block;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.site-ad:focus-visible {
  outline: 3px solid #e8c766;
  outline-offset: 4px;
}
.site-ad video,
.site-ad img {
  display: block;
  width: 100%;
  height: auto;
}
.site-ad.site-ad-square {
  max-width: 520px;
  margin: 0 auto;
}
/* In the Updates list it spans the whole row of stories. */
.updates-grid > .site-ad-wrap.site-ad-in-list {
  grid-column: 1 / -1;
  margin: 8px 0;
  padding: 0;
  max-width: none;
}
.marquee .updates-grid > .site-ad-wrap.site-ad-in-list {
  background: #000;
  padding: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .site-ad,
  .site-ad:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- Getting to P346 Social from any page ----------
 * server.cjs adds: a "P346 Social" button in the header (beside Donate; on phones beside
 * Sections), P346 Social first in the phone menu with a short description, and "Join free"
 * in the footer. A signed-in member sees their picture and name on the button instead. */
.site .nav-bar .nav-shell {
  display: flex;
  align-items: center;
}
.site-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #c6a34a;
  border-radius: 4px;
  color: #e8c766;
  font: 700 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-social-btn:hover {
  background: #c6a34a;
  color: #000;
}
.site-social-btn:focus-visible {
  outline: 3px solid #e8c766;
  outline-offset: 3px;
}
.site-social-btn .site-social-ico {
  flex: none;
}
.site-social-btn.site-me {
  padding: 6px 12px 6px 6px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.site-social-btn.site-me:hover .site-me-pic {
  box-shadow: 0 0 0 1.5px #000;
}
/* The menu's own P346 Social line is for the phone menu; on computers the button covers it. */
#navigation a.nav-social {
  display: none;
}
#navigation a.nav-social small {
  display: block;
  margin-top: 4px;
  font: 400 13px/1.35 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: #b5b5b5;
}
/* Footer: "P346 Social  JOIN FREE" */
.site-footer-social .site-join {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #c6a34a;
  border-radius: 99px;
  color: #e8c766;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
@media (max-width: 1330px) {
  .site .nav-bar .nav-shell {
    flex-wrap: wrap;
    gap: 10px;
  }
  .site .nav-bar .menu-toggle {
    flex: 1 1 0;
    width: auto;
    order: 1;
  }
  .site-social-btn {
    order: 2;
  }
  .site .nav-bar nav {
    order: 3;
  }
  #navigation.open a.nav-social {
    display: block;
    order: -1;
    padding: 14px 0;
    color: #e8c766;
    border-bottom: 1px solid #2a2a2a;
  }
  .site-social-btn.site-me .site-me-name {
    display: inline;
  }
}
@media (max-width: 420px) {
  .site-social-btn .site-social-p346 {
    display: none;
  }
  .site-social-btn {
    padding: 8px 12px;
  }
}
@media (min-width: 1331px) {
  html:root body.site .nav-bar nav {
    flex-wrap: nowrap;
  }
  html:root body.site .nav-bar nav a {
    white-space: nowrap;
  }
  html:root body.site .nav-bar .nav-shell {
    gap: 18px;
  }
}
/* Tablets and small laptops get the phone header (Sections menu + P346 Social button): the full
 * row of links no longer fits there. Before this, styles.css hid the links below 1120px while
 * the new design hid the Sections button above 900px, so 901-1120px had no menu at all. */
@media (min-width: 901px) and (max-width: 1330px) {
  html:root body.site.marquee header.masthead {
    align-items: flex-start;
    gap: 24px;
  }
  html:root body.site.marquee .masthead-top {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  html:root body.site.marquee .nav-bar .nav-shell {
    justify-content: center;
  }
  html:root body.site.marquee .nav-bar .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    background: transparent;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font: 600 13px Inter, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  html:root body.site.marquee #navigation {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
  }
  html:root body.site.marquee #navigation.open {
    display: flex;
  }
  html:root body.site.marquee #navigation a {
    font-size: 14px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--mq-line, #2a2a2a);
  }
  html:root body.site.marquee #navigation a[aria-current] {
    border-bottom-color: var(--mq-gold, #c6a34a);
  }
  html:root body.site.marquee #navigation .donate {
    margin: 12px 0 4px;
    justify-content: center;
    border-bottom: 2px solid var(--mq-gold, #c6a34a);
  }
}
