/* The cookie banner (Complianz, templates/cookiebanner.php) — a consent panel on the page rail:
     · a raised panel (surface/background-secondary) under one hairline, fixed to the bottom
       of the viewport, sliding up when it appears;
     · its content sits ON THE RAIL: the rail's max width and margins, its two side hairlines,
       its container padding — the copy starts and the answers end on the page's content edge;
     · the title in the accented voice, the sentence in caption type with underlined links to
       the Privacy Policy and the Cookie Policy;
     · one row of group checkboxes (squared, as the forms draw them) and SHOW DETAILS, sharing a
       line with the three answers while they fit and wrapping above them when they do not;
     · the answers are .d-btn (d.css): DECLINE and SAVE as ghost buttons, ACCEPT as the primary
       one. At S, DECLINE takes the full row and SAVE / ACCEPT split the next;
     · SHOW DETAILS opens a scrolling panel under the answers: per group its name, key count,
       state, intro and a table of every key (stacked below 768px, each cell under its column's
       name).
   Every token carries a literal fallback (the docs shell's --as-* palette): /docs has no d.css.
   On a page with d.css the real tokens apply and the fallbacks never do. The button rules are
   wrapped in :where() — zero specificity — so .d-btn / .d-btn--ghost / .d-btn--primary win.

   This file replaces Complianz's generated banner stylesheet (front.php enqueues it under the
   handle complianz.js looks for), so the state rules Complianz's CSS carried are here too:
   .cmplz-hidden (until revealed), .cmplz-dismissed (answered), the floating tab. */

.cmplz-hidden{display:none!important}

.shf-cmplz{
  --cb-margin:var(--page-margin,48px);--cb-pad:var(--container-px,52px);
  --cb-cap:var(--type-caption-size,14px);--cb-cap-lh:var(--type-caption-lh,20px);
  --cb-bg:var(--surface-bg-secondary,var(--as-canvas,#12171b));
  --cb-ground:var(--surface-bg-primary,var(--as-night,#0c1013));
  --cb-stroke:var(--stroke-primary,var(--as-stroke,#1d252b));
  --cb-body:var(--text-body-primary,var(--as-body,#8b98a2));
  --cb-quiet:var(--text-body-secondary-raised,var(--as-sec,#79848c));
  --cb-ink:var(--text-accented-neutral,var(--as-ink,#ebf1f4));
  --cb-link:var(--text-link,var(--as-ice,#add3ed));
  --cb-accent:var(--btn-primary-bg,var(--as-ice,#add3ed));
  --cb-on-accent:var(--btn-primary-text,var(--as-night,#0c1013));
  --cb-field:var(--field-border,#616e78);
  --cb-locked:var(--stroke-btn-disabled,var(--as-stroke,#2c3740));
  --cb-accented:var(--font-accented,var(--chakra,'Chakra Petch',system-ui,sans-serif));
  --cb-main:var(--font-main,var(--sans,'IBM Plex Sans',system-ui,sans-serif));
  --cb-mono:var(--mono,'JetBrains Mono',ui-monospace,monospace);
}
@media (max-width:1279px){.shf-cmplz{--cb-margin:var(--page-margin,28px);--cb-pad:var(--container-px,32px);--cb-cap:var(--type-caption-size,12px);--cb-cap-lh:var(--type-caption-lh,16px)}}
@media (max-width:767px){.shf-cmplz{--cb-margin:var(--page-margin,16px);--cb-pad:var(--container-px,20px)}}

.cmplz-cookiebanner.shf-cmplz{position:fixed;bottom:0;left:0;right:0;z-index:120;box-sizing:border-box;width:auto;max-width:none;max-height:100vh;max-height:100dvh;margin:0;padding:0 0 env(safe-area-inset-bottom,0);overflow-y:auto;overscroll-behavior:contain;border:0;border-top:1px solid var(--cb-stroke);border-radius:0;box-shadow:none;background:var(--cb-bg);color:var(--cb-body);text-align:left}
.cmplz-cookiebanner.shf-cmplz.cmplz-dismissed{display:none}
.cmplz-cookiebanner.shf-cmplz.cmplz-show{animation:shf-cmplz-up .32s cubic-bezier(.16,1,.3,1)}
@keyframes shf-cmplz-up{from{transform:translateY(100%)}to{transform:none}}
.shf-cmplz *,.shf-cmplz *::before,.shf-cmplz *::after{box-sizing:border-box}

/* the rail: text on its own line, then the groups and the answers (one line while they fit),
   then the details */
.shf-cmplz-in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-md,16px) var(--space-2xl,32px);max-width:var(--rail-max,1624px);margin-inline:max(var(--cb-margin),calc((100% - var(--rail-max,1624px)) / 2));padding:var(--space-xl,24px) calc(var(--cb-pad) - 1px);border-left:1px solid var(--cb-stroke);border-right:1px solid var(--cb-stroke)}
.shf-cmplz-text{flex:1 1 100%;display:flex;flex-direction:column;gap:var(--space-xs,8px)}
.shf-cmplz-title{margin:0;font:var(--fw-semibold,600) var(--type-button-size,18px)/var(--type-button-lh,28px) var(--cb-accented);letter-spacing:var(--ls-wide,2px);text-transform:uppercase;color:var(--cb-ink)}
.shf-cmplz-copy{margin:0;max-width:96ch;font:var(--fw-regular,400) var(--cb-cap)/var(--cb-cap-lh) var(--cb-main);color:var(--cb-body);text-wrap:pretty}
.shf-cmplz-links{display:inline}
.shf-cmplz-a{color:var(--cb-link);text-decoration:underline;text-decoration-thickness:from-font;text-underline-position:from-font;white-space:nowrap;transition:color .25s}
.shf-cmplz-a+.shf-cmplz-a{margin-left:var(--space-sm,12px)}
.shf-cmplz-a:hover{color:var(--cb-ink)}

/* ---------- the groups: squared checkboxes (the forms' .ct-check), then SHOW DETAILS ---------- */
.shf-cmplz-opts{flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs,8px) var(--space-xl,24px);min-width:0}
.shf-cmplz-opt{position:relative;display:inline-flex;align-items:center;gap:var(--space-sm,12px);min-height:32px;cursor:pointer;font:var(--fw-semibold,600) var(--cb-cap)/var(--cb-cap-lh) var(--cb-accented);letter-spacing:1.92px;text-transform:uppercase;color:var(--cb-ink);-webkit-user-select:none;user-select:none}
.shf-cmplz-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.shf-cmplz-box{flex:none;display:inline-grid;place-content:center;width:16px;height:16px;border:1px solid var(--cb-field);background:var(--cb-ground);color:transparent;transition:background .2s,border-color .2s,color .2s}
.shf-cmplz-tick{display:block}
.shf-cmplz-opt input:checked+.shf-cmplz-box{border-color:var(--cb-accent);background:var(--cb-accent);color:var(--cb-on-accent)}
.shf-cmplz-opt:hover input:not(:disabled):not(:checked)+.shf-cmplz-box{border-color:var(--cb-ink)}
.shf-cmplz-opt input:focus-visible+.shf-cmplz-box{outline:2px solid var(--ice,var(--as-ice,#add3ed));outline-offset:2px}
/* necessary: ticked and locked, in the disabled voice */
.shf-cmplz-opt--locked{cursor:default;color:var(--cb-quiet)}
.shf-cmplz-opt--locked input:checked+.shf-cmplz-box{border-color:var(--cb-locked);background:var(--cb-locked);color:var(--cb-body)}

.shf-cmplz-more{display:inline-flex;align-items:center;gap:var(--space-xs,8px);min-height:32px;margin:0;padding:0;border:0;background:none;color:var(--cb-link);font:var(--fw-semibold,600) var(--cb-cap)/var(--cb-cap-lh) var(--cb-accented);letter-spacing:1.92px;text-transform:uppercase;cursor:pointer;transition:color .25s}
.shf-cmplz-more:hover{color:var(--cb-ink)}
.shf-cmplz-chev{flex:none;transition:transform .25s}
.shf-cmplz-more[aria-expanded="true"] .shf-cmplz-chev{transform:rotate(180deg)}

/* ---------- the answers ---------- */
.shf-cmplz-acts{display:flex;flex-wrap:wrap;flex:none;gap:var(--space-md,16px);margin:0;padding:0}
.shf-cmplz-acts .shf-cmplz-btn{min-width:0}
:where(.shf-cmplz .shf-cmplz-btn){display:inline-flex;align-items:center;justify-content:center;height:40px;margin:0;padding:0 16px;border:1px solid var(--as-body,#8b98a2);border-radius:0;background:none;color:var(--as-body,#8b98a2);font:500 14px/20px var(--chakra,'Chakra Petch',system-ui,sans-serif);letter-spacing:0;text-transform:uppercase;white-space:nowrap;cursor:pointer;transition:border-color .25s,color .25s,background .25s}
:where(.shf-cmplz .shf-cmplz-btn:hover){border-color:var(--as-ink,#ebf1f4);color:var(--as-ink,#ebf1f4)}
/* /docs has no d.css: the primary answer in the docs palette (ice on night, as its links) */
:where(.shf-cmplz .shf-cmplz-btn.d-btn--primary){border-color:var(--as-ice,#add3ed);background:var(--as-ice,#add3ed);color:var(--as-night,#0c1013)}
:where(.shf-cmplz .shf-cmplz-btn.d-btn--primary:hover){border-color:var(--as-ink,#ebf1f4);background:var(--as-ink,#ebf1f4);color:var(--as-night,#0c1013)}
/* visible focus where d.css (which draws :focus-visible site-wide) is absent */
:where(.shf-cmplz) :where(a,button):focus-visible{outline:2px solid var(--ice,var(--as-ice,#add3ed));outline-offset:3px}

/* the categories block belongs to the Cookie Policy page's switch (REST), never to the banner */
.shf-cmplz .cmplz-categories{display:none}

/* ---------- the details ---------- */
.shf-cmplz-details{flex:1 1 100%;display:flex;flex-direction:column;gap:var(--space-xl,24px);max-height:min(48vh,520px);margin-top:var(--space-xs,8px);padding:var(--space-xl,24px) 0 var(--space-xs,8px);overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--cb-stroke);scrollbar-gutter:stable}
.shf-cmplz-details[hidden]{display:none}
.shf-cmplz-group{display:flex;flex-direction:column;gap:var(--space-sm,12px);min-width:0}
.shf-cmplz-group-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-xs,8px) var(--space-md,16px)}
.shf-cmplz-group-t{font:var(--fw-semibold,600) var(--cb-cap)/var(--cb-cap-lh) var(--cb-accented);letter-spacing:1.92px;text-transform:uppercase;color:var(--cb-ink)}
.shf-cmplz-group-n{font:var(--fw-regular,400) var(--cb-cap)/var(--cb-cap-lh) var(--cb-main);color:var(--cb-quiet)}
.shf-cmplz-group-s{margin-left:auto;padding:2px var(--space-xs,8px);border:1px solid var(--stroke-tag,var(--as-stroke,#2c3740));font:var(--fw-semibold,600) var(--type-micro-size,10px)/var(--type-micro-lh,16px) var(--cb-accented);letter-spacing:var(--ls-wide,2px);text-transform:uppercase;color:var(--cb-body)}
.shf-cmplz-group-d{margin:0;max-width:96ch;font:var(--fw-regular,400) var(--cb-cap)/var(--cb-cap-lh) var(--cb-main);color:var(--cb-body)}
.shf-cmplz-tw{border:1px solid var(--cb-stroke);overflow-x:auto}
.shf-cmplz-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left;font:var(--fw-regular,400) var(--cb-cap)/var(--cb-cap-lh) var(--cb-main);color:var(--cb-body)}
.shf-cmplz-table th,.shf-cmplz-table td{padding:var(--space-sm,12px) var(--space-md,16px);border-bottom:1px solid var(--cb-stroke);vertical-align:top}
.shf-cmplz-table tbody tr:last-child th,.shf-cmplz-table tbody tr:last-child td{border-bottom:0}
.shf-cmplz-table thead th{background:var(--cb-ground);font:var(--fw-semibold,600) var(--type-micro-size,10px)/var(--type-micro-lh,16px) var(--cb-accented);letter-spacing:var(--ls-wide,2px);text-transform:uppercase;color:var(--cb-quiet);white-space:nowrap}
.shf-cmplz-table tbody th{font-weight:var(--fw-regular,400)}
/* one set of column widths for every group's table, so the groups line up (the header cells
   carry them: table-layout:fixed sizes columns from the first row) */
.shf-cmplz-table thead th:nth-child(1){width:20%}
.shf-cmplz-table thead th:nth-child(2){width:17%}
.shf-cmplz-table thead th:nth-child(4){width:19%}
.shf-cmplz-table thead th:nth-child(5){width:13%}
.shf-cmplz-c-expiry,.shf-cmplz-c-type{color:var(--cb-quiet)}
.shf-cmplz-code{font:400 12px/1.5 var(--cb-mono);color:var(--cb-ink);overflow-wrap:anywhere}
.shf-cmplz-foot{margin:0;font:var(--fw-regular,400) var(--cb-cap)/var(--cb-cap-lh) var(--cb-main);color:var(--cb-quiet)}
.shf-cmplz-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* S · the 360 frame's rhythm: DECLINE across the row, SAVE / ACCEPT splitting the next; the
   key table stacks, one ruled block per key, each cell under its column's name */
@media (max-width:767px){
  .shf-cmplz-in{align-items:stretch;padding-block:var(--space-md,16px)}
  .shf-cmplz-title{font-size:var(--type-button-size,16px);line-height:var(--type-button-lh,24px)}
  .shf-cmplz-opts{gap:0 var(--space-lg,20px)}
  .shf-cmplz-acts{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:var(--space-sm,12px)}
  .shf-cmplz-acts .cmplz-deny{grid-column:1 / -1}
  /* one scroller, not two: the details grow in place and the banner itself scrolls (it is capped
     at the viewport's height above) */
  .shf-cmplz-details{max-height:none;overflow:visible;padding-top:var(--space-md,16px);scrollbar-gutter:auto}
  .shf-cmplz-group-s{margin-left:0}
  .shf-cmplz-tw{border:0;overflow:visible}
  .shf-cmplz-table,.shf-cmplz-table tbody{display:block}
  .shf-cmplz-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .shf-cmplz-table tbody tr{display:flex;flex-wrap:wrap;gap:var(--space-xs,8px) var(--space-lg,20px);padding:var(--space-sm,12px);border:1px solid var(--cb-stroke);border-bottom:0}
  .shf-cmplz-table tbody tr:last-child{border-bottom:1px solid var(--cb-stroke)}
  .shf-cmplz-table tbody th,.shf-cmplz-table tbody td{display:block;width:auto;padding:0;border:0}
  .shf-cmplz-table tbody th,.shf-cmplz-table tbody .shf-cmplz-c-purpose{flex:1 1 100%}
  .shf-cmplz-table tbody [data-label]::before{content:attr(data-label);content:attr(data-label) / "";display:block;margin-bottom:2px;font:var(--fw-semibold,600) var(--type-micro-size,10px)/var(--type-micro-lh,16px) var(--cb-accented);letter-spacing:var(--ls-wide,2px);text-transform:uppercase;color:var(--cb-quiet)}
}

/* Complianz's floating "manage consent" tab: never shown — every page has its own Cookie
   settings button (the site footer's; on /docs the docs shell's legal list), and
   templates/manage-consent.php prints the tab hidden. */
#cmplz-manage-consent .cmplz-manage-consent{display:none!important}

@media (prefers-reduced-motion:reduce){
  .cmplz-cookiebanner.shf-cmplz.cmplz-show{animation:none}
  .shf-cmplz-box,.shf-cmplz-chev{transition:none}
}
@media print{.cmplz-cookiebanner.shf-cmplz,#cmplz-manage-consent{display:none!important}}
