:root {
    --sg-pink: #ff8fa8;
    --sg-pink-soft: #ffeef2;
    --sg-yellow: #ffcf6b;
    --sg-yellow-soft: #fff6de;
    --sg-mint: #7fd8c4;
    --sg-mint-soft: #e6faf4;
    --sg-lilac: #b6a6f0;
    --sg-lilac-soft: #f1edfe;
    --sg-ink: #3a2e2e;
    --sg-text: #5c4e4c;
    --sg-muted: #8c7c78;
    --sg-line: #f2e2dd;
    --sg-paper: #ffffff;
    --sg-bg: #fffaf6;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--sg-bg);
    color: var(--sg-text);
    font-family: Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.sg-home-bar {
    align-self: flex-start !important;
    height: auto !important;
    max-height: none !important;
    flex: none !important;
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 22px 0;
}

.sg-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sg-line);
    color: var(--sg-muted);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.sg-home-link:hover {
    color: #e0577f;
    border-color: var(--sg-pink);
}

.soso-guide.soso-guide-v2,
.soso-guide.soso-guide-v2 * {
    box-sizing: border-box;
}

.soso-guide.soso-guide-v2 {
    align-self: flex-start !important;
    height: auto !important;
    max-height: none !important;
    flex: none !important;
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 22px 90px;
    color: var(--sg-text);
    font-family: Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.7;
}

/* head */
.soso-guide-v2 .guide-head {
    padding: 34px 30px;
    background: var(--sg-pink-soft);
    border-radius: 28px;
    margin-bottom: 26px;
}

.sg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: #e0577f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.soso-guide-v2 .guide-head h1 {
    margin: 0;
    color: var(--sg-ink);
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.01em;
}

.sg-head-accent {
    color: #e0577f;
}

.soso-guide-v2 .guide-head > p {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--sg-text);
    font-size: 14.5px;
    line-height: 1.8;
    word-break: keep-all;
}

.sg-hero-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sg-hero-icons span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--sg-text);
    font-size: 12.5px;
    font-weight: 600;
}

/* layout */
.soso-guide-v2 .guide-layout {
    display: block;
}

.soso-guide-v2 .guide-index {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 0 0 24px;
    padding: 4px 0 8px;
    scrollbar-width: thin;
}

.soso-guide-v2 .guide-index::before {
    display: none;
}

.soso-guide-v2 .guide-index a {
    flex: 0 0 auto;
    display: block;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--sg-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}

.soso-guide-v2 .guide-index a:hover {
    color: #e0577f;
    background: var(--sg-pink-soft);
}

.soso-guide-v2 .guide-index a.is-active {
    color: #e0577f;
    background: var(--sg-pink-soft);
    font-weight: 800;
}

.soso-guide-v2 .guide-document {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* sections as pastel cards */
.soso-guide-v2 .guide-section {
    padding: 24px 26px;
    background: var(--sg-paper);
    border: 1px solid var(--sg-line);
    border-radius: 22px;
}

.soso-guide-v2 .guide-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--sg-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.sg-guide-note {
    margin: 0 0 16px;
    color: var(--sg-muted);
    font-size: 13px;
}

.soso-guide-v2 .guide-section ul {
    margin: 0;
    padding-left: 4px;
    list-style: none;
}

.soso-guide-v2 .guide-section ul li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 20px;
    color: var(--sg-text);
    font-size: 14px;
    line-height: 1.75;
}

.soso-guide-v2 .guide-section ul li::before {
    content: '🌷';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
}

.soso-guide-v2 .guide-section ul li:last-child {
    margin-bottom: 0;
}

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
}

.guide-list > div {
    padding: 14px 16px;
    background: var(--sg-yellow-soft);
    border-radius: 16px;
}

.guide-list > div:nth-child(4n+2) {
    background: var(--sg-mint-soft);
}

.guide-list > div:nth-child(4n+3) {
    background: var(--sg-lilac-soft);
}

.guide-list > div:nth-child(4n+4) {
    background: var(--sg-pink-soft);
}

.guide-list dt {
    margin: 0 0 5px;
    color: var(--sg-ink);
    font-size: 12.5px;
    font-weight: 800;
}

.guide-list dd {
    margin: 0;
    color: var(--sg-text);
    font-size: 13px;
    line-height: 1.7;
}

/* FAQ */
.sg-faq-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.sg-faq-search-wrap {
    flex: 1;
}

#sg-faq-search {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--sg-line);
    border-radius: 999px;
    background: var(--sg-bg);
    color: var(--sg-ink);
    font-size: 13.5px;
    outline: none;
}

#sg-faq-search:focus {
    border-color: var(--sg-pink);
    background: #fff;
}

.sg-faq-reset {
    padding: 0 18px;
    border: 1.5px solid var(--sg-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sg-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sg-faq-reset:hover {
    border-color: var(--sg-pink);
    color: #e0577f;
}

.guide-faq h3 {
    display: inline-block;
    margin: 20px 0 10px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--sg-mint-soft);
    color: #2c8a72;
    font-size: 13px;
    font-weight: 800;
}

.guide-faq h3:first-of-type {
    margin-top: 0;
}

.guide-faq details {
    padding: 13px 4px;
    border-bottom: 1px dashed var(--sg-line);
}

.guide-faq details:last-of-type {
    border-bottom: 0;
}

.guide-faq summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--sg-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    list-style: none;
}

.guide-faq summary::-webkit-details-marker {
    display: none;
}

.guide-faq summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sg-pink-soft);
    color: #e0577f;
    font-weight: 800;
    font-size: 13px;
}

.guide-faq details[open] summary::before {
    content: '–';
}

.guide-faq details p {
    margin: 8px 0 0 28px;
    color: var(--sg-muted);
    font-size: 13px;
    line-height: 1.75;
}

.sg-faq-empty {
    display: none;
    padding: 24px 0;
    color: var(--sg-muted);
    font-size: 13px;
    text-align: center;
}

/* contact */
.sg-contact-intro {
    margin: 0 0 18px;
    color: var(--sg-text);
    font-size: 13.5px;
    line-height: 1.8;
}

.sg-contact-intro strong {
    color: var(--sg-ink);
}

.sg-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}

.sg-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
}

.sg-contact-link--channel {
    background: var(--sg-ink);
    color: #fff;
}

.sg-contact-link--kakao {
    background: #fee500;
    color: #3c1e1e;
}

.sg-contact-link:hover {
    opacity: .88;
}

.sg-contact-qr-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    background: var(--sg-lilac-soft);
    border-radius: 18px;
}

.sg-contact-qr img {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    border: 1px solid var(--sg-line);
    background: #fff;
}

.sg-contact-qr-title {
    margin-bottom: 4px;
    color: var(--sg-ink);
    font-size: 13px;
    font-weight: 800;
}

.sg-contact-qr-copy p {
    margin: 0;
    color: var(--sg-text);
    font-size: 12.5px;
    line-height: 1.7;
}

.sg-contact-tip {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sg-yellow-soft);
    color: var(--sg-text);
    font-size: 13px;
    line-height: 1.7;
}

.sg-contact-tip strong {
    color: #b5791a;
}

.sg-partner-copy {
    margin: 0;
    color: var(--sg-text);
    font-size: 13.5px;
}

/* back to top */
.sg-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--sg-pink);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 16px rgba(255, 143, 168, .35);
    transition: opacity .2s ease, transform .15s ease;
}

.sg-back-top.is-show {
    opacity: 1;
    visibility: visible;
}

.sg-back-top:hover {
    transform: translateY(-2px);
}

/* responsive */
@media (max-width: 640px) {
    .soso-guide.soso-guide-v2 {
        padding: 20px 14px 70px;
    }

    .soso-guide-v2 .guide-head {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .soso-guide-v2 .guide-section {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .guide-list {
        grid-template-columns: 1fr;
    }

    .sg-faq-tools {
        flex-direction: column;
    }

    .sg-contact-qr-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* dark mode */
html.dark .soso-guide-v2,
body.dark .soso-guide-v2,
body.dark-mode .soso-guide-v2,
[data-theme="dark"] .soso-guide-v2 {
    --sg-ink: #f3e9ea;
    --sg-text: #cdbfc2;
    --sg-muted: #a8999c;
    --sg-line: #3c3134;
    --sg-paper: #241d20;
    --sg-bg: #1c1719;
    --sg-pink-soft: #3a2b30;
    --sg-yellow-soft: #33291c;
    --sg-mint-soft: #1f322c;
    --sg-lilac-soft: #292437;
}

html.dark .soso-guide-v2 .guide-head,
body.dark .soso-guide-v2 .guide-head,
[data-theme="dark"] .soso-guide-v2 .guide-head {
    background: var(--sg-pink-soft);
}

html.dark .soso-guide-v2 .guide-index,
body.dark .soso-guide-v2 .guide-index,
[data-theme="dark"] .soso-guide-v2 .guide-index {
    background: var(--sg-paper);
}

html.dark .soso-guide-v2 #sg-faq-search,
html.dark .soso-guide-v2 .sg-faq-reset,
html.dark .soso-guide-v2 .sg-kicker,
body.dark .soso-guide-v2 #sg-faq-search,
body.dark .soso-guide-v2 .sg-faq-reset,
body.dark .soso-guide-v2 .sg-kicker,
[data-theme="dark"] .soso-guide-v2 #sg-faq-search,
[data-theme="dark"] .soso-guide-v2 .sg-faq-reset,
[data-theme="dark"] .soso-guide-v2 .sg-kicker {
    background: var(--sg-paper);
}

@media (prefers-reduced-motion: reduce) {
    .soso-guide-v2 * {
        transition: none !important;
    }
}
