/* =========================
   GUIDE PAGE
========================= */

.guide-page {
    --guide-accent: #ddb86d;
    --guide-accent-light: #f0d79f;

    --guide-border: #78603b;
    --guide-wash: rgba(106, 80, 39, 0.22);

    --guide-surface: #222222;
    --guide-surface-dark: #1b1b1b;

    --guide-text: #c8c8c8;
    --guide-muted: #969696;

    --tool-accent: #72d5a1;
    --tool-border: #397d58;

    box-sizing: border-box;

    width: min(100% - 32px, 1050px);

    margin: 0 auto;

    padding: 40px 0 60px;
}

.guide-page *,
.guide-page *::before,
.guide-page *::after {
    box-sizing: border-box;
}


/* =========================
   HERO
========================= */

.guide-header {
    width: 100%;

    margin: 0 0 34px;

    padding: 26px;

    background:
        linear-gradient(
            135deg,
            rgba(106, 80, 39, 0.30),
            rgba(34, 32, 28, 0.96) 48%
        );

    border: 2px solid var(--guide-border);
    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.26),
        0 0 14px rgba(221, 184, 109, 0.05);
}


/* =========================
   BREADCRUMBS
========================= */

.guide-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 22px;

    color: #817866;

    font-size: 9px;
}

.guide-breadcrumbs a {
    color: #b89a5c;

    text-decoration: none;

    transition:
        color 0.18s ease;
}

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

.guide-breadcrumbs span:last-child {
    color: #aaa08d;
}


/* =========================
   HERO HEADING
========================= */

.guide-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;

    gap: 20px;
}

.guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;

    background:
        linear-gradient(
            135deg,
            rgba(106, 80, 39, 0.28),
            #211d16
        );

    border: 1px solid var(--guide-border);
    border-radius: 11px;
}

.guide-icon img {
    width: 56px;
    height: 56px;

    object-fit: contain;
}

.guide-label {
    display: block;

    margin-bottom: 6px;

    color: var(--guide-accent);

    font-size: 9px;
    letter-spacing: 0.12em;
}

.guide-heading-content h1 {
    margin: 0 0 9px;

    color: #f2f2f2;

    font-size: 27px;
    line-height: 1.3;
}

.guide-heading-content p {
    max-width: 720px;

    margin: 0;

    color: #bbb7ae;

    font-size: 11px;
    line-height: 1.7;
}


/* =========================
   META
========================= */

.guide-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
    padding-top: 16px;

    color: #8d877b;

    border-top:
        1px solid rgba(221, 184, 109, 0.12);

    font-size: 9px;
}


/* =========================
   GUIDE LAYOUT
========================= */

.guide-layout {
    position: relative;

    width: min(820px, 100%);

    margin: 0 auto;
}


/* =========================
   ON THIS PAGE
========================= */

.guide-sidebar {
    position: sticky;

    top: 90px;

    width: 190px;
    height: 0;

    transform:
        translateX(
            calc(-100% - 28px)
        );

    z-index: 5;
}

.contents-card {
    padding: 16px;

    background-color: #1f1e1b;

    border: 1px solid #554a35;
    border-radius: 10px;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.18);
}

.contents-label {
    display: block;

    margin-bottom: 12px;

    color: var(--guide-accent);

    font-size: 8px;
    letter-spacing: 0.12em;
}

.contents-list {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.contents-list a {
    padding: 7px 8px;

    color: #99958c;

    text-decoration: none;

    border-left: 2px solid transparent;
    border-radius: 3px;

    font-size: 9px;
    line-height: 1.4;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.contents-list a:hover {
    background-color:
        rgba(221, 184, 109, 0.07);

    color: #e1c37b;

    border-left-color:
        var(--guide-accent);
}


/* =========================
   GUIDE CONTENT
========================= */

.guide-content {
    display: grid;

    gap: 16px;
}


/* =========================
   WHAT YOU NEED
========================= */

.guide-summary {
    padding: 22px 24px;

    scroll-margin-top: 90px;

    background:
        linear-gradient(
            110deg,
            rgba(106, 80, 39, 0.22),
            transparent 55%
        ),
        #222222;

    border: 1px solid var(--guide-border);
    border-radius: 10px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22);
}

.summary-kicker {
    display: block;

    margin-bottom: 6px;

    color: var(--guide-accent);

    font-size: 10px;
    letter-spacing: 0.12em;
}

.guide-summary h2 {
    margin: 0 0 18px;

    color: #eeeeee;

    font-size: 19px;
}

.need-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.need-list li {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    min-width: 0;

    padding: 14px;

    background-color: #1c1c1c;

    color: #c6c6c6;

    border: 1px solid #3b3b3b;
    border-radius: 8px;

    font-size: 11px;
    line-height: 1.7;
}

.need-list strong {
    color: #eeeeee;
}

.need-marker {
    flex: 0 0 auto;

    color: var(--guide-accent);

    font-size: 10px;
}


/* =========================
   GUIDE STEP
========================= */

.guide-step {
    overflow: hidden;

    scroll-margin-top: 90px;

    background-color:
        var(--guide-surface);

    border: 1px solid #414141;
    border-radius: 10px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.18);
}


/* =========================
   STEP HEADING
========================= */

.step-heading {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 18px 22px;

    background:
        linear-gradient(
            90deg,
            rgba(106, 80, 39, 0.20),
            transparent 46%
        ),
        #202020;

    border-bottom:
        1px solid rgba(221, 184, 109, 0.30);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    padding-top: 2px;

    background-color: #30291d;

    color: var(--guide-accent);

    border: 1px solid var(--guide-border);
    border-radius: 7px;

    font-size: 14px;

    box-shadow:
        0 0 9px rgba(221, 184, 109, 0.08);
}

.step-kicker,
.accuracy-kicker,
.tip-label,
.tool-cta-label {
    color: var(--guide-accent);

    font-size: 11px;
    letter-spacing: 0.12em;
}

.step-heading h2 {
    margin: 5px 0 0;

    color: #f2f2f2;

    font-size: 19px;
    line-height: 1.35;
}


/* =========================
   STEP BODY
========================= */

.step-body {
    padding: 22px;
}

.step-body p {
    color: var(--guide-text);

    font-size: 12px;
    line-height: 1.75;
}

.step-body > p:first-child,
.step-body > div > p:first-child {
    margin-top: 0;
}

.step-body > p:last-child,
.step-body > div > p:last-child {
    margin-bottom: 0;
}

.step-body strong {
    color: var(--guide-accent-light);
}


/* =========================
   TIP CARD
========================= */

.tip-card {
    margin-top: 18px;

    padding: 14px 16px;

    background-color:
        rgba(106, 80, 39, 0.14);

    border-left:
        3px solid var(--guide-accent);

    border-radius:
        0 8px 8px 0;
}

.tip-card p {
    margin: 6px 0 0;

    color: #d1c7b3;
}


/* =========================
   SPLIT LAYOUT
========================= */

.split-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(280px, 0.9fr);

    align-items: center;

    gap: 24px;
}

.split-layout-reverse {
    grid-template-columns:
        minmax(280px, 0.9fr)
        minmax(0, 1.1fr);
}


/* =========================
   GUIDE IMAGES
========================= */

.guide-image {
    margin: 0;
}

.guide-image img {
    display: block;

    width: 100%;
    height: auto;

    border: 1px solid #4a4a4a;
    border-radius: 10px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25);
}

.guide-image figcaption {
    margin-top: 8px;

    color: #8f8f8f;

    font-size: 10px;
    line-height: 1.5;
}

.guide-image figcaption strong {
    color: #b8b8b8;
}

.guide-image figcaption a {
    color: var(--guide-accent);

    text-decoration: none;
}

.guide-image figcaption a:hover {
    color: #d1a85c;

    text-decoration: underline;
}

.guide-image-wide {
    margin-top: 24px;
}

.guide-image-wide img {
    width: min(100%, 640px);

    margin: 0 auto;
}

.guide-image-wide figcaption {
    width: min(100%, 640px);

    margin: 8px auto 0;
}


/* =========================
   ANGLE CALLOUT
========================= */

.angle-callout {
    display: grid;
    grid-template-columns: 150px 1fr;

    align-items: center;

    gap: 24px;

    margin-top: 20px;

    padding: 20px;

    background-color: #1b1b1b;

    border: 1px solid var(--guide-border);
    border-radius: 9px;
}

.angle-callout > div {
    padding-right: 24px;

    text-align: center;

    border-right:
        1px solid rgba(221, 184, 109, 0.22);
}

.angle-value,
.angle-label {
    display: block;
}

.angle-value {
    color: var(--guide-accent);

    font-size: 31px;
}

.angle-label {
    margin-top: 5px;

    color: #a99d86;

    font-size: 9px;
    letter-spacing: 0.08em;
}

.angle-callout p {
    margin: 0;

    font-size: 11px;
}


/* =========================
   IMPORTANT NOTE
========================= */

.important-note {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    margin-top: 22px;

    padding: 19px;

    background-color:
        rgba(106, 80, 39, 0.16);

    border: 1px solid var(--guide-border);
    border-radius: 9px;
}

.note-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    background-color:
        var(--guide-wash);

    color: var(--guide-accent);

    border: 1px solid var(--guide-border);
    border-radius: 50%;

    font-size: 14px;
}

.important-note h3 {
    margin: 2px 0 7px;

    color: var(--guide-accent);

    font-size: 14px;
}

.important-note p {
    margin: 0 0 8px;

    font-size: 11px;
}

.important-note p:last-child {
    margin-bottom: 0;
}


/* =========================
   REFINEMENT FLOW
========================= */

.refinement-flow {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.refinement-flow li {
    padding: 16px 14px;

    background-color: #1b1b1b;

    color: #bdbdbd;

    border: 1px solid #3f3f3f;
    border-radius: 8px;

    font-size: 10px;
    line-height: 1.65;
}

.refinement-flow li span {
    display: block;

    margin-bottom: 9px;

    color: var(--guide-accent);

    font-size: 13px;
}


/* =========================
   ACCURACY CHECKLIST
========================= */

.accuracy-section {
    padding: 26px;

    scroll-margin-top: 90px;

    background:
        linear-gradient(
            135deg,
            rgba(106, 80, 39, 0.18),
            transparent 48%
        ),
        #1b1b1b;

    border: 1px solid var(--guide-border);
    border-radius: 10px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22);
}

.accuracy-header {
    margin-bottom: 20px;

    text-align: center;
}

.accuracy-header h2 {
    margin: 6px 0 0;

    color: #f0f0f0;

    font-size: 23px;
}

.accuracy-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);

    gap: 11px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.accuracy-grid li {
    position: relative;

    padding: 14px 15px 14px 39px;

    background-color:
        rgba(20, 20, 20, 0.64);

    color: #c6c6c6;

    border:
        1px solid rgba(221, 184, 109, 0.15);

    border-radius: 8px;

    font-size: 10px;
    line-height: 1.65;
}

.accuracy-grid li::before {
    content: "✓";

    position: absolute;

    top: 13px;
    left: 15px;

    color: var(--guide-accent);

    font-size: 13px;
}


/* =========================
   TOOL CTA
========================= */

.tool-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    gap: 20px;

    margin-top: 14px;

    padding: 23px 24px;

    background:
        linear-gradient(
            90deg,
            rgba(49, 94, 67, 0.40),
            transparent 55%
        ),
        #202522;

    color: #ffffff;

    border: 2px solid var(--tool-border);
    border-radius: 10px;

    text-decoration: none;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.tool-cta-label {
    display: block;

    margin-bottom: 7px;

    color: var(--tool-accent);
}

.tool-cta-title {
    display: block;

    color: #eeeeee;

    font-size: 17px;
}

.arrow-img {
    box-sizing: border-box;

    width: 42px;
    height: 42px;

    padding: 10px;

    background-color:
        rgba(51, 91, 60, 0.35);

    border: 1px solid #416d4b;
    border-radius: 8px;

    object-fit: contain;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.tool-cta:hover {
    transform: translateY(-2px);

    border-color: #55b879;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        0 0 12px rgba(85, 184, 121, 0.12);
}

.tool-cta:hover .arrow-img {
    transform: translateX(3px);

    background-color:
        rgba(58, 115, 72, 0.50);

    border-color: #6ac77d;

    box-shadow:
        0 0 8px rgba(106, 199, 125, 0.20);
}


/* =========================
   MEDIUM SCREENS
========================= */

@media (max-width: 1200px) {

    .guide-sidebar {
        position: static;

        width: auto;
        height: auto;

        margin-bottom: 22px;

        transform: none;
    }

    .contents-list {
        display: grid;
        grid-template-columns:
            repeat(2, 1fr);

        gap: 4px 12px;
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 800px) {

    .need-list,
    .refinement-flow {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .split-layout,
    .split-layout-reverse {
        grid-template-columns: 1fr;
    }

    .split-layout-reverse .guide-image {
        order: 2;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .guide-page {
        width: min(100% - 20px, 1050px);

        padding-top: 28px;
    }

    .guide-header {
        padding: 20px;
    }

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

    .guide-icon {
        width: 64px;
        height: 64px;
    }

    .guide-icon img {
        width: 46px;
        height: 46px;
    }

    .guide-heading-content h1 {
        font-size: 22px;
    }

    .need-list,
    .accuracy-grid,
    .refinement-flow {
        grid-template-columns: 1fr;
    }

    .guide-summary,
    .step-body,
    .accuracy-section {
        padding: 19px;
    }

    .step-heading {
        align-items: flex-start;

        padding: 18px 19px;
    }

    .step-heading h2 {
        font-size: 17px;
    }

    .angle-callout {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .angle-callout > div {
        padding: 0 0 17px;

        border-right: none;

        border-bottom:
            1px solid rgba(221, 184, 109, 0.22);
    }

    .tool-cta {
        padding: 19px;
    }

    .tool-cta-title {
        font-size: 14px;
        line-height: 1.5;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 430px) {

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

    .guide-heading-content h1 {
        font-size: 19px;
    }

}