/* consent.css (2026-10-10): the cookie banner (js/consent.js) in the BrainPlay palette. Loaded on the hub, About and
   Privacy, after the library's own cookieconsent.css. Dark follows the site's data-theme="dark". */
/* consent banner in the BrainPlay palette: big text, 48px+ buttons, warm cream / deep brown */
#cc-main{ --cc-font-family:inherit; --cc-modal-border-radius:18px; --cc-btn-border-radius:12px;
  --cc-bg:#fffaf0; --cc-primary-color:#2a1a0c; --cc-secondary-color:#3d2a17; --cc-separator-border-color:#e0c497;
  --cc-btn-primary-bg:#b45309; --cc-btn-primary-color:#ffffff; --cc-btn-primary-border-color:#b45309;
  --cc-btn-primary-hover-bg:#92400e; --cc-btn-primary-hover-color:#ffffff; --cc-btn-primary-hover-border-color:#92400e;
  --cc-btn-secondary-bg:#b45309; --cc-btn-secondary-color:#ffffff; --cc-btn-secondary-border-color:#b45309;
  --cc-btn-secondary-hover-bg:#92400e; --cc-btn-secondary-hover-color:#ffffff; --cc-btn-secondary-hover-border-color:#92400e;
  --cc-toggle-on-bg:#b45309; --cc-cookie-category-block-bg:#fff1d6; --cc-cookie-category-block-border:#e0c497;
  --cc-link-color:#92400e; font-size:18px; }
html[data-theme="dark"] #cc-main{ --cc-bg:#2a1c12; --cc-primary-color:#fff6e8; --cc-secondary-color:#f3e2c7; --cc-separator-border-color:#6b4f33;
  --cc-btn-primary-bg:#f6b545; --cc-btn-primary-color:#2a1700; --cc-btn-primary-border-color:#f6b545;
  --cc-btn-primary-hover-bg:#ffd27a; --cc-btn-primary-hover-color:#2a1700; --cc-btn-primary-hover-border-color:#ffd27a;
  --cc-btn-secondary-bg:#f6b545; --cc-btn-secondary-color:#2a1700; --cc-btn-secondary-border-color:#f6b545;
  --cc-btn-secondary-hover-bg:#ffd27a; --cc-btn-secondary-hover-color:#2a1700; --cc-btn-secondary-hover-border-color:#ffd27a;
  --cc-toggle-on-bg:#f6b545; --cc-cookie-category-block-bg:#3a2a1d; --cc-cookie-category-block-border:#6b4f33; --cc-link-color:#ffd27a; }
#cc-main .cm__title{ font-size:1.35rem; }
#cc-main .cm__desc, #cc-main .pm__section-desc{ font-size:1.05rem; line-height:1.55; }
#cc-main .cm__btn, #cc-main .pm__btn{ min-height:52px; font-size:1.1rem; font-weight:800; }

/* Batch 1 (draft): on phones the banner took most of the screen. Compact text, side-by-side buttons, still 48px+ targets. */
@media (max-width:600px){
  #cc-main .cm__title{ font-size:1.1rem; }
  #cc-main .cm__desc{ font-size:.95rem; line-height:1.4; }
  #cc-main .cm__body{ padding:.8rem 1rem .4rem; }
  #cc-main .cm__btns{ padding:.5rem 1rem .8rem; }
  #cc-main .cm__btn-group{ display:grid; grid-template-columns:1fr 1fr; gap:.5rem; }
  #cc-main .cm__btn-group:last-child .cm__btn{ grid-column:1 / -1; }
  #cc-main .cm__btn{ min-height:48px; font-size:1rem; margin:0; }
}
@media (max-width:600px){
  #cc-main .cm__btns{ display:grid !important; grid-template-columns:1fr 1fr; gap:.5rem; }
  #cc-main .cm__btn-group{ display:contents !important; }
  #cc-main .cm__btn[data-role="show"]{ grid-column:1 / -1; }
  #cc-main .cm__btn[data-role="all"]{ grid-column:1; } #cc-main .cm__btn[data-role="necessary"]{ grid-column:2; }
}

/* Owner fix 2026-11-15: first-visit consent is in document flow above content.
   Preferences remain an explicit modal; consent categories and choices are unchanged. */
html body #cc-main{position:relative!important;inset:auto!important;width:100%;z-index:auto!important;}
html body #cc-main .cm{position:relative!important;inset:auto!important;margin:0!important;max-height:none!important;width:100%!important;max-width:none!important;transform:none!important;transition:none!important;}
html:not(.show--consent) #cc-main .cm{display:none!important;}
html.show--consent #cc-main .cm{display:block!important;}
