/* Optional, non-modal statistics consent. Accept/refuse share identical styling. */
.ep-consent{position:fixed;z-index:60;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;background:#f8f6f1;color:#211912;border:1px solid #d9d3c9;border-radius:6px;padding:24px;box-shadow:0 8px 42px #17120e26;font:14px/1.55 Arial,Helvetica,sans-serif}
.ep-consent[hidden]{display:none!important}
.ep-consent .ep-consent-eyebrow{margin:0 0 10px;color:#755224;font-size:10px;font-weight:600;letter-spacing:.16em}
.ep-consent h2{margin:0 0 12px;font:400 26px/1.16 Georgia,'Times New Roman',serif;letter-spacing:-.025em}
.ep-consent .ep-consent-copy{margin:0;color:#514a42}
.ep-consent .ep-consent-status{margin:12px 0 0;color:#625c54;font-size:12px;line-height:1.5}
.ep-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.ep-consent-choice{min-width:0;min-height:46px;padding:10px 12px;border:1px solid #756a5e;border-radius:3px;background:#fff;color:#211912;font:600 13px/1.4 Arial,Helvetica,sans-serif;text-align:center;cursor:pointer}
.ep-consent-choice:hover{background:#1E2C25;border-color:#1E2C25;color:#fff}
.ep-consent-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:12px}
.ep-consent-bottom a,.ep-consent-close{display:inline-flex;align-items:center;min-height:32px;padding:0;border:0;background:none;color:#514a42;font:12px/1.4 Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ep-consent-close[hidden]{display:none!important}
.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}
.ep-consent :focus-visible,.ep-privacy-open:focus-visible{outline:3px solid #9a6518;outline-offset:3px}
.ep-consent h2:focus{outline:none}
.ep-consent-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:420px){.ep-consent{padding:19px}.ep-consent h2{font-size:24px}.ep-consent-actions{gap:8px}.ep-consent-choice{padding:9px 7px;font-size:12px}}
@media print{.ep-consent,.ep-privacy-controls,.ep-privacy-open,.ep-consent-announcement{display:none!important}}

.ep-consent-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.ep-consent-details{border-top:1px solid #d9d3c9;padding-top:16px;margin-top:16px}
.ep-consent-details[hidden]{display:none!important}
.ep-consent-details h3{font:600 16px/1.4 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:#1E2C25;width:20px;height:20px;flex:none}
.ep-consent-save .ep-consent-choice{width:100%}
@media(max-width:420px){.ep-consent-actions{grid-template-columns:1fr}.ep-consent-choice{min-height:44px}}

/* Isolated footer control compatible with existing institutional layouts. */
.pp-footer-links .ep-privacy-open{font-size:12px;color:inherit}
.ep-consent{box-sizing:border-box}
.ep-consent *, .ep-consent *::before, .ep-consent *::after{box-sizing:border-box}

/* 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}

/* Compact notice: details remain available in Preferences; equal 44px actions. */
.ep-consent{width:min(520px,calc(100vw - 32px));padding:16px;font-size:14px;line-height:1.5}
.ep-consent h2{font-size:20px;line-height:1.2;margin:0 0 6px}
.ep-consent .ep-consent-status{margin-top:4px;font-size:12px;line-height:1.5}
.ep-consent-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.ep-consent-choice{min-height:44px;padding:8px;font-size:13px;line-height:1.35}
.ep-consent-bottom{margin-top:4px;gap:4px}
.ep-consent-bottom a,.ep-consent-close{min-height:44px}
@media(max-width:359px){.ep-consent-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-consent-actions>.ep-consent-choice:last-child{grid-column:1/-1}}

/* V4: initial notice is a low, full-width bottom bar. Preferences stay a panel. */
.ep-consent:not(.is-preferences){left:0;right:0;bottom:0;width:100%;max-width:none;border-radius:0;border-left:0;border-right:0;border-bottom:0;padding:10px max(4vw,env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:24px;row-gap:2px;align-items:center;box-shadow:0 -3px 18px #17120e18;font-size:13px;line-height:1.4}
.ep-consent:not(.is-preferences) h2{grid-column:1;grid-row:1;font-size:16px;line-height:1.2;margin:0}
.ep-consent:not(.is-preferences) .ep-consent-copy{grid-column:1;grid-row:2;font-size:13px;line-height:1.4;margin:0}
.ep-consent:not(.is-preferences) .ep-consent-status{grid-column:1;grid-row:3;font-size:12px;line-height:1.4;margin:0}
.ep-consent:not(.is-preferences) .ep-consent-actions{grid-column:2;grid-row:1/4;margin:0;grid-template-columns:repeat(3,minmax(90px,auto));gap:8px}
.ep-consent:not(.is-preferences) .ep-consent-choice{font-size:13px;min-height:44px;padding:8px 12px}
.ep-consent:not(.is-preferences) .ep-consent-bottom{grid-column:3;grid-row:1/4;margin:0;font-size:12px}
.ep-consent:not(.is-preferences) .ep-consent-bottom a{min-height:44px;font-size:12px}
.ep-consent.is-preferences{left:auto;right:max(16px,env(safe-area-inset-right));width:min(520px,calc(100vw - 32px))}
@media(max-width:1100px){
 .ep-consent:not(.is-preferences){grid-template-columns:minmax(0,1fr) auto;column-gap:16px;padding:10px 4vw}
 .ep-consent:not(.is-preferences) .ep-consent-bottom{grid-column:1;grid-row:4}
 .ep-consent:not(.is-preferences) .ep-consent-actions{grid-column:2;grid-row:1/5}
}
@media(max-width:700px){
 .ep-consent:not(.is-preferences){display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 16px;gap:4px 8px}
 .ep-consent:not(.is-preferences) h2{grid-column:1/-1;grid-row:1}
 .ep-consent:not(.is-preferences) .ep-consent-copy{grid-column:1/-1;grid-row:2}
 .ep-consent:not(.is-preferences) .ep-consent-status{grid-column:1;grid-row:4}
 .ep-consent:not(.is-preferences) .ep-consent-actions{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:4px}
 .ep-consent:not(.is-preferences) .ep-consent-actions>.ep-consent-choice:last-child{grid-column:auto}
 .ep-consent:not(.is-preferences) .ep-consent-choice{padding:8px 4px;font-size:13px}
 .ep-consent:not(.is-preferences) .ep-consent-bottom{grid-column:2;grid-row:4}
}
