/* AgilKit text pages (about, contact, legal), 404 and tool pages.
   Loaded after home-v2.css; tokens and shell come from the inlined home-critical.css. */

/* Banner: breadcrumb, title, summary */
.content-banner {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 1.75rem 0 2rem;
}
.content-banner-inner {
    max-width: 52rem;
}
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.breadcrumb-list > li { flex: none; }
.breadcrumb-list > .breadcrumb-item-current { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}
.breadcrumb-item-current {
    color: var(--text-main);
}
.content-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0.65rem 0 0.5rem;
}
.content-subtitle {
    color: var(--text-secondary);
    font-size: 1.02rem;
}
.content-actions {
    margin-top: 1.25rem;
}
.primary-button {
    min-height: var(--touch-min-height);
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.primary-button:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-2px);
}

/* Article card */
.content-body {
    padding: 2.5rem 0 4rem;
}
.article-card {
    max-width: 52rem;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-xs);
}
.article-card h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text-main);
    margin: 2.25rem 0 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-light);
}
.article-card > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.prose {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
}
.prose h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--text-main);
    margin: 1.5rem 0 0.5rem;
}
.prose p,
.prose ul,
.prose ol {
    margin-bottom: 1rem;
}
.prose ul,
.prose ol {
    padding-left: 1.35rem;
}
.prose li {
    margin-bottom: 0.45rem;
}
.prose a {
    color: var(--brand-primary);
    font-weight: 600;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}
.prose a:hover {
    color: var(--brand-primary-hover);
}
.prose strong {
    color: var(--text-main);
}
.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 0.1rem 0.4rem;
    border-radius: 0.35rem;
    background: var(--bg-subtle);
    color: var(--text-main);
}
.prose > :last-child {
    margin-bottom: 0;
}
.page-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}
.page-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.55;
}
.page-table-wrap th,
.page-table-wrap td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
}
.page-table-wrap th {
    background: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
}
.page-table-wrap tr:last-child td {
    border-bottom: none;
}

/* 404 */
.notfound-hero .hero-subtitle {
    margin-bottom: 1.75rem;
}
.notfound-tools {
    padding-bottom: 4rem;
}
.notfound-tools .steps-intro {
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .content-banner {
        padding: 1.25rem 0 1.5rem;
    }
    .content-body {
        padding: 1.5rem 0 3rem;
    }
    .primary-button {
        width: 100%;
        justify-content: center;
    }
}
