/* Content/article pages (custom-page.cshtml). The global site CSS resets list styles
   for navigation, so editor content needs them restored here. */

.h1-custom-page-heading {
    color: #D93D87;
}

.h2-custom-page-heading {
    color: #1EA199;
}

.custom-page-content h1 {
    color: #D93D87;
    margin-bottom: 1rem;
}

.custom-page-content h2 {
    color: #1EA199;
}

.custom-page-content h3 {
    color: #434343;
}

.custom-page-content h2,
.custom-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.custom-page-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Restore list markers (reset globally for nav menus) */
.custom-page-content ul,
.custom-page-content ol {
    margin: 0 0 1.25rem 0;
    padding-left: 1.75rem;
}

.custom-page-content ul {
    list-style: disc outside;
}

.custom-page-content ol {
    list-style: decimal outside;
}

.custom-page-content ul ul {
    list-style-type: circle;
    margin-bottom: 0;
}

.custom-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Tables: editor content arrives unstyled */
.custom-page-content table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem 0;
}

.custom-page-content th,
.custom-page-content td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.9rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.custom-page-content th {
    background: #f5f5f5;
    font-weight: 700;
}

.custom-page-content img {
    max-width: 100%;
    height: auto;
}

.custom-page-content figure {
    margin: 1.5rem 0;
}

.custom-page-content figure figcaption {
    font-size: 0.875rem;
    color: #6c6c6c;
    margin-top: 0.4rem;
}

.custom-page-content blockquote {
    border-left: 3px solid #1EA199;
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    color: #555;
}

.custom-page-content .guide-thumb {
    height: 160px;
    object-fit: contain;
}

/* Legacy editor content carries fixed pixel widths (e.g. table style="width:915px");
   neutralise them so old pages can't force the layout wider than the viewport. */
.custom-page-content {
    overflow-x: auto;
}

.custom-page-content table[style*="width"] {
    width: 100% !important;
}

.custom-page-content td[style*="width"],
.custom-page-content th[style*="width"] {
    width: auto !important;
}
