/* Consent banner, shared by index.html and mobile.html.
   A separate file rather than an inline <style>: _headers pins a hash of
   every inline block, and this one is served from 'self', so it needs no
   hash and changing it cannot silently blank a page. consent.js builds the
   markup. Colours are the letbot V5 set only; square corners, hairlines,
   no shadows. */

.lb-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  box-sizing: border-box;
  width: 440px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #D6D2C8;
  border-top: 3px solid #00A651;
  font-family: Geist, sans-serif;
  color: #0E0F12;
  animation: lbConsentIn .28s ease-out both;
}
.lb-consent[hidden], .lb-consent [hidden] { display: none !important; }
.lb-consent *, .lb-consent *::before, .lb-consent *::after { box-sizing: border-box; }

@keyframes lbConsentIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.lb-consent__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5B5850;
}
.lb-consent__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #00A651;
  flex-shrink: 0;
}

.lb-consent__title {
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0E0F12;
}
.lb-consent__title:focus { outline: none; }

.lb-consent__body {
  margin: 0 0 18px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3E3C37;
}
.lb-consent__link {
  color: #0E0F12;
  text-decoration: none;
  border-bottom: 1px solid #B9B4A8;
}

/* The two choices carry equal weight: refusing must be as easy as
   agreeing. Same size, same row, both solid. */
.lb-consent__actions {
  display: flex;
  gap: 8px;
}
.lb-consent__btn {
  flex: 1 1 0;
  height: 44px;
  padding: 0 16px;
  font-family: Geist, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0E0F12;
  border-radius: 0;
  cursor: pointer;
}
.lb-consent__btn--reject {
  background: #F1EFEA;
  border: 1px solid #0E0F12;
}
.lb-consent__btn--accept {
  background: #00A651;
  border: 1px solid #00A651;
}
.lb-consent__btn--save {
  flex-basis: 100%;
  margin-top: 8px;
  background: #FFFFFF;
  border: 1px solid #B9B4A8;
}
.lb-consent__btn:hover { filter: brightness(0.96); }

.lb-consent__more {
  display: inline-block;
  margin-top: 14px;
  padding: 0 0 2px 0;
  font-family: Geist, sans-serif;
  font-size: 13px;
  color: #3E3C37;
  background: none;
  border: none;
  border-bottom: 1px solid #B9B4A8;
  border-radius: 0;
  cursor: pointer;
}

.lb-consent__panel {
  margin: 0 0 18px 0;
  border-top: 1px solid #E4E0D6;
}
.lb-consent__panel[hidden] { display: none; }

.lb-consent__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #E4E0D6;
}
.lb-consent__row-name {
  display: block;
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #0E0F12;
}
.lb-consent__row-desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #5B5850;
}
.lb-consent__fixed {
  flex-shrink: 0;
  padding-top: 3px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00733A;
}

/* Square switch. A real checkbox underneath, so it keeps keyboard and
   screen-reader behaviour for free. */
.lb-consent__switch {
  flex-shrink: 0;
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #F1EFEA;
  border: 1px solid #B9B4A8;
  border-radius: 0;
  cursor: pointer;
}
.lb-consent__switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #8A877F;
  transition: transform .15s ease-out, background-color .15s ease-out;
}
.lb-consent__switch:checked {
  background: #00A651;
  border-color: #00A651;
}
.lb-consent__switch:checked::after {
  background: #FFFFFF;
  transform: translateX(18px);
}

.lb-consent button:focus-visible,
.lb-consent__link:focus-visible,
.lb-consent__switch:focus-visible,
.lb-consent-open:focus-visible {
  outline: 2px solid #00733A;
  outline-offset: 2px;
}

/* The footer "Cookie settings" control. Looks like the text around it. */
.lb-consent-open {
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
}

/* mobile.html pins the viewport to 390, so this is the mobile page. */
@media (max-width: 600px) {
  .lb-consent {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: 85vh;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)) 18px;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .lb-consent__eyebrow { font-size: 10px; margin-bottom: 12px; }
  .lb-consent__title { font-size: 20px; }
  .lb-consent__body { font-size: 13px; margin-bottom: 16px; }
  .lb-consent__btn { height: 48px; font-size: 15px; }
}

@media print {
  .lb-consent { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-consent, .lb-consent * { animation: none !important; transition: none !important; }
}
