@font-face {
    font-family: 'Space Grotesk';
    src: url('webfont/Space_Grotesk/static/SpaceGrotesk-Regular.woff2') format('woff2'),
         url('webfont/Space_Grotesk/static/SpaceGrotesk-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('webfont/Manrope/static/Manrope-Regular.woff2') format('woff2'),
         url('webfont/Manrope/static/Manrope-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

:root {
    --commune-text-1: #132238;
    --commune-text-2: #55697d;
    --commune-text-3: #5f7185;
    --commune-region: #0364a5;
    --commune-departement: #6a9e09;
    --commune-accent: #d12237;
}
.commune-board {
    padding: 0 18px 18px;
    border-top: 0;
    border-radius: 0 0 28px 28px;
    background: #fff !important;
}
.commune-page {
    margin: 0;
    min-height: 100vh;
    color: #132238;
    font-family: 'Manrope', system-ui, sans-serif;
    background: linear-gradient(180deg, #1a5eb0 0%, #5ba8e3 56%, #edf7ff 100%);
}

.commune-page h1,
.commune-page h2,
.commune-page h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.commune-page * {
    box-sizing: border-box;
}

.commune-page a {
    text-decoration: none;
}

.commune-shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 28px auto 44px;
}

.commune-stage {
    border-radius: 28px;
    overflow: visible;
    box-shadow: 0 30px 70px rgba(8, 24, 46, 0.18);
}

.commune-hero {
    padding: 18px 20px 16px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, rgba(12, 29, 48, 0.281) 0%, rgba(12, 48, 92, 0.94) 100%);
    backdrop-filter: blur(18px);
    color: #ffffff;
    position: relative;
    overflow: visible;
} 

.commune-hero-layout,
.commune-layout,
.commune-card-header,
.commune-life-top,
.commune-life-meta,
.commune-copy-row {
    display: flex;
}

.commune-life-top,
.commune-life-meta {
    justify-content: space-between;
}

.commune-card-header,
.commune-copy-row {
    align-items: center;
}

.commune-hero-titleline,
.commune-not-found h1,
.commune-slide-overlay h3,
.commune-life-item h3,
.commune-card h2 {
    margin: 0;
}

.commune-hero-layout {
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}

.commune-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 700px;
}

.commune-hero-contributors-label,
.commune-section-label,
.commune-slide-origin,
.commune-life-origin,
.commune-ad-pill,
.commune-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.commune-hero-contributors-label::before,
.commune-section-label::before,
.commune-life-origin::before,
.commune-slide-origin::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #ff354e;
    box-sizing: border-box;
    flex: 0 0 10px;
}

.commune-hero-dot {
    width: 1em;
    height: 1em;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #ff354e;
    box-sizing: border-box;
    flex: 0 0 1em;
}

.commune-hero-titleline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    line-height: 1;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.commune-hero-intro {
    max-width: 540px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.commune-hero-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    align-items: stretch;
}

.commune-hero-mini {
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.781) 0%, rgba(255, 255, 255, 0.856) 100%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 8px 18px rgba(7, 22, 42, 0.12);
    backdrop-filter: blur(16px);
}

.commune-hero-mini--facts {
    flex: 0 0 155px;
    padding: 8px 10px;
}

.commune-hero-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 5px;
}

.commune-hero-facts li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
    line-height: 1.25;
    color: #1d2d40;
}

.commune-hero-facts li span {
    color: #384a5f;
}

.commune-hero-facts li strong {
    color: #11253a;
    font-weight: 700;
    text-align: right;
}

.commune-hero-facts .commune-copy-row {
    gap: 6px;
}

.commune-hero-facts .commune-copy-button {
    font-size: 0.68rem;
}

.commune-hero-mini--map {
    flex: 0 0 126px;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.commune-hero-map-frame {
    width: 100%;
    height: 76px;
    background: rgba(209, 224, 239, 0.34);
}

.commune-hero-map-image {
    display: block;
    width: 100%;
    height: 76px;
    object-fit: cover;
}

.commune-hero-map-empty {
    width: 100%;
    height: 76px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.18) 75%, transparent 75%, transparent 100%),
        linear-gradient(180deg, rgba(214, 228, 241, 0.58) 0%, rgba(184, 205, 224, 0.72) 100%);
    background-size: 16px 16px, auto;
}

.commune-hero-aside {
    width: 400px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

.commune-hero-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    overflow: visible;
}

.commune-card .commune-section-label,
.commune-not-found .commune-section-label,
.public-profile-card .commune-section-label,
.commune-life-origin {
    color: #5b6f84;
}

.commune-card,
.commune-not-found {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.92) 100%);
    box-shadow: 0 16px 34px rgba(10, 24, 43, 0.08);
}

.commune-card {
    padding: 18px;
    color: #132238;
}

.commune-card-header {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.commune-card h2 {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    line-height: 1.15;
    color: #10253a;
}

.commune-card h2::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #ff354e;
    box-sizing: border-box;
    flex: 0 0 10px;
}

.commune-count-chip {
    min-width: 34px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(209, 34, 55, 0.1);
    color: #c32036;
    letter-spacing: 0.08em;
}

.commune-facts-list,
.commune-link-list,
.commune-user-grid {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commune-facts-list {
    display: grid;
    gap: 12px;
}

.commune-facts-list li,
.commune-link-list a,
.commune-life-item,
.commune-user-badge {
    border-radius: 16px;
}

.commune-link-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(240, 245, 252, 0.94);
    text-decoration: none;
    color: #132238;
}

.commune-facts-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: rgba(238, 244, 252, 0.95);
}

.commune-facts-list span,
.commune-link-list small,
.commune-user-badge small,
.commune-empty-copy,
.commune-life-date,
.commune-life-meta span {
    color: #55697d;
}

.commune-copy-button,
.commune-more-link,
.commune-inline-link,
.commune-life-meta a {
    color: #1f5fcf;
    font-weight: 700;
    text-decoration: none;
}

.commune-copy-button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #1f5fcf;
}

.commune-slider-empty {
    display: grid;
    place-items: center;
    min-height: 190px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(232, 239, 247, 0.92) 0%, rgba(210, 224, 240, 0.98) 100%);
    color: #44586d;
    text-align: center;
    padding: 18px;
}

.commune-link-list,
.commune-life-list {
    display: grid;
    gap: 12px;
}

.commune-user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(240, 245, 252, 0.94);
    text-decoration: none;
    color: #132238;
    min-width: 0;
}

.commune-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 44px;
}

.commune-avatar--tone-0 { background: #ffd7df; color: #9d2032; }
.commune-avatar--tone-1 { background: #d7e6ff; color: #2453a0; }
.commune-avatar--tone-2 { background: #d9f2e8; color: #1d7458; }
.commune-avatar--tone-3 { background: #f7e6d4; color: #9a5721; }
.commune-avatar--tone-4 { background: #efe0ff; color: #6c36a1; }
.commune-avatar--tone-5 { background: #f4f1cc; color: #7d6a11; }

.commune-avatar[class*="commune-avatar--tone-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}



.commune-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 6px 14px;
}

.commune-tab {
    padding: 9px 14px;
    border-radius: 999px;
    color: #5b6f84;
    background: rgba(236, 242, 249, 0.9);
    text-decoration: none;
    font-weight: 700;
}

.commune-tab--active {
    background: rgba(209, 34, 55, 0.12);
    color: #c32036;
}

.commune-layout {
    gap: 18px;
    align-items: flex-start;
}

.commune-column {
    display: grid;
    gap: 18px;
}

.commune-column--left,
.commune-column--right {
    width: 250px;
    flex: 0 0 250px;
}

.commune-column--center {
    flex: 1 1 auto;
    min-width: 0;
}

.commune-more-link--muted {
    color: #8fa1b3;
}

.commune-slider {
    position: relative;
}

.commune-slider-track {
    position: relative;
    min-height: 320px;
}

.commune-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-out;
}

.commune-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.commune-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

.commune-slide-overlay {
    position: absolute;
    inset: auto 16px 16px 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 18, 31, 0.14) 0%, rgba(9, 18, 31, 0.78) 100%);
    color: #ffffff;
}

.commune-slide-overlay p,
.commune-life-item p,
.commune-ad-card p,
.commune-empty-copy {
    margin: 10px 0 0;
    line-height: 1.58;
}

.commune-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.commune-slider-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(19, 34, 56, 0.18);
    cursor: pointer;
}

.commune-slider-dot.is-active {
    background: #d12237;
}

.commune-life-item {
    padding: 16px;
    background: rgba(245, 248, 253, 0.96);
}

.commune-life-origin,
.commune-life-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.commune-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    gap: 12px;
}

.commune-user-badge {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 108px;
}

.commune-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.commune-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(240, 245, 252, 0.94);
    color: #35506d;
    font-weight: 700;
}

.commune-ad-pill {
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(209, 34, 55, 0.1);
    color: #c32036;
}

.commune-not-found {
    max-width: 620px;
    margin: 70px auto;
    padding: 26px;
}

.public-profile-page .commune-shell {
    width: min(760px, calc(100vw - 32px));
}

.public-profile-card {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.92) 100%);
    box-shadow: 0 20px 46px rgba(10, 24, 43, 0.1);
}

@media (max-width: 1080px) {
    .commune-hero-layout,
    .commune-layout {
        flex-direction: column;
    }

    .commune-column--left,
    .commune-column--right,
    .commune-hero-aside {
        width: 100%;
        flex-basis: auto;
        min-width: 0;
    }

    .commune-hero-tools {
        justify-content: flex-start;
    }

    .commune-hero-contributors {
        margin-top: 0;
        align-self: flex-start;
    }
}

@media (max-width: 720px) {
    .commune-shell {
        width: min(calc(100vw - 14px), 100%);
        margin-top: 14px;
    }

    .commune-hero{
        padding-left: 14px;
        padding-right: 14px;
    }

    .commune-hero-layout,
    .commune-hero-strip,
    .commune-hero-tools {
        flex-direction: column;
    }

    .commune-hero-tools {
        width: 100%;
        align-items: stretch;
    }

    .commune-user-slot {
        align-self: flex-end;
    }

    .commune-hero-mini--facts,
    .commune-hero-mini--map {
        flex-basis: auto;
        width: 100%;
    }

    .commune-user-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .commune-slide img,
    .commune-slider-track {
        min-height: 240px;
        height: 240px;
    }
}
