/* Cookie consent banner (app/views/partials/consent.php, behaviour in assets/js/consent.js). */
.ghrc-consent{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:700;width:min(760px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto;background:#fff;color:var(--ink,#22282d);border:1px solid var(--line,#dbe6ea);border-radius:12px;box-shadow:0 18px 48px rgba(20,25,28,.28);padding:20px 22px;font-size:14px;line-height:1.55}
.ghrc-consent[hidden],.ghrc-consent-choices[hidden]{display:none}
.ghrc-consent:focus{outline:none}
.ghrc-consent-title{margin:0 0 6px;font-size:16px;font-weight:800;letter-spacing:-.005em}
.ghrc-consent-text{margin:0 0 14px;color:var(--ink-soft,#4c5c63)}
.ghrc-consent-text a{color:var(--teal-dark,#21747f);text-decoration:underline;font-weight:600}
.ghrc-consent-choices{border:1px solid var(--line,#dbe6ea);border-radius:8px;margin:0 0 14px;padding:10px 14px;display:flex;flex-direction:column;gap:10px}
.ghrc-consent-opt{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.ghrc-consent-opt input{margin:4px 0 0;width:18px;height:18px;flex:none;accent-color:var(--teal-dark,#21747f)}
.ghrc-consent-opt span{display:flex;flex-direction:column}
.ghrc-consent-opt small{color:var(--ink-soft,#4c5c63);font-size:12.5px}
.ghrc-consent-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ghrc-consent-actions{display:flex;gap:10px;flex-wrap:wrap}
/* Equal prominence for Reject and Accept (same size/weight); only the colour differs. */
.ghrc-consent-btn{cursor:pointer;flex:1 1 0;min-width:140px;padding:12px 16px;border-radius:8px;font:inherit;font-size:13px;font-weight:800;letter-spacing:.02em;border:2px solid var(--ink,#22282d);background:#fff;color:var(--ink,#22282d)}
.ghrc-consent-accept{background:var(--teal-dark,#21747f);border-color:var(--teal-dark,#21747f);color:#fff}
.ghrc-consent-reject{background:var(--ink,#22282d);color:#fff}
.ghrc-consent-btn:hover{filter:brightness(1.12)}
.ghrc-consent-alt:hover{background:var(--sky-soft,#eef4f6);filter:none}
.ghrc-consent-btn:focus-visible,.ghrc-consent-opt input:focus-visible,.ghrc-consent-text a:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
/* Footer "Cookie settings" button — looks like the neighbouring footer links. */
.ghrc-cookie-link{cursor:pointer;background:none;border:none;padding:0;margin:0;font:inherit;color:#6f8a92;text-decoration:none}
.ghrc-cookie-link:hover{color:var(--teal,#38b7c6)}
.ghrc-cookie-link:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
/* While the banner is open, lift the accessibility widget (its panel opens upward, 220px wide) and the
   back-to-top button above it whenever the centred banner could overlap them (consent.js sets
   --ghrc-consent-h to the banner's height). */
@media (max-width:1280px){
  html.ghrc-consent-open .ghrc-a11y-float,html.ghrc-consent-open #ghrc-scrolltop{bottom:calc(32px + var(--ghrc-consent-h,0px)) !important}
}
@media (max-width:900px){
  .ghrc-consent{bottom:0;border-radius:12px 12px 0 0;width:100%;padding:16px}
  .ghrc-consent-btn{flex-basis:100%}
  html.ghrc-consent-open .ghrc-a11y-float,html.ghrc-consent-open #ghrc-scrolltop{bottom:calc(16px + var(--ghrc-consent-h,0px)) !important}
}
/* The site's high-contrast mode forces every background transparent — keep the banner solid. */
html.ghrc-hc .ghrc-consent{background-color:#000 !important;border:2px solid #fff !important}
html.ghrc-hc .ghrc-consent-btn{background-color:#000 !important;border:2px solid #fff !important}
html.ghrc-hc .ghrc-consent-accept{background-color:#fff !important;color:#000 !important}
