@charset "UTF-8";
/**
 * KatCanDo Quotes — page template, floating menu button, commentary.
 */
body.kcd-canvas {
  margin: 0;
}

.kcd-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.kcd-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  max-width: none;
}

.kcd-main > .kcd-explorer {
  margin: 0 !important;
  width: 100%;
  max-width: none;
}

/* Block themes add block-gap margins between top-level parts. */
.wp-site-blocks.kcd-page > * + * {
  margin-block-start: 0;
}

.kcd-home-content,
.kcd-commentary {
  width: min(100% - 2rem, 48rem);
  margin: 2.5rem auto;
  line-height: 1.7;
}

.kcd-commentary[hidden] {
  display: none;
}

.kcd-author-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid currentColor;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.kcd-author-note h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* Keep the floating menu button clear of the share bar / hint. */
.kcd-has-menu-btn .kcd-stage {
  padding-bottom: 6.5rem;
}

.kcd-has-menu-btn .kcd-hint {
  bottom: 5.5rem;
}

/* Settings → Categories: catlist in admin is styled in admin.css. */
/* ---------------------------------------------------------------------
 * Floating menu button
 * ------------------------------------------------------------------- */
.kcd-menu-btn {
  position: fixed;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--kcd-menu-lift, 0px));
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--kcd-menu-bg, #111827);
  color: var(--kcd-menu-fg, #fff);
  font: 600 0.9rem/1 system-ui, sans-serif;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.kcd-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.kcd-menu-btn:focus-visible {
  outline: 3px solid var(--kcd-menu-bg, #111827);
  outline-offset: 3px;
}
.kcd-menu-btn.is-round {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  padding: 0.25rem;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.1;
}
.kcd-menu-btn.is-pill {
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
}
.kcd-menu-btn.is-left {
  left: max(1rem, env(safe-area-inset-left));
}
.kcd-menu-btn.is-right {
  right: max(1rem, env(safe-area-inset-right));
}
.kcd-menu-btn.is-center {
  left: 50%;
  translate: -50% 0;
}

.kcd-menu-dialog {
  width: min(100% - 2rem, 26rem);
  max-height: min(80vh, 40rem);
  border: 0;
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, overlay 0.2s allow-discrete, display 0.2s allow-discrete;
}
.kcd-menu-dialog[open] {
  opacity: 1;
  transform: none;
}
.kcd-menu-dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease, overlay 0.2s allow-discrete, display 0.2s allow-discrete;
}
.kcd-menu-dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}

@starting-style {
  .kcd-menu-dialog[open] {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  .kcd-menu-dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
  }
}
.kcd-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.kcd-menu-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.kcd-menu-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.kcd-menu-nav {
  padding: 0.5rem 0.75rem 1rem;
}

.kcd-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kcd-menu-list a {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.kcd-menu-list a:hover, .kcd-menu-list a:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}
.kcd-menu-list .sub-menu {
  list-style: none;
  padding-left: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .kcd-menu-dialog,
  .kcd-menu-dialog::backdrop,
  .kcd-menu-btn {
    transition: none;
  }
}
