/* =========================================================================
   Project profile pages (/projects/*.html)
   Builds on styles.css tokens (--paper, --ink, --line, fonts, etc.)
   ========================================================================= */

.pf-wrap { padding-top: 1.5rem; padding-bottom: 3rem; max-width: 1120px; }

.pf-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1.5rem;
}
.pf-back:hover { color: var(--red); }
.pf-back svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.pf-hero { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
.pf-status-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c); background: var(--cs);
  padding: 0.3rem 0.65rem; border-radius: 100px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}
.pf-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pf-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.9rem); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0.7rem 0 0.4rem; color: var(--ink);
}
.pf-loc {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate);
  letter-spacing: 0.02em; margin: 0 0 0.6rem;
}
.pf-oneliner { font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin: 0.5rem 0 1rem; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-chip {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 0.3rem 0.6rem; border-radius: 6px;
  color: var(--c, var(--ink)); background: var(--cs, var(--paper-3));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #999) 20%, transparent);
}
.pf-chip-plain {
  color: var(--slate); background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- layout ---------- */
.pf-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
/* These are <section> elements, so neutralize the global section padding and use
   a deliberate, tighter rhythm (the inherited 4rem each side was ~40% too much). */
.pf-section { padding: 2.4rem 0; margin-bottom: 0; }
.pf-main > .pf-section:first-child { padding-top: 0; }   /* At a glance eyebrow lines up with the map top */
.pf-section > h2, .pf-section-head h2 {
  font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--ink);
}
.pf-section-head { margin-bottom: 1rem; }
.pf-section-head h2 { margin: 0.15rem 0 0; }
.pf-kicker {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c, var(--red));
  display: flex; align-items: center; gap: 0.5rem; line-height: 1;
}
.pf-kicker::before { content: ""; width: 22px; height: 2px; background: var(--c, var(--red)); display: inline-block; }
.pf-lead { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 1rem; }

/* ---------- at a glance: large graphical stat cards ---------- */
.pf-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pf-stat {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 1.5rem 1.4rem 1.35rem; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 23, 27,0.04);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.pf-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c, var(--red)); }
.pf-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 23, 27,0.10); }
.pf-stat-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cs, var(--red-soft)); color: var(--c, var(--red)); margin-bottom: 1rem;
}
.pf-stat-icon svg { width: 22px; height: 22px; display: block; }
.pf-stat-label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.4rem;
}
.pf-stat-value {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink);
}
.pf-stat-value .u { font-size: 0.8rem; font-weight: 700; color: var(--c, var(--red)); margin-left: 0.18rem; letter-spacing: 0; white-space: nowrap; }

/* ---------- profile narrative ---------- */
.pf-callout {
  background: var(--cs); border-left: 3px solid var(--c);
  border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem; margin: 0 0 1.25rem;
}
.pf-callout strong {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c); margin-bottom: 0.3rem;
}
.pf-facts { margin: 0 0 1rem; display: grid; gap: 0; }
.pf-fact { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.pf-fact dt { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.pf-fact dd { margin: 0; color: var(--ink-2); line-height: 1.5; }
.pf-hist { color: var(--ink-2); line-height: 1.6; margin: 0.5rem 0 0; }

/* ---------- opposition groups ---------- */
.pf-grp-grid { display: grid; gap: 1rem; }
.pf-grp { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; }
.pf-grp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.85rem; margin-bottom: 0.5rem; }
.pf-grp-head h3 { margin: 0; font-size: 1.1rem; }
.pf-grp-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate); letter-spacing: 0.02em; }
.pf-grp-row { margin: 0.35rem 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.pf-grp-links a { font-weight: 600; }

/* ---------- timeline ---------- */
.pf-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.pf-tl-item { position: relative; padding: 0 0 1rem 1.25rem; }
.pf-tl-item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--slate); }
.pf-tl-date { display: block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; color: var(--red-deep); letter-spacing: 0.02em; }
.pf-tl-text { color: var(--ink-2); line-height: 1.5; }
.pf-tl-src { font-size: 0.82rem; }

/* ---------- news ---------- */
.pf-news { list-style: none; margin: 0; padding: 0; }
.pf-news-item { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.pf-news-item:first-child { border-top: 1px solid var(--line); }
.pf-news-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate); padding-top: 0.1rem; }
.pf-news-outlet { display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 0.15rem; }
.pf-news-main a { font-weight: 600; color: var(--ink); }
.pf-news-main a:hover { color: var(--red); }
.pf-news-angle { display: block; font-size: 0.85rem; color: var(--slate); margin-top: 0.2rem; }

/* ---------- sources ---------- */
.pf-sources h2 { font-size: 1.1rem; }
.pf-src-list { columns: 2; column-gap: 2rem; font-size: 0.85rem; padding-left: 1.1rem; }
.pf-src-list li { margin-bottom: 0.3rem; break-inside: avoid; }

/* ---------- side: map + dev ---------- */
.pf-side { position: sticky; top: 86px; display: grid; gap: 1rem; }
.pf-mapcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pf-map { height: 260px; width: 100%; background: #dde2e9; }
.pf-map-addr { font-size: 0.85rem; color: var(--ink-2); padding: 0.75rem 1rem 0; margin: 0; line-height: 1.4; }
.pf-map-link { display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.6rem 1rem 0.85rem; }
.pf-devcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.pf-devcard h4 { margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.pf-devcard p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- boilerplate ---------- */
.pf-boiler { margin-top: 1.25rem; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
.pf-boiler-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pf-boiler-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem; }
.pf-boiler-card h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.pf-boiler-card p { color: var(--ink-2); line-height: 1.6; margin: 0 0 1rem; font-size: 0.95rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-side { position: static; order: -1; }
  .pf-map { height: 220px; }
}
@media (max-width: 620px) {
  .pf-tiles { grid-template-columns: repeat(2, 1fr); }
  .pf-boiler-grid { grid-template-columns: 1fr; }
  .pf-fact { grid-template-columns: 1fr; gap: 0.2rem; }
  .pf-src-list { columns: 1; }
  .pf-news-item { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* =====================================================================
   EDGE PASS (July 2026): protest-editorial treatment for profiles.
   ===================================================================== */
.pf-hero h1 { font-family: 'Oswald', var(--font-display); font-weight: 600; letter-spacing: 0.002em; line-height: 1.05; }

/* status badge as a stamp */
.pf-status-badge {
  border-radius: 2px;
  transform: rotate(-1.4deg);
  box-shadow: inset 0 0 0 2px var(--c), 3px 3px 0 rgba(20, 23, 27,0.18);
  font-weight: 700;
}
.pf-chip { border-radius: 2px; }
.pf-chip-plain { box-shadow: inset 0 0 0 1.5px #bac2ce; }

/* at-a-glance: silk-screened stat blocks */
.pf-stat {
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 4px 4px 0 var(--ink);
}
.pf-stat::before { height: 6px; }
.pf-stat:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pf-stat-icon { border-radius: 3px; }
.pf-stat-value { font-family: 'Oswald', var(--font-display); font-weight: 700; letter-spacing: 0; }

/* callout, facts, timeline */
.pf-callout { border-left-width: 5px; border-radius: 0 3px 3px 0; }
.pf-timeline { border-left: 3px solid var(--ink); }
.pf-tl-item::before {
  border-radius: 0;
  width: 11px; height: 11px;
  left: -7px; top: 5px;
  background: var(--ink);
  border: 2px solid var(--paper);
}

/* community response cards */
.pf-grp { border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 rgba(20, 23, 27,0.85); }
.pf-grp-head h3 { font-family: 'Oswald', var(--font-display); font-weight: 600; letter-spacing: 0.01em; }

/* news list: red bar on hover */
.pf-news-item { transition: background 0.12s var(--ease); }
.pf-news-item:hover { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--red); }

/* side cards */
.pf-mapcard { border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 rgba(20, 23, 27,0.85); }
.pf-devcard { border: 2px solid var(--ink); border-radius: 3px; }

/* boilerplate: one ink, one red-soft */
.pf-boiler-card { border: 2px solid var(--ink); border-radius: 3px; }
.pf-boiler-card:last-child { background: var(--red-soft); border-color: var(--red-deep); }

.pf-donatecard { background: var(--red-soft); border: 2px solid var(--red-deep); border-radius: 3px; box-shadow: 4px 4px 0 rgba(20, 23, 27,0.85); padding: 1.1rem 1.2rem; }
.pf-donatecard h4 { margin: 0 0 0.4rem; font-family: 'Oswald', var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.86rem; color: var(--red-deep); }
.pf-donatecard p { margin: 0 0 0.85rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }

/* legal filings */
.pf-filings { list-style: none; margin: 0; padding: 0; }
.pf-filing {
  display: grid; grid-template-columns: 118px 1fr; gap: 1rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.pf-filing:last-child { border-bottom: 0; }
.pf-filing-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); padding-top: 0.15rem; }
.pf-filing-type { font-family: 'Oswald', var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; display: block; }
.pf-filing-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-2); display: block; margin-top: 0.15rem; }
.pf-filing-desc { margin: 0.45rem 0 0; font-size: 0.93rem; line-height: 1.6; color: var(--ink-2); }
.pf-filing-foot { display: inline-block; margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-deep); }
@media (max-width: 640px) { .pf-filing { grid-template-columns: 1fr; gap: 0.25rem; } }

/* community impacts */
.pf-imp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pf-imp {
  background: #fff; border: 2px solid var(--ink); border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(20, 23, 27,0.85); padding: 1.05rem 1.15rem;
  border-top-width: 7px;
}
.pf-imp-high { border-top-color: var(--red); }
.pf-imp-medium { border-top-color: #b8860b; }
.pf-imp-low { border-top-color: #6b7280; }
.pf-imp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.45rem; }
.pf-imp-head h3 { font-family: 'Oswald', var(--font-display); font-size: 1.04rem; margin: 0; letter-spacing: 0.01em; }
.pf-imp-mag {
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 2px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.pf-imp-high .pf-imp-mag { background: var(--red-soft); color: var(--red-deep); }
.pf-imp p { margin: 0; font-size: 0.92rem; line-height: 1.62; color: var(--ink-2); }
.pf-imp-src { display: inline-block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* local campaign card (non-Conshohocken projects) */
.pf-localcard {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(20, 23, 27,0.85);
  padding: 1.1rem 1.2rem;
}
.pf-localcard h4 {
  margin: 0 0 0.4rem;
  font-family: 'Oswald', var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  color: var(--ink);
}
.pf-localcard p { margin: 0 0 0.8rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.pf-locallinks { display: flex; flex-direction: column; gap: 0.45rem; }
.pf-locallink {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--red-deep);
}
.pf-locallink:hover { color: var(--red); }
