/* ============================================================
   page.css: the content subpages (About, Projects, News, Get
   involved, Contact).

   These pages reuse the landing page's vocabulary (.section,
   .section-head, .section-title, .pillars, .cta, .btn), so they need
   index.css loaded first. What lives here is only what the landing
   page had no use for: a compact page header, the factual blocks that
   state who the foundation legally is, a dated news list and the
   grids for projects, people and ways to get involved.

   Tokens (--ink, --muted, --surface, --border, --accent…) come from
   base.css and follow the theme and accessibility modes on their own.
   ============================================================ */

/* ===================== PAGE HEADER ===================== */
/* The subpage counterpart of .hero: no illustration, no call-to-action
   buttons: just where you are and what the page covers. */
.page-hero{ padding-block:clamp(2.6rem,6vw,4.4rem) clamp(1.6rem,4vw,2.6rem); }
.page-hero__title{ font-size:clamp(2rem,5vw,3.1rem); line-height:1.12; margin-bottom:1rem; max-width:24ch; }
.page-hero__lead{ font-size:clamp(1.06rem,2vw,1.22rem); color:var(--muted); max-width:60ch; }

/* Variant with an illustration alongside the words. The picture is decorative
   support, not information, so it drops away entirely on a narrow screen
   rather than pushing the text into a column two words wide. */
.page-hero--split .page-hero__inner{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr); gap:clamp(1.5rem,5vw,3.5rem); align-items:center; }
.page-hero--split .page-hero__title,
.page-hero--split .page-hero__lead{ max-width:30ch; }
.page-hero--split .page-hero__lead{ max-width:52ch; }
.page-hero__art{ justify-self:center; max-width:340px; width:100%; }
.page-hero__art img{ display:block; width:100%; height:auto; border-radius:var(--radius-media); }

@media (max-width:860px){
  .page-hero--split .page-hero__inner{ grid-template-columns:1fr; }
  .page-hero__art{ display:none; }
}

/* ===================== ILLUSTRATION BAND ===================== */
/* A full-width strip of artwork between two sections: the same device the
   landing page's closing call-to-action uses, available to any page. */
.band{ padding-block:clamp(1.5rem,4vw,2.5rem); }
.band__art{ display:block; width:100%; height:auto; border-radius:var(--radius-media); }
.band--tight{ padding-block:0 clamp(1.5rem,4vw,2.5rem); }

/* ===================== PROSE ===================== */
/* Running text on pages that are mostly text. Constrained to a readable
   measure; the a11y "more spacing" mode widens the rhythm from base.css. */
.prose{ max-width:68ch; }
.prose > * + *{ margin-top:1rem; }
.prose h3{ font-size:clamp(1.2rem,2.4vw,1.45rem); margin-top:2rem; }
.prose ul{ list-style:disc; padding-left:1.35rem; }
.prose ul ul{ list-style:circle; }
.prose li + li{ margin-top:0.45rem; }
.prose strong{ color:var(--ink); }

/* ===================== FACTS ===================== */
/* Who the organisation legally is, as a description list so a screen
   reader reads each value together with its label. */
.facts{ display:grid; gap:0; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; max-width:46rem; }
.facts__row{ display:grid; grid-template-columns:minmax(11rem,16rem) 1fr; gap:0.4rem 1.4rem; padding:0.95rem 1.3rem; }
.facts__row + .facts__row{ border-top:1px solid var(--border); }
.facts dt{ font-weight:700; color:var(--muted); font-size:0.94rem; }
.facts dd{ margin:0; color:var(--ink); }
.section--alt .facts{ background:var(--bg); }

@media (max-width:640px){
  .facts__row{ grid-template-columns:1fr; }
}

/* ===================== STATUTORY GOALS ===================== */
/* The charter's §4/§5 lists. Two columns on a wide screen because the
   items are short, one on a narrow one. */
.goals{ list-style:disc; columns:2; column-gap:clamp(1.4rem,4vw,3rem); padding-left:1.35rem; max-width:72rem; }
.goals::marker,
.goals li::marker{ color:var(--accent); }
.goals li{ break-inside:avoid; margin-bottom:0.55rem; }
.goals--single{ columns:1; }

@media (max-width:760px){
  .goals{ columns:1; }
}

/* ===================== PEOPLE ===================== */
.people{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(16rem,100%),1fr)); gap:clamp(1rem,2.5vw,1.6rem); }
.person{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; }
.section--alt .person{ background:var(--bg); }
.person__name{ font-size:1.16rem; margin-bottom:0.25rem; }
.person__role{ font-family:var(--font-body); font-weight:700; font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-text); margin-bottom:0.7rem; }
.person__body{ color:var(--muted); }

/* ===================== PROJECTS ===================== */
.proj-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(19rem,100%),1fr)); gap:clamp(1rem,2.5vw,1.6rem); }
.proj{ display:flex; flex-direction:column; gap:0.7rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.6rem 1.5rem; }
.section--alt .proj{ background:var(--bg); }
.proj__title{ font-size:1.3rem; }
.proj__body{ color:var(--muted); }
.proj__actions{ margin-top:auto; padding-top:0.6rem; display:flex; flex-wrap:wrap; gap:0.6rem; }

/* Stage badge. Deliberately worded, not decorative: a visitor and an
   Ad Grants reviewer both need to see what actually exists today. */
.stage{ align-self:flex-start; display:inline-flex; align-items:center; gap:0.45rem; font-family:var(--font-body); font-weight:700; font-size:0.76rem; letter-spacing:0.09em; text-transform:uppercase; padding:0.3rem 0.65rem; border-radius:999px; border:1px solid var(--border-2); color:var(--muted); }
.stage--live{ color:var(--accent-text); border-color:var(--accent); background:var(--accent-tint); }

/* ===================== NEWS ===================== */
.news{ display:grid; gap:clamp(1rem,2.5vw,1.5rem); max-width:52rem; }
.news-item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; }
.section--alt .news-item{ background:var(--bg); }
.news-item__date{ display:block; font-family:var(--font-body); font-weight:700; font-size:0.84rem; letter-spacing:0.06em; color:var(--accent-text); margin-bottom:0.5rem; }
.news-item__title{ font-size:1.24rem; margin-bottom:0.6rem; }
.news-item__body{ color:var(--muted); }
.news-item__body > * + *{ margin-top:0.7rem; }

/* ===================== WAYS TO HELP ===================== */
/* Four cards, so the track is wide enough to settle into 2x2 on a desktop
   rather than 3 + a lone straggler. */
/* min(…,100%) on every auto-fit grid: a bare 26rem floor made the cards 468px
   wide on a 320px screen and the whole page scrolled sideways. */
.ways{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(26rem,100%),1fr)); gap:clamp(1rem,2.5vw,1.6rem); }
.way{ display:flex; flex-direction:column; gap:0.6rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.6rem 1.5rem; }
.section--alt .way{ background:var(--bg); }
.way__title{ font-size:1.18rem; }
.way__body{ color:var(--muted); }
ul.way__body{ list-style:disc; padding-left:1.35rem; }
ul.way__body li + li{ margin-top:0.3rem; }
.way__actions{ margin-top:auto; padding-top:0.6rem; }

/* ===================== CONTACT ===================== */
/* Two cards now, so the track has to be wide enough that auto-fit stops at
   two and they fill the row: at 18rem it fitted three and left the last one
   empty, pushing the pair off-centre. */
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(26rem,100%),1fr)); gap:clamp(1.4rem,4vw,2.6rem); align-items:start; }
.contact-block__title{ font-size:1.16rem; margin-bottom:0.6rem; }
.contact-block address{ font-style:normal; color:var(--muted); line-height:1.7; }
.contact-block a{ color:var(--link); }

/* A single prominent address, for the one thing most visitors came for. */
.mail-big{ display:inline-block; font-family:var(--font-display); font-size:clamp(1.15rem,2.6vw,1.5rem); font-weight:700; word-break:break-word; }

/* ===================== SPACING UTILITIES ===================== */
/* Used where a block follows a .section-head or a list and needs the section's
   own rhythm rather than the tighter .prose one. */
.stack-md{ margin-top:1.6rem; }
.stack-lg{ margin-top:clamp(2rem,5vw,3rem); }

/* A bare list of links (social channels on the contact page): the bullets add
   nothing when every item is a single link. */
.link-list{ list-style:none; padding-left:0; }
.link-list li + li{ margin-top:0.35rem; }

/* The project page's opening: running text with the game cover beside it
   rather than stranded underneath. Under it the text was a wall with a small
   picture at the bottom, which is the one place on that page a reader needs a
   visual anchor. minmax(0, …) so the long Polish words in the prose cannot
   claim the artwork's column (see .hero__inner in index.css). */
.proj-intro{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,0.8fr); gap:clamp(1.5rem,4vw,3.2rem); align-items:start; }
.proj-intro .prose{ max-width:none; }

.proj-art{ max-width:420px; margin-inline:auto; }
.proj-art img{ display:block; width:100%; height:auto; border-radius:var(--radius-media); }

@media (max-width:880px){
  /* One column: the cover leads, so the page opens on a picture instead of
     three paragraphs. */
  .proj-intro{ grid-template-columns:1fr; }
  .proj-intro .proj-art{ order:-1; max-width:340px; margin-bottom:clamp(1rem,3vw,1.6rem); }
}

/* ===================== PARTNERS ===================== */
/* Logo, name, what they actually contribute, and a way through to them. The
   home page carries a bare strip of logos, which tells a first-time visitor
   nothing about the relationships; this is the version with the substance.

   Each logo sits on its own white (or black) tile rather than on the card:
   the files are fixed-colour SVGs and a JPEG, so they cannot follow the theme,
   and a white mark on a light card would vanish. */
/* Four partners, so the track is wide enough that auto-fit stops at two and
   they sit 2x2: at 17rem it fitted three and left the fourth alone on a row. */
.partner-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(23rem,100%),1fr)); gap:clamp(1rem,2.5vw,1.6rem); }
.ptile{ display:flex; flex-direction:column; gap:0.55rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; }
.section--alt .ptile{ background:var(--bg); }
.ptile__name{ font-size:1.08rem; }
.ptile__body{ color:var(--muted); font-size:0.97rem; }
.ptile__link{ margin-top:auto; padding-top:0.5rem; font-weight:700; }

.plogo-box{
  display:flex; align-items:center; justify-content:center;
  min-height:76px; margin-bottom:0.4rem; padding:12px 18px;
  background:#fff; border:1px solid var(--border-control); border-radius:var(--radius-media);
}
.plogo-box--dark{ background:#000; }
.plogo-box img{ width:auto; display:block; }
.plogo-box--el img{ height:26px; }
.plogo-box--heavys img{ height:24px; }
.plogo-box--pzn img{ height:52px; }
.plogo-box--szansa img{ height:44px; }

/* ===================== BANK ACCOUNTS ===================== */
/* A 26-digit account number is only useful if it can be read back
   character by character and copied without a slip, so it gets tabular
   figures, generous letter spacing and grouping every four digits. It wraps
   on a narrow screen rather than forcing the page sideways. */
/* Aside inside a facts row, e.g. when a BIC applies only to transfers from
   abroad. Quieter than the value it follows, and never on its own line. */
.facts__note{ color:var(--muted); font-size:0.92rem; font-weight:400; }

.acct{
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 700;
  word-spacing: 0.15em;
  overflow-wrap: anywhere;
}
