/* Fox & Frog: lily-pad cookie consent.
   Uses the existing site tokens only. Everything is prefixed ffc- so it can't touch page styles. */
.ffc-root{
  --ffc-paper:#F4F4F2; --ffc-ink:#303330; --ffc-orange:#E4500B; --ffc-green:#4C5842;
  --ffc-frog:#6BA051; --ffc-pale:#DFE5D7; --ffc-sage:#8BA170; --ffc-grey:#6F6F6F;
  --ffc-rule:#C5C5C5; --ffc-rule-soft:#DCDCD8;
  --ffc-serif:Baskerville,'Baskervville','Libre Baskerville',Georgia,serif;
  --ffc-sans:"Gill Sans","Gill Sans MT","Gill Sans Nova","Trebuchet MS",sans-serif;
  --ffc-hand:'Nanum Pen Script','Bradley Hand','Segoe Print',cursive;
}
.ffc-root *,.ffc-root *::before,.ffc-root *::after{box-sizing:border-box}
.ffc-root [hidden]{display:none!important}

/* ---------- Panel ---------- */
.ffc{position:fixed;left:16px;bottom:16px;z-index:60;width:min(420px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;
  padding:22px 22px 14px;background-color:var(--ffc-paper);background-image:url(/assets/paper-grain.png);background-size:320px 320px;
  border:1px solid var(--ffc-rule-soft);border-top:3px solid var(--ffc-green);border-radius:2px;
  box-shadow:0 14px 40px rgba(48,51,48,.16),0 2px 6px rgba(48,51,48,.06);
  color:var(--ffc-ink);font-family:var(--ffc-sans);font-size:1rem;line-height:1.5;text-align:left;
  animation:ffcRise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes ffcRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.ffc .ffc-h{margin:0 0 8px;font-family:var(--ffc-serif);font-weight:400;font-size:1.6rem;line-height:1.1;letter-spacing:-.01em;color:var(--ffc-ink);outline:none}
.ffc .ffc-h3{margin:0 0 2px;font-family:var(--ffc-sans);font-size:1rem;font-weight:600;line-height:1.3;color:var(--ffc-ink)}
.ffc .ffc-p{margin:0 0 16px;font-family:var(--ffc-sans);font-size:.98rem;line-height:1.5;color:var(--ffc-ink)}
.ffc .ffc-p--s{margin:0;font-size:.9rem;color:#4A4D4A}
.ffc .ffc-scrawl{display:inline-block;margin-left:2px;font-family:var(--ffc-hand);font-size:1.45rem;line-height:1;color:var(--ffc-orange);transform:rotate(-2deg);white-space:nowrap}
.ffc .ffc-small{margin:12px 0 0;font-size:.82rem;line-height:1.4;color:var(--ffc-grey)}
.ffc .ffc-small a{color:var(--ffc-green);text-decoration:underline;text-decoration-color:var(--ffc-orange);text-decoration-thickness:1px;text-underline-offset:3px}
.ffc a:focus-visible,.ffc button:focus-visible{outline:2px solid var(--ffc-orange);outline-offset:3px}

/* ---------- Lily pads ---------- */
.ffc .ffc-pads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ffc .ffc-pad{position:relative;display:flex;align-items:center;justify-content:center;min-height:60px;margin:0;padding:6px 16%;
  border:0;background:transparent;color:var(--ffc-paper);font-family:var(--ffc-sans);font-size:.92rem;font-weight:600;letter-spacing:.02em;line-height:1.15;text-align:center;
  cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .3s ease,color .25s ease}
.ffc .ffc-pad-shape{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ffc-pad-leaf{fill:var(--ffc-green);stroke:none;transition:fill .25s ease}
.ffc-pad-vein{fill:none;stroke:var(--ffc-pale);stroke-width:1;opacity:.22;transition:opacity .25s ease}
.ffc .ffc-pad-label{position:relative}
.ffc .ffc-pad:hover{transform:translateY(-1px) rotate(-1.2deg)}
.ffc .ffc-pad:hover .ffc-pad-leaf,.ffc .ffc-pad:focus-visible .ffc-pad-leaf{fill:var(--ffc-ink)}
.ffc .ffc-pad:hover .ffc-pad-vein,.ffc .ffc-pad:focus-visible .ffc-pad-vein{opacity:.32}
.ffc .ffc-pad:active .ffc-pad-leaf{fill:#252825}

/* ---------- Preferences ---------- */
.ffc .ffc-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--ffc-rule)}
.ffc .ffc-row:last-of-type{border-bottom:1px solid var(--ffc-rule);margin-bottom:16px}
.ffc .ffc-row-text{min-width:0}
.ffc .ffc-always{flex:none;font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ffc-green)}
.ffc .ffc-switch{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:0 2px;border:0;background:transparent;color:var(--ffc-ink);font-family:var(--ffc-sans);font-size:.85rem;font-weight:600;cursor:pointer}
.ffc .ffc-switch-track{position:relative;display:block;width:44px;height:24px;border-radius:12px;background:#B9BCB6;transition:background-color .2s ease}
.ffc .ffc-switch-knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s ease}
.ffc .ffc-switch[aria-checked="true"] .ffc-switch-track{background:var(--ffc-green)}
.ffc .ffc-switch[aria-checked="true"] .ffc-switch-knob{transform:translateX(20px)}
.ffc .ffc-switch-state{min-width:2em;text-align:left}
.ffc .ffc-pads--prefs{align-items:center}
.ffc .ffc-pads--prefs .ffc-back{grid-column:3;justify-self:end}
.ffc .ffc-back{margin:0;padding:10px 4px;min-height:44px;border:0;background:transparent;color:var(--ffc-green);font-family:var(--ffc-sans);font-size:.95rem;cursor:pointer;
  text-decoration:underline;text-decoration-color:var(--ffc-orange);text-decoration-thickness:1px;text-underline-offset:4px}

/* ---------- The permanent lily pad ---------- */
.ffc-fab{position:fixed;left:10px;bottom:10px;z-index:55;display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0;padding:0;
  border:0;border-radius:50%;background:transparent;cursor:pointer;opacity:.95;transition:opacity .25s ease,transform .3s ease,visibility .25s}
.ffc-fab svg{display:block;width:38px;height:38px;filter:drop-shadow(0 1px 2px rgba(48,51,48,.35)) drop-shadow(0 0 1px rgba(244,244,242,.9));transition:transform .4s ease}
.ffc-fab .ffc-pad-vein{opacity:.3}
.ffc-fab:hover,.ffc-fab:focus-visible{opacity:1}
.ffc-fab:hover svg{transform:rotate(-14deg)}
.ffc-fab:hover .ffc-pad-leaf,.ffc-fab:focus-visible .ffc-pad-leaf{fill:var(--ffc-frog)}
.ffc-fab:focus-visible{outline:2px solid var(--ffc-orange);outline-offset:3px}
/* Footer in view: the footer has its own "Cookie preferences" link, so the pad steps aside. */
.ffc-foot-visible .ffc-fab{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px)}

/* ---------- Small screens ---------- */
@media (max-width:520px){
  .ffc{left:12px;right:12px;bottom:12px;width:auto;padding:18px 16px 12px}
  .ffc .ffc-h{font-size:1.45rem}
  .ffc .ffc-pads{gap:8px}
  .ffc .ffc-pad{min-height:64px;padding:6px 12%;font-size:.84rem}
  .ffc-fab{left:8px;bottom:8px}
}
@media (max-width:360px){
  .ffc .ffc-pad{padding:6px 10%;font-size:.82rem}
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion:reduce){
  .ffc{animation:none}
  .ffc .ffc-pad,.ffc-pad-leaf,.ffc-pad-vein,.ffc-fab,.ffc-fab svg,.ffc .ffc-switch-track,.ffc .ffc-switch-knob{transition:none}
  .ffc .ffc-pad:hover{transform:none}
  .ffc-fab:hover svg{transform:none}
  .ffc-foot-visible .ffc-fab{transform:none}
}
@media print{.ffc-root{display:none!important}}

/* Cookie policy page: button that opens preferences */
.ffc-open-prefs{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border:1px solid var(--ffc-green,#4C5842);border-radius:2px;background:#DFE5D7;color:#303330;font:inherit;font-weight:600;cursor:pointer}
.ffc-open-prefs:hover{background:#4C5842;color:#F4F4F2}
.ffc-open-prefs:focus-visible{outline:2px solid #E4500B;outline-offset:3px}
