.territory-shell {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(214, 191, 92, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(16, 86, 64, 0.12), transparent 28%),
        linear-gradient(135deg, #f5f2dc 0%, #eef4e8 45%, #f8f7ef 100%);
}

.territory-shell .container {
    position: relative;
    z-index: 1;
}

.territory-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #0e6b56;
}

.territory-kicker::before {
    content: "";
    width: 44px;
    height: 1px;
    background: rgba(14, 107, 86, 0.35);
}

.territory-justify {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
}

.territory-hero,
.territory-detail-hero,
.territory-spotlight,
.territory-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
    gap: 32px;
    align-items: stretch;
}

.territory-hero__copy,
.territory-detail-hero__copy,
.territory-hero__panel,
.territory-detail-hero__panel,
.territory-spotlight__body,
.territory-visual__content {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(10, 56, 30, 0.08);
    border-radius: 34px;
    box-shadow: 0 26px 60px rgba(10, 56, 30, 0.08);
    backdrop-filter: blur(10px);
}

.territory-hero__copy,
.territory-detail-hero__copy {
    padding: clamp(30px, 4vw, 42px);
}

.territory-hero__copy h2,
.territory-detail-hero__copy h2 {
    margin: 18px 0 20px;
    color: #083f34;
    font-size: clamp(2.2rem, 4.8vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.territory-hero__copy p,
.territory-detail-hero__copy p,
.territory-panel p,
.territory-card p,
.territory-indicator-card p,
.territory-proof-item p,
.territory-event-card p,
.territory-visual__content p {
    color: #5a7268;
    font-size: 1.06rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.territory-hero__panel,
.territory-detail-hero__panel {
    padding: 18px;
}

.territory-panel {
    background: #fff;
    border: 1px solid rgba(10, 56, 30, 0.08);
    border-radius: 28px;
    padding: 28px;
    height: 100%;
}

.territory-panel--tall {
    min-height: 100%;
}

.territory-panel__label {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #083f34;
    margin-bottom: 16px;
}

.territory-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.territory-panel__row h4 {
    margin: 0;
    color: #083f34;
    font-size: 1.45rem;
}

.territory-panel__row a,
.territory-panel a {
    color: #0e6b56;
    font-weight: 700;
}

.territory-panel__hint {
    margin-top: 18px;
}

.territory-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.territory-chip-cloud--stacked {
    margin-bottom: 18px;
}

.territory-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(10, 56, 30, 0.12);
    background: rgba(233, 242, 235, 0.96);
    color: #083f34;
    font-size: 0.98rem;
    font-weight: 700;
}

.territory-chip--muted {
    background: rgba(245, 243, 232, 0.94);
}

.territory-anchor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.territory-anchor-list span {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: #f6f8f2;
    color: #5a7268;
    font-weight: 600;
}

.territory-statbar,
.territory-spotlight__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.territory-statbar--detail {
    margin-top: 26px;
}

.territory-statbar article,
.territory-spotlight__facts article {
    padding: 24px 20px;
    border-radius: 24px;
    background: rgba(233, 242, 235, 0.82);
    border: 1px solid rgba(10, 56, 30, 0.08);
}

.territory-statbar strong,
.territory-spotlight__facts strong {
    display: block;
    color: #083f34;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1;
}

.territory-statbar span,
.territory-spotlight__facts span {
    display: block;
    margin-top: 10px;
    color: #5a7268;
    font-weight: 600;
}

.territory-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.territory-secondary-link,
.territory-card__ghost,
.territory-project-card__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(10, 56, 30, 0.15);
    background: rgba(255, 255, 255, 0.92);
    color: #0e6b56;
    font-weight: 700;
}

.territory-spotlight__media,
.territory-visual__media,
.territory-card__media,
.territory-event-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
}

.territory-spotlight__media,
.territory-visual__media {
    min-height: 100%;
    border: 1px solid rgba(10, 56, 30, 0.08);
    box-shadow: 0 26px 60px rgba(10, 56, 30, 0.08);
}

.territory-spotlight__media img,
.territory-visual__media img,
.territory-card__media img,
.territory-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.territory-card:hover .territory-card__media img,
.territory-event-card:hover .territory-event-card__media img,
.territory-spotlight:hover .territory-spotlight__media img,
.territory-visual:hover .territory-visual__media img {
    transform: scale(1.04);
}

.territory-spotlight__body,
.territory-visual__content {
    padding: clamp(28px, 3.6vw, 40px);
}

.territory-spotlight__body h3,
.territory-visual__content h3,
.territory-grid__heading h3,
.territory-section__head h3 {
    margin: 18px 0 14px;
    color: #083f34;
    font-size: clamp(1.95rem, 3.7vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.territory-grid__heading,
.territory-section__head {
    max-width: 920px;
    margin-bottom: 28px;
}

.territory-card,
.territory-indicator-card,
.territory-event-card {
    height: 100%;
    border: 1px solid rgba(10, 56, 30, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(10, 56, 30, 0.08);
    overflow: hidden;
}

.territory-card__media {
    height: 270px;
}

.territory-card__badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #083f34;
    font-weight: 700;
}

.territory-card__body,
.territory-event-card__body {
    padding: 24px 24px 26px;
}

.territory-card__metrics,
.territory-event-card__meta,
.territory-indicator-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.territory-card__metrics span,
.territory-event-card__meta span,
.territory-indicator-card__meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff4ea;
    color: #5a7268;
    font-size: 0.92rem;
    font-weight: 700;
}

.territory-card h5,
.territory-event-card h4,
.territory-indicator-card h4 {
    margin: 0 0 14px;
    color: #083f34;
    font-size: 1.6rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
    text-align: center;
    text-wrap: balance;
}

.territory-card h5 a,
.territory-event-card h4 a {
    color: inherit;
}

.territory-card p,
.territory-indicator-card p,
.territory-proof-item p,
.territory-event-card p {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
}

.territory-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.territory-card__chips span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7f4e5;
    color: #0e6b56;
    font-size: 0.9rem;
    font-weight: 700;
}

.territory-card__actions,
.territory-project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.territory-card__link,
.territory-event-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0e6b56;
    font-weight: 800;
}

.territory-card--mini .territory-card__media {
    height: 220px;
}

.territory-indicator-card {
    padding: 26px;
}

.territory-indicator-card__label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7f4e5;
    color: #0e6b56;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.territory-proof-list {
    display: grid;
    gap: 14px;
}

.territory-proof-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(10, 56, 30, 0.08);
    background: #fff;
}

.territory-proof-item strong {
    display: block;
    margin-bottom: 8px;
    color: #083f34;
    font-size: 1.08rem;
}

.territory-proof-item a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f4d760;
    color: #083f34;
    font-weight: 800;
    white-space: nowrap;
}

.territory-empty {
    margin: 0;
    color: #5a7268;
}

.territory-pagination {
    margin-top: 36px;
}

@media (max-width: 1399.98px) {
    .territory-hero,
    .territory-detail-hero,
    .territory-spotlight,
    .territory-visual {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .territory-hero,
    .territory-detail-hero,
    .territory-spotlight,
    .territory-visual {
        grid-template-columns: 1fr;
    }

    .territory-statbar,
    .territory-spotlight__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .territory-shell {
        overflow: hidden;
    }

    .territory-hero__copy h2,
    .territory-detail-hero__copy h2,
    .territory-spotlight__body h3,
    .territory-visual__content h3,
    .territory-grid__heading h3,
    .territory-section__head h3 {
        font-size: clamp(1.95rem, 11vw, 3rem);
        line-height: 1.04;
    }

    .territory-hero__copy,
    .territory-detail-hero__copy,
    .territory-panel,
    .territory-spotlight__body,
    .territory-visual__content,
    .territory-indicator-card,
    .territory-card__body,
    .territory-event-card__body {
        padding: 24px 20px;
    }

    .territory-statbar,
    .territory-spotlight__facts {
        grid-template-columns: 1fr;
    }

    .territory-proof-item {
        flex-direction: column;
        align-items: stretch;
    }

    .territory-proof-item a,
    .territory-secondary-link,
    .territory-card__ghost,
    .territory-project-card__ghost {
        width: 100%;
        justify-content: center;
    }

    .territory-card__media {
        height: 240px;
    }
}
