/* Shared layout helpers for tool pages */

/* Force scrollbar to always show to prevent layout shift */
html {
    overflow-y: scroll;
}

.nav-bar .h-16 {
    min-width: 0;
    gap: 1rem;
}

.nav-bar .h-16 > .flex.items-center:first-child {
    flex: 0 0 auto;
    min-width: max-content;
}

.nav-bar .h-16 > .flex.items-center:first-child > a,
.nav-bar .h-16 > .flex.items-center:first-child > a > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-bar .nav-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding-left: clamp(0.75rem, 1vw, 1.5rem);
    padding-right: clamp(0.75rem, 1vw, 1.5rem);
}

@media (min-width: 768px) {
    .nav-bar .h-16 > .hidden.md\:flex {
        flex: 1 1 auto;
        justify-content: flex-start;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-bar .h-16 > .hidden.md\:flex::-webkit-scrollbar {
        display: none;
    }
}

.main-content {
    max-width: 80rem; /* Tailwind max-w-7xl */
    margin: 0 auto;
    padding: 2rem 1rem; /* py-8 px-4 */
}

.main-card {
    background: #ffffff;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    padding: 1.5rem; /* p-6 */
}

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #9ca3af;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700;
    color: #1f2937; /* text-gray-800 */
}

.seo-content {
    color: #374151;
}

.seo-content h2 {
    margin: 0 0 1rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #111827;
}

.seo-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.seo-content p {
    margin: 0.75rem 0;
    line-height: 1.8;
}

.seo-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.seo-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    line-height: 1.8;
    list-style: disc;
}

.seo-content li + li {
    margin-top: 0.5rem;
}

.seo-content strong {
    color: #111827;
}

.seo-content .faq-list,
.seo-content .related-tool-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.seo-content .faq-list {
    display: grid;
    gap: 1rem;
}

.seo-content .faq-item,
.seo-content .related-tool-list li {
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    padding: 1rem 1.125rem;
}

.seo-content .faq-item h4,
.seo-content .related-tool-list strong {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    color: #111827;
}

.seo-content .faq-item p,
.seo-content .related-tool-list p {
    margin: 0;
}
