/* =============================================================
   IR Jobs Europe — Inderes IR Suite Light layout (v1.1.0)
   ------------------------------------------------------------
   - Sidebar + single content-card layout (IR Suite DNA)
   - Official Inderes SVG logo (black)
   - GT America loaded locally (licensed web fonts)
   - Row-based list, subtle hover, no urgent-bar artefact
   ========================================================== */

/* -----------------------------------------------------------
   GT America (Inderes brand font, licensed)
----------------------------------------------------------- */
@font-face {
  font-family: 'GT America';
  src: url('fonts/GTAmerica-Regular.woff2') format('woff2'),
       url('fonts/GTAmerica-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT America';
  src: url('fonts/GTAmerica-RegularItalic.woff2') format('woff2'),
       url('fonts/GTAmerica-RegularItalic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'GT America';
  src: url('fonts/GTAmerica-Bold.woff2') format('woff2'),
       url('fonts/GTAmerica-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT America';
  src: url('fonts/GTAmerica-BoldItalic.woff2') format('woff2'),
       url('fonts/GTAmerica-BoldItalic.woff') format('woff');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'GT America Condensed';
  src: url('fonts/GTAmerica-CondensedRegular.woff2') format('woff2'),
       url('fonts/GTAmerica-CondensedRegular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT America Condensed';
  src: url('fonts/GTAmerica-CondensedBold.woff2') format('woff2'),
       url('fonts/GTAmerica-CondensedBold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT America Condensed';
  src: url('fonts/GTAmerica-CondensedBlack.woff2') format('woff2'),
       url('fonts/GTAmerica-CondensedBlack.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* brand — main */
  --blue: #3F3EFF;
  --blue-ink: #2826D4;
  --white: #FFFFFF;
  --black: #000000;
  --lime: #D4FCB3;

  /* brand — support */
  --dark-grey: #303845;
  --light-blue-web: #D4E2FF;
  --purple: #C49CFF;
  --light-red: #FCCEBE;
  --light-grey: #EFEFEF;

  /* semantic (Light) */
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --card-soft: #FAFAF8;
  --border: #EAEAE6;
  --border-strong: #D4D4CF;
  --text: #0A0A0A;
  --text-muted: #5A5F6B;
  --text-soft:  #6C7280;
  --primary: var(--blue);
  --primary-ink: var(--blue-ink);
  --accent: var(--lime);

  /* geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sidebar-w: 240px;
  --content-max: 1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'GT America', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================
   App shell
   ========================================= */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* =========================================
   Sidebar
   ========================================= */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

/* Official Inderes wordmark SVG — stacked lockup, prominent in sidebar */
.logo {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
  padding: 2px 4px;
}
.logo img {
  height: 92px;
  width: auto;
}
.logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(63,62,255,.25);
  border-radius: 4px;
}

/* Nav primary */
.nav-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .12s ease, color .12s ease;
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.03); }
.nav-link.is-active {
  color: var(--primary);
  background: rgba(63,62,255,0.07);
  font-weight: 700;
}
.nav-link.is-active .nav-ico { color: var(--primary); }
.nav-ico { color: var(--text-soft); flex-shrink: 0; }
.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(63,62,255,.3);
}

/* Nav secondary */
.nav-secondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-link-small {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: background .12s, color .12s;
}
.nav-link-small:hover { background: rgba(0,0,0,.03); color: var(--text); }
.nav-link-small:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(63,62,255,.3);
}

/* Sidebar profile */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-md);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'GT America Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.profile-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.profile-sub  { font-size: 11px; color: var(--text-soft); line-height: 1.2; margin-top: 2px; }

/* =========================================
   Main column
   ========================================= */
.main-col {
  padding: 40px clamp(24px, 4vw, 56px) 40px;
  max-width: var(--content-max);
  width: 100%;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'GT America Condensed', sans-serif;
  font-weight: 900;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.crumb-sep { color: var(--border-strong); }
.breadcrumbs span:last-child { color: var(--text-muted); font-weight: 500; }

/* Page head, editorial, Condensed-Black H1, ALL CAPS */
.page-head { margin-bottom: 48px; }
.page-head h1 {
  font-family: 'GT America Condensed', 'GT America', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 24ch;
  text-wrap: balance;
}
.h1-accent {
  color: var(--primary);
  font-family: 'GT America Condensed', sans-serif;
  font-weight: 900;
  font-style: normal;
}
.page-sub {
  font-family: 'GT America', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  max-width: 64ch;
  line-height: 1.55;
}

/* =========================================
   Content card
   ========================================= */
.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .content-card { padding: 20px; }
}
.content-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-family: 'GT America', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}
.section-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .search-wrap { grid-column: 1 / -1; }
}
.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 14px; color: var(--text-soft); pointer-events: none; }
#search, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
#search { padding-left: 40px; }
#search::placeholder { color: var(--text-soft); }
#search:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63,62,255,.12);
}
select {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* =========================================
   Job list — row layout, divider only
   ========================================= */
.job-list {
  display: flex;
  flex-direction: column;
}
.job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: var(--card-soft); }

/* NO urgent-bar on the row — only the deadline text turns colour when close */

.row-main { min-width: 0; }
.row-company {
  font-family: 'GT America Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.country-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  background: var(--light-blue-web);
  color: var(--dark-grey);
  border-radius: 999px;
  font-family: 'GT America Condensed', sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.row-title {
  font-family: 'GT America', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.row-location {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.row-summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 68ch;
}
.row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip, .meta-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--light-grey);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.meta-item.meta-muted {
  background: transparent; padding: 3px 2px;
  color: var(--text-soft); font-weight: 400;
}
.chip.verified {
  background: var(--lime); color: #14361B; font-weight: 700;
}

.row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 120px;
  white-space: nowrap;
}
.row-deadline {
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 500;
}
.row-deadline.urgent {
  color: #C53030;
  font-weight: 700;
}

.row-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  min-height: 40px;
  background: var(--text);
  color: var(--white);
  border-radius: 999px;
  font-family: 'GT America', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .15s ease;
}
.row-link:hover { background: var(--primary); }
.row-link::after { content: '→'; }
.row-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(63,62,255,.35);
}

@media (max-width: 700px) {
  .job-row { grid-template-columns: 1fr; gap: 12px; }
  .row-aside { flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; }
}

/* Country group header */
.country-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0 8px;
  font-family: 'GT America Condensed', sans-serif;
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
}
.country-header:first-child { padding-top: 4px; }
.country-flag { font-size: 14px; }
.country-name { color: var(--text-muted); }
.country-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

/* Empty state */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state h3 {
  font-family: 'GT America', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--text);
}
.empty-state p { margin: 0 0 16px; font-size: 14px; }

.btn-secondary {
  padding: 10px 22px;
  min-height: 40px;
  background: var(--light-grey);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: background .15s ease;
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(63,62,255,.2);
}

/* Colophon */
.colophon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 32px 4px;
  border-top: 1px solid var(--border);
}
@media (max-width: 800px) {
  .colophon { grid-template-columns: 1fr; gap: 28px; }
}
.col-title {
  font-family: 'GT America', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.colophon p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.colophon strong { color: var(--text); font-weight: 700; }
.colophon a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.colophon a:hover { border-bottom-color: var(--primary); }
.col-link { margin-top: 8px; }
.source-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 2px 0;
}
.source-list li::before {
  content: '·';
  color: var(--primary);
  display: inline-block;
  width: 14px;
  font-weight: 900;
}

/* Footer */
.footer {
  margin-top: 32px;
  padding: 20px 4px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    z-index: 45;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.08);
  }
  .mobile-menu-btn { display: inline-flex; }
  .main-col {
    padding-top: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
