/* WordPress-only tweaks */

.admin-bar .kr-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .kr-header {
    top: 46px;
  }
}

/* Inner page hero — compact homepage-style band */
.kr-inner-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 2rem;
  color: var(--kr-white);
}

.admin-bar .kr-inner-hero {
  padding-top: calc(150px + 32px);
}

@media (max-width: 782px) {
  .admin-bar .kr-inner-hero {
    padding-top: calc(150px + 46px);
  }
}

.kr-inner-hero__media {
  position: absolute;
  inset: 0;
  background:
    var(--kr-gradient-hero),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
  z-index: 0;
}

.kr-inner-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 30, 55, 0.15) 0%,
    rgba(0, 30, 55, 0.35) 100%
  );
  z-index: 0;
}

.kr-inner-hero__content {
  position: relative;
  z-index: 1;
}

.kr-inner-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--kr-white);
  margin-bottom: 0.5rem;
}

.kr-inner-hero__intro {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin-bottom: 0;
}

.kr-inner-hero__date {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.kr-inner-hero .kr-eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.kr-inner-hero .kr-breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.kr-inner-hero .kr-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.kr-inner-hero .kr-breadcrumbs a:hover {
  color: var(--kr-white);
}

.kr-project-single__figure img {
  width: 100%;
  height: auto;
}

.kr-entry-content {
  max-width: 48rem;
}

.kr-entry-content p:last-child {
  margin-bottom: 0;
}

.kr-docs-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.kr-doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--kr-white, #fff);
  border: 1px solid var(--kr-border, #e2e8f0);
  border-radius: var(--kr-radius, 12px);
}

.kr-doc-card__icon {
  font-size: 1.5rem;
  color: var(--kr-blue, #00509e);
}

.kr-doc-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.kr-doc-card__date {
  font-size: 0.875rem;
  color: var(--kr-text-muted, #5a6a7a);
  margin: 0.25rem 0 0;
}

.kr-doc-card__body {
  flex: 1;
}

.kr-doc-card__btn {
  flex-shrink: 0;
}

.kr-docs-loading,
.kr-docs-empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--kr-text-muted, #5a6a7a);
}

.kr-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--kr-white, #fff);
  border-top: 1px solid var(--kr-border, #e2e8f0);
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.kr-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kr-contact-person {
  padding: 1.25rem;
  background: var(--kr-blue-50, #e8f1fa);
  border-radius: var(--kr-radius, 12px);
  height: 100%;
}

.wp-caption {
  max-width: 100%;
}
