/* Build96.4 STAGING — Signature consent banner */
.as-cookie-banner[hidden],.as-cookie-launcher[hidden],.as-cookie-details[hidden],.as-cookie-legal-allow[hidden]{display:none!important}
.as-cookie-banner,.as-cookie-launcher{font-family:Inter,Arial,sans-serif;color:#2b2823;box-sizing:border-box}
.as-cookie-banner *,.as-cookie-launcher *{box-sizing:border-box}
.as-cookie-banner{position:fixed;bottom:12px;left:12px;right:12px;z-index:2147483000;max-width:980px;margin:0 auto;border:1px solid #b89b72;border-radius:6px;box-shadow:0 10px 32px rgba(28,26,22,.24);background:#f6f1ea;padding:clamp(14px,2vw,22px);max-height:min(85dvh,720px);overflow-y:auto}
.as-cookie-banner-content{max-width:100%}.as-cookie-title{margin:0 0 7px;color:#1c1a16;font:500 clamp(25px,3vw,32px)/1.1 'Cormorant Garamond',Georgia,serif}.as-cookie-summary{font:400 13px/1.55 Inter,Arial,sans-serif;margin:0;color:#46423c;max-width:860px}
.as-cookie-actions,.as-cookie-settings-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:14px}
.as-cookie-banner button,.as-cookie-launcher,.as-cookie-policy{font:600 12px/1.3 Inter,Arial,sans-serif;cursor:pointer;letter-spacing:.01em}
.as-cookie-banner button{min-height:39px;padding:9px 16px;border-radius:3px;border:1px solid #785c3e}
.as-cookie-primary,.as-cookie-actions>button:nth-child(2){background:#2b2823;color:#f6f1ea}.as-cookie-secondary{background:transparent;color:#2b2823}
.as-cookie-banner :is(button,a,input):focus-visible,.as-cookie-launcher:focus-visible{outline:3px solid #9bb09a;outline-offset:3px}
.as-cookie-details{margin-top:15px;padding-top:13px;border-top:1px solid rgba(184,155,114,.5)}
.as-cookie-essential{font:400 12px/1.5 Inter,Arial,sans-serif;margin:0 0 11px;color:#46423c}
.as-cookie-optional{display:flex;align-items:flex-start;gap:11px;color:#2b2823;padding:10px 0;cursor:pointer}
.as-cookie-optional-toggle{flex:none;width:18px;height:18px;accent-color:#2b2823;margin:2px 0 0}
.as-cookie-option-copy{display:flex;flex-direction:column;gap:5px;font:400 12px/1.4 Inter,Arial,sans-serif}
.as-cookie-option-copy strong{font-weight:600}.as-cookie-option-copy span{color:#46423c}
.as-cookie-policy{color:#785c3e;text-decoration:underline;text-underline-offset:3px;padding:10px 3px}
.as-cookie-launcher{position:fixed;bottom:12px;left:12px;z-index:2147482999;background:rgba(246,241,234,.96);border:1px solid rgba(184,155,114,.8);color:#46423c;padding:8px 10px;border-radius:3px;box-shadow:0 2px 12px rgba(28,26,22,.12)}
.as-cookie-legal-allow{margin:8px 8px 8px 0;padding:9px 12px;border:1px solid #785c3e;background:#2b2823;color:#f6f1ea;border-radius:3px;cursor:pointer}
@media(max-width:520px){.as-cookie-banner{bottom:6px;left:6px;right:6px;padding:14px;max-height:80dvh}.as-cookie-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.as-cookie-actions button{padding:9px 7px;font-size:11px}.as-cookie-actions button:last-child{grid-column:1/-1}.as-cookie-summary{font-size:12px}.as-cookie-launcher{bottom:8px;left:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.as-cookie-banner *{scroll-behavior:auto!important}}

/* Build96.4 staging: discreet consent launcher; restore primary Back to top to the right.
   The first-visit banner, consent storage and Spotify loading remain unchanged.
   The launcher retains its localized button text as its accessible name. */
.as-cookie-launcher:not([hidden]) {
  left: max(12px, env(safe-area-inset-left));
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(184,155,114,.72);
  border-radius: 50%;
  background: rgba(246,241,234,.96);
  color: transparent;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(28,26,22,.12);
}
.as-cookie-launcher:not([hidden])::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23785c3e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 4 4 0 0 1-4-4 4 4 0 0 1-5-5Z'/%3E%3Ccircle cx='8.5' cy='8.5' r='0.7' fill='%23785c3e'/%3E%3Ccircle cx='16' cy='15.5' r='0.7' fill='%23785c3e'/%3E%3Ccircle cx='12' cy='12' r='0.7' fill='%23785c3e'/%3E%3Ccircle cx='9.5' cy='16.5' r='0.7' fill='%23785c3e'/%3E%3C/svg%3E");
}
.as-cookie-launcher:not([hidden]):hover {
  background: #f0e7db;
  border-color: #785c3e;
}
/* HOME uses a fixed lower text rail: keep the cookie icon above, not on the language links. */
body.public-home-about-contact .as-cookie-launcher:not([hidden]) {
  bottom: calc(105px + env(safe-area-inset-bottom));
}
@media (max-width: 768px) {
  body.public-home-about-contact .as-cookie-launcher:not([hidden]) {
    bottom: calc(83px + env(safe-area-inset-bottom));
  }
}
/* Beyond the Title uses a narrow vertical journey guide at the desktop right edge. */
body[data-theme="signature"] .back-to-top {
  left: auto !important;
  right: calc(clamp(84px, 7vw, 110px) + env(safe-area-inset-right)) !important;
}
/* BTT on touch screens uses a centered fixed chapter bar; keep both icons above it. */
@media (max-width: 700px) {
  body[data-theme="signature"] .as-cookie-launcher:not([hidden]) {
    bottom: calc(77px + env(safe-area-inset-bottom));
  }
  body[data-theme="signature"] .back-to-top {
    left: auto !important;
    right: calc(14px + env(safe-area-inset-right)) !important;
    bottom: calc(77px + env(safe-area-inset-bottom)) !important;
  }
}

/* Build96.4: the HOME launcher now lives IN the existing legal footer beside Cookies/Sütik.
   Preserve the separate legal link and a 24px minimum activation target. */
body.public-home-about-contact .bottom-credits-legal {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
body.public-home-about-contact .bottom-credits-legal .as-cookie-launcher.as-cookie-launcher-footer:not([hidden]) {
  position: static;
  inset: auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
}
body.public-home-about-contact .bottom-credits-legal .as-cookie-launcher.as-cookie-launcher-footer:not([hidden])::before {
  width: 14px;
  height: 14px;
}
body.public-home-about-contact .bottom-credits-legal .as-cookie-launcher.as-cookie-launcher-footer:not([hidden]):hover {
  background: rgba(184,155,114,.12);
}
/* Only the narrowest phones need a deliberate second footer row. */
@media(max-width:375px) {
  body.public-home-about-contact .bottom-credits.as-cookie-footer-ready {
    flex-wrap: wrap;
    align-content: flex-end;
    column-gap: 10px;
    row-gap: 3px;
    white-space: normal;
  }
  body.public-home-about-contact .bottom-credits.as-cookie-footer-ready .bottom-credits-legal {
    flex-basis: 100%;
  }
}
