/* Shared page hero (<x-page-hero>). Matches the homepage / Submit Project / Advertise hero. */
.ph { position: relative; overflow: hidden; background: var(--background-warm, #F7F5F2); border-bottom: 1px solid var(--border-default, #E2E8F0); padding: clamp(26px, 3.4vw, 42px) 0 clamp(26px, 3.2vw, 38px); text-align: center; color: var(--brand-secondary, #0B1F33); }
.ph-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 var(--container-gutter, 20px); }
.ph-chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 14%, transparent 30%, transparent 70%, rgba(0,0,0,.5) 86%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 14%, transparent 30%, transparent 70%, rgba(0,0,0,.5) 86%, #000 100%); }
/* The chart only shows in the side margins, so it never runs behind the heading or the lead. */
@media (max-width: 900px) { .ph-chart { display: none; } }
.ph-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; font-size: .86rem; color: var(--text-muted, #64748B); margin-bottom: 12px; }
.ph-crumbs a { color: var(--brand-secondary, #0B1F33); font-weight: 700; text-decoration: none; }
.ph-crumbs a:hover { color: var(--brand-link, #B4501F); }
.ph-crumbs > *:not(:first-child)::before { content: "/"; margin-right: 8px; opacity: .45; }
.ph-eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-link, #B4501F); margin-bottom: 8px; }
.ph-title { font-size: clamp(1.7rem, 3.6vw, 2.55rem); line-height: 1.14; letter-spacing: -.02em; color: var(--brand-secondary, #0B1F33); margin: 0 auto; max-width: 30ch; text-wrap: balance; }
.ph-lead { margin: 12px auto 0; max-width: 66ch; color: var(--text-secondary, #475569); font-size: 1.02rem; line-height: 1.6; }
.ph-extra { margin-top: 18px; }
/* Tabs and search inside the hero (light surfaces) */
.ph-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--border-default, #E2E8F0); border-radius: 999px; }
.ph-tabs a { padding: 8px 18px; border-radius: 999px; font-size: .86rem; font-weight: 800; color: var(--brand-secondary, #0B1F33); text-decoration: none; white-space: nowrap; }
.ph-tabs a:hover { background: var(--brand-primary-light, #FFF3EB); color: var(--brand-link, #B4501F); }
.ph-tabs a.is-active { background: var(--brand-primary, #B9531F); color: #fff; }
.ph-search { display: flex; max-width: 520px; margin: 0 auto; }
.ph-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid #CBD5E1; border-right: 0; border-radius: 10px 0 0 10px; font: inherit; background: #fff; color: var(--text-primary, #1F2937); }
.ph-search button { padding: 0 22px; border: 0; border-radius: 0 10px 10px 0; background: var(--brand-primary, #B9531F); color: #fff; font-weight: 800; cursor: pointer; font: inherit; font-weight: 800; }
.ph-search button:hover { background: var(--brand-primary-hover, #A8481B); }
@media (max-width: 640px) { .ph-tabs { border-radius: 14px; } .ph-tabs a { padding: 8px 12px; font-size: .8rem; } }
