/*
Theme Name:     prosenttikulttuurille
Theme URI:      n/a
Template:       kadence
Author:         Hurja Solutions Oy
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
.media-router .media-menu-item {
  color: inherit;
}
.show-on-hover {
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.target-to-hover {
	cursor: pointer;
}

.target-to-hover:hover .show-on-hover {
	opacity: 1;
	height: auto;
	transition: all 0.3s ease;
}

.entry-content.single-content > .kb-row-layout-wrap:first-child {
    padding-top: 80px;
}

.post-type-archive-palveluntarjoaja .site-main,
.single-palveluntarjoaja .site-main {
  max-width: 1290px;
  margin: 96px auto;
  padding: 48px 24px;
  border-radius: 16px;
}

.single-palveluntarjoaja .site-main:has(.has-post-thumbnail) {
  padding-top: 0;
}

.kp-kulttuuripankki {
  background: url("images/login.webp") top center / cover no-repeat fixed;
}

.kp-kulttuuripankki .site-main {
  background: #fff;
}


.single-palveluntarjoaja .entry-header {
  margin-bottom: 16px;
}

.single-palveluntarjoaja .entry-thumbnail,
.single-kesataiteilija .entry-thumbnail {
  width: calc(100% + 48px);
  margin: 48px -24px;
}

.single-palveluntarjoaja .entry-thumbnail img,
.single-kesataiteilija .entry-thumbnail img {
  width: 100%;
  height: 530px;
  display: block;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
}

.single-palveluntarjoaja .kp-back-link {
  margin: 4px 0 12px;
}

.single-palveluntarjoaja .kp-back-link a {
  color: #4b5563;
  text-decoration: none;
}

.single-palveluntarjoaja .kp-back-link a:hover {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}


.single-palveluntarjoaja .entry-content {
  margin-top: 16px;
}

.single-palveluntarjoaja .kp-meta-divider {
  margin: 0 6px;
  color: #9ca3af;
}

.single-palveluntarjoaja .kp-meta-link {
  color: #4b5563;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-palveluntarjoaja .kp-meta-link:hover {
  color: #111827;
}

.single-palveluntarjoaja .kp-provider-details {
  margin-top: 28px;
}

.single-palveluntarjoaja .kp-provider-details h2 {
  margin: 20px 0 8px;
  font-size: 1.35rem;
}

.single-palveluntarjoaja .kp-nav-sub {
  display: block;
  font-size: .9rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.single-palveluntarjoaja .kp-provider-details ul {
  margin: 0 0 8px 1.25rem;
}

.single-palveluntarjoaja .post-navigation {
  margin-top: 32px;
}

.single-palveluntarjoaja .post-navigation .nav-previous::after {
  content: none !important;
  display: none !important;
}

.single-palveluntarjoaja .post-navigation .nav-links {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.single-palveluntarjoaja .post-navigation a {
  display: block;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #111827;
  box-shadow: none;
}

.single-palveluntarjoaja .post-navigation .nav-subtitle {
  font-size: .9rem;
  font-weight: 500;
  color: #111827;
}

.single-palveluntarjoaja .post-navigation .nav-title {
  font-weight: 500!important;
  margin-top: 0;
}

.single-palveluntarjoaja .kp-nav-title {
  font-family: var(--global-heading-font-family, inherit);
  font-weight: 600;
}

.post-type-archive-palveluntarjoaja .page-header {
  margin-bottom: 24px;
}

.kp-password-page {
  max-width: none;
  padding: 0;
}

.kp-password-bg {
  width: 100%;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 120px;
  background: url("images/login.webp") center / cover no-repeat;
}

.kp-password-card {
  width: min(420px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.kp-password-card h1 {
  margin: 0 0 8px;
}

.kp-password-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.kp-password-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.kp-password-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--global-palette1, #7b2477);
  color: var(--global-palette9, #fff);
  border: 0;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.kp-password-form input[type="submit"]:hover {
  background: var(--global-palette2, #233e80);
}

.post-type-archive-palveluntarjoaja .kp-pagination {
  margin-top: 24px;
}

.kb-post-list-item .entry-content-wrap {
	background-color: white;
}

.kb-advanced-slide-inner {
	overflow: visible !important;
}

/* UI helpers for provider flows */
.kp-button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--global-palette1, #7b2477);
  color: var(--global-palette9, #fff);
  border: 0;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.kp-button:hover { background: var(--global-palette2, #233e80); color: var(--global-palette9, #fff); }

.kp-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.kp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

@media (max-width: 1100px) {
  .kp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .kp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.kp-card .entry-title { margin: 0 0 .5rem 0; font-size: 1.125rem; }
.kp-card .entry-summary { font-size: .95rem; color: #374151; }

.provider-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin: -16px -16px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.provider-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kp-card .entry-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3.6em;
}
.kp-card .kp-meta { margin-top: .5rem; font-size: .85rem; color: #6b7280; }
.kp-card__actions { margin-top: .5rem; }

.kp-filters { margin-top: 1rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kp-filters label { display: grid; gap: .35rem; font-weight: 600; color: #374151; }
.kp-filters select, .kp-filters input[type="search"] {
  width: 100%; padding: .55rem .7rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
}
.kp-filters__actions { align-self: end; }

/* Auth page */
.kp-auth { display: grid; place-items: center; padding: 48px 16px; }
.kp-auth__card { width: min(460px, 100%); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.kp-auth__title { margin: 0 0 .25rem 0; }
.kp-auth__intro { margin: 0 0 1rem 0; color: #4b5563; }
.kp-auth__form .input, .kp-auth__form input[type="text"], .kp-auth__form input[type="password"], .kp-auth__form input[type="email"] {
  width: 100%; padding: .6rem .7rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
}
.kp-auth__form p { margin: .6rem 0; }
.kp-auth__form .button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--global-palette1, #7b2477);
  color: var(--global-palette9, #fff);
  border: 0;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.kp-auth__form .button:hover { background: var(--global-palette2, #233e80); color: var(--global-palette9, #fff); }
.kp-auth__links { margin-top: .5rem; }

.kp-notice { border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-weight: 500; }
.kp-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Edit page */
.kp-edit { display: grid; place-items: center; padding: 24px 16px; }
.kp-edit__card { width: min(860px, 100%); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.kp-edit__title { margin: 0 0 .25rem 0; }
.kp-edit__intro { margin: 0 0 1rem 0; color: #4b5563; }
.kp-edit__notice {
  margin: 0 0 .75rem 0;
  color: #166534;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}
.kp-edit__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kp-edit__logout-link {
  color: #4b5563;
  text-decoration: none;
}

.kp-edit__logout-link:hover {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kp-edit__form .acf-field input[type="text"],
.kp-edit__form .acf-field input[type="email"],
.kp-edit__form .acf-field input[type="url"],
.kp-edit__form .acf-field textarea,
.kp-edit__form .acf-field select {
  width: 100%; padding: .6rem .7rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
}
.kp-edit__form .acf-form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--global-palette1, #7b2477);
  color: var(--global-palette9, #fff);
  border: 0;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.kp-edit__form .acf-form-submit input[type="submit"]:hover { background: var(--global-palette2, #233e80); color: var(--global-palette9, #fff); }
