.calc-guide-page {
    color: #1f2937;
    background: #f5f7fb;
}

.calc-guide {
    padding-bottom: 64px;
}

.calc-guide-article {
    min-width: 0;
}

.calc-guide-article .article-section {
    padding: 22px 20px;
    border-top: 1px solid #edf1f5;
}

.calc-guide-article .article-section h2 {
    scroll-margin-top: 82px;
    margin: 0 0 10px;
    color: #10233b;
    font-size: 19px;
    line-height: 1.45;
}

.calc-guide-article .article-section h3 {
    margin: 22px 0 8px;
    color: #17395d;
    font-size: 15px;
}

.calc-guide-article .article-section > p,
.calc-guide-article .article-section li,
.calc-guide-article .article-section dd,
.calc-guide-article .article-section td {
    font-size: 12px;
}

.calc-guide-article .article-section > p {
    margin: 8px 0;
    color: #506174;
    line-height: 1.8;
}

.calc-guide-article .step-list {
    list-style: decimal;
    display: block;
    margin: 14px 0;
    padding-left: 24px;
}

.calc-guide-article .step-list li {
    margin: 8px 0;
    padding-left: 4px;
    color: #506174;
    line-height: 1.75;
}

.calc-guide-article a {
    color: #0b7285;
    text-underline-offset: 3px;
}

.guide-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f0fbf8 58%, #eef5ff 100%);
    border: 1px solid #dce7e4;
}

.guide-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -95px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.09);
    pointer-events: none;
}

.guide-hero > * {
    position: relative;
    z-index: 1;
}

.guide-meta,
.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.guide-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #47615b;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #d9e6e2;
    font-size: 13px;
}

.guide-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155 !important;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.guide-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .10);
}

.guide-button-primary {
    border-color: #087f5b;
    background: #087f5b;
    color: #fff !important;
}

.guide-takeaway {
    margin-top: 20px;
    padding: 14px 16px;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    line-height: 1.75;
}

.quick-route {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-route li {
    display: flex;
    gap: 13px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.quick-route strong,
.quick-route p {
    display: block;
}

.quick-route p {
    margin: 6px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.route-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0f766e;
    font-weight: 800;
}

.calculator-map {
    margin: 22px 0;
    overflow: hidden;
    border: 1px solid #d8e1e8;
    border-radius: 15px;
    background: #f8fafc;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.map-top,
.map-pass,
.map-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.map-top {
    justify-content: space-between;
    color: #fff;
    background: #263d37;
}

.map-match {
    margin: 16px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.map-match > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-match small,
.map-match span,
.map-more {
    color: #64748b;
}

.map-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 13px 0 10px;
}

.map-options span,
.map-pass span {
    padding: 9px;
    text-align: center;
    border: 1px solid #d7dee7;
    border-radius: 8px;
    background: #fff;
}

.map-options .is-selected,
.map-pass .is-selected {
    color: #fff;
    border-color: #e85d44;
    background: #e85d44;
}

.map-pass {
    border-top: 1px solid #e2e8f0;
}

.map-bottom {
    justify-content: space-between;
    color: #fff;
    background: #1f2937;
}

.map-bottom strong {
    padding: 8px 12px;
    border-radius: 8px;
    background: #e85d44;
}

.guide-grid {
    display: grid;
    gap: 14px;
    margin: 20px 0;
}

.guide-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.guide-card {
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.guide-card p {
    margin: 7px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.notice {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #cfe2f3;
    border-left: 4px solid #3182ce;
    border-radius: 9px;
    background: #f2f8fd;
    line-height: 1.75;
}

.notice-success {
    border-color: #c8eadc;
    border-left-color: #0f9f6e;
    background: #f0fbf6;
}

.notice-warning {
    border-color: #f3dfac;
    border-left-color: #d99100;
    background: #fffaf0;
}

.notice-danger {
    border-color: #f2c8c2;
    border-left-color: #d94841;
    background: #fff5f3;
}

.do-dont-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.do-card,
.dont-card {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #cde8dd;
    background: #f2fbf7;
}

.dont-card {
    border-color: #eadfd0;
    background: #fffaf4;
}

.do-card p,
.dont-card p {
    margin: 7px 0 0;
    color: #64748b;
}

.definition-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.definition-card {
    padding: 19px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.definition-card h3 {
    margin-top: 0;
    color: #24473e;
}

.definition-card p {
    margin-bottom: 0;
}

.example-table-wrap {
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.example-table {
    width: 100%;
    min-width: 610px;
    border-collapse: collapse;
    background: #fff;
}

.example-table th,
.example-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid #e8edf3;
    line-height: 1.6;
}

.example-table th {
    color: #334155;
    background: #f5f8fb;
}

.example-table tr:last-child td {
    border-bottom: 0;
}

.check-list,
.final-checklist {
    list-style: none;
    padding: 0;
}

.check-list li,
.final-checklist li {
    position: relative;
    padding: 9px 0 9px 31px;
    line-height: 1.7;
}

.check-list li::before,
.final-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 9px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0f9f6e;
    font-size: 13px;
    font-weight: 900;
}

.formula-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 22px 0;
    padding: 22px;
    text-align: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #24473e, #0f766e);
}

.formula-card span {
    opacity: .8;
}

.formula-card strong {
    font-size: clamp(22px, 4vw, 32px);
}

.plain-definitions,
.glossary-grid {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.plain-definitions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plain-definitions div,
.glossary-grid div {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.plain-definitions dt,
.glossary-grid dt {
    margin-bottom: 6px;
    font-weight: 800;
    color: #24473e;
}

.plain-definitions dd,
.glossary-grid dd {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

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

.optimization-grid div {
    padding: 17px;
    border: 1px solid #d9e5e1;
    border-radius: 12px;
    background: #f7fbfa;
}

.optimization-grid p {
    margin: 6px 0 0;
    color: #64748b;
}

.trouble-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.trouble-flow div {
    position: relative;
    padding: 18px 18px 18px 56px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.trouble-flow span {
    position: absolute;
    left: 16px;
    top: 17px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #475569;
    font-weight: 800;
}

.trouble-flow p {
    margin: 6px 0 0;
    color: #64748b;
}

.faq-list details {
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.faq-list summary {
    position: relative;
    padding: 16px 48px 16px 17px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

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

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 17px;
    top: 11px;
    font-size: 25px;
    color: #0f766e;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: 0;
    padding: 0 17px 17px;
    color: #64748b;
    line-height: 1.75;
}

.final-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
    margin: 20px 0;
}

.guide-finish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 20px;
    border-radius: 14px;
    color: #fff;
    background: #263d37;
}

.guide-finish p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .75);
}

.glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toc-nav a {
    display: block;
}

@media (max-width: 860px) {
    .article-layout {
        display: block;
    }

    .article-aside {
        display: none;
    }
}

@media (max-width: 680px) {
    .quick-route,
    .guide-grid-2,
    .guide-grid-3,
    .do-dont-grid,
    .definition-cards,
    .plain-definitions,
    .optimization-grid,
    .trouble-flow,
    .final-checklist,
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .guide-actions .guide-button {
        flex: 1 1 150px;
    }

    .map-options {
        grid-template-columns: 1fr;
    }

    .guide-finish {
        align-items: stretch;
        flex-direction: column;
    }

    .guide-finish .guide-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-button {
        transition: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .article-aside,
    .guide-actions {
        display: none !important;
    }

    .calc-guide-page {
        background: #fff;
    }

    .article-section,
    .guide-hero {
        box-shadow: none !important;
        break-inside: avoid;
    }
}
