.dark-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--color-btn-primary);
  color: #fff;
  cursor: pointer;
  opacity: 0.82;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: background-color 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

.dark-toggle:hover {
  background: var(--color-btn-hover);
  opacity: 1;
  transform: translateY(-2px);
}

.dark-toggle:focus-visible {
  opacity: 1;
}

.dark-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 1199.98px) {
  /* Keep the appearance control in the sticky header so it cannot cover content. */
  .kreativ-site-nav > .dark-toggle {
    position: static;
    order: 1;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
    color: var(--color-text);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--color-text) 30%, transparent);
    box-shadow: none;
    opacity: 1;
  }

  .kreativ-site-nav > .dark-toggle:hover {
    color: var(--color-bg);
    background: var(--color-btn-primary);
    transform: none;
  }
}

.kreativ-footer {
  text-align: center;
}

.kreativ-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.kreativ-footer-links-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kreativ-footer-meta {
  margin: 0;
  text-align: center;
}

.kreativ-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.kreativ-custom-header {
  overflow: hidden;
}

.kreativ-custom-header-image {
  display: block;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

.is-style-kreativ-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

.kreativ-callout {
  border: 2px solid currentColor;
  margin: 2rem 0;
  padding: 2rem;
}

.kreativ-home-page-content {
  max-width: 52rem;
  margin-top: 1.5rem;
}

.kreativ-link-list,
.kreativ-glossary-grid {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
}

.kreativ-glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.kreativ-glossary-grid h2,
.kreativ-link-list h2 {
  margin-top: 0;
}

.page_column_list {
  padding-left: 1.25rem;
}

@media (max-width: 767.98px) {
  .kreativ-glossary-grid {
    grid-template-columns: 1fr;
  }
}

.kreativ-skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 10001;
  padding: 0.6rem 0.9rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.kreativ-skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Core content classes keep editor-generated content legible in classic templates. */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1rem auto;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

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

.wp-caption-text,
.gallery-caption {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.bypostauthor > .comment-body {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.post_comments {
  margin-top: 3rem;
}

.commentlist {
  padding-left: 1.25rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  clip: auto !important;
  clip-path: none;
  color: #111;
  display: block;
  font-size: 1rem;
  height: auto;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}
