/* Online Job Portal — design tokens
   Ink navy + jeepney yellow. One family (Archivo) using its width axis:
   expanded for headings, normal for reading. */
:root {
  --ink: #16213a;
  --ink-2: #2a3653;
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #dde2ea;
  --muted: #5a6476;
  --sun: #f4b400;
  --sun-soft: #fff4d1;
  --sun-ink: #2b2100;
  --sea: #0b7a75;
  --sea-soft: #e3f3f1;
  --rose: #b4361c;
  --rose-soft: #fbe9e4;
  --radius-s: 6px;
  --radius-m: 10px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 4px 16px rgba(22, 33, 58, .05);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper); font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

h1, h2, h3 { font-variation-settings: "wdth" 118; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
main { padding-block: 2rem 4rem; min-height: 60vh; }
main.flush { padding-top: 0; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink);
  font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.05rem; }
.brand-mark { width: 26px; height: 26px; background: var(--sun); border-radius: 6px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 7px 7px auto auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.nav { display: flex; gap: .25rem; align-items: center; flex: 1; flex-wrap: wrap; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); padding: .45rem .7rem; border-radius: var(--radius-s); font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav-end { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.nav-end form { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 650;
  padding: .62rem 1.1rem; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--sun); color: var(--sun-ink); }
.btn-primary:hover { background: #e3a700; color: var(--sun-ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--white); color: var(--rose); border-color: #efc9bf; }
.btn-danger:hover { background: var(--rose-soft); color: var(--rose); }
.btn-link { background: none; border: none; color: var(--sea); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.btn-sm { padding: .4rem .7rem; font-size: .875rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Hero (home) */
.hero { background: var(--ink); color: var(--white); padding: 3.5rem 0 3rem; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; font-variation-settings: "wdth" 125; }
.hero p { color: #c5ccdb; font-size: 1.1rem; }
.search-bar { display: grid; grid-template-columns: 1.4fr 1fr auto; background: var(--white); border-radius: var(--radius-m);
  padding: .4rem; gap: .4rem; margin-top: 1.75rem; max-width: 880px; }
.search-bar label { display: flex; flex-direction: column; padding: .35rem .8rem; border-radius: var(--radius-s); }
.search-bar label + label { border-left: 1px solid var(--line); }
.search-bar span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.search-bar input[type=search] { border: 0; outline: none !important; border-radius: 0; padding: .15rem 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; outline: none; }
.search-bar label:focus-within { background: var(--paper); }
.search-bar .btn { padding-inline: 1.6rem; font-size: 1.05rem; }
.hero-meta { margin-top: 1rem; color: #9aa4b8; font-size: .9rem; }
.hero-meta a { color: var(--sun); }

/* Sections */
.section { padding-block: 2.5rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .35rem 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip b { font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Job rows — the core pattern */
.job-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.job-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; padding: 1.1rem 1.25rem; align-items: center;
  border-top: 1px solid var(--line); color: inherit; text-decoration: none; position: relative; }
.job-row:first-child { border-top: 0; }
.job-row:hover { background: #fbfcfd; }
.job-row:hover .job-title { text-decoration: underline; }
.job-row.is-featured { box-shadow: inset 4px 0 0 var(--sun); }
.job-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0; }
.job-co { color: var(--muted); font-size: .92rem; margin-top: .1rem; }
.job-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.job-side { text-align: right; }
.job-pay { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-when { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.tag { font-size: .78rem; padding: .15rem .5rem; border-radius: 4px; background: var(--paper); color: var(--ink-2); font-weight: 550; }
.tag-sea { background: var(--sea-soft); color: var(--sea); }
.tag-sun { background: var(--sun-soft); color: #6b4e00; }
.tag-rose { background: var(--rose-soft); color: var(--rose); }

.logo { width: 48px; height: 48px; border-radius: 8px; background: var(--ink); color: var(--sun); display: grid; place-items: center;
  font-weight: 800; font-variation-settings: "wdth" 125; font-size: .95rem; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; background: var(--white); }
.logo-lg { width: 72px; height: 72px; font-size: 1.3rem; border-radius: 12px; }
.avatar { border-radius: 50%; background: var(--sea); color: var(--white); }

/* Board layout */
.board { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; align-items: start; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem; position: sticky; top: 80px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.filters legend { font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.check { display: flex; gap: .5rem; align-items: center; padding: .15rem 0; font-size: .95rem; cursor: pointer; }
.check input { width: 1rem; height: 1rem; accent-color: var(--ink); }
.board-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; margin-bottom: 1rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; gap: 1rem; flex-wrap: wrap; }

/* Forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; }
.card + .card { margin-top: 1.25rem; }
.card h2 { font-size: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.hint { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c9d0db; border-radius: var(--radius-s);
  padding: .6rem .7rem; width: 100%; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--sun); outline-offset: 0; }
input[type=file] { font: inherit; font-size: .9rem; }
.field-error { color: var(--rose); font-size: .85rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--rose); }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }

/* Alerts */
.alert { padding: .85rem 1rem; border-radius: var(--radius-s); margin-bottom: 1.25rem; border: 1px solid; }
.alert-ok { background: var(--sea-soft); border-color: #b8e0dc; color: #064e4b; }
.alert-err { background: var(--rose-soft); border-color: #f1c6bb; color: #7a2412; }
.alert-sun { background: var(--sun-soft); border-color: #f2dc93; color: #5a4100; }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* Auth */
.auth { max-width: 460px; margin: 1rem auto; }
.auth .card { padding: 2rem; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.role-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem;
  text-decoration: none; color: var(--ink); }
.role-card:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow); }
.role-card h2 { margin-bottom: .35rem; }
.role-card .role-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.3rem; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.2rem; }
.stat strong { display: block; font-size: 1.8rem; font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.meter { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; margin: .6rem 0 .3rem; }
.meter i { display: block; height: 100%; background: var(--sun); }
.meter.is-full i { background: var(--rose); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .82rem; color: var(--muted); font-weight: 650; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td .btn-row { justify-content: flex-end; flex-wrap: nowrap; }

/* Detail pages */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 1.75rem; align-items: start; }
.detail-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.prose { white-space: pre-line; max-width: var(--measure); }
.facts { margin: 0; display: grid; gap: .8rem; }
.facts div { display: grid; gap: .1rem; }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .8rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.timeline li:first-child { border-top: 0; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.6rem; display: flex; flex-direction: column; }
.plan.is-current { border: 2px solid var(--ink); }
.plan-price { font-size: 2.2rem; font-weight: 800; font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums; margin: .5rem 0 0; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0; flex: 1; }
.plan li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 12px; height: 7px; border-left: 2.5px solid var(--sea); border-bottom: 2.5px solid var(--sea); transform: rotate(-45deg); }
.plan li.off { color: #9aa2b1; text-decoration: line-through; }
.plan li.off::before { border-color: #c5cbd5; }

.empty { text-align: center; padding: 3rem 1.5rem; background: var(--white); border: 1px dashed #c9d0db; border-radius: var(--radius-m); }
.empty p { margin-inline: auto; }

/* Pagination */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); text-decoration: none; color: var(--ink); }
.pager .is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager .is-off { color: #a3abb8; }

.site-foot { border-top: 1px solid var(--line); background: var(--white); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

.lock { display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.lock-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sun-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .board, .dash, .detail { grid-template-columns: 1fr; }
  .filters { position: static; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .search-bar, .board-search { grid-template-columns: 1fr; }
  .search-bar label + label { border-left: 0; border-top: 1px solid var(--line); }
  .form-grid, .role-pick, .stat-row { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 40px 1fr; }
  .job-side { grid-column: 2; text-align: left; }
  .logo { width: 40px; height: 40px; }
  .site-head .wrap { gap: .5rem 1rem; padding-top: .5rem; }
  .nav { order: 3; flex: 1 1 100%; padding-bottom: .5rem; overflow-x: auto; flex-wrap: nowrap; }
}
