/* ============================================================
   MedCoding Careers — Design tokens
   Palette:  paper #F7F5F0 · ink #1B2A41 · text #22201C
             verified teal #2F6E68 · stamp amber #D98E3F
   Type:     display = 'Roboto Slab' (ledger/document feel)
             body = 'Inter'
             mono = 'Roboto Mono' (certification & code tags)
   Signature: job cards styled like superbill line-items, with
   monospace "claim code" tags for certs/remote/salary.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500;700&family=Inter:wght@400;500;600&family=Roboto+Mono:wght@500;600&display=swap');

:root {
    --paper: #F7F5F0;
    --paper-line: #E4E0D6;
    --ink: #1B2A41;
    --text: #22201C;
    --text-muted: #5B5A54;
    --teal: #2F6E68;
    --teal-bg: #E6EFEC;
    --amber: #D98E3F;
    --amber-dark: #B9701F;
    --white: #FFFFFF;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(27,42,65,0.07), 0 4px 14px rgba(27,42,65,0.06);
    --shadow-hover: 0 6px 20px rgba(27,42,65,0.12), 0 2px 6px rgba(27,42,65,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: 'Roboto Slab', serif;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--ink);
    border-bottom: 3px solid var(--amber);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.site-header .logo {
    color: var(--white);
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.3rem;
}
.site-header .logo span { color: var(--amber); }
.site-header nav a {
    color: #D8DEE8;
    margin-left: 24px;
    font-size: 0.92rem;
    font-weight: 500;
}
.site-header nav a:hover { color: var(--white); text-decoration: none; }
.btn-header {
    background: var(--amber);
    color: var(--ink) !important;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    background: var(--white);
    border-bottom: 1px solid var(--paper-line);
    padding: 64px 0 48px;
}
.hero .eyebrow {
    font-family: 'Roboto Mono', monospace;
    color: var(--teal);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: block;
}
.hero h1 {
    font-size: 2.4rem;
    max-width: 700px;
}
.hero p.lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

/* ── Search bar ─────────────────────────────────────────── */
.search-bar {
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.search-bar input[type=text],
.search-bar select {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 11px 12px;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    background: var(--white);
    flex: 1;
    min-width: 160px;
}
.search-bar button {
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.search-bar button:hover { background: #142033; }

/* ── Job list ───────────────────────────────────────────── */
.job-list { padding: 40px 0 64px; }
.job-list h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-family:'Inter'; font-weight:600; margin-bottom: 20px;}

.job-card {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
}
.job-card:hover {
    border-left-color: var(--amber);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.job-card .job-title {
    font-family: 'Roboto Slab', serif;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.job-card .job-company {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tag svg { width: 11px; height: 11px; flex-shrink: 0; }
.tag-cert { background: var(--teal-bg); color: var(--teal); }
.tag-remote { background: #FBEEDF; color: var(--amber-dark); }
.tag-salary { background: #EFEFEA; color: var(--text-muted); }

/* ── Job list page layout (main column + sidebar) ─────────── */
.job-list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.job-list-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-family: 'Inter'; font-weight: 600; margin: 0 0 14px; }
.sidebar-post { display: block; padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post .sidebar-post-title { font-family: 'Roboto Slab', serif; color: var(--ink); font-size: 0.92rem; font-weight: 700; line-height: 1.35; margin-bottom: 3px; }
.sidebar-post .sidebar-post-date { color: var(--text-muted); font-size: 0.76rem; }
.sidebar-card:hover .sidebar-post-title { text-decoration: none; }
.trust-list { list-style: none; padding: 0; margin: 0; }
.trust-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; color: var(--text); line-height: 1.4; }
.trust-list li:last-child { margin-bottom: 0; }
.trust-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
@media (max-width: 860px) {
    .job-list-layout { grid-template-columns: 1fr; }
    .job-list-sidebar { position: static; }
}

/* ── Hero illustration ──────────────────────────────────── */
.hero-flex { display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.hero-text { flex: 1; min-width: 0; }
.hero-illustration { flex-shrink: 0; width: 220px; }
@media (max-width: 800px) {
    .hero-flex { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-illustration { display: none; }
}

/* ── Job detail page ────────────────────────────────────── */
.job-detail { background: var(--white); padding: 40px; border: 1px solid var(--paper-line); border-radius: var(--radius); margin: 40px 0; }
.job-detail h1 { font-size: 1.8rem; }
.job-detail .meta-line { color: var(--text-muted); margin-bottom: 20px; }
.job-detail .body-text { margin: 24px 0; }
.job-detail .body-text h2 { font-size: 1.35rem; margin-top: 32px; margin-bottom: 12px; }
.job-detail .body-text p { margin: 0 0 16px; }
.job-detail .body-text ul { margin: 0 0 16px; padding-left: 22px; }
.job-detail .body-text ul li { margin-bottom: 8px; }

.blog-body { margin: 24px 0; }
.blog-body h2 { font-size: 1.35rem; margin-top: 32px; margin-bottom: 12px; }
.blog-body p { margin: 0 0 16px; }
.blog-body ul { margin: 0 0 16px; padding-left: 22px; }
.blog-body ul li { margin-bottom: 8px; }
.apply-box { background: var(--paper); border: 1px dashed var(--teal); border-radius: var(--radius); padding: 20px; margin-top: 28px; }
.btn-apply {
    display: inline-block;
    background: var(--teal);
    color: var(--white) !important;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 10px;
}
.btn-apply:hover { background: #24544f; text-decoration: none; }

/* ── Forms (post a job, admin) ──────────────────────────── */
.form-page { max-width: 640px; margin: 40px auto; background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 36px; }
.form-page h1 { font-size: 1.6rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.form-group .hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=number], input[type=url], input[type=password], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--paper);
}
textarea { min-height: 160px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.btn-primary {
    background: var(--amber);
    color: var(--ink);
    border: none;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }
.price-note { background: var(--teal-bg); color: var(--teal); padding: 12px 14px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 20px; }
.error-box { background: #FBEAEA; color: #A33; border: 1px solid #E9C0C0; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.9rem; }
.success-box { background: var(--teal-bg); color: var(--teal); border: 1px solid #BFD9D3; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.9rem; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ── Post a Job banner ──────────────────────────────────── */
.post-job-banner {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-left: 4px solid var(--amber);
}
.post-job-banner-text strong {
    color: var(--white);
    font-family: 'Roboto Slab', serif;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 2px;
}
.post-job-banner-text span {
    color: #AEB8C7;
    font-size: 0.88rem;
}
.post-job-banner-btn {
    background: var(--amber);
    color: var(--ink) !important;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.post-job-banner-btn:hover {
    background: var(--amber-dark);
    color: var(--white) !important;
    text-decoration: none;
}
@media (max-width: 640px) {
    .post-job-banner { flex-direction: column; align-items: flex-start; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: #AEB8C7;
    padding: 32px 0;
    margin-top: 48px;
    font-size: 0.85rem;
}
.site-footer a { color: #D8DEE8; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.7rem; }
    .search-bar { flex-direction: column; }
    .site-header .container { flex-direction: column; gap: 10px; }
    .site-header nav a { margin: 0 10px; }
    .form-page, .job-detail { padding: 22px; margin: 20px auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}
