/*
Theme Name: Jobs.org.ua blog
Theme URI: https://jobs.org.ua/content/
Description: The blog at /content/ of Jobs.org.ua: the same look as the board (header, footer, colours, dark mode) without any file from the board's own app, so it keeps working when only WordPress runs on this host. No jQuery, no framework: this one stylesheet.
Author: Jobs.org.ua
Version: 2.0
Text Domain: jobs
*/

:root {
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bg: #f6f8fa; --surface: #ffffff; --text: #444444; --heading: #1f2a35; --muted: #5f6b76; --border: #e1e6eb;
  --primary: #1b4296; --primary-hover: #15357a; --tint: #e4ebf9; --tint-text: #1b4296;
  --radius: 0.5rem; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1419; --surface: #131c24; --text: #d7dee4; --heading: #eef3f7; --muted: #98a5b0; --border: #25313b;
    --primary: #86a8f2; --primary-hover: #aac3f6; --tint: #16224a; --tint-text: #bccdf7;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 1.5rem 0 0.75rem; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; margin-top: 0; }
h2 { font-size: 1.45rem; } h3 { font-size: 1.2rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }

/* Header: the board's (logo left, links, account at the right edge). */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.brand .dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .light { display: none; } .brand .dark { display: block; } }
.site-nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding-block: 0.35rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--primary); }
.site-nav .account { margin-left: auto; }
@media (max-width: 575px) {
  .brand img { height: 32px; }
  .site-nav { order: 3; width: 100%; font-size: 0.95rem; }
  .site-nav .account { margin-left: 0; }
}

main { padding-block: 1.75rem 3rem; }

/* Article list and posts. */
.post-card { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .post-card.has-image { grid-template-columns: 1fr 9rem; } }
.post-card h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.post-card h3 a { text-decoration: none; }
.post-card img { display: none; max-height: 7.5rem; width: auto; border-radius: var(--radius); justify-self: end; }
@media (min-width: 768px) { .post-card img { display: block; } }
.meta { color: var(--muted); font-size: 0.85rem; }
.meta a { color: inherit; }
.read-more { white-space: nowrap; }
.entry { max-width: 46rem; }
.entry p, .entry ul, .entry ol { margin: 0 0 1rem; }
.entry ul, .entry ol { padding-left: 1.4rem; }
.entry img, .entry iframe, .entry video { max-width: 100%; border-radius: var(--radius); }
.entry blockquote { margin: 1rem 0; padding: 0.25rem 1rem; border-left: 3px solid var(--primary); color: var(--muted); }
.entry table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; }
.entry .alignright { float: right; margin: 0 0 1rem 1rem; } .entry .alignleft { float: left; margin: 0 1rem 1rem 0; }
.entry .aligncenter { display: block; margin-inline: auto; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }

/* WP-PageNavi (functions.php turns it into a list). */
.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pagination .page-link { display: block; padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-size: 0.9rem; }
.pagination .active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Footer: the board's. */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 2rem; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer small { color: var(--muted); }
