/* Karen Country Club — cookie consent (Phase P, P-08). Loaded on every page after kcc.css; built
   from kcc.css's own tokens. kcc.css stays byte-identical.

   .kcc-consent   the banner: warm-dark card, bottom left; a bottom sheet on a phone. Non-modal, so
                  the page is never walled off. Accept and Reject are the same button, side by side.
   .kcc-prefs     the choices, a <dialog> on cream.
   .kcc-gate      a map or film waiting for "Films and maps": who provides it, and two buttons.
   .kcc-cookie-list  the Cookie policy's table (block kcc/cookie-list).
   Appearance awaits Lesah (ledger P-08-consent-banner). */

.kcc-consent{
  position:fixed;left:clamp(1rem,3vw,2.2rem);bottom:calc(clamp(1rem,3vw,2.2rem) + env(safe-area-inset-bottom,0px));
  z-index:90;width:min(440px,calc(100vw - 2rem));
  background:var(--warm-dark);color:#e9e4da;
  border:1px solid rgba(255,255,255,.14);
  padding:1.9rem 1.9rem 1.6rem;
  box-shadow:0 30px 60px -20px rgba(4,14,22,.55);
  font-family:'Montserrat',sans-serif;
  opacity:0;transform:translateY(14px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);
}
.kcc-consent.is-open{opacity:1;transform:none}
.kcc-consent .eyebrow{color:#7cc6f0}
.kcc-consent__title{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:1.85rem;line-height:1.08;color:#fff;margin:.7rem 0 0;text-wrap:balance}
.kcc-consent__title em{font-style:italic;color:#fff}
.kcc-consent__rule{display:block;width:40px;height:1px;background:var(--kcc-blue);margin:1.05rem 0}
.kcc-consent__body{font-size:.84rem;font-weight:300;line-height:1.75;color:rgba(233,228,218,.84);max-width:60ch}
.kcc-consent__body a{color:#fff;text-underline-offset:3px;text-decoration-color:rgba(124,198,240,.7)}
.kcc-consent__actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1.4rem}
.kcc-consent__btn{
  appearance:none;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55);
  padding:.95rem .6rem;font:600 .7rem/1.2 'Montserrat',sans-serif;letter-spacing:.18em;text-transform:uppercase;
  border-radius:1px;cursor:pointer;transition:background .3s,color .3s,border-color .3s;
}
.kcc-consent__btn:hover{background:#fff;color:var(--navy);border-color:#fff}
.kcc-consent__more{
  appearance:none;background:none;border:0;padding:.9rem 0 0;cursor:pointer;
  color:rgba(233,228,218,.78);font:500 .7rem/1 'Montserrat',sans-serif;letter-spacing:.16em;text-transform:uppercase;
  display:inline-flex;align-items:center;gap:.55rem;
}
.kcc-consent__more::after{content:"";width:18px;height:1px;background:currentColor;transition:width .3s}
.kcc-consent__more:hover{color:#fff}
.kcc-consent__more:hover::after{width:28px}

/* ---------- preferences dialog ---------- */
.kcc-prefs{
  margin:auto; /* kcc.css zeroes every margin, which pins a <dialog> to the corner */
  width:min(620px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);padding:0;border:0;
  background:var(--cream);color:var(--ink);font-family:'Montserrat',sans-serif;
  box-shadow:0 40px 80px -30px rgba(4,14,22,.6);
}
.kcc-prefs::backdrop{background:rgba(6,20,32,.62);backdrop-filter:blur(2px)}
.kcc-prefs__inner{display:flex;flex-direction:column;max-height:calc(100dvh - 2rem)}
.kcc-prefs__head{padding:2.2rem 2.2rem 1.2rem;border-bottom:1px solid var(--line-light)}
.kcc-prefs__head h2{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:2.1rem;color:var(--navy);margin-top:.6rem;line-height:1.05}
.kcc-prefs .eyebrow{color:var(--kcc-blue)}
.kcc-prefs__head a{color:var(--kcc-blue-deep);text-underline-offset:3px}
.kcc-prefs__head p{font-size:.86rem;font-weight:300;line-height:1.75;color:var(--ink);margin-top:.8rem;max-width:58ch}
.kcc-prefs__list{overflow:auto;padding:0 2.2rem}
.kcc-prefs__row{display:grid;grid-template-columns:1fr auto;gap:.4rem 1.5rem;padding:1.35rem 0;border-bottom:1px solid var(--line-light)}
.kcc-prefs__row:last-child{border-bottom:0}
.kcc-prefs__name{font-family:'Cormorant Garamond',serif;font-size:1.35rem;font-weight:500;color:var(--navy);line-height:1.2}
.kcc-prefs__who{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--kcc-blue-deep);margin-top:.3rem}
.kcc-prefs__desc{grid-column:1/-1;font-size:.82rem;font-weight:300;line-height:1.7;color:var(--ink);max-width:60ch}
.kcc-prefs__fixed{font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--ink);align-self:start;padding-top:.35rem}

/* switch: a real checkbox, restyled */
.kcc-switch{position:relative;display:inline-block;width:46px;height:26px;align-self:start;margin-top:.15rem}
.kcc-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.kcc-switch span{position:absolute;inset:0;border:1px solid rgba(6,42,69,.4);border-radius:26px;background:transparent;transition:background .3s,border-color .3s}
.kcc-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--navy);transition:transform .3s,background .3s}
.kcc-switch input:checked + span{background:var(--kcc-blue);border-color:var(--kcc-blue)}
.kcc-switch input:checked + span::after{transform:translateX(20px);background:#fff}
.kcc-switch input:focus-visible + span{outline:2px solid var(--kcc-blue);outline-offset:3px}

.kcc-prefs__foot{display:flex;flex-wrap:wrap;gap:.6rem;padding:1.4rem 2.2rem 1.8rem;border-top:1px solid var(--line-light);background:var(--cream-2)}
.kcc-prefs__foot .kcc-consent__btn{flex:1 1 150px;color:var(--navy);border-color:var(--navy)}
.kcc-prefs__foot .kcc-consent__btn:hover{background:var(--navy);color:#fff}
.kcc-prefs__foot .kcc-consent__btn--save{background:var(--navy);color:#fff}
.kcc-prefs__foot .kcc-consent__btn--save:hover{background:var(--kcc-blue);border-color:var(--kcc-blue)}
.kcc-prefs__close{position:absolute;top:1.1rem;right:1.1rem;width:40px;height:40px;border:0;background:none;cursor:pointer;color:var(--navy);font-size:1.4rem;line-height:1}


/* ---------- a map or film waiting for consent ---------- */
.kcc-gate{
  position:relative;display:grid;place-items:center;text-align:center;width:100%;height:100%;min-height:280px;padding:2rem 1.4rem;
  background-image:linear-gradient(160deg,rgba(10,61,99,.9),rgba(10,28,40,.94)),var(--gate-img,none);
  background-size:cover;background-position:center;color:#e9e4da;font-family:'Montserrat',sans-serif;
}
.kcc-gate__inner{max-width:30rem}
.kcc-gate__title{font-family:'Cormorant Garamond',serif;font-size:clamp(1.4rem,2.4vw,1.8rem);font-weight:300;line-height:1.15;color:#fff;margin:0}
.kcc-gate__body{font-size:.82rem;font-weight:300;line-height:1.75;color:rgba(233,228,218,.84);margin:.8rem auto 1.3rem;max-width:40ch}
.kcc-gate__actions{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.kcc-gate__btn{
  appearance:none;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55);
  padding:.85rem 1.2rem;font:600 .66rem/1.2 'Montserrat',sans-serif;letter-spacing:.16em;text-transform:uppercase;border-radius:1px;cursor:pointer;
  transition:background .3s,color .3s,border-color .3s;
}
.kcc-gate__btn:hover{background:#fff;color:var(--navy);border-color:#fff}
.kcc-gate__open{display:inline-block;margin-top:1.1rem;color:rgba(233,228,218,.86);font-size:.72rem;letter-spacing:.08em;text-underline-offset:3px;text-decoration-color:rgba(124,198,240,.7)}
.kcc-gate__open:hover{color:#fff}
.map-frame .kcc-gate{min-height:0}

/* ---------- the Cookie policy's table ---------- */
.kcc-cookie-list{max-width:var(--container);margin:0 auto}
.kcc-cookie-list__group + .kcc-cookie-list__group{margin-top:2.6rem}
.kcc-cookie-list__name{font-family:'Cormorant Garamond',serif;font-weight:400;font-size:1.6rem;color:var(--navy);margin:0 0 1rem}
.kcc-cookie-list__scroll{overflow-x:auto;border-top:1px solid var(--line-light)}
.kcc-cookie-list__table{width:100%;min-width:640px;border-collapse:collapse;font-size:.86rem;font-weight:300;line-height:1.65;color:var(--ink)}
.kcc-cookie-list__table th{text-align:left;font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--ink);padding:1rem 1rem 1rem 0;border-bottom:1px solid var(--line-light)}
.kcc-cookie-list__table td{vertical-align:top;padding:1.05rem 1rem 1.05rem 0;border-bottom:1px solid var(--line-light)}
.kcc-cookie-list__table td:first-child{font-weight:500;color:var(--navy);width:22%}
.kcc-cookie-list__table td:nth-child(2){width:22%}
.kcc-cookie-list__table td:last-child{white-space:nowrap}
.kcc-cookie-list__table code{font-size:.78rem;word-break:break-word;color:var(--kcc-blue-deep);background:none}
.kcc-cookie-list__party{display:block;font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--kcc-blue-deep);margin-top:.25rem}
.kcc-cookie-list__mine{margin-top:2.4rem;font-size:.86rem;color:var(--ink)}
.kcc-cookie-list__mine [data-consent-id]{font-family:ui-monospace,Menlo,monospace;color:var(--ink);user-select:all}

/* the footer's "Cookie settings" link sits with the legal links and looks like them */
.foot-bottom .legal [data-consent-open]{cursor:pointer}

@media (max-width:560px){
  .kcc-consent{left:.75rem;right:.75rem;width:auto;padding:1.5rem 1.3rem 1.3rem}
  .kcc-consent__title{font-size:1.6rem}
  .kcc-prefs__head,.kcc-prefs__foot{padding-left:1.3rem;padding-right:1.3rem}
  .kcc-prefs__list{padding:0 1.3rem}
}
@media (prefers-reduced-motion:reduce){
  .kcc-consent{transition:none;transform:none}
}
