/* CamperKompas - site chrome (header, offcanvas panel, footer) - spec section 4 */

:root {
  --ck-accent: #7a8a5e;
  --ck-accent-700: #56633f;
  --ck-accent-800: #3d472b;
  --ck-accent-900: #272e1b;
  --ck-accent-100: #f0fae1;
  --ck-ink: #201e1d;
  --ck-muted: #645c50;
  --ck-meta: #a19786;
  --ck-border: #eee7db;
  --ck-border-strong: #dcd3c4;
  --ck-n100: #f7f6f4;
  --ck-shadow-lg: 0 12px 32px rgba(46, 43, 37, .22);
}

/* Blocksy free has no button typography option; the spec calls for 16px/600. */
html:root {
  --theme-button-font-family: Manrope, sans-serif;
  --theme-button-font-size: 16px;
  --theme-button-font-weight: 600;
}

/* ---------- global ---------- */

a { text-decoration: none; }

:focus-visible { outline: 2px solid var(--ck-accent); outline-offset: 2px; }

::selection { background: rgba(122, 138, 94, .30); color: var(--ck-ink); }

.washed { border-radius: 16px; overflow: hidden; }
.washed img,
img.washed {
  filter: saturate(.6) contrast(.85) brightness(1.1) opacity(.94);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- header ---------- */

.ct-header [data-row="middle"] { box-shadow: none; }

.site-title,
.site-title a {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ck-ink);
}

.ct-header-trigger {
  min-width: 44px;
  min-height: 44px;
  border-radius: 16px;
}
.ct-header-trigger[data-design="outline"] { border-width: 1px; }
.ct-header-trigger .ct-icon { width: 20px; height: 20px; }

/* ---------- offcanvas: dropdown panel under the header ---------- */

#offcanvas .ct-panel-inner {
  position: absolute;
  top: var(--ck-panel-top, 79px);
  bottom: auto;
  inset-inline-start: var(--ck-panel-left, 35.2px);
  margin: 0;
  width: max-content;
  min-width: 260px;
  max-width: 340px;
  height: auto;
  max-height: calc(100vh - var(--ck-panel-top, 79px) - 35.2px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--ck-border);
  border-radius: 16px;
  box-shadow: var(--ck-shadow-lg);
}

#offcanvas .ct-panel-inner::-webkit-scrollbar { width: 0; }

#offcanvas .ct-panel-content,
#offcanvas .ct-panel-content-inner {
  padding: 0;
  --panel-padding: 0px;
}

#offcanvas .ct-panel-content { padding: 13.2px 26.4px; }

#offcanvas .ct-panel-actions,
#offcanvas .ct-toggle-close { display: none; }

#offcanvas ul,
#offcanvas ul li { list-style: none; margin: 0; padding: 0; }

#offcanvas ul > li > a.ct-menu-link {
  display: flex;
  align-items: center;
  gap: 8.8px;
  min-height: 44px;
  padding: 0 13.2px;
  border-radius: 16px;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ck-ink);
  text-transform: none;
  letter-spacing: 0;
}

#offcanvas ul > li > a.ct-menu-link:hover { background: var(--ck-n100); color: var(--ck-ink); }

#offcanvas ul > li.current-menu-item > a.ct-menu-link,
#offcanvas ul > li.current_page_item > a.ct-menu-link,
#offcanvas ul > li.current-menu-ancestor > a.ct-menu-link {
  background: var(--ck-accent-100);
  color: var(--ck-accent-800);
}

#offcanvas ul > li.ck-menu-divider {
  margin-top: 8.8px;
  padding-top: 8.8px;
  border-top: 1px solid var(--ck-border);
}

.ck-menu-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ck-accent-700);
}

/* ---------- footer ---------- */

.ct-footer [data-row="middle"] {
  border-top: 1px solid var(--ck-border);
  --container-spacing: 0px;
  padding-block: 35.2px 8.8px;
}

.ct-footer [data-row="bottom"] {
  --container-spacing: 0px;
  padding-block: 0 35.2px;
}

.ct-footer [data-row="middle"] > .ct-container {
  display: flex;
  align-items: center;
  gap: 26.4px;
  text-align: start;
}

.ct-footer [data-column="menu"] { margin-inline-start: auto; }

.ct-footer [data-column="menu"] ul {
  display: flex;
  align-items: center;
  gap: 26.4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-footer [data-column="menu"] a.ct-menu-link {
  font-family: Manrope, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ck-ink);
  text-transform: none;
  letter-spacing: 0;
}

.ct-footer [data-column="menu"] a.ct-menu-link:hover { color: var(--ck-accent-700); }

.ck-foot-mark {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ck-ink);
}

.ck-foot-copy {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--ck-meta);
}

.ct-footer .ct-footer-copyright {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--ck-accent-700);
  text-align: start;
}

/* ---------- collapse ---------- */

@media (max-width: 760px) {
  .ct-footer [data-row="middle"] > .ct-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 17.6px;
  }
  .ct-footer [data-column="menu"] { margin-inline-start: 0; }
  .ct-footer [data-column="menu"] ul { flex-direction: column; align-items: flex-start; gap: 8.8px; }
  #offcanvas .ct-panel-inner {
    inset-inline-start: 17.6px;
    inset-inline-end: 17.6px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #offcanvas .ct-panel-inner { transition: none; }
}
