:root {
    --bg: #f4f8f1;
    --surface: #ffffff;
    --text: #152015;
    --muted: #60715c;
    --brand: #07551f;
    --brand-strong: #043d16;
    --brand-soft: #e7f3df;
    --accent: #a31912;
    --accent-soft: #fff0ed;
    --gold: #d6a22a;
    --border: #d5e2ce;
    --danger: #a31912;
    --success: #07551f;
    --shadow: 0 18px 45px rgba(7, 85, 31, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: var(--brand); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--text);
    color: #fff;
    padding: 10px 14px;
    z-index: 100;
}

.skip-link:focus { left: 8px; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
    padding: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 700;
}

.nav-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
}

.nav-toggle { display: none; }

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 34px auto auto 0;
    width: 92px;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--accent));
    border-radius: 999px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.02;
    margin: 0 0 18px;
    max-width: 820px;
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-panel, .panel, .auth-card, .job-card, .stat-card, .report-card, .grid-3 article, .notification-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
    display: grid;
    gap: 18px;
}

.hero-visual {
    display: grid;
    gap: 16px;
}

.hero-visual img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 20px 24px rgba(7, 85, 31, 0.12));
}

.hero-panel div, .stat-card {
    padding: 20px;
    border-radius: 8px;
    background: var(--brand-soft);
}

.hero-panel strong, .stat-card strong {
    display: block;
    font-size: 2.2rem;
    color: var(--brand-strong);
}

.hero-panel span, .stat-card span { color: var(--muted); }

.button {
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover, .button:focus { background: var(--brand-strong); }
.button.secondary { background: var(--brand-soft); color: var(--brand-strong); }
.button.danger { background: var(--danger); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 0.9rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.section { margin-top: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-3 article { padding: 24px; }

.page-heading, .dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-heading h1, .dashboard-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
}

.page-heading p, .dashboard-header p { color: var(--muted); }

.auth-card {
    max-width: 520px;
    margin: 30px auto;
    padding: 28px;
}

.auth-card.large { max-width: 860px; }

.panel {
    padding: 24px;
    margin-bottom: 22px;
}

.form {
    display: grid;
    gap: 16px;
}

.wide { max-width: 100%; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

textarea { min-height: 110px; resize: vertical; }

.inline-form {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.inline-form.compact {
    align-items: center;
    gap: 6px;
}

.search-bar {
    display: flex;
    gap: 8px;
    min-width: min(520px, 100%);
}

.alert {
    max-width: 1180px;
    margin: 16px auto;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.alert.success, .status.success { color: var(--success); background: #ecfdf3; }
.alert.error { color: var(--danger); background: #fef3f2; }

.job-list { display: grid; gap: 16px; }
.job-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 18px;
    padding: 24px;
}

.job-card h2 { margin-top: 0; }

.meta, .details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

dt { color: var(--muted); font-weight: 800; }
dd { margin: 0; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--brand-soft);
    color: var(--brand-strong);
    cursor: pointer;
}

.pill {
    display: inline-flex;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 9px;
    font-weight: 800;
    font-size: 0.82rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.action-stack {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    box-shadow: none;
}

.notification-item.unread {
    border-left: 5px solid var(--accent);
    background: var(--accent-soft);
}

.notification-item h2 {
    font-size: 1.02rem;
    margin: 0 0 4px;
}

.notification-item p {
    margin: 0;
    color: var(--muted);
}

.notification-item time {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.report-card { padding: 18px; box-shadow: none; }
.bar-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.empty { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Jobs page extras ─────────────────────────────────────── */
.job-count {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 14px;
}

.job-meta-line {
    color: var(--muted);
    margin: 4px 0 10px;
    font-size: 1rem;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.apply-cta {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px 0;
}

.muted-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
    font-style: italic;
}

/* ── Password Strength Meter ──────────────────────────────── */
.password-strength, .strength-wrap {
    margin-top: 8px;
    margin-bottom: 12px;
    display: grid;
    gap: 6px;
}

.strength-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.strength-track {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    padding: 24px 16px;
}

.high-contrast {
    --bg: #000;
    --surface: #111;
    --text: #fff;
    --muted: #e5e7eb;
    --brand: #facc15;
    --brand-strong: #fde047;
    --border: #fff;
}

.high-contrast .button { color: #000; }

@media (max-width: 900px) {
    .hero, .job-card, .dashboard-grid { grid-template-columns: 1fr; }
    .grid-3, .stat-grid, .report-grid { grid-template-columns: repeat(2, 1fr); }
    .page-heading, .dashboard-header { align-items: stretch; flex-direction: column; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    main { width: min(100% - 24px, 1180px); padding-top: 18px; }
    .nav { min-height: 64px; }
    .nav-toggle {
        display: inline-flex;
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 8px;
        padding: 9px 12px;
    }
    .nav-links {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 64px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links.open { display: flex; }
    .form-grid, .grid-3, .stat-grid, .report-grid, .meta, .details, .filters { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding: 28px 0; }
    .hero h1 { font-size: 2.35rem; }
    .search-bar, .inline-form { flex-direction: column; align-items: stretch; }
    .notification-item { flex-direction: column; }
    .panel, .auth-card, .job-card { padding: 18px; }
}
