/* RemoteSalt design system — tokens, base, layout, components. See docs/DESIGN_SYSTEM.md. */

:root {
  --ink: #0f1c17;
  --ink-2: #33423b;
  --muted: #5d6b64;
  --line: #e2e8e4;
  --line-2: #cfd8d3;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --brand: #0b6e4f;
  --brand-ink: #084c37;
  --brand-tint: #e7f3ee;
  --accent: #f2b33d;
  --accent-tint: #fff6e3;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --info-tint: #eaf2fb;
  --focus: #1a73e8;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.3rem + 3vw, 3.25rem);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 28, 23, .06), 0 4px 16px rgba(15, 28, 23, .05);
  --shadow-lg: 0 12px 40px rgba(15, 28, 23, .14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); font-weight: 750; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 1000; }
.skip-link:focus { top: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-tight { padding-block: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid var(--b); background: var(--b); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg); color: var(--ink); border-color: var(--muted); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); padding-inline: 10px; }
.btn-ghost:hover { background: var(--brand-tint); border-color: transparent; color: var(--brand-ink); }
.btn-danger { --b: var(--danger); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: var(--fs-lg); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.primary-nav { flex: 1; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 550; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .primary-nav, .header-actions { display: none; }
  .site-header.open .primary-nav, .site-header.open .header-actions { display: block; }
  .site-header.open .header-in { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.open .primary-nav { flex-basis: 100%; order: 3; }
  .site-header.open .primary-nav ul { flex-direction: column; }
  .site-header.open .header-actions { flex-basis: 100%; order: 4; display: flex; }
  .site-header.open .header-actions .btn { flex: 1; }
}

/* Footer */
.site-footer { background: var(--ink); color: #c9d4cf; margin-top: 56px; padding: 48px 0 28px; font-size: var(--fs-sm); }
.site-footer a { color: #e8efeb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-grid h2 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-brand .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Hero + search */
.hero { background: #f1f7f4; padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-grid .searchbar { grid-template-columns: 1fr 1fr; }
.hero-grid .searchbar .btn { grid-column: 1 / -1; }
.hero-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; background: #dfe9e3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; display: block; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { aspect-ratio: 16 / 10; } .hero-grid .searchbar { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--fs-3xl); max-width: 16ch; }
.hero .lead { max-width: 60ch; }
.searchbar { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); margin-top: 24px; max-width: 860px; }
.searchbar .field { position: relative; display: flex; align-items: center; }
.searchbar .field svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.searchbar .field input, .searchbar .field select { width: 100%; min-height: 48px; border: 0; border-radius: var(--r-sm); padding: 10px 12px 10px 40px; font: inherit; background: transparent; color: var(--ink); box-shadow: none; }
.searchbar input:focus, .searchbar select:focus { outline: 2px solid var(--focus); }
@media (max-width: 720px) { .searchbar { grid-template-columns: 1fr; } }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: var(--fs-sm); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

/* Autocomplete */
.ac-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 30; }
.ac-list[hidden] { display: none; }
.ac-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.ac-list a:hover, .ac-list [aria-selected="true"] a { background: var(--bg); }
.ac-type { font-size: var(--fs-xs); color: var(--muted); text-transform: capitalize; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.cat-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cat-card strong { font-weight: 650; }
.count-pill { font-size: var(--fs-xs); background: var(--brand-tint); color: var(--brand-ink); padding: 3px 9px; border-radius: 99px; font-weight: 650; white-space: nowrap; }

/* Job card */
.job-list { display: grid; gap: 12px; }
.job-card { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: border-color .15s, box-shadow .15s; }
.job-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.job-card.featured { border-color: #f0d79e; background: linear-gradient(0deg, var(--surface), var(--accent-tint)); }
.job-card h3 { font-size: var(--fs-lg); margin: 0 0 2px; }
.job-card h3 a { color: var(--ink); text-decoration: none; }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.job-card h3 a:hover { color: var(--brand); }
.job-company { color: var(--ink-2); font-weight: 550; margin-bottom: 8px; }
.job-card .actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: end; gap: 8px; }
.job-posted { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .job-card { grid-template-columns: 44px 1fr; } .job-card .actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.logo { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; overflow: hidden; font-weight: 750; color: var(--brand-ink); font-size: 1.1rem; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-lg { width: 80px; height: 80px; border-radius: 16px; font-size: 1.6rem; }
@media (max-width: 640px) { .job-card .logo { width: 44px; height: 44px; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 550; padding: 4px 9px; border-radius: 99px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.tag svg { width: 13px; height: 13px; }
.tag-brand { background: var(--brand-tint); color: var(--brand-ink); border-color: transparent; }
.tag-salary { background: #ecf8f1; color: #0b5d3a; border-color: transparent; }
.tag-accent { background: var(--accent-tint); color: #7a5205; border-color: transparent; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--brand-ink); font-weight: 650; }
.badge-verified svg { width: 15px; height: 15px; }

.save-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.save-btn:hover { color: var(--brand); border-color: var(--line-2); }
.save-btn svg { width: 20px; height: 20px; }
.save-btn[aria-pressed="true"] { color: var(--brand); background: var(--brand-tint); border-color: transparent; }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Search page layout */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .search-layout { grid-template-columns: 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px 16px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; }
.filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { font-weight: 650; font-size: var(--fs-sm); padding: 0; margin-bottom: 8px; }
.filters label.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: var(--fs-sm); cursor: pointer; }
.filters label.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.filters label.check .n { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); }
.filters label.check.zero { color: var(--muted); }
.filters select, .filters input[type="number"] { width: 100%; }
.filters-head { display: none; }
.filters-actions { display: none; }
@media (max-width: 960px) {
  .filters { position: fixed; inset: 0; z-index: 100; border-radius: 0; max-height: none; padding: 0 16px 90px; transform: translateY(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 14px 0; border-bottom: 1px solid var(--line); z-index: 2; }
  .filters-actions { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); }
  .filters-actions .btn { flex: 1; }
}
.open-filters { display: none; }
@media (max-width: 960px) { .open-filters { display: inline-flex; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar h2 { font-size: var(--fs-lg); margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.chip:hover { background: #d4ebe0; color: var(--brand-ink); }
.chip svg { width: 12px; height: 12px; }

/* Forms */
.form { display: grid; gap: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .18); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
select[multiple] { min-height: 160px; padding: 6px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.choice { position: relative; display: block; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px 12px 40px; cursor: pointer; background: var(--surface); font-size: var(--fs-sm); }
.choice input { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-cols { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; }

/* Notices */
.notice { border-radius: var(--r-sm); padding: 12px 14px; border: 1px solid; font-size: var(--fs-sm); }
.notice-error { background: var(--danger-tint); border-color: #f5c2bd; color: #7a1a12; }
.notice-success { background: #ecf8f1; border-color: #bfe3cf; color: #0b5d3a; }
.notice-info { background: var(--info-tint); border-color: #c9dcf2; color: #183f6b; }
.notice-warn { background: var(--accent-tint); border-color: #f0d79e; color: #6b4805; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: start; }
.toast button { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; }

/* Job detail */
.job-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0; }
.job-head-in { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; }
@media (max-width: 760px) { .job-head-in { grid-template-columns: auto 1fr; } .job-head-in .job-cta { grid-column: 1 / -1; } }
.job-head h1 { margin-bottom: 4px; }
.job-cta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job-body { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .job-body { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.facts svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.facts .k { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.facts .v { font-weight: 550; }
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.prose h2 { font-size: 1.35rem; margin: 1.6em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--r-sm); height: auto; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.4em 0; padding: .2em 0 .2em 1em; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose a { overflow-wrap: anywhere; }
.closed-banner { background: var(--accent-tint); border: 1px solid #f0d79e; border-radius: var(--r); padding: 16px; margin-bottom: 20px; }
.sticky-apply { display: none; }
@media (max-width: 960px) { .sticky-apply { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; } .sticky-apply .btn-primary { flex: 1; } body.has-sticky { padding-bottom: 70px; } }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 550; }
.pagination a:hover { border-color: var(--line-2); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .dots { border: 0; background: none; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty svg { width: 44px; height: 44px; color: var(--muted); }

/* Articles */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: 100%; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--bg); }
.post-card .in { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { font-size: 1.05rem; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card .meta { font-size: var(--fs-xs); color: var(--muted); margin-top: auto; }
.article-head { padding: 36px 0 20px; }
.article-head h1 { font-size: var(--fs-3xl); }
.article-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-sm); }
.article-hero { border-radius: var(--r-lg); overflow: hidden; margin: 8px 0 28px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 90px; font-size: var(--fs-sm); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover, .toc li a.active { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 1024px) { .toc { position: static; } }
.author-box { display: flex; gap: 14px; align-items: start; margin-top: 36px; }
.author-box img { border-radius: 50%; }
.topic-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.topic-nav a { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 550; }
.topic-nav a[aria-current="page"], .topic-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Dashboard */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.dash-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; }
.dash-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 550; }
.dash-nav a[aria-current="page"], .dash-nav a:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 860px) { .dash-nav ul { display: flex; overflow-x: auto; gap: 4px; } .dash-nav a { white-space: nowrap; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat .n { font-size: 1.6rem; font-weight: 750; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--fs-sm); }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg); font-weight: 650; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: var(--r); }
.status { display: inline-block; font-size: var(--fs-xs); font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.status-publish { background: #ecf8f1; color: #0b5d3a; }
.status-pending { background: var(--info-tint); color: #183f6b; }
.status-rs_rejected { background: var(--danger-tint); color: #7a1a12; }
.status-rs_paused, .status-rs_expired { background: var(--accent-tint); color: #6b4805; }

/* Wizard */
.wizard-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: step; overflow-x: auto; }
.wizard-steps li { flex: 1; min-width: 92px; }
.wizard-steps button { width: 100%; text-align: left; background: none; border: 0; border-top: 4px solid var(--line); padding: 8px 2px 0; font: inherit; font-size: var(--fs-xs); color: var(--muted); cursor: pointer; }
.wizard-steps button[aria-current="step"] { border-top-color: var(--brand); color: var(--ink); font-weight: 650; }
.wizard-steps button.done { border-top-color: #8cc7ad; }
.wizard-panel[hidden] { display: none; }
.wizard-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.autosave { font-size: var(--fs-xs); color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan.highlight { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 2rem; font-weight: 800; }
.plan ul { padding-left: 1.2em; margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.plan form { margin-top: auto; }

/* Modal */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(15, 28, 23, .5); }
.dialog-in { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d4cf; margin: 0; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .split-cta { grid-template-columns: 1fr; } }
.split-cta .card { padding: 28px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.feature-list svg { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }

.auth-box { max-width: 460px; margin: 40px auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-xs); margin: 8px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Page photo (About and similar prose pages) */
.page-photo { margin: 0 0 28px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: #dfe9e3; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Job cards: badges and the "who can apply" tag */
.badge { display: inline-block; vertical-align: 1px; margin-left: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 99px; }
.badge-new { background: var(--brand); color: #fff; }
.badge-featured { background: var(--accent-tint); color: #7a5205; }
.tag-where { background: var(--surface); border-color: var(--brand); color: var(--brand-ink); font-weight: 650; }
.tag-where svg { color: var(--brand); }

/* Job page */
.job-dates { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; }
.who-box { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; background: var(--brand-tint); border: 1px solid #c6e3d5; border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; color: var(--brand-ink); }
.who-box svg { width: 22px; height: 22px; margin-top: 1px; }
.job-aside { display: grid; gap: 12px; align-self: stretch; align-content: start; }
.apply-box { position: sticky; top: 88px; z-index: 2; box-shadow: var(--shadow); }
.apply-box-title { font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.apply-box .btn-block { flex: 1; }
@media (max-width: 960px) { .apply-box { display: none; } }

/* Search page: quick filters, "show more", loading state */
.quick-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.quick-filters::-webkit-scrollbar { display: none; }
.quick-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.quick-filter:hover { border-color: var(--brand); color: var(--brand-ink); }
.quick-filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-filter svg { width: 14px; height: 14px; }
.filters .is-extra { display: none; }
.filters fieldset.expanded .is-extra { display: flex; }
.show-more { font-size: var(--fs-sm); margin-top: 4px; }
.results { transition: opacity .15s; }
.results[aria-busy="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 960px) {
  .results-bar { position: sticky; top: 68px; z-index: 20; background: var(--bg); padding: 10px 0; margin-top: -10px; }
}

/* Homepage: logo strip, category cards with companies, how it works */
.logo-strip { padding: 22px 0 6px; }
.logo-strip p { margin: 0 0 10px; }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.logo-strip a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-strip a:hover { filter: none; opacity: 1; color: var(--ink); }
.logo-strip img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.cat-card { flex-direction: column; align-items: stretch; gap: 6px; }
.cat-card-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cat-card-cos { line-height: 1.4; }
.how-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.how-steps h3 { margin-bottom: 4px; }
.how-steps p { margin: 0; }
.how-n { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 860px) { .how-steps { grid-template-columns: 1fr; } }

/* Polish: feedback, reading comfort, browser surfaces */
::selection { background: var(--brand); color: #fff; }
html { scrollbar-color: var(--line-2) transparent; }
body { caret-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn-secondary:active { background: var(--bg); }
.save-btn.pop svg { animation: rs-pop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes rs-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.job-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { transform: translateY(-1px); }
.toast { animation: rs-toast .28s cubic-bezier(.2, .8, .2, 1); border-radius: var(--r); }
@keyframes rs-toast { from { opacity: 0; transform: translate(-50%, 10px); } }
.prose { max-width: 72ch; }
.prose p, .prose li { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
.section-head { padding-bottom: 2px; }
.empty h3 { margin-top: 10px; }
.empty p { max-width: 46ch; margin-inline: auto; }
.card-link:focus-visible, .job-card:focus-within { outline: none; box-shadow: 0 0 0 3px rgba(26, 115, 232, .35); border-color: var(--focus); }
@media (prefers-reduced-motion: reduce) { .job-card:hover { transform: none; } }
/* Grid children must be allowed to shrink, or the scrolling quick-filter row widens the results column on phones. */
.search-layout > *, .job-body > *, .hero-grid > *, .job-card > * { min-width: 0; }
.job-card h3 { overflow-wrap: anywhere; }

/* Logo */
.brand svg { height: 30px; width: auto; display: block; }
.footer-brand .brand svg { height: 34px; }
@media (max-width: 480px) { .brand svg { height: 26px; } }
