/* Shared release corrections. */
.pending-notice{padding:1rem 1.25rem;border:1px solid #c8d5cb;border-radius:12px;background:#eff4ee;color:#233f33}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #9b5617;outline-offset:4px}
#main-content:focus{outline:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* P5: no visible motion controls; decorative entrance stops within five seconds. */
html[data-motion="paused"] *::before,html[data-motion="paused"] *::after{animation-play-state:paused!important}

.mobile-search{min-height:44px;padding:12px 16px;color:#173e30;font:inherit;font-weight:600;border-radius:10px;cursor:pointer;text-align:left}
html:not(.js) .mydin-calendar-status{display:none}


/* P5-C: compact controls, retained forest surfaces and explicit header clearance. */
:root{--p5-header-clearance:112px;--p5-control-radius:8px}
html{scroll-padding-top:112px}
main :is(h1,h2,h3,[id]){scroll-margin-top:112px}
body .mydin-action{--control-height:44px;--control-gap:8px;min-height:44px!important;font-size:14px!important;line-height:20px!important;border-radius:8px!important}
body .mydin-action .action-face{box-sizing:border-box;min-height:inherit;padding:10px 16px;gap:8px;line-height:20px}
body .mydin-action .forest-arrow{width:18px;height:18px;flex-basis:18px}
body .forest-hero .mydin-action{min-height:48px!important}
body .site-donate.mydin-action{min-height:44px!important;font-size:14px!important}
body .site-donate .action-face{padding:10px 12px}
body :is(.primary:not(.mydin-action),.infaq-primary,.recovery-poster-close,.recovery-poster-original){box-sizing:border-box;min-height:44px;padding:10px 16px;font-size:14px;line-height:24px;border-radius:8px!important}
body :is(.community-filter button,.poster-card-action,.secondary:not(.mydin-action)){min-height:38px;padding:8px 12px;font-size:14px;line-height:20px;border-radius:8px!important}
body .site-header-inner{column-gap:12px!important}
body .site-header-actions{gap:8px}
body .forest-donate.infaq-page{max-width:1120px;margin-inline:auto;padding:112px 28px 64px}
body .infaq-intro.forest-intro{max-width:760px;padding:0;margin:0 0 28px}
body .infaq-intro h1{font-size:clamp(32px,4.4vw,52px);line-height:1.12;margin:12px 0 16px}
body .infaq-intro>p{max-width:60ch;font-size:18px;line-height:1.6;margin:0}
body .infaq-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
body .infaq-card{padding:28px;border-radius:16px}
body .infaq-card h2{font-size:26px;margin:12px 0 14px}
body .infaq-card p{margin:0 0 14px;line-height:1.6}
body .infaq-card p:last-child{margin-bottom:0}
body .infaq-primary{display:inline-flex;align-items:center;justify-content:center;max-width:100%;margin-top:6px;text-align:center}
body .infaq-contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:12px 0 16px}
body .infaq-open{padding:10px 0;min-height:44px;box-sizing:border-box;overflow-wrap:anywhere}
body .infaq-note-box{padding:16px;border-radius:12px}
body .infaq-monthly{max-width:none;margin:24px 0 0;padding:24px 28px;border:1px solid #cedcd1;border-radius:16px;background:#edf3ee}
body .infaq-monthly h2{font-size:26px;margin:10px 0 14px}
body .infaq-monthly p{max-width:76ch;margin:0 0 12px;line-height:1.6}
body .infaq-monthly p:last-child{margin-bottom:0}
@media(max-width:700px){
 :root{--p5-header-clearance:96px}
 html{scroll-padding-top:88px}
 main :is(h1,h2,h3,[id]){scroll-margin-top:88px}
 body .site-header-inner{column-gap:6px!important}
 body .site-brand{min-width:0}
 body .site-header-actions{margin-left:auto;gap:4px}
 body .site-donate .action-face{padding-inline:12px}
 body .forest-donate.infaq-page{padding:96px 20px 40px}
 body .infaq-intro.forest-intro{margin-bottom:24px}
 body .infaq-intro>p{font-size:17px}
 body .infaq-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 body .infaq-card{padding:22px 20px}
 body .infaq-card h2,body .infaq-monthly h2{font-size:24px}
 body .infaq-monthly{margin-top:20px;padding:22px 20px}
}
@media(max-width:360px){body .site-donate .action-face{padding-inline:10px}body .site-header-inner{column-gap:4px!important}}
@media(pointer:coarse){body :is(.community-filter button,.poster-card-action,.secondary:not(.mydin-action)){min-height:44px}}

/* Disabled-operation information pages still need fixed-header clearance. */
body main.restricted-page{box-sizing:border-box;width:100%;max-width:1120px;margin:0 auto;padding:var(--p5-header-clearance) 24px 64px;min-height:60vh}
body main.restricted-page h1{margin-top:0}

/* Official master: unmodified square canvas, original colour and alpha. */
body .site-header .site-brand img,body .site-footer-brand img{width:56px!important;height:56px!important;min-width:56px;flex:0 0 56px;object-fit:contain;object-position:center;filter:none!important;opacity:1!important;mix-blend-mode:normal!important;transform:none!important;background:transparent!important}
@media(max-width:700px){body .site-header .site-brand img{width:44px!important;height:44px!important;min-width:44px;flex-basis:44px}}

/* P5-D shared controls. Card buttons retain their content-driven height. */
:root{--mydin-control-radius:8px;--mydin-control-compact:40px;--mydin-control-standard:44px;--mydin-control-hero:48px}
body button,body :is(.mydin-action,.primary,.secondary,.infaq-primary,.recovery-poster-original,.poster-card-action){border-radius:var(--mydin-control-radius)!important}
body button{font-family:inherit}
body :is(button,a.mydin-action,a.primary,a.secondary,a.infaq-primary,a.poster-card-action):focus-visible{outline:3px solid #9b5617;outline-offset:3px}
body :is(.primary:not(.mydin-action),.infaq-primary,.recovery-poster-close,.recovery-poster-original){min-height:44px;box-sizing:border-box;padding:10px 16px;line-height:22px;font-size:14px}
body :is(.community-filter button,.poster-card-action,.secondary:not(.mydin-action),.mobile-search){min-height:40px;box-sizing:border-box;padding:8px 12px;line-height:22px;font-size:14px}
body .site-menu-toggle{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;box-sizing:border-box}
body .site-donate.mydin-action{--control-height:40px;height:40px;min-height:40px!important;font-size:14px!important;line-height:20px!important;box-shadow:none}
body .site-donate .action-face{min-height:40px;height:40px;padding:8px 14px;line-height:20px;box-shadow:none;border-radius:8px}
body .site-donate .action-glow{display:none}
body .site-header-actions{gap:8px}
@media(max-width:700px){body .site-header-actions{gap:6px}body .site-donate .action-face{padding:8px 14px}body .site-header-inner{column-gap:6px!important}}
/* Explicit selectors retire the older circular navigation overrides. */
body .site-header :is(.site-menu-toggle,.site-icon-btn,.site-nav-caret),body .community-gallery .community-photo,body .community-lightbox button,body .poster-enlarge{border-radius:8px!important}
