/* Optional, non-modal statistics consent. All choices have equal visual weight. */
.ep-consent{
  position:fixed;z-index:60;right:max(16px,env(safe-area-inset-right));
  bottom:max(16px,env(safe-area-inset-bottom));width:min(520px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);overflow-y:auto;box-sizing:border-box;
  padding:16px;border:1px solid #d8cec0;border-radius:6px;background:#F7F3EA;color:#272B00;
  box-shadow:0 8px 42px #17120e26;font:14px/1.5 Inter,Arial,Helvetica,sans-serif;
}
.ep-consent *, .ep-consent *::before, .ep-consent *::after{box-sizing:border-box}
.ep-consent[hidden],.ep-consent-details[hidden],.ep-consent-close[hidden]{display:none!important}
.ep-consent h2{margin:0 0 6px;font:400 20px/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.025em}
.ep-consent .ep-consent-copy{margin:0;color:#272B00}
.ep-consent .ep-consent-status{margin:4px 0 0;color:#514d3f;font-size:12px;line-height:1.5}
.ep-consent-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr);gap:6px;margin-top:10px}
.ep-consent-choice{
  min-width:0;min-height:44px;padding:10px 6px;border:1px solid #272B00;border-radius:2px;
  background:transparent;color:#272B00;font:400 13px/18px Inter,Arial,Helvetica,sans-serif;
  text-align:center;cursor:pointer;
}
.ep-consent-choice:hover{background:#272B00;border-color:#272B00;color:#F7F3EA}
.ep-consent-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;margin-top:4px}
.ep-consent-bottom a,.ep-consent-close{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:#272B00;font:12px/1.4 Inter,Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ep-consent-copy a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.ep-consent :focus-visible,.ep-privacy-open:focus-visible{outline:2px solid #7A5925;outline-offset:2px}
.ep-consent h2:focus{outline:none}
.ep-consent-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ep-consent-details{border-top:1px solid #d8cec0;padding-top:16px;margin-top:16px}
.ep-consent-details h3{font:600 16px/1.4 Inter,Arial,Helvetica,sans-serif;margin:0 0 10px}
.ep-consent-details p{margin:10px 0;font-size:13px;line-height:1.55}
.ep-consent-details label{display:flex;gap:10px;align-items:center;font-weight:600;min-height:44px}
.ep-consent-details input{accent-color:#272B00;width:20px;height:20px;flex:none}
.ep-consent-save .ep-consent-choice{width:100%}
.ep-consent.is-preferences .ep-consent-summary{display:none}

/* Compact initial notice. Full details and status remain in Preferences. */
.ep-consent:not(.is-preferences){
  inset:auto 0 0;width:100%;max-width:none;max-height:100dvh;border-width:1px 0 0;border-radius:0;
  padding:11px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  box-shadow:0 -3px 18px #17120e18;
}
.ep-consent:not(.is-preferences) h2,
.ep-consent:not(.is-preferences) .ep-consent-description,
.ep-consent:not(.is-preferences) .ep-consent-status,
.ep-consent:not(.is-preferences) .ep-consent-bottom{display:none}
.ep-consent:not(.is-preferences) .ep-consent-copy{margin:0 0 8px;font-size:13px;line-height:18px;text-align:start;text-align-last:start}
.ep-consent:not(.is-preferences) .ep-consent-actions{margin:0}
/* 390px mobile: two 18px lines + 8px gap + 44px controls + 24px edges = 112px. */
@media(min-width:800px){
  /* Desktop: 44px controls + 12px top/bottom + 1px border = 69px. */
  .ep-consent:not(.is-preferences){display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(clamp(24px,4vw,64px),env(safe-area-inset-left));padding-right:max(clamp(24px,4vw,64px),env(safe-area-inset-right))}
  .ep-consent:not(.is-preferences) .ep-consent-copy{margin:0}
  .ep-consent:not(.is-preferences) .ep-consent-actions{width:340px;flex-shrink:0}
}
@media print{.ep-consent,.ep-privacy-controls,.ep-privacy-open,.ep-consent-announcement{display:none!important}}

/* Isolated footer control compatible with existing institutional layouts. */
.ep-privacy-open{display:inline-flex;align-items:center;min-height:44px;padding:7px 0;border:0;background:none;color:inherit;font:inherit;text-align:left;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.ep-privacy-controls{padding:12px 24px;text-align:center;font:13px/1.5 Arial,Helvetica,sans-serif}
.pp-footer-links .ep-privacy-open{font-size:12px;color:inherit}

/* Standalone privacy content inside existing site layout. */
.pp-privacy{max-width:960px;padding-top:64px;padding-bottom:64px;line-height:1.75}
.pp-privacy h1{font-size:clamp(2.3rem,5vw,3.7rem);margin-bottom:20px}
.pp-privacy h2{font-size:1.6rem;margin:32px 0 12px}
.pp-privacy p,.pp-privacy ul{margin:14px 0}
.pp-privacy ul{padding-left:24px}
.pp-privacy a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.pp-privacy .source-note{padding:14px 18px;background:#fff6d9;color:#493a1b;border-left:3px solid #ad8438}
