/*
 Theme Name: Krediidiskoor
 Description: Krediidiskoor.ee theme, child of Twenty Seventeen.
 Author: Register OÜ
 Author URI: https://ir.ee
 Template: twentyseventeen
 Version: 2.0.1
 Text Domain: krediidiskoor
 */

/* Front page: the hero sections fill the content area edge to edge. */
.home #content.site-content {
	padding: 0;
}

/* Front page: desktop/tablet hero and the phone layout, switched at 760px. */
.kd-mobile {
	display: none;
}

.kd-mobile.kd-front {
	background-image: url('assets/static/images/taust.png');
}

@media (max-width: 760px) {
	.kd-desktop {
		display: none;
	}

	.kd-mobile {
		display: block;
	}
}

/* Keep the footer at the bottom of the window on short pages. */
body:not(.home) .site-content-contain {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body:not(.home) .site-content-contain > .site-content {
	flex: 1 0 auto;
}

/* Pages other than the front page and the about pages start below the fixed navbar. */
body:not(.home):not(.kd-about-page) .site-content {
	padding-top: 120px;
}

/* Links (colours from the design guide, assets/static/images/varvikoodid.png) */
a,
.entry-content a,
.entry-summary a,
.widget a {
	color: #00a4cd;
	box-shadow: none;
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus,
.entry-summary a:hover,
.widget a:hover {
	color: #00839f;
	box-shadow: none;
}

/* Footer, after the design guide: three columns and a disclaimer. */
.site-footer {
	margin-top: 0;
	border-top: 0;
	background: #fafafa;
	color: #040404;
	font-size: 15.5px;
	font-weight: 300;
	line-height: 1.6;
}

.kd-footer {
	/* 1596px of content at the guide's 1928px width, scaling with the
	   window like the front page hero, plus the side padding. */
	max-width: calc(min(1596px, 82.8vw) + 40px);
	margin: 0 auto;
	padding: 89px 20px 45px;
}

/* The first column holds two 208px link columns plus its 30px gap. */
.kd-footer__cols {
	display: grid;
	grid-template-columns: minmax(446px, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.kd-footer__col {
	padding-right: 30px;
}

.kd-footer__title,
.site-footer .widget-title,
.site-footer .now-text {
	margin: 0 0 18px;
	padding: 0;
	font-size: 17.5px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #373a3c;
}

/* Widget area markup from Twenty Seventeen and the "Võimalused" widget. */
.site-footer .widget-area {
	padding: 0;
}

.site-footer .widget-column.footer-widget-1,
.site-footer .widget-column.footer-widget-2 {
	float: none;
	width: 100%;
}

.site-footer .widget {
	padding: 0;
}

.kd-footer__col--links .row {
	margin: 0;
}

.kd-footer__col--links .row > [class*="col-"] {
	flex: 0 0 auto;
	max-width: none;
	padding: 0;
}

.kd-footer__col--links .col-md-6 {
	width: 208px;
}

.site-footer .widget-area a,
.kd-footer__link,
.kd-footer__disclaimer a {
	color: #00a4cd;
	text-decoration: none;
	box-shadow: none;
}

.site-footer .widget-area a {
	display: block;
	line-height: 29px;
}

.site-footer .widget-area a:hover,
.site-footer .widget-area a:focus,
.kd-footer__link:hover,
.kd-footer__link:focus,
.kd-footer__disclaimer a:hover,
.kd-footer__disclaimer a:focus {
	color: #00839f;
	text-decoration: underline;
	box-shadow: none;
}

.kd-footer__text {
	max-width: 420px;
	margin: 0 0 8px;
}

.kd-social {
	display: flex;
	align-items: center;
	gap: 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kd-social a {
	display: block;
	color: #00a4cd;
	box-shadow: none;
}

.kd-social a:hover,
.kd-social a:focus {
	color: #00839f;
	box-shadow: none;
}

.kd-social svg {
	display: block;
	width: auto;
	height: 21px;
	fill: currentColor;
}

.kd-footer__disclaimer {
	margin: 48px 0 0;
	font-size: 10px;
	font-weight: 400;
	line-height: 13px;
	text-align: justify;
	color: #808080;
}

@media (max-width: 991px) {
	.kd-footer {
		padding-top: 56px;
	}

	.kd-footer__cols {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		row-gap: 36px;
	}

	.kd-footer__col--links {
		grid-column: 1 / -1;
	}
}

@media (max-width: 575px) {
	.kd-footer {
		max-width: none;
	}

	.kd-footer__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.kd-footer__col--links .col-md-6 {
		width: 100%;
	}

	.kd-footer__disclaimer {
		font-size: 11px;
		line-height: 15px;
		text-align: left;
	}
}
