/* The counter uses the portal's own paper, ink, copper and editorial typography. */
.footer>.container{width:min(100% - 2*clamp(20px,3vw,60px),1800px)}
.footer__grid{grid-template-columns:minmax(160px,.8fr) minmax(140px,.7fr) minmax(170px,.8fr) minmax(350px,1.5fr);gap:clamp(24px,3vw,56px);align-items:start}
.footer__identity p{max-width:24ch}.footer__bottom{padding-inline:24px}
.footer__measurement{min-width:0;background:transparent;color:var(--ink);padding:0}
.footer__measurement .site-statistics{margin:0;color:inherit}
.counter-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.footer__measurement .counter-heading h2{margin:0;font-family:Archivo,Arial,sans-serif;font-size:1rem;font-weight:600;line-height:1.4;letter-spacing:-.02em;text-transform:none}
.counter-status{display:inline-flex;align-items:center;gap:8px;font-size:.6875rem;line-height:1.5;color:var(--muted);white-space:nowrap}
.counter-status::before{content:'';width:6px;height:6px;flex-shrink:0;border-radius:50%;background:currentColor;opacity:.45}
.counter-status{white-space:normal;min-width:0;max-width:100%;overflow-wrap:anywhere}
html[data-large-text=true] .counter-heading{flex-direction:column;align-items:flex-start;gap:.5rem}
.site-statistics[data-live-state=connected] .counter-status{color:var(--accent)}
.site-statistics[data-live-state=connected] .counter-status::before{opacity:1;animation:counter-heartbeat 2.8s ease-in-out infinite}
.counter-total{display:flex;align-items:baseline;flex-wrap:wrap;container-type:inline-size;gap:0 12px;margin:.4rem 0 1rem;line-height:1}
.footer__measurement .counter-total output{display:inline-flex;min-width:0;font-family:Archivo,Arial,sans-serif;font-size:min(clamp(3rem,4.5vw,4.5rem),calc(120cqi / var(--counter-length,1)));font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1.15;color:var(--ink)}
.counter-total>span{font-size:.875rem;line-height:1.5;color:var(--muted)}
.counter-digit{display:inline-block;position:relative;overflow:hidden;height:1.15em;min-width:.62em;text-align:center;vertical-align:bottom;letter-spacing:0}
.counter-digit>span{display:block;height:1.15em;line-height:1.15}.counter-digit .counter-old{position:absolute;inset:0}.counter-separator{width:.19em}
.footer__measurement .counter-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:1rem 0 0;border-top:1px solid var(--line)}
.counter-breakdown>div{min-width:0}.counter-breakdown dt{display:flex;align-items:center;gap:6px;font-size:.75rem;line-height:1.5;margin:0 0 .3rem;color:var(--muted)}
.counter-breakdown dd{margin:0;font-family:JetBrains,monospace;font-size:clamp(1.25rem,1.8vw,1.75rem);font-weight:500;line-height:1.3;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink);overflow-wrap:anywhere}
.counter-breakdown .counter-ai dt,.counter-breakdown .counter-ai dd{color:var(--accent)}
.counter-ai svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.footer__measurement .counter-popular{display:flex;align-items:baseline;gap:.4rem .8rem;flex-wrap:wrap;margin:1rem 0 0;font-size:.6875rem;line-height:1.6}
.counter-popular[hidden]{display:none}.counter-popular>span{color:var(--muted);flex-shrink:0}.counter-popular a{color:var(--ink);max-width:100%;overflow-wrap:anywhere;text-underline-offset:4px;text-decoration-thickness:1px}
.footer__measurement .counter-settings{margin:.8rem 0 0;font-size:.75rem;line-height:1.5;color:var(--ink)}.footer__measurement .counter-settings button{min-height:44px;text-align:left}
.footer__measurement a:hover{color:var(--accent)}
.footer__measurement .install-help{margin:0;padding:0;background:transparent;color:var(--ink);font-size:.75rem;line-height:1.6}
.footer__measurement .install-help summary{display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-height:44px;gap:12px;font:inherit;text-decoration:underline;text-underline-offset:3px}
.footer__measurement .install-help summary::after{content:'';width:7px;height:7px;flex-shrink:0;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
.footer__measurement .install-help[open] summary::after{transform:rotate(225deg)}.footer__measurement .install-help p{margin:.5rem 0;max-width:58ch;font-size:inherit;line-height:inherit}
@keyframes counter-heartbeat{0%,100%{opacity:1}50%{opacity:.35}}
@media(max-width:1199px){.footer__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem}.footer__identity{grid-column:auto}.footer__measurement{grid-column:2;grid-row:1/span 3}.footer__grid>nav{grid-column:1}.footer__measurement .counter-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.footer__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem 1.5rem}.footer__identity{grid-column:1/-1}.footer__grid>nav{grid-column:auto}.footer__measurement{grid-column:1/-1;grid-row:auto}.footer__measurement .counter-breakdown{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.footer__measurement .counter-breakdown dt{font-size:.6875rem}.footer__measurement .counter-breakdown dd{font-size:1.5rem}}
@media(max-width:380px){.footer__measurement .counter-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.footer__measurement .counter-breakdown dt{font-size:.75rem}}
html[data-large-text=true] .footer__grid{grid-template-columns:minmax(0,1fr)}html[data-large-text=true] .footer__grid>*{grid-column:1;grid-row:auto}html[data-large-text=true] .footer__measurement .counter-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(prefers-reduced-motion:reduce){.site-statistics[data-live-state=connected] .counter-status::before{animation:none}}
html[data-motion=paused] .counter-status::before{animation:none!important}
@media print{.footer__measurement{display:none!important}}

/* The visit panel follows the selected scheme without changing the footer. */
.footer__measurement .site-statistics {
 --visit-bg: var(--paper);
 --visit-ink: var(--ink);
 --visit-muted: var(--muted);
 --visit-rule: var(--line);
 --visit-accent: var(--accent);
 padding: clamp(.85rem, 1.55vw, 1.25rem);
 background: var(--visit-bg);
 color: var(--visit-ink);
}
@supports (color: light-dark(#fff, #000)) {
 .footer__measurement .site-statistics {
  color-scheme: light dark;
  --visit-bg: light-dark(var(--paper), #0f1c24);
  --visit-ink: light-dark(var(--ink), #faf7f0);
  --visit-muted: light-dark(var(--muted), #d5cec2);
  --visit-rule: light-dark(var(--line), #53626a);
  --visit-accent: light-dark(var(--accent), #f4aa88);
 }
 html[data-theme=light] .footer__measurement .site-statistics { color-scheme: light }
 html[data-theme=dark] .footer__measurement .site-statistics { color-scheme: dark }
}
html[data-contrast=true] .footer__measurement .site-statistics {
 color-scheme: light;
 --visit-bg: #fff;
 --visit-ink: #000;
 --visit-muted: #000;
 --visit-rule: #000;
 --visit-accent: #000;
}
.footer__measurement .site-statistics :is(.counter-total output, .counter-breakdown dd, .counter-popular a) {
 color: var(--visit-ink);
}
.footer__measurement .site-statistics :is(.counter-status, .counter-total > span, .counter-breakdown dt, .counter-popular > span) {
 color: var(--visit-muted);
}
.footer__measurement .site-statistics .counter-breakdown { border-color: var(--visit-rule) }
.footer__measurement .site-statistics[data-live-state=connected] .counter-status,
.footer__measurement .site-statistics .counter-ai :is(dt, dd),
.footer__measurement .site-statistics .counter-popular a:hover {
 color: var(--visit-accent);
}
.footer__measurement .site-statistics .counter-popular a:focus-visible {
 outline: 2px solid var(--visit-accent);
 outline-offset: 3px;
}
.footer__measurement .counter-popular--bot { margin-block-start: .55rem }
