/* Public housing projects */
.hp {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 6.5rem;
}
.hp-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 1rem;
}
.hp-back:hover { text-decoration: underline; }
.hp-alert {
    border-radius: .9rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    margin-bottom: 1rem;
}
.hp-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.hp-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.hp-gallery {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: .45rem;
    border-radius: 1.15rem;
    overflow: hidden;
    background: #1C1C1A;
    height: 26rem;
}
.hp-gallery--solo { grid-template-columns: 1fr; height: 20rem; }
.hp-gallery__main {
    position: relative;
    min-height: 0;
    height: 100%;
    background: #2A2A27;
}
.hp-gallery__main img,
.hp-gallery__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-gallery__main img {
    position: absolute;
    inset: 0;
    min-height: 0;
    max-height: none;
}
.hp-gallery__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: .45rem;
    min-height: 0;
    height: 100%;
}
.hp-gallery__side button {
    position: relative;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #2A2A27;
    min-height: 0;
}
.hp-gallery__side button:hover img { transform: scale(1.04); }
.hp-gallery__side img { transition: transform .35s ease; height: 100%; }
.hp-gallery__cap {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    background: rgba(28, 28, 26, .72);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .55rem;
    border-radius: .4rem;
}
.hp-thumbs {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .65rem 0 .15rem;
    scrollbar-width: thin;
}
.hp-thumbs button {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 3.4rem;
    border: 2px solid transparent;
    border-radius: .55rem;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #E2E1DC;
}
.hp-thumbs button.is-on,
.hp-thumbs button:hover { border-color: var(--color-primary); }
.hp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21.5rem;
    gap: 1.35rem;
    margin-top: 1.25rem;
    align-items: start;
}
.hp-kicker {
    margin: 0;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #059669;
}
.hp-title {
    margin: .2rem 0 .35rem;
    font-family: Archivo, system-ui, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1C1C1A;
}
.hp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    font-size: .84rem;
    color: #55544E;
    margin-bottom: .65rem;
}
.hp-meta i { color: var(--color-primary); margin-right: .3rem; }
.hp-price {
    margin: 0 0 1rem;
    font-family: Archivo, system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -.02em;
}
.hp-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: 1.15rem;
}
.hp-fact {
    background: #fff;
    border: 1px solid #E2E1DC;
    border-radius: .9rem;
    padding: .7rem .8rem;
}
.hp-fact span {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6E6D66;
}
.hp-fact strong {
    display: block;
    margin-top: .2rem;
    font-size: .92rem;
    color: #1C1C1A;
}
.hp-prog { margin: .35rem 0 0; height: .4rem; background: #E2E1DC; border-radius: 99px; overflow: hidden; }
.hp-prog i { display: block; height: 100%; background: #059669; border-radius: 99px; }

.hp-card {
    background: #fff;
    border: 1px solid #E2E1DC;
    border-radius: 1.1rem;
    padding: 1.1rem 1.2rem 1.2rem;
    margin-bottom: 1rem;
}
.hp-card h2 {
    margin: 0 0 .75rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1C1C1A;
}
.hp-prose {
    margin: 0;
    font-size: .9rem;
    line-height: 1.65;
    color: #3F3E3A;
    white-space: pre-wrap;
}
.hp-dl {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: .45rem .75rem;
    font-size: .85rem;
}
.hp-dl dt { color: #6E6D66; font-weight: 600; }
.hp-dl dd { margin: 0; color: #1C1C1A; }

.hp-units {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: .65rem;
}
.hp-unit {
    border: 1px solid #E2E1DC;
    border-radius: .95rem;
    padding: .85rem .9rem;
    background: #F7F7F5;
}
.hp-unit h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #1C1C1A; }
.hp-unit p { margin: .2rem 0 0; font-size: .78rem; color: #6E6D66; }
.hp-unit strong { display: block; margin-top: .45rem; color: var(--color-primary); font-size: .9rem; }

.hp-feat { margin-bottom: 1rem; }
.hp-feat h3 {
    margin: 0 0 .4rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6E6D66;
}
.hp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hp-chip {
    background: #ecfdf5;
    color: #065f46;
    border-radius: 999px;
    padding: .28rem .7rem;
    font-size: .78rem;
    font-weight: 600;
}

.hp-near {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: .55rem;
}
.hp-near li {
    list-style: none;
    background: #F7F7F5;
    border: 1px solid #E2E1DC;
    border-radius: .8rem;
    padding: .7rem .8rem;
}
.hp-near span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6E6D66; }
.hp-near strong { display: block; margin-top: .15rem; font-size: .88rem; color: #1C1C1A; }
.hp-near em { display: block; font-style: normal; font-size: .75rem; color: var(--color-primary); font-weight: 600; }

.hp-map {
    width: 100%;
    height: 14rem;
    border: 0;
    border-radius: .85rem;
    background: #E2E1DC;
}
.hp-map-link {
    display: inline-block;
    margin-top: .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.hp-lead {
    background: #fff;
    border: 1px solid #E2E1DC;
    border-radius: 1.2rem;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 16px 40px -28px rgba(28, 28, 26, .45);
}
.hp-lead h2 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 800; }
.hp-lead > p { margin: 0 0 .9rem; font-size: .8rem; color: #6E6D66; }
.hp-lead label { display: block; font-size: .72rem; font-weight: 700; color: #55544E; margin: 0 0 .25rem; }
.hp-lead input,
.hp-lead textarea {
    width: 100%;
    margin-bottom: .7rem;
    padding: .65rem .75rem;
    border: 1px solid #E2E1DC;
    border-radius: .7rem;
    font-size: .875rem;
    background: #fff;
}
.hp-lead input:focus,
.hp-lead textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
    border-color: var(--color-primary);
}
.hp-consent {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    font-size: .75rem;
    color: #55544E;
    margin: .15rem 0 .85rem;
    font-weight: 500;
}
.hp-consent input { width: auto; margin: .15rem 0 0; }
.hp-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: .8rem;
    padding: .8rem 1rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}
.hp-cta:hover { filter: brightness(1.06); }
.hp-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .55rem;
    padding: .7rem 1rem;
    border-radius: .8rem;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
}
.hp-office { margin: .85rem 0 0; font-size: .78rem; color: #55544E; line-height: 1.5; }
.hp-office strong { display: block; color: #1C1C1A; margin-bottom: .15rem; }

.hp-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}
.hp-list a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #E2E1DC;
    border-radius: 1.05rem;
    overflow: hidden;
}
.hp-list a:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, #E2E1DC); }
.hp-list img { width: 100%; height: 10.5rem; object-fit: cover; display: block; background: #E2E1DC; }
.hp-list__pad { padding: .85rem .95rem 1rem; }
.hp-list h2 { margin: .35rem 0 .2rem; font-size: .95rem; font-weight: 800; }
.hp-list p { margin: 0; font-size: .75rem; color: #6E6D66; }
.hp-list strong { display: block; margin-top: .45rem; color: var(--color-primary); font-size: .88rem; }
.hp-pill {
    display: inline-block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: #ecfdf5;
    color: #047857;
    border-radius: 99px;
    padding: .15rem .5rem;
}
.hp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6E6D66;
    background: #fff;
    border: 1px solid #E2E1DC;
    border-radius: 1.1rem;
}
.hp-pill--warn { background: #fff7ed; color: #c2410c; }
.hp-pill--mute { background: #EFEFEB; color: #55544E; }
.hp-callout {
    background: #EEF6F2;
    border: 1px solid #AFD6C3;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    font-size: .875rem;
    color: #062419;
}
.hp-callout p { margin: .35rem 0 .7rem; }
.hp-callout a { font-weight: 700; }
.hp-mine-list { display: flex; flex-direction: column; gap: .65rem; }
.hp-mine-row {
    display: grid;
    grid-template-columns: 7rem 1fr auto;
    gap: .85rem;
    align-items: center;
    background: #fff;
    border: 1px solid #E2E1DC;
    border-radius: 1rem;
    padding: .7rem;
}
.hp-mine-row img { width: 7rem; height: 5.2rem; object-fit: cover; border-radius: .7rem; background: #E2E1DC; }
.hp-mine-row h2 { margin: .2rem 0 0; font-size: .95rem; font-weight: 800; }
.hp-mine-row p { margin: .15rem 0 0; font-size: .75rem; color: #6E6D66; }
.hp-mine-row__act { display: flex; flex-direction: column; gap: .35rem; }
.hp-form label { display: block; font-size: .72rem; font-weight: 700; color: #55544E; margin: .7rem 0 .25rem; }
.hp-form input, .hp-form textarea, .hp-form select {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #E2E1DC;
    border-radius: .7rem;
    font-size: .875rem;
}
.hp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.hp-form__rowhead { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.hp-form__rowhead h2 { margin: 0; }
.hp-form__hint { margin: 0 0 .7rem; font-size: .75rem; color: #6E6D66; }
.hp-form__actions { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.hp-repeat {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: .55rem;
    align-items: start;
    margin-bottom: .55rem;
    padding: .55rem;
    background: #F7F7F5;
    border-radius: .75rem;
}
.hp-repeat--unit, .hp-repeat--feat { grid-template-columns: 1fr 1fr 1fr auto; }
.hp-repeat--unit { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
.hp-repeat__preview {
    width: 4.5rem; height: 3.4rem; background: #E2E1DC; border-radius: .5rem; overflow: hidden;
}
.hp-repeat__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-repeat__fields { display: grid; gap: .35rem; }
.hp-repeat__del {
    border: 0; background: transparent; color: #9C9B93; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.hp-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; margin: 0 .5rem 0 0; }
.hp-check input { width: auto; }
.hp-danger {
    background: none; border: 0; color: #b91c1c; font-size: .8rem; font-weight: 700; cursor: pointer; padding: .5rem 0;
}
@media (max-width: 720px) {
    .hp-mine-row, .hp-form__grid, .hp-repeat, .hp-repeat--unit, .hp-repeat--feat { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
    .hp-lead { position: sticky; top: 1.15rem; }
}
@media (max-width: 960px) {
    .hp-grid { grid-template-columns: 1fr; }
    .hp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-gallery { grid-template-columns: 1fr; height: auto; }
    .hp-gallery__main { height: 16rem; }
    .hp-gallery__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: 8.5rem; }
    .hp-gallery__side img { min-height: 0; }
    .hp-list { grid-template-columns: 1fr 1fr; }
    .hp-dl { grid-template-columns: 1fr; gap: .15rem; }
    .hp-dl dt { margin-top: .35rem; }
}
@media (max-width: 560px) {
    .hp-list { grid-template-columns: 1fr; }
    .hp-title { font-size: 1.35rem; }
}

[data-theme="dark"] .hp-card,
[data-theme="dark"] .hp-lead,
[data-theme="dark"] .hp-fact,
[data-theme="dark"] .hp-list a,
[data-theme="dark"] .hp-unit,
[data-theme="dark"] .hp-near li,
[data-theme="dark"] .hp-empty { background: #2A2A27; border-color: #3F3E3A; }
[data-theme="dark"] .hp-title,
[data-theme="dark"] .hp-card h2,
[data-theme="dark"] .hp-lead h2,
[data-theme="dark"] .hp-fact strong,
[data-theme="dark"] .hp-unit h3,
[data-theme="dark"] .hp-near strong,
[data-theme="dark"] .hp-list h2,
[data-theme="dark"] .hp-dl dd { color: #EFEFEB; }
[data-theme="dark"] .hp-prose,
[data-theme="dark"] .hp-meta,
[data-theme="dark"] .hp-lead > p { color: #9C9B93; }
