/* Standardized overrides for headings, links, and lists.
   Loaded after the legacy theme CSS so these rules take precedence by
   source order -- but the theme's own selectors are frequently scoped with
   a class (e.g. ".entry-content :where(h2)"), which outranks a plain
   element selector on specificity regardless of source order. `!important`
   is used deliberately here: this file's entire purpose is to guarantee a
   consistent final presentation regardless of the legacy theme's internal
   cascade, not to win a selector-specificity contest against an unknown,
   250KB+ minified stylesheet one rule at a time. */

h1, h2, h3, h4, h5, h6 {
    color: #1b2733 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

h1 { font-size: 2.25rem !important; }
h2 { font-size: 1.75rem !important; margin-top: 2rem !important; }
h3 { font-size: 1.375rem !important; margin-top: 1.5rem !important; }

/* A heading that wraps a link (e.g. a linked section title) should look
   like a heading, not like a generic inline link. */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit !important;
    text-decoration: none !important;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: underline !important;
}

/* Regular inline links, outside of headings. Scoped to .entry-content --
   both themes use this class for the actual page content, and NOT for
   chrome like the nav menu or footer, which are also built from <ul><li><a>
   and must keep their own theme styling untouched. */
.entry-content p a, .entry-content li a, .entry-content td a {
    color: #0a6ebd !important;
    text-decoration: underline !important;
}
.entry-content p a:hover, .entry-content li a:hover, .entry-content td a:hover {
    color: #084e87 !important;
}

/* Lists -- scoped to .entry-content for the same reason: the nav menu is
   also a <ul>, and must not pick up content-list spacing/bullets. */
.entry-content ul, .entry-content ol {
    margin: 1em 0 !important;
    padding-left: 1.75em !important;
}
.entry-content ul {
    list-style-type: disc !important;
}
.entry-content ul ul {
    list-style-type: circle !important;
}
.entry-content ol {
    list-style-type: decimal !important;
}
.entry-content li {
    margin: 0.35em 0 !important;
}
