/* ---- partners-page ---- */
.p-hero {
    position: relative;
    min-height: calc(100vh - 82px);
    padding: 60px max(4vw, 20px) 40px;
    background: radial-gradient(ellipse at 50% 55%, #3d1763 0%, #1a0c2c 40%, #0a0712 75%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.p-hero:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(transparent, #0c0b13);
    pointer-events: none;
}

.p-hero .intro {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.p-hero h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -.04em;
    font-size: clamp(44px, 6vw, 84px);
    line-height: 1.05;
    margin: 16px 0;
}

.p-hero h1 em {
    background: linear-gradient(100deg, #d9a2ff, #ffc37a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.p-hero p {
    color: #d8cde2;
    line-height: 1.7;
    font-size: 18px;
}

.p-hero canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    flex: 1;
    min-height: 560px;
    margin-top: 10px;
}

.dir {
    background: #0c0b13;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 34px;
    max-width: 1000px;
}

.filters button {
    border: 1px solid #ffffff2c;
    background: #ffffff08;
    color: #e9def2;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 13px;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.p-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid #ffffff20;
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(140deg, #1d1526, #15121b);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

a.p-card:hover {
    transform: translateY(-3px);
    border-color: var(--c);
    box-shadow: 0 0 30px color-mix(in srgb, var(--c) 30%, transparent);
}

.p-mark {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 600 20px Georgia, serif;
    color: var(--c);
    border: 2px solid var(--c);
    box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent);
    background: #120d1a;
    overflow: hidden;
}

.p-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.p-card h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 22px;
    margin: 2px 0 4px;
}

.p-card .cat {
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--c);
    font-weight: 700;
}

.p-card p {
    font-size: 14px;
    color: #c9c2d0;
    line-height: 1.6;
    margin: 8px 0 10px;
}

.p-card .go {
    font-size: 13px;
    color: #d7a0ff;
    text-decoration: underline;
}

.p-card .ways {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.p-card .ways i {
    font-style: normal;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    color: #efe4f7;
    background: color-mix(in srgb, var(--c) 12%, transparent);
}

@media (max-width: 980px) {
    .p-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .p-grid {
        grid-template-columns: 1fr;
    }
    .p-hero canvas {
        min-height: 460px;
    }
}

/* ---- the network: caption and the partner card opened from it ---- */
.p-hero {
    position: relative;
}

.net-caption {
    position: relative;
    z-index: 2;
    margin: 6px auto 0;
    text-align: center;
    font-size: 14px;
    color: #d8cde2;
}

.net-card {
    --c: #e2a1ff;
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 32px));
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    background: #17121ff2;
    box-shadow: 0 0 40px color-mix(in srgb, var(--c) 30%, transparent);
    backdrop-filter: blur(8px);
}

.net-card .cat {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--c);
}

.net-card h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 26px;
    margin: 6px 0;
}

.net-card p {
    margin: 0 0 12px;
    color: #d8cde2;
    line-height: 1.6;
}

.net-card .ways {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.net-card .ways i,
.p-card .ways i {
    font-style: normal;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
    color: #efe4f7;
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

.net-card a {
    color: #d7a0ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
}

.net-card-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    color: #b8aec7;
    font-size: 16px;
}

/* ---- how partners help: also the network's colour legend ---- */
.n-ways {
    background: linear-gradient(180deg, #0c0b13, #120d1b);
}

.n-way-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.n-way {
    min-width: 0;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #ffffff1c;
    border-top: 3px solid var(--c);
    background: #17121f;
}

.n-way i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 10px var(--c);
}

.n-way b {
    font-size: 17px;
}

.n-way p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cfc4dc;
}

/* ---- how partnering works ---- */
.n-how {
    background: radial-gradient(ellipse at 50% 30%, #281337, #0c0b13 70%);
}

.n-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.n-steps li {
    min-width: 0;
    padding: 24px 22px;
    border-radius: 18px;
    border: 1px solid #ffffff1c;
    background: #17121f;
}

.n-steps .n {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: #1a0b22;
    background: var(--c);
    box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
}

.n-steps h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 22px;
    margin: 16px 0 8px;
}

.n-steps p {
    margin: 0;
    color: #cfc4dc;
    font-size: 15px;
    line-height: 1.6;
}

/* ---- the partner form ---- */
.n-form {
    background: radial-gradient(ellipse at top, #2a173b, #111019 60%);
}

.n-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.n-form legend {
    font-size: 14px;
    margin-bottom: 10px;
}

.n-form label small {
    font-weight: 400;
    color: #a99fb7;
}

.logo-drop {
    margin-top: 18px;
}

.logo-drop b small {
    color: #a99fb7;
}

.logo-check {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    font-size: 14px;
}

.logo-check img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 2px solid #ffc37a;
}

.logo-check .ok {
    color: #9ae67c;
}

.logo-check .bad {
    color: #ff8f8f;
}

/* ---- directory ---- */
.filters button[aria-pressed="true"] {
    background: linear-gradient(115deg, #8d34d4, #bc54e8);
    border-color: transparent;
    color: #fff;
}

.filters button:not([aria-pressed="true"])[style] {
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
}

.p-card .founding {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 700;
    color: #ffc37a;
}

.p-grid:has(> .p-card:only-child) {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.dir-empty {
    text-align: center;
    color: #d8cde2;
    font-size: 17px;
}

.dir-empty a {
    color: #ffc37a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.n-founding {
    background: #100c18;
}

@media (max-width: 980px) {
    .n-way-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .n-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .n-way-grid,
    .n-steps {
        grid-template-columns: 1fr;
    }
    .net-card {
        bottom: 16px;
    }
}
