/* Theme heading size overrides for the front-end. */


.article h1 {
    font-size: 20px;
}

.article h2,
.related-entry-heading,
.comment-title,
h2 {
    font-size: 18px;
}
.article h2{
    font-size: 16px;
    padding: 12px;
}
.sidebar h2,
.sidebar h3,
.widget h2{
    font-size: 16px;
    padding: 8px 12px;
}
.article h3 {
    font-size: 16px;
    padding: 8px 16px
}
.article h4 {
    font-size: 14px;
}
.article h5,.article h6 {
    font-size: 14px;
}

/* ---- Front page (top) ---- */
body.front-top-page {
    --fp-accent: #1f4e8c;
    --fp-accent-soft: #eef3fa;
    --fp-border: #dfe5ee;
    --fp-text: #1f2937;
    --fp-muted: #6b7280;
}

body.front-top-page .eye-catch-wrap {
    display: none;
}

body.front-top-page .article h1.entry-title {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--fp-text);
}

body.front-top-page .entry-content > p {
    color: var(--fp-muted);
    line-height: 1.8;
}

body.front-top-page .entry-content > h2 {
    margin: 2.4em 0 .8em;
    padding: 2px 0 2px 14px;
    font-size: 19px;
    font-weight: 700;
    color: var(--fp-text);
    background: none;
    border: 0;
    border-left: 5px solid var(--fp-accent);
}

body.front-top-page .entry-content > h3 {
    margin: 1.8em 0 .6em;
    padding: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-accent);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--fp-border);
}

/* Link lists: a grid of tiles. The whole tile is clickable via the link's ::after. */
body.front-top-page .entry-content > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    margin: 0 0 1em;
    padding: 0;
    list-style: none;
}

body.front-top-page .entry-content > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0 14px 0 0;
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    font-size: 13px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

body.front-top-page .entry-content > ul > li::before {
    content: none;
}

body.front-top-page .entry-content > ul > li > a {
    flex: 1;
    min-width: 0;
    padding: 11px 0 11px 14px;
    line-height: 1.5;
    color: var(--fp-text);
    text-decoration: none;
}

body.front-top-page .entry-content > ul > li > a::after {
    content: "";
    position: absolute;
    inset: 0;
}

body.front-top-page .signal-count {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--fp-accent-soft);
    color: var(--fp-accent);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.front-top-page .signal-count--zero {
    background: #f3f4f6;
    color: #9ca3af;
    font-weight: 400;
}

body.front-top-page .entry-content > ul > li:hover {
    background: var(--fp-accent-soft);
    border-color: var(--fp-accent);
    box-shadow: 0 1px 4px rgba(31, 78, 140, .15);
}

body.front-top-page .entry-content > ul > li:hover > a {
    color: var(--fp-accent);
}

body.front-top-page .entry-content .alert-box {
    margin-top: 2em;
    border-radius: 8px;
    font-size: 12px;
}

@media screen and (max-width: 480px) {
    body.front-top-page .article h1.entry-title {
        font-size: 20px;
    }

    body.front-top-page .entry-content > h2 {
        font-size: 17px;
    }

    body.front-top-page .entry-content > ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
