/*
Theme Name: Ajirafy
Theme URI: https://ajirafy.com
Author: Ajirafy
Author URI: https://ajirafy.com
Description: Ajirafy (Ajira for You) - Tanzania-focused recruitment theme with job listings (job_post CPT), ATS CV checker, candidate dashboard, AI application assistant hooks, alerts, feature toggles and monetization slots. WordPress 6.x / PHP 8.x ready.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: utumishi
Tags: recruitment, jobs, custom-post-type, block-styles, wide-blocks, accessibility-ready, translation-ready
*/

/* Palette variables are printed inline by the Customizer (inc/customizer.php),
   derived from the uploaded logo. Fallbacks below. */
:root {
  --up-primary: #1a56db;
  --up-primary-dark: #1442a8;
  --up-secondary: #111111;
  --up-accent: #1a56db;
  --up-ink: #111111;
  --up-body: #45505c;
  --up-bg: #ffffff;
  --up-surface: #ffffff;
  --up-line: #e3e8e6;
  --up-radius: 14px;
  --up-shadow: 0 10px 30px rgba(16, 21, 27, .08);
  --up-max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--up-body);
  background: var(--up-bg);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4, h5 { color: var(--up-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
a { color: var(--up-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--up-secondary); outline-offset: 2px; }

.up-container { width: 100%; max-width: var(--up-max); margin: 0 auto; padding: 0 20px; }
.up-grid { display: grid; gap: 22px; }
.up-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.up-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.up-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.up-section { padding: 56px 0; }
.up-muted { color: var(--up-body); }
.up-small { font-size: .85rem; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999; background: #fff;
  padding: 10px 16px; border-radius: 8px; width: auto; height: auto; clip: auto;
}

/* Buttons */
.up-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  background: var(--up-primary); color: #fff; text-decoration: none; font-size: .95rem;
}
.up-btn:hover { background: var(--up-primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.up-btn--secondary { background: var(--up-secondary); }
.up-btn--accent { background: var(--up-accent); color: var(--up-ink); }
.up-btn--ghost { background: transparent; color: var(--up-primary); border-color: var(--up-line); }
.up-apply-status { display: block; min-height: 1.6em; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--up-line); border-radius: 10px; background: var(--up-surface); color: var(--up-ink); font-size: .9rem; font-weight: 600; }
.up-apply-status:empty { display: none; }



.up-btn--ghost:hover { background: rgba(0,0,0,.04); color: var(--up-primary); }
.up-btn--block { width: 100%; }
.up-btn--sm { padding: 8px 14px; font-size: .85rem; }

/* Header */
.up-header { background: var(--up-surface); border-bottom: 1px solid var(--up-line); position: sticky; top: 0; z-index: 60; }
.up-header__inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.up-brand { display: flex; min-width: 0; align-items: center; gap: 10px; font-weight: 800; color: var(--up-ink); }
.up-brand img { max-height: 48px; width: auto; }
.up-brand__text{display:grid;min-width:0;line-height:1.15}.up-brand__text strong,.up-brand__text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.up-brand__text small{font-size:.68rem;font-weight:500;color:var(--up-body)}
.up-brand:hover { text-decoration: none; }
.up-nav { margin-left: auto; }
.up-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.up-nav a { color: var(--up-ink); font-weight: 500; font-size: .95rem; }
.up-nav .current-menu-item > a { color: var(--up-primary); }
.up-header__actions { display: flex; gap: 10px; align-items: center; }
.up-menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--up-line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.up-header__inner { flex-wrap: wrap; }
.up-nav { position:fixed;inset:0 auto 0 0;z-index:101;width:min(86vw,340px);margin:0;padding:76px 22px 24px;background:var(--up-surface);box-shadow:var(--up-shadow);transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto; }
.up-nav.is-open { transform:translateX(0); }
.up-nav ul { flex-direction: column; gap: 10px; }
.up-nav a{display:block;padding:9px 0}.up-menu-close{position:absolute;top:16px;right:16px;width:44px;height:44px;border:1px solid var(--up-line);border-radius:8px;background:var(--up-surface);font-size:1.6rem;cursor:pointer}.up-menu-backdrop{position:fixed;inset:0;z-index:100;background:rgba(16,21,27,.55)}.up-menu-open{overflow:hidden}
.up-nav__account{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--up-line)}
.up-header__actions .up-btn { padding: 8px 14px; font-size: .85rem; }
@media (min-width: 901px) {
  .up-menu-toggle { display: none; }
  .up-header__inner { flex-wrap: nowrap; }
  .up-nav { display: block; width: auto; margin-left: auto; order: 0; }
	.up-nav{position:static;padding:0;transform:none;overflow:visible;box-shadow:none}.up-menu-close,.up-menu-backdrop,.up-nav__account{display:none!important}.up-menu-open{overflow:auto}
  .up-nav ul { flex-direction: row; gap: 22px; }
}

/* Hero */
.up-hero { background: #111111; color: #fff; padding: 64px 0 76px; }
.up-hero h1 { color: #fff; }
.up-hero p.up-lead { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 640px; }
.up-hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.up-hero__stats div strong { display: block; font-size: 1.7rem; color: #fff; }
.up-hero__stats div span { color: rgba(255,255,255,.85); font-size: .85rem; }

/* Search bar */
.up-searchbar { background: var(--up-surface); border-radius: var(--up-radius); box-shadow: var(--up-shadow); padding: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; margin-top: 28px; }
.up-field { display: flex; flex-direction: column; gap: 6px; }
.up-field label { font-size: .78rem; font-weight: 600; color: var(--up-ink); text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=date], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--up-line); border-radius: 10px;
  background: #fff; font: inherit; color: var(--up-ink);
}
textarea { min-height: 120px; resize: vertical; }
input[type=file] { font: inherit; }

/* Cards */
.up-card { background: var(--up-surface); border: 1px solid var(--up-line); border-radius: var(--up-radius); padding: 22px; }
.up-card--pad-lg { padding: 28px; }
.up-job-card { display: flex; flex-direction: column; gap: 10px; transition: box-shadow .18s ease, transform .18s ease; }
.up-job-card:hover { box-shadow: var(--up-shadow); transform: translateY(-2px); }
.up-job-card h3 { margin: 0; font-size: 1.1rem; }
.up-job-card h3 a { color: var(--up-ink); }
.up-job-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--up-body); }
.up-job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.up-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.up-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(11,107,58,.09); color: var(--up-primary); }
.up-badge--secondary { background: rgba(30,155,215,.12); color: var(--up-secondary); }
.up-badge--accent { background: rgba(245,197,24,.2); color: #7a5c00; }
.up-badge--danger { background: rgba(200,40,40,.1); color: #b02525; }
.up-badge--featured { background: var(--up-accent); color: var(--up-ink); }

/* Layout with sidebar */
.up-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 901px) { .up-layout { grid-template-columns: 280px 1fr; gap: 28px; } }
@media (min-width: 901px) { .up-layout--content-sidebar { grid-template-columns: minmax(0,1fr) 320px; } }
.up-filters { position: static; margin-bottom: 22px; }
@media (min-width: 901px) { .up-filters { position: sticky; top: 90px; margin-bottom: 0; } }
.up-filters .up-field { margin-bottom: 14px; }

/* Job single */
.up-jobhead { background: var(--up-surface); border-bottom: 1px solid var(--up-line); padding: 34px 0; }
.up-apply-box { border: 2px solid var(--up-primary); border-radius: var(--up-radius); padding: 22px; background: var(--up-surface); }
.up-checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.up-checklist li { padding-left: 28px; position: relative; margin-bottom: 9px; }
.up-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--up-primary); font-weight: 700; }

/* Stats / dashboard */
.up-stat { background: var(--up-surface); border: 1px solid var(--up-line); border-radius: var(--up-radius); padding: 18px; }
.up-stat strong { display: block; font-size: 2rem; color: var(--up-ink); line-height: 1.1; }
.up-stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.up-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--up-line); margin-bottom: 22px; }
.up-tab { padding: 10px 16px; border: none; background: none; cursor: pointer; font-weight: 600; color: var(--up-body); border-bottom: 3px solid transparent; }
.up-tab.is-active { color: var(--up-primary); border-bottom-color: var(--up-primary); }
.up-tabpanel[hidden] { display: none; }
.up-table { width: 100%; border-collapse: collapse; }
.up-table th, .up-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--up-line); font-size: .92rem; }
.up-table th { color: var(--up-ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* Score meter */
.up-score { display: flex; align-items: center; gap: 18px; }
.up-score__ring {
  --val: 0; width: 116px; height: 116px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--up-score-color, var(--up-primary)) calc(var(--val) * 1%), #e9edeb 0);
  display: grid; place-items: center; position: relative;
}
.up-score__ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--up-surface); }
.up-score__num { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 800; color: var(--up-ink); }
.up-bar { height: 8px; border-radius: 999px; background: #e9edeb; overflow: hidden; }
.up-bar > i { display: block; height: 100%; background: var(--up-primary); }
.is-good { --up-score-color: #1a9d55; }
.is-warn { --up-score-color: #e0a106; }
.is-bad  { --up-score-color: #cf3a3a; }
.up-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.up-dot.is-good { background: #1a9d55; } .up-dot.is-warn { background: #e0a106; } .up-dot.is-bad { background: #cf3a3a; }

/* Notices */
.up-notice { padding: 13px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--up-line); background: #fff; }
.up-notice--success { border-color: #b6e2c8; background: #e8efff; color: #14603a; }
.up-notice--error { border-color: #f2c2c2; background: #fdeeee; color: #96271f; }
.up-notice--info { border-color: #c6e2f2; background: #eef7fd; color: #1a5f85; }

/* Ads */
.up-ad { border: 1px dashed var(--up-line); border-radius: var(--up-radius); padding: 18px; text-align: center; background: var(--up-surface); color: var(--up-body); font-size: .85rem; }

/* Prose */
.up-prose h2, .up-prose h3 { margin-top: 1.4em; }
.up-prose ul, .up-prose ol { padding-left: 22px; }
.up-prose img { border-radius: var(--up-radius); }
.up-prose blockquote { border-left: 4px solid var(--up-primary); margin: 1.4em 0; padding: 4px 0 4px 18px; color: var(--up-ink); }

/* Footer */
.up-footer { background: var(--up-ink); color: rgba(255,255,255,.75); margin-top: 60px; padding: 52px 0 26px; }
.up-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.up-footer a { color: rgba(255,255,255,.75); }
.up-footer a:hover { color: #fff; }
.up-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.up-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.up-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .18s ease, transform .18s ease;
}
.up-social a:hover { background: var(--up-primary); transform: translateY(-2px); }
.up-social svg { width: 20px; height: 20px; fill: currentColor; }
.up-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.up-legal-nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px;font-size:.82rem}

/* Pagination */
.up-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.up-pagination .page-numbers { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--up-line); background: #fff; }
.up-pagination .page-numbers.current { background: var(--up-primary); color: #fff; border-color: var(--up-primary); }

/* Auth forms */
.up-auth { max-width: 460px; margin: 48px auto; }
.up-auth .up-field { margin-bottom: 14px; }

/* WP core alignment/gallery support */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--up-body); }
.sticky, .bypostauthor { display: block; }

/* ==========================================================================
   Mobile-first corrections
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, iframe, canvas { max-width: 100%; height: auto; }
pre, code { white-space: pre-wrap; word-break: break-word; }
a, p, li, h1, h2, h3, h4, td, th { overflow-wrap: anywhere; }

/* Tables never force the page wider than the screen. */
.up-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 720px) { .up-table { display: table; } }

/* Collapsible filter panel: phone-first, always open from tablet up. */
.up-filters__toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: var(--up-surface); border: 1px solid var(--up-line); border-radius: 12px;
  padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--up-ink);
}
.up-filters__body { display: none; margin-top: 14px; }
.up-filters.is-open .up-filters__body { display: block; }
@media (min-width: 901px) {
  .up-filters__toggle { display: none; }
  .up-filters__body { display: block; margin-top: 0; }
}

/* Phone-first sizing: base values are the small-screen values. */
.up-grid, .up-grid-2, .up-grid-3, .up-grid-4 { grid-template-columns: 1fr; gap: 14px; }
.up-container { padding-left: 16px; padding-right: 16px; }
.up-hero { padding: 40px 0 46px; }
.up-hero h1 { font-size: 1.7rem; }
.up-hero__stats { gap: 18px; }
.up-searchbar { grid-template-columns: 1fr; padding: 14px; }
.up-card, .up-card--pad-lg { padding: 18px; }
.up-section { padding: 32px 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
.up-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
.up-tab { white-space: nowrap; }
.up-header__actions { gap: 6px; }
.up-header__actions .up-btn { padding: 7px 10px; font-size: .8rem; }
.up-brand img { max-height: 38px; }
.up-header__inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.up-header__actions{display:none}.up-brand__text strong{font-size:.9rem}

/* Comfortable tap targets and no iOS zoom-on-focus. */
.up-btn, .up-tab, button, input[type=submit] { min-height: 44px; }
input, select, textarea { font-size: 16px; }

@media (min-width: 641px) {
  .up-grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .up-grid-3, .up-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .up-container { padding-left: 20px; padding-right: 20px; }
  .up-searchbar { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 16px; }
  .up-card { padding: 22px; }
  .up-card--pad-lg { padding: 28px; }
  .up-hero { padding: 56px 0 64px; }
  .up-section { padding: 48px 0; }
  .up-header__actions .up-btn { padding: 10px 16px; font-size: .9rem; }
  .up-brand img { max-height: 48px; }
	.up-header__inner{display:flex}
}
@media (min-width: 901px) {
	.up-header__actions{display:flex;width:auto}
  .up-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .up-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .up-hero { padding: 64px 0 76px; }
  .up-hero h1 { font-size: 2.4rem; }
  .up-hero__stats { gap: 28px; }
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.up-nav,.up-btn,.up-job-card,.up-social a{transition:none}}

/* Google sign-in button */
.up-btn--google{background:#fff;color:#1f2937;border:1px solid #dadce0;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;font-weight:600}
.up-btn--google:hover{background:#f7f8f8;color:#111}
.up-google-g{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#4285f4 0 25%,#ea4335 25% 50%,#fbbc05 50% 75%,#34a853 75% 100%);color:#fff;font-weight:800;font-size:.8rem;line-height:1}
.up-google-card{border:1px solid rgba(20,154,63,.25)}

/* ============ ATS report (strict scan results) ============ */
.up-report{display:grid;gap:18px}
.up-report__hero{display:grid;gap:16px;align-items:center;padding:22px;border-radius:18px;background:#fff;border:1px solid rgba(16,21,27,.08)}
.up-report__hero h2{margin:.2em 0}
.up-pill{display:inline-block;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:rgba(31,132,184,.12);color:var(--up-secondary)}
.up-score__ring{position:relative;width:120px;height:120px;border-radius:50%;display:grid;place-content:center;text-align:center;
	background:conic-gradient(currentColor calc(var(--val)*1%),rgba(16,21,27,.08) 0)}
.up-score__ring::after{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}
.up-score__num,.up-score__band{position:relative;z-index:1;color:var(--up-ink)}
.up-score__num{font-size:1.5rem;font-weight:800}
.up-score__band{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}
.up-band-optimal{color:#149a3f}
.up-band-safe{color:#1f84b8}
.up-band-risk{color:#d98200}
.up-band-fail{color:#c0392b}
.up-report__stats{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}
.up-stat{background:#fff;border:1px solid rgba(16,21,27,.08);border-top:3px solid currentColor;border-radius:14px;padding:14px}
.up-stat__label{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:rgba(16,21,27,.6)}
.up-stat__value{font-size:1.5rem}
.up-bandtable{display:grid;gap:8px;margin-top:12px}
.up-bandtable__row{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:rgba(16,21,27,.03);border:1px solid var(--up-line)}
.up-bandtable__row.is-current{background:rgba(16,21,27,.07);box-shadow:0 0 0 1px currentColor inset}
.up-bandtable__range{font-weight:700}
.up-bandtable__status{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}
.up-bandtable__meaning{color:var(--up-ink);font-size:.86rem}
.up-bar__label{display:flex;justify-content:space-between;margin:.6em 0 .25em}
.up-bar>i.up-band-optimal,.up-bar>i.up-band-safe,.up-bar>i.up-band-risk,.up-bar>i.up-band-fail{background:currentColor}
.up-chips{display:flex;flex-wrap:wrap;gap:8px}
.up-chip{font-size:.75rem;padding:5px 10px;border-radius:999px;background:rgba(16,21,27,.06)}
.up-chip.is-good{background:rgba(20,154,63,.12);color:#0f7530}
.up-chip.is-bad{background:rgba(192,57,43,.1);color:#a4322a}
.up-signals{display:grid;gap:10px;margin-top:12px}
.up-signal{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:12px;background:rgba(20,154,63,.07)}
.up-signal.is-bad{background:rgba(192,57,43,.07)}
.up-signal span.up-small{display:block;color:rgba(16,21,27,.7)}
.up-reco{background:rgba(16,21,27,.03);border-radius:14px;padding:14px}
.up-crosslist{list-style:none;padding:0;margin:0}
.up-crosslist li{position:relative;padding-left:22px;margin:.45em 0}
.up-crosslist li::before{content:"×";position:absolute;left:4px;color:#c0392b;font-weight:700}
.up-gaps{display:grid;gap:12px;margin-top:12px}
.up-gap{padding:14px;border-radius:14px;background:rgba(245,197,24,.12);border:1px solid rgba(245,197,24,.35)}
.up-report__cta{padding:22px;border-radius:18px;background:var(--up-ink);color:#fff}
.up-report__cta h3,.up-report__cta p{color:#fff}
@media (min-width:640px){
	.up-report__stats{grid-template-columns:repeat(4,1fr)}
	.up-signals{grid-template-columns:repeat(2,1fr)}
	.up-gaps{grid-template-columns:repeat(2,1fr)}
	.up-bandtable__row{grid-template-columns:120px 110px 1fr;align-items:center}
}
@media (min-width:900px){
	.up-report__hero{grid-template-columns:1fr auto}
	.up-signals{grid-template-columns:repeat(3,1fr)}
}

/* ============ CV checker page layout ============ */
.up-cvpage__head { max-width: 760px; }
.up-cvpage__head h1 { margin: 10px 0 8px; }
.up-cvpage__head p { margin: 0; }
.up-cvpage__grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; align-items: start; }
.up-cvform { display: grid; gap: 14px; align-content: start; }
.up-cvform .up-field { margin: 0; }
.up-cvform input[type=file] { width: 100%; }
.up-cvpage__result { min-width: 0; }
.up-cvintro { display: grid; gap: 6px; }
.up-cvintro__list { margin-top: 6px; }
.up-cvintro__cta { margin: 14px 0 0; }
.up-cvintro__cta .up-btn { width: 100%; text-align: center; }
@media (min-width: 900px) {
  .up-cvpage__grid { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 28px; }
  .up-cvform { position: sticky; top: 90px; }
  .up-cvintro__cta .up-btn { width: auto; }
}

/* ============ ATS report polish ============ */
.up-report { gap: 16px; }
.up-report .up-card { min-width: 0; }
.up-report h3 { margin: 0 0 4px; }
.up-report h4 { margin: 0 0 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(16,21,27,.65); }
.up-report__hero { padding: 20px; gap: 18px; justify-items: center; text-align: center; }
.up-report__hero h2 { font-size: 1.5rem; }
.up-report__hero p { margin: 0; }
.up-report__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
.up-stat { text-align: center; }
.up-stat__value { display: block; margin-top: 4px; color: currentColor; }
.up-bandtable__meaning { color: rgba(16,21,27,.72); }
.up-report .up-grid-2 { grid-template-columns: minmax(0,1fr); gap: 24px; }
.up-report .up-grid-3 { grid-template-columns: minmax(0,1fr); gap: 14px; }
.up-report .up-bar { margin-bottom: 10px; }
.up-report .up-bar__label { font-weight: 600; color: rgba(16,21,27,.75); }
.up-signal { min-width: 0; }
.up-signal strong { display: block; font-size: .9rem; line-height: 1.25; }
.up-dot { width: 9px; height: 9px; border-radius: 50%; background: #1a9d55; margin-top: 6px; flex: 0 0 auto; }
.up-dot.is-bad { background: #c0392b; }
.up-reco { padding: 16px; }
.up-reco h5 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(16,21,27,.6); }
.up-reco ul { margin: 0; padding-left: 18px; }
.up-reco li { margin: .4em 0; }
.up-gap strong { display: block; margin-bottom: 4px; }
.up-report__cta { display: grid; gap: 12px; justify-items: start; padding: 24px; }
.up-report__cta .up-btn { margin: 0; }
@media (min-width: 700px) {
  .up-report__stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .up-report .up-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .up-report .up-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
  .up-report__hero { grid-template-columns: minmax(0,1fr) auto; text-align: left; justify-items: stretch; padding: 26px; }
  .up-report__hero .up-score__ring { width: 132px; height: 132px; }
}


/* ==========================================================================
   v1.0.8 - professional, compact redesign
   ========================================================================== */
h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
h3 { font-size: 1.05rem; }
.up-section { padding: 36px 0; }
.up-page-title { margin-bottom: 4px; }

/* Hero: smaller, search visible without scrolling */
.up-hero { padding: 34px 0 30px; }
.up-hero h1 { font-size: clamp(1.35rem, 3.4vw, 2.1rem); max-width: 760px; }
.up-hero p.up-lead { font-size: .98rem; margin-bottom: 0; }
.up-hero__stats { margin-top: 18px; gap: 22px; }
.up-hero__stats div strong { font-size: 1.3rem; }

/* Compact search / filter bar: one row on desktop, two rows on phones */
.up-searchbar--compact { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; padding: 8px; margin-top: 18px; align-items: center; border-radius: 12px; }
.up-searchbar--compact .up-field { margin: 0; }
.up-searchbar--compact .up-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.up-searchbar--compact input, .up-searchbar--compact select { height: 42px; padding: 0 12px; font-size: .92rem; border-radius: 8px; }
.up-searchbar--compact .up-btn { height: 42px; padding: 0 20px; border-radius: 8px; }
.up-searchbar--light { box-shadow: none; border: 1px solid var(--up-line); }
@media (max-width: 700px) {
  .up-searchbar--compact { grid-template-columns: 1fr 1fr; }
  .up-searchbar--compact .up-field--kw { grid-column: 1 / -1; }
  .up-searchbar--compact .up-btn { grid-column: 1 / -1; }
}

/* Open / Expired tabs */
.up-tabs-inline { display: flex; gap: 6px; margin-top: 14px; border-bottom: 1px solid var(--up-line); }
.up-tabs-inline a { padding: 9px 14px; font-size: .9rem; font-weight: 600; color: var(--up-body); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.up-tabs-inline a.is-active { color: var(--up-primary); border-bottom-color: var(--up-primary); }

/* Job rows (listing style) */
.up-joblist { display: grid; gap: 10px; }
@media (min-width: 1100px) { .up-section .up-container > .up-joblist { grid-template-columns: 1fr 1fr; } }
.up-jobrow { display: flex; gap: 14px; align-items: flex-start; background: var(--up-surface); border: 1px solid var(--up-line); border-radius: 12px; padding: 14px; transition: box-shadow .15s ease, border-color .15s ease; }
.up-jobrow:hover { border-color: rgba(20,154,63,.35); box-shadow: 0 6px 18px rgba(16,21,27,.06); }
.up-jobrow__logo { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(31,132,184,.1); color: var(--up-secondary); font-weight: 800; font-size: .95rem; border: 1px solid var(--up-line); }
.up-jobrow__logo img { width: 100%; height: 100%; object-fit: cover; }
.up-jobrow__main { min-width: 0; flex: 1; }
.up-jobrow__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.up-jobrow__title a { color: var(--up-ink); }
.up-jobrow__title a:hover { color: var(--up-primary); }
.up-jobrow__employer { margin: 2px 0 8px; font-size: .85rem; color: var(--up-body); }
.up-jobrow__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.up-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--up-bg); border: 1px solid var(--up-line); font-size: .74rem; font-weight: 600; color: var(--up-ink); }
.up-pill--featured { background: var(--up-accent); border-color: var(--up-accent); color: var(--up-ink); }
.up-pill--deadline { background: rgba(31,132,184,.08); border-color: rgba(31,132,184,.25); color: #155f86; }
.up-pill--closed { background: #f1f2f3; color: #5b6570; }
.up-jobrow__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .8rem; color: var(--up-body); }
.up-jobrow__foot span:first-child { color: var(--up-primary); font-weight: 700; }
.up-jobrow__cta { margin-left: auto; font-weight: 700; font-size: .85rem; }
.up-jobrow.is-expired { opacity: .85; }
.up-jobrow.is-expired .up-jobrow__logo { filter: grayscale(1); }

/* Sidebar below the list on phones */
.up-filters__body--open { display: block !important; margin-top: 0; }
@media (max-width: 900px) { .up-layout > .up-filters { order: 2; } }

/* CV results: neutral professional cards, no single-side colour bars */
.up-report .up-card, .up-gap, .up-notice { border-left-width: 1px !important; }

/* Footer: headings clearly distinct, group spacing larger than link spacing */
.up-footer { padding: 44px 0 22px; font-size: .9rem; }
.up-footer .up-grid-4 { row-gap: 34px; column-gap: 28px; }
.up-footer h4 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--up-accent); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.up-footer ul { gap: 6px; }
.up-footer ul a { font-size: .88rem; font-weight: 400; }
.up-footer .up-small { font-size: .85rem; line-height: 1.6; }
@media (max-width: 700px) { .up-footer .up-grid-4 > div + div { margin-top: 4px; } }
.up-gap { background: var(--up-surface); border: 1px solid var(--up-line); }
.up-gap strong { color: var(--up-ink); font-size: .92rem; }
.up-report__hero h2 { font-size: 1.25rem; }
.up-report__cta { background: #111111; }

/* Password reset page (v1.0.8) */
.up-reset { display: flex; justify-content: center; padding: 24px 0 48px; }
.up-reset__card { width: 100%; max-width: 440px; padding: 32px 28px; text-align: left; border-top: 4px solid var(--up-primary); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.up-reset__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e8efff; color: var(--up-primary); margin-bottom: 14px; }
.up-reset__title { font-size: 1.35rem; margin: 0 0 6px; }
.up-reset__lead { color: #5b6470; margin: 0 0 18px; font-size: .95rem; }
.up-reset__hint { margin: -4px 0 14px; color: #5b6470; }
.up-reset .up-field { margin-bottom: 14px; }

/* ===== Ajirafy brand (v1.1.0): light + black surfaces, blue buttons, no gradients ===== */
.up-brand img { border-radius: 50%; }
.up-logo-dark { display: none; }
.up-footer .up-logo-light { display: none; }
.up-footer .up-logo-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root { --up-bg: #0b0b0b; --up-surface: #161616; --up-ink: #f5f5f5; --up-body: #c9c9c9; --up-line: #2a2a2a; }
  body { background: var(--up-bg); color: var(--up-body); }
  .up-header { background: #111111; border-color: #2a2a2a; }
  .up-header .up-logo-light { display: none; }
  .up-header .up-logo-dark { display: inline-block; }
  .up-hero { background: #000000; }
}

/* ===== v1.1.1: header, uniform job cards, stacked CV checker, balanced cards, full dark mode ===== */

/* Header: small round logo, then name + tagline on two lines, menu button on the right */
.up-header__inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.up-brand { flex: 0 1 auto; gap: 10px; }
.up-brand__mark { flex: 0 0 auto; display: inline-flex; width: 38px; height: 38px; }
.up-brand__mark img, .up-brand img { width: 38px !important; height: 38px !important; max-height: none; object-fit: cover; border-radius: 50%; }
.up-brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.12; }
.up-brand__text strong { font-size: 1.08rem; font-weight: 800; color: var(--up-ink); letter-spacing: -.01em; }
.up-brand__text small { font-size: .72rem; font-weight: 500; color: var(--up-body); }
.up-menu-toggle { margin-left: auto; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; color: var(--up-ink); background: transparent; border: 1px solid var(--up-line); border-radius: 10px; }
.up-menu-toggle svg { display: block; }
@media (min-width: 900px) {
  .up-brand__mark, .up-brand__mark img, .up-brand img { width: 42px !important; height: 42px !important; }
  .up-brand__text strong { font-size: 1.2rem; }
  .up-brand__text small { font-size: .78rem; }
  .up-nav { margin-left: auto; }
}
@media (max-width: 899px) { .up-header__inner { display: flex; } }

/* Job cards: same size everywhere, title max 2 lines, small one-line meta with "..." */
.up-jobrow { height: 100%; min-height: 150px; overflow: hidden; }
.up-jobrow__main { display: flex; flex-direction: column; min-width: 0; }
.up-jobrow__title { font-size: .98rem; line-height: 1.32; min-height: 2.64em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-jobrow__employer { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-jobrow__pills { flex-wrap: nowrap; overflow: hidden; }
.up-jobrow__pills .up-pill { font-size: .7rem; max-width: 46%; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-jobrow__foot { flex-wrap: nowrap; margin-top: auto; padding-top: 10px; font-size: .76rem; min-width: 0; }
.up-jobrow__foot > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.up-jobrow__cta { flex: 0 0 auto; }
.up-jobs-list, .up-joblist { align-items: stretch; }

/* CV checker: upload panel on top, full-width report below (no empty column) */
.up-cvpage__grid, .up-cvpage__grid[class] { grid-template-columns: 1fr !important; gap: 20px; }
.up-cvform { position: static !important; }
@media (min-width: 900px) {
  .up-cvform { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 16px; }
  .up-cvform > *:not(.up-field):not(button):not(.up-btn) { grid-column: 1 / -1; }
}

/* CV report cards: even 1px border on all sides, no heavy coloured edge */
.up-stat, .up-report .up-stat { border: 1px solid var(--up-line) !important; border-top-width: 1px !important; background: var(--up-surface); }
.up-report .up-card, .up-gap, .up-notice, .up-signal { border-width: 1px !important; }

/* ---- Dark mode (phones and computers set to dark) ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --up-bg: #0b0b0c; --up-surface: #151517; --up-ink: #f5f5f7; --up-body: #c4c7cc; --up-line: #2c2d31;
    --up-primary: #4c8dff; --up-primary-dark: #2f6fe6; --up-accent: #4c8dff;
    --up-shadow: 0 10px 30px rgba(0,0,0,.45);
  }
  html, body { background: var(--up-bg) !important; color: var(--up-body); }
  h1, h2, h3, h4, h5, h6, strong, b, label, legend, th, dt { color: var(--up-ink); }
  a { color: #7fb0ff; }
  .up-header, .up-nav, .up-menu-close { background: #111113; border-color: var(--up-line); color: var(--up-ink); }
  .up-nav a { color: var(--up-ink); }
  .up-menu-toggle { color: #ffffff; border-color: #3a3b40; }
  .up-header .up-logo-light { display: none; }
  .up-header .up-logo-dark { display: inline-block; }
  .up-card, .up-stat, .up-gap, .up-jobrow, .up-report__hero, .up-notice, .up-pagination .page-numbers, .up-reset__card, .up-filters, .widget { background: var(--up-surface) !important; border-color: var(--up-line) !important; color: var(--up-body); }
  input, select, textarea, .up-input { background: #1d1e22 !important; color: #ffffff !important; border-color: #3a3b40 !important; }
  input::placeholder, textarea::placeholder { color: #8b8f97; }
  input[type=file]::file-selector-button { background: #2a2b30; color: #fff; border: 1px solid #3a3b40; }
  .up-btn { color: #ffffff; }
  .up-btn--ghost { background: transparent; color: var(--up-ink); border-color: #3a3b40; }
  .up-small, .up-muted, .up-stat__label, .up-signal span.up-small, .up-report .up-bar__label, .up-jobrow__employer, .up-jobrow__foot { color: #a9adb4 !important; }
  .up-jobrow__title a, .up-job-card h3 a, .up-stat strong, .up-gap strong { color: var(--up-ink) !important; }
  .up-jobrow__logo { background: #22252b; color: #dfe3ea; }
  .up-pill { background: #22242a; border-color: #34363c; color: #e4e6ea; }
  .up-pill--deadline { background: rgba(76,141,255,.16); border-color: rgba(76,141,255,.35); color: #a9c8ff; }
  .up-pill--closed { background: #2a2b2f; color: #b7bbc2; }
  .up-bar { background: #2c2e33; }
  .up-score__ring::after { background: var(--up-surface) !important; }
  .up-band-optimal { color: #3ddc84; } .up-band-safe { color: #6aa8ff; } .up-band-risk { color: #ffb347; } .up-band-fail { color: #ff7a6b; }
  .up-signal { background: rgba(61,220,132,.10) !important; }
  .up-signal.is-bad { background: rgba(255,122,107,.12) !important; }
  .up-bandtable__row { color: var(--up-body); }
  .up-bandtable__row.is-current { background: rgba(255,255,255,.06); }
  .up-notice--success { background: rgba(61,220,132,.12) !important; color: #b8f5d0; border-color: rgba(61,220,132,.35) !important; }
  .up-notice--error { background: rgba(255,122,107,.12) !important; color: #ffc9c1; border-color: rgba(255,122,107,.35) !important; }
  .up-notice--info, .up-notice--warn { background: rgba(76,141,255,.12) !important; color: #cfe0ff; border-color: rgba(76,141,255,.35) !important; }
  .up-prose, .up-prose p, .up-prose li { color: var(--up-body); }
  .up-prose blockquote { color: var(--up-ink); }
  .up-reset__icon { background: rgba(76,141,255,.16); }
  .up-reset__lead, .up-reset__hint { color: #a9adb4; }
  .up-report__cta { background: #000000; border: 1px solid var(--up-line); }
  .skip-link { background: #111; color: #fff; }
  table, td { border-color: var(--up-line); }
  .up-report h4, .up-report h3, .up-report h2 { color: #d9dce1 !important; }
  .up-jobrow__foot span:first-child, .up-jobrow__cta { color: #8fbaff !important; }
  .up-scam-note { background: rgba(245,197,24,.12) !important; color: #ffe08a !important; border-color: rgba(245,197,24,.45) !important; }
}
.up-jobrow { height: 158px; min-height: 0; }
.up-jobrow__title a { display: inline; }
