/* Tipografía: SIN font-family propios — todo hereda del tema
   (body 'Raleway' 16px; h1-h6 'Roboto Slab' — style.css:45,119). */
.jf-ct{--jf-ct-accent:#f58220;--jf-ct-navy:#1e2a4a;--jf-ct-line:#e5e7eb;--jf-ct-muted:#6b7280;
  font-size:16px;color:#1f2937;padding-bottom:56px}
.jf-ct a{text-decoration:none}
.jf-ct h1,.jf-ct h2,.jf-ct h3{color:var(--jf-ct-navy);margin:0}

/* Breadcrumb visible (Yoast) */
.jf-ct-breadcrumb{font-size:.8em;color:var(--jf-ct-muted);margin:2px 0 10px}
.jf-ct-breadcrumb a{color:var(--jf-ct-muted)}
.jf-ct-breadcrumb a:hover{color:var(--jf-ct-accent)}

/* Hero: layout de bloque (la foto es fondo absoluto) para que el H1 disponga de
   TODO el ancho de la columna y quepa en una línea. */
.jf-ct-hero{position:relative;display:flex;align-items:center;
  border-radius:14px;overflow:hidden;margin:0 0 18px;min-height:270px;background:#fff}
.jf-ct-hero-photo{position:absolute;inset:0}
.jf-ct-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
/* Degradado suave: el skyline se VE en el ~40% derecho (mockup) */
.jf-ct-hero-photo::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.55) 55%,rgba(255,255,255,0) 100%)}
.jf-ct-hero--nophoto{background:linear-gradient(120deg,var(--jf-ct-navy),#31456e 60%,#3d5a92)}
.jf-ct-hero--nophoto h1{color:#fff}
.jf-ct-hero-inner{position:relative;z-index:1;padding:30px 28px;width:100%;max-width:640px}
/* clamp: tope 36px — "Jobs in Quebec City, QC" (23 chars, Roboto Slab ~0.6em/char)
   ≈ 497px < 524px útiles en el peor caso desktop-con-sidebar (viewport 1025px). */
.jf-ct-hero h1{font-size:clamp(1.5rem,3vw + .5rem,2.25rem);font-weight:700;line-height:1.15;margin-bottom:12px}
.jf-ct-count{margin:0 0 12px}

/* Chip "N jobs available": fondo neutro claro, número en negrita naranja */
.jf-ct-chip{display:inline-block;background:#f3f4f6;border:1px solid var(--jf-ct-line);color:#1f2937;
  font-size:.9em;line-height:1.2;padding:6px 14px;border-radius:999px;letter-spacing:.01em}
.jf-ct-chip strong{color:var(--jf-ct-accent);font-weight:800}

/* Tagline genérica bajo el chip contador */
.jf-ct-tagline{margin:0;color:#374151;font-size:1.02em;font-weight:500;line-height:1.4;max-width:34ch}
.jf-ct-hero--nophoto .jf-ct-tagline{color:rgba(255,255,255,.9)}

/* Tira de value-props bajo el hero */
.jf-ct-props{display:flex;flex-wrap:wrap;gap:10px 26px;align-items:center;margin:0 0 16px;padding:2px 4px}
.jf-ct-prop{display:inline-flex;align-items:center;gap:8px;font-size:.88em;font-weight:600;color:var(--jf-ct-navy)}
.jf-ct-prop svg{color:var(--jf-ct-accent);flex:0 0 auto}

/* Párrafo editorial único por ciudad */
.jf-ct-intro{margin:0 0 30px;color:#374151;line-height:1.65;max-width:70ch}

/* Único anuncio display de la página: bloque 7 de Ad Inserter, centrado, entre el intro
   y "Top employers". Sin min-height inventada — el bloque trae su propio contenedor. */
.jf-ct-adslot{text-align:center;margin:8px 0 36px}
.jf-ct-adslot .code-block{margin-left:auto;margin-right:auto}

/* Secciones */
.jf-ct-sechead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 16px}
.jf-ct-sechead h2{font-size:1.3em}
.jf-ct-more{color:var(--jf-ct-accent);font-weight:600;white-space:nowrap;font-size:.9em}
/* Etiqueta discreta (no parece dropdown) */
.jf-ct-sort{color:var(--jf-ct-muted);font-size:.72em;font-weight:600;text-transform:uppercase;letter-spacing:.06em}

/* Grid de empresas: 5 columnas aireadas, 2 filas para 10, SIN contadores */
.jf-ct-employers{margin:0 0 38px}
.jf-ct-emp-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.jf-ct-emp{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;
  padding:16px 10px;border:1px solid var(--jf-ct-line);border-radius:12px;background:#fff;transition:box-shadow .15s,border-color .15s}
.jf-ct-emp:hover{box-shadow:0 4px 14px rgba(30,42,74,.12);border-color:#f2b183}
.jf-ct-emp img{width:48px;height:48px;object-fit:contain;border-radius:8px}
.jf-ct-emp-name{font-weight:600;color:var(--jf-ct-navy);font-size:.9em;text-align:center;line-height:1.25}
.jf-ct-avatar{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;
  border-radius:50%;background:var(--jf-ct-navy);color:#fff;font-weight:700;font-size:1.1em}

/* Listado (hereda .jf-banner de jf-jobs-widget.css del tema) */
.jf-ct-jobs{margin:0 0 38px}
.jf-ct .jf-jobs-list{margin:0}
/* Restaurar el look estándar del widget que nuestro reset de h3 pisaba */
.jf-ct .jf-banner__title{color:#333;margin:0 0 8px}
.jf-ct .jf-banner__meta a{color:#000;text-decoration:none}
.jf-ct .jf-banner__meta a:hover{color:var(--jf-ct-accent);text-decoration:underline}
.jf-ct-empty{padding:24px;border:1px dashed var(--jf-ct-line);border-radius:12px;color:var(--jf-ct-muted)}

/* Paginación */
.jf-ct-pagination{margin:22px 0 4px;text-align:center}
.jf-ct-pagination .page-numbers{display:inline-block;padding:8px 13px;margin:0 3px;border:1px solid var(--jf-ct-line);
  border-radius:8px;color:var(--jf-ct-navy)}
.jf-ct-pagination .page-numbers.current{background:var(--jf-ct-navy);color:#fff;border-color:var(--jf-ct-navy)}
.jf-ct-pagination a.page-numbers:hover{border-color:var(--jf-ct-accent);color:var(--jf-ct-accent)}

/* Popular searches (chips a landings pSEO) */
.jf-ct-searches{margin:0 0 38px}
.jf-ct-searches-chips{display:flex;flex-wrap:wrap;gap:9px}
.jf-ct-search-chip{display:inline-block;background:#fff;border:1px solid #f3e3cb;border-radius:8px;
  padding:8px 14px;font-size:.88em;font-weight:500;color:#1f2937;line-height:1.3;
  transition:background-color .15s,border-color .15s,color .15s}
.jf-ct-search-chip:hover{background:#fffbf5;border-color:var(--jf-ct-accent);color:var(--jf-ct-accent)}

/* Ciudades cercanas: 3/fila desktop, con icono de edificio */
.jf-ct-nearby{margin:0 0 10px}
.jf-ct-nearby-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.jf-ct-city{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--jf-ct-line);
  border-radius:12px;background:#fff;transition:box-shadow .15s,border-color .15s}
.jf-ct-city:hover{box-shadow:0 4px 14px rgba(30,42,74,.12);border-color:#f2b183}
.jf-ct-city-ico{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;
  border-radius:9px;background:#fff5eb;color:var(--jf-ct-accent);flex:0 0 auto}
.jf-ct-city-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.jf-ct-city-name{font-weight:600;color:var(--jf-ct-navy)}
.jf-ct-city-count{color:var(--jf-ct-muted);font-size:.85em}

/* Tablet + móvil (≤1024px): grid empresas = SLIDER de 2 filas deslizante a la derecha.
   Tablet muestra 4 columnas (tile proporcionado ~como el 5×2 desktop); móvil baja a 3
   (override de grid-auto-columns en el ≤640px de abajo). >1024px conserva el 5×2 estático. */
@media (max-width:1024px){
  .jf-ct-emp-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;
    grid-template-rows:repeat(2,auto);grid-auto-columns:calc((100% - 62px)/4);
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    scroll-padding-left:0;-webkit-overflow-scrolling:touch;padding:0 0 8px}
  .jf-ct-emp{min-width:0;scroll-snap-align:start}
  .jf-ct-nearby-grid{grid-template-columns:repeat(3,1fr)}
}
/* Móvil: el texto va ABAJO (align-items:flex-end) → el overlay debe ser OPACO ABAJO
   (texto legible) y TRANSPARENTE ARRIBA (skyline visible). Invertido respecto a antes. */
@media (max-width:640px){
  .jf-ct-hero{align-items:flex-end;min-height:300px}
  .jf-ct-hero-photo::after{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.35) 35%,rgba(255,255,255,.9) 68%,rgba(255,255,255,.97) 100%)}
  .jf-ct-hero-inner{padding:18px 20px}
  .jf-ct-props{gap:8px 18px}
  /* Grid empresas móvil: hereda el SLIDER del ≤1024px; solo baja a 3 columnas visibles
     (2 gaps + peek de la 4ª). El resto (flow/rows/overflow/snap/min-width:0) ya aplica. */
  .jf-ct-emp-grid{grid-auto-columns:calc((100% - 46px)/3)}
  .jf-ct-nearby-grid{grid-template-columns:repeat(2,1fr)}
}
