/* A zbor's public page (public/web/brigade_profile.html, 2026-11-10) on top
 * of web.css: the hero with the cover and the logo, the numbers, the two
 * columns (content | contact, recruitment, support) from 1000 px, the
 * activity charts and the maps. Only web.css's own tokens (--bg, --soft,
 * --ink, --muted, --line, --red*, --blush), so light, dark and the app's
 * frame (web_app.css) all follow. Mobile first. */

.rce .zp-main { padding-block: 24px 96px; }
.rce .zp-preview { margin-bottom: 16px; }
.rce .zp-preview a { margin-left: 6px; }

/* --- hero --------------------------------------------------------------- */
.rce .zp-hero { position: relative; border-radius: 28px; overflow: hidden; background: var(--red-surface); color: #FFFFFF; isolation: isolate; }
.rce .zp-cover { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(15,27,45,.45), transparent 60%),
    var(--red-surface); }
.rce .zp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rce .zp-hero-photo .zp-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,18,.05) 0%, rgba(8,12,18,.35) 45%, rgba(8,12,18,.86) 100%); }
.rce .zp-id { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; padding: 96px 20px 22px; min-height: 260px; }
.rce .zp-hero-photo .zp-id { padding-top: 150px; min-height: 320px; }
.rce .zp-logo { width: 76px; height: 76px; border-radius: 50%; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; color: var(--red-surface); box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 10px 24px -10px rgba(0,0,0,.5); }
.rce .zp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rce .zp-logo .ic { width: 36px; height: 36px; }
.rce .zp-id-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rce .zp-kind { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 14px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.rce .zp-name { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.02; overflow-wrap: anywhere; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.rce .zp-place { display: flex; align-items: flex-start; gap: 6px; font-size: 16px; font-weight: 600; opacity: .95; }
.rce .zp-place .ic { width: 16px; height: 16px; margin-top: 4px; }
.rce .zp-place > span { flex: 1; min-width: 0; }
.rce .zp-country { white-space: nowrap; }
.rce .zp-share { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; flex: none;
  background: rgba(255,255,255,.18); color: #FFFFFF; border: 0; font: 700 15px var(--f); cursor: pointer; backdrop-filter: blur(6px); }
.rce .zp-share:hover { background: rgba(255,255,255,.3); }
.rce .zp-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }

/* the section chips under the hero */
.rce .zp-jump { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 2px; scrollbar-width: none; }
.rce .zp-jump::-webkit-scrollbar { display: none; }
.rce .zp-jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--soft); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.rce .zp-jump a:hover { border-color: var(--ink); }
.rce .zp-jump .ic { width: 16px; height: 16px; }
.rce .zp-jump a.zp-jump-red { background: var(--red); border-color: var(--red); color: #FFFFFF; }

/* --- numbers -------------------------------------------------------------- */
.rce .zp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rce .zp-stats-1 { grid-template-columns: minmax(0, 1fr); }
.rce .zp-stats-3 .zp-stat:first-child { grid-column: 1 / -1; }
.rce .zp-stat { background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; display: grid;
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 0; }
.rce .zp-stat-ic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; background: var(--blush); color: var(--red-text); display: flex; align-items: center; justify-content: center; }
.rce .zp-stat-ic .ic { width: 20px; height: 20px; }
.rce .zp-stat b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rce .zp-stat span:last-child { font-size: 14px; line-height: 1.25; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }

/* --- layout --------------------------------------------------------------- */
.rce .zp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
.rce .zp-col, .rce .zp-side { min-width: 0; display: flex; flex-direction: column; }
.rce .zp-side { gap: 16px; margin-top: 40px; }
.rce .zp-sec { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.rce .zp-h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.1; }
.rce .zp-h3 { font-size: 18px; letter-spacing: -.01em; margin-top: 8px; }
.rce .zp-pre { white-space: pre-line; }

/* equipment */
.rce .zp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rce .zp-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 20px; background: var(--soft); font-weight: 600; font-size: 15px; line-height: 1.3; }
.rce .zp-chips .ic { width: 16px; height: 16px; color: var(--red-text); }

/* vehicles */
.rce .zp-vehicles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.rce .zp-vehicle { display: flex; gap: 14px; align-items: center; background: var(--soft); border-radius: 20px; padding: 10px; min-width: 0; }
.rce .zp-vehicle-photo { width: 112px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.rce .zp-vehicle-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rce .zp-vehicle-none { background: var(--blush); color: var(--red-text); }
.rce .zp-vehicle-none .ic { width: 30px; height: 30px; }
.rce .zp-vehicle-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rce .zp-vehicle-text b { font-size: 17px; overflow-wrap: anywhere; }
.rce .zp-vehicle-text small { font-size: 14px; color: var(--muted); }
.rce .zp-vehicle-facts { display: flex; gap: 12px; }
.rce .zp-vehicle-facts span { display: inline-flex; align-items: center; gap: 4px; }
.rce .zp-vehicle-facts .ic { width: 14px; height: 14px; }

/* --- activity --------------------------------------------------------------- */
.rce .zp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rce .zp-card { background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rce .zp-card-h { font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 10px; }
.rce .zp-card-h-lg { font-size: 22px; letter-spacing: -.02em; }
.rce .zp-big { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rce .zp-big-sm { font-size: 28px; margin-top: 10px; }

.rce .zp-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 150px; align-items: end; }
.rce .zp-bar { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) 18px; justify-items: center; min-width: 0; }
.rce .zp-bar-stack { height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; padding-top: 16px; min-height: 0; }
.rce .zp-bar-n { font-size: 11px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1; }
.rce .zp-bar-fill { width: 100%; max-width: 26px; min-height: 0; border-radius: 6px 6px 2px 2px; background: var(--red); opacity: .55; flex: none; }
.rce .zp-bar-now .zp-bar-fill { opacity: 1; }
.rce .zp-bar-l { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: clip; align-self: center; }

.rce .zp-years { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rce .zp-years li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rce .zp-years b { text-align: right; }
.rce .zp-year-track { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.rce .zp-year-track span { display: block; height: 100%; border-radius: 5px; background: var(--red); }

.rce .zp-map { height: 300px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.rce .zp-station { height: 180px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }

/* events */
.rce .zp-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rce .zp-event { display: flex; gap: 14px; align-items: center; background: var(--soft); border-radius: 20px; padding: 12px; min-width: 0; }
.rce .zp-event-date { width: 58px; height: 62px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.rce .zp-event-date b { font-size: 24px; font-weight: 800; color: var(--red-text); }
.rce .zp-event-date span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.rce .zp-event-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rce .zp-event-text b { font-size: 17px; overflow-wrap: anywhere; }
.rce .zp-event-text small { font-size: 14px; color: var(--muted); }

.rce .zp-photos img { height: 120px; }

.rce .zp-empty { background: var(--soft); border: 1px dashed var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); }

/* --- side: recruitment, contact, support ------------------------------------- */
.rce .zp-recruit { background: var(--red-surface); color: #FFFFFF; border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; scroll-margin-top: 80px; }
.rce .zp-recruit-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.rce .zp-recruit h2 { font-size: 26px; line-height: 1.1; }
.rce .zp-recruit p { font-size: 16px; line-height: 1.55; white-space: pre-line; opacity: .95; }
.rce .zp-contact, .rce .zp-support { scroll-margin-top: 80px; }
.rce .zp-rows { display: flex; flex-direction: column; border-radius: 18px; background: var(--bg); overflow: hidden; }
.rce .zp-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rce .zp-row + .zp-row { border-top: 1px solid var(--line); }
.rce a.zp-row:hover { background: var(--soft); }
.rce .zp-row > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.rce .zp-row small { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rce .zp-row a { color: var(--red-text); font-weight: 700; }
.rce .zp-row-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--blush); color: var(--red-text); flex: none; display: flex; align-items: center; justify-content: center; }
.rce .zp-row-ic .ic { width: 16px; height: 16px; }
.rce .zp-support p { color: var(--ink); font-size: 16px; }
.rce .zp-iban { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; background: var(--bg); border-radius: 16px; padding: 12px 14px; }
.rce .zp-iban small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rce .zp-iban code { font: 700 15px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.rce .zp-copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: 700 14px var(--f); cursor: pointer; }
.rce .zp-copy .ic { width: 15px; height: 15px; }
.rce .zp-support .btn { align-self: flex-start; }

.rce .zp-foot { margin-top: 56px; }
.rce .zp-foot a { color: var(--red-text); font-weight: 700; }

/* --- wider screens -------------------------------------------------------------- */
@media (min-width: 640px) {
  .rce .zp-id { padding: 120px 32px 28px; }
  .rce .zp-hero-photo .zp-id { padding-top: 200px; min-height: 380px; }
  .rce .zp-logo { width: 104px; height: 104px; }
  .rce .zp-stats { grid-template-columns: repeat(var(--zp-n, 4), minmax(0, 1fr)); }
  .rce .zp-stats-1 { --zp-n: 1; } .rce .zp-stats-2 { --zp-n: 2; } .rce .zp-stats-3 { --zp-n: 3; } .rce .zp-stats-4 { --zp-n: 4; }
  .rce .zp-stats-3 .zp-stat:first-child { grid-column: auto; }
  .rce .zp-vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rce .zp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rce .zp-card-wide { grid-column: 1 / -1; }
  .rce .zp-photos img { height: 170px; }
  .rce .zp-map { height: 380px; }
}
@media (min-width: 1000px) {
  .rce .zp-main { padding-top: 40px; }
  .rce .zp-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .rce .zp-side { margin-top: 40px; }
  .rce .zp-sec:first-child { margin-top: 40px; }
}
