/* KHALDOUN — the cookie banner and the "Cookie settings" control (brief 261025 Phase 3; behaviour in /consent.js).
   Loaded on every page by the shared head. Uses the shared palette (/colours.css); the banner stays a dark band
   in both modes, as the site's dark bands do. */
.kh-cc {
  position: fixed; z-index: 2500; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--kh-band, #100e0d); color: #f1ece5; border: 1px solid rgba(201, 169, 110, .28);
  padding: 22px 24px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  font: 300 14px/1.6 'Inter', system-ui, sans-serif; letter-spacing: normal; text-align: left;
}
.kh-cc__title { font: 400 22px/1.2 'Cormorant Garamond', Georgia, serif; margin: 0 0 8px; color: #f1ece5; }
.kh-cc__text { margin: 0 0 16px; color: rgba(241, 236, 229, .82); font-size: 14px; }
.kh-cc__opts { display: grid; gap: 10px; margin: 0 0 16px; }
.kh-cc__opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer;
  padding: 10px 12px; border: 1px solid rgba(241, 236, 229, .12); }
.kh-cc__opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #c9a96e; }
.kh-cc__opt strong { display: block; font-weight: 500; color: #f1ece5; }
.kh-cc__opt span span { display: block; color: rgba(241, 236, 229, .7); font-size: 13px; }
.kh-cc__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.kh-cc__btn { min-height: 44px; padding: 0 18px; border: 1px solid rgba(241, 236, 229, .4); background: transparent; color: #f1ece5;
  font: 400 12px/1 'Inter', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.kh-cc__btn:hover { border-color: #f1ece5; }
.kh-cc__btn--main { background: #c9a96e; border-color: #c9a96e; color: #0d0d0b; }
.kh-cc__btn--main:hover { background: #d7bb85; border-color: #d7bb85; }
.kh-cc__btn:focus-visible, .kh-cc__opt input:focus-visible, [data-kh-consent]:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }
@media (max-width: 520px) { .kh-cc { bottom: 8px; padding: 18px 16px 16px; } .kh-cc__btn { flex: 1 1 auto; } }

/* The cookie card (brief 261101): the first question in the consent countries. Bottom right on a computer,
   340px wide, 24px from the edges; across the bottom on a phone, 12px from the sides and the bottom. Same surface
   as the panel. "Accept all" first, then "Reject all": side by side, equal width, identical style (no fill). */
.kh-cc--card { left: auto; right: 24px; bottom: 24px; transform: none; width: 340px; max-width: calc(100% - 48px); padding: 18px 20px 20px; }
.kh-cc__choose { display: inline; margin: 0 0 0 2px; padding: 0; border: 0; background: none; font: inherit; font-weight: 400; color: #f1ece5;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; letter-spacing: normal; }
.kh-cc__btns--card { margin-top: 14px; flex-wrap: nowrap; gap: 8px; justify-content: stretch; }
.kh-cc__btns--card .kh-cc__btn { flex: 1 1 0; min-width: 0; min-height: 0; height: 40px; padding: 0 10px; border: 1px solid rgba(241, 236, 229, .55);
  border-radius: 0; font: 400 12px/16px 'Inter', system-ui, sans-serif; letter-spacing: 1.68px; }
.kh-cc__btns--card .kh-cc__btn:hover { background: rgba(241, 236, 229, .08); border-color: rgba(241, 236, 229, .55); }
.kh-cc__choose:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }
@media (max-width: 520px) {
  .kh-cc--card { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; padding: 16px 18px 18px; }
  .kh-cc__btns--card .kh-cc__btn { height: 44px; flex: 1 1 0; }
}

/* The footer control: reads as a link wherever it sits. */
button[data-kh-consent] { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; letter-spacing: inherit;
  text-transform: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; opacity: .85; }
button[data-kh-consent]:hover { opacity: 1; }

/* Staging only: a marker while tracking test mode is on. */
html[data-kh-tracking="test"]::after { content: "Tracking test mode"; position: fixed; z-index: 2600; right: 10px; top: 10px;
  background: #c4470e; color: #fff; font: 500 11px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 3px; pointer-events: none; }

/* Pages style bare h2 / p / strong (e.g. .cacao-page h2 in light mode): the banner keeps its own type and
   colours whatever page it opens on (higher specificity than any page rule). */
:root .kh-cc .kh-cc__title { color: #f1ece5; font: 400 22px/1.2 'Cormorant Garamond', Georgia, serif; margin: 0 0 8px; letter-spacing: normal; text-transform: none; }
:root .kh-cc .kh-cc__text { color: rgba(241, 236, 229, .82); font: 300 14px/1.6 'Inter', system-ui, sans-serif; margin: 0 0 16px; letter-spacing: normal; }
:root .kh-cc .kh-cc__opt strong { color: #f1ece5; font-weight: 500; }
:root .kh-cc .kh-cc__opt span span { color: rgba(241, 236, 229, .7); font-size: 13px; line-height: 1.5; }
:root .kh-cc p + p { margin-top: 0; }
:root .kh-cc .kh-cc__btn { color: #f1ece5; background: transparent; }
:root .kh-cc.kh-cc--card .kh-cc__title { font-size: 20px; line-height: 24px; margin: 0; }
:root .kh-cc.kh-cc--card .kh-cc__text { margin: 6px 0 0; font-size: 13.5px; line-height: 21px; font-weight: 300; color: rgba(241, 236, 229, .86); }
:root .kh-cc.kh-cc--card .kh-cc__choose { color: #f1ece5; font-weight: 400; }
@media (max-width: 520px) { :root .kh-cc.kh-cc--card .kh-cc__text { font-size: 13px; line-height: 20px; } }
:root .kh-cc .kh-cc__btn--main { color: #0d0d0b; background: #c9a96e; }
:root .kh-cc .kh-cc__btn--main:hover { background: #d7bb85; }

/* Embedded players (YouTube, Vimeo) load only when the visitor presses play: nothing reaches them before. */
.kh-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #080806; display: grid; place-items: center; }
.kh-embed__play { min-height: 48px; padding: 0 20px; border: 1px solid rgba(241, 236, 229, .5); background: transparent; color: #f1ece5;
  font: 400 12px/1 'Inter', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.kh-embed__note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: rgba(241, 236, 229, .6); font: 300 12px/1.4 'Inter', sans-serif; }
.kh-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
