/* ==========================================================
   SimpleAIHub — Lesson 23
   Chain-of-Thought Prompting
   Page-specific styles only: .sah23-*
========================================================== */

.sah23-layout {
    background: #f7f7fa;
    align-items: flex-start;
}

.sah23-main {
    min-width: 0;
}

.sah23-page {
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 62px 54px 90px;
    color: #17142f;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sah23-hero {
    padding-bottom: 48px;
}

.sah23-hero__label,
.sah23-kicker,
.sah23-core__tag,
.sah23-practice__label,
.sah23-takeaway__label {
    color: #008f7a;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sah23-hero h1 {
    margin: 18px 0 22px;
    color: #15112e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.sah23-hero__intro {
    max-width: 790px;
    margin: 0;
    color: #5d5872;
    font-size: 20px;
    line-height: 1.75;
}

.sah23-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.sah23-hero__chips span {
    padding: 8px 12px;
    border: 1px solid #d9d5e5;
    border-radius: 999px;
    color: #514c68;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.sah23-core {
    margin-bottom: 78px;
    padding: 32px 34px;
    border: 1px solid #d8d4e6;
    border-left: 5px solid #08aa8d;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(23,18,47,.045);
}

.sah23-core h2 {
    max-width: 760px;
    margin: 12px 0 13px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.sah23-core p,
.sah23-section p {
    color: #5c5770;
    font-size: 18px;
    line-height: 1.75;
}

.sah23-core p {
    margin: 0;
}

.sah23-section {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 86px;
}

.sah23-section__number {
    color: #09a98c;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    padding-top: 2px;
}

.sah23-section h2 {
    margin: 11px 0 20px;
    color: #17132f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.sah23-section p {
    margin: 0 0 18px;
}

.sah23-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.sah23-flow > div {
    min-height: 116px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #dedbe8;
    border-radius: 12px;
    background: #fff;
}

.sah23-flow span {
    margin-bottom: 8px;
    color: #09a98c;
    font-size: 11px;
    font-weight: 800;
}

.sah23-flow strong {
    font-family: Georgia, serif;
    font-size: 18px;
}

.sah23-flow small {
    margin-top: 5px;
    color: #716b81;
    font-size: 13px;
    line-height: 1.45;
}

.sah23-flow > b {
    color: #09a98c;
    font-size: 24px;
}

.sah23-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-top: 30px;
}

.sah23-card {
    padding: 25px;
    border: 1px solid #dfdce8;
    border-radius: 12px;
    background: #fff;
}

.sah23-card > span {
    color: #09a98c;
    font-size: 12px;
    font-weight: 800;
}

.sah23-card h3 {
    margin: 26px 0 8px;
    font-family: Georgia, serif;
    font-size: 21px;
}

.sah23-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.sah23-note {
    margin-top: 25px;
    padding: 20px 22px;
    border-radius: 10px;
    background: #f1eff7;
    color: #514c66;
    font-size: 16px;
    line-height: 1.65;
}

.sah23-note strong {
    color: #201a3d;
}

.sah23-note--green {
    background: #eaf8f5;
}

.sah23-code {
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid #302b4a;
    border-radius: 12px;
    background: #17142a;
    box-shadow: 0 14px 34px rgba(22,18,47,.10);
}

.sah23-code__bar {
    height: 48px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #aaa5bb;
    font-size: 12px;
}

.sah23-code__bar span {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
    background: #6f6a80;
}

.sah23-code__bar b {
    margin-left: 8px;
    font-weight: 700;
}

.sah23-code pre,
.sah23-result pre,
.sah23-compare pre {
    margin: 0;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    white-space: pre;
}

.sah23-code pre {
    padding: 25px;
    color: #eeeaf5;
    font-size: 14px;
    line-height: 1.75;
}

.sah23-result {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #d8e9e4;
    border-radius: 11px;
    background: #f5fbf9;
}

.sah23-result__label {
    margin-bottom: 10px;
    color: #078d78;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.sah23-result pre {
    color: #243b36;
    font-size: 15px;
    line-height: 1.7;
}

.sah23-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}

.sah23-compare > div {
    overflow: hidden;
    border: 1px solid #dedbe7;
    border-radius: 12px;
    background: #fff;
}

.sah23-compare__title {
    padding: 14px 18px;
    color: #635d73;
    border-bottom: 1px solid #e8e5ee;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.sah23-compare__title--good {
    color: #087f6c;
    background: #eefaf7;
}

.sah23-compare pre {
    min-height: 155px;
    padding: 20px;
    color: #302b47;
    font-size: 14px;
    line-height: 1.65;
    background: #faf9fc;
}

.sah23-compare p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 15px;
}

.sah23-warning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.sah23-warning-grid > div {
    padding: 23px;
    border: 1px solid #e4dfe9;
    border-radius: 11px;
    background: #fff;
}

.sah23-warning-grid strong {
    display: block;
    font-size: 17px;
    line-height: 1.4;
}

.sah23-warning-grid p {
    margin: 9px 0 0;
    font-size: 15px;
    line-height: 1.6;
}

.sah23-application-list {
    margin-top: 25px;
    border-top: 1px solid #dfdce7;
}

.sah23-application-list > div {
    display: grid;
    grid-template-columns: 45px 220px 1fr;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #dfdce7;
}

.sah23-application-list span {
    color: #09a98c;
    font-size: 12px;
    font-weight: 800;
}

.sah23-application-list strong {
    font-family: Georgia, serif;
    font-size: 19px;
}

.sah23-application-list p {
    margin: 0;
    font-size: 15px;
}

.sah23-practice {
    margin: 15px 0 70px;
    padding: 40px;
    border-radius: 14px;
    background: #130b31;
    color: #fff;
}

.sah23-practice h2 {
    margin: 12px 0 14px;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1.15;
}

.sah23-practice > p,
.sah23-practice li {
    color: #d0cadb;
    font-size: 17px;
    line-height: 1.7;
}

.sah23-practice ol {
    margin: 23px 0;
    padding-left: 23px;
}

.sah23-practice__goal {
    margin-top: 25px;
    padding: 17px 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    color: #e2ddea;
    background: rgba(255,255,255,.05);
    font-size: 16px;
    line-height: 1.6;
}

.sah23-check {
    padding: 34px;
    border: 1px solid #ddd9e7;
    border-radius: 13px;
    background: #fff;
}

.sah23-check h2 {
    margin: 10px 0 27px;
    font-family: Georgia, serif;
    font-size: 34px;
}

.sah23-question {
    padding: 20px 0;
    border-top: 1px solid #e4e1e9;
}

.sah23-question strong {
    font-size: 17px;
    line-height: 1.5;
}

.sah23-question p {
    margin: 7px 0 0;
    color: #5c5770;
    font-size: 16px;
    line-height: 1.6;
}

.sah23-takeaway {
    margin-top: 50px;
    padding: 37px;
    border: 1px solid #bfe5dc;
    border-radius: 13px;
    background: #eefaf7;
}

.sah23-takeaway h2 {
    max-width: 700px;
    margin: 12px 0 21px;
    font-family: Georgia, serif;
    font-size: 35px;
    line-height: 1.15;
}

.sah23-takeaway ul {
    margin: 0;
    padding-left: 22px;
}

.sah23-takeaway li {
    margin: 9px 0;
    color: #3f5c55;
    font-size: 16px;
    line-height: 1.55;
}

.sah23-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid #dcd9e5;
}

.sah23-navigation a {
    min-height: 100px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #dedbe8;
    border-radius: 11px;
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.sah23-navigation a:last-child {
    align-items: flex-end;
    text-align: right;
}

.sah23-navigation a:hover {
    transform: translateY(-2px);
    border-color: #09a98c;
}

.sah23-navigation span {
    margin-bottom: 7px;
    color: #777187;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.sah23-navigation strong {
    color: #087f6c;
    font-size: 18px;
}

@media (max-width: 1050px) {
    .sah23-page {
        width: 100%;
        padding: 50px 38px 75px;
    }

    .sah23-flow {
        grid-template-columns: 1fr 1fr;
    }

    .sah23-flow > b {
        display: none;
    }
}

@media (max-width: 760px) {
    .sah23-page {
        padding: 38px 20px 65px;
    }

    .sah23-hero h1 {
        font-size: 45px;
    }

    .sah23-hero__intro {
        font-size: 17px;
    }

    .sah23-section {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 64px;
    }

    .sah23-section h2 {
        font-size: 32px;
    }

    .sah23-section p,
    .sah23-core p {
        font-size: 17px;
    }

    .sah23-core {
        padding: 25px 23px;
        margin-bottom: 60px;
    }

    .sah23-core h2 {
        font-size: 26px;
    }

    .sah23-card-grid,
    .sah23-compare,
    .sah23-warning-grid,
    .sah23-navigation {
        grid-template-columns: 1fr;
    }

    .sah23-navigation a:last-child {
        align-items: flex-start;
        text-align: left;
    }

    .sah23-application-list > div {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }

    .sah23-application-list p {
        grid-column: 2;
    }

    .sah23-practice,
    .sah23-check,
    .sah23-takeaway {
        padding: 27px 22px;
    }

    .sah23-practice h2,
    .sah23-takeaway h2,
    .sah23-check h2 {
        font-size: 30px;
    }

    .sah23-code pre {
        padding: 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sah23-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sah23-hero h1 {
        font-size: 39px;
    }

    .sah23-flow {
        grid-template-columns: 1fr;
    }

    .sah23-flow > div {
        min-height: 90px;
    }

    .sah23-section {
        grid-template-columns: 1fr;
    }

    .sah23-section__number {
        font-size: 18px;
    }
}
