/* Shared content colors; no header/footer rules or layout overrides. */
#main {
    --x66-content-heading: #7d1d32;
    --x66-content-link: #a51e35;
    --x66-content-link-hover: #70172a;
    --fs-experimental-link-color: var(--x66-content-link);
    --fs-experimental-link-color-hover: var(--x66-content-link-hover);
    --primary-color: var(--x66-content-link);
    --fs-color-primary: var(--x66-content-link);
}

/* Page templates, article bodies and the author profile share the same hierarchy. */
#main .entry-title,
#main .entry-title a,
#main .page-title,
#main .post-title,
#main .post-title a,
#main .x66-intro h1,
#main .x66-section-heading h2,
#main .x66-author-post h3,
#main .x66-author-post h3 a,
#main .x66-profile-posts > h2,
#main :is(.entry-content, .page-inner, .x66-article, .x66-profile-intro) :is(h1, h2, h3, h4, h5, h6),
#main .page-wrapper .col-inner > :is(h1, h2, h3, h4, h5, h6),
#main .x66-category-topics-panel > h2,
#main .x66-category-topic-group > h3,
#main .widget .widget-title {
    color: var(--x66-content-heading);
}

/* Underlines distinguish prose links without relying on color alone. */
#main :is(.entry-content, .page-inner, .x66-article, .x66-profile-intro) :is(p, li, dd, td) a:not(.button):not(.x66-btn),
#main .page-wrapper .col-inner > :is(p, ul, ol, dl, table) a:not(.button):not(.x66-btn),
#main .x66-home-intro a,
#main .x66-context-link a,
#main .x66-related-context a {
    color: var(--x66-content-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

#main .widget a:not(.button),
#main .entry-meta a,
#main .entry-category a,
#main .x66-author-link,
#main .x66-category-topic-group a,
#main .x66-section-heading > a,
#main .more-link {
    color: var(--x66-content-link);
}

#main #toc_container.x66-toc a {
    color: var(--x66-content-link);
    text-decoration: none;
}
#main #toc_container.x66-toc a:hover {
    color: var(--x66-content-link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#main :is(.entry-content, .page-inner, .x66-article, .x66-profile-intro) :is(p, li, dd, td) a:not(.button):not(.x66-btn):hover,
#main .page-wrapper .col-inner > :is(p, ul, ol, dl, table) a:not(.button):not(.x66-btn):hover,
#main .widget a:not(.button):hover,
#main .entry-title a:hover,
#main .post-title a:hover,
#main .x66-author-post h3 a:hover,
#main .x66-author-link:hover,
#main .x66-category-topic-group a:hover,
#main .x66-section-heading > a:hover,
#main .more-link:hover {
    color: var(--x66-content-link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#main :is(.entry-content, .page-inner, .x66-article, .x66-profile-intro, .widget, .x66-author-post, .x66-category-topics) a:focus-visible,
#main .page-wrapper .col-inner > :is(p, ul, ol, dl, table) a:focus-visible {
    outline: 2px solid var(--x66-content-link);
    outline-offset: 3px;
}

/* Keep the existing pagination geometry while matching the content palette. */
#main .page-numbers a,
#main a.page-numbers,
#main .page-numbers .current,
#main .page-numbers.current {
    border-color: var(--x66-content-link);
}
#main .page-numbers a,
#main a.page-numbers {
    color: var(--x66-content-link);
}
#main .page-numbers a:hover,
#main a.page-numbers:hover,
#main .page-numbers .current,
#main .page-numbers.current {
    background-color: var(--x66-content-link);
    color: #fff;
}
