/* Shared sizing: each component fits its available space, including long text. */
:root{--page-gutter:clamp(1rem,3vw,3rem);--layout-gap:clamp(1rem,1.6vw,1.5rem)}
.wrap{width:100%;max-width:1440px;padding-inline:var(--page-gutter)}
.career-home .wrap{max-width:1520px}
main,main section,figure,fieldset,.panel,.job,.home-job,.home-candidate,.home-path,.newsletter-inner>*{min-width:0}
main h1,main h2,main h3,.home-job-copy>p,.home-job-location,.home-candidate p,.footer-main p{overflow-wrap:anywhere}
.btn{max-width:100%;white-space:normal}
.page-heading h1{font-size:clamp(1.875rem,4vw,3rem)}
.section-heading{gap:1rem;flex-wrap:wrap;align-items:center}
.header-actions .mobile-candidate-action{display:none}
@media(max-width:48rem){
 .header-actions{gap:.375rem}
 .header-actions .btn{padding-inline:clamp(.5rem,2vw,.75rem);white-space:nowrap}
 .header-actions .mobile-candidate-action{display:inline-flex}
}

/* A single grid owns the hero, search and photograph at every width. */
.home-hero{padding-block:clamp(1.5rem,3vw,3rem)}
.home-hero>.wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:1.75rem clamp(1.5rem,3vw,3rem);align-items:center}
.home-hero-grid{display:contents}
.home-hero-copy{grid-column:1;grid-row:1;order:0}
.home-hero h1{font-size:clamp(2.5rem,4.5vw,4.5rem);line-height:1.1;letter-spacing:-.045em}
.home-hero h1 span,.home-hero h1 em{display:block}
.home-hero h1 span:first-child:after{content:none}
.home-eyebrow{font-size:clamp(.75rem,.9vw,.875rem);letter-spacing:clamp(.06em,.12vw,.12em);line-height:1.7}
.home-hero-description{font-size:clamp(1rem,1.45vw,1.25rem);line-height:1.7;max-width:36rem;margin-top:1.25rem}
.home-hero-figure{grid-column:2;grid-row:1;order:0;width:100%;max-width:none;margin:0;align-self:center}
.home-hero-figure:before{display:none}
.home-hero-figure>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center;border-radius:clamp(1.25rem,3vw,3rem) 1rem 1rem 1rem;border-width:4px}
.home-hero-figure figcaption{font-size:clamp(.875rem,1.15vw,1rem);line-height:1.6;text-align:center;margin: .75rem 0 0;overflow-wrap:anywhere}
.home-search{grid-column:1/-1;grid-row:2;order:0;margin:0;width:100%}
.home-search .search{grid-template-columns:minmax(16rem,1.5fr) minmax(12rem,1fr) minmax(12rem,1fr) auto;gap:0;padding:.75rem}
.home-search .search label{grid-column:auto;min-width:0;padding:0 1rem;border-bottom:0;border-right:1px solid var(--line);font-size:.75rem;line-height:1.5}
.home-search .search input,.home-search .search select{font-size:1rem;min-height:46px;max-width:100%}
.home-search .search .btn{grid-column:auto;width:auto;min-width:9rem;min-height:56px;height:auto;margin:0 0 0 .75rem;padding: .875rem 1.25rem;font-size:1.0625rem}
.home-locations{grid-column:1/-1;grid-row:3;order:0;gap:.625rem;margin:0}
.home-locations a{flex:0 1 auto;min-width:0;min-height:44px;font-size:.875rem;padding:.5rem 1rem;white-space:normal;text-align:center}

/* Cards gain or lose columns naturally; no narrow, fixed three-column cards. */
.home-job-grid,.home-candidate-grid,.jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:var(--layout-gap);align-items:stretch}
.listing-layout .jobs{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.home-job{padding:clamp(1.125rem,1.7vw,1.5rem);height:100%}
.home-job-main{display:grid;grid-template-columns:3.25rem minmax(0,1fr);align-items:start;gap:.875rem}
.home-company-logo{width:3.25rem;height:3.25rem;margin:0;flex-basis:auto}
.home-job h3{font-size:clamp(1.125rem,1.45vw,1.375rem);line-height:1.4;letter-spacing:-.025em}
.home-job-copy>p,.home-job-location{font-size:.875rem;line-height:1.7}
.home-job-bottom{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:1.25rem;align-items:center}
.home-job-type{font-size:.8125rem;max-width:100%;white-space:normal}
.home-job-action{flex:1 1 6rem;min-width:0;border:0;padding:0;justify-content:flex-end;font-size:.875rem;white-space:normal}
.home-candidate-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr))}
.home-candidate{height:100%;padding:1.25rem;gap:.875rem;align-items:flex-start}
.home-candidate .candidate-avatar{width:3.25rem;height:3.25rem;flex:0 0 3.25rem}
.home-candidate h3{font-size:1.125rem;line-height:1.5}
.home-candidate p{font-size:.875rem;line-height:1.6}
.home-section-heading{align-items:center;flex-wrap:wrap;gap:.75rem 1.5rem}
.home-section-heading>div{flex:1 1 24rem;gap:.75rem}
.home-section-heading h2,.home-community h2{font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.35;letter-spacing:-.03em}
.home-section-heading .text-link{flex:0 1 auto;max-width:100%;white-space:normal}
#home-sector-label:empty{display:none}

/* Categories and audience calls to action stay within their own cards. */
.home-sector-grid{display:flex;flex-wrap:wrap;gap:.75rem;padding-block:1rem}
.home-sector-grid button,.home-sector-grid button:first-child,.home-sector-grid button:last-child{display:flex;flex:1 1 10rem;flex-direction:row;align-items:center;justify-content:center;min-width:0;min-height:68px;padding:.75rem;gap:.625rem;border:1px solid #d6e1ee;border-radius:10px;background:#fff;font-size:.875rem;line-height:1.5;text-align:left}
.home-sector-grid button span{min-width:0;overflow-wrap:anywhere}
.home-sector-grid .home-icon{width:1.75rem;height:1.75rem}
.home-paths{grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr));gap:var(--layout-gap)}
.home-path{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:1rem;padding:clamp(1.25rem,2vw,1.75rem);align-content:start;align-items:start}
.home-path-icon{width:3rem;min-width:0}
.home-path-icon .home-icon{width:2.75rem;height:2.75rem}
.home-path>div{padding-left:1rem;min-width:0}
.home-path h2{font-size:clamp(1.375rem,1.8vw,1.75rem);line-height:1.35}
.home-path p{font-size:.875rem;line-height:1.7}
.home-path .btn{grid-column:2;justify-self:start;margin:0;width:auto;max-width:100%;min-height:48px;font-size:.9375rem;white-space:normal}

/* Other pages use the same space constraints as the home page. */
.listing-layout{grid-template-columns:minmax(12rem,15rem) minmax(0,1fr);gap:clamp(1.25rem,2.5vw,2.5rem)}
.detail-grid{grid-template-columns:minmax(0,1fr) minmax(15rem,19rem);gap:clamp(1.25rem,2.5vw,2.5rem)}
.newsletter-inner{display:flex;align-items:center;flex-wrap:wrap;gap:1.5rem}
.newsletter-inner>div{flex:1 1 23rem}
.newsletter form{display:flex;flex:1 1 22rem;min-width:0;max-width:34rem;width:auto;flex-wrap:wrap}
.newsletter input{flex:1 1 12rem;width:auto;min-width:0;max-width:100%;font-size:1rem}
.newsletter .btn{flex:0 1 auto;min-height:50px}
.footer-main{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:2rem}
.footer-main>div:first-child{grid-column:auto}
.footer-bottom{gap:1rem;align-items:flex-start}
.footer-bottom>div{min-width:0;flex-wrap:wrap}
.admin-stats,.user-panel-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.75rem}
.admin-top{flex-wrap:wrap;gap:1rem}
.admin-top>*{max-width:100%;overflow-wrap:anywhere}
.form-grid>*{min-width:0}

@media(max-width:60rem){
 .home-search .search{grid-template-columns:repeat(2,minmax(0,1fr));gap:.875rem;padding:1rem}
 .home-search .search label,.home-search .search label:first-child{grid-column:auto;padding:0 0 .5rem;border-right:0;border-bottom:1px solid var(--line)}
 .home-search .search label:first-child{grid-column:1/-1}
 .home-search .search .btn{grid-column:1/-1;width:100%;margin:0}
}
@media(max-width:56rem){
 .home-hero>.wrap{grid-template-columns:minmax(0,1fr);gap:.875rem}
 .home-hero-copy{grid-column:1;grid-row:1}
 .home-hero h1{font-size:clamp(2.125rem,6.8vw,3.75rem);letter-spacing:-.04em}
 .home-hero h1 span,.home-hero h1 em{display:inline}
 .home-hero h1 span:first-child:after{content:' '}
 .home-hero-description{max-width:42rem;font-size:1.0625rem;margin-top:.75rem}
 .home-hero-figure{grid-column:1;grid-row:4;width:100%;max-width:29rem;justify-self:center;margin:0}
 .home-hero-figure>img{height:auto;aspect-ratio:auto;object-fit:contain}
 .home-search{grid-column:1;grid-row:2}
 .home-locations{grid-column:1;grid-row:3;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
 .home-locations a{flex:0 0 auto;white-space:nowrap}
 .home-sector-grid{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
 .home-sector-grid button,.home-sector-grid button:first-child,.home-sector-grid button:last-child{flex:0 0 auto}
 .listing-layout,.detail-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:37.5rem){
 .home-search .search{grid-template-columns:minmax(0,1fr)}
 .home-search .search label,.home-search .search label:first-child,.home-search .search label:nth-child(3),.home-search .search .btn{grid-column:1}
 .home-locations a{flex:1 1 8rem;padding:.5rem .75rem}
 .home-sector-grid button,.home-sector-grid button:first-child,.home-sector-grid button:last-child{flex-basis:8rem;font-size:.8125rem;min-height:72px}
 .home-job-main{grid-template-columns:3rem minmax(0,1fr);gap:.75rem}
 .home-company-logo{width:3rem;height:3rem}
 .home-job h3{font-size:1.25rem}
 .home-job-action{flex-basis:100%;justify-content:flex-start;padding-top:.5rem}
 .home-section-heading>div{flex-basis:100%}
 .newsletter form{max-width:none;flex-basis:100%}
 .newsletter .btn{flex:1 1 8rem}
 .footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 1rem}
 .footer-main>div:first-child{grid-column:1/-1}
}
@media(max-width:23.75rem){
 .home-path .btn{grid-column:1/-1;width:100%;justify-self:stretch}
 .footer-main{grid-template-columns:minmax(0,1fr)}
}

/* Phone home: keep the search and first opportunities close to the top. */
@media(max-width:37.5rem){
 .home-hero{padding-block:1rem}
 .home-hero>.wrap{gap:.625rem}
 .home-eyebrow{font-size:.75rem;margin-bottom:.5rem;letter-spacing:.06em}
 .home-hero h1{font-size:clamp(1.875rem,8.2vw,2.125rem);line-height:1.1}
 .home-hero-description{font-size:1rem;line-height:1.55;margin-top:.75rem}
 .home-search .search{grid-template-columns:minmax(0,1fr) 5.5rem;gap:.375rem .625rem;padding:.625rem;border-radius:12px}
 .home-search .search label,.home-search .search label:first-child,.home-search .search label:nth-child(3){grid-column:1;min-width:0;padding:0;border:0;font-size:0;line-height:0}
 .home-search .search label:first-child{grid-column:1/-1;grid-row:1}
 .home-search .search label:nth-child(2){grid-row:2}
 .home-search .search label:nth-child(3){grid-row:3}
 .home-search .search input,.home-search .search select{font-size:1rem;line-height:1.4;min-height:44px;height:44px;padding:.5rem .375rem;background-color:#f5f8fc;border-radius:6px}
 .home-search .search .btn{grid-column:2;grid-row:2/4;display:flex;flex-direction:column;justify-content:center;gap:.375rem;min-width:0;min-height:44px;height:100%;width:100%;padding:.625rem .375rem;font-size:1rem}
 .home-search .search-icon{width:24px;height:24px;flex-basis:24px}
 .home-locations{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:.5rem;padding-bottom:.25rem;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:thin}
 .home-locations a{flex:0 0 auto;min-height:44px;padding:.375rem .75rem;font-size:.8125rem;scroll-snap-align:start;white-space:nowrap}
 .home-hero-figure{max-width:22rem}
 .home-hero-figure>img{height:auto;aspect-ratio:auto;object-fit:contain;object-position:center;border-radius:18px 10px 10px 10px}
 .home-hero-figure figcaption{margin-top:.375rem;font-size:.8125rem;line-height:1.4}
 .home-sector-grid{flex-wrap:nowrap;overflow-x:auto;gap:.5rem;padding-block:.5rem;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
 .home-sector-grid button,.home-sector-grid button:first-child,.home-sector-grid button:last-child{flex:0 0 auto;min-height:48px;padding:.5rem .75rem;gap:.5rem;font-size:.8125rem;white-space:nowrap;scroll-snap-align:start}
 .home-sector-grid .home-icon{width:22px;height:22px}
 .home-locations::-webkit-scrollbar,.home-sector-grid::-webkit-scrollbar{height:4px}
 .home-locations::-webkit-scrollbar-thumb,.home-sector-grid::-webkit-scrollbar-thumb{background:#b2c7df;border-radius:4px}
 .home-opportunities{padding-top:.875rem}
 .home-opportunities .home-section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:start;margin-bottom:.5rem}
 .home-opportunities .home-section-heading>div{display:block;min-width:0}
 .home-opportunities .home-section-heading h2{font-size:1.375rem;line-height:1.3}
 .home-opportunities .home-sample-label{display:block;margin-top:.25rem;font-size:.75rem}
 .home-opportunities .home-section-heading .text-link{min-height:44px;font-size:.8125rem;max-width:6rem;line-height:1.4}
 .home-opportunities .home-example-note{font-size:.75rem;line-height:1.5;margin-bottom:.75rem}
}
@media(min-width:22.5625rem) and (max-width:56rem){
 .home-search .search{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(5rem,.75fr);gap:.375rem .625rem;padding:.625rem}
 .home-search .search label,.home-search .search label:first-child,.home-search .search label:nth-child(3){grid-column:auto;min-width:0;padding:0;border:0;font-size:0;line-height:0}
 .home-search .search label:first-child{grid-column:1/-1;grid-row:1}
 .home-search .search label:nth-child(2){grid-column:1;grid-row:2}
 .home-search .search label:nth-child(3){grid-column:2;grid-row:2}
 .home-search .search input,.home-search .search select{min-height:44px;height:44px;padding:.5rem .375rem;background:#f5f8fc;border-radius:6px}
 .home-search .search .btn{grid-column:3;grid-row:2;display:flex;flex-direction:row;justify-content:center;gap:.375rem;min-width:0;min-height:44px;height:100%;width:100%;margin:0;padding:.375rem;font-size:.9375rem;white-space:nowrap}
 .home-search .search .search-icon{width:20px;height:20px;flex-basis:20px}
}
@media(max-width:22.5rem){
 .home-search .search{grid-template-columns:minmax(0,1fr)}
 .home-search .search .btn{grid-column:1;grid-row:4;flex-direction:row;height:44px;padding:.5rem .75rem}
}

/* Fill desktop screens while retaining a small inner inset for the content. */
@media(min-width:56.0625rem){
 .wrap,.career-home .wrap{max-width:none;padding-inline:1rem}
 .home-hero>.wrap{grid-template-columns:minmax(0,1fr)}
 .home-hero-grid{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,min(35vw,34rem)) minmax(0,1fr);align-items:center;justify-self:center;width:100%;max-width:86rem;column-gap:clamp(1rem,1.5vw,1.5rem)}
 .home-hero-figure>img{height:auto;aspect-ratio:auto;object-fit:contain}
}
/* The people photograph leads the hero on phones and tablets. */
@media(max-width:56rem){
 .home-hero-figure{grid-column:1;grid-row:1}
 .home-hero-copy{grid-column:1;grid-row:2}
 .home-search{grid-column:1;grid-row:3}
 .home-locations{grid-column:1;grid-row:4}
}
.admin-access-card{max-width:560px}
.admin-access-card form>.btn{width:100%;min-height:48px;margin-top:8px}
.admin-access-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:20px}
.admin-access-links a{display:flex;align-items:center;min-height:44px;font-size:14px}
#admin-login-message:not(:empty){padding-top:16px;font-size:15px;line-height:1.7}
.admin-site header nav,.admin-site .header-actions,.admin-site .menu,.admin-site footer{display:none!important}
.admin-site .header{display:flex;justify-content:flex-start;height:80px}
.setup-section{margin-top:24px}
.setup-section .field textarea{min-height:110px}
.setup-section .admin-feedback{margin-top:12px}
.setup-evidence{display:flex;flex-wrap:wrap;gap:10px 20px;padding:0;list-style:none;font-size:14px;color:#52647a}
.setup-evidence li{min-width:0;overflow-wrap:anywhere}

.candidate-avatar.example-portrait{
 background-image:url('/examples/candidate-portraits.jpg');
 background-size:200% 200%;
 background-repeat:no-repeat;
}
.example-portrait[data-portrait="2"]{background-position:100% 0}
.example-portrait[data-portrait="3"]{background-position:0 100%}
.example-portrait[data-portrait="4"]{background-position:100% 100%}

@media(min-width:37.5625rem) and (max-width:56rem){
 .home-job-grid,.home-candidate-grid,.listing-layout .jobs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:37.5rem){
 .home-job-grid,.home-candidate-grid,.listing-layout .jobs{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.625rem;
 }
 .home-job,.listing-layout .job{
  aspect-ratio:1;
  height:auto;min-height:9.625rem;max-height:12rem;
  padding:.625rem;
  border-radius:12px;
 }
 .home-job-main{display:block}
 .home-company-logo,.listing-layout .company-logo{
  display:grid;place-items:center;width:2rem;height:2rem;
  border-radius:8px;margin:0 0 .375rem;
 }
 .home-company-logo .home-icon{width:1.3125rem;height:1.3125rem}
 .home-job h3,.listing-layout .job h3{
  font-size:.9375rem;line-height:1.25;margin:0 0 .25rem;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
 }
 .home-job-copy>p,.home-job-location,.listing-layout .job .company,.listing-layout .job .meta span:first-child{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:.75rem;line-height:1.35;margin:0 0 .125rem;
 }
 .home-job-location .home-icon{display:none}
 .home-job-bottom{margin-top:.375rem;gap:.25rem}
 .home-job-type,.listing-layout .job-type{padding:.1875rem .375rem;font-size:.6875rem;line-height:1.2}
 .home-job-sample{font-size:.6875rem}
 .home-job-type .home-icon,.home-job-action{display:none}
 .home-job h3 a:after{border-radius:12px}
 .listing-layout .job-top{gap:.25rem}
 .listing-layout .job-top .job-type{margin-top:.125rem;text-align:right}
 .listing-layout .job .meta{padding-bottom:.25rem;display:block}
 .listing-layout .job .meta span+span,.listing-layout .job-bottom .archive{display:none}
 .listing-layout .job-bottom{margin-top:.125rem;padding-top:.25rem;font-size:.6875rem}
 .home-candidate-grid{margin-top:.625rem}
 .home-candidate{flex-direction:column;gap:.5rem;padding:.75rem}
 .home-candidate .candidate-avatar,.home-candidate>.avatar{width:2.75rem;height:2.75rem;flex:0 0 2.75rem}
 .home-candidate h3{font-size:.9375rem;line-height:1.3}
 .home-candidate p{font-size:.75rem;line-height:1.4;margin-top:.125rem}
}
