/* AdminJobs.com.au — design system
   Navy + teal professional palette, white surfaces, generous whitespace. */

:root {
  --ink: #12233a;
  --ink-soft: #445a75;
  --muted: #6b7c92;
  --line: #e2e8f0;
  --line-strong: #cfd9e4;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --brand: #123c69;
  --brand-dark: #0d2c4e;
  --brand-soft: #e8f0f9;
  --accent: #0f9b8e;
  --accent-dark: #0b7c72;
  --accent-soft: #e6f7f4;
  --warn: #b45309;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --success: #067647;
  --success-soft: #ecfdf3;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 58, 0.06);
  --shadow: 0 8px 24px rgba(16, 35, 58, 0.08);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
small, .small { font-size: .85rem; }
code { background: var(--bg); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 620px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.main-nav a.is-active { color: var(--brand); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #fbd5d0; }
.btn-danger:hover { background: #fde3e0; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.inline-form { display: inline; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #f9fbfd 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero h1 { max-width: 22ch; margin-bottom: 16px; }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
  font-weight: 700; color: var(--accent-dark); margin-bottom: 12px;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--ink-soft); font-size: .92rem; }
.hero-points strong { color: var(--ink); }

/* ---------- search form ---------- */

.search-form {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  background: var(--surface); padding: 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 26px;
}
.search-form.compact { box-shadow: none; padding: 12px; margin-top: 18px; }
.search-field { display: flex; flex-direction: column; gap: 5px; min-width: 170px; }
.search-field.grow { flex: 1 1 260px; }
.search-field label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.search-form .btn { height: 44px; }

input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(18, 60, 105, .25); outline-offset: 1px; border-color: var(--brand);
}

/* ---------- layout sections ---------- */

.section { padding: 52px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .92rem; }
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lede { color: var(--ink-soft); max-width: 70ch; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

/* ---------- cards & grids ---------- */

.category-grid, .state-grid {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.category-grid a, .state-grid a {
  display: flex; flex-direction: column; gap: 3px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.category-grid a:hover, .state-grid a:hover {
  border-color: var(--brand); box-shadow: var(--shadow-sm); text-decoration: none; transform: translateY(-1px);
}
.cat-name, .state-name { font-weight: 650; color: var(--ink); }
.cat-count { font-size: .84rem; color: var(--muted); }
.cat-desc { font-size: .84rem; color: var(--ink-soft); }
.state-grid a { flex-direction: row; align-items: center; gap: 10px; }
.state-abbr {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--brand);
  background: var(--brand-soft); border-radius: 5px; padding: 3px 7px;
}
.category-group { margin-bottom: 40px; }
.category-grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.inline-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .92rem; }

/* ---------- job list ---------- */

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .15s ease, box-shadow .15s ease;
}
.job-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.job-card.featured { border-left: 4px solid var(--accent); }
.job-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a:hover { color: var(--brand); }
.job-meta { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.job-meta .company { color: var(--ink-soft); font-weight: 600; }
.job-meta .dot { margin: 0 6px; }
.job-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.tag {
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.tag-alt { background: var(--brand-soft); color: var(--brand); border-color: #d4e2f2; }
.tag-salary { background: var(--accent-soft); color: var(--accent-dark); border-color: #ccece6; }
.tag-featured { background: #fff7e6; color: var(--warn); border-color: #fbe2b0; }
.job-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.posted { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ---------- jobs layout ---------- */

.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 20px 60px; max-width: var(--max); margin: 0 auto; }
.filter-panel { position: sticky; top: 88px; align-self: start; }
.filter-block { margin-bottom: 20px; }
.filter-block h3 { font-size: .95rem; margin-bottom: 10px; }
.filter-block label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.filter-panel .btn { margin-top: 6px; }
.filter-links ul, .link-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.filter-links li, .link-list li { margin-bottom: 7px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: .82rem; color: var(--muted); }
.sort-form select { width: auto; padding: 7px 10px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.chips a {
  display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 5px 12px;
}
.chips a:hover { background: #dbe8f6; text-decoration: none; }

.pagination { display: flex; gap: 8px; align-items: center; margin: 26px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pagination .disabled { color: #b8c3d1; }
.pagination-note { border: 0; color: var(--muted); font-size: .85rem; }

/* ---------- job detail ---------- */

.job-detail { padding: 26px 20px 64px; max-width: var(--max); margin: 0 auto; }
.job-detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; margin-top: 18px; align-items: start; }
.job-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.job-head h1 { margin-bottom: 6px; }
.job-sub { color: var(--ink-soft); margin-bottom: 12px; }
.job-logo { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; flex-shrink: 0; }
.job-posted { color: var(--muted); font-size: .88rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.job-body section { margin-top: 28px; }
.job-body h2 { font-size: 1.2rem; margin-bottom: 10px; }

.apply-block { background: var(--brand-soft); border: 1px solid #d4e2f2; border-radius: var(--radius); padding: 22px; margin-top: 32px; }
.apply-block h2 { margin-top: 0; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }

.job-sidebar { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h2 { font-size: 1rem; margin-bottom: 12px; }
.card-cta { background: var(--bg); }
.overview { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .89rem; }
.overview dt { color: var(--muted); }
.overview dd { margin: 0; color: var(--ink); font-weight: 500; }
.related-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.related-list li { margin-bottom: 12px; display: flex; flex-direction: column; }
.related-list a { font-weight: 600; }

/* ---------- prose ---------- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #24374d; }
.prose .table { width: 100%; }
.small-print { margin-top: 40px; font-size: .93rem; color: var(--ink-soft); }
.pre-wrap { white-space: pre-wrap; font-family: inherit; background: var(--bg); padding: 14px; border-radius: 8px; }

/* ---------- forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 6px; }
legend { font-weight: 700; padding: 0 8px; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.notice { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: .93rem; border: 1px solid; }
.notice-success { background: var(--success-soft); border-color: #abefc6; color: var(--success); }
.notice-error { background: var(--danger-soft); border-color: #fbd5d0; color: var(--danger); }
.notice-info { background: var(--brand-soft); border-color: #d4e2f2; color: var(--brand); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn, .actions-cell form { margin-right: 6px; }
.message-cell { max-width: 420px; white-space: pre-wrap; }

.status { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.status-active { background: var(--success-soft); color: var(--success); }
.status-pending { background: #fff7e6; color: var(--warn); }
.status-paused { background: var(--bg); color: var(--muted); }
.status-expired { background: #f2f4f7; color: #667085; }
.status-rejected { background: var(--danger-soft); color: var(--danger); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 34px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: 1; }
.stat-label { font-size: .84rem; color: var(--muted); }

.admin-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .92rem; align-items: center; }
.admin-nav a { color: var(--ink-soft); font-weight: 600; }

/* ---------- pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 36px; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.price-card.popular { border-color: var(--brand); box-shadow: var(--shadow); }
.ribbon {
  position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.price { font-size: 2rem; font-weight: 700; color: var(--brand); margin: 0 0 6px; }
.price-period { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
.price-card .ticks { flex: 1; }

.ticks { list-style: none; padding: 0; margin: 14px 0; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: .92rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.faq dt { font-weight: 700; margin-top: 22px; }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); }
.resource-list { list-style: none; padding: 0; }
.resource-list li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.resource-list h2 { font-size: 1.15rem; margin-bottom: 4px; }
.resource-list p { margin: 0; color: var(--ink-soft); }

/* ---------- breadcrumbs ---------- */

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .84rem; color: var(--muted); }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: #c3cddb; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------- empty state ---------- */

.empty-state { text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 48px 24px; background: var(--bg); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 18px; }

/* ---------- footer ---------- */

.site-footer { background: #0f2740; color: #c9d6e4; padding: 52px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c9d6e4; }
.site-footer a:hover { color: #fff; }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; max-width: 42ch; color: #a9bcd0; }
.site-footer .muted { color: #8fa6bf; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: #8fa6bf; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .jobs-layout, .job-detail-grid, .two-col { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .header-actions .btn-ghost { display: none; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; }
  .job-card-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .hero { padding: 36px 0 32px; }
  .section { padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .price { font-size: 1.7rem; }
}

@media print {
  .site-header, .site-footer, .filter-panel, .job-sidebar, .apply-actions { display: none; }
  .job-detail-grid { grid-template-columns: 1fr; }
}
