/* Talentius job ad pages (KAN-14) — flat, square, compact; matches the contact/jobs page system.
   Layout: readable main column + sticky facts/apply card; one even photo gallery; form in the main column. */
.tcv-job-page .ta-native-contact{display:none!important}
.tcv-job-page .tj-jobs{padding:44px 0 64px!important}
.tcv-job-page .tj-jobs>.elementor-widget{width:100%}

.ta-hero .tjd-sub{margin:12px 0 0;font:500 18px/1.5 "DM Sans",Arial,sans-serif;color:#d6d7da}

.tjd-button,.tjd-button:visited{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:13px 24px;font:700 18px/1.4 "Talentius DM Sans","DM Sans",Arial,sans-serif;color:#fff!important;background:#FF3B44;border:1px solid #FF3B44;text-decoration:none!important;transition:background-color .15s,border-color .15s}
.tjd-button:hover,.tjd-button:focus-visible{background:#e0252e;border-color:#e0252e;color:#fff!important}
.tjd-button--outline,.tjd-button--outline:visited{background:transparent;color:#232529!important;border-color:#232529}
.tjd-button--outline:hover,.tjd-button--outline:focus-visible{background:#232529;color:#fff!important;border-color:#232529}
.tjd-button--block{display:flex;width:100%}

.tjd{color:#232529;font:400 17px/1.65 "DM Sans",Arial,sans-serif}
.tjd *{box-sizing:border-box;border-radius:0}
.tjd p{margin:0 0 12px}
.tjd a{color:#232529;text-decoration:underline;text-underline-offset:3px}
.tjd a:hover{color:#c4121c}

.tjd-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"main aside";gap:56px;align-items:start}
.tjd-main{grid-area:main;max-width:780px}
.tjd-aside{grid-area:aside;position:sticky;top:24px}

/* Facts card */
.tjd-card{border:1px solid #e3e4e6;border-top:3px solid #FF3B44;background:#fff;padding:24px}
.tjd-card-logo{display:flex;align-items:center;height:72px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid #e3e4e6}
.tjd-card-logo img{max-width:170px;max-height:54px;width:auto;height:auto;object-fit:contain}
.tjd-facts{margin:0 0 20px}
.tjd-facts>div{padding:10px 0;border-bottom:1px solid #eeeff1}
.tjd-facts>div:first-child{padding-top:0}
.tjd-facts dt{font:600 12px/1.4 "DM Sans",Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#6b6f75;margin:0 0 2px}
.tjd-facts dd{margin:0;font-size:16px;font-weight:600;line-height:1.45}
.tjd-left{display:inline-block;margin-left:6px;font-weight:500;color:#c4121c}
.tjd-card-note{margin:12px 0 0!important;font-size:14px;line-height:1.5;color:#575b60}

/* Content */
.tjd-lead{font-size:18px;line-height:1.65;margin:0 0 28px!important}
.tjd-gallery{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:8px;margin:0 0 36px}
.tjd-gallery--1{--n:1}.tjd-gallery--2{--n:2}.tjd-gallery--3{--n:3}.tjd-gallery--4{--n:4}
.tjd-gallery figure{margin:0;aspect-ratio:4/3;overflow:hidden;background:#eeeff1}
.tjd-gallery--1 figure{aspect-ratio:16/7}
.tjd-gallery img{display:block;width:100%;height:100%;object-fit:cover}

.tjd-section{padding:28px 0;border-top:1px solid #e3e4e6}
.tjd-section:first-of-type{border-top:0;padding-top:0}
.tjd-section h2,.tjd-section h3,.tjd-section h4{font-family:Lexend,Arial,sans-serif;font-weight:600;letter-spacing:-.02em;line-height:1.3;margin:0 0 14px;text-transform:none;color:#232529;font-size:23px;font-weight:500}
.tjd-section h4{font-size:19px}
.tjd-section ul,.tjd-section ol{margin:0 0 12px;padding:0;list-style:none}
.tjd-section li{position:relative;margin:0 0 8px;padding-left:22px}
.tjd-section li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;background:#FF3B44}
.tjd-section li p{margin:0}
.tjd-section>*:last-child{margin-bottom:0}

.tjd-fallback{font-size:18px}

/* Apply */
.tjd-apply{margin-top:12px;padding:32px;background:#F6F6F6;border:1px solid #e3e4e6;scroll-margin-top:24px}
.tjd-apply-eyebrow{margin:0 0 4px!important;font:600 14px/1.5 "DM Sans",Arial,sans-serif;color:#c4121c}
.tjd-apply>h2{font:500 28px/1.25 Lexend,Arial,sans-serif;letter-spacing:-.03em;margin:0 0 8px;text-transform:none;color:#232529}
.tjd-apply-lead{color:#575b60;margin-bottom:22px!important}
.tjd-note{margin-top:24px;padding-top:18px;border-top:1px solid #dcdde0;font-size:15px;color:#3d4146}
.tjd-note p{margin:0 0 8px}

.tjd--closed{max-width:780px}
.tjd-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}

/* Mobile apply bar */
.tjd-bar{position:fixed;left:0;right:0;bottom:0;z-index:999;display:flex;align-items:center;gap:12px;padding:10px 14px;background:#232529;border-top:2px solid #FF3B44}
.tjd-bar[hidden]{display:none}
.tjd-bar-title{flex:1;min-width:0;color:#fff;font:600 15px/1.3 "DM Sans",Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tjd-bar .tjd-button{min-height:46px;padding:9px 20px;font-size:16px}

@media (min-width:1025px){.tjd-bar{display:none!important}}
@media (max-width:1024px){
  .tjd-layout{grid-template-columns:1fr;grid-template-areas:"aside" "main";gap:28px}
  .tjd-aside{position:static}
  .tjd-main{max-width:none}
  .tjd-card{display:grid;grid-template-columns:auto 1fr;gap:0 24px;align-items:center}
  .tjd-card-logo{grid-row:span 2;height:auto;margin:0;padding:0 24px 0 0;border:0;border-right:1px solid #e3e4e6}
  .tjd-facts{display:flex;flex-wrap:wrap;gap:6px 28px;margin:0}
  .tjd-facts>div,.tjd-facts>div:first-child{padding:0;border:0}
  .tjd-card .tjd-button--block,.tjd-card-note{display:none}
}
@media (max-width:640px){
  .tcv-job-page .tj-jobs{padding:24px 0 80px!important}
  .tjd{font-size:16px}
  .ta-hero .tjd-sub{font-size:16px}
  .tjd-card{display:block;padding:16px 18px}
  .tjd-card-logo{height:52px;padding:0 0 12px;margin:0 0 12px;border-right:0;border-bottom:1px solid #e3e4e6}
  .tjd-card-logo img{max-height:40px}
  .tjd-facts{display:block}
  .tjd-facts>div{display:flex;justify-content:space-between;gap:16px;padding:5px 0}
  .tjd-facts dt{margin:3px 0 0}
  .tjd-facts dd{text-align:right;font-size:15px}
  .tjd-lead{font-size:17px;margin-bottom:20px!important}
  .tjd-gallery{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:24px}
  .tjd-gallery--1{grid-template-columns:1fr}
  .tjd-gallery--3{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .tjd-gallery--3 figure{aspect-ratio:1/1}
  .tjd-section{padding:22px 0}
  .tjd-section h2,.tjd-section h3{font-size:20px}
  .tjd-apply{padding:22px 18px 24px;margin-left:-4px;margin-right:-4px}
  .tjd-apply>h2{font-size:23px}
}

/* Theme overrides (Astra/Elementor set img height:auto and heading sizes with higher specificity). */
.tjd .tjd-gallery img{height:100%!important;max-width:none}
.tjd .tjd-section h2,.tjd .tjd-section h3{font-size:23px!important;line-height:1.3!important;font-weight:500!important}
.tjd .tjd-section h4{font-size:19px!important}
@media (max-width:640px){.tjd .tjd-section h2,.tjd .tjd-section h3{font-size:20px!important}}

/* Body copy: one size and weight everywhere (no inline formatting from Teamdash). */
.tjd .tjd-section p,.tjd .tjd-section li,.tjd .tjd-lead,.tjd .tjd-note p{font-family:"Talentius DM Sans","DM Sans",Arial,sans-serif!important;font-weight:400!important;letter-spacing:0}
@media (max-width:640px){.tjd-lead{font-size:16px}}
