:root {
  --brand: #0c6b58;
  --brand-dark: #084f41;
  --accent: #f2b233;
  --ink: #1c2430;
  --muted: #5d6675;
  --line: #dfe3ea;
  --bg: #f4f6f8;
  --card: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--brand); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Top bar */
.topbar { background: var(--brand-dark); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; background: #fff; border-radius: 10px; padding: 4px 10px; text-decoration: none; }
.topnav { display: flex; gap: 18px; font-size: 0.95rem; }
.topnav a { color: #e6f2ef; text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.topnav a.active { color: var(--accent); }
.badge {
  background: var(--accent); color: var(--ink); border-radius: 999px;
  padding: 0 7px; font-size: 0.75rem; font-weight: 700;
}

/* Search bar */
.searchbar { background: var(--brand); padding: 14px 0 18px; }
.search-form { display: flex; gap: 8px; }
.field.grow { flex: 1; }
.field:not(.grow) { flex: 0 0 260px; }
.search-form input {
  width: 100%; height: 46px; border: 0; border-radius: 8px;
  padding: 0 14px; font-size: 1rem; font-family: inherit;
}
.btn-primary {
  height: 46px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--ink); font-weight: 700;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost {
  height: 40px; padding: 0 16px; border: 1px solid var(--brand);
  background: #fff; color: var(--brand); border-radius: 8px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 420px;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  align-items: start;
}

/* Filters */
.filters {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  position: sticky; top: 16px;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { font-size: 1.05rem; margin: 0; }
.link-btn { background: none; border: 0; color: var(--brand); cursor: pointer; font-weight: 600; font-family: inherit; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; font-size: 0.95rem; }
select {
  width: 100%; height: 38px; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 8px; background: #fff; font-family: inherit;
}
.check { display: flex; gap: 8px; align-items: center; font-size: 0.95rem; margin: 6px 0; cursor: pointer; }

/* Results header */
.results-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.results-head p { margin: 0; color: var(--muted); }
.results-head strong { color: var(--ink); }
.results-head select {
  width: auto; height: 36px; margin-left: 6px;
}

/* Job cards */
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: #9fb8b2; }
.card.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(12, 107, 88, 0.15); }
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.title { margin: 0 0 2px; font-size: 1.08rem; }
.card:hover .title { color: var(--brand); text-decoration: underline; }
.company { margin: 0; color: var(--muted); font-size: 0.92rem; }
.salary { margin: 6px 0 0; font-weight: 600; color: var(--brand-dark); }
.snippet {
  margin: 8px 0; color: #2f3947; font-size: 0.95rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.posted { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; }
.save {
  background: none; border: 0; font-size: 1.3rem; color: var(--brand);
  cursor: pointer; line-height: 1; padding: 2px 4px;
}
.save.on { color: #d49a12; }
.card-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.share {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1.05rem; line-height: 1; padding: 6px; border-radius: 6px;
}
.share:hover, .share:focus-visible { color: var(--brand); background: #eef3f1; }
.share .icon-share { display: block; }
.btn-ghost .icon-share { width: 16px; height: 16px; vertical-align: -3px; }

/* Floating "Join our WhatsApp channel" button */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.wa-float i { font-size: 1.6rem; }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5b; color: #fff; }
.filters-open .wa-float { display: none; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }

.tags span {
  display: inline-block; background: #eef3f1; color: #33453f;
  border-radius: 999px; padding: 2px 10px; font-size: 0.8rem;
  margin: 0 6px 4px 0;
}


/* Detail pane */
.detail {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 16px;
  max-height: calc(100vh - 32px); overflow: auto;
}
.detail h2 { margin: 0 0 4px; font-size: 1.4rem; }
.detail h3 { font-size: 1rem; margin: 20px 0 6px; }
.detail ul { padding-left: 20px; margin: 0; }
.detail li { margin-bottom: 4px; }
.detail .company { margin-bottom: 6px; }
.detail .salary { font-size: 1.05rem; }
.actions { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 0.9rem; }
.detail-empty { color: var(--muted); text-align: center; padding: 60px 0; }
.back {
  display: none; background: none; border: 0; color: var(--brand);
  font-weight: 600; cursor: pointer; padding: 0 0 12px; font-family: inherit;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }




/* ---------------------------------------------------------------------------
   Server-rendered additions
   --------------------------------------------------------------------------- */
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; }
.brand-logo { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
a.btn-primary, a.btn-ghost { display: inline-flex; align-items: center; text-decoration: none; }
a.btn-ghost { height: 40px; }
.title a { color: inherit; text-decoration: none; }
.card:hover .title a { color: var(--brand); text-decoration: underline; }
.detail-title a { color: inherit; text-decoration: none; }
.detail-title a:hover { color: var(--brand); text-decoration: underline; }
.apply-filters { width: 100%; }
.salary-range { display: flex; gap: 6px; align-items: center; }
.salary-range input {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-family: inherit;
}
.filters input[type="checkbox"] { accent-color: var(--brand); }

/* Pagination (links instead of buttons) */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--ink);
}
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .disabled { opacity: 0.4; }
.pager .gap { border-color: transparent; background: none; }

.crumbs { margin: 16px 0 4px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--brand); }
.category-head h1 { margin: 0; font-size: 1.5rem; }
.category-head p { margin: 4px 0 0; }
.job-page, .saved-page, .page { padding-bottom: 40px; }
.detail-page { position: static; max-height: none; max-width: 820px; margin-top: 12px; }
.detail-page .detail-title { margin: 0 0 4px; font-size: 1.6rem; }
.saved-page h1, .page h1 { margin: 4px 0; }
.saved-page .job-list { margin-top: 16px; max-width: 820px; }
.small-print { margin-top: 24px; font-size: 0.82rem; }
.apply-note { margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0 16px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.footer-about { max-width: 360px; }
.footer-about p { margin: 0 0 6px; }
.footer-brand { font-weight: 800; color: var(--ink); }
.footer-legal { margin-top: 18px; font-size: 0.82rem; text-align: center; }
.social { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.social a {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 999px; background: #eef3f1; color: var(--brand-dark);
}
.social a:hover { background: var(--brand); color: #fff; }
.social i { font-size: 17px; line-height: 1; }

/* Static pages (confirm, unsubscribe, maintenance, errors) */
.page { max-width: 640px; padding-top: 32px; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 12px; }
.error-page { padding: 60px 20px; text-align: center; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--brand); margin: 0; }
.debug-trace { text-align: left; white-space: pre-wrap; font-size: 0.8rem; background: #fff; padding: 16px; border: 1px solid var(--line); overflow-x: auto; }

/* Tablet: the detail pane gives way to the full job page */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .detail:not(.detail-page) { display: none; }
}

/* Phone */
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .search-form { flex-direction: column; }
  .field:not(.grow) { flex-basis: auto; }
  .btn-primary { width: 100%; }
  .topnav { gap: 12px; font-size: 0.88rem; }
  .social { width: 100%; justify-content: center; }
}
.btn-ghost, a.btn-ghost { font-size: 0.95rem; }

/* Subscribe form (footer and subscription pages) */
.subscribe { max-width: 460px; display: grid; gap: 8px; }
.subscribe-title { font-size: 1rem; margin: 0; color: var(--ink); }
.subscribe-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-fields input {
  flex: 1 1 160px; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-family: inherit; font-size: 0.95rem;
}
.subscribe .btn-primary { height: 42px; }
.subscribe .consent { font-size: 0.85rem; align-items: flex-start; }
.subscribe .consent input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: #b42318; font-size: 0.85rem; }
.panel-card form { margin-top: 16px; }

/* Contact and CV help pages */
.contact-page { padding-bottom: 40px; }
.contact-page h1 { margin: 4px 0 16px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 20px; align-items: start; margin-top: 16px; }
.contact-grid .panel-card { margin-top: 0; }
.panel-card h2, .whatsapp-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.contact-form { display: grid; gap: 14px; margin-top: 12px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 400; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #b42318; }
.contact-form .btn-primary { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-alert { background: #fdecea; border: 1px solid #f5c2bc; color: #b42318; border-radius: 8px; padding: 10px 12px; margin: 0; }
.whatsapp-card { background: #effaf3; border: 1px solid #c6ead3; border-radius: var(--radius); padding: 22px; }
.whatsapp-card p { margin: 0 0 10px; }
.whatsapp-number { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 16px; border-radius: 8px;
}
.btn-whatsapp:hover { background: #178a45; }
.btn-whatsapp i { font-size: 20px; line-height: 1; }
.cv-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 0; }
.cv-offer p { margin: 0 0 8px; }
.cv-points { margin: 8px 0 0; padding-left: 20px; }
.cv-points li { margin-bottom: 4px; }
.cv-price { text-align: center; background: #fdf6e3; border: 1px solid #f3dfa6; border-radius: var(--radius); padding: 18px 24px; display: grid; gap: 2px; }
.cv-price strong { font-size: 1.6rem; color: var(--ink); }
.flash { border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid; }
.flash.success { background: #e3f4ee; border-color: #b7e0d1; color: var(--brand-dark); }
.flash.error { background: #fdecea; border-color: #f5c2bc; color: #b42318; }
.footer-links a { color: var(--brand); }
@media (max-width: 860px) {
  .contact-grid, .cv-offer { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Mobile filter panel. Only with JavaScript (html.js); without it the filters stay inline. */
.filters-toggle, .filters-close, .label-panel { display: none; }
.filters-backdrop { display: none; }

@media (max-width: 760px) {
  html.js .filters-toggle {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
    border: 1px solid var(--brand); border-radius: 8px; background: #fff; color: var(--brand);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  html.js .filters-toggle i { font-size: 16px; }
  html.js .filters-toggle .badge { background: var(--brand); color: #fff; }
  html.js .results-head { flex-wrap: wrap; }

  html.js .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 120;
    width: min(86vw, 340px); max-height: none; margin: 0; overflow-y: auto;
    border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; padding: 0 18px;
    transform: translateX(-105%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  html.js .filters.open {
    transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, visibility 0s;
  }
  html.js .filters-head {
    position: sticky; top: 0; background: #fff; z-index: 1;
    padding: 16px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); gap: 12px;
  }
  html.js .filters-head h2 { margin-right: auto; }
  html.js .filters-close {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border: 0; border-radius: 8px; background: #eef3f1; color: var(--ink); font-size: 1rem; cursor: pointer;
  }
  html.js .filters-foot { position: sticky; bottom: 0; background: #fff; padding: 12px 0 16px; border-top: 1px solid var(--line); }
  html.js .apply-filters { background: var(--brand); color: #fff; height: 46px; font-size: 1rem; }
  html.js .label-wide { display: none; }
  html.js .label-panel { display: inline; }

  html.js .filters-backdrop:not([hidden]) {
    display: block; position: fixed; inset: 0; z-index: 110; background: rgba(20, 28, 36, 0.45);
  }
  body.filters-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .filters, html.js .filters.open { transition: none; }
}

/* SEO / GEO additions */
.search-title { color: #fff; font-size: 1.25rem; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; }
.city-links { font-size: 0.9rem; margin: 6px 0 0; color: var(--muted); }
.city-links a, .related-links a, .company a { color: var(--brand); }
.job-facts { margin-top: 20px; padding: 12px 14px; background: #eef3f1; border-radius: 8px; font-size: 0.95rem; }
.related-links { font-size: 0.9rem; color: var(--muted); }
.faq { margin-top: 20px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: #2f3947; }
.footer-browse { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-heading { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.footer-browse ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-browse a { color: var(--muted); text-decoration: none; }
.footer-browse a:hover { color: var(--brand); text-decoration: underline; }

/* Application deadline */
.deadline-pill {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; background: #eef3f1; color: var(--brand-dark); white-space: nowrap;
}
.deadline-pill.soon { background: #fdf1d6; color: #7a5300; }
.deadline-pill.today, .deadline-pill.closed { background: #fdecea; color: #b42318; }
.deadline-box {
  display: grid; gap: 2px; margin: 12px 0 4px; padding: 10px 14px; border-radius: 8px;
  background: #eef3f1; border-left: 4px solid var(--brand);
}
.deadline-box .deadline-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.deadline-box strong { font-size: 1.05rem; color: var(--ink); }
.deadline-box .deadline-when { font-size: 0.9rem; font-weight: 600; color: var(--brand-dark); }
.deadline-box.soon { background: #fdf6e3; border-left-color: #d49a12; }
.deadline-box.soon .deadline-when { color: #7a5300; }
.deadline-box.today { background: #fdecea; border-left-color: #b42318; }
.deadline-box.today .deadline-when { color: #b42318; }
.brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .topbar-inner { height: 56px; }
  .brand { padding: 3px 8px; }
  .brand-logo { height: 32px; max-width: 120px; }
}

/* About page */
.about-page { padding-bottom: 40px; max-width: 900px; }
.about-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 8px; }
.about-logo { height: 72px; width: auto; max-width: 200px; object-fit: contain; }
.about-hero h1 { margin: 0 0 8px; }
.about-intro { margin: 0; font-size: 1.05rem; color: #2f3947; }
.about-stats { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; text-align: center; }
.about-stats strong { font-size: 1.8rem; color: var(--brand-dark); }
.about-stats span { color: var(--muted); font-size: 0.9rem; }
.about-sections { display: grid; gap: 12px; }
.about-sections .panel-card { margin-top: 0; }
.about-sections h2, .about-cta h2 { margin: 0 0 8px; font-size: 1.15rem; }
.about-sections p { margin: 0 0 8px; }
.about-sections p:last-child { margin-bottom: 0; }
.about-cta .actions { margin: 4px 0 0; }
@media (max-width: 640px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
/* Very narrow phones: About stays reachable from the footer. */
@media (max-width: 420px) {
  .topnav { gap: 10px; font-size: 0.84rem; }
  .topnav a[href="/about"] { display: none; }
}

/* Legal pages */
.legal-page { max-width: 820px; padding-bottom: 40px; }
.legal-page h1 { margin: 4px 0 2px; }
.legal-summary { font-size: 1.05rem; background: #eef3f1; border-radius: 8px; padding: 14px 16px; }
.legal-toc { margin: 16px 0 8px; }
.legal-toc-title { font-weight: 700; margin: 0 0 6px; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-section { scroll-margin-top: 16px; }
.legal-section h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-section li { margin-bottom: 6px; }
.legal-table { overflow-x: auto; margin: 8px 0; }
.legal-table table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table thead th { background: #f4f6f8; }
.legal-table tbody th { white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.legal-related { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-legal a { color: var(--muted); }
.form-note { font-size: 0.82rem; margin: 0; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* Job page: details + sidebar */
.job-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 12px; }
.job-page-grid .detail-page { max-width: none; margin-top: 0; }
.job-sidebar { display: grid; gap: 16px; position: sticky; top: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.related-jobs { list-style: none; margin: 0; padding: 0; display: grid; }
.related-jobs li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.related-jobs li:first-child { border-top: 0; padding-top: 0; }
.related-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.related-title:hover { color: var(--brand); text-decoration: underline; }
.related-meta { color: var(--muted); font-size: 0.88rem; }
.related-salary { color: var(--brand-dark); font-weight: 600; font-size: 0.9rem; }
.related-jobs .deadline-pill { justify-self: start; margin: 4px 0 0; }
.side-links { display: grid; gap: 4px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.side-links a { color: var(--brand); }
.cv-promo { background: #fdf6e3; border-color: #f3dfa6; }
.cv-promo p { margin: 0 0 12px; font-size: 0.95rem; }
.cv-promo .btn-primary { height: 40px; }
@media (max-width: 1000px) {
  .job-page-grid { grid-template-columns: 1fr; }
  .job-sidebar { position: static; }
}

/* Admin-written application steps keep their line breaks (text is escaped, never HTML). */
.apply-instructions { white-space: pre-line; }
.reports-to { margin: 0.25rem 0 0.75rem; }

/* Job cards on phones: the title leads, the summary is a 2-line teaser, and only the type and
   category tags remain (experience level and positions are on the job page). */
@media (max-width: 640px) {
  .job-list { gap: 10px; }
  .card { padding: 14px 14px 12px; }
  .card .title { font-size: 1.22rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 4px; }
  .card .company { font-size: 0.86rem; }
  .card .salary { font-size: 0.88rem; font-weight: 600; margin-top: 4px; }
  .card .snippet {
    font-size: 0.9rem; line-height: 1.4; margin: 6px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card .tags span:nth-child(2), .card .tags .tag-positions { display: none; }
  .card .tags span { font-size: 0.75rem; padding: 2px 8px; margin-bottom: 2px; }
  .card .posted { margin-top: 4px; }
  /* Icon only, so it covers less of the list. */
  .wa-float { padding: 12px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-float i { font-size: 1.9rem; }
  /* Room so the floating button never hides the last card's closing date. */
  body:has(.wa-float) .site-footer { padding-bottom: 72px; }
}
