.guides-hero {
    padding: 72px 0 78px;
    background:
        radial-gradient(circle at 85% 10%, rgba(74, 222, 128, 0.16), transparent 30%),
        linear-gradient(145deg, #0d2017, #123b29);
    color: #fff;
}

.guides-hero-inner {
    max-width: 940px;
}

.guides-hero h1,
.guide-article-header h1 {
    margin: 22px 0 20px;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5.5vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.guides-hero p {
    max-width: 760px;
    margin: 0;
    color: #c8d7ce;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.guides-hero .guide-breadcrumbs {
    color: #a9c0b2;
}

.guide-breadcrumbs a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}

.guide-breadcrumbs a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}

.guide-categories {
    padding-top: 72px;
    padding-bottom: 88px;
}

.guide-category + .guide-category {
    margin-top: 66px;
}

.guide-category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.guide-category-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.guide-category-heading > span {
    color: var(--muted);
    font-size: 0.93rem;
}

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

.guide-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.guide-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.guide-card-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--dark);
}

.guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.035);
}

.guide-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.guide-card h3 {
    margin-bottom: 11px;
    font-family: var(--font-display);
    font-size: 1.26rem;
    font-weight: 820;
    letter-spacing: -0.02em;
    line-height: 1.22;
    text-wrap: pretty;
}

.guide-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.guide-card-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: auto;
    color: var(--accent-strong);
    font-weight: 780;
}

.guide-card-link span {
    transition: transform 0.2s ease;
}

.guide-card:hover .guide-card-link span {
    transform: translateX(4px);
}

.home-guides {
    background: #fff;
}

.home-guides-action {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.guide-article {
    background: #fff;
}

.guide-article-header {
    padding: 52px 0 0;
    background: linear-gradient(180deg, var(--bg) 0, #fff 100%);
}

.guide-reading-width {
    width: min(840px, calc(100% - 32px));
}

.guide-article-header h1 {
    margin-top: 28px;
    color: var(--fg);
    font-size: clamp(2.25rem, 5.2vw, 4.35rem);
}

.guide-lead {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.24rem);
    line-height: 1.7;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.guide-cover-wrap {
    margin-top: 36px;
}

.guide-cover {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    border-radius: 26px;
    box-shadow: var(--shadow-md);
}

.guide-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px);
    gap: clamp(42px, 7vw, 90px);
    justify-content: center;
    padding-top: 62px;
    padding-bottom: 80px;
}

.guide-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 125px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.guide-toc strong {
    display: block;
    margin-bottom: 11px;
    font-family: var(--font-display);
    font-size: 1rem;
}

.guide-toc ol {
    margin: 0;
    padding-left: 19px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.guide-toc li + li {
    margin-top: 8px;
}

.guide-toc a:hover {
    color: var(--accent-strong);
}

.guide-content {
    min-width: 0;
}

.guide-prose {
    color: #263a2f;
    font-size: 1.08rem;
    line-height: 1.78;
}

.guide-prose h2,
.guide-faq h2,
.guide-practice h2 {
    margin: 2.4em 0 0.65em;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.18;
    scroll-margin-top: 95px;
    text-wrap: pretty;
}

.guide-prose > h2:first-child {
    margin-top: 0;
}

.guide-prose h3 {
    margin: 1.8em 0 0.55em;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
}

.guide-prose p,
.guide-prose ul,
.guide-prose ol {
    margin-bottom: 1.15em;
}

.guide-prose ul,
.guide-prose ol {
    padding-left: 1.4em;
}

.guide-prose li + li {
    margin-top: 0.42em;
}

.guide-prose a {
    color: var(--accent-strong);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(21, 128, 61, 0.35);
    text-underline-offset: 3px;
}

.guide-prose blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--accent-soft);
    color: var(--fg);
}

.guide-prose blockquote p:last-child {
    margin-bottom: 0;
}

.guide-prose table {
    display: block;
    width: 100%;
    margin: 1.7em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.guide-prose th,
.guide-prose td {
    min-width: 130px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.guide-prose th {
    background: var(--surface-2);
    color: var(--fg);
}

.guide-prose code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--surface-2);
    font-size: 0.9em;
}

.guide-practice {
    margin-top: 52px;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--dark);
    color: #fff;
}

.guide-practice h2 {
    margin-top: 0;
    color: #fff;
}

.guide-practice > p {
    margin-bottom: 20px;
    color: #bdd0c4;
}

.guide-practice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-practice-links a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 43px;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--accent);
    font-weight: 760;
}

.guide-practice-links a:hover {
    background: #22c55e;
}

.guide-faq {
    margin-top: 56px;
}

.guide-faq h2 {
    margin-top: 0;
}

.guide-faq details {
    border-top: 1px solid var(--border);
}

.guide-faq details:last-child {
    border-bottom: 1px solid var(--border);
}

.guide-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 0;
    color: var(--fg);
    font-family: var(--font-display);
    font-weight: 780;
    cursor: pointer;
    list-style: none;
}

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

.guide-faq summary span {
    color: var(--accent);
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.guide-faq details[open] summary span {
    transform: rotate(45deg);
}

.guide-faq details > div {
    padding: 0 32px 18px 0;
    color: var(--muted);
}

.guide-faq details > div p:last-child {
    margin-bottom: 0;
}

.related-guides {
    padding: 72px 0 88px;
    background: var(--bg);
}

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

    .guide-layout {
        grid-template-columns: 1fr;
        gap: 38px;
        width: min(820px, calc(100% - 32px));
    }

    .guide-toc {
        position: static;
        max-height: none;
    }
}

@media (max-width: 620px) {
    .guides-hero {
        padding: 44px 0 52px;
    }

    .guides-hero h1,
    .guide-article-header h1 {
        margin-top: 18px;
    }

    .guide-categories {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .guide-category + .guide-category {
        margin-top: 48px;
    }

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

    .guide-category-heading > span {
        display: none;
    }

    .guide-article-header {
        padding-top: 34px;
    }

    .guide-cover-wrap {
        width: 100%;
        margin-top: 28px;
    }

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

    .guide-layout {
        padding-top: 40px;
        padding-bottom: 58px;
    }

    .guide-prose {
        font-size: 1rem;
    }

    .guide-practice {
        padding: 24px 20px;
    }

    .guide-practice-links {
        flex-direction: column;
    }

    .guide-practice-links a {
        justify-content: space-between;
    }

    .related-guides {
        padding: 54px 0 64px;
    }
}
