/* ===== USER GUIDE / BLOG ===== */
.guide-page {
    background: #fff;
    color: #0f172a;
    min-height: 100vh;
    padding-bottom: 52px;
}

.guide-page .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.guide-page .nav-guide-btn.is-active {
    background: #e2e8f0;
    box-shadow: none;
}

.guide-page .nav-container,
.guide-page .guide-hero__inner,
.guide-page .guide-main__inner,
.guide-page .guide-footer__inner {
    max-width: 1120px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
}

.guide-hero {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    color: #f8fafc;
    padding: 48px 0 40px;
}

.guide-hero__badge {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    border-radius: 0;
    background: var(--gradient-hero, linear-gradient(135deg, hsl(220, 80%, 56%) 0%, hsl(250, 76%, 62%) 100%));
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guide-hero__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #f8fafc;
}

.guide-hero__lead {
    margin: 0;
    max-width: 36em;
    font-size: 16px;
    line-height: 1.55;
    color: #cbd5e1;
}

.guide-main {
    padding: 36px 0 72px;
}

.guide-main__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.guide-main__count {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-grid--related {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.guide-card__thumb,
.guide-article__hero {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
    box-sizing: border-box;
}

.guide-article__hero {
    border-radius: 0;
    margin-bottom: 16px;
}

.guide-card__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

.guide-card__tag--tiktok {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.guide-card__tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: #0f172a;
}

.guide-card__tag-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.guide-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
    flex: 1;
}

.guide-card__date {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.guide-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.guide-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.guide-card__more {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
}

.guide-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-back:hover {
    color: #0f172a;
}

.guide-article__head {
    max-width: none;
    margin-bottom: 36px;
}

.guide-article__title {
    margin: 8px 0 12px;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

.guide-article__excerpt {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #64748b;
}

.guide-article__content {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.guide-article__content p {
    margin: 0 0 1.1em;
}

.guide-article__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.guide-article__cta-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.guide-article__cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-article__cta-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1;
}

.guide-article__cta-actions .btn-secondary:has(.btn-inline-arrow) {
    padding: 0 14px 0 18px;
}

.guide-article__cta-actions .btn-inline-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.guide-article__cta-actions .btn-inline-arrow svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ===== ARTICLE LAYOUT + CHAPTER NAV ===== */
.guide-article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.guide-article-layout__content {
    min-width: 0;
    max-width: 680px;
}

.guide-article-body {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.guide-chapter-nav {
    position: sticky;
    top: 88px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0;
    background: #fff;
}

.guide-chapter-nav__label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.guide-chapter-nav__list,
.guide-chapter-nav__sublist {
    margin: 0;
    padding-left: 1.25em;
    list-style: disc;
}

.guide-chapter-nav__sublist {
    margin-top: 6px;
    list-style: circle;
}

.guide-chapter-nav__item {
    margin-bottom: 10px;
}

.guide-chapter-nav__item:last-child {
    margin-bottom: 0;
}

.guide-chapter-nav__link {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-chapter-nav__link:hover {
    color: #0f172a;
}

.guide-chapter-nav__link.is-active {
    display: inline;
    color: #0f172a;
    font-weight: 600;
    background: #e2e8f0;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 1px 5px;
}

.guide-chapter-nav__link--child {
    font-size: 12px;
}

.guide-chapter-nav__sublist li {
    margin-bottom: 4px;
}

.guide-chapter-nav__sublist li:last-child {
    margin-bottom: 0;
}

.guide-chapter {
    scroll-margin-top: 88px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.guide-chapter + .guide-chapter {
    margin-top: 36px;
}

.guide-chapter__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0f172a;
}

.guide-chapter__body {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.guide-chapter__body > *:last-child {
    margin-bottom: 0;
}

.guide-chapter__label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.guide-chapter__body p {
    margin: 0 0 1.1em;
}

.guide-chapter__subhead {
    margin: 28px 0 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: #0f172a;
}

.guide-chapter__subhead:first-child {
    margin-top: 0;
}

.guide-points {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guide-point {
    scroll-margin-top: 88px;
}

.guide-point__title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: #0f172a;
}

.guide-point__num {
    font-weight: 700;
}

.guide-point__body p {
    margin: 0;
}

.guide-point__body > * + * {
    margin-top: 0.85em;
}

.guide-point__body > .guide-chapter__figure + p,
.guide-point__body > .guide-chapter__figure + p + p,
.guide-point__body > .guide-chapter__figure + .guide-callout--tip {
    margin-top: 1.2em;
}

.guide-chapter__minor-head {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #0f172a;
}

.guide-callout {
    border-radius: 0;
}

.guide-callout--tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
}

.guide-callout--example {
    padding: 12px 14px;
    background: rgba(14, 165, 233, 0.08);
    border: none;
}

.guide-callout__icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #0ea5e9;
}

.guide-callout__icon svg {
    width: 100%;
    height: 100%;
}

.guide-callout__label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.guide-callout--tip .guide-callout__text {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.guide-callout__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.guide-callout__list {
    margin: 0;
    padding-left: 1.1em;
    list-style: disc;
}

.guide-callout__list li {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.guide-callout__list li + li {
    margin-top: 4px;
}

.guide-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.guide-table th,
.guide-table td {
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    text-align: left;
    vertical-align: top;
}

.guide-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.guide-table tbody th[scope="row"] {
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    white-space: nowrap;
}

.guide-table td {
    color: #334155;
}

.guide-point__list {
    margin: 0.85em 0 0;
    padding-left: 1.25em;
    list-style: disc;
}

.guide-point__list li {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.guide-ui-block {
    display: inline-block;
    padding: 0 4px;
    border: none;
    border-radius: 0;
    background: rgba(251, 146, 60, 0.22);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-size: 0.82em;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
    vertical-align: baseline;
    white-space: nowrap;
}

.guide-u {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    text-decoration: none;
    background-image: var(--gradient-example-em, linear-gradient(122deg, hsl(335, 72%, 48%) 0%, hsl(265, 68%, 52%) 100%));
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding-bottom: 2px;
}

.guide-chapter__figure {
    margin: 20px 0 0;
}

.guide-chapter__caption {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: #94a3b8;
}

.guide-chapter__img-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-chapter__img-btn:hover {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.guide-chapter__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

.guide-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    box-sizing: border-box;
}

.guide-lightbox[hidden] {
    display: none;
}

.guide-lightbox-open {
    overflow: hidden;
}

.guide-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.guide-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(1280px, 96vw);
    max-height: 92vh;
}

.guide-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.guide-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.guide-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.guide-lightbox__close svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .guide-lightbox {
        padding: 16px;
    }

    .guide-lightbox__close {
        top: auto;
        bottom: calc(100% + 12px);
        right: 0;
    }
}

.guide-chapter__list {
    margin: 0;
    padding-left: 1.25em;
    list-style: disc;
}

.guide-chapter__list li {
    margin-bottom: 0.65em;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.guide-chapter__list li:last-child {
    margin-bottom: 0;
}

.guide-chapter__list--check {
    list-style: none;
    padding-left: 0;
}

.guide-chapter__list--check li {
    position: relative;
    padding-left: 1.5em;
}

.guide-chapter__list--check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #0f172a;
}

.guide-chapter__list-desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.guide-chapter__steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 4px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.guide-chapter__steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guide-chapter__steps li:not(:last-child)::after {
    content: '›';
    margin-left: 4px;
    color: #94a3b8;
    font-size: 14px;
}

.guide-chapter__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-chapter__step-text {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.guide-related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.guide-related__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.guide-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 14px 0;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #94a3b8;
    font-size: 12px;
}

.guide-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .guide-grid,
    .guide-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .guide-chapter-nav {
        position: static;
        margin-bottom: 24px;
    }

    .guide-article-layout__content {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .guide-hero {
        padding: 32px 0 24px;
    }

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

    .guide-chapter__steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .guide-chapter__steps li:not(:last-child)::after {
        display: none;
    }

    .guide-main {
        padding: 28px 0 56px;
    }
}
