/* First-party consent controls and the editable privacy page. */
html.cch-system-fonts body { --wp--preset--font-family--display: "Helvetica Neue",Helvetica,Arial,sans-serif; --wp--preset--font-family--body: "Helvetica Neue",Helvetica,Arial,sans-serif; }
#cch-privacy { font-family:var(--wp--preset--font-family--body); color:#203527; }
#cch-privacy [hidden] { display:none!important; }
.cch-cookie-banner {
  position:fixed; z-index:1100; left:1.5rem; bottom:1.5rem; width:min(29rem,calc(100% - 3rem)); max-height:calc(100dvh - 3rem); overflow:auto;
  padding:1.5rem; border:1px solid rgba(255,255,255,.7); border-radius:1.5rem;
  background:linear-gradient(135deg,#f0f0e4,#e2e9d7); box-shadow:0 12px 50px rgba(3,20,23,.3);
}
.cch-cookie-heading { display:flex; align-items:center; gap:.75rem; }
.cch-privacy-mark { width:1.5rem; height:1.5rem; flex-shrink:0; color:#426329; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 4 6v5c0 5 4 8 8 10 4-2 8-5 8-10V6l-8-3Z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='m8 12 3 3 5-6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.cch-cookie-banner h2 { margin:0; font-size:1.3rem; font-weight:500; line-height:1.25; letter-spacing:-.025em; }
.cch-cookie-banner p { margin:.85rem 0 1.2rem; font-size:.85rem; line-height:1.55; color:#40503f; }
.cch-cookie-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.cch-cookie-actions:has(> :only-child) { grid-template-columns:1fr; }
.cch-cookie-actions button {
  display:flex; align-items:center; justify-content:center; min-height:2.75rem; width:100%; padding:.7rem .65rem;
  border:1px solid #426329; border-radius:2rem; background:#203527; color:#f5f2e8;
  font:inherit; font-size:.85rem; font-weight:500; cursor:pointer; line-height:1.25;
  transition:background .18s,transform .15s,box-shadow .18s;
}
.cch-cookie-actions button:hover { background:#344e2c; box-shadow:0 3px 12px rgba(23,47,30,.15); }
.cch-cookie-actions button:active { transform:scale(.98); }
/* Keep the exempt counts distinct from the yes/no question about Google Analytics. */
.cch-cookie-additional { margin-top:1rem; padding-top:.85rem; border-top:1px solid #bccbb2; }
.cch-cookie-banner .cch-cookie-additional p { margin:0 0 .5rem; font-size:.78rem; }
.cch-cookie-banner .cch-cookie-additional p:last-child { margin-top:.6rem; margin-bottom:0; }
.cch-cookie-text-button { min-height:2.25rem; padding:.3rem 0; border:0; background:none; color:#203527; font:inherit; font-size:.78rem; text-align:left; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
.cch-cookie-banner .cch-cookie-counts-off { font-weight:500; }
.cch-cookie-more { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.3rem 1rem; margin-top:.7rem; }
.cch-cookie-more a,.cch-cookie-more button { padding:.35rem 0; margin:0; border:0; background:none; color:#40503f; font:inherit; font-size:.78rem; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
#cch-privacy :is(a,button,input):focus-visible,.cch-legal a:focus-visible { outline:3px solid #426329; outline-offset:4px; }
.cch-cookie-dialog { width:min(33rem,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); margin:auto; padding:2rem; overflow:auto; border:1px solid #879c7c; border-radius:1.75rem; background:#edf0e3; color:#203527; box-shadow:0 24px 90px rgba(0,12,16,.4); }
.cch-cookie-dialog::backdrop { background:rgba(3,19,23,.72); backdrop-filter:blur(5px); }
.cch-cookie-dialog-heading { display:flex; align-items:center; justify-content:space-between; }
.cch-cookie-dialog h2 { margin:.9rem 0 .75rem; font-family:var(--wp--preset--font-family--display); font-size:2rem; line-height:1.12; font-weight:400; }
.cch-cookie-dialog p { font-size:.88rem; line-height:1.6; color:#40503f; }
.cch-cookie-close { display:grid; place-items:center; width:2.6rem; height:2.6rem; padding:0; border:1px solid #9daa93; border-radius:50%; background:transparent; color:#203527; font:300 1.8rem/1 Arial,sans-serif; cursor:pointer; }
.cch-cookie-close:hover { background:#dce5d0; }
.cch-cookie-category { padding:1.2rem 0; border-top:1px solid #bfcbb6; }
.cch-cookie-category > div { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.cch-cookie-category h3,.cch-cookie-category label { margin:0; font:500 1rem/1.4 var(--wp--preset--font-family--body); }
.cch-cookie-category p { margin:.55rem 0 0; font-size:.8rem; }
.cch-cookie-required { font-size:.7rem; padding:.2rem .55rem; border:1px solid #bbc9b0; border-radius:2rem; white-space:nowrap; }
.cch-cookie-category input[role=switch] { appearance:none; display:block; flex-shrink:0; position:relative; width:2.85rem; height:1.65rem; margin:0; border:1px solid #65795b; border-radius:2rem; background:#c3ceba; cursor:pointer; transition:background .2s; }
.cch-cookie-category input[role=switch]::before { content:""; position:absolute; width:1.15rem; height:1.15rem; left:.2rem; top:.2rem; background:#344c2d; border-radius:50%; transition:transform .2s; }
.cch-cookie-category input[role=switch]:checked { background:#203527; border-color:#203527; }
.cch-cookie-category input[role=switch]:checked::before { transform:translateX(1.15rem); background:#b7e978; }
.cch-cookie-dialog .cch-cookie-detail { font-size:.75rem; margin:0 0 1.25rem; }
.cch-cookie-dialog a { color:inherit; text-underline-offset:.2em; }
.cch-privacy-links { display:flex; flex-wrap:wrap; gap:.25rem 1.25rem; font-family:var(--wp--preset--font-family--body); font-size:.75rem; color:#d9ded0; }
.cch-privacy-links a { min-height:2.5rem; display:inline-flex; align-items:center; text-underline-offset:.2em; }
.cch-footer .cch-privacy-links a:focus-visible { outline:2px solid var(--cch-primary); outline-offset:4px; }
html:has(.cch-cookie-dialog[open]) { overflow:hidden; }
html:has(.cch-cookie-dialog[open]) .cch-scroll-top { visibility:hidden; }

.cch-legal { padding:clamp(2.5rem,6vw,5rem) clamp(1.25rem,5vw,4rem) 5rem; background:#e8e2d5; color:#263c30; font-family:var(--wp--preset--font-family--body); }
.cch-legal > * { max-width:44rem; margin-inline:auto; }
.cch-legal .cch-legal-eyebrow { font-size:.75rem; text-transform:uppercase; letter-spacing:.13em; margin-bottom:1rem; color:#52614b; }
.cch-legal h1 { margin-top:0; margin-bottom:1rem; font-family:var(--wp--preset--font-family--display); font-size:clamp(2.5rem,6vw,4rem); font-weight:300; line-height:1.05; letter-spacing:.01em; text-transform:uppercase; }
.cch-legal .cch-legal-lead { font-family:var(--wp--preset--font-family--display); font-size:1.4rem; line-height:1.5; }
.cch-legal .cch-legal-updated { font-size:.8rem; color:#52614b; margin-top:1.25rem; margin-bottom:2rem; }
.cch-legal-summary { padding:1.4rem 1.6rem; border:1px solid #bbc5af; border-radius:1.2rem; background:#e1e8d5; }
.cch-legal-summary p { margin:.4rem 0; }
.cch-legal h2 { margin-top:2.4rem; margin-bottom:.8rem; padding-top:1.5rem; border-top:1px solid #bac3af; font-family:var(--wp--preset--font-family--display); font-size:1.8rem; font-weight:400; line-height:1.2; scroll-margin-top:7rem; }
.cch-legal h3 { margin:1.5rem 0 .5rem; font:500 1.1rem/1.4 var(--wp--preset--font-family--body); }
.cch-legal p,.cch-legal li { font-size:.95rem; line-height:1.75; }
.cch-legal ul { padding-left:1.25rem; }
.cch-legal li { margin:.5rem 0; }
.cch-legal a { color:#35512c; text-underline-offset:.2em; overflow-wrap:anywhere; }
.cch-legal a:hover { color:#162d1c; }
.cch-legal .cch-privacy-settings-link { display:inline-flex; box-sizing:border-box; max-width:100%; gap:.6rem; align-items:center; padding:.8rem 1.15rem; border:1px solid #526c40; border-radius:2rem; text-decoration:none; margin:.5rem 0; }
.cch-cookie-table { overflow-x:auto; margin-block:1.5rem; }
.cch-cookie-table table { width:100%; border-collapse:collapse; font-size:.8rem; line-height:1.55; }
.cch-cookie-table th,.cch-cookie-table td { text-align:left; vertical-align:top; padding:.8rem; border:1px solid #bcc5b4; overflow-wrap:anywhere; }
.cch-cookie-table th { background:#dde5d1; font-weight:500; }
.cch-cookie-table code { font-size:.75rem; white-space:normal; }
@media(max-width:600px) {
  .cch-cookie-banner { left:.75rem; bottom:.75rem; width:calc(100% - 1.5rem); max-height:calc(100dvh - 1.5rem); padding:1.15rem; border-radius:1.25rem; }
  .cch-cookie-banner h2 { font-size:1.15rem; }
  .cch-cookie-banner p { font-size:.85rem; }
  .cch-cookie-actions button { font-size:.8rem; }
  .cch-cookie-dialog { padding:1.25rem; }
  .cch-cookie-dialog h2 { font-size:1.75rem; }
  .cch-privacy-links { justify-content:center; width:100%; }
  .cch-cookie-banner-visible .cch-scroll-top { visibility:hidden; }
  .cch-cookie-table table { font-size:.75rem; }
  .cch-cookie-table th,.cch-cookie-table td { padding:.5rem; }
}
@media(max-width:360px) { .cch-cookie-dialog .cch-cookie-actions { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:no-preference) {
  .cch-cookie-banner:not([hidden]),.cch-cookie-dialog[open] { animation:cch-privacy-arrive .25s ease-out both; }
  @keyframes cch-privacy-arrive { from { opacity:0; transform:translateY(.5rem); } to { opacity:1; transform:none; } }
}
@media print { #cch-privacy { display:none; } .cch-legal { background:white; padding:0; } }
