/* Footer pages (/about, /contact, /privacy). Foundation in proto.css, shared page parts in pages.css. The partner cards (pt-*) live in community.css. */
.pg-hero--sm { padding: clamp(28px, 4.5vw, 56px) 0 clamp(26px, 3.6vw, 46px); }
.pg-hero--sm .pg-title { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.1rem); max-width: 19em; }
.pg-hero--sm .pg-lead { margin-top: var(--s-3); }
.pg-hero__art[style*="--art-pos"] { background-position: var(--art-pos); }
.pg-body > .bf-section:first-child { margin-top: var(--s-7); }
.pg-endcta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.pg-endcta .bf-h3 { margin-bottom: 4px; }
.pg-kv.bf-card { padding: var(--s-2) var(--s-5); }
.pg-kv.bf-card > div:last-child { border-bottom: 0; }
.pg-kv a { color: var(--cyan-hi); }

/* hero picture position: a class per page, because style-src 'self' ignores a style attribute (the prototype set --art-pos inline) */
.pg-hero__art--about { --art-pos: center 55%; } .pg-hero__art--contact { --art-pos: center 80%; } .pg-hero__art--privacy { --art-pos: center 15%; }
.pg-hero__art[class*="pg-hero__art--"] { background-position: var(--art-pos); }

/* contact */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; margin-top: var(--s-7); }
.ct-main { display: grid; gap: var(--s-4); }
.ct-form { display: grid; gap: var(--s-5); }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.ct-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ct-label { font: 600 12px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.ct-label small { font: 500 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ct-hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ct-text { min-height: 180px; padding: 12px; resize: vertical; line-height: 1.55; }
.ct-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ct-count { flex: none; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.ct-count.is-low { color: var(--amber-hi); } .ct-count.is-over { color: var(--red-hi); }
.ct-err { font-size: 14px; color: var(--red-hi); }
.ct-input[aria-invalid="true"] { border-color: var(--red); }
.ct-topics { border: 0; padding: 0; margin: 0; min-width: 0; }
.ct-topics legend { padding: 0; margin-bottom: 8px; }
.ct-topicgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ct-topic { position: relative; display: block; cursor: pointer; }
.ct-topic input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ct-topic > span { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line-3); transition: border-color .15s, background .15s; }
.ct-topic b { font: 600 15px/1.3 var(--body); color: var(--text); }
.ct-topic small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ct-topic:hover > span { border-color: var(--cyan-lo); }
.ct-topic input:checked + span { border-color: var(--cyan); background: var(--cyan-tint); box-shadow: inset 0 -3px 0 var(--cyan); }
.ct-topic input:checked + span b { color: var(--cyan-hi); }
.ct-topic input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.ct-bad { color: var(--red-hi); }
.ct-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); border-color: var(--cyan-lo); }
.ct-done[hidden], .ct-form[hidden] { display: none; }
.ct-done__tick { display: grid; place-items: center; width: 64px; height: 64px; background: var(--cyan); color: var(--on-cyan); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); box-shadow: 0 0 30px rgba(60,198,244,.4); }
.ct-done__tick svg { width: 34px; height: 34px; }
.ct-done__proto { color: var(--amber-hi); }
.ct-side { display: grid; gap: var(--s-4); position: sticky; top: calc(var(--header-h) + 20px); }
.ct-p { margin-top: var(--s-3); font-size: 15px; line-height: 1.6; color: var(--text-2); }
.ct-side .pg-list { margin-top: var(--s-3); }
.ct-side a { color: var(--cyan-hi); }

/* privacy */
.pv-consent { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.pv-consent__btns { display: flex; flex-direction: column; gap: 10px; }
.pv-consent__btns .bf-btn--lg { width: 100%; }
.pv-consent__btns [aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--cyan-hi); }
.pv-state { margin-top: var(--s-3); font-size: 15px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pv-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-7); align-items: start; margin-top: var(--s-8); }
.pv-toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.pv-toc p { margin-bottom: 8px; }
.pv-toc a { display: flex; align-items: center; min-height: 40px; padding: 4px 12px; border-left: 2px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.3; }
.pv-toc a:hover { border-left-color: var(--cyan); color: #fff; background: rgba(60,198,244,.06); }
.pv-body { display: grid; gap: var(--s-7); min-width: 0; }
.pv-sec { scroll-margin-top: calc(var(--header-h) + 20px); }
.pv-sec .bf-h2 { margin-bottom: var(--s-4); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.pv-lists { margin-top: var(--s-5); }
.pv-never > li::before { background: var(--red); box-shadow: 0 0 8px rgba(255,107,91,.6); }
.pv-link { display: flex; flex-direction: column; gap: 4px; }
.pv-link b { font: 700 18px/1.25 var(--display); }
.pv-link b a { color: var(--text); text-decoration: none; } .pv-link b a:hover { color: var(--cyan-hi); }
.pv-link span { font-size: 14px; line-height: 1.5; color: var(--muted); } .pv-link span a { color: var(--cyan-hi); }

@media (max-width: 1100px) {
  .ct-grid, .pv-consent { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; }
  .pv-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .pv-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .pv-toc p { flex-basis: 100%; margin: 0; }
  .pv-toc a { border: 1px solid var(--line-2); background: var(--panel); }
}
@media (max-width: 760px) {
  .pg-body > .bf-section:first-child { margin-top: var(--s-6); }
  .pg-endcta { flex-direction: column; align-items: flex-start; }
  .ct-grid { margin-top: var(--s-6); }
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-actions .bf-btn--lg { width: 100%; }
  .pv-grid { margin-top: var(--s-7); }
}

/* inputs on the footer pages */
.ct-input { width: 100%; min-height: 44px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--line-3); color: var(--text); font: 500 15px/1.2 var(--body); border-radius: 0; }
.ct-input::placeholder { color: var(--faint); opacity: 1; }
.ct-input:focus { border-color: var(--cyan); background: var(--panel); }
.ct-label small { display: block; margin: 2px 0 0; }
.ct-topicgrid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
