/* Consent banner + preferences dialog (shared by every page). Accept, Reject and Preferences share one style
   on purpose so no choice is visually favored. Pages can set --an-accent to match their palette. */
.an-banner{position:fixed;left:0;right:0;bottom:0;z-index:2147483000;background:#fff;color:#1d2b36;border-top:1px solid #d3d9d6;
  box-shadow:0 -12px 32px -14px rgba(0,0,0,.28);padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom));display:grid;gap:.85rem;
  font:400 .95rem/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.an-banner p{margin:0;max-width:46rem}
.an-banner a,.an-dialog a{color:var(--an-accent,#23483E);text-decoration:underline;text-underline-offset:2px}
.an-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.an-btn{flex:1 1 7rem;min-height:44px;padding:.65rem 1.1rem;border-radius:999px;border:2px solid var(--an-accent,#23483E);background:#fff;color:var(--an-accent,#23483E);
  font:650 .95rem/1.1 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:pointer;text-align:center}
.an-btn:hover{background:var(--an-accent,#23483E);color:#fff}
.an-btn:active{transform:scale(.97)}
.an-banner :focus-visible,.an-dialog :focus-visible{outline:3px solid #BB573D;outline-offset:3px}
@media (max-width:759px){   /* compact on phones: smaller text, the three choices on one row */
  .an-banner{padding:.7rem .85rem calc(.7rem + env(safe-area-inset-bottom));gap:.55rem;font-size:.85rem;line-height:1.4}
  .an-actions{flex-wrap:nowrap;gap:.4rem}
  .an-actions .an-btn{flex:1 1 0;min-width:0;padding:.55rem .3rem;font-size:.85rem}
}
@media (min-width:760px){
  .an-banner{left:1rem;right:1rem;bottom:1rem;max-width:62rem;margin-inline:auto;border:1px solid #d3d9d6;border-radius:18px;grid-template-columns:1fr auto;align-items:center;gap:1.25rem;padding-bottom:1rem}
  .an-banner .an-btn{flex:0 0 auto}
}
.an-dialog{border:0;padding:1.25rem;border-radius:20px;background:#fff;color:#1d2b36;width:min(94vw,34rem);max-height:92vh;overflow:auto;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.5);font:400 .98rem/1.55 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.an-dialog::backdrop{background:rgba(15,25,30,.6)}
.an-dialog h2{margin:0;font:650 1.3rem/1.2 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.an-dialog h2:focus{outline:none}
.an-dialog p{margin:.75rem 0}
.an-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.an-head .an-close{flex:0 0 auto;min-height:40px;padding:.5rem .9rem}
.an-row{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:start;padding:.85rem 0;border-top:1px solid #e3e8e5}
.an-row label{display:grid;gap:.15rem;cursor:pointer}
.an-row strong{font-weight:650}
.an-row span{font-size:.92rem;color:#4a5963}
.an-check{width:1.35rem;height:1.35rem;margin:.15rem 0 0;accent-color:var(--an-accent,#23483E)}
.an-note{font-size:.88rem;color:#4a5963}
.an-dialog .an-actions{margin-top:1rem}
.an-dialog[open]{animation:an-pop .2s cubic-bezier(.2,.9,.3,1)}
@keyframes an-pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.an-dialog[open]{animation:none}.an-btn:active{transform:none}}
