/* Cookie banner (19 Nov 2026; made concise 21 Nov 2026, all font sizes 2px smaller). Markup: pages/cookiebanner.php.
   Logic: pages/cookieconsent.js. Colours and fonts follow the blog and footer: forest #103f31, green #245b43,
   ivory #fbf9f3, gold #b9954b.
   Two views:
   - first visit (.ds-cc-first): text, one compact row of switches (short names), buttons. On wide screens the
     buttons sit on the right; on phones everything fits on screen without scrolling.
   - "Cookie settings" (footer, privacy page): the full form with descriptions; on phones its buttons stay in view. */
.ds-cc{position:fixed;left:16px;right:16px;bottom:16px;z-index:9990;font-family:Arial,Helvetica,sans-serif;color:#1f2622;font-size:13px;line-height:1.5;animation:ds-cc-in .35s ease-out}
.ds-cc[hidden],.ds-cc [hidden]{display:none!important}
.ds-cc-inner{max-width:1040px;max-height:calc(100vh - 32px);overflow-y:auto;margin:0 auto;padding:16px 22px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text actions" "settings settings";gap:10px 28px;align-items:center;background:#fbf9f3;border:1px solid #dfdfd3;border-top:3px solid #b9954b;border-radius:10px;box-shadow:0 14px 40px rgba(16,63,49,.22)}
.ds-cc-text{grid-area:text;min-width:0}
.ds-cc-settings{grid-area:settings;border-bottom:1px solid #dfdfd3}
.ds-cc-actions{grid-area:actions;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.ds-cc-title{margin:0 0 4px;color:#103f31;font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:400;line-height:1.25;letter-spacing:-.2px}
.ds-cc-title:focus{outline:none}
.ds-cc p{margin:0}
.ds-cc a{color:#103f31;font-weight:600;text-decoration:underline;text-decoration-color:#b9954b;text-underline-offset:3px;white-space:nowrap}
.ds-cc a:hover{text-decoration-color:#103f31}
.ds-cc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 18px;border:1px solid #103f31;border-radius:999px;background:#103f31;color:#f8f4ea;font:600 13px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.ds-cc-btn:hover{background:#245b43;border-color:#245b43;color:#f8f4ea}
.ds-cc-btn-quiet{background:transparent;color:#103f31;border-color:#b5b9a8}
.ds-cc-btn-quiet:hover{background:#e9eee4;border-color:#103f31;color:#103f31}
.ds-cc-btn:focus-visible,.ds-cc a:focus-visible,.ds-cc-switch:focus-visible{outline:3px solid #b9954b;outline-offset:3px}
/* Full form rows */
.ds-cc-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 0;border-top:1px solid #dfdfd3}
.ds-cc-name{display:block;margin:0 0 2px;color:#103f31;font-weight:700;cursor:pointer}
/* Information buttons (i) after each name; the description shows only when selected */
.ds-cc-label{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0}
.ds-cc-label .ds-cc-name{margin:0}
.ds-cc-info{flex:none;display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;padding:0;border:1px solid #8c9a8f;border-radius:50%;background:transparent;color:#103f31;font:italic 700 11px/1 Georgia,'Times New Roman',serif;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.ds-cc-info:hover,.ds-cc-info[aria-expanded="true"]{background:#103f31;border-color:#103f31;color:#f8f4ea}
.ds-cc-info:focus-visible{outline:3px solid #b9954b;outline-offset:2px}
.ds-cc .ds-cc-desc{flex-basis:100%;margin:3px 0 0;color:#4d5952;font-size:12px;line-height:1.45}
.ds-cc-always{flex:none;color:#245b43;font-size:11px;font-weight:600;white-space:nowrap}
.ds-cc-short{display:none}
.ds-cc-switch{flex:none;width:44px;height:26px;margin:0;border:0;border-radius:999px;-webkit-appearance:none;appearance:none;background:#c4c9b8 radial-gradient(circle at 13px 50%,#fff 9px,transparent 10px) no-repeat 0 0;cursor:pointer;transition:background-color .2s,background-position .2s}
.ds-cc-switch:checked{background-color:#245b43;background-position:18px 0}
/* First visit: compact */
.ds-cc-first .ds-cc-inner{grid-template-areas:"text actions" "settings actions";gap:10px 28px}
.ds-cc-first .ds-cc-settings{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;border-bottom:0}
.ds-cc-first .ds-cc-row{padding:0;border-top:0;gap:8px;justify-content:flex-start}
.ds-cc-first .ds-cc-row-essential,.ds-cc-first .ds-cc-long{display:none}
/* First view: the description opens as a bubble just above the banner (placed from .ds-cc, so the banner's
   scroll box doesn't cut it off and the buttons stay where they are) */
.ds-cc-first .ds-cc-desc{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:2;max-width:560px;margin:0 auto;padding:10px 14px;border-radius:8px;background:#103f31;color:#f8f4ea;font-size:12px;line-height:1.45;box-shadow:0 10px 28px rgba(16,63,49,.3)}
.ds-cc-first .ds-cc-short{display:inline}
.ds-cc-first .ds-cc-name{margin:0;font-size:13px;font-weight:600}
.ds-cc-first .ds-cc-switch{width:34px;height:20px;background:#c4c9b8 radial-gradient(circle at 10px 50%,#fff 7px,transparent 8px) no-repeat 0 0}
.ds-cc-first .ds-cc-switch:checked{background-color:#245b43;background-position:14px 0}
@keyframes ds-cc-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(max-width:860px){
  .ds-cc{left:8px;right:8px;bottom:8px;font-size:12px}
  .ds-cc-inner{max-height:calc(100vh - 16px);padding:14px 14px 12px;grid-template-columns:1fr;grid-template-areas:"text" "settings" "actions";gap:10px}
  .ds-cc-title{font-size:18px}
  .ds-cc-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .ds-cc-btn{min-height:38px;padding:8px 6px;font-size:12px;white-space:normal;text-align:center}
  .ds-cc-row{gap:14px;padding:10px 0}
  .ds-cc-first .ds-cc-inner{grid-template-areas:"text" "settings" "actions";gap:10px}
  /* first view on phones: three equal columns, name and (i) above each switch */
  .ds-cc-first .ds-cc-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ds-cc-first .ds-cc-row{flex-direction:column;align-items:flex-start;gap:5px}
  .ds-cc-first .ds-cc-name{font-size:12px}
  /* Full form on a phone: it may scroll, so its buttons stay at the bottom of the banner */
  .ds-cc:not(.ds-cc-first) .ds-cc-actions{position:sticky;bottom:-12px;margin:0 -14px -12px;padding:10px 14px 12px;background:#fbf9f3;border-top:1px solid #dfdfd3}
}
@media(prefers-reduced-motion:reduce){.ds-cc{animation:none}.ds-cc-btn,.ds-cc-switch{transition:none}}
@media print{.ds-cc{display:none!important}}
