body {
	/* background-color: #14274e; */
	color: #333;
	font-size: 1rem;
	/* font-family: Barlow, Montserrat, Arial, Helvetica, sans-serif; */
}
.row {
	display: flex;
	flex-wrap: wrap;
  }
  
  .col-12 {
	flex: 1 0 100%;
  }
  
  .col-md-4 {
	flex: 1 0 33.33%;
	max-width: 33.33%;
  }

  .profile-image-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 100%; /* 1:1 aspect ratio */
	width: 150px !important;
    height: 150px !important;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    border: 5px solid #e9ecef;

	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
  }
  
  .profile-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	/* position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%; */
	/* object-fit: cover; */
  }

 


/* a {
	color: #2e9cca;
} */

a:hover {
	text-decoration: none;
}

label {
	font-size: 15px !important;
}

a:focus {
	outline: 0 none #fff;
}

h1,
h1,
h3,
h4,
h5 {
	color: #14274e;
}

hr {
	border-top: 1px solid #ccc;
}

label {
	margin: 0;
	padding: 0;
	font-weight: 600;
}

strong {
	color: #14274e;
	font-weight: 900;
}

/* #modal-profile-badge_btn a svg{
	width:12px;
	height:12px;
} */

.add-term-to-profile{
	/* border: 1px solid #344767; */
	/* letter-spacing: normal !important; */
	padding: 0.3rem;
	border-radius: 5px;
	background-image: linear-gradient(#4093ed 50%, #017bfe 50%);
	/* background-color: #4093ed; */

	margin-right: 5px;
	color:#ffffff !important;

}
.add-term-to-profile > svg{
	width: 1rem !important;
	height: 1rem !important;
	margin-bottom: 0.3rem;
	transition: 1.5s ease-in-out;
}
/* .modal-profile:hover svg{

} */

.user-plus-icon{
	fill: #ffffff;
	/* fill: #344767; */
	/* fill:rgb(8, 118, 244); */
}

.modal-badge-pill svg ,.svg-icon-styles{
	width: 1rem;
	height: 1rem;
	fill:#344767;
	
	
}


/* canvas *******************************/

/* .canvas {
	position: relative;
} */



/* btn-default *******************************/

/* .btn-default {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 30px;
	outline: 0 none #fff;
	border: 1px solid #017bfe;
	border-radius: 15px;
	padding: 5px 20px;
	background-color: #fff;
	background-image: linear-gradient(#4093ed 50%, #017bfe 50%);
	background-size: 100%;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	white-space: nowrap;
	transition: all .3s cubic-bezier(.16, .8, .66, 1.54);
} */

/* .btn-default:hover,
.btn-default:focus {
	border: 1px solid #fff;
	background-color: #fff;
	background-image: linear-gradient(#fff 50%, #fff 50%);
	box-shadow: 0 0 0 5px rgb(94, 114, 156, 0.2);
	color: #017bfe;
} */

/* link-nav *******************************/

a.link-nav {
	display: inline-block;
	height: 33px;
	padding-top: 5px;
	/* color: #fff; */
	text-align: center;
	opacity: 0.7;
	overflow: hidden;
	transition: opacity 0.5s;
}

.content {
	padding-top:3rem;
}

.primary-term-badge {
	max-height: 55px !important;
	display: inline-block !important;
	padding: 14px 10px;
	min-width: 260px;
}

.badge-secondary {
	font-size: 0.5rem;
	border-radius: 0.25rem !important;
	margin-bottom: 2px;
	padding: 4px 7px;
	/*   border: 1px solid #f05454;
	background-color: #f05454;   
	color: #fff;    */
	font-weight: normal;
	/* font-size: 0.8rem; */
	text-align: left;
	white-space: normal !important;
}

/* 
#ui-datepicker-div{
	background-color: whitesmoke;
	border: ridge;
    padding: 0px 10px;
} */
/* 
a.link-nav:hover {
	color: #fff;
	text-decoration: none;
	opacity: 1;
} */

/* a.link-nav span {
	display: inline-block;
	width: 0px;
	height: 3px;
	background-color: #4093ed;
	transition: width 0.3s;
}

a.link-nav span::before {
	content: '\a';
	white-space: pre;
} */

/* a.link-nav:hover span {
	width: 100%;
	transition: width 0.3s;
}

a.link-nav.active {
	color: #fff;
	font-weight: 600;
	opacity: 1;
} */

/* link-nudge *******************************/

a.link-nudge:hover img {
	animation: nudge 0.3s;
}

@keyframes nudge {
	33% {
		transform: translateX(-5px);
	}

	66% {
		transform: translateX(2px);
	}

	100% {
		transform: translateX(0);
	}
}

/* link-spin *******************************/

a.link-spin:hover img {
	animation: spin 0.3s;
}

@keyframes spin {
	30% {
		transform: rotate(180deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* search-terms *******************************/

.search-terms {
	padding: 20px 5px 20px 20px;
	background-color: #fafafc;
	border: 1px solid #ccc;
	white-space: normal !important;
}

/* .search-terms .term-pill {} */

.search-terms .term-pill:hover {
	cursor: pointer;
}

.search-terms .term-pill a.term {
	color: #333;
}

.search-terms .term-pill a.remove {
	color: #ccc;
	font-family: arial;
	font-size: 0.8rem;
}

.search-terms .term-pill:hover a.term {
	color: #fff;
}

.search-terms .term-pill:hover a.remove {
	color: #ccc;
	font-family: arial;
	font-size: 0.8rem;
}

.search-terms .term-pill:hover a.term:hover {
	color: #fff;
	text-decoration: none;
}

.search-terms .term-pill:hover a.remove:hover {
	color: #fff;
	text-decoration: none;
}

/* term-related *******************************/
/* 
.term-related {
	margin-bottom: 2px;
	padding: 3px 7px;
	border: 1px solid #017bfe;
	background-color: #017bfe;
	color: #fff;
	font-weight: normal;
	font-size: 0.8rem;
	text-align: left;
	white-space: normal !important;
}

.term-related:hover {
	background-color: #4093ed;
	cursor: pointer;
}

.term-related a.term {
	color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.term-related a.remove {
	float: right;
	padding: 2px 0 0 5px;
	color: #eaf3fd;
	font-family: arial;
	font-size: 0.8rem;
}

.term-related:hover a.term {
	color: #fff;
}

.term-related:hover a.remove {
	color: #eaf3fd;
	font-family: arial;
	font-size: 0.8rem;
}

.term-related:hover a.term:hover {
	color: #fff;
	text-decoration: none;
}

.term-related:hover a.remove:hover {
	color: #fff;
	text-decoration: none;
}
 */

/* term-general *******************************/


.badge {
	font-weight: 600 !important;
}

.term-general {
	margin-bottom: 2px;
	padding: 3px 7px;
	border: 1px solid #f05454;
	background-color: #f05454;
	color: #fff;
	font-weight: normal;
	font-size: 0.8rem;
	text-align: left;
	white-space: normal !important;
}

.term-general:hover {
	background-color: #f17171;
	cursor: pointer;
}

.term-general a.term {
	color: #fff;
}

.term-general:hover a.term {
	color: #fff;
}

.term-general:hover a.term:hover {
	color: #fff;
	text-decoration: none;
}

/* term-profile *******************************/

.term-profile {
	margin-bottom: 2px;
	padding: 3px 7px;
	border: 1px solid #017bfe;
	background-color: #017bfe;
	color: #fff;
	font-weight: normal;
	font-size: 0.8rem;
	text-align: left;
	white-space: normal !important;
}

.term-profile:hover {
	background-color: #4093ed;
	cursor: pointer;
}

.term-profile a.term {
	color: #fff;
}

.term-related {
	margin-bottom: 5px;
	padding: 3px 7px;
	border: 1px solid #f0f0f0;
	/* #dee2e6;  */
	background-color: #f6f9fc;
	/*#dee2e6; */
	/* background-color: #017bfe;   */
	color: #14274e;
	font-weight: normal;
	font-size: 0.8rem;
	text-align: left;
	white-space: normal !important;
	box-shadow: 0 50px 100px -20px rgb(50 50 93 / 25%), 0 30px 60px -30px rgb(0 0 0 / 30%), inset 0 -2px 6px 0 rgb(10 37 64 / 35%);
}

.term-profile a.remove {
	float: right;
	padding: 2px 0 0 5px;
	color: #eaf3fd;
	font-family: arial;
	font-size: 0.8rem;
}

.term {
	color: #14274e !important;
}

.remove {
	color: #14274e !important;
}


.term-profile:hover a.term {
	color: #fff;
}

.term-profile:hover a.remove {
	color: #eaf3fd;
	font-family: arial;
	font-size: 0.8rem;
}

.term-profile:hover a.term:hover {
	color: #fff;
	text-decoration: none;
}

.term-profile:hover a.remove:hover {
	color: #fff;
	text-decoration: none;
}

/* row  *******************************/

.row-head {
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 10px;
	background-color: #f8f9fa;
	font-weight: 600;
}

.row-chart {
	border-bottom: 1px solid #ccc;
	padding: 10px;
}

/* disc-blue  *******************************/

ul.disc-blue {
	list-style: none;
}

ul.disc-blue li::before {
	display: inline-block;
	margin-left: -0.7em;
	width: 1em;
	line-height: 20px;
	content: "\25e6";
	color: #14274e;
	font-size: 20px;
	font-weight: bold;
}

/* highlight *******************************/

.highlight {
	background-image: linear-gradient(to top, #fff568 45%, rgba(0, 0, 0, 0) 40%);
}

.highlight:hover {
	text-decoration: none;
}

/* text *******************************/

.text-blue {
	color: #58b1d7;
}

.text-green {
	color: #017bfe;
}

.text-normal,
a.text-normal {
	font-weight: 500;
	color: #333 !important;
}

/* icons *******************************/

/* .icon {
	width: 32px;
}

.icon-xs {
	width: 12px;
}

.icon-sm {
	width: 18px;
}

.icon-md {
	width: 28px;
}

.icon-lg {
	width: 50px;
}

.icon-muted {
	opacity: 0.35;
}

.icon-muted:hover {
	opacity: 0.5;
} */

/* borders *******************************/

/* .bl-1 {} */

.bb-0 {
	border-bottom: 0px !important;
}

@media (min-width: 768px) {

	.bl-1 {
		border-left: 1px solid #ccc;
		padding-left: 40px;
	}
}

/* helpers *******************************/

.hide {
	display: none;
}

.required {
	color: #c00;
}

.click {
	cursor: pointer;
}

.blank {
	display: inline-block;
	width: 100px;
	border-bottom: 1px solid #333;
}

.italics {
	font-style: italic;
}

.strong {
	color: #14274e;
	font-weight: 600;
}

.nowrap {
	white-space: nowrap;
}

/* layout: footer *******************************/

.footer {
	padding: 10px;
	color: #fff;
	text-transform: uppercase;
	font-weight: 300;
	font-size: .8rem;
}

.footer .about {
	text-align: center;
	padding-bottom: 10px;
}

.footer .about a {
	color: #fff;
	font-weight: 500;
	font-size: .8rem;
	text-decoration: none;
}

.footer .links {
	font-size: 0.55rem;
	text-align: center;
}

.footer .links a {
	color: #fff;
	text-decoration: none;
}

.footer .links a:hover {
	opacity: 0.9;
	text-decoration: underline;
}

.footer .links .divider {
	display: inline-block;
	width: 1px;
	height: 1.2rem;
	margin: 0 10px;
	background-color: #333;
	opacity: 0.5;
}

.footer .social {
	padding: 20px 0;
	text-align: center;
}

.footer .social img {
	margin-left: 10px;
	max-width: 40px;
	opacity: 0.75;
	transition: all .3s cubic-bezier(.16, .8, .66, 1.54);
}

.footer .social img:hover {
	opacity: 1;
}

@media (min-width: 992px) {

	.footer {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 10px 40px;
	}

	.footer .about {
		width: 30%;
		text-align: left;
		padding-bottom: 0;
	}

	.footer .links {
		width: 40%;
		font-size: 0.8rem;
	}

	.footer .social {
		width: 30%;
		text-align: right;
		padding: 0;
	}
}


/* bootstrap mods *******************************/

.btn-outline-dark {
	border-color: #ccc;
}

.btn-link {
	color: #0092ca;
}

.btn-link:hover {
	text-decoration: none;
}

.nav-link {
	border: 1px solid #ddd !important;
	border-bottom-color: #fff !important;
	background-color: #f9f9fc;
	margin-right: 4px;
}

.dropdown-item:active {
	background-color: #017bfe;
}

.form-control:focus {
	border: 1px solid rgb(94, 114, 156, 0.2);
	box-shadow: 0 0 0 5px rgb(94, 114, 156, 0.2);
}

.badge {
	max-height: 25px;
	/* background: #017bfe; */
	cursor: pointer;
}

/* .badge-primary{
	background-color: #017bfe !important;
} */

form {
	display: contents;
}

.badge-dark {
	color: #fff;
	background-color: #343a40;
}

a {
	text-decoration: none;
}

.link-nudge {
	font-weight: 500;
}



.hide_element {
	display: none;
}

.pb-1 {
	display: flex;
}

.pb-1>* {
	margin-right: 5px;
	margin-left: 5px;
}

/* llm button */

.textarea-container {
	position: relative;
}

.btn-llm {
    position: absolute;
    bottom: 1.5rem; 
    right: 1.5rem;
}
.btn-custom {
	background-color: #007bff;
	color: #fff !important;;
	border: 1px solid #007bff;
	transition: background-color 0.3s ease;
}

.btn-custom:hover {
	background-color: #0056b3 !important;
}

.btn-custom i {
	margin-right: 5px;
}


/*search and create css*/

/* .search-form { */
/*position: absolute;*/
/*background: #14274E;*/
/* width: 100%;
    border-radius: 1%;
    padding: 23px 0 21px; */
/*margin-top: 220px;*/
/* } */
/* 
.search-form select, .search-form input {
    background-color: #f7f7f7;
    color: black;
    border: 4px solid #14274E;
    width: 100%;
    height: 46px;
    margin: 0;
    font: 10pt "Open Sans", sans-serif;
    padding: 0 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 3px;
}

label {
    display: block !important;
    font-size: 12px;
    font-weight: 600;
}

.search-form button {
    background: #f7f7f7;
    border: solid 1px rgba(0,0,0,0.3);
    border-radius: 3px;
    box-sizing: border-box;
    width: 50%;
    padding: 10px;
}

input:focus{
    outline: none;
} */

/* suggestion box list css */
/* 
.search-input .suggestion-box{
  padding: 0;
  opacity: 0;
  pointer-events: none;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #14274E;
}
.search-input.active .suggestion-box{
  padding: 10px 8px;
  opacity: 1;
  pointer-events: auto;
}
.suggestion-box button{
  list-style: none;
  padding: 8px 12px;
  
  width: 50%;
  cursor: pointer;
  border-radius: 3px;
}
.search-input.active .suggestion-box li{
  display: block;
}
.sugg-row:hover{
  background: #efefef;
}

.search-input .icon{
    position: absolute;
    right: 15px;
    top: 20px;
    height: 55px;
    width: 55px;
    text-align: center;
    line-height: 55px;
    font-size: 20px;
    color: #14274E;
    cursor: pointer;
}

.occup_img {
    width: 60px;
    height: 50px;
}

.sugg-row {
    cursor: pointer;
    padding: 5px;
}
 */


/*home_2 css*/

/* .select-type-results {
    width: auto;
    height: auto;
    border: 1px solid grey;
    border-radius: 5px;
}


.occup_img {
    width: 60px;
    height: 50px;
} */

.round {
    position: absolute;
    border: 2px solid #000000;
	background-color: #000000;
    width: 30px;
    height: 25px;
    border-radius: 0.45rem;
}

#cta{
    width:100%; cursor: pointer; position: absolute;
}

#cta .arrow{left: 21%;}
.arrow {position: absolute; bottom: 0;  margin-left:0px; width: 12px; height: 12px; background-size: contain; top:6px;}
.segunda{margin-left: 8px;}
.next {
	background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMxOS4xIDIxN2MyMC4yIDIwLjIgMTkuOSA1My4yLS42IDczLjdzLTUzLjUgMjAuOC03My43LjZsLTE5MC0xOTBjLTIwLjEtMjAuMi0xOS44LTUzLjIuNy03My43UzEwOSA2LjggMTI5LjEgMjdsMTkwIDE5MHoiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzE5LjEgMjkwLjVjMjAuMi0yMC4yIDE5LjktNTMuMi0uNi03My43cy01My41LTIwLjgtNzMuNy0uNmwtMTkwIDE5MGMtMjAuMiAyMC4yLTE5LjkgNTMuMi42IDczLjdzNTMuNSAyMC44IDczLjcuNmwxOTAtMTkweiIvPjwvc3ZnPg==);
}

@keyframes bounceAlpha {
  0% {opacity: 1; transform: translateX(0px) scale(1);}
  25%{opacity: 0; transform:translateX(10px) scale(0.9);}
  26%{opacity: 0; transform:translateX(-10px) scale(0.9);}
  55% {opacity: 1; transform: translateX(0px) scale(1);}
}

.bounceAlpha {
    animation-name: bounceAlpha;
    animation-duration:1.4s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}

.arrow.primera.bounceAlpha {
    animation-name: bounceAlpha;
    animation-duration:1.4s;
    animation-delay:0.2s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}

.round:hover .arrow{
    animation-name: bounceAlpha;
    animation-duration:1.4s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}
.round:hover .arrow.primera{
    animation-name: bounceAlpha;
    animation-duration:1.4s;
    animation-delay:0.2s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}
.temp-l{
	position: absolute;
    border: 2px solid #000000;
    background-color: #000000;
    width: 30px;
    height: 25px;
    border-radius: 0.45rem;
}
.temp-li{
	background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMxOS4xIDIxN2MyMC4yIDIwLjIgMTkuOSA1My4yLS42IDczLjdzLTUzLjUgMjAuOC03My43LjZsLTE5MC0xOTBjLTIwLjEtMjAuMi0xOS44LTUzLjIuNy03My43UzEwOSA2LjggMTI5LjEgMjdsMTkwIDE5MHoiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzE5LjEgMjkwLjVjMjAuMi0yMC4yIDE5LjktNTMuMi0uNi03My43cy01My41LTIwLjgtNzMuNy0uNmwtMTkwIDE5MGMtMjAuMiAyMC4yLTE5LjkgNTMuMi42IDczLjdzNTMuNSAyMC44IDczLjcuNmwxOTAtMTkweiIvPjwvc3ZnPg==);
}

.table1 {
	width: 100%;
	border-spacing: 10px; /* Adds spacing between rows and columns */
}

.table1 td {
	padding: 10px; /* Adds internal padding inside the table cells */
}

.table1 th {
	padding: 5px;
}

.table1 tr {
	margin-bottom: 5px; /* Adds vertical space between rows */
}

.user-react-about-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    gap: 10px;
    border-radius: 50px;
    width: 100%;
}

.like svg, .dislike svg {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .user-react-about-job {
        flex-direction: column;
        gap: 5px;
        padding: 5px;
        width: 100%;
    }

    .like svg, .dislike svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .user-react-about-job {
        padding: 4px;
        font-size: 12px;
    }

    .like svg, .dislike svg {
        width: 10px;
        height: 10px;
    }
}



/* ── Definition feedback (thumbs up / thumbs down) ──────────────────────────
   Replaces the old "Edit" link under the definition. Sized to read as a pair of
   quiet secondary actions, not as the page's primary CTA — "Add this to your
   profile" above it owns that role. */

.term-def-feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: -0.75rem;
	margin-bottom: 0.5rem;
}

.btn-def-feedback {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.3;
	color: #344767;
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 50rem;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-def-feedback:hover:not(:disabled) {
	color: #007bff;
	border-color: #007bff;
	background-color: #f4f9ff;
}

.btn-def-feedback:disabled {
	opacity: 0.55;
	cursor: default;
}

.term-def-feedback__msg {
	font-size: 0.85rem;
	line-height: 1.35;
}

.term-def-feedback__msg.is-ok {
	color: #0059b8;
}

.term-def-feedback__msg.is-error {
	color: #ea0606;
}

/* ── Feedback dialog ───────────────────────────────────────────────────────
   Self-contained overlay rather than a Bootstrap modal: this page loads two
   Bootstrap builds and its existing modals are split across both APIs. */

.tdf-overlay {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(20, 39, 78, 0.45);
}

.tdf-overlay[hidden] {
	display: none;
}

body.tdf-open {
	overflow: hidden;
}

.tdf-dialog {
	width: 100%;
	max-width: 34rem;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 1.5rem 3rem rgba(20, 39, 78, 0.25);
}

.tdf-dialog__head,
.tdf-dialog__foot {
	display: flex;
	align-items: center;
	padding: 1rem 1.25rem;
}

.tdf-dialog__head {
	border-bottom: 1px solid #e9ecef;
	justify-content: space-between;
}

.tdf-dialog__foot {
	border-top: 1px solid #e9ecef;
	justify-content: flex-end;
	gap: 0.5rem;
}

.tdf-dialog__title {
	margin: 0;
	font-weight: 700;
	color: #344767;
}

.tdf-dialog__close {
	border: 0;
	background: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #8392AB;
	cursor: pointer;
}

.tdf-dialog__body {
	padding: 1.25rem;
}

.tdf-hint,
.tdf-note {
	font-size: 0.9rem;
	color: #67748e;
}

.tdf-textarea {
	width: 100%;
	resize: vertical;
}

.tdf-alert {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: #ea0606;
}

.tdf-alert[hidden] {
	display: none;
}

.tdf-thanks {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	color: #0059b8;
	background: #eef6ff;
	border-radius: 0.5rem;
}

.tdf-subhead {
	font-weight: 700;
	color: #344767;
}

.tdf-draft {
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	background: #f8f9fa;
	border-left: 3px solid #007bff;
	border-radius: 0.25rem;
	color: #333;
}

#tdf-draft-wrap[hidden] {
	display: none;
}

/* ── Contributors section ─────────────────────────────────────────────── */

.term-contributor {
	padding: 0.75rem 0;
	border-bottom: 1px solid #f1f3f7;
}

.term-contributors > .term-contributor:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.term-contributor__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem;
	font-size: 0.95rem;
}

.term-contributor__vote {
	color: #8392AB;
}

.term-contributor__vote--up {
	color: #0059b8;
}

.term-contributor__who {
	font-weight: 600;
	color: #344767;
}

.term-contributor__what,
.term-contributor__when {
	color: #67748e;
	font-size: 0.85rem;
}

.term-contributor__when {
	margin-left: auto;
	white-space: nowrap;
}

.term-contributor__note {
	margin: 0.4rem 0 0 1.5rem;
	padding-left: 0.75rem;
	border-left: 2px solid #dee2e6;
	font-size: 0.9rem;
	color: #67748e;
}

/* ── "Your settings for this term" ──────────────────────────────────────────
   Shown only to a signed-in viewer who already has this term on their profile
   (views/terms.py -> my_term). Lloyd 2026-08-18: an added term looked exactly
   like a brand-new one, and the years of experience / VBQ they had recorded
   were nowhere on the page. Palette matches the job page's featured-candidate
   box so the two read as one system. */
.my-term-card { border: 1px solid #dbe6f5; border-left: 4px solid #0b73e2; }
.my-term-head { color: #14274e; }
.my-term-chip {
    display: inline-flex; flex-direction: column; gap: 2px;
    background: #f4f8fd; border: 1px solid #e2ecf8; border-radius: 8px;
    padding: 6px 12px; min-width: 120px;
}
.my-term-chip-k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: #7b8ba3; }
.my-term-chip-v { font-size: 0.95rem; font-weight: 700; color: #14274e; }
.my-term-vbq { border-top: 1px solid #eef2f7; padding-top: 12px; }
.my-term-vbq-head { font-weight: 700; color: #14274e; font-size: 0.9rem; }
.my-term-badge {
    font-size: 0.72rem; font-weight: 700; color: #fff;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.my-term-badge-score { background: #025cbc; }
.my-term-badge-level { background: #0b73e2; }
.my-term-badge-diff  { background: #14274e; }
.my-term-badge-mode  { background: #6c757d; }
.my-term-badge-ungraded { background: #94a3b8; }
.my-term-vbq-q { font-size: 0.85rem; color: #475569; }
.my-term-vbq-link { font-size: 0.85rem; font-weight: 700; color: #dc3545; text-decoration: none; }
.my-term-vbq-link:hover { text-decoration: underline; color: #dc3545; }
.my-term-novbq { font-size: 0.85rem; color: #64748b; }

/* ─── Stat row: Open Jobs / Closed Jobs / People ─────────────────────────────
   Three cards under the heading, blue numeral over a muted label. Replaces the
   label + dark-badge + animated-arrow rows that used to live inside the
   "Content with the …" accordion. A zero count renders as a plain card, not a
   link — the arrow it replaces was unclickable at zero too. */
.term-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.term-stat {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
a.term-stat:hover {
    border-color: #cfe3fb;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
    text-decoration: none;
}
.term-stat-empty { cursor: default; }
.term-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #007bff;
}
.term-stat-label {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: #667085;
}

/* ═══ MOBILE ═══════════════════════════════════════════════════════════════
   Phone layout for the term / occupation page. Everything below is inside
   max-width:767.98px, so the desktop page is untouched by construction.

   THE ACTUAL DEFECT this fixes: every attribute row is
     <div class="col col-sm-4"><label>…</label></div>
     <div class="col col-sm-8">…</div>
   `.col` is flex:1 at ALL widths — only the col-sm-* half is breakpoint-scoped
   — so below 576px the two cells still split the line. MEASURED on prod at
   390px: 17 such rows, label and value each 206px wide inside a ~358px
   container, i.e. sharing a line AND overflowing it sideways. They stack now.

   The existing max-width queries at :1038 and :1052 are not a precedent for
   coverage — they style only the reaction widget. */
@media (max-width: 767.98px) {

    /* The design's phone ground, carried over from
       feat/mobile-profile-and-term-design. profile_cards.css sets the same
       colour for `body:has(.profile_page)`, but that selector does not match
       the TERM page, so without this the term page kept the white ground while
       the profile page went blue. !important is required: header.css:85 sets
       body's background-color with !important itself, so a plain declaration
       here never wins. */
    body:has(.term-stat-row) {
        background-color: #f2faff !important;
    }

    .term-stat-row { gap: 8px; }
    .term-stat { padding: 10px 8px; text-align: center; }
    .term-stat-num { font-size: 1.4rem; }
    .term-stat-label { font-size: .68rem; }

    /* ── The label / value stack ───────────────────────────────────────── */
    .row > .col.col-sm-3,
    .row > .col.col-sm-4,
    .row > .col.col-sm-8,
    .row > .col.col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .row > .col.col-sm-4 > label,
    .row > .col.col-sm-3 > label {
        display: block;
        font-weight: 600;
        color: #14274e;
        margin-bottom: 6px;
    }
    .row > .col.col-sm-8 { margin-bottom: 14px; }
    /* These value cells are `d-flex gap-2` holding a badge-wrapper plus an add
       control; on one phone line they run off the edge without wrapping. */
    .row > .col.col-sm-8.d-flex { flex-wrap: wrap; }

    /* ── Cards and accordion headers ───────────────────────────────────────
       The markup is .card > .card-header[data-toggle=collapse]; nothing marked
       these as tappable, so a collapsed section read as a dead heading. */
    .card {
        border-radius: 14px;
        border: 1px solid #e9edf3;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    }
    .card.mb-3 { margin-bottom: 12px !important; }
    .card-header {
        padding: 14px 42px 14px 16px;
        background: #fff;
        border-bottom: 0;
        border-radius: 14px;
        cursor: pointer;
        position: relative;
    }
    .card-header h5 {
        margin: 0;
        font-size: .95rem;
        font-weight: 600;
        line-height: 1.35;
        color: #14274e;
    }
    .card-header h5 em { font-style: normal; }
    /* Chevron. Bootstrap leaves `.collapsed` on the CLOSED trigger, so the
       rotation is keyed off that, not off the open state. */
    .card-header::after {
        content: "";
        position: absolute;
        right: 16px;
        top: 50%;
        width: 9px;
        height: 9px;
        margin-top: -6px;
        border-right: 2px solid #667085;
        border-bottom: 2px solid #667085;
        transform: rotate(45deg);
        transition: transform .18s ease;
    }
    .card-header.collapsed::after {
        transform: rotate(-45deg);
        margin-top: -3px;
    }
    .card-body { padding: 14px 16px; overflow-wrap: anywhere; }

    /* ── Type ──────────────────────────────────────────────────────────── */
    h1 { font-size: 1.5rem; line-height: 1.25; word-wrap: break-word; }
    .card-body > h5, .pb-4 > h5 { font-size: 1rem; line-height: 1.4; }

    /* ── Chips ─────────────────────────────────────────────────────────── */
    .badge-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
    .badge {
        white-space: normal;
        text-align: left;
        font-size: .8rem;
        padding: .45em .9em;
    }
    .primary-term-badge { min-width: auto !important; }

    /* ── Manage links (Edit / Remove) ──────────────────────────────────── */
    .links-manage,
    .links-manage-sm {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 6px;
    }

    /* Nothing on the page may scroll sideways. */
    img, video, iframe, table { max-width: 100%; }
}
