/* XD layout: listings pages. Shared by every app; colors only through var(--theme-*, <current default>) so apps without the theme keys keep their look. */
/* Jobs (jobs/list.html, jobs/_card.html, jobs/detail.html), XD Job Listings + listing detail: 842px column (detail 958px),
   26px title with the search row, 22px section titles with See all, 3 x 260px cards (146px logo well + 80px body).
   Surfaces: --theme-more-card (card body; else a tint of the page so --theme-text stays readable on light and dark apps),
   --theme-card-media (logo well), --theme-tinted-banner (shield, "..." pill), --theme-input-field (search),
   --theme-primary-button (Apply), --theme-underscore (active tab), --theme-tinted-more-card (card and tab rules). */
.xj{--xj-surface:var(--theme-more-card,color-mix(in srgb,var(--theme-text,#000) 7%,var(--theme-default-background,#fff)));
  --xj-rule:var(--theme-tinted-more-card,color-mix(in srgb,var(--theme-text,#000) 18%,transparent));
  width:100%;box-sizing:border-box;max-width:874px;margin:0 auto;padding:28px 16px 48px;color:var(--theme-text,inherit)}
.xj h1,.xj h2,.xj h3{color:var(--theme-text,inherit)}
.xj-back{margin:0 0 12px}.xj-back a{font-size:16px;font-weight:600;color:var(--theme-text,inherit)!important;text-decoration:none}
.xj-top{display:flex;align-items:center;gap:24px 52px;flex-wrap:wrap;margin-bottom:28px}
.xj-top h1{margin:0;font-size:26px;font-weight:700;line-height:1.2}
.xj-search{position:relative;display:flex;align-items:center;flex:1 1 320px;max-width:474px;min-width:0;height:38px;margin:0;border-radius:6px;
  background:var(--theme-input-field,color-mix(in srgb,var(--theme-text,#000) 10%,var(--theme-default-background,#fff)));color:var(--theme-text,inherit)}
.xj-search-icon{position:absolute;left:12px;pointer-events:none}
.xj-search input{flex:1;min-width:0;height:100%;margin:0;padding:0 8px 0 38px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-size:15px}
.xj-search input::placeholder{color:var(--theme-secondary-text,currentColor);opacity:.85}
.xj-filter{display:flex;align-items:center;justify-content:center;gap:2px;min-width:40px;height:100%;padding:0 10px;color:inherit!important;text-decoration:none}
.xj-filter b{font-size:11px}
.xj-tool{display:inline-flex;align-items:center;gap:6px;width:auto;max-width:220px;min-height:38px;margin:0;padding:0 12px;border:1px solid var(--xj-rule)!important;border-radius:6px;
  background:transparent!important;color:var(--theme-text,inherit)!important;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xj-location{margin:-12px 0 24px}
.xj-hero{margin:0 0 28px}.xj-hero a{display:block}.xj-hero img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover;border-radius:8px}
.xj-section{margin-bottom:28px}
.xj-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.xj-head h2{margin:0;font-size:22px;font-weight:700;line-height:1.2;min-width:0;overflow-wrap:anywhere}
.xj-see-all{font-size:14px;font-weight:500;white-space:nowrap;color:var(--theme-text,inherit)!important;text-decoration:none}
.xj-see-all span{font-size:20px;margin-left:4px;vertical-align:-1px}
.xj-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.xj-empty{grid-column:1/-1;margin:4px 0;color:var(--theme-secondary-text,inherit)}
.xj-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--xj-rule);border-radius:8px;overflow:visible;background:var(--xj-surface)}
.xj-card-link{display:flex;flex-direction:column;flex:1;color:var(--theme-text,inherit)!important;text-decoration:none;border-radius:8px;overflow:hidden}
.xj-card-logo{display:flex;align-items:center;justify-content:center;aspect-ratio:260/146;background:var(--theme-card-media,#fff)}
.xj-card-logo{position:relative;overflow:hidden}.xj-card-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.xj-card-body{display:flex;flex-direction:column;gap:3px;min-height:80px;padding:12px 32px 12px 12px;background:var(--xj-surface)}
.xj-card-body strong{font-size:13px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xj-card-body small{font-size:11px;font-weight:500;color:var(--theme-secondary-text,inherit);opacity:.95;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xj-card-body em{font-style:normal;font-size:10px;font-weight:500;color:var(--theme-secondary-text,inherit)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xj-card-body em.xj-card-salary{font-weight:600;color:var(--theme-text,inherit)!important}
.xj-shield{position:absolute;right:12px;bottom:58px;display:flex;color:var(--theme-tinted-banner,var(--theme-primary-button,currentColor))}
.xj-more{position:absolute;top:10px;right:10px}
.xj-more summary{display:flex;align-items:center;justify-content:center;gap:3px;width:40px;height:40px;list-style:none;cursor:pointer;border-radius:8px}
.xj-more summary::-webkit-details-marker{display:none}
.xj-more summary::before{content:"";position:absolute;top:10px;left:4px;width:32px;height:20px;border-radius:4px;background:var(--theme-tinted-banner,#EDEDED);box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.xj-more summary span{position:relative;width:4px;height:4px;margin-top:0;border-radius:50%;background:var(--theme-default-background,#1B1B1B)}
.xj-more summary{align-items:flex-start;padding-top:18px;height:40px;box-sizing:border-box}
.xj-menu{position:absolute;right:0;top:38px;z-index:5;display:flex;flex-direction:column;min-width:140px;padding:6px;border-radius:8px;background:var(--xj-surface);border:1px solid var(--xj-rule);box-shadow:0 6px 18px rgba(0,0,0,.25)}
.xj-menu form{margin:0}
.xj-menu button{display:block;width:100%;min-height:40px;margin:0;padding:0 10px;border:0!important;border-radius:6px;background:transparent!important;color:var(--theme-text,inherit)!important;text-align:left;font-size:14px;font-weight:500}
.xj-menu button:hover{background:var(--xj-rule)!important}
.xj-load-more{display:block;max-width:260px;margin:28px auto 0;padding:10px;border-radius:8px;background:var(--theme-primary-button,#657EEF);color:var(--theme-inverse-text,#fff)!important;text-align:center;font-weight:600;text-decoration:none}
/* Listing detail */
.xj-detail{max-width:990px}
.xj-hero-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,464px);gap:40px;align-items:start}
.xj-info h1{margin:0 0 14px;font-size:26px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.xj-place{margin:0 0 4px;font-size:12px;font-weight:500}
.xj-company{margin:0 0 4px;font-size:12px;color:var(--theme-secondary-text,inherit)}
.xj-summary{margin:12px 0 0;font-size:12px;line-height:1.45;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.xj-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:28px}
.xj-actions form{margin:0}
.xj-icon{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:40px;margin:0;padding:0 2px;border:0!important;background:transparent!important;color:var(--theme-text,inherit)!important;font-size:14px;font-weight:600}
.xj-icon span{font-size:20px;line-height:1}
.xj-actions-gap{flex:1}
.xj-apply{width:auto;min-width:140px;min-height:40px;margin:0;padding:0 22px;border:0!important;border-radius:8px;background:var(--theme-primary-button,var(--job-accent))!important;color:var(--theme-inverse-text,#fff)!important;font-size:14px;font-weight:700}
.xj-apply.applied{background:var(--job-applied)!important}
.xj-business{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--xj-rule);border-radius:8px;color:var(--theme-text,inherit)!important;font-weight:600;text-decoration:none}
.xj-media{display:flex;align-items:center;justify-content:center;aspect-ratio:464/288;border-radius:4px;overflow:hidden;background:var(--theme-card-media,#fff)}
.xj-media{position:relative}.xj-media img,.xj-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.xj-thumbs{display:flex;gap:8px;margin-top:12px;overflow-x:auto}
.xj-thumbs a{flex:none;width:100px;aspect-ratio:115/77;overflow:hidden}.xj-thumbs img{width:100%;height:100%;object-fit:cover}
.xj-rating{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:24px 0 8px}
.xj-rating span{margin-right:8px;font-weight:600}.xj-rating small{margin-left:8px;color:var(--theme-secondary-text,inherit)}
.xj-rating button{width:auto;min-width:32px;min-height:40px;margin:0;padding:0 2px;border:0;background:transparent!important;color:color-mix(in srgb,var(--theme-text,#000) 30%,transparent)!important;font-size:22px;line-height:1}
.xj-rating button.on{color:var(--theme-ratings,#f5a623)!important}
.xj-about{margin:24px 0}.xj-about h3{font-size:16px;margin-bottom:12px}.xj-about ul{padding-left:20px}.xj-about .job-body{white-space:pre-wrap}
.xj-tabs .detail-tabs{justify-content:center;gap:0;margin:32px 0 22px;padding:0;border-radius:0;background:transparent;border-bottom:1px solid var(--xj-rule)}
.xj-tabs .detail-tabs a{flex:0 1 auto;min-width:94px;padding:10px 18px;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--theme-text,inherit)!important;font-size:16px;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.xj-tabs .detail-tabs a.active{border-bottom-color:var(--theme-underscore,var(--theme-primary-button,currentColor))}
.xj-tabs .album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:30px}
.xj-tabs .album-card{display:flex;flex-direction:column;border:1px solid var(--xj-rule);border-radius:8px;overflow:hidden;background:var(--xj-surface);color:var(--theme-text,inherit)!important;text-decoration:none}
.xj-tabs .album-card-image{aspect-ratio:260/146;height:auto;background:var(--theme-card-media,#fff)}
.xj-tabs .album-card-image{position:relative;overflow:hidden}.xj-tabs .album-card-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.xj-tabs .album-card-body{min-height:80px;padding:12px;background:var(--xj-surface)}
.xj-tabs .album-card-body h4{margin:0 0 4px;font-size:13px;font-weight:700;color:var(--theme-text,inherit)}
.xj-tabs .album-card-body p{margin:0;font-size:11px;color:var(--theme-secondary-text,inherit)}
@media (max-width:900px){
  .xj-grid,.xj-tabs .album-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px}
  .xj-hero-row{grid-template-columns:minmax(0,1fr)}
  .xj-media-col{order:-1}
  .xj-info h1{margin-top:4px}
}
@media (max-width:767px){
  .xj{padding-top:18px}
  .xj-top{gap:14px;margin-bottom:20px}
  .xj-top h1{font-size:22px;flex:1 1 100%}
  .xj-search{flex:1 1 0;max-width:none;height:42px}
  .xj-tool{min-height:42px;max-width:130px}
  .xj-head h2{font-size:19px}
  .xj-grid,.xj-tabs .album-grid{gap:12px}
  .xj-card-body{padding:10px 28px 10px 10px}
  .xj-shield{right:8px}
}
@media (max-width:480px){
  .xj-grid,.xj-tabs .album-grid{grid-template-columns:minmax(0,1fr)!important}
  .xj-actions form:last-child{flex:1 1 100%}.xj-apply{width:100%}
  .xj-actions-gap{display:none}
}
.xj-back a,.xj-see-all{display:inline-flex;align-items:center;min-height:40px}
.xj-back{margin:0 0 4px}
.xj-tabs .album-card .album-card-image{background:var(--theme-card-media,#fff)!important;border-radius:0}
.xj-tabs .album-card-body h4{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
