/* assets/css/pages.css - static pages (About, Privacy policy, Contacts), same look as /blog and /brochure.
   Tokens from places.css. Page text comes from db_text.js as HTML, so this styles plain tags. */

.stPage { max-width: 760px; }
.stLead { margin: 0 0 26px; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ---------- article text ---------- */
.stProse { margin: 0 0 48px; font-size: 17px; line-height: 1.7; }
.stProse > :first-child { margin-top: 0; }
.stProse p { margin: 0 0 16px; line-height: 1.7; }
.stProse h2 {
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.stProse h3 { margin: 24px 0 8px; font-size: 18px; }
.stProse ul, .stProse ol { margin: 0 0 16px; padding-inline-start: 22px; }
.stProse li { margin: 0 0 6px; line-height: 1.6; }
.stProse a,
.stProse a[style] { color: var(--blue) !important; text-decoration: underline; text-underline-offset: 2px; }   /* texts have inline color:blue */
.stProse a:hover { text-decoration-thickness: 2px; }
.stProse strong { font-weight: 700; }
.stProse em:only-child { color: var(--muted); font-size: 14px; font-style: normal; }   /* "Last updated: ..." */
.stProse img, .stProse video, .stProse iframe { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.stProse iframe { width: 100%; aspect-ratio: 16 / 9; }
.stProse section, .stProse .insert { margin: 22px 0; }
.stProse .photo-label { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-style: normal; text-align: start; }

/* ---------- contacts ---------- */
.stContact { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; margin-bottom: 48px; }
.stSide { display: flex; flex-direction: column; gap: 10px; }
.stSideCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
a.stSideCard:hover { border-color: var(--blue); }
.stSideCard strong { font-size: 16px; }
.stSideCard span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.stSideCard--note { background: var(--blue-soft); border-color: transparent; }
.stSent { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.stSent[hidden] { display: none; }
.stSent strong { font-size: 20px; }
.stSent span { color: var(--muted); }

@media (max-width: 760px) {
  .stContact { display: flex; flex-direction: column; }
  .stSide { display: contents; }                       /* its cards join the column... */
  .stSideCard--note { order: -1; }                     /* ...and "unofficial project" goes above the form */
  .stLead { font-size: 16px; }
  .stProse { font-size: 16px; }
}

/* ---------- text pages (/about, /project, /privacy, /events): one centred reading column ----------
   Big centred title, then the text in a ~68-character column; photos run a bit wider than the text. */
.stPage--text {
  --col: 680px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 80px;
}
.stPage--text .stHead {
  max-width: 880px;
  margin: 24px auto 56px;
  text-align: center;
}
.stPage--text .breadcrumbs { justify-content: center; }          /* the nav is a flex row (style.css) */
.stPage--text .breadcrumbs ol { justify-content: center; margin-bottom: 22px; }
.stPage--text .stTitle {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
:lang(he) .stPage--text .stTitle { letter-spacing: 0; }

.stPage--text .stProse {
  max-width: var(--col);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}
.stPage--text .stProse p { line-height: 1.75; margin-bottom: 20px; }
/* "Last updated: ..." line at the top: small, centred under the title */
.stPage--text .stProse > p:first-child:has(> em:only-child) { margin: -36px 0 48px; text-align: center; }
.stPage--text .stProse h2 {
  margin: 64px 0 16px;
  padding: 0;
  border: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.stPage--text .stProse h3 { margin: 36px 0 10px; font-size: 20px; }
.stPage--text .stProse ul { padding-inline-start: 0; list-style: none; }
.stPage--text .stProse ul > li { position: relative; margin-bottom: 10px; padding-inline-start: 26px; }
.stPage--text .stProse ul > li::before {          /* small blue square, like the logo's blocks */
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--blue);
}
.stPage--text .stProse ol { padding-inline-start: 26px; }
/* photos break out of the text column */
.stPage--text .stProse section,
.stPage--text .stProse > p:has(> img:only-child) {
  width: min(960px, calc(100vw - 32px));
  margin: 40px 0 40px 50%;
  translate: -50% 0;
}
body.rtl .stPage--text .stProse section,
body.rtl .stPage--text .stProse > p:has(> img:only-child) { margin: 40px 50% 40px 0; translate: 50% 0; }
.stPage--text .stProse img { width: 100%; border-radius: 18px; }
.stPage--text .stProse .photo-label { margin-top: 12px; text-align: center; }

@media (max-width: 760px) {
  .stPage--text .stHead { margin: 8px auto 36px; }
  .stPage--text .stProse { font-size: 17px; }
  .stPage--text .stProse h2 { margin-top: 48px; }
  .stPage--text .stProse > p:first-child:has(> em:only-child) { margin: -20px 0 32px; }
}

/* ---------- contacts: same centred top as the text pages, form + side cards centred under it ---------- */
.stPage--contacts .stLead { max-width: 620px; margin: 18px auto 0; font-size: 19px; text-wrap: pretty; }
.stPage--contacts .stContact {
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.stPage--contacts .jnCard { padding: 32px; border-radius: 22px; }
.stPage--contacts .stSideCard { padding: 20px 22px; border-radius: 18px; }
.stPage--contacts .stSideCard strong { font-size: 17px; }
@media (max-width: 760px) {
  .stPage--contacts .stLead { font-size: 17px; }
  .stPage--contacts .jnCard { padding: 20px; }
}
