/**
 * Personal Link Jobs - front end styles.
 *
 * Colours and typography follow the recruitment design language already used
 * on the site (maroon / gold on white with a serif heading face), so the
 * listings sit naturally inside the Elementor pages.
 */

:root{
    --plj-maroon: #6e2a24;
    --plj-maroon-dark: #551f1b;
    --plj-maroon-deep: #3f1512;
    --plj-maroon-tint: #7d3529;
    --plj-maroon-panel-line: rgba(255,255,255,0.20);
    --plj-gold: #a9782f;
    --plj-gold-light: #d8a94b;
    --plj-ink: #3c2a1e;
    --plj-ink-soft: #6b5a4a;
    --plj-on-dark: #ffffff;
    --plj-on-dark-soft: rgba(255,255,255,0.84);
    --plj-line: rgba(60,42,30,0.16);
    --plj-white: #ffffff;
    --plj-font-head: 'Georgia', 'Times New Roman', serif;
    --plj-font-body: 'Georgia', 'Iowan Old Style', serif;
}

/* ------------------------------------------------------------------ rows */

.plj-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 18px 28px;
  align-items: start;
  background: var(--plj-white);
  border: 1px solid var(--plj-line);
  border-radius: 6px;
  padding: 26px 30px;
  margin: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plj-row.is-open{
  border-color: rgba(110, 42, 36, 0.45);
  box-shadow: 0 6px 22px rgba(60, 42, 30, 0.07);
}

.plj-main{
  grid-column: 1;
  min-width: 0;
}

.plj-title{
  font-family: var(--plj-font-head);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
  color: var(--plj-maroon);
  margin: 0 0 8px;
  padding: 0;
}

.plj-title a{
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.plj-title a:hover,
.plj-title a:focus{
  color: var(--plj-maroon-dark);
  text-decoration: underline;
}

.plj-summary{
  font-family: var(--plj-font-body);
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--plj-ink-soft);
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------- buttons */

.plj-actions{
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.plj-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 11px 18px;
  font-family: var(--plj-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.plj-btn-view{
  background: transparent;
  border-color: var(--plj-maroon);
  color: var(--plj-maroon);
}

.plj-btn-view:hover,
.plj-btn-view:focus-visible{
  background: var(--plj-maroon);
  color: var(--plj-white);
}

.plj-btn-apply{
  background: var(--plj-maroon);
  border-color: var(--plj-maroon);
  color: var(--plj-white);
}

.plj-btn-apply:hover,
.plj-btn-apply:focus-visible{
  background: var(--plj-maroon-dark);
  border-color: var(--plj-maroon-dark);
  color: var(--plj-white);
}

.plj-btn:focus-visible{
  outline: 2px solid var(--plj-gold);
  outline-offset: 2px;
}

/* Small chevron that turns when the row is open. */
.plj-toggle::after{
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.plj-toggle.is-open::after{
  transform: rotate(-135deg) translateY(-2px);
}

/* ---------------------------------------------------------------- detail */

.plj-detail{
  grid-column: 1 / -1;
  border-top: 1px solid var(--plj-line);
  padding-top: 20px;
  margin: 2px 0 0;
}

.plj-detail[hidden]{
  display: none;
}

.plj-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 0 0 20px;
  padding: 0;
}

.plj-meta-item{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}

.plj-meta dt{
  font-family: var(--plj-font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--plj-gold);
  margin: 0;
}

.plj-meta dd{
  font-family: var(--plj-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plj-ink);
  margin: 0;
}

.plj-content{
  font-family: var(--plj-font-body);
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--plj-ink-soft);
}

.plj-content > *:first-child{
  margin-top: 0;
}

.plj-content > *:last-child{
  margin-bottom: 0;
}

.plj-content p{
  margin: 0 0 14px;
}

.plj-content ul,
.plj-content ol{
  margin: 0 0 14px;
  padding-left: 20px;
}

.plj-content li{
  margin-bottom: 6px;
}

.plj-content h2,
.plj-content h3,
.plj-content h4,
.plj-content h5,
.plj-content h6{
  font-family: var(--plj-font-head);
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
  color: var(--plj-maroon);
  margin: 22px 0 10px;
}

.plj-content h2{
  font-size: 1.35rem;
}

.plj-content h3{
  font-size: 1.15rem;
}

.plj-content h4{
  font-size: 1rem;
}

.plj-content a{
  color: var(--plj-maroon);
  text-decoration: underline;
}

.plj-content a:hover{
  color: var(--plj-maroon-dark);
}

.plj-content strong{
  color: var(--plj-ink);
}

.plj-btn-apply-large{
  width: auto;
  margin-top: 22px;
  padding: 13px 26px;
}

/* ------------------------------------------------------------- candidates */

.plj-candidates{
    --plj-maroon: #6e2a24;
    --plj-maroon-dark: #551f1b;
    --plj-maroon-deep: #3f1512;
    --plj-maroon-tint: #7d3529;
    --plj-maroon-panel-line: rgba(255,255,255,0.20);
    --plj-gold: #a9782f;
    --plj-gold-light: #d8a94b;
    --plj-ink: #3c2a1e;
    --plj-ink-soft: #6b5a4a;
    --plj-on-dark: #ffffff;
    --plj-on-dark-soft: rgba(255,255,255,0.84);
    --plj-line: rgba(60,42,30,0.16);
    --plj-white: #ffffff;
}

.plj-candidates-title{
  font-family: var(--plj-font-head);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--plj-maroon);
  margin: 0 0 24px;
}

.plj-sectors{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.plj-sector{
  background: var(--plj-white);
  border: 1px solid var(--plj-line);
  border-radius: 6px;
  padding: 22px 24px;
}

.plj-sector-title{
  font-family: var(--plj-font-head);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--plj-maroon);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--plj-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plj-sector-count{
  font-family: var(--plj-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plj-maroon);
  background: rgba(110, 42, 36, 0.08);
  border-radius: 20px;
  padding: 3px 10px;
}

.plj-discipline-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.plj-discipline{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 6px 0;
  font-family: var(--plj-font-body);
  font-size: 0.85rem;
  color: var(--plj-ink-soft);
  border-bottom: 1px dotted var(--plj-line);
}

.plj-discipline:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.plj-discipline-name{
  flex: 1 1 auto;
  min-width: 0;
  color: var(--plj-ink);
}

.plj-discipline-count{
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--plj-maroon);
  background: rgba(110, 42, 36, 0.08);
  border-radius: 20px;
  padding: 3px 9px;
}

.plj-candidates-cta{
    --plj-maroon: #6e2a24;
    --plj-maroon-dark: #551f1b;
    --plj-maroon-deep: #3f1512;
    --plj-maroon-tint: #7d3529;
    --plj-maroon-panel-line: rgba(255,255,255,0.20);
    --plj-gold: #a9782f;
    --plj-gold-light: #d8a94b;
    --plj-ink: #3c2a1e;
    --plj-ink-soft: #6b5a4a;
    --plj-on-dark: #ffffff;
    --plj-on-dark-soft: rgba(255,255,255,0.84);
    --plj-line: rgba(60,42,30,0.16);
    --plj-white: #ffffff;
}

.plj-candidates-cta-text{
  font-family: var(--plj-font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--on-dark-soft);
  margin: 0 0 16px;
  max-width: 60ch;
}

/* -------------------------------------------------------------- compact */

/* A condensed variant for narrow side panels: position and location only,
   with the title linking through to the full position. */
.plj-list.is-compact{
gap: 0;
}

.plj-list.is-compact .plj-row{
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--plj-line);
  border-radius: 0;
  padding: 14px 0;
}

.plj-list.is-compact .plj-row:last-child{
border-bottom: 0;
}

.plj-list.is-compact .plj-actions,
.plj-list.is-compact .plj-detail,
.plj-list.is-compact .plj-summary{
display: none;
}

.plj-list.is-compact .plj-title{
  font-size: 0.98rem;
  margin: 0 0 4px;
}

.plj-row-location{
  font-family: 'Helvetica Neue', 'Cambay', Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--plj-ink-soft);
  display: none;
}

.plj-list.is-compact .plj-row-location{
display: block;
}

/* ------------------------------------------------------------ single page */

/* The theme hides the page title on this site and the position header is
   printed by the plugin, so the default entry header is not needed. */
.single-pl_job .entry-header{
  display: none;
}

.plj-single-head{
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--plj-line);
}

.plj-single-title{
  font-family: var(--plj-font-head);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--plj-maroon);
  margin: 0 0 8px;
}

.plj-single-location{
  font-family: var(--plj-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--plj-gold);
  margin: 0 0 18px;
}

.plj-single-head .plj-btn-apply-large{
  margin-top: 0;
}

.plj-single{
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--plj-line);
}

.plj-single .plj-meta{
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ misc */

.plj-empty{
    --plj-maroon: #6e2a24;
    --plj-maroon-dark: #551f1b;
    --plj-maroon-deep: #3f1512;
    --plj-maroon-tint: #7d3529;
    --plj-maroon-panel-line: rgba(255,255,255,0.20);
    --plj-gold: #a9782f;
    --plj-gold-light: #d8a94b;
    --plj-ink: #3c2a1e;
    --plj-ink-soft: #6b5a4a;
    --plj-on-dark: #ffffff;
    --plj-on-dark-soft: rgba(255,255,255,0.84);
    --plj-line: rgba(60,42,30,0.16);
    --plj-white: #ffffff;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 782px){

	.plj-row{
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
}

	.plj-actions{
  grid-column: 1;
  flex-direction: row;
  flex-wrap: wrap;
}

	.plj-btn{
  width: auto;
  flex: 1 1 140px;
}
}

@media (max-width: 480px){

	.plj-row{
  padding: 18px;
}

	.plj-title{
  font-size: 1.08rem;
}
}