/*
Theme Name: Koda
Author: Camo
Author URI: http://camo.ee/
Version: 1.1.1
*/
.nice-select.competence .list li:not(:first-child) {
    white-space: normal;
    margin-bottom: 10px;
    line-height: 1.5;
}

.nice-select.competence {
    width: 300px;
    max-width: 100%;
}

.nice-select.competence .current {
    display: block;
    max-width: calc(100% - 10px);
    overflow: hidden;
    text-overflow: ellipsis;
}

span.linn {
    padding-left: 15px;
}

.kohtu__item .kohtu__item__body+.kohtu__item__footer.link__page svg {
    display: inline;
    width: 18px;
    height: 12px;
}

.kohtu__item__element svg {
    width: 23px;
    height: 23px;
}

.kohtu__item__element:last-child {
    display: block;
}

.kohtu__item__element:last-child div {
    display: inline-block;
}

.kohtu__item__element div svg {
    height: 23px;
    width: 23px;
}

select.region,
select.competence {
    background: #faf8f5;
    border: 1px solid #b8ae9e;
    border-radius: 12px;
    margin: 0 10px 0 0;
    display: inline-block;
    vertical-align: middle;
    padding: 20px 23px;
    font-size: 1.125em;
    color: inherit;
    width: 27%;
    font-weight: 500;
}

/* Accessibility utilities */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link: always black/white so WAVE doesn't measure Bootstrap blue on transparent */
.skip-link {
    background: #000000;
    color: #ffffff;
}

.screen-reader-text:focus,
.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.75rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* A11y panel: fieldset/legend (not fake headings) */
.wrapper__size .size__fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.wrapper__size .size__title,
.wrapper__size legend.size__title {
    color: #ffffff;
    font-size: 1.125em;
    font-weight: 600;
    margin: 0 0 7px;
    padding: 0;
    float: none;
    width: auto;
}

button.burger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
}

button.panel-title {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.blog__img img,
.team__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team__img {
    overflow: hidden;
}

.blog__pagination__disabled {
    display: inline-block;
    opacity: 0.45;
    cursor: default;
}

/* Search submit: icon-only, no browser chrome box */
.footer__form button[type="submit"],
.footer__form .footer__form__submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 62px;
    height: calc(100% - 10px);
    border-radius: 30px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background: transparent !important;
    cursor: pointer;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
}

.footer__form button[type="submit"]:focus-visible,
.footer__form .footer__form__submit:focus-visible {
    outline: 2px solid #005fcc !important;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Dark header bar: keep light text (exception to body contrast darkening) */
body header .wrap__menu .nav > li > a {
    color: #e8eaed;
}

body header .wrap__menu .nav > li > a:hover,
body header .wrap__menu .nav > li > a:focus {
    color: #ffffff;
}

body header .wrap__menu .nav > li.menu__item__current > a,
body header .wrap__menu .nav > li.current-menu-item > a {
    color: #2e3032;
}

/* Vaegnägijatele panel: high-contrast option must be yellow on black */
.wrapper__size label.label__contrast span {
    color: #ff0 !important;
}

/* Desktop: header-utils stays a flex row like before */
body header .wrap__header__nav .header-utils {
    display: contents;
}

/* Footer nav: wrap instead of breaking awkwardly */
footer .footer__inner .footer__nav {
    flex-wrap: wrap;
    gap: 6px 20px;
    row-gap: 8px;
}

footer .footer__inner .footer__nav li {
    margin-left: 0;
}

footer .footer__inner .footer__nav li a:after {
    right: -12px;
}

table.print_table {
    display: block;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

@media print {
    table.print_table {
        page-break-inside: auto !important;
        page-break-inside: avoid;
        -moz-column-break-inside: avoid;
        break-inside: avoid;
    }

    table.print_table tr {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }

    table.print_table {
        visibility: visible !important;
        position: relative !important;
        left: 0 !important;
    }
}

/* ===== Mobile menu rework (≤1199px) ===== */
@media only screen and (max-width: 1199px) {
    body header .wrap__header__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 90px 20px 30px;
        height: 100vh;
        max-height: 100dvh;
    }

    body header .wrap__header__nav.active {
        left: 0;
    }

    /* 1) Main nav first */
    body header .wrap__header__nav .wrap__menu {
        order: 1;
        position: static;
        background: transparent;
        padding: 0 0 20px;
        width: 100%;
    }

    body header .wrap__header__nav .wrap__menu .nav {
        display: block;
    }

    body header .wrap__header__nav .wrap__menu .nav > li > a {
        color: #2e3032;
        font-size: 1.35em;
        padding: 14px 8px;
        text-align: left;
    }

    body header .wrap__header__nav .wrap__menu .nav > li.menu__item__current > a,
    body header .wrap__header__nav .wrap__menu .nav > li.current-menu-item > a {
        background: #ffbe58;
        color: #2e3032;
        border-radius: 8px;
    }

    /* 2) Utils row: Vaegnägijatele + lang + search */
    body header .wrap__header__nav .header-utils {
        order: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px 12px;
        width: 100%;
        padding: 16px 0 8px;
        border-top: 1px solid #e5e0d8;
        margin-top: 8px;
    }

    body header .wrap__header__nav .header-utils .header__btn {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
    }

    body header .wrap__header__nav .header-utils .header__btn .wrap__visual .btn__size {
        position: static !important;
        left: auto !important;
        top: auto !important;
        display: inline-block;
        padding: 8px 14px;
        font-size: 0.85em;
        line-height: 1.2;
        white-space: nowrap;
        background: #ffffff;
    }

    body header .wrap__header__nav .header-utils .header__btn .wrap__language {
        margin: 0;
    }

    body header .wrap__header__nav .header-utils .header__btn .wrap__language .language-switcher {
        margin: 0;
    }

    body header .wrap__header__nav .header-utils .header__btn .wrap__language .language-switcher__summary {
        min-height: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 0.9em;
        padding-right: 28px;
    }

    body header .wrap__header__nav .header-utils > .footer__form {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        display: flex;
        margin: 4px 0 0;
    }

    body header .wrap__header__nav .header-utils > .footer__form input[type="search"],
    body header .wrap__header__nav .header-utils > .footer__form input {
        padding: 12px 70px 12px 18px;
        font-size: 0.95em;
    }

    /* 3) Secondary top links after utils */
    body header .wrap__header__nav .header-utils .header-top-nav,
    body header .wrap__header__nav .header-utils > ul.nav {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 16px;
        padding: 8px 0 0;
        margin: 0;
        list-style: none;
    }

    body header .wrap__header__nav .header-utils .header-top-nav > li,
    body header .wrap__header__nav .header-utils > ul.nav > li {
        display: inline-block;
    }

    body header .wrap__header__nav .header-utils .header-top-nav > li > a,
    body header .wrap__header__nav .header-utils > ul.nav > li > a {
        font-size: 0.95em;
        padding: 6px 0;
        color: #2e3032;
    }
}

/* -------------------------------------------------------------------------
   Contrast AA pass (WAVE R37) — global text/icon tokens on white/cream
   Measured fails: #ff823e/#cd9b17/#ffbe58/#ffcb4e/#9ea2a6/#9a9fa3/#959595/#0075fd
   Bright oranges OK as large button *backgrounds* with dark text.
   ------------------------------------------------------------------------- */

/* Gold / “Vaata kõiki” */
.home__post__left .view__all__link,
.home__post__right .view__all__link {
	color: #705600;
}
.home__post__left .view__all__link svg,
.home__post__right .view__all__link svg {
	fill: #705600;
}
.home__post__left .view__all__link:hover,
.home__post__left .view__all__link:focus,
.home__post__right .view__all__link:hover,
.home__post__right .view__all__link:focus {
	color: #5c4a00;
}
.home__post__left .view__all__link:hover svg,
.home__post__left .view__all__link:focus svg,
.home__post__right .view__all__link:hover svg,
.home__post__right .view__all__link:focus svg {
	fill: #5c4a00;
}

/* Orange text links + arrows (Lisainfo, View all, blog accents) */
.link__page,
.blog__btn a:hover,
.blog__btn a:focus,
.blog__btn span,
.home__post__left .post__list__item .post__title a:hover,
.home__post__left .post__list__item .post__title a:focus,
.home__post .post__list__right li .post__title a:hover,
.in-blog__recent__item__title a:hover,
.in-blog__recent__item__title a:focus {
	color: #a63d00;
}
.link__page svg,
.blog__btn a:hover svg,
.blog__btn a:focus svg {
	fill: #a63d00;
}
.link__page:hover,
.link__page:focus {
	color: #7a2d00;
}
.link__page:hover svg,
.link__page:focus svg {
	fill: #7a2d00;
}

.useful__text,
.in-blog__author__info {
	color: #5a574e;
}
.useful__item__link {
	color: #0051a8;
}

footer .footer__inner .footer__contact__item i {
	border-color: #595959;
	color: #595959;
}
footer .footer__inner .footer__nav li a:hover,
footer .footer__inner .footer__nav li a:focus,
footer .footer__inner .footer__nav li a:active,
footer .footer__inner .footer__nav li.current-menu-item a {
	color: #705600;
}
footer .footer__copy p a:hover {
	color: #705600;
}

/* Language switcher: native <details> pill (no JS onchange / WAVE jump-menu alert) */
body header .wrap__header__nav .header__btn .wrap__language .language-switcher {
	position: relative;
	display: inline-block;
	margin: 0 11px 0 20px;
	vertical-align: middle;
}
.language-switcher__summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-width: 88px;
	height: 46px;
	padding: 0 36px 0 22px;
	background: #faf8f5;
	border-radius: 35px;
	border: none;
	font-weight: bold;
	font-size: 15px;
	line-height: 46px;
	color: #2e3032;
	text-transform: uppercase;
	-webkit-user-select: none;
	user-select: none;
}
.language-switcher__summary::-webkit-details-marker {
	display: none;
}
.language-switcher__summary::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid #2e3032;
	border-bottom: 2px solid #2e3032;
	transform: rotate(45deg);
	pointer-events: none;
}
.language-switcher[open] .language-switcher__summary::after {
	margin-top: -2px;
	transform: rotate(225deg);
}
.language-switcher__current {
	color: #2e3032;
}
.language-switcher__list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 100;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: #faf8f5;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(46, 48, 50, 0.18);
}
.language-switcher__item {
	margin: 0;
}
.language-switcher__link,
.language-switcher__option {
	display: block;
	padding: 8px 22px;
	font-weight: bold;
	font-size: 15px;
	text-transform: uppercase;
	text-decoration: none;
	color: #2e3032;
}
.language-switcher__link:hover,
.language-switcher__link:focus {
	color: #705600;
	background: #f0ebe3;
}
.language-switcher__option.is-current {
	color: #705600;
}

/* Registration add/remove were <a href="javascript:;"> — keep look as <button> */
button.registr__list__btn__item {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
}
button.koolitus__in__link.buttons {
	border: 0;
	cursor: pointer;
}

/* White title on photo: solid fallback bg + button-matching radius */
.home__banner__title {
	color: #ffffff;
	background-color: rgba(46, 48, 50, 0.78);
	display: inline;
	padding: 0.2em 0.55em;
	border-radius: 35px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	line-height: 1.45;
}
.home__banner__item {
	background-color: #2e3032;
}

