/*
 * Control Pro — the premium footer on the public site (CP-APPEARANCE-01, Footer\FooterRenderer).
 * Loaded only while Control Pro draws the footer (published, or an administrator's preview).
 *
 * Self-contained: every rule is scoped to .cpf and sets what it needs, so the theme's global
 * heading / list / link styles do not leak in. Width: fluid, the window less proportional gutters
 * (4vw, 16–80px), up to --cpf-max, so wide screens are not left with a narrow centred strip; with the
 * full-width page layout (Appearance → Layout) --cpf-max and --cpf-gutter are the page's. Grid: as
 * many columns as fit (five sections on a desktop), two on a phone, one under 360px. Colours: two
 * schemes with WCAG AA text contrast; the accent (operator's choice) only decorates (heading mark,
 * borders on hover, the dark focus ring).
 */
.cpf{
  --cpf-bg:#1d2127;--cpf-bar:#15181d;--cpf-text:#c3c9d1;--cpf-head:#fff;--cpf-link:#e1e5ea;--cpf-muted:#a3acb6;
  --cpf-line:rgba(255,255,255,.09);--cpf-line-strong:rgba(255,255,255,.22);--cpf-focus:var(--cpf-accent,#53a318);
  background:var(--cpf-bg);color:var(--cpf-text);font-size:14px;line-height:1.6;margin:32px 0 0;text-align:left;
  -webkit-font-smoothing:antialiased;
}
.cpf--light{
  --cpf-bg:#f5f5f5;--cpf-bar:#e8e8e8;--cpf-text:#454545;--cpf-head:#1c1c1c;--cpf-link:#262626;--cpf-muted:#525252;
  --cpf-line:rgba(0,0,0,.08);--cpf-line-strong:rgba(0,0,0,.2);--cpf-focus:#1c1c1c;
  border-top:1px solid var(--cpf-line);
}
.cpf *,.cpf *::before,.cpf *::after{box-sizing:border-box}
.cpf__in{width:100%;max-width:var(--cpf-max,1840px);margin:0 auto;padding:0 var(--cpf-gutter,clamp(16px,4vw,80px))}
.cpf__main{padding:44px 0 32px}
.cpf__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:32px clamp(24px,3vw,56px)}
.cpf .cpf__sec{min-width:0;margin:0;padding:0}
.cpf h2.cpf__h{
  position:relative;margin:0 0 14px;padding:0 0 11px;border:0;
  font-family:inherit;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:.01em;text-transform:none;color:var(--cpf-head);
}
.cpf h2.cpf__h::after{content:"";position:absolute;left:0;bottom:0;width:28px;height:3px;border-radius:2px;background:var(--cpf-accent,#53a318)}
.cpf ul{list-style:none;margin:0;padding:0}
.cpf li{margin:0;padding:0;list-style:none}
.cpf li::before{content:none}
.cpf a.cpf__a{display:inline-block;padding:4px 0;color:var(--cpf-link);text-decoration:none;line-height:1.45;overflow-wrap:anywhere}
.cpf a.cpf__a:hover{color:var(--cpf-head);text-decoration:underline;text-underline-offset:3px}
.cpf a:focus-visible{outline:2px solid var(--cpf-focus);outline-offset:2px;border-radius:3px}
.cpf__social{display:flex;flex-wrap:wrap;gap:8px}
.cpf a.cpf__soc{
  display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 15px;
  border:1px solid var(--cpf-line-strong);border-radius:999px;color:var(--cpf-link);text-decoration:none;line-height:1.2;
}
.cpf a.cpf__soc:hover{border-color:var(--cpf-accent,#53a318);color:var(--cpf-head)}
.cpf a.cpf__soc i{width:16px;font-size:15px;text-align:center}
.cpf .cpf__ad{max-width:100%;overflow:hidden}
.cpf .cpf__ad img,.cpf .cpf__ad iframe{max-width:100%;height:auto}
.cpf__bar{background:var(--cpf-bar);border-top:1px solid var(--cpf-line)}
.cpf .cpf__bar-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 24px;padding-top:14px;padding-bottom:14px}
.cpf p.cpf__copy{margin:0;font-size:13px;color:var(--cpf-muted)}
.cpf .cpf__langs ul{display:flex;flex-wrap:wrap;gap:2px 18px}
.cpf a.cpf__lang{display:inline-block;padding:4px 0;font-size:13px;color:var(--cpf-muted);text-decoration:none}
.cpf a.cpf__lang:hover{color:var(--cpf-head);text-decoration:underline;text-underline-offset:3px}
.cpf a.cpf__lang.is-current{color:var(--cpf-head);font-weight:700}
.cpf .cpf__sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (max-width:767px){
  .cpf__main{padding:30px 0 22px}
  .cpf__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px}
  .cpf .cpf__sec--social,.cpf .cpf__sec--ad{grid-column:1/-1}
  .cpf .cpf__bar-in{flex-direction:column;align-items:flex-start}
}
@media (max-width:359px){
  .cpf__grid{grid-template-columns:minmax(0,1fr)}
}
@media print{
  .cpf{background:none;color:#000;margin-top:16px}
  .cpf__bar{background:none}
  .cpf .cpf__langs,.cpf .cpf__social{display:none}
}
