/* Explain: Custom styles for site sections, including map interactions and network hero. */
.affiliate-badge-u {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.youthon-logo {
    background-image: url('https://files.cdn-files-a.com/uploads/12549608/normal_6ae733be09a42.png?format=avif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.net-hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.net-hero-shapes::before,
.net-hero-shapes::after {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    content: "";
}

.net-hero-shapes::before {
    top: -7rem;
    right: -4rem;
    height: 24rem;
    width: 24rem;
}

.net-hero-shapes::after {
    bottom: -9rem;
    right: 10rem;
    height: 17rem;
    width: 17rem;
}

.youthon-u-mark {
    position: absolute;
    right: -1rem;
    bottom: -3rem;
    z-index: 0;
    font-family: var(--font-heading);
    font-size: clamp(11rem, 26vw, 22rem);
    font-weight: 900;
    line-height: 0.8;
    background: linear-gradient(160deg, rgba(176, 132, 252, 0.95) 0%, rgba(124, 58, 237, 0.7) 55%, rgba(76, 29, 149, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
    user-select: none;
}

.site-link-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.75rem 1rem;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-link-box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 14px 30px rgba(15, 36, 68, 0.1);
    transform: translateY(-3px);
}

.site-link-mark {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.link-arrow {
    color: var(--accent-color);
    font-size: 1rem;
}

/* ── 네트워크 메인 배너 슬라이드 ── */
.net-hero-carousel {
    position: relative;
    min-height: clamp(30rem, 68vh, 42rem);
    overflow: hidden;
}

.net-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 950ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 950ms;
}

.net-slide-media {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 7s ease-out;
}

.net-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    padding-top: 11rem;
    padding-bottom: clamp(5rem, 12vh, 7rem);
}

@media (min-width: 768px) {
    .net-hero-inner {
        padding-top: 9rem;
    }
}

.net-hero-copy {
    max-width: 42rem;
    color: #ffffff;
}

@media (min-width: 640px) {
    .net-hero-copy {
        max-width: min(42rem, calc(100% - 15rem));
    }
}

.net-hero-title {
    margin-top: 1.15rem;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.net-hero-desc {
    margin-top: 1.15rem;
    max-width: 40rem;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
}

.net-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.1rem;
}

.net-hero-btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 1.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.net-hero-btn-primary {
    background: #ffffff;
    color: var(--net-color);
}

.net-hero-btn-primary:hover {
    transform: translateY(-2px);
}

.net-hero-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.net-hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.net-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 950ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.net-slide.is-active .net-slide-media {
    transform: scale(1);
}

.net-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(15, 36, 68, 0.55);
    color: #ffffff;
    font-size: 1.05rem;
    box-shadow: 0 10px 26px rgba(15, 36, 68, 0.32);
    transform: translateY(-50%);
    transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.net-hero-nav:hover {
    background: rgba(15, 36, 68, 0.85);
    box-shadow: 0 14px 32px rgba(15, 36, 68, 0.42);
    transform: translateY(-50%) scale(1.08);
}

.net-hero-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.net-hero-nav:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .net-hero-nav {
        height: 3.25rem;
        width: 3.25rem;
    }
}

.net-hero-prev {
    left: 0.85rem;
}

.net-hero-next {
    right: 0.85rem;
}

.net-hero-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 0.7rem;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.3rem 0.75rem;
}

.net-hero-dot {
    position: relative;
    height: 2.75rem;
    width: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 0;
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.net-hero-dot::before {
    position: absolute;
    inset: 0;
    margin: auto;
    height: 0.7rem;
    width: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 5px rgba(15, 36, 68, 0.4);
    content: "";
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms ease;
}

.net-hero-dot:hover::before {
    background: rgba(255, 255, 255, 0.9);
}

.net-hero-dot.is-active {
    width: 3.1rem;
}

.net-hero-dot.is-active::before {
    width: 2rem;
    background: #ffffff;
}

.net-hero-dot:focus-visible {
    outline: none;
}

.net-hero-dot:focus-visible::before {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.7), 0 1px 5px rgba(15, 36, 68, 0.4);
}

/* ── 공식 마스코트 ── */
.net-mascots {
    position: absolute;
    right: 1rem;
    bottom: 4.5rem;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;
}

@media (min-width: 640px) {
    .net-mascots {
        right: clamp(1.5rem, 5vw, 4.5rem);
        bottom: clamp(3.75rem, 9vh, 5.5rem);
        gap: 0.75rem;
    }
}

.net-mascot {
    height: auto;
    width: calc(var(--pc-width, 120px) * 0.6);
    max-width: clamp(3.5rem, 13vw, 7rem);
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(15, 36, 68, 0.3));
    transition: width 0.3s ease;
}

@media (min-width: 640px) {
    .net-mascot {
        width: var(--pc-width, 120px);
    }
}

/* ── 조직도 ── */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-leaders {
    display: grid;
    width: 100%;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .org-leaders {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 44rem;
    }
}

.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1.4rem;
    background: #ffffff;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.org-node img,
.org-node figure img,
.org-node .photo-wrapper img {
    width: 7rem !important;
    height: 7rem !important;
    border-radius: 1.25rem !important;
    object-fit: cover !important;
    margin: 0 auto 1.25rem !important;
}

.org-node h3,
.org-node h4 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
}

.org-node .position,
.org-node p:first-of-type {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    margin-bottom: 0.5rem !important;
}

.org-node .bio,
.org-node p:last-of-type {
    flex: 1;
    min-height: 3.2rem;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
    margin-top: 0.75rem !important;
}

.org-node.is-vacant {
    border-style: dashed;
    background: var(--surface-color);
}

.org-connector {
    width: 2px;
    height: 2.4rem;
    background: var(--border-color);
}

.org-committees {
    display: grid;
    width: 100%;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .org-committees {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.org-committee-card {
    border: 1px solid var(--border-color);
    border-radius: 1.4rem;
    background: var(--surface-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.org-person {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.85rem 1rem;
}

.org-person.is-vacant {
    border-style: dashed;
    background: var(--background-color);
}

/* ── 전국 회원 남한 지도 ── */
.net-map-svg {
    filter: drop-shadow(0 12px 24px rgba(15, 36, 68, 0.08));
}

.map-region-group {
    transition: transform 300ms ease;
}

.map-region {
    transform-origin: center;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-linejoin: round;
    transition: fill 300ms ease, opacity 300ms ease, stroke-width 250ms ease, stroke 250ms ease, filter 250ms ease, transform 300ms ease;
    cursor: pointer;
    outline: none;
}

.map-region:hover,
.map-region.is-hovered,
.map-region:focus-visible {
    stroke-width: 2.5;
    stroke: var(--accent-color);
    filter: brightness(1.15) drop-shadow(0 6px 14px rgba(15, 36, 68, 0.28));
    transform: translateY(-3px);
    z-index: 10;
}

.map-region.is-dimmed {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 0.5;
    filter: grayscale(0.6) opacity(0.7);
}

.map-region.is-selected {
    stroke: var(--accent-color);
    stroke-width: 4;
    filter: brightness(1.1) drop-shadow(0 10px 22px rgba(15, 36, 68, 0.4));
    transform: translateY(-4px) scale(1.01);
}

.map-region:focus-visible {
    filter: brightness(1.1) drop-shadow(0 0 0 3px rgba(37, 99, 235, 0.55));
}

.map-label {
    transition: opacity 250ms ease, fill 250ms ease;
    pointer-events: none;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 2.5px;
    stroke-linejoin: round;
}

.map-label.is-dimmed {
    opacity: 0.3;
}

.map-label.is-selected {
    fill: var(--primary-color);
    font-weight: 900;
}

.map-tooltip {
    min-width: 5.5rem;
    pointer-events: none;
    transform: translate(-50%, -100%) scale(0.95);
    opacity: 0;
    transition: opacity 150ms ease, transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: rgba(15,36,68,0.95) transparent transparent transparent;
}

/* ── 지도 조작 버튼 (확대·축소 · 전국 보기) ── */
.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.map-zoom-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.map-control-btn {
    display: inline-flex;
    height: 2.75rem;
    min-width: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 0 0.85rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.map-control-btn i {
    font-size: 0.8rem;
    line-height: 1;
}

.map-control-btn:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
    color: var(--accent-color);
}

.map-control-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .map-toolbar {
        width: 100%;
        justify-content: space-between;
    }
}