/*
Theme Name: Jobareer Blog
Description: The Jobareer blog's look: jobareer.com's colors and fonts, posts with a side column of topics, and a job alert band. A child of Twenty Twenty-Four.
Template: twentytwentyfour
Version: 1.0.2
Requires at least: 6.4
Text Domain: jobareer-blog
*/

/* Topic colors: a post's topic label, by its category's address. */
.jb-topic a { text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--body); }
.jb-topic a[href*="/product-news"] { color: var(--wp--preset--color--green-dark); }
.jb-topic a[href*="/behind-the-scenes"] { color: var(--wp--preset--color--terra-dark); }
.jb-topic a[href*="/opinion"] { color: var(--wp--preset--color--body); }

/* A post in the list is one link-sized block; its title carries the hover. */
.jb-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.jb-post-title a:hover { color: var(--wp--preset--color--green); }
.jb-list > li { border-bottom: 1px solid var(--wp--preset--color--line); }
.jb-list > li:last-child { border-bottom: 0; }
.jb-featured img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Topic cards in the side column. */
.jb-topic-card { display: flex; flex-direction: column; gap: 8px; border-radius: 16px; padding: 24px; text-decoration: none; color: var(--wp--preset--color--ink); }
.jb-topic-card:hover { color: var(--wp--preset--color--ink); filter: brightness(.98); }
.jb-topic-card strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.jb-topic-card span { font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--body); }
.jb-topic-card em { font-style: normal; font-size: 14px; font-weight: 600; margin-top: 4px; }
.jb-topic-card.product-news { background: var(--wp--preset--color--green-soft); }
.jb-topic-card.product-news em { color: var(--wp--preset--color--green-dark); }
.jb-topic-card.behind-the-scenes { background: var(--wp--preset--color--terra-soft); }
.jb-topic-card.behind-the-scenes em { color: var(--wp--preset--color--terra-dark); }
.jb-topic-card.opinion { background: var(--wp--preset--color--sand-2); }

/* The job alert band's form. */
.jb-alert-form { display: flex; gap: 8px; flex-wrap: wrap; }
.jb-alert-form input { flex: 1 1 170px; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid #b9dcc5; border-radius: 10px; font: 16px var(--wp--preset--font-family--ui); background: #fff; color: var(--wp--preset--color--ink); }
.jb-alert-form button { height: 52px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--wp--preset--color--green); color: #fff; font: 600 15px var(--wp--preset--font-family--ui); cursor: pointer; }
.jb-alert-form button:hover { background: var(--wp--preset--color--green-dark); }
.jb-alert-form input:focus-visible, .jb-alert-form button:focus-visible { outline: 2px solid var(--wp--preset--color--green); outline-offset: 2px; }
.jb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: logo, then a quiet "Blog" label. */
.jb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.jb-brand img { height: 32px; width: auto; display: block; }
.jb-brand span { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); padding-left: 12px; border-left: 1px solid var(--wp--preset--color--line); }
.jb-footer-brand img { height: 28px; width: auto; display: block; margin-bottom: 12px; }
.jb-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.jb-footer a:hover { color: var(--wp--preset--color--green); }

/* The front page's intro line sits under the heading, not centered. */
.jb-intro { margin-left: max(0px, calc((100% - 1148px) / 2)) !important; }
.jb-post-title a { color: var(--wp--preset--color--ink); }

/* "Earlier post" label on its own line, the title under it. */
.jb-earlier { display: flex; flex-direction: column; gap: 8px; }
.jb-earlier .post-navigation-link__label { font-family: var(--wp--preset--font-family--ui); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.jb-earlier a { color: var(--wp--preset--color--ink); text-decoration: none; }
.jb-earlier a:hover { color: var(--wp--preset--color--green); }

/* Phones: the header keeps the logo and the menu; the job alert band does "Start free"'s job. */
@media (max-width: 600px) {
	header .wp-block-buttons { display: none; }
}

/* Front page: one list with page links. The newest post on page 1 is the big one with its picture. */
.jb-front .jb-thumb { display: none; }
body.home:not(.paged) .jb-front > li:first-child { padding-top: 0; }
body.home:not(.paged) .jb-front > li:first-child .jb-thumb { display: block; }
body.home:not(.paged) .jb-front > li:first-child .jb-post-title { font-size: 40px !important; line-height: 1.1; }
body.home:not(.paged) .jb-front > li:first-child .jb-excerpt { font-size: var(--wp--preset--font-size--large); }
.jb-front > li:first-child > .wp-block-group { padding-top: 0 !important; }
.jb-pages { margin-top: 32px; font-size: 15px; font-weight: 600; }
.jb-pages a { color: var(--wp--preset--color--green); text-decoration: none; }
.jb-pages .page-numbers.current { color: var(--wp--preset--color--ink); }
.jb-pages .wp-block-query-pagination-numbers { display: flex; gap: 14px; }
