/* Our own additions to the vendored theme stylesheet.
   Every value comes from tokens.css - nothing is hard-coded here. */
@import url("/static/css/tokens.css");

/* A field only a robot fills in. Zero height, zero width, no layout effect. */
.chf-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- consent banner (Deviation 3: replaces Termly) ----------------------
   A white bar so it never merges into the dark footer, and every colour, size,
   radius and font from tokens.css. The theme's own `p` rule is dark ink, which
   is why the text colour is set explicitly here. */
.chf-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: var(--chf-space-4);
    align-items: center;
    justify-content: center;
    padding: var(--chf-space-4) var(--chf-space-5);
    background: var(--chf-bg-surface);
    border-top: 1px solid var(--chf-border);
    box-shadow: var(--chf-shadow-md);
    font-family: var(--chf-font-sans);
    font-size: var(--chf-font-size-sm);
    line-height: var(--chf-line-height-base);
}
.chf-consent--hidden { display: none; }
.chf-consent__text {
    margin: 0;
    max-width: 70ch;
    color: var(--chf-text-primary);
    font-family: var(--chf-font-sans);
    font-size: var(--chf-font-size-sm);
    line-height: var(--chf-line-height-base);
}
.chf-consent__text a { color: var(--chf-accent); text-decoration: underline; }
.chf-consent__actions { display: flex; gap: var(--chf-space-3); }
.chf-consent__btn {
    font-family: var(--chf-font-sans);
    font-size: var(--chf-font-size-sm);
    font-weight: var(--chf-font-weight-bold);
    padding: var(--chf-space-3) var(--chf-space-5);
    border: 2px solid var(--chf-accent);
    border-radius: var(--chf-radius-pill);
    background: var(--chf-accent);
    color: var(--chf-on-accent);
    cursor: pointer;
}
.chf-consent__btn:hover {
    background: var(--chf-accent-hover);
    border-color: var(--chf-accent-hover);
}
.chf-consent__btn--ghost {
    background: transparent;
    color: var(--chf-text-primary);
    border-color: var(--chf-border);
}
.chf-consent__btn--ghost:hover {
    background: var(--chf-bg-muted);
    border-color: var(--chf-text-primary);
}
@media (max-width: 600px) {
    .chf-consent { flex-direction: column; align-items: stretch; text-align: center; }
    .chf-consent__actions { justify-content: center; }
}
