/* Permanent text under a tool: how it works, FAQ and related articles. */

/* The tool's min-height is reserved on submit so the streamed answer does not move visible content (CLS). */
.tool-area {
    display: grid;
    align-content: start;
}

/* Around a single <section> the wrapper stays a plain block: as a grid item the
   section's flex layout spreads its items while the answer streams in. */
.tool-area.section-wrap {
    display: block;
}

/* Page styles give every <section> flex layout and centered text; this one is plain text. */
.tool-info {
    display: block;
    text-align: left;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 40px auto 10px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #f3e6d0;
    font-family: Arial, sans-serif;
}

.tool-info h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #e8c99a;
    text-align: center;
    margin: 36px 0 14px;
}

.tool-info p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.tool-info a {
    color: #f6e7c8;
    text-underline-offset: 3px;
}

.tool-info .lead,
.tool-info .other-tools {
    text-align: center;
}

.tool-info .other-tools {
    margin-top: 22px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 6px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    border: 1px solid rgba(232, 201, 154, 0.35);
    border-radius: 14px;
    padding: 14px 14px 12px;
    background: rgba(255, 248, 238, 0.04);
    font-size: 16px;
    line-height: 1.5;
}

.steps li::before {
    content: counter(step);
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #e8c99a;
    color: #1a120c;
    font-weight: 700;
    text-align: center;
    line-height: 28px;
}

.steps strong {
    display: block;
    color: #f0d7ae;
    margin-bottom: 4px;
}

.faq details {
    border-bottom: 1px solid rgba(232, 201, 154, 0.25);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 32px 14px 0;
    position: relative;
    font-size: 18px;
    color: #f0d7ae;
}

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

.faq summary::after {
    content: "▾";
    position: absolute;
    right: 4px;
    top: 14px;
    color: #e8c99a;
}

.faq details[open] summary::after {
    content: "▴";
}

.faq details p {
    margin: 0 0 14px;
}

.related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
    gap: 22px;
    margin-top: 8px;
}

.related a.post {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid rgba(232, 201, 154, 0.35);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 248, 238, 0.04);
}

.related img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.related span {
    padding: 12px 14px 14px;
    color: #f0d7ae;
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 767px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .tool-info h2 {
        font-size: 23px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .tool-info p,
    .faq summary {
        font-size: 16px;
    }

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

    .related span {
        font-size: 15px;
        padding: 10px;
    }
}
