/* Content examples use explicit dimensions; ad sizing stays in style.css. */
.tool-header {
    padding: 24px 20px;
    margin-bottom: 20px;
}

.tool-header h1 {
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    line-height: 1.3;
}

.tool-header .hero-lead {
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 1;
}

.tool-header .hero-description {
    font-size: .95rem;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-samples {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
}

.hero-samples figure {
    margin: 0;
    min-width: 84px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    color: #4a405e;
}

.hero-samples img {
    width: 58px;
    height: auto;
    display: block;
    margin: 0 auto 4px;
}

.hero-samples figcaption {
    font-size: .8rem;
}

.seo-figure {
    margin: 20px 0;
}

.seo-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.seo-figure figcaption {
    color: #555;
    font-size: .85rem;
    margin-top: 8px;
    line-height: 1.6;
}

.sample-comparison {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sample-comparison figure {
    margin: 0;
    padding: 16px 8px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.sample-comparison img {
    width: 90px;
    max-width: 100%;
    height: auto;
}

.sample-comparison figcaption {
    font-size: .85rem;
}

.guide-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}

.guide-links a {
    display: block;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #314e96;
    text-decoration: none;
}

.guide-links a:hover {
    background: #f4f6ff;
    text-decoration: underline;
}

.guide-links strong {
    display: block;
}

.guide-links span {
    font-size: .9rem;
    color: #555;
}

.post-body .content-note {
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    background: #f4f6ff;
    font-size: .9rem;
}

.post-body .related-guides {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .tool-header {
        padding: 20px 12px;
    }

    .tool-section,
    .content-section {
        padding: 20px 16px;
    }

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

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

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

    .input-area input {
        box-sizing: border-box;
        max-width: 100%;
    }

    .post-body th,
    .post-body td {
        padding: 8px;
        overflow-wrap: anywhere;
    }
}