/* ============================================================
   AI-VISIBILITY CONTENT PAGES (/modules, /compare, /workflows)
   Prose pages rendered from Markdown. Mirrors .legal-content so
   they read like the rest of the site; tables and the index grid
   are the only additions.
   ============================================================ */
.page-hero .content-summary {
    max-width: 760px;
    font-size: 1.15rem;
}

.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--warm-gray-200);
}

.content-page > h2:first-child,
.content-page > article > h2:first-child {
    margin-top: 0;
}

.content-page h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.content-page p,
.content-page li {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-page li {
    margin-bottom: 6px;
}

.content-page strong {
    color: var(--text-dark);
}

.content-page blockquote {
    margin: 0 0 16px;
    padding: 12px 20px;
    border-left: 3px solid var(--green);
    background: var(--green-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-page blockquote p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.92rem;
}

.content-page th,
.content-page td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--warm-gray-200);
    color: var(--text-body);
    line-height: 1.6;
}

.content-page th {
    background: var(--warm-gray-100);
    color: var(--text-dark);
    font-weight: 600;
}

.content-page .content-placeholder {
    padding: 10px 14px;
    border: 1px dashed var(--warm-gray-300);
    border-radius: var(--radius-sm);
    background: var(--warm-gray-50);
    color: var(--warm-gray-500);
    font-style: italic;
}

.workflow-steps ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.workflow-steps ol > li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
    margin-bottom: 14px;
}

.workflow-steps ol > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-darker);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-modules {
    list-style: none;
    padding-left: 0;
}

.related-modules li {
    padding: 8px 0;
    border-bottom: 1px solid var(--warm-gray-200);
}

.related-modules a {
    color: var(--text-dark);
    font-weight: 600;
}

.content-back {
    margin-top: 32px;
}

.content-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--warm-gray-200);
}

/* /modules index */
.module-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.module-index-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.module-index-card h4 {
    color: var(--text-dark);
}

.module-index-card p {
    flex: 1;
}

.module-index-more {
    margin-top: 16px;
    color: var(--green-darker);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .module-index-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .module-index-grid { grid-template-columns: 1fr; }
    .content-page table { display: block; overflow-x: auto; }
}
