  /**************************/
 /***   PAGE STRUCTURE   ***/
/**************************/

	body.ui-library {
		padding: 0;
	}

	#screen-content>h1 {
		font-size: 40px;
	}
	#screen-content>h2 {
		font-size: 32px;
	}
	body.ui-library .explanation h3 {
		font-size: 24px;
	}
	body.ui-library .explanation h4 {
		font-size: 18px;
		margin-bottom: 0;
	}

	.component {
		margin: 50px 0;
		padding: 0 0 0 20px;
		border-left: 3px solid #CCC;
		outline: 0;
	}
	.component .demo {
		border: 1px dashed #CCC;
		padding: 20px;
		background: white;
		max-width: 750px;
	}
	.component .demo.transparent {
		background: transparent;
	}
	.component .demo.invisible {
		display: none;
	}
	.explanation {
		max-width: 750px;
		font-size: 16px;
	}
	.explanation code {
		background: #CDF;
		color: #555;
		padding: 0px 4px;
		display: inline-block;
		border-radius: 3px;
	}
	.component .code-sample {
		max-width: 750px;
	}
	#styleguide-navigation {
		flex: 0 0 300px;
	}
	#styleguide-navigation ul {

	}
	#styleguide-navigation ul a.current {
		font-weight: bold;
		color: black;
	}

	.explanation>h2 {
		font-size: 24px;
	}

	.demo-placeholder{background:#EEE;text-align:center;font-size: 40px;padding:160px 120px;border: 1px solid #DDD;color:#CCC;font-size: bold;}

  /******************************/
 /***   SECTION NAVIGATION   ***/
/******************************/

	#styleguide-navigation {
		text-align: right;
	}
	#styleguide-navigation>ul {
		list-style-type: none;
		padding: 20px;
		margin: 0;
	    position: fixed;
	    right: calc(100% - 280px);
	    top: 0;
	    height: 100vh;
	    overflow: auto;
	}
	#styleguide-navigation ul a,
	#styleguide-navigation ul strong {
		display: block;
		line-height: 1.2;
	}
	#styleguide-navigation ul strong {
		font-size: 16px;
		font-weight: bold;
		padding: 0;
		color: #393c47;
	}
	#styleguide-navigation ul li:not(:first-child) strong {
		padding: 16px 0 0 0;
		cursor: pointer;
	}
	#styleguide-navigation ul a {
		color: #999;
		font-size: 14px;
		padding: 4px 0;
		font-weight: normal;
	}
	#styleguide-navigation ul a:hover {
		color: #555;
	}
	#styleguide-navigation ul a.current {
		color: #555;
		font-weight: bold;
		position: relative;
	}

	#styleguide-navigation ul a.current:after {
		content: "";
		position: absolute;
		display: block;
		right: -12px;
		top: calc(50% - 4px);
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 4px 0 4px 6px;
		border-color: transparent transparent transparent #888;
	}

	#styleguide-navigation ul ul {
		list-style-type: none;
		padding: 0;
		margin: 0;
		display: none;
	}

  /**********************/
 /***   FAIL & WIN   ***/
/**********************/
	
	.sample-heading {
		margin: 20px 0 0 0;
		font-weight: bold;
	}
	
	.sample-heading:before {
		content: "";
		display: inline-block;
		margin: 3px 5px 0 0;
		width: 16px;
		height: 16px;
		background-repeat: no-repeat;
		background-size: contain;
		vertical-align: top;

	}
	.sample-heading.fail strong {
		color: #ff4040;
	}
	.sample-heading.fail:before {
		background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 427 427'%3E%3Cpath fill='%23ff4040' d='M213 0a213 213 0 1 0 0 427 213 213 0 0 0 0-427zm118 277l-54 54-64-63-63 63-54-54 63-64-63-63 54-54 63 63 64-63 54 54-63 63 63 64z'/%3E%3C/svg%3E")
	}
	.sample-heading.success strong {
		color: #03b452;
	}
	.sample-heading.success:before {
		background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 427 427'%3E%3Cpath fill='%2303b452' d='M213 0a213 213 0 1 0 0 427 213 213 0 0 0 0-427zm-39 323l-94-94 32-31 62 62 141-141 31 32-172 172z'/%3E%3C/svg%3E")
	}

  /*************************/
 /***   DO'S & DON'TS   ***/
/*************************/
	
	.user-tip {
		padding: 4px 0 4px 40px;
		position: relative;
	}
	
	.user-tip:after {
		content: "";
		display: block;
		position: absolute;
		width: 16px;
		height: 16px;
		top: 8px;
		left: 16px;
		background-repeat: no-repeat;
		background-size: contain;
		vertical-align: top;

	}
	.user-tip.do:before {
		content: "Do: ";
		color: #03b452;
		font-weight: bold;
	}
	.user-tip.dont:before {
		content: "Don't: ";
		color: #ff4040;
		font-weight: bold;
	}
	.user-tip.do:after {
		background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 427 427'%3E%3Cpath fill='%2303b452' d='M213 0a213 213 0 1 0 0 427 213 213 0 0 0 0-427zm-39 323l-94-94 32-31 62 62 141-141 31 32-172 172z'/%3E%3C/svg%3E")
	}
	.user-tip.dont:after {
		background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 427 427'%3E%3Cpath fill='%23ff4040' d='M213 0a213 213 0 1 0 0 427 213 213 0 0 0 0-427zm118 277l-54 54-64-63-63 63-54-54 63-64-63-63 54-54 63 63 64-63 54 54-63 63 63 64z'/%3E%3C/svg%3E")
	}

  /**************************/
 /***   COLOR SWATCHES   ***/
/**************************/

	.color-swatch {
		width: 120px;
		height: 150px;
		display: inline-block;
		margin: 10px;
		position: relative;
		border-radius: 4px;
		box-shadow: 0 8px 32px rgba(0,0,0,.1);
		cursor: pointer;
		transition: 250ms;

	}
	.color-swatch:hover {
		box-shadow: 0 12px 32px rgba(0,0,0,.2);
	}
	.color-swatch .sample {
		height: 120px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: rgba(255,255,255,.5);
		font-size: 18px;
		font-weight: bold;
		transition: 250ms;
		border-radius: 8px 8px 0 0;
		position: relative;
	}
	.color-swatch:hover .sample {
		color: white;
	}
	.color-swatch .sample:after {
		content: "";
		display: block;
		position: absolute;
		/*top: 5%;*/
		/*left: 5%;*/
		width: 100%;
		height: 100%;
		background: linear-gradient(45deg, rgba(255,255,255,0) 60%, rgba(255,255,255,.25) 100%);	
		border-radius: 4px 4px 0 0;
	}
	.color-swatch .sample.light {
		color: rgba(0,0,0,.5);
	}
	.color-swatch:hover .sample.light {
		color: black;
	}
	.color-swatch .caption {
		background: white;
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 12px;
		color: #393c47;
		border-radius: 0 0 8px 8px;
		color: #999;
		transition: 250ms;
	}
	.color-swatch:hover .caption {
		color: #555;
	}
	.color-swatch .sample:before {
		content: "Copied!";
		position: absolute;
		text-align: center;
		font-size: 14px;
		font-weight: normal;
		width: 100%;
		top: 37px;
		opacity: 0;
	}
	.color-swatch.copied .sample:before {
		animation-duration: .5s;
		animation-name: copied;
		animation-timing-function: ease-out;
	}
	@keyframes copied {
	  0% {
	    opacity: 1;
	    transform: translate3d(0, 0, 0);
	  }
	  50% {
	    opacity: .66;
	  }
	  100% {
	    opacity: 0;
	    transform: translate3d(0, -15px, 0);
	  }
	}

	/* tooltip */
	.color-swatch .use {
		position: absolute;
		width: 120%;
		left: -9999px;
		top: 155px;
		padding: 10px;
		color: white;
		background: #393c47;
		background: linear-gradient(to top, #393c47 0%, #4D546A 100%);
		box-shadow: 0 12px 32px rgba(0,0,0,.3);
		z-index: 2;
		font-size: 12px;
		border-radius: 8px;
		opacity: 0;
		transform: translate3d(0, 8px, 0);
		transition: opacity 250ms, transform 250ms, left 0ms 250ms;
		pointer-events: none;
	}
	.color-swatch:hover .use {
		left: -10%;
		opacity: 1;
		max-height: 999px;
		transform: translate3d(0, 0px, 0);
		transition: opacity 250ms 250ms, transform 250ms 250ms, left 0ms;
		z-index: 3;
	}
	.color-swatch .use:before {
		content: "Used for:";
		display: block;
		font-weight: bold;
		opacity: .5;

	}
	.color-swatch .use:after {
		content: "";
		position: absolute;
		top: -8px;
		left: calc(50% - 4px);
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 0 8px 8px 8px;
		border-color: transparent transparent #4D546A transparent;
	}
	.color-swatch .use img {max-width: 100%;}
.sfe-search-builder button { margin: 2px 4px 2px 0; }
